]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_core_wrap.cpp
Add a comment about covariant returns
[wxWidgets.git] / wxPython / src / msw / _core_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.24
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
13 #ifdef __cplusplus
14 template<class T> class SwigValueWrapper {
15 T *tt;
16 public:
17 SwigValueWrapper() : tt(0) { }
18 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
19 SwigValueWrapper(const T& t) : tt(new T(t)) { }
20 ~SwigValueWrapper() { delete tt; }
21 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
22 operator T&() const { return *tt; }
23 T *operator&() { return tt; }
24 private:
25 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
26 };
27 #endif
28
29
30 #ifndef SWIG_TEMPLATE_DISAMBIGUATOR
31 # if defined(__SUNPRO_CC)
32 # define SWIG_TEMPLATE_DISAMBIGUATOR template
33 # else
34 # define SWIG_TEMPLATE_DISAMBIGUATOR
35 # endif
36 #endif
37
38
39 #include <Python.h>
40
41 /***********************************************************************
42 * swigrun.swg
43 *
44 * This file contains generic CAPI SWIG runtime support for pointer
45 * type checking.
46 *
47 ************************************************************************/
48
49 /* This should only be incremented when either the layout of swig_type_info changes,
50 or for whatever reason, the runtime changes incompatibly */
51 #define SWIG_RUNTIME_VERSION "1"
52
53 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
54 #ifdef SWIG_TYPE_TABLE
55 #define SWIG_QUOTE_STRING(x) #x
56 #define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
57 #define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
58 #else
59 #define SWIG_TYPE_TABLE_NAME
60 #endif
61
62 #include <string.h>
63
64 #ifndef SWIGINLINE
65 #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
66 # define SWIGINLINE inline
67 #else
68 # define SWIGINLINE
69 #endif
70 #endif
71
72 /*
73 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
74 creating a static or dynamic library from the swig runtime code.
75 In 99.9% of the cases, swig just needs to declare them as 'static'.
76
77 But only do this if is strictly necessary, ie, if you have problems
78 with your compiler or so.
79 */
80 #ifndef SWIGRUNTIME
81 #define SWIGRUNTIME static
82 #endif
83 #ifndef SWIGRUNTIMEINLINE
84 #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
85 #endif
86
87 #ifdef __cplusplus
88 extern "C" {
89 #endif
90
91 typedef void *(*swig_converter_func)(void *);
92 typedef struct swig_type_info *(*swig_dycast_func)(void **);
93
94 typedef struct swig_type_info {
95 const char *name;
96 swig_converter_func converter;
97 const char *str;
98 void *clientdata;
99 swig_dycast_func dcast;
100 struct swig_type_info *next;
101 struct swig_type_info *prev;
102 } swig_type_info;
103
104 /*
105 Compare two type names skipping the space characters, therefore
106 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
107
108 Return 0 when the two name types are equivalent, as in
109 strncmp, but skipping ' '.
110 */
111 SWIGRUNTIME int
112 SWIG_TypeNameComp(const char *f1, const char *l1,
113 const char *f2, const char *l2) {
114 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
115 while ((*f1 == ' ') && (f1 != l1)) ++f1;
116 while ((*f2 == ' ') && (f2 != l2)) ++f2;
117 if (*f1 != *f2) return *f1 - *f2;
118 }
119 return (l1 - f1) - (l2 - f2);
120 }
121
122 /*
123 Check type equivalence in a name list like <name1>|<name2>|...
124 */
125 SWIGRUNTIME int
126 SWIG_TypeEquiv(const char *nb, const char *tb) {
127 int equiv = 0;
128 const char* te = tb + strlen(tb);
129 const char* ne = nb;
130 while (!equiv && *ne) {
131 for (nb = ne; *ne; ++ne) {
132 if (*ne == '|') break;
133 }
134 equiv = SWIG_TypeNameComp(nb, ne, tb, te) == 0;
135 if (*ne) ++ne;
136 }
137 return equiv;
138 }
139
140 /*
141 Register a type mapping with the type-checking
142 */
143 SWIGRUNTIME swig_type_info *
144 SWIG_TypeRegisterTL(swig_type_info **tl, swig_type_info *ti) {
145 swig_type_info *tc, *head, *ret, *next;
146 /* Check to see if this type has already been registered */
147 tc = *tl;
148 while (tc) {
149 /* check simple type equivalence */
150 int typeequiv = (strcmp(tc->name, ti->name) == 0);
151 /* check full type equivalence, resolving typedefs */
152 if (!typeequiv) {
153 /* only if tc is not a typedef (no '|' on it) */
154 if (tc->str && ti->str && !strstr(tc->str,"|")) {
155 typeequiv = SWIG_TypeEquiv(ti->str,tc->str);
156 }
157 }
158 if (typeequiv) {
159 /* Already exists in the table. Just add additional types to the list */
160 if (ti->clientdata) tc->clientdata = ti->clientdata;
161 head = tc;
162 next = tc->next;
163 goto l1;
164 }
165 tc = tc->prev;
166 }
167 head = ti;
168 next = 0;
169
170 /* Place in list */
171 ti->prev = *tl;
172 *tl = ti;
173
174 /* Build linked lists */
175 l1:
176 ret = head;
177 tc = ti + 1;
178 /* Patch up the rest of the links */
179 while (tc->name) {
180 head->next = tc;
181 tc->prev = head;
182 head = tc;
183 tc++;
184 }
185 if (next) next->prev = head;
186 head->next = next;
187
188 return ret;
189 }
190
191 /*
192 Check the typename
193 */
194 SWIGRUNTIME swig_type_info *
195 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
196 swig_type_info *s;
197 if (!ty) return 0; /* Void pointer */
198 s = ty->next; /* First element always just a name */
199 do {
200 if (strcmp(s->name,c) == 0) {
201 if (s == ty->next) return s;
202 /* Move s to the top of the linked list */
203 s->prev->next = s->next;
204 if (s->next) {
205 s->next->prev = s->prev;
206 }
207 /* Insert s as second element in the list */
208 s->next = ty->next;
209 if (ty->next) ty->next->prev = s;
210 ty->next = s;
211 s->prev = ty;
212 return s;
213 }
214 s = s->next;
215 } while (s && (s != ty->next));
216 return 0;
217 }
218
219 /*
220 Cast a pointer up an inheritance hierarchy
221 */
222 SWIGRUNTIMEINLINE void *
223 SWIG_TypeCast(swig_type_info *ty, void *ptr) {
224 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
225 }
226
227 /*
228 Dynamic pointer casting. Down an inheritance hierarchy
229 */
230 SWIGRUNTIME swig_type_info *
231 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
232 swig_type_info *lastty = ty;
233 if (!ty || !ty->dcast) return ty;
234 while (ty && (ty->dcast)) {
235 ty = (*ty->dcast)(ptr);
236 if (ty) lastty = ty;
237 }
238 return lastty;
239 }
240
241 /*
242 Return the name associated with this type
243 */
244 SWIGRUNTIMEINLINE const char *
245 SWIG_TypeName(const swig_type_info *ty) {
246 return ty->name;
247 }
248
249 /*
250 Return the pretty name associated with this type,
251 that is an unmangled type name in a form presentable to the user.
252 */
253 SWIGRUNTIME const char *
254 SWIG_TypePrettyName(const swig_type_info *type) {
255 /* The "str" field contains the equivalent pretty names of the
256 type, separated by vertical-bar characters. We choose
257 to print the last name, as it is often (?) the most
258 specific. */
259 if (type->str != NULL) {
260 const char *last_name = type->str;
261 const char *s;
262 for (s = type->str; *s; s++)
263 if (*s == '|') last_name = s+1;
264 return last_name;
265 }
266 else
267 return type->name;
268 }
269
270 /*
271 Search for a swig_type_info structure
272 */
273 SWIGRUNTIME swig_type_info *
274 SWIG_TypeQueryTL(swig_type_info *tl, const char *name) {
275 swig_type_info *ty = tl;
276 while (ty) {
277 if (ty->str && (SWIG_TypeEquiv(ty->str,name))) return ty;
278 if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
279 ty = ty->prev;
280 }
281 return 0;
282 }
283
284 /*
285 Set the clientdata field for a type
286 */
287 SWIGRUNTIME void
288 SWIG_TypeClientDataTL(swig_type_info *tl, swig_type_info *ti, void *clientdata) {
289 swig_type_info *tc, *equiv;
290 if (ti->clientdata) return;
291 /* if (ti->clientdata == clientdata) return; */
292 ti->clientdata = clientdata;
293 equiv = ti->next;
294 while (equiv) {
295 if (!equiv->converter) {
296 tc = tl;
297 while (tc) {
298 if ((strcmp(tc->name, equiv->name) == 0))
299 SWIG_TypeClientDataTL(tl,tc,clientdata);
300 tc = tc->prev;
301 }
302 }
303 equiv = equiv->next;
304 }
305 }
306
307 /*
308 Pack binary data into a string
309 */
310 SWIGRUNTIME char *
311 SWIG_PackData(char *c, void *ptr, size_t sz) {
312 static char hex[17] = "0123456789abcdef";
313 unsigned char *u = (unsigned char *) ptr;
314 const unsigned char *eu = u + sz;
315 register unsigned char uu;
316 for (; u != eu; ++u) {
317 uu = *u;
318 *(c++) = hex[(uu & 0xf0) >> 4];
319 *(c++) = hex[uu & 0xf];
320 }
321 return c;
322 }
323
324 /*
325 Unpack binary data from a string
326 */
327 SWIGRUNTIME const char *
328 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
329 register unsigned char *u = (unsigned char *) ptr;
330 register const unsigned char *eu = u + sz;
331 for (; u != eu; ++u) {
332 register int d = *(c++);
333 register unsigned char uu = 0;
334 if ((d >= '0') && (d <= '9'))
335 uu = ((d - '0') << 4);
336 else if ((d >= 'a') && (d <= 'f'))
337 uu = ((d - ('a'-10)) << 4);
338 else
339 return (char *) 0;
340 d = *(c++);
341 if ((d >= '0') && (d <= '9'))
342 uu |= (d - '0');
343 else if ((d >= 'a') && (d <= 'f'))
344 uu |= (d - ('a'-10));
345 else
346 return (char *) 0;
347 *u = uu;
348 }
349 return c;
350 }
351
352 /*
353 This function will propagate the clientdata field of type to any new
354 swig_type_info structures that have been added into the list of
355 equivalent types. It is like calling SWIG_TypeClientData(type,
356 clientdata) a second time.
357 */
358 SWIGRUNTIME void
359 SWIG_PropagateClientDataTL(swig_type_info *tl, swig_type_info *type) {
360 swig_type_info *equiv = type->next;
361 swig_type_info *tc;
362 if (!type->clientdata) return;
363 while (equiv) {
364 if (!equiv->converter) {
365 tc = tl;
366 while (tc) {
367 if ((strcmp(tc->name, equiv->name) == 0) && !tc->clientdata)
368 SWIG_TypeClientDataTL(tl,tc, type->clientdata);
369 tc = tc->prev;
370 }
371 }
372 equiv = equiv->next;
373 }
374 }
375
376 /*
377 Pack 'void *' into a string buffer.
378 */
379 SWIGRUNTIME char *
380 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
381 char *r = buff;
382 if ((2*sizeof(void *) + 2) > bsz) return 0;
383 *(r++) = '_';
384 r = SWIG_PackData(r,&ptr,sizeof(void *));
385 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
386 strcpy(r,name);
387 return buff;
388 }
389
390 SWIGRUNTIME const char *
391 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
392 if (*c != '_') {
393 if (strcmp(c,"NULL") == 0) {
394 *ptr = (void *) 0;
395 return name;
396 } else {
397 return 0;
398 }
399 }
400 return SWIG_UnpackData(++c,ptr,sizeof(void *));
401 }
402
403 SWIGRUNTIME char *
404 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
405 char *r = buff;
406 size_t lname = (name ? strlen(name) : 0);
407 if ((2*sz + 2 + lname) > bsz) return 0;
408 *(r++) = '_';
409 r = SWIG_PackData(r,ptr,sz);
410 if (lname) {
411 strncpy(r,name,lname+1);
412 } else {
413 *r = 0;
414 }
415 return buff;
416 }
417
418 SWIGRUNTIME const char *
419 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
420 if (*c != '_') {
421 if (strcmp(c,"NULL") == 0) {
422 memset(ptr,0,sz);
423 return name;
424 } else {
425 return 0;
426 }
427 }
428 return SWIG_UnpackData(++c,ptr,sz);
429 }
430
431 #ifdef __cplusplus
432 }
433 #endif
434
435 /***********************************************************************
436 * common.swg
437 *
438 * This file contains generic SWIG runtime support for pointer
439 * type checking as well as a few commonly used macros to control
440 * external linkage.
441 *
442 * Author : David Beazley (beazley@cs.uchicago.edu)
443 *
444 * Copyright (c) 1999-2000, The University of Chicago
445 *
446 * This file may be freely redistributed without license or fee provided
447 * this copyright message remains intact.
448 ************************************************************************/
449
450
451 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
452 # if !defined(STATIC_LINKED)
453 # define SWIGEXPORT(a) __declspec(dllexport) a
454 # else
455 # define SWIGEXPORT(a) a
456 # endif
457 #else
458 # define SWIGEXPORT(a) a
459 #endif
460
461 #ifdef __cplusplus
462 extern "C" {
463 #endif
464
465
466 /*************************************************************************/
467
468
469 /* The static type info list */
470
471 static swig_type_info *swig_type_list = 0;
472 static swig_type_info **swig_type_list_handle = &swig_type_list;
473
474
475 /* Register a type mapping with the type-checking */
476 static swig_type_info *
477 SWIG_TypeRegister(swig_type_info *ti) {
478 return SWIG_TypeRegisterTL(swig_type_list_handle, ti);
479 }
480
481 /* Search for a swig_type_info structure */
482 static swig_type_info *
483 SWIG_TypeQuery(const char *name) {
484 return SWIG_TypeQueryTL(*swig_type_list_handle, name);
485 }
486
487 /* Set the clientdata field for a type */
488 static void
489 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
490 SWIG_TypeClientDataTL(*swig_type_list_handle, ti, clientdata);
491 }
492
493 /* This function will propagate the clientdata field of type to
494 * any new swig_type_info structures that have been added into the list
495 * of equivalent types. It is like calling
496 * SWIG_TypeClientData(type, clientdata) a second time.
497 */
498 static void
499 SWIG_PropagateClientData(swig_type_info *type) {
500 SWIG_PropagateClientDataTL(*swig_type_list_handle, type);
501 }
502
503 #ifdef __cplusplus
504 }
505 #endif
506
507 /* -----------------------------------------------------------------------------
508 * SWIG API. Portion that goes into the runtime
509 * ----------------------------------------------------------------------------- */
510
511 #ifdef __cplusplus
512 extern "C" {
513 #endif
514
515 /* -----------------------------------------------------------------------------
516 * for internal method declarations
517 * ----------------------------------------------------------------------------- */
518
519 #ifndef SWIGINTERN
520 #define SWIGINTERN static
521 #endif
522
523 #ifndef SWIGINTERNSHORT
524 #ifdef __cplusplus
525 #define SWIGINTERNSHORT static inline
526 #else /* C case */
527 #define SWIGINTERNSHORT static
528 #endif /* __cplusplus */
529 #endif
530
531
532 /*
533 Exception handling in wrappers
534 */
535 #define SWIG_fail goto fail
536 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
537 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
538 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
539 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
540 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
541
542 /*
543 Contract support
544 */
545 #define SWIG_contract_assert(expr, msg) \
546 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
547
548 /* -----------------------------------------------------------------------------
549 * Constant declarations
550 * ----------------------------------------------------------------------------- */
551
552 /* Constant Types */
553 #define SWIG_PY_INT 1
554 #define SWIG_PY_FLOAT 2
555 #define SWIG_PY_STRING 3
556 #define SWIG_PY_POINTER 4
557 #define SWIG_PY_BINARY 5
558
559 /* Constant information structure */
560 typedef struct swig_const_info {
561 int type;
562 char *name;
563 long lvalue;
564 double dvalue;
565 void *pvalue;
566 swig_type_info **ptype;
567 } swig_const_info;
568
569
570 /* -----------------------------------------------------------------------------
571 * Alloc. memory flags
572 * ----------------------------------------------------------------------------- */
573 #define SWIG_OLDOBJ 1
574 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
575 #define SWIG_PYSTR SWIG_NEWOBJ + 1
576
577 #ifdef __cplusplus
578 }
579 #endif
580
581
582 /***********************************************************************
583 * pyrun.swg
584 *
585 * This file contains the runtime support for Python modules
586 * and includes code for managing global variables and pointer
587 * type checking.
588 *
589 * Author : David Beazley (beazley@cs.uchicago.edu)
590 ************************************************************************/
591
592 /* Common SWIG API */
593 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
594 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
595 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
596
597
598 /* Python-specific SWIG API */
599 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
600 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
601
602
603 /* -----------------------------------------------------------------------------
604 * Pointer declarations
605 * ----------------------------------------------------------------------------- */
606 /*
607 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
608 C/C++ pointers in the python side. Very useful for debugging, but
609 not always safe.
610 */
611 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
612 # define SWIG_COBJECT_TYPES
613 #endif
614
615 /* Flags for pointer conversion */
616 #define SWIG_POINTER_EXCEPTION 0x1
617 #define SWIG_POINTER_DISOWN 0x2
618
619
620 #ifdef __cplusplus
621 extern "C" {
622 #endif
623
624 /* -----------------------------------------------------------------------------
625 * Create a new pointer string
626 * ----------------------------------------------------------------------------- */
627
628 #ifndef SWIG_BUFFER_SIZE
629 #define SWIG_BUFFER_SIZE 1024
630 #endif
631
632 #if defined(SWIG_COBJECT_TYPES)
633 #if !defined(SWIG_COBJECT_PYTHON)
634 /* -----------------------------------------------------------------------------
635 * Implements a simple Swig Object type, and use it instead of PyCObject
636 * ----------------------------------------------------------------------------- */
637
638 typedef struct {
639 PyObject_HEAD
640 void *ptr;
641 const char *desc;
642 } PySwigObject;
643
644 /* Declarations for objects of type PySwigObject */
645
646 SWIGRUNTIME int
647 PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
648 {
649 char result[SWIG_BUFFER_SIZE];
650 if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
651 fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
652 return 0;
653 } else {
654 return 1;
655 }
656 }
657
658 SWIGRUNTIME PyObject *
659 PySwigObject_repr(PySwigObject *v)
660 {
661 char result[SWIG_BUFFER_SIZE];
662 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
663 PyString_FromFormat("<Swig Object at %s>", result) : 0;
664 }
665
666 SWIGRUNTIME PyObject *
667 PySwigObject_str(PySwigObject *v)
668 {
669 char result[SWIG_BUFFER_SIZE];
670 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
671 PyString_FromString(result) : 0;
672 }
673
674 SWIGRUNTIME PyObject *
675 PySwigObject_long(PySwigObject *v)
676 {
677 return PyLong_FromUnsignedLong((unsigned long) v->ptr);
678 }
679
680 SWIGRUNTIME PyObject *
681 PySwigObject_oct(PySwigObject *v)
682 {
683 char buf[100];
684 unsigned long x = (unsigned long)v->ptr;
685 if (x == 0)
686 strcpy(buf, "0");
687 else
688 PyOS_snprintf(buf, sizeof(buf), "0%lo", x);
689 return PyString_FromString(buf);
690 }
691
692 SWIGRUNTIME PyObject *
693 PySwigObject_hex(PySwigObject *v)
694 {
695 char buf[100];
696 PyOS_snprintf(buf, sizeof(buf), "0x%lx", (unsigned long)v->ptr);
697 return PyString_FromString(buf);
698 }
699
700 SWIGRUNTIME int
701 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
702 {
703 int c = strcmp(v->desc, w->desc);
704 if (c) {
705 return c;
706 } else {
707 void *i = v->ptr;
708 void *j = w->ptr;
709 return (i < j) ? -1 : (i > j) ? 1 : 0;
710 }
711 }
712
713 SWIGRUNTIME void
714 PySwigObject_dealloc(PySwigObject *self)
715 {
716 PyObject_DEL(self);
717 }
718
719 SWIGRUNTIME PyTypeObject*
720 PySwigObject_GetType() {
721 static char PySwigObject_Type__doc__[] =
722 "Swig object carries a C/C++ instance pointer";
723
724 static PyNumberMethods PySwigObject_as_number = {
725 (binaryfunc)0, /*nb_add*/
726 (binaryfunc)0, /*nb_subtract*/
727 (binaryfunc)0, /*nb_multiply*/
728 (binaryfunc)0, /*nb_divide*/
729 (binaryfunc)0, /*nb_remainder*/
730 (binaryfunc)0, /*nb_divmod*/
731 (ternaryfunc)0,/*nb_power*/
732 (unaryfunc)0, /*nb_negative*/
733 (unaryfunc)0, /*nb_positive*/
734 (unaryfunc)0, /*nb_absolute*/
735 (inquiry)0, /*nb_nonzero*/
736 0, /*nb_invert*/
737 0, /*nb_lshift*/
738 0, /*nb_rshift*/
739 0, /*nb_and*/
740 0, /*nb_xor*/
741 0, /*nb_or*/
742 (coercion)0, /*nb_coerce*/
743 (unaryfunc)PySwigObject_long, /*nb_int*/
744 (unaryfunc)PySwigObject_long, /*nb_long*/
745 (unaryfunc)0, /*nb_float*/
746 (unaryfunc)PySwigObject_oct, /*nb_oct*/
747 (unaryfunc)PySwigObject_hex, /*nb_hex*/
748 #if PY_VERSION_HEX >= 0x02000000
749 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
750 #endif
751 };
752
753 static int type_init = 0;
754 static PyTypeObject PySwigObject_Type;
755
756 if (!type_init) {
757 PyTypeObject tmp = {
758 PyObject_HEAD_INIT(&PyType_Type)
759 0, /*ob_size*/
760 "PySwigObject", /*tp_name*/
761 sizeof(PySwigObject), /*tp_basicsize*/
762 0, /*tp_itemsize*/
763 /* methods */
764 (destructor)PySwigObject_dealloc, /*tp_dealloc*/
765 (printfunc)PySwigObject_print, /*tp_print*/
766 (getattrfunc)0, /*tp_getattr*/
767 (setattrfunc)0, /*tp_setattr*/
768 (cmpfunc)PySwigObject_compare, /*tp_compare*/
769 (reprfunc)PySwigObject_repr, /*tp_repr*/
770 &PySwigObject_as_number, /*tp_as_number*/
771 0, /*tp_as_sequence*/
772 0, /*tp_as_mapping*/
773 (hashfunc)0, /*tp_hash*/
774 (ternaryfunc)0, /*tp_call*/
775 (reprfunc)PySwigObject_str, /*tp_str*/
776 /* Space for future expansion */
777 0L,0L,0L,0L,
778 PySwigObject_Type__doc__, /* Documentation string */
779 #if PY_VERSION_HEX >= 0x02000000
780 0, /* tp_traverse */
781 0, /* tp_clear */
782 #endif
783 #if PY_VERSION_HEX >= 0x02010000
784 0, /* tp_richcompare */
785 0, /* tp_weaklistoffset */
786 #endif
787 #if PY_VERSION_HEX >= 0x02020000
788 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
789 #endif
790 #if PY_VERSION_HEX >= 0x02030000
791 0, /* tp_del */
792 #endif
793 #ifdef COUNT_ALLOCS
794 0,0,0,0 /* tp_alloc -> tp_next */
795 #endif
796 };
797
798 PySwigObject_Type = tmp;
799 type_init = 1;
800 }
801
802 return &PySwigObject_Type;
803 }
804
805 SWIGRUNTIME PyObject *
806 PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
807 {
808 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_GetType());
809 if (self == NULL) return NULL;
810 self->ptr = ptr;
811 self->desc = desc;
812 return (PyObject *)self;
813 }
814
815 SWIGRUNTIMEINLINE void *
816 PySwigObject_AsVoidPtr(PyObject *self)
817 {
818 return ((PySwigObject *)self)->ptr;
819 }
820
821 SWIGRUNTIMEINLINE const char *
822 PySwigObject_GetDesc(PyObject *self)
823 {
824 return ((PySwigObject *)self)->desc;
825 }
826
827 SWIGRUNTIMEINLINE int
828 PySwigObject_Check(PyObject *op) {
829 return ((op)->ob_type == PySwigObject_GetType())
830 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
831 }
832
833 /* -----------------------------------------------------------------------------
834 * Implements a simple Swig Packed type, and use it instead of string
835 * ----------------------------------------------------------------------------- */
836
837 typedef struct {
838 PyObject_HEAD
839 void *pack;
840 const char *desc;
841 size_t size;
842 } PySwigPacked;
843
844 SWIGRUNTIME int
845 PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
846 {
847 char result[SWIG_BUFFER_SIZE];
848 fputs("<Swig Packed ", fp);
849 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
850 fputs("at ", fp);
851 fputs(result, fp);
852 }
853 fputs(v->desc,fp);
854 fputs(">", fp);
855 return 0;
856 }
857
858 SWIGRUNTIME PyObject *
859 PySwigPacked_repr(PySwigPacked *v)
860 {
861 char result[SWIG_BUFFER_SIZE];
862 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
863 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
864 } else {
865 return PyString_FromFormat("<Swig Packed %s>", v->desc);
866 }
867 }
868
869 SWIGRUNTIME PyObject *
870 PySwigPacked_str(PySwigPacked *v)
871 {
872 char result[SWIG_BUFFER_SIZE];
873 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
874 return PyString_FromFormat("%s%s", result, v->desc);
875 } else {
876 return PyString_FromFormat("%s", v->desc);
877 }
878 }
879
880 SWIGRUNTIME int
881 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
882 {
883 int c = strcmp(v->desc, w->desc);
884 if (c) {
885 return c;
886 } else {
887 size_t i = v->size;
888 size_t j = w->size;
889 int s = (i < j) ? -1 : (i > j) ? 1 : 0;
890 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
891 }
892 }
893
894 SWIGRUNTIME void
895 PySwigPacked_dealloc(PySwigPacked *self)
896 {
897 free(self->pack);
898 PyObject_DEL(self);
899 }
900
901 SWIGRUNTIME PyTypeObject*
902 PySwigPacked_GetType() {
903 static char PySwigPacked_Type__doc__[] =
904 "Swig object carries a C/C++ instance pointer";
905 static int type_init = 0;
906
907 static PyTypeObject PySwigPacked_Type;
908 if (!type_init) {
909 PyTypeObject tmp = {
910 PyObject_HEAD_INIT(&PyType_Type)
911 0, /*ob_size*/
912 "PySwigPacked", /*tp_name*/
913 sizeof(PySwigPacked), /*tp_basicsize*/
914 0, /*tp_itemsize*/
915 /* methods */
916 (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
917 (printfunc)PySwigPacked_print, /*tp_print*/
918 (getattrfunc)0, /*tp_getattr*/
919 (setattrfunc)0, /*tp_setattr*/
920 (cmpfunc)PySwigPacked_compare, /*tp_compare*/
921 (reprfunc)PySwigPacked_repr, /*tp_repr*/
922 0, /*tp_as_number*/
923 0, /*tp_as_sequence*/
924 0, /*tp_as_mapping*/
925 (hashfunc)0, /*tp_hash*/
926 (ternaryfunc)0, /*tp_call*/
927 (reprfunc)PySwigPacked_str, /*tp_str*/
928 /* Space for future expansion */
929 0L,0L,0L,0L,
930 PySwigPacked_Type__doc__, /* Documentation string */
931 #if PY_VERSION_HEX >= 0x02000000
932 0, /* tp_traverse */
933 0, /* tp_clear */
934 #endif
935 #if PY_VERSION_HEX >= 0x02010000
936 0, /* tp_richcompare */
937 0, /* tp_weaklistoffset */
938 #endif
939 #if PY_VERSION_HEX >= 0x02020000
940 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
941 #endif
942 #if PY_VERSION_HEX >= 0x02030000
943 0, /* tp_del */
944 #endif
945 #ifdef COUNT_ALLOCS
946 0,0,0,0 /* tp_alloc -> tp_next */
947 #endif
948 };
949
950 PySwigPacked_Type = tmp;
951 type_init = 1;
952 }
953
954
955
956 return &PySwigPacked_Type;
957 }
958
959 SWIGRUNTIME PyObject *
960 PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
961 {
962 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_GetType());
963 if (self == NULL) {
964 return NULL;
965 } else {
966 void *pack = malloc(size);
967 memcpy(pack, ptr, size);
968 self->pack = pack;
969 self->desc = desc;
970 self->size = size;
971 return (PyObject *) self;
972 }
973 }
974
975 SWIGRUNTIMEINLINE const char *
976 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
977 {
978 PySwigPacked *self = (PySwigPacked *)obj;
979 if (self->size != size) return 0;
980 memcpy(ptr, self->pack, size);
981 return self->desc;
982 }
983
984 SWIGRUNTIMEINLINE const char *
985 PySwigPacked_GetDesc(PyObject *self)
986 {
987 return ((PySwigPacked *)self)->desc;
988 }
989
990 SWIGRUNTIMEINLINE int
991 PySwigPacked_Check(PyObject *op) {
992 return ((op)->ob_type == PySwigPacked_GetType())
993 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
994 }
995
996 #else
997 /* -----------------------------------------------------------------------------
998 * Use the old Python PyCObject instead of PySwigObject
999 * ----------------------------------------------------------------------------- */
1000
1001 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1002 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1003 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1004 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1005
1006 #endif
1007
1008 #endif
1009
1010 /* -----------------------------------------------------------------------------
1011 * errors manipulation
1012 * ----------------------------------------------------------------------------- */
1013
1014 SWIGRUNTIME void
1015 SWIG_Python_TypeError(const char *type, PyObject *obj)
1016 {
1017 if (type) {
1018 #if defined(SWIG_COBJECT_TYPES)
1019 if (PySwigObject_Check(obj)) {
1020 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1021 if (otype) {
1022 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1023 type, otype);
1024 return;
1025 }
1026 } else
1027 #endif
1028 {
1029 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1030 if (otype) {
1031 PyObject *str = PyObject_Str(obj);
1032 const char *cstr = str ? PyString_AsString(str) : 0;
1033 if (cstr) {
1034 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1035 type, otype, cstr);
1036 } else {
1037 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1038 type, otype);
1039 }
1040 Py_DECREF(str);
1041 return;
1042 }
1043 }
1044 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1045 } else {
1046 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1047 }
1048 }
1049
1050 SWIGRUNTIMEINLINE void
1051 SWIG_Python_NullRef(const char *type)
1052 {
1053 if (type) {
1054 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1055 } else {
1056 PyErr_Format(PyExc_TypeError, "null reference was received");
1057 }
1058 }
1059
1060 SWIGRUNTIME int
1061 SWIG_Python_AddErrMesg(const char* mesg, int infront)
1062 {
1063 if (PyErr_Occurred()) {
1064 PyObject *type = 0;
1065 PyObject *value = 0;
1066 PyObject *traceback = 0;
1067 PyErr_Fetch(&type, &value, &traceback);
1068 if (value) {
1069 PyObject *old_str = PyObject_Str(value);
1070 Py_XINCREF(type);
1071 PyErr_Clear();
1072 if (infront) {
1073 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1074 } else {
1075 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1076 }
1077 Py_DECREF(old_str);
1078 }
1079 return 1;
1080 } else {
1081 return 0;
1082 }
1083 }
1084
1085 SWIGRUNTIME int
1086 SWIG_Python_ArgFail(int argnum)
1087 {
1088 if (PyErr_Occurred()) {
1089 /* add information about failing argument */
1090 char mesg[256];
1091 sprintf(mesg, "argument number %d:", argnum);
1092 return SWIG_Python_AddErrMesg(mesg, 1);
1093 } else {
1094 return 0;
1095 }
1096 }
1097
1098
1099 /* -----------------------------------------------------------------------------
1100 * pointers/data manipulation
1101 * ----------------------------------------------------------------------------- */
1102
1103 /* Convert a pointer value */
1104 SWIGRUNTIME int
1105 SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
1106 swig_type_info *tc;
1107 const char *c = 0;
1108 static PyObject *SWIG_this = 0;
1109 int newref = 0;
1110 PyObject *pyobj = 0;
1111 void *vptr;
1112
1113 if (!obj) return 0;
1114 if (obj == Py_None) {
1115 *ptr = 0;
1116 return 0;
1117 }
1118
1119 #ifdef SWIG_COBJECT_TYPES
1120 if (!(PySwigObject_Check(obj))) {
1121 if (!SWIG_this)
1122 SWIG_this = PyString_FromString("this");
1123 pyobj = obj;
1124 obj = PyObject_GetAttr(obj,SWIG_this);
1125 newref = 1;
1126 if (!obj) goto type_error;
1127 if (!PySwigObject_Check(obj)) {
1128 Py_DECREF(obj);
1129 goto type_error;
1130 }
1131 }
1132 vptr = PySwigObject_AsVoidPtr(obj);
1133 c = (const char *) PySwigObject_GetDesc(obj);
1134 if (newref) { Py_DECREF(obj); }
1135 goto type_check;
1136 #else
1137 if (!(PyString_Check(obj))) {
1138 if (!SWIG_this)
1139 SWIG_this = PyString_FromString("this");
1140 pyobj = obj;
1141 obj = PyObject_GetAttr(obj,SWIG_this);
1142 newref = 1;
1143 if (!obj) goto type_error;
1144 if (!PyString_Check(obj)) {
1145 Py_DECREF(obj);
1146 goto type_error;
1147 }
1148 }
1149 c = PyString_AS_STRING(obj);
1150 /* Pointer values must start with leading underscore */
1151 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1152 if (newref) { Py_DECREF(obj); }
1153 if (!c) goto type_error;
1154 #endif
1155
1156 type_check:
1157
1158 if (ty) {
1159 tc = SWIG_TypeCheck(c,ty);
1160 if (!tc) goto type_error;
1161 *ptr = SWIG_TypeCast(tc,vptr);
1162 } else {
1163 *ptr = vptr;
1164 }
1165
1166 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1167 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1168 }
1169 return 0;
1170
1171 type_error:
1172 PyErr_Clear();
1173 if (pyobj && !obj) {
1174 obj = pyobj;
1175 if (PyCFunction_Check(obj)) {
1176 /* here we get the method pointer for callbacks */
1177 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1178 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1179 if (c) {
1180 c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name);
1181 if (!c) goto type_error;
1182 goto type_check;
1183 }
1184 }
1185 }
1186 if (flags & SWIG_POINTER_EXCEPTION) {
1187 if (ty) {
1188 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1189 } else {
1190 SWIG_Python_TypeError("C/C++ pointer", obj);
1191 }
1192 }
1193 return -1;
1194 }
1195
1196 /* Convert a pointer value, signal an exception on a type mismatch */
1197 SWIGRUNTIME void *
1198 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1199 void *result;
1200 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1201 PyErr_Clear();
1202 if (flags & SWIG_POINTER_EXCEPTION) {
1203 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1204 SWIG_Python_ArgFail(argnum);
1205 }
1206 }
1207 return result;
1208 }
1209
1210 /* Convert a packed value value */
1211 SWIGRUNTIME int
1212 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
1213 swig_type_info *tc;
1214 const char *c = 0;
1215
1216 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1217 c = PySwigPacked_UnpackData(obj, ptr, sz);
1218 #else
1219 if ((!obj) || (!PyString_Check(obj))) goto type_error;
1220 c = PyString_AS_STRING(obj);
1221 /* Pointer values must start with leading underscore */
1222 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1223 #endif
1224 if (!c) goto type_error;
1225 if (ty) {
1226 tc = SWIG_TypeCheck(c,ty);
1227 if (!tc) goto type_error;
1228 }
1229 return 0;
1230
1231 type_error:
1232 PyErr_Clear();
1233 if (flags & SWIG_POINTER_EXCEPTION) {
1234 if (ty) {
1235 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1236 } else {
1237 SWIG_Python_TypeError("C/C++ packed data", obj);
1238 }
1239 }
1240 return -1;
1241 }
1242
1243 /* Create a new array object */
1244 SWIGRUNTIME PyObject *
1245 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1246 PyObject *robj = 0;
1247 if (!ptr) {
1248 Py_INCREF(Py_None);
1249 return Py_None;
1250 }
1251 #ifdef SWIG_COBJECT_TYPES
1252 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1253 #else
1254 {
1255 char result[SWIG_BUFFER_SIZE];
1256 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1257 PyString_FromString(result) : 0;
1258 }
1259 #endif
1260 if (!robj || (robj == Py_None)) return robj;
1261 if (type->clientdata) {
1262 PyObject *inst;
1263 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1264 Py_DECREF(robj);
1265 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1266 Py_DECREF(args);
1267 if (inst) {
1268 if (own) {
1269 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1270 }
1271 robj = inst;
1272 }
1273 }
1274 return robj;
1275 }
1276
1277 SWIGRUNTIME PyObject *
1278 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1279 PyObject *robj = 0;
1280 if (!ptr) {
1281 Py_INCREF(Py_None);
1282 return Py_None;
1283 }
1284 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1285 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1286 #else
1287 {
1288 char result[SWIG_BUFFER_SIZE];
1289 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1290 PyString_FromString(result) : 0;
1291 }
1292 #endif
1293 return robj;
1294 }
1295
1296 /* -----------------------------------------------------------------------------*
1297 * Get type list
1298 * -----------------------------------------------------------------------------*/
1299
1300 #ifdef SWIG_LINK_RUNTIME
1301 void *SWIG_ReturnGlobalTypeList(void *);
1302 #endif
1303
1304 SWIGRUNTIME swig_type_info **
1305 SWIG_Python_GetTypeListHandle() {
1306 static void *type_pointer = (void *)0;
1307 /* first check if module already created */
1308 if (!type_pointer) {
1309 #ifdef SWIG_LINK_RUNTIME
1310 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
1311 #else
1312 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1313 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1314 if (PyErr_Occurred()) {
1315 PyErr_Clear();
1316 type_pointer = (void *)0;
1317 }
1318 }
1319 #endif
1320 return (swig_type_info **) type_pointer;
1321 }
1322
1323 /*
1324 Search for a swig_type_info structure
1325 */
1326 SWIGRUNTIMEINLINE swig_type_info *
1327 SWIG_Python_GetTypeList() {
1328 swig_type_info **tlh = SWIG_Python_GetTypeListHandle();
1329 return tlh ? *tlh : (swig_type_info*)0;
1330 }
1331
1332 #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList
1333
1334 #ifdef __cplusplus
1335 }
1336 #endif
1337
1338
1339 /* -------- TYPES TABLE (BEGIN) -------- */
1340
1341 #define SWIGTYPE_p_wxLayoutConstraints swig_types[0]
1342 #define SWIGTYPE_p_wxRealPoint swig_types[1]
1343 #define SWIGTYPE_p_wxSizerItem swig_types[2]
1344 #define SWIGTYPE_p_wxGBSizerItem swig_types[3]
1345 #define SWIGTYPE_p_wxScrollEvent swig_types[4]
1346 #define SWIGTYPE_p_wxEventLoop swig_types[5]
1347 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[6]
1348 #define SWIGTYPE_p_wxSizer swig_types[7]
1349 #define SWIGTYPE_p_wxBoxSizer swig_types[8]
1350 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[9]
1351 #define SWIGTYPE_p_wxGridBagSizer swig_types[10]
1352 #define SWIGTYPE_p_wxAcceleratorEntry swig_types[11]
1353 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[12]
1354 #define SWIGTYPE_p_wxEvent swig_types[13]
1355 #define SWIGTYPE_p_buffer swig_types[14]
1356 #define SWIGTYPE_p_wxMenu swig_types[15]
1357 #define SWIGTYPE_p_wxGridSizer swig_types[16]
1358 #define SWIGTYPE_p_wxFlexGridSizer swig_types[17]
1359 #define SWIGTYPE_p_wxInitDialogEvent swig_types[18]
1360 #define SWIGTYPE_p_wxItemContainer swig_types[19]
1361 #define SWIGTYPE_p_wxNcPaintEvent swig_types[20]
1362 #define SWIGTYPE_p_wxPaintEvent swig_types[21]
1363 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[22]
1364 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[23]
1365 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[24]
1366 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[25]
1367 #define SWIGTYPE_p_wxControl swig_types[26]
1368 #define SWIGTYPE_p_wxFont swig_types[27]
1369 #define SWIGTYPE_p_wxMenuBarBase swig_types[28]
1370 #define SWIGTYPE_p_wxSetCursorEvent swig_types[29]
1371 #define SWIGTYPE_p_wxFSFile swig_types[30]
1372 #define SWIGTYPE_p_wxCaret swig_types[31]
1373 #define SWIGTYPE_ptrdiff_t swig_types[32]
1374 #define SWIGTYPE_std__ptrdiff_t swig_types[33]
1375 #define SWIGTYPE_p_wxRegion swig_types[34]
1376 #define SWIGTYPE_p_wxPoint2D swig_types[35]
1377 #define SWIGTYPE_p_int swig_types[36]
1378 #define SWIGTYPE_p_wxSize swig_types[37]
1379 #define SWIGTYPE_p_wxDC swig_types[38]
1380 #define SWIGTYPE_p_wxPySizer swig_types[39]
1381 #define SWIGTYPE_p_wxVisualAttributes swig_types[40]
1382 #define SWIGTYPE_p_wxNotifyEvent swig_types[41]
1383 #define SWIGTYPE_p_wxPyEvent swig_types[42]
1384 #define SWIGTYPE_p_wxPropagationDisabler swig_types[43]
1385 #define SWIGTYPE_p_form_ops_t swig_types[44]
1386 #define SWIGTYPE_p_wxAppTraits swig_types[45]
1387 #define SWIGTYPE_p_wxArrayString swig_types[46]
1388 #define SWIGTYPE_p_wxShowEvent swig_types[47]
1389 #define SWIGTYPE_p_wxToolTip swig_types[48]
1390 #define SWIGTYPE_p_wxMoveEvent swig_types[49]
1391 #define SWIGTYPE_p_wxSizeEvent swig_types[50]
1392 #define SWIGTYPE_p_wxActivateEvent swig_types[51]
1393 #define SWIGTYPE_p_wxIconizeEvent swig_types[52]
1394 #define SWIGTYPE_p_wxMaximizeEvent swig_types[53]
1395 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[54]
1396 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[55]
1397 #define SWIGTYPE_p_wxIdleEvent swig_types[56]
1398 #define SWIGTYPE_p_wxDateEvent swig_types[57]
1399 #define SWIGTYPE_p_wxMenuItem swig_types[58]
1400 #define SWIGTYPE_p_wxStaticBox swig_types[59]
1401 #define SWIGTYPE_p_long swig_types[60]
1402 #define SWIGTYPE_p_wxDuplexMode swig_types[61]
1403 #define SWIGTYPE_p_wxTIFFHandler swig_types[62]
1404 #define SWIGTYPE_p_wxXPMHandler swig_types[63]
1405 #define SWIGTYPE_p_wxPNMHandler swig_types[64]
1406 #define SWIGTYPE_p_wxJPEGHandler swig_types[65]
1407 #define SWIGTYPE_p_wxPCXHandler swig_types[66]
1408 #define SWIGTYPE_p_wxGIFHandler swig_types[67]
1409 #define SWIGTYPE_p_wxPNGHandler swig_types[68]
1410 #define SWIGTYPE_p_wxANIHandler swig_types[69]
1411 #define SWIGTYPE_p_wxMemoryFSHandler swig_types[70]
1412 #define SWIGTYPE_p_wxZipFSHandler swig_types[71]
1413 #define SWIGTYPE_p_wxInternetFSHandler swig_types[72]
1414 #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[73]
1415 #define SWIGTYPE_p_wxEvtHandler swig_types[74]
1416 #define SWIGTYPE_p_wxCURHandler swig_types[75]
1417 #define SWIGTYPE_p_wxICOHandler swig_types[76]
1418 #define SWIGTYPE_p_wxBMPHandler swig_types[77]
1419 #define SWIGTYPE_p_wxImageHandler swig_types[78]
1420 #define SWIGTYPE_p_wxFileSystemHandler swig_types[79]
1421 #define SWIGTYPE_p_wxRect swig_types[80]
1422 #define SWIGTYPE_p_wxButton swig_types[81]
1423 #define SWIGTYPE_p_wxGBSpan swig_types[82]
1424 #define SWIGTYPE_p_wxPropagateOnce swig_types[83]
1425 #define SWIGTYPE_p_wxAcceleratorTable swig_types[84]
1426 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[85]
1427 #define SWIGTYPE_p_char swig_types[86]
1428 #define SWIGTYPE_p_wxGBPosition swig_types[87]
1429 #define SWIGTYPE_p_wxImage swig_types[88]
1430 #define SWIGTYPE_p_wxFrame swig_types[89]
1431 #define SWIGTYPE_p_wxScrollWinEvent swig_types[90]
1432 #define SWIGTYPE_p_wxPaperSize swig_types[91]
1433 #define SWIGTYPE_p_wxImageHistogram swig_types[92]
1434 #define SWIGTYPE_p_wxPoint swig_types[93]
1435 #define SWIGTYPE_p_wxCursor swig_types[94]
1436 #define SWIGTYPE_p_wxObject swig_types[95]
1437 #define SWIGTYPE_p_wxInputStream swig_types[96]
1438 #define SWIGTYPE_p_wxOutputStream swig_types[97]
1439 #define SWIGTYPE_p_wxPyInputStream swig_types[98]
1440 #define SWIGTYPE_p_wxDateTime swig_types[99]
1441 #define SWIGTYPE_p_wxKeyEvent swig_types[100]
1442 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[101]
1443 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[102]
1444 #define SWIGTYPE_p_unsigned_long swig_types[103]
1445 #define SWIGTYPE_p_wxWindow swig_types[104]
1446 #define SWIGTYPE_p_wxMenuBar swig_types[105]
1447 #define SWIGTYPE_p_wxFileSystem swig_types[106]
1448 #define SWIGTYPE_p_wxBitmap swig_types[107]
1449 #define SWIGTYPE_unsigned_int swig_types[108]
1450 #define SWIGTYPE_p_unsigned_int swig_types[109]
1451 #define SWIGTYPE_p_wxMenuEvent swig_types[110]
1452 #define SWIGTYPE_p_wxContextMenuEvent swig_types[111]
1453 #define SWIGTYPE_p_unsigned_char swig_types[112]
1454 #define SWIGTYPE_p_wxEraseEvent swig_types[113]
1455 #define SWIGTYPE_p_wxMouseEvent swig_types[114]
1456 #define SWIGTYPE_p_wxCloseEvent swig_types[115]
1457 #define SWIGTYPE_p_wxPyApp swig_types[116]
1458 #define SWIGTYPE_p_wxCommandEvent swig_types[117]
1459 #define SWIGTYPE_p_wxPyCommandEvent swig_types[118]
1460 #define SWIGTYPE_p_wxPyDropTarget swig_types[119]
1461 #define SWIGTYPE_p_wxQuantize swig_types[120]
1462 #define SWIGTYPE_p_wxFocusEvent swig_types[121]
1463 #define SWIGTYPE_p_wxChildFocusEvent swig_types[122]
1464 #define SWIGTYPE_p_wxDropFilesEvent swig_types[123]
1465 #define SWIGTYPE_p_wxControlWithItems swig_types[124]
1466 #define SWIGTYPE_p_wxColour swig_types[125]
1467 #define SWIGTYPE_p_wxValidator swig_types[126]
1468 #define SWIGTYPE_p_wxPyValidator swig_types[127]
1469 static swig_type_info *swig_types[129];
1470
1471 /* -------- TYPES TABLE (END) -------- */
1472
1473
1474 /*-----------------------------------------------
1475 @(target):= _core_.so
1476 ------------------------------------------------*/
1477 #define SWIG_init init_core_
1478
1479 #define SWIG_name "_core_"
1480
1481 #include "wx/wxPython/wxPython_int.h"
1482 #include "wx/wxPython/pyclasses.h"
1483
1484
1485 #ifndef wxPyUSE_EXPORT
1486 // Helper functions for dealing with SWIG objects and such. These are
1487 // located here so they know about the SWIG types and functions declared
1488 // in the wrapper code.
1489
1490 #include <wx/hashmap.h>
1491 WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap );
1492
1493
1494 // Maintains a hashmap of className to swig_type_info pointers. Given the
1495 // name of a class either looks up the type info in the cache, or scans the
1496 // SWIG tables for it.
1497 extern PyObject* wxPyPtrTypeMap;
1498 static
1499 swig_type_info* wxPyFindSwigType(const wxChar* className) {
1500
1501 static wxPyTypeInfoHashMap* typeInfoCache = NULL;
1502
1503 if (typeInfoCache == NULL)
1504 typeInfoCache = new wxPyTypeInfoHashMap;
1505
1506 wxString name(className);
1507 swig_type_info* swigType = (*typeInfoCache)[name];
1508
1509 if (! swigType) {
1510 // it wasn't in the cache, so look it up from SWIG
1511 name.Append(wxT(" *"));
1512 swigType = SWIG_TypeQuery(name.mb_str());
1513
1514 // if it still wasn't found, try looking for a mapped name
1515 if (!swigType) {
1516 PyObject* item;
1517 name = className;
1518
1519 if ((item = PyDict_GetItemString(wxPyPtrTypeMap,
1520 (char*)(const char*)name.mbc_str())) != NULL) {
1521 name = wxString(PyString_AsString(item), *wxConvCurrent);
1522 name.Append(wxT(" *"));
1523 swigType = SWIG_TypeQuery(name.mb_str());
1524 }
1525 }
1526 if (swigType) {
1527 // and add it to the map if found
1528 (*typeInfoCache)[className] = swigType;
1529 }
1530 }
1531 return swigType;
1532 }
1533
1534
1535 // Check if a class name is a type known to SWIG
1536 bool wxPyCheckSwigType(const wxChar* className) {
1537
1538 swig_type_info* swigType = wxPyFindSwigType(className);
1539 return swigType != NULL;
1540 }
1541
1542
1543 // Given a pointer to a C++ object and a class name, construct a Python proxy
1544 // object for it.
1545 PyObject* wxPyConstructObject(void* ptr,
1546 const wxChar* className,
1547 int setThisOwn) {
1548
1549 swig_type_info* swigType = wxPyFindSwigType(className);
1550 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject"));
1551
1552 return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn);
1553 }
1554
1555
1556 // Extract a pointer to the wrapped C++ object from a Python proxy object.
1557 // Ensures that the proxy object is of the specified (or derived) type. If
1558 // not able to perform the conversion then a Python exception is set and the
1559 // error should be handled properly in the caller. Returns True on success.
1560 bool wxPyConvertSwigPtr(PyObject* obj, void **ptr,
1561 const wxChar* className) {
1562
1563 swig_type_info* swigType = wxPyFindSwigType(className);
1564 wxCHECK_MSG(swigType != NULL, false, wxT("Unknown type in wxPyConvertSwigPtr"));
1565
1566 return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1;
1567 }
1568
1569
1570 // Make a SWIGified pointer object suitable for a .this attribute
1571 PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) {
1572
1573 PyObject* robj = NULL;
1574
1575 swig_type_info* swigType = wxPyFindSwigType(className);
1576 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr"));
1577
1578 #ifdef SWIG_COBJECT_TYPES
1579 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)swigType->name);
1580 #else
1581 {
1582 char result[1024];
1583 robj = SWIG_PackVoidPtr(result, ptr, swigType->name, sizeof(result)) ?
1584 PyString_FromString(result) : 0;
1585 }
1586 #endif
1587
1588 return robj;
1589 }
1590
1591
1592
1593
1594 // Export a C API in a struct. Other modules will be able to load this from
1595 // the wx._core_ module and will then have safe access to these functions,
1596 // even if they are located in another shared library.
1597 static wxPyCoreAPI API = {
1598
1599 wxPyCheckSwigType,
1600 wxPyConstructObject,
1601 wxPyConvertSwigPtr,
1602 wxPyMakeSwigPtr,
1603
1604 wxPyBeginAllowThreads,
1605 wxPyEndAllowThreads,
1606 wxPyBeginBlockThreads,
1607 wxPyEndBlockThreads,
1608
1609 wxPy_ConvertList,
1610
1611 wxString_in_helper,
1612 Py2wxString,
1613 wx2PyString,
1614
1615 byte_LIST_helper,
1616 int_LIST_helper,
1617 long_LIST_helper,
1618 string_LIST_helper,
1619 wxPoint_LIST_helper,
1620 wxBitmap_LIST_helper,
1621 wxString_LIST_helper,
1622 wxAcceleratorEntry_LIST_helper,
1623
1624 wxSize_helper,
1625 wxPoint_helper,
1626 wxRealPoint_helper,
1627 wxRect_helper,
1628 wxColour_helper,
1629 wxPoint2D_helper,
1630
1631 wxPySimple_typecheck,
1632 wxColour_typecheck,
1633
1634 wxPyCBH_setCallbackInfo,
1635 wxPyCBH_findCallback,
1636 wxPyCBH_callCallback,
1637 wxPyCBH_callCallbackObj,
1638 wxPyCBH_delete,
1639
1640 wxPyMake_wxObject,
1641 wxPyMake_wxSizer,
1642 wxPyPtrTypeMap_Add,
1643 wxPy2int_seq_helper,
1644 wxPy4int_seq_helper,
1645 wxArrayString2PyList_helper,
1646 wxArrayInt2PyList_helper,
1647
1648 wxPyClientData_dtor,
1649 wxPyUserData_dtor,
1650 wxPyOORClientData_dtor,
1651
1652 wxPyCBInputStream_create,
1653 wxPyCBInputStream_copy,
1654
1655 wxPyInstance_Check,
1656 wxPySwigInstance_Check,
1657
1658 wxPyCheckForApp
1659
1660 };
1661
1662 #endif
1663
1664
1665 #if !WXWIN_COMPATIBILITY_2_4
1666 #define wxHIDE_READONLY 0
1667 #endif
1668
1669
1670 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1671 #define SWIG_From_int PyInt_FromLong
1672 /*@@*/
1673
1674
1675 #if ! wxUSE_HOTKEY
1676 enum wxHotkeyModifier
1677 {
1678 wxMOD_NONE = 0,
1679 wxMOD_ALT = 1,
1680 wxMOD_CONTROL = 2,
1681 wxMOD_SHIFT = 4,
1682 wxMOD_WIN = 8
1683 };
1684 #define wxEVT_HOTKEY 9999
1685 #endif
1686
1687 static const wxString wxPyEmptyString(wxEmptyString);
1688 static wxString wxObject_GetClassName(wxObject *self){
1689 return self->GetClassInfo()->GetClassName();
1690 }
1691 static void wxObject_Destroy(wxObject *self){
1692 delete self;
1693 }
1694
1695 #ifndef __WXMAC__
1696 #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW
1697 #endif
1698
1699
1700 #include <limits.h>
1701
1702
1703 SWIGINTERN int
1704 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1705 const char *errmsg)
1706 {
1707 if (value < min_value) {
1708 if (errmsg) {
1709 PyErr_Format(PyExc_OverflowError,
1710 "value %ld is less than '%s' minimum %ld",
1711 value, errmsg, min_value);
1712 }
1713 return 0;
1714 } else if (value > max_value) {
1715 if (errmsg) {
1716 PyErr_Format(PyExc_OverflowError,
1717 "value %ld is greater than '%s' maximum %ld",
1718 value, errmsg, max_value);
1719 }
1720 return 0;
1721 }
1722 return 1;
1723 }
1724
1725
1726 SWIGINTERN int
1727 SWIG_AsVal_long(PyObject* obj, long* val)
1728 {
1729 if (PyNumber_Check(obj)) {
1730 if (val) *val = PyInt_AsLong(obj);
1731 return 1;
1732 }
1733 else {
1734 SWIG_type_error("number", obj);
1735 }
1736 return 0;
1737 }
1738
1739
1740 #if INT_MAX != LONG_MAX
1741 SWIGINTERN int
1742 SWIG_AsVal_int(PyObject *obj, int *val)
1743 {
1744 const char* errmsg = val ? "int" : (char*)0;
1745 long v;
1746 if (SWIG_AsVal_long(obj, &v)) {
1747 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
1748 if (val) *val = (int)(v);
1749 return 1;
1750 } else {
1751 return 0;
1752 }
1753 } else {
1754 PyErr_Clear();
1755 }
1756 if (val) {
1757 SWIG_type_error(errmsg, obj);
1758 }
1759 return 0;
1760 }
1761 #else
1762 SWIGINTERNSHORT int
1763 SWIG_AsVal_int(PyObject *obj, int *val)
1764 {
1765 return SWIG_AsVal_long(obj,(long*)val);
1766 }
1767 #endif
1768
1769
1770 SWIGINTERNSHORT int
1771 SWIG_As_int(PyObject* obj)
1772 {
1773 int v;
1774 if (!SWIG_AsVal_int(obj, &v)) {
1775 /*
1776 this is needed to make valgrind/purify happier.
1777 */
1778 memset((void*)&v, 0, sizeof(int));
1779 }
1780 return v;
1781 }
1782
1783
1784 SWIGINTERNSHORT int
1785 SWIG_Check_int(PyObject* obj)
1786 {
1787 return SWIG_AsVal_int(obj, (int*)0);
1788 }
1789
1790 static PyObject *wxSize_Get(wxSize *self){
1791 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1792 PyObject* tup = PyTuple_New(2);
1793 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
1794 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
1795 wxPyEndBlockThreads(blocked);
1796 return tup;
1797 }
1798
1799 SWIGINTERN int
1800 SWIG_AsVal_double(PyObject *obj, double* val)
1801 {
1802 if (PyNumber_Check(obj)) {
1803 if (val) *val = PyFloat_AsDouble(obj);
1804 return 1;
1805 }
1806 else {
1807 SWIG_type_error("number", obj);
1808 }
1809 return 0;
1810 }
1811
1812
1813 SWIGINTERNSHORT double
1814 SWIG_As_double(PyObject* obj)
1815 {
1816 double v;
1817 if (!SWIG_AsVal_double(obj, &v)) {
1818 /*
1819 this is needed to make valgrind/purify happier.
1820 */
1821 memset((void*)&v, 0, sizeof(double));
1822 }
1823 return v;
1824 }
1825
1826
1827 SWIGINTERNSHORT int
1828 SWIG_Check_double(PyObject* obj)
1829 {
1830 return SWIG_AsVal_double(obj, (double*)0);
1831 }
1832
1833
1834 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1835 #define SWIG_From_double PyFloat_FromDouble
1836 /*@@*/
1837
1838 static void wxRealPoint_Set(wxRealPoint *self,double x,double y){
1839 self->x = x;
1840 self->y = y;
1841 }
1842 static PyObject *wxRealPoint_Get(wxRealPoint *self){
1843 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1844 PyObject* tup = PyTuple_New(2);
1845 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x));
1846 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y));
1847 wxPyEndBlockThreads(blocked);
1848 return tup;
1849 }
1850
1851 SWIGINTERNSHORT long
1852 SWIG_As_long(PyObject* obj)
1853 {
1854 long v;
1855 if (!SWIG_AsVal_long(obj, &v)) {
1856 /*
1857 this is needed to make valgrind/purify happier.
1858 */
1859 memset((void*)&v, 0, sizeof(long));
1860 }
1861 return v;
1862 }
1863
1864
1865 SWIGINTERNSHORT int
1866 SWIG_Check_long(PyObject* obj)
1867 {
1868 return SWIG_AsVal_long(obj, (long*)0);
1869 }
1870
1871 static void wxPoint_Set(wxPoint *self,long x,long y){
1872 self->x = x;
1873 self->y = y;
1874 }
1875 static PyObject *wxPoint_Get(wxPoint *self){
1876 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1877 PyObject* tup = PyTuple_New(2);
1878 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
1879 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
1880 wxPyEndBlockThreads(blocked);
1881 return tup;
1882 }
1883 static void wxRect_Set(wxRect *self,int x=0,int y=0,int width=0,int height=0){
1884 self->x = x;
1885 self->y = y;
1886 self->width = width;
1887 self->height = height;
1888 }
1889 static PyObject *wxRect_Get(wxRect *self){
1890 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1891 PyObject* tup = PyTuple_New(4);
1892 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
1893 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
1894 PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width));
1895 PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height));
1896 wxPyEndBlockThreads(blocked);
1897 return tup;
1898 }
1899
1900 PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) {
1901 wxRegion reg1(*r1);
1902 wxRegion reg2(*r2);
1903 wxRect dest(0,0,0,0);
1904 PyObject* obj;
1905
1906 reg1.Intersect(reg2);
1907 dest = reg1.GetBox();
1908
1909 if (dest != wxRect(0,0,0,0)) {
1910 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1911 wxRect* newRect = new wxRect(dest);
1912 obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), true);
1913 wxPyEndBlockThreads(blocked);
1914 return obj;
1915 }
1916 Py_INCREF(Py_None);
1917 return Py_None;
1918 }
1919
1920
1921 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
1922 PyObject* o2;
1923 PyObject* o3;
1924
1925 if (!target) {
1926 target = o;
1927 } else if (target == Py_None) {
1928 Py_DECREF(Py_None);
1929 target = o;
1930 } else {
1931 if (!PyTuple_Check(target)) {
1932 o2 = target;
1933 target = PyTuple_New(1);
1934 PyTuple_SetItem(target, 0, o2);
1935 }
1936 o3 = PyTuple_New(1);
1937 PyTuple_SetItem(o3, 0, o);
1938
1939 o2 = target;
1940 target = PySequence_Concat(o2, o3);
1941 Py_DECREF(o2);
1942 Py_DECREF(o3);
1943 }
1944 return target;
1945 }
1946
1947
1948 static void wxPoint2D_Set(wxPoint2D *self,double x=0,double y=0){
1949 self->m_x = x;
1950 self->m_y = y;
1951 }
1952 static PyObject *wxPoint2D_Get(wxPoint2D *self){
1953 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1954 PyObject* tup = PyTuple_New(2);
1955 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
1956 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
1957 wxPyEndBlockThreads(blocked);
1958 return tup;
1959 }
1960
1961 #include "wx/wxPython/pyistream.h"
1962
1963 static wxPyInputStream *new_wxPyInputStream(PyObject *p){
1964 wxInputStream* wxis = wxPyCBInputStream::create(p);
1965 if (wxis)
1966 return new wxPyInputStream(wxis);
1967 else
1968 return NULL;
1969 }
1970
1971 SWIGINTERNSHORT PyObject*
1972 SWIG_From_char(char c)
1973 {
1974 return PyString_FromStringAndSize(&c,1);
1975 }
1976
1977
1978 SWIGINTERNSHORT PyObject*
1979 SWIG_From_unsigned_SS_long(unsigned long value)
1980 {
1981 return (value > LONG_MAX) ?
1982 PyLong_FromUnsignedLong(value)
1983 : PyInt_FromLong((long)(value));
1984 }
1985
1986
1987 /* returns SWIG_OLDOBJ if the input is a raw char*, SWIG_PYSTR if is a PyString */
1988 SWIGINTERN int
1989 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize)
1990 {
1991 static swig_type_info* pchar_info = 0;
1992 char* vptr = 0;
1993 if (!pchar_info) pchar_info = SWIG_TypeQuery("char *");
1994 if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_info, 0) != -1) {
1995 if (cptr) *cptr = vptr;
1996 if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
1997 return SWIG_OLDOBJ;
1998 } else {
1999 PyErr_Clear();
2000 if (PyString_Check(obj)) {
2001 if (cptr) {
2002 *cptr = PyString_AS_STRING(obj);
2003 if (psize) {
2004 *psize = PyString_GET_SIZE(obj) + 1;
2005 }
2006 }
2007 return SWIG_PYSTR;
2008 }
2009 }
2010 if (cptr) {
2011 SWIG_type_error("char *", obj);
2012 }
2013 return 0;
2014 }
2015
2016
2017 SWIGINTERN int
2018 SWIG_AsCharArray(PyObject *obj, char *val, size_t size)
2019 {
2020 char* cptr; size_t csize;
2021 if (SWIG_AsCharPtrAndSize(obj, &cptr, &csize)) {
2022 /* in C you can do:
2023
2024 char x[5] = "hello";
2025
2026 ie, assing the array using an extra '0' char.
2027 */
2028 if ((csize == size + 1) && !(cptr[csize-1])) --csize;
2029 if (csize <= size) {
2030 if (val) {
2031 if (csize) memcpy(val, cptr, csize);
2032 if (csize < size) memset(val + csize, 0, size - csize);
2033 }
2034 return 1;
2035 }
2036 }
2037 if (val) {
2038 PyErr_Format(PyExc_TypeError,
2039 "a char array of maximum size %lu is expected",
2040 (unsigned long) size);
2041 }
2042 return 0;
2043 }
2044
2045
2046 SWIGINTERN int
2047 SWIG_AsVal_char(PyObject *obj, char *val)
2048 {
2049 const char* errmsg = val ? "char" : (char*)0;
2050 long v;
2051 if (SWIG_AsVal_long(obj, &v)) {
2052 if (SWIG_CheckLongInRange(v, CHAR_MIN,CHAR_MAX, errmsg)) {
2053 if (val) *val = (char)(v);
2054 return 1;
2055 } else {
2056 return 0;
2057 }
2058 } else {
2059 PyErr_Clear();
2060 return SWIG_AsCharArray(obj, val, 1);
2061 }
2062 }
2063
2064
2065 SWIGINTERNSHORT char
2066 SWIG_As_char(PyObject* obj)
2067 {
2068 char v;
2069 if (!SWIG_AsVal_char(obj, &v)) {
2070 /*
2071 this is needed to make valgrind/purify happier.
2072 */
2073 memset((void*)&v, 0, sizeof(char));
2074 }
2075 return v;
2076 }
2077
2078
2079 SWIGINTERNSHORT int
2080 SWIG_Check_char(PyObject* obj)
2081 {
2082 return SWIG_AsVal_char(obj, (char*)0);
2083 }
2084
2085
2086 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
2087 #define SWIG_From_long PyInt_FromLong
2088 /*@@*/
2089
2090 static void wxOutputStream_write(wxOutputStream *self,PyObject *obj){
2091 // We use only strings for the streams, not unicode
2092 PyObject* str = PyObject_Str(obj);
2093 if (! str) {
2094 PyErr_SetString(PyExc_TypeError, "Unable to convert to string");
2095 return;
2096 }
2097 self->Write(PyString_AS_STRING(str),
2098 PyString_GET_SIZE(str));
2099 Py_DECREF(str);
2100 }
2101
2102 #include "wx/wxPython/pyistream.h"
2103
2104
2105 class wxPyFileSystemHandler : public wxFileSystemHandler
2106 {
2107 public:
2108 wxPyFileSystemHandler() : wxFileSystemHandler() {}
2109
2110 DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen);
2111 DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile);
2112 DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst);
2113 DEC_PYCALLBACK_STRING__pure(FindNext);
2114
2115 wxString GetProtocol(const wxString& location) {
2116 return wxFileSystemHandler::GetProtocol(location);
2117 }
2118
2119 wxString GetLeftLocation(const wxString& location) {
2120 return wxFileSystemHandler::GetLeftLocation(location);
2121 }
2122
2123 wxString GetAnchor(const wxString& location) {
2124 return wxFileSystemHandler::GetAnchor(location);
2125 }
2126
2127 wxString GetRightLocation(const wxString& location) {
2128 return wxFileSystemHandler::GetRightLocation(location);
2129 }
2130
2131 wxString GetMimeTypeFromExt(const wxString& location) {
2132 return wxFileSystemHandler::GetMimeTypeFromExt(location);
2133 }
2134
2135 PYPRIVATE;
2136 };
2137
2138
2139 IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen);
2140 IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile);
2141 IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst);
2142 IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext);
2143
2144
2145 SWIGINTERN int
2146 SWIG_AsVal_bool(PyObject *obj, bool *val)
2147 {
2148 if (obj == Py_True) {
2149 if (val) *val = true;
2150 return 1;
2151 }
2152 if (obj == Py_False) {
2153 if (val) *val = false;
2154 return 1;
2155 }
2156 int res = 0;
2157 if (SWIG_AsVal_int(obj, &res)) {
2158 if (val) *val = res ? true : false;
2159 return 1;
2160 } else {
2161 PyErr_Clear();
2162 }
2163 if (val) {
2164 SWIG_type_error("bool", obj);
2165 }
2166 return 0;
2167 }
2168
2169
2170 SWIGINTERNSHORT bool
2171 SWIG_As_bool(PyObject* obj)
2172 {
2173 bool v;
2174 if (!SWIG_AsVal_bool(obj, &v)) {
2175 /*
2176 this is needed to make valgrind/purify happier.
2177 */
2178 memset((void*)&v, 0, sizeof(bool));
2179 }
2180 return v;
2181 }
2182
2183
2184 SWIGINTERNSHORT int
2185 SWIG_Check_bool(PyObject* obj)
2186 {
2187 return SWIG_AsVal_bool(obj, (bool*)0);
2188 }
2189
2190 static wxString FileSystem_URLToFileName(wxString const &url){
2191 wxFileName fname = wxFileSystem::URLToFileName(url);
2192 return fname.GetFullPath();
2193 }
2194
2195 void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename,
2196 wxImage& image,
2197 long type) {
2198 wxMemoryFSHandler::AddFile(filename, image, type);
2199 }
2200
2201 void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename,
2202 const wxBitmap& bitmap,
2203 long type) {
2204 wxMemoryFSHandler::AddFile(filename, bitmap, type);
2205 }
2206
2207 void __wxMemoryFSHandler_AddFile_Data(const wxString& filename,
2208 PyObject* data) {
2209 if (! PyString_Check(data)) {
2210 wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError,
2211 "Expected string object"));
2212 return;
2213 }
2214
2215 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2216 void* ptr = (void*)PyString_AsString(data);
2217 size_t size = PyString_Size(data);
2218 wxPyEndBlockThreads(blocked);
2219
2220 wxMemoryFSHandler::AddFile(filename, ptr, size);
2221 }
2222
2223
2224 #include "wx/wxPython/pyistream.h"
2225
2226
2227 SWIGINTERN int
2228 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
2229 {
2230 long v = 0;
2231 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2232 SWIG_type_error("unsigned number", obj);
2233 }
2234 else if (val)
2235 *val = (unsigned long)v;
2236 return 1;
2237 }
2238
2239
2240 SWIGINTERNSHORT int
2241 SWIG_CheckUnsignedLongInRange(unsigned long value,
2242 unsigned long max_value,
2243 const char *errmsg)
2244 {
2245 if (value > max_value) {
2246 if (errmsg) {
2247 PyErr_Format(PyExc_OverflowError,
2248 "value %lu is greater than '%s' minimum %lu",
2249 value, errmsg, max_value);
2250 }
2251 return 0;
2252 }
2253 return 1;
2254 }
2255
2256
2257 SWIGINTERN int
2258 SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val)
2259 {
2260 const char* errmsg = val ? "unsigned char" : (char*)0;
2261 unsigned long v;
2262 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
2263 if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) {
2264 if (val) *val = (unsigned char)(v);
2265 return 1;
2266 } else {
2267 return 0;
2268 }
2269 } else {
2270 PyErr_Clear();
2271 }
2272 if (val) {
2273 SWIG_type_error(errmsg, obj);
2274 }
2275 return 0;
2276 }
2277
2278
2279 SWIGINTERNSHORT unsigned char
2280 SWIG_As_unsigned_SS_char(PyObject* obj)
2281 {
2282 unsigned char v;
2283 if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) {
2284 /*
2285 this is needed to make valgrind/purify happier.
2286 */
2287 memset((void*)&v, 0, sizeof(unsigned char));
2288 }
2289 return v;
2290 }
2291
2292
2293 SWIGINTERNSHORT int
2294 SWIG_Check_unsigned_SS_char(PyObject* obj)
2295 {
2296 return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0);
2297 }
2298
2299
2300 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
2301 #define SWIG_From_unsigned_SS_char PyInt_FromLong
2302 /*@@*/
2303
2304
2305
2306 SWIGINTERNSHORT unsigned long
2307 SWIG_As_unsigned_SS_long(PyObject* obj)
2308 {
2309 unsigned long v;
2310 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
2311 /*
2312 this is needed to make valgrind/purify happier.
2313 */
2314 memset((void*)&v, 0, sizeof(unsigned long));
2315 }
2316 return v;
2317 }
2318
2319
2320 SWIGINTERNSHORT int
2321 SWIG_Check_unsigned_SS_long(PyObject* obj)
2322 {
2323 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
2324 }
2325
2326 static unsigned long wxImageHistogram_GetCount(wxImageHistogram *self,unsigned long key){
2327 wxImageHistogramEntry e = (*self)[key];
2328 return e.value;
2329 }
2330 static unsigned long wxImageHistogram_GetCountRGB(wxImageHistogram *self,unsigned char r,unsigned char g,unsigned char b){
2331 unsigned long key = wxImageHistogram::MakeKey(r, g, b);
2332 wxImageHistogramEntry e = (*self)[key];
2333 return e.value;
2334 }
2335 static unsigned long wxImageHistogram_GetCountColour(wxImageHistogram *self,wxColour const &colour){
2336 unsigned long key = wxImageHistogram::MakeKey(colour.Red(),
2337 colour.Green(),
2338 colour.Blue());
2339 wxImageHistogramEntry e = (*self)[key];
2340 return e.value;
2341 }
2342
2343 typedef unsigned char* buffer;
2344
2345 static wxImage *new_wxImage(int width=0,int height=0,bool clear=true){
2346 if (width > 0 && height > 0)
2347 return new wxImage(width, height, clear);
2348 else
2349 return new wxImage;
2350 }
2351 static wxImage *new_wxImage(wxBitmap const &bitmap){
2352 return new wxImage(bitmap.ConvertToImage());
2353 }
2354 static wxImage *new_wxImage(int width,int height,buffer data,int DATASIZE){
2355 if (DATASIZE != width*height*3) {
2356 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2357 return NULL;
2358 }
2359
2360 // Copy the source data so the wxImage can clean it up later
2361 buffer copy = (buffer)malloc(DATASIZE);
2362 if (copy == NULL) {
2363 wxPyBLOCK_THREADS(PyErr_NoMemory());
2364 return NULL;
2365 }
2366 memcpy(copy, data, DATASIZE);
2367 return new wxImage(width, height, copy, false);
2368 }
2369 static wxImage *new_wxImage(int width,int height,buffer data,int DATASIZE,buffer alpha,int ALPHASIZE){
2370 if (DATASIZE != width*height*3) {
2371 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2372 return NULL;
2373 }
2374 if (ALPHASIZE != width*height) {
2375 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2376 return NULL;
2377 }
2378
2379 // Copy the source data so the wxImage can clean it up later
2380 buffer dcopy = (buffer)malloc(DATASIZE);
2381 if (dcopy == NULL) {
2382 wxPyBLOCK_THREADS(PyErr_NoMemory());
2383 return NULL;
2384 }
2385 memcpy(dcopy, data, DATASIZE);
2386
2387 buffer acopy = (buffer)malloc(ALPHASIZE);
2388 if (acopy == NULL) {
2389 wxPyBLOCK_THREADS(PyErr_NoMemory());
2390 return NULL;
2391 }
2392 memcpy(acopy, alpha, ALPHASIZE);
2393
2394 return new wxImage(width, height, dcopy, acopy, false);
2395 }
2396 static wxSize wxImage_GetSize(wxImage *self){
2397 wxSize size(self->GetWidth(), self->GetHeight());
2398 return size;
2399 }
2400 static PyObject *wxImage_GetData(wxImage *self){
2401 buffer data = self->GetData();
2402 int len = self->GetWidth() * self->GetHeight() * 3;
2403 PyObject* rv;
2404 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len));
2405 return rv;
2406 }
2407 static void wxImage_SetData(wxImage *self,buffer data,int DATASIZE){
2408 if (DATASIZE != self->GetWidth() * self->GetHeight() * 3) {
2409 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2410 return;
2411 }
2412 buffer copy = (buffer)malloc(DATASIZE);
2413 if (copy == NULL) {
2414 wxPyBLOCK_THREADS(PyErr_NoMemory());
2415 return;
2416 }
2417 memcpy(copy, data, DATASIZE);
2418 self->SetData(copy, false);
2419 // wxImage takes ownership of copy...
2420 }
2421 static PyObject *wxImage_GetDataBuffer(wxImage *self){
2422 buffer data = self->GetData();
2423 int len = self->GetWidth() * self->GetHeight() * 3;
2424 PyObject* rv;
2425 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
2426 return rv;
2427 }
2428 static void wxImage_SetDataBuffer(wxImage *self,buffer data,int DATASIZE){
2429 if (DATASIZE != self->GetWidth() * self->GetHeight() * 3) {
2430 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2431 return;
2432 }
2433 self->SetData(data, true);
2434 }
2435 static PyObject *wxImage_GetAlphaData(wxImage *self){
2436 buffer data = self->GetAlpha();
2437 if (! data) {
2438 RETURN_NONE();
2439 } else {
2440 int len = self->GetWidth() * self->GetHeight();
2441 PyObject* rv;
2442 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) );
2443 return rv;
2444 }
2445 }
2446 static void wxImage_SetAlphaData(wxImage *self,buffer alpha,int ALPHASIZE){
2447 if (ALPHASIZE != self->GetWidth() * self->GetHeight()) {
2448 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2449 return;
2450 }
2451 buffer acopy = (buffer)malloc(ALPHASIZE);
2452 if (acopy == NULL) {
2453 wxPyBLOCK_THREADS(PyErr_NoMemory());
2454 return;
2455 }
2456 memcpy(acopy, alpha, ALPHASIZE);
2457 self->SetAlpha(acopy, false);
2458 // wxImage takes ownership of acopy...
2459 }
2460 static PyObject *wxImage_GetAlphaBuffer(wxImage *self){
2461 buffer data = self->GetAlpha();
2462 int len = self->GetWidth() * self->GetHeight();
2463 PyObject* rv;
2464 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
2465 return rv;
2466 }
2467 static void wxImage_SetAlphaBuffer(wxImage *self,buffer alpha,int ALPHASIZE){
2468 if (ALPHASIZE != self->GetWidth() * self->GetHeight()) {
2469 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2470 return;
2471 }
2472 self->SetAlpha(alpha, true);
2473 }
2474 static wxBitmap wxImage_ConvertToBitmap(wxImage *self,int depth=-1){
2475 wxBitmap bitmap(*self, depth);
2476 return bitmap;
2477 }
2478 static wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){
2479 wxImage mono = self->ConvertToMono( red, green, blue );
2480 wxBitmap bitmap( mono, 1 );
2481 return bitmap;
2482 }
2483 static const wxString wxPyIMAGE_OPTION_FILENAME(wxIMAGE_OPTION_FILENAME);
2484 static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT);
2485 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X);
2486 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
2487 static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION);
2488 static const wxString wxPyIMAGE_OPTION_RESOLUTIONX(wxIMAGE_OPTION_RESOLUTIONX);
2489 static const wxString wxPyIMAGE_OPTION_RESOLUTIONY(wxIMAGE_OPTION_RESOLUTIONY);
2490 static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT);
2491 static const wxString wxPyIMAGE_OPTION_QUALITY(wxIMAGE_OPTION_QUALITY);
2492 static const wxString wxPyIMAGE_OPTION_BITSPERSAMPLE(wxIMAGE_OPTION_BITSPERSAMPLE);
2493 static const wxString wxPyIMAGE_OPTION_SAMPLESPERPIXEL(wxIMAGE_OPTION_SAMPLESPERPIXEL);
2494 static const wxString wxPyIMAGE_OPTION_COMPRESSION(wxIMAGE_OPTION_COMPRESSION);
2495 static const wxString wxPyIMAGE_OPTION_IMAGEDESCRIPTOR(wxIMAGE_OPTION_IMAGEDESCRIPTOR);
2496 static const wxString wxPyIMAGE_OPTION_PNG_FORMAT(wxIMAGE_OPTION_PNG_FORMAT);
2497 static const wxString wxPyIMAGE_OPTION_PNG_BITDEPTH(wxIMAGE_OPTION_PNG_BITDEPTH);
2498
2499 #include <wx/quantize.h>
2500
2501 static bool Quantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours=236,int flags=wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE){
2502 return wxQuantize::Quantize(src, dest,
2503 //NULL, // palette
2504 desiredNoColours,
2505 NULL, // eightBitData
2506 flags);
2507 }
2508 static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){
2509 if (PyCallable_Check(func)) {
2510 self->Connect(id, lastId, eventType,
2511 (wxObjectEventFunction) &wxPyCallback::EventThunker,
2512 new wxPyCallback(func));
2513 }
2514 else if (func == Py_None) {
2515 self->Disconnect(id, lastId, eventType,
2516 (wxObjectEventFunction)
2517 &wxPyCallback::EventThunker);
2518 }
2519 else {
2520 wxPyBLOCK_THREADS(
2521 PyErr_SetString(PyExc_TypeError, "Expected callable object or None."));
2522 }
2523 }
2524 static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId=-1,wxEventType eventType=wxEVT_NULL){
2525 return self->Disconnect(id, lastId, eventType,
2526 (wxObjectEventFunction)
2527 &wxPyCallback::EventThunker);
2528 }
2529 static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self,bool incref=true){
2530 if (_self && _self != Py_None) {
2531 self->SetClientObject(new wxPyOORClientData(_self, incref));
2532 }
2533 else {
2534 wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject();
2535 if (data) {
2536 self->SetClientObject(NULL); // This will delete it too
2537 }
2538 }
2539 }
2540
2541 static int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){
2542 #if wxUSE_UNICODE
2543 return self->GetUnicodeKey();
2544 #else
2545 return 0;
2546 #endif
2547 }
2548
2549 #if UINT_MAX < LONG_MAX
2550 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
2551 #define SWIG_From_unsigned_SS_int SWIG_From_long
2552 /*@@*/
2553 #else
2554 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
2555 #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
2556 /*@@*/
2557 #endif
2558
2559
2560 #if UINT_MAX != ULONG_MAX
2561 SWIGINTERN int
2562 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
2563 {
2564 const char* errmsg = val ? "unsigned int" : (char*)0;
2565 unsigned long v;
2566 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
2567 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
2568 if (val) *val = (unsigned int)(v);
2569 return 1;
2570 }
2571 } else {
2572 PyErr_Clear();
2573 }
2574 if (val) {
2575 SWIG_type_error(errmsg, obj);
2576 }
2577 return 0;
2578 }
2579 #else
2580 SWIGINTERNSHORT unsigned int
2581 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
2582 {
2583 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
2584 }
2585 #endif
2586
2587
2588 SWIGINTERNSHORT unsigned int
2589 SWIG_As_unsigned_SS_int(PyObject* obj)
2590 {
2591 unsigned int v;
2592 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
2593 /*
2594 this is needed to make valgrind/purify happier.
2595 */
2596 memset((void*)&v, 0, sizeof(unsigned int));
2597 }
2598 return v;
2599 }
2600
2601
2602 SWIGINTERNSHORT int
2603 SWIG_Check_unsigned_SS_int(PyObject* obj)
2604 {
2605 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
2606 }
2607
2608 static void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){
2609 self->m_size = size;
2610 }
2611 static PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){
2612 int count = self->GetNumberOfFiles();
2613 wxString* files = self->GetFiles();
2614 PyObject* list = PyList_New(count);
2615
2616 if (!list) {
2617 PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!");
2618 return NULL;
2619 }
2620
2621 for (int i=0; i<count; i++) {
2622 PyList_SetItem(list, i, wx2PyString(files[i]));
2623 }
2624 return list;
2625 }
2626
2627
2628 static wxPyApp *new_wxPyApp(){
2629 wxPythonApp = new wxPyApp();
2630 return wxPythonApp;
2631 }
2632
2633 void wxApp_CleanUp() {
2634 __wxPyCleanup();
2635 }
2636
2637
2638 wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; }
2639
2640
2641 SWIGINTERNSHORT int
2642 SWIG_AsCharPtr(PyObject *obj, char **val)
2643 {
2644 if (SWIG_AsCharPtrAndSize(obj, val, (size_t*)(0))) {
2645 return 1;
2646 }
2647 if (val) {
2648 PyErr_Clear();
2649 SWIG_type_error("char *", obj);
2650 }
2651 return 0;
2652 }
2653
2654
2655 SWIGINTERN PyObject *
2656 SWIG_FromCharPtr(const char* cptr)
2657 {
2658 if (cptr) {
2659 size_t size = strlen(cptr);
2660 if (size > INT_MAX) {
2661 return SWIG_NewPointerObj((char*)(cptr),
2662 SWIG_TypeQuery("char *"), 0);
2663 } else {
2664 if (size != 0) {
2665 return PyString_FromStringAndSize(cptr, size);
2666 } else {
2667 return PyString_FromString(cptr);
2668 }
2669 }
2670 }
2671 Py_INCREF(Py_None);
2672 return Py_None;
2673 }
2674
2675
2676 #ifdef __WXMAC__
2677
2678 // A dummy class that raises an exception if used...
2679 class wxEventLoop
2680 {
2681 public:
2682 wxEventLoop() { wxPyRaiseNotImplemented(); }
2683 int Run() { return 0; }
2684 void Exit(int rc = 0) {}
2685 bool Pending() const { return false; }
2686 bool Dispatch() { return false; }
2687 bool IsRunning() const { return false; }
2688 static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; }
2689 static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); }
2690 };
2691
2692 #else
2693
2694 #include <wx/evtloop.h>
2695
2696 #endif
2697
2698
2699
2700 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2701 static wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; }
2702 static void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; }
2703 static PyObject *wxWindow_GetChildren(wxWindow *self){
2704 wxWindowList& list = self->GetChildren();
2705 return wxPy_ConvertList(&list);
2706 }
2707 static bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){
2708 #if wxUSE_HOTKEY
2709 return self->RegisterHotKey(hotkeyId, modifiers, keycode);
2710 #else
2711 return false;
2712 #endif
2713 }
2714 static bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){
2715
2716
2717
2718 return false;
2719
2720 }
2721 static long wxWindow_GetHandle(wxWindow *self){
2722 return wxPyGetWinHandle(self);
2723 }
2724 static void wxWindow_AssociateHandle(wxWindow *self,long handle){
2725 self->AssociateHandle((WXWidget)handle);
2726 }
2727
2728 wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) {
2729 return wxWindow::FindWindowById(id, parent);
2730 }
2731
2732 wxWindow* wxFindWindowByName( const wxString& name,
2733 const wxWindow *parent = NULL ) {
2734 return wxWindow::FindWindowByName(name, parent);
2735 }
2736
2737 wxWindow* wxFindWindowByLabel( const wxString& label,
2738 const wxWindow *parent = NULL ) {
2739 return wxWindow::FindWindowByLabel(label, parent);
2740 }
2741
2742
2743 #ifdef __WXMSW__
2744 #include <wx/msw/private.h> // to get wxGetWindowId
2745 #endif
2746
2747
2748 wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) {
2749 #ifdef __WXMSW__
2750 WXHWND hWnd = (WXHWND)_hWnd;
2751 long id = wxGetWindowId(hWnd);
2752 wxWindow* win = new wxWindow;
2753 parent->AddChild(win);
2754 win->SetEventHandler(win);
2755 win->SetHWND(hWnd);
2756 win->SetId(id);
2757 win->SubclassWin(hWnd);
2758 win->AdoptAttributesFromHWND();
2759 win->SetupColours();
2760 return win;
2761 #else
2762 wxPyRaiseNotImplemented();
2763 return NULL;
2764 #endif
2765 }
2766
2767
2768 PyObject* GetTopLevelWindows() {
2769 return wxPy_ConvertList(&wxTopLevelWindows);
2770 }
2771
2772
2773 IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
2774 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow);
2775 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow);
2776
2777 IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator);
2778
2779 static void wxMenu_Destroy(wxMenu *self){ delete self; }
2780 static PyObject *wxMenu_GetMenuItems(wxMenu *self){
2781 wxMenuItemList& list = self->GetMenuItems();
2782 return wxPy_ConvertList(&list);
2783 }
2784 static const wxString wxPyControlNameStr(wxControlNameStr);
2785 static int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData=NULL){
2786 if (clientData) {
2787 wxPyClientData* data = new wxPyClientData(clientData);
2788 return self->Append(item, data);
2789 } else
2790 return self->Append(item);
2791 }
2792 static int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData=NULL){
2793 if (clientData) {
2794 wxPyClientData* data = new wxPyClientData(clientData);
2795 return self->Insert(item, pos, data);
2796 } else
2797 return self->Insert(item, pos);
2798 }
2799 static PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){
2800 wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n);
2801 if (data) {
2802 Py_INCREF(data->m_obj);
2803 return data->m_obj;
2804 } else {
2805 Py_INCREF(Py_None);
2806 return Py_None;
2807 }
2808 }
2809 static void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){
2810 wxPyClientData* data = new wxPyClientData(clientData);
2811 self->SetClientObject(n, data);
2812 }
2813
2814
2815 static wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData=NULL){
2816 wxPyUserData* data = NULL;
2817 if ( userData ) {
2818 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2819 data = new wxPyUserData(userData);
2820 wxPyEndBlockThreads(blocked);
2821 }
2822 return new wxSizerItem(window, proportion, flag, border, data);
2823 }
2824 static wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData=NULL){
2825 wxPyUserData* data = NULL;
2826 if ( userData ) {
2827 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2828 data = new wxPyUserData(userData);
2829 wxPyEndBlockThreads(blocked);
2830 }
2831 return new wxSizerItem(width, height, proportion, flag, border, data);
2832 }
2833 static wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData=NULL){
2834 wxPyUserData* data = NULL;
2835 if ( userData ) {
2836 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2837 data = new wxPyUserData(userData);
2838 wxPyEndBlockThreads(blocked);
2839 }
2840 return new wxSizerItem(sizer, proportion, flag, border, data);
2841 }
2842
2843 #include <float.h>
2844 SWIGINTERN int
2845 SWIG_CheckDoubleInRange(double value, double min_value,
2846 double max_value, const char* errmsg)
2847 {
2848 if (value < min_value) {
2849 if (errmsg) {
2850 PyErr_Format(PyExc_OverflowError,
2851 "value %g is less than %s minimum %g",
2852 value, errmsg, min_value);
2853 }
2854 return 0;
2855 } else if (value > max_value) {
2856 if (errmsg) {
2857 PyErr_Format(PyExc_OverflowError,
2858 "value %g is greater than %s maximum %g",
2859 value, errmsg, max_value);
2860 }
2861 return 0;
2862 }
2863 return 1;
2864 }
2865
2866
2867 SWIGINTERN int
2868 SWIG_AsVal_float(PyObject *obj, float *val)
2869 {
2870 const char* errmsg = val ? "float" : (char*)0;
2871 double v;
2872 if (SWIG_AsVal_double(obj, &v)) {
2873 if (SWIG_CheckDoubleInRange(v, -FLT_MAX, FLT_MAX, errmsg)) {
2874 if (val) *val = (float)(v);
2875 return 1;
2876 } else {
2877 return 0;
2878 }
2879 } else {
2880 PyErr_Clear();
2881 }
2882 if (val) {
2883 SWIG_type_error(errmsg, obj);
2884 }
2885 return 0;
2886 }
2887
2888
2889 SWIGINTERNSHORT float
2890 SWIG_As_float(PyObject* obj)
2891 {
2892 float v;
2893 if (!SWIG_AsVal_float(obj, &v)) {
2894 /*
2895 this is needed to make valgrind/purify happier.
2896 */
2897 memset((void*)&v, 0, sizeof(float));
2898 }
2899 return v;
2900 }
2901
2902
2903 SWIGINTERNSHORT int
2904 SWIG_Check_float(PyObject* obj)
2905 {
2906 return SWIG_AsVal_float(obj, (float*)0);
2907 }
2908
2909
2910 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
2911 #define SWIG_From_float PyFloat_FromDouble
2912 /*@@*/
2913
2914 static PyObject *wxSizerItem_GetUserData(wxSizerItem *self){
2915 wxPyUserData* data = (wxPyUserData*)self->GetUserData();
2916 if (data) {
2917 Py_INCREF(data->m_obj);
2918 return data->m_obj;
2919 } else {
2920 Py_INCREF(Py_None);
2921 return Py_None;
2922 }
2923 }
2924
2925 // Figure out the type of the sizer item
2926
2927 struct wxPySizerItemInfo {
2928 wxPySizerItemInfo()
2929 : window(NULL), sizer(NULL), gotSize(false),
2930 size(wxDefaultSize), gotPos(false), pos(-1)
2931 {}
2932
2933 wxWindow* window;
2934 wxSizer* sizer;
2935 bool gotSize;
2936 wxSize size;
2937 bool gotPos;
2938 int pos;
2939 };
2940
2941 static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) {
2942
2943 wxPySizerItemInfo info;
2944 wxSize size;
2945 wxSize* sizePtr = &size;
2946
2947 // Find out what the type of the item is
2948 // try wxWindow
2949 if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) {
2950 PyErr_Clear();
2951 info.window = NULL;
2952
2953 // try wxSizer
2954 if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) {
2955 PyErr_Clear();
2956 info.sizer = NULL;
2957
2958 // try wxSize or (w,h)
2959 if ( checkSize && wxSize_helper(item, &sizePtr)) {
2960 info.size = *sizePtr;
2961 info.gotSize = true;
2962 }
2963
2964 // or a single int
2965 if (checkIdx && PyInt_Check(item)) {
2966 info.pos = PyInt_AsLong(item);
2967 info.gotPos = true;
2968 }
2969 }
2970 }
2971
2972 if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) {
2973 // no expected type, figure out what kind of error message to generate
2974 if ( !checkSize && !checkIdx )
2975 PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item");
2976 else if ( checkSize && !checkIdx )
2977 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item");
2978 else if ( !checkSize && checkIdx)
2979 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item");
2980 else
2981 // can this one happen?
2982 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item");
2983 }
2984
2985 return info;
2986 }
2987
2988 static void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){
2989 if (!self->GetClientObject())
2990 self->SetClientObject(new wxPyOORClientData(_self));
2991 }
2992 static wxSizerItem *wxSizer_Add(wxSizer *self,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){
2993
2994 wxPyUserData* data = NULL;
2995 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2996 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
2997 if ( userData && (info.window || info.sizer || info.gotSize) )
2998 data = new wxPyUserData(userData);
2999 wxPyEndBlockThreads(blocked);
3000
3001 // Now call the real Add method if a valid item type was found
3002 if ( info.window )
3003 return self->Add(info.window, proportion, flag, border, data);
3004 else if ( info.sizer )
3005 return self->Add(info.sizer, proportion, flag, border, data);
3006 else if (info.gotSize)
3007 return self->Add(info.size.GetWidth(), info.size.GetHeight(),
3008 proportion, flag, border, data);
3009 else
3010 return NULL;
3011 }
3012 static wxSizerItem *wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){
3013
3014 wxPyUserData* data = NULL;
3015 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3016 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
3017 if ( userData && (info.window || info.sizer || info.gotSize) )
3018 data = new wxPyUserData(userData);
3019 wxPyEndBlockThreads(blocked);
3020
3021 // Now call the real Insert method if a valid item type was found
3022 if ( info.window )
3023 return self->Insert(before, info.window, proportion, flag, border, data);
3024 else if ( info.sizer )
3025 return self->Insert(before, info.sizer, proportion, flag, border, data);
3026 else if (info.gotSize)
3027 return self->Insert(before, info.size.GetWidth(), info.size.GetHeight(),
3028 proportion, flag, border, data);
3029 else
3030 return NULL;
3031 }
3032 static wxSizerItem *wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){
3033
3034 wxPyUserData* data = NULL;
3035 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3036 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
3037 if ( userData && (info.window || info.sizer || info.gotSize) )
3038 data = new wxPyUserData(userData);
3039 wxPyEndBlockThreads(blocked);
3040
3041 // Now call the real Prepend method if a valid item type was found
3042 if ( info.window )
3043 return self->Prepend(info.window, proportion, flag, border, data);
3044 else if ( info.sizer )
3045 return self->Prepend(info.sizer, proportion, flag, border, data);
3046 else if (info.gotSize)
3047 return self->Prepend(info.size.GetWidth(), info.size.GetHeight(),
3048 proportion, flag, border, data);
3049 else
3050 return NULL;
3051 }
3052 static bool wxSizer_Remove(wxSizer *self,PyObject *item){
3053 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3054 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
3055 wxPyEndBlockThreads(blocked);
3056 if ( info.window )
3057 return self->Remove(info.window);
3058 else if ( info.sizer )
3059 return self->Remove(info.sizer);
3060 else if ( info.gotPos )
3061 return self->Remove(info.pos);
3062 else
3063 return false;
3064 }
3065 static bool wxSizer_Detach(wxSizer *self,PyObject *item){
3066 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3067 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
3068 wxPyEndBlockThreads(blocked);
3069 if ( info.window )
3070 return self->Detach(info.window);
3071 else if ( info.sizer )
3072 return self->Detach(info.sizer);
3073 else if ( info.gotPos )
3074 return self->Detach(info.pos);
3075 else
3076 return false;
3077 }
3078 static wxSizerItem *wxSizer_GetItem(wxSizer *self,PyObject *item){
3079 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3080 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
3081 wxPyEndBlockThreads(blocked);
3082 if ( info.window )
3083 return self->GetItem(info.window);
3084 else if ( info.sizer )
3085 return self->GetItem(info.sizer);
3086 else if ( info.gotPos )
3087 return self->GetItem(info.pos);
3088 else
3089 return NULL;
3090 }
3091 static void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){
3092 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3093 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
3094 wxPyEndBlockThreads(blocked);
3095 if ( info.window )
3096 self->SetItemMinSize(info.window, size);
3097 else if ( info.sizer )
3098 self->SetItemMinSize(info.sizer, size);
3099 else if ( info.gotPos )
3100 self->SetItemMinSize(info.pos, size);
3101 }
3102 static PyObject *wxSizer_GetChildren(wxSizer *self){
3103 wxSizerItemList& list = self->GetChildren();
3104 return wxPy_ConvertList(&list);
3105 }
3106 static bool wxSizer_Show(wxSizer *self,PyObject *item,bool show=true,bool recursive=false){
3107 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3108 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
3109 wxPyEndBlockThreads(blocked);
3110 if ( info.window )
3111 return self->Show(info.window, show, recursive);
3112 else if ( info.sizer )
3113 return self->Show(info.sizer, show, recursive);
3114 else if ( info.gotPos )
3115 return self->Show(info.pos, show);
3116 else
3117 return false;
3118 }
3119 static bool wxSizer_IsShown(wxSizer *self,PyObject *item){
3120 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3121 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false);
3122 wxPyEndBlockThreads(blocked);
3123 if ( info.window )
3124 return self->IsShown(info.window);
3125 else if ( info.sizer )
3126 return self->IsShown(info.sizer);
3127 else if ( info.gotPos )
3128 return self->IsShown(info.pos);
3129 else
3130 return false;
3131 }
3132
3133 // See pyclasses.h
3134 IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes);
3135 IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin);
3136 IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer);
3137
3138
3139
3140
3141 bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj)
3142 {
3143 if (source == Py_None) {
3144 **obj = wxGBPosition(-1,-1);
3145 return true;
3146 }
3147 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition"));
3148 }
3149
3150 bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj)
3151 {
3152 if (source == Py_None) {
3153 **obj = wxGBSpan(-1,-1);
3154 return true;
3155 }
3156 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan"));
3157 }
3158
3159
3160 static void wxGBPosition_Set(wxGBPosition *self,int row=0,int col=0){
3161 self->SetRow(row);
3162 self->SetCol(col);
3163 }
3164 static PyObject *wxGBPosition_Get(wxGBPosition *self){
3165 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3166 PyObject* tup = PyTuple_New(2);
3167 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
3168 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
3169 wxPyEndBlockThreads(blocked);
3170 return tup;
3171 }
3172 static void wxGBSpan_Set(wxGBSpan *self,int rowspan=1,int colspan=1){
3173 self->SetRowspan(rowspan);
3174 self->SetColspan(colspan);
3175 }
3176 static PyObject *wxGBSpan_Get(wxGBSpan *self){
3177 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3178 PyObject* tup = PyTuple_New(2);
3179 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan()));
3180 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan()));
3181 wxPyEndBlockThreads(blocked);
3182 return tup;
3183 }
3184 static wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){
3185 wxPyUserData* data = NULL;
3186 if ( userData ) {
3187 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3188 data = new wxPyUserData(userData);
3189 wxPyEndBlockThreads(blocked);
3190 }
3191 return new wxGBSizerItem(window, pos, span, flag, border, data);
3192 }
3193 static wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){
3194 wxPyUserData* data = NULL;
3195 if ( userData ) {
3196 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3197 data = new wxPyUserData(userData);
3198 wxPyEndBlockThreads(blocked);
3199 }
3200 return new wxGBSizerItem(sizer, pos, span, flag, border, data);
3201 }
3202 static wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){
3203 wxPyUserData* data = NULL;
3204 if ( userData ) {
3205 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3206 data = new wxPyUserData(userData);
3207 wxPyEndBlockThreads(blocked);
3208 }
3209 return new wxGBSizerItem(width, height, pos, span, flag, border, data);
3210 }
3211 static wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){
3212 int row, col;
3213 self->GetEndPos(row, col);
3214 return wxGBPosition(row, col);
3215 }
3216 static wxGBSizerItem *wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span=wxDefaultSpan,int flag=0,int border=0,PyObject *userData=NULL){
3217
3218 wxPyUserData* data = NULL;
3219 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3220 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
3221 if ( userData && (info.window || info.sizer || info.gotSize) )
3222 data = new wxPyUserData(userData);
3223 wxPyEndBlockThreads(blocked);
3224
3225 // Now call the real Add method if a valid item type was found
3226 if ( info.window )
3227 return (wxGBSizerItem*)self->Add(info.window, pos, span, flag, border, data);
3228 else if ( info.sizer )
3229 return (wxGBSizerItem*)self->Add(info.sizer, pos, span, flag, border, data);
3230 else if (info.gotSize)
3231 return (wxGBSizerItem*)self->Add(info.size.GetWidth(), info.size.GetHeight(),
3232 pos, span, flag, border, data);
3233 return NULL;
3234 }
3235
3236
3237 #ifdef __cplusplus
3238 extern "C" {
3239 #endif
3240 static int _wrap_EmptyString_set(PyObject *) {
3241 PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only.");
3242 return 1;
3243 }
3244
3245
3246 static PyObject *_wrap_EmptyString_get(void) {
3247 PyObject *pyobj;
3248
3249 {
3250 #if wxUSE_UNICODE
3251 pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
3252 #else
3253 pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
3254 #endif
3255 }
3256 return pyobj;
3257 }
3258
3259
3260 static PyObject *_wrap_Object_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) {
3261 PyObject *resultobj;
3262 wxObject *arg1 = (wxObject *) 0 ;
3263 wxString result;
3264 PyObject * obj0 = 0 ;
3265 char *kwnames[] = {
3266 (char *) "self", NULL
3267 };
3268
3269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail;
3270 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0);
3271 if (SWIG_arg_fail(1)) SWIG_fail;
3272 {
3273 PyThreadState* __tstate = wxPyBeginAllowThreads();
3274 result = wxObject_GetClassName(arg1);
3275
3276 wxPyEndAllowThreads(__tstate);
3277 if (PyErr_Occurred()) SWIG_fail;
3278 }
3279 {
3280 #if wxUSE_UNICODE
3281 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3282 #else
3283 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3284 #endif
3285 }
3286 return resultobj;
3287 fail:
3288 return NULL;
3289 }
3290
3291
3292 static PyObject *_wrap_Object_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
3293 PyObject *resultobj;
3294 wxObject *arg1 = (wxObject *) 0 ;
3295 PyObject * obj0 = 0 ;
3296 char *kwnames[] = {
3297 (char *) "self", NULL
3298 };
3299
3300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail;
3301 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0);
3302 if (SWIG_arg_fail(1)) SWIG_fail;
3303 {
3304 PyThreadState* __tstate = wxPyBeginAllowThreads();
3305 wxObject_Destroy(arg1);
3306
3307 wxPyEndAllowThreads(__tstate);
3308 if (PyErr_Occurred()) SWIG_fail;
3309 }
3310 Py_INCREF(Py_None); resultobj = Py_None;
3311 return resultobj;
3312 fail:
3313 return NULL;
3314 }
3315
3316
3317 static PyObject * Object_swigregister(PyObject *, PyObject *args) {
3318 PyObject *obj;
3319 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3320 SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj);
3321 Py_INCREF(obj);
3322 return Py_BuildValue((char *)"");
3323 }
3324 static PyObject *_wrap_Size_width_set(PyObject *, PyObject *args, PyObject *kwargs) {
3325 PyObject *resultobj;
3326 wxSize *arg1 = (wxSize *) 0 ;
3327 int arg2 ;
3328 PyObject * obj0 = 0 ;
3329 PyObject * obj1 = 0 ;
3330 char *kwnames[] = {
3331 (char *) "self",(char *) "x", NULL
3332 };
3333
3334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail;
3335 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3336 if (SWIG_arg_fail(1)) SWIG_fail;
3337 {
3338 arg2 = (int)(SWIG_As_int(obj1));
3339 if (SWIG_arg_fail(2)) SWIG_fail;
3340 }
3341 if (arg1) (arg1)->x = arg2;
3342
3343 Py_INCREF(Py_None); resultobj = Py_None;
3344 return resultobj;
3345 fail:
3346 return NULL;
3347 }
3348
3349
3350 static PyObject *_wrap_Size_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
3351 PyObject *resultobj;
3352 wxSize *arg1 = (wxSize *) 0 ;
3353 int result;
3354 PyObject * obj0 = 0 ;
3355 char *kwnames[] = {
3356 (char *) "self", NULL
3357 };
3358
3359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail;
3360 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3361 if (SWIG_arg_fail(1)) SWIG_fail;
3362 result = (int) ((arg1)->x);
3363
3364 {
3365 resultobj = SWIG_From_int((int)(result));
3366 }
3367 return resultobj;
3368 fail:
3369 return NULL;
3370 }
3371
3372
3373 static PyObject *_wrap_Size_height_set(PyObject *, PyObject *args, PyObject *kwargs) {
3374 PyObject *resultobj;
3375 wxSize *arg1 = (wxSize *) 0 ;
3376 int arg2 ;
3377 PyObject * obj0 = 0 ;
3378 PyObject * obj1 = 0 ;
3379 char *kwnames[] = {
3380 (char *) "self",(char *) "y", NULL
3381 };
3382
3383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail;
3384 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3385 if (SWIG_arg_fail(1)) SWIG_fail;
3386 {
3387 arg2 = (int)(SWIG_As_int(obj1));
3388 if (SWIG_arg_fail(2)) SWIG_fail;
3389 }
3390 if (arg1) (arg1)->y = arg2;
3391
3392 Py_INCREF(Py_None); resultobj = Py_None;
3393 return resultobj;
3394 fail:
3395 return NULL;
3396 }
3397
3398
3399 static PyObject *_wrap_Size_height_get(PyObject *, PyObject *args, PyObject *kwargs) {
3400 PyObject *resultobj;
3401 wxSize *arg1 = (wxSize *) 0 ;
3402 int result;
3403 PyObject * obj0 = 0 ;
3404 char *kwnames[] = {
3405 (char *) "self", NULL
3406 };
3407
3408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail;
3409 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3410 if (SWIG_arg_fail(1)) SWIG_fail;
3411 result = (int) ((arg1)->y);
3412
3413 {
3414 resultobj = SWIG_From_int((int)(result));
3415 }
3416 return resultobj;
3417 fail:
3418 return NULL;
3419 }
3420
3421
3422 static PyObject *_wrap_new_Size(PyObject *, PyObject *args, PyObject *kwargs) {
3423 PyObject *resultobj;
3424 int arg1 = (int) 0 ;
3425 int arg2 = (int) 0 ;
3426 wxSize *result;
3427 PyObject * obj0 = 0 ;
3428 PyObject * obj1 = 0 ;
3429 char *kwnames[] = {
3430 (char *) "w",(char *) "h", NULL
3431 };
3432
3433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail;
3434 if (obj0) {
3435 {
3436 arg1 = (int)(SWIG_As_int(obj0));
3437 if (SWIG_arg_fail(1)) SWIG_fail;
3438 }
3439 }
3440 if (obj1) {
3441 {
3442 arg2 = (int)(SWIG_As_int(obj1));
3443 if (SWIG_arg_fail(2)) SWIG_fail;
3444 }
3445 }
3446 {
3447 PyThreadState* __tstate = wxPyBeginAllowThreads();
3448 result = (wxSize *)new wxSize(arg1,arg2);
3449
3450 wxPyEndAllowThreads(__tstate);
3451 if (PyErr_Occurred()) SWIG_fail;
3452 }
3453 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1);
3454 return resultobj;
3455 fail:
3456 return NULL;
3457 }
3458
3459
3460 static PyObject *_wrap_delete_Size(PyObject *, PyObject *args, PyObject *kwargs) {
3461 PyObject *resultobj;
3462 wxSize *arg1 = (wxSize *) 0 ;
3463 PyObject * obj0 = 0 ;
3464 char *kwnames[] = {
3465 (char *) "self", NULL
3466 };
3467
3468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail;
3469 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3470 if (SWIG_arg_fail(1)) SWIG_fail;
3471 {
3472 PyThreadState* __tstate = wxPyBeginAllowThreads();
3473 delete arg1;
3474
3475 wxPyEndAllowThreads(__tstate);
3476 if (PyErr_Occurred()) SWIG_fail;
3477 }
3478 Py_INCREF(Py_None); resultobj = Py_None;
3479 return resultobj;
3480 fail:
3481 return NULL;
3482 }
3483
3484
3485 static PyObject *_wrap_Size___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
3486 PyObject *resultobj;
3487 wxSize *arg1 = (wxSize *) 0 ;
3488 wxSize *arg2 = 0 ;
3489 bool result;
3490 wxSize temp2 ;
3491 PyObject * obj0 = 0 ;
3492 PyObject * obj1 = 0 ;
3493 char *kwnames[] = {
3494 (char *) "self",(char *) "sz", NULL
3495 };
3496
3497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail;
3498 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3499 if (SWIG_arg_fail(1)) SWIG_fail;
3500 {
3501 arg2 = &temp2;
3502 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3503 }
3504 {
3505 PyThreadState* __tstate = wxPyBeginAllowThreads();
3506 result = (bool)(arg1)->operator ==((wxSize const &)*arg2);
3507
3508 wxPyEndAllowThreads(__tstate);
3509 if (PyErr_Occurred()) SWIG_fail;
3510 }
3511 {
3512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3513 }
3514 return resultobj;
3515 fail:
3516 return NULL;
3517 }
3518
3519
3520 static PyObject *_wrap_Size___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
3521 PyObject *resultobj;
3522 wxSize *arg1 = (wxSize *) 0 ;
3523 wxSize *arg2 = 0 ;
3524 bool result;
3525 wxSize temp2 ;
3526 PyObject * obj0 = 0 ;
3527 PyObject * obj1 = 0 ;
3528 char *kwnames[] = {
3529 (char *) "self",(char *) "sz", NULL
3530 };
3531
3532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail;
3533 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3534 if (SWIG_arg_fail(1)) SWIG_fail;
3535 {
3536 arg2 = &temp2;
3537 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3538 }
3539 {
3540 PyThreadState* __tstate = wxPyBeginAllowThreads();
3541 result = (bool)(arg1)->operator !=((wxSize const &)*arg2);
3542
3543 wxPyEndAllowThreads(__tstate);
3544 if (PyErr_Occurred()) SWIG_fail;
3545 }
3546 {
3547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3548 }
3549 return resultobj;
3550 fail:
3551 return NULL;
3552 }
3553
3554
3555 static PyObject *_wrap_Size___add__(PyObject *, PyObject *args, PyObject *kwargs) {
3556 PyObject *resultobj;
3557 wxSize *arg1 = (wxSize *) 0 ;
3558 wxSize *arg2 = 0 ;
3559 wxSize result;
3560 wxSize temp2 ;
3561 PyObject * obj0 = 0 ;
3562 PyObject * obj1 = 0 ;
3563 char *kwnames[] = {
3564 (char *) "self",(char *) "sz", NULL
3565 };
3566
3567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail;
3568 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3569 if (SWIG_arg_fail(1)) SWIG_fail;
3570 {
3571 arg2 = &temp2;
3572 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3573 }
3574 {
3575 PyThreadState* __tstate = wxPyBeginAllowThreads();
3576 result = (arg1)->operator +((wxSize const &)*arg2);
3577
3578 wxPyEndAllowThreads(__tstate);
3579 if (PyErr_Occurred()) SWIG_fail;
3580 }
3581 {
3582 wxSize * resultptr;
3583 resultptr = new wxSize((wxSize &)(result));
3584 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3585 }
3586 return resultobj;
3587 fail:
3588 return NULL;
3589 }
3590
3591
3592 static PyObject *_wrap_Size___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
3593 PyObject *resultobj;
3594 wxSize *arg1 = (wxSize *) 0 ;
3595 wxSize *arg2 = 0 ;
3596 wxSize result;
3597 wxSize temp2 ;
3598 PyObject * obj0 = 0 ;
3599 PyObject * obj1 = 0 ;
3600 char *kwnames[] = {
3601 (char *) "self",(char *) "sz", NULL
3602 };
3603
3604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail;
3605 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3606 if (SWIG_arg_fail(1)) SWIG_fail;
3607 {
3608 arg2 = &temp2;
3609 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3610 }
3611 {
3612 PyThreadState* __tstate = wxPyBeginAllowThreads();
3613 result = (arg1)->operator -((wxSize const &)*arg2);
3614
3615 wxPyEndAllowThreads(__tstate);
3616 if (PyErr_Occurred()) SWIG_fail;
3617 }
3618 {
3619 wxSize * resultptr;
3620 resultptr = new wxSize((wxSize &)(result));
3621 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3622 }
3623 return resultobj;
3624 fail:
3625 return NULL;
3626 }
3627
3628
3629 static PyObject *_wrap_Size_IncTo(PyObject *, PyObject *args, PyObject *kwargs) {
3630 PyObject *resultobj;
3631 wxSize *arg1 = (wxSize *) 0 ;
3632 wxSize *arg2 = 0 ;
3633 wxSize temp2 ;
3634 PyObject * obj0 = 0 ;
3635 PyObject * obj1 = 0 ;
3636 char *kwnames[] = {
3637 (char *) "self",(char *) "sz", NULL
3638 };
3639
3640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail;
3641 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3642 if (SWIG_arg_fail(1)) SWIG_fail;
3643 {
3644 arg2 = &temp2;
3645 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3646 }
3647 {
3648 PyThreadState* __tstate = wxPyBeginAllowThreads();
3649 (arg1)->IncTo((wxSize const &)*arg2);
3650
3651 wxPyEndAllowThreads(__tstate);
3652 if (PyErr_Occurred()) SWIG_fail;
3653 }
3654 Py_INCREF(Py_None); resultobj = Py_None;
3655 return resultobj;
3656 fail:
3657 return NULL;
3658 }
3659
3660
3661 static PyObject *_wrap_Size_DecTo(PyObject *, PyObject *args, PyObject *kwargs) {
3662 PyObject *resultobj;
3663 wxSize *arg1 = (wxSize *) 0 ;
3664 wxSize *arg2 = 0 ;
3665 wxSize temp2 ;
3666 PyObject * obj0 = 0 ;
3667 PyObject * obj1 = 0 ;
3668 char *kwnames[] = {
3669 (char *) "self",(char *) "sz", NULL
3670 };
3671
3672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail;
3673 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3674 if (SWIG_arg_fail(1)) SWIG_fail;
3675 {
3676 arg2 = &temp2;
3677 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3678 }
3679 {
3680 PyThreadState* __tstate = wxPyBeginAllowThreads();
3681 (arg1)->DecTo((wxSize const &)*arg2);
3682
3683 wxPyEndAllowThreads(__tstate);
3684 if (PyErr_Occurred()) SWIG_fail;
3685 }
3686 Py_INCREF(Py_None); resultobj = Py_None;
3687 return resultobj;
3688 fail:
3689 return NULL;
3690 }
3691
3692
3693 static PyObject *_wrap_Size_Set(PyObject *, PyObject *args, PyObject *kwargs) {
3694 PyObject *resultobj;
3695 wxSize *arg1 = (wxSize *) 0 ;
3696 int arg2 ;
3697 int arg3 ;
3698 PyObject * obj0 = 0 ;
3699 PyObject * obj1 = 0 ;
3700 PyObject * obj2 = 0 ;
3701 char *kwnames[] = {
3702 (char *) "self",(char *) "w",(char *) "h", NULL
3703 };
3704
3705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
3706 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3707 if (SWIG_arg_fail(1)) SWIG_fail;
3708 {
3709 arg2 = (int)(SWIG_As_int(obj1));
3710 if (SWIG_arg_fail(2)) SWIG_fail;
3711 }
3712 {
3713 arg3 = (int)(SWIG_As_int(obj2));
3714 if (SWIG_arg_fail(3)) SWIG_fail;
3715 }
3716 {
3717 PyThreadState* __tstate = wxPyBeginAllowThreads();
3718 (arg1)->Set(arg2,arg3);
3719
3720 wxPyEndAllowThreads(__tstate);
3721 if (PyErr_Occurred()) SWIG_fail;
3722 }
3723 Py_INCREF(Py_None); resultobj = Py_None;
3724 return resultobj;
3725 fail:
3726 return NULL;
3727 }
3728
3729
3730 static PyObject *_wrap_Size_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3731 PyObject *resultobj;
3732 wxSize *arg1 = (wxSize *) 0 ;
3733 int arg2 ;
3734 PyObject * obj0 = 0 ;
3735 PyObject * obj1 = 0 ;
3736 char *kwnames[] = {
3737 (char *) "self",(char *) "w", NULL
3738 };
3739
3740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3741 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3742 if (SWIG_arg_fail(1)) SWIG_fail;
3743 {
3744 arg2 = (int)(SWIG_As_int(obj1));
3745 if (SWIG_arg_fail(2)) SWIG_fail;
3746 }
3747 {
3748 PyThreadState* __tstate = wxPyBeginAllowThreads();
3749 (arg1)->SetWidth(arg2);
3750
3751 wxPyEndAllowThreads(__tstate);
3752 if (PyErr_Occurred()) SWIG_fail;
3753 }
3754 Py_INCREF(Py_None); resultobj = Py_None;
3755 return resultobj;
3756 fail:
3757 return NULL;
3758 }
3759
3760
3761 static PyObject *_wrap_Size_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3762 PyObject *resultobj;
3763 wxSize *arg1 = (wxSize *) 0 ;
3764 int arg2 ;
3765 PyObject * obj0 = 0 ;
3766 PyObject * obj1 = 0 ;
3767 char *kwnames[] = {
3768 (char *) "self",(char *) "h", NULL
3769 };
3770
3771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3772 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3773 if (SWIG_arg_fail(1)) SWIG_fail;
3774 {
3775 arg2 = (int)(SWIG_As_int(obj1));
3776 if (SWIG_arg_fail(2)) SWIG_fail;
3777 }
3778 {
3779 PyThreadState* __tstate = wxPyBeginAllowThreads();
3780 (arg1)->SetHeight(arg2);
3781
3782 wxPyEndAllowThreads(__tstate);
3783 if (PyErr_Occurred()) SWIG_fail;
3784 }
3785 Py_INCREF(Py_None); resultobj = Py_None;
3786 return resultobj;
3787 fail:
3788 return NULL;
3789 }
3790
3791
3792 static PyObject *_wrap_Size_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3793 PyObject *resultobj;
3794 wxSize *arg1 = (wxSize *) 0 ;
3795 int result;
3796 PyObject * obj0 = 0 ;
3797 char *kwnames[] = {
3798 (char *) "self", NULL
3799 };
3800
3801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail;
3802 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3803 if (SWIG_arg_fail(1)) SWIG_fail;
3804 {
3805 PyThreadState* __tstate = wxPyBeginAllowThreads();
3806 result = (int)((wxSize const *)arg1)->GetWidth();
3807
3808 wxPyEndAllowThreads(__tstate);
3809 if (PyErr_Occurred()) SWIG_fail;
3810 }
3811 {
3812 resultobj = SWIG_From_int((int)(result));
3813 }
3814 return resultobj;
3815 fail:
3816 return NULL;
3817 }
3818
3819
3820 static PyObject *_wrap_Size_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
3821 PyObject *resultobj;
3822 wxSize *arg1 = (wxSize *) 0 ;
3823 int result;
3824 PyObject * obj0 = 0 ;
3825 char *kwnames[] = {
3826 (char *) "self", NULL
3827 };
3828
3829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail;
3830 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3831 if (SWIG_arg_fail(1)) SWIG_fail;
3832 {
3833 PyThreadState* __tstate = wxPyBeginAllowThreads();
3834 result = (int)((wxSize const *)arg1)->GetHeight();
3835
3836 wxPyEndAllowThreads(__tstate);
3837 if (PyErr_Occurred()) SWIG_fail;
3838 }
3839 {
3840 resultobj = SWIG_From_int((int)(result));
3841 }
3842 return resultobj;
3843 fail:
3844 return NULL;
3845 }
3846
3847
3848 static PyObject *_wrap_Size_IsFullySpecified(PyObject *, PyObject *args, PyObject *kwargs) {
3849 PyObject *resultobj;
3850 wxSize *arg1 = (wxSize *) 0 ;
3851 bool result;
3852 PyObject * obj0 = 0 ;
3853 char *kwnames[] = {
3854 (char *) "self", NULL
3855 };
3856
3857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail;
3858 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3859 if (SWIG_arg_fail(1)) SWIG_fail;
3860 {
3861 PyThreadState* __tstate = wxPyBeginAllowThreads();
3862 result = (bool)((wxSize const *)arg1)->IsFullySpecified();
3863
3864 wxPyEndAllowThreads(__tstate);
3865 if (PyErr_Occurred()) SWIG_fail;
3866 }
3867 {
3868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3869 }
3870 return resultobj;
3871 fail:
3872 return NULL;
3873 }
3874
3875
3876 static PyObject *_wrap_Size_SetDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
3877 PyObject *resultobj;
3878 wxSize *arg1 = (wxSize *) 0 ;
3879 wxSize *arg2 = 0 ;
3880 wxSize temp2 ;
3881 PyObject * obj0 = 0 ;
3882 PyObject * obj1 = 0 ;
3883 char *kwnames[] = {
3884 (char *) "self",(char *) "size", NULL
3885 };
3886
3887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail;
3888 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3889 if (SWIG_arg_fail(1)) SWIG_fail;
3890 {
3891 arg2 = &temp2;
3892 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3893 }
3894 {
3895 PyThreadState* __tstate = wxPyBeginAllowThreads();
3896 (arg1)->SetDefaults((wxSize const &)*arg2);
3897
3898 wxPyEndAllowThreads(__tstate);
3899 if (PyErr_Occurred()) SWIG_fail;
3900 }
3901 Py_INCREF(Py_None); resultobj = Py_None;
3902 return resultobj;
3903 fail:
3904 return NULL;
3905 }
3906
3907
3908 static PyObject *_wrap_Size_Get(PyObject *, PyObject *args, PyObject *kwargs) {
3909 PyObject *resultobj;
3910 wxSize *arg1 = (wxSize *) 0 ;
3911 PyObject *result;
3912 PyObject * obj0 = 0 ;
3913 char *kwnames[] = {
3914 (char *) "self", NULL
3915 };
3916
3917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail;
3918 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
3919 if (SWIG_arg_fail(1)) SWIG_fail;
3920 {
3921 PyThreadState* __tstate = wxPyBeginAllowThreads();
3922 result = (PyObject *)wxSize_Get(arg1);
3923
3924 wxPyEndAllowThreads(__tstate);
3925 if (PyErr_Occurred()) SWIG_fail;
3926 }
3927 resultobj = result;
3928 return resultobj;
3929 fail:
3930 return NULL;
3931 }
3932
3933
3934 static PyObject * Size_swigregister(PyObject *, PyObject *args) {
3935 PyObject *obj;
3936 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3937 SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj);
3938 Py_INCREF(obj);
3939 return Py_BuildValue((char *)"");
3940 }
3941 static PyObject *_wrap_RealPoint_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
3942 PyObject *resultobj;
3943 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
3944 double arg2 ;
3945 PyObject * obj0 = 0 ;
3946 PyObject * obj1 = 0 ;
3947 char *kwnames[] = {
3948 (char *) "self",(char *) "x", NULL
3949 };
3950
3951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail;
3952 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0);
3953 if (SWIG_arg_fail(1)) SWIG_fail;
3954 {
3955 arg2 = (double)(SWIG_As_double(obj1));
3956 if (SWIG_arg_fail(2)) SWIG_fail;
3957 }
3958 if (arg1) (arg1)->x = arg2;
3959
3960 Py_INCREF(Py_None); resultobj = Py_None;
3961 return resultobj;
3962 fail:
3963 return NULL;
3964 }
3965
3966
3967 static PyObject *_wrap_RealPoint_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
3968 PyObject *resultobj;
3969 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
3970 double result;
3971 PyObject * obj0 = 0 ;
3972 char *kwnames[] = {
3973 (char *) "self", NULL
3974 };
3975
3976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail;
3977 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0);
3978 if (SWIG_arg_fail(1)) SWIG_fail;
3979 result = (double) ((arg1)->x);
3980
3981 {
3982 resultobj = SWIG_From_double((double)(result));
3983 }
3984 return resultobj;
3985 fail:
3986 return NULL;
3987 }
3988
3989
3990 static PyObject *_wrap_RealPoint_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
3991 PyObject *resultobj;
3992 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
3993 double arg2 ;
3994 PyObject * obj0 = 0 ;
3995 PyObject * obj1 = 0 ;
3996 char *kwnames[] = {
3997 (char *) "self",(char *) "y", NULL
3998 };
3999
4000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail;
4001 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0);
4002 if (SWIG_arg_fail(1)) SWIG_fail;
4003 {
4004 arg2 = (double)(SWIG_As_double(obj1));
4005 if (SWIG_arg_fail(2)) SWIG_fail;
4006 }
4007 if (arg1) (arg1)->y = arg2;
4008
4009 Py_INCREF(Py_None); resultobj = Py_None;
4010 return resultobj;
4011 fail:
4012 return NULL;
4013 }
4014
4015
4016 static PyObject *_wrap_RealPoint_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
4017 PyObject *resultobj;
4018 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
4019 double result;
4020 PyObject * obj0 = 0 ;
4021 char *kwnames[] = {
4022 (char *) "self", NULL
4023 };
4024
4025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail;
4026 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0);
4027 if (SWIG_arg_fail(1)) SWIG_fail;
4028 result = (double) ((arg1)->y);
4029
4030 {
4031 resultobj = SWIG_From_double((double)(result));
4032 }
4033 return resultobj;
4034 fail:
4035 return NULL;
4036 }
4037
4038
4039 static PyObject *_wrap_new_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) {
4040 PyObject *resultobj;
4041 double arg1 = (double) 0.0 ;
4042 double arg2 = (double) 0.0 ;
4043 wxRealPoint *result;
4044 PyObject * obj0 = 0 ;
4045 PyObject * obj1 = 0 ;
4046 char *kwnames[] = {
4047 (char *) "x",(char *) "y", NULL
4048 };
4049
4050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail;
4051 if (obj0) {
4052 {
4053 arg1 = (double)(SWIG_As_double(obj0));
4054 if (SWIG_arg_fail(1)) SWIG_fail;
4055 }
4056 }
4057 if (obj1) {
4058 {
4059 arg2 = (double)(SWIG_As_double(obj1));
4060 if (SWIG_arg_fail(2)) SWIG_fail;
4061 }
4062 }
4063 {
4064 PyThreadState* __tstate = wxPyBeginAllowThreads();
4065 result = (wxRealPoint *)new wxRealPoint(arg1,arg2);
4066
4067 wxPyEndAllowThreads(__tstate);
4068 if (PyErr_Occurred()) SWIG_fail;
4069 }
4070 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1);
4071 return resultobj;
4072 fail:
4073 return NULL;
4074 }
4075
4076
4077 static PyObject *_wrap_delete_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) {
4078 PyObject *resultobj;
4079 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
4080 PyObject * obj0 = 0 ;
4081 char *kwnames[] = {
4082 (char *) "self", NULL
4083 };
4084
4085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail;
4086 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0);
4087 if (SWIG_arg_fail(1)) SWIG_fail;
4088 {
4089 PyThreadState* __tstate = wxPyBeginAllowThreads();
4090 delete arg1;
4091
4092 wxPyEndAllowThreads(__tstate);
4093 if (PyErr_Occurred()) SWIG_fail;
4094 }
4095 Py_INCREF(Py_None); resultobj = Py_None;
4096 return resultobj;
4097 fail:
4098 return NULL;
4099 }
4100
4101
4102 static PyObject *_wrap_RealPoint___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
4103 PyObject *resultobj;
4104 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
4105 wxRealPoint *arg2 = 0 ;
4106 bool result;
4107 wxRealPoint temp2 ;
4108 PyObject * obj0 = 0 ;
4109 PyObject * obj1 = 0 ;
4110 char *kwnames[] = {
4111 (char *) "self",(char *) "pt", NULL
4112 };
4113
4114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail;
4115 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0);
4116 if (SWIG_arg_fail(1)) SWIG_fail;
4117 {
4118 arg2 = &temp2;
4119 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
4120 }
4121 {
4122 PyThreadState* __tstate = wxPyBeginAllowThreads();
4123 result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2);
4124
4125 wxPyEndAllowThreads(__tstate);
4126 if (PyErr_Occurred()) SWIG_fail;
4127 }
4128 {
4129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4130 }
4131 return resultobj;
4132 fail:
4133 return NULL;
4134 }
4135
4136
4137 static PyObject *_wrap_RealPoint___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
4138 PyObject *resultobj;
4139 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
4140 wxRealPoint *arg2 = 0 ;
4141 bool result;
4142 wxRealPoint temp2 ;
4143 PyObject * obj0 = 0 ;
4144 PyObject * obj1 = 0 ;
4145 char *kwnames[] = {
4146 (char *) "self",(char *) "pt", NULL
4147 };
4148
4149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail;
4150 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0);
4151 if (SWIG_arg_fail(1)) SWIG_fail;
4152 {
4153 arg2 = &temp2;
4154 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
4155 }
4156 {
4157 PyThreadState* __tstate = wxPyBeginAllowThreads();
4158 result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2);
4159
4160 wxPyEndAllowThreads(__tstate);
4161 if (PyErr_Occurred()) SWIG_fail;
4162 }
4163 {
4164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4165 }
4166 return resultobj;
4167 fail:
4168 return NULL;
4169 }
4170
4171
4172 static PyObject *_wrap_RealPoint___add__(PyObject *, PyObject *args, PyObject *kwargs) {
4173 PyObject *resultobj;
4174 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
4175 wxRealPoint *arg2 = 0 ;
4176 wxRealPoint result;
4177 wxRealPoint temp2 ;
4178 PyObject * obj0 = 0 ;
4179 PyObject * obj1 = 0 ;
4180 char *kwnames[] = {
4181 (char *) "self",(char *) "pt", NULL
4182 };
4183
4184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail;
4185 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0);
4186 if (SWIG_arg_fail(1)) SWIG_fail;
4187 {
4188 arg2 = &temp2;
4189 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
4190 }
4191 {
4192 PyThreadState* __tstate = wxPyBeginAllowThreads();
4193 result = (arg1)->operator +((wxRealPoint const &)*arg2);
4194
4195 wxPyEndAllowThreads(__tstate);
4196 if (PyErr_Occurred()) SWIG_fail;
4197 }
4198 {
4199 wxRealPoint * resultptr;
4200 resultptr = new wxRealPoint((wxRealPoint &)(result));
4201 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1);
4202 }
4203 return resultobj;
4204 fail:
4205 return NULL;
4206 }
4207
4208
4209 static PyObject *_wrap_RealPoint___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
4210 PyObject *resultobj;
4211 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
4212 wxRealPoint *arg2 = 0 ;
4213 wxRealPoint result;
4214 wxRealPoint temp2 ;
4215 PyObject * obj0 = 0 ;
4216 PyObject * obj1 = 0 ;
4217 char *kwnames[] = {
4218 (char *) "self",(char *) "pt", NULL
4219 };
4220
4221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail;
4222 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0);
4223 if (SWIG_arg_fail(1)) SWIG_fail;
4224 {
4225 arg2 = &temp2;
4226 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
4227 }
4228 {
4229 PyThreadState* __tstate = wxPyBeginAllowThreads();
4230 result = (arg1)->operator -((wxRealPoint const &)*arg2);
4231
4232 wxPyEndAllowThreads(__tstate);
4233 if (PyErr_Occurred()) SWIG_fail;
4234 }
4235 {
4236 wxRealPoint * resultptr;
4237 resultptr = new wxRealPoint((wxRealPoint &)(result));
4238 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1);
4239 }
4240 return resultobj;
4241 fail:
4242 return NULL;
4243 }
4244
4245
4246 static PyObject *_wrap_RealPoint_Set(PyObject *, PyObject *args, PyObject *kwargs) {
4247 PyObject *resultobj;
4248 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
4249 double arg2 ;
4250 double arg3 ;
4251 PyObject * obj0 = 0 ;
4252 PyObject * obj1 = 0 ;
4253 PyObject * obj2 = 0 ;
4254 char *kwnames[] = {
4255 (char *) "self",(char *) "x",(char *) "y", NULL
4256 };
4257
4258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
4259 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0);
4260 if (SWIG_arg_fail(1)) SWIG_fail;
4261 {
4262 arg2 = (double)(SWIG_As_double(obj1));
4263 if (SWIG_arg_fail(2)) SWIG_fail;
4264 }
4265 {
4266 arg3 = (double)(SWIG_As_double(obj2));
4267 if (SWIG_arg_fail(3)) SWIG_fail;
4268 }
4269 {
4270 PyThreadState* __tstate = wxPyBeginAllowThreads();
4271 wxRealPoint_Set(arg1,arg2,arg3);
4272
4273 wxPyEndAllowThreads(__tstate);
4274 if (PyErr_Occurred()) SWIG_fail;
4275 }
4276 Py_INCREF(Py_None); resultobj = Py_None;
4277 return resultobj;
4278 fail:
4279 return NULL;
4280 }
4281
4282
4283 static PyObject *_wrap_RealPoint_Get(PyObject *, PyObject *args, PyObject *kwargs) {
4284 PyObject *resultobj;
4285 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
4286 PyObject *result;
4287 PyObject * obj0 = 0 ;
4288 char *kwnames[] = {
4289 (char *) "self", NULL
4290 };
4291
4292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail;
4293 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRealPoint, SWIG_POINTER_EXCEPTION | 0);
4294 if (SWIG_arg_fail(1)) SWIG_fail;
4295 {
4296 PyThreadState* __tstate = wxPyBeginAllowThreads();
4297 result = (PyObject *)wxRealPoint_Get(arg1);
4298
4299 wxPyEndAllowThreads(__tstate);
4300 if (PyErr_Occurred()) SWIG_fail;
4301 }
4302 resultobj = result;
4303 return resultobj;
4304 fail:
4305 return NULL;
4306 }
4307
4308
4309 static PyObject * RealPoint_swigregister(PyObject *, PyObject *args) {
4310 PyObject *obj;
4311 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4312 SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj);
4313 Py_INCREF(obj);
4314 return Py_BuildValue((char *)"");
4315 }
4316 static PyObject *_wrap_Point_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
4317 PyObject *resultobj;
4318 wxPoint *arg1 = (wxPoint *) 0 ;
4319 int arg2 ;
4320 PyObject * obj0 = 0 ;
4321 PyObject * obj1 = 0 ;
4322 char *kwnames[] = {
4323 (char *) "self",(char *) "x", NULL
4324 };
4325
4326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail;
4327 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0);
4328 if (SWIG_arg_fail(1)) SWIG_fail;
4329 {
4330 arg2 = (int)(SWIG_As_int(obj1));
4331 if (SWIG_arg_fail(2)) SWIG_fail;
4332 }
4333 if (arg1) (arg1)->x = arg2;
4334
4335 Py_INCREF(Py_None); resultobj = Py_None;
4336 return resultobj;
4337 fail:
4338 return NULL;
4339 }
4340
4341
4342 static PyObject *_wrap_Point_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
4343 PyObject *resultobj;
4344 wxPoint *arg1 = (wxPoint *) 0 ;
4345 int result;
4346 PyObject * obj0 = 0 ;
4347 char *kwnames[] = {
4348 (char *) "self", NULL
4349 };
4350
4351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail;
4352 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0);
4353 if (SWIG_arg_fail(1)) SWIG_fail;
4354 result = (int) ((arg1)->x);
4355
4356 {
4357 resultobj = SWIG_From_int((int)(result));
4358 }
4359 return resultobj;
4360 fail:
4361 return NULL;
4362 }
4363
4364
4365 static PyObject *_wrap_Point_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
4366 PyObject *resultobj;
4367 wxPoint *arg1 = (wxPoint *) 0 ;
4368 int arg2 ;
4369 PyObject * obj0 = 0 ;
4370 PyObject * obj1 = 0 ;
4371 char *kwnames[] = {
4372 (char *) "self",(char *) "y", NULL
4373 };
4374
4375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail;
4376 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0);
4377 if (SWIG_arg_fail(1)) SWIG_fail;
4378 {
4379 arg2 = (int)(SWIG_As_int(obj1));
4380 if (SWIG_arg_fail(2)) SWIG_fail;
4381 }
4382 if (arg1) (arg1)->y = arg2;
4383
4384 Py_INCREF(Py_None); resultobj = Py_None;
4385 return resultobj;
4386 fail:
4387 return NULL;
4388 }
4389
4390
4391 static PyObject *_wrap_Point_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
4392 PyObject *resultobj;
4393 wxPoint *arg1 = (wxPoint *) 0 ;
4394 int result;
4395 PyObject * obj0 = 0 ;
4396 char *kwnames[] = {
4397 (char *) "self", NULL
4398 };
4399
4400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail;
4401 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0);
4402 if (SWIG_arg_fail(1)) SWIG_fail;
4403 result = (int) ((arg1)->y);
4404
4405 {
4406 resultobj = SWIG_From_int((int)(result));
4407 }
4408 return resultobj;
4409 fail:
4410 return NULL;
4411 }
4412
4413
4414 static PyObject *_wrap_new_Point(PyObject *, PyObject *args, PyObject *kwargs) {
4415 PyObject *resultobj;
4416 int arg1 = (int) 0 ;
4417 int arg2 = (int) 0 ;
4418 wxPoint *result;
4419 PyObject * obj0 = 0 ;
4420 PyObject * obj1 = 0 ;
4421 char *kwnames[] = {
4422 (char *) "x",(char *) "y", NULL
4423 };
4424
4425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail;
4426 if (obj0) {
4427 {
4428 arg1 = (int)(SWIG_As_int(obj0));
4429 if (SWIG_arg_fail(1)) SWIG_fail;
4430 }
4431 }
4432 if (obj1) {
4433 {
4434 arg2 = (int)(SWIG_As_int(obj1));
4435 if (SWIG_arg_fail(2)) SWIG_fail;
4436 }
4437 }
4438 {
4439 PyThreadState* __tstate = wxPyBeginAllowThreads();
4440 result = (wxPoint *)new wxPoint(arg1,arg2);
4441
4442 wxPyEndAllowThreads(__tstate);
4443 if (PyErr_Occurred()) SWIG_fail;
4444 }
4445 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1);
4446 return resultobj;
4447 fail:
4448 return NULL;
4449 }
4450
4451
4452 static PyObject *_wrap_delete_Point(PyObject *, PyObject *args, PyObject *kwargs) {
4453 PyObject *resultobj;
4454 wxPoint *arg1 = (wxPoint *) 0 ;
4455 PyObject * obj0 = 0 ;
4456 char *kwnames[] = {
4457 (char *) "self", NULL
4458 };
4459
4460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail;
4461 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0);
4462 if (SWIG_arg_fail(1)) SWIG_fail;
4463 {
4464 PyThreadState* __tstate = wxPyBeginAllowThreads();
4465 delete arg1;
4466
4467 wxPyEndAllowThreads(__tstate);
4468 if (PyErr_Occurred()) SWIG_fail;
4469 }
4470 Py_INCREF(Py_None); resultobj = Py_None;
4471 return resultobj;
4472 fail:
4473 return NULL;
4474 }
4475
4476
4477 static PyObject *_wrap_Point___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
4478 PyObject *resultobj;
4479 wxPoint *arg1 = (wxPoint *) 0 ;
4480 wxPoint *arg2 = 0 ;
4481 bool result;
4482 wxPoint temp2 ;
4483 PyObject * obj0 = 0 ;
4484 PyObject * obj1 = 0 ;
4485 char *kwnames[] = {
4486 (char *) "self",(char *) "pt", NULL
4487 };
4488
4489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail;
4490 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0);
4491 if (SWIG_arg_fail(1)) SWIG_fail;
4492 {
4493 arg2 = &temp2;
4494 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4495 }
4496 {
4497 PyThreadState* __tstate = wxPyBeginAllowThreads();
4498 result = (bool)(arg1)->operator ==((wxPoint const &)*arg2);
4499
4500 wxPyEndAllowThreads(__tstate);
4501 if (PyErr_Occurred()) SWIG_fail;
4502 }
4503 {
4504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4505 }
4506 return resultobj;
4507 fail:
4508 return NULL;
4509 }
4510
4511
4512 static PyObject *_wrap_Point___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
4513 PyObject *resultobj;
4514 wxPoint *arg1 = (wxPoint *) 0 ;
4515 wxPoint *arg2 = 0 ;
4516 bool result;
4517 wxPoint temp2 ;
4518 PyObject * obj0 = 0 ;
4519 PyObject * obj1 = 0 ;
4520 char *kwnames[] = {
4521 (char *) "self",(char *) "pt", NULL
4522 };
4523
4524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail;
4525 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0);
4526 if (SWIG_arg_fail(1)) SWIG_fail;
4527 {
4528 arg2 = &temp2;
4529 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4530 }
4531 {
4532 PyThreadState* __tstate = wxPyBeginAllowThreads();
4533 result = (bool)(arg1)->operator !=((wxPoint const &)*arg2);
4534
4535 wxPyEndAllowThreads(__tstate);
4536 if (PyErr_Occurred()) SWIG_fail;
4537 }
4538 {
4539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4540 }
4541 return resultobj;
4542 fail:
4543 return NULL;
4544 }
4545
4546
4547 static PyObject *_wrap_Point___add__(PyObject *, PyObject *args, PyObject *kwargs) {
4548 PyObject *resultobj;
4549 wxPoint *arg1 = (wxPoint *) 0 ;
4550 wxPoint *arg2 = 0 ;
4551 wxPoint result;
4552 wxPoint temp2 ;
4553 PyObject * obj0 = 0 ;
4554 PyObject * obj1 = 0 ;
4555 char *kwnames[] = {
4556 (char *) "self",(char *) "pt", NULL
4557 };
4558
4559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail;
4560 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0);
4561 if (SWIG_arg_fail(1)) SWIG_fail;
4562 {
4563 arg2 = &temp2;
4564 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4565 }
4566 {
4567 PyThreadState* __tstate = wxPyBeginAllowThreads();
4568 result = (arg1)->operator +((wxPoint const &)*arg2);
4569
4570 wxPyEndAllowThreads(__tstate);
4571 if (PyErr_Occurred()) SWIG_fail;
4572 }
4573 {
4574 wxPoint * resultptr;
4575 resultptr = new wxPoint((wxPoint &)(result));
4576 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4577 }
4578 return resultobj;
4579 fail:
4580 return NULL;
4581 }
4582
4583
4584 static PyObject *_wrap_Point___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
4585 PyObject *resultobj;
4586 wxPoint *arg1 = (wxPoint *) 0 ;
4587 wxPoint *arg2 = 0 ;
4588 wxPoint result;
4589 wxPoint temp2 ;
4590 PyObject * obj0 = 0 ;
4591 PyObject * obj1 = 0 ;
4592 char *kwnames[] = {
4593 (char *) "self",(char *) "pt", NULL
4594 };
4595
4596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail;
4597 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0);
4598 if (SWIG_arg_fail(1)) SWIG_fail;
4599 {
4600 arg2 = &temp2;
4601 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4602 }
4603 {
4604 PyThreadState* __tstate = wxPyBeginAllowThreads();
4605 result = (arg1)->operator -((wxPoint const &)*arg2);
4606
4607 wxPyEndAllowThreads(__tstate);
4608 if (PyErr_Occurred()) SWIG_fail;
4609 }
4610 {
4611 wxPoint * resultptr;
4612 resultptr = new wxPoint((wxPoint &)(result));
4613 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4614 }
4615 return resultobj;
4616 fail:
4617 return NULL;
4618 }
4619
4620
4621 static PyObject *_wrap_Point___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
4622 PyObject *resultobj;
4623 wxPoint *arg1 = (wxPoint *) 0 ;
4624 wxPoint *arg2 = 0 ;
4625 wxPoint *result;
4626 wxPoint temp2 ;
4627 PyObject * obj0 = 0 ;
4628 PyObject * obj1 = 0 ;
4629 char *kwnames[] = {
4630 (char *) "self",(char *) "pt", NULL
4631 };
4632
4633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail;
4634 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
4635 if (SWIG_arg_fail(1)) SWIG_fail;
4636 {
4637 arg2 = &temp2;
4638 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4639 }
4640 {
4641 PyThreadState* __tstate = wxPyBeginAllowThreads();
4642 {
4643 wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2);
4644 result = (wxPoint *) &_result_ref;
4645 }
4646
4647 wxPyEndAllowThreads(__tstate);
4648 if (PyErr_Occurred()) SWIG_fail;
4649 }
4650 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1);
4651 return resultobj;
4652 fail:
4653 return NULL;
4654 }
4655
4656
4657 static PyObject *_wrap_Point___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
4658 PyObject *resultobj;
4659 wxPoint *arg1 = (wxPoint *) 0 ;
4660 wxPoint *arg2 = 0 ;
4661 wxPoint *result;
4662 wxPoint temp2 ;
4663 PyObject * obj0 = 0 ;
4664 PyObject * obj1 = 0 ;
4665 char *kwnames[] = {
4666 (char *) "self",(char *) "pt", NULL
4667 };
4668
4669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail;
4670 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
4671 if (SWIG_arg_fail(1)) SWIG_fail;
4672 {
4673 arg2 = &temp2;
4674 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4675 }
4676 {
4677 PyThreadState* __tstate = wxPyBeginAllowThreads();
4678 {
4679 wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2);
4680 result = (wxPoint *) &_result_ref;
4681 }
4682
4683 wxPyEndAllowThreads(__tstate);
4684 if (PyErr_Occurred()) SWIG_fail;
4685 }
4686 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1);
4687 return resultobj;
4688 fail:
4689 return NULL;
4690 }
4691
4692
4693 static PyObject *_wrap_Point_Set(PyObject *, PyObject *args, PyObject *kwargs) {
4694 PyObject *resultobj;
4695 wxPoint *arg1 = (wxPoint *) 0 ;
4696 long arg2 ;
4697 long arg3 ;
4698 PyObject * obj0 = 0 ;
4699 PyObject * obj1 = 0 ;
4700 PyObject * obj2 = 0 ;
4701 char *kwnames[] = {
4702 (char *) "self",(char *) "x",(char *) "y", NULL
4703 };
4704
4705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
4706 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0);
4707 if (SWIG_arg_fail(1)) SWIG_fail;
4708 {
4709 arg2 = (long)(SWIG_As_long(obj1));
4710 if (SWIG_arg_fail(2)) SWIG_fail;
4711 }
4712 {
4713 arg3 = (long)(SWIG_As_long(obj2));
4714 if (SWIG_arg_fail(3)) SWIG_fail;
4715 }
4716 {
4717 PyThreadState* __tstate = wxPyBeginAllowThreads();
4718 wxPoint_Set(arg1,arg2,arg3);
4719
4720 wxPyEndAllowThreads(__tstate);
4721 if (PyErr_Occurred()) SWIG_fail;
4722 }
4723 Py_INCREF(Py_None); resultobj = Py_None;
4724 return resultobj;
4725 fail:
4726 return NULL;
4727 }
4728
4729
4730 static PyObject *_wrap_Point_Get(PyObject *, PyObject *args, PyObject *kwargs) {
4731 PyObject *resultobj;
4732 wxPoint *arg1 = (wxPoint *) 0 ;
4733 PyObject *result;
4734 PyObject * obj0 = 0 ;
4735 char *kwnames[] = {
4736 (char *) "self", NULL
4737 };
4738
4739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail;
4740 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0);
4741 if (SWIG_arg_fail(1)) SWIG_fail;
4742 {
4743 PyThreadState* __tstate = wxPyBeginAllowThreads();
4744 result = (PyObject *)wxPoint_Get(arg1);
4745
4746 wxPyEndAllowThreads(__tstate);
4747 if (PyErr_Occurred()) SWIG_fail;
4748 }
4749 resultobj = result;
4750 return resultobj;
4751 fail:
4752 return NULL;
4753 }
4754
4755
4756 static PyObject * Point_swigregister(PyObject *, PyObject *args) {
4757 PyObject *obj;
4758 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4759 SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj);
4760 Py_INCREF(obj);
4761 return Py_BuildValue((char *)"");
4762 }
4763 static PyObject *_wrap_new_Rect(PyObject *, PyObject *args, PyObject *kwargs) {
4764 PyObject *resultobj;
4765 int arg1 = (int) 0 ;
4766 int arg2 = (int) 0 ;
4767 int arg3 = (int) 0 ;
4768 int arg4 = (int) 0 ;
4769 wxRect *result;
4770 PyObject * obj0 = 0 ;
4771 PyObject * obj1 = 0 ;
4772 PyObject * obj2 = 0 ;
4773 PyObject * obj3 = 0 ;
4774 char *kwnames[] = {
4775 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4776 };
4777
4778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4779 if (obj0) {
4780 {
4781 arg1 = (int)(SWIG_As_int(obj0));
4782 if (SWIG_arg_fail(1)) SWIG_fail;
4783 }
4784 }
4785 if (obj1) {
4786 {
4787 arg2 = (int)(SWIG_As_int(obj1));
4788 if (SWIG_arg_fail(2)) SWIG_fail;
4789 }
4790 }
4791 if (obj2) {
4792 {
4793 arg3 = (int)(SWIG_As_int(obj2));
4794 if (SWIG_arg_fail(3)) SWIG_fail;
4795 }
4796 }
4797 if (obj3) {
4798 {
4799 arg4 = (int)(SWIG_As_int(obj3));
4800 if (SWIG_arg_fail(4)) SWIG_fail;
4801 }
4802 }
4803 {
4804 PyThreadState* __tstate = wxPyBeginAllowThreads();
4805 result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4);
4806
4807 wxPyEndAllowThreads(__tstate);
4808 if (PyErr_Occurred()) SWIG_fail;
4809 }
4810 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
4811 return resultobj;
4812 fail:
4813 return NULL;
4814 }
4815
4816
4817 static PyObject *_wrap_new_RectPP(PyObject *, PyObject *args, PyObject *kwargs) {
4818 PyObject *resultobj;
4819 wxPoint *arg1 = 0 ;
4820 wxPoint *arg2 = 0 ;
4821 wxRect *result;
4822 wxPoint temp1 ;
4823 wxPoint temp2 ;
4824 PyObject * obj0 = 0 ;
4825 PyObject * obj1 = 0 ;
4826 char *kwnames[] = {
4827 (char *) "topLeft",(char *) "bottomRight", NULL
4828 };
4829
4830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail;
4831 {
4832 arg1 = &temp1;
4833 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4834 }
4835 {
4836 arg2 = &temp2;
4837 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4838 }
4839 {
4840 PyThreadState* __tstate = wxPyBeginAllowThreads();
4841 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2);
4842
4843 wxPyEndAllowThreads(__tstate);
4844 if (PyErr_Occurred()) SWIG_fail;
4845 }
4846 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
4847 return resultobj;
4848 fail:
4849 return NULL;
4850 }
4851
4852
4853 static PyObject *_wrap_new_RectPS(PyObject *, PyObject *args, PyObject *kwargs) {
4854 PyObject *resultobj;
4855 wxPoint *arg1 = 0 ;
4856 wxSize *arg2 = 0 ;
4857 wxRect *result;
4858 wxPoint temp1 ;
4859 wxSize temp2 ;
4860 PyObject * obj0 = 0 ;
4861 PyObject * obj1 = 0 ;
4862 char *kwnames[] = {
4863 (char *) "pos",(char *) "size", NULL
4864 };
4865
4866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail;
4867 {
4868 arg1 = &temp1;
4869 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4870 }
4871 {
4872 arg2 = &temp2;
4873 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4874 }
4875 {
4876 PyThreadState* __tstate = wxPyBeginAllowThreads();
4877 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2);
4878
4879 wxPyEndAllowThreads(__tstate);
4880 if (PyErr_Occurred()) SWIG_fail;
4881 }
4882 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
4883 return resultobj;
4884 fail:
4885 return NULL;
4886 }
4887
4888
4889 static PyObject *_wrap_new_RectS(PyObject *, PyObject *args, PyObject *kwargs) {
4890 PyObject *resultobj;
4891 wxSize *arg1 = 0 ;
4892 wxRect *result;
4893 wxSize temp1 ;
4894 PyObject * obj0 = 0 ;
4895 char *kwnames[] = {
4896 (char *) "size", NULL
4897 };
4898
4899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RectS",kwnames,&obj0)) goto fail;
4900 {
4901 arg1 = &temp1;
4902 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
4903 }
4904 {
4905 PyThreadState* __tstate = wxPyBeginAllowThreads();
4906 result = (wxRect *)new wxRect((wxSize const &)*arg1);
4907
4908 wxPyEndAllowThreads(__tstate);
4909 if (PyErr_Occurred()) SWIG_fail;
4910 }
4911 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
4912 return resultobj;
4913 fail:
4914 return NULL;
4915 }
4916
4917
4918 static PyObject *_wrap_delete_Rect(PyObject *, PyObject *args, PyObject *kwargs) {
4919 PyObject *resultobj;
4920 wxRect *arg1 = (wxRect *) 0 ;
4921 PyObject * obj0 = 0 ;
4922 char *kwnames[] = {
4923 (char *) "self", NULL
4924 };
4925
4926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail;
4927 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
4928 if (SWIG_arg_fail(1)) SWIG_fail;
4929 {
4930 PyThreadState* __tstate = wxPyBeginAllowThreads();
4931 delete arg1;
4932
4933 wxPyEndAllowThreads(__tstate);
4934 if (PyErr_Occurred()) SWIG_fail;
4935 }
4936 Py_INCREF(Py_None); resultobj = Py_None;
4937 return resultobj;
4938 fail:
4939 return NULL;
4940 }
4941
4942
4943 static PyObject *_wrap_Rect_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
4944 PyObject *resultobj;
4945 wxRect *arg1 = (wxRect *) 0 ;
4946 int result;
4947 PyObject * obj0 = 0 ;
4948 char *kwnames[] = {
4949 (char *) "self", NULL
4950 };
4951
4952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail;
4953 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
4954 if (SWIG_arg_fail(1)) SWIG_fail;
4955 {
4956 PyThreadState* __tstate = wxPyBeginAllowThreads();
4957 result = (int)((wxRect const *)arg1)->GetX();
4958
4959 wxPyEndAllowThreads(__tstate);
4960 if (PyErr_Occurred()) SWIG_fail;
4961 }
4962 {
4963 resultobj = SWIG_From_int((int)(result));
4964 }
4965 return resultobj;
4966 fail:
4967 return NULL;
4968 }
4969
4970
4971 static PyObject *_wrap_Rect_SetX(PyObject *, PyObject *args, PyObject *kwargs) {
4972 PyObject *resultobj;
4973 wxRect *arg1 = (wxRect *) 0 ;
4974 int arg2 ;
4975 PyObject * obj0 = 0 ;
4976 PyObject * obj1 = 0 ;
4977 char *kwnames[] = {
4978 (char *) "self",(char *) "x", NULL
4979 };
4980
4981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail;
4982 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
4983 if (SWIG_arg_fail(1)) SWIG_fail;
4984 {
4985 arg2 = (int)(SWIG_As_int(obj1));
4986 if (SWIG_arg_fail(2)) SWIG_fail;
4987 }
4988 {
4989 PyThreadState* __tstate = wxPyBeginAllowThreads();
4990 (arg1)->SetX(arg2);
4991
4992 wxPyEndAllowThreads(__tstate);
4993 if (PyErr_Occurred()) SWIG_fail;
4994 }
4995 Py_INCREF(Py_None); resultobj = Py_None;
4996 return resultobj;
4997 fail:
4998 return NULL;
4999 }
5000
5001
5002 static PyObject *_wrap_Rect_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
5003 PyObject *resultobj;
5004 wxRect *arg1 = (wxRect *) 0 ;
5005 int result;
5006 PyObject * obj0 = 0 ;
5007 char *kwnames[] = {
5008 (char *) "self", NULL
5009 };
5010
5011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail;
5012 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5013 if (SWIG_arg_fail(1)) SWIG_fail;
5014 {
5015 PyThreadState* __tstate = wxPyBeginAllowThreads();
5016 result = (int)(arg1)->GetY();
5017
5018 wxPyEndAllowThreads(__tstate);
5019 if (PyErr_Occurred()) SWIG_fail;
5020 }
5021 {
5022 resultobj = SWIG_From_int((int)(result));
5023 }
5024 return resultobj;
5025 fail:
5026 return NULL;
5027 }
5028
5029
5030 static PyObject *_wrap_Rect_SetY(PyObject *, PyObject *args, PyObject *kwargs) {
5031 PyObject *resultobj;
5032 wxRect *arg1 = (wxRect *) 0 ;
5033 int arg2 ;
5034 PyObject * obj0 = 0 ;
5035 PyObject * obj1 = 0 ;
5036 char *kwnames[] = {
5037 (char *) "self",(char *) "y", NULL
5038 };
5039
5040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail;
5041 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5042 if (SWIG_arg_fail(1)) SWIG_fail;
5043 {
5044 arg2 = (int)(SWIG_As_int(obj1));
5045 if (SWIG_arg_fail(2)) SWIG_fail;
5046 }
5047 {
5048 PyThreadState* __tstate = wxPyBeginAllowThreads();
5049 (arg1)->SetY(arg2);
5050
5051 wxPyEndAllowThreads(__tstate);
5052 if (PyErr_Occurred()) SWIG_fail;
5053 }
5054 Py_INCREF(Py_None); resultobj = Py_None;
5055 return resultobj;
5056 fail:
5057 return NULL;
5058 }
5059
5060
5061 static PyObject *_wrap_Rect_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5062 PyObject *resultobj;
5063 wxRect *arg1 = (wxRect *) 0 ;
5064 int result;
5065 PyObject * obj0 = 0 ;
5066 char *kwnames[] = {
5067 (char *) "self", NULL
5068 };
5069
5070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail;
5071 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5072 if (SWIG_arg_fail(1)) SWIG_fail;
5073 {
5074 PyThreadState* __tstate = wxPyBeginAllowThreads();
5075 result = (int)((wxRect const *)arg1)->GetWidth();
5076
5077 wxPyEndAllowThreads(__tstate);
5078 if (PyErr_Occurred()) SWIG_fail;
5079 }
5080 {
5081 resultobj = SWIG_From_int((int)(result));
5082 }
5083 return resultobj;
5084 fail:
5085 return NULL;
5086 }
5087
5088
5089 static PyObject *_wrap_Rect_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj;
5091 wxRect *arg1 = (wxRect *) 0 ;
5092 int arg2 ;
5093 PyObject * obj0 = 0 ;
5094 PyObject * obj1 = 0 ;
5095 char *kwnames[] = {
5096 (char *) "self",(char *) "w", NULL
5097 };
5098
5099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5100 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5101 if (SWIG_arg_fail(1)) SWIG_fail;
5102 {
5103 arg2 = (int)(SWIG_As_int(obj1));
5104 if (SWIG_arg_fail(2)) SWIG_fail;
5105 }
5106 {
5107 PyThreadState* __tstate = wxPyBeginAllowThreads();
5108 (arg1)->SetWidth(arg2);
5109
5110 wxPyEndAllowThreads(__tstate);
5111 if (PyErr_Occurred()) SWIG_fail;
5112 }
5113 Py_INCREF(Py_None); resultobj = Py_None;
5114 return resultobj;
5115 fail:
5116 return NULL;
5117 }
5118
5119
5120 static PyObject *_wrap_Rect_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5121 PyObject *resultobj;
5122 wxRect *arg1 = (wxRect *) 0 ;
5123 int result;
5124 PyObject * obj0 = 0 ;
5125 char *kwnames[] = {
5126 (char *) "self", NULL
5127 };
5128
5129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail;
5130 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5131 if (SWIG_arg_fail(1)) SWIG_fail;
5132 {
5133 PyThreadState* __tstate = wxPyBeginAllowThreads();
5134 result = (int)((wxRect const *)arg1)->GetHeight();
5135
5136 wxPyEndAllowThreads(__tstate);
5137 if (PyErr_Occurred()) SWIG_fail;
5138 }
5139 {
5140 resultobj = SWIG_From_int((int)(result));
5141 }
5142 return resultobj;
5143 fail:
5144 return NULL;
5145 }
5146
5147
5148 static PyObject *_wrap_Rect_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5149 PyObject *resultobj;
5150 wxRect *arg1 = (wxRect *) 0 ;
5151 int arg2 ;
5152 PyObject * obj0 = 0 ;
5153 PyObject * obj1 = 0 ;
5154 char *kwnames[] = {
5155 (char *) "self",(char *) "h", NULL
5156 };
5157
5158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5159 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5160 if (SWIG_arg_fail(1)) SWIG_fail;
5161 {
5162 arg2 = (int)(SWIG_As_int(obj1));
5163 if (SWIG_arg_fail(2)) SWIG_fail;
5164 }
5165 {
5166 PyThreadState* __tstate = wxPyBeginAllowThreads();
5167 (arg1)->SetHeight(arg2);
5168
5169 wxPyEndAllowThreads(__tstate);
5170 if (PyErr_Occurred()) SWIG_fail;
5171 }
5172 Py_INCREF(Py_None); resultobj = Py_None;
5173 return resultobj;
5174 fail:
5175 return NULL;
5176 }
5177
5178
5179 static PyObject *_wrap_Rect_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
5180 PyObject *resultobj;
5181 wxRect *arg1 = (wxRect *) 0 ;
5182 wxPoint result;
5183 PyObject * obj0 = 0 ;
5184 char *kwnames[] = {
5185 (char *) "self", NULL
5186 };
5187
5188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail;
5189 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5190 if (SWIG_arg_fail(1)) SWIG_fail;
5191 {
5192 PyThreadState* __tstate = wxPyBeginAllowThreads();
5193 result = ((wxRect const *)arg1)->GetPosition();
5194
5195 wxPyEndAllowThreads(__tstate);
5196 if (PyErr_Occurred()) SWIG_fail;
5197 }
5198 {
5199 wxPoint * resultptr;
5200 resultptr = new wxPoint((wxPoint &)(result));
5201 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
5202 }
5203 return resultobj;
5204 fail:
5205 return NULL;
5206 }
5207
5208
5209 static PyObject *_wrap_Rect_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
5210 PyObject *resultobj;
5211 wxRect *arg1 = (wxRect *) 0 ;
5212 wxPoint *arg2 = 0 ;
5213 wxPoint temp2 ;
5214 PyObject * obj0 = 0 ;
5215 PyObject * obj1 = 0 ;
5216 char *kwnames[] = {
5217 (char *) "self",(char *) "p", NULL
5218 };
5219
5220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail;
5221 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5222 if (SWIG_arg_fail(1)) SWIG_fail;
5223 {
5224 arg2 = &temp2;
5225 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5226 }
5227 {
5228 PyThreadState* __tstate = wxPyBeginAllowThreads();
5229 (arg1)->SetPosition((wxPoint const &)*arg2);
5230
5231 wxPyEndAllowThreads(__tstate);
5232 if (PyErr_Occurred()) SWIG_fail;
5233 }
5234 Py_INCREF(Py_None); resultobj = Py_None;
5235 return resultobj;
5236 fail:
5237 return NULL;
5238 }
5239
5240
5241 static PyObject *_wrap_Rect_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
5242 PyObject *resultobj;
5243 wxRect *arg1 = (wxRect *) 0 ;
5244 wxSize result;
5245 PyObject * obj0 = 0 ;
5246 char *kwnames[] = {
5247 (char *) "self", NULL
5248 };
5249
5250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail;
5251 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5252 if (SWIG_arg_fail(1)) SWIG_fail;
5253 {
5254 PyThreadState* __tstate = wxPyBeginAllowThreads();
5255 result = ((wxRect const *)arg1)->GetSize();
5256
5257 wxPyEndAllowThreads(__tstate);
5258 if (PyErr_Occurred()) SWIG_fail;
5259 }
5260 {
5261 wxSize * resultptr;
5262 resultptr = new wxSize((wxSize &)(result));
5263 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
5264 }
5265 return resultobj;
5266 fail:
5267 return NULL;
5268 }
5269
5270
5271 static PyObject *_wrap_Rect_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
5272 PyObject *resultobj;
5273 wxRect *arg1 = (wxRect *) 0 ;
5274 wxSize *arg2 = 0 ;
5275 wxSize temp2 ;
5276 PyObject * obj0 = 0 ;
5277 PyObject * obj1 = 0 ;
5278 char *kwnames[] = {
5279 (char *) "self",(char *) "s", NULL
5280 };
5281
5282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail;
5283 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5284 if (SWIG_arg_fail(1)) SWIG_fail;
5285 {
5286 arg2 = &temp2;
5287 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5288 }
5289 {
5290 PyThreadState* __tstate = wxPyBeginAllowThreads();
5291 (arg1)->SetSize((wxSize const &)*arg2);
5292
5293 wxPyEndAllowThreads(__tstate);
5294 if (PyErr_Occurred()) SWIG_fail;
5295 }
5296 Py_INCREF(Py_None); resultobj = Py_None;
5297 return resultobj;
5298 fail:
5299 return NULL;
5300 }
5301
5302
5303 static PyObject *_wrap_Rect_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
5304 PyObject *resultobj;
5305 wxRect *arg1 = (wxRect *) 0 ;
5306 bool result;
5307 PyObject * obj0 = 0 ;
5308 char *kwnames[] = {
5309 (char *) "self", NULL
5310 };
5311
5312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_IsEmpty",kwnames,&obj0)) goto fail;
5313 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5314 if (SWIG_arg_fail(1)) SWIG_fail;
5315 {
5316 PyThreadState* __tstate = wxPyBeginAllowThreads();
5317 result = (bool)((wxRect const *)arg1)->IsEmpty();
5318
5319 wxPyEndAllowThreads(__tstate);
5320 if (PyErr_Occurred()) SWIG_fail;
5321 }
5322 {
5323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5324 }
5325 return resultobj;
5326 fail:
5327 return NULL;
5328 }
5329
5330
5331 static PyObject *_wrap_Rect_GetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) {
5332 PyObject *resultobj;
5333 wxRect *arg1 = (wxRect *) 0 ;
5334 wxPoint result;
5335 PyObject * obj0 = 0 ;
5336 char *kwnames[] = {
5337 (char *) "self", NULL
5338 };
5339
5340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail;
5341 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5342 if (SWIG_arg_fail(1)) SWIG_fail;
5343 {
5344 PyThreadState* __tstate = wxPyBeginAllowThreads();
5345 result = ((wxRect const *)arg1)->GetTopLeft();
5346
5347 wxPyEndAllowThreads(__tstate);
5348 if (PyErr_Occurred()) SWIG_fail;
5349 }
5350 {
5351 wxPoint * resultptr;
5352 resultptr = new wxPoint((wxPoint &)(result));
5353 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
5354 }
5355 return resultobj;
5356 fail:
5357 return NULL;
5358 }
5359
5360
5361 static PyObject *_wrap_Rect_SetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) {
5362 PyObject *resultobj;
5363 wxRect *arg1 = (wxRect *) 0 ;
5364 wxPoint *arg2 = 0 ;
5365 wxPoint temp2 ;
5366 PyObject * obj0 = 0 ;
5367 PyObject * obj1 = 0 ;
5368 char *kwnames[] = {
5369 (char *) "self",(char *) "p", NULL
5370 };
5371
5372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail;
5373 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5374 if (SWIG_arg_fail(1)) SWIG_fail;
5375 {
5376 arg2 = &temp2;
5377 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5378 }
5379 {
5380 PyThreadState* __tstate = wxPyBeginAllowThreads();
5381 (arg1)->SetTopLeft((wxPoint const &)*arg2);
5382
5383 wxPyEndAllowThreads(__tstate);
5384 if (PyErr_Occurred()) SWIG_fail;
5385 }
5386 Py_INCREF(Py_None); resultobj = Py_None;
5387 return resultobj;
5388 fail:
5389 return NULL;
5390 }
5391
5392
5393 static PyObject *_wrap_Rect_GetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) {
5394 PyObject *resultobj;
5395 wxRect *arg1 = (wxRect *) 0 ;
5396 wxPoint result;
5397 PyObject * obj0 = 0 ;
5398 char *kwnames[] = {
5399 (char *) "self", NULL
5400 };
5401
5402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail;
5403 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5404 if (SWIG_arg_fail(1)) SWIG_fail;
5405 {
5406 PyThreadState* __tstate = wxPyBeginAllowThreads();
5407 result = ((wxRect const *)arg1)->GetBottomRight();
5408
5409 wxPyEndAllowThreads(__tstate);
5410 if (PyErr_Occurred()) SWIG_fail;
5411 }
5412 {
5413 wxPoint * resultptr;
5414 resultptr = new wxPoint((wxPoint &)(result));
5415 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
5416 }
5417 return resultobj;
5418 fail:
5419 return NULL;
5420 }
5421
5422
5423 static PyObject *_wrap_Rect_SetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) {
5424 PyObject *resultobj;
5425 wxRect *arg1 = (wxRect *) 0 ;
5426 wxPoint *arg2 = 0 ;
5427 wxPoint temp2 ;
5428 PyObject * obj0 = 0 ;
5429 PyObject * obj1 = 0 ;
5430 char *kwnames[] = {
5431 (char *) "self",(char *) "p", NULL
5432 };
5433
5434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail;
5435 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5436 if (SWIG_arg_fail(1)) SWIG_fail;
5437 {
5438 arg2 = &temp2;
5439 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5440 }
5441 {
5442 PyThreadState* __tstate = wxPyBeginAllowThreads();
5443 (arg1)->SetBottomRight((wxPoint const &)*arg2);
5444
5445 wxPyEndAllowThreads(__tstate);
5446 if (PyErr_Occurred()) SWIG_fail;
5447 }
5448 Py_INCREF(Py_None); resultobj = Py_None;
5449 return resultobj;
5450 fail:
5451 return NULL;
5452 }
5453
5454
5455 static PyObject *_wrap_Rect_GetLeft(PyObject *, PyObject *args, PyObject *kwargs) {
5456 PyObject *resultobj;
5457 wxRect *arg1 = (wxRect *) 0 ;
5458 int result;
5459 PyObject * obj0 = 0 ;
5460 char *kwnames[] = {
5461 (char *) "self", NULL
5462 };
5463
5464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail;
5465 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5466 if (SWIG_arg_fail(1)) SWIG_fail;
5467 {
5468 PyThreadState* __tstate = wxPyBeginAllowThreads();
5469 result = (int)((wxRect const *)arg1)->GetLeft();
5470
5471 wxPyEndAllowThreads(__tstate);
5472 if (PyErr_Occurred()) SWIG_fail;
5473 }
5474 {
5475 resultobj = SWIG_From_int((int)(result));
5476 }
5477 return resultobj;
5478 fail:
5479 return NULL;
5480 }
5481
5482
5483 static PyObject *_wrap_Rect_GetTop(PyObject *, PyObject *args, PyObject *kwargs) {
5484 PyObject *resultobj;
5485 wxRect *arg1 = (wxRect *) 0 ;
5486 int result;
5487 PyObject * obj0 = 0 ;
5488 char *kwnames[] = {
5489 (char *) "self", NULL
5490 };
5491
5492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail;
5493 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5494 if (SWIG_arg_fail(1)) SWIG_fail;
5495 {
5496 PyThreadState* __tstate = wxPyBeginAllowThreads();
5497 result = (int)((wxRect const *)arg1)->GetTop();
5498
5499 wxPyEndAllowThreads(__tstate);
5500 if (PyErr_Occurred()) SWIG_fail;
5501 }
5502 {
5503 resultobj = SWIG_From_int((int)(result));
5504 }
5505 return resultobj;
5506 fail:
5507 return NULL;
5508 }
5509
5510
5511 static PyObject *_wrap_Rect_GetBottom(PyObject *, PyObject *args, PyObject *kwargs) {
5512 PyObject *resultobj;
5513 wxRect *arg1 = (wxRect *) 0 ;
5514 int result;
5515 PyObject * obj0 = 0 ;
5516 char *kwnames[] = {
5517 (char *) "self", NULL
5518 };
5519
5520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail;
5521 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5522 if (SWIG_arg_fail(1)) SWIG_fail;
5523 {
5524 PyThreadState* __tstate = wxPyBeginAllowThreads();
5525 result = (int)((wxRect const *)arg1)->GetBottom();
5526
5527 wxPyEndAllowThreads(__tstate);
5528 if (PyErr_Occurred()) SWIG_fail;
5529 }
5530 {
5531 resultobj = SWIG_From_int((int)(result));
5532 }
5533 return resultobj;
5534 fail:
5535 return NULL;
5536 }
5537
5538
5539 static PyObject *_wrap_Rect_GetRight(PyObject *, PyObject *args, PyObject *kwargs) {
5540 PyObject *resultobj;
5541 wxRect *arg1 = (wxRect *) 0 ;
5542 int result;
5543 PyObject * obj0 = 0 ;
5544 char *kwnames[] = {
5545 (char *) "self", NULL
5546 };
5547
5548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail;
5549 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5550 if (SWIG_arg_fail(1)) SWIG_fail;
5551 {
5552 PyThreadState* __tstate = wxPyBeginAllowThreads();
5553 result = (int)((wxRect const *)arg1)->GetRight();
5554
5555 wxPyEndAllowThreads(__tstate);
5556 if (PyErr_Occurred()) SWIG_fail;
5557 }
5558 {
5559 resultobj = SWIG_From_int((int)(result));
5560 }
5561 return resultobj;
5562 fail:
5563 return NULL;
5564 }
5565
5566
5567 static PyObject *_wrap_Rect_SetLeft(PyObject *, PyObject *args, PyObject *kwargs) {
5568 PyObject *resultobj;
5569 wxRect *arg1 = (wxRect *) 0 ;
5570 int arg2 ;
5571 PyObject * obj0 = 0 ;
5572 PyObject * obj1 = 0 ;
5573 char *kwnames[] = {
5574 (char *) "self",(char *) "left", NULL
5575 };
5576
5577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail;
5578 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5579 if (SWIG_arg_fail(1)) SWIG_fail;
5580 {
5581 arg2 = (int)(SWIG_As_int(obj1));
5582 if (SWIG_arg_fail(2)) SWIG_fail;
5583 }
5584 {
5585 PyThreadState* __tstate = wxPyBeginAllowThreads();
5586 (arg1)->SetLeft(arg2);
5587
5588 wxPyEndAllowThreads(__tstate);
5589 if (PyErr_Occurred()) SWIG_fail;
5590 }
5591 Py_INCREF(Py_None); resultobj = Py_None;
5592 return resultobj;
5593 fail:
5594 return NULL;
5595 }
5596
5597
5598 static PyObject *_wrap_Rect_SetRight(PyObject *, PyObject *args, PyObject *kwargs) {
5599 PyObject *resultobj;
5600 wxRect *arg1 = (wxRect *) 0 ;
5601 int arg2 ;
5602 PyObject * obj0 = 0 ;
5603 PyObject * obj1 = 0 ;
5604 char *kwnames[] = {
5605 (char *) "self",(char *) "right", NULL
5606 };
5607
5608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail;
5609 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5610 if (SWIG_arg_fail(1)) SWIG_fail;
5611 {
5612 arg2 = (int)(SWIG_As_int(obj1));
5613 if (SWIG_arg_fail(2)) SWIG_fail;
5614 }
5615 {
5616 PyThreadState* __tstate = wxPyBeginAllowThreads();
5617 (arg1)->SetRight(arg2);
5618
5619 wxPyEndAllowThreads(__tstate);
5620 if (PyErr_Occurred()) SWIG_fail;
5621 }
5622 Py_INCREF(Py_None); resultobj = Py_None;
5623 return resultobj;
5624 fail:
5625 return NULL;
5626 }
5627
5628
5629 static PyObject *_wrap_Rect_SetTop(PyObject *, PyObject *args, PyObject *kwargs) {
5630 PyObject *resultobj;
5631 wxRect *arg1 = (wxRect *) 0 ;
5632 int arg2 ;
5633 PyObject * obj0 = 0 ;
5634 PyObject * obj1 = 0 ;
5635 char *kwnames[] = {
5636 (char *) "self",(char *) "top", NULL
5637 };
5638
5639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail;
5640 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5641 if (SWIG_arg_fail(1)) SWIG_fail;
5642 {
5643 arg2 = (int)(SWIG_As_int(obj1));
5644 if (SWIG_arg_fail(2)) SWIG_fail;
5645 }
5646 {
5647 PyThreadState* __tstate = wxPyBeginAllowThreads();
5648 (arg1)->SetTop(arg2);
5649
5650 wxPyEndAllowThreads(__tstate);
5651 if (PyErr_Occurred()) SWIG_fail;
5652 }
5653 Py_INCREF(Py_None); resultobj = Py_None;
5654 return resultobj;
5655 fail:
5656 return NULL;
5657 }
5658
5659
5660 static PyObject *_wrap_Rect_SetBottom(PyObject *, PyObject *args, PyObject *kwargs) {
5661 PyObject *resultobj;
5662 wxRect *arg1 = (wxRect *) 0 ;
5663 int arg2 ;
5664 PyObject * obj0 = 0 ;
5665 PyObject * obj1 = 0 ;
5666 char *kwnames[] = {
5667 (char *) "self",(char *) "bottom", NULL
5668 };
5669
5670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail;
5671 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5672 if (SWIG_arg_fail(1)) SWIG_fail;
5673 {
5674 arg2 = (int)(SWIG_As_int(obj1));
5675 if (SWIG_arg_fail(2)) SWIG_fail;
5676 }
5677 {
5678 PyThreadState* __tstate = wxPyBeginAllowThreads();
5679 (arg1)->SetBottom(arg2);
5680
5681 wxPyEndAllowThreads(__tstate);
5682 if (PyErr_Occurred()) SWIG_fail;
5683 }
5684 Py_INCREF(Py_None); resultobj = Py_None;
5685 return resultobj;
5686 fail:
5687 return NULL;
5688 }
5689
5690
5691 static PyObject *_wrap_Rect_Inflate(PyObject *, PyObject *args, PyObject *kwargs) {
5692 PyObject *resultobj;
5693 wxRect *arg1 = (wxRect *) 0 ;
5694 int arg2 ;
5695 int arg3 ;
5696 wxRect *result;
5697 PyObject * obj0 = 0 ;
5698 PyObject * obj1 = 0 ;
5699 PyObject * obj2 = 0 ;
5700 char *kwnames[] = {
5701 (char *) "self",(char *) "dx",(char *) "dy", NULL
5702 };
5703
5704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
5705 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5706 if (SWIG_arg_fail(1)) SWIG_fail;
5707 {
5708 arg2 = (int)(SWIG_As_int(obj1));
5709 if (SWIG_arg_fail(2)) SWIG_fail;
5710 }
5711 {
5712 arg3 = (int)(SWIG_As_int(obj2));
5713 if (SWIG_arg_fail(3)) SWIG_fail;
5714 }
5715 {
5716 PyThreadState* __tstate = wxPyBeginAllowThreads();
5717 {
5718 wxRect &_result_ref = (arg1)->Inflate(arg2,arg3);
5719 result = (wxRect *) &_result_ref;
5720 }
5721
5722 wxPyEndAllowThreads(__tstate);
5723 if (PyErr_Occurred()) SWIG_fail;
5724 }
5725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
5726 return resultobj;
5727 fail:
5728 return NULL;
5729 }
5730
5731
5732 static PyObject *_wrap_Rect_Deflate(PyObject *, PyObject *args, PyObject *kwargs) {
5733 PyObject *resultobj;
5734 wxRect *arg1 = (wxRect *) 0 ;
5735 int arg2 ;
5736 int arg3 ;
5737 wxRect *result;
5738 PyObject * obj0 = 0 ;
5739 PyObject * obj1 = 0 ;
5740 PyObject * obj2 = 0 ;
5741 char *kwnames[] = {
5742 (char *) "self",(char *) "dx",(char *) "dy", NULL
5743 };
5744
5745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
5746 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5747 if (SWIG_arg_fail(1)) SWIG_fail;
5748 {
5749 arg2 = (int)(SWIG_As_int(obj1));
5750 if (SWIG_arg_fail(2)) SWIG_fail;
5751 }
5752 {
5753 arg3 = (int)(SWIG_As_int(obj2));
5754 if (SWIG_arg_fail(3)) SWIG_fail;
5755 }
5756 {
5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
5758 {
5759 wxRect &_result_ref = (arg1)->Deflate(arg2,arg3);
5760 result = (wxRect *) &_result_ref;
5761 }
5762
5763 wxPyEndAllowThreads(__tstate);
5764 if (PyErr_Occurred()) SWIG_fail;
5765 }
5766 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
5767 return resultobj;
5768 fail:
5769 return NULL;
5770 }
5771
5772
5773 static PyObject *_wrap_Rect_OffsetXY(PyObject *, PyObject *args, PyObject *kwargs) {
5774 PyObject *resultobj;
5775 wxRect *arg1 = (wxRect *) 0 ;
5776 int arg2 ;
5777 int arg3 ;
5778 PyObject * obj0 = 0 ;
5779 PyObject * obj1 = 0 ;
5780 PyObject * obj2 = 0 ;
5781 char *kwnames[] = {
5782 (char *) "self",(char *) "dx",(char *) "dy", NULL
5783 };
5784
5785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
5786 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5787 if (SWIG_arg_fail(1)) SWIG_fail;
5788 {
5789 arg2 = (int)(SWIG_As_int(obj1));
5790 if (SWIG_arg_fail(2)) SWIG_fail;
5791 }
5792 {
5793 arg3 = (int)(SWIG_As_int(obj2));
5794 if (SWIG_arg_fail(3)) SWIG_fail;
5795 }
5796 {
5797 PyThreadState* __tstate = wxPyBeginAllowThreads();
5798 (arg1)->Offset(arg2,arg3);
5799
5800 wxPyEndAllowThreads(__tstate);
5801 if (PyErr_Occurred()) SWIG_fail;
5802 }
5803 Py_INCREF(Py_None); resultobj = Py_None;
5804 return resultobj;
5805 fail:
5806 return NULL;
5807 }
5808
5809
5810 static PyObject *_wrap_Rect_Offset(PyObject *, PyObject *args, PyObject *kwargs) {
5811 PyObject *resultobj;
5812 wxRect *arg1 = (wxRect *) 0 ;
5813 wxPoint *arg2 = 0 ;
5814 wxPoint temp2 ;
5815 PyObject * obj0 = 0 ;
5816 PyObject * obj1 = 0 ;
5817 char *kwnames[] = {
5818 (char *) "self",(char *) "pt", NULL
5819 };
5820
5821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail;
5822 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5823 if (SWIG_arg_fail(1)) SWIG_fail;
5824 {
5825 arg2 = &temp2;
5826 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5827 }
5828 {
5829 PyThreadState* __tstate = wxPyBeginAllowThreads();
5830 (arg1)->Offset((wxPoint const &)*arg2);
5831
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) SWIG_fail;
5834 }
5835 Py_INCREF(Py_None); resultobj = Py_None;
5836 return resultobj;
5837 fail:
5838 return NULL;
5839 }
5840
5841
5842 static PyObject *_wrap_Rect_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
5843 PyObject *resultobj;
5844 wxRect *arg1 = (wxRect *) 0 ;
5845 wxRect *arg2 = 0 ;
5846 wxRect result;
5847 wxRect temp2 ;
5848 PyObject * obj0 = 0 ;
5849 PyObject * obj1 = 0 ;
5850 char *kwnames[] = {
5851 (char *) "self",(char *) "rect", NULL
5852 };
5853
5854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail;
5855 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5856 if (SWIG_arg_fail(1)) SWIG_fail;
5857 {
5858 arg2 = &temp2;
5859 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5860 }
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 result = (arg1)->Intersect((wxRect const &)*arg2);
5864
5865 wxPyEndAllowThreads(__tstate);
5866 if (PyErr_Occurred()) SWIG_fail;
5867 }
5868 {
5869 wxRect * resultptr;
5870 resultptr = new wxRect((wxRect &)(result));
5871 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5872 }
5873 return resultobj;
5874 fail:
5875 return NULL;
5876 }
5877
5878
5879 static PyObject *_wrap_Rect_Union(PyObject *, PyObject *args, PyObject *kwargs) {
5880 PyObject *resultobj;
5881 wxRect *arg1 = (wxRect *) 0 ;
5882 wxRect *arg2 = 0 ;
5883 wxRect result;
5884 wxRect temp2 ;
5885 PyObject * obj0 = 0 ;
5886 PyObject * obj1 = 0 ;
5887 char *kwnames[] = {
5888 (char *) "self",(char *) "rect", NULL
5889 };
5890
5891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Union",kwnames,&obj0,&obj1)) goto fail;
5892 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5893 if (SWIG_arg_fail(1)) SWIG_fail;
5894 {
5895 arg2 = &temp2;
5896 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5897 }
5898 {
5899 PyThreadState* __tstate = wxPyBeginAllowThreads();
5900 result = (arg1)->Union((wxRect const &)*arg2);
5901
5902 wxPyEndAllowThreads(__tstate);
5903 if (PyErr_Occurred()) SWIG_fail;
5904 }
5905 {
5906 wxRect * resultptr;
5907 resultptr = new wxRect((wxRect &)(result));
5908 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5909 }
5910 return resultobj;
5911 fail:
5912 return NULL;
5913 }
5914
5915
5916 static PyObject *_wrap_Rect___add__(PyObject *, PyObject *args, PyObject *kwargs) {
5917 PyObject *resultobj;
5918 wxRect *arg1 = (wxRect *) 0 ;
5919 wxRect *arg2 = 0 ;
5920 wxRect result;
5921 wxRect temp2 ;
5922 PyObject * obj0 = 0 ;
5923 PyObject * obj1 = 0 ;
5924 char *kwnames[] = {
5925 (char *) "self",(char *) "rect", NULL
5926 };
5927
5928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail;
5929 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
5930 if (SWIG_arg_fail(1)) SWIG_fail;
5931 {
5932 arg2 = &temp2;
5933 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5934 }
5935 {
5936 PyThreadState* __tstate = wxPyBeginAllowThreads();
5937 result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2);
5938
5939 wxPyEndAllowThreads(__tstate);
5940 if (PyErr_Occurred()) SWIG_fail;
5941 }
5942 {
5943 wxRect * resultptr;
5944 resultptr = new wxRect((wxRect &)(result));
5945 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5946 }
5947 return resultobj;
5948 fail:
5949 return NULL;
5950 }
5951
5952
5953 static PyObject *_wrap_Rect___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
5954 PyObject *resultobj;
5955 wxRect *arg1 = (wxRect *) 0 ;
5956 wxRect *arg2 = 0 ;
5957 wxRect *result;
5958 wxRect temp2 ;
5959 PyObject * obj0 = 0 ;
5960 PyObject * obj1 = 0 ;
5961 char *kwnames[] = {
5962 (char *) "self",(char *) "rect", NULL
5963 };
5964
5965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail;
5966 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
5967 if (SWIG_arg_fail(1)) SWIG_fail;
5968 {
5969 arg2 = &temp2;
5970 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5971 }
5972 {
5973 PyThreadState* __tstate = wxPyBeginAllowThreads();
5974 {
5975 wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2);
5976 result = (wxRect *) &_result_ref;
5977 }
5978
5979 wxPyEndAllowThreads(__tstate);
5980 if (PyErr_Occurred()) SWIG_fail;
5981 }
5982 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
5983 return resultobj;
5984 fail:
5985 return NULL;
5986 }
5987
5988
5989 static PyObject *_wrap_Rect___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
5990 PyObject *resultobj;
5991 wxRect *arg1 = (wxRect *) 0 ;
5992 wxRect *arg2 = 0 ;
5993 bool result;
5994 wxRect temp2 ;
5995 PyObject * obj0 = 0 ;
5996 PyObject * obj1 = 0 ;
5997 char *kwnames[] = {
5998 (char *) "self",(char *) "rect", NULL
5999 };
6000
6001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail;
6002 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6003 if (SWIG_arg_fail(1)) SWIG_fail;
6004 {
6005 arg2 = &temp2;
6006 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6007 }
6008 {
6009 PyThreadState* __tstate = wxPyBeginAllowThreads();
6010 result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2);
6011
6012 wxPyEndAllowThreads(__tstate);
6013 if (PyErr_Occurred()) SWIG_fail;
6014 }
6015 {
6016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6017 }
6018 return resultobj;
6019 fail:
6020 return NULL;
6021 }
6022
6023
6024 static PyObject *_wrap_Rect___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
6025 PyObject *resultobj;
6026 wxRect *arg1 = (wxRect *) 0 ;
6027 wxRect *arg2 = 0 ;
6028 bool result;
6029 wxRect temp2 ;
6030 PyObject * obj0 = 0 ;
6031 PyObject * obj1 = 0 ;
6032 char *kwnames[] = {
6033 (char *) "self",(char *) "rect", NULL
6034 };
6035
6036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail;
6037 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6038 if (SWIG_arg_fail(1)) SWIG_fail;
6039 {
6040 arg2 = &temp2;
6041 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6042 }
6043 {
6044 PyThreadState* __tstate = wxPyBeginAllowThreads();
6045 result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2);
6046
6047 wxPyEndAllowThreads(__tstate);
6048 if (PyErr_Occurred()) SWIG_fail;
6049 }
6050 {
6051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6052 }
6053 return resultobj;
6054 fail:
6055 return NULL;
6056 }
6057
6058
6059 static PyObject *_wrap_Rect_InsideXY(PyObject *, PyObject *args, PyObject *kwargs) {
6060 PyObject *resultobj;
6061 wxRect *arg1 = (wxRect *) 0 ;
6062 int arg2 ;
6063 int arg3 ;
6064 bool result;
6065 PyObject * obj0 = 0 ;
6066 PyObject * obj1 = 0 ;
6067 PyObject * obj2 = 0 ;
6068 char *kwnames[] = {
6069 (char *) "self",(char *) "x",(char *) "y", NULL
6070 };
6071
6072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
6073 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6074 if (SWIG_arg_fail(1)) SWIG_fail;
6075 {
6076 arg2 = (int)(SWIG_As_int(obj1));
6077 if (SWIG_arg_fail(2)) SWIG_fail;
6078 }
6079 {
6080 arg3 = (int)(SWIG_As_int(obj2));
6081 if (SWIG_arg_fail(3)) SWIG_fail;
6082 }
6083 {
6084 PyThreadState* __tstate = wxPyBeginAllowThreads();
6085 result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3);
6086
6087 wxPyEndAllowThreads(__tstate);
6088 if (PyErr_Occurred()) SWIG_fail;
6089 }
6090 {
6091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6092 }
6093 return resultobj;
6094 fail:
6095 return NULL;
6096 }
6097
6098
6099 static PyObject *_wrap_Rect_Inside(PyObject *, PyObject *args, PyObject *kwargs) {
6100 PyObject *resultobj;
6101 wxRect *arg1 = (wxRect *) 0 ;
6102 wxPoint *arg2 = 0 ;
6103 bool result;
6104 wxPoint temp2 ;
6105 PyObject * obj0 = 0 ;
6106 PyObject * obj1 = 0 ;
6107 char *kwnames[] = {
6108 (char *) "self",(char *) "pt", NULL
6109 };
6110
6111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail;
6112 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6113 if (SWIG_arg_fail(1)) SWIG_fail;
6114 {
6115 arg2 = &temp2;
6116 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6117 }
6118 {
6119 PyThreadState* __tstate = wxPyBeginAllowThreads();
6120 result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2);
6121
6122 wxPyEndAllowThreads(__tstate);
6123 if (PyErr_Occurred()) SWIG_fail;
6124 }
6125 {
6126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6127 }
6128 return resultobj;
6129 fail:
6130 return NULL;
6131 }
6132
6133
6134 static PyObject *_wrap_Rect_Intersects(PyObject *, PyObject *args, PyObject *kwargs) {
6135 PyObject *resultobj;
6136 wxRect *arg1 = (wxRect *) 0 ;
6137 wxRect *arg2 = 0 ;
6138 bool result;
6139 wxRect temp2 ;
6140 PyObject * obj0 = 0 ;
6141 PyObject * obj1 = 0 ;
6142 char *kwnames[] = {
6143 (char *) "self",(char *) "rect", NULL
6144 };
6145
6146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail;
6147 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6148 if (SWIG_arg_fail(1)) SWIG_fail;
6149 {
6150 arg2 = &temp2;
6151 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6152 }
6153 {
6154 PyThreadState* __tstate = wxPyBeginAllowThreads();
6155 result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2);
6156
6157 wxPyEndAllowThreads(__tstate);
6158 if (PyErr_Occurred()) SWIG_fail;
6159 }
6160 {
6161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6162 }
6163 return resultobj;
6164 fail:
6165 return NULL;
6166 }
6167
6168
6169 static PyObject *_wrap_Rect_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
6170 PyObject *resultobj;
6171 wxRect *arg1 = (wxRect *) 0 ;
6172 int arg2 ;
6173 PyObject * obj0 = 0 ;
6174 PyObject * obj1 = 0 ;
6175 char *kwnames[] = {
6176 (char *) "self",(char *) "x", NULL
6177 };
6178
6179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail;
6180 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6181 if (SWIG_arg_fail(1)) SWIG_fail;
6182 {
6183 arg2 = (int)(SWIG_As_int(obj1));
6184 if (SWIG_arg_fail(2)) SWIG_fail;
6185 }
6186 if (arg1) (arg1)->x = arg2;
6187
6188 Py_INCREF(Py_None); resultobj = Py_None;
6189 return resultobj;
6190 fail:
6191 return NULL;
6192 }
6193
6194
6195 static PyObject *_wrap_Rect_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
6196 PyObject *resultobj;
6197 wxRect *arg1 = (wxRect *) 0 ;
6198 int result;
6199 PyObject * obj0 = 0 ;
6200 char *kwnames[] = {
6201 (char *) "self", NULL
6202 };
6203
6204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail;
6205 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6206 if (SWIG_arg_fail(1)) SWIG_fail;
6207 result = (int) ((arg1)->x);
6208
6209 {
6210 resultobj = SWIG_From_int((int)(result));
6211 }
6212 return resultobj;
6213 fail:
6214 return NULL;
6215 }
6216
6217
6218 static PyObject *_wrap_Rect_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
6219 PyObject *resultobj;
6220 wxRect *arg1 = (wxRect *) 0 ;
6221 int arg2 ;
6222 PyObject * obj0 = 0 ;
6223 PyObject * obj1 = 0 ;
6224 char *kwnames[] = {
6225 (char *) "self",(char *) "y", NULL
6226 };
6227
6228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail;
6229 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6230 if (SWIG_arg_fail(1)) SWIG_fail;
6231 {
6232 arg2 = (int)(SWIG_As_int(obj1));
6233 if (SWIG_arg_fail(2)) SWIG_fail;
6234 }
6235 if (arg1) (arg1)->y = arg2;
6236
6237 Py_INCREF(Py_None); resultobj = Py_None;
6238 return resultobj;
6239 fail:
6240 return NULL;
6241 }
6242
6243
6244 static PyObject *_wrap_Rect_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
6245 PyObject *resultobj;
6246 wxRect *arg1 = (wxRect *) 0 ;
6247 int result;
6248 PyObject * obj0 = 0 ;
6249 char *kwnames[] = {
6250 (char *) "self", NULL
6251 };
6252
6253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail;
6254 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6255 if (SWIG_arg_fail(1)) SWIG_fail;
6256 result = (int) ((arg1)->y);
6257
6258 {
6259 resultobj = SWIG_From_int((int)(result));
6260 }
6261 return resultobj;
6262 fail:
6263 return NULL;
6264 }
6265
6266
6267 static PyObject *_wrap_Rect_width_set(PyObject *, PyObject *args, PyObject *kwargs) {
6268 PyObject *resultobj;
6269 wxRect *arg1 = (wxRect *) 0 ;
6270 int arg2 ;
6271 PyObject * obj0 = 0 ;
6272 PyObject * obj1 = 0 ;
6273 char *kwnames[] = {
6274 (char *) "self",(char *) "width", NULL
6275 };
6276
6277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail;
6278 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6279 if (SWIG_arg_fail(1)) SWIG_fail;
6280 {
6281 arg2 = (int)(SWIG_As_int(obj1));
6282 if (SWIG_arg_fail(2)) SWIG_fail;
6283 }
6284 if (arg1) (arg1)->width = arg2;
6285
6286 Py_INCREF(Py_None); resultobj = Py_None;
6287 return resultobj;
6288 fail:
6289 return NULL;
6290 }
6291
6292
6293 static PyObject *_wrap_Rect_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
6294 PyObject *resultobj;
6295 wxRect *arg1 = (wxRect *) 0 ;
6296 int result;
6297 PyObject * obj0 = 0 ;
6298 char *kwnames[] = {
6299 (char *) "self", NULL
6300 };
6301
6302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail;
6303 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6304 if (SWIG_arg_fail(1)) SWIG_fail;
6305 result = (int) ((arg1)->width);
6306
6307 {
6308 resultobj = SWIG_From_int((int)(result));
6309 }
6310 return resultobj;
6311 fail:
6312 return NULL;
6313 }
6314
6315
6316 static PyObject *_wrap_Rect_height_set(PyObject *, PyObject *args, PyObject *kwargs) {
6317 PyObject *resultobj;
6318 wxRect *arg1 = (wxRect *) 0 ;
6319 int arg2 ;
6320 PyObject * obj0 = 0 ;
6321 PyObject * obj1 = 0 ;
6322 char *kwnames[] = {
6323 (char *) "self",(char *) "height", NULL
6324 };
6325
6326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail;
6327 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6328 if (SWIG_arg_fail(1)) SWIG_fail;
6329 {
6330 arg2 = (int)(SWIG_As_int(obj1));
6331 if (SWIG_arg_fail(2)) SWIG_fail;
6332 }
6333 if (arg1) (arg1)->height = arg2;
6334
6335 Py_INCREF(Py_None); resultobj = Py_None;
6336 return resultobj;
6337 fail:
6338 return NULL;
6339 }
6340
6341
6342 static PyObject *_wrap_Rect_height_get(PyObject *, PyObject *args, PyObject *kwargs) {
6343 PyObject *resultobj;
6344 wxRect *arg1 = (wxRect *) 0 ;
6345 int result;
6346 PyObject * obj0 = 0 ;
6347 char *kwnames[] = {
6348 (char *) "self", NULL
6349 };
6350
6351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail;
6352 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6353 if (SWIG_arg_fail(1)) SWIG_fail;
6354 result = (int) ((arg1)->height);
6355
6356 {
6357 resultobj = SWIG_From_int((int)(result));
6358 }
6359 return resultobj;
6360 fail:
6361 return NULL;
6362 }
6363
6364
6365 static PyObject *_wrap_Rect_Set(PyObject *, PyObject *args, PyObject *kwargs) {
6366 PyObject *resultobj;
6367 wxRect *arg1 = (wxRect *) 0 ;
6368 int arg2 = (int) 0 ;
6369 int arg3 = (int) 0 ;
6370 int arg4 = (int) 0 ;
6371 int arg5 = (int) 0 ;
6372 PyObject * obj0 = 0 ;
6373 PyObject * obj1 = 0 ;
6374 PyObject * obj2 = 0 ;
6375 PyObject * obj3 = 0 ;
6376 PyObject * obj4 = 0 ;
6377 char *kwnames[] = {
6378 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6379 };
6380
6381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6382 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6383 if (SWIG_arg_fail(1)) SWIG_fail;
6384 if (obj1) {
6385 {
6386 arg2 = (int)(SWIG_As_int(obj1));
6387 if (SWIG_arg_fail(2)) SWIG_fail;
6388 }
6389 }
6390 if (obj2) {
6391 {
6392 arg3 = (int)(SWIG_As_int(obj2));
6393 if (SWIG_arg_fail(3)) SWIG_fail;
6394 }
6395 }
6396 if (obj3) {
6397 {
6398 arg4 = (int)(SWIG_As_int(obj3));
6399 if (SWIG_arg_fail(4)) SWIG_fail;
6400 }
6401 }
6402 if (obj4) {
6403 {
6404 arg5 = (int)(SWIG_As_int(obj4));
6405 if (SWIG_arg_fail(5)) SWIG_fail;
6406 }
6407 }
6408 {
6409 PyThreadState* __tstate = wxPyBeginAllowThreads();
6410 wxRect_Set(arg1,arg2,arg3,arg4,arg5);
6411
6412 wxPyEndAllowThreads(__tstate);
6413 if (PyErr_Occurred()) SWIG_fail;
6414 }
6415 Py_INCREF(Py_None); resultobj = Py_None;
6416 return resultobj;
6417 fail:
6418 return NULL;
6419 }
6420
6421
6422 static PyObject *_wrap_Rect_Get(PyObject *, PyObject *args, PyObject *kwargs) {
6423 PyObject *resultobj;
6424 wxRect *arg1 = (wxRect *) 0 ;
6425 PyObject *result;
6426 PyObject * obj0 = 0 ;
6427 char *kwnames[] = {
6428 (char *) "self", NULL
6429 };
6430
6431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail;
6432 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6433 if (SWIG_arg_fail(1)) SWIG_fail;
6434 {
6435 PyThreadState* __tstate = wxPyBeginAllowThreads();
6436 result = (PyObject *)wxRect_Get(arg1);
6437
6438 wxPyEndAllowThreads(__tstate);
6439 if (PyErr_Occurred()) SWIG_fail;
6440 }
6441 resultobj = result;
6442 return resultobj;
6443 fail:
6444 return NULL;
6445 }
6446
6447
6448 static PyObject * Rect_swigregister(PyObject *, PyObject *args) {
6449 PyObject *obj;
6450 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6451 SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj);
6452 Py_INCREF(obj);
6453 return Py_BuildValue((char *)"");
6454 }
6455 static PyObject *_wrap_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
6456 PyObject *resultobj;
6457 wxRect *arg1 = (wxRect *) 0 ;
6458 wxRect *arg2 = (wxRect *) 0 ;
6459 PyObject *result;
6460 PyObject * obj0 = 0 ;
6461 PyObject * obj1 = 0 ;
6462 char *kwnames[] = {
6463 (char *) "r1",(char *) "r2", NULL
6464 };
6465
6466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail;
6467 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6468 if (SWIG_arg_fail(1)) SWIG_fail;
6469 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
6470 if (SWIG_arg_fail(2)) SWIG_fail;
6471 {
6472 if (!wxPyCheckForApp()) SWIG_fail;
6473 PyThreadState* __tstate = wxPyBeginAllowThreads();
6474 result = (PyObject *)wxIntersectRect(arg1,arg2);
6475
6476 wxPyEndAllowThreads(__tstate);
6477 if (PyErr_Occurred()) SWIG_fail;
6478 }
6479 resultobj = result;
6480 return resultobj;
6481 fail:
6482 return NULL;
6483 }
6484
6485
6486 static PyObject *_wrap_new_Point2D(PyObject *, PyObject *args, PyObject *kwargs) {
6487 PyObject *resultobj;
6488 double arg1 = (double) 0.0 ;
6489 double arg2 = (double) 0.0 ;
6490 wxPoint2D *result;
6491 PyObject * obj0 = 0 ;
6492 PyObject * obj1 = 0 ;
6493 char *kwnames[] = {
6494 (char *) "x",(char *) "y", NULL
6495 };
6496
6497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail;
6498 if (obj0) {
6499 {
6500 arg1 = (double)(SWIG_As_double(obj0));
6501 if (SWIG_arg_fail(1)) SWIG_fail;
6502 }
6503 }
6504 if (obj1) {
6505 {
6506 arg2 = (double)(SWIG_As_double(obj1));
6507 if (SWIG_arg_fail(2)) SWIG_fail;
6508 }
6509 }
6510 {
6511 PyThreadState* __tstate = wxPyBeginAllowThreads();
6512 result = (wxPoint2D *)new wxPoint2D(arg1,arg2);
6513
6514 wxPyEndAllowThreads(__tstate);
6515 if (PyErr_Occurred()) SWIG_fail;
6516 }
6517 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
6518 return resultobj;
6519 fail:
6520 return NULL;
6521 }
6522
6523
6524 static PyObject *_wrap_new_Point2DCopy(PyObject *, PyObject *args, PyObject *kwargs) {
6525 PyObject *resultobj;
6526 wxPoint2D *arg1 = 0 ;
6527 wxPoint2D *result;
6528 wxPoint2D temp1 ;
6529 PyObject * obj0 = 0 ;
6530 char *kwnames[] = {
6531 (char *) "pt", NULL
6532 };
6533
6534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail;
6535 {
6536 arg1 = &temp1;
6537 if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail;
6538 }
6539 {
6540 PyThreadState* __tstate = wxPyBeginAllowThreads();
6541 result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1);
6542
6543 wxPyEndAllowThreads(__tstate);
6544 if (PyErr_Occurred()) SWIG_fail;
6545 }
6546 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
6547 return resultobj;
6548 fail:
6549 return NULL;
6550 }
6551
6552
6553 static PyObject *_wrap_new_Point2DFromPoint(PyObject *, PyObject *args, PyObject *kwargs) {
6554 PyObject *resultobj;
6555 wxPoint *arg1 = 0 ;
6556 wxPoint2D *result;
6557 wxPoint temp1 ;
6558 PyObject * obj0 = 0 ;
6559 char *kwnames[] = {
6560 (char *) "pt", NULL
6561 };
6562
6563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail;
6564 {
6565 arg1 = &temp1;
6566 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
6567 }
6568 {
6569 PyThreadState* __tstate = wxPyBeginAllowThreads();
6570 result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1);
6571
6572 wxPyEndAllowThreads(__tstate);
6573 if (PyErr_Occurred()) SWIG_fail;
6574 }
6575 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
6576 return resultobj;
6577 fail:
6578 return NULL;
6579 }
6580
6581
6582 static PyObject *_wrap_Point2D_GetFloor(PyObject *, PyObject *args, PyObject *kwargs) {
6583 PyObject *resultobj;
6584 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
6585 int *arg2 = (int *) 0 ;
6586 int *arg3 = (int *) 0 ;
6587 int temp2 ;
6588 int res2 = 0 ;
6589 int temp3 ;
6590 int res3 = 0 ;
6591 PyObject * obj0 = 0 ;
6592 char *kwnames[] = {
6593 (char *) "self", NULL
6594 };
6595
6596 arg2 = &temp2; res2 = SWIG_NEWOBJ;
6597 arg3 = &temp3; res3 = SWIG_NEWOBJ;
6598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail;
6599 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
6600 if (SWIG_arg_fail(1)) SWIG_fail;
6601 {
6602 PyThreadState* __tstate = wxPyBeginAllowThreads();
6603 ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3);
6604
6605 wxPyEndAllowThreads(__tstate);
6606 if (PyErr_Occurred()) SWIG_fail;
6607 }
6608 Py_INCREF(Py_None); resultobj = Py_None;
6609 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
6610 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
6611 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
6612 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
6613 return resultobj;
6614 fail:
6615 return NULL;
6616 }
6617
6618
6619 static PyObject *_wrap_Point2D_GetRounded(PyObject *, PyObject *args, PyObject *kwargs) {
6620 PyObject *resultobj;
6621 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
6622 int *arg2 = (int *) 0 ;
6623 int *arg3 = (int *) 0 ;
6624 int temp2 ;
6625 int res2 = 0 ;
6626 int temp3 ;
6627 int res3 = 0 ;
6628 PyObject * obj0 = 0 ;
6629 char *kwnames[] = {
6630 (char *) "self", NULL
6631 };
6632
6633 arg2 = &temp2; res2 = SWIG_NEWOBJ;
6634 arg3 = &temp3; res3 = SWIG_NEWOBJ;
6635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail;
6636 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
6637 if (SWIG_arg_fail(1)) SWIG_fail;
6638 {
6639 PyThreadState* __tstate = wxPyBeginAllowThreads();
6640 ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3);
6641
6642 wxPyEndAllowThreads(__tstate);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 Py_INCREF(Py_None); resultobj = Py_None;
6646 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
6647 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
6648 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
6649 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
6650 return resultobj;
6651 fail:
6652 return NULL;
6653 }
6654
6655
6656 static PyObject *_wrap_Point2D_GetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) {
6657 PyObject *resultobj;
6658 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
6659 double result;
6660 PyObject * obj0 = 0 ;
6661 char *kwnames[] = {
6662 (char *) "self", NULL
6663 };
6664
6665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail;
6666 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
6667 if (SWIG_arg_fail(1)) SWIG_fail;
6668 {
6669 PyThreadState* __tstate = wxPyBeginAllowThreads();
6670 result = (double)((wxPoint2D const *)arg1)->GetVectorLength();
6671
6672 wxPyEndAllowThreads(__tstate);
6673 if (PyErr_Occurred()) SWIG_fail;
6674 }
6675 {
6676 resultobj = SWIG_From_double((double)(result));
6677 }
6678 return resultobj;
6679 fail:
6680 return NULL;
6681 }
6682
6683
6684 static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) {
6685 PyObject *resultobj;
6686 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
6687 double result;
6688 PyObject * obj0 = 0 ;
6689 char *kwnames[] = {
6690 (char *) "self", NULL
6691 };
6692
6693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail;
6694 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
6695 if (SWIG_arg_fail(1)) SWIG_fail;
6696 {
6697 PyThreadState* __tstate = wxPyBeginAllowThreads();
6698 result = (double)((wxPoint2D const *)arg1)->GetVectorAngle();
6699
6700 wxPyEndAllowThreads(__tstate);
6701 if (PyErr_Occurred()) SWIG_fail;
6702 }
6703 {
6704 resultobj = SWIG_From_double((double)(result));
6705 }
6706 return resultobj;
6707 fail:
6708 return NULL;
6709 }
6710
6711
6712 static PyObject *_wrap_Point2D_SetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) {
6713 PyObject *resultobj;
6714 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
6715 double arg2 ;
6716 PyObject * obj0 = 0 ;
6717 PyObject * obj1 = 0 ;
6718 char *kwnames[] = {
6719 (char *) "self",(char *) "length", NULL
6720 };
6721
6722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail;
6723 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
6724 if (SWIG_arg_fail(1)) SWIG_fail;
6725 {
6726 arg2 = (double)(SWIG_As_double(obj1));
6727 if (SWIG_arg_fail(2)) SWIG_fail;
6728 }
6729 {
6730 PyThreadState* __tstate = wxPyBeginAllowThreads();
6731 (arg1)->SetVectorLength(arg2);
6732
6733 wxPyEndAllowThreads(__tstate);
6734 if (PyErr_Occurred()) SWIG_fail;
6735 }
6736 Py_INCREF(Py_None); resultobj = Py_None;
6737 return resultobj;
6738 fail:
6739 return NULL;
6740 }
6741
6742
6743 static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) {
6744 PyObject *resultobj;
6745 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
6746 double arg2 ;
6747 PyObject * obj0 = 0 ;
6748 PyObject * obj1 = 0 ;
6749 char *kwnames[] = {
6750 (char *) "self",(char *) "degrees", NULL
6751 };
6752
6753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail;
6754 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
6755 if (SWIG_arg_fail(1)) SWIG_fail;
6756 {
6757 arg2 = (double)(SWIG_As_double(obj1));
6758 if (SWIG_arg_fail(2)) SWIG_fail;
6759 }
6760 {
6761 PyThreadState* __tstate = wxPyBeginAllowThreads();
6762 (arg1)->SetVectorAngle(arg2);
6763
6764 wxPyEndAllowThreads(__tstate);
6765 if (PyErr_Occurred()) SWIG_fail;
6766 }
6767 Py_INCREF(Py_None); resultobj = Py_None;
6768 return resultobj;
6769 fail:
6770 return NULL;
6771 }
6772
6773
6774 static PyObject *_wrap_Point2D_GetDistance(PyObject *, PyObject *args, PyObject *kwargs) {
6775 PyObject *resultobj;
6776 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
6777 wxPoint2D *arg2 = 0 ;
6778 double result;
6779 wxPoint2D temp2 ;
6780 PyObject * obj0 = 0 ;
6781 PyObject * obj1 = 0 ;
6782 char *kwnames[] = {
6783 (char *) "self",(char *) "pt", NULL
6784 };
6785
6786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail;
6787 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
6788 if (SWIG_arg_fail(1)) SWIG_fail;
6789 {
6790 arg2 = &temp2;
6791 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
6792 }
6793 {
6794 PyThreadState* __tstate = wxPyBeginAllowThreads();
6795 result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2);
6796
6797 wxPyEndAllowThreads(__tstate);
6798 if (PyErr_Occurred()) SWIG_fail;
6799 }
6800 {
6801 resultobj = SWIG_From_double((double)(result));
6802 }
6803 return resultobj;
6804 fail:
6805 return NULL;
6806 }
6807
6808
6809 static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *, PyObject *args, PyObject *kwargs) {
6810 PyObject *resultobj;
6811 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
6812 wxPoint2D *arg2 = 0 ;
6813 double result;
6814 wxPoint2D temp2 ;
6815 PyObject * obj0 = 0 ;
6816 PyObject * obj1 = 0 ;
6817 char *kwnames[] = {
6818 (char *) "self",(char *) "pt", NULL
6819 };
6820
6821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail;
6822 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
6823 if (SWIG_arg_fail(1)) SWIG_fail;
6824 {
6825 arg2 = &temp2;
6826 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
6827 }
6828 {
6829 PyThreadState* __tstate = wxPyBeginAllowThreads();
6830 result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2);
6831
6832 wxPyEndAllowThreads(__tstate);
6833 if (PyErr_Occurred()) SWIG_fail;
6834 }
6835 {
6836 resultobj = SWIG_From_double((double)(result));
6837 }
6838 return resultobj;
6839 fail:
6840 return NULL;
6841 }
6842
6843
6844 static PyObject *_wrap_Point2D_GetDotProduct(PyObject *, PyObject *args, PyObject *kwargs) {
6845 PyObject *resultobj;
6846 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
6847 wxPoint2D *arg2 = 0 ;
6848 double result;
6849 wxPoint2D temp2 ;
6850 PyObject * obj0 = 0 ;
6851 PyObject * obj1 = 0 ;
6852 char *kwnames[] = {
6853 (char *) "self",(char *) "vec", NULL
6854 };
6855
6856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail;
6857 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
6858 if (SWIG_arg_fail(1)) SWIG_fail;
6859 {
6860 arg2 = &temp2;
6861 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
6862 }
6863 {
6864 PyThreadState* __tstate = wxPyBeginAllowThreads();
6865 result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2);
6866
6867 wxPyEndAllowThreads(__tstate);
6868 if (PyErr_Occurred()) SWIG_fail;
6869 }
6870 {
6871 resultobj = SWIG_From_double((double)(result));
6872 }
6873 return resultobj;
6874 fail:
6875 return NULL;
6876 }
6877
6878
6879 static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *, PyObject *args, PyObject *kwargs) {
6880 PyObject *resultobj;
6881 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
6882 wxPoint2D *arg2 = 0 ;
6883 double result;
6884 wxPoint2D temp2 ;
6885 PyObject * obj0 = 0 ;
6886 PyObject * obj1 = 0 ;
6887 char *kwnames[] = {
6888 (char *) "self",(char *) "vec", NULL
6889 };
6890
6891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail;
6892 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
6893 if (SWIG_arg_fail(1)) SWIG_fail;
6894 {
6895 arg2 = &temp2;
6896 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
6897 }
6898 {
6899 PyThreadState* __tstate = wxPyBeginAllowThreads();
6900 result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2);
6901
6902 wxPyEndAllowThreads(__tstate);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 {
6906 resultobj = SWIG_From_double((double)(result));
6907 }
6908 return resultobj;
6909 fail:
6910 return NULL;
6911 }
6912
6913
6914 static PyObject *_wrap_Point2D___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
6915 PyObject *resultobj;
6916 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
6917 wxPoint2D result;
6918 PyObject * obj0 = 0 ;
6919 char *kwnames[] = {
6920 (char *) "self", NULL
6921 };
6922
6923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail;
6924 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
6925 if (SWIG_arg_fail(1)) SWIG_fail;
6926 {
6927 PyThreadState* __tstate = wxPyBeginAllowThreads();
6928 result = (arg1)->operator -();
6929
6930 wxPyEndAllowThreads(__tstate);
6931 if (PyErr_Occurred()) SWIG_fail;
6932 }
6933 {
6934 wxPoint2D * resultptr;
6935 resultptr = new wxPoint2D((wxPoint2D &)(result));
6936 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1);
6937 }
6938 return resultobj;
6939 fail:
6940 return NULL;
6941 }
6942
6943
6944 static PyObject *_wrap_Point2D___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
6945 PyObject *resultobj;
6946 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
6947 wxPoint2D *arg2 = 0 ;
6948 wxPoint2D *result;
6949 wxPoint2D temp2 ;
6950 PyObject * obj0 = 0 ;
6951 PyObject * obj1 = 0 ;
6952 char *kwnames[] = {
6953 (char *) "self",(char *) "pt", NULL
6954 };
6955
6956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail;
6957 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
6958 if (SWIG_arg_fail(1)) SWIG_fail;
6959 {
6960 arg2 = &temp2;
6961 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
6962 }
6963 {
6964 PyThreadState* __tstate = wxPyBeginAllowThreads();
6965 {
6966 wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2);
6967 result = (wxPoint2D *) &_result_ref;
6968 }
6969
6970 wxPyEndAllowThreads(__tstate);
6971 if (PyErr_Occurred()) SWIG_fail;
6972 }
6973 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
6974 return resultobj;
6975 fail:
6976 return NULL;
6977 }
6978
6979
6980 static PyObject *_wrap_Point2D___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
6981 PyObject *resultobj;
6982 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
6983 wxPoint2D *arg2 = 0 ;
6984 wxPoint2D *result;
6985 wxPoint2D temp2 ;
6986 PyObject * obj0 = 0 ;
6987 PyObject * obj1 = 0 ;
6988 char *kwnames[] = {
6989 (char *) "self",(char *) "pt", NULL
6990 };
6991
6992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail;
6993 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
6994 if (SWIG_arg_fail(1)) SWIG_fail;
6995 {
6996 arg2 = &temp2;
6997 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
6998 }
6999 {
7000 PyThreadState* __tstate = wxPyBeginAllowThreads();
7001 {
7002 wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2);
7003 result = (wxPoint2D *) &_result_ref;
7004 }
7005
7006 wxPyEndAllowThreads(__tstate);
7007 if (PyErr_Occurred()) SWIG_fail;
7008 }
7009 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
7010 return resultobj;
7011 fail:
7012 return NULL;
7013 }
7014
7015
7016 static PyObject *_wrap_Point2D___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
7017 PyObject *resultobj;
7018 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
7019 wxPoint2D *arg2 = 0 ;
7020 wxPoint2D *result;
7021 wxPoint2D temp2 ;
7022 PyObject * obj0 = 0 ;
7023 PyObject * obj1 = 0 ;
7024 char *kwnames[] = {
7025 (char *) "self",(char *) "pt", NULL
7026 };
7027
7028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail;
7029 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
7030 if (SWIG_arg_fail(1)) SWIG_fail;
7031 {
7032 arg2 = &temp2;
7033 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
7034 }
7035 {
7036 PyThreadState* __tstate = wxPyBeginAllowThreads();
7037 {
7038 wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2);
7039 result = (wxPoint2D *) &_result_ref;
7040 }
7041
7042 wxPyEndAllowThreads(__tstate);
7043 if (PyErr_Occurred()) SWIG_fail;
7044 }
7045 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
7046 return resultobj;
7047 fail:
7048 return NULL;
7049 }
7050
7051
7052 static PyObject *_wrap_Point2D___idiv__(PyObject *, PyObject *args, PyObject *kwargs) {
7053 PyObject *resultobj;
7054 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
7055 wxPoint2D *arg2 = 0 ;
7056 wxPoint2D *result;
7057 wxPoint2D temp2 ;
7058 PyObject * obj0 = 0 ;
7059 PyObject * obj1 = 0 ;
7060 char *kwnames[] = {
7061 (char *) "self",(char *) "pt", NULL
7062 };
7063
7064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail;
7065 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
7066 if (SWIG_arg_fail(1)) SWIG_fail;
7067 {
7068 arg2 = &temp2;
7069 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
7070 }
7071 {
7072 PyThreadState* __tstate = wxPyBeginAllowThreads();
7073 {
7074 wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2);
7075 result = (wxPoint2D *) &_result_ref;
7076 }
7077
7078 wxPyEndAllowThreads(__tstate);
7079 if (PyErr_Occurred()) SWIG_fail;
7080 }
7081 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
7082 return resultobj;
7083 fail:
7084 return NULL;
7085 }
7086
7087
7088 static PyObject *_wrap_Point2D___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
7089 PyObject *resultobj;
7090 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
7091 wxPoint2D *arg2 = 0 ;
7092 bool result;
7093 wxPoint2D temp2 ;
7094 PyObject * obj0 = 0 ;
7095 PyObject * obj1 = 0 ;
7096 char *kwnames[] = {
7097 (char *) "self",(char *) "pt", NULL
7098 };
7099
7100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail;
7101 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
7102 if (SWIG_arg_fail(1)) SWIG_fail;
7103 {
7104 arg2 = &temp2;
7105 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
7106 }
7107 {
7108 PyThreadState* __tstate = wxPyBeginAllowThreads();
7109 result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2);
7110
7111 wxPyEndAllowThreads(__tstate);
7112 if (PyErr_Occurred()) SWIG_fail;
7113 }
7114 {
7115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7116 }
7117 return resultobj;
7118 fail:
7119 return NULL;
7120 }
7121
7122
7123 static PyObject *_wrap_Point2D___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
7124 PyObject *resultobj;
7125 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
7126 wxPoint2D *arg2 = 0 ;
7127 bool result;
7128 wxPoint2D temp2 ;
7129 PyObject * obj0 = 0 ;
7130 PyObject * obj1 = 0 ;
7131 char *kwnames[] = {
7132 (char *) "self",(char *) "pt", NULL
7133 };
7134
7135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail;
7136 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
7137 if (SWIG_arg_fail(1)) SWIG_fail;
7138 {
7139 arg2 = &temp2;
7140 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
7141 }
7142 {
7143 PyThreadState* __tstate = wxPyBeginAllowThreads();
7144 result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2);
7145
7146 wxPyEndAllowThreads(__tstate);
7147 if (PyErr_Occurred()) SWIG_fail;
7148 }
7149 {
7150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7151 }
7152 return resultobj;
7153 fail:
7154 return NULL;
7155 }
7156
7157
7158 static PyObject *_wrap_Point2D_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
7159 PyObject *resultobj;
7160 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
7161 double arg2 ;
7162 PyObject * obj0 = 0 ;
7163 PyObject * obj1 = 0 ;
7164 char *kwnames[] = {
7165 (char *) "self",(char *) "m_x", NULL
7166 };
7167
7168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail;
7169 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
7170 if (SWIG_arg_fail(1)) SWIG_fail;
7171 {
7172 arg2 = (double)(SWIG_As_double(obj1));
7173 if (SWIG_arg_fail(2)) SWIG_fail;
7174 }
7175 if (arg1) (arg1)->m_x = arg2;
7176
7177 Py_INCREF(Py_None); resultobj = Py_None;
7178 return resultobj;
7179 fail:
7180 return NULL;
7181 }
7182
7183
7184 static PyObject *_wrap_Point2D_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
7185 PyObject *resultobj;
7186 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
7187 double result;
7188 PyObject * obj0 = 0 ;
7189 char *kwnames[] = {
7190 (char *) "self", NULL
7191 };
7192
7193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail;
7194 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
7195 if (SWIG_arg_fail(1)) SWIG_fail;
7196 result = (double) ((arg1)->m_x);
7197
7198 {
7199 resultobj = SWIG_From_double((double)(result));
7200 }
7201 return resultobj;
7202 fail:
7203 return NULL;
7204 }
7205
7206
7207 static PyObject *_wrap_Point2D_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
7208 PyObject *resultobj;
7209 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
7210 double arg2 ;
7211 PyObject * obj0 = 0 ;
7212 PyObject * obj1 = 0 ;
7213 char *kwnames[] = {
7214 (char *) "self",(char *) "m_y", NULL
7215 };
7216
7217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail;
7218 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
7219 if (SWIG_arg_fail(1)) SWIG_fail;
7220 {
7221 arg2 = (double)(SWIG_As_double(obj1));
7222 if (SWIG_arg_fail(2)) SWIG_fail;
7223 }
7224 if (arg1) (arg1)->m_y = arg2;
7225
7226 Py_INCREF(Py_None); resultobj = Py_None;
7227 return resultobj;
7228 fail:
7229 return NULL;
7230 }
7231
7232
7233 static PyObject *_wrap_Point2D_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
7234 PyObject *resultobj;
7235 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
7236 double result;
7237 PyObject * obj0 = 0 ;
7238 char *kwnames[] = {
7239 (char *) "self", NULL
7240 };
7241
7242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail;
7243 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
7244 if (SWIG_arg_fail(1)) SWIG_fail;
7245 result = (double) ((arg1)->m_y);
7246
7247 {
7248 resultobj = SWIG_From_double((double)(result));
7249 }
7250 return resultobj;
7251 fail:
7252 return NULL;
7253 }
7254
7255
7256 static PyObject *_wrap_Point2D_Set(PyObject *, PyObject *args, PyObject *kwargs) {
7257 PyObject *resultobj;
7258 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
7259 double arg2 = (double) 0 ;
7260 double arg3 = (double) 0 ;
7261 PyObject * obj0 = 0 ;
7262 PyObject * obj1 = 0 ;
7263 PyObject * obj2 = 0 ;
7264 char *kwnames[] = {
7265 (char *) "self",(char *) "x",(char *) "y", NULL
7266 };
7267
7268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
7269 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
7270 if (SWIG_arg_fail(1)) SWIG_fail;
7271 if (obj1) {
7272 {
7273 arg2 = (double)(SWIG_As_double(obj1));
7274 if (SWIG_arg_fail(2)) SWIG_fail;
7275 }
7276 }
7277 if (obj2) {
7278 {
7279 arg3 = (double)(SWIG_As_double(obj2));
7280 if (SWIG_arg_fail(3)) SWIG_fail;
7281 }
7282 }
7283 {
7284 PyThreadState* __tstate = wxPyBeginAllowThreads();
7285 wxPoint2D_Set(arg1,arg2,arg3);
7286
7287 wxPyEndAllowThreads(__tstate);
7288 if (PyErr_Occurred()) SWIG_fail;
7289 }
7290 Py_INCREF(Py_None); resultobj = Py_None;
7291 return resultobj;
7292 fail:
7293 return NULL;
7294 }
7295
7296
7297 static PyObject *_wrap_Point2D_Get(PyObject *, PyObject *args, PyObject *kwargs) {
7298 PyObject *resultobj;
7299 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
7300 PyObject *result;
7301 PyObject * obj0 = 0 ;
7302 char *kwnames[] = {
7303 (char *) "self", NULL
7304 };
7305
7306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail;
7307 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPoint2D, SWIG_POINTER_EXCEPTION | 0);
7308 if (SWIG_arg_fail(1)) SWIG_fail;
7309 {
7310 PyThreadState* __tstate = wxPyBeginAllowThreads();
7311 result = (PyObject *)wxPoint2D_Get(arg1);
7312
7313 wxPyEndAllowThreads(__tstate);
7314 if (PyErr_Occurred()) SWIG_fail;
7315 }
7316 resultobj = result;
7317 return resultobj;
7318 fail:
7319 return NULL;
7320 }
7321
7322
7323 static PyObject * Point2D_swigregister(PyObject *, PyObject *args) {
7324 PyObject *obj;
7325 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7326 SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj);
7327 Py_INCREF(obj);
7328 return Py_BuildValue((char *)"");
7329 }
7330 static int _wrap_DefaultPosition_set(PyObject *) {
7331 PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only.");
7332 return 1;
7333 }
7334
7335
7336 static PyObject *_wrap_DefaultPosition_get(void) {
7337 PyObject *pyobj;
7338
7339 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0);
7340 return pyobj;
7341 }
7342
7343
7344 static int _wrap_DefaultSize_set(PyObject *) {
7345 PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only.");
7346 return 1;
7347 }
7348
7349
7350 static PyObject *_wrap_DefaultSize_get(void) {
7351 PyObject *pyobj;
7352
7353 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0);
7354 return pyobj;
7355 }
7356
7357
7358 static PyObject *_wrap_new_InputStream(PyObject *, PyObject *args, PyObject *kwargs) {
7359 PyObject *resultobj;
7360 PyObject *arg1 = (PyObject *) 0 ;
7361 wxPyInputStream *result;
7362 PyObject * obj0 = 0 ;
7363 char *kwnames[] = {
7364 (char *) "p", NULL
7365 };
7366
7367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail;
7368 arg1 = obj0;
7369 {
7370 PyThreadState* __tstate = wxPyBeginAllowThreads();
7371 result = (wxPyInputStream *)new_wxPyInputStream(arg1);
7372
7373 wxPyEndAllowThreads(__tstate);
7374 if (PyErr_Occurred()) SWIG_fail;
7375 }
7376 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1);
7377 return resultobj;
7378 fail:
7379 return NULL;
7380 }
7381
7382
7383 static PyObject *_wrap_delete_InputStream(PyObject *, PyObject *args, PyObject *kwargs) {
7384 PyObject *resultobj;
7385 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7386 PyObject * obj0 = 0 ;
7387 char *kwnames[] = {
7388 (char *) "self", NULL
7389 };
7390
7391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_InputStream",kwnames,&obj0)) goto fail;
7392 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7393 if (SWIG_arg_fail(1)) SWIG_fail;
7394 {
7395 PyThreadState* __tstate = wxPyBeginAllowThreads();
7396 delete arg1;
7397
7398 wxPyEndAllowThreads(__tstate);
7399 if (PyErr_Occurred()) SWIG_fail;
7400 }
7401 Py_INCREF(Py_None); resultobj = Py_None;
7402 return resultobj;
7403 fail:
7404 return NULL;
7405 }
7406
7407
7408 static PyObject *_wrap_InputStream_close(PyObject *, PyObject *args, PyObject *kwargs) {
7409 PyObject *resultobj;
7410 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7411 PyObject * obj0 = 0 ;
7412 char *kwnames[] = {
7413 (char *) "self", NULL
7414 };
7415
7416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail;
7417 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7418 if (SWIG_arg_fail(1)) SWIG_fail;
7419 {
7420 PyThreadState* __tstate = wxPyBeginAllowThreads();
7421 (arg1)->close();
7422
7423 wxPyEndAllowThreads(__tstate);
7424 if (PyErr_Occurred()) SWIG_fail;
7425 }
7426 Py_INCREF(Py_None); resultobj = Py_None;
7427 return resultobj;
7428 fail:
7429 return NULL;
7430 }
7431
7432
7433 static PyObject *_wrap_InputStream_flush(PyObject *, PyObject *args, PyObject *kwargs) {
7434 PyObject *resultobj;
7435 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7436 PyObject * obj0 = 0 ;
7437 char *kwnames[] = {
7438 (char *) "self", NULL
7439 };
7440
7441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail;
7442 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7443 if (SWIG_arg_fail(1)) SWIG_fail;
7444 {
7445 PyThreadState* __tstate = wxPyBeginAllowThreads();
7446 (arg1)->flush();
7447
7448 wxPyEndAllowThreads(__tstate);
7449 if (PyErr_Occurred()) SWIG_fail;
7450 }
7451 Py_INCREF(Py_None); resultobj = Py_None;
7452 return resultobj;
7453 fail:
7454 return NULL;
7455 }
7456
7457
7458 static PyObject *_wrap_InputStream_eof(PyObject *, PyObject *args, PyObject *kwargs) {
7459 PyObject *resultobj;
7460 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7461 bool result;
7462 PyObject * obj0 = 0 ;
7463 char *kwnames[] = {
7464 (char *) "self", NULL
7465 };
7466
7467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail;
7468 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7469 if (SWIG_arg_fail(1)) SWIG_fail;
7470 {
7471 PyThreadState* __tstate = wxPyBeginAllowThreads();
7472 result = (bool)(arg1)->eof();
7473
7474 wxPyEndAllowThreads(__tstate);
7475 if (PyErr_Occurred()) SWIG_fail;
7476 }
7477 {
7478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7479 }
7480 return resultobj;
7481 fail:
7482 return NULL;
7483 }
7484
7485
7486 static PyObject *_wrap_InputStream_read(PyObject *, PyObject *args, PyObject *kwargs) {
7487 PyObject *resultobj;
7488 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7489 int arg2 = (int) -1 ;
7490 PyObject *result;
7491 PyObject * obj0 = 0 ;
7492 PyObject * obj1 = 0 ;
7493 char *kwnames[] = {
7494 (char *) "self",(char *) "size", NULL
7495 };
7496
7497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail;
7498 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7499 if (SWIG_arg_fail(1)) SWIG_fail;
7500 if (obj1) {
7501 {
7502 arg2 = (int)(SWIG_As_int(obj1));
7503 if (SWIG_arg_fail(2)) SWIG_fail;
7504 }
7505 }
7506 {
7507 PyThreadState* __tstate = wxPyBeginAllowThreads();
7508 result = (PyObject *)(arg1)->read(arg2);
7509
7510 wxPyEndAllowThreads(__tstate);
7511 if (PyErr_Occurred()) SWIG_fail;
7512 }
7513 resultobj = result;
7514 return resultobj;
7515 fail:
7516 return NULL;
7517 }
7518
7519
7520 static PyObject *_wrap_InputStream_readline(PyObject *, PyObject *args, PyObject *kwargs) {
7521 PyObject *resultobj;
7522 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7523 int arg2 = (int) -1 ;
7524 PyObject *result;
7525 PyObject * obj0 = 0 ;
7526 PyObject * obj1 = 0 ;
7527 char *kwnames[] = {
7528 (char *) "self",(char *) "size", NULL
7529 };
7530
7531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail;
7532 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7533 if (SWIG_arg_fail(1)) SWIG_fail;
7534 if (obj1) {
7535 {
7536 arg2 = (int)(SWIG_As_int(obj1));
7537 if (SWIG_arg_fail(2)) SWIG_fail;
7538 }
7539 }
7540 {
7541 PyThreadState* __tstate = wxPyBeginAllowThreads();
7542 result = (PyObject *)(arg1)->readline(arg2);
7543
7544 wxPyEndAllowThreads(__tstate);
7545 if (PyErr_Occurred()) SWIG_fail;
7546 }
7547 resultobj = result;
7548 return resultobj;
7549 fail:
7550 return NULL;
7551 }
7552
7553
7554 static PyObject *_wrap_InputStream_readlines(PyObject *, PyObject *args, PyObject *kwargs) {
7555 PyObject *resultobj;
7556 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7557 int arg2 = (int) -1 ;
7558 PyObject *result;
7559 PyObject * obj0 = 0 ;
7560 PyObject * obj1 = 0 ;
7561 char *kwnames[] = {
7562 (char *) "self",(char *) "sizehint", NULL
7563 };
7564
7565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail;
7566 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7567 if (SWIG_arg_fail(1)) SWIG_fail;
7568 if (obj1) {
7569 {
7570 arg2 = (int)(SWIG_As_int(obj1));
7571 if (SWIG_arg_fail(2)) SWIG_fail;
7572 }
7573 }
7574 {
7575 PyThreadState* __tstate = wxPyBeginAllowThreads();
7576 result = (PyObject *)(arg1)->readlines(arg2);
7577
7578 wxPyEndAllowThreads(__tstate);
7579 if (PyErr_Occurred()) SWIG_fail;
7580 }
7581 resultobj = result;
7582 return resultobj;
7583 fail:
7584 return NULL;
7585 }
7586
7587
7588 static PyObject *_wrap_InputStream_seek(PyObject *, PyObject *args, PyObject *kwargs) {
7589 PyObject *resultobj;
7590 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7591 int arg2 ;
7592 int arg3 = (int) 0 ;
7593 PyObject * obj0 = 0 ;
7594 PyObject * obj1 = 0 ;
7595 PyObject * obj2 = 0 ;
7596 char *kwnames[] = {
7597 (char *) "self",(char *) "offset",(char *) "whence", NULL
7598 };
7599
7600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail;
7601 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7602 if (SWIG_arg_fail(1)) SWIG_fail;
7603 {
7604 arg2 = (int)(SWIG_As_int(obj1));
7605 if (SWIG_arg_fail(2)) SWIG_fail;
7606 }
7607 if (obj2) {
7608 {
7609 arg3 = (int)(SWIG_As_int(obj2));
7610 if (SWIG_arg_fail(3)) SWIG_fail;
7611 }
7612 }
7613 {
7614 PyThreadState* __tstate = wxPyBeginAllowThreads();
7615 (arg1)->seek(arg2,arg3);
7616
7617 wxPyEndAllowThreads(__tstate);
7618 if (PyErr_Occurred()) SWIG_fail;
7619 }
7620 Py_INCREF(Py_None); resultobj = Py_None;
7621 return resultobj;
7622 fail:
7623 return NULL;
7624 }
7625
7626
7627 static PyObject *_wrap_InputStream_tell(PyObject *, PyObject *args, PyObject *kwargs) {
7628 PyObject *resultobj;
7629 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7630 int result;
7631 PyObject * obj0 = 0 ;
7632 char *kwnames[] = {
7633 (char *) "self", NULL
7634 };
7635
7636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail;
7637 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7638 if (SWIG_arg_fail(1)) SWIG_fail;
7639 {
7640 PyThreadState* __tstate = wxPyBeginAllowThreads();
7641 result = (int)(arg1)->tell();
7642
7643 wxPyEndAllowThreads(__tstate);
7644 if (PyErr_Occurred()) SWIG_fail;
7645 }
7646 {
7647 resultobj = SWIG_From_int((int)(result));
7648 }
7649 return resultobj;
7650 fail:
7651 return NULL;
7652 }
7653
7654
7655 static PyObject *_wrap_InputStream_Peek(PyObject *, PyObject *args, PyObject *kwargs) {
7656 PyObject *resultobj;
7657 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7658 char result;
7659 PyObject * obj0 = 0 ;
7660 char *kwnames[] = {
7661 (char *) "self", NULL
7662 };
7663
7664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail;
7665 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7666 if (SWIG_arg_fail(1)) SWIG_fail;
7667 {
7668 PyThreadState* __tstate = wxPyBeginAllowThreads();
7669 result = (char)(arg1)->Peek();
7670
7671 wxPyEndAllowThreads(__tstate);
7672 if (PyErr_Occurred()) SWIG_fail;
7673 }
7674 {
7675 resultobj = SWIG_From_char((char)(result));
7676 }
7677 return resultobj;
7678 fail:
7679 return NULL;
7680 }
7681
7682
7683 static PyObject *_wrap_InputStream_GetC(PyObject *, PyObject *args, PyObject *kwargs) {
7684 PyObject *resultobj;
7685 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7686 char result;
7687 PyObject * obj0 = 0 ;
7688 char *kwnames[] = {
7689 (char *) "self", NULL
7690 };
7691
7692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail;
7693 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7694 if (SWIG_arg_fail(1)) SWIG_fail;
7695 {
7696 PyThreadState* __tstate = wxPyBeginAllowThreads();
7697 result = (char)(arg1)->GetC();
7698
7699 wxPyEndAllowThreads(__tstate);
7700 if (PyErr_Occurred()) SWIG_fail;
7701 }
7702 {
7703 resultobj = SWIG_From_char((char)(result));
7704 }
7705 return resultobj;
7706 fail:
7707 return NULL;
7708 }
7709
7710
7711 static PyObject *_wrap_InputStream_LastRead(PyObject *, PyObject *args, PyObject *kwargs) {
7712 PyObject *resultobj;
7713 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7714 size_t result;
7715 PyObject * obj0 = 0 ;
7716 char *kwnames[] = {
7717 (char *) "self", NULL
7718 };
7719
7720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail;
7721 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7722 if (SWIG_arg_fail(1)) SWIG_fail;
7723 {
7724 PyThreadState* __tstate = wxPyBeginAllowThreads();
7725 result = (size_t)(arg1)->LastRead();
7726
7727 wxPyEndAllowThreads(__tstate);
7728 if (PyErr_Occurred()) SWIG_fail;
7729 }
7730 {
7731 resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
7732 }
7733 return resultobj;
7734 fail:
7735 return NULL;
7736 }
7737
7738
7739 static PyObject *_wrap_InputStream_CanRead(PyObject *, PyObject *args, PyObject *kwargs) {
7740 PyObject *resultobj;
7741 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7742 bool result;
7743 PyObject * obj0 = 0 ;
7744 char *kwnames[] = {
7745 (char *) "self", NULL
7746 };
7747
7748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail;
7749 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7750 if (SWIG_arg_fail(1)) SWIG_fail;
7751 {
7752 PyThreadState* __tstate = wxPyBeginAllowThreads();
7753 result = (bool)(arg1)->CanRead();
7754
7755 wxPyEndAllowThreads(__tstate);
7756 if (PyErr_Occurred()) SWIG_fail;
7757 }
7758 {
7759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7760 }
7761 return resultobj;
7762 fail:
7763 return NULL;
7764 }
7765
7766
7767 static PyObject *_wrap_InputStream_Eof(PyObject *, PyObject *args, PyObject *kwargs) {
7768 PyObject *resultobj;
7769 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7770 bool result;
7771 PyObject * obj0 = 0 ;
7772 char *kwnames[] = {
7773 (char *) "self", NULL
7774 };
7775
7776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail;
7777 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7778 if (SWIG_arg_fail(1)) SWIG_fail;
7779 {
7780 PyThreadState* __tstate = wxPyBeginAllowThreads();
7781 result = (bool)(arg1)->Eof();
7782
7783 wxPyEndAllowThreads(__tstate);
7784 if (PyErr_Occurred()) SWIG_fail;
7785 }
7786 {
7787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7788 }
7789 return resultobj;
7790 fail:
7791 return NULL;
7792 }
7793
7794
7795 static PyObject *_wrap_InputStream_Ungetch(PyObject *, PyObject *args, PyObject *kwargs) {
7796 PyObject *resultobj;
7797 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7798 char arg2 ;
7799 bool result;
7800 PyObject * obj0 = 0 ;
7801 PyObject * obj1 = 0 ;
7802 char *kwnames[] = {
7803 (char *) "self",(char *) "c", NULL
7804 };
7805
7806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail;
7807 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7808 if (SWIG_arg_fail(1)) SWIG_fail;
7809 {
7810 arg2 = (char)(SWIG_As_char(obj1));
7811 if (SWIG_arg_fail(2)) SWIG_fail;
7812 }
7813 {
7814 PyThreadState* __tstate = wxPyBeginAllowThreads();
7815 result = (bool)(arg1)->Ungetch(arg2);
7816
7817 wxPyEndAllowThreads(__tstate);
7818 if (PyErr_Occurred()) SWIG_fail;
7819 }
7820 {
7821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7822 }
7823 return resultobj;
7824 fail:
7825 return NULL;
7826 }
7827
7828
7829 static PyObject *_wrap_InputStream_SeekI(PyObject *, PyObject *args, PyObject *kwargs) {
7830 PyObject *resultobj;
7831 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7832 long arg2 ;
7833 wxSeekMode arg3 = (wxSeekMode) wxFromStart ;
7834 long result;
7835 PyObject * obj0 = 0 ;
7836 PyObject * obj1 = 0 ;
7837 PyObject * obj2 = 0 ;
7838 char *kwnames[] = {
7839 (char *) "self",(char *) "pos",(char *) "mode", NULL
7840 };
7841
7842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail;
7843 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7844 if (SWIG_arg_fail(1)) SWIG_fail;
7845 {
7846 arg2 = (long)(SWIG_As_long(obj1));
7847 if (SWIG_arg_fail(2)) SWIG_fail;
7848 }
7849 if (obj2) {
7850 {
7851 arg3 = (wxSeekMode)(SWIG_As_int(obj2));
7852 if (SWIG_arg_fail(3)) SWIG_fail;
7853 }
7854 }
7855 {
7856 PyThreadState* __tstate = wxPyBeginAllowThreads();
7857 result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3);
7858
7859 wxPyEndAllowThreads(__tstate);
7860 if (PyErr_Occurred()) SWIG_fail;
7861 }
7862 {
7863 resultobj = SWIG_From_long((long)(result));
7864 }
7865 return resultobj;
7866 fail:
7867 return NULL;
7868 }
7869
7870
7871 static PyObject *_wrap_InputStream_TellI(PyObject *, PyObject *args, PyObject *kwargs) {
7872 PyObject *resultobj;
7873 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
7874 long result;
7875 PyObject * obj0 = 0 ;
7876 char *kwnames[] = {
7877 (char *) "self", NULL
7878 };
7879
7880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail;
7881 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_EXCEPTION | 0);
7882 if (SWIG_arg_fail(1)) SWIG_fail;
7883 {
7884 PyThreadState* __tstate = wxPyBeginAllowThreads();
7885 result = (long)(arg1)->TellI();
7886
7887 wxPyEndAllowThreads(__tstate);
7888 if (PyErr_Occurred()) SWIG_fail;
7889 }
7890 {
7891 resultobj = SWIG_From_long((long)(result));
7892 }
7893 return resultobj;
7894 fail:
7895 return NULL;
7896 }
7897
7898
7899 static PyObject * InputStream_swigregister(PyObject *, PyObject *args) {
7900 PyObject *obj;
7901 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7902 SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj);
7903 Py_INCREF(obj);
7904 return Py_BuildValue((char *)"");
7905 }
7906 static PyObject *_wrap_OutputStream_write(PyObject *, PyObject *args, PyObject *kwargs) {
7907 PyObject *resultobj;
7908 wxOutputStream *arg1 = (wxOutputStream *) 0 ;
7909 PyObject *arg2 = (PyObject *) 0 ;
7910 PyObject * obj0 = 0 ;
7911 PyObject * obj1 = 0 ;
7912 char *kwnames[] = {
7913 (char *) "self",(char *) "obj", NULL
7914 };
7915
7916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail;
7917 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxOutputStream, SWIG_POINTER_EXCEPTION | 0);
7918 if (SWIG_arg_fail(1)) SWIG_fail;
7919 arg2 = obj1;
7920 {
7921 PyThreadState* __tstate = wxPyBeginAllowThreads();
7922 wxOutputStream_write(arg1,arg2);
7923
7924 wxPyEndAllowThreads(__tstate);
7925 if (PyErr_Occurred()) SWIG_fail;
7926 }
7927 Py_INCREF(Py_None); resultobj = Py_None;
7928 return resultobj;
7929 fail:
7930 return NULL;
7931 }
7932
7933
7934 static PyObject * OutputStream_swigregister(PyObject *, PyObject *args) {
7935 PyObject *obj;
7936 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7937 SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj);
7938 Py_INCREF(obj);
7939 return Py_BuildValue((char *)"");
7940 }
7941 static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs) {
7942 PyObject *resultobj;
7943 wxInputStream *arg1 = (wxInputStream *) 0 ;
7944 wxString *arg2 = 0 ;
7945 wxString *arg3 = 0 ;
7946 wxString *arg4 = 0 ;
7947 wxDateTime arg5 ;
7948 wxFSFile *result;
7949 wxPyInputStream *temp1 ;
7950 bool temp2 = false ;
7951 bool temp3 = false ;
7952 bool temp4 = false ;
7953 PyObject * obj0 = 0 ;
7954 PyObject * obj1 = 0 ;
7955 PyObject * obj2 = 0 ;
7956 PyObject * obj3 = 0 ;
7957 PyObject * obj4 = 0 ;
7958 char *kwnames[] = {
7959 (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL
7960 };
7961
7962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7963 {
7964 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
7965 arg1 = wxPyCBInputStream_copy((wxPyCBInputStream*)temp1->m_wxis);
7966 } else {
7967 PyErr_Clear(); // clear the failure of the wxPyConvert above
7968 arg1 = wxPyCBInputStream_create(obj0, true);
7969 if (arg1 == NULL) {
7970 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
7971 SWIG_fail;
7972 }
7973 }
7974 }
7975 {
7976 arg2 = wxString_in_helper(obj1);
7977 if (arg2 == NULL) SWIG_fail;
7978 temp2 = true;
7979 }
7980 {
7981 arg3 = wxString_in_helper(obj2);
7982 if (arg3 == NULL) SWIG_fail;
7983 temp3 = true;
7984 }
7985 {
7986 arg4 = wxString_in_helper(obj3);
7987 if (arg4 == NULL) SWIG_fail;
7988 temp4 = true;
7989 }
7990 {
7991 wxDateTime * argp;
7992 SWIG_Python_ConvertPtr(obj4, (void **)&argp, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION);
7993 if (SWIG_arg_fail(5)) SWIG_fail;
7994 if (argp == NULL) {
7995 SWIG_null_ref("wxDateTime");
7996 }
7997 if (SWIG_arg_fail(5)) SWIG_fail;
7998 arg5 = *argp;
7999 }
8000 {
8001 PyThreadState* __tstate = wxPyBeginAllowThreads();
8002 result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
8003
8004 wxPyEndAllowThreads(__tstate);
8005 if (PyErr_Occurred()) SWIG_fail;
8006 }
8007 {
8008 resultobj = wxPyMake_wxObject(result, 1);
8009 }
8010 {
8011 if (temp2)
8012 delete arg2;
8013 }
8014 {
8015 if (temp3)
8016 delete arg3;
8017 }
8018 {
8019 if (temp4)
8020 delete arg4;
8021 }
8022 return resultobj;
8023 fail:
8024 {
8025 if (temp2)
8026 delete arg2;
8027 }
8028 {
8029 if (temp3)
8030 delete arg3;
8031 }
8032 {
8033 if (temp4)
8034 delete arg4;
8035 }
8036 return NULL;
8037 }
8038
8039
8040 static PyObject *_wrap_delete_FSFile(PyObject *, PyObject *args, PyObject *kwargs) {
8041 PyObject *resultobj;
8042 wxFSFile *arg1 = (wxFSFile *) 0 ;
8043 PyObject * obj0 = 0 ;
8044 char *kwnames[] = {
8045 (char *) "self", NULL
8046 };
8047
8048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail;
8049 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0);
8050 if (SWIG_arg_fail(1)) SWIG_fail;
8051 {
8052 PyThreadState* __tstate = wxPyBeginAllowThreads();
8053 delete arg1;
8054
8055 wxPyEndAllowThreads(__tstate);
8056 if (PyErr_Occurred()) SWIG_fail;
8057 }
8058 Py_INCREF(Py_None); resultobj = Py_None;
8059 return resultobj;
8060 fail:
8061 return NULL;
8062 }
8063
8064
8065 static PyObject *_wrap_FSFile_GetStream(PyObject *, PyObject *args, PyObject *kwargs) {
8066 PyObject *resultobj;
8067 wxFSFile *arg1 = (wxFSFile *) 0 ;
8068 wxInputStream *result;
8069 PyObject * obj0 = 0 ;
8070 char *kwnames[] = {
8071 (char *) "self", NULL
8072 };
8073
8074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail;
8075 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0);
8076 if (SWIG_arg_fail(1)) SWIG_fail;
8077 {
8078 PyThreadState* __tstate = wxPyBeginAllowThreads();
8079 result = (wxInputStream *)(arg1)->GetStream();
8080
8081 wxPyEndAllowThreads(__tstate);
8082 if (PyErr_Occurred()) SWIG_fail;
8083 }
8084 {
8085 wxPyInputStream * _ptr = NULL;
8086
8087 if (result) {
8088 _ptr = new wxPyInputStream(result);
8089 }
8090 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
8091 }
8092 return resultobj;
8093 fail:
8094 return NULL;
8095 }
8096
8097
8098 static PyObject *_wrap_FSFile_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
8099 PyObject *resultobj;
8100 wxFSFile *arg1 = (wxFSFile *) 0 ;
8101 wxString *result;
8102 PyObject * obj0 = 0 ;
8103 char *kwnames[] = {
8104 (char *) "self", NULL
8105 };
8106
8107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail;
8108 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0);
8109 if (SWIG_arg_fail(1)) SWIG_fail;
8110 {
8111 PyThreadState* __tstate = wxPyBeginAllowThreads();
8112 {
8113 wxString const &_result_ref = (arg1)->GetMimeType();
8114 result = (wxString *) &_result_ref;
8115 }
8116
8117 wxPyEndAllowThreads(__tstate);
8118 if (PyErr_Occurred()) SWIG_fail;
8119 }
8120 {
8121 #if wxUSE_UNICODE
8122 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8123 #else
8124 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8125 #endif
8126 }
8127 return resultobj;
8128 fail:
8129 return NULL;
8130 }
8131
8132
8133 static PyObject *_wrap_FSFile_GetLocation(PyObject *, PyObject *args, PyObject *kwargs) {
8134 PyObject *resultobj;
8135 wxFSFile *arg1 = (wxFSFile *) 0 ;
8136 wxString *result;
8137 PyObject * obj0 = 0 ;
8138 char *kwnames[] = {
8139 (char *) "self", NULL
8140 };
8141
8142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail;
8143 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0);
8144 if (SWIG_arg_fail(1)) SWIG_fail;
8145 {
8146 PyThreadState* __tstate = wxPyBeginAllowThreads();
8147 {
8148 wxString const &_result_ref = (arg1)->GetLocation();
8149 result = (wxString *) &_result_ref;
8150 }
8151
8152 wxPyEndAllowThreads(__tstate);
8153 if (PyErr_Occurred()) SWIG_fail;
8154 }
8155 {
8156 #if wxUSE_UNICODE
8157 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8158 #else
8159 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8160 #endif
8161 }
8162 return resultobj;
8163 fail:
8164 return NULL;
8165 }
8166
8167
8168 static PyObject *_wrap_FSFile_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) {
8169 PyObject *resultobj;
8170 wxFSFile *arg1 = (wxFSFile *) 0 ;
8171 wxString *result;
8172 PyObject * obj0 = 0 ;
8173 char *kwnames[] = {
8174 (char *) "self", NULL
8175 };
8176
8177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail;
8178 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0);
8179 if (SWIG_arg_fail(1)) SWIG_fail;
8180 {
8181 PyThreadState* __tstate = wxPyBeginAllowThreads();
8182 {
8183 wxString const &_result_ref = (arg1)->GetAnchor();
8184 result = (wxString *) &_result_ref;
8185 }
8186
8187 wxPyEndAllowThreads(__tstate);
8188 if (PyErr_Occurred()) SWIG_fail;
8189 }
8190 {
8191 #if wxUSE_UNICODE
8192 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8193 #else
8194 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8195 #endif
8196 }
8197 return resultobj;
8198 fail:
8199 return NULL;
8200 }
8201
8202
8203 static PyObject *_wrap_FSFile_GetModificationTime(PyObject *, PyObject *args, PyObject *kwargs) {
8204 PyObject *resultobj;
8205 wxFSFile *arg1 = (wxFSFile *) 0 ;
8206 wxDateTime result;
8207 PyObject * obj0 = 0 ;
8208 char *kwnames[] = {
8209 (char *) "self", NULL
8210 };
8211
8212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail;
8213 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFSFile, SWIG_POINTER_EXCEPTION | 0);
8214 if (SWIG_arg_fail(1)) SWIG_fail;
8215 {
8216 PyThreadState* __tstate = wxPyBeginAllowThreads();
8217 result = (arg1)->GetModificationTime();
8218
8219 wxPyEndAllowThreads(__tstate);
8220 if (PyErr_Occurred()) SWIG_fail;
8221 }
8222 {
8223 wxDateTime * resultptr;
8224 resultptr = new wxDateTime((wxDateTime &)(result));
8225 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
8226 }
8227 return resultobj;
8228 fail:
8229 return NULL;
8230 }
8231
8232
8233 static PyObject * FSFile_swigregister(PyObject *, PyObject *args) {
8234 PyObject *obj;
8235 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8236 SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj);
8237 Py_INCREF(obj);
8238 return Py_BuildValue((char *)"");
8239 }
8240 static PyObject * CPPFileSystemHandler_swigregister(PyObject *, PyObject *args) {
8241 PyObject *obj;
8242 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8243 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj);
8244 Py_INCREF(obj);
8245 return Py_BuildValue((char *)"");
8246 }
8247 static PyObject *_wrap_new_FileSystemHandler(PyObject *, PyObject *args, PyObject *kwargs) {
8248 PyObject *resultobj;
8249 wxPyFileSystemHandler *result;
8250 char *kwnames[] = {
8251 NULL
8252 };
8253
8254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail;
8255 {
8256 PyThreadState* __tstate = wxPyBeginAllowThreads();
8257 result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler();
8258
8259 wxPyEndAllowThreads(__tstate);
8260 if (PyErr_Occurred()) SWIG_fail;
8261 }
8262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1);
8263 return resultobj;
8264 fail:
8265 return NULL;
8266 }
8267
8268
8269 static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8270 PyObject *resultobj;
8271 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
8272 PyObject *arg2 = (PyObject *) 0 ;
8273 PyObject *arg3 = (PyObject *) 0 ;
8274 PyObject * obj0 = 0 ;
8275 PyObject * obj1 = 0 ;
8276 PyObject * obj2 = 0 ;
8277 char *kwnames[] = {
8278 (char *) "self",(char *) "self",(char *) "_class", NULL
8279 };
8280
8281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8282 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0);
8283 if (SWIG_arg_fail(1)) SWIG_fail;
8284 arg2 = obj1;
8285 arg3 = obj2;
8286 {
8287 PyThreadState* __tstate = wxPyBeginAllowThreads();
8288 (arg1)->_setCallbackInfo(arg2,arg3);
8289
8290 wxPyEndAllowThreads(__tstate);
8291 if (PyErr_Occurred()) SWIG_fail;
8292 }
8293 Py_INCREF(Py_None); resultobj = Py_None;
8294 return resultobj;
8295 fail:
8296 return NULL;
8297 }
8298
8299
8300 static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) {
8301 PyObject *resultobj;
8302 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
8303 wxString *arg2 = 0 ;
8304 bool result;
8305 bool temp2 = false ;
8306 PyObject * obj0 = 0 ;
8307 PyObject * obj1 = 0 ;
8308 char *kwnames[] = {
8309 (char *) "self",(char *) "location", NULL
8310 };
8311
8312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
8313 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0);
8314 if (SWIG_arg_fail(1)) SWIG_fail;
8315 {
8316 arg2 = wxString_in_helper(obj1);
8317 if (arg2 == NULL) SWIG_fail;
8318 temp2 = true;
8319 }
8320 {
8321 PyThreadState* __tstate = wxPyBeginAllowThreads();
8322 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
8323
8324 wxPyEndAllowThreads(__tstate);
8325 if (PyErr_Occurred()) SWIG_fail;
8326 }
8327 {
8328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8329 }
8330 {
8331 if (temp2)
8332 delete arg2;
8333 }
8334 return resultobj;
8335 fail:
8336 {
8337 if (temp2)
8338 delete arg2;
8339 }
8340 return NULL;
8341 }
8342
8343
8344 static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) {
8345 PyObject *resultobj;
8346 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
8347 wxFileSystem *arg2 = 0 ;
8348 wxString *arg3 = 0 ;
8349 wxFSFile *result;
8350 bool temp3 = false ;
8351 PyObject * obj0 = 0 ;
8352 PyObject * obj1 = 0 ;
8353 PyObject * obj2 = 0 ;
8354 char *kwnames[] = {
8355 (char *) "self",(char *) "fs",(char *) "location", NULL
8356 };
8357
8358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
8359 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0);
8360 if (SWIG_arg_fail(1)) SWIG_fail;
8361 {
8362 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0);
8363 if (SWIG_arg_fail(2)) SWIG_fail;
8364 if (arg2 == NULL) {
8365 SWIG_null_ref("wxFileSystem");
8366 }
8367 if (SWIG_arg_fail(2)) SWIG_fail;
8368 }
8369 {
8370 arg3 = wxString_in_helper(obj2);
8371 if (arg3 == NULL) SWIG_fail;
8372 temp3 = true;
8373 }
8374 {
8375 PyThreadState* __tstate = wxPyBeginAllowThreads();
8376 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
8377
8378 wxPyEndAllowThreads(__tstate);
8379 if (PyErr_Occurred()) SWIG_fail;
8380 }
8381 {
8382 resultobj = wxPyMake_wxObject(result, 1);
8383 }
8384 {
8385 if (temp3)
8386 delete arg3;
8387 }
8388 return resultobj;
8389 fail:
8390 {
8391 if (temp3)
8392 delete arg3;
8393 }
8394 return NULL;
8395 }
8396
8397
8398 static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) {
8399 PyObject *resultobj;
8400 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
8401 wxString *arg2 = 0 ;
8402 int arg3 = (int) 0 ;
8403 wxString result;
8404 bool temp2 = false ;
8405 PyObject * obj0 = 0 ;
8406 PyObject * obj1 = 0 ;
8407 PyObject * obj2 = 0 ;
8408 char *kwnames[] = {
8409 (char *) "self",(char *) "spec",(char *) "flags", NULL
8410 };
8411
8412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
8413 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0);
8414 if (SWIG_arg_fail(1)) SWIG_fail;
8415 {
8416 arg2 = wxString_in_helper(obj1);
8417 if (arg2 == NULL) SWIG_fail;
8418 temp2 = true;
8419 }
8420 if (obj2) {
8421 {
8422 arg3 = (int)(SWIG_As_int(obj2));
8423 if (SWIG_arg_fail(3)) SWIG_fail;
8424 }
8425 }
8426 {
8427 PyThreadState* __tstate = wxPyBeginAllowThreads();
8428 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
8429
8430 wxPyEndAllowThreads(__tstate);
8431 if (PyErr_Occurred()) SWIG_fail;
8432 }
8433 {
8434 #if wxUSE_UNICODE
8435 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8436 #else
8437 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8438 #endif
8439 }
8440 {
8441 if (temp2)
8442 delete arg2;
8443 }
8444 return resultobj;
8445 fail:
8446 {
8447 if (temp2)
8448 delete arg2;
8449 }
8450 return NULL;
8451 }
8452
8453
8454 static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) {
8455 PyObject *resultobj;
8456 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
8457 wxString result;
8458 PyObject * obj0 = 0 ;
8459 char *kwnames[] = {
8460 (char *) "self", NULL
8461 };
8462
8463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail;
8464 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0);
8465 if (SWIG_arg_fail(1)) SWIG_fail;
8466 {
8467 PyThreadState* __tstate = wxPyBeginAllowThreads();
8468 result = (arg1)->FindNext();
8469
8470 wxPyEndAllowThreads(__tstate);
8471 if (PyErr_Occurred()) SWIG_fail;
8472 }
8473 {
8474 #if wxUSE_UNICODE
8475 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8476 #else
8477 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8478 #endif
8479 }
8480 return resultobj;
8481 fail:
8482 return NULL;
8483 }
8484
8485
8486 static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *, PyObject *args, PyObject *kwargs) {
8487 PyObject *resultobj;
8488 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
8489 wxString *arg2 = 0 ;
8490 wxString result;
8491 bool temp2 = false ;
8492 PyObject * obj0 = 0 ;
8493 PyObject * obj1 = 0 ;
8494 char *kwnames[] = {
8495 (char *) "self",(char *) "location", NULL
8496 };
8497
8498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail;
8499 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0);
8500 if (SWIG_arg_fail(1)) SWIG_fail;
8501 {
8502 arg2 = wxString_in_helper(obj1);
8503 if (arg2 == NULL) SWIG_fail;
8504 temp2 = true;
8505 }
8506 {
8507 PyThreadState* __tstate = wxPyBeginAllowThreads();
8508 result = (arg1)->GetProtocol((wxString const &)*arg2);
8509
8510 wxPyEndAllowThreads(__tstate);
8511 if (PyErr_Occurred()) SWIG_fail;
8512 }
8513 {
8514 #if wxUSE_UNICODE
8515 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8516 #else
8517 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8518 #endif
8519 }
8520 {
8521 if (temp2)
8522 delete arg2;
8523 }
8524 return resultobj;
8525 fail:
8526 {
8527 if (temp2)
8528 delete arg2;
8529 }
8530 return NULL;
8531 }
8532
8533
8534 static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *, PyObject *args, PyObject *kwargs) {
8535 PyObject *resultobj;
8536 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
8537 wxString *arg2 = 0 ;
8538 wxString result;
8539 bool temp2 = false ;
8540 PyObject * obj0 = 0 ;
8541 PyObject * obj1 = 0 ;
8542 char *kwnames[] = {
8543 (char *) "self",(char *) "location", NULL
8544 };
8545
8546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail;
8547 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0);
8548 if (SWIG_arg_fail(1)) SWIG_fail;
8549 {
8550 arg2 = wxString_in_helper(obj1);
8551 if (arg2 == NULL) SWIG_fail;
8552 temp2 = true;
8553 }
8554 {
8555 PyThreadState* __tstate = wxPyBeginAllowThreads();
8556 result = (arg1)->GetLeftLocation((wxString const &)*arg2);
8557
8558 wxPyEndAllowThreads(__tstate);
8559 if (PyErr_Occurred()) SWIG_fail;
8560 }
8561 {
8562 #if wxUSE_UNICODE
8563 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8564 #else
8565 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8566 #endif
8567 }
8568 {
8569 if (temp2)
8570 delete arg2;
8571 }
8572 return resultobj;
8573 fail:
8574 {
8575 if (temp2)
8576 delete arg2;
8577 }
8578 return NULL;
8579 }
8580
8581
8582 static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) {
8583 PyObject *resultobj;
8584 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
8585 wxString *arg2 = 0 ;
8586 wxString result;
8587 bool temp2 = false ;
8588 PyObject * obj0 = 0 ;
8589 PyObject * obj1 = 0 ;
8590 char *kwnames[] = {
8591 (char *) "self",(char *) "location", NULL
8592 };
8593
8594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail;
8595 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0);
8596 if (SWIG_arg_fail(1)) SWIG_fail;
8597 {
8598 arg2 = wxString_in_helper(obj1);
8599 if (arg2 == NULL) SWIG_fail;
8600 temp2 = true;
8601 }
8602 {
8603 PyThreadState* __tstate = wxPyBeginAllowThreads();
8604 result = (arg1)->GetAnchor((wxString const &)*arg2);
8605
8606 wxPyEndAllowThreads(__tstate);
8607 if (PyErr_Occurred()) SWIG_fail;
8608 }
8609 {
8610 #if wxUSE_UNICODE
8611 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8612 #else
8613 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8614 #endif
8615 }
8616 {
8617 if (temp2)
8618 delete arg2;
8619 }
8620 return resultobj;
8621 fail:
8622 {
8623 if (temp2)
8624 delete arg2;
8625 }
8626 return NULL;
8627 }
8628
8629
8630 static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *, PyObject *args, PyObject *kwargs) {
8631 PyObject *resultobj;
8632 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
8633 wxString *arg2 = 0 ;
8634 wxString result;
8635 bool temp2 = false ;
8636 PyObject * obj0 = 0 ;
8637 PyObject * obj1 = 0 ;
8638 char *kwnames[] = {
8639 (char *) "self",(char *) "location", NULL
8640 };
8641
8642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail;
8643 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0);
8644 if (SWIG_arg_fail(1)) SWIG_fail;
8645 {
8646 arg2 = wxString_in_helper(obj1);
8647 if (arg2 == NULL) SWIG_fail;
8648 temp2 = true;
8649 }
8650 {
8651 PyThreadState* __tstate = wxPyBeginAllowThreads();
8652 result = (arg1)->GetRightLocation((wxString const &)*arg2);
8653
8654 wxPyEndAllowThreads(__tstate);
8655 if (PyErr_Occurred()) SWIG_fail;
8656 }
8657 {
8658 #if wxUSE_UNICODE
8659 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8660 #else
8661 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8662 #endif
8663 }
8664 {
8665 if (temp2)
8666 delete arg2;
8667 }
8668 return resultobj;
8669 fail:
8670 {
8671 if (temp2)
8672 delete arg2;
8673 }
8674 return NULL;
8675 }
8676
8677
8678 static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *, PyObject *args, PyObject *kwargs) {
8679 PyObject *resultobj;
8680 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
8681 wxString *arg2 = 0 ;
8682 wxString result;
8683 bool temp2 = false ;
8684 PyObject * obj0 = 0 ;
8685 PyObject * obj1 = 0 ;
8686 char *kwnames[] = {
8687 (char *) "self",(char *) "location", NULL
8688 };
8689
8690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail;
8691 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_EXCEPTION | 0);
8692 if (SWIG_arg_fail(1)) SWIG_fail;
8693 {
8694 arg2 = wxString_in_helper(obj1);
8695 if (arg2 == NULL) SWIG_fail;
8696 temp2 = true;
8697 }
8698 {
8699 PyThreadState* __tstate = wxPyBeginAllowThreads();
8700 result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2);
8701
8702 wxPyEndAllowThreads(__tstate);
8703 if (PyErr_Occurred()) SWIG_fail;
8704 }
8705 {
8706 #if wxUSE_UNICODE
8707 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8708 #else
8709 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8710 #endif
8711 }
8712 {
8713 if (temp2)
8714 delete arg2;
8715 }
8716 return resultobj;
8717 fail:
8718 {
8719 if (temp2)
8720 delete arg2;
8721 }
8722 return NULL;
8723 }
8724
8725
8726 static PyObject * FileSystemHandler_swigregister(PyObject *, PyObject *args) {
8727 PyObject *obj;
8728 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8729 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj);
8730 Py_INCREF(obj);
8731 return Py_BuildValue((char *)"");
8732 }
8733 static PyObject *_wrap_new_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) {
8734 PyObject *resultobj;
8735 wxFileSystem *result;
8736 char *kwnames[] = {
8737 NULL
8738 };
8739
8740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail;
8741 {
8742 PyThreadState* __tstate = wxPyBeginAllowThreads();
8743 result = (wxFileSystem *)new wxFileSystem();
8744
8745 wxPyEndAllowThreads(__tstate);
8746 if (PyErr_Occurred()) SWIG_fail;
8747 }
8748 {
8749 resultobj = wxPyMake_wxObject(result, 1);
8750 }
8751 return resultobj;
8752 fail:
8753 return NULL;
8754 }
8755
8756
8757 static PyObject *_wrap_delete_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) {
8758 PyObject *resultobj;
8759 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
8760 PyObject * obj0 = 0 ;
8761 char *kwnames[] = {
8762 (char *) "self", NULL
8763 };
8764
8765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail;
8766 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0);
8767 if (SWIG_arg_fail(1)) SWIG_fail;
8768 {
8769 PyThreadState* __tstate = wxPyBeginAllowThreads();
8770 delete arg1;
8771
8772 wxPyEndAllowThreads(__tstate);
8773 if (PyErr_Occurred()) SWIG_fail;
8774 }
8775 Py_INCREF(Py_None); resultobj = Py_None;
8776 return resultobj;
8777 fail:
8778 return NULL;
8779 }
8780
8781
8782 static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *, PyObject *args, PyObject *kwargs) {
8783 PyObject *resultobj;
8784 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
8785 wxString *arg2 = 0 ;
8786 bool arg3 = (bool) false ;
8787 bool temp2 = false ;
8788 PyObject * obj0 = 0 ;
8789 PyObject * obj1 = 0 ;
8790 PyObject * obj2 = 0 ;
8791 char *kwnames[] = {
8792 (char *) "self",(char *) "location",(char *) "is_dir", NULL
8793 };
8794
8795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8796 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0);
8797 if (SWIG_arg_fail(1)) SWIG_fail;
8798 {
8799 arg2 = wxString_in_helper(obj1);
8800 if (arg2 == NULL) SWIG_fail;
8801 temp2 = true;
8802 }
8803 if (obj2) {
8804 {
8805 arg3 = (bool)(SWIG_As_bool(obj2));
8806 if (SWIG_arg_fail(3)) SWIG_fail;
8807 }
8808 }
8809 {
8810 PyThreadState* __tstate = wxPyBeginAllowThreads();
8811 (arg1)->ChangePathTo((wxString const &)*arg2,arg3);
8812
8813 wxPyEndAllowThreads(__tstate);
8814 if (PyErr_Occurred()) SWIG_fail;
8815 }
8816 Py_INCREF(Py_None); resultobj = Py_None;
8817 {
8818 if (temp2)
8819 delete arg2;
8820 }
8821 return resultobj;
8822 fail:
8823 {
8824 if (temp2)
8825 delete arg2;
8826 }
8827 return NULL;
8828 }
8829
8830
8831 static PyObject *_wrap_FileSystem_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
8832 PyObject *resultobj;
8833 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
8834 wxString result;
8835 PyObject * obj0 = 0 ;
8836 char *kwnames[] = {
8837 (char *) "self", NULL
8838 };
8839
8840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail;
8841 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0);
8842 if (SWIG_arg_fail(1)) SWIG_fail;
8843 {
8844 PyThreadState* __tstate = wxPyBeginAllowThreads();
8845 result = (arg1)->GetPath();
8846
8847 wxPyEndAllowThreads(__tstate);
8848 if (PyErr_Occurred()) SWIG_fail;
8849 }
8850 {
8851 #if wxUSE_UNICODE
8852 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8853 #else
8854 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8855 #endif
8856 }
8857 return resultobj;
8858 fail:
8859 return NULL;
8860 }
8861
8862
8863 static PyObject *_wrap_FileSystem_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) {
8864 PyObject *resultobj;
8865 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
8866 wxString *arg2 = 0 ;
8867 wxFSFile *result;
8868 bool temp2 = false ;
8869 PyObject * obj0 = 0 ;
8870 PyObject * obj1 = 0 ;
8871 char *kwnames[] = {
8872 (char *) "self",(char *) "location", NULL
8873 };
8874
8875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail;
8876 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0);
8877 if (SWIG_arg_fail(1)) SWIG_fail;
8878 {
8879 arg2 = wxString_in_helper(obj1);
8880 if (arg2 == NULL) SWIG_fail;
8881 temp2 = true;
8882 }
8883 {
8884 PyThreadState* __tstate = wxPyBeginAllowThreads();
8885 result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2);
8886
8887 wxPyEndAllowThreads(__tstate);
8888 if (PyErr_Occurred()) SWIG_fail;
8889 }
8890 {
8891 resultobj = wxPyMake_wxObject(result, 1);
8892 }
8893 {
8894 if (temp2)
8895 delete arg2;
8896 }
8897 return resultobj;
8898 fail:
8899 {
8900 if (temp2)
8901 delete arg2;
8902 }
8903 return NULL;
8904 }
8905
8906
8907 static PyObject *_wrap_FileSystem_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) {
8908 PyObject *resultobj;
8909 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
8910 wxString *arg2 = 0 ;
8911 int arg3 = (int) 0 ;
8912 wxString result;
8913 bool temp2 = false ;
8914 PyObject * obj0 = 0 ;
8915 PyObject * obj1 = 0 ;
8916 PyObject * obj2 = 0 ;
8917 char *kwnames[] = {
8918 (char *) "self",(char *) "spec",(char *) "flags", NULL
8919 };
8920
8921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
8922 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0);
8923 if (SWIG_arg_fail(1)) SWIG_fail;
8924 {
8925 arg2 = wxString_in_helper(obj1);
8926 if (arg2 == NULL) SWIG_fail;
8927 temp2 = true;
8928 }
8929 if (obj2) {
8930 {
8931 arg3 = (int)(SWIG_As_int(obj2));
8932 if (SWIG_arg_fail(3)) SWIG_fail;
8933 }
8934 }
8935 {
8936 PyThreadState* __tstate = wxPyBeginAllowThreads();
8937 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
8938
8939 wxPyEndAllowThreads(__tstate);
8940 if (PyErr_Occurred()) SWIG_fail;
8941 }
8942 {
8943 #if wxUSE_UNICODE
8944 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8945 #else
8946 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8947 #endif
8948 }
8949 {
8950 if (temp2)
8951 delete arg2;
8952 }
8953 return resultobj;
8954 fail:
8955 {
8956 if (temp2)
8957 delete arg2;
8958 }
8959 return NULL;
8960 }
8961
8962
8963 static PyObject *_wrap_FileSystem_FindNext(PyObject *, PyObject *args, PyObject *kwargs) {
8964 PyObject *resultobj;
8965 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
8966 wxString result;
8967 PyObject * obj0 = 0 ;
8968 char *kwnames[] = {
8969 (char *) "self", NULL
8970 };
8971
8972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail;
8973 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0);
8974 if (SWIG_arg_fail(1)) SWIG_fail;
8975 {
8976 PyThreadState* __tstate = wxPyBeginAllowThreads();
8977 result = (arg1)->FindNext();
8978
8979 wxPyEndAllowThreads(__tstate);
8980 if (PyErr_Occurred()) SWIG_fail;
8981 }
8982 {
8983 #if wxUSE_UNICODE
8984 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8985 #else
8986 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8987 #endif
8988 }
8989 return resultobj;
8990 fail:
8991 return NULL;
8992 }
8993
8994
8995 static PyObject *_wrap_FileSystem_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) {
8996 PyObject *resultobj;
8997 wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
8998 PyObject * obj0 = 0 ;
8999 char *kwnames[] = {
9000 (char *) "handler", NULL
9001 };
9002
9003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail;
9004 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFileSystemHandler, SWIG_POINTER_EXCEPTION | 0);
9005 if (SWIG_arg_fail(1)) SWIG_fail;
9006 {
9007 PyThreadState* __tstate = wxPyBeginAllowThreads();
9008 wxFileSystem::AddHandler(arg1);
9009
9010 wxPyEndAllowThreads(__tstate);
9011 if (PyErr_Occurred()) SWIG_fail;
9012 }
9013 Py_INCREF(Py_None); resultobj = Py_None;
9014 return resultobj;
9015 fail:
9016 return NULL;
9017 }
9018
9019
9020 static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *, PyObject *args, PyObject *kwargs) {
9021 PyObject *resultobj;
9022 char *kwnames[] = {
9023 NULL
9024 };
9025
9026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail;
9027 {
9028 PyThreadState* __tstate = wxPyBeginAllowThreads();
9029 wxFileSystem::CleanUpHandlers();
9030
9031 wxPyEndAllowThreads(__tstate);
9032 if (PyErr_Occurred()) SWIG_fail;
9033 }
9034 Py_INCREF(Py_None); resultobj = Py_None;
9035 return resultobj;
9036 fail:
9037 return NULL;
9038 }
9039
9040
9041 static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *, PyObject *args, PyObject *kwargs) {
9042 PyObject *resultobj;
9043 wxString *arg1 = 0 ;
9044 wxString result;
9045 bool temp1 = false ;
9046 PyObject * obj0 = 0 ;
9047 char *kwnames[] = {
9048 (char *) "filename", NULL
9049 };
9050
9051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail;
9052 {
9053 arg1 = wxString_in_helper(obj0);
9054 if (arg1 == NULL) SWIG_fail;
9055 temp1 = true;
9056 }
9057 {
9058 PyThreadState* __tstate = wxPyBeginAllowThreads();
9059 result = wxFileSystem::FileNameToURL((wxString const &)*arg1);
9060
9061 wxPyEndAllowThreads(__tstate);
9062 if (PyErr_Occurred()) SWIG_fail;
9063 }
9064 {
9065 #if wxUSE_UNICODE
9066 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9067 #else
9068 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9069 #endif
9070 }
9071 {
9072 if (temp1)
9073 delete arg1;
9074 }
9075 return resultobj;
9076 fail:
9077 {
9078 if (temp1)
9079 delete arg1;
9080 }
9081 return NULL;
9082 }
9083
9084
9085 static PyObject *_wrap_FileSystem_URLToFileName(PyObject *, PyObject *args, PyObject *kwargs) {
9086 PyObject *resultobj;
9087 wxString *arg1 = 0 ;
9088 wxString result;
9089 bool temp1 = false ;
9090 PyObject * obj0 = 0 ;
9091 char *kwnames[] = {
9092 (char *) "url", NULL
9093 };
9094
9095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail;
9096 {
9097 arg1 = wxString_in_helper(obj0);
9098 if (arg1 == NULL) SWIG_fail;
9099 temp1 = true;
9100 }
9101 {
9102 PyThreadState* __tstate = wxPyBeginAllowThreads();
9103 result = FileSystem_URLToFileName((wxString const &)*arg1);
9104
9105 wxPyEndAllowThreads(__tstate);
9106 if (PyErr_Occurred()) SWIG_fail;
9107 }
9108 {
9109 #if wxUSE_UNICODE
9110 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9111 #else
9112 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9113 #endif
9114 }
9115 {
9116 if (temp1)
9117 delete arg1;
9118 }
9119 return resultobj;
9120 fail:
9121 {
9122 if (temp1)
9123 delete arg1;
9124 }
9125 return NULL;
9126 }
9127
9128
9129 static PyObject * FileSystem_swigregister(PyObject *, PyObject *args) {
9130 PyObject *obj;
9131 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9132 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj);
9133 Py_INCREF(obj);
9134 return Py_BuildValue((char *)"");
9135 }
9136 static PyObject *_wrap_new_InternetFSHandler(PyObject *, PyObject *args, PyObject *kwargs) {
9137 PyObject *resultobj;
9138 wxInternetFSHandler *result;
9139 char *kwnames[] = {
9140 NULL
9141 };
9142
9143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail;
9144 {
9145 PyThreadState* __tstate = wxPyBeginAllowThreads();
9146 result = (wxInternetFSHandler *)new wxInternetFSHandler();
9147
9148 wxPyEndAllowThreads(__tstate);
9149 if (PyErr_Occurred()) SWIG_fail;
9150 }
9151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1);
9152 return resultobj;
9153 fail:
9154 return NULL;
9155 }
9156
9157
9158 static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) {
9159 PyObject *resultobj;
9160 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
9161 wxString *arg2 = 0 ;
9162 bool result;
9163 bool temp2 = false ;
9164 PyObject * obj0 = 0 ;
9165 PyObject * obj1 = 0 ;
9166 char *kwnames[] = {
9167 (char *) "self",(char *) "location", NULL
9168 };
9169
9170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
9171 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxInternetFSHandler, SWIG_POINTER_EXCEPTION | 0);
9172 if (SWIG_arg_fail(1)) SWIG_fail;
9173 {
9174 arg2 = wxString_in_helper(obj1);
9175 if (arg2 == NULL) SWIG_fail;
9176 temp2 = true;
9177 }
9178 {
9179 PyThreadState* __tstate = wxPyBeginAllowThreads();
9180 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
9181
9182 wxPyEndAllowThreads(__tstate);
9183 if (PyErr_Occurred()) SWIG_fail;
9184 }
9185 {
9186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9187 }
9188 {
9189 if (temp2)
9190 delete arg2;
9191 }
9192 return resultobj;
9193 fail:
9194 {
9195 if (temp2)
9196 delete arg2;
9197 }
9198 return NULL;
9199 }
9200
9201
9202 static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) {
9203 PyObject *resultobj;
9204 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
9205 wxFileSystem *arg2 = 0 ;
9206 wxString *arg3 = 0 ;
9207 wxFSFile *result;
9208 bool temp3 = false ;
9209 PyObject * obj0 = 0 ;
9210 PyObject * obj1 = 0 ;
9211 PyObject * obj2 = 0 ;
9212 char *kwnames[] = {
9213 (char *) "self",(char *) "fs",(char *) "location", NULL
9214 };
9215
9216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
9217 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxInternetFSHandler, SWIG_POINTER_EXCEPTION | 0);
9218 if (SWIG_arg_fail(1)) SWIG_fail;
9219 {
9220 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0);
9221 if (SWIG_arg_fail(2)) SWIG_fail;
9222 if (arg2 == NULL) {
9223 SWIG_null_ref("wxFileSystem");
9224 }
9225 if (SWIG_arg_fail(2)) SWIG_fail;
9226 }
9227 {
9228 arg3 = wxString_in_helper(obj2);
9229 if (arg3 == NULL) SWIG_fail;
9230 temp3 = true;
9231 }
9232 {
9233 PyThreadState* __tstate = wxPyBeginAllowThreads();
9234 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
9235
9236 wxPyEndAllowThreads(__tstate);
9237 if (PyErr_Occurred()) SWIG_fail;
9238 }
9239 {
9240 resultobj = wxPyMake_wxObject(result, 1);
9241 }
9242 {
9243 if (temp3)
9244 delete arg3;
9245 }
9246 return resultobj;
9247 fail:
9248 {
9249 if (temp3)
9250 delete arg3;
9251 }
9252 return NULL;
9253 }
9254
9255
9256 static PyObject * InternetFSHandler_swigregister(PyObject *, PyObject *args) {
9257 PyObject *obj;
9258 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9259 SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj);
9260 Py_INCREF(obj);
9261 return Py_BuildValue((char *)"");
9262 }
9263 static PyObject *_wrap_new_ZipFSHandler(PyObject *, PyObject *args, PyObject *kwargs) {
9264 PyObject *resultobj;
9265 wxZipFSHandler *result;
9266 char *kwnames[] = {
9267 NULL
9268 };
9269
9270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail;
9271 {
9272 PyThreadState* __tstate = wxPyBeginAllowThreads();
9273 result = (wxZipFSHandler *)new wxZipFSHandler();
9274
9275 wxPyEndAllowThreads(__tstate);
9276 if (PyErr_Occurred()) SWIG_fail;
9277 }
9278 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1);
9279 return resultobj;
9280 fail:
9281 return NULL;
9282 }
9283
9284
9285 static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) {
9286 PyObject *resultobj;
9287 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
9288 wxString *arg2 = 0 ;
9289 bool result;
9290 bool temp2 = false ;
9291 PyObject * obj0 = 0 ;
9292 PyObject * obj1 = 0 ;
9293 char *kwnames[] = {
9294 (char *) "self",(char *) "location", NULL
9295 };
9296
9297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
9298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_EXCEPTION | 0);
9299 if (SWIG_arg_fail(1)) SWIG_fail;
9300 {
9301 arg2 = wxString_in_helper(obj1);
9302 if (arg2 == NULL) SWIG_fail;
9303 temp2 = true;
9304 }
9305 {
9306 PyThreadState* __tstate = wxPyBeginAllowThreads();
9307 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
9308
9309 wxPyEndAllowThreads(__tstate);
9310 if (PyErr_Occurred()) SWIG_fail;
9311 }
9312 {
9313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9314 }
9315 {
9316 if (temp2)
9317 delete arg2;
9318 }
9319 return resultobj;
9320 fail:
9321 {
9322 if (temp2)
9323 delete arg2;
9324 }
9325 return NULL;
9326 }
9327
9328
9329 static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) {
9330 PyObject *resultobj;
9331 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
9332 wxFileSystem *arg2 = 0 ;
9333 wxString *arg3 = 0 ;
9334 wxFSFile *result;
9335 bool temp3 = false ;
9336 PyObject * obj0 = 0 ;
9337 PyObject * obj1 = 0 ;
9338 PyObject * obj2 = 0 ;
9339 char *kwnames[] = {
9340 (char *) "self",(char *) "fs",(char *) "location", NULL
9341 };
9342
9343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
9344 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_EXCEPTION | 0);
9345 if (SWIG_arg_fail(1)) SWIG_fail;
9346 {
9347 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0);
9348 if (SWIG_arg_fail(2)) SWIG_fail;
9349 if (arg2 == NULL) {
9350 SWIG_null_ref("wxFileSystem");
9351 }
9352 if (SWIG_arg_fail(2)) SWIG_fail;
9353 }
9354 {
9355 arg3 = wxString_in_helper(obj2);
9356 if (arg3 == NULL) SWIG_fail;
9357 temp3 = true;
9358 }
9359 {
9360 PyThreadState* __tstate = wxPyBeginAllowThreads();
9361 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
9362
9363 wxPyEndAllowThreads(__tstate);
9364 if (PyErr_Occurred()) SWIG_fail;
9365 }
9366 {
9367 resultobj = wxPyMake_wxObject(result, 1);
9368 }
9369 {
9370 if (temp3)
9371 delete arg3;
9372 }
9373 return resultobj;
9374 fail:
9375 {
9376 if (temp3)
9377 delete arg3;
9378 }
9379 return NULL;
9380 }
9381
9382
9383 static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) {
9384 PyObject *resultobj;
9385 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
9386 wxString *arg2 = 0 ;
9387 int arg3 = (int) 0 ;
9388 wxString result;
9389 bool temp2 = false ;
9390 PyObject * obj0 = 0 ;
9391 PyObject * obj1 = 0 ;
9392 PyObject * obj2 = 0 ;
9393 char *kwnames[] = {
9394 (char *) "self",(char *) "spec",(char *) "flags", NULL
9395 };
9396
9397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
9398 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_EXCEPTION | 0);
9399 if (SWIG_arg_fail(1)) SWIG_fail;
9400 {
9401 arg2 = wxString_in_helper(obj1);
9402 if (arg2 == NULL) SWIG_fail;
9403 temp2 = true;
9404 }
9405 if (obj2) {
9406 {
9407 arg3 = (int)(SWIG_As_int(obj2));
9408 if (SWIG_arg_fail(3)) SWIG_fail;
9409 }
9410 }
9411 {
9412 PyThreadState* __tstate = wxPyBeginAllowThreads();
9413 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
9414
9415 wxPyEndAllowThreads(__tstate);
9416 if (PyErr_Occurred()) SWIG_fail;
9417 }
9418 {
9419 #if wxUSE_UNICODE
9420 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9421 #else
9422 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9423 #endif
9424 }
9425 {
9426 if (temp2)
9427 delete arg2;
9428 }
9429 return resultobj;
9430 fail:
9431 {
9432 if (temp2)
9433 delete arg2;
9434 }
9435 return NULL;
9436 }
9437
9438
9439 static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) {
9440 PyObject *resultobj;
9441 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
9442 wxString result;
9443 PyObject * obj0 = 0 ;
9444 char *kwnames[] = {
9445 (char *) "self", NULL
9446 };
9447
9448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail;
9449 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_EXCEPTION | 0);
9450 if (SWIG_arg_fail(1)) SWIG_fail;
9451 {
9452 PyThreadState* __tstate = wxPyBeginAllowThreads();
9453 result = (arg1)->FindNext();
9454
9455 wxPyEndAllowThreads(__tstate);
9456 if (PyErr_Occurred()) SWIG_fail;
9457 }
9458 {
9459 #if wxUSE_UNICODE
9460 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9461 #else
9462 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9463 #endif
9464 }
9465 return resultobj;
9466 fail:
9467 return NULL;
9468 }
9469
9470
9471 static PyObject * ZipFSHandler_swigregister(PyObject *, PyObject *args) {
9472 PyObject *obj;
9473 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9474 SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj);
9475 Py_INCREF(obj);
9476 return Py_BuildValue((char *)"");
9477 }
9478 static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *, PyObject *args, PyObject *kwargs) {
9479 PyObject *resultobj;
9480 wxString *arg1 = 0 ;
9481 wxImage *arg2 = 0 ;
9482 long arg3 ;
9483 bool temp1 = false ;
9484 PyObject * obj0 = 0 ;
9485 PyObject * obj1 = 0 ;
9486 PyObject * obj2 = 0 ;
9487 char *kwnames[] = {
9488 (char *) "filename",(char *) "image",(char *) "type", NULL
9489 };
9490
9491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
9492 {
9493 arg1 = wxString_in_helper(obj0);
9494 if (arg1 == NULL) SWIG_fail;
9495 temp1 = true;
9496 }
9497 {
9498 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
9499 if (SWIG_arg_fail(2)) SWIG_fail;
9500 if (arg2 == NULL) {
9501 SWIG_null_ref("wxImage");
9502 }
9503 if (SWIG_arg_fail(2)) SWIG_fail;
9504 }
9505 {
9506 arg3 = (long)(SWIG_As_long(obj2));
9507 if (SWIG_arg_fail(3)) SWIG_fail;
9508 }
9509 {
9510 PyThreadState* __tstate = wxPyBeginAllowThreads();
9511 __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3);
9512
9513 wxPyEndAllowThreads(__tstate);
9514 if (PyErr_Occurred()) SWIG_fail;
9515 }
9516 Py_INCREF(Py_None); resultobj = Py_None;
9517 {
9518 if (temp1)
9519 delete arg1;
9520 }
9521 return resultobj;
9522 fail:
9523 {
9524 if (temp1)
9525 delete arg1;
9526 }
9527 return NULL;
9528 }
9529
9530
9531 static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
9532 PyObject *resultobj;
9533 wxString *arg1 = 0 ;
9534 wxBitmap *arg2 = 0 ;
9535 long arg3 ;
9536 bool temp1 = false ;
9537 PyObject * obj0 = 0 ;
9538 PyObject * obj1 = 0 ;
9539 PyObject * obj2 = 0 ;
9540 char *kwnames[] = {
9541 (char *) "filename",(char *) "bitmap",(char *) "type", NULL
9542 };
9543
9544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
9545 {
9546 arg1 = wxString_in_helper(obj0);
9547 if (arg1 == NULL) SWIG_fail;
9548 temp1 = true;
9549 }
9550 {
9551 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
9552 if (SWIG_arg_fail(2)) SWIG_fail;
9553 if (arg2 == NULL) {
9554 SWIG_null_ref("wxBitmap");
9555 }
9556 if (SWIG_arg_fail(2)) SWIG_fail;
9557 }
9558 {
9559 arg3 = (long)(SWIG_As_long(obj2));
9560 if (SWIG_arg_fail(3)) SWIG_fail;
9561 }
9562 {
9563 PyThreadState* __tstate = wxPyBeginAllowThreads();
9564 __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3);
9565
9566 wxPyEndAllowThreads(__tstate);
9567 if (PyErr_Occurred()) SWIG_fail;
9568 }
9569 Py_INCREF(Py_None); resultobj = Py_None;
9570 {
9571 if (temp1)
9572 delete arg1;
9573 }
9574 return resultobj;
9575 fail:
9576 {
9577 if (temp1)
9578 delete arg1;
9579 }
9580 return NULL;
9581 }
9582
9583
9584 static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *, PyObject *args, PyObject *kwargs) {
9585 PyObject *resultobj;
9586 wxString *arg1 = 0 ;
9587 PyObject *arg2 = (PyObject *) 0 ;
9588 bool temp1 = false ;
9589 PyObject * obj0 = 0 ;
9590 PyObject * obj1 = 0 ;
9591 char *kwnames[] = {
9592 (char *) "filename",(char *) "data", NULL
9593 };
9594
9595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail;
9596 {
9597 arg1 = wxString_in_helper(obj0);
9598 if (arg1 == NULL) SWIG_fail;
9599 temp1 = true;
9600 }
9601 arg2 = obj1;
9602 {
9603 PyThreadState* __tstate = wxPyBeginAllowThreads();
9604 __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2);
9605
9606 wxPyEndAllowThreads(__tstate);
9607 if (PyErr_Occurred()) SWIG_fail;
9608 }
9609 Py_INCREF(Py_None); resultobj = Py_None;
9610 {
9611 if (temp1)
9612 delete arg1;
9613 }
9614 return resultobj;
9615 fail:
9616 {
9617 if (temp1)
9618 delete arg1;
9619 }
9620 return NULL;
9621 }
9622
9623
9624 static PyObject *_wrap_new_MemoryFSHandler(PyObject *, PyObject *args, PyObject *kwargs) {
9625 PyObject *resultobj;
9626 wxMemoryFSHandler *result;
9627 char *kwnames[] = {
9628 NULL
9629 };
9630
9631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail;
9632 {
9633 PyThreadState* __tstate = wxPyBeginAllowThreads();
9634 result = (wxMemoryFSHandler *)new wxMemoryFSHandler();
9635
9636 wxPyEndAllowThreads(__tstate);
9637 if (PyErr_Occurred()) SWIG_fail;
9638 }
9639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1);
9640 return resultobj;
9641 fail:
9642 return NULL;
9643 }
9644
9645
9646 static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *, PyObject *args, PyObject *kwargs) {
9647 PyObject *resultobj;
9648 wxString *arg1 = 0 ;
9649 bool temp1 = false ;
9650 PyObject * obj0 = 0 ;
9651 char *kwnames[] = {
9652 (char *) "filename", NULL
9653 };
9654
9655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail;
9656 {
9657 arg1 = wxString_in_helper(obj0);
9658 if (arg1 == NULL) SWIG_fail;
9659 temp1 = true;
9660 }
9661 {
9662 PyThreadState* __tstate = wxPyBeginAllowThreads();
9663 wxMemoryFSHandler::RemoveFile((wxString const &)*arg1);
9664
9665 wxPyEndAllowThreads(__tstate);
9666 if (PyErr_Occurred()) SWIG_fail;
9667 }
9668 Py_INCREF(Py_None); resultobj = Py_None;
9669 {
9670 if (temp1)
9671 delete arg1;
9672 }
9673 return resultobj;
9674 fail:
9675 {
9676 if (temp1)
9677 delete arg1;
9678 }
9679 return NULL;
9680 }
9681
9682
9683 static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) {
9684 PyObject *resultobj;
9685 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
9686 wxString *arg2 = 0 ;
9687 bool result;
9688 bool temp2 = false ;
9689 PyObject * obj0 = 0 ;
9690 PyObject * obj1 = 0 ;
9691 char *kwnames[] = {
9692 (char *) "self",(char *) "location", NULL
9693 };
9694
9695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
9696 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_EXCEPTION | 0);
9697 if (SWIG_arg_fail(1)) SWIG_fail;
9698 {
9699 arg2 = wxString_in_helper(obj1);
9700 if (arg2 == NULL) SWIG_fail;
9701 temp2 = true;
9702 }
9703 {
9704 PyThreadState* __tstate = wxPyBeginAllowThreads();
9705 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
9706
9707 wxPyEndAllowThreads(__tstate);
9708 if (PyErr_Occurred()) SWIG_fail;
9709 }
9710 {
9711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9712 }
9713 {
9714 if (temp2)
9715 delete arg2;
9716 }
9717 return resultobj;
9718 fail:
9719 {
9720 if (temp2)
9721 delete arg2;
9722 }
9723 return NULL;
9724 }
9725
9726
9727 static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) {
9728 PyObject *resultobj;
9729 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
9730 wxFileSystem *arg2 = 0 ;
9731 wxString *arg3 = 0 ;
9732 wxFSFile *result;
9733 bool temp3 = false ;
9734 PyObject * obj0 = 0 ;
9735 PyObject * obj1 = 0 ;
9736 PyObject * obj2 = 0 ;
9737 char *kwnames[] = {
9738 (char *) "self",(char *) "fs",(char *) "location", NULL
9739 };
9740
9741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
9742 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_EXCEPTION | 0);
9743 if (SWIG_arg_fail(1)) SWIG_fail;
9744 {
9745 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFileSystem, SWIG_POINTER_EXCEPTION | 0);
9746 if (SWIG_arg_fail(2)) SWIG_fail;
9747 if (arg2 == NULL) {
9748 SWIG_null_ref("wxFileSystem");
9749 }
9750 if (SWIG_arg_fail(2)) SWIG_fail;
9751 }
9752 {
9753 arg3 = wxString_in_helper(obj2);
9754 if (arg3 == NULL) SWIG_fail;
9755 temp3 = true;
9756 }
9757 {
9758 PyThreadState* __tstate = wxPyBeginAllowThreads();
9759 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
9760
9761 wxPyEndAllowThreads(__tstate);
9762 if (PyErr_Occurred()) SWIG_fail;
9763 }
9764 {
9765 resultobj = wxPyMake_wxObject(result, 1);
9766 }
9767 {
9768 if (temp3)
9769 delete arg3;
9770 }
9771 return resultobj;
9772 fail:
9773 {
9774 if (temp3)
9775 delete arg3;
9776 }
9777 return NULL;
9778 }
9779
9780
9781 static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) {
9782 PyObject *resultobj;
9783 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
9784 wxString *arg2 = 0 ;
9785 int arg3 = (int) 0 ;
9786 wxString result;
9787 bool temp2 = false ;
9788 PyObject * obj0 = 0 ;
9789 PyObject * obj1 = 0 ;
9790 PyObject * obj2 = 0 ;
9791 char *kwnames[] = {
9792 (char *) "self",(char *) "spec",(char *) "flags", NULL
9793 };
9794
9795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
9796 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_EXCEPTION | 0);
9797 if (SWIG_arg_fail(1)) SWIG_fail;
9798 {
9799 arg2 = wxString_in_helper(obj1);
9800 if (arg2 == NULL) SWIG_fail;
9801 temp2 = true;
9802 }
9803 if (obj2) {
9804 {
9805 arg3 = (int)(SWIG_As_int(obj2));
9806 if (SWIG_arg_fail(3)) SWIG_fail;
9807 }
9808 }
9809 {
9810 PyThreadState* __tstate = wxPyBeginAllowThreads();
9811 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
9812
9813 wxPyEndAllowThreads(__tstate);
9814 if (PyErr_Occurred()) SWIG_fail;
9815 }
9816 {
9817 #if wxUSE_UNICODE
9818 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9819 #else
9820 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9821 #endif
9822 }
9823 {
9824 if (temp2)
9825 delete arg2;
9826 }
9827 return resultobj;
9828 fail:
9829 {
9830 if (temp2)
9831 delete arg2;
9832 }
9833 return NULL;
9834 }
9835
9836
9837 static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) {
9838 PyObject *resultobj;
9839 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
9840 wxString result;
9841 PyObject * obj0 = 0 ;
9842 char *kwnames[] = {
9843 (char *) "self", NULL
9844 };
9845
9846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail;
9847 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_EXCEPTION | 0);
9848 if (SWIG_arg_fail(1)) SWIG_fail;
9849 {
9850 PyThreadState* __tstate = wxPyBeginAllowThreads();
9851 result = (arg1)->FindNext();
9852
9853 wxPyEndAllowThreads(__tstate);
9854 if (PyErr_Occurred()) SWIG_fail;
9855 }
9856 {
9857 #if wxUSE_UNICODE
9858 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9859 #else
9860 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9861 #endif
9862 }
9863 return resultobj;
9864 fail:
9865 return NULL;
9866 }
9867
9868
9869 static PyObject * MemoryFSHandler_swigregister(PyObject *, PyObject *args) {
9870 PyObject *obj;
9871 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9872 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj);
9873 Py_INCREF(obj);
9874 return Py_BuildValue((char *)"");
9875 }
9876 static PyObject *_wrap_ImageHandler_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
9877 PyObject *resultobj;
9878 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
9879 wxString result;
9880 PyObject * obj0 = 0 ;
9881 char *kwnames[] = {
9882 (char *) "self", NULL
9883 };
9884
9885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail;
9886 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0);
9887 if (SWIG_arg_fail(1)) SWIG_fail;
9888 {
9889 PyThreadState* __tstate = wxPyBeginAllowThreads();
9890 result = (arg1)->GetName();
9891
9892 wxPyEndAllowThreads(__tstate);
9893 if (PyErr_Occurred()) SWIG_fail;
9894 }
9895 {
9896 #if wxUSE_UNICODE
9897 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9898 #else
9899 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9900 #endif
9901 }
9902 return resultobj;
9903 fail:
9904 return NULL;
9905 }
9906
9907
9908 static PyObject *_wrap_ImageHandler_GetExtension(PyObject *, PyObject *args, PyObject *kwargs) {
9909 PyObject *resultobj;
9910 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
9911 wxString result;
9912 PyObject * obj0 = 0 ;
9913 char *kwnames[] = {
9914 (char *) "self", NULL
9915 };
9916
9917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail;
9918 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0);
9919 if (SWIG_arg_fail(1)) SWIG_fail;
9920 {
9921 PyThreadState* __tstate = wxPyBeginAllowThreads();
9922 result = (arg1)->GetExtension();
9923
9924 wxPyEndAllowThreads(__tstate);
9925 if (PyErr_Occurred()) SWIG_fail;
9926 }
9927 {
9928 #if wxUSE_UNICODE
9929 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9930 #else
9931 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9932 #endif
9933 }
9934 return resultobj;
9935 fail:
9936 return NULL;
9937 }
9938
9939
9940 static PyObject *_wrap_ImageHandler_GetType(PyObject *, PyObject *args, PyObject *kwargs) {
9941 PyObject *resultobj;
9942 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
9943 long result;
9944 PyObject * obj0 = 0 ;
9945 char *kwnames[] = {
9946 (char *) "self", NULL
9947 };
9948
9949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail;
9950 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0);
9951 if (SWIG_arg_fail(1)) SWIG_fail;
9952 {
9953 PyThreadState* __tstate = wxPyBeginAllowThreads();
9954 result = (long)(arg1)->GetType();
9955
9956 wxPyEndAllowThreads(__tstate);
9957 if (PyErr_Occurred()) SWIG_fail;
9958 }
9959 {
9960 resultobj = SWIG_From_long((long)(result));
9961 }
9962 return resultobj;
9963 fail:
9964 return NULL;
9965 }
9966
9967
9968 static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
9969 PyObject *resultobj;
9970 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
9971 wxString result;
9972 PyObject * obj0 = 0 ;
9973 char *kwnames[] = {
9974 (char *) "self", NULL
9975 };
9976
9977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail;
9978 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0);
9979 if (SWIG_arg_fail(1)) SWIG_fail;
9980 {
9981 PyThreadState* __tstate = wxPyBeginAllowThreads();
9982 result = (arg1)->GetMimeType();
9983
9984 wxPyEndAllowThreads(__tstate);
9985 if (PyErr_Occurred()) SWIG_fail;
9986 }
9987 {
9988 #if wxUSE_UNICODE
9989 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9990 #else
9991 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9992 #endif
9993 }
9994 return resultobj;
9995 fail:
9996 return NULL;
9997 }
9998
9999
10000 static PyObject *_wrap_ImageHandler_CanRead(PyObject *, PyObject *args, PyObject *kwargs) {
10001 PyObject *resultobj;
10002 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
10003 wxString *arg2 = 0 ;
10004 bool result;
10005 bool temp2 = false ;
10006 PyObject * obj0 = 0 ;
10007 PyObject * obj1 = 0 ;
10008 char *kwnames[] = {
10009 (char *) "self",(char *) "name", NULL
10010 };
10011
10012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail;
10013 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0);
10014 if (SWIG_arg_fail(1)) SWIG_fail;
10015 {
10016 arg2 = wxString_in_helper(obj1);
10017 if (arg2 == NULL) SWIG_fail;
10018 temp2 = true;
10019 }
10020 {
10021 PyThreadState* __tstate = wxPyBeginAllowThreads();
10022 result = (bool)(arg1)->CanRead((wxString const &)*arg2);
10023
10024 wxPyEndAllowThreads(__tstate);
10025 if (PyErr_Occurred()) SWIG_fail;
10026 }
10027 {
10028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10029 }
10030 {
10031 if (temp2)
10032 delete arg2;
10033 }
10034 return resultobj;
10035 fail:
10036 {
10037 if (temp2)
10038 delete arg2;
10039 }
10040 return NULL;
10041 }
10042
10043
10044 static PyObject *_wrap_ImageHandler_SetName(PyObject *, PyObject *args, PyObject *kwargs) {
10045 PyObject *resultobj;
10046 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
10047 wxString *arg2 = 0 ;
10048 bool temp2 = false ;
10049 PyObject * obj0 = 0 ;
10050 PyObject * obj1 = 0 ;
10051 char *kwnames[] = {
10052 (char *) "self",(char *) "name", NULL
10053 };
10054
10055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail;
10056 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0);
10057 if (SWIG_arg_fail(1)) SWIG_fail;
10058 {
10059 arg2 = wxString_in_helper(obj1);
10060 if (arg2 == NULL) SWIG_fail;
10061 temp2 = true;
10062 }
10063 {
10064 PyThreadState* __tstate = wxPyBeginAllowThreads();
10065 (arg1)->SetName((wxString const &)*arg2);
10066
10067 wxPyEndAllowThreads(__tstate);
10068 if (PyErr_Occurred()) SWIG_fail;
10069 }
10070 Py_INCREF(Py_None); resultobj = Py_None;
10071 {
10072 if (temp2)
10073 delete arg2;
10074 }
10075 return resultobj;
10076 fail:
10077 {
10078 if (temp2)
10079 delete arg2;
10080 }
10081 return NULL;
10082 }
10083
10084
10085 static PyObject *_wrap_ImageHandler_SetExtension(PyObject *, PyObject *args, PyObject *kwargs) {
10086 PyObject *resultobj;
10087 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
10088 wxString *arg2 = 0 ;
10089 bool temp2 = false ;
10090 PyObject * obj0 = 0 ;
10091 PyObject * obj1 = 0 ;
10092 char *kwnames[] = {
10093 (char *) "self",(char *) "extension", NULL
10094 };
10095
10096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail;
10097 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0);
10098 if (SWIG_arg_fail(1)) SWIG_fail;
10099 {
10100 arg2 = wxString_in_helper(obj1);
10101 if (arg2 == NULL) SWIG_fail;
10102 temp2 = true;
10103 }
10104 {
10105 PyThreadState* __tstate = wxPyBeginAllowThreads();
10106 (arg1)->SetExtension((wxString const &)*arg2);
10107
10108 wxPyEndAllowThreads(__tstate);
10109 if (PyErr_Occurred()) SWIG_fail;
10110 }
10111 Py_INCREF(Py_None); resultobj = Py_None;
10112 {
10113 if (temp2)
10114 delete arg2;
10115 }
10116 return resultobj;
10117 fail:
10118 {
10119 if (temp2)
10120 delete arg2;
10121 }
10122 return NULL;
10123 }
10124
10125
10126 static PyObject *_wrap_ImageHandler_SetType(PyObject *, PyObject *args, PyObject *kwargs) {
10127 PyObject *resultobj;
10128 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
10129 long arg2 ;
10130 PyObject * obj0 = 0 ;
10131 PyObject * obj1 = 0 ;
10132 char *kwnames[] = {
10133 (char *) "self",(char *) "type", NULL
10134 };
10135
10136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail;
10137 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0);
10138 if (SWIG_arg_fail(1)) SWIG_fail;
10139 {
10140 arg2 = (long)(SWIG_As_long(obj1));
10141 if (SWIG_arg_fail(2)) SWIG_fail;
10142 }
10143 {
10144 PyThreadState* __tstate = wxPyBeginAllowThreads();
10145 (arg1)->SetType(arg2);
10146
10147 wxPyEndAllowThreads(__tstate);
10148 if (PyErr_Occurred()) SWIG_fail;
10149 }
10150 Py_INCREF(Py_None); resultobj = Py_None;
10151 return resultobj;
10152 fail:
10153 return NULL;
10154 }
10155
10156
10157 static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
10158 PyObject *resultobj;
10159 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
10160 wxString *arg2 = 0 ;
10161 bool temp2 = false ;
10162 PyObject * obj0 = 0 ;
10163 PyObject * obj1 = 0 ;
10164 char *kwnames[] = {
10165 (char *) "self",(char *) "mimetype", NULL
10166 };
10167
10168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail;
10169 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0);
10170 if (SWIG_arg_fail(1)) SWIG_fail;
10171 {
10172 arg2 = wxString_in_helper(obj1);
10173 if (arg2 == NULL) SWIG_fail;
10174 temp2 = true;
10175 }
10176 {
10177 PyThreadState* __tstate = wxPyBeginAllowThreads();
10178 (arg1)->SetMimeType((wxString const &)*arg2);
10179
10180 wxPyEndAllowThreads(__tstate);
10181 if (PyErr_Occurred()) SWIG_fail;
10182 }
10183 Py_INCREF(Py_None); resultobj = Py_None;
10184 {
10185 if (temp2)
10186 delete arg2;
10187 }
10188 return resultobj;
10189 fail:
10190 {
10191 if (temp2)
10192 delete arg2;
10193 }
10194 return NULL;
10195 }
10196
10197
10198 static PyObject * ImageHandler_swigregister(PyObject *, PyObject *args) {
10199 PyObject *obj;
10200 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10201 SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj);
10202 Py_INCREF(obj);
10203 return Py_BuildValue((char *)"");
10204 }
10205 static PyObject *_wrap_new_ImageHistogram(PyObject *, PyObject *args, PyObject *kwargs) {
10206 PyObject *resultobj;
10207 wxImageHistogram *result;
10208 char *kwnames[] = {
10209 NULL
10210 };
10211
10212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail;
10213 {
10214 PyThreadState* __tstate = wxPyBeginAllowThreads();
10215 result = (wxImageHistogram *)new wxImageHistogram();
10216
10217 wxPyEndAllowThreads(__tstate);
10218 if (PyErr_Occurred()) SWIG_fail;
10219 }
10220 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1);
10221 return resultobj;
10222 fail:
10223 return NULL;
10224 }
10225
10226
10227 static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *, PyObject *args, PyObject *kwargs) {
10228 PyObject *resultobj;
10229 unsigned char arg1 ;
10230 unsigned char arg2 ;
10231 unsigned char arg3 ;
10232 unsigned long result;
10233 PyObject * obj0 = 0 ;
10234 PyObject * obj1 = 0 ;
10235 PyObject * obj2 = 0 ;
10236 char *kwnames[] = {
10237 (char *) "r",(char *) "g",(char *) "b", NULL
10238 };
10239
10240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail;
10241 {
10242 arg1 = (unsigned char)(SWIG_As_unsigned_SS_char(obj0));
10243 if (SWIG_arg_fail(1)) SWIG_fail;
10244 }
10245 {
10246 arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1));
10247 if (SWIG_arg_fail(2)) SWIG_fail;
10248 }
10249 {
10250 arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2));
10251 if (SWIG_arg_fail(3)) SWIG_fail;
10252 }
10253 {
10254 PyThreadState* __tstate = wxPyBeginAllowThreads();
10255 result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3);
10256
10257 wxPyEndAllowThreads(__tstate);
10258 if (PyErr_Occurred()) SWIG_fail;
10259 }
10260 {
10261 resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
10262 }
10263 return resultobj;
10264 fail:
10265 return NULL;
10266 }
10267
10268
10269 static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) {
10270 PyObject *resultobj;
10271 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
10272 unsigned char *arg2 = (unsigned char *) 0 ;
10273 unsigned char *arg3 = (unsigned char *) 0 ;
10274 unsigned char *arg4 = (unsigned char *) 0 ;
10275 unsigned char arg5 = (unsigned char) 1 ;
10276 unsigned char arg6 = (unsigned char) 0 ;
10277 unsigned char arg7 = (unsigned char) 0 ;
10278 bool result;
10279 unsigned char temp2 ;
10280 int res2 = 0 ;
10281 unsigned char temp3 ;
10282 int res3 = 0 ;
10283 unsigned char temp4 ;
10284 int res4 = 0 ;
10285 PyObject * obj0 = 0 ;
10286 PyObject * obj1 = 0 ;
10287 PyObject * obj2 = 0 ;
10288 PyObject * obj3 = 0 ;
10289 char *kwnames[] = {
10290 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
10291 };
10292
10293 arg2 = &temp2; res2 = SWIG_NEWOBJ;
10294 arg3 = &temp3; res3 = SWIG_NEWOBJ;
10295 arg4 = &temp4; res4 = SWIG_NEWOBJ;
10296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10297 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0);
10298 if (SWIG_arg_fail(1)) SWIG_fail;
10299 if (obj1) {
10300 {
10301 arg5 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1));
10302 if (SWIG_arg_fail(5)) SWIG_fail;
10303 }
10304 }
10305 if (obj2) {
10306 {
10307 arg6 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2));
10308 if (SWIG_arg_fail(6)) SWIG_fail;
10309 }
10310 }
10311 if (obj3) {
10312 {
10313 arg7 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3));
10314 if (SWIG_arg_fail(7)) SWIG_fail;
10315 }
10316 }
10317 {
10318 PyThreadState* __tstate = wxPyBeginAllowThreads();
10319 result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
10320
10321 wxPyEndAllowThreads(__tstate);
10322 if (PyErr_Occurred()) SWIG_fail;
10323 }
10324 {
10325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10326 }
10327 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
10328 SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0)));
10329 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
10330 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0)));
10331 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
10332 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0)));
10333 return resultobj;
10334 fail:
10335 return NULL;
10336 }
10337
10338
10339 static PyObject *_wrap_ImageHistogram_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
10340 PyObject *resultobj;
10341 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
10342 unsigned long arg2 ;
10343 unsigned long result;
10344 PyObject * obj0 = 0 ;
10345 PyObject * obj1 = 0 ;
10346 char *kwnames[] = {
10347 (char *) "self",(char *) "key", NULL
10348 };
10349
10350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHistogram_GetCount",kwnames,&obj0,&obj1)) goto fail;
10351 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0);
10352 if (SWIG_arg_fail(1)) SWIG_fail;
10353 {
10354 arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
10355 if (SWIG_arg_fail(2)) SWIG_fail;
10356 }
10357 {
10358 PyThreadState* __tstate = wxPyBeginAllowThreads();
10359 result = (unsigned long)wxImageHistogram_GetCount(arg1,arg2);
10360
10361 wxPyEndAllowThreads(__tstate);
10362 if (PyErr_Occurred()) SWIG_fail;
10363 }
10364 {
10365 resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
10366 }
10367 return resultobj;
10368 fail:
10369 return NULL;
10370 }
10371
10372
10373 static PyObject *_wrap_ImageHistogram_GetCountRGB(PyObject *, PyObject *args, PyObject *kwargs) {
10374 PyObject *resultobj;
10375 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
10376 unsigned char arg2 ;
10377 unsigned char arg3 ;
10378 unsigned char arg4 ;
10379 unsigned long result;
10380 PyObject * obj0 = 0 ;
10381 PyObject * obj1 = 0 ;
10382 PyObject * obj2 = 0 ;
10383 PyObject * obj3 = 0 ;
10384 char *kwnames[] = {
10385 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
10386 };
10387
10388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ImageHistogram_GetCountRGB",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10389 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0);
10390 if (SWIG_arg_fail(1)) SWIG_fail;
10391 {
10392 arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1));
10393 if (SWIG_arg_fail(2)) SWIG_fail;
10394 }
10395 {
10396 arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2));
10397 if (SWIG_arg_fail(3)) SWIG_fail;
10398 }
10399 {
10400 arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3));
10401 if (SWIG_arg_fail(4)) SWIG_fail;
10402 }
10403 {
10404 PyThreadState* __tstate = wxPyBeginAllowThreads();
10405 result = (unsigned long)wxImageHistogram_GetCountRGB(arg1,arg2,arg3,arg4);
10406
10407 wxPyEndAllowThreads(__tstate);
10408 if (PyErr_Occurred()) SWIG_fail;
10409 }
10410 {
10411 resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
10412 }
10413 return resultobj;
10414 fail:
10415 return NULL;
10416 }
10417
10418
10419 static PyObject *_wrap_ImageHistogram_GetCountColour(PyObject *, PyObject *args, PyObject *kwargs) {
10420 PyObject *resultobj;
10421 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
10422 wxColour *arg2 = 0 ;
10423 unsigned long result;
10424 wxColour temp2 ;
10425 PyObject * obj0 = 0 ;
10426 PyObject * obj1 = 0 ;
10427 char *kwnames[] = {
10428 (char *) "self",(char *) "colour", NULL
10429 };
10430
10431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHistogram_GetCountColour",kwnames,&obj0,&obj1)) goto fail;
10432 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0);
10433 if (SWIG_arg_fail(1)) SWIG_fail;
10434 {
10435 arg2 = &temp2;
10436 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10437 }
10438 {
10439 PyThreadState* __tstate = wxPyBeginAllowThreads();
10440 result = (unsigned long)wxImageHistogram_GetCountColour(arg1,(wxColour const &)*arg2);
10441
10442 wxPyEndAllowThreads(__tstate);
10443 if (PyErr_Occurred()) SWIG_fail;
10444 }
10445 {
10446 resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
10447 }
10448 return resultobj;
10449 fail:
10450 return NULL;
10451 }
10452
10453
10454 static PyObject * ImageHistogram_swigregister(PyObject *, PyObject *args) {
10455 PyObject *obj;
10456 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10457 SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj);
10458 Py_INCREF(obj);
10459 return Py_BuildValue((char *)"");
10460 }
10461 static PyObject *_wrap_new_Image(PyObject *, PyObject *args, PyObject *kwargs) {
10462 PyObject *resultobj;
10463 wxString *arg1 = 0 ;
10464 long arg2 = (long) wxBITMAP_TYPE_ANY ;
10465 int arg3 = (int) -1 ;
10466 wxImage *result;
10467 bool temp1 = false ;
10468 PyObject * obj0 = 0 ;
10469 PyObject * obj1 = 0 ;
10470 PyObject * obj2 = 0 ;
10471 char *kwnames[] = {
10472 (char *) "name",(char *) "type",(char *) "index", NULL
10473 };
10474
10475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail;
10476 {
10477 arg1 = wxString_in_helper(obj0);
10478 if (arg1 == NULL) SWIG_fail;
10479 temp1 = true;
10480 }
10481 if (obj1) {
10482 {
10483 arg2 = (long)(SWIG_As_long(obj1));
10484 if (SWIG_arg_fail(2)) SWIG_fail;
10485 }
10486 }
10487 if (obj2) {
10488 {
10489 arg3 = (int)(SWIG_As_int(obj2));
10490 if (SWIG_arg_fail(3)) SWIG_fail;
10491 }
10492 }
10493 {
10494 PyThreadState* __tstate = wxPyBeginAllowThreads();
10495 result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3);
10496
10497 wxPyEndAllowThreads(__tstate);
10498 if (PyErr_Occurred()) SWIG_fail;
10499 }
10500 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
10501 {
10502 if (temp1)
10503 delete arg1;
10504 }
10505 return resultobj;
10506 fail:
10507 {
10508 if (temp1)
10509 delete arg1;
10510 }
10511 return NULL;
10512 }
10513
10514
10515 static PyObject *_wrap_delete_Image(PyObject *, PyObject *args, PyObject *kwargs) {
10516 PyObject *resultobj;
10517 wxImage *arg1 = (wxImage *) 0 ;
10518 PyObject * obj0 = 0 ;
10519 char *kwnames[] = {
10520 (char *) "self", NULL
10521 };
10522
10523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail;
10524 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
10525 if (SWIG_arg_fail(1)) SWIG_fail;
10526 {
10527 PyThreadState* __tstate = wxPyBeginAllowThreads();
10528 delete arg1;
10529
10530 wxPyEndAllowThreads(__tstate);
10531 if (PyErr_Occurred()) SWIG_fail;
10532 }
10533 Py_INCREF(Py_None); resultobj = Py_None;
10534 return resultobj;
10535 fail:
10536 return NULL;
10537 }
10538
10539
10540 static PyObject *_wrap_new_ImageFromMime(PyObject *, PyObject *args, PyObject *kwargs) {
10541 PyObject *resultobj;
10542 wxString *arg1 = 0 ;
10543 wxString *arg2 = 0 ;
10544 int arg3 = (int) -1 ;
10545 wxImage *result;
10546 bool temp1 = false ;
10547 bool temp2 = false ;
10548 PyObject * obj0 = 0 ;
10549 PyObject * obj1 = 0 ;
10550 PyObject * obj2 = 0 ;
10551 char *kwnames[] = {
10552 (char *) "name",(char *) "mimetype",(char *) "index", NULL
10553 };
10554
10555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
10556 {
10557 arg1 = wxString_in_helper(obj0);
10558 if (arg1 == NULL) SWIG_fail;
10559 temp1 = true;
10560 }
10561 {
10562 arg2 = wxString_in_helper(obj1);
10563 if (arg2 == NULL) SWIG_fail;
10564 temp2 = true;
10565 }
10566 if (obj2) {
10567 {
10568 arg3 = (int)(SWIG_As_int(obj2));
10569 if (SWIG_arg_fail(3)) SWIG_fail;
10570 }
10571 }
10572 {
10573 PyThreadState* __tstate = wxPyBeginAllowThreads();
10574 result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10575
10576 wxPyEndAllowThreads(__tstate);
10577 if (PyErr_Occurred()) SWIG_fail;
10578 }
10579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
10580 {
10581 if (temp1)
10582 delete arg1;
10583 }
10584 {
10585 if (temp2)
10586 delete arg2;
10587 }
10588 return resultobj;
10589 fail:
10590 {
10591 if (temp1)
10592 delete arg1;
10593 }
10594 {
10595 if (temp2)
10596 delete arg2;
10597 }
10598 return NULL;
10599 }
10600
10601
10602 static PyObject *_wrap_new_ImageFromStream(PyObject *, PyObject *args, PyObject *kwargs) {
10603 PyObject *resultobj;
10604 wxInputStream *arg1 = 0 ;
10605 long arg2 = (long) wxBITMAP_TYPE_ANY ;
10606 int arg3 = (int) -1 ;
10607 wxImage *result;
10608 wxPyInputStream *temp1 ;
10609 bool created1 ;
10610 PyObject * obj0 = 0 ;
10611 PyObject * obj1 = 0 ;
10612 PyObject * obj2 = 0 ;
10613 char *kwnames[] = {
10614 (char *) "stream",(char *) "type",(char *) "index", NULL
10615 };
10616
10617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail;
10618 {
10619 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
10620 arg1 = temp1->m_wxis;
10621 created1 = false;
10622 } else {
10623 PyErr_Clear(); // clear the failure of the wxPyConvert above
10624 arg1 = wxPyCBInputStream_create(obj0, false);
10625 if (arg1 == NULL) {
10626 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
10627 SWIG_fail;
10628 }
10629 created1 = true;
10630 }
10631 }
10632 if (obj1) {
10633 {
10634 arg2 = (long)(SWIG_As_long(obj1));
10635 if (SWIG_arg_fail(2)) SWIG_fail;
10636 }
10637 }
10638 if (obj2) {
10639 {
10640 arg3 = (int)(SWIG_As_int(obj2));
10641 if (SWIG_arg_fail(3)) SWIG_fail;
10642 }
10643 }
10644 {
10645 PyThreadState* __tstate = wxPyBeginAllowThreads();
10646 result = (wxImage *)new wxImage(*arg1,arg2,arg3);
10647
10648 wxPyEndAllowThreads(__tstate);
10649 if (PyErr_Occurred()) SWIG_fail;
10650 }
10651 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
10652 {
10653 if (created1) delete arg1;
10654 }
10655 return resultobj;
10656 fail:
10657 {
10658 if (created1) delete arg1;
10659 }
10660 return NULL;
10661 }
10662
10663
10664 static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObject *kwargs) {
10665 PyObject *resultobj;
10666 wxInputStream *arg1 = 0 ;
10667 wxString *arg2 = 0 ;
10668 int arg3 = (int) -1 ;
10669 wxImage *result;
10670 wxPyInputStream *temp1 ;
10671 bool created1 ;
10672 bool temp2 = false ;
10673 PyObject * obj0 = 0 ;
10674 PyObject * obj1 = 0 ;
10675 PyObject * obj2 = 0 ;
10676 char *kwnames[] = {
10677 (char *) "stream",(char *) "mimetype",(char *) "index", NULL
10678 };
10679
10680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
10681 {
10682 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
10683 arg1 = temp1->m_wxis;
10684 created1 = false;
10685 } else {
10686 PyErr_Clear(); // clear the failure of the wxPyConvert above
10687 arg1 = wxPyCBInputStream_create(obj0, false);
10688 if (arg1 == NULL) {
10689 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
10690 SWIG_fail;
10691 }
10692 created1 = true;
10693 }
10694 }
10695 {
10696 arg2 = wxString_in_helper(obj1);
10697 if (arg2 == NULL) SWIG_fail;
10698 temp2 = true;
10699 }
10700 if (obj2) {
10701 {
10702 arg3 = (int)(SWIG_As_int(obj2));
10703 if (SWIG_arg_fail(3)) SWIG_fail;
10704 }
10705 }
10706 {
10707 PyThreadState* __tstate = wxPyBeginAllowThreads();
10708 result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3);
10709
10710 wxPyEndAllowThreads(__tstate);
10711 if (PyErr_Occurred()) SWIG_fail;
10712 }
10713 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
10714 {
10715 if (created1) delete arg1;
10716 }
10717 {
10718 if (temp2)
10719 delete arg2;
10720 }
10721 return resultobj;
10722 fail:
10723 {
10724 if (created1) delete arg1;
10725 }
10726 {
10727 if (temp2)
10728 delete arg2;
10729 }
10730 return NULL;
10731 }
10732
10733
10734 static PyObject *_wrap_new_EmptyImage(PyObject *, PyObject *args, PyObject *kwargs) {
10735 PyObject *resultobj;
10736 int arg1 = (int) 0 ;
10737 int arg2 = (int) 0 ;
10738 bool arg3 = (bool) true ;
10739 wxImage *result;
10740 PyObject * obj0 = 0 ;
10741 PyObject * obj1 = 0 ;
10742 PyObject * obj2 = 0 ;
10743 char *kwnames[] = {
10744 (char *) "width",(char *) "height",(char *) "clear", NULL
10745 };
10746
10747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
10748 if (obj0) {
10749 {
10750 arg1 = (int)(SWIG_As_int(obj0));
10751 if (SWIG_arg_fail(1)) SWIG_fail;
10752 }
10753 }
10754 if (obj1) {
10755 {
10756 arg2 = (int)(SWIG_As_int(obj1));
10757 if (SWIG_arg_fail(2)) SWIG_fail;
10758 }
10759 }
10760 if (obj2) {
10761 {
10762 arg3 = (bool)(SWIG_As_bool(obj2));
10763 if (SWIG_arg_fail(3)) SWIG_fail;
10764 }
10765 }
10766 {
10767 PyThreadState* __tstate = wxPyBeginAllowThreads();
10768 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
10769
10770 wxPyEndAllowThreads(__tstate);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 }
10773 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
10774 return resultobj;
10775 fail:
10776 return NULL;
10777 }
10778
10779
10780 static PyObject *_wrap_new_ImageFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
10781 PyObject *resultobj;
10782 wxBitmap *arg1 = 0 ;
10783 wxImage *result;
10784 PyObject * obj0 = 0 ;
10785 char *kwnames[] = {
10786 (char *) "bitmap", NULL
10787 };
10788
10789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail;
10790 {
10791 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
10792 if (SWIG_arg_fail(1)) SWIG_fail;
10793 if (arg1 == NULL) {
10794 SWIG_null_ref("wxBitmap");
10795 }
10796 if (SWIG_arg_fail(1)) SWIG_fail;
10797 }
10798 {
10799 if (!wxPyCheckForApp()) SWIG_fail;
10800 PyThreadState* __tstate = wxPyBeginAllowThreads();
10801 result = (wxImage *)new_wxImage((wxBitmap const &)*arg1);
10802
10803 wxPyEndAllowThreads(__tstate);
10804 if (PyErr_Occurred()) SWIG_fail;
10805 }
10806 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
10807 return resultobj;
10808 fail:
10809 return NULL;
10810 }
10811
10812
10813 static PyObject *_wrap_new_ImageFromData(PyObject *, PyObject *args, PyObject *kwargs) {
10814 PyObject *resultobj;
10815 int arg1 ;
10816 int arg2 ;
10817 buffer arg3 ;
10818 int arg4 ;
10819 wxImage *result;
10820 PyObject * obj0 = 0 ;
10821 PyObject * obj1 = 0 ;
10822 PyObject * obj2 = 0 ;
10823 char *kwnames[] = {
10824 (char *) "width",(char *) "height",(char *) "data", NULL
10825 };
10826
10827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail;
10828 {
10829 arg1 = (int)(SWIG_As_int(obj0));
10830 if (SWIG_arg_fail(1)) SWIG_fail;
10831 }
10832 {
10833 arg2 = (int)(SWIG_As_int(obj1));
10834 if (SWIG_arg_fail(2)) SWIG_fail;
10835 }
10836 {
10837 if (!PyArg_Parse(obj2, "t#", &arg3, &arg4)) SWIG_fail;
10838 }
10839 {
10840 PyThreadState* __tstate = wxPyBeginAllowThreads();
10841 result = (wxImage *)new_wxImage(arg1,arg2,arg3,arg4);
10842
10843 wxPyEndAllowThreads(__tstate);
10844 if (PyErr_Occurred()) SWIG_fail;
10845 }
10846 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
10847 return resultobj;
10848 fail:
10849 return NULL;
10850 }
10851
10852
10853 static PyObject *_wrap_new_ImageFromDataWithAlpha(PyObject *, PyObject *args, PyObject *kwargs) {
10854 PyObject *resultobj;
10855 int arg1 ;
10856 int arg2 ;
10857 buffer arg3 ;
10858 int arg4 ;
10859 buffer arg5 ;
10860 int arg6 ;
10861 wxImage *result;
10862 PyObject * obj0 = 0 ;
10863 PyObject * obj1 = 0 ;
10864 PyObject * obj2 = 0 ;
10865 PyObject * obj3 = 0 ;
10866 char *kwnames[] = {
10867 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
10868 };
10869
10870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_ImageFromDataWithAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10871 {
10872 arg1 = (int)(SWIG_As_int(obj0));
10873 if (SWIG_arg_fail(1)) SWIG_fail;
10874 }
10875 {
10876 arg2 = (int)(SWIG_As_int(obj1));
10877 if (SWIG_arg_fail(2)) SWIG_fail;
10878 }
10879 {
10880 if (!PyArg_Parse(obj2, "t#", &arg3, &arg4)) SWIG_fail;
10881 }
10882 {
10883 if (!PyArg_Parse(obj3, "t#", &arg5, &arg6)) SWIG_fail;
10884 }
10885 {
10886 PyThreadState* __tstate = wxPyBeginAllowThreads();
10887 result = (wxImage *)new_wxImage(arg1,arg2,arg3,arg4,arg5,arg6);
10888
10889 wxPyEndAllowThreads(__tstate);
10890 if (PyErr_Occurred()) SWIG_fail;
10891 }
10892 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
10893 return resultobj;
10894 fail:
10895 return NULL;
10896 }
10897
10898
10899 static PyObject *_wrap_Image_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10900 PyObject *resultobj;
10901 wxImage *arg1 = (wxImage *) 0 ;
10902 int arg2 ;
10903 int arg3 ;
10904 PyObject * obj0 = 0 ;
10905 PyObject * obj1 = 0 ;
10906 PyObject * obj2 = 0 ;
10907 char *kwnames[] = {
10908 (char *) "self",(char *) "width",(char *) "height", NULL
10909 };
10910
10911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
10912 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
10913 if (SWIG_arg_fail(1)) SWIG_fail;
10914 {
10915 arg2 = (int)(SWIG_As_int(obj1));
10916 if (SWIG_arg_fail(2)) SWIG_fail;
10917 }
10918 {
10919 arg3 = (int)(SWIG_As_int(obj2));
10920 if (SWIG_arg_fail(3)) SWIG_fail;
10921 }
10922 {
10923 PyThreadState* __tstate = wxPyBeginAllowThreads();
10924 (arg1)->Create(arg2,arg3);
10925
10926 wxPyEndAllowThreads(__tstate);
10927 if (PyErr_Occurred()) SWIG_fail;
10928 }
10929 Py_INCREF(Py_None); resultobj = Py_None;
10930 return resultobj;
10931 fail:
10932 return NULL;
10933 }
10934
10935
10936 static PyObject *_wrap_Image_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
10937 PyObject *resultobj;
10938 wxImage *arg1 = (wxImage *) 0 ;
10939 PyObject * obj0 = 0 ;
10940 char *kwnames[] = {
10941 (char *) "self", NULL
10942 };
10943
10944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail;
10945 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
10946 if (SWIG_arg_fail(1)) SWIG_fail;
10947 {
10948 PyThreadState* __tstate = wxPyBeginAllowThreads();
10949 (arg1)->Destroy();
10950
10951 wxPyEndAllowThreads(__tstate);
10952 if (PyErr_Occurred()) SWIG_fail;
10953 }
10954 Py_INCREF(Py_None); resultobj = Py_None;
10955 return resultobj;
10956 fail:
10957 return NULL;
10958 }
10959
10960
10961 static PyObject *_wrap_Image_Scale(PyObject *, PyObject *args, PyObject *kwargs) {
10962 PyObject *resultobj;
10963 wxImage *arg1 = (wxImage *) 0 ;
10964 int arg2 ;
10965 int arg3 ;
10966 SwigValueWrapper<wxImage > result;
10967 PyObject * obj0 = 0 ;
10968 PyObject * obj1 = 0 ;
10969 PyObject * obj2 = 0 ;
10970 char *kwnames[] = {
10971 (char *) "self",(char *) "width",(char *) "height", NULL
10972 };
10973
10974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail;
10975 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
10976 if (SWIG_arg_fail(1)) SWIG_fail;
10977 {
10978 arg2 = (int)(SWIG_As_int(obj1));
10979 if (SWIG_arg_fail(2)) SWIG_fail;
10980 }
10981 {
10982 arg3 = (int)(SWIG_As_int(obj2));
10983 if (SWIG_arg_fail(3)) SWIG_fail;
10984 }
10985 {
10986 PyThreadState* __tstate = wxPyBeginAllowThreads();
10987 result = (arg1)->Scale(arg2,arg3);
10988
10989 wxPyEndAllowThreads(__tstate);
10990 if (PyErr_Occurred()) SWIG_fail;
10991 }
10992 {
10993 wxImage * resultptr;
10994 resultptr = new wxImage((wxImage &)(result));
10995 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10996 }
10997 return resultobj;
10998 fail:
10999 return NULL;
11000 }
11001
11002
11003 static PyObject *_wrap_Image_ShrinkBy(PyObject *, PyObject *args, PyObject *kwargs) {
11004 PyObject *resultobj;
11005 wxImage *arg1 = (wxImage *) 0 ;
11006 int arg2 ;
11007 int arg3 ;
11008 SwigValueWrapper<wxImage > result;
11009 PyObject * obj0 = 0 ;
11010 PyObject * obj1 = 0 ;
11011 PyObject * obj2 = 0 ;
11012 char *kwnames[] = {
11013 (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL
11014 };
11015
11016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail;
11017 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11018 if (SWIG_arg_fail(1)) SWIG_fail;
11019 {
11020 arg2 = (int)(SWIG_As_int(obj1));
11021 if (SWIG_arg_fail(2)) SWIG_fail;
11022 }
11023 {
11024 arg3 = (int)(SWIG_As_int(obj2));
11025 if (SWIG_arg_fail(3)) SWIG_fail;
11026 }
11027 {
11028 PyThreadState* __tstate = wxPyBeginAllowThreads();
11029 result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3);
11030
11031 wxPyEndAllowThreads(__tstate);
11032 if (PyErr_Occurred()) SWIG_fail;
11033 }
11034 {
11035 wxImage * resultptr;
11036 resultptr = new wxImage((wxImage &)(result));
11037 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
11038 }
11039 return resultobj;
11040 fail:
11041 return NULL;
11042 }
11043
11044
11045 static PyObject *_wrap_Image_Rescale(PyObject *, PyObject *args, PyObject *kwargs) {
11046 PyObject *resultobj;
11047 wxImage *arg1 = (wxImage *) 0 ;
11048 int arg2 ;
11049 int arg3 ;
11050 wxImage *result;
11051 PyObject * obj0 = 0 ;
11052 PyObject * obj1 = 0 ;
11053 PyObject * obj2 = 0 ;
11054 char *kwnames[] = {
11055 (char *) "self",(char *) "width",(char *) "height", NULL
11056 };
11057
11058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail;
11059 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11060 if (SWIG_arg_fail(1)) SWIG_fail;
11061 {
11062 arg2 = (int)(SWIG_As_int(obj1));
11063 if (SWIG_arg_fail(2)) SWIG_fail;
11064 }
11065 {
11066 arg3 = (int)(SWIG_As_int(obj2));
11067 if (SWIG_arg_fail(3)) SWIG_fail;
11068 }
11069 {
11070 PyThreadState* __tstate = wxPyBeginAllowThreads();
11071 {
11072 wxImage &_result_ref = (arg1)->Rescale(arg2,arg3);
11073 result = (wxImage *) &_result_ref;
11074 }
11075
11076 wxPyEndAllowThreads(__tstate);
11077 if (PyErr_Occurred()) SWIG_fail;
11078 }
11079 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0);
11080 return resultobj;
11081 fail:
11082 return NULL;
11083 }
11084
11085
11086 static PyObject *_wrap_Image_Resize(PyObject *, PyObject *args, PyObject *kwargs) {
11087 PyObject *resultobj;
11088 wxImage *arg1 = (wxImage *) 0 ;
11089 wxSize *arg2 = 0 ;
11090 wxPoint *arg3 = 0 ;
11091 int arg4 = (int) -1 ;
11092 int arg5 = (int) -1 ;
11093 int arg6 = (int) -1 ;
11094 wxImage *result;
11095 wxSize temp2 ;
11096 wxPoint temp3 ;
11097 PyObject * obj0 = 0 ;
11098 PyObject * obj1 = 0 ;
11099 PyObject * obj2 = 0 ;
11100 PyObject * obj3 = 0 ;
11101 PyObject * obj4 = 0 ;
11102 PyObject * obj5 = 0 ;
11103 char *kwnames[] = {
11104 (char *) "self",(char *) "size",(char *) "pos",(char *) "r",(char *) "g",(char *) "b", NULL
11105 };
11106
11107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:Image_Resize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11108 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11109 if (SWIG_arg_fail(1)) SWIG_fail;
11110 {
11111 arg2 = &temp2;
11112 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
11113 }
11114 {
11115 arg3 = &temp3;
11116 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11117 }
11118 if (obj3) {
11119 {
11120 arg4 = (int)(SWIG_As_int(obj3));
11121 if (SWIG_arg_fail(4)) SWIG_fail;
11122 }
11123 }
11124 if (obj4) {
11125 {
11126 arg5 = (int)(SWIG_As_int(obj4));
11127 if (SWIG_arg_fail(5)) SWIG_fail;
11128 }
11129 }
11130 if (obj5) {
11131 {
11132 arg6 = (int)(SWIG_As_int(obj5));
11133 if (SWIG_arg_fail(6)) SWIG_fail;
11134 }
11135 }
11136 {
11137 PyThreadState* __tstate = wxPyBeginAllowThreads();
11138 {
11139 wxImage &_result_ref = (arg1)->Resize((wxSize const &)*arg2,(wxPoint const &)*arg3,arg4,arg5,arg6);
11140 result = (wxImage *) &_result_ref;
11141 }
11142
11143 wxPyEndAllowThreads(__tstate);
11144 if (PyErr_Occurred()) SWIG_fail;
11145 }
11146 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0);
11147 return resultobj;
11148 fail:
11149 return NULL;
11150 }
11151
11152
11153 static PyObject *_wrap_Image_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
11154 PyObject *resultobj;
11155 wxImage *arg1 = (wxImage *) 0 ;
11156 int arg2 ;
11157 int arg3 ;
11158 unsigned char arg4 ;
11159 unsigned char arg5 ;
11160 unsigned char arg6 ;
11161 PyObject * obj0 = 0 ;
11162 PyObject * obj1 = 0 ;
11163 PyObject * obj2 = 0 ;
11164 PyObject * obj3 = 0 ;
11165 PyObject * obj4 = 0 ;
11166 PyObject * obj5 = 0 ;
11167 char *kwnames[] = {
11168 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL
11169 };
11170
11171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11172 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11173 if (SWIG_arg_fail(1)) SWIG_fail;
11174 {
11175 arg2 = (int)(SWIG_As_int(obj1));
11176 if (SWIG_arg_fail(2)) SWIG_fail;
11177 }
11178 {
11179 arg3 = (int)(SWIG_As_int(obj2));
11180 if (SWIG_arg_fail(3)) SWIG_fail;
11181 }
11182 {
11183 arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3));
11184 if (SWIG_arg_fail(4)) SWIG_fail;
11185 }
11186 {
11187 arg5 = (unsigned char)(SWIG_As_unsigned_SS_char(obj4));
11188 if (SWIG_arg_fail(5)) SWIG_fail;
11189 }
11190 {
11191 arg6 = (unsigned char)(SWIG_As_unsigned_SS_char(obj5));
11192 if (SWIG_arg_fail(6)) SWIG_fail;
11193 }
11194 {
11195 PyThreadState* __tstate = wxPyBeginAllowThreads();
11196 (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6);
11197
11198 wxPyEndAllowThreads(__tstate);
11199 if (PyErr_Occurred()) SWIG_fail;
11200 }
11201 Py_INCREF(Py_None); resultobj = Py_None;
11202 return resultobj;
11203 fail:
11204 return NULL;
11205 }
11206
11207
11208 static PyObject *_wrap_Image_SetRGBRect(PyObject *, PyObject *args, PyObject *kwargs) {
11209 PyObject *resultobj;
11210 wxImage *arg1 = (wxImage *) 0 ;
11211 wxRect *arg2 = 0 ;
11212 unsigned char arg3 ;
11213 unsigned char arg4 ;
11214 unsigned char arg5 ;
11215 wxRect temp2 ;
11216 PyObject * obj0 = 0 ;
11217 PyObject * obj1 = 0 ;
11218 PyObject * obj2 = 0 ;
11219 PyObject * obj3 = 0 ;
11220 PyObject * obj4 = 0 ;
11221 char *kwnames[] = {
11222 (char *) "self",(char *) "rect",(char *) "r",(char *) "g",(char *) "b", NULL
11223 };
11224
11225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetRGBRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11226 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11227 if (SWIG_arg_fail(1)) SWIG_fail;
11228 {
11229 arg2 = &temp2;
11230 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11231 }
11232 {
11233 arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2));
11234 if (SWIG_arg_fail(3)) SWIG_fail;
11235 }
11236 {
11237 arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3));
11238 if (SWIG_arg_fail(4)) SWIG_fail;
11239 }
11240 {
11241 arg5 = (unsigned char)(SWIG_As_unsigned_SS_char(obj4));
11242 if (SWIG_arg_fail(5)) SWIG_fail;
11243 }
11244 {
11245 PyThreadState* __tstate = wxPyBeginAllowThreads();
11246 (arg1)->SetRGB((wxRect const &)*arg2,arg3,arg4,arg5);
11247
11248 wxPyEndAllowThreads(__tstate);
11249 if (PyErr_Occurred()) SWIG_fail;
11250 }
11251 Py_INCREF(Py_None); resultobj = Py_None;
11252 return resultobj;
11253 fail:
11254 return NULL;
11255 }
11256
11257
11258 static PyObject *_wrap_Image_GetRed(PyObject *, PyObject *args, PyObject *kwargs) {
11259 PyObject *resultobj;
11260 wxImage *arg1 = (wxImage *) 0 ;
11261 int arg2 ;
11262 int arg3 ;
11263 unsigned char result;
11264 PyObject * obj0 = 0 ;
11265 PyObject * obj1 = 0 ;
11266 PyObject * obj2 = 0 ;
11267 char *kwnames[] = {
11268 (char *) "self",(char *) "x",(char *) "y", NULL
11269 };
11270
11271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail;
11272 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11273 if (SWIG_arg_fail(1)) SWIG_fail;
11274 {
11275 arg2 = (int)(SWIG_As_int(obj1));
11276 if (SWIG_arg_fail(2)) SWIG_fail;
11277 }
11278 {
11279 arg3 = (int)(SWIG_As_int(obj2));
11280 if (SWIG_arg_fail(3)) SWIG_fail;
11281 }
11282 {
11283 PyThreadState* __tstate = wxPyBeginAllowThreads();
11284 result = (unsigned char)(arg1)->GetRed(arg2,arg3);
11285
11286 wxPyEndAllowThreads(__tstate);
11287 if (PyErr_Occurred()) SWIG_fail;
11288 }
11289 {
11290 resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
11291 }
11292 return resultobj;
11293 fail:
11294 return NULL;
11295 }
11296
11297
11298 static PyObject *_wrap_Image_GetGreen(PyObject *, PyObject *args, PyObject *kwargs) {
11299 PyObject *resultobj;
11300 wxImage *arg1 = (wxImage *) 0 ;
11301 int arg2 ;
11302 int arg3 ;
11303 unsigned char result;
11304 PyObject * obj0 = 0 ;
11305 PyObject * obj1 = 0 ;
11306 PyObject * obj2 = 0 ;
11307 char *kwnames[] = {
11308 (char *) "self",(char *) "x",(char *) "y", NULL
11309 };
11310
11311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail;
11312 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11313 if (SWIG_arg_fail(1)) SWIG_fail;
11314 {
11315 arg2 = (int)(SWIG_As_int(obj1));
11316 if (SWIG_arg_fail(2)) SWIG_fail;
11317 }
11318 {
11319 arg3 = (int)(SWIG_As_int(obj2));
11320 if (SWIG_arg_fail(3)) SWIG_fail;
11321 }
11322 {
11323 PyThreadState* __tstate = wxPyBeginAllowThreads();
11324 result = (unsigned char)(arg1)->GetGreen(arg2,arg3);
11325
11326 wxPyEndAllowThreads(__tstate);
11327 if (PyErr_Occurred()) SWIG_fail;
11328 }
11329 {
11330 resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
11331 }
11332 return resultobj;
11333 fail:
11334 return NULL;
11335 }
11336
11337
11338 static PyObject *_wrap_Image_GetBlue(PyObject *, PyObject *args, PyObject *kwargs) {
11339 PyObject *resultobj;
11340 wxImage *arg1 = (wxImage *) 0 ;
11341 int arg2 ;
11342 int arg3 ;
11343 unsigned char result;
11344 PyObject * obj0 = 0 ;
11345 PyObject * obj1 = 0 ;
11346 PyObject * obj2 = 0 ;
11347 char *kwnames[] = {
11348 (char *) "self",(char *) "x",(char *) "y", NULL
11349 };
11350
11351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail;
11352 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11353 if (SWIG_arg_fail(1)) SWIG_fail;
11354 {
11355 arg2 = (int)(SWIG_As_int(obj1));
11356 if (SWIG_arg_fail(2)) SWIG_fail;
11357 }
11358 {
11359 arg3 = (int)(SWIG_As_int(obj2));
11360 if (SWIG_arg_fail(3)) SWIG_fail;
11361 }
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 result = (unsigned char)(arg1)->GetBlue(arg2,arg3);
11365
11366 wxPyEndAllowThreads(__tstate);
11367 if (PyErr_Occurred()) SWIG_fail;
11368 }
11369 {
11370 resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
11371 }
11372 return resultobj;
11373 fail:
11374 return NULL;
11375 }
11376
11377
11378 static PyObject *_wrap_Image_SetAlpha(PyObject *, PyObject *args, PyObject *kwargs) {
11379 PyObject *resultobj;
11380 wxImage *arg1 = (wxImage *) 0 ;
11381 int arg2 ;
11382 int arg3 ;
11383 unsigned char arg4 ;
11384 PyObject * obj0 = 0 ;
11385 PyObject * obj1 = 0 ;
11386 PyObject * obj2 = 0 ;
11387 PyObject * obj3 = 0 ;
11388 char *kwnames[] = {
11389 (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL
11390 };
11391
11392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11393 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11394 if (SWIG_arg_fail(1)) SWIG_fail;
11395 {
11396 arg2 = (int)(SWIG_As_int(obj1));
11397 if (SWIG_arg_fail(2)) SWIG_fail;
11398 }
11399 {
11400 arg3 = (int)(SWIG_As_int(obj2));
11401 if (SWIG_arg_fail(3)) SWIG_fail;
11402 }
11403 {
11404 arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3));
11405 if (SWIG_arg_fail(4)) SWIG_fail;
11406 }
11407 {
11408 PyThreadState* __tstate = wxPyBeginAllowThreads();
11409 (arg1)->SetAlpha(arg2,arg3,arg4);
11410
11411 wxPyEndAllowThreads(__tstate);
11412 if (PyErr_Occurred()) SWIG_fail;
11413 }
11414 Py_INCREF(Py_None); resultobj = Py_None;
11415 return resultobj;
11416 fail:
11417 return NULL;
11418 }
11419
11420
11421 static PyObject *_wrap_Image_GetAlpha(PyObject *, PyObject *args, PyObject *kwargs) {
11422 PyObject *resultobj;
11423 wxImage *arg1 = (wxImage *) 0 ;
11424 int arg2 ;
11425 int arg3 ;
11426 unsigned char result;
11427 PyObject * obj0 = 0 ;
11428 PyObject * obj1 = 0 ;
11429 PyObject * obj2 = 0 ;
11430 char *kwnames[] = {
11431 (char *) "self",(char *) "x",(char *) "y", NULL
11432 };
11433
11434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail;
11435 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11436 if (SWIG_arg_fail(1)) SWIG_fail;
11437 {
11438 arg2 = (int)(SWIG_As_int(obj1));
11439 if (SWIG_arg_fail(2)) SWIG_fail;
11440 }
11441 {
11442 arg3 = (int)(SWIG_As_int(obj2));
11443 if (SWIG_arg_fail(3)) SWIG_fail;
11444 }
11445 {
11446 PyThreadState* __tstate = wxPyBeginAllowThreads();
11447 result = (unsigned char)(arg1)->GetAlpha(arg2,arg3);
11448
11449 wxPyEndAllowThreads(__tstate);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 }
11452 {
11453 resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
11454 }
11455 return resultobj;
11456 fail:
11457 return NULL;
11458 }
11459
11460
11461 static PyObject *_wrap_Image_HasAlpha(PyObject *, PyObject *args, PyObject *kwargs) {
11462 PyObject *resultobj;
11463 wxImage *arg1 = (wxImage *) 0 ;
11464 bool result;
11465 PyObject * obj0 = 0 ;
11466 char *kwnames[] = {
11467 (char *) "self", NULL
11468 };
11469
11470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail;
11471 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11472 if (SWIG_arg_fail(1)) SWIG_fail;
11473 {
11474 PyThreadState* __tstate = wxPyBeginAllowThreads();
11475 result = (bool)(arg1)->HasAlpha();
11476
11477 wxPyEndAllowThreads(__tstate);
11478 if (PyErr_Occurred()) SWIG_fail;
11479 }
11480 {
11481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11482 }
11483 return resultobj;
11484 fail:
11485 return NULL;
11486 }
11487
11488
11489 static PyObject *_wrap_Image_InitAlpha(PyObject *, PyObject *args, PyObject *kwargs) {
11490 PyObject *resultobj;
11491 wxImage *arg1 = (wxImage *) 0 ;
11492 PyObject * obj0 = 0 ;
11493 char *kwnames[] = {
11494 (char *) "self", NULL
11495 };
11496
11497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InitAlpha",kwnames,&obj0)) goto fail;
11498 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11499 if (SWIG_arg_fail(1)) SWIG_fail;
11500 {
11501 PyThreadState* __tstate = wxPyBeginAllowThreads();
11502 (arg1)->InitAlpha();
11503
11504 wxPyEndAllowThreads(__tstate);
11505 if (PyErr_Occurred()) SWIG_fail;
11506 }
11507 Py_INCREF(Py_None); resultobj = Py_None;
11508 return resultobj;
11509 fail:
11510 return NULL;
11511 }
11512
11513
11514 static PyObject *_wrap_Image_IsTransparent(PyObject *, PyObject *args, PyObject *kwargs) {
11515 PyObject *resultobj;
11516 wxImage *arg1 = (wxImage *) 0 ;
11517 int arg2 ;
11518 int arg3 ;
11519 unsigned char arg4 = (unsigned char) wxIMAGE_ALPHA_THRESHOLD ;
11520 bool result;
11521 PyObject * obj0 = 0 ;
11522 PyObject * obj1 = 0 ;
11523 PyObject * obj2 = 0 ;
11524 PyObject * obj3 = 0 ;
11525 char *kwnames[] = {
11526 (char *) "self",(char *) "x",(char *) "y",(char *) "threshold", NULL
11527 };
11528
11529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_IsTransparent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11530 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11531 if (SWIG_arg_fail(1)) SWIG_fail;
11532 {
11533 arg2 = (int)(SWIG_As_int(obj1));
11534 if (SWIG_arg_fail(2)) SWIG_fail;
11535 }
11536 {
11537 arg3 = (int)(SWIG_As_int(obj2));
11538 if (SWIG_arg_fail(3)) SWIG_fail;
11539 }
11540 if (obj3) {
11541 {
11542 arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3));
11543 if (SWIG_arg_fail(4)) SWIG_fail;
11544 }
11545 }
11546 {
11547 PyThreadState* __tstate = wxPyBeginAllowThreads();
11548 result = (bool)((wxImage const *)arg1)->IsTransparent(arg2,arg3,arg4);
11549
11550 wxPyEndAllowThreads(__tstate);
11551 if (PyErr_Occurred()) SWIG_fail;
11552 }
11553 {
11554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11555 }
11556 return resultobj;
11557 fail:
11558 return NULL;
11559 }
11560
11561
11562 static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) {
11563 PyObject *resultobj;
11564 wxImage *arg1 = (wxImage *) 0 ;
11565 byte *arg2 = (byte *) 0 ;
11566 byte *arg3 = (byte *) 0 ;
11567 byte *arg4 = (byte *) 0 ;
11568 byte arg5 = (byte) 0 ;
11569 byte arg6 = (byte) 0 ;
11570 byte arg7 = (byte) 0 ;
11571 bool result;
11572 byte temp2 ;
11573 int res2 = 0 ;
11574 byte temp3 ;
11575 int res3 = 0 ;
11576 byte temp4 ;
11577 int res4 = 0 ;
11578 PyObject * obj0 = 0 ;
11579 PyObject * obj1 = 0 ;
11580 PyObject * obj2 = 0 ;
11581 PyObject * obj3 = 0 ;
11582 char *kwnames[] = {
11583 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
11584 };
11585
11586 arg2 = &temp2; res2 = SWIG_NEWOBJ;
11587 arg3 = &temp3; res3 = SWIG_NEWOBJ;
11588 arg4 = &temp4; res4 = SWIG_NEWOBJ;
11589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11590 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11591 if (SWIG_arg_fail(1)) SWIG_fail;
11592 if (obj1) {
11593 {
11594 arg5 = (byte)(SWIG_As_unsigned_SS_char(obj1));
11595 if (SWIG_arg_fail(5)) SWIG_fail;
11596 }
11597 }
11598 if (obj2) {
11599 {
11600 arg6 = (byte)(SWIG_As_unsigned_SS_char(obj2));
11601 if (SWIG_arg_fail(6)) SWIG_fail;
11602 }
11603 }
11604 if (obj3) {
11605 {
11606 arg7 = (byte)(SWIG_As_unsigned_SS_char(obj3));
11607 if (SWIG_arg_fail(7)) SWIG_fail;
11608 }
11609 }
11610 {
11611 PyThreadState* __tstate = wxPyBeginAllowThreads();
11612 result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
11613
11614 wxPyEndAllowThreads(__tstate);
11615 if (PyErr_Occurred()) SWIG_fail;
11616 }
11617 {
11618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11619 }
11620 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
11621 SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0)));
11622 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
11623 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0)));
11624 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
11625 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0)));
11626 return resultobj;
11627 fail:
11628 return NULL;
11629 }
11630
11631
11632 static PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *, PyObject *args, PyObject *kwargs) {
11633 PyObject *resultobj;
11634 wxImage *arg1 = (wxImage *) 0 ;
11635 byte arg2 = (byte) wxIMAGE_ALPHA_THRESHOLD ;
11636 bool result;
11637 PyObject * obj0 = 0 ;
11638 PyObject * obj1 = 0 ;
11639 char *kwnames[] = {
11640 (char *) "self",(char *) "threshold", NULL
11641 };
11642
11643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) goto fail;
11644 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11645 if (SWIG_arg_fail(1)) SWIG_fail;
11646 if (obj1) {
11647 {
11648 arg2 = (byte)(SWIG_As_unsigned_SS_char(obj1));
11649 if (SWIG_arg_fail(2)) SWIG_fail;
11650 }
11651 }
11652 {
11653 PyThreadState* __tstate = wxPyBeginAllowThreads();
11654 result = (bool)(arg1)->ConvertAlphaToMask(arg2);
11655
11656 wxPyEndAllowThreads(__tstate);
11657 if (PyErr_Occurred()) SWIG_fail;
11658 }
11659 {
11660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11661 }
11662 return resultobj;
11663 fail:
11664 return NULL;
11665 }
11666
11667
11668 static PyObject *_wrap_Image_ConvertColourToAlpha(PyObject *, PyObject *args, PyObject *kwargs) {
11669 PyObject *resultobj;
11670 wxImage *arg1 = (wxImage *) 0 ;
11671 unsigned char arg2 ;
11672 unsigned char arg3 ;
11673 unsigned char arg4 ;
11674 bool result;
11675 PyObject * obj0 = 0 ;
11676 PyObject * obj1 = 0 ;
11677 PyObject * obj2 = 0 ;
11678 PyObject * obj3 = 0 ;
11679 char *kwnames[] = {
11680 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
11681 };
11682
11683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertColourToAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11684 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11685 if (SWIG_arg_fail(1)) SWIG_fail;
11686 {
11687 arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1));
11688 if (SWIG_arg_fail(2)) SWIG_fail;
11689 }
11690 {
11691 arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2));
11692 if (SWIG_arg_fail(3)) SWIG_fail;
11693 }
11694 {
11695 arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3));
11696 if (SWIG_arg_fail(4)) SWIG_fail;
11697 }
11698 {
11699 PyThreadState* __tstate = wxPyBeginAllowThreads();
11700 result = (bool)(arg1)->ConvertColourToAlpha(arg2,arg3,arg4);
11701
11702 wxPyEndAllowThreads(__tstate);
11703 if (PyErr_Occurred()) SWIG_fail;
11704 }
11705 {
11706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11707 }
11708 return resultobj;
11709 fail:
11710 return NULL;
11711 }
11712
11713
11714 static PyObject *_wrap_Image_SetMaskFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
11715 PyObject *resultobj;
11716 wxImage *arg1 = (wxImage *) 0 ;
11717 wxImage *arg2 = 0 ;
11718 byte arg3 ;
11719 byte arg4 ;
11720 byte arg5 ;
11721 bool result;
11722 PyObject * obj0 = 0 ;
11723 PyObject * obj1 = 0 ;
11724 PyObject * obj2 = 0 ;
11725 PyObject * obj3 = 0 ;
11726 PyObject * obj4 = 0 ;
11727 char *kwnames[] = {
11728 (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL
11729 };
11730
11731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11732 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11733 if (SWIG_arg_fail(1)) SWIG_fail;
11734 {
11735 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11736 if (SWIG_arg_fail(2)) SWIG_fail;
11737 if (arg2 == NULL) {
11738 SWIG_null_ref("wxImage");
11739 }
11740 if (SWIG_arg_fail(2)) SWIG_fail;
11741 }
11742 {
11743 arg3 = (byte)(SWIG_As_unsigned_SS_char(obj2));
11744 if (SWIG_arg_fail(3)) SWIG_fail;
11745 }
11746 {
11747 arg4 = (byte)(SWIG_As_unsigned_SS_char(obj3));
11748 if (SWIG_arg_fail(4)) SWIG_fail;
11749 }
11750 {
11751 arg5 = (byte)(SWIG_As_unsigned_SS_char(obj4));
11752 if (SWIG_arg_fail(5)) SWIG_fail;
11753 }
11754 {
11755 PyThreadState* __tstate = wxPyBeginAllowThreads();
11756 result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5);
11757
11758 wxPyEndAllowThreads(__tstate);
11759 if (PyErr_Occurred()) SWIG_fail;
11760 }
11761 {
11762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11763 }
11764 return resultobj;
11765 fail:
11766 return NULL;
11767 }
11768
11769
11770 static PyObject *_wrap_Image_CanRead(PyObject *, PyObject *args, PyObject *kwargs) {
11771 PyObject *resultobj;
11772 wxString *arg1 = 0 ;
11773 bool result;
11774 bool temp1 = false ;
11775 PyObject * obj0 = 0 ;
11776 char *kwnames[] = {
11777 (char *) "name", NULL
11778 };
11779
11780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail;
11781 {
11782 arg1 = wxString_in_helper(obj0);
11783 if (arg1 == NULL) SWIG_fail;
11784 temp1 = true;
11785 }
11786 {
11787 PyThreadState* __tstate = wxPyBeginAllowThreads();
11788 result = (bool)wxImage::CanRead((wxString const &)*arg1);
11789
11790 wxPyEndAllowThreads(__tstate);
11791 if (PyErr_Occurred()) SWIG_fail;
11792 }
11793 {
11794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11795 }
11796 {
11797 if (temp1)
11798 delete arg1;
11799 }
11800 return resultobj;
11801 fail:
11802 {
11803 if (temp1)
11804 delete arg1;
11805 }
11806 return NULL;
11807 }
11808
11809
11810 static PyObject *_wrap_Image_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
11811 PyObject *resultobj;
11812 wxString *arg1 = 0 ;
11813 long arg2 = (long) wxBITMAP_TYPE_ANY ;
11814 int result;
11815 bool temp1 = false ;
11816 PyObject * obj0 = 0 ;
11817 PyObject * obj1 = 0 ;
11818 char *kwnames[] = {
11819 (char *) "name",(char *) "type", NULL
11820 };
11821
11822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail;
11823 {
11824 arg1 = wxString_in_helper(obj0);
11825 if (arg1 == NULL) SWIG_fail;
11826 temp1 = true;
11827 }
11828 if (obj1) {
11829 {
11830 arg2 = (long)(SWIG_As_long(obj1));
11831 if (SWIG_arg_fail(2)) SWIG_fail;
11832 }
11833 }
11834 {
11835 PyThreadState* __tstate = wxPyBeginAllowThreads();
11836 result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2);
11837
11838 wxPyEndAllowThreads(__tstate);
11839 if (PyErr_Occurred()) SWIG_fail;
11840 }
11841 {
11842 resultobj = SWIG_From_int((int)(result));
11843 }
11844 {
11845 if (temp1)
11846 delete arg1;
11847 }
11848 return resultobj;
11849 fail:
11850 {
11851 if (temp1)
11852 delete arg1;
11853 }
11854 return NULL;
11855 }
11856
11857
11858 static PyObject *_wrap_Image_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
11859 PyObject *resultobj;
11860 wxImage *arg1 = (wxImage *) 0 ;
11861 wxString *arg2 = 0 ;
11862 long arg3 = (long) wxBITMAP_TYPE_ANY ;
11863 int arg4 = (int) -1 ;
11864 bool result;
11865 bool temp2 = false ;
11866 PyObject * obj0 = 0 ;
11867 PyObject * obj1 = 0 ;
11868 PyObject * obj2 = 0 ;
11869 PyObject * obj3 = 0 ;
11870 char *kwnames[] = {
11871 (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL
11872 };
11873
11874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11875 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11876 if (SWIG_arg_fail(1)) SWIG_fail;
11877 {
11878 arg2 = wxString_in_helper(obj1);
11879 if (arg2 == NULL) SWIG_fail;
11880 temp2 = true;
11881 }
11882 if (obj2) {
11883 {
11884 arg3 = (long)(SWIG_As_long(obj2));
11885 if (SWIG_arg_fail(3)) SWIG_fail;
11886 }
11887 }
11888 if (obj3) {
11889 {
11890 arg4 = (int)(SWIG_As_int(obj3));
11891 if (SWIG_arg_fail(4)) SWIG_fail;
11892 }
11893 }
11894 {
11895 PyThreadState* __tstate = wxPyBeginAllowThreads();
11896 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4);
11897
11898 wxPyEndAllowThreads(__tstate);
11899 if (PyErr_Occurred()) SWIG_fail;
11900 }
11901 {
11902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11903 }
11904 {
11905 if (temp2)
11906 delete arg2;
11907 }
11908 return resultobj;
11909 fail:
11910 {
11911 if (temp2)
11912 delete arg2;
11913 }
11914 return NULL;
11915 }
11916
11917
11918 static PyObject *_wrap_Image_LoadMimeFile(PyObject *, PyObject *args, PyObject *kwargs) {
11919 PyObject *resultobj;
11920 wxImage *arg1 = (wxImage *) 0 ;
11921 wxString *arg2 = 0 ;
11922 wxString *arg3 = 0 ;
11923 int arg4 = (int) -1 ;
11924 bool result;
11925 bool temp2 = false ;
11926 bool temp3 = false ;
11927 PyObject * obj0 = 0 ;
11928 PyObject * obj1 = 0 ;
11929 PyObject * obj2 = 0 ;
11930 PyObject * obj3 = 0 ;
11931 char *kwnames[] = {
11932 (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL
11933 };
11934
11935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11936 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
11937 if (SWIG_arg_fail(1)) SWIG_fail;
11938 {
11939 arg2 = wxString_in_helper(obj1);
11940 if (arg2 == NULL) SWIG_fail;
11941 temp2 = true;
11942 }
11943 {
11944 arg3 = wxString_in_helper(obj2);
11945 if (arg3 == NULL) SWIG_fail;
11946 temp3 = true;
11947 }
11948 if (obj3) {
11949 {
11950 arg4 = (int)(SWIG_As_int(obj3));
11951 if (SWIG_arg_fail(4)) SWIG_fail;
11952 }
11953 }
11954 {
11955 PyThreadState* __tstate = wxPyBeginAllowThreads();
11956 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4);
11957
11958 wxPyEndAllowThreads(__tstate);
11959 if (PyErr_Occurred()) SWIG_fail;
11960 }
11961 {
11962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11963 }
11964 {
11965 if (temp2)
11966 delete arg2;
11967 }
11968 {
11969 if (temp3)
11970 delete arg3;
11971 }
11972 return resultobj;
11973 fail:
11974 {
11975 if (temp2)
11976 delete arg2;
11977 }
11978 {
11979 if (temp3)
11980 delete arg3;
11981 }
11982 return NULL;
11983 }
11984
11985
11986 static PyObject *_wrap_Image_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
11987 PyObject *resultobj;
11988 wxImage *arg1 = (wxImage *) 0 ;
11989 wxString *arg2 = 0 ;
11990 int arg3 ;
11991 bool result;
11992 bool temp2 = false ;
11993 PyObject * obj0 = 0 ;
11994 PyObject * obj1 = 0 ;
11995 PyObject * obj2 = 0 ;
11996 char *kwnames[] = {
11997 (char *) "self",(char *) "name",(char *) "type", NULL
11998 };
11999
12000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
12001 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12002 if (SWIG_arg_fail(1)) SWIG_fail;
12003 {
12004 arg2 = wxString_in_helper(obj1);
12005 if (arg2 == NULL) SWIG_fail;
12006 temp2 = true;
12007 }
12008 {
12009 arg3 = (int)(SWIG_As_int(obj2));
12010 if (SWIG_arg_fail(3)) SWIG_fail;
12011 }
12012 {
12013 PyThreadState* __tstate = wxPyBeginAllowThreads();
12014 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
12015
12016 wxPyEndAllowThreads(__tstate);
12017 if (PyErr_Occurred()) SWIG_fail;
12018 }
12019 {
12020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12021 }
12022 {
12023 if (temp2)
12024 delete arg2;
12025 }
12026 return resultobj;
12027 fail:
12028 {
12029 if (temp2)
12030 delete arg2;
12031 }
12032 return NULL;
12033 }
12034
12035
12036 static PyObject *_wrap_Image_SaveMimeFile(PyObject *, PyObject *args, PyObject *kwargs) {
12037 PyObject *resultobj;
12038 wxImage *arg1 = (wxImage *) 0 ;
12039 wxString *arg2 = 0 ;
12040 wxString *arg3 = 0 ;
12041 bool result;
12042 bool temp2 = false ;
12043 bool temp3 = false ;
12044 PyObject * obj0 = 0 ;
12045 PyObject * obj1 = 0 ;
12046 PyObject * obj2 = 0 ;
12047 char *kwnames[] = {
12048 (char *) "self",(char *) "name",(char *) "mimetype", NULL
12049 };
12050
12051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
12052 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12053 if (SWIG_arg_fail(1)) SWIG_fail;
12054 {
12055 arg2 = wxString_in_helper(obj1);
12056 if (arg2 == NULL) SWIG_fail;
12057 temp2 = true;
12058 }
12059 {
12060 arg3 = wxString_in_helper(obj2);
12061 if (arg3 == NULL) SWIG_fail;
12062 temp3 = true;
12063 }
12064 {
12065 PyThreadState* __tstate = wxPyBeginAllowThreads();
12066 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3);
12067
12068 wxPyEndAllowThreads(__tstate);
12069 if (PyErr_Occurred()) SWIG_fail;
12070 }
12071 {
12072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12073 }
12074 {
12075 if (temp2)
12076 delete arg2;
12077 }
12078 {
12079 if (temp3)
12080 delete arg3;
12081 }
12082 return resultobj;
12083 fail:
12084 {
12085 if (temp2)
12086 delete arg2;
12087 }
12088 {
12089 if (temp3)
12090 delete arg3;
12091 }
12092 return NULL;
12093 }
12094
12095
12096 static PyObject *_wrap_Image_CanReadStream(PyObject *, PyObject *args, PyObject *kwargs) {
12097 PyObject *resultobj;
12098 wxInputStream *arg1 = 0 ;
12099 bool result;
12100 wxPyInputStream *temp1 ;
12101 bool created1 ;
12102 PyObject * obj0 = 0 ;
12103 char *kwnames[] = {
12104 (char *) "stream", NULL
12105 };
12106
12107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail;
12108 {
12109 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
12110 arg1 = temp1->m_wxis;
12111 created1 = false;
12112 } else {
12113 PyErr_Clear(); // clear the failure of the wxPyConvert above
12114 arg1 = wxPyCBInputStream_create(obj0, false);
12115 if (arg1 == NULL) {
12116 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
12117 SWIG_fail;
12118 }
12119 created1 = true;
12120 }
12121 }
12122 {
12123 PyThreadState* __tstate = wxPyBeginAllowThreads();
12124 result = (bool)wxImage::CanRead(*arg1);
12125
12126 wxPyEndAllowThreads(__tstate);
12127 if (PyErr_Occurred()) SWIG_fail;
12128 }
12129 {
12130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12131 }
12132 {
12133 if (created1) delete arg1;
12134 }
12135 return resultobj;
12136 fail:
12137 {
12138 if (created1) delete arg1;
12139 }
12140 return NULL;
12141 }
12142
12143
12144 static PyObject *_wrap_Image_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) {
12145 PyObject *resultobj;
12146 wxImage *arg1 = (wxImage *) 0 ;
12147 wxInputStream *arg2 = 0 ;
12148 long arg3 = (long) wxBITMAP_TYPE_ANY ;
12149 int arg4 = (int) -1 ;
12150 bool result;
12151 wxPyInputStream *temp2 ;
12152 bool created2 ;
12153 PyObject * obj0 = 0 ;
12154 PyObject * obj1 = 0 ;
12155 PyObject * obj2 = 0 ;
12156 PyObject * obj3 = 0 ;
12157 char *kwnames[] = {
12158 (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL
12159 };
12160
12161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12162 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12163 if (SWIG_arg_fail(1)) SWIG_fail;
12164 {
12165 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
12166 arg2 = temp2->m_wxis;
12167 created2 = false;
12168 } else {
12169 PyErr_Clear(); // clear the failure of the wxPyConvert above
12170 arg2 = wxPyCBInputStream_create(obj1, false);
12171 if (arg2 == NULL) {
12172 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
12173 SWIG_fail;
12174 }
12175 created2 = true;
12176 }
12177 }
12178 if (obj2) {
12179 {
12180 arg3 = (long)(SWIG_As_long(obj2));
12181 if (SWIG_arg_fail(3)) SWIG_fail;
12182 }
12183 }
12184 if (obj3) {
12185 {
12186 arg4 = (int)(SWIG_As_int(obj3));
12187 if (SWIG_arg_fail(4)) SWIG_fail;
12188 }
12189 }
12190 {
12191 PyThreadState* __tstate = wxPyBeginAllowThreads();
12192 result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4);
12193
12194 wxPyEndAllowThreads(__tstate);
12195 if (PyErr_Occurred()) SWIG_fail;
12196 }
12197 {
12198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12199 }
12200 {
12201 if (created2) delete arg2;
12202 }
12203 return resultobj;
12204 fail:
12205 {
12206 if (created2) delete arg2;
12207 }
12208 return NULL;
12209 }
12210
12211
12212 static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject *kwargs) {
12213 PyObject *resultobj;
12214 wxImage *arg1 = (wxImage *) 0 ;
12215 wxInputStream *arg2 = 0 ;
12216 wxString *arg3 = 0 ;
12217 int arg4 = (int) -1 ;
12218 bool result;
12219 wxPyInputStream *temp2 ;
12220 bool created2 ;
12221 bool temp3 = false ;
12222 PyObject * obj0 = 0 ;
12223 PyObject * obj1 = 0 ;
12224 PyObject * obj2 = 0 ;
12225 PyObject * obj3 = 0 ;
12226 char *kwnames[] = {
12227 (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL
12228 };
12229
12230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12231 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12232 if (SWIG_arg_fail(1)) SWIG_fail;
12233 {
12234 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
12235 arg2 = temp2->m_wxis;
12236 created2 = false;
12237 } else {
12238 PyErr_Clear(); // clear the failure of the wxPyConvert above
12239 arg2 = wxPyCBInputStream_create(obj1, false);
12240 if (arg2 == NULL) {
12241 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
12242 SWIG_fail;
12243 }
12244 created2 = true;
12245 }
12246 }
12247 {
12248 arg3 = wxString_in_helper(obj2);
12249 if (arg3 == NULL) SWIG_fail;
12250 temp3 = true;
12251 }
12252 if (obj3) {
12253 {
12254 arg4 = (int)(SWIG_As_int(obj3));
12255 if (SWIG_arg_fail(4)) SWIG_fail;
12256 }
12257 }
12258 {
12259 PyThreadState* __tstate = wxPyBeginAllowThreads();
12260 result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4);
12261
12262 wxPyEndAllowThreads(__tstate);
12263 if (PyErr_Occurred()) SWIG_fail;
12264 }
12265 {
12266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12267 }
12268 {
12269 if (created2) delete arg2;
12270 }
12271 {
12272 if (temp3)
12273 delete arg3;
12274 }
12275 return resultobj;
12276 fail:
12277 {
12278 if (created2) delete arg2;
12279 }
12280 {
12281 if (temp3)
12282 delete arg3;
12283 }
12284 return NULL;
12285 }
12286
12287
12288 static PyObject *_wrap_Image_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
12289 PyObject *resultobj;
12290 wxImage *arg1 = (wxImage *) 0 ;
12291 bool result;
12292 PyObject * obj0 = 0 ;
12293 char *kwnames[] = {
12294 (char *) "self", NULL
12295 };
12296
12297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail;
12298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12299 if (SWIG_arg_fail(1)) SWIG_fail;
12300 {
12301 PyThreadState* __tstate = wxPyBeginAllowThreads();
12302 result = (bool)(arg1)->Ok();
12303
12304 wxPyEndAllowThreads(__tstate);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 }
12307 {
12308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12309 }
12310 return resultobj;
12311 fail:
12312 return NULL;
12313 }
12314
12315
12316 static PyObject *_wrap_Image_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
12317 PyObject *resultobj;
12318 wxImage *arg1 = (wxImage *) 0 ;
12319 int result;
12320 PyObject * obj0 = 0 ;
12321 char *kwnames[] = {
12322 (char *) "self", NULL
12323 };
12324
12325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail;
12326 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12327 if (SWIG_arg_fail(1)) SWIG_fail;
12328 {
12329 PyThreadState* __tstate = wxPyBeginAllowThreads();
12330 result = (int)(arg1)->GetWidth();
12331
12332 wxPyEndAllowThreads(__tstate);
12333 if (PyErr_Occurred()) SWIG_fail;
12334 }
12335 {
12336 resultobj = SWIG_From_int((int)(result));
12337 }
12338 return resultobj;
12339 fail:
12340 return NULL;
12341 }
12342
12343
12344 static PyObject *_wrap_Image_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
12345 PyObject *resultobj;
12346 wxImage *arg1 = (wxImage *) 0 ;
12347 int result;
12348 PyObject * obj0 = 0 ;
12349 char *kwnames[] = {
12350 (char *) "self", NULL
12351 };
12352
12353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail;
12354 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12355 if (SWIG_arg_fail(1)) SWIG_fail;
12356 {
12357 PyThreadState* __tstate = wxPyBeginAllowThreads();
12358 result = (int)(arg1)->GetHeight();
12359
12360 wxPyEndAllowThreads(__tstate);
12361 if (PyErr_Occurred()) SWIG_fail;
12362 }
12363 {
12364 resultobj = SWIG_From_int((int)(result));
12365 }
12366 return resultobj;
12367 fail:
12368 return NULL;
12369 }
12370
12371
12372 static PyObject *_wrap_Image_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
12373 PyObject *resultobj;
12374 wxImage *arg1 = (wxImage *) 0 ;
12375 wxSize result;
12376 PyObject * obj0 = 0 ;
12377 char *kwnames[] = {
12378 (char *) "self", NULL
12379 };
12380
12381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail;
12382 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12383 if (SWIG_arg_fail(1)) SWIG_fail;
12384 {
12385 PyThreadState* __tstate = wxPyBeginAllowThreads();
12386 result = wxImage_GetSize(arg1);
12387
12388 wxPyEndAllowThreads(__tstate);
12389 if (PyErr_Occurred()) SWIG_fail;
12390 }
12391 {
12392 wxSize * resultptr;
12393 resultptr = new wxSize((wxSize &)(result));
12394 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
12395 }
12396 return resultobj;
12397 fail:
12398 return NULL;
12399 }
12400
12401
12402 static PyObject *_wrap_Image_GetSubImage(PyObject *, PyObject *args, PyObject *kwargs) {
12403 PyObject *resultobj;
12404 wxImage *arg1 = (wxImage *) 0 ;
12405 wxRect *arg2 = 0 ;
12406 SwigValueWrapper<wxImage > result;
12407 wxRect temp2 ;
12408 PyObject * obj0 = 0 ;
12409 PyObject * obj1 = 0 ;
12410 char *kwnames[] = {
12411 (char *) "self",(char *) "rect", NULL
12412 };
12413
12414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail;
12415 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12416 if (SWIG_arg_fail(1)) SWIG_fail;
12417 {
12418 arg2 = &temp2;
12419 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12420 }
12421 {
12422 PyThreadState* __tstate = wxPyBeginAllowThreads();
12423 result = (arg1)->GetSubImage((wxRect const &)*arg2);
12424
12425 wxPyEndAllowThreads(__tstate);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 }
12428 {
12429 wxImage * resultptr;
12430 resultptr = new wxImage((wxImage &)(result));
12431 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
12432 }
12433 return resultobj;
12434 fail:
12435 return NULL;
12436 }
12437
12438
12439 static PyObject *_wrap_Image_Size(PyObject *, PyObject *args, PyObject *kwargs) {
12440 PyObject *resultobj;
12441 wxImage *arg1 = (wxImage *) 0 ;
12442 wxSize *arg2 = 0 ;
12443 wxPoint *arg3 = 0 ;
12444 int arg4 = (int) -1 ;
12445 int arg5 = (int) -1 ;
12446 int arg6 = (int) -1 ;
12447 SwigValueWrapper<wxImage > result;
12448 wxSize temp2 ;
12449 wxPoint temp3 ;
12450 PyObject * obj0 = 0 ;
12451 PyObject * obj1 = 0 ;
12452 PyObject * obj2 = 0 ;
12453 PyObject * obj3 = 0 ;
12454 PyObject * obj4 = 0 ;
12455 PyObject * obj5 = 0 ;
12456 char *kwnames[] = {
12457 (char *) "self",(char *) "size",(char *) "pos",(char *) "r",(char *) "g",(char *) "b", NULL
12458 };
12459
12460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:Image_Size",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12461 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12462 if (SWIG_arg_fail(1)) SWIG_fail;
12463 {
12464 arg2 = &temp2;
12465 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12466 }
12467 {
12468 arg3 = &temp3;
12469 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12470 }
12471 if (obj3) {
12472 {
12473 arg4 = (int)(SWIG_As_int(obj3));
12474 if (SWIG_arg_fail(4)) SWIG_fail;
12475 }
12476 }
12477 if (obj4) {
12478 {
12479 arg5 = (int)(SWIG_As_int(obj4));
12480 if (SWIG_arg_fail(5)) SWIG_fail;
12481 }
12482 }
12483 if (obj5) {
12484 {
12485 arg6 = (int)(SWIG_As_int(obj5));
12486 if (SWIG_arg_fail(6)) SWIG_fail;
12487 }
12488 }
12489 {
12490 PyThreadState* __tstate = wxPyBeginAllowThreads();
12491 result = ((wxImage const *)arg1)->Size((wxSize const &)*arg2,(wxPoint const &)*arg3,arg4,arg5,arg6);
12492
12493 wxPyEndAllowThreads(__tstate);
12494 if (PyErr_Occurred()) SWIG_fail;
12495 }
12496 {
12497 wxImage * resultptr;
12498 resultptr = new wxImage((wxImage &)(result));
12499 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
12500 }
12501 return resultobj;
12502 fail:
12503 return NULL;
12504 }
12505
12506
12507 static PyObject *_wrap_Image_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
12508 PyObject *resultobj;
12509 wxImage *arg1 = (wxImage *) 0 ;
12510 SwigValueWrapper<wxImage > result;
12511 PyObject * obj0 = 0 ;
12512 char *kwnames[] = {
12513 (char *) "self", NULL
12514 };
12515
12516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail;
12517 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12518 if (SWIG_arg_fail(1)) SWIG_fail;
12519 {
12520 PyThreadState* __tstate = wxPyBeginAllowThreads();
12521 result = (arg1)->Copy();
12522
12523 wxPyEndAllowThreads(__tstate);
12524 if (PyErr_Occurred()) SWIG_fail;
12525 }
12526 {
12527 wxImage * resultptr;
12528 resultptr = new wxImage((wxImage &)(result));
12529 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
12530 }
12531 return resultobj;
12532 fail:
12533 return NULL;
12534 }
12535
12536
12537 static PyObject *_wrap_Image_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
12538 PyObject *resultobj;
12539 wxImage *arg1 = (wxImage *) 0 ;
12540 wxImage *arg2 = 0 ;
12541 int arg3 ;
12542 int arg4 ;
12543 PyObject * obj0 = 0 ;
12544 PyObject * obj1 = 0 ;
12545 PyObject * obj2 = 0 ;
12546 PyObject * obj3 = 0 ;
12547 char *kwnames[] = {
12548 (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL
12549 };
12550
12551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12552 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12553 if (SWIG_arg_fail(1)) SWIG_fail;
12554 {
12555 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12556 if (SWIG_arg_fail(2)) SWIG_fail;
12557 if (arg2 == NULL) {
12558 SWIG_null_ref("wxImage");
12559 }
12560 if (SWIG_arg_fail(2)) SWIG_fail;
12561 }
12562 {
12563 arg3 = (int)(SWIG_As_int(obj2));
12564 if (SWIG_arg_fail(3)) SWIG_fail;
12565 }
12566 {
12567 arg4 = (int)(SWIG_As_int(obj3));
12568 if (SWIG_arg_fail(4)) SWIG_fail;
12569 }
12570 {
12571 PyThreadState* __tstate = wxPyBeginAllowThreads();
12572 (arg1)->Paste((wxImage const &)*arg2,arg3,arg4);
12573
12574 wxPyEndAllowThreads(__tstate);
12575 if (PyErr_Occurred()) SWIG_fail;
12576 }
12577 Py_INCREF(Py_None); resultobj = Py_None;
12578 return resultobj;
12579 fail:
12580 return NULL;
12581 }
12582
12583
12584 static PyObject *_wrap_Image_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
12585 PyObject *resultobj;
12586 wxImage *arg1 = (wxImage *) 0 ;
12587 PyObject *result;
12588 PyObject * obj0 = 0 ;
12589 char *kwnames[] = {
12590 (char *) "self", NULL
12591 };
12592
12593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail;
12594 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12595 if (SWIG_arg_fail(1)) SWIG_fail;
12596 {
12597 PyThreadState* __tstate = wxPyBeginAllowThreads();
12598 result = (PyObject *)wxImage_GetData(arg1);
12599
12600 wxPyEndAllowThreads(__tstate);
12601 if (PyErr_Occurred()) SWIG_fail;
12602 }
12603 resultobj = result;
12604 return resultobj;
12605 fail:
12606 return NULL;
12607 }
12608
12609
12610 static PyObject *_wrap_Image_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
12611 PyObject *resultobj;
12612 wxImage *arg1 = (wxImage *) 0 ;
12613 buffer arg2 ;
12614 int arg3 ;
12615 PyObject * obj0 = 0 ;
12616 PyObject * obj1 = 0 ;
12617 char *kwnames[] = {
12618 (char *) "self",(char *) "data", NULL
12619 };
12620
12621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail;
12622 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12623 if (SWIG_arg_fail(1)) SWIG_fail;
12624 {
12625 if (!PyArg_Parse(obj1, "t#", &arg2, &arg3)) SWIG_fail;
12626 }
12627 {
12628 PyThreadState* __tstate = wxPyBeginAllowThreads();
12629 wxImage_SetData(arg1,arg2,arg3);
12630
12631 wxPyEndAllowThreads(__tstate);
12632 if (PyErr_Occurred()) SWIG_fail;
12633 }
12634 Py_INCREF(Py_None); resultobj = Py_None;
12635 return resultobj;
12636 fail:
12637 return NULL;
12638 }
12639
12640
12641 static PyObject *_wrap_Image_GetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
12642 PyObject *resultobj;
12643 wxImage *arg1 = (wxImage *) 0 ;
12644 PyObject *result;
12645 PyObject * obj0 = 0 ;
12646 char *kwnames[] = {
12647 (char *) "self", NULL
12648 };
12649
12650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail;
12651 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12652 if (SWIG_arg_fail(1)) SWIG_fail;
12653 {
12654 PyThreadState* __tstate = wxPyBeginAllowThreads();
12655 result = (PyObject *)wxImage_GetDataBuffer(arg1);
12656
12657 wxPyEndAllowThreads(__tstate);
12658 if (PyErr_Occurred()) SWIG_fail;
12659 }
12660 resultobj = result;
12661 return resultobj;
12662 fail:
12663 return NULL;
12664 }
12665
12666
12667 static PyObject *_wrap_Image_SetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
12668 PyObject *resultobj;
12669 wxImage *arg1 = (wxImage *) 0 ;
12670 buffer arg2 ;
12671 int arg3 ;
12672 PyObject * obj0 = 0 ;
12673 PyObject * obj1 = 0 ;
12674 char *kwnames[] = {
12675 (char *) "self",(char *) "data", NULL
12676 };
12677
12678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail;
12679 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12680 if (SWIG_arg_fail(1)) SWIG_fail;
12681 {
12682 if (!PyArg_Parse(obj1, "t#", &arg2, &arg3)) SWIG_fail;
12683 }
12684 {
12685 PyThreadState* __tstate = wxPyBeginAllowThreads();
12686 wxImage_SetDataBuffer(arg1,arg2,arg3);
12687
12688 wxPyEndAllowThreads(__tstate);
12689 if (PyErr_Occurred()) SWIG_fail;
12690 }
12691 Py_INCREF(Py_None); resultobj = Py_None;
12692 return resultobj;
12693 fail:
12694 return NULL;
12695 }
12696
12697
12698 static PyObject *_wrap_Image_GetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) {
12699 PyObject *resultobj;
12700 wxImage *arg1 = (wxImage *) 0 ;
12701 PyObject *result;
12702 PyObject * obj0 = 0 ;
12703 char *kwnames[] = {
12704 (char *) "self", NULL
12705 };
12706
12707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail;
12708 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12709 if (SWIG_arg_fail(1)) SWIG_fail;
12710 {
12711 PyThreadState* __tstate = wxPyBeginAllowThreads();
12712 result = (PyObject *)wxImage_GetAlphaData(arg1);
12713
12714 wxPyEndAllowThreads(__tstate);
12715 if (PyErr_Occurred()) SWIG_fail;
12716 }
12717 resultobj = result;
12718 return resultobj;
12719 fail:
12720 return NULL;
12721 }
12722
12723
12724 static PyObject *_wrap_Image_SetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) {
12725 PyObject *resultobj;
12726 wxImage *arg1 = (wxImage *) 0 ;
12727 buffer arg2 ;
12728 int arg3 ;
12729 PyObject * obj0 = 0 ;
12730 PyObject * obj1 = 0 ;
12731 char *kwnames[] = {
12732 (char *) "self",(char *) "alpha", NULL
12733 };
12734
12735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail;
12736 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12737 if (SWIG_arg_fail(1)) SWIG_fail;
12738 {
12739 if (!PyArg_Parse(obj1, "t#", &arg2, &arg3)) SWIG_fail;
12740 }
12741 {
12742 PyThreadState* __tstate = wxPyBeginAllowThreads();
12743 wxImage_SetAlphaData(arg1,arg2,arg3);
12744
12745 wxPyEndAllowThreads(__tstate);
12746 if (PyErr_Occurred()) SWIG_fail;
12747 }
12748 Py_INCREF(Py_None); resultobj = Py_None;
12749 return resultobj;
12750 fail:
12751 return NULL;
12752 }
12753
12754
12755 static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
12756 PyObject *resultobj;
12757 wxImage *arg1 = (wxImage *) 0 ;
12758 PyObject *result;
12759 PyObject * obj0 = 0 ;
12760 char *kwnames[] = {
12761 (char *) "self", NULL
12762 };
12763
12764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail;
12765 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12766 if (SWIG_arg_fail(1)) SWIG_fail;
12767 {
12768 PyThreadState* __tstate = wxPyBeginAllowThreads();
12769 result = (PyObject *)wxImage_GetAlphaBuffer(arg1);
12770
12771 wxPyEndAllowThreads(__tstate);
12772 if (PyErr_Occurred()) SWIG_fail;
12773 }
12774 resultobj = result;
12775 return resultobj;
12776 fail:
12777 return NULL;
12778 }
12779
12780
12781 static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
12782 PyObject *resultobj;
12783 wxImage *arg1 = (wxImage *) 0 ;
12784 buffer arg2 ;
12785 int arg3 ;
12786 PyObject * obj0 = 0 ;
12787 PyObject * obj1 = 0 ;
12788 char *kwnames[] = {
12789 (char *) "self",(char *) "alpha", NULL
12790 };
12791
12792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail;
12793 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12794 if (SWIG_arg_fail(1)) SWIG_fail;
12795 {
12796 if (!PyArg_Parse(obj1, "t#", &arg2, &arg3)) SWIG_fail;
12797 }
12798 {
12799 PyThreadState* __tstate = wxPyBeginAllowThreads();
12800 wxImage_SetAlphaBuffer(arg1,arg2,arg3);
12801
12802 wxPyEndAllowThreads(__tstate);
12803 if (PyErr_Occurred()) SWIG_fail;
12804 }
12805 Py_INCREF(Py_None); resultobj = Py_None;
12806 return resultobj;
12807 fail:
12808 return NULL;
12809 }
12810
12811
12812 static PyObject *_wrap_Image_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
12813 PyObject *resultobj;
12814 wxImage *arg1 = (wxImage *) 0 ;
12815 unsigned char arg2 ;
12816 unsigned char arg3 ;
12817 unsigned char arg4 ;
12818 PyObject * obj0 = 0 ;
12819 PyObject * obj1 = 0 ;
12820 PyObject * obj2 = 0 ;
12821 PyObject * obj3 = 0 ;
12822 char *kwnames[] = {
12823 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
12824 };
12825
12826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12827 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12828 if (SWIG_arg_fail(1)) SWIG_fail;
12829 {
12830 arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1));
12831 if (SWIG_arg_fail(2)) SWIG_fail;
12832 }
12833 {
12834 arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2));
12835 if (SWIG_arg_fail(3)) SWIG_fail;
12836 }
12837 {
12838 arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3));
12839 if (SWIG_arg_fail(4)) SWIG_fail;
12840 }
12841 {
12842 PyThreadState* __tstate = wxPyBeginAllowThreads();
12843 (arg1)->SetMaskColour(arg2,arg3,arg4);
12844
12845 wxPyEndAllowThreads(__tstate);
12846 if (PyErr_Occurred()) SWIG_fail;
12847 }
12848 Py_INCREF(Py_None); resultobj = Py_None;
12849 return resultobj;
12850 fail:
12851 return NULL;
12852 }
12853
12854
12855 static PyObject *_wrap_Image_GetOrFindMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
12856 PyObject *resultobj;
12857 wxImage *arg1 = (wxImage *) 0 ;
12858 unsigned char *arg2 = (unsigned char *) 0 ;
12859 unsigned char *arg3 = (unsigned char *) 0 ;
12860 unsigned char *arg4 = (unsigned char *) 0 ;
12861 unsigned char temp2 ;
12862 int res2 = 0 ;
12863 unsigned char temp3 ;
12864 int res3 = 0 ;
12865 unsigned char temp4 ;
12866 int res4 = 0 ;
12867 PyObject * obj0 = 0 ;
12868 char *kwnames[] = {
12869 (char *) "self", NULL
12870 };
12871
12872 arg2 = &temp2; res2 = SWIG_NEWOBJ;
12873 arg3 = &temp3; res3 = SWIG_NEWOBJ;
12874 arg4 = &temp4; res4 = SWIG_NEWOBJ;
12875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetOrFindMaskColour",kwnames,&obj0)) goto fail;
12876 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12877 if (SWIG_arg_fail(1)) SWIG_fail;
12878 {
12879 PyThreadState* __tstate = wxPyBeginAllowThreads();
12880 ((wxImage const *)arg1)->GetOrFindMaskColour(arg2,arg3,arg4);
12881
12882 wxPyEndAllowThreads(__tstate);
12883 if (PyErr_Occurred()) SWIG_fail;
12884 }
12885 Py_INCREF(Py_None); resultobj = Py_None;
12886 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
12887 SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0)));
12888 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
12889 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0)));
12890 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
12891 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0)));
12892 return resultobj;
12893 fail:
12894 return NULL;
12895 }
12896
12897
12898 static PyObject *_wrap_Image_GetMaskRed(PyObject *, PyObject *args, PyObject *kwargs) {
12899 PyObject *resultobj;
12900 wxImage *arg1 = (wxImage *) 0 ;
12901 unsigned char result;
12902 PyObject * obj0 = 0 ;
12903 char *kwnames[] = {
12904 (char *) "self", NULL
12905 };
12906
12907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail;
12908 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12909 if (SWIG_arg_fail(1)) SWIG_fail;
12910 {
12911 PyThreadState* __tstate = wxPyBeginAllowThreads();
12912 result = (unsigned char)(arg1)->GetMaskRed();
12913
12914 wxPyEndAllowThreads(__tstate);
12915 if (PyErr_Occurred()) SWIG_fail;
12916 }
12917 {
12918 resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
12919 }
12920 return resultobj;
12921 fail:
12922 return NULL;
12923 }
12924
12925
12926 static PyObject *_wrap_Image_GetMaskGreen(PyObject *, PyObject *args, PyObject *kwargs) {
12927 PyObject *resultobj;
12928 wxImage *arg1 = (wxImage *) 0 ;
12929 unsigned char result;
12930 PyObject * obj0 = 0 ;
12931 char *kwnames[] = {
12932 (char *) "self", NULL
12933 };
12934
12935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail;
12936 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12937 if (SWIG_arg_fail(1)) SWIG_fail;
12938 {
12939 PyThreadState* __tstate = wxPyBeginAllowThreads();
12940 result = (unsigned char)(arg1)->GetMaskGreen();
12941
12942 wxPyEndAllowThreads(__tstate);
12943 if (PyErr_Occurred()) SWIG_fail;
12944 }
12945 {
12946 resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
12947 }
12948 return resultobj;
12949 fail:
12950 return NULL;
12951 }
12952
12953
12954 static PyObject *_wrap_Image_GetMaskBlue(PyObject *, PyObject *args, PyObject *kwargs) {
12955 PyObject *resultobj;
12956 wxImage *arg1 = (wxImage *) 0 ;
12957 unsigned char result;
12958 PyObject * obj0 = 0 ;
12959 char *kwnames[] = {
12960 (char *) "self", NULL
12961 };
12962
12963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail;
12964 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12965 if (SWIG_arg_fail(1)) SWIG_fail;
12966 {
12967 PyThreadState* __tstate = wxPyBeginAllowThreads();
12968 result = (unsigned char)(arg1)->GetMaskBlue();
12969
12970 wxPyEndAllowThreads(__tstate);
12971 if (PyErr_Occurred()) SWIG_fail;
12972 }
12973 {
12974 resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
12975 }
12976 return resultobj;
12977 fail:
12978 return NULL;
12979 }
12980
12981
12982 static PyObject *_wrap_Image_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
12983 PyObject *resultobj;
12984 wxImage *arg1 = (wxImage *) 0 ;
12985 bool arg2 = (bool) true ;
12986 PyObject * obj0 = 0 ;
12987 PyObject * obj1 = 0 ;
12988 char *kwnames[] = {
12989 (char *) "self",(char *) "mask", NULL
12990 };
12991
12992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail;
12993 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
12994 if (SWIG_arg_fail(1)) SWIG_fail;
12995 if (obj1) {
12996 {
12997 arg2 = (bool)(SWIG_As_bool(obj1));
12998 if (SWIG_arg_fail(2)) SWIG_fail;
12999 }
13000 }
13001 {
13002 PyThreadState* __tstate = wxPyBeginAllowThreads();
13003 (arg1)->SetMask(arg2);
13004
13005 wxPyEndAllowThreads(__tstate);
13006 if (PyErr_Occurred()) SWIG_fail;
13007 }
13008 Py_INCREF(Py_None); resultobj = Py_None;
13009 return resultobj;
13010 fail:
13011 return NULL;
13012 }
13013
13014
13015 static PyObject *_wrap_Image_HasMask(PyObject *, PyObject *args, PyObject *kwargs) {
13016 PyObject *resultobj;
13017 wxImage *arg1 = (wxImage *) 0 ;
13018 bool result;
13019 PyObject * obj0 = 0 ;
13020 char *kwnames[] = {
13021 (char *) "self", NULL
13022 };
13023
13024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail;
13025 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
13026 if (SWIG_arg_fail(1)) SWIG_fail;
13027 {
13028 PyThreadState* __tstate = wxPyBeginAllowThreads();
13029 result = (bool)(arg1)->HasMask();
13030
13031 wxPyEndAllowThreads(__tstate);
13032 if (PyErr_Occurred()) SWIG_fail;
13033 }
13034 {
13035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13036 }
13037 return resultobj;
13038 fail:
13039 return NULL;
13040 }
13041
13042
13043 static PyObject *_wrap_Image_Rotate(PyObject *, PyObject *args, PyObject *kwargs) {
13044 PyObject *resultobj;
13045 wxImage *arg1 = (wxImage *) 0 ;
13046 double arg2 ;
13047 wxPoint *arg3 = 0 ;
13048 bool arg4 = (bool) true ;
13049 wxPoint *arg5 = (wxPoint *) NULL ;
13050 SwigValueWrapper<wxImage > result;
13051 wxPoint temp3 ;
13052 PyObject * obj0 = 0 ;
13053 PyObject * obj1 = 0 ;
13054 PyObject * obj2 = 0 ;
13055 PyObject * obj3 = 0 ;
13056 PyObject * obj4 = 0 ;
13057 char *kwnames[] = {
13058 (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL
13059 };
13060
13061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13062 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
13063 if (SWIG_arg_fail(1)) SWIG_fail;
13064 {
13065 arg2 = (double)(SWIG_As_double(obj1));
13066 if (SWIG_arg_fail(2)) SWIG_fail;
13067 }
13068 {
13069 arg3 = &temp3;
13070 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13071 }
13072 if (obj3) {
13073 {
13074 arg4 = (bool)(SWIG_As_bool(obj3));
13075 if (SWIG_arg_fail(4)) SWIG_fail;
13076 }
13077 }
13078 if (obj4) {
13079 SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0);
13080 if (SWIG_arg_fail(5)) SWIG_fail;
13081 }
13082 {
13083 PyThreadState* __tstate = wxPyBeginAllowThreads();
13084 result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5);
13085
13086 wxPyEndAllowThreads(__tstate);
13087 if (PyErr_Occurred()) SWIG_fail;
13088 }
13089 {
13090 wxImage * resultptr;
13091 resultptr = new wxImage((wxImage &)(result));
13092 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
13093 }
13094 return resultobj;
13095 fail:
13096 return NULL;
13097 }
13098
13099
13100 static PyObject *_wrap_Image_Rotate90(PyObject *, PyObject *args, PyObject *kwargs) {
13101 PyObject *resultobj;
13102 wxImage *arg1 = (wxImage *) 0 ;
13103 bool arg2 = (bool) true ;
13104 SwigValueWrapper<wxImage > result;
13105 PyObject * obj0 = 0 ;
13106 PyObject * obj1 = 0 ;
13107 char *kwnames[] = {
13108 (char *) "self",(char *) "clockwise", NULL
13109 };
13110
13111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail;
13112 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
13113 if (SWIG_arg_fail(1)) SWIG_fail;
13114 if (obj1) {
13115 {
13116 arg2 = (bool)(SWIG_As_bool(obj1));
13117 if (SWIG_arg_fail(2)) SWIG_fail;
13118 }
13119 }
13120 {
13121 PyThreadState* __tstate = wxPyBeginAllowThreads();
13122 result = (arg1)->Rotate90(arg2);
13123
13124 wxPyEndAllowThreads(__tstate);
13125 if (PyErr_Occurred()) SWIG_fail;
13126 }
13127 {
13128 wxImage * resultptr;
13129 resultptr = new wxImage((wxImage &)(result));
13130 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
13131 }
13132 return resultobj;
13133 fail:
13134 return NULL;
13135 }
13136
13137
13138 static PyObject *_wrap_Image_Mirror(PyObject *, PyObject *args, PyObject *kwargs) {
13139 PyObject *resultobj;
13140 wxImage *arg1 = (wxImage *) 0 ;
13141 bool arg2 = (bool) true ;
13142 SwigValueWrapper<wxImage > result;
13143 PyObject * obj0 = 0 ;
13144 PyObject * obj1 = 0 ;
13145 char *kwnames[] = {
13146 (char *) "self",(char *) "horizontally", NULL
13147 };
13148
13149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail;
13150 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
13151 if (SWIG_arg_fail(1)) SWIG_fail;
13152 if (obj1) {
13153 {
13154 arg2 = (bool)(SWIG_As_bool(obj1));
13155 if (SWIG_arg_fail(2)) SWIG_fail;
13156 }
13157 }
13158 {
13159 PyThreadState* __tstate = wxPyBeginAllowThreads();
13160 result = (arg1)->Mirror(arg2);
13161
13162 wxPyEndAllowThreads(__tstate);
13163 if (PyErr_Occurred()) SWIG_fail;
13164 }
13165 {
13166 wxImage * resultptr;
13167 resultptr = new wxImage((wxImage &)(result));
13168 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
13169 }
13170 return resultobj;
13171 fail:
13172 return NULL;
13173 }
13174
13175
13176 static PyObject *_wrap_Image_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
13177 PyObject *resultobj;
13178 wxImage *arg1 = (wxImage *) 0 ;
13179 unsigned char arg2 ;
13180 unsigned char arg3 ;
13181 unsigned char arg4 ;
13182 unsigned char arg5 ;
13183 unsigned char arg6 ;
13184 unsigned char arg7 ;
13185 PyObject * obj0 = 0 ;
13186 PyObject * obj1 = 0 ;
13187 PyObject * obj2 = 0 ;
13188 PyObject * obj3 = 0 ;
13189 PyObject * obj4 = 0 ;
13190 PyObject * obj5 = 0 ;
13191 PyObject * obj6 = 0 ;
13192 char *kwnames[] = {
13193 (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL
13194 };
13195
13196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
13197 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
13198 if (SWIG_arg_fail(1)) SWIG_fail;
13199 {
13200 arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1));
13201 if (SWIG_arg_fail(2)) SWIG_fail;
13202 }
13203 {
13204 arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2));
13205 if (SWIG_arg_fail(3)) SWIG_fail;
13206 }
13207 {
13208 arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3));
13209 if (SWIG_arg_fail(4)) SWIG_fail;
13210 }
13211 {
13212 arg5 = (unsigned char)(SWIG_As_unsigned_SS_char(obj4));
13213 if (SWIG_arg_fail(5)) SWIG_fail;
13214 }
13215 {
13216 arg6 = (unsigned char)(SWIG_As_unsigned_SS_char(obj5));
13217 if (SWIG_arg_fail(6)) SWIG_fail;
13218 }
13219 {
13220 arg7 = (unsigned char)(SWIG_As_unsigned_SS_char(obj6));
13221 if (SWIG_arg_fail(7)) SWIG_fail;
13222 }
13223 {
13224 PyThreadState* __tstate = wxPyBeginAllowThreads();
13225 (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7);
13226
13227 wxPyEndAllowThreads(__tstate);
13228 if (PyErr_Occurred()) SWIG_fail;
13229 }
13230 Py_INCREF(Py_None); resultobj = Py_None;
13231 return resultobj;
13232 fail:
13233 return NULL;
13234 }
13235
13236
13237 static PyObject *_wrap_Image_ConvertToMono(PyObject *, PyObject *args, PyObject *kwargs) {
13238 PyObject *resultobj;
13239 wxImage *arg1 = (wxImage *) 0 ;
13240 unsigned char arg2 ;
13241 unsigned char arg3 ;
13242 unsigned char arg4 ;
13243 SwigValueWrapper<wxImage > result;
13244 PyObject * obj0 = 0 ;
13245 PyObject * obj1 = 0 ;
13246 PyObject * obj2 = 0 ;
13247 PyObject * obj3 = 0 ;
13248 char *kwnames[] = {
13249 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
13250 };
13251
13252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13253 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
13254 if (SWIG_arg_fail(1)) SWIG_fail;
13255 {
13256 arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1));
13257 if (SWIG_arg_fail(2)) SWIG_fail;
13258 }
13259 {
13260 arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2));
13261 if (SWIG_arg_fail(3)) SWIG_fail;
13262 }
13263 {
13264 arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3));
13265 if (SWIG_arg_fail(4)) SWIG_fail;
13266 }
13267 {
13268 PyThreadState* __tstate = wxPyBeginAllowThreads();
13269 result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4);
13270
13271 wxPyEndAllowThreads(__tstate);
13272 if (PyErr_Occurred()) SWIG_fail;
13273 }
13274 {
13275 wxImage * resultptr;
13276 resultptr = new wxImage((wxImage &)(result));
13277 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
13278 }
13279 return resultobj;
13280 fail:
13281 return NULL;
13282 }
13283
13284
13285 static PyObject *_wrap_Image_SetOption(PyObject *, PyObject *args, PyObject *kwargs) {
13286 PyObject *resultobj;
13287 wxImage *arg1 = (wxImage *) 0 ;
13288 wxString *arg2 = 0 ;
13289 wxString *arg3 = 0 ;
13290 bool temp2 = false ;
13291 bool temp3 = false ;
13292 PyObject * obj0 = 0 ;
13293 PyObject * obj1 = 0 ;
13294 PyObject * obj2 = 0 ;
13295 char *kwnames[] = {
13296 (char *) "self",(char *) "name",(char *) "value", NULL
13297 };
13298
13299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail;
13300 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
13301 if (SWIG_arg_fail(1)) SWIG_fail;
13302 {
13303 arg2 = wxString_in_helper(obj1);
13304 if (arg2 == NULL) SWIG_fail;
13305 temp2 = true;
13306 }
13307 {
13308 arg3 = wxString_in_helper(obj2);
13309 if (arg3 == NULL) SWIG_fail;
13310 temp3 = true;
13311 }
13312 {
13313 PyThreadState* __tstate = wxPyBeginAllowThreads();
13314 (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3);
13315
13316 wxPyEndAllowThreads(__tstate);
13317 if (PyErr_Occurred()) SWIG_fail;
13318 }
13319 Py_INCREF(Py_None); resultobj = Py_None;
13320 {
13321 if (temp2)
13322 delete arg2;
13323 }
13324 {
13325 if (temp3)
13326 delete arg3;
13327 }
13328 return resultobj;
13329 fail:
13330 {
13331 if (temp2)
13332 delete arg2;
13333 }
13334 {
13335 if (temp3)
13336 delete arg3;
13337 }
13338 return NULL;
13339 }
13340
13341
13342 static PyObject *_wrap_Image_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
13343 PyObject *resultobj;
13344 wxImage *arg1 = (wxImage *) 0 ;
13345 wxString *arg2 = 0 ;
13346 int arg3 ;
13347 bool temp2 = false ;
13348 PyObject * obj0 = 0 ;
13349 PyObject * obj1 = 0 ;
13350 PyObject * obj2 = 0 ;
13351 char *kwnames[] = {
13352 (char *) "self",(char *) "name",(char *) "value", NULL
13353 };
13354
13355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
13356 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
13357 if (SWIG_arg_fail(1)) SWIG_fail;
13358 {
13359 arg2 = wxString_in_helper(obj1);
13360 if (arg2 == NULL) SWIG_fail;
13361 temp2 = true;
13362 }
13363 {
13364 arg3 = (int)(SWIG_As_int(obj2));
13365 if (SWIG_arg_fail(3)) SWIG_fail;
13366 }
13367 {
13368 PyThreadState* __tstate = wxPyBeginAllowThreads();
13369 (arg1)->SetOption((wxString const &)*arg2,arg3);
13370
13371 wxPyEndAllowThreads(__tstate);
13372 if (PyErr_Occurred()) SWIG_fail;
13373 }
13374 Py_INCREF(Py_None); resultobj = Py_None;
13375 {
13376 if (temp2)
13377 delete arg2;
13378 }
13379 return resultobj;
13380 fail:
13381 {
13382 if (temp2)
13383 delete arg2;
13384 }
13385 return NULL;
13386 }
13387
13388
13389 static PyObject *_wrap_Image_GetOption(PyObject *, PyObject *args, PyObject *kwargs) {
13390 PyObject *resultobj;
13391 wxImage *arg1 = (wxImage *) 0 ;
13392 wxString *arg2 = 0 ;
13393 wxString result;
13394 bool temp2 = false ;
13395 PyObject * obj0 = 0 ;
13396 PyObject * obj1 = 0 ;
13397 char *kwnames[] = {
13398 (char *) "self",(char *) "name", NULL
13399 };
13400
13401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail;
13402 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
13403 if (SWIG_arg_fail(1)) SWIG_fail;
13404 {
13405 arg2 = wxString_in_helper(obj1);
13406 if (arg2 == NULL) SWIG_fail;
13407 temp2 = true;
13408 }
13409 {
13410 PyThreadState* __tstate = wxPyBeginAllowThreads();
13411 result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2);
13412
13413 wxPyEndAllowThreads(__tstate);
13414 if (PyErr_Occurred()) SWIG_fail;
13415 }
13416 {
13417 #if wxUSE_UNICODE
13418 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13419 #else
13420 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13421 #endif
13422 }
13423 {
13424 if (temp2)
13425 delete arg2;
13426 }
13427 return resultobj;
13428 fail:
13429 {
13430 if (temp2)
13431 delete arg2;
13432 }
13433 return NULL;
13434 }
13435
13436
13437 static PyObject *_wrap_Image_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
13438 PyObject *resultobj;
13439 wxImage *arg1 = (wxImage *) 0 ;
13440 wxString *arg2 = 0 ;
13441 int result;
13442 bool temp2 = false ;
13443 PyObject * obj0 = 0 ;
13444 PyObject * obj1 = 0 ;
13445 char *kwnames[] = {
13446 (char *) "self",(char *) "name", NULL
13447 };
13448
13449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail;
13450 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
13451 if (SWIG_arg_fail(1)) SWIG_fail;
13452 {
13453 arg2 = wxString_in_helper(obj1);
13454 if (arg2 == NULL) SWIG_fail;
13455 temp2 = true;
13456 }
13457 {
13458 PyThreadState* __tstate = wxPyBeginAllowThreads();
13459 result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2);
13460
13461 wxPyEndAllowThreads(__tstate);
13462 if (PyErr_Occurred()) SWIG_fail;
13463 }
13464 {
13465 resultobj = SWIG_From_int((int)(result));
13466 }
13467 {
13468 if (temp2)
13469 delete arg2;
13470 }
13471 return resultobj;
13472 fail:
13473 {
13474 if (temp2)
13475 delete arg2;
13476 }
13477 return NULL;
13478 }
13479
13480
13481 static PyObject *_wrap_Image_HasOption(PyObject *, PyObject *args, PyObject *kwargs) {
13482 PyObject *resultobj;
13483 wxImage *arg1 = (wxImage *) 0 ;
13484 wxString *arg2 = 0 ;
13485 bool result;
13486 bool temp2 = false ;
13487 PyObject * obj0 = 0 ;
13488 PyObject * obj1 = 0 ;
13489 char *kwnames[] = {
13490 (char *) "self",(char *) "name", NULL
13491 };
13492
13493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail;
13494 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
13495 if (SWIG_arg_fail(1)) SWIG_fail;
13496 {
13497 arg2 = wxString_in_helper(obj1);
13498 if (arg2 == NULL) SWIG_fail;
13499 temp2 = true;
13500 }
13501 {
13502 PyThreadState* __tstate = wxPyBeginAllowThreads();
13503 result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2);
13504
13505 wxPyEndAllowThreads(__tstate);
13506 if (PyErr_Occurred()) SWIG_fail;
13507 }
13508 {
13509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13510 }
13511 {
13512 if (temp2)
13513 delete arg2;
13514 }
13515 return resultobj;
13516 fail:
13517 {
13518 if (temp2)
13519 delete arg2;
13520 }
13521 return NULL;
13522 }
13523
13524
13525 static PyObject *_wrap_Image_CountColours(PyObject *, PyObject *args, PyObject *kwargs) {
13526 PyObject *resultobj;
13527 wxImage *arg1 = (wxImage *) 0 ;
13528 unsigned long arg2 = (unsigned long) (unsigned long) -1 ;
13529 unsigned long result;
13530 PyObject * obj0 = 0 ;
13531 PyObject * obj1 = 0 ;
13532 char *kwnames[] = {
13533 (char *) "self",(char *) "stopafter", NULL
13534 };
13535
13536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail;
13537 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
13538 if (SWIG_arg_fail(1)) SWIG_fail;
13539 if (obj1) {
13540 {
13541 arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
13542 if (SWIG_arg_fail(2)) SWIG_fail;
13543 }
13544 }
13545 {
13546 PyThreadState* __tstate = wxPyBeginAllowThreads();
13547 result = (unsigned long)(arg1)->CountColours(arg2);
13548
13549 wxPyEndAllowThreads(__tstate);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 {
13553 resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
13554 }
13555 return resultobj;
13556 fail:
13557 return NULL;
13558 }
13559
13560
13561 static PyObject *_wrap_Image_ComputeHistogram(PyObject *, PyObject *args, PyObject *kwargs) {
13562 PyObject *resultobj;
13563 wxImage *arg1 = (wxImage *) 0 ;
13564 wxImageHistogram *arg2 = 0 ;
13565 unsigned long result;
13566 PyObject * obj0 = 0 ;
13567 PyObject * obj1 = 0 ;
13568 char *kwnames[] = {
13569 (char *) "self",(char *) "h", NULL
13570 };
13571
13572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail;
13573 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
13574 if (SWIG_arg_fail(1)) SWIG_fail;
13575 {
13576 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_EXCEPTION | 0);
13577 if (SWIG_arg_fail(2)) SWIG_fail;
13578 if (arg2 == NULL) {
13579 SWIG_null_ref("wxImageHistogram");
13580 }
13581 if (SWIG_arg_fail(2)) SWIG_fail;
13582 }
13583 {
13584 PyThreadState* __tstate = wxPyBeginAllowThreads();
13585 result = (unsigned long)(arg1)->ComputeHistogram(*arg2);
13586
13587 wxPyEndAllowThreads(__tstate);
13588 if (PyErr_Occurred()) SWIG_fail;
13589 }
13590 {
13591 resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
13592 }
13593 return resultobj;
13594 fail:
13595 return NULL;
13596 }
13597
13598
13599 static PyObject *_wrap_Image_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) {
13600 PyObject *resultobj;
13601 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
13602 PyObject * obj0 = 0 ;
13603 char *kwnames[] = {
13604 (char *) "handler", NULL
13605 };
13606
13607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail;
13608 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0);
13609 if (SWIG_arg_fail(1)) SWIG_fail;
13610 {
13611 PyThreadState* __tstate = wxPyBeginAllowThreads();
13612 wxImage::AddHandler(arg1);
13613
13614 wxPyEndAllowThreads(__tstate);
13615 if (PyErr_Occurred()) SWIG_fail;
13616 }
13617 Py_INCREF(Py_None); resultobj = Py_None;
13618 return resultobj;
13619 fail:
13620 return NULL;
13621 }
13622
13623
13624 static PyObject *_wrap_Image_InsertHandler(PyObject *, PyObject *args, PyObject *kwargs) {
13625 PyObject *resultobj;
13626 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
13627 PyObject * obj0 = 0 ;
13628 char *kwnames[] = {
13629 (char *) "handler", NULL
13630 };
13631
13632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail;
13633 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageHandler, SWIG_POINTER_EXCEPTION | 0);
13634 if (SWIG_arg_fail(1)) SWIG_fail;
13635 {
13636 PyThreadState* __tstate = wxPyBeginAllowThreads();
13637 wxImage::InsertHandler(arg1);
13638
13639 wxPyEndAllowThreads(__tstate);
13640 if (PyErr_Occurred()) SWIG_fail;
13641 }
13642 Py_INCREF(Py_None); resultobj = Py_None;
13643 return resultobj;
13644 fail:
13645 return NULL;
13646 }
13647
13648
13649 static PyObject *_wrap_Image_RemoveHandler(PyObject *, PyObject *args, PyObject *kwargs) {
13650 PyObject *resultobj;
13651 wxString *arg1 = 0 ;
13652 bool result;
13653 bool temp1 = false ;
13654 PyObject * obj0 = 0 ;
13655 char *kwnames[] = {
13656 (char *) "name", NULL
13657 };
13658
13659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail;
13660 {
13661 arg1 = wxString_in_helper(obj0);
13662 if (arg1 == NULL) SWIG_fail;
13663 temp1 = true;
13664 }
13665 {
13666 PyThreadState* __tstate = wxPyBeginAllowThreads();
13667 result = (bool)wxImage::RemoveHandler((wxString const &)*arg1);
13668
13669 wxPyEndAllowThreads(__tstate);
13670 if (PyErr_Occurred()) SWIG_fail;
13671 }
13672 {
13673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13674 }
13675 {
13676 if (temp1)
13677 delete arg1;
13678 }
13679 return resultobj;
13680 fail:
13681 {
13682 if (temp1)
13683 delete arg1;
13684 }
13685 return NULL;
13686 }
13687
13688
13689 static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *, PyObject *args, PyObject *kwargs) {
13690 PyObject *resultobj;
13691 wxString result;
13692 char *kwnames[] = {
13693 NULL
13694 };
13695
13696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail;
13697 {
13698 PyThreadState* __tstate = wxPyBeginAllowThreads();
13699 result = wxImage::GetImageExtWildcard();
13700
13701 wxPyEndAllowThreads(__tstate);
13702 if (PyErr_Occurred()) SWIG_fail;
13703 }
13704 {
13705 #if wxUSE_UNICODE
13706 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13707 #else
13708 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13709 #endif
13710 }
13711 return resultobj;
13712 fail:
13713 return NULL;
13714 }
13715
13716
13717 static PyObject *_wrap_Image_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
13718 PyObject *resultobj;
13719 wxImage *arg1 = (wxImage *) 0 ;
13720 int arg2 = (int) -1 ;
13721 wxBitmap result;
13722 PyObject * obj0 = 0 ;
13723 PyObject * obj1 = 0 ;
13724 char *kwnames[] = {
13725 (char *) "self",(char *) "depth", NULL
13726 };
13727
13728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertToBitmap",kwnames,&obj0,&obj1)) goto fail;
13729 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
13730 if (SWIG_arg_fail(1)) SWIG_fail;
13731 if (obj1) {
13732 {
13733 arg2 = (int)(SWIG_As_int(obj1));
13734 if (SWIG_arg_fail(2)) SWIG_fail;
13735 }
13736 }
13737 {
13738 if (!wxPyCheckForApp()) SWIG_fail;
13739 PyThreadState* __tstate = wxPyBeginAllowThreads();
13740 result = wxImage_ConvertToBitmap(arg1,arg2);
13741
13742 wxPyEndAllowThreads(__tstate);
13743 if (PyErr_Occurred()) SWIG_fail;
13744 }
13745 {
13746 wxBitmap * resultptr;
13747 resultptr = new wxBitmap((wxBitmap &)(result));
13748 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
13749 }
13750 return resultobj;
13751 fail:
13752 return NULL;
13753 }
13754
13755
13756 static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
13757 PyObject *resultobj;
13758 wxImage *arg1 = (wxImage *) 0 ;
13759 unsigned char arg2 ;
13760 unsigned char arg3 ;
13761 unsigned char arg4 ;
13762 wxBitmap result;
13763 PyObject * obj0 = 0 ;
13764 PyObject * obj1 = 0 ;
13765 PyObject * obj2 = 0 ;
13766 PyObject * obj3 = 0 ;
13767 char *kwnames[] = {
13768 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
13769 };
13770
13771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13772 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
13773 if (SWIG_arg_fail(1)) SWIG_fail;
13774 {
13775 arg2 = (unsigned char)(SWIG_As_unsigned_SS_char(obj1));
13776 if (SWIG_arg_fail(2)) SWIG_fail;
13777 }
13778 {
13779 arg3 = (unsigned char)(SWIG_As_unsigned_SS_char(obj2));
13780 if (SWIG_arg_fail(3)) SWIG_fail;
13781 }
13782 {
13783 arg4 = (unsigned char)(SWIG_As_unsigned_SS_char(obj3));
13784 if (SWIG_arg_fail(4)) SWIG_fail;
13785 }
13786 {
13787 if (!wxPyCheckForApp()) SWIG_fail;
13788 PyThreadState* __tstate = wxPyBeginAllowThreads();
13789 result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4);
13790
13791 wxPyEndAllowThreads(__tstate);
13792 if (PyErr_Occurred()) SWIG_fail;
13793 }
13794 {
13795 wxBitmap * resultptr;
13796 resultptr = new wxBitmap((wxBitmap &)(result));
13797 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
13798 }
13799 return resultobj;
13800 fail:
13801 return NULL;
13802 }
13803
13804
13805 static PyObject * Image_swigregister(PyObject *, PyObject *args) {
13806 PyObject *obj;
13807 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13808 SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj);
13809 Py_INCREF(obj);
13810 return Py_BuildValue((char *)"");
13811 }
13812 static int _wrap_NullImage_set(PyObject *) {
13813 PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only.");
13814 return 1;
13815 }
13816
13817
13818 static PyObject *_wrap_NullImage_get(void) {
13819 PyObject *pyobj;
13820
13821 pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0);
13822 return pyobj;
13823 }
13824
13825
13826 static int _wrap_IMAGE_OPTION_FILENAME_set(PyObject *) {
13827 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_FILENAME is read-only.");
13828 return 1;
13829 }
13830
13831
13832 static PyObject *_wrap_IMAGE_OPTION_FILENAME_get(void) {
13833 PyObject *pyobj;
13834
13835 {
13836 #if wxUSE_UNICODE
13837 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_FILENAME)->c_str(), (&wxPyIMAGE_OPTION_FILENAME)->Len());
13838 #else
13839 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_FILENAME)->c_str(), (&wxPyIMAGE_OPTION_FILENAME)->Len());
13840 #endif
13841 }
13842 return pyobj;
13843 }
13844
13845
13846 static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) {
13847 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only.");
13848 return 1;
13849 }
13850
13851
13852 static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get(void) {
13853 PyObject *pyobj;
13854
13855 {
13856 #if wxUSE_UNICODE
13857 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
13858 #else
13859 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
13860 #endif
13861 }
13862 return pyobj;
13863 }
13864
13865
13866 static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) {
13867 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only.");
13868 return 1;
13869 }
13870
13871
13872 static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get(void) {
13873 PyObject *pyobj;
13874
13875 {
13876 #if wxUSE_UNICODE
13877 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
13878 #else
13879 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
13880 #endif
13881 }
13882 return pyobj;
13883 }
13884
13885
13886 static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) {
13887 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only.");
13888 return 1;
13889 }
13890
13891
13892 static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get(void) {
13893 PyObject *pyobj;
13894
13895 {
13896 #if wxUSE_UNICODE
13897 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
13898 #else
13899 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
13900 #endif
13901 }
13902 return pyobj;
13903 }
13904
13905
13906 static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) {
13907 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only.");
13908 return 1;
13909 }
13910
13911
13912 static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get(void) {
13913 PyObject *pyobj;
13914
13915 {
13916 #if wxUSE_UNICODE
13917 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
13918 #else
13919 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
13920 #endif
13921 }
13922 return pyobj;
13923 }
13924
13925
13926 static int _wrap_IMAGE_OPTION_RESOLUTIONX_set(PyObject *) {
13927 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONX is read-only.");
13928 return 1;
13929 }
13930
13931
13932 static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONX_get(void) {
13933 PyObject *pyobj;
13934
13935 {
13936 #if wxUSE_UNICODE
13937 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONX)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONX)->Len());
13938 #else
13939 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONX)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONX)->Len());
13940 #endif
13941 }
13942 return pyobj;
13943 }
13944
13945
13946 static int _wrap_IMAGE_OPTION_RESOLUTIONY_set(PyObject *) {
13947 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONY is read-only.");
13948 return 1;
13949 }
13950
13951
13952 static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONY_get(void) {
13953 PyObject *pyobj;
13954
13955 {
13956 #if wxUSE_UNICODE
13957 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONY)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONY)->Len());
13958 #else
13959 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONY)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONY)->Len());
13960 #endif
13961 }
13962 return pyobj;
13963 }
13964
13965
13966 static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) {
13967 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only.");
13968 return 1;
13969 }
13970
13971
13972 static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get(void) {
13973 PyObject *pyobj;
13974
13975 {
13976 #if wxUSE_UNICODE
13977 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
13978 #else
13979 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
13980 #endif
13981 }
13982 return pyobj;
13983 }
13984
13985
13986 static int _wrap_IMAGE_OPTION_QUALITY_set(PyObject *) {
13987 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_QUALITY is read-only.");
13988 return 1;
13989 }
13990
13991
13992 static PyObject *_wrap_IMAGE_OPTION_QUALITY_get(void) {
13993 PyObject *pyobj;
13994
13995 {
13996 #if wxUSE_UNICODE
13997 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_QUALITY)->c_str(), (&wxPyIMAGE_OPTION_QUALITY)->Len());
13998 #else
13999 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_QUALITY)->c_str(), (&wxPyIMAGE_OPTION_QUALITY)->Len());
14000 #endif
14001 }
14002 return pyobj;
14003 }
14004
14005
14006 static int _wrap_IMAGE_OPTION_BITSPERSAMPLE_set(PyObject *) {
14007 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BITSPERSAMPLE is read-only.");
14008 return 1;
14009 }
14010
14011
14012 static PyObject *_wrap_IMAGE_OPTION_BITSPERSAMPLE_get(void) {
14013 PyObject *pyobj;
14014
14015 {
14016 #if wxUSE_UNICODE
14017 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BITSPERSAMPLE)->c_str(), (&wxPyIMAGE_OPTION_BITSPERSAMPLE)->Len());
14018 #else
14019 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BITSPERSAMPLE)->c_str(), (&wxPyIMAGE_OPTION_BITSPERSAMPLE)->Len());
14020 #endif
14021 }
14022 return pyobj;
14023 }
14024
14025
14026 static int _wrap_IMAGE_OPTION_SAMPLESPERPIXEL_set(PyObject *) {
14027 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_SAMPLESPERPIXEL is read-only.");
14028 return 1;
14029 }
14030
14031
14032 static PyObject *_wrap_IMAGE_OPTION_SAMPLESPERPIXEL_get(void) {
14033 PyObject *pyobj;
14034
14035 {
14036 #if wxUSE_UNICODE
14037 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->c_str(), (&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->Len());
14038 #else
14039 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->c_str(), (&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->Len());
14040 #endif
14041 }
14042 return pyobj;
14043 }
14044
14045
14046 static int _wrap_IMAGE_OPTION_COMPRESSION_set(PyObject *) {
14047 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_COMPRESSION is read-only.");
14048 return 1;
14049 }
14050
14051
14052 static PyObject *_wrap_IMAGE_OPTION_COMPRESSION_get(void) {
14053 PyObject *pyobj;
14054
14055 {
14056 #if wxUSE_UNICODE
14057 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_COMPRESSION)->c_str(), (&wxPyIMAGE_OPTION_COMPRESSION)->Len());
14058 #else
14059 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_COMPRESSION)->c_str(), (&wxPyIMAGE_OPTION_COMPRESSION)->Len());
14060 #endif
14061 }
14062 return pyobj;
14063 }
14064
14065
14066 static int _wrap_IMAGE_OPTION_IMAGEDESCRIPTOR_set(PyObject *) {
14067 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_IMAGEDESCRIPTOR is read-only.");
14068 return 1;
14069 }
14070
14071
14072 static PyObject *_wrap_IMAGE_OPTION_IMAGEDESCRIPTOR_get(void) {
14073 PyObject *pyobj;
14074
14075 {
14076 #if wxUSE_UNICODE
14077 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->c_str(), (&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->Len());
14078 #else
14079 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->c_str(), (&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->Len());
14080 #endif
14081 }
14082 return pyobj;
14083 }
14084
14085
14086 static int _wrap_IMAGE_OPTION_PNG_FORMAT_set(PyObject *) {
14087 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_PNG_FORMAT is read-only.");
14088 return 1;
14089 }
14090
14091
14092 static PyObject *_wrap_IMAGE_OPTION_PNG_FORMAT_get(void) {
14093 PyObject *pyobj;
14094
14095 {
14096 #if wxUSE_UNICODE
14097 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_PNG_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_PNG_FORMAT)->Len());
14098 #else
14099 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_PNG_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_PNG_FORMAT)->Len());
14100 #endif
14101 }
14102 return pyobj;
14103 }
14104
14105
14106 static int _wrap_IMAGE_OPTION_PNG_BITDEPTH_set(PyObject *) {
14107 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_PNG_BITDEPTH is read-only.");
14108 return 1;
14109 }
14110
14111
14112 static PyObject *_wrap_IMAGE_OPTION_PNG_BITDEPTH_get(void) {
14113 PyObject *pyobj;
14114
14115 {
14116 #if wxUSE_UNICODE
14117 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_PNG_BITDEPTH)->c_str(), (&wxPyIMAGE_OPTION_PNG_BITDEPTH)->Len());
14118 #else
14119 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_PNG_BITDEPTH)->c_str(), (&wxPyIMAGE_OPTION_PNG_BITDEPTH)->Len());
14120 #endif
14121 }
14122 return pyobj;
14123 }
14124
14125
14126 static PyObject *_wrap_new_BMPHandler(PyObject *, PyObject *args, PyObject *kwargs) {
14127 PyObject *resultobj;
14128 wxBMPHandler *result;
14129 char *kwnames[] = {
14130 NULL
14131 };
14132
14133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail;
14134 {
14135 PyThreadState* __tstate = wxPyBeginAllowThreads();
14136 result = (wxBMPHandler *)new wxBMPHandler();
14137
14138 wxPyEndAllowThreads(__tstate);
14139 if (PyErr_Occurred()) SWIG_fail;
14140 }
14141 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1);
14142 return resultobj;
14143 fail:
14144 return NULL;
14145 }
14146
14147
14148 static PyObject * BMPHandler_swigregister(PyObject *, PyObject *args) {
14149 PyObject *obj;
14150 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14151 SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj);
14152 Py_INCREF(obj);
14153 return Py_BuildValue((char *)"");
14154 }
14155 static PyObject *_wrap_new_ICOHandler(PyObject *, PyObject *args, PyObject *kwargs) {
14156 PyObject *resultobj;
14157 wxICOHandler *result;
14158 char *kwnames[] = {
14159 NULL
14160 };
14161
14162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail;
14163 {
14164 PyThreadState* __tstate = wxPyBeginAllowThreads();
14165 result = (wxICOHandler *)new wxICOHandler();
14166
14167 wxPyEndAllowThreads(__tstate);
14168 if (PyErr_Occurred()) SWIG_fail;
14169 }
14170 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1);
14171 return resultobj;
14172 fail:
14173 return NULL;
14174 }
14175
14176
14177 static PyObject * ICOHandler_swigregister(PyObject *, PyObject *args) {
14178 PyObject *obj;
14179 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14180 SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj);
14181 Py_INCREF(obj);
14182 return Py_BuildValue((char *)"");
14183 }
14184 static PyObject *_wrap_new_CURHandler(PyObject *, PyObject *args, PyObject *kwargs) {
14185 PyObject *resultobj;
14186 wxCURHandler *result;
14187 char *kwnames[] = {
14188 NULL
14189 };
14190
14191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail;
14192 {
14193 PyThreadState* __tstate = wxPyBeginAllowThreads();
14194 result = (wxCURHandler *)new wxCURHandler();
14195
14196 wxPyEndAllowThreads(__tstate);
14197 if (PyErr_Occurred()) SWIG_fail;
14198 }
14199 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1);
14200 return resultobj;
14201 fail:
14202 return NULL;
14203 }
14204
14205
14206 static PyObject * CURHandler_swigregister(PyObject *, PyObject *args) {
14207 PyObject *obj;
14208 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14209 SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj);
14210 Py_INCREF(obj);
14211 return Py_BuildValue((char *)"");
14212 }
14213 static PyObject *_wrap_new_ANIHandler(PyObject *, PyObject *args, PyObject *kwargs) {
14214 PyObject *resultobj;
14215 wxANIHandler *result;
14216 char *kwnames[] = {
14217 NULL
14218 };
14219
14220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail;
14221 {
14222 PyThreadState* __tstate = wxPyBeginAllowThreads();
14223 result = (wxANIHandler *)new wxANIHandler();
14224
14225 wxPyEndAllowThreads(__tstate);
14226 if (PyErr_Occurred()) SWIG_fail;
14227 }
14228 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1);
14229 return resultobj;
14230 fail:
14231 return NULL;
14232 }
14233
14234
14235 static PyObject * ANIHandler_swigregister(PyObject *, PyObject *args) {
14236 PyObject *obj;
14237 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14238 SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj);
14239 Py_INCREF(obj);
14240 return Py_BuildValue((char *)"");
14241 }
14242 static PyObject *_wrap_new_PNGHandler(PyObject *, PyObject *args, PyObject *kwargs) {
14243 PyObject *resultobj;
14244 wxPNGHandler *result;
14245 char *kwnames[] = {
14246 NULL
14247 };
14248
14249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail;
14250 {
14251 PyThreadState* __tstate = wxPyBeginAllowThreads();
14252 result = (wxPNGHandler *)new wxPNGHandler();
14253
14254 wxPyEndAllowThreads(__tstate);
14255 if (PyErr_Occurred()) SWIG_fail;
14256 }
14257 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1);
14258 return resultobj;
14259 fail:
14260 return NULL;
14261 }
14262
14263
14264 static PyObject * PNGHandler_swigregister(PyObject *, PyObject *args) {
14265 PyObject *obj;
14266 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14267 SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj);
14268 Py_INCREF(obj);
14269 return Py_BuildValue((char *)"");
14270 }
14271 static PyObject *_wrap_new_GIFHandler(PyObject *, PyObject *args, PyObject *kwargs) {
14272 PyObject *resultobj;
14273 wxGIFHandler *result;
14274 char *kwnames[] = {
14275 NULL
14276 };
14277
14278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail;
14279 {
14280 PyThreadState* __tstate = wxPyBeginAllowThreads();
14281 result = (wxGIFHandler *)new wxGIFHandler();
14282
14283 wxPyEndAllowThreads(__tstate);
14284 if (PyErr_Occurred()) SWIG_fail;
14285 }
14286 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1);
14287 return resultobj;
14288 fail:
14289 return NULL;
14290 }
14291
14292
14293 static PyObject * GIFHandler_swigregister(PyObject *, PyObject *args) {
14294 PyObject *obj;
14295 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14296 SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj);
14297 Py_INCREF(obj);
14298 return Py_BuildValue((char *)"");
14299 }
14300 static PyObject *_wrap_new_PCXHandler(PyObject *, PyObject *args, PyObject *kwargs) {
14301 PyObject *resultobj;
14302 wxPCXHandler *result;
14303 char *kwnames[] = {
14304 NULL
14305 };
14306
14307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail;
14308 {
14309 PyThreadState* __tstate = wxPyBeginAllowThreads();
14310 result = (wxPCXHandler *)new wxPCXHandler();
14311
14312 wxPyEndAllowThreads(__tstate);
14313 if (PyErr_Occurred()) SWIG_fail;
14314 }
14315 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1);
14316 return resultobj;
14317 fail:
14318 return NULL;
14319 }
14320
14321
14322 static PyObject * PCXHandler_swigregister(PyObject *, PyObject *args) {
14323 PyObject *obj;
14324 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14325 SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj);
14326 Py_INCREF(obj);
14327 return Py_BuildValue((char *)"");
14328 }
14329 static PyObject *_wrap_new_JPEGHandler(PyObject *, PyObject *args, PyObject *kwargs) {
14330 PyObject *resultobj;
14331 wxJPEGHandler *result;
14332 char *kwnames[] = {
14333 NULL
14334 };
14335
14336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail;
14337 {
14338 PyThreadState* __tstate = wxPyBeginAllowThreads();
14339 result = (wxJPEGHandler *)new wxJPEGHandler();
14340
14341 wxPyEndAllowThreads(__tstate);
14342 if (PyErr_Occurred()) SWIG_fail;
14343 }
14344 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1);
14345 return resultobj;
14346 fail:
14347 return NULL;
14348 }
14349
14350
14351 static PyObject * JPEGHandler_swigregister(PyObject *, PyObject *args) {
14352 PyObject *obj;
14353 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14354 SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj);
14355 Py_INCREF(obj);
14356 return Py_BuildValue((char *)"");
14357 }
14358 static PyObject *_wrap_new_PNMHandler(PyObject *, PyObject *args, PyObject *kwargs) {
14359 PyObject *resultobj;
14360 wxPNMHandler *result;
14361 char *kwnames[] = {
14362 NULL
14363 };
14364
14365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail;
14366 {
14367 PyThreadState* __tstate = wxPyBeginAllowThreads();
14368 result = (wxPNMHandler *)new wxPNMHandler();
14369
14370 wxPyEndAllowThreads(__tstate);
14371 if (PyErr_Occurred()) SWIG_fail;
14372 }
14373 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1);
14374 return resultobj;
14375 fail:
14376 return NULL;
14377 }
14378
14379
14380 static PyObject * PNMHandler_swigregister(PyObject *, PyObject *args) {
14381 PyObject *obj;
14382 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14383 SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj);
14384 Py_INCREF(obj);
14385 return Py_BuildValue((char *)"");
14386 }
14387 static PyObject *_wrap_new_XPMHandler(PyObject *, PyObject *args, PyObject *kwargs) {
14388 PyObject *resultobj;
14389 wxXPMHandler *result;
14390 char *kwnames[] = {
14391 NULL
14392 };
14393
14394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail;
14395 {
14396 PyThreadState* __tstate = wxPyBeginAllowThreads();
14397 result = (wxXPMHandler *)new wxXPMHandler();
14398
14399 wxPyEndAllowThreads(__tstate);
14400 if (PyErr_Occurred()) SWIG_fail;
14401 }
14402 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1);
14403 return resultobj;
14404 fail:
14405 return NULL;
14406 }
14407
14408
14409 static PyObject * XPMHandler_swigregister(PyObject *, PyObject *args) {
14410 PyObject *obj;
14411 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14412 SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj);
14413 Py_INCREF(obj);
14414 return Py_BuildValue((char *)"");
14415 }
14416 static PyObject *_wrap_new_TIFFHandler(PyObject *, PyObject *args, PyObject *kwargs) {
14417 PyObject *resultobj;
14418 wxTIFFHandler *result;
14419 char *kwnames[] = {
14420 NULL
14421 };
14422
14423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail;
14424 {
14425 PyThreadState* __tstate = wxPyBeginAllowThreads();
14426 result = (wxTIFFHandler *)new wxTIFFHandler();
14427
14428 wxPyEndAllowThreads(__tstate);
14429 if (PyErr_Occurred()) SWIG_fail;
14430 }
14431 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1);
14432 return resultobj;
14433 fail:
14434 return NULL;
14435 }
14436
14437
14438 static PyObject * TIFFHandler_swigregister(PyObject *, PyObject *args) {
14439 PyObject *obj;
14440 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14441 SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj);
14442 Py_INCREF(obj);
14443 return Py_BuildValue((char *)"");
14444 }
14445 static PyObject *_wrap_Quantize_Quantize(PyObject *, PyObject *args, PyObject *kwargs) {
14446 PyObject *resultobj;
14447 wxImage *arg1 = 0 ;
14448 wxImage *arg2 = 0 ;
14449 int arg3 = (int) 236 ;
14450 int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ;
14451 bool result;
14452 PyObject * obj0 = 0 ;
14453 PyObject * obj1 = 0 ;
14454 PyObject * obj2 = 0 ;
14455 PyObject * obj3 = 0 ;
14456 char *kwnames[] = {
14457 (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL
14458 };
14459
14460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14461 {
14462 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
14463 if (SWIG_arg_fail(1)) SWIG_fail;
14464 if (arg1 == NULL) {
14465 SWIG_null_ref("wxImage");
14466 }
14467 if (SWIG_arg_fail(1)) SWIG_fail;
14468 }
14469 {
14470 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
14471 if (SWIG_arg_fail(2)) SWIG_fail;
14472 if (arg2 == NULL) {
14473 SWIG_null_ref("wxImage");
14474 }
14475 if (SWIG_arg_fail(2)) SWIG_fail;
14476 }
14477 if (obj2) {
14478 {
14479 arg3 = (int)(SWIG_As_int(obj2));
14480 if (SWIG_arg_fail(3)) SWIG_fail;
14481 }
14482 }
14483 if (obj3) {
14484 {
14485 arg4 = (int)(SWIG_As_int(obj3));
14486 if (SWIG_arg_fail(4)) SWIG_fail;
14487 }
14488 }
14489 {
14490 PyThreadState* __tstate = wxPyBeginAllowThreads();
14491 result = (bool)Quantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4);
14492
14493 wxPyEndAllowThreads(__tstate);
14494 if (PyErr_Occurred()) SWIG_fail;
14495 }
14496 {
14497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14498 }
14499 return resultobj;
14500 fail:
14501 return NULL;
14502 }
14503
14504
14505 static PyObject * Quantize_swigregister(PyObject *, PyObject *args) {
14506 PyObject *obj;
14507 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14508 SWIG_TypeClientData(SWIGTYPE_p_wxQuantize, obj);
14509 Py_INCREF(obj);
14510 return Py_BuildValue((char *)"");
14511 }
14512 static PyObject *_wrap_new_EvtHandler(PyObject *, PyObject *args, PyObject *kwargs) {
14513 PyObject *resultobj;
14514 wxEvtHandler *result;
14515 char *kwnames[] = {
14516 NULL
14517 };
14518
14519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail;
14520 {
14521 PyThreadState* __tstate = wxPyBeginAllowThreads();
14522 result = (wxEvtHandler *)new wxEvtHandler();
14523
14524 wxPyEndAllowThreads(__tstate);
14525 if (PyErr_Occurred()) SWIG_fail;
14526 }
14527 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1);
14528 return resultobj;
14529 fail:
14530 return NULL;
14531 }
14532
14533
14534 static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) {
14535 PyObject *resultobj;
14536 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
14537 wxEvtHandler *result;
14538 PyObject * obj0 = 0 ;
14539 char *kwnames[] = {
14540 (char *) "self", NULL
14541 };
14542
14543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail;
14544 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
14545 if (SWIG_arg_fail(1)) SWIG_fail;
14546 {
14547 PyThreadState* __tstate = wxPyBeginAllowThreads();
14548 result = (wxEvtHandler *)(arg1)->GetNextHandler();
14549
14550 wxPyEndAllowThreads(__tstate);
14551 if (PyErr_Occurred()) SWIG_fail;
14552 }
14553 {
14554 resultobj = wxPyMake_wxObject(result, 0);
14555 }
14556 return resultobj;
14557 fail:
14558 return NULL;
14559 }
14560
14561
14562 static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) {
14563 PyObject *resultobj;
14564 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
14565 wxEvtHandler *result;
14566 PyObject * obj0 = 0 ;
14567 char *kwnames[] = {
14568 (char *) "self", NULL
14569 };
14570
14571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail;
14572 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
14573 if (SWIG_arg_fail(1)) SWIG_fail;
14574 {
14575 PyThreadState* __tstate = wxPyBeginAllowThreads();
14576 result = (wxEvtHandler *)(arg1)->GetPreviousHandler();
14577
14578 wxPyEndAllowThreads(__tstate);
14579 if (PyErr_Occurred()) SWIG_fail;
14580 }
14581 {
14582 resultobj = wxPyMake_wxObject(result, 0);
14583 }
14584 return resultobj;
14585 fail:
14586 return NULL;
14587 }
14588
14589
14590 static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) {
14591 PyObject *resultobj;
14592 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
14593 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
14594 PyObject * obj0 = 0 ;
14595 PyObject * obj1 = 0 ;
14596 char *kwnames[] = {
14597 (char *) "self",(char *) "handler", NULL
14598 };
14599
14600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail;
14601 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
14602 if (SWIG_arg_fail(1)) SWIG_fail;
14603 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
14604 if (SWIG_arg_fail(2)) SWIG_fail;
14605 {
14606 PyThreadState* __tstate = wxPyBeginAllowThreads();
14607 (arg1)->SetNextHandler(arg2);
14608
14609 wxPyEndAllowThreads(__tstate);
14610 if (PyErr_Occurred()) SWIG_fail;
14611 }
14612 Py_INCREF(Py_None); resultobj = Py_None;
14613 return resultobj;
14614 fail:
14615 return NULL;
14616 }
14617
14618
14619 static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) {
14620 PyObject *resultobj;
14621 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
14622 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
14623 PyObject * obj0 = 0 ;
14624 PyObject * obj1 = 0 ;
14625 char *kwnames[] = {
14626 (char *) "self",(char *) "handler", NULL
14627 };
14628
14629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail;
14630 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
14631 if (SWIG_arg_fail(1)) SWIG_fail;
14632 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
14633 if (SWIG_arg_fail(2)) SWIG_fail;
14634 {
14635 PyThreadState* __tstate = wxPyBeginAllowThreads();
14636 (arg1)->SetPreviousHandler(arg2);
14637
14638 wxPyEndAllowThreads(__tstate);
14639 if (PyErr_Occurred()) SWIG_fail;
14640 }
14641 Py_INCREF(Py_None); resultobj = Py_None;
14642 return resultobj;
14643 fail:
14644 return NULL;
14645 }
14646
14647
14648 static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
14649 PyObject *resultobj;
14650 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
14651 bool result;
14652 PyObject * obj0 = 0 ;
14653 char *kwnames[] = {
14654 (char *) "self", NULL
14655 };
14656
14657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail;
14658 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
14659 if (SWIG_arg_fail(1)) SWIG_fail;
14660 {
14661 PyThreadState* __tstate = wxPyBeginAllowThreads();
14662 result = (bool)(arg1)->GetEvtHandlerEnabled();
14663
14664 wxPyEndAllowThreads(__tstate);
14665 if (PyErr_Occurred()) SWIG_fail;
14666 }
14667 {
14668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14669 }
14670 return resultobj;
14671 fail:
14672 return NULL;
14673 }
14674
14675
14676 static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
14677 PyObject *resultobj;
14678 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
14679 bool arg2 ;
14680 PyObject * obj0 = 0 ;
14681 PyObject * obj1 = 0 ;
14682 char *kwnames[] = {
14683 (char *) "self",(char *) "enabled", NULL
14684 };
14685
14686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail;
14687 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
14688 if (SWIG_arg_fail(1)) SWIG_fail;
14689 {
14690 arg2 = (bool)(SWIG_As_bool(obj1));
14691 if (SWIG_arg_fail(2)) SWIG_fail;
14692 }
14693 {
14694 PyThreadState* __tstate = wxPyBeginAllowThreads();
14695 (arg1)->SetEvtHandlerEnabled(arg2);
14696
14697 wxPyEndAllowThreads(__tstate);
14698 if (PyErr_Occurred()) SWIG_fail;
14699 }
14700 Py_INCREF(Py_None); resultobj = Py_None;
14701 return resultobj;
14702 fail:
14703 return NULL;
14704 }
14705
14706
14707 static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) {
14708 PyObject *resultobj;
14709 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
14710 wxEvent *arg2 = 0 ;
14711 bool result;
14712 PyObject * obj0 = 0 ;
14713 PyObject * obj1 = 0 ;
14714 char *kwnames[] = {
14715 (char *) "self",(char *) "event", NULL
14716 };
14717
14718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail;
14719 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
14720 if (SWIG_arg_fail(1)) SWIG_fail;
14721 {
14722 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
14723 if (SWIG_arg_fail(2)) SWIG_fail;
14724 if (arg2 == NULL) {
14725 SWIG_null_ref("wxEvent");
14726 }
14727 if (SWIG_arg_fail(2)) SWIG_fail;
14728 }
14729 {
14730 PyThreadState* __tstate = wxPyBeginAllowThreads();
14731 result = (bool)(arg1)->ProcessEvent(*arg2);
14732
14733 wxPyEndAllowThreads(__tstate);
14734 if (PyErr_Occurred()) SWIG_fail;
14735 }
14736 {
14737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14738 }
14739 return resultobj;
14740 fail:
14741 return NULL;
14742 }
14743
14744
14745 static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *, PyObject *args, PyObject *kwargs) {
14746 PyObject *resultobj;
14747 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
14748 wxEvent *arg2 = 0 ;
14749 PyObject * obj0 = 0 ;
14750 PyObject * obj1 = 0 ;
14751 char *kwnames[] = {
14752 (char *) "self",(char *) "event", NULL
14753 };
14754
14755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail;
14756 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
14757 if (SWIG_arg_fail(1)) SWIG_fail;
14758 {
14759 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
14760 if (SWIG_arg_fail(2)) SWIG_fail;
14761 if (arg2 == NULL) {
14762 SWIG_null_ref("wxEvent");
14763 }
14764 if (SWIG_arg_fail(2)) SWIG_fail;
14765 }
14766 {
14767 PyThreadState* __tstate = wxPyBeginAllowThreads();
14768 (arg1)->AddPendingEvent(*arg2);
14769
14770 wxPyEndAllowThreads(__tstate);
14771 if (PyErr_Occurred()) SWIG_fail;
14772 }
14773 Py_INCREF(Py_None); resultobj = Py_None;
14774 return resultobj;
14775 fail:
14776 return NULL;
14777 }
14778
14779
14780 static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) {
14781 PyObject *resultobj;
14782 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
14783 PyObject * obj0 = 0 ;
14784 char *kwnames[] = {
14785 (char *) "self", NULL
14786 };
14787
14788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail;
14789 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
14790 if (SWIG_arg_fail(1)) SWIG_fail;
14791 {
14792 PyThreadState* __tstate = wxPyBeginAllowThreads();
14793 (arg1)->ProcessPendingEvents();
14794
14795 wxPyEndAllowThreads(__tstate);
14796 if (PyErr_Occurred()) SWIG_fail;
14797 }
14798 Py_INCREF(Py_None); resultobj = Py_None;
14799 return resultobj;
14800 fail:
14801 return NULL;
14802 }
14803
14804
14805 static PyObject *_wrap_EvtHandler_Connect(PyObject *, PyObject *args, PyObject *kwargs) {
14806 PyObject *resultobj;
14807 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
14808 int arg2 ;
14809 int arg3 ;
14810 int arg4 ;
14811 PyObject *arg5 = (PyObject *) 0 ;
14812 PyObject * obj0 = 0 ;
14813 PyObject * obj1 = 0 ;
14814 PyObject * obj2 = 0 ;
14815 PyObject * obj3 = 0 ;
14816 PyObject * obj4 = 0 ;
14817 char *kwnames[] = {
14818 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL
14819 };
14820
14821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14822 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
14823 if (SWIG_arg_fail(1)) SWIG_fail;
14824 {
14825 arg2 = (int)(SWIG_As_int(obj1));
14826 if (SWIG_arg_fail(2)) SWIG_fail;
14827 }
14828 {
14829 arg3 = (int)(SWIG_As_int(obj2));
14830 if (SWIG_arg_fail(3)) SWIG_fail;
14831 }
14832 {
14833 arg4 = (int)(SWIG_As_int(obj3));
14834 if (SWIG_arg_fail(4)) SWIG_fail;
14835 }
14836 arg5 = obj4;
14837 {
14838 PyThreadState* __tstate = wxPyBeginAllowThreads();
14839 wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5);
14840
14841 wxPyEndAllowThreads(__tstate);
14842 if (PyErr_Occurred()) SWIG_fail;
14843 }
14844 Py_INCREF(Py_None); resultobj = Py_None;
14845 return resultobj;
14846 fail:
14847 return NULL;
14848 }
14849
14850
14851 static PyObject *_wrap_EvtHandler_Disconnect(PyObject *, PyObject *args, PyObject *kwargs) {
14852 PyObject *resultobj;
14853 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
14854 int arg2 ;
14855 int arg3 = (int) -1 ;
14856 wxEventType arg4 = (wxEventType) wxEVT_NULL ;
14857 bool result;
14858 PyObject * obj0 = 0 ;
14859 PyObject * obj1 = 0 ;
14860 PyObject * obj2 = 0 ;
14861 PyObject * obj3 = 0 ;
14862 char *kwnames[] = {
14863 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL
14864 };
14865
14866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14867 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
14868 if (SWIG_arg_fail(1)) SWIG_fail;
14869 {
14870 arg2 = (int)(SWIG_As_int(obj1));
14871 if (SWIG_arg_fail(2)) SWIG_fail;
14872 }
14873 if (obj2) {
14874 {
14875 arg3 = (int)(SWIG_As_int(obj2));
14876 if (SWIG_arg_fail(3)) SWIG_fail;
14877 }
14878 }
14879 if (obj3) {
14880 {
14881 arg4 = (wxEventType)(SWIG_As_int(obj3));
14882 if (SWIG_arg_fail(4)) SWIG_fail;
14883 }
14884 }
14885 {
14886 PyThreadState* __tstate = wxPyBeginAllowThreads();
14887 result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4);
14888
14889 wxPyEndAllowThreads(__tstate);
14890 if (PyErr_Occurred()) SWIG_fail;
14891 }
14892 {
14893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14894 }
14895 return resultobj;
14896 fail:
14897 return NULL;
14898 }
14899
14900
14901 static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) {
14902 PyObject *resultobj;
14903 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
14904 PyObject *arg2 = (PyObject *) 0 ;
14905 bool arg3 = (bool) true ;
14906 PyObject * obj0 = 0 ;
14907 PyObject * obj1 = 0 ;
14908 PyObject * obj2 = 0 ;
14909 char *kwnames[] = {
14910 (char *) "self",(char *) "_self",(char *) "incref", NULL
14911 };
14912
14913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:EvtHandler__setOORInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14914 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
14915 if (SWIG_arg_fail(1)) SWIG_fail;
14916 arg2 = obj1;
14917 if (obj2) {
14918 {
14919 arg3 = (bool)(SWIG_As_bool(obj2));
14920 if (SWIG_arg_fail(3)) SWIG_fail;
14921 }
14922 }
14923 {
14924 PyThreadState* __tstate = wxPyBeginAllowThreads();
14925 wxEvtHandler__setOORInfo(arg1,arg2,arg3);
14926
14927 wxPyEndAllowThreads(__tstate);
14928 if (PyErr_Occurred()) SWIG_fail;
14929 }
14930 Py_INCREF(Py_None); resultobj = Py_None;
14931 return resultobj;
14932 fail:
14933 return NULL;
14934 }
14935
14936
14937 static PyObject * EvtHandler_swigregister(PyObject *, PyObject *args) {
14938 PyObject *obj;
14939 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14940 SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj);
14941 Py_INCREF(obj);
14942 return Py_BuildValue((char *)"");
14943 }
14944 static PyObject *_wrap_NewEventType(PyObject *, PyObject *args, PyObject *kwargs) {
14945 PyObject *resultobj;
14946 wxEventType result;
14947 char *kwnames[] = {
14948 NULL
14949 };
14950
14951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail;
14952 {
14953 PyThreadState* __tstate = wxPyBeginAllowThreads();
14954 result = (wxEventType)wxNewEventType();
14955
14956 wxPyEndAllowThreads(__tstate);
14957 if (PyErr_Occurred()) SWIG_fail;
14958 }
14959 {
14960 resultobj = SWIG_From_int((int)(result));
14961 }
14962 return resultobj;
14963 fail:
14964 return NULL;
14965 }
14966
14967
14968 static PyObject *_wrap_delete_Event(PyObject *, PyObject *args, PyObject *kwargs) {
14969 PyObject *resultobj;
14970 wxEvent *arg1 = (wxEvent *) 0 ;
14971 PyObject * obj0 = 0 ;
14972 char *kwnames[] = {
14973 (char *) "self", NULL
14974 };
14975
14976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail;
14977 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
14978 if (SWIG_arg_fail(1)) SWIG_fail;
14979 {
14980 PyThreadState* __tstate = wxPyBeginAllowThreads();
14981 delete arg1;
14982
14983 wxPyEndAllowThreads(__tstate);
14984 if (PyErr_Occurred()) SWIG_fail;
14985 }
14986 Py_INCREF(Py_None); resultobj = Py_None;
14987 return resultobj;
14988 fail:
14989 return NULL;
14990 }
14991
14992
14993 static PyObject *_wrap_Event_SetEventType(PyObject *, PyObject *args, PyObject *kwargs) {
14994 PyObject *resultobj;
14995 wxEvent *arg1 = (wxEvent *) 0 ;
14996 wxEventType arg2 ;
14997 PyObject * obj0 = 0 ;
14998 PyObject * obj1 = 0 ;
14999 char *kwnames[] = {
15000 (char *) "self",(char *) "typ", NULL
15001 };
15002
15003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail;
15004 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15005 if (SWIG_arg_fail(1)) SWIG_fail;
15006 {
15007 arg2 = (wxEventType)(SWIG_As_int(obj1));
15008 if (SWIG_arg_fail(2)) SWIG_fail;
15009 }
15010 {
15011 PyThreadState* __tstate = wxPyBeginAllowThreads();
15012 (arg1)->SetEventType(arg2);
15013
15014 wxPyEndAllowThreads(__tstate);
15015 if (PyErr_Occurred()) SWIG_fail;
15016 }
15017 Py_INCREF(Py_None); resultobj = Py_None;
15018 return resultobj;
15019 fail:
15020 return NULL;
15021 }
15022
15023
15024 static PyObject *_wrap_Event_GetEventType(PyObject *, PyObject *args, PyObject *kwargs) {
15025 PyObject *resultobj;
15026 wxEvent *arg1 = (wxEvent *) 0 ;
15027 wxEventType result;
15028 PyObject * obj0 = 0 ;
15029 char *kwnames[] = {
15030 (char *) "self", NULL
15031 };
15032
15033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail;
15034 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15035 if (SWIG_arg_fail(1)) SWIG_fail;
15036 {
15037 PyThreadState* __tstate = wxPyBeginAllowThreads();
15038 result = (wxEventType)((wxEvent const *)arg1)->GetEventType();
15039
15040 wxPyEndAllowThreads(__tstate);
15041 if (PyErr_Occurred()) SWIG_fail;
15042 }
15043 {
15044 resultobj = SWIG_From_int((int)(result));
15045 }
15046 return resultobj;
15047 fail:
15048 return NULL;
15049 }
15050
15051
15052 static PyObject *_wrap_Event_GetEventObject(PyObject *, PyObject *args, PyObject *kwargs) {
15053 PyObject *resultobj;
15054 wxEvent *arg1 = (wxEvent *) 0 ;
15055 wxObject *result;
15056 PyObject * obj0 = 0 ;
15057 char *kwnames[] = {
15058 (char *) "self", NULL
15059 };
15060
15061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail;
15062 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15063 if (SWIG_arg_fail(1)) SWIG_fail;
15064 {
15065 PyThreadState* __tstate = wxPyBeginAllowThreads();
15066 result = (wxObject *)((wxEvent const *)arg1)->GetEventObject();
15067
15068 wxPyEndAllowThreads(__tstate);
15069 if (PyErr_Occurred()) SWIG_fail;
15070 }
15071 {
15072 resultobj = wxPyMake_wxObject(result, 0);
15073 }
15074 return resultobj;
15075 fail:
15076 return NULL;
15077 }
15078
15079
15080 static PyObject *_wrap_Event_SetEventObject(PyObject *, PyObject *args, PyObject *kwargs) {
15081 PyObject *resultobj;
15082 wxEvent *arg1 = (wxEvent *) 0 ;
15083 wxObject *arg2 = (wxObject *) 0 ;
15084 PyObject * obj0 = 0 ;
15085 PyObject * obj1 = 0 ;
15086 char *kwnames[] = {
15087 (char *) "self",(char *) "obj", NULL
15088 };
15089
15090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail;
15091 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15092 if (SWIG_arg_fail(1)) SWIG_fail;
15093 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0);
15094 if (SWIG_arg_fail(2)) SWIG_fail;
15095 {
15096 PyThreadState* __tstate = wxPyBeginAllowThreads();
15097 (arg1)->SetEventObject(arg2);
15098
15099 wxPyEndAllowThreads(__tstate);
15100 if (PyErr_Occurred()) SWIG_fail;
15101 }
15102 Py_INCREF(Py_None); resultobj = Py_None;
15103 return resultobj;
15104 fail:
15105 return NULL;
15106 }
15107
15108
15109 static PyObject *_wrap_Event_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
15110 PyObject *resultobj;
15111 wxEvent *arg1 = (wxEvent *) 0 ;
15112 long result;
15113 PyObject * obj0 = 0 ;
15114 char *kwnames[] = {
15115 (char *) "self", NULL
15116 };
15117
15118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail;
15119 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15120 if (SWIG_arg_fail(1)) SWIG_fail;
15121 {
15122 PyThreadState* __tstate = wxPyBeginAllowThreads();
15123 result = (long)((wxEvent const *)arg1)->GetTimestamp();
15124
15125 wxPyEndAllowThreads(__tstate);
15126 if (PyErr_Occurred()) SWIG_fail;
15127 }
15128 {
15129 resultobj = SWIG_From_long((long)(result));
15130 }
15131 return resultobj;
15132 fail:
15133 return NULL;
15134 }
15135
15136
15137 static PyObject *_wrap_Event_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
15138 PyObject *resultobj;
15139 wxEvent *arg1 = (wxEvent *) 0 ;
15140 long arg2 = (long) 0 ;
15141 PyObject * obj0 = 0 ;
15142 PyObject * obj1 = 0 ;
15143 char *kwnames[] = {
15144 (char *) "self",(char *) "ts", NULL
15145 };
15146
15147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail;
15148 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15149 if (SWIG_arg_fail(1)) SWIG_fail;
15150 if (obj1) {
15151 {
15152 arg2 = (long)(SWIG_As_long(obj1));
15153 if (SWIG_arg_fail(2)) SWIG_fail;
15154 }
15155 }
15156 {
15157 PyThreadState* __tstate = wxPyBeginAllowThreads();
15158 (arg1)->SetTimestamp(arg2);
15159
15160 wxPyEndAllowThreads(__tstate);
15161 if (PyErr_Occurred()) SWIG_fail;
15162 }
15163 Py_INCREF(Py_None); resultobj = Py_None;
15164 return resultobj;
15165 fail:
15166 return NULL;
15167 }
15168
15169
15170 static PyObject *_wrap_Event_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
15171 PyObject *resultobj;
15172 wxEvent *arg1 = (wxEvent *) 0 ;
15173 int result;
15174 PyObject * obj0 = 0 ;
15175 char *kwnames[] = {
15176 (char *) "self", NULL
15177 };
15178
15179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail;
15180 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15181 if (SWIG_arg_fail(1)) SWIG_fail;
15182 {
15183 PyThreadState* __tstate = wxPyBeginAllowThreads();
15184 result = (int)((wxEvent const *)arg1)->GetId();
15185
15186 wxPyEndAllowThreads(__tstate);
15187 if (PyErr_Occurred()) SWIG_fail;
15188 }
15189 {
15190 resultobj = SWIG_From_int((int)(result));
15191 }
15192 return resultobj;
15193 fail:
15194 return NULL;
15195 }
15196
15197
15198 static PyObject *_wrap_Event_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
15199 PyObject *resultobj;
15200 wxEvent *arg1 = (wxEvent *) 0 ;
15201 int arg2 ;
15202 PyObject * obj0 = 0 ;
15203 PyObject * obj1 = 0 ;
15204 char *kwnames[] = {
15205 (char *) "self",(char *) "Id", NULL
15206 };
15207
15208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail;
15209 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15210 if (SWIG_arg_fail(1)) SWIG_fail;
15211 {
15212 arg2 = (int)(SWIG_As_int(obj1));
15213 if (SWIG_arg_fail(2)) SWIG_fail;
15214 }
15215 {
15216 PyThreadState* __tstate = wxPyBeginAllowThreads();
15217 (arg1)->SetId(arg2);
15218
15219 wxPyEndAllowThreads(__tstate);
15220 if (PyErr_Occurred()) SWIG_fail;
15221 }
15222 Py_INCREF(Py_None); resultobj = Py_None;
15223 return resultobj;
15224 fail:
15225 return NULL;
15226 }
15227
15228
15229 static PyObject *_wrap_Event_IsCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15230 PyObject *resultobj;
15231 wxEvent *arg1 = (wxEvent *) 0 ;
15232 bool result;
15233 PyObject * obj0 = 0 ;
15234 char *kwnames[] = {
15235 (char *) "self", NULL
15236 };
15237
15238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail;
15239 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15240 if (SWIG_arg_fail(1)) SWIG_fail;
15241 {
15242 PyThreadState* __tstate = wxPyBeginAllowThreads();
15243 result = (bool)((wxEvent const *)arg1)->IsCommandEvent();
15244
15245 wxPyEndAllowThreads(__tstate);
15246 if (PyErr_Occurred()) SWIG_fail;
15247 }
15248 {
15249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15250 }
15251 return resultobj;
15252 fail:
15253 return NULL;
15254 }
15255
15256
15257 static PyObject *_wrap_Event_Skip(PyObject *, PyObject *args, PyObject *kwargs) {
15258 PyObject *resultobj;
15259 wxEvent *arg1 = (wxEvent *) 0 ;
15260 bool arg2 = (bool) true ;
15261 PyObject * obj0 = 0 ;
15262 PyObject * obj1 = 0 ;
15263 char *kwnames[] = {
15264 (char *) "self",(char *) "skip", NULL
15265 };
15266
15267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail;
15268 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15269 if (SWIG_arg_fail(1)) SWIG_fail;
15270 if (obj1) {
15271 {
15272 arg2 = (bool)(SWIG_As_bool(obj1));
15273 if (SWIG_arg_fail(2)) SWIG_fail;
15274 }
15275 }
15276 {
15277 PyThreadState* __tstate = wxPyBeginAllowThreads();
15278 (arg1)->Skip(arg2);
15279
15280 wxPyEndAllowThreads(__tstate);
15281 if (PyErr_Occurred()) SWIG_fail;
15282 }
15283 Py_INCREF(Py_None); resultobj = Py_None;
15284 return resultobj;
15285 fail:
15286 return NULL;
15287 }
15288
15289
15290 static PyObject *_wrap_Event_GetSkipped(PyObject *, PyObject *args, PyObject *kwargs) {
15291 PyObject *resultobj;
15292 wxEvent *arg1 = (wxEvent *) 0 ;
15293 bool result;
15294 PyObject * obj0 = 0 ;
15295 char *kwnames[] = {
15296 (char *) "self", NULL
15297 };
15298
15299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail;
15300 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15301 if (SWIG_arg_fail(1)) SWIG_fail;
15302 {
15303 PyThreadState* __tstate = wxPyBeginAllowThreads();
15304 result = (bool)((wxEvent const *)arg1)->GetSkipped();
15305
15306 wxPyEndAllowThreads(__tstate);
15307 if (PyErr_Occurred()) SWIG_fail;
15308 }
15309 {
15310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15311 }
15312 return resultobj;
15313 fail:
15314 return NULL;
15315 }
15316
15317
15318 static PyObject *_wrap_Event_ShouldPropagate(PyObject *, PyObject *args, PyObject *kwargs) {
15319 PyObject *resultobj;
15320 wxEvent *arg1 = (wxEvent *) 0 ;
15321 bool result;
15322 PyObject * obj0 = 0 ;
15323 char *kwnames[] = {
15324 (char *) "self", NULL
15325 };
15326
15327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail;
15328 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15329 if (SWIG_arg_fail(1)) SWIG_fail;
15330 {
15331 PyThreadState* __tstate = wxPyBeginAllowThreads();
15332 result = (bool)((wxEvent const *)arg1)->ShouldPropagate();
15333
15334 wxPyEndAllowThreads(__tstate);
15335 if (PyErr_Occurred()) SWIG_fail;
15336 }
15337 {
15338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15339 }
15340 return resultobj;
15341 fail:
15342 return NULL;
15343 }
15344
15345
15346 static PyObject *_wrap_Event_StopPropagation(PyObject *, PyObject *args, PyObject *kwargs) {
15347 PyObject *resultobj;
15348 wxEvent *arg1 = (wxEvent *) 0 ;
15349 int result;
15350 PyObject * obj0 = 0 ;
15351 char *kwnames[] = {
15352 (char *) "self", NULL
15353 };
15354
15355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail;
15356 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15357 if (SWIG_arg_fail(1)) SWIG_fail;
15358 {
15359 PyThreadState* __tstate = wxPyBeginAllowThreads();
15360 result = (int)(arg1)->StopPropagation();
15361
15362 wxPyEndAllowThreads(__tstate);
15363 if (PyErr_Occurred()) SWIG_fail;
15364 }
15365 {
15366 resultobj = SWIG_From_int((int)(result));
15367 }
15368 return resultobj;
15369 fail:
15370 return NULL;
15371 }
15372
15373
15374 static PyObject *_wrap_Event_ResumePropagation(PyObject *, PyObject *args, PyObject *kwargs) {
15375 PyObject *resultobj;
15376 wxEvent *arg1 = (wxEvent *) 0 ;
15377 int arg2 ;
15378 PyObject * obj0 = 0 ;
15379 PyObject * obj1 = 0 ;
15380 char *kwnames[] = {
15381 (char *) "self",(char *) "propagationLevel", NULL
15382 };
15383
15384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail;
15385 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15386 if (SWIG_arg_fail(1)) SWIG_fail;
15387 {
15388 arg2 = (int)(SWIG_As_int(obj1));
15389 if (SWIG_arg_fail(2)) SWIG_fail;
15390 }
15391 {
15392 PyThreadState* __tstate = wxPyBeginAllowThreads();
15393 (arg1)->ResumePropagation(arg2);
15394
15395 wxPyEndAllowThreads(__tstate);
15396 if (PyErr_Occurred()) SWIG_fail;
15397 }
15398 Py_INCREF(Py_None); resultobj = Py_None;
15399 return resultobj;
15400 fail:
15401 return NULL;
15402 }
15403
15404
15405 static PyObject *_wrap_Event_Clone(PyObject *, PyObject *args, PyObject *kwargs) {
15406 PyObject *resultobj;
15407 wxEvent *arg1 = (wxEvent *) 0 ;
15408 wxEvent *result;
15409 PyObject * obj0 = 0 ;
15410 char *kwnames[] = {
15411 (char *) "self", NULL
15412 };
15413
15414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail;
15415 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15416 if (SWIG_arg_fail(1)) SWIG_fail;
15417 {
15418 PyThreadState* __tstate = wxPyBeginAllowThreads();
15419 result = (wxEvent *)(arg1)->Clone();
15420
15421 wxPyEndAllowThreads(__tstate);
15422 if (PyErr_Occurred()) SWIG_fail;
15423 }
15424 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0);
15425 return resultobj;
15426 fail:
15427 return NULL;
15428 }
15429
15430
15431 static PyObject * Event_swigregister(PyObject *, PyObject *args) {
15432 PyObject *obj;
15433 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15434 SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj);
15435 Py_INCREF(obj);
15436 return Py_BuildValue((char *)"");
15437 }
15438 static PyObject *_wrap_new_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
15439 PyObject *resultobj;
15440 wxEvent *arg1 = 0 ;
15441 wxPropagationDisabler *result;
15442 PyObject * obj0 = 0 ;
15443 char *kwnames[] = {
15444 (char *) "event", NULL
15445 };
15446
15447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail;
15448 {
15449 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15450 if (SWIG_arg_fail(1)) SWIG_fail;
15451 if (arg1 == NULL) {
15452 SWIG_null_ref("wxEvent");
15453 }
15454 if (SWIG_arg_fail(1)) SWIG_fail;
15455 }
15456 {
15457 PyThreadState* __tstate = wxPyBeginAllowThreads();
15458 result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1);
15459
15460 wxPyEndAllowThreads(__tstate);
15461 if (PyErr_Occurred()) SWIG_fail;
15462 }
15463 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1);
15464 return resultobj;
15465 fail:
15466 return NULL;
15467 }
15468
15469
15470 static PyObject *_wrap_delete_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
15471 PyObject *resultobj;
15472 wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ;
15473 PyObject * obj0 = 0 ;
15474 char *kwnames[] = {
15475 (char *) "self", NULL
15476 };
15477
15478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail;
15479 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropagationDisabler, SWIG_POINTER_EXCEPTION | 0);
15480 if (SWIG_arg_fail(1)) SWIG_fail;
15481 {
15482 PyThreadState* __tstate = wxPyBeginAllowThreads();
15483 delete arg1;
15484
15485 wxPyEndAllowThreads(__tstate);
15486 if (PyErr_Occurred()) SWIG_fail;
15487 }
15488 Py_INCREF(Py_None); resultobj = Py_None;
15489 return resultobj;
15490 fail:
15491 return NULL;
15492 }
15493
15494
15495 static PyObject * PropagationDisabler_swigregister(PyObject *, PyObject *args) {
15496 PyObject *obj;
15497 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15498 SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj);
15499 Py_INCREF(obj);
15500 return Py_BuildValue((char *)"");
15501 }
15502 static PyObject *_wrap_new_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) {
15503 PyObject *resultobj;
15504 wxEvent *arg1 = 0 ;
15505 wxPropagateOnce *result;
15506 PyObject * obj0 = 0 ;
15507 char *kwnames[] = {
15508 (char *) "event", NULL
15509 };
15510
15511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail;
15512 {
15513 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
15514 if (SWIG_arg_fail(1)) SWIG_fail;
15515 if (arg1 == NULL) {
15516 SWIG_null_ref("wxEvent");
15517 }
15518 if (SWIG_arg_fail(1)) SWIG_fail;
15519 }
15520 {
15521 PyThreadState* __tstate = wxPyBeginAllowThreads();
15522 result = (wxPropagateOnce *)new wxPropagateOnce(*arg1);
15523
15524 wxPyEndAllowThreads(__tstate);
15525 if (PyErr_Occurred()) SWIG_fail;
15526 }
15527 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1);
15528 return resultobj;
15529 fail:
15530 return NULL;
15531 }
15532
15533
15534 static PyObject *_wrap_delete_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) {
15535 PyObject *resultobj;
15536 wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ;
15537 PyObject * obj0 = 0 ;
15538 char *kwnames[] = {
15539 (char *) "self", NULL
15540 };
15541
15542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail;
15543 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropagateOnce, SWIG_POINTER_EXCEPTION | 0);
15544 if (SWIG_arg_fail(1)) SWIG_fail;
15545 {
15546 PyThreadState* __tstate = wxPyBeginAllowThreads();
15547 delete arg1;
15548
15549 wxPyEndAllowThreads(__tstate);
15550 if (PyErr_Occurred()) SWIG_fail;
15551 }
15552 Py_INCREF(Py_None); resultobj = Py_None;
15553 return resultobj;
15554 fail:
15555 return NULL;
15556 }
15557
15558
15559 static PyObject * PropagateOnce_swigregister(PyObject *, PyObject *args) {
15560 PyObject *obj;
15561 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15562 SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj);
15563 Py_INCREF(obj);
15564 return Py_BuildValue((char *)"");
15565 }
15566 static PyObject *_wrap_new_CommandEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15567 PyObject *resultobj;
15568 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15569 int arg2 = (int) 0 ;
15570 wxCommandEvent *result;
15571 PyObject * obj0 = 0 ;
15572 PyObject * obj1 = 0 ;
15573 char *kwnames[] = {
15574 (char *) "commandType",(char *) "winid", NULL
15575 };
15576
15577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail;
15578 if (obj0) {
15579 {
15580 arg1 = (wxEventType)(SWIG_As_int(obj0));
15581 if (SWIG_arg_fail(1)) SWIG_fail;
15582 }
15583 }
15584 if (obj1) {
15585 {
15586 arg2 = (int)(SWIG_As_int(obj1));
15587 if (SWIG_arg_fail(2)) SWIG_fail;
15588 }
15589 }
15590 {
15591 PyThreadState* __tstate = wxPyBeginAllowThreads();
15592 result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2);
15593
15594 wxPyEndAllowThreads(__tstate);
15595 if (PyErr_Occurred()) SWIG_fail;
15596 }
15597 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1);
15598 return resultobj;
15599 fail:
15600 return NULL;
15601 }
15602
15603
15604 static PyObject *_wrap_CommandEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15605 PyObject *resultobj;
15606 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
15607 int result;
15608 PyObject * obj0 = 0 ;
15609 char *kwnames[] = {
15610 (char *) "self", NULL
15611 };
15612
15613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail;
15614 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0);
15615 if (SWIG_arg_fail(1)) SWIG_fail;
15616 {
15617 PyThreadState* __tstate = wxPyBeginAllowThreads();
15618 result = (int)((wxCommandEvent const *)arg1)->GetSelection();
15619
15620 wxPyEndAllowThreads(__tstate);
15621 if (PyErr_Occurred()) SWIG_fail;
15622 }
15623 {
15624 resultobj = SWIG_From_int((int)(result));
15625 }
15626 return resultobj;
15627 fail:
15628 return NULL;
15629 }
15630
15631
15632 static PyObject *_wrap_CommandEvent_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
15633 PyObject *resultobj;
15634 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
15635 wxString *arg2 = 0 ;
15636 bool temp2 = false ;
15637 PyObject * obj0 = 0 ;
15638 PyObject * obj1 = 0 ;
15639 char *kwnames[] = {
15640 (char *) "self",(char *) "s", NULL
15641 };
15642
15643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail;
15644 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0);
15645 if (SWIG_arg_fail(1)) SWIG_fail;
15646 {
15647 arg2 = wxString_in_helper(obj1);
15648 if (arg2 == NULL) SWIG_fail;
15649 temp2 = true;
15650 }
15651 {
15652 PyThreadState* __tstate = wxPyBeginAllowThreads();
15653 (arg1)->SetString((wxString const &)*arg2);
15654
15655 wxPyEndAllowThreads(__tstate);
15656 if (PyErr_Occurred()) SWIG_fail;
15657 }
15658 Py_INCREF(Py_None); resultobj = Py_None;
15659 {
15660 if (temp2)
15661 delete arg2;
15662 }
15663 return resultobj;
15664 fail:
15665 {
15666 if (temp2)
15667 delete arg2;
15668 }
15669 return NULL;
15670 }
15671
15672
15673 static PyObject *_wrap_CommandEvent_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
15674 PyObject *resultobj;
15675 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
15676 wxString result;
15677 PyObject * obj0 = 0 ;
15678 char *kwnames[] = {
15679 (char *) "self", NULL
15680 };
15681
15682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail;
15683 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0);
15684 if (SWIG_arg_fail(1)) SWIG_fail;
15685 {
15686 PyThreadState* __tstate = wxPyBeginAllowThreads();
15687 result = ((wxCommandEvent const *)arg1)->GetString();
15688
15689 wxPyEndAllowThreads(__tstate);
15690 if (PyErr_Occurred()) SWIG_fail;
15691 }
15692 {
15693 #if wxUSE_UNICODE
15694 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15695 #else
15696 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15697 #endif
15698 }
15699 return resultobj;
15700 fail:
15701 return NULL;
15702 }
15703
15704
15705 static PyObject *_wrap_CommandEvent_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
15706 PyObject *resultobj;
15707 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
15708 bool result;
15709 PyObject * obj0 = 0 ;
15710 char *kwnames[] = {
15711 (char *) "self", NULL
15712 };
15713
15714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail;
15715 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0);
15716 if (SWIG_arg_fail(1)) SWIG_fail;
15717 {
15718 PyThreadState* __tstate = wxPyBeginAllowThreads();
15719 result = (bool)((wxCommandEvent const *)arg1)->IsChecked();
15720
15721 wxPyEndAllowThreads(__tstate);
15722 if (PyErr_Occurred()) SWIG_fail;
15723 }
15724 {
15725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15726 }
15727 return resultobj;
15728 fail:
15729 return NULL;
15730 }
15731
15732
15733 static PyObject *_wrap_CommandEvent_IsSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15734 PyObject *resultobj;
15735 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
15736 bool result;
15737 PyObject * obj0 = 0 ;
15738 char *kwnames[] = {
15739 (char *) "self", NULL
15740 };
15741
15742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail;
15743 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0);
15744 if (SWIG_arg_fail(1)) SWIG_fail;
15745 {
15746 PyThreadState* __tstate = wxPyBeginAllowThreads();
15747 result = (bool)((wxCommandEvent const *)arg1)->IsSelection();
15748
15749 wxPyEndAllowThreads(__tstate);
15750 if (PyErr_Occurred()) SWIG_fail;
15751 }
15752 {
15753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15754 }
15755 return resultobj;
15756 fail:
15757 return NULL;
15758 }
15759
15760
15761 static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) {
15762 PyObject *resultobj;
15763 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
15764 long arg2 ;
15765 PyObject * obj0 = 0 ;
15766 PyObject * obj1 = 0 ;
15767 char *kwnames[] = {
15768 (char *) "self",(char *) "extraLong", NULL
15769 };
15770
15771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail;
15772 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0);
15773 if (SWIG_arg_fail(1)) SWIG_fail;
15774 {
15775 arg2 = (long)(SWIG_As_long(obj1));
15776 if (SWIG_arg_fail(2)) SWIG_fail;
15777 }
15778 {
15779 PyThreadState* __tstate = wxPyBeginAllowThreads();
15780 (arg1)->SetExtraLong(arg2);
15781
15782 wxPyEndAllowThreads(__tstate);
15783 if (PyErr_Occurred()) SWIG_fail;
15784 }
15785 Py_INCREF(Py_None); resultobj = Py_None;
15786 return resultobj;
15787 fail:
15788 return NULL;
15789 }
15790
15791
15792 static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) {
15793 PyObject *resultobj;
15794 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
15795 long result;
15796 PyObject * obj0 = 0 ;
15797 char *kwnames[] = {
15798 (char *) "self", NULL
15799 };
15800
15801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail;
15802 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0);
15803 if (SWIG_arg_fail(1)) SWIG_fail;
15804 {
15805 PyThreadState* __tstate = wxPyBeginAllowThreads();
15806 result = (long)((wxCommandEvent const *)arg1)->GetExtraLong();
15807
15808 wxPyEndAllowThreads(__tstate);
15809 if (PyErr_Occurred()) SWIG_fail;
15810 }
15811 {
15812 resultobj = SWIG_From_long((long)(result));
15813 }
15814 return resultobj;
15815 fail:
15816 return NULL;
15817 }
15818
15819
15820 static PyObject *_wrap_CommandEvent_SetInt(PyObject *, PyObject *args, PyObject *kwargs) {
15821 PyObject *resultobj;
15822 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
15823 int arg2 ;
15824 PyObject * obj0 = 0 ;
15825 PyObject * obj1 = 0 ;
15826 char *kwnames[] = {
15827 (char *) "self",(char *) "i", NULL
15828 };
15829
15830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail;
15831 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0);
15832 if (SWIG_arg_fail(1)) SWIG_fail;
15833 {
15834 arg2 = (int)(SWIG_As_int(obj1));
15835 if (SWIG_arg_fail(2)) SWIG_fail;
15836 }
15837 {
15838 PyThreadState* __tstate = wxPyBeginAllowThreads();
15839 (arg1)->SetInt(arg2);
15840
15841 wxPyEndAllowThreads(__tstate);
15842 if (PyErr_Occurred()) SWIG_fail;
15843 }
15844 Py_INCREF(Py_None); resultobj = Py_None;
15845 return resultobj;
15846 fail:
15847 return NULL;
15848 }
15849
15850
15851 static PyObject *_wrap_CommandEvent_GetInt(PyObject *, PyObject *args, PyObject *kwargs) {
15852 PyObject *resultobj;
15853 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
15854 long result;
15855 PyObject * obj0 = 0 ;
15856 char *kwnames[] = {
15857 (char *) "self", NULL
15858 };
15859
15860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail;
15861 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0);
15862 if (SWIG_arg_fail(1)) SWIG_fail;
15863 {
15864 PyThreadState* __tstate = wxPyBeginAllowThreads();
15865 result = (long)((wxCommandEvent const *)arg1)->GetInt();
15866
15867 wxPyEndAllowThreads(__tstate);
15868 if (PyErr_Occurred()) SWIG_fail;
15869 }
15870 {
15871 resultobj = SWIG_From_long((long)(result));
15872 }
15873 return resultobj;
15874 fail:
15875 return NULL;
15876 }
15877
15878
15879 static PyObject *_wrap_CommandEvent_Clone(PyObject *, PyObject *args, PyObject *kwargs) {
15880 PyObject *resultobj;
15881 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
15882 wxEvent *result;
15883 PyObject * obj0 = 0 ;
15884 char *kwnames[] = {
15885 (char *) "self", NULL
15886 };
15887
15888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail;
15889 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0);
15890 if (SWIG_arg_fail(1)) SWIG_fail;
15891 {
15892 PyThreadState* __tstate = wxPyBeginAllowThreads();
15893 result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone();
15894
15895 wxPyEndAllowThreads(__tstate);
15896 if (PyErr_Occurred()) SWIG_fail;
15897 }
15898 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0);
15899 return resultobj;
15900 fail:
15901 return NULL;
15902 }
15903
15904
15905 static PyObject * CommandEvent_swigregister(PyObject *, PyObject *args) {
15906 PyObject *obj;
15907 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15908 SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj);
15909 Py_INCREF(obj);
15910 return Py_BuildValue((char *)"");
15911 }
15912 static PyObject *_wrap_new_NotifyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15913 PyObject *resultobj;
15914 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15915 int arg2 = (int) 0 ;
15916 wxNotifyEvent *result;
15917 PyObject * obj0 = 0 ;
15918 PyObject * obj1 = 0 ;
15919 char *kwnames[] = {
15920 (char *) "commandType",(char *) "winid", NULL
15921 };
15922
15923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail;
15924 if (obj0) {
15925 {
15926 arg1 = (wxEventType)(SWIG_As_int(obj0));
15927 if (SWIG_arg_fail(1)) SWIG_fail;
15928 }
15929 }
15930 if (obj1) {
15931 {
15932 arg2 = (int)(SWIG_As_int(obj1));
15933 if (SWIG_arg_fail(2)) SWIG_fail;
15934 }
15935 }
15936 {
15937 PyThreadState* __tstate = wxPyBeginAllowThreads();
15938 result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2);
15939
15940 wxPyEndAllowThreads(__tstate);
15941 if (PyErr_Occurred()) SWIG_fail;
15942 }
15943 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1);
15944 return resultobj;
15945 fail:
15946 return NULL;
15947 }
15948
15949
15950 static PyObject *_wrap_NotifyEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) {
15951 PyObject *resultobj;
15952 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
15953 PyObject * obj0 = 0 ;
15954 char *kwnames[] = {
15955 (char *) "self", NULL
15956 };
15957
15958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail;
15959 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotifyEvent, SWIG_POINTER_EXCEPTION | 0);
15960 if (SWIG_arg_fail(1)) SWIG_fail;
15961 {
15962 PyThreadState* __tstate = wxPyBeginAllowThreads();
15963 (arg1)->Veto();
15964
15965 wxPyEndAllowThreads(__tstate);
15966 if (PyErr_Occurred()) SWIG_fail;
15967 }
15968 Py_INCREF(Py_None); resultobj = Py_None;
15969 return resultobj;
15970 fail:
15971 return NULL;
15972 }
15973
15974
15975 static PyObject *_wrap_NotifyEvent_Allow(PyObject *, PyObject *args, PyObject *kwargs) {
15976 PyObject *resultobj;
15977 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
15978 PyObject * obj0 = 0 ;
15979 char *kwnames[] = {
15980 (char *) "self", NULL
15981 };
15982
15983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail;
15984 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotifyEvent, SWIG_POINTER_EXCEPTION | 0);
15985 if (SWIG_arg_fail(1)) SWIG_fail;
15986 {
15987 PyThreadState* __tstate = wxPyBeginAllowThreads();
15988 (arg1)->Allow();
15989
15990 wxPyEndAllowThreads(__tstate);
15991 if (PyErr_Occurred()) SWIG_fail;
15992 }
15993 Py_INCREF(Py_None); resultobj = Py_None;
15994 return resultobj;
15995 fail:
15996 return NULL;
15997 }
15998
15999
16000 static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *, PyObject *args, PyObject *kwargs) {
16001 PyObject *resultobj;
16002 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
16003 bool result;
16004 PyObject * obj0 = 0 ;
16005 char *kwnames[] = {
16006 (char *) "self", NULL
16007 };
16008
16009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail;
16010 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotifyEvent, SWIG_POINTER_EXCEPTION | 0);
16011 if (SWIG_arg_fail(1)) SWIG_fail;
16012 {
16013 PyThreadState* __tstate = wxPyBeginAllowThreads();
16014 result = (bool)(arg1)->IsAllowed();
16015
16016 wxPyEndAllowThreads(__tstate);
16017 if (PyErr_Occurred()) SWIG_fail;
16018 }
16019 {
16020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16021 }
16022 return resultobj;
16023 fail:
16024 return NULL;
16025 }
16026
16027
16028 static PyObject * NotifyEvent_swigregister(PyObject *, PyObject *args) {
16029 PyObject *obj;
16030 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16031 SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj);
16032 Py_INCREF(obj);
16033 return Py_BuildValue((char *)"");
16034 }
16035 static PyObject *_wrap_new_ScrollEvent(PyObject *, PyObject *args, PyObject *kwargs) {
16036 PyObject *resultobj;
16037 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16038 int arg2 = (int) 0 ;
16039 int arg3 = (int) 0 ;
16040 int arg4 = (int) 0 ;
16041 wxScrollEvent *result;
16042 PyObject * obj0 = 0 ;
16043 PyObject * obj1 = 0 ;
16044 PyObject * obj2 = 0 ;
16045 PyObject * obj3 = 0 ;
16046 char *kwnames[] = {
16047 (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL
16048 };
16049
16050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16051 if (obj0) {
16052 {
16053 arg1 = (wxEventType)(SWIG_As_int(obj0));
16054 if (SWIG_arg_fail(1)) SWIG_fail;
16055 }
16056 }
16057 if (obj1) {
16058 {
16059 arg2 = (int)(SWIG_As_int(obj1));
16060 if (SWIG_arg_fail(2)) SWIG_fail;
16061 }
16062 }
16063 if (obj2) {
16064 {
16065 arg3 = (int)(SWIG_As_int(obj2));
16066 if (SWIG_arg_fail(3)) SWIG_fail;
16067 }
16068 }
16069 if (obj3) {
16070 {
16071 arg4 = (int)(SWIG_As_int(obj3));
16072 if (SWIG_arg_fail(4)) SWIG_fail;
16073 }
16074 }
16075 {
16076 PyThreadState* __tstate = wxPyBeginAllowThreads();
16077 result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4);
16078
16079 wxPyEndAllowThreads(__tstate);
16080 if (PyErr_Occurred()) SWIG_fail;
16081 }
16082 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1);
16083 return resultobj;
16084 fail:
16085 return NULL;
16086 }
16087
16088
16089 static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
16090 PyObject *resultobj;
16091 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
16092 int result;
16093 PyObject * obj0 = 0 ;
16094 char *kwnames[] = {
16095 (char *) "self", NULL
16096 };
16097
16098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail;
16099 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_EXCEPTION | 0);
16100 if (SWIG_arg_fail(1)) SWIG_fail;
16101 {
16102 PyThreadState* __tstate = wxPyBeginAllowThreads();
16103 result = (int)((wxScrollEvent const *)arg1)->GetOrientation();
16104
16105 wxPyEndAllowThreads(__tstate);
16106 if (PyErr_Occurred()) SWIG_fail;
16107 }
16108 {
16109 resultobj = SWIG_From_int((int)(result));
16110 }
16111 return resultobj;
16112 fail:
16113 return NULL;
16114 }
16115
16116
16117 static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
16118 PyObject *resultobj;
16119 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
16120 int result;
16121 PyObject * obj0 = 0 ;
16122 char *kwnames[] = {
16123 (char *) "self", NULL
16124 };
16125
16126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail;
16127 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_EXCEPTION | 0);
16128 if (SWIG_arg_fail(1)) SWIG_fail;
16129 {
16130 PyThreadState* __tstate = wxPyBeginAllowThreads();
16131 result = (int)((wxScrollEvent const *)arg1)->GetPosition();
16132
16133 wxPyEndAllowThreads(__tstate);
16134 if (PyErr_Occurred()) SWIG_fail;
16135 }
16136 {
16137 resultobj = SWIG_From_int((int)(result));
16138 }
16139 return resultobj;
16140 fail:
16141 return NULL;
16142 }
16143
16144
16145 static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
16146 PyObject *resultobj;
16147 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
16148 int arg2 ;
16149 PyObject * obj0 = 0 ;
16150 PyObject * obj1 = 0 ;
16151 char *kwnames[] = {
16152 (char *) "self",(char *) "orient", NULL
16153 };
16154
16155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
16156 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_EXCEPTION | 0);
16157 if (SWIG_arg_fail(1)) SWIG_fail;
16158 {
16159 arg2 = (int)(SWIG_As_int(obj1));
16160 if (SWIG_arg_fail(2)) SWIG_fail;
16161 }
16162 {
16163 PyThreadState* __tstate = wxPyBeginAllowThreads();
16164 (arg1)->SetOrientation(arg2);
16165
16166 wxPyEndAllowThreads(__tstate);
16167 if (PyErr_Occurred()) SWIG_fail;
16168 }
16169 Py_INCREF(Py_None); resultobj = Py_None;
16170 return resultobj;
16171 fail:
16172 return NULL;
16173 }
16174
16175
16176 static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
16177 PyObject *resultobj;
16178 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
16179 int arg2 ;
16180 PyObject * obj0 = 0 ;
16181 PyObject * obj1 = 0 ;
16182 char *kwnames[] = {
16183 (char *) "self",(char *) "pos", NULL
16184 };
16185
16186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
16187 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_EXCEPTION | 0);
16188 if (SWIG_arg_fail(1)) SWIG_fail;
16189 {
16190 arg2 = (int)(SWIG_As_int(obj1));
16191 if (SWIG_arg_fail(2)) SWIG_fail;
16192 }
16193 {
16194 PyThreadState* __tstate = wxPyBeginAllowThreads();
16195 (arg1)->SetPosition(arg2);
16196
16197 wxPyEndAllowThreads(__tstate);
16198 if (PyErr_Occurred()) SWIG_fail;
16199 }
16200 Py_INCREF(Py_None); resultobj = Py_None;
16201 return resultobj;
16202 fail:
16203 return NULL;
16204 }
16205
16206
16207 static PyObject * ScrollEvent_swigregister(PyObject *, PyObject *args) {
16208 PyObject *obj;
16209 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16210 SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj);
16211 Py_INCREF(obj);
16212 return Py_BuildValue((char *)"");
16213 }
16214 static PyObject *_wrap_new_ScrollWinEvent(PyObject *, PyObject *args, PyObject *kwargs) {
16215 PyObject *resultobj;
16216 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16217 int arg2 = (int) 0 ;
16218 int arg3 = (int) 0 ;
16219 wxScrollWinEvent *result;
16220 PyObject * obj0 = 0 ;
16221 PyObject * obj1 = 0 ;
16222 PyObject * obj2 = 0 ;
16223 char *kwnames[] = {
16224 (char *) "commandType",(char *) "pos",(char *) "orient", NULL
16225 };
16226
16227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
16228 if (obj0) {
16229 {
16230 arg1 = (wxEventType)(SWIG_As_int(obj0));
16231 if (SWIG_arg_fail(1)) SWIG_fail;
16232 }
16233 }
16234 if (obj1) {
16235 {
16236 arg2 = (int)(SWIG_As_int(obj1));
16237 if (SWIG_arg_fail(2)) SWIG_fail;
16238 }
16239 }
16240 if (obj2) {
16241 {
16242 arg3 = (int)(SWIG_As_int(obj2));
16243 if (SWIG_arg_fail(3)) SWIG_fail;
16244 }
16245 }
16246 {
16247 PyThreadState* __tstate = wxPyBeginAllowThreads();
16248 result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3);
16249
16250 wxPyEndAllowThreads(__tstate);
16251 if (PyErr_Occurred()) SWIG_fail;
16252 }
16253 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1);
16254 return resultobj;
16255 fail:
16256 return NULL;
16257 }
16258
16259
16260 static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
16261 PyObject *resultobj;
16262 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
16263 int result;
16264 PyObject * obj0 = 0 ;
16265 char *kwnames[] = {
16266 (char *) "self", NULL
16267 };
16268
16269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail;
16270 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_EXCEPTION | 0);
16271 if (SWIG_arg_fail(1)) SWIG_fail;
16272 {
16273 PyThreadState* __tstate = wxPyBeginAllowThreads();
16274 result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation();
16275
16276 wxPyEndAllowThreads(__tstate);
16277 if (PyErr_Occurred()) SWIG_fail;
16278 }
16279 {
16280 resultobj = SWIG_From_int((int)(result));
16281 }
16282 return resultobj;
16283 fail:
16284 return NULL;
16285 }
16286
16287
16288 static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
16289 PyObject *resultobj;
16290 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
16291 int result;
16292 PyObject * obj0 = 0 ;
16293 char *kwnames[] = {
16294 (char *) "self", NULL
16295 };
16296
16297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail;
16298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_EXCEPTION | 0);
16299 if (SWIG_arg_fail(1)) SWIG_fail;
16300 {
16301 PyThreadState* __tstate = wxPyBeginAllowThreads();
16302 result = (int)((wxScrollWinEvent const *)arg1)->GetPosition();
16303
16304 wxPyEndAllowThreads(__tstate);
16305 if (PyErr_Occurred()) SWIG_fail;
16306 }
16307 {
16308 resultobj = SWIG_From_int((int)(result));
16309 }
16310 return resultobj;
16311 fail:
16312 return NULL;
16313 }
16314
16315
16316 static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
16317 PyObject *resultobj;
16318 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
16319 int arg2 ;
16320 PyObject * obj0 = 0 ;
16321 PyObject * obj1 = 0 ;
16322 char *kwnames[] = {
16323 (char *) "self",(char *) "orient", NULL
16324 };
16325
16326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
16327 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_EXCEPTION | 0);
16328 if (SWIG_arg_fail(1)) SWIG_fail;
16329 {
16330 arg2 = (int)(SWIG_As_int(obj1));
16331 if (SWIG_arg_fail(2)) SWIG_fail;
16332 }
16333 {
16334 PyThreadState* __tstate = wxPyBeginAllowThreads();
16335 (arg1)->SetOrientation(arg2);
16336
16337 wxPyEndAllowThreads(__tstate);
16338 if (PyErr_Occurred()) SWIG_fail;
16339 }
16340 Py_INCREF(Py_None); resultobj = Py_None;
16341 return resultobj;
16342 fail:
16343 return NULL;
16344 }
16345
16346
16347 static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
16348 PyObject *resultobj;
16349 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
16350 int arg2 ;
16351 PyObject * obj0 = 0 ;
16352 PyObject * obj1 = 0 ;
16353 char *kwnames[] = {
16354 (char *) "self",(char *) "pos", NULL
16355 };
16356
16357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
16358 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_EXCEPTION | 0);
16359 if (SWIG_arg_fail(1)) SWIG_fail;
16360 {
16361 arg2 = (int)(SWIG_As_int(obj1));
16362 if (SWIG_arg_fail(2)) SWIG_fail;
16363 }
16364 {
16365 PyThreadState* __tstate = wxPyBeginAllowThreads();
16366 (arg1)->SetPosition(arg2);
16367
16368 wxPyEndAllowThreads(__tstate);
16369 if (PyErr_Occurred()) SWIG_fail;
16370 }
16371 Py_INCREF(Py_None); resultobj = Py_None;
16372 return resultobj;
16373 fail:
16374 return NULL;
16375 }
16376
16377
16378 static PyObject * ScrollWinEvent_swigregister(PyObject *, PyObject *args) {
16379 PyObject *obj;
16380 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16381 SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj);
16382 Py_INCREF(obj);
16383 return Py_BuildValue((char *)"");
16384 }
16385 static PyObject *_wrap_new_MouseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
16386 PyObject *resultobj;
16387 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16388 wxMouseEvent *result;
16389 PyObject * obj0 = 0 ;
16390 char *kwnames[] = {
16391 (char *) "mouseType", NULL
16392 };
16393
16394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail;
16395 if (obj0) {
16396 {
16397 arg1 = (wxEventType)(SWIG_As_int(obj0));
16398 if (SWIG_arg_fail(1)) SWIG_fail;
16399 }
16400 }
16401 {
16402 PyThreadState* __tstate = wxPyBeginAllowThreads();
16403 result = (wxMouseEvent *)new wxMouseEvent(arg1);
16404
16405 wxPyEndAllowThreads(__tstate);
16406 if (PyErr_Occurred()) SWIG_fail;
16407 }
16408 {
16409 resultobj = wxPyMake_wxObject(result, 1);
16410 }
16411 return resultobj;
16412 fail:
16413 return NULL;
16414 }
16415
16416
16417 static PyObject *_wrap_MouseEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
16418 PyObject *resultobj;
16419 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16420 bool result;
16421 PyObject * obj0 = 0 ;
16422 char *kwnames[] = {
16423 (char *) "self", NULL
16424 };
16425
16426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail;
16427 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16428 if (SWIG_arg_fail(1)) SWIG_fail;
16429 {
16430 PyThreadState* __tstate = wxPyBeginAllowThreads();
16431 result = (bool)((wxMouseEvent const *)arg1)->IsButton();
16432
16433 wxPyEndAllowThreads(__tstate);
16434 if (PyErr_Occurred()) SWIG_fail;
16435 }
16436 {
16437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16438 }
16439 return resultobj;
16440 fail:
16441 return NULL;
16442 }
16443
16444
16445 static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) {
16446 PyObject *resultobj;
16447 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16448 int arg2 = (int) wxMOUSE_BTN_ANY ;
16449 bool result;
16450 PyObject * obj0 = 0 ;
16451 PyObject * obj1 = 0 ;
16452 char *kwnames[] = {
16453 (char *) "self",(char *) "but", NULL
16454 };
16455
16456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
16457 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16458 if (SWIG_arg_fail(1)) SWIG_fail;
16459 if (obj1) {
16460 {
16461 arg2 = (int)(SWIG_As_int(obj1));
16462 if (SWIG_arg_fail(2)) SWIG_fail;
16463 }
16464 }
16465 {
16466 PyThreadState* __tstate = wxPyBeginAllowThreads();
16467 result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2);
16468
16469 wxPyEndAllowThreads(__tstate);
16470 if (PyErr_Occurred()) SWIG_fail;
16471 }
16472 {
16473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16474 }
16475 return resultobj;
16476 fail:
16477 return NULL;
16478 }
16479
16480
16481 static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *, PyObject *args, PyObject *kwargs) {
16482 PyObject *resultobj;
16483 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16484 int arg2 = (int) wxMOUSE_BTN_ANY ;
16485 bool result;
16486 PyObject * obj0 = 0 ;
16487 PyObject * obj1 = 0 ;
16488 char *kwnames[] = {
16489 (char *) "self",(char *) "but", NULL
16490 };
16491
16492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail;
16493 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16494 if (SWIG_arg_fail(1)) SWIG_fail;
16495 if (obj1) {
16496 {
16497 arg2 = (int)(SWIG_As_int(obj1));
16498 if (SWIG_arg_fail(2)) SWIG_fail;
16499 }
16500 }
16501 {
16502 PyThreadState* __tstate = wxPyBeginAllowThreads();
16503 result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2);
16504
16505 wxPyEndAllowThreads(__tstate);
16506 if (PyErr_Occurred()) SWIG_fail;
16507 }
16508 {
16509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16510 }
16511 return resultobj;
16512 fail:
16513 return NULL;
16514 }
16515
16516
16517 static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) {
16518 PyObject *resultobj;
16519 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16520 int arg2 = (int) wxMOUSE_BTN_ANY ;
16521 bool result;
16522 PyObject * obj0 = 0 ;
16523 PyObject * obj1 = 0 ;
16524 char *kwnames[] = {
16525 (char *) "self",(char *) "but", NULL
16526 };
16527
16528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
16529 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16530 if (SWIG_arg_fail(1)) SWIG_fail;
16531 if (obj1) {
16532 {
16533 arg2 = (int)(SWIG_As_int(obj1));
16534 if (SWIG_arg_fail(2)) SWIG_fail;
16535 }
16536 }
16537 {
16538 PyThreadState* __tstate = wxPyBeginAllowThreads();
16539 result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2);
16540
16541 wxPyEndAllowThreads(__tstate);
16542 if (PyErr_Occurred()) SWIG_fail;
16543 }
16544 {
16545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16546 }
16547 return resultobj;
16548 fail:
16549 return NULL;
16550 }
16551
16552
16553 static PyObject *_wrap_MouseEvent_Button(PyObject *, PyObject *args, PyObject *kwargs) {
16554 PyObject *resultobj;
16555 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16556 int arg2 ;
16557 bool result;
16558 PyObject * obj0 = 0 ;
16559 PyObject * obj1 = 0 ;
16560 char *kwnames[] = {
16561 (char *) "self",(char *) "but", NULL
16562 };
16563
16564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail;
16565 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16566 if (SWIG_arg_fail(1)) SWIG_fail;
16567 {
16568 arg2 = (int)(SWIG_As_int(obj1));
16569 if (SWIG_arg_fail(2)) SWIG_fail;
16570 }
16571 {
16572 PyThreadState* __tstate = wxPyBeginAllowThreads();
16573 result = (bool)((wxMouseEvent const *)arg1)->Button(arg2);
16574
16575 wxPyEndAllowThreads(__tstate);
16576 if (PyErr_Occurred()) SWIG_fail;
16577 }
16578 {
16579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16580 }
16581 return resultobj;
16582 fail:
16583 return NULL;
16584 }
16585
16586
16587 static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
16588 PyObject *resultobj;
16589 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16590 int arg2 ;
16591 bool result;
16592 PyObject * obj0 = 0 ;
16593 PyObject * obj1 = 0 ;
16594 char *kwnames[] = {
16595 (char *) "self",(char *) "but", NULL
16596 };
16597
16598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
16599 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16600 if (SWIG_arg_fail(1)) SWIG_fail;
16601 {
16602 arg2 = (int)(SWIG_As_int(obj1));
16603 if (SWIG_arg_fail(2)) SWIG_fail;
16604 }
16605 {
16606 PyThreadState* __tstate = wxPyBeginAllowThreads();
16607 result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2);
16608
16609 wxPyEndAllowThreads(__tstate);
16610 if (PyErr_Occurred()) SWIG_fail;
16611 }
16612 {
16613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16614 }
16615 return resultobj;
16616 fail:
16617 return NULL;
16618 }
16619
16620
16621 static PyObject *_wrap_MouseEvent_GetButton(PyObject *, PyObject *args, PyObject *kwargs) {
16622 PyObject *resultobj;
16623 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16624 int result;
16625 PyObject * obj0 = 0 ;
16626 char *kwnames[] = {
16627 (char *) "self", NULL
16628 };
16629
16630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail;
16631 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16632 if (SWIG_arg_fail(1)) SWIG_fail;
16633 {
16634 PyThreadState* __tstate = wxPyBeginAllowThreads();
16635 result = (int)((wxMouseEvent const *)arg1)->GetButton();
16636
16637 wxPyEndAllowThreads(__tstate);
16638 if (PyErr_Occurred()) SWIG_fail;
16639 }
16640 {
16641 resultobj = SWIG_From_int((int)(result));
16642 }
16643 return resultobj;
16644 fail:
16645 return NULL;
16646 }
16647
16648
16649 static PyObject *_wrap_MouseEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) {
16650 PyObject *resultobj;
16651 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16652 bool result;
16653 PyObject * obj0 = 0 ;
16654 char *kwnames[] = {
16655 (char *) "self", NULL
16656 };
16657
16658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail;
16659 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16660 if (SWIG_arg_fail(1)) SWIG_fail;
16661 {
16662 PyThreadState* __tstate = wxPyBeginAllowThreads();
16663 result = (bool)((wxMouseEvent const *)arg1)->ControlDown();
16664
16665 wxPyEndAllowThreads(__tstate);
16666 if (PyErr_Occurred()) SWIG_fail;
16667 }
16668 {
16669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16670 }
16671 return resultobj;
16672 fail:
16673 return NULL;
16674 }
16675
16676
16677 static PyObject *_wrap_MouseEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) {
16678 PyObject *resultobj;
16679 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16680 bool result;
16681 PyObject * obj0 = 0 ;
16682 char *kwnames[] = {
16683 (char *) "self", NULL
16684 };
16685
16686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail;
16687 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16688 if (SWIG_arg_fail(1)) SWIG_fail;
16689 {
16690 PyThreadState* __tstate = wxPyBeginAllowThreads();
16691 result = (bool)((wxMouseEvent const *)arg1)->MetaDown();
16692
16693 wxPyEndAllowThreads(__tstate);
16694 if (PyErr_Occurred()) SWIG_fail;
16695 }
16696 {
16697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16698 }
16699 return resultobj;
16700 fail:
16701 return NULL;
16702 }
16703
16704
16705 static PyObject *_wrap_MouseEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) {
16706 PyObject *resultobj;
16707 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16708 bool result;
16709 PyObject * obj0 = 0 ;
16710 char *kwnames[] = {
16711 (char *) "self", NULL
16712 };
16713
16714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail;
16715 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16716 if (SWIG_arg_fail(1)) SWIG_fail;
16717 {
16718 PyThreadState* __tstate = wxPyBeginAllowThreads();
16719 result = (bool)((wxMouseEvent const *)arg1)->AltDown();
16720
16721 wxPyEndAllowThreads(__tstate);
16722 if (PyErr_Occurred()) SWIG_fail;
16723 }
16724 {
16725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16726 }
16727 return resultobj;
16728 fail:
16729 return NULL;
16730 }
16731
16732
16733 static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) {
16734 PyObject *resultobj;
16735 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16736 bool result;
16737 PyObject * obj0 = 0 ;
16738 char *kwnames[] = {
16739 (char *) "self", NULL
16740 };
16741
16742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail;
16743 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16744 if (SWIG_arg_fail(1)) SWIG_fail;
16745 {
16746 PyThreadState* __tstate = wxPyBeginAllowThreads();
16747 result = (bool)((wxMouseEvent const *)arg1)->ShiftDown();
16748
16749 wxPyEndAllowThreads(__tstate);
16750 if (PyErr_Occurred()) SWIG_fail;
16751 }
16752 {
16753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16754 }
16755 return resultobj;
16756 fail:
16757 return NULL;
16758 }
16759
16760
16761 static PyObject *_wrap_MouseEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) {
16762 PyObject *resultobj;
16763 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16764 bool result;
16765 PyObject * obj0 = 0 ;
16766 char *kwnames[] = {
16767 (char *) "self", NULL
16768 };
16769
16770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail;
16771 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16772 if (SWIG_arg_fail(1)) SWIG_fail;
16773 {
16774 PyThreadState* __tstate = wxPyBeginAllowThreads();
16775 result = (bool)((wxMouseEvent const *)arg1)->CmdDown();
16776
16777 wxPyEndAllowThreads(__tstate);
16778 if (PyErr_Occurred()) SWIG_fail;
16779 }
16780 {
16781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16782 }
16783 return resultobj;
16784 fail:
16785 return NULL;
16786 }
16787
16788
16789 static PyObject *_wrap_MouseEvent_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) {
16790 PyObject *resultobj;
16791 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16792 bool result;
16793 PyObject * obj0 = 0 ;
16794 char *kwnames[] = {
16795 (char *) "self", NULL
16796 };
16797
16798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail;
16799 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16800 if (SWIG_arg_fail(1)) SWIG_fail;
16801 {
16802 PyThreadState* __tstate = wxPyBeginAllowThreads();
16803 result = (bool)((wxMouseEvent const *)arg1)->LeftDown();
16804
16805 wxPyEndAllowThreads(__tstate);
16806 if (PyErr_Occurred()) SWIG_fail;
16807 }
16808 {
16809 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16810 }
16811 return resultobj;
16812 fail:
16813 return NULL;
16814 }
16815
16816
16817 static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) {
16818 PyObject *resultobj;
16819 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16820 bool result;
16821 PyObject * obj0 = 0 ;
16822 char *kwnames[] = {
16823 (char *) "self", NULL
16824 };
16825
16826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail;
16827 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16828 if (SWIG_arg_fail(1)) SWIG_fail;
16829 {
16830 PyThreadState* __tstate = wxPyBeginAllowThreads();
16831 result = (bool)((wxMouseEvent const *)arg1)->MiddleDown();
16832
16833 wxPyEndAllowThreads(__tstate);
16834 if (PyErr_Occurred()) SWIG_fail;
16835 }
16836 {
16837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16838 }
16839 return resultobj;
16840 fail:
16841 return NULL;
16842 }
16843
16844
16845 static PyObject *_wrap_MouseEvent_RightDown(PyObject *, PyObject *args, PyObject *kwargs) {
16846 PyObject *resultobj;
16847 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16848 bool result;
16849 PyObject * obj0 = 0 ;
16850 char *kwnames[] = {
16851 (char *) "self", NULL
16852 };
16853
16854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail;
16855 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16856 if (SWIG_arg_fail(1)) SWIG_fail;
16857 {
16858 PyThreadState* __tstate = wxPyBeginAllowThreads();
16859 result = (bool)((wxMouseEvent const *)arg1)->RightDown();
16860
16861 wxPyEndAllowThreads(__tstate);
16862 if (PyErr_Occurred()) SWIG_fail;
16863 }
16864 {
16865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16866 }
16867 return resultobj;
16868 fail:
16869 return NULL;
16870 }
16871
16872
16873 static PyObject *_wrap_MouseEvent_LeftUp(PyObject *, PyObject *args, PyObject *kwargs) {
16874 PyObject *resultobj;
16875 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16876 bool result;
16877 PyObject * obj0 = 0 ;
16878 char *kwnames[] = {
16879 (char *) "self", NULL
16880 };
16881
16882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail;
16883 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16884 if (SWIG_arg_fail(1)) SWIG_fail;
16885 {
16886 PyThreadState* __tstate = wxPyBeginAllowThreads();
16887 result = (bool)((wxMouseEvent const *)arg1)->LeftUp();
16888
16889 wxPyEndAllowThreads(__tstate);
16890 if (PyErr_Occurred()) SWIG_fail;
16891 }
16892 {
16893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16894 }
16895 return resultobj;
16896 fail:
16897 return NULL;
16898 }
16899
16900
16901 static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *, PyObject *args, PyObject *kwargs) {
16902 PyObject *resultobj;
16903 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16904 bool result;
16905 PyObject * obj0 = 0 ;
16906 char *kwnames[] = {
16907 (char *) "self", NULL
16908 };
16909
16910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail;
16911 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16912 if (SWIG_arg_fail(1)) SWIG_fail;
16913 {
16914 PyThreadState* __tstate = wxPyBeginAllowThreads();
16915 result = (bool)((wxMouseEvent const *)arg1)->MiddleUp();
16916
16917 wxPyEndAllowThreads(__tstate);
16918 if (PyErr_Occurred()) SWIG_fail;
16919 }
16920 {
16921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16922 }
16923 return resultobj;
16924 fail:
16925 return NULL;
16926 }
16927
16928
16929 static PyObject *_wrap_MouseEvent_RightUp(PyObject *, PyObject *args, PyObject *kwargs) {
16930 PyObject *resultobj;
16931 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16932 bool result;
16933 PyObject * obj0 = 0 ;
16934 char *kwnames[] = {
16935 (char *) "self", NULL
16936 };
16937
16938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail;
16939 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16940 if (SWIG_arg_fail(1)) SWIG_fail;
16941 {
16942 PyThreadState* __tstate = wxPyBeginAllowThreads();
16943 result = (bool)((wxMouseEvent const *)arg1)->RightUp();
16944
16945 wxPyEndAllowThreads(__tstate);
16946 if (PyErr_Occurred()) SWIG_fail;
16947 }
16948 {
16949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16950 }
16951 return resultobj;
16952 fail:
16953 return NULL;
16954 }
16955
16956
16957 static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *, PyObject *args, PyObject *kwargs) {
16958 PyObject *resultobj;
16959 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16960 bool result;
16961 PyObject * obj0 = 0 ;
16962 char *kwnames[] = {
16963 (char *) "self", NULL
16964 };
16965
16966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail;
16967 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16968 if (SWIG_arg_fail(1)) SWIG_fail;
16969 {
16970 PyThreadState* __tstate = wxPyBeginAllowThreads();
16971 result = (bool)((wxMouseEvent const *)arg1)->LeftDClick();
16972
16973 wxPyEndAllowThreads(__tstate);
16974 if (PyErr_Occurred()) SWIG_fail;
16975 }
16976 {
16977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16978 }
16979 return resultobj;
16980 fail:
16981 return NULL;
16982 }
16983
16984
16985 static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *, PyObject *args, PyObject *kwargs) {
16986 PyObject *resultobj;
16987 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
16988 bool result;
16989 PyObject * obj0 = 0 ;
16990 char *kwnames[] = {
16991 (char *) "self", NULL
16992 };
16993
16994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail;
16995 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
16996 if (SWIG_arg_fail(1)) SWIG_fail;
16997 {
16998 PyThreadState* __tstate = wxPyBeginAllowThreads();
16999 result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick();
17000
17001 wxPyEndAllowThreads(__tstate);
17002 if (PyErr_Occurred()) SWIG_fail;
17003 }
17004 {
17005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17006 }
17007 return resultobj;
17008 fail:
17009 return NULL;
17010 }
17011
17012
17013 static PyObject *_wrap_MouseEvent_RightDClick(PyObject *, PyObject *args, PyObject *kwargs) {
17014 PyObject *resultobj;
17015 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17016 bool result;
17017 PyObject * obj0 = 0 ;
17018 char *kwnames[] = {
17019 (char *) "self", NULL
17020 };
17021
17022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail;
17023 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17024 if (SWIG_arg_fail(1)) SWIG_fail;
17025 {
17026 PyThreadState* __tstate = wxPyBeginAllowThreads();
17027 result = (bool)((wxMouseEvent const *)arg1)->RightDClick();
17028
17029 wxPyEndAllowThreads(__tstate);
17030 if (PyErr_Occurred()) SWIG_fail;
17031 }
17032 {
17033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17034 }
17035 return resultobj;
17036 fail:
17037 return NULL;
17038 }
17039
17040
17041 static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
17042 PyObject *resultobj;
17043 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17044 bool result;
17045 PyObject * obj0 = 0 ;
17046 char *kwnames[] = {
17047 (char *) "self", NULL
17048 };
17049
17050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail;
17051 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17052 if (SWIG_arg_fail(1)) SWIG_fail;
17053 {
17054 PyThreadState* __tstate = wxPyBeginAllowThreads();
17055 result = (bool)(arg1)->LeftIsDown();
17056
17057 wxPyEndAllowThreads(__tstate);
17058 if (PyErr_Occurred()) SWIG_fail;
17059 }
17060 {
17061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17062 }
17063 return resultobj;
17064 fail:
17065 return NULL;
17066 }
17067
17068
17069 static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
17070 PyObject *resultobj;
17071 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17072 bool result;
17073 PyObject * obj0 = 0 ;
17074 char *kwnames[] = {
17075 (char *) "self", NULL
17076 };
17077
17078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail;
17079 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17080 if (SWIG_arg_fail(1)) SWIG_fail;
17081 {
17082 PyThreadState* __tstate = wxPyBeginAllowThreads();
17083 result = (bool)(arg1)->MiddleIsDown();
17084
17085 wxPyEndAllowThreads(__tstate);
17086 if (PyErr_Occurred()) SWIG_fail;
17087 }
17088 {
17089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17090 }
17091 return resultobj;
17092 fail:
17093 return NULL;
17094 }
17095
17096
17097 static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
17098 PyObject *resultobj;
17099 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17100 bool result;
17101 PyObject * obj0 = 0 ;
17102 char *kwnames[] = {
17103 (char *) "self", NULL
17104 };
17105
17106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail;
17107 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17108 if (SWIG_arg_fail(1)) SWIG_fail;
17109 {
17110 PyThreadState* __tstate = wxPyBeginAllowThreads();
17111 result = (bool)(arg1)->RightIsDown();
17112
17113 wxPyEndAllowThreads(__tstate);
17114 if (PyErr_Occurred()) SWIG_fail;
17115 }
17116 {
17117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17118 }
17119 return resultobj;
17120 fail:
17121 return NULL;
17122 }
17123
17124
17125 static PyObject *_wrap_MouseEvent_Dragging(PyObject *, PyObject *args, PyObject *kwargs) {
17126 PyObject *resultobj;
17127 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17128 bool result;
17129 PyObject * obj0 = 0 ;
17130 char *kwnames[] = {
17131 (char *) "self", NULL
17132 };
17133
17134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail;
17135 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17136 if (SWIG_arg_fail(1)) SWIG_fail;
17137 {
17138 PyThreadState* __tstate = wxPyBeginAllowThreads();
17139 result = (bool)((wxMouseEvent const *)arg1)->Dragging();
17140
17141 wxPyEndAllowThreads(__tstate);
17142 if (PyErr_Occurred()) SWIG_fail;
17143 }
17144 {
17145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17146 }
17147 return resultobj;
17148 fail:
17149 return NULL;
17150 }
17151
17152
17153 static PyObject *_wrap_MouseEvent_Moving(PyObject *, PyObject *args, PyObject *kwargs) {
17154 PyObject *resultobj;
17155 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17156 bool result;
17157 PyObject * obj0 = 0 ;
17158 char *kwnames[] = {
17159 (char *) "self", NULL
17160 };
17161
17162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail;
17163 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17164 if (SWIG_arg_fail(1)) SWIG_fail;
17165 {
17166 PyThreadState* __tstate = wxPyBeginAllowThreads();
17167 result = (bool)((wxMouseEvent const *)arg1)->Moving();
17168
17169 wxPyEndAllowThreads(__tstate);
17170 if (PyErr_Occurred()) SWIG_fail;
17171 }
17172 {
17173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17174 }
17175 return resultobj;
17176 fail:
17177 return NULL;
17178 }
17179
17180
17181 static PyObject *_wrap_MouseEvent_Entering(PyObject *, PyObject *args, PyObject *kwargs) {
17182 PyObject *resultobj;
17183 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17184 bool result;
17185 PyObject * obj0 = 0 ;
17186 char *kwnames[] = {
17187 (char *) "self", NULL
17188 };
17189
17190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail;
17191 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17192 if (SWIG_arg_fail(1)) SWIG_fail;
17193 {
17194 PyThreadState* __tstate = wxPyBeginAllowThreads();
17195 result = (bool)((wxMouseEvent const *)arg1)->Entering();
17196
17197 wxPyEndAllowThreads(__tstate);
17198 if (PyErr_Occurred()) SWIG_fail;
17199 }
17200 {
17201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17202 }
17203 return resultobj;
17204 fail:
17205 return NULL;
17206 }
17207
17208
17209 static PyObject *_wrap_MouseEvent_Leaving(PyObject *, PyObject *args, PyObject *kwargs) {
17210 PyObject *resultobj;
17211 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17212 bool result;
17213 PyObject * obj0 = 0 ;
17214 char *kwnames[] = {
17215 (char *) "self", NULL
17216 };
17217
17218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail;
17219 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17220 if (SWIG_arg_fail(1)) SWIG_fail;
17221 {
17222 PyThreadState* __tstate = wxPyBeginAllowThreads();
17223 result = (bool)((wxMouseEvent const *)arg1)->Leaving();
17224
17225 wxPyEndAllowThreads(__tstate);
17226 if (PyErr_Occurred()) SWIG_fail;
17227 }
17228 {
17229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17230 }
17231 return resultobj;
17232 fail:
17233 return NULL;
17234 }
17235
17236
17237 static PyObject *_wrap_MouseEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
17238 PyObject *resultobj;
17239 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17240 wxPoint result;
17241 PyObject * obj0 = 0 ;
17242 char *kwnames[] = {
17243 (char *) "self", NULL
17244 };
17245
17246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail;
17247 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17248 if (SWIG_arg_fail(1)) SWIG_fail;
17249 {
17250 PyThreadState* __tstate = wxPyBeginAllowThreads();
17251 result = (arg1)->GetPosition();
17252
17253 wxPyEndAllowThreads(__tstate);
17254 if (PyErr_Occurred()) SWIG_fail;
17255 }
17256 {
17257 wxPoint * resultptr;
17258 resultptr = new wxPoint((wxPoint &)(result));
17259 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
17260 }
17261 return resultobj;
17262 fail:
17263 return NULL;
17264 }
17265
17266
17267 static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
17268 PyObject *resultobj;
17269 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17270 long *arg2 = (long *) 0 ;
17271 long *arg3 = (long *) 0 ;
17272 long temp2 ;
17273 int res2 = 0 ;
17274 long temp3 ;
17275 int res3 = 0 ;
17276 PyObject * obj0 = 0 ;
17277 char *kwnames[] = {
17278 (char *) "self", NULL
17279 };
17280
17281 arg2 = &temp2; res2 = SWIG_NEWOBJ;
17282 arg3 = &temp3; res3 = SWIG_NEWOBJ;
17283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
17284 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17285 if (SWIG_arg_fail(1)) SWIG_fail;
17286 {
17287 PyThreadState* __tstate = wxPyBeginAllowThreads();
17288 (arg1)->GetPosition(arg2,arg3);
17289
17290 wxPyEndAllowThreads(__tstate);
17291 if (PyErr_Occurred()) SWIG_fail;
17292 }
17293 Py_INCREF(Py_None); resultobj = Py_None;
17294 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
17295 SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0)));
17296 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17297 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
17298 return resultobj;
17299 fail:
17300 return NULL;
17301 }
17302
17303
17304 static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *, PyObject *args, PyObject *kwargs) {
17305 PyObject *resultobj;
17306 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17307 wxDC *arg2 = 0 ;
17308 wxPoint result;
17309 PyObject * obj0 = 0 ;
17310 PyObject * obj1 = 0 ;
17311 char *kwnames[] = {
17312 (char *) "self",(char *) "dc", NULL
17313 };
17314
17315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail;
17316 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17317 if (SWIG_arg_fail(1)) SWIG_fail;
17318 {
17319 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17320 if (SWIG_arg_fail(2)) SWIG_fail;
17321 if (arg2 == NULL) {
17322 SWIG_null_ref("wxDC");
17323 }
17324 if (SWIG_arg_fail(2)) SWIG_fail;
17325 }
17326 {
17327 PyThreadState* __tstate = wxPyBeginAllowThreads();
17328 result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2);
17329
17330 wxPyEndAllowThreads(__tstate);
17331 if (PyErr_Occurred()) SWIG_fail;
17332 }
17333 {
17334 wxPoint * resultptr;
17335 resultptr = new wxPoint((wxPoint &)(result));
17336 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
17337 }
17338 return resultobj;
17339 fail:
17340 return NULL;
17341 }
17342
17343
17344 static PyObject *_wrap_MouseEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
17345 PyObject *resultobj;
17346 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17347 int result;
17348 PyObject * obj0 = 0 ;
17349 char *kwnames[] = {
17350 (char *) "self", NULL
17351 };
17352
17353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail;
17354 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17355 if (SWIG_arg_fail(1)) SWIG_fail;
17356 {
17357 PyThreadState* __tstate = wxPyBeginAllowThreads();
17358 result = (int)((wxMouseEvent const *)arg1)->GetX();
17359
17360 wxPyEndAllowThreads(__tstate);
17361 if (PyErr_Occurred()) SWIG_fail;
17362 }
17363 {
17364 resultobj = SWIG_From_int((int)(result));
17365 }
17366 return resultobj;
17367 fail:
17368 return NULL;
17369 }
17370
17371
17372 static PyObject *_wrap_MouseEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
17373 PyObject *resultobj;
17374 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17375 int result;
17376 PyObject * obj0 = 0 ;
17377 char *kwnames[] = {
17378 (char *) "self", NULL
17379 };
17380
17381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail;
17382 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17383 if (SWIG_arg_fail(1)) SWIG_fail;
17384 {
17385 PyThreadState* __tstate = wxPyBeginAllowThreads();
17386 result = (int)((wxMouseEvent const *)arg1)->GetY();
17387
17388 wxPyEndAllowThreads(__tstate);
17389 if (PyErr_Occurred()) SWIG_fail;
17390 }
17391 {
17392 resultobj = SWIG_From_int((int)(result));
17393 }
17394 return resultobj;
17395 fail:
17396 return NULL;
17397 }
17398
17399
17400 static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *, PyObject *args, PyObject *kwargs) {
17401 PyObject *resultobj;
17402 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17403 int result;
17404 PyObject * obj0 = 0 ;
17405 char *kwnames[] = {
17406 (char *) "self", NULL
17407 };
17408
17409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail;
17410 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17411 if (SWIG_arg_fail(1)) SWIG_fail;
17412 {
17413 PyThreadState* __tstate = wxPyBeginAllowThreads();
17414 result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation();
17415
17416 wxPyEndAllowThreads(__tstate);
17417 if (PyErr_Occurred()) SWIG_fail;
17418 }
17419 {
17420 resultobj = SWIG_From_int((int)(result));
17421 }
17422 return resultobj;
17423 fail:
17424 return NULL;
17425 }
17426
17427
17428 static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *, PyObject *args, PyObject *kwargs) {
17429 PyObject *resultobj;
17430 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17431 int result;
17432 PyObject * obj0 = 0 ;
17433 char *kwnames[] = {
17434 (char *) "self", NULL
17435 };
17436
17437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail;
17438 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17439 if (SWIG_arg_fail(1)) SWIG_fail;
17440 {
17441 PyThreadState* __tstate = wxPyBeginAllowThreads();
17442 result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta();
17443
17444 wxPyEndAllowThreads(__tstate);
17445 if (PyErr_Occurred()) SWIG_fail;
17446 }
17447 {
17448 resultobj = SWIG_From_int((int)(result));
17449 }
17450 return resultobj;
17451 fail:
17452 return NULL;
17453 }
17454
17455
17456 static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *, PyObject *args, PyObject *kwargs) {
17457 PyObject *resultobj;
17458 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17459 int result;
17460 PyObject * obj0 = 0 ;
17461 char *kwnames[] = {
17462 (char *) "self", NULL
17463 };
17464
17465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail;
17466 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17467 if (SWIG_arg_fail(1)) SWIG_fail;
17468 {
17469 PyThreadState* __tstate = wxPyBeginAllowThreads();
17470 result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction();
17471
17472 wxPyEndAllowThreads(__tstate);
17473 if (PyErr_Occurred()) SWIG_fail;
17474 }
17475 {
17476 resultobj = SWIG_From_int((int)(result));
17477 }
17478 return resultobj;
17479 fail:
17480 return NULL;
17481 }
17482
17483
17484 static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *, PyObject *args, PyObject *kwargs) {
17485 PyObject *resultobj;
17486 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17487 bool result;
17488 PyObject * obj0 = 0 ;
17489 char *kwnames[] = {
17490 (char *) "self", NULL
17491 };
17492
17493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail;
17494 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17495 if (SWIG_arg_fail(1)) SWIG_fail;
17496 {
17497 PyThreadState* __tstate = wxPyBeginAllowThreads();
17498 result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll();
17499
17500 wxPyEndAllowThreads(__tstate);
17501 if (PyErr_Occurred()) SWIG_fail;
17502 }
17503 {
17504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17505 }
17506 return resultobj;
17507 fail:
17508 return NULL;
17509 }
17510
17511
17512 static PyObject *_wrap_MouseEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
17513 PyObject *resultobj;
17514 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17515 int arg2 ;
17516 PyObject * obj0 = 0 ;
17517 PyObject * obj1 = 0 ;
17518 char *kwnames[] = {
17519 (char *) "self",(char *) "m_x", NULL
17520 };
17521
17522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
17523 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17524 if (SWIG_arg_fail(1)) SWIG_fail;
17525 {
17526 arg2 = (int)(SWIG_As_int(obj1));
17527 if (SWIG_arg_fail(2)) SWIG_fail;
17528 }
17529 if (arg1) (arg1)->m_x = arg2;
17530
17531 Py_INCREF(Py_None); resultobj = Py_None;
17532 return resultobj;
17533 fail:
17534 return NULL;
17535 }
17536
17537
17538 static PyObject *_wrap_MouseEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
17539 PyObject *resultobj;
17540 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17541 int result;
17542 PyObject * obj0 = 0 ;
17543 char *kwnames[] = {
17544 (char *) "self", NULL
17545 };
17546
17547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail;
17548 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17549 if (SWIG_arg_fail(1)) SWIG_fail;
17550 result = (int) ((arg1)->m_x);
17551
17552 {
17553 resultobj = SWIG_From_int((int)(result));
17554 }
17555 return resultobj;
17556 fail:
17557 return NULL;
17558 }
17559
17560
17561 static PyObject *_wrap_MouseEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
17562 PyObject *resultobj;
17563 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17564 int arg2 ;
17565 PyObject * obj0 = 0 ;
17566 PyObject * obj1 = 0 ;
17567 char *kwnames[] = {
17568 (char *) "self",(char *) "m_y", NULL
17569 };
17570
17571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
17572 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17573 if (SWIG_arg_fail(1)) SWIG_fail;
17574 {
17575 arg2 = (int)(SWIG_As_int(obj1));
17576 if (SWIG_arg_fail(2)) SWIG_fail;
17577 }
17578 if (arg1) (arg1)->m_y = arg2;
17579
17580 Py_INCREF(Py_None); resultobj = Py_None;
17581 return resultobj;
17582 fail:
17583 return NULL;
17584 }
17585
17586
17587 static PyObject *_wrap_MouseEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
17588 PyObject *resultobj;
17589 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17590 int result;
17591 PyObject * obj0 = 0 ;
17592 char *kwnames[] = {
17593 (char *) "self", NULL
17594 };
17595
17596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail;
17597 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17598 if (SWIG_arg_fail(1)) SWIG_fail;
17599 result = (int) ((arg1)->m_y);
17600
17601 {
17602 resultobj = SWIG_From_int((int)(result));
17603 }
17604 return resultobj;
17605 fail:
17606 return NULL;
17607 }
17608
17609
17610 static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
17611 PyObject *resultobj;
17612 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17613 bool arg2 ;
17614 PyObject * obj0 = 0 ;
17615 PyObject * obj1 = 0 ;
17616 char *kwnames[] = {
17617 (char *) "self",(char *) "m_leftDown", NULL
17618 };
17619
17620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail;
17621 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17622 if (SWIG_arg_fail(1)) SWIG_fail;
17623 {
17624 arg2 = (bool)(SWIG_As_bool(obj1));
17625 if (SWIG_arg_fail(2)) SWIG_fail;
17626 }
17627 if (arg1) (arg1)->m_leftDown = arg2;
17628
17629 Py_INCREF(Py_None); resultobj = Py_None;
17630 return resultobj;
17631 fail:
17632 return NULL;
17633 }
17634
17635
17636 static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
17637 PyObject *resultobj;
17638 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17639 bool result;
17640 PyObject * obj0 = 0 ;
17641 char *kwnames[] = {
17642 (char *) "self", NULL
17643 };
17644
17645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail;
17646 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17647 if (SWIG_arg_fail(1)) SWIG_fail;
17648 result = (bool) ((arg1)->m_leftDown);
17649
17650 {
17651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17652 }
17653 return resultobj;
17654 fail:
17655 return NULL;
17656 }
17657
17658
17659 static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
17660 PyObject *resultobj;
17661 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17662 bool arg2 ;
17663 PyObject * obj0 = 0 ;
17664 PyObject * obj1 = 0 ;
17665 char *kwnames[] = {
17666 (char *) "self",(char *) "m_middleDown", NULL
17667 };
17668
17669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail;
17670 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17671 if (SWIG_arg_fail(1)) SWIG_fail;
17672 {
17673 arg2 = (bool)(SWIG_As_bool(obj1));
17674 if (SWIG_arg_fail(2)) SWIG_fail;
17675 }
17676 if (arg1) (arg1)->m_middleDown = arg2;
17677
17678 Py_INCREF(Py_None); resultobj = Py_None;
17679 return resultobj;
17680 fail:
17681 return NULL;
17682 }
17683
17684
17685 static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
17686 PyObject *resultobj;
17687 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17688 bool result;
17689 PyObject * obj0 = 0 ;
17690 char *kwnames[] = {
17691 (char *) "self", NULL
17692 };
17693
17694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail;
17695 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17696 if (SWIG_arg_fail(1)) SWIG_fail;
17697 result = (bool) ((arg1)->m_middleDown);
17698
17699 {
17700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17701 }
17702 return resultobj;
17703 fail:
17704 return NULL;
17705 }
17706
17707
17708 static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
17709 PyObject *resultobj;
17710 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17711 bool arg2 ;
17712 PyObject * obj0 = 0 ;
17713 PyObject * obj1 = 0 ;
17714 char *kwnames[] = {
17715 (char *) "self",(char *) "m_rightDown", NULL
17716 };
17717
17718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail;
17719 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17720 if (SWIG_arg_fail(1)) SWIG_fail;
17721 {
17722 arg2 = (bool)(SWIG_As_bool(obj1));
17723 if (SWIG_arg_fail(2)) SWIG_fail;
17724 }
17725 if (arg1) (arg1)->m_rightDown = arg2;
17726
17727 Py_INCREF(Py_None); resultobj = Py_None;
17728 return resultobj;
17729 fail:
17730 return NULL;
17731 }
17732
17733
17734 static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
17735 PyObject *resultobj;
17736 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17737 bool result;
17738 PyObject * obj0 = 0 ;
17739 char *kwnames[] = {
17740 (char *) "self", NULL
17741 };
17742
17743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail;
17744 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17745 if (SWIG_arg_fail(1)) SWIG_fail;
17746 result = (bool) ((arg1)->m_rightDown);
17747
17748 {
17749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17750 }
17751 return resultobj;
17752 fail:
17753 return NULL;
17754 }
17755
17756
17757 static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
17758 PyObject *resultobj;
17759 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17760 bool arg2 ;
17761 PyObject * obj0 = 0 ;
17762 PyObject * obj1 = 0 ;
17763 char *kwnames[] = {
17764 (char *) "self",(char *) "m_controlDown", NULL
17765 };
17766
17767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
17768 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17769 if (SWIG_arg_fail(1)) SWIG_fail;
17770 {
17771 arg2 = (bool)(SWIG_As_bool(obj1));
17772 if (SWIG_arg_fail(2)) SWIG_fail;
17773 }
17774 if (arg1) (arg1)->m_controlDown = arg2;
17775
17776 Py_INCREF(Py_None); resultobj = Py_None;
17777 return resultobj;
17778 fail:
17779 return NULL;
17780 }
17781
17782
17783 static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
17784 PyObject *resultobj;
17785 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17786 bool result;
17787 PyObject * obj0 = 0 ;
17788 char *kwnames[] = {
17789 (char *) "self", NULL
17790 };
17791
17792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
17793 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17794 if (SWIG_arg_fail(1)) SWIG_fail;
17795 result = (bool) ((arg1)->m_controlDown);
17796
17797 {
17798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17799 }
17800 return resultobj;
17801 fail:
17802 return NULL;
17803 }
17804
17805
17806 static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
17807 PyObject *resultobj;
17808 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17809 bool arg2 ;
17810 PyObject * obj0 = 0 ;
17811 PyObject * obj1 = 0 ;
17812 char *kwnames[] = {
17813 (char *) "self",(char *) "m_shiftDown", NULL
17814 };
17815
17816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
17817 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17818 if (SWIG_arg_fail(1)) SWIG_fail;
17819 {
17820 arg2 = (bool)(SWIG_As_bool(obj1));
17821 if (SWIG_arg_fail(2)) SWIG_fail;
17822 }
17823 if (arg1) (arg1)->m_shiftDown = arg2;
17824
17825 Py_INCREF(Py_None); resultobj = Py_None;
17826 return resultobj;
17827 fail:
17828 return NULL;
17829 }
17830
17831
17832 static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
17833 PyObject *resultobj;
17834 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17835 bool result;
17836 PyObject * obj0 = 0 ;
17837 char *kwnames[] = {
17838 (char *) "self", NULL
17839 };
17840
17841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
17842 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17843 if (SWIG_arg_fail(1)) SWIG_fail;
17844 result = (bool) ((arg1)->m_shiftDown);
17845
17846 {
17847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17848 }
17849 return resultobj;
17850 fail:
17851 return NULL;
17852 }
17853
17854
17855 static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
17856 PyObject *resultobj;
17857 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17858 bool arg2 ;
17859 PyObject * obj0 = 0 ;
17860 PyObject * obj1 = 0 ;
17861 char *kwnames[] = {
17862 (char *) "self",(char *) "m_altDown", NULL
17863 };
17864
17865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
17866 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17867 if (SWIG_arg_fail(1)) SWIG_fail;
17868 {
17869 arg2 = (bool)(SWIG_As_bool(obj1));
17870 if (SWIG_arg_fail(2)) SWIG_fail;
17871 }
17872 if (arg1) (arg1)->m_altDown = arg2;
17873
17874 Py_INCREF(Py_None); resultobj = Py_None;
17875 return resultobj;
17876 fail:
17877 return NULL;
17878 }
17879
17880
17881 static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
17882 PyObject *resultobj;
17883 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17884 bool result;
17885 PyObject * obj0 = 0 ;
17886 char *kwnames[] = {
17887 (char *) "self", NULL
17888 };
17889
17890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail;
17891 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17892 if (SWIG_arg_fail(1)) SWIG_fail;
17893 result = (bool) ((arg1)->m_altDown);
17894
17895 {
17896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17897 }
17898 return resultobj;
17899 fail:
17900 return NULL;
17901 }
17902
17903
17904 static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
17905 PyObject *resultobj;
17906 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17907 bool arg2 ;
17908 PyObject * obj0 = 0 ;
17909 PyObject * obj1 = 0 ;
17910 char *kwnames[] = {
17911 (char *) "self",(char *) "m_metaDown", NULL
17912 };
17913
17914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
17915 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17916 if (SWIG_arg_fail(1)) SWIG_fail;
17917 {
17918 arg2 = (bool)(SWIG_As_bool(obj1));
17919 if (SWIG_arg_fail(2)) SWIG_fail;
17920 }
17921 if (arg1) (arg1)->m_metaDown = arg2;
17922
17923 Py_INCREF(Py_None); resultobj = Py_None;
17924 return resultobj;
17925 fail:
17926 return NULL;
17927 }
17928
17929
17930 static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
17931 PyObject *resultobj;
17932 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17933 bool result;
17934 PyObject * obj0 = 0 ;
17935 char *kwnames[] = {
17936 (char *) "self", NULL
17937 };
17938
17939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
17940 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17941 if (SWIG_arg_fail(1)) SWIG_fail;
17942 result = (bool) ((arg1)->m_metaDown);
17943
17944 {
17945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17946 }
17947 return resultobj;
17948 fail:
17949 return NULL;
17950 }
17951
17952
17953 static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *, PyObject *args, PyObject *kwargs) {
17954 PyObject *resultobj;
17955 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17956 int arg2 ;
17957 PyObject * obj0 = 0 ;
17958 PyObject * obj1 = 0 ;
17959 char *kwnames[] = {
17960 (char *) "self",(char *) "m_wheelRotation", NULL
17961 };
17962
17963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail;
17964 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17965 if (SWIG_arg_fail(1)) SWIG_fail;
17966 {
17967 arg2 = (int)(SWIG_As_int(obj1));
17968 if (SWIG_arg_fail(2)) SWIG_fail;
17969 }
17970 if (arg1) (arg1)->m_wheelRotation = arg2;
17971
17972 Py_INCREF(Py_None); resultobj = Py_None;
17973 return resultobj;
17974 fail:
17975 return NULL;
17976 }
17977
17978
17979 static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *, PyObject *args, PyObject *kwargs) {
17980 PyObject *resultobj;
17981 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
17982 int result;
17983 PyObject * obj0 = 0 ;
17984 char *kwnames[] = {
17985 (char *) "self", NULL
17986 };
17987
17988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail;
17989 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
17990 if (SWIG_arg_fail(1)) SWIG_fail;
17991 result = (int) ((arg1)->m_wheelRotation);
17992
17993 {
17994 resultobj = SWIG_From_int((int)(result));
17995 }
17996 return resultobj;
17997 fail:
17998 return NULL;
17999 }
18000
18001
18002 static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *, PyObject *args, PyObject *kwargs) {
18003 PyObject *resultobj;
18004 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
18005 int arg2 ;
18006 PyObject * obj0 = 0 ;
18007 PyObject * obj1 = 0 ;
18008 char *kwnames[] = {
18009 (char *) "self",(char *) "m_wheelDelta", NULL
18010 };
18011
18012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail;
18013 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
18014 if (SWIG_arg_fail(1)) SWIG_fail;
18015 {
18016 arg2 = (int)(SWIG_As_int(obj1));
18017 if (SWIG_arg_fail(2)) SWIG_fail;
18018 }
18019 if (arg1) (arg1)->m_wheelDelta = arg2;
18020
18021 Py_INCREF(Py_None); resultobj = Py_None;
18022 return resultobj;
18023 fail:
18024 return NULL;
18025 }
18026
18027
18028 static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *, PyObject *args, PyObject *kwargs) {
18029 PyObject *resultobj;
18030 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
18031 int result;
18032 PyObject * obj0 = 0 ;
18033 char *kwnames[] = {
18034 (char *) "self", NULL
18035 };
18036
18037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail;
18038 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
18039 if (SWIG_arg_fail(1)) SWIG_fail;
18040 result = (int) ((arg1)->m_wheelDelta);
18041
18042 {
18043 resultobj = SWIG_From_int((int)(result));
18044 }
18045 return resultobj;
18046 fail:
18047 return NULL;
18048 }
18049
18050
18051 static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *, PyObject *args, PyObject *kwargs) {
18052 PyObject *resultobj;
18053 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
18054 int arg2 ;
18055 PyObject * obj0 = 0 ;
18056 PyObject * obj1 = 0 ;
18057 char *kwnames[] = {
18058 (char *) "self",(char *) "m_linesPerAction", NULL
18059 };
18060
18061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail;
18062 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
18063 if (SWIG_arg_fail(1)) SWIG_fail;
18064 {
18065 arg2 = (int)(SWIG_As_int(obj1));
18066 if (SWIG_arg_fail(2)) SWIG_fail;
18067 }
18068 if (arg1) (arg1)->m_linesPerAction = arg2;
18069
18070 Py_INCREF(Py_None); resultobj = Py_None;
18071 return resultobj;
18072 fail:
18073 return NULL;
18074 }
18075
18076
18077 static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *, PyObject *args, PyObject *kwargs) {
18078 PyObject *resultobj;
18079 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
18080 int result;
18081 PyObject * obj0 = 0 ;
18082 char *kwnames[] = {
18083 (char *) "self", NULL
18084 };
18085
18086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail;
18087 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0);
18088 if (SWIG_arg_fail(1)) SWIG_fail;
18089 result = (int) ((arg1)->m_linesPerAction);
18090
18091 {
18092 resultobj = SWIG_From_int((int)(result));
18093 }
18094 return resultobj;
18095 fail:
18096 return NULL;
18097 }
18098
18099
18100 static PyObject * MouseEvent_swigregister(PyObject *, PyObject *args) {
18101 PyObject *obj;
18102 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18103 SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj);
18104 Py_INCREF(obj);
18105 return Py_BuildValue((char *)"");
18106 }
18107 static PyObject *_wrap_new_SetCursorEvent(PyObject *, PyObject *args, PyObject *kwargs) {
18108 PyObject *resultobj;
18109 int arg1 = (int) 0 ;
18110 int arg2 = (int) 0 ;
18111 wxSetCursorEvent *result;
18112 PyObject * obj0 = 0 ;
18113 PyObject * obj1 = 0 ;
18114 char *kwnames[] = {
18115 (char *) "x",(char *) "y", NULL
18116 };
18117
18118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail;
18119 if (obj0) {
18120 {
18121 arg1 = (int)(SWIG_As_int(obj0));
18122 if (SWIG_arg_fail(1)) SWIG_fail;
18123 }
18124 }
18125 if (obj1) {
18126 {
18127 arg2 = (int)(SWIG_As_int(obj1));
18128 if (SWIG_arg_fail(2)) SWIG_fail;
18129 }
18130 }
18131 {
18132 PyThreadState* __tstate = wxPyBeginAllowThreads();
18133 result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2);
18134
18135 wxPyEndAllowThreads(__tstate);
18136 if (PyErr_Occurred()) SWIG_fail;
18137 }
18138 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1);
18139 return resultobj;
18140 fail:
18141 return NULL;
18142 }
18143
18144
18145 static PyObject *_wrap_SetCursorEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
18146 PyObject *resultobj;
18147 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
18148 int result;
18149 PyObject * obj0 = 0 ;
18150 char *kwnames[] = {
18151 (char *) "self", NULL
18152 };
18153
18154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail;
18155 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0);
18156 if (SWIG_arg_fail(1)) SWIG_fail;
18157 {
18158 PyThreadState* __tstate = wxPyBeginAllowThreads();
18159 result = (int)((wxSetCursorEvent const *)arg1)->GetX();
18160
18161 wxPyEndAllowThreads(__tstate);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 }
18164 {
18165 resultobj = SWIG_From_int((int)(result));
18166 }
18167 return resultobj;
18168 fail:
18169 return NULL;
18170 }
18171
18172
18173 static PyObject *_wrap_SetCursorEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
18174 PyObject *resultobj;
18175 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
18176 int result;
18177 PyObject * obj0 = 0 ;
18178 char *kwnames[] = {
18179 (char *) "self", NULL
18180 };
18181
18182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail;
18183 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0);
18184 if (SWIG_arg_fail(1)) SWIG_fail;
18185 {
18186 PyThreadState* __tstate = wxPyBeginAllowThreads();
18187 result = (int)((wxSetCursorEvent const *)arg1)->GetY();
18188
18189 wxPyEndAllowThreads(__tstate);
18190 if (PyErr_Occurred()) SWIG_fail;
18191 }
18192 {
18193 resultobj = SWIG_From_int((int)(result));
18194 }
18195 return resultobj;
18196 fail:
18197 return NULL;
18198 }
18199
18200
18201 static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
18202 PyObject *resultobj;
18203 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
18204 wxCursor *arg2 = 0 ;
18205 PyObject * obj0 = 0 ;
18206 PyObject * obj1 = 0 ;
18207 char *kwnames[] = {
18208 (char *) "self",(char *) "cursor", NULL
18209 };
18210
18211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail;
18212 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0);
18213 if (SWIG_arg_fail(1)) SWIG_fail;
18214 {
18215 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
18216 if (SWIG_arg_fail(2)) SWIG_fail;
18217 if (arg2 == NULL) {
18218 SWIG_null_ref("wxCursor");
18219 }
18220 if (SWIG_arg_fail(2)) SWIG_fail;
18221 }
18222 {
18223 PyThreadState* __tstate = wxPyBeginAllowThreads();
18224 (arg1)->SetCursor((wxCursor const &)*arg2);
18225
18226 wxPyEndAllowThreads(__tstate);
18227 if (PyErr_Occurred()) SWIG_fail;
18228 }
18229 Py_INCREF(Py_None); resultobj = Py_None;
18230 return resultobj;
18231 fail:
18232 return NULL;
18233 }
18234
18235
18236 static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
18237 PyObject *resultobj;
18238 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
18239 wxCursor *result;
18240 PyObject * obj0 = 0 ;
18241 char *kwnames[] = {
18242 (char *) "self", NULL
18243 };
18244
18245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail;
18246 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0);
18247 if (SWIG_arg_fail(1)) SWIG_fail;
18248 {
18249 PyThreadState* __tstate = wxPyBeginAllowThreads();
18250 {
18251 wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor();
18252 result = (wxCursor *) &_result_ref;
18253 }
18254
18255 wxPyEndAllowThreads(__tstate);
18256 if (PyErr_Occurred()) SWIG_fail;
18257 }
18258 {
18259 wxCursor* resultptr = new wxCursor(*result);
18260 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1);
18261 }
18262 return resultobj;
18263 fail:
18264 return NULL;
18265 }
18266
18267
18268 static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *, PyObject *args, PyObject *kwargs) {
18269 PyObject *resultobj;
18270 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
18271 bool result;
18272 PyObject * obj0 = 0 ;
18273 char *kwnames[] = {
18274 (char *) "self", NULL
18275 };
18276
18277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail;
18278 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_EXCEPTION | 0);
18279 if (SWIG_arg_fail(1)) SWIG_fail;
18280 {
18281 PyThreadState* __tstate = wxPyBeginAllowThreads();
18282 result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor();
18283
18284 wxPyEndAllowThreads(__tstate);
18285 if (PyErr_Occurred()) SWIG_fail;
18286 }
18287 {
18288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18289 }
18290 return resultobj;
18291 fail:
18292 return NULL;
18293 }
18294
18295
18296 static PyObject * SetCursorEvent_swigregister(PyObject *, PyObject *args) {
18297 PyObject *obj;
18298 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18299 SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj);
18300 Py_INCREF(obj);
18301 return Py_BuildValue((char *)"");
18302 }
18303 static PyObject *_wrap_new_KeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
18304 PyObject *resultobj;
18305 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
18306 wxKeyEvent *result;
18307 PyObject * obj0 = 0 ;
18308 char *kwnames[] = {
18309 (char *) "keyType", NULL
18310 };
18311
18312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail;
18313 if (obj0) {
18314 {
18315 arg1 = (wxEventType)(SWIG_As_int(obj0));
18316 if (SWIG_arg_fail(1)) SWIG_fail;
18317 }
18318 }
18319 {
18320 PyThreadState* __tstate = wxPyBeginAllowThreads();
18321 result = (wxKeyEvent *)new wxKeyEvent(arg1);
18322
18323 wxPyEndAllowThreads(__tstate);
18324 if (PyErr_Occurred()) SWIG_fail;
18325 }
18326 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1);
18327 return resultobj;
18328 fail:
18329 return NULL;
18330 }
18331
18332
18333 static PyObject *_wrap_KeyEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) {
18334 PyObject *resultobj;
18335 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18336 bool result;
18337 PyObject * obj0 = 0 ;
18338 char *kwnames[] = {
18339 (char *) "self", NULL
18340 };
18341
18342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail;
18343 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18344 if (SWIG_arg_fail(1)) SWIG_fail;
18345 {
18346 PyThreadState* __tstate = wxPyBeginAllowThreads();
18347 result = (bool)((wxKeyEvent const *)arg1)->ControlDown();
18348
18349 wxPyEndAllowThreads(__tstate);
18350 if (PyErr_Occurred()) SWIG_fail;
18351 }
18352 {
18353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18354 }
18355 return resultobj;
18356 fail:
18357 return NULL;
18358 }
18359
18360
18361 static PyObject *_wrap_KeyEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) {
18362 PyObject *resultobj;
18363 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18364 bool result;
18365 PyObject * obj0 = 0 ;
18366 char *kwnames[] = {
18367 (char *) "self", NULL
18368 };
18369
18370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail;
18371 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18372 if (SWIG_arg_fail(1)) SWIG_fail;
18373 {
18374 PyThreadState* __tstate = wxPyBeginAllowThreads();
18375 result = (bool)((wxKeyEvent const *)arg1)->MetaDown();
18376
18377 wxPyEndAllowThreads(__tstate);
18378 if (PyErr_Occurred()) SWIG_fail;
18379 }
18380 {
18381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18382 }
18383 return resultobj;
18384 fail:
18385 return NULL;
18386 }
18387
18388
18389 static PyObject *_wrap_KeyEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) {
18390 PyObject *resultobj;
18391 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18392 bool result;
18393 PyObject * obj0 = 0 ;
18394 char *kwnames[] = {
18395 (char *) "self", NULL
18396 };
18397
18398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail;
18399 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18400 if (SWIG_arg_fail(1)) SWIG_fail;
18401 {
18402 PyThreadState* __tstate = wxPyBeginAllowThreads();
18403 result = (bool)((wxKeyEvent const *)arg1)->AltDown();
18404
18405 wxPyEndAllowThreads(__tstate);
18406 if (PyErr_Occurred()) SWIG_fail;
18407 }
18408 {
18409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18410 }
18411 return resultobj;
18412 fail:
18413 return NULL;
18414 }
18415
18416
18417 static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) {
18418 PyObject *resultobj;
18419 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18420 bool result;
18421 PyObject * obj0 = 0 ;
18422 char *kwnames[] = {
18423 (char *) "self", NULL
18424 };
18425
18426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail;
18427 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18428 if (SWIG_arg_fail(1)) SWIG_fail;
18429 {
18430 PyThreadState* __tstate = wxPyBeginAllowThreads();
18431 result = (bool)((wxKeyEvent const *)arg1)->ShiftDown();
18432
18433 wxPyEndAllowThreads(__tstate);
18434 if (PyErr_Occurred()) SWIG_fail;
18435 }
18436 {
18437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18438 }
18439 return resultobj;
18440 fail:
18441 return NULL;
18442 }
18443
18444
18445 static PyObject *_wrap_KeyEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) {
18446 PyObject *resultobj;
18447 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18448 bool result;
18449 PyObject * obj0 = 0 ;
18450 char *kwnames[] = {
18451 (char *) "self", NULL
18452 };
18453
18454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail;
18455 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18456 if (SWIG_arg_fail(1)) SWIG_fail;
18457 {
18458 PyThreadState* __tstate = wxPyBeginAllowThreads();
18459 result = (bool)((wxKeyEvent const *)arg1)->CmdDown();
18460
18461 wxPyEndAllowThreads(__tstate);
18462 if (PyErr_Occurred()) SWIG_fail;
18463 }
18464 {
18465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18466 }
18467 return resultobj;
18468 fail:
18469 return NULL;
18470 }
18471
18472
18473 static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *, PyObject *args, PyObject *kwargs) {
18474 PyObject *resultobj;
18475 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18476 bool result;
18477 PyObject * obj0 = 0 ;
18478 char *kwnames[] = {
18479 (char *) "self", NULL
18480 };
18481
18482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail;
18483 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18484 if (SWIG_arg_fail(1)) SWIG_fail;
18485 {
18486 PyThreadState* __tstate = wxPyBeginAllowThreads();
18487 result = (bool)((wxKeyEvent const *)arg1)->HasModifiers();
18488
18489 wxPyEndAllowThreads(__tstate);
18490 if (PyErr_Occurred()) SWIG_fail;
18491 }
18492 {
18493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18494 }
18495 return resultobj;
18496 fail:
18497 return NULL;
18498 }
18499
18500
18501 static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
18502 PyObject *resultobj;
18503 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18504 int result;
18505 PyObject * obj0 = 0 ;
18506 char *kwnames[] = {
18507 (char *) "self", NULL
18508 };
18509
18510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail;
18511 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18512 if (SWIG_arg_fail(1)) SWIG_fail;
18513 {
18514 PyThreadState* __tstate = wxPyBeginAllowThreads();
18515 result = (int)((wxKeyEvent const *)arg1)->GetKeyCode();
18516
18517 wxPyEndAllowThreads(__tstate);
18518 if (PyErr_Occurred()) SWIG_fail;
18519 }
18520 {
18521 resultobj = SWIG_From_int((int)(result));
18522 }
18523 return resultobj;
18524 fail:
18525 return NULL;
18526 }
18527
18528
18529 static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *, PyObject *args, PyObject *kwargs) {
18530 PyObject *resultobj;
18531 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18532 int result;
18533 PyObject * obj0 = 0 ;
18534 char *kwnames[] = {
18535 (char *) "self", NULL
18536 };
18537
18538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail;
18539 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18540 if (SWIG_arg_fail(1)) SWIG_fail;
18541 {
18542 PyThreadState* __tstate = wxPyBeginAllowThreads();
18543 result = (int)wxKeyEvent_GetUnicodeKey(arg1);
18544
18545 wxPyEndAllowThreads(__tstate);
18546 if (PyErr_Occurred()) SWIG_fail;
18547 }
18548 {
18549 resultobj = SWIG_From_int((int)(result));
18550 }
18551 return resultobj;
18552 fail:
18553 return NULL;
18554 }
18555
18556
18557 static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
18558 PyObject *resultobj;
18559 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18560 unsigned int result;
18561 PyObject * obj0 = 0 ;
18562 char *kwnames[] = {
18563 (char *) "self", NULL
18564 };
18565
18566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail;
18567 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18568 if (SWIG_arg_fail(1)) SWIG_fail;
18569 {
18570 PyThreadState* __tstate = wxPyBeginAllowThreads();
18571 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode();
18572
18573 wxPyEndAllowThreads(__tstate);
18574 if (PyErr_Occurred()) SWIG_fail;
18575 }
18576 {
18577 resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result));
18578 }
18579 return resultobj;
18580 fail:
18581 return NULL;
18582 }
18583
18584
18585 static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *, PyObject *args, PyObject *kwargs) {
18586 PyObject *resultobj;
18587 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18588 unsigned int result;
18589 PyObject * obj0 = 0 ;
18590 char *kwnames[] = {
18591 (char *) "self", NULL
18592 };
18593
18594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail;
18595 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18596 if (SWIG_arg_fail(1)) SWIG_fail;
18597 {
18598 PyThreadState* __tstate = wxPyBeginAllowThreads();
18599 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags();
18600
18601 wxPyEndAllowThreads(__tstate);
18602 if (PyErr_Occurred()) SWIG_fail;
18603 }
18604 {
18605 resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result));
18606 }
18607 return resultobj;
18608 fail:
18609 return NULL;
18610 }
18611
18612
18613 static PyObject *_wrap_KeyEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
18614 PyObject *resultobj;
18615 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18616 wxPoint result;
18617 PyObject * obj0 = 0 ;
18618 char *kwnames[] = {
18619 (char *) "self", NULL
18620 };
18621
18622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail;
18623 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18624 if (SWIG_arg_fail(1)) SWIG_fail;
18625 {
18626 PyThreadState* __tstate = wxPyBeginAllowThreads();
18627 result = (arg1)->GetPosition();
18628
18629 wxPyEndAllowThreads(__tstate);
18630 if (PyErr_Occurred()) SWIG_fail;
18631 }
18632 {
18633 wxPoint * resultptr;
18634 resultptr = new wxPoint((wxPoint &)(result));
18635 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
18636 }
18637 return resultobj;
18638 fail:
18639 return NULL;
18640 }
18641
18642
18643 static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
18644 PyObject *resultobj;
18645 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18646 long *arg2 = (long *) 0 ;
18647 long *arg3 = (long *) 0 ;
18648 long temp2 ;
18649 int res2 = 0 ;
18650 long temp3 ;
18651 int res3 = 0 ;
18652 PyObject * obj0 = 0 ;
18653 char *kwnames[] = {
18654 (char *) "self", NULL
18655 };
18656
18657 arg2 = &temp2; res2 = SWIG_NEWOBJ;
18658 arg3 = &temp3; res3 = SWIG_NEWOBJ;
18659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
18660 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18661 if (SWIG_arg_fail(1)) SWIG_fail;
18662 {
18663 PyThreadState* __tstate = wxPyBeginAllowThreads();
18664 (arg1)->GetPosition(arg2,arg3);
18665
18666 wxPyEndAllowThreads(__tstate);
18667 if (PyErr_Occurred()) SWIG_fail;
18668 }
18669 Py_INCREF(Py_None); resultobj = Py_None;
18670 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
18671 SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0)));
18672 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
18673 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
18674 return resultobj;
18675 fail:
18676 return NULL;
18677 }
18678
18679
18680 static PyObject *_wrap_KeyEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
18681 PyObject *resultobj;
18682 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18683 int result;
18684 PyObject * obj0 = 0 ;
18685 char *kwnames[] = {
18686 (char *) "self", NULL
18687 };
18688
18689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail;
18690 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18691 if (SWIG_arg_fail(1)) SWIG_fail;
18692 {
18693 PyThreadState* __tstate = wxPyBeginAllowThreads();
18694 result = (int)((wxKeyEvent const *)arg1)->GetX();
18695
18696 wxPyEndAllowThreads(__tstate);
18697 if (PyErr_Occurred()) SWIG_fail;
18698 }
18699 {
18700 resultobj = SWIG_From_int((int)(result));
18701 }
18702 return resultobj;
18703 fail:
18704 return NULL;
18705 }
18706
18707
18708 static PyObject *_wrap_KeyEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
18709 PyObject *resultobj;
18710 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18711 int result;
18712 PyObject * obj0 = 0 ;
18713 char *kwnames[] = {
18714 (char *) "self", NULL
18715 };
18716
18717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail;
18718 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18719 if (SWIG_arg_fail(1)) SWIG_fail;
18720 {
18721 PyThreadState* __tstate = wxPyBeginAllowThreads();
18722 result = (int)((wxKeyEvent const *)arg1)->GetY();
18723
18724 wxPyEndAllowThreads(__tstate);
18725 if (PyErr_Occurred()) SWIG_fail;
18726 }
18727 {
18728 resultobj = SWIG_From_int((int)(result));
18729 }
18730 return resultobj;
18731 fail:
18732 return NULL;
18733 }
18734
18735
18736 static PyObject *_wrap_KeyEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
18737 PyObject *resultobj;
18738 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18739 int arg2 ;
18740 PyObject * obj0 = 0 ;
18741 PyObject * obj1 = 0 ;
18742 char *kwnames[] = {
18743 (char *) "self",(char *) "m_x", NULL
18744 };
18745
18746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
18747 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18748 if (SWIG_arg_fail(1)) SWIG_fail;
18749 {
18750 arg2 = (int)(SWIG_As_int(obj1));
18751 if (SWIG_arg_fail(2)) SWIG_fail;
18752 }
18753 if (arg1) (arg1)->m_x = arg2;
18754
18755 Py_INCREF(Py_None); resultobj = Py_None;
18756 return resultobj;
18757 fail:
18758 return NULL;
18759 }
18760
18761
18762 static PyObject *_wrap_KeyEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
18763 PyObject *resultobj;
18764 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18765 int result;
18766 PyObject * obj0 = 0 ;
18767 char *kwnames[] = {
18768 (char *) "self", NULL
18769 };
18770
18771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail;
18772 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18773 if (SWIG_arg_fail(1)) SWIG_fail;
18774 result = (int) ((arg1)->m_x);
18775
18776 {
18777 resultobj = SWIG_From_int((int)(result));
18778 }
18779 return resultobj;
18780 fail:
18781 return NULL;
18782 }
18783
18784
18785 static PyObject *_wrap_KeyEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
18786 PyObject *resultobj;
18787 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18788 int arg2 ;
18789 PyObject * obj0 = 0 ;
18790 PyObject * obj1 = 0 ;
18791 char *kwnames[] = {
18792 (char *) "self",(char *) "m_y", NULL
18793 };
18794
18795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
18796 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18797 if (SWIG_arg_fail(1)) SWIG_fail;
18798 {
18799 arg2 = (int)(SWIG_As_int(obj1));
18800 if (SWIG_arg_fail(2)) SWIG_fail;
18801 }
18802 if (arg1) (arg1)->m_y = arg2;
18803
18804 Py_INCREF(Py_None); resultobj = Py_None;
18805 return resultobj;
18806 fail:
18807 return NULL;
18808 }
18809
18810
18811 static PyObject *_wrap_KeyEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
18812 PyObject *resultobj;
18813 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18814 int result;
18815 PyObject * obj0 = 0 ;
18816 char *kwnames[] = {
18817 (char *) "self", NULL
18818 };
18819
18820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail;
18821 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18822 if (SWIG_arg_fail(1)) SWIG_fail;
18823 result = (int) ((arg1)->m_y);
18824
18825 {
18826 resultobj = SWIG_From_int((int)(result));
18827 }
18828 return resultobj;
18829 fail:
18830 return NULL;
18831 }
18832
18833
18834 static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *, PyObject *args, PyObject *kwargs) {
18835 PyObject *resultobj;
18836 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18837 long arg2 ;
18838 PyObject * obj0 = 0 ;
18839 PyObject * obj1 = 0 ;
18840 char *kwnames[] = {
18841 (char *) "self",(char *) "m_keyCode", NULL
18842 };
18843
18844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail;
18845 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18846 if (SWIG_arg_fail(1)) SWIG_fail;
18847 {
18848 arg2 = (long)(SWIG_As_long(obj1));
18849 if (SWIG_arg_fail(2)) SWIG_fail;
18850 }
18851 if (arg1) (arg1)->m_keyCode = arg2;
18852
18853 Py_INCREF(Py_None); resultobj = Py_None;
18854 return resultobj;
18855 fail:
18856 return NULL;
18857 }
18858
18859
18860 static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *, PyObject *args, PyObject *kwargs) {
18861 PyObject *resultobj;
18862 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18863 long result;
18864 PyObject * obj0 = 0 ;
18865 char *kwnames[] = {
18866 (char *) "self", NULL
18867 };
18868
18869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail;
18870 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18871 if (SWIG_arg_fail(1)) SWIG_fail;
18872 result = (long) ((arg1)->m_keyCode);
18873
18874 {
18875 resultobj = SWIG_From_long((long)(result));
18876 }
18877 return resultobj;
18878 fail:
18879 return NULL;
18880 }
18881
18882
18883 static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
18884 PyObject *resultobj;
18885 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18886 bool arg2 ;
18887 PyObject * obj0 = 0 ;
18888 PyObject * obj1 = 0 ;
18889 char *kwnames[] = {
18890 (char *) "self",(char *) "m_controlDown", NULL
18891 };
18892
18893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
18894 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18895 if (SWIG_arg_fail(1)) SWIG_fail;
18896 {
18897 arg2 = (bool)(SWIG_As_bool(obj1));
18898 if (SWIG_arg_fail(2)) SWIG_fail;
18899 }
18900 if (arg1) (arg1)->m_controlDown = arg2;
18901
18902 Py_INCREF(Py_None); resultobj = Py_None;
18903 return resultobj;
18904 fail:
18905 return NULL;
18906 }
18907
18908
18909 static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
18910 PyObject *resultobj;
18911 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18912 bool result;
18913 PyObject * obj0 = 0 ;
18914 char *kwnames[] = {
18915 (char *) "self", NULL
18916 };
18917
18918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
18919 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18920 if (SWIG_arg_fail(1)) SWIG_fail;
18921 result = (bool) ((arg1)->m_controlDown);
18922
18923 {
18924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18925 }
18926 return resultobj;
18927 fail:
18928 return NULL;
18929 }
18930
18931
18932 static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
18933 PyObject *resultobj;
18934 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18935 bool arg2 ;
18936 PyObject * obj0 = 0 ;
18937 PyObject * obj1 = 0 ;
18938 char *kwnames[] = {
18939 (char *) "self",(char *) "m_shiftDown", NULL
18940 };
18941
18942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
18943 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18944 if (SWIG_arg_fail(1)) SWIG_fail;
18945 {
18946 arg2 = (bool)(SWIG_As_bool(obj1));
18947 if (SWIG_arg_fail(2)) SWIG_fail;
18948 }
18949 if (arg1) (arg1)->m_shiftDown = arg2;
18950
18951 Py_INCREF(Py_None); resultobj = Py_None;
18952 return resultobj;
18953 fail:
18954 return NULL;
18955 }
18956
18957
18958 static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
18959 PyObject *resultobj;
18960 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18961 bool result;
18962 PyObject * obj0 = 0 ;
18963 char *kwnames[] = {
18964 (char *) "self", NULL
18965 };
18966
18967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
18968 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18969 if (SWIG_arg_fail(1)) SWIG_fail;
18970 result = (bool) ((arg1)->m_shiftDown);
18971
18972 {
18973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18974 }
18975 return resultobj;
18976 fail:
18977 return NULL;
18978 }
18979
18980
18981 static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
18982 PyObject *resultobj;
18983 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
18984 bool arg2 ;
18985 PyObject * obj0 = 0 ;
18986 PyObject * obj1 = 0 ;
18987 char *kwnames[] = {
18988 (char *) "self",(char *) "m_altDown", NULL
18989 };
18990
18991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
18992 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
18993 if (SWIG_arg_fail(1)) SWIG_fail;
18994 {
18995 arg2 = (bool)(SWIG_As_bool(obj1));
18996 if (SWIG_arg_fail(2)) SWIG_fail;
18997 }
18998 if (arg1) (arg1)->m_altDown = arg2;
18999
19000 Py_INCREF(Py_None); resultobj = Py_None;
19001 return resultobj;
19002 fail:
19003 return NULL;
19004 }
19005
19006
19007 static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
19008 PyObject *resultobj;
19009 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
19010 bool result;
19011 PyObject * obj0 = 0 ;
19012 char *kwnames[] = {
19013 (char *) "self", NULL
19014 };
19015
19016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail;
19017 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
19018 if (SWIG_arg_fail(1)) SWIG_fail;
19019 result = (bool) ((arg1)->m_altDown);
19020
19021 {
19022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19023 }
19024 return resultobj;
19025 fail:
19026 return NULL;
19027 }
19028
19029
19030 static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
19031 PyObject *resultobj;
19032 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
19033 bool arg2 ;
19034 PyObject * obj0 = 0 ;
19035 PyObject * obj1 = 0 ;
19036 char *kwnames[] = {
19037 (char *) "self",(char *) "m_metaDown", NULL
19038 };
19039
19040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
19041 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
19042 if (SWIG_arg_fail(1)) SWIG_fail;
19043 {
19044 arg2 = (bool)(SWIG_As_bool(obj1));
19045 if (SWIG_arg_fail(2)) SWIG_fail;
19046 }
19047 if (arg1) (arg1)->m_metaDown = arg2;
19048
19049 Py_INCREF(Py_None); resultobj = Py_None;
19050 return resultobj;
19051 fail:
19052 return NULL;
19053 }
19054
19055
19056 static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
19057 PyObject *resultobj;
19058 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
19059 bool result;
19060 PyObject * obj0 = 0 ;
19061 char *kwnames[] = {
19062 (char *) "self", NULL
19063 };
19064
19065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
19066 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
19067 if (SWIG_arg_fail(1)) SWIG_fail;
19068 result = (bool) ((arg1)->m_metaDown);
19069
19070 {
19071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19072 }
19073 return resultobj;
19074 fail:
19075 return NULL;
19076 }
19077
19078
19079 static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *, PyObject *args, PyObject *kwargs) {
19080 PyObject *resultobj;
19081 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
19082 bool arg2 ;
19083 PyObject * obj0 = 0 ;
19084 PyObject * obj1 = 0 ;
19085 char *kwnames[] = {
19086 (char *) "self",(char *) "m_scanCode", NULL
19087 };
19088
19089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail;
19090 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
19091 if (SWIG_arg_fail(1)) SWIG_fail;
19092 {
19093 arg2 = (bool)(SWIG_As_bool(obj1));
19094 if (SWIG_arg_fail(2)) SWIG_fail;
19095 }
19096 if (arg1) (arg1)->m_scanCode = arg2;
19097
19098 Py_INCREF(Py_None); resultobj = Py_None;
19099 return resultobj;
19100 fail:
19101 return NULL;
19102 }
19103
19104
19105 static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *, PyObject *args, PyObject *kwargs) {
19106 PyObject *resultobj;
19107 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
19108 bool result;
19109 PyObject * obj0 = 0 ;
19110 char *kwnames[] = {
19111 (char *) "self", NULL
19112 };
19113
19114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail;
19115 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
19116 if (SWIG_arg_fail(1)) SWIG_fail;
19117 result = (bool) ((arg1)->m_scanCode);
19118
19119 {
19120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19121 }
19122 return resultobj;
19123 fail:
19124 return NULL;
19125 }
19126
19127
19128 static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *, PyObject *args, PyObject *kwargs) {
19129 PyObject *resultobj;
19130 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
19131 unsigned int arg2 ;
19132 PyObject * obj0 = 0 ;
19133 PyObject * obj1 = 0 ;
19134 char *kwnames[] = {
19135 (char *) "self",(char *) "m_rawCode", NULL
19136 };
19137
19138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail;
19139 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
19140 if (SWIG_arg_fail(1)) SWIG_fail;
19141 {
19142 arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1));
19143 if (SWIG_arg_fail(2)) SWIG_fail;
19144 }
19145 if (arg1) (arg1)->m_rawCode = arg2;
19146
19147 Py_INCREF(Py_None); resultobj = Py_None;
19148 return resultobj;
19149 fail:
19150 return NULL;
19151 }
19152
19153
19154 static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *, PyObject *args, PyObject *kwargs) {
19155 PyObject *resultobj;
19156 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
19157 unsigned int result;
19158 PyObject * obj0 = 0 ;
19159 char *kwnames[] = {
19160 (char *) "self", NULL
19161 };
19162
19163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail;
19164 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
19165 if (SWIG_arg_fail(1)) SWIG_fail;
19166 result = (unsigned int) ((arg1)->m_rawCode);
19167
19168 {
19169 resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result));
19170 }
19171 return resultobj;
19172 fail:
19173 return NULL;
19174 }
19175
19176
19177 static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *, PyObject *args, PyObject *kwargs) {
19178 PyObject *resultobj;
19179 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
19180 unsigned int arg2 ;
19181 PyObject * obj0 = 0 ;
19182 PyObject * obj1 = 0 ;
19183 char *kwnames[] = {
19184 (char *) "self",(char *) "m_rawFlags", NULL
19185 };
19186
19187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail;
19188 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
19189 if (SWIG_arg_fail(1)) SWIG_fail;
19190 {
19191 arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1));
19192 if (SWIG_arg_fail(2)) SWIG_fail;
19193 }
19194 if (arg1) (arg1)->m_rawFlags = arg2;
19195
19196 Py_INCREF(Py_None); resultobj = Py_None;
19197 return resultobj;
19198 fail:
19199 return NULL;
19200 }
19201
19202
19203 static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *, PyObject *args, PyObject *kwargs) {
19204 PyObject *resultobj;
19205 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
19206 unsigned int result;
19207 PyObject * obj0 = 0 ;
19208 char *kwnames[] = {
19209 (char *) "self", NULL
19210 };
19211
19212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail;
19213 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0);
19214 if (SWIG_arg_fail(1)) SWIG_fail;
19215 result = (unsigned int) ((arg1)->m_rawFlags);
19216
19217 {
19218 resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result));
19219 }
19220 return resultobj;
19221 fail:
19222 return NULL;
19223 }
19224
19225
19226 static PyObject * KeyEvent_swigregister(PyObject *, PyObject *args) {
19227 PyObject *obj;
19228 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19229 SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj);
19230 Py_INCREF(obj);
19231 return Py_BuildValue((char *)"");
19232 }
19233 static PyObject *_wrap_new_SizeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19234 PyObject *resultobj;
19235 wxSize const &arg1_defvalue = wxDefaultSize ;
19236 wxSize *arg1 = (wxSize *) &arg1_defvalue ;
19237 int arg2 = (int) 0 ;
19238 wxSizeEvent *result;
19239 wxSize temp1 ;
19240 PyObject * obj0 = 0 ;
19241 PyObject * obj1 = 0 ;
19242 char *kwnames[] = {
19243 (char *) "sz",(char *) "winid", NULL
19244 };
19245
19246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail;
19247 if (obj0) {
19248 {
19249 arg1 = &temp1;
19250 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
19251 }
19252 }
19253 if (obj1) {
19254 {
19255 arg2 = (int)(SWIG_As_int(obj1));
19256 if (SWIG_arg_fail(2)) SWIG_fail;
19257 }
19258 }
19259 {
19260 PyThreadState* __tstate = wxPyBeginAllowThreads();
19261 result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2);
19262
19263 wxPyEndAllowThreads(__tstate);
19264 if (PyErr_Occurred()) SWIG_fail;
19265 }
19266 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1);
19267 return resultobj;
19268 fail:
19269 return NULL;
19270 }
19271
19272
19273 static PyObject *_wrap_SizeEvent_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
19274 PyObject *resultobj;
19275 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
19276 wxSize result;
19277 PyObject * obj0 = 0 ;
19278 char *kwnames[] = {
19279 (char *) "self", NULL
19280 };
19281
19282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail;
19283 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0);
19284 if (SWIG_arg_fail(1)) SWIG_fail;
19285 {
19286 PyThreadState* __tstate = wxPyBeginAllowThreads();
19287 result = ((wxSizeEvent const *)arg1)->GetSize();
19288
19289 wxPyEndAllowThreads(__tstate);
19290 if (PyErr_Occurred()) SWIG_fail;
19291 }
19292 {
19293 wxSize * resultptr;
19294 resultptr = new wxSize((wxSize &)(result));
19295 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
19296 }
19297 return resultobj;
19298 fail:
19299 return NULL;
19300 }
19301
19302
19303 static PyObject *_wrap_SizeEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
19304 PyObject *resultobj;
19305 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
19306 wxRect result;
19307 PyObject * obj0 = 0 ;
19308 char *kwnames[] = {
19309 (char *) "self", NULL
19310 };
19311
19312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail;
19313 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0);
19314 if (SWIG_arg_fail(1)) SWIG_fail;
19315 {
19316 PyThreadState* __tstate = wxPyBeginAllowThreads();
19317 result = ((wxSizeEvent const *)arg1)->GetRect();
19318
19319 wxPyEndAllowThreads(__tstate);
19320 if (PyErr_Occurred()) SWIG_fail;
19321 }
19322 {
19323 wxRect * resultptr;
19324 resultptr = new wxRect((wxRect &)(result));
19325 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
19326 }
19327 return resultobj;
19328 fail:
19329 return NULL;
19330 }
19331
19332
19333 static PyObject *_wrap_SizeEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) {
19334 PyObject *resultobj;
19335 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
19336 wxRect arg2 ;
19337 PyObject * obj0 = 0 ;
19338 PyObject * obj1 = 0 ;
19339 char *kwnames[] = {
19340 (char *) "self",(char *) "rect", NULL
19341 };
19342
19343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
19344 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0);
19345 if (SWIG_arg_fail(1)) SWIG_fail;
19346 {
19347 wxRect * argp;
19348 SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION);
19349 if (SWIG_arg_fail(2)) SWIG_fail;
19350 if (argp == NULL) {
19351 SWIG_null_ref("wxRect");
19352 }
19353 if (SWIG_arg_fail(2)) SWIG_fail;
19354 arg2 = *argp;
19355 }
19356 {
19357 PyThreadState* __tstate = wxPyBeginAllowThreads();
19358 (arg1)->SetRect(arg2);
19359
19360 wxPyEndAllowThreads(__tstate);
19361 if (PyErr_Occurred()) SWIG_fail;
19362 }
19363 Py_INCREF(Py_None); resultobj = Py_None;
19364 return resultobj;
19365 fail:
19366 return NULL;
19367 }
19368
19369
19370 static PyObject *_wrap_SizeEvent_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
19371 PyObject *resultobj;
19372 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
19373 wxSize arg2 ;
19374 PyObject * obj0 = 0 ;
19375 PyObject * obj1 = 0 ;
19376 char *kwnames[] = {
19377 (char *) "self",(char *) "size", NULL
19378 };
19379
19380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail;
19381 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0);
19382 if (SWIG_arg_fail(1)) SWIG_fail;
19383 {
19384 wxSize * argp;
19385 SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION);
19386 if (SWIG_arg_fail(2)) SWIG_fail;
19387 if (argp == NULL) {
19388 SWIG_null_ref("wxSize");
19389 }
19390 if (SWIG_arg_fail(2)) SWIG_fail;
19391 arg2 = *argp;
19392 }
19393 {
19394 PyThreadState* __tstate = wxPyBeginAllowThreads();
19395 wxSizeEvent_SetSize(arg1,arg2);
19396
19397 wxPyEndAllowThreads(__tstate);
19398 if (PyErr_Occurred()) SWIG_fail;
19399 }
19400 Py_INCREF(Py_None); resultobj = Py_None;
19401 return resultobj;
19402 fail:
19403 return NULL;
19404 }
19405
19406
19407 static PyObject *_wrap_SizeEvent_m_size_set(PyObject *, PyObject *args, PyObject *kwargs) {
19408 PyObject *resultobj;
19409 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
19410 wxSize *arg2 = (wxSize *) 0 ;
19411 PyObject * obj0 = 0 ;
19412 PyObject * obj1 = 0 ;
19413 char *kwnames[] = {
19414 (char *) "self",(char *) "m_size", NULL
19415 };
19416
19417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail;
19418 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0);
19419 if (SWIG_arg_fail(1)) SWIG_fail;
19420 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION | 0);
19421 if (SWIG_arg_fail(2)) SWIG_fail;
19422 if (arg1) (arg1)->m_size = *arg2;
19423
19424 Py_INCREF(Py_None); resultobj = Py_None;
19425 return resultobj;
19426 fail:
19427 return NULL;
19428 }
19429
19430
19431 static PyObject *_wrap_SizeEvent_m_size_get(PyObject *, PyObject *args, PyObject *kwargs) {
19432 PyObject *resultobj;
19433 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
19434 wxSize *result;
19435 PyObject * obj0 = 0 ;
19436 char *kwnames[] = {
19437 (char *) "self", NULL
19438 };
19439
19440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail;
19441 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0);
19442 if (SWIG_arg_fail(1)) SWIG_fail;
19443 result = (wxSize *)& ((arg1)->m_size);
19444
19445 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0);
19446 return resultobj;
19447 fail:
19448 return NULL;
19449 }
19450
19451
19452 static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) {
19453 PyObject *resultobj;
19454 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
19455 wxRect *arg2 = (wxRect *) 0 ;
19456 PyObject * obj0 = 0 ;
19457 PyObject * obj1 = 0 ;
19458 char *kwnames[] = {
19459 (char *) "self",(char *) "m_rect", NULL
19460 };
19461
19462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
19463 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0);
19464 if (SWIG_arg_fail(1)) SWIG_fail;
19465 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
19466 if (SWIG_arg_fail(2)) SWIG_fail;
19467 if (arg1) (arg1)->m_rect = *arg2;
19468
19469 Py_INCREF(Py_None); resultobj = Py_None;
19470 return resultobj;
19471 fail:
19472 return NULL;
19473 }
19474
19475
19476 static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) {
19477 PyObject *resultobj;
19478 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
19479 wxRect *result;
19480 PyObject * obj0 = 0 ;
19481 char *kwnames[] = {
19482 (char *) "self", NULL
19483 };
19484
19485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail;
19486 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_EXCEPTION | 0);
19487 if (SWIG_arg_fail(1)) SWIG_fail;
19488 result = (wxRect *)& ((arg1)->m_rect);
19489
19490 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
19491 return resultobj;
19492 fail:
19493 return NULL;
19494 }
19495
19496
19497 static PyObject * SizeEvent_swigregister(PyObject *, PyObject *args) {
19498 PyObject *obj;
19499 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19500 SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj);
19501 Py_INCREF(obj);
19502 return Py_BuildValue((char *)"");
19503 }
19504 static PyObject *_wrap_new_MoveEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19505 PyObject *resultobj;
19506 wxPoint const &arg1_defvalue = wxDefaultPosition ;
19507 wxPoint *arg1 = (wxPoint *) &arg1_defvalue ;
19508 int arg2 = (int) 0 ;
19509 wxMoveEvent *result;
19510 wxPoint temp1 ;
19511 PyObject * obj0 = 0 ;
19512 PyObject * obj1 = 0 ;
19513 char *kwnames[] = {
19514 (char *) "pos",(char *) "winid", NULL
19515 };
19516
19517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail;
19518 if (obj0) {
19519 {
19520 arg1 = &temp1;
19521 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
19522 }
19523 }
19524 if (obj1) {
19525 {
19526 arg2 = (int)(SWIG_As_int(obj1));
19527 if (SWIG_arg_fail(2)) SWIG_fail;
19528 }
19529 }
19530 {
19531 PyThreadState* __tstate = wxPyBeginAllowThreads();
19532 result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2);
19533
19534 wxPyEndAllowThreads(__tstate);
19535 if (PyErr_Occurred()) SWIG_fail;
19536 }
19537 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1);
19538 return resultobj;
19539 fail:
19540 return NULL;
19541 }
19542
19543
19544 static PyObject *_wrap_MoveEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
19545 PyObject *resultobj;
19546 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
19547 wxPoint result;
19548 PyObject * obj0 = 0 ;
19549 char *kwnames[] = {
19550 (char *) "self", NULL
19551 };
19552
19553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail;
19554 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_EXCEPTION | 0);
19555 if (SWIG_arg_fail(1)) SWIG_fail;
19556 {
19557 PyThreadState* __tstate = wxPyBeginAllowThreads();
19558 result = ((wxMoveEvent const *)arg1)->GetPosition();
19559
19560 wxPyEndAllowThreads(__tstate);
19561 if (PyErr_Occurred()) SWIG_fail;
19562 }
19563 {
19564 wxPoint * resultptr;
19565 resultptr = new wxPoint((wxPoint &)(result));
19566 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
19567 }
19568 return resultobj;
19569 fail:
19570 return NULL;
19571 }
19572
19573
19574 static PyObject *_wrap_MoveEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
19575 PyObject *resultobj;
19576 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
19577 wxRect result;
19578 PyObject * obj0 = 0 ;
19579 char *kwnames[] = {
19580 (char *) "self", NULL
19581 };
19582
19583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail;
19584 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_EXCEPTION | 0);
19585 if (SWIG_arg_fail(1)) SWIG_fail;
19586 {
19587 PyThreadState* __tstate = wxPyBeginAllowThreads();
19588 result = ((wxMoveEvent const *)arg1)->GetRect();
19589
19590 wxPyEndAllowThreads(__tstate);
19591 if (PyErr_Occurred()) SWIG_fail;
19592 }
19593 {
19594 wxRect * resultptr;
19595 resultptr = new wxRect((wxRect &)(result));
19596 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
19597 }
19598 return resultobj;
19599 fail:
19600 return NULL;
19601 }
19602
19603
19604 static PyObject *_wrap_MoveEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) {
19605 PyObject *resultobj;
19606 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
19607 wxRect *arg2 = 0 ;
19608 wxRect temp2 ;
19609 PyObject * obj0 = 0 ;
19610 PyObject * obj1 = 0 ;
19611 char *kwnames[] = {
19612 (char *) "self",(char *) "rect", NULL
19613 };
19614
19615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
19616 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_EXCEPTION | 0);
19617 if (SWIG_arg_fail(1)) SWIG_fail;
19618 {
19619 arg2 = &temp2;
19620 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19621 }
19622 {
19623 PyThreadState* __tstate = wxPyBeginAllowThreads();
19624 (arg1)->SetRect((wxRect const &)*arg2);
19625
19626 wxPyEndAllowThreads(__tstate);
19627 if (PyErr_Occurred()) SWIG_fail;
19628 }
19629 Py_INCREF(Py_None); resultobj = Py_None;
19630 return resultobj;
19631 fail:
19632 return NULL;
19633 }
19634
19635
19636 static PyObject *_wrap_MoveEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
19637 PyObject *resultobj;
19638 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
19639 wxPoint *arg2 = 0 ;
19640 wxPoint temp2 ;
19641 PyObject * obj0 = 0 ;
19642 PyObject * obj1 = 0 ;
19643 char *kwnames[] = {
19644 (char *) "self",(char *) "pos", NULL
19645 };
19646
19647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
19648 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_EXCEPTION | 0);
19649 if (SWIG_arg_fail(1)) SWIG_fail;
19650 {
19651 arg2 = &temp2;
19652 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19653 }
19654 {
19655 PyThreadState* __tstate = wxPyBeginAllowThreads();
19656 (arg1)->SetPosition((wxPoint const &)*arg2);
19657
19658 wxPyEndAllowThreads(__tstate);
19659 if (PyErr_Occurred()) SWIG_fail;
19660 }
19661 Py_INCREF(Py_None); resultobj = Py_None;
19662 return resultobj;
19663 fail:
19664 return NULL;
19665 }
19666
19667
19668 static PyObject * MoveEvent_swigregister(PyObject *, PyObject *args) {
19669 PyObject *obj;
19670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19671 SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj);
19672 Py_INCREF(obj);
19673 return Py_BuildValue((char *)"");
19674 }
19675 static PyObject *_wrap_new_PaintEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19676 PyObject *resultobj;
19677 int arg1 = (int) 0 ;
19678 wxPaintEvent *result;
19679 PyObject * obj0 = 0 ;
19680 char *kwnames[] = {
19681 (char *) "Id", NULL
19682 };
19683
19684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail;
19685 if (obj0) {
19686 {
19687 arg1 = (int)(SWIG_As_int(obj0));
19688 if (SWIG_arg_fail(1)) SWIG_fail;
19689 }
19690 }
19691 {
19692 PyThreadState* __tstate = wxPyBeginAllowThreads();
19693 result = (wxPaintEvent *)new wxPaintEvent(arg1);
19694
19695 wxPyEndAllowThreads(__tstate);
19696 if (PyErr_Occurred()) SWIG_fail;
19697 }
19698 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1);
19699 return resultobj;
19700 fail:
19701 return NULL;
19702 }
19703
19704
19705 static PyObject * PaintEvent_swigregister(PyObject *, PyObject *args) {
19706 PyObject *obj;
19707 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19708 SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj);
19709 Py_INCREF(obj);
19710 return Py_BuildValue((char *)"");
19711 }
19712 static PyObject *_wrap_new_NcPaintEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19713 PyObject *resultobj;
19714 int arg1 = (int) 0 ;
19715 wxNcPaintEvent *result;
19716 PyObject * obj0 = 0 ;
19717 char *kwnames[] = {
19718 (char *) "winid", NULL
19719 };
19720
19721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail;
19722 if (obj0) {
19723 {
19724 arg1 = (int)(SWIG_As_int(obj0));
19725 if (SWIG_arg_fail(1)) SWIG_fail;
19726 }
19727 }
19728 {
19729 PyThreadState* __tstate = wxPyBeginAllowThreads();
19730 result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1);
19731
19732 wxPyEndAllowThreads(__tstate);
19733 if (PyErr_Occurred()) SWIG_fail;
19734 }
19735 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1);
19736 return resultobj;
19737 fail:
19738 return NULL;
19739 }
19740
19741
19742 static PyObject * NcPaintEvent_swigregister(PyObject *, PyObject *args) {
19743 PyObject *obj;
19744 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19745 SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj);
19746 Py_INCREF(obj);
19747 return Py_BuildValue((char *)"");
19748 }
19749 static PyObject *_wrap_new_EraseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19750 PyObject *resultobj;
19751 int arg1 = (int) 0 ;
19752 wxDC *arg2 = (wxDC *) (wxDC *) NULL ;
19753 wxEraseEvent *result;
19754 PyObject * obj0 = 0 ;
19755 PyObject * obj1 = 0 ;
19756 char *kwnames[] = {
19757 (char *) "Id",(char *) "dc", NULL
19758 };
19759
19760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail;
19761 if (obj0) {
19762 {
19763 arg1 = (int)(SWIG_As_int(obj0));
19764 if (SWIG_arg_fail(1)) SWIG_fail;
19765 }
19766 }
19767 if (obj1) {
19768 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
19769 if (SWIG_arg_fail(2)) SWIG_fail;
19770 }
19771 {
19772 PyThreadState* __tstate = wxPyBeginAllowThreads();
19773 result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2);
19774
19775 wxPyEndAllowThreads(__tstate);
19776 if (PyErr_Occurred()) SWIG_fail;
19777 }
19778 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1);
19779 return resultobj;
19780 fail:
19781 return NULL;
19782 }
19783
19784
19785 static PyObject *_wrap_EraseEvent_GetDC(PyObject *, PyObject *args, PyObject *kwargs) {
19786 PyObject *resultobj;
19787 wxEraseEvent *arg1 = (wxEraseEvent *) 0 ;
19788 wxDC *result;
19789 PyObject * obj0 = 0 ;
19790 char *kwnames[] = {
19791 (char *) "self", NULL
19792 };
19793
19794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail;
19795 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEraseEvent, SWIG_POINTER_EXCEPTION | 0);
19796 if (SWIG_arg_fail(1)) SWIG_fail;
19797 {
19798 PyThreadState* __tstate = wxPyBeginAllowThreads();
19799 result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC();
19800
19801 wxPyEndAllowThreads(__tstate);
19802 if (PyErr_Occurred()) SWIG_fail;
19803 }
19804 {
19805 resultobj = wxPyMake_wxObject(result, 0);
19806 }
19807 return resultobj;
19808 fail:
19809 return NULL;
19810 }
19811
19812
19813 static PyObject * EraseEvent_swigregister(PyObject *, PyObject *args) {
19814 PyObject *obj;
19815 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19816 SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj);
19817 Py_INCREF(obj);
19818 return Py_BuildValue((char *)"");
19819 }
19820 static PyObject *_wrap_new_FocusEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19821 PyObject *resultobj;
19822 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19823 int arg2 = (int) 0 ;
19824 wxFocusEvent *result;
19825 PyObject * obj0 = 0 ;
19826 PyObject * obj1 = 0 ;
19827 char *kwnames[] = {
19828 (char *) "type",(char *) "winid", NULL
19829 };
19830
19831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail;
19832 if (obj0) {
19833 {
19834 arg1 = (wxEventType)(SWIG_As_int(obj0));
19835 if (SWIG_arg_fail(1)) SWIG_fail;
19836 }
19837 }
19838 if (obj1) {
19839 {
19840 arg2 = (int)(SWIG_As_int(obj1));
19841 if (SWIG_arg_fail(2)) SWIG_fail;
19842 }
19843 }
19844 {
19845 PyThreadState* __tstate = wxPyBeginAllowThreads();
19846 result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2);
19847
19848 wxPyEndAllowThreads(__tstate);
19849 if (PyErr_Occurred()) SWIG_fail;
19850 }
19851 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1);
19852 return resultobj;
19853 fail:
19854 return NULL;
19855 }
19856
19857
19858 static PyObject *_wrap_FocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
19859 PyObject *resultobj;
19860 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
19861 wxWindow *result;
19862 PyObject * obj0 = 0 ;
19863 char *kwnames[] = {
19864 (char *) "self", NULL
19865 };
19866
19867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail;
19868 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFocusEvent, SWIG_POINTER_EXCEPTION | 0);
19869 if (SWIG_arg_fail(1)) SWIG_fail;
19870 {
19871 PyThreadState* __tstate = wxPyBeginAllowThreads();
19872 result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow();
19873
19874 wxPyEndAllowThreads(__tstate);
19875 if (PyErr_Occurred()) SWIG_fail;
19876 }
19877 {
19878 resultobj = wxPyMake_wxObject(result, 0);
19879 }
19880 return resultobj;
19881 fail:
19882 return NULL;
19883 }
19884
19885
19886 static PyObject *_wrap_FocusEvent_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
19887 PyObject *resultobj;
19888 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
19889 wxWindow *arg2 = (wxWindow *) 0 ;
19890 PyObject * obj0 = 0 ;
19891 PyObject * obj1 = 0 ;
19892 char *kwnames[] = {
19893 (char *) "self",(char *) "win", NULL
19894 };
19895
19896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail;
19897 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFocusEvent, SWIG_POINTER_EXCEPTION | 0);
19898 if (SWIG_arg_fail(1)) SWIG_fail;
19899 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
19900 if (SWIG_arg_fail(2)) SWIG_fail;
19901 {
19902 PyThreadState* __tstate = wxPyBeginAllowThreads();
19903 (arg1)->SetWindow(arg2);
19904
19905 wxPyEndAllowThreads(__tstate);
19906 if (PyErr_Occurred()) SWIG_fail;
19907 }
19908 Py_INCREF(Py_None); resultobj = Py_None;
19909 return resultobj;
19910 fail:
19911 return NULL;
19912 }
19913
19914
19915 static PyObject * FocusEvent_swigregister(PyObject *, PyObject *args) {
19916 PyObject *obj;
19917 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19918 SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj);
19919 Py_INCREF(obj);
19920 return Py_BuildValue((char *)"");
19921 }
19922 static PyObject *_wrap_new_ChildFocusEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19923 PyObject *resultobj;
19924 wxWindow *arg1 = (wxWindow *) NULL ;
19925 wxChildFocusEvent *result;
19926 PyObject * obj0 = 0 ;
19927 char *kwnames[] = {
19928 (char *) "win", NULL
19929 };
19930
19931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail;
19932 if (obj0) {
19933 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
19934 if (SWIG_arg_fail(1)) SWIG_fail;
19935 }
19936 {
19937 PyThreadState* __tstate = wxPyBeginAllowThreads();
19938 result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1);
19939
19940 wxPyEndAllowThreads(__tstate);
19941 if (PyErr_Occurred()) SWIG_fail;
19942 }
19943 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1);
19944 return resultobj;
19945 fail:
19946 return NULL;
19947 }
19948
19949
19950 static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
19951 PyObject *resultobj;
19952 wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ;
19953 wxWindow *result;
19954 PyObject * obj0 = 0 ;
19955 char *kwnames[] = {
19956 (char *) "self", NULL
19957 };
19958
19959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail;
19960 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChildFocusEvent, SWIG_POINTER_EXCEPTION | 0);
19961 if (SWIG_arg_fail(1)) SWIG_fail;
19962 {
19963 PyThreadState* __tstate = wxPyBeginAllowThreads();
19964 result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow();
19965
19966 wxPyEndAllowThreads(__tstate);
19967 if (PyErr_Occurred()) SWIG_fail;
19968 }
19969 {
19970 resultobj = wxPyMake_wxObject(result, 0);
19971 }
19972 return resultobj;
19973 fail:
19974 return NULL;
19975 }
19976
19977
19978 static PyObject * ChildFocusEvent_swigregister(PyObject *, PyObject *args) {
19979 PyObject *obj;
19980 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19981 SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj);
19982 Py_INCREF(obj);
19983 return Py_BuildValue((char *)"");
19984 }
19985 static PyObject *_wrap_new_ActivateEvent(PyObject *, PyObject *args, PyObject *kwargs) {
19986 PyObject *resultobj;
19987 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19988 bool arg2 = (bool) true ;
19989 int arg3 = (int) 0 ;
19990 wxActivateEvent *result;
19991 PyObject * obj0 = 0 ;
19992 PyObject * obj1 = 0 ;
19993 PyObject * obj2 = 0 ;
19994 char *kwnames[] = {
19995 (char *) "type",(char *) "active",(char *) "Id", NULL
19996 };
19997
19998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
19999 if (obj0) {
20000 {
20001 arg1 = (wxEventType)(SWIG_As_int(obj0));
20002 if (SWIG_arg_fail(1)) SWIG_fail;
20003 }
20004 }
20005 if (obj1) {
20006 {
20007 arg2 = (bool)(SWIG_As_bool(obj1));
20008 if (SWIG_arg_fail(2)) SWIG_fail;
20009 }
20010 }
20011 if (obj2) {
20012 {
20013 arg3 = (int)(SWIG_As_int(obj2));
20014 if (SWIG_arg_fail(3)) SWIG_fail;
20015 }
20016 }
20017 {
20018 PyThreadState* __tstate = wxPyBeginAllowThreads();
20019 result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3);
20020
20021 wxPyEndAllowThreads(__tstate);
20022 if (PyErr_Occurred()) SWIG_fail;
20023 }
20024 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1);
20025 return resultobj;
20026 fail:
20027 return NULL;
20028 }
20029
20030
20031 static PyObject *_wrap_ActivateEvent_GetActive(PyObject *, PyObject *args, PyObject *kwargs) {
20032 PyObject *resultobj;
20033 wxActivateEvent *arg1 = (wxActivateEvent *) 0 ;
20034 bool result;
20035 PyObject * obj0 = 0 ;
20036 char *kwnames[] = {
20037 (char *) "self", NULL
20038 };
20039
20040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail;
20041 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActivateEvent, SWIG_POINTER_EXCEPTION | 0);
20042 if (SWIG_arg_fail(1)) SWIG_fail;
20043 {
20044 PyThreadState* __tstate = wxPyBeginAllowThreads();
20045 result = (bool)((wxActivateEvent const *)arg1)->GetActive();
20046
20047 wxPyEndAllowThreads(__tstate);
20048 if (PyErr_Occurred()) SWIG_fail;
20049 }
20050 {
20051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20052 }
20053 return resultobj;
20054 fail:
20055 return NULL;
20056 }
20057
20058
20059 static PyObject * ActivateEvent_swigregister(PyObject *, PyObject *args) {
20060 PyObject *obj;
20061 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20062 SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj);
20063 Py_INCREF(obj);
20064 return Py_BuildValue((char *)"");
20065 }
20066 static PyObject *_wrap_new_InitDialogEvent(PyObject *, PyObject *args, PyObject *kwargs) {
20067 PyObject *resultobj;
20068 int arg1 = (int) 0 ;
20069 wxInitDialogEvent *result;
20070 PyObject * obj0 = 0 ;
20071 char *kwnames[] = {
20072 (char *) "Id", NULL
20073 };
20074
20075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail;
20076 if (obj0) {
20077 {
20078 arg1 = (int)(SWIG_As_int(obj0));
20079 if (SWIG_arg_fail(1)) SWIG_fail;
20080 }
20081 }
20082 {
20083 PyThreadState* __tstate = wxPyBeginAllowThreads();
20084 result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1);
20085
20086 wxPyEndAllowThreads(__tstate);
20087 if (PyErr_Occurred()) SWIG_fail;
20088 }
20089 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1);
20090 return resultobj;
20091 fail:
20092 return NULL;
20093 }
20094
20095
20096 static PyObject * InitDialogEvent_swigregister(PyObject *, PyObject *args) {
20097 PyObject *obj;
20098 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20099 SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj);
20100 Py_INCREF(obj);
20101 return Py_BuildValue((char *)"");
20102 }
20103 static PyObject *_wrap_new_MenuEvent(PyObject *, PyObject *args, PyObject *kwargs) {
20104 PyObject *resultobj;
20105 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20106 int arg2 = (int) 0 ;
20107 wxMenu *arg3 = (wxMenu *) NULL ;
20108 wxMenuEvent *result;
20109 PyObject * obj0 = 0 ;
20110 PyObject * obj1 = 0 ;
20111 PyObject * obj2 = 0 ;
20112 char *kwnames[] = {
20113 (char *) "type",(char *) "winid",(char *) "menu", NULL
20114 };
20115
20116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
20117 if (obj0) {
20118 {
20119 arg1 = (wxEventType)(SWIG_As_int(obj0));
20120 if (SWIG_arg_fail(1)) SWIG_fail;
20121 }
20122 }
20123 if (obj1) {
20124 {
20125 arg2 = (int)(SWIG_As_int(obj1));
20126 if (SWIG_arg_fail(2)) SWIG_fail;
20127 }
20128 }
20129 if (obj2) {
20130 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
20131 if (SWIG_arg_fail(3)) SWIG_fail;
20132 }
20133 {
20134 PyThreadState* __tstate = wxPyBeginAllowThreads();
20135 result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3);
20136
20137 wxPyEndAllowThreads(__tstate);
20138 if (PyErr_Occurred()) SWIG_fail;
20139 }
20140 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1);
20141 return resultobj;
20142 fail:
20143 return NULL;
20144 }
20145
20146
20147 static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *, PyObject *args, PyObject *kwargs) {
20148 PyObject *resultobj;
20149 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
20150 int result;
20151 PyObject * obj0 = 0 ;
20152 char *kwnames[] = {
20153 (char *) "self", NULL
20154 };
20155
20156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail;
20157 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuEvent, SWIG_POINTER_EXCEPTION | 0);
20158 if (SWIG_arg_fail(1)) SWIG_fail;
20159 {
20160 PyThreadState* __tstate = wxPyBeginAllowThreads();
20161 result = (int)((wxMenuEvent const *)arg1)->GetMenuId();
20162
20163 wxPyEndAllowThreads(__tstate);
20164 if (PyErr_Occurred()) SWIG_fail;
20165 }
20166 {
20167 resultobj = SWIG_From_int((int)(result));
20168 }
20169 return resultobj;
20170 fail:
20171 return NULL;
20172 }
20173
20174
20175 static PyObject *_wrap_MenuEvent_IsPopup(PyObject *, PyObject *args, PyObject *kwargs) {
20176 PyObject *resultobj;
20177 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
20178 bool result;
20179 PyObject * obj0 = 0 ;
20180 char *kwnames[] = {
20181 (char *) "self", NULL
20182 };
20183
20184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail;
20185 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuEvent, SWIG_POINTER_EXCEPTION | 0);
20186 if (SWIG_arg_fail(1)) SWIG_fail;
20187 {
20188 PyThreadState* __tstate = wxPyBeginAllowThreads();
20189 result = (bool)((wxMenuEvent const *)arg1)->IsPopup();
20190
20191 wxPyEndAllowThreads(__tstate);
20192 if (PyErr_Occurred()) SWIG_fail;
20193 }
20194 {
20195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20196 }
20197 return resultobj;
20198 fail:
20199 return NULL;
20200 }
20201
20202
20203 static PyObject *_wrap_MenuEvent_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) {
20204 PyObject *resultobj;
20205 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
20206 wxMenu *result;
20207 PyObject * obj0 = 0 ;
20208 char *kwnames[] = {
20209 (char *) "self", NULL
20210 };
20211
20212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail;
20213 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuEvent, SWIG_POINTER_EXCEPTION | 0);
20214 if (SWIG_arg_fail(1)) SWIG_fail;
20215 {
20216 PyThreadState* __tstate = wxPyBeginAllowThreads();
20217 result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu();
20218
20219 wxPyEndAllowThreads(__tstate);
20220 if (PyErr_Occurred()) SWIG_fail;
20221 }
20222 {
20223 resultobj = wxPyMake_wxObject(result, 0);
20224 }
20225 return resultobj;
20226 fail:
20227 return NULL;
20228 }
20229
20230
20231 static PyObject * MenuEvent_swigregister(PyObject *, PyObject *args) {
20232 PyObject *obj;
20233 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20234 SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj);
20235 Py_INCREF(obj);
20236 return Py_BuildValue((char *)"");
20237 }
20238 static PyObject *_wrap_new_CloseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
20239 PyObject *resultobj;
20240 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20241 int arg2 = (int) 0 ;
20242 wxCloseEvent *result;
20243 PyObject * obj0 = 0 ;
20244 PyObject * obj1 = 0 ;
20245 char *kwnames[] = {
20246 (char *) "type",(char *) "winid", NULL
20247 };
20248
20249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail;
20250 if (obj0) {
20251 {
20252 arg1 = (wxEventType)(SWIG_As_int(obj0));
20253 if (SWIG_arg_fail(1)) SWIG_fail;
20254 }
20255 }
20256 if (obj1) {
20257 {
20258 arg2 = (int)(SWIG_As_int(obj1));
20259 if (SWIG_arg_fail(2)) SWIG_fail;
20260 }
20261 }
20262 {
20263 PyThreadState* __tstate = wxPyBeginAllowThreads();
20264 result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2);
20265
20266 wxPyEndAllowThreads(__tstate);
20267 if (PyErr_Occurred()) SWIG_fail;
20268 }
20269 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1);
20270 return resultobj;
20271 fail:
20272 return NULL;
20273 }
20274
20275
20276 static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) {
20277 PyObject *resultobj;
20278 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
20279 bool arg2 ;
20280 PyObject * obj0 = 0 ;
20281 PyObject * obj1 = 0 ;
20282 char *kwnames[] = {
20283 (char *) "self",(char *) "logOff", NULL
20284 };
20285
20286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail;
20287 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0);
20288 if (SWIG_arg_fail(1)) SWIG_fail;
20289 {
20290 arg2 = (bool)(SWIG_As_bool(obj1));
20291 if (SWIG_arg_fail(2)) SWIG_fail;
20292 }
20293 {
20294 PyThreadState* __tstate = wxPyBeginAllowThreads();
20295 (arg1)->SetLoggingOff(arg2);
20296
20297 wxPyEndAllowThreads(__tstate);
20298 if (PyErr_Occurred()) SWIG_fail;
20299 }
20300 Py_INCREF(Py_None); resultobj = Py_None;
20301 return resultobj;
20302 fail:
20303 return NULL;
20304 }
20305
20306
20307 static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) {
20308 PyObject *resultobj;
20309 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
20310 bool result;
20311 PyObject * obj0 = 0 ;
20312 char *kwnames[] = {
20313 (char *) "self", NULL
20314 };
20315
20316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail;
20317 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0);
20318 if (SWIG_arg_fail(1)) SWIG_fail;
20319 {
20320 PyThreadState* __tstate = wxPyBeginAllowThreads();
20321 result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff();
20322
20323 wxPyEndAllowThreads(__tstate);
20324 if (PyErr_Occurred()) SWIG_fail;
20325 }
20326 {
20327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20328 }
20329 return resultobj;
20330 fail:
20331 return NULL;
20332 }
20333
20334
20335 static PyObject *_wrap_CloseEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) {
20336 PyObject *resultobj;
20337 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
20338 bool arg2 = (bool) true ;
20339 PyObject * obj0 = 0 ;
20340 PyObject * obj1 = 0 ;
20341 char *kwnames[] = {
20342 (char *) "self",(char *) "veto", NULL
20343 };
20344
20345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail;
20346 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0);
20347 if (SWIG_arg_fail(1)) SWIG_fail;
20348 if (obj1) {
20349 {
20350 arg2 = (bool)(SWIG_As_bool(obj1));
20351 if (SWIG_arg_fail(2)) SWIG_fail;
20352 }
20353 }
20354 {
20355 PyThreadState* __tstate = wxPyBeginAllowThreads();
20356 (arg1)->Veto(arg2);
20357
20358 wxPyEndAllowThreads(__tstate);
20359 if (PyErr_Occurred()) SWIG_fail;
20360 }
20361 Py_INCREF(Py_None); resultobj = Py_None;
20362 return resultobj;
20363 fail:
20364 return NULL;
20365 }
20366
20367
20368 static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *, PyObject *args, PyObject *kwargs) {
20369 PyObject *resultobj;
20370 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
20371 bool arg2 ;
20372 PyObject * obj0 = 0 ;
20373 PyObject * obj1 = 0 ;
20374 char *kwnames[] = {
20375 (char *) "self",(char *) "canVeto", NULL
20376 };
20377
20378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail;
20379 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0);
20380 if (SWIG_arg_fail(1)) SWIG_fail;
20381 {
20382 arg2 = (bool)(SWIG_As_bool(obj1));
20383 if (SWIG_arg_fail(2)) SWIG_fail;
20384 }
20385 {
20386 PyThreadState* __tstate = wxPyBeginAllowThreads();
20387 (arg1)->SetCanVeto(arg2);
20388
20389 wxPyEndAllowThreads(__tstate);
20390 if (PyErr_Occurred()) SWIG_fail;
20391 }
20392 Py_INCREF(Py_None); resultobj = Py_None;
20393 return resultobj;
20394 fail:
20395 return NULL;
20396 }
20397
20398
20399 static PyObject *_wrap_CloseEvent_CanVeto(PyObject *, PyObject *args, PyObject *kwargs) {
20400 PyObject *resultobj;
20401 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
20402 bool result;
20403 PyObject * obj0 = 0 ;
20404 char *kwnames[] = {
20405 (char *) "self", NULL
20406 };
20407
20408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail;
20409 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0);
20410 if (SWIG_arg_fail(1)) SWIG_fail;
20411 {
20412 PyThreadState* __tstate = wxPyBeginAllowThreads();
20413 result = (bool)((wxCloseEvent const *)arg1)->CanVeto();
20414
20415 wxPyEndAllowThreads(__tstate);
20416 if (PyErr_Occurred()) SWIG_fail;
20417 }
20418 {
20419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20420 }
20421 return resultobj;
20422 fail:
20423 return NULL;
20424 }
20425
20426
20427 static PyObject *_wrap_CloseEvent_GetVeto(PyObject *, PyObject *args, PyObject *kwargs) {
20428 PyObject *resultobj;
20429 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
20430 bool result;
20431 PyObject * obj0 = 0 ;
20432 char *kwnames[] = {
20433 (char *) "self", NULL
20434 };
20435
20436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail;
20437 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_EXCEPTION | 0);
20438 if (SWIG_arg_fail(1)) SWIG_fail;
20439 {
20440 PyThreadState* __tstate = wxPyBeginAllowThreads();
20441 result = (bool)((wxCloseEvent const *)arg1)->GetVeto();
20442
20443 wxPyEndAllowThreads(__tstate);
20444 if (PyErr_Occurred()) SWIG_fail;
20445 }
20446 {
20447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20448 }
20449 return resultobj;
20450 fail:
20451 return NULL;
20452 }
20453
20454
20455 static PyObject * CloseEvent_swigregister(PyObject *, PyObject *args) {
20456 PyObject *obj;
20457 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20458 SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj);
20459 Py_INCREF(obj);
20460 return Py_BuildValue((char *)"");
20461 }
20462 static PyObject *_wrap_new_ShowEvent(PyObject *, PyObject *args, PyObject *kwargs) {
20463 PyObject *resultobj;
20464 int arg1 = (int) 0 ;
20465 bool arg2 = (bool) false ;
20466 wxShowEvent *result;
20467 PyObject * obj0 = 0 ;
20468 PyObject * obj1 = 0 ;
20469 char *kwnames[] = {
20470 (char *) "winid",(char *) "show", NULL
20471 };
20472
20473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail;
20474 if (obj0) {
20475 {
20476 arg1 = (int)(SWIG_As_int(obj0));
20477 if (SWIG_arg_fail(1)) SWIG_fail;
20478 }
20479 }
20480 if (obj1) {
20481 {
20482 arg2 = (bool)(SWIG_As_bool(obj1));
20483 if (SWIG_arg_fail(2)) SWIG_fail;
20484 }
20485 }
20486 {
20487 PyThreadState* __tstate = wxPyBeginAllowThreads();
20488 result = (wxShowEvent *)new wxShowEvent(arg1,arg2);
20489
20490 wxPyEndAllowThreads(__tstate);
20491 if (PyErr_Occurred()) SWIG_fail;
20492 }
20493 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1);
20494 return resultobj;
20495 fail:
20496 return NULL;
20497 }
20498
20499
20500 static PyObject *_wrap_ShowEvent_SetShow(PyObject *, PyObject *args, PyObject *kwargs) {
20501 PyObject *resultobj;
20502 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
20503 bool arg2 ;
20504 PyObject * obj0 = 0 ;
20505 PyObject * obj1 = 0 ;
20506 char *kwnames[] = {
20507 (char *) "self",(char *) "show", NULL
20508 };
20509
20510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail;
20511 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxShowEvent, SWIG_POINTER_EXCEPTION | 0);
20512 if (SWIG_arg_fail(1)) SWIG_fail;
20513 {
20514 arg2 = (bool)(SWIG_As_bool(obj1));
20515 if (SWIG_arg_fail(2)) SWIG_fail;
20516 }
20517 {
20518 PyThreadState* __tstate = wxPyBeginAllowThreads();
20519 (arg1)->SetShow(arg2);
20520
20521 wxPyEndAllowThreads(__tstate);
20522 if (PyErr_Occurred()) SWIG_fail;
20523 }
20524 Py_INCREF(Py_None); resultobj = Py_None;
20525 return resultobj;
20526 fail:
20527 return NULL;
20528 }
20529
20530
20531 static PyObject *_wrap_ShowEvent_GetShow(PyObject *, PyObject *args, PyObject *kwargs) {
20532 PyObject *resultobj;
20533 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
20534 bool result;
20535 PyObject * obj0 = 0 ;
20536 char *kwnames[] = {
20537 (char *) "self", NULL
20538 };
20539
20540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail;
20541 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxShowEvent, SWIG_POINTER_EXCEPTION | 0);
20542 if (SWIG_arg_fail(1)) SWIG_fail;
20543 {
20544 PyThreadState* __tstate = wxPyBeginAllowThreads();
20545 result = (bool)((wxShowEvent const *)arg1)->GetShow();
20546
20547 wxPyEndAllowThreads(__tstate);
20548 if (PyErr_Occurred()) SWIG_fail;
20549 }
20550 {
20551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20552 }
20553 return resultobj;
20554 fail:
20555 return NULL;
20556 }
20557
20558
20559 static PyObject * ShowEvent_swigregister(PyObject *, PyObject *args) {
20560 PyObject *obj;
20561 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20562 SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj);
20563 Py_INCREF(obj);
20564 return Py_BuildValue((char *)"");
20565 }
20566 static PyObject *_wrap_new_IconizeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
20567 PyObject *resultobj;
20568 int arg1 = (int) 0 ;
20569 bool arg2 = (bool) true ;
20570 wxIconizeEvent *result;
20571 PyObject * obj0 = 0 ;
20572 PyObject * obj1 = 0 ;
20573 char *kwnames[] = {
20574 (char *) "id",(char *) "iconized", NULL
20575 };
20576
20577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail;
20578 if (obj0) {
20579 {
20580 arg1 = (int)(SWIG_As_int(obj0));
20581 if (SWIG_arg_fail(1)) SWIG_fail;
20582 }
20583 }
20584 if (obj1) {
20585 {
20586 arg2 = (bool)(SWIG_As_bool(obj1));
20587 if (SWIG_arg_fail(2)) SWIG_fail;
20588 }
20589 }
20590 {
20591 PyThreadState* __tstate = wxPyBeginAllowThreads();
20592 result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2);
20593
20594 wxPyEndAllowThreads(__tstate);
20595 if (PyErr_Occurred()) SWIG_fail;
20596 }
20597 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1);
20598 return resultobj;
20599 fail:
20600 return NULL;
20601 }
20602
20603
20604 static PyObject *_wrap_IconizeEvent_Iconized(PyObject *, PyObject *args, PyObject *kwargs) {
20605 PyObject *resultobj;
20606 wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ;
20607 bool result;
20608 PyObject * obj0 = 0 ;
20609 char *kwnames[] = {
20610 (char *) "self", NULL
20611 };
20612
20613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail;
20614 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconizeEvent, SWIG_POINTER_EXCEPTION | 0);
20615 if (SWIG_arg_fail(1)) SWIG_fail;
20616 {
20617 PyThreadState* __tstate = wxPyBeginAllowThreads();
20618 result = (bool)(arg1)->Iconized();
20619
20620 wxPyEndAllowThreads(__tstate);
20621 if (PyErr_Occurred()) SWIG_fail;
20622 }
20623 {
20624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20625 }
20626 return resultobj;
20627 fail:
20628 return NULL;
20629 }
20630
20631
20632 static PyObject * IconizeEvent_swigregister(PyObject *, PyObject *args) {
20633 PyObject *obj;
20634 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20635 SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj);
20636 Py_INCREF(obj);
20637 return Py_BuildValue((char *)"");
20638 }
20639 static PyObject *_wrap_new_MaximizeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
20640 PyObject *resultobj;
20641 int arg1 = (int) 0 ;
20642 wxMaximizeEvent *result;
20643 PyObject * obj0 = 0 ;
20644 char *kwnames[] = {
20645 (char *) "id", NULL
20646 };
20647
20648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail;
20649 if (obj0) {
20650 {
20651 arg1 = (int)(SWIG_As_int(obj0));
20652 if (SWIG_arg_fail(1)) SWIG_fail;
20653 }
20654 }
20655 {
20656 PyThreadState* __tstate = wxPyBeginAllowThreads();
20657 result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1);
20658
20659 wxPyEndAllowThreads(__tstate);
20660 if (PyErr_Occurred()) SWIG_fail;
20661 }
20662 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1);
20663 return resultobj;
20664 fail:
20665 return NULL;
20666 }
20667
20668
20669 static PyObject * MaximizeEvent_swigregister(PyObject *, PyObject *args) {
20670 PyObject *obj;
20671 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20672 SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj);
20673 Py_INCREF(obj);
20674 return Py_BuildValue((char *)"");
20675 }
20676 static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
20677 PyObject *resultobj;
20678 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
20679 wxPoint result;
20680 PyObject * obj0 = 0 ;
20681 char *kwnames[] = {
20682 (char *) "self", NULL
20683 };
20684
20685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail;
20686 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDropFilesEvent, SWIG_POINTER_EXCEPTION | 0);
20687 if (SWIG_arg_fail(1)) SWIG_fail;
20688 {
20689 PyThreadState* __tstate = wxPyBeginAllowThreads();
20690 result = (arg1)->GetPosition();
20691
20692 wxPyEndAllowThreads(__tstate);
20693 if (PyErr_Occurred()) SWIG_fail;
20694 }
20695 {
20696 wxPoint * resultptr;
20697 resultptr = new wxPoint((wxPoint &)(result));
20698 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
20699 }
20700 return resultobj;
20701 fail:
20702 return NULL;
20703 }
20704
20705
20706 static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *, PyObject *args, PyObject *kwargs) {
20707 PyObject *resultobj;
20708 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
20709 int result;
20710 PyObject * obj0 = 0 ;
20711 char *kwnames[] = {
20712 (char *) "self", NULL
20713 };
20714
20715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail;
20716 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDropFilesEvent, SWIG_POINTER_EXCEPTION | 0);
20717 if (SWIG_arg_fail(1)) SWIG_fail;
20718 {
20719 PyThreadState* __tstate = wxPyBeginAllowThreads();
20720 result = (int)(arg1)->GetNumberOfFiles();
20721
20722 wxPyEndAllowThreads(__tstate);
20723 if (PyErr_Occurred()) SWIG_fail;
20724 }
20725 {
20726 resultobj = SWIG_From_int((int)(result));
20727 }
20728 return resultobj;
20729 fail:
20730 return NULL;
20731 }
20732
20733
20734 static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *, PyObject *args, PyObject *kwargs) {
20735 PyObject *resultobj;
20736 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
20737 PyObject *result;
20738 PyObject * obj0 = 0 ;
20739 char *kwnames[] = {
20740 (char *) "self", NULL
20741 };
20742
20743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail;
20744 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDropFilesEvent, SWIG_POINTER_EXCEPTION | 0);
20745 if (SWIG_arg_fail(1)) SWIG_fail;
20746 {
20747 PyThreadState* __tstate = wxPyBeginAllowThreads();
20748 result = (PyObject *)wxDropFilesEvent_GetFiles(arg1);
20749
20750 wxPyEndAllowThreads(__tstate);
20751 if (PyErr_Occurred()) SWIG_fail;
20752 }
20753 resultobj = result;
20754 return resultobj;
20755 fail:
20756 return NULL;
20757 }
20758
20759
20760 static PyObject * DropFilesEvent_swigregister(PyObject *, PyObject *args) {
20761 PyObject *obj;
20762 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20763 SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj);
20764 Py_INCREF(obj);
20765 return Py_BuildValue((char *)"");
20766 }
20767 static PyObject *_wrap_new_UpdateUIEvent(PyObject *, PyObject *args, PyObject *kwargs) {
20768 PyObject *resultobj;
20769 int arg1 = (int) 0 ;
20770 wxUpdateUIEvent *result;
20771 PyObject * obj0 = 0 ;
20772 char *kwnames[] = {
20773 (char *) "commandId", NULL
20774 };
20775
20776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail;
20777 if (obj0) {
20778 {
20779 arg1 = (int)(SWIG_As_int(obj0));
20780 if (SWIG_arg_fail(1)) SWIG_fail;
20781 }
20782 }
20783 {
20784 PyThreadState* __tstate = wxPyBeginAllowThreads();
20785 result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1);
20786
20787 wxPyEndAllowThreads(__tstate);
20788 if (PyErr_Occurred()) SWIG_fail;
20789 }
20790 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1);
20791 return resultobj;
20792 fail:
20793 return NULL;
20794 }
20795
20796
20797 static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *, PyObject *args, PyObject *kwargs) {
20798 PyObject *resultobj;
20799 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
20800 bool result;
20801 PyObject * obj0 = 0 ;
20802 char *kwnames[] = {
20803 (char *) "self", NULL
20804 };
20805
20806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail;
20807 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0);
20808 if (SWIG_arg_fail(1)) SWIG_fail;
20809 {
20810 PyThreadState* __tstate = wxPyBeginAllowThreads();
20811 result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked();
20812
20813 wxPyEndAllowThreads(__tstate);
20814 if (PyErr_Occurred()) SWIG_fail;
20815 }
20816 {
20817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20818 }
20819 return resultobj;
20820 fail:
20821 return NULL;
20822 }
20823
20824
20825 static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
20826 PyObject *resultobj;
20827 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
20828 bool result;
20829 PyObject * obj0 = 0 ;
20830 char *kwnames[] = {
20831 (char *) "self", NULL
20832 };
20833
20834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail;
20835 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0);
20836 if (SWIG_arg_fail(1)) SWIG_fail;
20837 {
20838 PyThreadState* __tstate = wxPyBeginAllowThreads();
20839 result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled();
20840
20841 wxPyEndAllowThreads(__tstate);
20842 if (PyErr_Occurred()) SWIG_fail;
20843 }
20844 {
20845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20846 }
20847 return resultobj;
20848 fail:
20849 return NULL;
20850 }
20851
20852
20853 static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
20854 PyObject *resultobj;
20855 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
20856 wxString result;
20857 PyObject * obj0 = 0 ;
20858 char *kwnames[] = {
20859 (char *) "self", NULL
20860 };
20861
20862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail;
20863 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0);
20864 if (SWIG_arg_fail(1)) SWIG_fail;
20865 {
20866 PyThreadState* __tstate = wxPyBeginAllowThreads();
20867 result = ((wxUpdateUIEvent const *)arg1)->GetText();
20868
20869 wxPyEndAllowThreads(__tstate);
20870 if (PyErr_Occurred()) SWIG_fail;
20871 }
20872 {
20873 #if wxUSE_UNICODE
20874 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20875 #else
20876 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20877 #endif
20878 }
20879 return resultobj;
20880 fail:
20881 return NULL;
20882 }
20883
20884
20885 static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *, PyObject *args, PyObject *kwargs) {
20886 PyObject *resultobj;
20887 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
20888 bool result;
20889 PyObject * obj0 = 0 ;
20890 char *kwnames[] = {
20891 (char *) "self", NULL
20892 };
20893
20894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail;
20895 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0);
20896 if (SWIG_arg_fail(1)) SWIG_fail;
20897 {
20898 PyThreadState* __tstate = wxPyBeginAllowThreads();
20899 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText();
20900
20901 wxPyEndAllowThreads(__tstate);
20902 if (PyErr_Occurred()) SWIG_fail;
20903 }
20904 {
20905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20906 }
20907 return resultobj;
20908 fail:
20909 return NULL;
20910 }
20911
20912
20913 static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *, PyObject *args, PyObject *kwargs) {
20914 PyObject *resultobj;
20915 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
20916 bool result;
20917 PyObject * obj0 = 0 ;
20918 char *kwnames[] = {
20919 (char *) "self", NULL
20920 };
20921
20922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail;
20923 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0);
20924 if (SWIG_arg_fail(1)) SWIG_fail;
20925 {
20926 PyThreadState* __tstate = wxPyBeginAllowThreads();
20927 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked();
20928
20929 wxPyEndAllowThreads(__tstate);
20930 if (PyErr_Occurred()) SWIG_fail;
20931 }
20932 {
20933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20934 }
20935 return resultobj;
20936 fail:
20937 return NULL;
20938 }
20939
20940
20941 static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
20942 PyObject *resultobj;
20943 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
20944 bool result;
20945 PyObject * obj0 = 0 ;
20946 char *kwnames[] = {
20947 (char *) "self", NULL
20948 };
20949
20950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail;
20951 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0);
20952 if (SWIG_arg_fail(1)) SWIG_fail;
20953 {
20954 PyThreadState* __tstate = wxPyBeginAllowThreads();
20955 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled();
20956
20957 wxPyEndAllowThreads(__tstate);
20958 if (PyErr_Occurred()) SWIG_fail;
20959 }
20960 {
20961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20962 }
20963 return resultobj;
20964 fail:
20965 return NULL;
20966 }
20967
20968
20969 static PyObject *_wrap_UpdateUIEvent_Check(PyObject *, PyObject *args, PyObject *kwargs) {
20970 PyObject *resultobj;
20971 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
20972 bool arg2 ;
20973 PyObject * obj0 = 0 ;
20974 PyObject * obj1 = 0 ;
20975 char *kwnames[] = {
20976 (char *) "self",(char *) "check", NULL
20977 };
20978
20979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail;
20980 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0);
20981 if (SWIG_arg_fail(1)) SWIG_fail;
20982 {
20983 arg2 = (bool)(SWIG_As_bool(obj1));
20984 if (SWIG_arg_fail(2)) SWIG_fail;
20985 }
20986 {
20987 PyThreadState* __tstate = wxPyBeginAllowThreads();
20988 (arg1)->Check(arg2);
20989
20990 wxPyEndAllowThreads(__tstate);
20991 if (PyErr_Occurred()) SWIG_fail;
20992 }
20993 Py_INCREF(Py_None); resultobj = Py_None;
20994 return resultobj;
20995 fail:
20996 return NULL;
20997 }
20998
20999
21000 static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
21001 PyObject *resultobj;
21002 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
21003 bool arg2 ;
21004 PyObject * obj0 = 0 ;
21005 PyObject * obj1 = 0 ;
21006 char *kwnames[] = {
21007 (char *) "self",(char *) "enable", NULL
21008 };
21009
21010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail;
21011 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0);
21012 if (SWIG_arg_fail(1)) SWIG_fail;
21013 {
21014 arg2 = (bool)(SWIG_As_bool(obj1));
21015 if (SWIG_arg_fail(2)) SWIG_fail;
21016 }
21017 {
21018 PyThreadState* __tstate = wxPyBeginAllowThreads();
21019 (arg1)->Enable(arg2);
21020
21021 wxPyEndAllowThreads(__tstate);
21022 if (PyErr_Occurred()) SWIG_fail;
21023 }
21024 Py_INCREF(Py_None); resultobj = Py_None;
21025 return resultobj;
21026 fail:
21027 return NULL;
21028 }
21029
21030
21031 static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
21032 PyObject *resultobj;
21033 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
21034 wxString *arg2 = 0 ;
21035 bool temp2 = false ;
21036 PyObject * obj0 = 0 ;
21037 PyObject * obj1 = 0 ;
21038 char *kwnames[] = {
21039 (char *) "self",(char *) "text", NULL
21040 };
21041
21042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail;
21043 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_EXCEPTION | 0);
21044 if (SWIG_arg_fail(1)) SWIG_fail;
21045 {
21046 arg2 = wxString_in_helper(obj1);
21047 if (arg2 == NULL) SWIG_fail;
21048 temp2 = true;
21049 }
21050 {
21051 PyThreadState* __tstate = wxPyBeginAllowThreads();
21052 (arg1)->SetText((wxString const &)*arg2);
21053
21054 wxPyEndAllowThreads(__tstate);
21055 if (PyErr_Occurred()) SWIG_fail;
21056 }
21057 Py_INCREF(Py_None); resultobj = Py_None;
21058 {
21059 if (temp2)
21060 delete arg2;
21061 }
21062 return resultobj;
21063 fail:
21064 {
21065 if (temp2)
21066 delete arg2;
21067 }
21068 return NULL;
21069 }
21070
21071
21072 static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) {
21073 PyObject *resultobj;
21074 long arg1 ;
21075 PyObject * obj0 = 0 ;
21076 char *kwnames[] = {
21077 (char *) "updateInterval", NULL
21078 };
21079
21080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail;
21081 {
21082 arg1 = (long)(SWIG_As_long(obj0));
21083 if (SWIG_arg_fail(1)) SWIG_fail;
21084 }
21085 {
21086 PyThreadState* __tstate = wxPyBeginAllowThreads();
21087 wxUpdateUIEvent::SetUpdateInterval(arg1);
21088
21089 wxPyEndAllowThreads(__tstate);
21090 if (PyErr_Occurred()) SWIG_fail;
21091 }
21092 Py_INCREF(Py_None); resultobj = Py_None;
21093 return resultobj;
21094 fail:
21095 return NULL;
21096 }
21097
21098
21099 static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) {
21100 PyObject *resultobj;
21101 long result;
21102 char *kwnames[] = {
21103 NULL
21104 };
21105
21106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail;
21107 {
21108 PyThreadState* __tstate = wxPyBeginAllowThreads();
21109 result = (long)wxUpdateUIEvent::GetUpdateInterval();
21110
21111 wxPyEndAllowThreads(__tstate);
21112 if (PyErr_Occurred()) SWIG_fail;
21113 }
21114 {
21115 resultobj = SWIG_From_long((long)(result));
21116 }
21117 return resultobj;
21118 fail:
21119 return NULL;
21120 }
21121
21122
21123 static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *, PyObject *args, PyObject *kwargs) {
21124 PyObject *resultobj;
21125 wxWindow *arg1 = (wxWindow *) 0 ;
21126 bool result;
21127 PyObject * obj0 = 0 ;
21128 char *kwnames[] = {
21129 (char *) "win", NULL
21130 };
21131
21132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail;
21133 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21134 if (SWIG_arg_fail(1)) SWIG_fail;
21135 {
21136 PyThreadState* __tstate = wxPyBeginAllowThreads();
21137 result = (bool)wxUpdateUIEvent::CanUpdate(arg1);
21138
21139 wxPyEndAllowThreads(__tstate);
21140 if (PyErr_Occurred()) SWIG_fail;
21141 }
21142 {
21143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21144 }
21145 return resultobj;
21146 fail:
21147 return NULL;
21148 }
21149
21150
21151 static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *, PyObject *args, PyObject *kwargs) {
21152 PyObject *resultobj;
21153 char *kwnames[] = {
21154 NULL
21155 };
21156
21157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail;
21158 {
21159 PyThreadState* __tstate = wxPyBeginAllowThreads();
21160 wxUpdateUIEvent::ResetUpdateTime();
21161
21162 wxPyEndAllowThreads(__tstate);
21163 if (PyErr_Occurred()) SWIG_fail;
21164 }
21165 Py_INCREF(Py_None); resultobj = Py_None;
21166 return resultobj;
21167 fail:
21168 return NULL;
21169 }
21170
21171
21172 static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) {
21173 PyObject *resultobj;
21174 wxUpdateUIMode arg1 ;
21175 PyObject * obj0 = 0 ;
21176 char *kwnames[] = {
21177 (char *) "mode", NULL
21178 };
21179
21180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail;
21181 {
21182 arg1 = (wxUpdateUIMode)(SWIG_As_int(obj0));
21183 if (SWIG_arg_fail(1)) SWIG_fail;
21184 }
21185 {
21186 PyThreadState* __tstate = wxPyBeginAllowThreads();
21187 wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1);
21188
21189 wxPyEndAllowThreads(__tstate);
21190 if (PyErr_Occurred()) SWIG_fail;
21191 }
21192 Py_INCREF(Py_None); resultobj = Py_None;
21193 return resultobj;
21194 fail:
21195 return NULL;
21196 }
21197
21198
21199 static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) {
21200 PyObject *resultobj;
21201 wxUpdateUIMode result;
21202 char *kwnames[] = {
21203 NULL
21204 };
21205
21206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail;
21207 {
21208 PyThreadState* __tstate = wxPyBeginAllowThreads();
21209 result = (wxUpdateUIMode)wxUpdateUIEvent::GetMode();
21210
21211 wxPyEndAllowThreads(__tstate);
21212 if (PyErr_Occurred()) SWIG_fail;
21213 }
21214 resultobj = SWIG_From_int((result));
21215 return resultobj;
21216 fail:
21217 return NULL;
21218 }
21219
21220
21221 static PyObject * UpdateUIEvent_swigregister(PyObject *, PyObject *args) {
21222 PyObject *obj;
21223 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21224 SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj);
21225 Py_INCREF(obj);
21226 return Py_BuildValue((char *)"");
21227 }
21228 static PyObject *_wrap_new_SysColourChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) {
21229 PyObject *resultobj;
21230 wxSysColourChangedEvent *result;
21231 char *kwnames[] = {
21232 NULL
21233 };
21234
21235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail;
21236 {
21237 PyThreadState* __tstate = wxPyBeginAllowThreads();
21238 result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent();
21239
21240 wxPyEndAllowThreads(__tstate);
21241 if (PyErr_Occurred()) SWIG_fail;
21242 }
21243 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1);
21244 return resultobj;
21245 fail:
21246 return NULL;
21247 }
21248
21249
21250 static PyObject * SysColourChangedEvent_swigregister(PyObject *, PyObject *args) {
21251 PyObject *obj;
21252 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21253 SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj);
21254 Py_INCREF(obj);
21255 return Py_BuildValue((char *)"");
21256 }
21257 static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) {
21258 PyObject *resultobj;
21259 int arg1 = (int) 0 ;
21260 wxWindow *arg2 = (wxWindow *) NULL ;
21261 wxMouseCaptureChangedEvent *result;
21262 PyObject * obj0 = 0 ;
21263 PyObject * obj1 = 0 ;
21264 char *kwnames[] = {
21265 (char *) "winid",(char *) "gainedCapture", NULL
21266 };
21267
21268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail;
21269 if (obj0) {
21270 {
21271 arg1 = (int)(SWIG_As_int(obj0));
21272 if (SWIG_arg_fail(1)) SWIG_fail;
21273 }
21274 }
21275 if (obj1) {
21276 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21277 if (SWIG_arg_fail(2)) SWIG_fail;
21278 }
21279 {
21280 PyThreadState* __tstate = wxPyBeginAllowThreads();
21281 result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2);
21282
21283 wxPyEndAllowThreads(__tstate);
21284 if (PyErr_Occurred()) SWIG_fail;
21285 }
21286 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1);
21287 return resultobj;
21288 fail:
21289 return NULL;
21290 }
21291
21292
21293 static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *, PyObject *args, PyObject *kwargs) {
21294 PyObject *resultobj;
21295 wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ;
21296 wxWindow *result;
21297 PyObject * obj0 = 0 ;
21298 char *kwnames[] = {
21299 (char *) "self", NULL
21300 };
21301
21302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail;
21303 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMouseCaptureChangedEvent, SWIG_POINTER_EXCEPTION | 0);
21304 if (SWIG_arg_fail(1)) SWIG_fail;
21305 {
21306 PyThreadState* __tstate = wxPyBeginAllowThreads();
21307 result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow();
21308
21309 wxPyEndAllowThreads(__tstate);
21310 if (PyErr_Occurred()) SWIG_fail;
21311 }
21312 {
21313 resultobj = wxPyMake_wxObject(result, 0);
21314 }
21315 return resultobj;
21316 fail:
21317 return NULL;
21318 }
21319
21320
21321 static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *, PyObject *args) {
21322 PyObject *obj;
21323 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21324 SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj);
21325 Py_INCREF(obj);
21326 return Py_BuildValue((char *)"");
21327 }
21328 static PyObject *_wrap_new_DisplayChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) {
21329 PyObject *resultobj;
21330 wxDisplayChangedEvent *result;
21331 char *kwnames[] = {
21332 NULL
21333 };
21334
21335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail;
21336 {
21337 PyThreadState* __tstate = wxPyBeginAllowThreads();
21338 result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent();
21339
21340 wxPyEndAllowThreads(__tstate);
21341 if (PyErr_Occurred()) SWIG_fail;
21342 }
21343 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1);
21344 return resultobj;
21345 fail:
21346 return NULL;
21347 }
21348
21349
21350 static PyObject * DisplayChangedEvent_swigregister(PyObject *, PyObject *args) {
21351 PyObject *obj;
21352 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21353 SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj);
21354 Py_INCREF(obj);
21355 return Py_BuildValue((char *)"");
21356 }
21357 static PyObject *_wrap_new_PaletteChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) {
21358 PyObject *resultobj;
21359 int arg1 = (int) 0 ;
21360 wxPaletteChangedEvent *result;
21361 PyObject * obj0 = 0 ;
21362 char *kwnames[] = {
21363 (char *) "id", NULL
21364 };
21365
21366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail;
21367 if (obj0) {
21368 {
21369 arg1 = (int)(SWIG_As_int(obj0));
21370 if (SWIG_arg_fail(1)) SWIG_fail;
21371 }
21372 }
21373 {
21374 PyThreadState* __tstate = wxPyBeginAllowThreads();
21375 result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1);
21376
21377 wxPyEndAllowThreads(__tstate);
21378 if (PyErr_Occurred()) SWIG_fail;
21379 }
21380 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1);
21381 return resultobj;
21382 fail:
21383 return NULL;
21384 }
21385
21386
21387 static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) {
21388 PyObject *resultobj;
21389 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
21390 wxWindow *arg2 = (wxWindow *) 0 ;
21391 PyObject * obj0 = 0 ;
21392 PyObject * obj1 = 0 ;
21393 char *kwnames[] = {
21394 (char *) "self",(char *) "win", NULL
21395 };
21396
21397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail;
21398 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPaletteChangedEvent, SWIG_POINTER_EXCEPTION | 0);
21399 if (SWIG_arg_fail(1)) SWIG_fail;
21400 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21401 if (SWIG_arg_fail(2)) SWIG_fail;
21402 {
21403 PyThreadState* __tstate = wxPyBeginAllowThreads();
21404 (arg1)->SetChangedWindow(arg2);
21405
21406 wxPyEndAllowThreads(__tstate);
21407 if (PyErr_Occurred()) SWIG_fail;
21408 }
21409 Py_INCREF(Py_None); resultobj = Py_None;
21410 return resultobj;
21411 fail:
21412 return NULL;
21413 }
21414
21415
21416 static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) {
21417 PyObject *resultobj;
21418 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
21419 wxWindow *result;
21420 PyObject * obj0 = 0 ;
21421 char *kwnames[] = {
21422 (char *) "self", NULL
21423 };
21424
21425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail;
21426 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPaletteChangedEvent, SWIG_POINTER_EXCEPTION | 0);
21427 if (SWIG_arg_fail(1)) SWIG_fail;
21428 {
21429 PyThreadState* __tstate = wxPyBeginAllowThreads();
21430 result = (wxWindow *)(arg1)->GetChangedWindow();
21431
21432 wxPyEndAllowThreads(__tstate);
21433 if (PyErr_Occurred()) SWIG_fail;
21434 }
21435 {
21436 resultobj = wxPyMake_wxObject(result, 0);
21437 }
21438 return resultobj;
21439 fail:
21440 return NULL;
21441 }
21442
21443
21444 static PyObject * PaletteChangedEvent_swigregister(PyObject *, PyObject *args) {
21445 PyObject *obj;
21446 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21447 SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj);
21448 Py_INCREF(obj);
21449 return Py_BuildValue((char *)"");
21450 }
21451 static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *, PyObject *args, PyObject *kwargs) {
21452 PyObject *resultobj;
21453 int arg1 = (int) 0 ;
21454 wxQueryNewPaletteEvent *result;
21455 PyObject * obj0 = 0 ;
21456 char *kwnames[] = {
21457 (char *) "winid", NULL
21458 };
21459
21460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail;
21461 if (obj0) {
21462 {
21463 arg1 = (int)(SWIG_As_int(obj0));
21464 if (SWIG_arg_fail(1)) SWIG_fail;
21465 }
21466 }
21467 {
21468 PyThreadState* __tstate = wxPyBeginAllowThreads();
21469 result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1);
21470
21471 wxPyEndAllowThreads(__tstate);
21472 if (PyErr_Occurred()) SWIG_fail;
21473 }
21474 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1);
21475 return resultobj;
21476 fail:
21477 return NULL;
21478 }
21479
21480
21481 static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) {
21482 PyObject *resultobj;
21483 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
21484 bool arg2 ;
21485 PyObject * obj0 = 0 ;
21486 PyObject * obj1 = 0 ;
21487 char *kwnames[] = {
21488 (char *) "self",(char *) "realized", NULL
21489 };
21490
21491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail;
21492 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxQueryNewPaletteEvent, SWIG_POINTER_EXCEPTION | 0);
21493 if (SWIG_arg_fail(1)) SWIG_fail;
21494 {
21495 arg2 = (bool)(SWIG_As_bool(obj1));
21496 if (SWIG_arg_fail(2)) SWIG_fail;
21497 }
21498 {
21499 PyThreadState* __tstate = wxPyBeginAllowThreads();
21500 (arg1)->SetPaletteRealized(arg2);
21501
21502 wxPyEndAllowThreads(__tstate);
21503 if (PyErr_Occurred()) SWIG_fail;
21504 }
21505 Py_INCREF(Py_None); resultobj = Py_None;
21506 return resultobj;
21507 fail:
21508 return NULL;
21509 }
21510
21511
21512 static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) {
21513 PyObject *resultobj;
21514 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
21515 bool result;
21516 PyObject * obj0 = 0 ;
21517 char *kwnames[] = {
21518 (char *) "self", NULL
21519 };
21520
21521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail;
21522 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxQueryNewPaletteEvent, SWIG_POINTER_EXCEPTION | 0);
21523 if (SWIG_arg_fail(1)) SWIG_fail;
21524 {
21525 PyThreadState* __tstate = wxPyBeginAllowThreads();
21526 result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized();
21527
21528 wxPyEndAllowThreads(__tstate);
21529 if (PyErr_Occurred()) SWIG_fail;
21530 }
21531 {
21532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21533 }
21534 return resultobj;
21535 fail:
21536 return NULL;
21537 }
21538
21539
21540 static PyObject * QueryNewPaletteEvent_swigregister(PyObject *, PyObject *args) {
21541 PyObject *obj;
21542 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21543 SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj);
21544 Py_INCREF(obj);
21545 return Py_BuildValue((char *)"");
21546 }
21547 static PyObject *_wrap_new_NavigationKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
21548 PyObject *resultobj;
21549 wxNavigationKeyEvent *result;
21550 char *kwnames[] = {
21551 NULL
21552 };
21553
21554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail;
21555 {
21556 PyThreadState* __tstate = wxPyBeginAllowThreads();
21557 result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent();
21558
21559 wxPyEndAllowThreads(__tstate);
21560 if (PyErr_Occurred()) SWIG_fail;
21561 }
21562 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1);
21563 return resultobj;
21564 fail:
21565 return NULL;
21566 }
21567
21568
21569 static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *, PyObject *args, PyObject *kwargs) {
21570 PyObject *resultobj;
21571 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
21572 bool result;
21573 PyObject * obj0 = 0 ;
21574 char *kwnames[] = {
21575 (char *) "self", NULL
21576 };
21577
21578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail;
21579 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0);
21580 if (SWIG_arg_fail(1)) SWIG_fail;
21581 {
21582 PyThreadState* __tstate = wxPyBeginAllowThreads();
21583 result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection();
21584
21585 wxPyEndAllowThreads(__tstate);
21586 if (PyErr_Occurred()) SWIG_fail;
21587 }
21588 {
21589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21590 }
21591 return resultobj;
21592 fail:
21593 return NULL;
21594 }
21595
21596
21597 static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *, PyObject *args, PyObject *kwargs) {
21598 PyObject *resultobj;
21599 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
21600 bool arg2 ;
21601 PyObject * obj0 = 0 ;
21602 PyObject * obj1 = 0 ;
21603 char *kwnames[] = {
21604 (char *) "self",(char *) "forward", NULL
21605 };
21606
21607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail;
21608 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0);
21609 if (SWIG_arg_fail(1)) SWIG_fail;
21610 {
21611 arg2 = (bool)(SWIG_As_bool(obj1));
21612 if (SWIG_arg_fail(2)) SWIG_fail;
21613 }
21614 {
21615 PyThreadState* __tstate = wxPyBeginAllowThreads();
21616 (arg1)->SetDirection(arg2);
21617
21618 wxPyEndAllowThreads(__tstate);
21619 if (PyErr_Occurred()) SWIG_fail;
21620 }
21621 Py_INCREF(Py_None); resultobj = Py_None;
21622 return resultobj;
21623 fail:
21624 return NULL;
21625 }
21626
21627
21628 static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *, PyObject *args, PyObject *kwargs) {
21629 PyObject *resultobj;
21630 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
21631 bool result;
21632 PyObject * obj0 = 0 ;
21633 char *kwnames[] = {
21634 (char *) "self", NULL
21635 };
21636
21637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail;
21638 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0);
21639 if (SWIG_arg_fail(1)) SWIG_fail;
21640 {
21641 PyThreadState* __tstate = wxPyBeginAllowThreads();
21642 result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange();
21643
21644 wxPyEndAllowThreads(__tstate);
21645 if (PyErr_Occurred()) SWIG_fail;
21646 }
21647 {
21648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21649 }
21650 return resultobj;
21651 fail:
21652 return NULL;
21653 }
21654
21655
21656 static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *, PyObject *args, PyObject *kwargs) {
21657 PyObject *resultobj;
21658 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
21659 bool arg2 ;
21660 PyObject * obj0 = 0 ;
21661 PyObject * obj1 = 0 ;
21662 char *kwnames[] = {
21663 (char *) "self",(char *) "ischange", NULL
21664 };
21665
21666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail;
21667 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0);
21668 if (SWIG_arg_fail(1)) SWIG_fail;
21669 {
21670 arg2 = (bool)(SWIG_As_bool(obj1));
21671 if (SWIG_arg_fail(2)) SWIG_fail;
21672 }
21673 {
21674 PyThreadState* __tstate = wxPyBeginAllowThreads();
21675 (arg1)->SetWindowChange(arg2);
21676
21677 wxPyEndAllowThreads(__tstate);
21678 if (PyErr_Occurred()) SWIG_fail;
21679 }
21680 Py_INCREF(Py_None); resultobj = Py_None;
21681 return resultobj;
21682 fail:
21683 return NULL;
21684 }
21685
21686
21687 static PyObject *_wrap_NavigationKeyEvent_IsFromTab(PyObject *, PyObject *args, PyObject *kwargs) {
21688 PyObject *resultobj;
21689 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
21690 bool result;
21691 PyObject * obj0 = 0 ;
21692 char *kwnames[] = {
21693 (char *) "self", NULL
21694 };
21695
21696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsFromTab",kwnames,&obj0)) goto fail;
21697 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0);
21698 if (SWIG_arg_fail(1)) SWIG_fail;
21699 {
21700 PyThreadState* __tstate = wxPyBeginAllowThreads();
21701 result = (bool)((wxNavigationKeyEvent const *)arg1)->IsFromTab();
21702
21703 wxPyEndAllowThreads(__tstate);
21704 if (PyErr_Occurred()) SWIG_fail;
21705 }
21706 {
21707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21708 }
21709 return resultobj;
21710 fail:
21711 return NULL;
21712 }
21713
21714
21715 static PyObject *_wrap_NavigationKeyEvent_SetFromTab(PyObject *, PyObject *args, PyObject *kwargs) {
21716 PyObject *resultobj;
21717 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
21718 bool arg2 ;
21719 PyObject * obj0 = 0 ;
21720 PyObject * obj1 = 0 ;
21721 char *kwnames[] = {
21722 (char *) "self",(char *) "bIs", NULL
21723 };
21724
21725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFromTab",kwnames,&obj0,&obj1)) goto fail;
21726 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0);
21727 if (SWIG_arg_fail(1)) SWIG_fail;
21728 {
21729 arg2 = (bool)(SWIG_As_bool(obj1));
21730 if (SWIG_arg_fail(2)) SWIG_fail;
21731 }
21732 {
21733 PyThreadState* __tstate = wxPyBeginAllowThreads();
21734 (arg1)->SetFromTab(arg2);
21735
21736 wxPyEndAllowThreads(__tstate);
21737 if (PyErr_Occurred()) SWIG_fail;
21738 }
21739 Py_INCREF(Py_None); resultobj = Py_None;
21740 return resultobj;
21741 fail:
21742 return NULL;
21743 }
21744
21745
21746 static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
21747 PyObject *resultobj;
21748 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
21749 long arg2 ;
21750 PyObject * obj0 = 0 ;
21751 PyObject * obj1 = 0 ;
21752 char *kwnames[] = {
21753 (char *) "self",(char *) "flags", NULL
21754 };
21755
21756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail;
21757 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0);
21758 if (SWIG_arg_fail(1)) SWIG_fail;
21759 {
21760 arg2 = (long)(SWIG_As_long(obj1));
21761 if (SWIG_arg_fail(2)) SWIG_fail;
21762 }
21763 {
21764 PyThreadState* __tstate = wxPyBeginAllowThreads();
21765 (arg1)->SetFlags(arg2);
21766
21767 wxPyEndAllowThreads(__tstate);
21768 if (PyErr_Occurred()) SWIG_fail;
21769 }
21770 Py_INCREF(Py_None); resultobj = Py_None;
21771 return resultobj;
21772 fail:
21773 return NULL;
21774 }
21775
21776
21777 static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) {
21778 PyObject *resultobj;
21779 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
21780 wxWindow *result;
21781 PyObject * obj0 = 0 ;
21782 char *kwnames[] = {
21783 (char *) "self", NULL
21784 };
21785
21786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail;
21787 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0);
21788 if (SWIG_arg_fail(1)) SWIG_fail;
21789 {
21790 PyThreadState* __tstate = wxPyBeginAllowThreads();
21791 result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus();
21792
21793 wxPyEndAllowThreads(__tstate);
21794 if (PyErr_Occurred()) SWIG_fail;
21795 }
21796 {
21797 resultobj = wxPyMake_wxObject(result, 0);
21798 }
21799 return resultobj;
21800 fail:
21801 return NULL;
21802 }
21803
21804
21805 static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) {
21806 PyObject *resultobj;
21807 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
21808 wxWindow *arg2 = (wxWindow *) 0 ;
21809 PyObject * obj0 = 0 ;
21810 PyObject * obj1 = 0 ;
21811 char *kwnames[] = {
21812 (char *) "self",(char *) "win", NULL
21813 };
21814
21815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail;
21816 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_EXCEPTION | 0);
21817 if (SWIG_arg_fail(1)) SWIG_fail;
21818 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21819 if (SWIG_arg_fail(2)) SWIG_fail;
21820 {
21821 PyThreadState* __tstate = wxPyBeginAllowThreads();
21822 (arg1)->SetCurrentFocus(arg2);
21823
21824 wxPyEndAllowThreads(__tstate);
21825 if (PyErr_Occurred()) SWIG_fail;
21826 }
21827 Py_INCREF(Py_None); resultobj = Py_None;
21828 return resultobj;
21829 fail:
21830 return NULL;
21831 }
21832
21833
21834 static PyObject * NavigationKeyEvent_swigregister(PyObject *, PyObject *args) {
21835 PyObject *obj;
21836 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21837 SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj);
21838 Py_INCREF(obj);
21839 return Py_BuildValue((char *)"");
21840 }
21841 static PyObject *_wrap_new_WindowCreateEvent(PyObject *, PyObject *args, PyObject *kwargs) {
21842 PyObject *resultobj;
21843 wxWindow *arg1 = (wxWindow *) NULL ;
21844 wxWindowCreateEvent *result;
21845 PyObject * obj0 = 0 ;
21846 char *kwnames[] = {
21847 (char *) "win", NULL
21848 };
21849
21850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail;
21851 if (obj0) {
21852 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21853 if (SWIG_arg_fail(1)) SWIG_fail;
21854 }
21855 {
21856 PyThreadState* __tstate = wxPyBeginAllowThreads();
21857 result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1);
21858
21859 wxPyEndAllowThreads(__tstate);
21860 if (PyErr_Occurred()) SWIG_fail;
21861 }
21862 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1);
21863 return resultobj;
21864 fail:
21865 return NULL;
21866 }
21867
21868
21869 static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
21870 PyObject *resultobj;
21871 wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ;
21872 wxWindow *result;
21873 PyObject * obj0 = 0 ;
21874 char *kwnames[] = {
21875 (char *) "self", NULL
21876 };
21877
21878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail;
21879 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindowCreateEvent, SWIG_POINTER_EXCEPTION | 0);
21880 if (SWIG_arg_fail(1)) SWIG_fail;
21881 {
21882 PyThreadState* __tstate = wxPyBeginAllowThreads();
21883 result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow();
21884
21885 wxPyEndAllowThreads(__tstate);
21886 if (PyErr_Occurred()) SWIG_fail;
21887 }
21888 {
21889 resultobj = wxPyMake_wxObject(result, 0);
21890 }
21891 return resultobj;
21892 fail:
21893 return NULL;
21894 }
21895
21896
21897 static PyObject * WindowCreateEvent_swigregister(PyObject *, PyObject *args) {
21898 PyObject *obj;
21899 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21900 SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj);
21901 Py_INCREF(obj);
21902 return Py_BuildValue((char *)"");
21903 }
21904 static PyObject *_wrap_new_WindowDestroyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
21905 PyObject *resultobj;
21906 wxWindow *arg1 = (wxWindow *) NULL ;
21907 wxWindowDestroyEvent *result;
21908 PyObject * obj0 = 0 ;
21909 char *kwnames[] = {
21910 (char *) "win", NULL
21911 };
21912
21913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail;
21914 if (obj0) {
21915 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21916 if (SWIG_arg_fail(1)) SWIG_fail;
21917 }
21918 {
21919 PyThreadState* __tstate = wxPyBeginAllowThreads();
21920 result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1);
21921
21922 wxPyEndAllowThreads(__tstate);
21923 if (PyErr_Occurred()) SWIG_fail;
21924 }
21925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1);
21926 return resultobj;
21927 fail:
21928 return NULL;
21929 }
21930
21931
21932 static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
21933 PyObject *resultobj;
21934 wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ;
21935 wxWindow *result;
21936 PyObject * obj0 = 0 ;
21937 char *kwnames[] = {
21938 (char *) "self", NULL
21939 };
21940
21941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail;
21942 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindowDestroyEvent, SWIG_POINTER_EXCEPTION | 0);
21943 if (SWIG_arg_fail(1)) SWIG_fail;
21944 {
21945 PyThreadState* __tstate = wxPyBeginAllowThreads();
21946 result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow();
21947
21948 wxPyEndAllowThreads(__tstate);
21949 if (PyErr_Occurred()) SWIG_fail;
21950 }
21951 {
21952 resultobj = wxPyMake_wxObject(result, 0);
21953 }
21954 return resultobj;
21955 fail:
21956 return NULL;
21957 }
21958
21959
21960 static PyObject * WindowDestroyEvent_swigregister(PyObject *, PyObject *args) {
21961 PyObject *obj;
21962 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21963 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj);
21964 Py_INCREF(obj);
21965 return Py_BuildValue((char *)"");
21966 }
21967 static PyObject *_wrap_new_ContextMenuEvent(PyObject *, PyObject *args, PyObject *kwargs) {
21968 PyObject *resultobj;
21969 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21970 int arg2 = (int) 0 ;
21971 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21972 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21973 wxContextMenuEvent *result;
21974 wxPoint temp3 ;
21975 PyObject * obj0 = 0 ;
21976 PyObject * obj1 = 0 ;
21977 PyObject * obj2 = 0 ;
21978 char *kwnames[] = {
21979 (char *) "type",(char *) "winid",(char *) "pt", NULL
21980 };
21981
21982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
21983 if (obj0) {
21984 {
21985 arg1 = (wxEventType)(SWIG_As_int(obj0));
21986 if (SWIG_arg_fail(1)) SWIG_fail;
21987 }
21988 }
21989 if (obj1) {
21990 {
21991 arg2 = (int)(SWIG_As_int(obj1));
21992 if (SWIG_arg_fail(2)) SWIG_fail;
21993 }
21994 }
21995 if (obj2) {
21996 {
21997 arg3 = &temp3;
21998 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21999 }
22000 }
22001 {
22002 PyThreadState* __tstate = wxPyBeginAllowThreads();
22003 result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3);
22004
22005 wxPyEndAllowThreads(__tstate);
22006 if (PyErr_Occurred()) SWIG_fail;
22007 }
22008 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1);
22009 return resultobj;
22010 fail:
22011 return NULL;
22012 }
22013
22014
22015 static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22016 PyObject *resultobj;
22017 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
22018 wxPoint *result;
22019 PyObject * obj0 = 0 ;
22020 char *kwnames[] = {
22021 (char *) "self", NULL
22022 };
22023
22024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail;
22025 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextMenuEvent, SWIG_POINTER_EXCEPTION | 0);
22026 if (SWIG_arg_fail(1)) SWIG_fail;
22027 {
22028 PyThreadState* __tstate = wxPyBeginAllowThreads();
22029 {
22030 wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition();
22031 result = (wxPoint *) &_result_ref;
22032 }
22033
22034 wxPyEndAllowThreads(__tstate);
22035 if (PyErr_Occurred()) SWIG_fail;
22036 }
22037 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
22038 return resultobj;
22039 fail:
22040 return NULL;
22041 }
22042
22043
22044 static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22045 PyObject *resultobj;
22046 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
22047 wxPoint *arg2 = 0 ;
22048 wxPoint temp2 ;
22049 PyObject * obj0 = 0 ;
22050 PyObject * obj1 = 0 ;
22051 char *kwnames[] = {
22052 (char *) "self",(char *) "pos", NULL
22053 };
22054
22055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
22056 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextMenuEvent, SWIG_POINTER_EXCEPTION | 0);
22057 if (SWIG_arg_fail(1)) SWIG_fail;
22058 {
22059 arg2 = &temp2;
22060 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22061 }
22062 {
22063 PyThreadState* __tstate = wxPyBeginAllowThreads();
22064 (arg1)->SetPosition((wxPoint const &)*arg2);
22065
22066 wxPyEndAllowThreads(__tstate);
22067 if (PyErr_Occurred()) SWIG_fail;
22068 }
22069 Py_INCREF(Py_None); resultobj = Py_None;
22070 return resultobj;
22071 fail:
22072 return NULL;
22073 }
22074
22075
22076 static PyObject * ContextMenuEvent_swigregister(PyObject *, PyObject *args) {
22077 PyObject *obj;
22078 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22079 SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj);
22080 Py_INCREF(obj);
22081 return Py_BuildValue((char *)"");
22082 }
22083 static PyObject *_wrap_new_IdleEvent(PyObject *, PyObject *args, PyObject *kwargs) {
22084 PyObject *resultobj;
22085 wxIdleEvent *result;
22086 char *kwnames[] = {
22087 NULL
22088 };
22089
22090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail;
22091 {
22092 PyThreadState* __tstate = wxPyBeginAllowThreads();
22093 result = (wxIdleEvent *)new wxIdleEvent();
22094
22095 wxPyEndAllowThreads(__tstate);
22096 if (PyErr_Occurred()) SWIG_fail;
22097 }
22098 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1);
22099 return resultobj;
22100 fail:
22101 return NULL;
22102 }
22103
22104
22105 static PyObject *_wrap_IdleEvent_RequestMore(PyObject *, PyObject *args, PyObject *kwargs) {
22106 PyObject *resultobj;
22107 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
22108 bool arg2 = (bool) true ;
22109 PyObject * obj0 = 0 ;
22110 PyObject * obj1 = 0 ;
22111 char *kwnames[] = {
22112 (char *) "self",(char *) "needMore", NULL
22113 };
22114
22115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail;
22116 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIdleEvent, SWIG_POINTER_EXCEPTION | 0);
22117 if (SWIG_arg_fail(1)) SWIG_fail;
22118 if (obj1) {
22119 {
22120 arg2 = (bool)(SWIG_As_bool(obj1));
22121 if (SWIG_arg_fail(2)) SWIG_fail;
22122 }
22123 }
22124 {
22125 PyThreadState* __tstate = wxPyBeginAllowThreads();
22126 (arg1)->RequestMore(arg2);
22127
22128 wxPyEndAllowThreads(__tstate);
22129 if (PyErr_Occurred()) SWIG_fail;
22130 }
22131 Py_INCREF(Py_None); resultobj = Py_None;
22132 return resultobj;
22133 fail:
22134 return NULL;
22135 }
22136
22137
22138 static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *, PyObject *args, PyObject *kwargs) {
22139 PyObject *resultobj;
22140 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
22141 bool result;
22142 PyObject * obj0 = 0 ;
22143 char *kwnames[] = {
22144 (char *) "self", NULL
22145 };
22146
22147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail;
22148 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIdleEvent, SWIG_POINTER_EXCEPTION | 0);
22149 if (SWIG_arg_fail(1)) SWIG_fail;
22150 {
22151 PyThreadState* __tstate = wxPyBeginAllowThreads();
22152 result = (bool)((wxIdleEvent const *)arg1)->MoreRequested();
22153
22154 wxPyEndAllowThreads(__tstate);
22155 if (PyErr_Occurred()) SWIG_fail;
22156 }
22157 {
22158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22159 }
22160 return resultobj;
22161 fail:
22162 return NULL;
22163 }
22164
22165
22166 static PyObject *_wrap_IdleEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) {
22167 PyObject *resultobj;
22168 wxIdleMode arg1 ;
22169 PyObject * obj0 = 0 ;
22170 char *kwnames[] = {
22171 (char *) "mode", NULL
22172 };
22173
22174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail;
22175 {
22176 arg1 = (wxIdleMode)(SWIG_As_int(obj0));
22177 if (SWIG_arg_fail(1)) SWIG_fail;
22178 }
22179 {
22180 PyThreadState* __tstate = wxPyBeginAllowThreads();
22181 wxIdleEvent::SetMode((wxIdleMode )arg1);
22182
22183 wxPyEndAllowThreads(__tstate);
22184 if (PyErr_Occurred()) SWIG_fail;
22185 }
22186 Py_INCREF(Py_None); resultobj = Py_None;
22187 return resultobj;
22188 fail:
22189 return NULL;
22190 }
22191
22192
22193 static PyObject *_wrap_IdleEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) {
22194 PyObject *resultobj;
22195 wxIdleMode result;
22196 char *kwnames[] = {
22197 NULL
22198 };
22199
22200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail;
22201 {
22202 PyThreadState* __tstate = wxPyBeginAllowThreads();
22203 result = (wxIdleMode)wxIdleEvent::GetMode();
22204
22205 wxPyEndAllowThreads(__tstate);
22206 if (PyErr_Occurred()) SWIG_fail;
22207 }
22208 resultobj = SWIG_From_int((result));
22209 return resultobj;
22210 fail:
22211 return NULL;
22212 }
22213
22214
22215 static PyObject *_wrap_IdleEvent_CanSend(PyObject *, PyObject *args, PyObject *kwargs) {
22216 PyObject *resultobj;
22217 wxWindow *arg1 = (wxWindow *) 0 ;
22218 bool result;
22219 PyObject * obj0 = 0 ;
22220 char *kwnames[] = {
22221 (char *) "win", NULL
22222 };
22223
22224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail;
22225 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
22226 if (SWIG_arg_fail(1)) SWIG_fail;
22227 {
22228 PyThreadState* __tstate = wxPyBeginAllowThreads();
22229 result = (bool)wxIdleEvent::CanSend(arg1);
22230
22231 wxPyEndAllowThreads(__tstate);
22232 if (PyErr_Occurred()) SWIG_fail;
22233 }
22234 {
22235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22236 }
22237 return resultobj;
22238 fail:
22239 return NULL;
22240 }
22241
22242
22243 static PyObject * IdleEvent_swigregister(PyObject *, PyObject *args) {
22244 PyObject *obj;
22245 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22246 SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj);
22247 Py_INCREF(obj);
22248 return Py_BuildValue((char *)"");
22249 }
22250 static PyObject *_wrap_new_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
22251 PyObject *resultobj;
22252 int arg1 = (int) 0 ;
22253 wxEventType arg2 = (wxEventType) wxEVT_NULL ;
22254 wxPyEvent *result;
22255 PyObject * obj0 = 0 ;
22256 PyObject * obj1 = 0 ;
22257 char *kwnames[] = {
22258 (char *) "winid",(char *) "commandType", NULL
22259 };
22260
22261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail;
22262 if (obj0) {
22263 {
22264 arg1 = (int)(SWIG_As_int(obj0));
22265 if (SWIG_arg_fail(1)) SWIG_fail;
22266 }
22267 }
22268 if (obj1) {
22269 {
22270 arg2 = (wxEventType)(SWIG_As_int(obj1));
22271 if (SWIG_arg_fail(2)) SWIG_fail;
22272 }
22273 }
22274 {
22275 PyThreadState* __tstate = wxPyBeginAllowThreads();
22276 result = (wxPyEvent *)new wxPyEvent(arg1,arg2);
22277
22278 wxPyEndAllowThreads(__tstate);
22279 if (PyErr_Occurred()) SWIG_fail;
22280 }
22281 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1);
22282 return resultobj;
22283 fail:
22284 return NULL;
22285 }
22286
22287
22288 static PyObject *_wrap_delete_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
22289 PyObject *resultobj;
22290 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
22291 PyObject * obj0 = 0 ;
22292 char *kwnames[] = {
22293 (char *) "self", NULL
22294 };
22295
22296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail;
22297 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyEvent, SWIG_POINTER_EXCEPTION | 0);
22298 if (SWIG_arg_fail(1)) SWIG_fail;
22299 {
22300 PyThreadState* __tstate = wxPyBeginAllowThreads();
22301 delete arg1;
22302
22303 wxPyEndAllowThreads(__tstate);
22304 if (PyErr_Occurred()) SWIG_fail;
22305 }
22306 Py_INCREF(Py_None); resultobj = Py_None;
22307 return resultobj;
22308 fail:
22309 return NULL;
22310 }
22311
22312
22313 static PyObject *_wrap_PyEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) {
22314 PyObject *resultobj;
22315 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
22316 PyObject *arg2 = (PyObject *) 0 ;
22317 PyObject * obj0 = 0 ;
22318 PyObject * obj1 = 0 ;
22319 char *kwnames[] = {
22320 (char *) "self",(char *) "self", NULL
22321 };
22322
22323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
22324 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyEvent, SWIG_POINTER_EXCEPTION | 0);
22325 if (SWIG_arg_fail(1)) SWIG_fail;
22326 arg2 = obj1;
22327 {
22328 PyThreadState* __tstate = wxPyBeginAllowThreads();
22329 (arg1)->SetSelf(arg2);
22330
22331 wxPyEndAllowThreads(__tstate);
22332 if (PyErr_Occurred()) SWIG_fail;
22333 }
22334 Py_INCREF(Py_None); resultobj = Py_None;
22335 return resultobj;
22336 fail:
22337 return NULL;
22338 }
22339
22340
22341 static PyObject *_wrap_PyEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) {
22342 PyObject *resultobj;
22343 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
22344 PyObject *result;
22345 PyObject * obj0 = 0 ;
22346 char *kwnames[] = {
22347 (char *) "self", NULL
22348 };
22349
22350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail;
22351 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyEvent, SWIG_POINTER_EXCEPTION | 0);
22352 if (SWIG_arg_fail(1)) SWIG_fail;
22353 {
22354 PyThreadState* __tstate = wxPyBeginAllowThreads();
22355 result = (PyObject *)(arg1)->GetSelf();
22356
22357 wxPyEndAllowThreads(__tstate);
22358 if (PyErr_Occurred()) SWIG_fail;
22359 }
22360 resultobj = result;
22361 return resultobj;
22362 fail:
22363 return NULL;
22364 }
22365
22366
22367 static PyObject * PyEvent_swigregister(PyObject *, PyObject *args) {
22368 PyObject *obj;
22369 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22370 SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj);
22371 Py_INCREF(obj);
22372 return Py_BuildValue((char *)"");
22373 }
22374 static PyObject *_wrap_new_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) {
22375 PyObject *resultobj;
22376 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22377 int arg2 = (int) 0 ;
22378 wxPyCommandEvent *result;
22379 PyObject * obj0 = 0 ;
22380 PyObject * obj1 = 0 ;
22381 char *kwnames[] = {
22382 (char *) "commandType",(char *) "id", NULL
22383 };
22384
22385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail;
22386 if (obj0) {
22387 {
22388 arg1 = (wxEventType)(SWIG_As_int(obj0));
22389 if (SWIG_arg_fail(1)) SWIG_fail;
22390 }
22391 }
22392 if (obj1) {
22393 {
22394 arg2 = (int)(SWIG_As_int(obj1));
22395 if (SWIG_arg_fail(2)) SWIG_fail;
22396 }
22397 }
22398 {
22399 PyThreadState* __tstate = wxPyBeginAllowThreads();
22400 result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2);
22401
22402 wxPyEndAllowThreads(__tstate);
22403 if (PyErr_Occurred()) SWIG_fail;
22404 }
22405 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1);
22406 return resultobj;
22407 fail:
22408 return NULL;
22409 }
22410
22411
22412 static PyObject *_wrap_delete_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) {
22413 PyObject *resultobj;
22414 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
22415 PyObject * obj0 = 0 ;
22416 char *kwnames[] = {
22417 (char *) "self", NULL
22418 };
22419
22420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail;
22421 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_EXCEPTION | 0);
22422 if (SWIG_arg_fail(1)) SWIG_fail;
22423 {
22424 PyThreadState* __tstate = wxPyBeginAllowThreads();
22425 delete arg1;
22426
22427 wxPyEndAllowThreads(__tstate);
22428 if (PyErr_Occurred()) SWIG_fail;
22429 }
22430 Py_INCREF(Py_None); resultobj = Py_None;
22431 return resultobj;
22432 fail:
22433 return NULL;
22434 }
22435
22436
22437 static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) {
22438 PyObject *resultobj;
22439 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
22440 PyObject *arg2 = (PyObject *) 0 ;
22441 PyObject * obj0 = 0 ;
22442 PyObject * obj1 = 0 ;
22443 char *kwnames[] = {
22444 (char *) "self",(char *) "self", NULL
22445 };
22446
22447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
22448 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_EXCEPTION | 0);
22449 if (SWIG_arg_fail(1)) SWIG_fail;
22450 arg2 = obj1;
22451 {
22452 PyThreadState* __tstate = wxPyBeginAllowThreads();
22453 (arg1)->SetSelf(arg2);
22454
22455 wxPyEndAllowThreads(__tstate);
22456 if (PyErr_Occurred()) SWIG_fail;
22457 }
22458 Py_INCREF(Py_None); resultobj = Py_None;
22459 return resultobj;
22460 fail:
22461 return NULL;
22462 }
22463
22464
22465 static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) {
22466 PyObject *resultobj;
22467 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
22468 PyObject *result;
22469 PyObject * obj0 = 0 ;
22470 char *kwnames[] = {
22471 (char *) "self", NULL
22472 };
22473
22474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail;
22475 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_EXCEPTION | 0);
22476 if (SWIG_arg_fail(1)) SWIG_fail;
22477 {
22478 PyThreadState* __tstate = wxPyBeginAllowThreads();
22479 result = (PyObject *)(arg1)->GetSelf();
22480
22481 wxPyEndAllowThreads(__tstate);
22482 if (PyErr_Occurred()) SWIG_fail;
22483 }
22484 resultobj = result;
22485 return resultobj;
22486 fail:
22487 return NULL;
22488 }
22489
22490
22491 static PyObject * PyCommandEvent_swigregister(PyObject *, PyObject *args) {
22492 PyObject *obj;
22493 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22494 SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj);
22495 Py_INCREF(obj);
22496 return Py_BuildValue((char *)"");
22497 }
22498 static PyObject *_wrap_new_DateEvent(PyObject *, PyObject *args, PyObject *kwargs) {
22499 PyObject *resultobj;
22500 wxWindow *arg1 = (wxWindow *) 0 ;
22501 wxDateTime *arg2 = 0 ;
22502 wxEventType arg3 ;
22503 wxDateEvent *result;
22504 PyObject * obj0 = 0 ;
22505 PyObject * obj1 = 0 ;
22506 PyObject * obj2 = 0 ;
22507 char *kwnames[] = {
22508 (char *) "win",(char *) "dt",(char *) "type", NULL
22509 };
22510
22511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_DateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
22512 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
22513 if (SWIG_arg_fail(1)) SWIG_fail;
22514 {
22515 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22516 if (SWIG_arg_fail(2)) SWIG_fail;
22517 if (arg2 == NULL) {
22518 SWIG_null_ref("wxDateTime");
22519 }
22520 if (SWIG_arg_fail(2)) SWIG_fail;
22521 }
22522 {
22523 arg3 = (wxEventType)(SWIG_As_int(obj2));
22524 if (SWIG_arg_fail(3)) SWIG_fail;
22525 }
22526 {
22527 PyThreadState* __tstate = wxPyBeginAllowThreads();
22528 result = (wxDateEvent *)new wxDateEvent(arg1,(wxDateTime const &)*arg2,arg3);
22529
22530 wxPyEndAllowThreads(__tstate);
22531 if (PyErr_Occurred()) SWIG_fail;
22532 }
22533 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateEvent, 1);
22534 return resultobj;
22535 fail:
22536 return NULL;
22537 }
22538
22539
22540 static PyObject *_wrap_DateEvent_GetDate(PyObject *, PyObject *args, PyObject *kwargs) {
22541 PyObject *resultobj;
22542 wxDateEvent *arg1 = (wxDateEvent *) 0 ;
22543 wxDateTime *result;
22544 PyObject * obj0 = 0 ;
22545 char *kwnames[] = {
22546 (char *) "self", NULL
22547 };
22548
22549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateEvent_GetDate",kwnames,&obj0)) goto fail;
22550 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateEvent, SWIG_POINTER_EXCEPTION | 0);
22551 if (SWIG_arg_fail(1)) SWIG_fail;
22552 {
22553 PyThreadState* __tstate = wxPyBeginAllowThreads();
22554 {
22555 wxDateTime const &_result_ref = ((wxDateEvent const *)arg1)->GetDate();
22556 result = (wxDateTime *) &_result_ref;
22557 }
22558
22559 wxPyEndAllowThreads(__tstate);
22560 if (PyErr_Occurred()) SWIG_fail;
22561 }
22562 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
22563 return resultobj;
22564 fail:
22565 return NULL;
22566 }
22567
22568
22569 static PyObject *_wrap_DateEvent_SetDate(PyObject *, PyObject *args, PyObject *kwargs) {
22570 PyObject *resultobj;
22571 wxDateEvent *arg1 = (wxDateEvent *) 0 ;
22572 wxDateTime *arg2 = 0 ;
22573 PyObject * obj0 = 0 ;
22574 PyObject * obj1 = 0 ;
22575 char *kwnames[] = {
22576 (char *) "self",(char *) "date", NULL
22577 };
22578
22579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateEvent_SetDate",kwnames,&obj0,&obj1)) goto fail;
22580 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDateEvent, SWIG_POINTER_EXCEPTION | 0);
22581 if (SWIG_arg_fail(1)) SWIG_fail;
22582 {
22583 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0);
22584 if (SWIG_arg_fail(2)) SWIG_fail;
22585 if (arg2 == NULL) {
22586 SWIG_null_ref("wxDateTime");
22587 }
22588 if (SWIG_arg_fail(2)) SWIG_fail;
22589 }
22590 {
22591 PyThreadState* __tstate = wxPyBeginAllowThreads();
22592 (arg1)->SetDate((wxDateTime const &)*arg2);
22593
22594 wxPyEndAllowThreads(__tstate);
22595 if (PyErr_Occurred()) SWIG_fail;
22596 }
22597 Py_INCREF(Py_None); resultobj = Py_None;
22598 return resultobj;
22599 fail:
22600 return NULL;
22601 }
22602
22603
22604 static PyObject * DateEvent_swigregister(PyObject *, PyObject *args) {
22605 PyObject *obj;
22606 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22607 SWIG_TypeClientData(SWIGTYPE_p_wxDateEvent, obj);
22608 Py_INCREF(obj);
22609 return Py_BuildValue((char *)"");
22610 }
22611 static PyObject *_wrap_new_PyApp(PyObject *, PyObject *args, PyObject *kwargs) {
22612 PyObject *resultobj;
22613 wxPyApp *result;
22614 char *kwnames[] = {
22615 NULL
22616 };
22617
22618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail;
22619 {
22620 PyThreadState* __tstate = wxPyBeginAllowThreads();
22621 result = (wxPyApp *)new_wxPyApp();
22622
22623 wxPyEndAllowThreads(__tstate);
22624 if (PyErr_Occurred()) SWIG_fail;
22625 }
22626 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1);
22627 return resultobj;
22628 fail:
22629 return NULL;
22630 }
22631
22632
22633 static PyObject *_wrap_delete_PyApp(PyObject *, PyObject *args, PyObject *kwargs) {
22634 PyObject *resultobj;
22635 wxPyApp *arg1 = (wxPyApp *) 0 ;
22636 PyObject * obj0 = 0 ;
22637 char *kwnames[] = {
22638 (char *) "self", NULL
22639 };
22640
22641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail;
22642 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
22643 if (SWIG_arg_fail(1)) SWIG_fail;
22644 {
22645 PyThreadState* __tstate = wxPyBeginAllowThreads();
22646 delete arg1;
22647
22648 wxPyEndAllowThreads(__tstate);
22649 if (PyErr_Occurred()) SWIG_fail;
22650 }
22651 Py_INCREF(Py_None); resultobj = Py_None;
22652 return resultobj;
22653 fail:
22654 return NULL;
22655 }
22656
22657
22658 static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
22659 PyObject *resultobj;
22660 wxPyApp *arg1 = (wxPyApp *) 0 ;
22661 PyObject *arg2 = (PyObject *) 0 ;
22662 PyObject *arg3 = (PyObject *) 0 ;
22663 bool arg4 ;
22664 PyObject * obj0 = 0 ;
22665 PyObject * obj1 = 0 ;
22666 PyObject * obj2 = 0 ;
22667 PyObject * obj3 = 0 ;
22668 char *kwnames[] = {
22669 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
22670 };
22671
22672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22673 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
22674 if (SWIG_arg_fail(1)) SWIG_fail;
22675 arg2 = obj1;
22676 arg3 = obj2;
22677 {
22678 arg4 = (bool)(SWIG_As_bool(obj3));
22679 if (SWIG_arg_fail(4)) SWIG_fail;
22680 }
22681 {
22682 PyThreadState* __tstate = wxPyBeginAllowThreads();
22683 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
22684
22685 wxPyEndAllowThreads(__tstate);
22686 if (PyErr_Occurred()) SWIG_fail;
22687 }
22688 Py_INCREF(Py_None); resultobj = Py_None;
22689 return resultobj;
22690 fail:
22691 return NULL;
22692 }
22693
22694
22695 static PyObject *_wrap_PyApp_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
22696 PyObject *resultobj;
22697 wxPyApp *arg1 = (wxPyApp *) 0 ;
22698 wxString result;
22699 PyObject * obj0 = 0 ;
22700 char *kwnames[] = {
22701 (char *) "self", NULL
22702 };
22703
22704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail;
22705 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
22706 if (SWIG_arg_fail(1)) SWIG_fail;
22707 {
22708 PyThreadState* __tstate = wxPyBeginAllowThreads();
22709 result = ((wxPyApp const *)arg1)->GetAppName();
22710
22711 wxPyEndAllowThreads(__tstate);
22712 if (PyErr_Occurred()) SWIG_fail;
22713 }
22714 {
22715 #if wxUSE_UNICODE
22716 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22717 #else
22718 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22719 #endif
22720 }
22721 return resultobj;
22722 fail:
22723 return NULL;
22724 }
22725
22726
22727 static PyObject *_wrap_PyApp_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
22728 PyObject *resultobj;
22729 wxPyApp *arg1 = (wxPyApp *) 0 ;
22730 wxString *arg2 = 0 ;
22731 bool temp2 = false ;
22732 PyObject * obj0 = 0 ;
22733 PyObject * obj1 = 0 ;
22734 char *kwnames[] = {
22735 (char *) "self",(char *) "name", NULL
22736 };
22737
22738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail;
22739 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
22740 if (SWIG_arg_fail(1)) SWIG_fail;
22741 {
22742 arg2 = wxString_in_helper(obj1);
22743 if (arg2 == NULL) SWIG_fail;
22744 temp2 = true;
22745 }
22746 {
22747 PyThreadState* __tstate = wxPyBeginAllowThreads();
22748 (arg1)->SetAppName((wxString const &)*arg2);
22749
22750 wxPyEndAllowThreads(__tstate);
22751 if (PyErr_Occurred()) SWIG_fail;
22752 }
22753 Py_INCREF(Py_None); resultobj = Py_None;
22754 {
22755 if (temp2)
22756 delete arg2;
22757 }
22758 return resultobj;
22759 fail:
22760 {
22761 if (temp2)
22762 delete arg2;
22763 }
22764 return NULL;
22765 }
22766
22767
22768 static PyObject *_wrap_PyApp_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) {
22769 PyObject *resultobj;
22770 wxPyApp *arg1 = (wxPyApp *) 0 ;
22771 wxString result;
22772 PyObject * obj0 = 0 ;
22773 char *kwnames[] = {
22774 (char *) "self", NULL
22775 };
22776
22777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail;
22778 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
22779 if (SWIG_arg_fail(1)) SWIG_fail;
22780 {
22781 PyThreadState* __tstate = wxPyBeginAllowThreads();
22782 result = ((wxPyApp const *)arg1)->GetClassName();
22783
22784 wxPyEndAllowThreads(__tstate);
22785 if (PyErr_Occurred()) SWIG_fail;
22786 }
22787 {
22788 #if wxUSE_UNICODE
22789 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22790 #else
22791 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22792 #endif
22793 }
22794 return resultobj;
22795 fail:
22796 return NULL;
22797 }
22798
22799
22800 static PyObject *_wrap_PyApp_SetClassName(PyObject *, PyObject *args, PyObject *kwargs) {
22801 PyObject *resultobj;
22802 wxPyApp *arg1 = (wxPyApp *) 0 ;
22803 wxString *arg2 = 0 ;
22804 bool temp2 = false ;
22805 PyObject * obj0 = 0 ;
22806 PyObject * obj1 = 0 ;
22807 char *kwnames[] = {
22808 (char *) "self",(char *) "name", NULL
22809 };
22810
22811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail;
22812 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
22813 if (SWIG_arg_fail(1)) SWIG_fail;
22814 {
22815 arg2 = wxString_in_helper(obj1);
22816 if (arg2 == NULL) SWIG_fail;
22817 temp2 = true;
22818 }
22819 {
22820 PyThreadState* __tstate = wxPyBeginAllowThreads();
22821 (arg1)->SetClassName((wxString const &)*arg2);
22822
22823 wxPyEndAllowThreads(__tstate);
22824 if (PyErr_Occurred()) SWIG_fail;
22825 }
22826 Py_INCREF(Py_None); resultobj = Py_None;
22827 {
22828 if (temp2)
22829 delete arg2;
22830 }
22831 return resultobj;
22832 fail:
22833 {
22834 if (temp2)
22835 delete arg2;
22836 }
22837 return NULL;
22838 }
22839
22840
22841 static PyObject *_wrap_PyApp_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
22842 PyObject *resultobj;
22843 wxPyApp *arg1 = (wxPyApp *) 0 ;
22844 wxString *result;
22845 PyObject * obj0 = 0 ;
22846 char *kwnames[] = {
22847 (char *) "self", NULL
22848 };
22849
22850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail;
22851 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
22852 if (SWIG_arg_fail(1)) SWIG_fail;
22853 {
22854 PyThreadState* __tstate = wxPyBeginAllowThreads();
22855 {
22856 wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName();
22857 result = (wxString *) &_result_ref;
22858 }
22859
22860 wxPyEndAllowThreads(__tstate);
22861 if (PyErr_Occurred()) SWIG_fail;
22862 }
22863 {
22864 #if wxUSE_UNICODE
22865 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
22866 #else
22867 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
22868 #endif
22869 }
22870 return resultobj;
22871 fail:
22872 return NULL;
22873 }
22874
22875
22876 static PyObject *_wrap_PyApp_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
22877 PyObject *resultobj;
22878 wxPyApp *arg1 = (wxPyApp *) 0 ;
22879 wxString *arg2 = 0 ;
22880 bool temp2 = false ;
22881 PyObject * obj0 = 0 ;
22882 PyObject * obj1 = 0 ;
22883 char *kwnames[] = {
22884 (char *) "self",(char *) "name", NULL
22885 };
22886
22887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
22888 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
22889 if (SWIG_arg_fail(1)) SWIG_fail;
22890 {
22891 arg2 = wxString_in_helper(obj1);
22892 if (arg2 == NULL) SWIG_fail;
22893 temp2 = true;
22894 }
22895 {
22896 PyThreadState* __tstate = wxPyBeginAllowThreads();
22897 (arg1)->SetVendorName((wxString const &)*arg2);
22898
22899 wxPyEndAllowThreads(__tstate);
22900 if (PyErr_Occurred()) SWIG_fail;
22901 }
22902 Py_INCREF(Py_None); resultobj = Py_None;
22903 {
22904 if (temp2)
22905 delete arg2;
22906 }
22907 return resultobj;
22908 fail:
22909 {
22910 if (temp2)
22911 delete arg2;
22912 }
22913 return NULL;
22914 }
22915
22916
22917 static PyObject *_wrap_PyApp_GetTraits(PyObject *, PyObject *args, PyObject *kwargs) {
22918 PyObject *resultobj;
22919 wxPyApp *arg1 = (wxPyApp *) 0 ;
22920 wxAppTraits *result;
22921 PyObject * obj0 = 0 ;
22922 char *kwnames[] = {
22923 (char *) "self", NULL
22924 };
22925
22926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail;
22927 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
22928 if (SWIG_arg_fail(1)) SWIG_fail;
22929 {
22930 PyThreadState* __tstate = wxPyBeginAllowThreads();
22931 result = (wxAppTraits *)(arg1)->GetTraits();
22932
22933 wxPyEndAllowThreads(__tstate);
22934 if (PyErr_Occurred()) SWIG_fail;
22935 }
22936 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0);
22937 return resultobj;
22938 fail:
22939 return NULL;
22940 }
22941
22942
22943 static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) {
22944 PyObject *resultobj;
22945 wxPyApp *arg1 = (wxPyApp *) 0 ;
22946 PyObject * obj0 = 0 ;
22947 char *kwnames[] = {
22948 (char *) "self", NULL
22949 };
22950
22951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail;
22952 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
22953 if (SWIG_arg_fail(1)) SWIG_fail;
22954 {
22955 PyThreadState* __tstate = wxPyBeginAllowThreads();
22956 (arg1)->ProcessPendingEvents();
22957
22958 wxPyEndAllowThreads(__tstate);
22959 if (PyErr_Occurred()) SWIG_fail;
22960 }
22961 Py_INCREF(Py_None); resultobj = Py_None;
22962 return resultobj;
22963 fail:
22964 return NULL;
22965 }
22966
22967
22968 static PyObject *_wrap_PyApp_Yield(PyObject *, PyObject *args, PyObject *kwargs) {
22969 PyObject *resultobj;
22970 wxPyApp *arg1 = (wxPyApp *) 0 ;
22971 bool arg2 = (bool) false ;
22972 bool result;
22973 PyObject * obj0 = 0 ;
22974 PyObject * obj1 = 0 ;
22975 char *kwnames[] = {
22976 (char *) "self",(char *) "onlyIfNeeded", NULL
22977 };
22978
22979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail;
22980 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
22981 if (SWIG_arg_fail(1)) SWIG_fail;
22982 if (obj1) {
22983 {
22984 arg2 = (bool)(SWIG_As_bool(obj1));
22985 if (SWIG_arg_fail(2)) SWIG_fail;
22986 }
22987 }
22988 {
22989 PyThreadState* __tstate = wxPyBeginAllowThreads();
22990 result = (bool)(arg1)->Yield(arg2);
22991
22992 wxPyEndAllowThreads(__tstate);
22993 if (PyErr_Occurred()) SWIG_fail;
22994 }
22995 {
22996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22997 }
22998 return resultobj;
22999 fail:
23000 return NULL;
23001 }
23002
23003
23004 static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) {
23005 PyObject *resultobj;
23006 wxPyApp *arg1 = (wxPyApp *) 0 ;
23007 PyObject * obj0 = 0 ;
23008 char *kwnames[] = {
23009 (char *) "self", NULL
23010 };
23011
23012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail;
23013 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23014 if (SWIG_arg_fail(1)) SWIG_fail;
23015 {
23016 PyThreadState* __tstate = wxPyBeginAllowThreads();
23017 (arg1)->WakeUpIdle();
23018
23019 wxPyEndAllowThreads(__tstate);
23020 if (PyErr_Occurred()) SWIG_fail;
23021 }
23022 Py_INCREF(Py_None); resultobj = Py_None;
23023 return resultobj;
23024 fail:
23025 return NULL;
23026 }
23027
23028
23029 static PyObject *_wrap_PyApp_IsMainLoopRunning(PyObject *, PyObject *args, PyObject *kwargs) {
23030 PyObject *resultobj;
23031 bool result;
23032 char *kwnames[] = {
23033 NULL
23034 };
23035
23036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_IsMainLoopRunning",kwnames)) goto fail;
23037 {
23038 PyThreadState* __tstate = wxPyBeginAllowThreads();
23039 result = (bool)wxPyApp::IsMainLoopRunning();
23040
23041 wxPyEndAllowThreads(__tstate);
23042 if (PyErr_Occurred()) SWIG_fail;
23043 }
23044 {
23045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23046 }
23047 return resultobj;
23048 fail:
23049 return NULL;
23050 }
23051
23052
23053 static PyObject *_wrap_PyApp_MainLoop(PyObject *, PyObject *args, PyObject *kwargs) {
23054 PyObject *resultobj;
23055 wxPyApp *arg1 = (wxPyApp *) 0 ;
23056 int result;
23057 PyObject * obj0 = 0 ;
23058 char *kwnames[] = {
23059 (char *) "self", NULL
23060 };
23061
23062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail;
23063 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23064 if (SWIG_arg_fail(1)) SWIG_fail;
23065 {
23066 PyThreadState* __tstate = wxPyBeginAllowThreads();
23067 result = (int)(arg1)->MainLoop();
23068
23069 wxPyEndAllowThreads(__tstate);
23070 if (PyErr_Occurred()) SWIG_fail;
23071 }
23072 {
23073 resultobj = SWIG_From_int((int)(result));
23074 }
23075 return resultobj;
23076 fail:
23077 return NULL;
23078 }
23079
23080
23081 static PyObject *_wrap_PyApp_Exit(PyObject *, PyObject *args, PyObject *kwargs) {
23082 PyObject *resultobj;
23083 wxPyApp *arg1 = (wxPyApp *) 0 ;
23084 PyObject * obj0 = 0 ;
23085 char *kwnames[] = {
23086 (char *) "self", NULL
23087 };
23088
23089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail;
23090 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23091 if (SWIG_arg_fail(1)) SWIG_fail;
23092 {
23093 PyThreadState* __tstate = wxPyBeginAllowThreads();
23094 (arg1)->Exit();
23095
23096 wxPyEndAllowThreads(__tstate);
23097 if (PyErr_Occurred()) SWIG_fail;
23098 }
23099 Py_INCREF(Py_None); resultobj = Py_None;
23100 return resultobj;
23101 fail:
23102 return NULL;
23103 }
23104
23105
23106 static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *, PyObject *args, PyObject *kwargs) {
23107 PyObject *resultobj;
23108 wxPyApp *arg1 = (wxPyApp *) 0 ;
23109 PyObject * obj0 = 0 ;
23110 char *kwnames[] = {
23111 (char *) "self", NULL
23112 };
23113
23114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail;
23115 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23116 if (SWIG_arg_fail(1)) SWIG_fail;
23117 {
23118 PyThreadState* __tstate = wxPyBeginAllowThreads();
23119 (arg1)->ExitMainLoop();
23120
23121 wxPyEndAllowThreads(__tstate);
23122 if (PyErr_Occurred()) SWIG_fail;
23123 }
23124 Py_INCREF(Py_None); resultobj = Py_None;
23125 return resultobj;
23126 fail:
23127 return NULL;
23128 }
23129
23130
23131 static PyObject *_wrap_PyApp_Pending(PyObject *, PyObject *args, PyObject *kwargs) {
23132 PyObject *resultobj;
23133 wxPyApp *arg1 = (wxPyApp *) 0 ;
23134 bool result;
23135 PyObject * obj0 = 0 ;
23136 char *kwnames[] = {
23137 (char *) "self", NULL
23138 };
23139
23140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail;
23141 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23142 if (SWIG_arg_fail(1)) SWIG_fail;
23143 {
23144 PyThreadState* __tstate = wxPyBeginAllowThreads();
23145 result = (bool)(arg1)->Pending();
23146
23147 wxPyEndAllowThreads(__tstate);
23148 if (PyErr_Occurred()) SWIG_fail;
23149 }
23150 {
23151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23152 }
23153 return resultobj;
23154 fail:
23155 return NULL;
23156 }
23157
23158
23159 static PyObject *_wrap_PyApp_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) {
23160 PyObject *resultobj;
23161 wxPyApp *arg1 = (wxPyApp *) 0 ;
23162 bool result;
23163 PyObject * obj0 = 0 ;
23164 char *kwnames[] = {
23165 (char *) "self", NULL
23166 };
23167
23168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail;
23169 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23170 if (SWIG_arg_fail(1)) SWIG_fail;
23171 {
23172 PyThreadState* __tstate = wxPyBeginAllowThreads();
23173 result = (bool)(arg1)->Dispatch();
23174
23175 wxPyEndAllowThreads(__tstate);
23176 if (PyErr_Occurred()) SWIG_fail;
23177 }
23178 {
23179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23180 }
23181 return resultobj;
23182 fail:
23183 return NULL;
23184 }
23185
23186
23187 static PyObject *_wrap_PyApp_ProcessIdle(PyObject *, PyObject *args, PyObject *kwargs) {
23188 PyObject *resultobj;
23189 wxPyApp *arg1 = (wxPyApp *) 0 ;
23190 bool result;
23191 PyObject * obj0 = 0 ;
23192 char *kwnames[] = {
23193 (char *) "self", NULL
23194 };
23195
23196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail;
23197 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23198 if (SWIG_arg_fail(1)) SWIG_fail;
23199 {
23200 PyThreadState* __tstate = wxPyBeginAllowThreads();
23201 result = (bool)(arg1)->ProcessIdle();
23202
23203 wxPyEndAllowThreads(__tstate);
23204 if (PyErr_Occurred()) SWIG_fail;
23205 }
23206 {
23207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23208 }
23209 return resultobj;
23210 fail:
23211 return NULL;
23212 }
23213
23214
23215 static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *, PyObject *args, PyObject *kwargs) {
23216 PyObject *resultobj;
23217 wxPyApp *arg1 = (wxPyApp *) 0 ;
23218 wxWindow *arg2 = (wxWindow *) 0 ;
23219 wxIdleEvent *arg3 = 0 ;
23220 bool result;
23221 PyObject * obj0 = 0 ;
23222 PyObject * obj1 = 0 ;
23223 PyObject * obj2 = 0 ;
23224 char *kwnames[] = {
23225 (char *) "self",(char *) "win",(char *) "event", NULL
23226 };
23227
23228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail;
23229 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23230 if (SWIG_arg_fail(1)) SWIG_fail;
23231 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
23232 if (SWIG_arg_fail(2)) SWIG_fail;
23233 {
23234 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxIdleEvent, SWIG_POINTER_EXCEPTION | 0);
23235 if (SWIG_arg_fail(3)) SWIG_fail;
23236 if (arg3 == NULL) {
23237 SWIG_null_ref("wxIdleEvent");
23238 }
23239 if (SWIG_arg_fail(3)) SWIG_fail;
23240 }
23241 {
23242 PyThreadState* __tstate = wxPyBeginAllowThreads();
23243 result = (bool)(arg1)->SendIdleEvents(arg2,*arg3);
23244
23245 wxPyEndAllowThreads(__tstate);
23246 if (PyErr_Occurred()) SWIG_fail;
23247 }
23248 {
23249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23250 }
23251 return resultobj;
23252 fail:
23253 return NULL;
23254 }
23255
23256
23257 static PyObject *_wrap_PyApp_IsActive(PyObject *, PyObject *args, PyObject *kwargs) {
23258 PyObject *resultobj;
23259 wxPyApp *arg1 = (wxPyApp *) 0 ;
23260 bool result;
23261 PyObject * obj0 = 0 ;
23262 char *kwnames[] = {
23263 (char *) "self", NULL
23264 };
23265
23266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail;
23267 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23268 if (SWIG_arg_fail(1)) SWIG_fail;
23269 {
23270 PyThreadState* __tstate = wxPyBeginAllowThreads();
23271 result = (bool)((wxPyApp const *)arg1)->IsActive();
23272
23273 wxPyEndAllowThreads(__tstate);
23274 if (PyErr_Occurred()) SWIG_fail;
23275 }
23276 {
23277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23278 }
23279 return resultobj;
23280 fail:
23281 return NULL;
23282 }
23283
23284
23285 static PyObject *_wrap_PyApp_SetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) {
23286 PyObject *resultobj;
23287 wxPyApp *arg1 = (wxPyApp *) 0 ;
23288 wxWindow *arg2 = (wxWindow *) 0 ;
23289 PyObject * obj0 = 0 ;
23290 PyObject * obj1 = 0 ;
23291 char *kwnames[] = {
23292 (char *) "self",(char *) "win", NULL
23293 };
23294
23295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail;
23296 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23297 if (SWIG_arg_fail(1)) SWIG_fail;
23298 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
23299 if (SWIG_arg_fail(2)) SWIG_fail;
23300 {
23301 PyThreadState* __tstate = wxPyBeginAllowThreads();
23302 (arg1)->SetTopWindow(arg2);
23303
23304 wxPyEndAllowThreads(__tstate);
23305 if (PyErr_Occurred()) SWIG_fail;
23306 }
23307 Py_INCREF(Py_None); resultobj = Py_None;
23308 return resultobj;
23309 fail:
23310 return NULL;
23311 }
23312
23313
23314 static PyObject *_wrap_PyApp_GetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) {
23315 PyObject *resultobj;
23316 wxPyApp *arg1 = (wxPyApp *) 0 ;
23317 wxWindow *result;
23318 PyObject * obj0 = 0 ;
23319 char *kwnames[] = {
23320 (char *) "self", NULL
23321 };
23322
23323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail;
23324 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23325 if (SWIG_arg_fail(1)) SWIG_fail;
23326 {
23327 PyThreadState* __tstate = wxPyBeginAllowThreads();
23328 result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow();
23329
23330 wxPyEndAllowThreads(__tstate);
23331 if (PyErr_Occurred()) SWIG_fail;
23332 }
23333 {
23334 resultobj = wxPyMake_wxObject(result, 0);
23335 }
23336 return resultobj;
23337 fail:
23338 return NULL;
23339 }
23340
23341
23342 static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) {
23343 PyObject *resultobj;
23344 wxPyApp *arg1 = (wxPyApp *) 0 ;
23345 bool arg2 ;
23346 PyObject * obj0 = 0 ;
23347 PyObject * obj1 = 0 ;
23348 char *kwnames[] = {
23349 (char *) "self",(char *) "flag", NULL
23350 };
23351
23352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail;
23353 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23354 if (SWIG_arg_fail(1)) SWIG_fail;
23355 {
23356 arg2 = (bool)(SWIG_As_bool(obj1));
23357 if (SWIG_arg_fail(2)) SWIG_fail;
23358 }
23359 {
23360 PyThreadState* __tstate = wxPyBeginAllowThreads();
23361 (arg1)->SetExitOnFrameDelete(arg2);
23362
23363 wxPyEndAllowThreads(__tstate);
23364 if (PyErr_Occurred()) SWIG_fail;
23365 }
23366 Py_INCREF(Py_None); resultobj = Py_None;
23367 return resultobj;
23368 fail:
23369 return NULL;
23370 }
23371
23372
23373 static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) {
23374 PyObject *resultobj;
23375 wxPyApp *arg1 = (wxPyApp *) 0 ;
23376 bool result;
23377 PyObject * obj0 = 0 ;
23378 char *kwnames[] = {
23379 (char *) "self", NULL
23380 };
23381
23382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail;
23383 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23384 if (SWIG_arg_fail(1)) SWIG_fail;
23385 {
23386 PyThreadState* __tstate = wxPyBeginAllowThreads();
23387 result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete();
23388
23389 wxPyEndAllowThreads(__tstate);
23390 if (PyErr_Occurred()) SWIG_fail;
23391 }
23392 {
23393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23394 }
23395 return resultobj;
23396 fail:
23397 return NULL;
23398 }
23399
23400
23401 static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) {
23402 PyObject *resultobj;
23403 wxPyApp *arg1 = (wxPyApp *) 0 ;
23404 bool arg2 ;
23405 PyObject * obj0 = 0 ;
23406 PyObject * obj1 = 0 ;
23407 char *kwnames[] = {
23408 (char *) "self",(char *) "flag", NULL
23409 };
23410
23411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail;
23412 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23413 if (SWIG_arg_fail(1)) SWIG_fail;
23414 {
23415 arg2 = (bool)(SWIG_As_bool(obj1));
23416 if (SWIG_arg_fail(2)) SWIG_fail;
23417 }
23418 {
23419 PyThreadState* __tstate = wxPyBeginAllowThreads();
23420 (arg1)->SetUseBestVisual(arg2);
23421
23422 wxPyEndAllowThreads(__tstate);
23423 if (PyErr_Occurred()) SWIG_fail;
23424 }
23425 Py_INCREF(Py_None); resultobj = Py_None;
23426 return resultobj;
23427 fail:
23428 return NULL;
23429 }
23430
23431
23432 static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) {
23433 PyObject *resultobj;
23434 wxPyApp *arg1 = (wxPyApp *) 0 ;
23435 bool result;
23436 PyObject * obj0 = 0 ;
23437 char *kwnames[] = {
23438 (char *) "self", NULL
23439 };
23440
23441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail;
23442 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23443 if (SWIG_arg_fail(1)) SWIG_fail;
23444 {
23445 PyThreadState* __tstate = wxPyBeginAllowThreads();
23446 result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual();
23447
23448 wxPyEndAllowThreads(__tstate);
23449 if (PyErr_Occurred()) SWIG_fail;
23450 }
23451 {
23452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23453 }
23454 return resultobj;
23455 fail:
23456 return NULL;
23457 }
23458
23459
23460 static PyObject *_wrap_PyApp_SetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) {
23461 PyObject *resultobj;
23462 wxPyApp *arg1 = (wxPyApp *) 0 ;
23463 int arg2 ;
23464 PyObject * obj0 = 0 ;
23465 PyObject * obj1 = 0 ;
23466 char *kwnames[] = {
23467 (char *) "self",(char *) "mode", NULL
23468 };
23469
23470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail;
23471 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23472 if (SWIG_arg_fail(1)) SWIG_fail;
23473 {
23474 arg2 = (int)(SWIG_As_int(obj1));
23475 if (SWIG_arg_fail(2)) SWIG_fail;
23476 }
23477 {
23478 PyThreadState* __tstate = wxPyBeginAllowThreads();
23479 (arg1)->SetPrintMode(arg2);
23480
23481 wxPyEndAllowThreads(__tstate);
23482 if (PyErr_Occurred()) SWIG_fail;
23483 }
23484 Py_INCREF(Py_None); resultobj = Py_None;
23485 return resultobj;
23486 fail:
23487 return NULL;
23488 }
23489
23490
23491 static PyObject *_wrap_PyApp_GetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) {
23492 PyObject *resultobj;
23493 wxPyApp *arg1 = (wxPyApp *) 0 ;
23494 int result;
23495 PyObject * obj0 = 0 ;
23496 char *kwnames[] = {
23497 (char *) "self", NULL
23498 };
23499
23500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail;
23501 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23502 if (SWIG_arg_fail(1)) SWIG_fail;
23503 {
23504 PyThreadState* __tstate = wxPyBeginAllowThreads();
23505 result = (int)((wxPyApp const *)arg1)->GetPrintMode();
23506
23507 wxPyEndAllowThreads(__tstate);
23508 if (PyErr_Occurred()) SWIG_fail;
23509 }
23510 {
23511 resultobj = SWIG_From_int((int)(result));
23512 }
23513 return resultobj;
23514 fail:
23515 return NULL;
23516 }
23517
23518
23519 static PyObject *_wrap_PyApp_SetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) {
23520 PyObject *resultobj;
23521 wxPyApp *arg1 = (wxPyApp *) 0 ;
23522 int arg2 ;
23523 PyObject * obj0 = 0 ;
23524 PyObject * obj1 = 0 ;
23525 char *kwnames[] = {
23526 (char *) "self",(char *) "mode", NULL
23527 };
23528
23529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail;
23530 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23531 if (SWIG_arg_fail(1)) SWIG_fail;
23532 {
23533 arg2 = (int)(SWIG_As_int(obj1));
23534 if (SWIG_arg_fail(2)) SWIG_fail;
23535 }
23536 {
23537 PyThreadState* __tstate = wxPyBeginAllowThreads();
23538 (arg1)->SetAssertMode(arg2);
23539
23540 wxPyEndAllowThreads(__tstate);
23541 if (PyErr_Occurred()) SWIG_fail;
23542 }
23543 Py_INCREF(Py_None); resultobj = Py_None;
23544 return resultobj;
23545 fail:
23546 return NULL;
23547 }
23548
23549
23550 static PyObject *_wrap_PyApp_GetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) {
23551 PyObject *resultobj;
23552 wxPyApp *arg1 = (wxPyApp *) 0 ;
23553 int result;
23554 PyObject * obj0 = 0 ;
23555 char *kwnames[] = {
23556 (char *) "self", NULL
23557 };
23558
23559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail;
23560 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23561 if (SWIG_arg_fail(1)) SWIG_fail;
23562 {
23563 PyThreadState* __tstate = wxPyBeginAllowThreads();
23564 result = (int)(arg1)->GetAssertMode();
23565
23566 wxPyEndAllowThreads(__tstate);
23567 if (PyErr_Occurred()) SWIG_fail;
23568 }
23569 {
23570 resultobj = SWIG_From_int((int)(result));
23571 }
23572 return resultobj;
23573 fail:
23574 return NULL;
23575 }
23576
23577
23578 static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) {
23579 PyObject *resultobj;
23580 bool result;
23581 char *kwnames[] = {
23582 NULL
23583 };
23584
23585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail;
23586 {
23587 PyThreadState* __tstate = wxPyBeginAllowThreads();
23588 result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts();
23589
23590 wxPyEndAllowThreads(__tstate);
23591 if (PyErr_Occurred()) SWIG_fail;
23592 }
23593 {
23594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23595 }
23596 return resultobj;
23597 fail:
23598 return NULL;
23599 }
23600
23601
23602 static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
23603 PyObject *resultobj;
23604 long result;
23605 char *kwnames[] = {
23606 NULL
23607 };
23608
23609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail;
23610 {
23611 PyThreadState* __tstate = wxPyBeginAllowThreads();
23612 result = (long)wxPyApp::GetMacAboutMenuItemId();
23613
23614 wxPyEndAllowThreads(__tstate);
23615 if (PyErr_Occurred()) SWIG_fail;
23616 }
23617 {
23618 resultobj = SWIG_From_long((long)(result));
23619 }
23620 return resultobj;
23621 fail:
23622 return NULL;
23623 }
23624
23625
23626 static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
23627 PyObject *resultobj;
23628 long result;
23629 char *kwnames[] = {
23630 NULL
23631 };
23632
23633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail;
23634 {
23635 PyThreadState* __tstate = wxPyBeginAllowThreads();
23636 result = (long)wxPyApp::GetMacPreferencesMenuItemId();
23637
23638 wxPyEndAllowThreads(__tstate);
23639 if (PyErr_Occurred()) SWIG_fail;
23640 }
23641 {
23642 resultobj = SWIG_From_long((long)(result));
23643 }
23644 return resultobj;
23645 fail:
23646 return NULL;
23647 }
23648
23649
23650 static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
23651 PyObject *resultobj;
23652 long result;
23653 char *kwnames[] = {
23654 NULL
23655 };
23656
23657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail;
23658 {
23659 PyThreadState* __tstate = wxPyBeginAllowThreads();
23660 result = (long)wxPyApp::GetMacExitMenuItemId();
23661
23662 wxPyEndAllowThreads(__tstate);
23663 if (PyErr_Occurred()) SWIG_fail;
23664 }
23665 {
23666 resultobj = SWIG_From_long((long)(result));
23667 }
23668 return resultobj;
23669 fail:
23670 return NULL;
23671 }
23672
23673
23674 static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) {
23675 PyObject *resultobj;
23676 wxString result;
23677 char *kwnames[] = {
23678 NULL
23679 };
23680
23681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail;
23682 {
23683 PyThreadState* __tstate = wxPyBeginAllowThreads();
23684 result = wxPyApp::GetMacHelpMenuTitleName();
23685
23686 wxPyEndAllowThreads(__tstate);
23687 if (PyErr_Occurred()) SWIG_fail;
23688 }
23689 {
23690 #if wxUSE_UNICODE
23691 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23692 #else
23693 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23694 #endif
23695 }
23696 return resultobj;
23697 fail:
23698 return NULL;
23699 }
23700
23701
23702 static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) {
23703 PyObject *resultobj;
23704 bool arg1 ;
23705 PyObject * obj0 = 0 ;
23706 char *kwnames[] = {
23707 (char *) "val", NULL
23708 };
23709
23710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail;
23711 {
23712 arg1 = (bool)(SWIG_As_bool(obj0));
23713 if (SWIG_arg_fail(1)) SWIG_fail;
23714 }
23715 {
23716 PyThreadState* __tstate = wxPyBeginAllowThreads();
23717 wxPyApp::SetMacSupportPCMenuShortcuts(arg1);
23718
23719 wxPyEndAllowThreads(__tstate);
23720 if (PyErr_Occurred()) SWIG_fail;
23721 }
23722 Py_INCREF(Py_None); resultobj = Py_None;
23723 return resultobj;
23724 fail:
23725 return NULL;
23726 }
23727
23728
23729 static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
23730 PyObject *resultobj;
23731 long arg1 ;
23732 PyObject * obj0 = 0 ;
23733 char *kwnames[] = {
23734 (char *) "val", NULL
23735 };
23736
23737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail;
23738 {
23739 arg1 = (long)(SWIG_As_long(obj0));
23740 if (SWIG_arg_fail(1)) SWIG_fail;
23741 }
23742 {
23743 PyThreadState* __tstate = wxPyBeginAllowThreads();
23744 wxPyApp::SetMacAboutMenuItemId(arg1);
23745
23746 wxPyEndAllowThreads(__tstate);
23747 if (PyErr_Occurred()) SWIG_fail;
23748 }
23749 Py_INCREF(Py_None); resultobj = Py_None;
23750 return resultobj;
23751 fail:
23752 return NULL;
23753 }
23754
23755
23756 static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
23757 PyObject *resultobj;
23758 long arg1 ;
23759 PyObject * obj0 = 0 ;
23760 char *kwnames[] = {
23761 (char *) "val", NULL
23762 };
23763
23764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail;
23765 {
23766 arg1 = (long)(SWIG_As_long(obj0));
23767 if (SWIG_arg_fail(1)) SWIG_fail;
23768 }
23769 {
23770 PyThreadState* __tstate = wxPyBeginAllowThreads();
23771 wxPyApp::SetMacPreferencesMenuItemId(arg1);
23772
23773 wxPyEndAllowThreads(__tstate);
23774 if (PyErr_Occurred()) SWIG_fail;
23775 }
23776 Py_INCREF(Py_None); resultobj = Py_None;
23777 return resultobj;
23778 fail:
23779 return NULL;
23780 }
23781
23782
23783 static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
23784 PyObject *resultobj;
23785 long arg1 ;
23786 PyObject * obj0 = 0 ;
23787 char *kwnames[] = {
23788 (char *) "val", NULL
23789 };
23790
23791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail;
23792 {
23793 arg1 = (long)(SWIG_As_long(obj0));
23794 if (SWIG_arg_fail(1)) SWIG_fail;
23795 }
23796 {
23797 PyThreadState* __tstate = wxPyBeginAllowThreads();
23798 wxPyApp::SetMacExitMenuItemId(arg1);
23799
23800 wxPyEndAllowThreads(__tstate);
23801 if (PyErr_Occurred()) SWIG_fail;
23802 }
23803 Py_INCREF(Py_None); resultobj = Py_None;
23804 return resultobj;
23805 fail:
23806 return NULL;
23807 }
23808
23809
23810 static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) {
23811 PyObject *resultobj;
23812 wxString *arg1 = 0 ;
23813 bool temp1 = false ;
23814 PyObject * obj0 = 0 ;
23815 char *kwnames[] = {
23816 (char *) "val", NULL
23817 };
23818
23819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail;
23820 {
23821 arg1 = wxString_in_helper(obj0);
23822 if (arg1 == NULL) SWIG_fail;
23823 temp1 = true;
23824 }
23825 {
23826 PyThreadState* __tstate = wxPyBeginAllowThreads();
23827 wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1);
23828
23829 wxPyEndAllowThreads(__tstate);
23830 if (PyErr_Occurred()) SWIG_fail;
23831 }
23832 Py_INCREF(Py_None); resultobj = Py_None;
23833 {
23834 if (temp1)
23835 delete arg1;
23836 }
23837 return resultobj;
23838 fail:
23839 {
23840 if (temp1)
23841 delete arg1;
23842 }
23843 return NULL;
23844 }
23845
23846
23847 static PyObject *_wrap_PyApp__BootstrapApp(PyObject *, PyObject *args, PyObject *kwargs) {
23848 PyObject *resultobj;
23849 wxPyApp *arg1 = (wxPyApp *) 0 ;
23850 PyObject * obj0 = 0 ;
23851 char *kwnames[] = {
23852 (char *) "self", NULL
23853 };
23854
23855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail;
23856 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyApp, SWIG_POINTER_EXCEPTION | 0);
23857 if (SWIG_arg_fail(1)) SWIG_fail;
23858 {
23859 PyThreadState* __tstate = wxPyBeginAllowThreads();
23860 (arg1)->_BootstrapApp();
23861
23862 wxPyEndAllowThreads(__tstate);
23863 if (PyErr_Occurred()) SWIG_fail;
23864 }
23865 Py_INCREF(Py_None); resultobj = Py_None;
23866 return resultobj;
23867 fail:
23868 return NULL;
23869 }
23870
23871
23872 static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *, PyObject *args, PyObject *kwargs) {
23873 PyObject *resultobj;
23874 int result;
23875 char *kwnames[] = {
23876 NULL
23877 };
23878
23879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail;
23880 {
23881 PyThreadState* __tstate = wxPyBeginAllowThreads();
23882 result = (int)wxPyApp::GetComCtl32Version();
23883
23884 wxPyEndAllowThreads(__tstate);
23885 if (PyErr_Occurred()) SWIG_fail;
23886 }
23887 {
23888 resultobj = SWIG_From_int((int)(result));
23889 }
23890 return resultobj;
23891 fail:
23892 return NULL;
23893 }
23894
23895
23896 static PyObject * PyApp_swigregister(PyObject *, PyObject *args) {
23897 PyObject *obj;
23898 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23899 SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj);
23900 Py_INCREF(obj);
23901 return Py_BuildValue((char *)"");
23902 }
23903 static PyObject *_wrap_Exit(PyObject *, PyObject *args, PyObject *kwargs) {
23904 PyObject *resultobj;
23905 char *kwnames[] = {
23906 NULL
23907 };
23908
23909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail;
23910 {
23911 PyThreadState* __tstate = wxPyBeginAllowThreads();
23912 wxExit();
23913
23914 wxPyEndAllowThreads(__tstate);
23915 if (PyErr_Occurred()) SWIG_fail;
23916 }
23917 Py_INCREF(Py_None); resultobj = Py_None;
23918 return resultobj;
23919 fail:
23920 return NULL;
23921 }
23922
23923
23924 static PyObject *_wrap_Yield(PyObject *, PyObject *args, PyObject *kwargs) {
23925 PyObject *resultobj;
23926 bool result;
23927 char *kwnames[] = {
23928 NULL
23929 };
23930
23931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail;
23932 {
23933 PyThreadState* __tstate = wxPyBeginAllowThreads();
23934 result = (bool)wxYield();
23935
23936 wxPyEndAllowThreads(__tstate);
23937 if (PyErr_Occurred()) SWIG_fail;
23938 }
23939 {
23940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23941 }
23942 return resultobj;
23943 fail:
23944 return NULL;
23945 }
23946
23947
23948 static PyObject *_wrap_YieldIfNeeded(PyObject *, PyObject *args, PyObject *kwargs) {
23949 PyObject *resultobj;
23950 bool result;
23951 char *kwnames[] = {
23952 NULL
23953 };
23954
23955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail;
23956 {
23957 PyThreadState* __tstate = wxPyBeginAllowThreads();
23958 result = (bool)wxYieldIfNeeded();
23959
23960 wxPyEndAllowThreads(__tstate);
23961 if (PyErr_Occurred()) SWIG_fail;
23962 }
23963 {
23964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23965 }
23966 return resultobj;
23967 fail:
23968 return NULL;
23969 }
23970
23971
23972 static PyObject *_wrap_SafeYield(PyObject *, PyObject *args, PyObject *kwargs) {
23973 PyObject *resultobj;
23974 wxWindow *arg1 = (wxWindow *) NULL ;
23975 bool arg2 = (bool) false ;
23976 bool result;
23977 PyObject * obj0 = 0 ;
23978 PyObject * obj1 = 0 ;
23979 char *kwnames[] = {
23980 (char *) "win",(char *) "onlyIfNeeded", NULL
23981 };
23982
23983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail;
23984 if (obj0) {
23985 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
23986 if (SWIG_arg_fail(1)) SWIG_fail;
23987 }
23988 if (obj1) {
23989 {
23990 arg2 = (bool)(SWIG_As_bool(obj1));
23991 if (SWIG_arg_fail(2)) SWIG_fail;
23992 }
23993 }
23994 {
23995 PyThreadState* __tstate = wxPyBeginAllowThreads();
23996 result = (bool)wxSafeYield(arg1,arg2);
23997
23998 wxPyEndAllowThreads(__tstate);
23999 if (PyErr_Occurred()) SWIG_fail;
24000 }
24001 {
24002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24003 }
24004 return resultobj;
24005 fail:
24006 return NULL;
24007 }
24008
24009
24010 static PyObject *_wrap_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) {
24011 PyObject *resultobj;
24012 char *kwnames[] = {
24013 NULL
24014 };
24015
24016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail;
24017 {
24018 PyThreadState* __tstate = wxPyBeginAllowThreads();
24019 wxWakeUpIdle();
24020
24021 wxPyEndAllowThreads(__tstate);
24022 if (PyErr_Occurred()) SWIG_fail;
24023 }
24024 Py_INCREF(Py_None); resultobj = Py_None;
24025 return resultobj;
24026 fail:
24027 return NULL;
24028 }
24029
24030
24031 static PyObject *_wrap_PostEvent(PyObject *, PyObject *args, PyObject *kwargs) {
24032 PyObject *resultobj;
24033 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
24034 wxEvent *arg2 = 0 ;
24035 PyObject * obj0 = 0 ;
24036 PyObject * obj1 = 0 ;
24037 char *kwnames[] = {
24038 (char *) "dest",(char *) "event", NULL
24039 };
24040
24041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail;
24042 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
24043 if (SWIG_arg_fail(1)) SWIG_fail;
24044 {
24045 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvent, SWIG_POINTER_EXCEPTION | 0);
24046 if (SWIG_arg_fail(2)) SWIG_fail;
24047 if (arg2 == NULL) {
24048 SWIG_null_ref("wxEvent");
24049 }
24050 if (SWIG_arg_fail(2)) SWIG_fail;
24051 }
24052 {
24053 PyThreadState* __tstate = wxPyBeginAllowThreads();
24054 wxPostEvent(arg1,*arg2);
24055
24056 wxPyEndAllowThreads(__tstate);
24057 if (PyErr_Occurred()) SWIG_fail;
24058 }
24059 Py_INCREF(Py_None); resultobj = Py_None;
24060 return resultobj;
24061 fail:
24062 return NULL;
24063 }
24064
24065
24066 static PyObject *_wrap_App_CleanUp(PyObject *, PyObject *args, PyObject *kwargs) {
24067 PyObject *resultobj;
24068 char *kwnames[] = {
24069 NULL
24070 };
24071
24072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail;
24073 {
24074 PyThreadState* __tstate = wxPyBeginAllowThreads();
24075 wxApp_CleanUp();
24076
24077 wxPyEndAllowThreads(__tstate);
24078 if (PyErr_Occurred()) SWIG_fail;
24079 }
24080 Py_INCREF(Py_None); resultobj = Py_None;
24081 return resultobj;
24082 fail:
24083 return NULL;
24084 }
24085
24086
24087 static PyObject *_wrap_GetApp(PyObject *, PyObject *args, PyObject *kwargs) {
24088 PyObject *resultobj;
24089 wxPyApp *result;
24090 char *kwnames[] = {
24091 NULL
24092 };
24093
24094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail;
24095 {
24096 PyThreadState* __tstate = wxPyBeginAllowThreads();
24097 result = (wxPyApp *)wxPyGetApp();
24098
24099 wxPyEndAllowThreads(__tstate);
24100 if (PyErr_Occurred()) SWIG_fail;
24101 }
24102 {
24103 resultobj = wxPyMake_wxObject(result, 0);
24104 }
24105 return resultobj;
24106 fail:
24107 return NULL;
24108 }
24109
24110
24111 static PyObject *_wrap_SetDefaultPyEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
24112 PyObject *resultobj;
24113 char *arg1 = (char *) 0 ;
24114 PyObject * obj0 = 0 ;
24115 char *kwnames[] = {
24116 (char *) "encoding", NULL
24117 };
24118
24119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetDefaultPyEncoding",kwnames,&obj0)) goto fail;
24120 if (!SWIG_AsCharPtr(obj0, (char**)&arg1)) {
24121 SWIG_arg_fail(1);SWIG_fail;
24122 }
24123 {
24124 PyThreadState* __tstate = wxPyBeginAllowThreads();
24125 wxSetDefaultPyEncoding((char const *)arg1);
24126
24127 wxPyEndAllowThreads(__tstate);
24128 if (PyErr_Occurred()) SWIG_fail;
24129 }
24130 Py_INCREF(Py_None); resultobj = Py_None;
24131 return resultobj;
24132 fail:
24133 return NULL;
24134 }
24135
24136
24137 static PyObject *_wrap_GetDefaultPyEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
24138 PyObject *resultobj;
24139 char *result;
24140 char *kwnames[] = {
24141 NULL
24142 };
24143
24144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDefaultPyEncoding",kwnames)) goto fail;
24145 {
24146 PyThreadState* __tstate = wxPyBeginAllowThreads();
24147 result = (char *)wxGetDefaultPyEncoding();
24148
24149 wxPyEndAllowThreads(__tstate);
24150 if (PyErr_Occurred()) SWIG_fail;
24151 }
24152 resultobj = SWIG_FromCharPtr(result);
24153 return resultobj;
24154 fail:
24155 return NULL;
24156 }
24157
24158
24159 static PyObject *_wrap_new_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) {
24160 PyObject *resultobj;
24161 wxEventLoop *result;
24162 char *kwnames[] = {
24163 NULL
24164 };
24165
24166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EventLoop",kwnames)) goto fail;
24167 {
24168 PyThreadState* __tstate = wxPyBeginAllowThreads();
24169 result = (wxEventLoop *)new wxEventLoop();
24170
24171 wxPyEndAllowThreads(__tstate);
24172 if (PyErr_Occurred()) SWIG_fail;
24173 }
24174 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 1);
24175 return resultobj;
24176 fail:
24177 return NULL;
24178 }
24179
24180
24181 static PyObject *_wrap_delete_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) {
24182 PyObject *resultobj;
24183 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
24184 PyObject * obj0 = 0 ;
24185 char *kwnames[] = {
24186 (char *) "self", NULL
24187 };
24188
24189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EventLoop",kwnames,&obj0)) goto fail;
24190 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0);
24191 if (SWIG_arg_fail(1)) SWIG_fail;
24192 {
24193 PyThreadState* __tstate = wxPyBeginAllowThreads();
24194 delete arg1;
24195
24196 wxPyEndAllowThreads(__tstate);
24197 if (PyErr_Occurred()) SWIG_fail;
24198 }
24199 Py_INCREF(Py_None); resultobj = Py_None;
24200 return resultobj;
24201 fail:
24202 return NULL;
24203 }
24204
24205
24206 static PyObject *_wrap_EventLoop_Run(PyObject *, PyObject *args, PyObject *kwargs) {
24207 PyObject *resultobj;
24208 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
24209 int result;
24210 PyObject * obj0 = 0 ;
24211 char *kwnames[] = {
24212 (char *) "self", NULL
24213 };
24214
24215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Run",kwnames,&obj0)) goto fail;
24216 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0);
24217 if (SWIG_arg_fail(1)) SWIG_fail;
24218 {
24219 PyThreadState* __tstate = wxPyBeginAllowThreads();
24220 result = (int)(arg1)->Run();
24221
24222 wxPyEndAllowThreads(__tstate);
24223 if (PyErr_Occurred()) SWIG_fail;
24224 }
24225 {
24226 resultobj = SWIG_From_int((int)(result));
24227 }
24228 return resultobj;
24229 fail:
24230 return NULL;
24231 }
24232
24233
24234 static PyObject *_wrap_EventLoop_Exit(PyObject *, PyObject *args, PyObject *kwargs) {
24235 PyObject *resultobj;
24236 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
24237 int arg2 = (int) 0 ;
24238 PyObject * obj0 = 0 ;
24239 PyObject * obj1 = 0 ;
24240 char *kwnames[] = {
24241 (char *) "self",(char *) "rc", NULL
24242 };
24243
24244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) goto fail;
24245 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0);
24246 if (SWIG_arg_fail(1)) SWIG_fail;
24247 if (obj1) {
24248 {
24249 arg2 = (int)(SWIG_As_int(obj1));
24250 if (SWIG_arg_fail(2)) SWIG_fail;
24251 }
24252 }
24253 {
24254 PyThreadState* __tstate = wxPyBeginAllowThreads();
24255 (arg1)->Exit(arg2);
24256
24257 wxPyEndAllowThreads(__tstate);
24258 if (PyErr_Occurred()) SWIG_fail;
24259 }
24260 Py_INCREF(Py_None); resultobj = Py_None;
24261 return resultobj;
24262 fail:
24263 return NULL;
24264 }
24265
24266
24267 static PyObject *_wrap_EventLoop_Pending(PyObject *, PyObject *args, PyObject *kwargs) {
24268 PyObject *resultobj;
24269 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
24270 bool result;
24271 PyObject * obj0 = 0 ;
24272 char *kwnames[] = {
24273 (char *) "self", NULL
24274 };
24275
24276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Pending",kwnames,&obj0)) goto fail;
24277 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0);
24278 if (SWIG_arg_fail(1)) SWIG_fail;
24279 {
24280 PyThreadState* __tstate = wxPyBeginAllowThreads();
24281 result = (bool)((wxEventLoop const *)arg1)->Pending();
24282
24283 wxPyEndAllowThreads(__tstate);
24284 if (PyErr_Occurred()) SWIG_fail;
24285 }
24286 {
24287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24288 }
24289 return resultobj;
24290 fail:
24291 return NULL;
24292 }
24293
24294
24295 static PyObject *_wrap_EventLoop_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) {
24296 PyObject *resultobj;
24297 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
24298 bool result;
24299 PyObject * obj0 = 0 ;
24300 char *kwnames[] = {
24301 (char *) "self", NULL
24302 };
24303
24304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Dispatch",kwnames,&obj0)) goto fail;
24305 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0);
24306 if (SWIG_arg_fail(1)) SWIG_fail;
24307 {
24308 PyThreadState* __tstate = wxPyBeginAllowThreads();
24309 result = (bool)(arg1)->Dispatch();
24310
24311 wxPyEndAllowThreads(__tstate);
24312 if (PyErr_Occurred()) SWIG_fail;
24313 }
24314 {
24315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24316 }
24317 return resultobj;
24318 fail:
24319 return NULL;
24320 }
24321
24322
24323 static PyObject *_wrap_EventLoop_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) {
24324 PyObject *resultobj;
24325 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
24326 bool result;
24327 PyObject * obj0 = 0 ;
24328 char *kwnames[] = {
24329 (char *) "self", NULL
24330 };
24331
24332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_IsRunning",kwnames,&obj0)) goto fail;
24333 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0);
24334 if (SWIG_arg_fail(1)) SWIG_fail;
24335 {
24336 PyThreadState* __tstate = wxPyBeginAllowThreads();
24337 result = (bool)((wxEventLoop const *)arg1)->IsRunning();
24338
24339 wxPyEndAllowThreads(__tstate);
24340 if (PyErr_Occurred()) SWIG_fail;
24341 }
24342 {
24343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24344 }
24345 return resultobj;
24346 fail:
24347 return NULL;
24348 }
24349
24350
24351 static PyObject *_wrap_EventLoop_GetActive(PyObject *, PyObject *args, PyObject *kwargs) {
24352 PyObject *resultobj;
24353 wxEventLoop *result;
24354 char *kwnames[] = {
24355 NULL
24356 };
24357
24358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EventLoop_GetActive",kwnames)) goto fail;
24359 {
24360 PyThreadState* __tstate = wxPyBeginAllowThreads();
24361 result = (wxEventLoop *)wxEventLoop::GetActive();
24362
24363 wxPyEndAllowThreads(__tstate);
24364 if (PyErr_Occurred()) SWIG_fail;
24365 }
24366 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 0);
24367 return resultobj;
24368 fail:
24369 return NULL;
24370 }
24371
24372
24373 static PyObject *_wrap_EventLoop_SetActive(PyObject *, PyObject *args, PyObject *kwargs) {
24374 PyObject *resultobj;
24375 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
24376 PyObject * obj0 = 0 ;
24377 char *kwnames[] = {
24378 (char *) "loop", NULL
24379 };
24380
24381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) goto fail;
24382 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEventLoop, SWIG_POINTER_EXCEPTION | 0);
24383 if (SWIG_arg_fail(1)) SWIG_fail;
24384 {
24385 PyThreadState* __tstate = wxPyBeginAllowThreads();
24386 wxEventLoop::SetActive(arg1);
24387
24388 wxPyEndAllowThreads(__tstate);
24389 if (PyErr_Occurred()) SWIG_fail;
24390 }
24391 Py_INCREF(Py_None); resultobj = Py_None;
24392 return resultobj;
24393 fail:
24394 return NULL;
24395 }
24396
24397
24398 static PyObject * EventLoop_swigregister(PyObject *, PyObject *args) {
24399 PyObject *obj;
24400 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24401 SWIG_TypeClientData(SWIGTYPE_p_wxEventLoop, obj);
24402 Py_INCREF(obj);
24403 return Py_BuildValue((char *)"");
24404 }
24405 static PyObject *_wrap_new_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) {
24406 PyObject *resultobj;
24407 int arg1 = (int) 0 ;
24408 int arg2 = (int) 0 ;
24409 int arg3 = (int) 0 ;
24410 wxAcceleratorEntry *result;
24411 PyObject * obj0 = 0 ;
24412 PyObject * obj1 = 0 ;
24413 PyObject * obj2 = 0 ;
24414 char *kwnames[] = {
24415 (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL
24416 };
24417
24418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
24419 if (obj0) {
24420 {
24421 arg1 = (int)(SWIG_As_int(obj0));
24422 if (SWIG_arg_fail(1)) SWIG_fail;
24423 }
24424 }
24425 if (obj1) {
24426 {
24427 arg2 = (int)(SWIG_As_int(obj1));
24428 if (SWIG_arg_fail(2)) SWIG_fail;
24429 }
24430 }
24431 if (obj2) {
24432 {
24433 arg3 = (int)(SWIG_As_int(obj2));
24434 if (SWIG_arg_fail(3)) SWIG_fail;
24435 }
24436 }
24437 {
24438 PyThreadState* __tstate = wxPyBeginAllowThreads();
24439 result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3);
24440
24441 wxPyEndAllowThreads(__tstate);
24442 if (PyErr_Occurred()) SWIG_fail;
24443 }
24444 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1);
24445 return resultobj;
24446 fail:
24447 return NULL;
24448 }
24449
24450
24451 static PyObject *_wrap_delete_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) {
24452 PyObject *resultobj;
24453 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
24454 PyObject * obj0 = 0 ;
24455 char *kwnames[] = {
24456 (char *) "self", NULL
24457 };
24458
24459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail;
24460 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0);
24461 if (SWIG_arg_fail(1)) SWIG_fail;
24462 {
24463 PyThreadState* __tstate = wxPyBeginAllowThreads();
24464 delete arg1;
24465
24466 wxPyEndAllowThreads(__tstate);
24467 if (PyErr_Occurred()) SWIG_fail;
24468 }
24469 Py_INCREF(Py_None); resultobj = Py_None;
24470 return resultobj;
24471 fail:
24472 return NULL;
24473 }
24474
24475
24476 static PyObject *_wrap_AcceleratorEntry_Set(PyObject *, PyObject *args, PyObject *kwargs) {
24477 PyObject *resultobj;
24478 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
24479 int arg2 ;
24480 int arg3 ;
24481 int arg4 ;
24482 PyObject * obj0 = 0 ;
24483 PyObject * obj1 = 0 ;
24484 PyObject * obj2 = 0 ;
24485 PyObject * obj3 = 0 ;
24486 char *kwnames[] = {
24487 (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL
24488 };
24489
24490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24491 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0);
24492 if (SWIG_arg_fail(1)) SWIG_fail;
24493 {
24494 arg2 = (int)(SWIG_As_int(obj1));
24495 if (SWIG_arg_fail(2)) SWIG_fail;
24496 }
24497 {
24498 arg3 = (int)(SWIG_As_int(obj2));
24499 if (SWIG_arg_fail(3)) SWIG_fail;
24500 }
24501 {
24502 arg4 = (int)(SWIG_As_int(obj3));
24503 if (SWIG_arg_fail(4)) SWIG_fail;
24504 }
24505 {
24506 PyThreadState* __tstate = wxPyBeginAllowThreads();
24507 (arg1)->Set(arg2,arg3,arg4);
24508
24509 wxPyEndAllowThreads(__tstate);
24510 if (PyErr_Occurred()) SWIG_fail;
24511 }
24512 Py_INCREF(Py_None); resultobj = Py_None;
24513 return resultobj;
24514 fail:
24515 return NULL;
24516 }
24517
24518
24519 static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
24520 PyObject *resultobj;
24521 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
24522 int result;
24523 PyObject * obj0 = 0 ;
24524 char *kwnames[] = {
24525 (char *) "self", NULL
24526 };
24527
24528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail;
24529 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0);
24530 if (SWIG_arg_fail(1)) SWIG_fail;
24531 {
24532 PyThreadState* __tstate = wxPyBeginAllowThreads();
24533 result = (int)(arg1)->GetFlags();
24534
24535 wxPyEndAllowThreads(__tstate);
24536 if (PyErr_Occurred()) SWIG_fail;
24537 }
24538 {
24539 resultobj = SWIG_From_int((int)(result));
24540 }
24541 return resultobj;
24542 fail:
24543 return NULL;
24544 }
24545
24546
24547 static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
24548 PyObject *resultobj;
24549 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
24550 int result;
24551 PyObject * obj0 = 0 ;
24552 char *kwnames[] = {
24553 (char *) "self", NULL
24554 };
24555
24556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail;
24557 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0);
24558 if (SWIG_arg_fail(1)) SWIG_fail;
24559 {
24560 PyThreadState* __tstate = wxPyBeginAllowThreads();
24561 result = (int)(arg1)->GetKeyCode();
24562
24563 wxPyEndAllowThreads(__tstate);
24564 if (PyErr_Occurred()) SWIG_fail;
24565 }
24566 {
24567 resultobj = SWIG_From_int((int)(result));
24568 }
24569 return resultobj;
24570 fail:
24571 return NULL;
24572 }
24573
24574
24575 static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *, PyObject *args, PyObject *kwargs) {
24576 PyObject *resultobj;
24577 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
24578 int result;
24579 PyObject * obj0 = 0 ;
24580 char *kwnames[] = {
24581 (char *) "self", NULL
24582 };
24583
24584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail;
24585 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0);
24586 if (SWIG_arg_fail(1)) SWIG_fail;
24587 {
24588 PyThreadState* __tstate = wxPyBeginAllowThreads();
24589 result = (int)(arg1)->GetCommand();
24590
24591 wxPyEndAllowThreads(__tstate);
24592 if (PyErr_Occurred()) SWIG_fail;
24593 }
24594 {
24595 resultobj = SWIG_From_int((int)(result));
24596 }
24597 return resultobj;
24598 fail:
24599 return NULL;
24600 }
24601
24602
24603 static PyObject * AcceleratorEntry_swigregister(PyObject *, PyObject *args) {
24604 PyObject *obj;
24605 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24606 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj);
24607 Py_INCREF(obj);
24608 return Py_BuildValue((char *)"");
24609 }
24610 static PyObject *_wrap_new_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) {
24611 PyObject *resultobj;
24612 int arg1 ;
24613 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
24614 wxAcceleratorTable *result;
24615 PyObject * obj0 = 0 ;
24616 char *kwnames[] = {
24617 (char *) "n", NULL
24618 };
24619
24620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail;
24621 {
24622 arg2 = wxAcceleratorEntry_LIST_helper(obj0);
24623 if (arg2) arg1 = PyList_Size(obj0);
24624 else arg1 = 0;
24625 }
24626 {
24627 PyThreadState* __tstate = wxPyBeginAllowThreads();
24628 result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2);
24629
24630 wxPyEndAllowThreads(__tstate);
24631 if (PyErr_Occurred()) SWIG_fail;
24632 }
24633 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1);
24634 {
24635 delete [] arg2;
24636 }
24637 return resultobj;
24638 fail:
24639 {
24640 delete [] arg2;
24641 }
24642 return NULL;
24643 }
24644
24645
24646 static PyObject *_wrap_delete_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) {
24647 PyObject *resultobj;
24648 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
24649 PyObject * obj0 = 0 ;
24650 char *kwnames[] = {
24651 (char *) "self", NULL
24652 };
24653
24654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail;
24655 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_EXCEPTION | 0);
24656 if (SWIG_arg_fail(1)) SWIG_fail;
24657 {
24658 PyThreadState* __tstate = wxPyBeginAllowThreads();
24659 delete arg1;
24660
24661 wxPyEndAllowThreads(__tstate);
24662 if (PyErr_Occurred()) SWIG_fail;
24663 }
24664 Py_INCREF(Py_None); resultobj = Py_None;
24665 return resultobj;
24666 fail:
24667 return NULL;
24668 }
24669
24670
24671 static PyObject *_wrap_AcceleratorTable_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
24672 PyObject *resultobj;
24673 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
24674 bool result;
24675 PyObject * obj0 = 0 ;
24676 char *kwnames[] = {
24677 (char *) "self", NULL
24678 };
24679
24680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail;
24681 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_EXCEPTION | 0);
24682 if (SWIG_arg_fail(1)) SWIG_fail;
24683 {
24684 PyThreadState* __tstate = wxPyBeginAllowThreads();
24685 result = (bool)((wxAcceleratorTable const *)arg1)->Ok();
24686
24687 wxPyEndAllowThreads(__tstate);
24688 if (PyErr_Occurred()) SWIG_fail;
24689 }
24690 {
24691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24692 }
24693 return resultobj;
24694 fail:
24695 return NULL;
24696 }
24697
24698
24699 static PyObject * AcceleratorTable_swigregister(PyObject *, PyObject *args) {
24700 PyObject *obj;
24701 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24702 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj);
24703 Py_INCREF(obj);
24704 return Py_BuildValue((char *)"");
24705 }
24706 static int _wrap_NullAcceleratorTable_set(PyObject *) {
24707 PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only.");
24708 return 1;
24709 }
24710
24711
24712 static PyObject *_wrap_NullAcceleratorTable_get(void) {
24713 PyObject *pyobj;
24714
24715 pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0);
24716 return pyobj;
24717 }
24718
24719
24720 static PyObject *_wrap_GetAccelFromString(PyObject *, PyObject *args, PyObject *kwargs) {
24721 PyObject *resultobj;
24722 wxString *arg1 = 0 ;
24723 wxAcceleratorEntry *result;
24724 bool temp1 = false ;
24725 PyObject * obj0 = 0 ;
24726 char *kwnames[] = {
24727 (char *) "label", NULL
24728 };
24729
24730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail;
24731 {
24732 arg1 = wxString_in_helper(obj0);
24733 if (arg1 == NULL) SWIG_fail;
24734 temp1 = true;
24735 }
24736 {
24737 PyThreadState* __tstate = wxPyBeginAllowThreads();
24738 result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1);
24739
24740 wxPyEndAllowThreads(__tstate);
24741 if (PyErr_Occurred()) SWIG_fail;
24742 }
24743 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0);
24744 {
24745 if (temp1)
24746 delete arg1;
24747 }
24748 return resultobj;
24749 fail:
24750 {
24751 if (temp1)
24752 delete arg1;
24753 }
24754 return NULL;
24755 }
24756
24757
24758 static int _wrap_PanelNameStr_set(PyObject *) {
24759 PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only.");
24760 return 1;
24761 }
24762
24763
24764 static PyObject *_wrap_PanelNameStr_get(void) {
24765 PyObject *pyobj;
24766
24767 {
24768 #if wxUSE_UNICODE
24769 pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
24770 #else
24771 pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
24772 #endif
24773 }
24774 return pyobj;
24775 }
24776
24777
24778 static PyObject *_wrap_new_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
24779 PyObject *resultobj;
24780 wxVisualAttributes *result;
24781 char *kwnames[] = {
24782 NULL
24783 };
24784
24785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail;
24786 {
24787 PyThreadState* __tstate = wxPyBeginAllowThreads();
24788 result = (wxVisualAttributes *)new_wxVisualAttributes();
24789
24790 wxPyEndAllowThreads(__tstate);
24791 if (PyErr_Occurred()) SWIG_fail;
24792 }
24793 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1);
24794 return resultobj;
24795 fail:
24796 return NULL;
24797 }
24798
24799
24800 static PyObject *_wrap_delete_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
24801 PyObject *resultobj;
24802 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
24803 PyObject * obj0 = 0 ;
24804 char *kwnames[] = {
24805 (char *) "self", NULL
24806 };
24807
24808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail;
24809 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0);
24810 if (SWIG_arg_fail(1)) SWIG_fail;
24811 {
24812 PyThreadState* __tstate = wxPyBeginAllowThreads();
24813 delete_wxVisualAttributes(arg1);
24814
24815 wxPyEndAllowThreads(__tstate);
24816 if (PyErr_Occurred()) SWIG_fail;
24817 }
24818 Py_INCREF(Py_None); resultobj = Py_None;
24819 return resultobj;
24820 fail:
24821 return NULL;
24822 }
24823
24824
24825 static PyObject *_wrap_VisualAttributes_font_set(PyObject *, PyObject *args, PyObject *kwargs) {
24826 PyObject *resultobj;
24827 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
24828 wxFont *arg2 = (wxFont *) 0 ;
24829 PyObject * obj0 = 0 ;
24830 PyObject * obj1 = 0 ;
24831 char *kwnames[] = {
24832 (char *) "self",(char *) "font", NULL
24833 };
24834
24835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail;
24836 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0);
24837 if (SWIG_arg_fail(1)) SWIG_fail;
24838 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
24839 if (SWIG_arg_fail(2)) SWIG_fail;
24840 if (arg1) (arg1)->font = *arg2;
24841
24842 Py_INCREF(Py_None); resultobj = Py_None;
24843 return resultobj;
24844 fail:
24845 return NULL;
24846 }
24847
24848
24849 static PyObject *_wrap_VisualAttributes_font_get(PyObject *, PyObject *args, PyObject *kwargs) {
24850 PyObject *resultobj;
24851 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
24852 wxFont *result;
24853 PyObject * obj0 = 0 ;
24854 char *kwnames[] = {
24855 (char *) "self", NULL
24856 };
24857
24858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail;
24859 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0);
24860 if (SWIG_arg_fail(1)) SWIG_fail;
24861 result = (wxFont *)& ((arg1)->font);
24862
24863 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
24864 return resultobj;
24865 fail:
24866 return NULL;
24867 }
24868
24869
24870 static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *, PyObject *args, PyObject *kwargs) {
24871 PyObject *resultobj;
24872 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
24873 wxColour *arg2 = (wxColour *) 0 ;
24874 PyObject * obj0 = 0 ;
24875 PyObject * obj1 = 0 ;
24876 char *kwnames[] = {
24877 (char *) "self",(char *) "colFg", NULL
24878 };
24879
24880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail;
24881 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0);
24882 if (SWIG_arg_fail(1)) SWIG_fail;
24883 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
24884 if (SWIG_arg_fail(2)) SWIG_fail;
24885 if (arg1) (arg1)->colFg = *arg2;
24886
24887 Py_INCREF(Py_None); resultobj = Py_None;
24888 return resultobj;
24889 fail:
24890 return NULL;
24891 }
24892
24893
24894 static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *, PyObject *args, PyObject *kwargs) {
24895 PyObject *resultobj;
24896 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
24897 wxColour *result;
24898 PyObject * obj0 = 0 ;
24899 char *kwnames[] = {
24900 (char *) "self", NULL
24901 };
24902
24903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail;
24904 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0);
24905 if (SWIG_arg_fail(1)) SWIG_fail;
24906 result = (wxColour *)& ((arg1)->colFg);
24907
24908 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
24909 return resultobj;
24910 fail:
24911 return NULL;
24912 }
24913
24914
24915 static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *, PyObject *args, PyObject *kwargs) {
24916 PyObject *resultobj;
24917 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
24918 wxColour *arg2 = (wxColour *) 0 ;
24919 PyObject * obj0 = 0 ;
24920 PyObject * obj1 = 0 ;
24921 char *kwnames[] = {
24922 (char *) "self",(char *) "colBg", NULL
24923 };
24924
24925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail;
24926 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0);
24927 if (SWIG_arg_fail(1)) SWIG_fail;
24928 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
24929 if (SWIG_arg_fail(2)) SWIG_fail;
24930 if (arg1) (arg1)->colBg = *arg2;
24931
24932 Py_INCREF(Py_None); resultobj = Py_None;
24933 return resultobj;
24934 fail:
24935 return NULL;
24936 }
24937
24938
24939 static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *, PyObject *args, PyObject *kwargs) {
24940 PyObject *resultobj;
24941 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
24942 wxColour *result;
24943 PyObject * obj0 = 0 ;
24944 char *kwnames[] = {
24945 (char *) "self", NULL
24946 };
24947
24948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail;
24949 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_EXCEPTION | 0);
24950 if (SWIG_arg_fail(1)) SWIG_fail;
24951 result = (wxColour *)& ((arg1)->colBg);
24952
24953 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
24954 return resultobj;
24955 fail:
24956 return NULL;
24957 }
24958
24959
24960 static PyObject * VisualAttributes_swigregister(PyObject *, PyObject *args) {
24961 PyObject *obj;
24962 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24963 SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj);
24964 Py_INCREF(obj);
24965 return Py_BuildValue((char *)"");
24966 }
24967 static PyObject *_wrap_new_Window(PyObject *, PyObject *args, PyObject *kwargs) {
24968 PyObject *resultobj;
24969 wxWindow *arg1 = (wxWindow *) 0 ;
24970 int arg2 = (int) (int)-1 ;
24971 wxPoint const &arg3_defvalue = wxDefaultPosition ;
24972 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
24973 wxSize const &arg4_defvalue = wxDefaultSize ;
24974 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
24975 long arg5 = (long) 0 ;
24976 wxString const &arg6_defvalue = wxPyPanelNameStr ;
24977 wxString *arg6 = (wxString *) &arg6_defvalue ;
24978 wxWindow *result;
24979 wxPoint temp3 ;
24980 wxSize temp4 ;
24981 bool temp6 = false ;
24982 PyObject * obj0 = 0 ;
24983 PyObject * obj1 = 0 ;
24984 PyObject * obj2 = 0 ;
24985 PyObject * obj3 = 0 ;
24986 PyObject * obj4 = 0 ;
24987 PyObject * obj5 = 0 ;
24988 char *kwnames[] = {
24989 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
24990 };
24991
24992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
24993 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
24994 if (SWIG_arg_fail(1)) SWIG_fail;
24995 if (obj1) {
24996 {
24997 arg2 = (int const)(SWIG_As_int(obj1));
24998 if (SWIG_arg_fail(2)) SWIG_fail;
24999 }
25000 }
25001 if (obj2) {
25002 {
25003 arg3 = &temp3;
25004 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25005 }
25006 }
25007 if (obj3) {
25008 {
25009 arg4 = &temp4;
25010 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25011 }
25012 }
25013 if (obj4) {
25014 {
25015 arg5 = (long)(SWIG_As_long(obj4));
25016 if (SWIG_arg_fail(5)) SWIG_fail;
25017 }
25018 }
25019 if (obj5) {
25020 {
25021 arg6 = wxString_in_helper(obj5);
25022 if (arg6 == NULL) SWIG_fail;
25023 temp6 = true;
25024 }
25025 }
25026 {
25027 if (!wxPyCheckForApp()) SWIG_fail;
25028 PyThreadState* __tstate = wxPyBeginAllowThreads();
25029 result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25030
25031 wxPyEndAllowThreads(__tstate);
25032 if (PyErr_Occurred()) SWIG_fail;
25033 }
25034 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1);
25035 {
25036 if (temp6)
25037 delete arg6;
25038 }
25039 return resultobj;
25040 fail:
25041 {
25042 if (temp6)
25043 delete arg6;
25044 }
25045 return NULL;
25046 }
25047
25048
25049 static PyObject *_wrap_new_PreWindow(PyObject *, PyObject *args, PyObject *kwargs) {
25050 PyObject *resultobj;
25051 wxWindow *result;
25052 char *kwnames[] = {
25053 NULL
25054 };
25055
25056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail;
25057 {
25058 if (!wxPyCheckForApp()) SWIG_fail;
25059 PyThreadState* __tstate = wxPyBeginAllowThreads();
25060 result = (wxWindow *)new wxWindow();
25061
25062 wxPyEndAllowThreads(__tstate);
25063 if (PyErr_Occurred()) SWIG_fail;
25064 }
25065 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1);
25066 return resultobj;
25067 fail:
25068 return NULL;
25069 }
25070
25071
25072 static PyObject *_wrap_Window_Create(PyObject *, PyObject *args, PyObject *kwargs) {
25073 PyObject *resultobj;
25074 wxWindow *arg1 = (wxWindow *) 0 ;
25075 wxWindow *arg2 = (wxWindow *) 0 ;
25076 int arg3 = (int) (int)-1 ;
25077 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25078 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25079 wxSize const &arg5_defvalue = wxDefaultSize ;
25080 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25081 long arg6 = (long) 0 ;
25082 wxString const &arg7_defvalue = wxPyPanelNameStr ;
25083 wxString *arg7 = (wxString *) &arg7_defvalue ;
25084 bool result;
25085 wxPoint temp4 ;
25086 wxSize temp5 ;
25087 bool temp7 = false ;
25088 PyObject * obj0 = 0 ;
25089 PyObject * obj1 = 0 ;
25090 PyObject * obj2 = 0 ;
25091 PyObject * obj3 = 0 ;
25092 PyObject * obj4 = 0 ;
25093 PyObject * obj5 = 0 ;
25094 PyObject * obj6 = 0 ;
25095 char *kwnames[] = {
25096 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25097 };
25098
25099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25100 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25101 if (SWIG_arg_fail(1)) SWIG_fail;
25102 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25103 if (SWIG_arg_fail(2)) SWIG_fail;
25104 if (obj2) {
25105 {
25106 arg3 = (int const)(SWIG_As_int(obj2));
25107 if (SWIG_arg_fail(3)) SWIG_fail;
25108 }
25109 }
25110 if (obj3) {
25111 {
25112 arg4 = &temp4;
25113 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25114 }
25115 }
25116 if (obj4) {
25117 {
25118 arg5 = &temp5;
25119 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25120 }
25121 }
25122 if (obj5) {
25123 {
25124 arg6 = (long)(SWIG_As_long(obj5));
25125 if (SWIG_arg_fail(6)) SWIG_fail;
25126 }
25127 }
25128 if (obj6) {
25129 {
25130 arg7 = wxString_in_helper(obj6);
25131 if (arg7 == NULL) SWIG_fail;
25132 temp7 = true;
25133 }
25134 }
25135 {
25136 PyThreadState* __tstate = wxPyBeginAllowThreads();
25137 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25138
25139 wxPyEndAllowThreads(__tstate);
25140 if (PyErr_Occurred()) SWIG_fail;
25141 }
25142 {
25143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25144 }
25145 {
25146 if (temp7)
25147 delete arg7;
25148 }
25149 return resultobj;
25150 fail:
25151 {
25152 if (temp7)
25153 delete arg7;
25154 }
25155 return NULL;
25156 }
25157
25158
25159 static PyObject *_wrap_Window_Close(PyObject *, PyObject *args, PyObject *kwargs) {
25160 PyObject *resultobj;
25161 wxWindow *arg1 = (wxWindow *) 0 ;
25162 bool arg2 = (bool) false ;
25163 bool result;
25164 PyObject * obj0 = 0 ;
25165 PyObject * obj1 = 0 ;
25166 char *kwnames[] = {
25167 (char *) "self",(char *) "force", NULL
25168 };
25169
25170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail;
25171 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25172 if (SWIG_arg_fail(1)) SWIG_fail;
25173 if (obj1) {
25174 {
25175 arg2 = (bool)(SWIG_As_bool(obj1));
25176 if (SWIG_arg_fail(2)) SWIG_fail;
25177 }
25178 }
25179 {
25180 PyThreadState* __tstate = wxPyBeginAllowThreads();
25181 result = (bool)(arg1)->Close(arg2);
25182
25183 wxPyEndAllowThreads(__tstate);
25184 if (PyErr_Occurred()) SWIG_fail;
25185 }
25186 {
25187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25188 }
25189 return resultobj;
25190 fail:
25191 return NULL;
25192 }
25193
25194
25195 static PyObject *_wrap_Window_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
25196 PyObject *resultobj;
25197 wxWindow *arg1 = (wxWindow *) 0 ;
25198 bool result;
25199 PyObject * obj0 = 0 ;
25200 char *kwnames[] = {
25201 (char *) "self", NULL
25202 };
25203
25204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail;
25205 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25206 if (SWIG_arg_fail(1)) SWIG_fail;
25207 {
25208 PyThreadState* __tstate = wxPyBeginAllowThreads();
25209 result = (bool)(arg1)->Destroy();
25210
25211 wxPyEndAllowThreads(__tstate);
25212 if (PyErr_Occurred()) SWIG_fail;
25213 }
25214 {
25215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25216 }
25217 return resultobj;
25218 fail:
25219 return NULL;
25220 }
25221
25222
25223 static PyObject *_wrap_Window_DestroyChildren(PyObject *, PyObject *args, PyObject *kwargs) {
25224 PyObject *resultobj;
25225 wxWindow *arg1 = (wxWindow *) 0 ;
25226 bool result;
25227 PyObject * obj0 = 0 ;
25228 char *kwnames[] = {
25229 (char *) "self", NULL
25230 };
25231
25232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail;
25233 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25234 if (SWIG_arg_fail(1)) SWIG_fail;
25235 {
25236 PyThreadState* __tstate = wxPyBeginAllowThreads();
25237 result = (bool)(arg1)->DestroyChildren();
25238
25239 wxPyEndAllowThreads(__tstate);
25240 if (PyErr_Occurred()) SWIG_fail;
25241 }
25242 {
25243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25244 }
25245 return resultobj;
25246 fail:
25247 return NULL;
25248 }
25249
25250
25251 static PyObject *_wrap_Window_IsBeingDeleted(PyObject *, PyObject *args, PyObject *kwargs) {
25252 PyObject *resultobj;
25253 wxWindow *arg1 = (wxWindow *) 0 ;
25254 bool result;
25255 PyObject * obj0 = 0 ;
25256 char *kwnames[] = {
25257 (char *) "self", NULL
25258 };
25259
25260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail;
25261 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25262 if (SWIG_arg_fail(1)) SWIG_fail;
25263 {
25264 PyThreadState* __tstate = wxPyBeginAllowThreads();
25265 result = (bool)((wxWindow const *)arg1)->IsBeingDeleted();
25266
25267 wxPyEndAllowThreads(__tstate);
25268 if (PyErr_Occurred()) SWIG_fail;
25269 }
25270 {
25271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25272 }
25273 return resultobj;
25274 fail:
25275 return NULL;
25276 }
25277
25278
25279 static PyObject *_wrap_Window_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) {
25280 PyObject *resultobj;
25281 wxWindow *arg1 = (wxWindow *) 0 ;
25282 wxString *arg2 = 0 ;
25283 bool temp2 = false ;
25284 PyObject * obj0 = 0 ;
25285 PyObject * obj1 = 0 ;
25286 char *kwnames[] = {
25287 (char *) "self",(char *) "title", NULL
25288 };
25289
25290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail;
25291 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25292 if (SWIG_arg_fail(1)) SWIG_fail;
25293 {
25294 arg2 = wxString_in_helper(obj1);
25295 if (arg2 == NULL) SWIG_fail;
25296 temp2 = true;
25297 }
25298 {
25299 PyThreadState* __tstate = wxPyBeginAllowThreads();
25300 (arg1)->SetTitle((wxString const &)*arg2);
25301
25302 wxPyEndAllowThreads(__tstate);
25303 if (PyErr_Occurred()) SWIG_fail;
25304 }
25305 Py_INCREF(Py_None); resultobj = Py_None;
25306 {
25307 if (temp2)
25308 delete arg2;
25309 }
25310 return resultobj;
25311 fail:
25312 {
25313 if (temp2)
25314 delete arg2;
25315 }
25316 return NULL;
25317 }
25318
25319
25320 static PyObject *_wrap_Window_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) {
25321 PyObject *resultobj;
25322 wxWindow *arg1 = (wxWindow *) 0 ;
25323 wxString result;
25324 PyObject * obj0 = 0 ;
25325 char *kwnames[] = {
25326 (char *) "self", NULL
25327 };
25328
25329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail;
25330 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25331 if (SWIG_arg_fail(1)) SWIG_fail;
25332 {
25333 PyThreadState* __tstate = wxPyBeginAllowThreads();
25334 result = ((wxWindow const *)arg1)->GetTitle();
25335
25336 wxPyEndAllowThreads(__tstate);
25337 if (PyErr_Occurred()) SWIG_fail;
25338 }
25339 {
25340 #if wxUSE_UNICODE
25341 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25342 #else
25343 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25344 #endif
25345 }
25346 return resultobj;
25347 fail:
25348 return NULL;
25349 }
25350
25351
25352 static PyObject *_wrap_Window_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
25353 PyObject *resultobj;
25354 wxWindow *arg1 = (wxWindow *) 0 ;
25355 wxString *arg2 = 0 ;
25356 bool temp2 = false ;
25357 PyObject * obj0 = 0 ;
25358 PyObject * obj1 = 0 ;
25359 char *kwnames[] = {
25360 (char *) "self",(char *) "label", NULL
25361 };
25362
25363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail;
25364 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25365 if (SWIG_arg_fail(1)) SWIG_fail;
25366 {
25367 arg2 = wxString_in_helper(obj1);
25368 if (arg2 == NULL) SWIG_fail;
25369 temp2 = true;
25370 }
25371 {
25372 PyThreadState* __tstate = wxPyBeginAllowThreads();
25373 (arg1)->SetLabel((wxString const &)*arg2);
25374
25375 wxPyEndAllowThreads(__tstate);
25376 if (PyErr_Occurred()) SWIG_fail;
25377 }
25378 Py_INCREF(Py_None); resultobj = Py_None;
25379 {
25380 if (temp2)
25381 delete arg2;
25382 }
25383 return resultobj;
25384 fail:
25385 {
25386 if (temp2)
25387 delete arg2;
25388 }
25389 return NULL;
25390 }
25391
25392
25393 static PyObject *_wrap_Window_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
25394 PyObject *resultobj;
25395 wxWindow *arg1 = (wxWindow *) 0 ;
25396 wxString result;
25397 PyObject * obj0 = 0 ;
25398 char *kwnames[] = {
25399 (char *) "self", NULL
25400 };
25401
25402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail;
25403 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25404 if (SWIG_arg_fail(1)) SWIG_fail;
25405 {
25406 PyThreadState* __tstate = wxPyBeginAllowThreads();
25407 result = ((wxWindow const *)arg1)->GetLabel();
25408
25409 wxPyEndAllowThreads(__tstate);
25410 if (PyErr_Occurred()) SWIG_fail;
25411 }
25412 {
25413 #if wxUSE_UNICODE
25414 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25415 #else
25416 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25417 #endif
25418 }
25419 return resultobj;
25420 fail:
25421 return NULL;
25422 }
25423
25424
25425 static PyObject *_wrap_Window_SetName(PyObject *, PyObject *args, PyObject *kwargs) {
25426 PyObject *resultobj;
25427 wxWindow *arg1 = (wxWindow *) 0 ;
25428 wxString *arg2 = 0 ;
25429 bool temp2 = false ;
25430 PyObject * obj0 = 0 ;
25431 PyObject * obj1 = 0 ;
25432 char *kwnames[] = {
25433 (char *) "self",(char *) "name", NULL
25434 };
25435
25436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail;
25437 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25438 if (SWIG_arg_fail(1)) SWIG_fail;
25439 {
25440 arg2 = wxString_in_helper(obj1);
25441 if (arg2 == NULL) SWIG_fail;
25442 temp2 = true;
25443 }
25444 {
25445 PyThreadState* __tstate = wxPyBeginAllowThreads();
25446 (arg1)->SetName((wxString const &)*arg2);
25447
25448 wxPyEndAllowThreads(__tstate);
25449 if (PyErr_Occurred()) SWIG_fail;
25450 }
25451 Py_INCREF(Py_None); resultobj = Py_None;
25452 {
25453 if (temp2)
25454 delete arg2;
25455 }
25456 return resultobj;
25457 fail:
25458 {
25459 if (temp2)
25460 delete arg2;
25461 }
25462 return NULL;
25463 }
25464
25465
25466 static PyObject *_wrap_Window_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
25467 PyObject *resultobj;
25468 wxWindow *arg1 = (wxWindow *) 0 ;
25469 wxString result;
25470 PyObject * obj0 = 0 ;
25471 char *kwnames[] = {
25472 (char *) "self", NULL
25473 };
25474
25475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail;
25476 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25477 if (SWIG_arg_fail(1)) SWIG_fail;
25478 {
25479 PyThreadState* __tstate = wxPyBeginAllowThreads();
25480 result = ((wxWindow const *)arg1)->GetName();
25481
25482 wxPyEndAllowThreads(__tstate);
25483 if (PyErr_Occurred()) SWIG_fail;
25484 }
25485 {
25486 #if wxUSE_UNICODE
25487 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25488 #else
25489 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25490 #endif
25491 }
25492 return resultobj;
25493 fail:
25494 return NULL;
25495 }
25496
25497
25498 static PyObject *_wrap_Window_SetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) {
25499 PyObject *resultobj;
25500 wxWindow *arg1 = (wxWindow *) 0 ;
25501 wxWindowVariant arg2 ;
25502 PyObject * obj0 = 0 ;
25503 PyObject * obj1 = 0 ;
25504 char *kwnames[] = {
25505 (char *) "self",(char *) "variant", NULL
25506 };
25507
25508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail;
25509 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25510 if (SWIG_arg_fail(1)) SWIG_fail;
25511 {
25512 arg2 = (wxWindowVariant)(SWIG_As_int(obj1));
25513 if (SWIG_arg_fail(2)) SWIG_fail;
25514 }
25515 {
25516 PyThreadState* __tstate = wxPyBeginAllowThreads();
25517 (arg1)->SetWindowVariant((wxWindowVariant )arg2);
25518
25519 wxPyEndAllowThreads(__tstate);
25520 if (PyErr_Occurred()) SWIG_fail;
25521 }
25522 Py_INCREF(Py_None); resultobj = Py_None;
25523 return resultobj;
25524 fail:
25525 return NULL;
25526 }
25527
25528
25529 static PyObject *_wrap_Window_GetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) {
25530 PyObject *resultobj;
25531 wxWindow *arg1 = (wxWindow *) 0 ;
25532 wxWindowVariant result;
25533 PyObject * obj0 = 0 ;
25534 char *kwnames[] = {
25535 (char *) "self", NULL
25536 };
25537
25538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail;
25539 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25540 if (SWIG_arg_fail(1)) SWIG_fail;
25541 {
25542 PyThreadState* __tstate = wxPyBeginAllowThreads();
25543 result = (wxWindowVariant)((wxWindow const *)arg1)->GetWindowVariant();
25544
25545 wxPyEndAllowThreads(__tstate);
25546 if (PyErr_Occurred()) SWIG_fail;
25547 }
25548 resultobj = SWIG_From_int((result));
25549 return resultobj;
25550 fail:
25551 return NULL;
25552 }
25553
25554
25555 static PyObject *_wrap_Window_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
25556 PyObject *resultobj;
25557 wxWindow *arg1 = (wxWindow *) 0 ;
25558 int arg2 ;
25559 PyObject * obj0 = 0 ;
25560 PyObject * obj1 = 0 ;
25561 char *kwnames[] = {
25562 (char *) "self",(char *) "winid", NULL
25563 };
25564
25565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail;
25566 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25567 if (SWIG_arg_fail(1)) SWIG_fail;
25568 {
25569 arg2 = (int)(SWIG_As_int(obj1));
25570 if (SWIG_arg_fail(2)) SWIG_fail;
25571 }
25572 {
25573 PyThreadState* __tstate = wxPyBeginAllowThreads();
25574 (arg1)->SetId(arg2);
25575
25576 wxPyEndAllowThreads(__tstate);
25577 if (PyErr_Occurred()) SWIG_fail;
25578 }
25579 Py_INCREF(Py_None); resultobj = Py_None;
25580 return resultobj;
25581 fail:
25582 return NULL;
25583 }
25584
25585
25586 static PyObject *_wrap_Window_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
25587 PyObject *resultobj;
25588 wxWindow *arg1 = (wxWindow *) 0 ;
25589 int result;
25590 PyObject * obj0 = 0 ;
25591 char *kwnames[] = {
25592 (char *) "self", NULL
25593 };
25594
25595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail;
25596 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25597 if (SWIG_arg_fail(1)) SWIG_fail;
25598 {
25599 PyThreadState* __tstate = wxPyBeginAllowThreads();
25600 result = (int)((wxWindow const *)arg1)->GetId();
25601
25602 wxPyEndAllowThreads(__tstate);
25603 if (PyErr_Occurred()) SWIG_fail;
25604 }
25605 {
25606 resultobj = SWIG_From_int((int)(result));
25607 }
25608 return resultobj;
25609 fail:
25610 return NULL;
25611 }
25612
25613
25614 static PyObject *_wrap_Window_NewControlId(PyObject *, PyObject *args, PyObject *kwargs) {
25615 PyObject *resultobj;
25616 int result;
25617 char *kwnames[] = {
25618 NULL
25619 };
25620
25621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail;
25622 {
25623 PyThreadState* __tstate = wxPyBeginAllowThreads();
25624 result = (int)wxWindow::NewControlId();
25625
25626 wxPyEndAllowThreads(__tstate);
25627 if (PyErr_Occurred()) SWIG_fail;
25628 }
25629 {
25630 resultobj = SWIG_From_int((int)(result));
25631 }
25632 return resultobj;
25633 fail:
25634 return NULL;
25635 }
25636
25637
25638 static PyObject *_wrap_Window_NextControlId(PyObject *, PyObject *args, PyObject *kwargs) {
25639 PyObject *resultobj;
25640 int arg1 ;
25641 int result;
25642 PyObject * obj0 = 0 ;
25643 char *kwnames[] = {
25644 (char *) "winid", NULL
25645 };
25646
25647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail;
25648 {
25649 arg1 = (int)(SWIG_As_int(obj0));
25650 if (SWIG_arg_fail(1)) SWIG_fail;
25651 }
25652 {
25653 PyThreadState* __tstate = wxPyBeginAllowThreads();
25654 result = (int)wxWindow::NextControlId(arg1);
25655
25656 wxPyEndAllowThreads(__tstate);
25657 if (PyErr_Occurred()) SWIG_fail;
25658 }
25659 {
25660 resultobj = SWIG_From_int((int)(result));
25661 }
25662 return resultobj;
25663 fail:
25664 return NULL;
25665 }
25666
25667
25668 static PyObject *_wrap_Window_PrevControlId(PyObject *, PyObject *args, PyObject *kwargs) {
25669 PyObject *resultobj;
25670 int arg1 ;
25671 int result;
25672 PyObject * obj0 = 0 ;
25673 char *kwnames[] = {
25674 (char *) "winid", NULL
25675 };
25676
25677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail;
25678 {
25679 arg1 = (int)(SWIG_As_int(obj0));
25680 if (SWIG_arg_fail(1)) SWIG_fail;
25681 }
25682 {
25683 PyThreadState* __tstate = wxPyBeginAllowThreads();
25684 result = (int)wxWindow::PrevControlId(arg1);
25685
25686 wxPyEndAllowThreads(__tstate);
25687 if (PyErr_Occurred()) SWIG_fail;
25688 }
25689 {
25690 resultobj = SWIG_From_int((int)(result));
25691 }
25692 return resultobj;
25693 fail:
25694 return NULL;
25695 }
25696
25697
25698 static PyObject *_wrap_Window_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
25699 PyObject *resultobj;
25700 wxWindow *arg1 = (wxWindow *) 0 ;
25701 wxSize *arg2 = 0 ;
25702 wxSize temp2 ;
25703 PyObject * obj0 = 0 ;
25704 PyObject * obj1 = 0 ;
25705 char *kwnames[] = {
25706 (char *) "self",(char *) "size", NULL
25707 };
25708
25709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail;
25710 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25711 if (SWIG_arg_fail(1)) SWIG_fail;
25712 {
25713 arg2 = &temp2;
25714 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25715 }
25716 {
25717 PyThreadState* __tstate = wxPyBeginAllowThreads();
25718 (arg1)->SetSize((wxSize const &)*arg2);
25719
25720 wxPyEndAllowThreads(__tstate);
25721 if (PyErr_Occurred()) SWIG_fail;
25722 }
25723 Py_INCREF(Py_None); resultobj = Py_None;
25724 return resultobj;
25725 fail:
25726 return NULL;
25727 }
25728
25729
25730 static PyObject *_wrap_Window_SetDimensions(PyObject *, PyObject *args, PyObject *kwargs) {
25731 PyObject *resultobj;
25732 wxWindow *arg1 = (wxWindow *) 0 ;
25733 int arg2 ;
25734 int arg3 ;
25735 int arg4 ;
25736 int arg5 ;
25737 int arg6 = (int) wxSIZE_AUTO ;
25738 PyObject * obj0 = 0 ;
25739 PyObject * obj1 = 0 ;
25740 PyObject * obj2 = 0 ;
25741 PyObject * obj3 = 0 ;
25742 PyObject * obj4 = 0 ;
25743 PyObject * obj5 = 0 ;
25744 char *kwnames[] = {
25745 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
25746 };
25747
25748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
25749 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25750 if (SWIG_arg_fail(1)) SWIG_fail;
25751 {
25752 arg2 = (int)(SWIG_As_int(obj1));
25753 if (SWIG_arg_fail(2)) SWIG_fail;
25754 }
25755 {
25756 arg3 = (int)(SWIG_As_int(obj2));
25757 if (SWIG_arg_fail(3)) SWIG_fail;
25758 }
25759 {
25760 arg4 = (int)(SWIG_As_int(obj3));
25761 if (SWIG_arg_fail(4)) SWIG_fail;
25762 }
25763 {
25764 arg5 = (int)(SWIG_As_int(obj4));
25765 if (SWIG_arg_fail(5)) SWIG_fail;
25766 }
25767 if (obj5) {
25768 {
25769 arg6 = (int)(SWIG_As_int(obj5));
25770 if (SWIG_arg_fail(6)) SWIG_fail;
25771 }
25772 }
25773 {
25774 PyThreadState* __tstate = wxPyBeginAllowThreads();
25775 (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6);
25776
25777 wxPyEndAllowThreads(__tstate);
25778 if (PyErr_Occurred()) SWIG_fail;
25779 }
25780 Py_INCREF(Py_None); resultobj = Py_None;
25781 return resultobj;
25782 fail:
25783 return NULL;
25784 }
25785
25786
25787 static PyObject *_wrap_Window_SetRect(PyObject *, PyObject *args, PyObject *kwargs) {
25788 PyObject *resultobj;
25789 wxWindow *arg1 = (wxWindow *) 0 ;
25790 wxRect *arg2 = 0 ;
25791 int arg3 = (int) wxSIZE_AUTO ;
25792 wxRect temp2 ;
25793 PyObject * obj0 = 0 ;
25794 PyObject * obj1 = 0 ;
25795 PyObject * obj2 = 0 ;
25796 char *kwnames[] = {
25797 (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL
25798 };
25799
25800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
25801 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25802 if (SWIG_arg_fail(1)) SWIG_fail;
25803 {
25804 arg2 = &temp2;
25805 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
25806 }
25807 if (obj2) {
25808 {
25809 arg3 = (int)(SWIG_As_int(obj2));
25810 if (SWIG_arg_fail(3)) SWIG_fail;
25811 }
25812 }
25813 {
25814 PyThreadState* __tstate = wxPyBeginAllowThreads();
25815 (arg1)->SetSize((wxRect const &)*arg2,arg3);
25816
25817 wxPyEndAllowThreads(__tstate);
25818 if (PyErr_Occurred()) SWIG_fail;
25819 }
25820 Py_INCREF(Py_None); resultobj = Py_None;
25821 return resultobj;
25822 fail:
25823 return NULL;
25824 }
25825
25826
25827 static PyObject *_wrap_Window_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
25828 PyObject *resultobj;
25829 wxWindow *arg1 = (wxWindow *) 0 ;
25830 int arg2 ;
25831 int arg3 ;
25832 PyObject * obj0 = 0 ;
25833 PyObject * obj1 = 0 ;
25834 PyObject * obj2 = 0 ;
25835 char *kwnames[] = {
25836 (char *) "self",(char *) "width",(char *) "height", NULL
25837 };
25838
25839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
25840 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25841 if (SWIG_arg_fail(1)) SWIG_fail;
25842 {
25843 arg2 = (int)(SWIG_As_int(obj1));
25844 if (SWIG_arg_fail(2)) SWIG_fail;
25845 }
25846 {
25847 arg3 = (int)(SWIG_As_int(obj2));
25848 if (SWIG_arg_fail(3)) SWIG_fail;
25849 }
25850 {
25851 PyThreadState* __tstate = wxPyBeginAllowThreads();
25852 (arg1)->SetSize(arg2,arg3);
25853
25854 wxPyEndAllowThreads(__tstate);
25855 if (PyErr_Occurred()) SWIG_fail;
25856 }
25857 Py_INCREF(Py_None); resultobj = Py_None;
25858 return resultobj;
25859 fail:
25860 return NULL;
25861 }
25862
25863
25864 static PyObject *_wrap_Window_Move(PyObject *, PyObject *args, PyObject *kwargs) {
25865 PyObject *resultobj;
25866 wxWindow *arg1 = (wxWindow *) 0 ;
25867 wxPoint *arg2 = 0 ;
25868 int arg3 = (int) wxSIZE_USE_EXISTING ;
25869 wxPoint temp2 ;
25870 PyObject * obj0 = 0 ;
25871 PyObject * obj1 = 0 ;
25872 PyObject * obj2 = 0 ;
25873 char *kwnames[] = {
25874 (char *) "self",(char *) "pt",(char *) "flags", NULL
25875 };
25876
25877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail;
25878 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25879 if (SWIG_arg_fail(1)) SWIG_fail;
25880 {
25881 arg2 = &temp2;
25882 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25883 }
25884 if (obj2) {
25885 {
25886 arg3 = (int)(SWIG_As_int(obj2));
25887 if (SWIG_arg_fail(3)) SWIG_fail;
25888 }
25889 }
25890 {
25891 PyThreadState* __tstate = wxPyBeginAllowThreads();
25892 (arg1)->Move((wxPoint const &)*arg2,arg3);
25893
25894 wxPyEndAllowThreads(__tstate);
25895 if (PyErr_Occurred()) SWIG_fail;
25896 }
25897 Py_INCREF(Py_None); resultobj = Py_None;
25898 return resultobj;
25899 fail:
25900 return NULL;
25901 }
25902
25903
25904 static PyObject *_wrap_Window_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) {
25905 PyObject *resultobj;
25906 wxWindow *arg1 = (wxWindow *) 0 ;
25907 int arg2 ;
25908 int arg3 ;
25909 int arg4 = (int) wxSIZE_USE_EXISTING ;
25910 PyObject * obj0 = 0 ;
25911 PyObject * obj1 = 0 ;
25912 PyObject * obj2 = 0 ;
25913 PyObject * obj3 = 0 ;
25914 char *kwnames[] = {
25915 (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL
25916 };
25917
25918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25919 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25920 if (SWIG_arg_fail(1)) SWIG_fail;
25921 {
25922 arg2 = (int)(SWIG_As_int(obj1));
25923 if (SWIG_arg_fail(2)) SWIG_fail;
25924 }
25925 {
25926 arg3 = (int)(SWIG_As_int(obj2));
25927 if (SWIG_arg_fail(3)) SWIG_fail;
25928 }
25929 if (obj3) {
25930 {
25931 arg4 = (int)(SWIG_As_int(obj3));
25932 if (SWIG_arg_fail(4)) SWIG_fail;
25933 }
25934 }
25935 {
25936 PyThreadState* __tstate = wxPyBeginAllowThreads();
25937 (arg1)->Move(arg2,arg3,arg4);
25938
25939 wxPyEndAllowThreads(__tstate);
25940 if (PyErr_Occurred()) SWIG_fail;
25941 }
25942 Py_INCREF(Py_None); resultobj = Py_None;
25943 return resultobj;
25944 fail:
25945 return NULL;
25946 }
25947
25948
25949 static PyObject *_wrap_Window_SetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) {
25950 PyObject *resultobj;
25951 wxWindow *arg1 = (wxWindow *) 0 ;
25952 wxSize const &arg2_defvalue = wxDefaultSize ;
25953 wxSize *arg2 = (wxSize *) &arg2_defvalue ;
25954 wxSize temp2 ;
25955 PyObject * obj0 = 0 ;
25956 PyObject * obj1 = 0 ;
25957 char *kwnames[] = {
25958 (char *) "self",(char *) "size", NULL
25959 };
25960
25961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail;
25962 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25963 if (SWIG_arg_fail(1)) SWIG_fail;
25964 if (obj1) {
25965 {
25966 arg2 = &temp2;
25967 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25968 }
25969 }
25970 {
25971 PyThreadState* __tstate = wxPyBeginAllowThreads();
25972 (arg1)->SetBestFittingSize((wxSize const &)*arg2);
25973
25974 wxPyEndAllowThreads(__tstate);
25975 if (PyErr_Occurred()) SWIG_fail;
25976 }
25977 Py_INCREF(Py_None); resultobj = Py_None;
25978 return resultobj;
25979 fail:
25980 return NULL;
25981 }
25982
25983
25984 static PyObject *_wrap_Window_Raise(PyObject *, PyObject *args, PyObject *kwargs) {
25985 PyObject *resultobj;
25986 wxWindow *arg1 = (wxWindow *) 0 ;
25987 PyObject * obj0 = 0 ;
25988 char *kwnames[] = {
25989 (char *) "self", NULL
25990 };
25991
25992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail;
25993 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
25994 if (SWIG_arg_fail(1)) SWIG_fail;
25995 {
25996 PyThreadState* __tstate = wxPyBeginAllowThreads();
25997 (arg1)->Raise();
25998
25999 wxPyEndAllowThreads(__tstate);
26000 if (PyErr_Occurred()) SWIG_fail;
26001 }
26002 Py_INCREF(Py_None); resultobj = Py_None;
26003 return resultobj;
26004 fail:
26005 return NULL;
26006 }
26007
26008
26009 static PyObject *_wrap_Window_Lower(PyObject *, PyObject *args, PyObject *kwargs) {
26010 PyObject *resultobj;
26011 wxWindow *arg1 = (wxWindow *) 0 ;
26012 PyObject * obj0 = 0 ;
26013 char *kwnames[] = {
26014 (char *) "self", NULL
26015 };
26016
26017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail;
26018 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26019 if (SWIG_arg_fail(1)) SWIG_fail;
26020 {
26021 PyThreadState* __tstate = wxPyBeginAllowThreads();
26022 (arg1)->Lower();
26023
26024 wxPyEndAllowThreads(__tstate);
26025 if (PyErr_Occurred()) SWIG_fail;
26026 }
26027 Py_INCREF(Py_None); resultobj = Py_None;
26028 return resultobj;
26029 fail:
26030 return NULL;
26031 }
26032
26033
26034 static PyObject *_wrap_Window_SetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
26035 PyObject *resultobj;
26036 wxWindow *arg1 = (wxWindow *) 0 ;
26037 wxSize *arg2 = 0 ;
26038 wxSize temp2 ;
26039 PyObject * obj0 = 0 ;
26040 PyObject * obj1 = 0 ;
26041 char *kwnames[] = {
26042 (char *) "self",(char *) "size", NULL
26043 };
26044
26045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail;
26046 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26047 if (SWIG_arg_fail(1)) SWIG_fail;
26048 {
26049 arg2 = &temp2;
26050 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
26051 }
26052 {
26053 PyThreadState* __tstate = wxPyBeginAllowThreads();
26054 (arg1)->SetClientSize((wxSize const &)*arg2);
26055
26056 wxPyEndAllowThreads(__tstate);
26057 if (PyErr_Occurred()) SWIG_fail;
26058 }
26059 Py_INCREF(Py_None); resultobj = Py_None;
26060 return resultobj;
26061 fail:
26062 return NULL;
26063 }
26064
26065
26066 static PyObject *_wrap_Window_SetClientSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
26067 PyObject *resultobj;
26068 wxWindow *arg1 = (wxWindow *) 0 ;
26069 int arg2 ;
26070 int arg3 ;
26071 PyObject * obj0 = 0 ;
26072 PyObject * obj1 = 0 ;
26073 PyObject * obj2 = 0 ;
26074 char *kwnames[] = {
26075 (char *) "self",(char *) "width",(char *) "height", NULL
26076 };
26077
26078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
26079 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26080 if (SWIG_arg_fail(1)) SWIG_fail;
26081 {
26082 arg2 = (int)(SWIG_As_int(obj1));
26083 if (SWIG_arg_fail(2)) SWIG_fail;
26084 }
26085 {
26086 arg3 = (int)(SWIG_As_int(obj2));
26087 if (SWIG_arg_fail(3)) SWIG_fail;
26088 }
26089 {
26090 PyThreadState* __tstate = wxPyBeginAllowThreads();
26091 (arg1)->SetClientSize(arg2,arg3);
26092
26093 wxPyEndAllowThreads(__tstate);
26094 if (PyErr_Occurred()) SWIG_fail;
26095 }
26096 Py_INCREF(Py_None); resultobj = Py_None;
26097 return resultobj;
26098 fail:
26099 return NULL;
26100 }
26101
26102
26103 static PyObject *_wrap_Window_SetClientRect(PyObject *, PyObject *args, PyObject *kwargs) {
26104 PyObject *resultobj;
26105 wxWindow *arg1 = (wxWindow *) 0 ;
26106 wxRect *arg2 = 0 ;
26107 wxRect temp2 ;
26108 PyObject * obj0 = 0 ;
26109 PyObject * obj1 = 0 ;
26110 char *kwnames[] = {
26111 (char *) "self",(char *) "rect", NULL
26112 };
26113
26114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail;
26115 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26116 if (SWIG_arg_fail(1)) SWIG_fail;
26117 {
26118 arg2 = &temp2;
26119 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26120 }
26121 {
26122 PyThreadState* __tstate = wxPyBeginAllowThreads();
26123 (arg1)->SetClientSize((wxRect const &)*arg2);
26124
26125 wxPyEndAllowThreads(__tstate);
26126 if (PyErr_Occurred()) SWIG_fail;
26127 }
26128 Py_INCREF(Py_None); resultobj = Py_None;
26129 return resultobj;
26130 fail:
26131 return NULL;
26132 }
26133
26134
26135 static PyObject *_wrap_Window_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
26136 PyObject *resultobj;
26137 wxWindow *arg1 = (wxWindow *) 0 ;
26138 wxPoint result;
26139 PyObject * obj0 = 0 ;
26140 char *kwnames[] = {
26141 (char *) "self", NULL
26142 };
26143
26144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail;
26145 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26146 if (SWIG_arg_fail(1)) SWIG_fail;
26147 {
26148 PyThreadState* __tstate = wxPyBeginAllowThreads();
26149 result = (arg1)->GetPosition();
26150
26151 wxPyEndAllowThreads(__tstate);
26152 if (PyErr_Occurred()) SWIG_fail;
26153 }
26154 {
26155 wxPoint * resultptr;
26156 resultptr = new wxPoint((wxPoint &)(result));
26157 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
26158 }
26159 return resultobj;
26160 fail:
26161 return NULL;
26162 }
26163
26164
26165 static PyObject *_wrap_Window_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
26166 PyObject *resultobj;
26167 wxWindow *arg1 = (wxWindow *) 0 ;
26168 int *arg2 = (int *) 0 ;
26169 int *arg3 = (int *) 0 ;
26170 int temp2 ;
26171 int res2 = 0 ;
26172 int temp3 ;
26173 int res3 = 0 ;
26174 PyObject * obj0 = 0 ;
26175 char *kwnames[] = {
26176 (char *) "self", NULL
26177 };
26178
26179 arg2 = &temp2; res2 = SWIG_NEWOBJ;
26180 arg3 = &temp3; res3 = SWIG_NEWOBJ;
26181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail;
26182 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26183 if (SWIG_arg_fail(1)) SWIG_fail;
26184 {
26185 PyThreadState* __tstate = wxPyBeginAllowThreads();
26186 (arg1)->GetPosition(arg2,arg3);
26187
26188 wxPyEndAllowThreads(__tstate);
26189 if (PyErr_Occurred()) SWIG_fail;
26190 }
26191 Py_INCREF(Py_None); resultobj = Py_None;
26192 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
26193 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
26194 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
26195 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
26196 return resultobj;
26197 fail:
26198 return NULL;
26199 }
26200
26201
26202 static PyObject *_wrap_Window_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
26203 PyObject *resultobj;
26204 wxWindow *arg1 = (wxWindow *) 0 ;
26205 wxSize result;
26206 PyObject * obj0 = 0 ;
26207 char *kwnames[] = {
26208 (char *) "self", NULL
26209 };
26210
26211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail;
26212 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26213 if (SWIG_arg_fail(1)) SWIG_fail;
26214 {
26215 PyThreadState* __tstate = wxPyBeginAllowThreads();
26216 result = ((wxWindow const *)arg1)->GetSize();
26217
26218 wxPyEndAllowThreads(__tstate);
26219 if (PyErr_Occurred()) SWIG_fail;
26220 }
26221 {
26222 wxSize * resultptr;
26223 resultptr = new wxSize((wxSize &)(result));
26224 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
26225 }
26226 return resultobj;
26227 fail:
26228 return NULL;
26229 }
26230
26231
26232 static PyObject *_wrap_Window_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
26233 PyObject *resultobj;
26234 wxWindow *arg1 = (wxWindow *) 0 ;
26235 int *arg2 = (int *) 0 ;
26236 int *arg3 = (int *) 0 ;
26237 int temp2 ;
26238 int res2 = 0 ;
26239 int temp3 ;
26240 int res3 = 0 ;
26241 PyObject * obj0 = 0 ;
26242 char *kwnames[] = {
26243 (char *) "self", NULL
26244 };
26245
26246 arg2 = &temp2; res2 = SWIG_NEWOBJ;
26247 arg3 = &temp3; res3 = SWIG_NEWOBJ;
26248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail;
26249 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26250 if (SWIG_arg_fail(1)) SWIG_fail;
26251 {
26252 PyThreadState* __tstate = wxPyBeginAllowThreads();
26253 ((wxWindow const *)arg1)->GetSize(arg2,arg3);
26254
26255 wxPyEndAllowThreads(__tstate);
26256 if (PyErr_Occurred()) SWIG_fail;
26257 }
26258 Py_INCREF(Py_None); resultobj = Py_None;
26259 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
26260 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
26261 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
26262 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
26263 return resultobj;
26264 fail:
26265 return NULL;
26266 }
26267
26268
26269 static PyObject *_wrap_Window_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
26270 PyObject *resultobj;
26271 wxWindow *arg1 = (wxWindow *) 0 ;
26272 wxRect result;
26273 PyObject * obj0 = 0 ;
26274 char *kwnames[] = {
26275 (char *) "self", NULL
26276 };
26277
26278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail;
26279 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26280 if (SWIG_arg_fail(1)) SWIG_fail;
26281 {
26282 PyThreadState* __tstate = wxPyBeginAllowThreads();
26283 result = ((wxWindow const *)arg1)->GetRect();
26284
26285 wxPyEndAllowThreads(__tstate);
26286 if (PyErr_Occurred()) SWIG_fail;
26287 }
26288 {
26289 wxRect * resultptr;
26290 resultptr = new wxRect((wxRect &)(result));
26291 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
26292 }
26293 return resultobj;
26294 fail:
26295 return NULL;
26296 }
26297
26298
26299 static PyObject *_wrap_Window_GetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
26300 PyObject *resultobj;
26301 wxWindow *arg1 = (wxWindow *) 0 ;
26302 wxSize result;
26303 PyObject * obj0 = 0 ;
26304 char *kwnames[] = {
26305 (char *) "self", NULL
26306 };
26307
26308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail;
26309 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26310 if (SWIG_arg_fail(1)) SWIG_fail;
26311 {
26312 PyThreadState* __tstate = wxPyBeginAllowThreads();
26313 result = ((wxWindow const *)arg1)->GetClientSize();
26314
26315 wxPyEndAllowThreads(__tstate);
26316 if (PyErr_Occurred()) SWIG_fail;
26317 }
26318 {
26319 wxSize * resultptr;
26320 resultptr = new wxSize((wxSize &)(result));
26321 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
26322 }
26323 return resultobj;
26324 fail:
26325 return NULL;
26326 }
26327
26328
26329 static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
26330 PyObject *resultobj;
26331 wxWindow *arg1 = (wxWindow *) 0 ;
26332 int *arg2 = (int *) 0 ;
26333 int *arg3 = (int *) 0 ;
26334 int temp2 ;
26335 int res2 = 0 ;
26336 int temp3 ;
26337 int res3 = 0 ;
26338 PyObject * obj0 = 0 ;
26339 char *kwnames[] = {
26340 (char *) "self", NULL
26341 };
26342
26343 arg2 = &temp2; res2 = SWIG_NEWOBJ;
26344 arg3 = &temp3; res3 = SWIG_NEWOBJ;
26345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail;
26346 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26347 if (SWIG_arg_fail(1)) SWIG_fail;
26348 {
26349 PyThreadState* __tstate = wxPyBeginAllowThreads();
26350 ((wxWindow const *)arg1)->GetClientSize(arg2,arg3);
26351
26352 wxPyEndAllowThreads(__tstate);
26353 if (PyErr_Occurred()) SWIG_fail;
26354 }
26355 Py_INCREF(Py_None); resultobj = Py_None;
26356 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
26357 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
26358 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
26359 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
26360 return resultobj;
26361 fail:
26362 return NULL;
26363 }
26364
26365
26366 static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
26367 PyObject *resultobj;
26368 wxWindow *arg1 = (wxWindow *) 0 ;
26369 wxPoint result;
26370 PyObject * obj0 = 0 ;
26371 char *kwnames[] = {
26372 (char *) "self", NULL
26373 };
26374
26375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail;
26376 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26377 if (SWIG_arg_fail(1)) SWIG_fail;
26378 {
26379 PyThreadState* __tstate = wxPyBeginAllowThreads();
26380 result = ((wxWindow const *)arg1)->GetClientAreaOrigin();
26381
26382 wxPyEndAllowThreads(__tstate);
26383 if (PyErr_Occurred()) SWIG_fail;
26384 }
26385 {
26386 wxPoint * resultptr;
26387 resultptr = new wxPoint((wxPoint &)(result));
26388 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
26389 }
26390 return resultobj;
26391 fail:
26392 return NULL;
26393 }
26394
26395
26396 static PyObject *_wrap_Window_GetClientRect(PyObject *, PyObject *args, PyObject *kwargs) {
26397 PyObject *resultobj;
26398 wxWindow *arg1 = (wxWindow *) 0 ;
26399 wxRect result;
26400 PyObject * obj0 = 0 ;
26401 char *kwnames[] = {
26402 (char *) "self", NULL
26403 };
26404
26405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail;
26406 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26407 if (SWIG_arg_fail(1)) SWIG_fail;
26408 {
26409 PyThreadState* __tstate = wxPyBeginAllowThreads();
26410 result = ((wxWindow const *)arg1)->GetClientRect();
26411
26412 wxPyEndAllowThreads(__tstate);
26413 if (PyErr_Occurred()) SWIG_fail;
26414 }
26415 {
26416 wxRect * resultptr;
26417 resultptr = new wxRect((wxRect &)(result));
26418 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
26419 }
26420 return resultobj;
26421 fail:
26422 return NULL;
26423 }
26424
26425
26426 static PyObject *_wrap_Window_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
26427 PyObject *resultobj;
26428 wxWindow *arg1 = (wxWindow *) 0 ;
26429 wxSize result;
26430 PyObject * obj0 = 0 ;
26431 char *kwnames[] = {
26432 (char *) "self", NULL
26433 };
26434
26435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail;
26436 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26437 if (SWIG_arg_fail(1)) SWIG_fail;
26438 {
26439 PyThreadState* __tstate = wxPyBeginAllowThreads();
26440 result = ((wxWindow const *)arg1)->GetBestSize();
26441
26442 wxPyEndAllowThreads(__tstate);
26443 if (PyErr_Occurred()) SWIG_fail;
26444 }
26445 {
26446 wxSize * resultptr;
26447 resultptr = new wxSize((wxSize &)(result));
26448 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
26449 }
26450 return resultobj;
26451 fail:
26452 return NULL;
26453 }
26454
26455
26456 static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
26457 PyObject *resultobj;
26458 wxWindow *arg1 = (wxWindow *) 0 ;
26459 int *arg2 = (int *) 0 ;
26460 int *arg3 = (int *) 0 ;
26461 int temp2 ;
26462 int res2 = 0 ;
26463 int temp3 ;
26464 int res3 = 0 ;
26465 PyObject * obj0 = 0 ;
26466 char *kwnames[] = {
26467 (char *) "self", NULL
26468 };
26469
26470 arg2 = &temp2; res2 = SWIG_NEWOBJ;
26471 arg3 = &temp3; res3 = SWIG_NEWOBJ;
26472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail;
26473 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26474 if (SWIG_arg_fail(1)) SWIG_fail;
26475 {
26476 PyThreadState* __tstate = wxPyBeginAllowThreads();
26477 ((wxWindow const *)arg1)->GetBestSize(arg2,arg3);
26478
26479 wxPyEndAllowThreads(__tstate);
26480 if (PyErr_Occurred()) SWIG_fail;
26481 }
26482 Py_INCREF(Py_None); resultobj = Py_None;
26483 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
26484 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
26485 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
26486 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
26487 return resultobj;
26488 fail:
26489 return NULL;
26490 }
26491
26492
26493 static PyObject *_wrap_Window_InvalidateBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
26494 PyObject *resultobj;
26495 wxWindow *arg1 = (wxWindow *) 0 ;
26496 PyObject * obj0 = 0 ;
26497 char *kwnames[] = {
26498 (char *) "self", NULL
26499 };
26500
26501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail;
26502 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26503 if (SWIG_arg_fail(1)) SWIG_fail;
26504 {
26505 PyThreadState* __tstate = wxPyBeginAllowThreads();
26506 (arg1)->InvalidateBestSize();
26507
26508 wxPyEndAllowThreads(__tstate);
26509 if (PyErr_Occurred()) SWIG_fail;
26510 }
26511 Py_INCREF(Py_None); resultobj = Py_None;
26512 return resultobj;
26513 fail:
26514 return NULL;
26515 }
26516
26517
26518 static PyObject *_wrap_Window_GetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) {
26519 PyObject *resultobj;
26520 wxWindow *arg1 = (wxWindow *) 0 ;
26521 wxSize result;
26522 PyObject * obj0 = 0 ;
26523 char *kwnames[] = {
26524 (char *) "self", NULL
26525 };
26526
26527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail;
26528 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26529 if (SWIG_arg_fail(1)) SWIG_fail;
26530 {
26531 PyThreadState* __tstate = wxPyBeginAllowThreads();
26532 result = ((wxWindow const *)arg1)->GetBestFittingSize();
26533
26534 wxPyEndAllowThreads(__tstate);
26535 if (PyErr_Occurred()) SWIG_fail;
26536 }
26537 {
26538 wxSize * resultptr;
26539 resultptr = new wxSize((wxSize &)(result));
26540 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
26541 }
26542 return resultobj;
26543 fail:
26544 return NULL;
26545 }
26546
26547
26548 static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
26549 PyObject *resultobj;
26550 wxWindow *arg1 = (wxWindow *) 0 ;
26551 wxSize result;
26552 PyObject * obj0 = 0 ;
26553 char *kwnames[] = {
26554 (char *) "self", NULL
26555 };
26556
26557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail;
26558 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26559 if (SWIG_arg_fail(1)) SWIG_fail;
26560 {
26561 PyThreadState* __tstate = wxPyBeginAllowThreads();
26562 result = ((wxWindow const *)arg1)->GetAdjustedBestSize();
26563
26564 wxPyEndAllowThreads(__tstate);
26565 if (PyErr_Occurred()) SWIG_fail;
26566 }
26567 {
26568 wxSize * resultptr;
26569 resultptr = new wxSize((wxSize &)(result));
26570 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
26571 }
26572 return resultobj;
26573 fail:
26574 return NULL;
26575 }
26576
26577
26578 static PyObject *_wrap_Window_Center(PyObject *, PyObject *args, PyObject *kwargs) {
26579 PyObject *resultobj;
26580 wxWindow *arg1 = (wxWindow *) 0 ;
26581 int arg2 = (int) wxBOTH ;
26582 PyObject * obj0 = 0 ;
26583 PyObject * obj1 = 0 ;
26584 char *kwnames[] = {
26585 (char *) "self",(char *) "direction", NULL
26586 };
26587
26588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail;
26589 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26590 if (SWIG_arg_fail(1)) SWIG_fail;
26591 if (obj1) {
26592 {
26593 arg2 = (int)(SWIG_As_int(obj1));
26594 if (SWIG_arg_fail(2)) SWIG_fail;
26595 }
26596 }
26597 {
26598 PyThreadState* __tstate = wxPyBeginAllowThreads();
26599 (arg1)->Center(arg2);
26600
26601 wxPyEndAllowThreads(__tstate);
26602 if (PyErr_Occurred()) SWIG_fail;
26603 }
26604 Py_INCREF(Py_None); resultobj = Py_None;
26605 return resultobj;
26606 fail:
26607 return NULL;
26608 }
26609
26610
26611 static PyObject *_wrap_Window_CenterOnScreen(PyObject *, PyObject *args, PyObject *kwargs) {
26612 PyObject *resultobj;
26613 wxWindow *arg1 = (wxWindow *) 0 ;
26614 int arg2 = (int) wxBOTH ;
26615 PyObject * obj0 = 0 ;
26616 PyObject * obj1 = 0 ;
26617 char *kwnames[] = {
26618 (char *) "self",(char *) "dir", NULL
26619 };
26620
26621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail;
26622 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26623 if (SWIG_arg_fail(1)) SWIG_fail;
26624 if (obj1) {
26625 {
26626 arg2 = (int)(SWIG_As_int(obj1));
26627 if (SWIG_arg_fail(2)) SWIG_fail;
26628 }
26629 }
26630 {
26631 PyThreadState* __tstate = wxPyBeginAllowThreads();
26632 (arg1)->CenterOnScreen(arg2);
26633
26634 wxPyEndAllowThreads(__tstate);
26635 if (PyErr_Occurred()) SWIG_fail;
26636 }
26637 Py_INCREF(Py_None); resultobj = Py_None;
26638 return resultobj;
26639 fail:
26640 return NULL;
26641 }
26642
26643
26644 static PyObject *_wrap_Window_CenterOnParent(PyObject *, PyObject *args, PyObject *kwargs) {
26645 PyObject *resultobj;
26646 wxWindow *arg1 = (wxWindow *) 0 ;
26647 int arg2 = (int) wxBOTH ;
26648 PyObject * obj0 = 0 ;
26649 PyObject * obj1 = 0 ;
26650 char *kwnames[] = {
26651 (char *) "self",(char *) "dir", NULL
26652 };
26653
26654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail;
26655 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26656 if (SWIG_arg_fail(1)) SWIG_fail;
26657 if (obj1) {
26658 {
26659 arg2 = (int)(SWIG_As_int(obj1));
26660 if (SWIG_arg_fail(2)) SWIG_fail;
26661 }
26662 }
26663 {
26664 PyThreadState* __tstate = wxPyBeginAllowThreads();
26665 (arg1)->CenterOnParent(arg2);
26666
26667 wxPyEndAllowThreads(__tstate);
26668 if (PyErr_Occurred()) SWIG_fail;
26669 }
26670 Py_INCREF(Py_None); resultobj = Py_None;
26671 return resultobj;
26672 fail:
26673 return NULL;
26674 }
26675
26676
26677 static PyObject *_wrap_Window_Fit(PyObject *, PyObject *args, PyObject *kwargs) {
26678 PyObject *resultobj;
26679 wxWindow *arg1 = (wxWindow *) 0 ;
26680 PyObject * obj0 = 0 ;
26681 char *kwnames[] = {
26682 (char *) "self", NULL
26683 };
26684
26685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail;
26686 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26687 if (SWIG_arg_fail(1)) SWIG_fail;
26688 {
26689 PyThreadState* __tstate = wxPyBeginAllowThreads();
26690 (arg1)->Fit();
26691
26692 wxPyEndAllowThreads(__tstate);
26693 if (PyErr_Occurred()) SWIG_fail;
26694 }
26695 Py_INCREF(Py_None); resultobj = Py_None;
26696 return resultobj;
26697 fail:
26698 return NULL;
26699 }
26700
26701
26702 static PyObject *_wrap_Window_FitInside(PyObject *, PyObject *args, PyObject *kwargs) {
26703 PyObject *resultobj;
26704 wxWindow *arg1 = (wxWindow *) 0 ;
26705 PyObject * obj0 = 0 ;
26706 char *kwnames[] = {
26707 (char *) "self", NULL
26708 };
26709
26710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail;
26711 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26712 if (SWIG_arg_fail(1)) SWIG_fail;
26713 {
26714 PyThreadState* __tstate = wxPyBeginAllowThreads();
26715 (arg1)->FitInside();
26716
26717 wxPyEndAllowThreads(__tstate);
26718 if (PyErr_Occurred()) SWIG_fail;
26719 }
26720 Py_INCREF(Py_None); resultobj = Py_None;
26721 return resultobj;
26722 fail:
26723 return NULL;
26724 }
26725
26726
26727 static PyObject *_wrap_Window_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) {
26728 PyObject *resultobj;
26729 wxWindow *arg1 = (wxWindow *) 0 ;
26730 int arg2 ;
26731 int arg3 ;
26732 int arg4 = (int) -1 ;
26733 int arg5 = (int) -1 ;
26734 int arg6 = (int) -1 ;
26735 int arg7 = (int) -1 ;
26736 PyObject * obj0 = 0 ;
26737 PyObject * obj1 = 0 ;
26738 PyObject * obj2 = 0 ;
26739 PyObject * obj3 = 0 ;
26740 PyObject * obj4 = 0 ;
26741 PyObject * obj5 = 0 ;
26742 PyObject * obj6 = 0 ;
26743 char *kwnames[] = {
26744 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL
26745 };
26746
26747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
26748 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26749 if (SWIG_arg_fail(1)) SWIG_fail;
26750 {
26751 arg2 = (int)(SWIG_As_int(obj1));
26752 if (SWIG_arg_fail(2)) SWIG_fail;
26753 }
26754 {
26755 arg3 = (int)(SWIG_As_int(obj2));
26756 if (SWIG_arg_fail(3)) SWIG_fail;
26757 }
26758 if (obj3) {
26759 {
26760 arg4 = (int)(SWIG_As_int(obj3));
26761 if (SWIG_arg_fail(4)) SWIG_fail;
26762 }
26763 }
26764 if (obj4) {
26765 {
26766 arg5 = (int)(SWIG_As_int(obj4));
26767 if (SWIG_arg_fail(5)) SWIG_fail;
26768 }
26769 }
26770 if (obj5) {
26771 {
26772 arg6 = (int)(SWIG_As_int(obj5));
26773 if (SWIG_arg_fail(6)) SWIG_fail;
26774 }
26775 }
26776 if (obj6) {
26777 {
26778 arg7 = (int)(SWIG_As_int(obj6));
26779 if (SWIG_arg_fail(7)) SWIG_fail;
26780 }
26781 }
26782 {
26783 PyThreadState* __tstate = wxPyBeginAllowThreads();
26784 (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7);
26785
26786 wxPyEndAllowThreads(__tstate);
26787 if (PyErr_Occurred()) SWIG_fail;
26788 }
26789 Py_INCREF(Py_None); resultobj = Py_None;
26790 return resultobj;
26791 fail:
26792 return NULL;
26793 }
26794
26795
26796 static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) {
26797 PyObject *resultobj;
26798 wxWindow *arg1 = (wxWindow *) 0 ;
26799 wxSize *arg2 = 0 ;
26800 wxSize const &arg3_defvalue = wxDefaultSize ;
26801 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
26802 wxSize const &arg4_defvalue = wxDefaultSize ;
26803 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
26804 wxSize temp2 ;
26805 wxSize temp3 ;
26806 wxSize temp4 ;
26807 PyObject * obj0 = 0 ;
26808 PyObject * obj1 = 0 ;
26809 PyObject * obj2 = 0 ;
26810 PyObject * obj3 = 0 ;
26811 char *kwnames[] = {
26812 (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL
26813 };
26814
26815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26816 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26817 if (SWIG_arg_fail(1)) SWIG_fail;
26818 {
26819 arg2 = &temp2;
26820 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
26821 }
26822 if (obj2) {
26823 {
26824 arg3 = &temp3;
26825 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
26826 }
26827 }
26828 if (obj3) {
26829 {
26830 arg4 = &temp4;
26831 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
26832 }
26833 }
26834 {
26835 PyThreadState* __tstate = wxPyBeginAllowThreads();
26836 (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4);
26837
26838 wxPyEndAllowThreads(__tstate);
26839 if (PyErr_Occurred()) SWIG_fail;
26840 }
26841 Py_INCREF(Py_None); resultobj = Py_None;
26842 return resultobj;
26843 fail:
26844 return NULL;
26845 }
26846
26847
26848 static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) {
26849 PyObject *resultobj;
26850 wxWindow *arg1 = (wxWindow *) 0 ;
26851 int arg2 ;
26852 int arg3 ;
26853 int arg4 = (int) -1 ;
26854 int arg5 = (int) -1 ;
26855 PyObject * obj0 = 0 ;
26856 PyObject * obj1 = 0 ;
26857 PyObject * obj2 = 0 ;
26858 PyObject * obj3 = 0 ;
26859 PyObject * obj4 = 0 ;
26860 char *kwnames[] = {
26861 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL
26862 };
26863
26864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
26865 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26866 if (SWIG_arg_fail(1)) SWIG_fail;
26867 {
26868 arg2 = (int)(SWIG_As_int(obj1));
26869 if (SWIG_arg_fail(2)) SWIG_fail;
26870 }
26871 {
26872 arg3 = (int)(SWIG_As_int(obj2));
26873 if (SWIG_arg_fail(3)) SWIG_fail;
26874 }
26875 if (obj3) {
26876 {
26877 arg4 = (int)(SWIG_As_int(obj3));
26878 if (SWIG_arg_fail(4)) SWIG_fail;
26879 }
26880 }
26881 if (obj4) {
26882 {
26883 arg5 = (int)(SWIG_As_int(obj4));
26884 if (SWIG_arg_fail(5)) SWIG_fail;
26885 }
26886 }
26887 {
26888 PyThreadState* __tstate = wxPyBeginAllowThreads();
26889 (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5);
26890
26891 wxPyEndAllowThreads(__tstate);
26892 if (PyErr_Occurred()) SWIG_fail;
26893 }
26894 Py_INCREF(Py_None); resultobj = Py_None;
26895 return resultobj;
26896 fail:
26897 return NULL;
26898 }
26899
26900
26901 static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) {
26902 PyObject *resultobj;
26903 wxWindow *arg1 = (wxWindow *) 0 ;
26904 wxSize *arg2 = 0 ;
26905 wxSize const &arg3_defvalue = wxDefaultSize ;
26906 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
26907 wxSize temp2 ;
26908 wxSize temp3 ;
26909 PyObject * obj0 = 0 ;
26910 PyObject * obj1 = 0 ;
26911 PyObject * obj2 = 0 ;
26912 char *kwnames[] = {
26913 (char *) "self",(char *) "minSize",(char *) "maxSize", NULL
26914 };
26915
26916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail;
26917 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26918 if (SWIG_arg_fail(1)) SWIG_fail;
26919 {
26920 arg2 = &temp2;
26921 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
26922 }
26923 if (obj2) {
26924 {
26925 arg3 = &temp3;
26926 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
26927 }
26928 }
26929 {
26930 PyThreadState* __tstate = wxPyBeginAllowThreads();
26931 (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3);
26932
26933 wxPyEndAllowThreads(__tstate);
26934 if (PyErr_Occurred()) SWIG_fail;
26935 }
26936 Py_INCREF(Py_None); resultobj = Py_None;
26937 return resultobj;
26938 fail:
26939 return NULL;
26940 }
26941
26942
26943 static PyObject *_wrap_Window_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) {
26944 PyObject *resultobj;
26945 wxWindow *arg1 = (wxWindow *) 0 ;
26946 wxSize result;
26947 PyObject * obj0 = 0 ;
26948 char *kwnames[] = {
26949 (char *) "self", NULL
26950 };
26951
26952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail;
26953 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26954 if (SWIG_arg_fail(1)) SWIG_fail;
26955 {
26956 PyThreadState* __tstate = wxPyBeginAllowThreads();
26957 result = ((wxWindow const *)arg1)->GetMaxSize();
26958
26959 wxPyEndAllowThreads(__tstate);
26960 if (PyErr_Occurred()) SWIG_fail;
26961 }
26962 {
26963 wxSize * resultptr;
26964 resultptr = new wxSize((wxSize &)(result));
26965 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
26966 }
26967 return resultobj;
26968 fail:
26969 return NULL;
26970 }
26971
26972
26973 static PyObject *_wrap_Window_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
26974 PyObject *resultobj;
26975 wxWindow *arg1 = (wxWindow *) 0 ;
26976 wxSize result;
26977 PyObject * obj0 = 0 ;
26978 char *kwnames[] = {
26979 (char *) "self", NULL
26980 };
26981
26982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail;
26983 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
26984 if (SWIG_arg_fail(1)) SWIG_fail;
26985 {
26986 PyThreadState* __tstate = wxPyBeginAllowThreads();
26987 result = ((wxWindow const *)arg1)->GetMinSize();
26988
26989 wxPyEndAllowThreads(__tstate);
26990 if (PyErr_Occurred()) SWIG_fail;
26991 }
26992 {
26993 wxSize * resultptr;
26994 resultptr = new wxSize((wxSize &)(result));
26995 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
26996 }
26997 return resultobj;
26998 fail:
26999 return NULL;
27000 }
27001
27002
27003 static PyObject *_wrap_Window_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
27004 PyObject *resultobj;
27005 wxWindow *arg1 = (wxWindow *) 0 ;
27006 wxSize *arg2 = 0 ;
27007 wxSize temp2 ;
27008 PyObject * obj0 = 0 ;
27009 PyObject * obj1 = 0 ;
27010 char *kwnames[] = {
27011 (char *) "self",(char *) "minSize", NULL
27012 };
27013
27014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
27015 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27016 if (SWIG_arg_fail(1)) SWIG_fail;
27017 {
27018 arg2 = &temp2;
27019 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
27020 }
27021 {
27022 PyThreadState* __tstate = wxPyBeginAllowThreads();
27023 (arg1)->SetMinSize((wxSize const &)*arg2);
27024
27025 wxPyEndAllowThreads(__tstate);
27026 if (PyErr_Occurred()) SWIG_fail;
27027 }
27028 Py_INCREF(Py_None); resultobj = Py_None;
27029 return resultobj;
27030 fail:
27031 return NULL;
27032 }
27033
27034
27035 static PyObject *_wrap_Window_SetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) {
27036 PyObject *resultobj;
27037 wxWindow *arg1 = (wxWindow *) 0 ;
27038 wxSize *arg2 = 0 ;
27039 wxSize temp2 ;
27040 PyObject * obj0 = 0 ;
27041 PyObject * obj1 = 0 ;
27042 char *kwnames[] = {
27043 (char *) "self",(char *) "maxSize", NULL
27044 };
27045
27046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail;
27047 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27048 if (SWIG_arg_fail(1)) SWIG_fail;
27049 {
27050 arg2 = &temp2;
27051 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
27052 }
27053 {
27054 PyThreadState* __tstate = wxPyBeginAllowThreads();
27055 (arg1)->SetMaxSize((wxSize const &)*arg2);
27056
27057 wxPyEndAllowThreads(__tstate);
27058 if (PyErr_Occurred()) SWIG_fail;
27059 }
27060 Py_INCREF(Py_None); resultobj = Py_None;
27061 return resultobj;
27062 fail:
27063 return NULL;
27064 }
27065
27066
27067 static PyObject *_wrap_Window_GetMinWidth(PyObject *, PyObject *args, PyObject *kwargs) {
27068 PyObject *resultobj;
27069 wxWindow *arg1 = (wxWindow *) 0 ;
27070 int result;
27071 PyObject * obj0 = 0 ;
27072 char *kwnames[] = {
27073 (char *) "self", NULL
27074 };
27075
27076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail;
27077 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27078 if (SWIG_arg_fail(1)) SWIG_fail;
27079 {
27080 PyThreadState* __tstate = wxPyBeginAllowThreads();
27081 result = (int)((wxWindow const *)arg1)->GetMinWidth();
27082
27083 wxPyEndAllowThreads(__tstate);
27084 if (PyErr_Occurred()) SWIG_fail;
27085 }
27086 {
27087 resultobj = SWIG_From_int((int)(result));
27088 }
27089 return resultobj;
27090 fail:
27091 return NULL;
27092 }
27093
27094
27095 static PyObject *_wrap_Window_GetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) {
27096 PyObject *resultobj;
27097 wxWindow *arg1 = (wxWindow *) 0 ;
27098 int result;
27099 PyObject * obj0 = 0 ;
27100 char *kwnames[] = {
27101 (char *) "self", NULL
27102 };
27103
27104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail;
27105 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27106 if (SWIG_arg_fail(1)) SWIG_fail;
27107 {
27108 PyThreadState* __tstate = wxPyBeginAllowThreads();
27109 result = (int)((wxWindow const *)arg1)->GetMinHeight();
27110
27111 wxPyEndAllowThreads(__tstate);
27112 if (PyErr_Occurred()) SWIG_fail;
27113 }
27114 {
27115 resultobj = SWIG_From_int((int)(result));
27116 }
27117 return resultobj;
27118 fail:
27119 return NULL;
27120 }
27121
27122
27123 static PyObject *_wrap_Window_GetMaxWidth(PyObject *, PyObject *args, PyObject *kwargs) {
27124 PyObject *resultobj;
27125 wxWindow *arg1 = (wxWindow *) 0 ;
27126 int result;
27127 PyObject * obj0 = 0 ;
27128 char *kwnames[] = {
27129 (char *) "self", NULL
27130 };
27131
27132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail;
27133 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27134 if (SWIG_arg_fail(1)) SWIG_fail;
27135 {
27136 PyThreadState* __tstate = wxPyBeginAllowThreads();
27137 result = (int)((wxWindow const *)arg1)->GetMaxWidth();
27138
27139 wxPyEndAllowThreads(__tstate);
27140 if (PyErr_Occurred()) SWIG_fail;
27141 }
27142 {
27143 resultobj = SWIG_From_int((int)(result));
27144 }
27145 return resultobj;
27146 fail:
27147 return NULL;
27148 }
27149
27150
27151 static PyObject *_wrap_Window_GetMaxHeight(PyObject *, PyObject *args, PyObject *kwargs) {
27152 PyObject *resultobj;
27153 wxWindow *arg1 = (wxWindow *) 0 ;
27154 int result;
27155 PyObject * obj0 = 0 ;
27156 char *kwnames[] = {
27157 (char *) "self", NULL
27158 };
27159
27160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail;
27161 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27162 if (SWIG_arg_fail(1)) SWIG_fail;
27163 {
27164 PyThreadState* __tstate = wxPyBeginAllowThreads();
27165 result = (int)((wxWindow const *)arg1)->GetMaxHeight();
27166
27167 wxPyEndAllowThreads(__tstate);
27168 if (PyErr_Occurred()) SWIG_fail;
27169 }
27170 {
27171 resultobj = SWIG_From_int((int)(result));
27172 }
27173 return resultobj;
27174 fail:
27175 return NULL;
27176 }
27177
27178
27179 static PyObject *_wrap_Window_SetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
27180 PyObject *resultobj;
27181 wxWindow *arg1 = (wxWindow *) 0 ;
27182 wxSize *arg2 = 0 ;
27183 wxSize temp2 ;
27184 PyObject * obj0 = 0 ;
27185 PyObject * obj1 = 0 ;
27186 char *kwnames[] = {
27187 (char *) "self",(char *) "size", NULL
27188 };
27189
27190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail;
27191 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27192 if (SWIG_arg_fail(1)) SWIG_fail;
27193 {
27194 arg2 = &temp2;
27195 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
27196 }
27197 {
27198 PyThreadState* __tstate = wxPyBeginAllowThreads();
27199 (arg1)->SetVirtualSize((wxSize const &)*arg2);
27200
27201 wxPyEndAllowThreads(__tstate);
27202 if (PyErr_Occurred()) SWIG_fail;
27203 }
27204 Py_INCREF(Py_None); resultobj = Py_None;
27205 return resultobj;
27206 fail:
27207 return NULL;
27208 }
27209
27210
27211 static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
27212 PyObject *resultobj;
27213 wxWindow *arg1 = (wxWindow *) 0 ;
27214 int arg2 ;
27215 int arg3 ;
27216 PyObject * obj0 = 0 ;
27217 PyObject * obj1 = 0 ;
27218 PyObject * obj2 = 0 ;
27219 char *kwnames[] = {
27220 (char *) "self",(char *) "w",(char *) "h", NULL
27221 };
27222
27223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
27224 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27225 if (SWIG_arg_fail(1)) SWIG_fail;
27226 {
27227 arg2 = (int)(SWIG_As_int(obj1));
27228 if (SWIG_arg_fail(2)) SWIG_fail;
27229 }
27230 {
27231 arg3 = (int)(SWIG_As_int(obj2));
27232 if (SWIG_arg_fail(3)) SWIG_fail;
27233 }
27234 {
27235 PyThreadState* __tstate = wxPyBeginAllowThreads();
27236 (arg1)->SetVirtualSize(arg2,arg3);
27237
27238 wxPyEndAllowThreads(__tstate);
27239 if (PyErr_Occurred()) SWIG_fail;
27240 }
27241 Py_INCREF(Py_None); resultobj = Py_None;
27242 return resultobj;
27243 fail:
27244 return NULL;
27245 }
27246
27247
27248 static PyObject *_wrap_Window_GetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
27249 PyObject *resultobj;
27250 wxWindow *arg1 = (wxWindow *) 0 ;
27251 wxSize result;
27252 PyObject * obj0 = 0 ;
27253 char *kwnames[] = {
27254 (char *) "self", NULL
27255 };
27256
27257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail;
27258 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27259 if (SWIG_arg_fail(1)) SWIG_fail;
27260 {
27261 PyThreadState* __tstate = wxPyBeginAllowThreads();
27262 result = ((wxWindow const *)arg1)->GetVirtualSize();
27263
27264 wxPyEndAllowThreads(__tstate);
27265 if (PyErr_Occurred()) SWIG_fail;
27266 }
27267 {
27268 wxSize * resultptr;
27269 resultptr = new wxSize((wxSize &)(result));
27270 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
27271 }
27272 return resultobj;
27273 fail:
27274 return NULL;
27275 }
27276
27277
27278 static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
27279 PyObject *resultobj;
27280 wxWindow *arg1 = (wxWindow *) 0 ;
27281 int *arg2 = (int *) 0 ;
27282 int *arg3 = (int *) 0 ;
27283 int temp2 ;
27284 int res2 = 0 ;
27285 int temp3 ;
27286 int res3 = 0 ;
27287 PyObject * obj0 = 0 ;
27288 char *kwnames[] = {
27289 (char *) "self", NULL
27290 };
27291
27292 arg2 = &temp2; res2 = SWIG_NEWOBJ;
27293 arg3 = &temp3; res3 = SWIG_NEWOBJ;
27294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail;
27295 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27296 if (SWIG_arg_fail(1)) SWIG_fail;
27297 {
27298 PyThreadState* __tstate = wxPyBeginAllowThreads();
27299 ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3);
27300
27301 wxPyEndAllowThreads(__tstate);
27302 if (PyErr_Occurred()) SWIG_fail;
27303 }
27304 Py_INCREF(Py_None); resultobj = Py_None;
27305 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
27306 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
27307 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
27308 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
27309 return resultobj;
27310 fail:
27311 return NULL;
27312 }
27313
27314
27315 static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
27316 PyObject *resultobj;
27317 wxWindow *arg1 = (wxWindow *) 0 ;
27318 wxSize result;
27319 PyObject * obj0 = 0 ;
27320 char *kwnames[] = {
27321 (char *) "self", NULL
27322 };
27323
27324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail;
27325 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27326 if (SWIG_arg_fail(1)) SWIG_fail;
27327 {
27328 PyThreadState* __tstate = wxPyBeginAllowThreads();
27329 result = ((wxWindow const *)arg1)->GetBestVirtualSize();
27330
27331 wxPyEndAllowThreads(__tstate);
27332 if (PyErr_Occurred()) SWIG_fail;
27333 }
27334 {
27335 wxSize * resultptr;
27336 resultptr = new wxSize((wxSize &)(result));
27337 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
27338 }
27339 return resultobj;
27340 fail:
27341 return NULL;
27342 }
27343
27344
27345 static PyObject *_wrap_Window_Show(PyObject *, PyObject *args, PyObject *kwargs) {
27346 PyObject *resultobj;
27347 wxWindow *arg1 = (wxWindow *) 0 ;
27348 bool arg2 = (bool) true ;
27349 bool result;
27350 PyObject * obj0 = 0 ;
27351 PyObject * obj1 = 0 ;
27352 char *kwnames[] = {
27353 (char *) "self",(char *) "show", NULL
27354 };
27355
27356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail;
27357 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27358 if (SWIG_arg_fail(1)) SWIG_fail;
27359 if (obj1) {
27360 {
27361 arg2 = (bool)(SWIG_As_bool(obj1));
27362 if (SWIG_arg_fail(2)) SWIG_fail;
27363 }
27364 }
27365 {
27366 PyThreadState* __tstate = wxPyBeginAllowThreads();
27367 result = (bool)(arg1)->Show(arg2);
27368
27369 wxPyEndAllowThreads(__tstate);
27370 if (PyErr_Occurred()) SWIG_fail;
27371 }
27372 {
27373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27374 }
27375 return resultobj;
27376 fail:
27377 return NULL;
27378 }
27379
27380
27381 static PyObject *_wrap_Window_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
27382 PyObject *resultobj;
27383 wxWindow *arg1 = (wxWindow *) 0 ;
27384 bool result;
27385 PyObject * obj0 = 0 ;
27386 char *kwnames[] = {
27387 (char *) "self", NULL
27388 };
27389
27390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail;
27391 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27392 if (SWIG_arg_fail(1)) SWIG_fail;
27393 {
27394 PyThreadState* __tstate = wxPyBeginAllowThreads();
27395 result = (bool)(arg1)->Hide();
27396
27397 wxPyEndAllowThreads(__tstate);
27398 if (PyErr_Occurred()) SWIG_fail;
27399 }
27400 {
27401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27402 }
27403 return resultobj;
27404 fail:
27405 return NULL;
27406 }
27407
27408
27409 static PyObject *_wrap_Window_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
27410 PyObject *resultobj;
27411 wxWindow *arg1 = (wxWindow *) 0 ;
27412 bool arg2 = (bool) true ;
27413 bool result;
27414 PyObject * obj0 = 0 ;
27415 PyObject * obj1 = 0 ;
27416 char *kwnames[] = {
27417 (char *) "self",(char *) "enable", NULL
27418 };
27419
27420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail;
27421 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27422 if (SWIG_arg_fail(1)) SWIG_fail;
27423 if (obj1) {
27424 {
27425 arg2 = (bool)(SWIG_As_bool(obj1));
27426 if (SWIG_arg_fail(2)) SWIG_fail;
27427 }
27428 }
27429 {
27430 PyThreadState* __tstate = wxPyBeginAllowThreads();
27431 result = (bool)(arg1)->Enable(arg2);
27432
27433 wxPyEndAllowThreads(__tstate);
27434 if (PyErr_Occurred()) SWIG_fail;
27435 }
27436 {
27437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27438 }
27439 return resultobj;
27440 fail:
27441 return NULL;
27442 }
27443
27444
27445 static PyObject *_wrap_Window_Disable(PyObject *, PyObject *args, PyObject *kwargs) {
27446 PyObject *resultobj;
27447 wxWindow *arg1 = (wxWindow *) 0 ;
27448 bool result;
27449 PyObject * obj0 = 0 ;
27450 char *kwnames[] = {
27451 (char *) "self", NULL
27452 };
27453
27454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail;
27455 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27456 if (SWIG_arg_fail(1)) SWIG_fail;
27457 {
27458 PyThreadState* __tstate = wxPyBeginAllowThreads();
27459 result = (bool)(arg1)->Disable();
27460
27461 wxPyEndAllowThreads(__tstate);
27462 if (PyErr_Occurred()) SWIG_fail;
27463 }
27464 {
27465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27466 }
27467 return resultobj;
27468 fail:
27469 return NULL;
27470 }
27471
27472
27473 static PyObject *_wrap_Window_IsShown(PyObject *, PyObject *args, PyObject *kwargs) {
27474 PyObject *resultobj;
27475 wxWindow *arg1 = (wxWindow *) 0 ;
27476 bool result;
27477 PyObject * obj0 = 0 ;
27478 char *kwnames[] = {
27479 (char *) "self", NULL
27480 };
27481
27482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail;
27483 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27484 if (SWIG_arg_fail(1)) SWIG_fail;
27485 {
27486 PyThreadState* __tstate = wxPyBeginAllowThreads();
27487 result = (bool)((wxWindow const *)arg1)->IsShown();
27488
27489 wxPyEndAllowThreads(__tstate);
27490 if (PyErr_Occurred()) SWIG_fail;
27491 }
27492 {
27493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27494 }
27495 return resultobj;
27496 fail:
27497 return NULL;
27498 }
27499
27500
27501 static PyObject *_wrap_Window_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
27502 PyObject *resultobj;
27503 wxWindow *arg1 = (wxWindow *) 0 ;
27504 bool result;
27505 PyObject * obj0 = 0 ;
27506 char *kwnames[] = {
27507 (char *) "self", NULL
27508 };
27509
27510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail;
27511 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27512 if (SWIG_arg_fail(1)) SWIG_fail;
27513 {
27514 PyThreadState* __tstate = wxPyBeginAllowThreads();
27515 result = (bool)((wxWindow const *)arg1)->IsEnabled();
27516
27517 wxPyEndAllowThreads(__tstate);
27518 if (PyErr_Occurred()) SWIG_fail;
27519 }
27520 {
27521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27522 }
27523 return resultobj;
27524 fail:
27525 return NULL;
27526 }
27527
27528
27529 static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) {
27530 PyObject *resultobj;
27531 wxWindow *arg1 = (wxWindow *) 0 ;
27532 long arg2 ;
27533 PyObject * obj0 = 0 ;
27534 PyObject * obj1 = 0 ;
27535 char *kwnames[] = {
27536 (char *) "self",(char *) "style", NULL
27537 };
27538
27539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
27540 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27541 if (SWIG_arg_fail(1)) SWIG_fail;
27542 {
27543 arg2 = (long)(SWIG_As_long(obj1));
27544 if (SWIG_arg_fail(2)) SWIG_fail;
27545 }
27546 {
27547 PyThreadState* __tstate = wxPyBeginAllowThreads();
27548 (arg1)->SetWindowStyleFlag(arg2);
27549
27550 wxPyEndAllowThreads(__tstate);
27551 if (PyErr_Occurred()) SWIG_fail;
27552 }
27553 Py_INCREF(Py_None); resultobj = Py_None;
27554 return resultobj;
27555 fail:
27556 return NULL;
27557 }
27558
27559
27560 static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) {
27561 PyObject *resultobj;
27562 wxWindow *arg1 = (wxWindow *) 0 ;
27563 long result;
27564 PyObject * obj0 = 0 ;
27565 char *kwnames[] = {
27566 (char *) "self", NULL
27567 };
27568
27569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail;
27570 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27571 if (SWIG_arg_fail(1)) SWIG_fail;
27572 {
27573 PyThreadState* __tstate = wxPyBeginAllowThreads();
27574 result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag();
27575
27576 wxPyEndAllowThreads(__tstate);
27577 if (PyErr_Occurred()) SWIG_fail;
27578 }
27579 {
27580 resultobj = SWIG_From_long((long)(result));
27581 }
27582 return resultobj;
27583 fail:
27584 return NULL;
27585 }
27586
27587
27588 static PyObject *_wrap_Window_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) {
27589 PyObject *resultobj;
27590 wxWindow *arg1 = (wxWindow *) 0 ;
27591 int arg2 ;
27592 bool result;
27593 PyObject * obj0 = 0 ;
27594 PyObject * obj1 = 0 ;
27595 char *kwnames[] = {
27596 (char *) "self",(char *) "flag", NULL
27597 };
27598
27599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail;
27600 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27601 if (SWIG_arg_fail(1)) SWIG_fail;
27602 {
27603 arg2 = (int)(SWIG_As_int(obj1));
27604 if (SWIG_arg_fail(2)) SWIG_fail;
27605 }
27606 {
27607 PyThreadState* __tstate = wxPyBeginAllowThreads();
27608 result = (bool)((wxWindow const *)arg1)->HasFlag(arg2);
27609
27610 wxPyEndAllowThreads(__tstate);
27611 if (PyErr_Occurred()) SWIG_fail;
27612 }
27613 {
27614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27615 }
27616 return resultobj;
27617 fail:
27618 return NULL;
27619 }
27620
27621
27622 static PyObject *_wrap_Window_IsRetained(PyObject *, PyObject *args, PyObject *kwargs) {
27623 PyObject *resultobj;
27624 wxWindow *arg1 = (wxWindow *) 0 ;
27625 bool result;
27626 PyObject * obj0 = 0 ;
27627 char *kwnames[] = {
27628 (char *) "self", NULL
27629 };
27630
27631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail;
27632 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27633 if (SWIG_arg_fail(1)) SWIG_fail;
27634 {
27635 PyThreadState* __tstate = wxPyBeginAllowThreads();
27636 result = (bool)((wxWindow const *)arg1)->IsRetained();
27637
27638 wxPyEndAllowThreads(__tstate);
27639 if (PyErr_Occurred()) SWIG_fail;
27640 }
27641 {
27642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27643 }
27644 return resultobj;
27645 fail:
27646 return NULL;
27647 }
27648
27649
27650 static PyObject *_wrap_Window_SetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) {
27651 PyObject *resultobj;
27652 wxWindow *arg1 = (wxWindow *) 0 ;
27653 long arg2 ;
27654 PyObject * obj0 = 0 ;
27655 PyObject * obj1 = 0 ;
27656 char *kwnames[] = {
27657 (char *) "self",(char *) "exStyle", NULL
27658 };
27659
27660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail;
27661 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27662 if (SWIG_arg_fail(1)) SWIG_fail;
27663 {
27664 arg2 = (long)(SWIG_As_long(obj1));
27665 if (SWIG_arg_fail(2)) SWIG_fail;
27666 }
27667 {
27668 PyThreadState* __tstate = wxPyBeginAllowThreads();
27669 (arg1)->SetExtraStyle(arg2);
27670
27671 wxPyEndAllowThreads(__tstate);
27672 if (PyErr_Occurred()) SWIG_fail;
27673 }
27674 Py_INCREF(Py_None); resultobj = Py_None;
27675 return resultobj;
27676 fail:
27677 return NULL;
27678 }
27679
27680
27681 static PyObject *_wrap_Window_GetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) {
27682 PyObject *resultobj;
27683 wxWindow *arg1 = (wxWindow *) 0 ;
27684 long result;
27685 PyObject * obj0 = 0 ;
27686 char *kwnames[] = {
27687 (char *) "self", NULL
27688 };
27689
27690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail;
27691 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27692 if (SWIG_arg_fail(1)) SWIG_fail;
27693 {
27694 PyThreadState* __tstate = wxPyBeginAllowThreads();
27695 result = (long)((wxWindow const *)arg1)->GetExtraStyle();
27696
27697 wxPyEndAllowThreads(__tstate);
27698 if (PyErr_Occurred()) SWIG_fail;
27699 }
27700 {
27701 resultobj = SWIG_From_long((long)(result));
27702 }
27703 return resultobj;
27704 fail:
27705 return NULL;
27706 }
27707
27708
27709 static PyObject *_wrap_Window_MakeModal(PyObject *, PyObject *args, PyObject *kwargs) {
27710 PyObject *resultobj;
27711 wxWindow *arg1 = (wxWindow *) 0 ;
27712 bool arg2 = (bool) true ;
27713 PyObject * obj0 = 0 ;
27714 PyObject * obj1 = 0 ;
27715 char *kwnames[] = {
27716 (char *) "self",(char *) "modal", NULL
27717 };
27718
27719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail;
27720 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27721 if (SWIG_arg_fail(1)) SWIG_fail;
27722 if (obj1) {
27723 {
27724 arg2 = (bool)(SWIG_As_bool(obj1));
27725 if (SWIG_arg_fail(2)) SWIG_fail;
27726 }
27727 }
27728 {
27729 PyThreadState* __tstate = wxPyBeginAllowThreads();
27730 (arg1)->MakeModal(arg2);
27731
27732 wxPyEndAllowThreads(__tstate);
27733 if (PyErr_Occurred()) SWIG_fail;
27734 }
27735 Py_INCREF(Py_None); resultobj = Py_None;
27736 return resultobj;
27737 fail:
27738 return NULL;
27739 }
27740
27741
27742 static PyObject *_wrap_Window_SetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
27743 PyObject *resultobj;
27744 wxWindow *arg1 = (wxWindow *) 0 ;
27745 bool arg2 ;
27746 PyObject * obj0 = 0 ;
27747 PyObject * obj1 = 0 ;
27748 char *kwnames[] = {
27749 (char *) "self",(char *) "enableTheme", NULL
27750 };
27751
27752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail;
27753 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27754 if (SWIG_arg_fail(1)) SWIG_fail;
27755 {
27756 arg2 = (bool)(SWIG_As_bool(obj1));
27757 if (SWIG_arg_fail(2)) SWIG_fail;
27758 }
27759 {
27760 PyThreadState* __tstate = wxPyBeginAllowThreads();
27761 (arg1)->SetThemeEnabled(arg2);
27762
27763 wxPyEndAllowThreads(__tstate);
27764 if (PyErr_Occurred()) SWIG_fail;
27765 }
27766 Py_INCREF(Py_None); resultobj = Py_None;
27767 return resultobj;
27768 fail:
27769 return NULL;
27770 }
27771
27772
27773 static PyObject *_wrap_Window_GetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
27774 PyObject *resultobj;
27775 wxWindow *arg1 = (wxWindow *) 0 ;
27776 bool result;
27777 PyObject * obj0 = 0 ;
27778 char *kwnames[] = {
27779 (char *) "self", NULL
27780 };
27781
27782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail;
27783 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27784 if (SWIG_arg_fail(1)) SWIG_fail;
27785 {
27786 PyThreadState* __tstate = wxPyBeginAllowThreads();
27787 result = (bool)((wxWindow const *)arg1)->GetThemeEnabled();
27788
27789 wxPyEndAllowThreads(__tstate);
27790 if (PyErr_Occurred()) SWIG_fail;
27791 }
27792 {
27793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27794 }
27795 return resultobj;
27796 fail:
27797 return NULL;
27798 }
27799
27800
27801 static PyObject *_wrap_Window_SetFocus(PyObject *, PyObject *args, PyObject *kwargs) {
27802 PyObject *resultobj;
27803 wxWindow *arg1 = (wxWindow *) 0 ;
27804 PyObject * obj0 = 0 ;
27805 char *kwnames[] = {
27806 (char *) "self", NULL
27807 };
27808
27809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail;
27810 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27811 if (SWIG_arg_fail(1)) SWIG_fail;
27812 {
27813 PyThreadState* __tstate = wxPyBeginAllowThreads();
27814 (arg1)->SetFocus();
27815
27816 wxPyEndAllowThreads(__tstate);
27817 if (PyErr_Occurred()) SWIG_fail;
27818 }
27819 Py_INCREF(Py_None); resultobj = Py_None;
27820 return resultobj;
27821 fail:
27822 return NULL;
27823 }
27824
27825
27826 static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *, PyObject *args, PyObject *kwargs) {
27827 PyObject *resultobj;
27828 wxWindow *arg1 = (wxWindow *) 0 ;
27829 PyObject * obj0 = 0 ;
27830 char *kwnames[] = {
27831 (char *) "self", NULL
27832 };
27833
27834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail;
27835 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27836 if (SWIG_arg_fail(1)) SWIG_fail;
27837 {
27838 PyThreadState* __tstate = wxPyBeginAllowThreads();
27839 (arg1)->SetFocusFromKbd();
27840
27841 wxPyEndAllowThreads(__tstate);
27842 if (PyErr_Occurred()) SWIG_fail;
27843 }
27844 Py_INCREF(Py_None); resultobj = Py_None;
27845 return resultobj;
27846 fail:
27847 return NULL;
27848 }
27849
27850
27851 static PyObject *_wrap_Window_FindFocus(PyObject *, PyObject *args, PyObject *kwargs) {
27852 PyObject *resultobj;
27853 wxWindow *result;
27854 char *kwnames[] = {
27855 NULL
27856 };
27857
27858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail;
27859 {
27860 if (!wxPyCheckForApp()) SWIG_fail;
27861 PyThreadState* __tstate = wxPyBeginAllowThreads();
27862 result = (wxWindow *)wxWindow::FindFocus();
27863
27864 wxPyEndAllowThreads(__tstate);
27865 if (PyErr_Occurred()) SWIG_fail;
27866 }
27867 {
27868 resultobj = wxPyMake_wxObject(result, 0);
27869 }
27870 return resultobj;
27871 fail:
27872 return NULL;
27873 }
27874
27875
27876 static PyObject *_wrap_Window_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) {
27877 PyObject *resultobj;
27878 wxWindow *arg1 = (wxWindow *) 0 ;
27879 bool result;
27880 PyObject * obj0 = 0 ;
27881 char *kwnames[] = {
27882 (char *) "self", NULL
27883 };
27884
27885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail;
27886 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27887 if (SWIG_arg_fail(1)) SWIG_fail;
27888 {
27889 PyThreadState* __tstate = wxPyBeginAllowThreads();
27890 result = (bool)((wxWindow const *)arg1)->AcceptsFocus();
27891
27892 wxPyEndAllowThreads(__tstate);
27893 if (PyErr_Occurred()) SWIG_fail;
27894 }
27895 {
27896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27897 }
27898 return resultobj;
27899 fail:
27900 return NULL;
27901 }
27902
27903
27904 static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) {
27905 PyObject *resultobj;
27906 wxWindow *arg1 = (wxWindow *) 0 ;
27907 bool result;
27908 PyObject * obj0 = 0 ;
27909 char *kwnames[] = {
27910 (char *) "self", NULL
27911 };
27912
27913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
27914 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27915 if (SWIG_arg_fail(1)) SWIG_fail;
27916 {
27917 PyThreadState* __tstate = wxPyBeginAllowThreads();
27918 result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard();
27919
27920 wxPyEndAllowThreads(__tstate);
27921 if (PyErr_Occurred()) SWIG_fail;
27922 }
27923 {
27924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27925 }
27926 return resultobj;
27927 fail:
27928 return NULL;
27929 }
27930
27931
27932 static PyObject *_wrap_Window_GetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) {
27933 PyObject *resultobj;
27934 wxWindow *arg1 = (wxWindow *) 0 ;
27935 wxWindow *result;
27936 PyObject * obj0 = 0 ;
27937 char *kwnames[] = {
27938 (char *) "self", NULL
27939 };
27940
27941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail;
27942 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27943 if (SWIG_arg_fail(1)) SWIG_fail;
27944 {
27945 PyThreadState* __tstate = wxPyBeginAllowThreads();
27946 result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem();
27947
27948 wxPyEndAllowThreads(__tstate);
27949 if (PyErr_Occurred()) SWIG_fail;
27950 }
27951 {
27952 resultobj = wxPyMake_wxObject(result, 0);
27953 }
27954 return resultobj;
27955 fail:
27956 return NULL;
27957 }
27958
27959
27960 static PyObject *_wrap_Window_SetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) {
27961 PyObject *resultobj;
27962 wxWindow *arg1 = (wxWindow *) 0 ;
27963 wxWindow *arg2 = (wxWindow *) 0 ;
27964 wxWindow *result;
27965 PyObject * obj0 = 0 ;
27966 PyObject * obj1 = 0 ;
27967 char *kwnames[] = {
27968 (char *) "self",(char *) "child", NULL
27969 };
27970
27971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail;
27972 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27973 if (SWIG_arg_fail(1)) SWIG_fail;
27974 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
27975 if (SWIG_arg_fail(2)) SWIG_fail;
27976 {
27977 PyThreadState* __tstate = wxPyBeginAllowThreads();
27978 result = (wxWindow *)(arg1)->SetDefaultItem(arg2);
27979
27980 wxPyEndAllowThreads(__tstate);
27981 if (PyErr_Occurred()) SWIG_fail;
27982 }
27983 {
27984 resultobj = wxPyMake_wxObject(result, 0);
27985 }
27986 return resultobj;
27987 fail:
27988 return NULL;
27989 }
27990
27991
27992 static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) {
27993 PyObject *resultobj;
27994 wxWindow *arg1 = (wxWindow *) 0 ;
27995 wxWindow *arg2 = (wxWindow *) 0 ;
27996 PyObject * obj0 = 0 ;
27997 PyObject * obj1 = 0 ;
27998 char *kwnames[] = {
27999 (char *) "self",(char *) "win", NULL
28000 };
28001
28002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail;
28003 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28004 if (SWIG_arg_fail(1)) SWIG_fail;
28005 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28006 if (SWIG_arg_fail(2)) SWIG_fail;
28007 {
28008 PyThreadState* __tstate = wxPyBeginAllowThreads();
28009 (arg1)->SetTmpDefaultItem(arg2);
28010
28011 wxPyEndAllowThreads(__tstate);
28012 if (PyErr_Occurred()) SWIG_fail;
28013 }
28014 Py_INCREF(Py_None); resultobj = Py_None;
28015 return resultobj;
28016 fail:
28017 return NULL;
28018 }
28019
28020
28021 static PyObject *_wrap_Window_Navigate(PyObject *, PyObject *args, PyObject *kwargs) {
28022 PyObject *resultobj;
28023 wxWindow *arg1 = (wxWindow *) 0 ;
28024 int arg2 = (int) wxNavigationKeyEvent::IsForward ;
28025 bool result;
28026 PyObject * obj0 = 0 ;
28027 PyObject * obj1 = 0 ;
28028 char *kwnames[] = {
28029 (char *) "self",(char *) "flags", NULL
28030 };
28031
28032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail;
28033 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28034 if (SWIG_arg_fail(1)) SWIG_fail;
28035 if (obj1) {
28036 {
28037 arg2 = (int)(SWIG_As_int(obj1));
28038 if (SWIG_arg_fail(2)) SWIG_fail;
28039 }
28040 }
28041 {
28042 PyThreadState* __tstate = wxPyBeginAllowThreads();
28043 result = (bool)(arg1)->Navigate(arg2);
28044
28045 wxPyEndAllowThreads(__tstate);
28046 if (PyErr_Occurred()) SWIG_fail;
28047 }
28048 {
28049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28050 }
28051 return resultobj;
28052 fail:
28053 return NULL;
28054 }
28055
28056
28057 static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) {
28058 PyObject *resultobj;
28059 wxWindow *arg1 = (wxWindow *) 0 ;
28060 wxWindow *arg2 = (wxWindow *) 0 ;
28061 PyObject * obj0 = 0 ;
28062 PyObject * obj1 = 0 ;
28063 char *kwnames[] = {
28064 (char *) "self",(char *) "win", NULL
28065 };
28066
28067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail;
28068 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28069 if (SWIG_arg_fail(1)) SWIG_fail;
28070 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28071 if (SWIG_arg_fail(2)) SWIG_fail;
28072 {
28073 PyThreadState* __tstate = wxPyBeginAllowThreads();
28074 (arg1)->MoveAfterInTabOrder(arg2);
28075
28076 wxPyEndAllowThreads(__tstate);
28077 if (PyErr_Occurred()) SWIG_fail;
28078 }
28079 Py_INCREF(Py_None); resultobj = Py_None;
28080 return resultobj;
28081 fail:
28082 return NULL;
28083 }
28084
28085
28086 static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) {
28087 PyObject *resultobj;
28088 wxWindow *arg1 = (wxWindow *) 0 ;
28089 wxWindow *arg2 = (wxWindow *) 0 ;
28090 PyObject * obj0 = 0 ;
28091 PyObject * obj1 = 0 ;
28092 char *kwnames[] = {
28093 (char *) "self",(char *) "win", NULL
28094 };
28095
28096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail;
28097 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28098 if (SWIG_arg_fail(1)) SWIG_fail;
28099 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28100 if (SWIG_arg_fail(2)) SWIG_fail;
28101 {
28102 PyThreadState* __tstate = wxPyBeginAllowThreads();
28103 (arg1)->MoveBeforeInTabOrder(arg2);
28104
28105 wxPyEndAllowThreads(__tstate);
28106 if (PyErr_Occurred()) SWIG_fail;
28107 }
28108 Py_INCREF(Py_None); resultobj = Py_None;
28109 return resultobj;
28110 fail:
28111 return NULL;
28112 }
28113
28114
28115 static PyObject *_wrap_Window_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) {
28116 PyObject *resultobj;
28117 wxWindow *arg1 = (wxWindow *) 0 ;
28118 PyObject *result;
28119 PyObject * obj0 = 0 ;
28120 char *kwnames[] = {
28121 (char *) "self", NULL
28122 };
28123
28124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail;
28125 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28126 if (SWIG_arg_fail(1)) SWIG_fail;
28127 {
28128 PyThreadState* __tstate = wxPyBeginAllowThreads();
28129 result = (PyObject *)wxWindow_GetChildren(arg1);
28130
28131 wxPyEndAllowThreads(__tstate);
28132 if (PyErr_Occurred()) SWIG_fail;
28133 }
28134 resultobj = result;
28135 return resultobj;
28136 fail:
28137 return NULL;
28138 }
28139
28140
28141 static PyObject *_wrap_Window_GetParent(PyObject *, PyObject *args, PyObject *kwargs) {
28142 PyObject *resultobj;
28143 wxWindow *arg1 = (wxWindow *) 0 ;
28144 wxWindow *result;
28145 PyObject * obj0 = 0 ;
28146 char *kwnames[] = {
28147 (char *) "self", NULL
28148 };
28149
28150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail;
28151 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28152 if (SWIG_arg_fail(1)) SWIG_fail;
28153 {
28154 PyThreadState* __tstate = wxPyBeginAllowThreads();
28155 result = (wxWindow *)((wxWindow const *)arg1)->GetParent();
28156
28157 wxPyEndAllowThreads(__tstate);
28158 if (PyErr_Occurred()) SWIG_fail;
28159 }
28160 {
28161 resultobj = wxPyMake_wxObject(result, 0);
28162 }
28163 return resultobj;
28164 fail:
28165 return NULL;
28166 }
28167
28168
28169 static PyObject *_wrap_Window_GetGrandParent(PyObject *, PyObject *args, PyObject *kwargs) {
28170 PyObject *resultobj;
28171 wxWindow *arg1 = (wxWindow *) 0 ;
28172 wxWindow *result;
28173 PyObject * obj0 = 0 ;
28174 char *kwnames[] = {
28175 (char *) "self", NULL
28176 };
28177
28178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail;
28179 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28180 if (SWIG_arg_fail(1)) SWIG_fail;
28181 {
28182 PyThreadState* __tstate = wxPyBeginAllowThreads();
28183 result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent();
28184
28185 wxPyEndAllowThreads(__tstate);
28186 if (PyErr_Occurred()) SWIG_fail;
28187 }
28188 {
28189 resultobj = wxPyMake_wxObject(result, 0);
28190 }
28191 return resultobj;
28192 fail:
28193 return NULL;
28194 }
28195
28196
28197 static PyObject *_wrap_Window_IsTopLevel(PyObject *, PyObject *args, PyObject *kwargs) {
28198 PyObject *resultobj;
28199 wxWindow *arg1 = (wxWindow *) 0 ;
28200 bool result;
28201 PyObject * obj0 = 0 ;
28202 char *kwnames[] = {
28203 (char *) "self", NULL
28204 };
28205
28206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail;
28207 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28208 if (SWIG_arg_fail(1)) SWIG_fail;
28209 {
28210 PyThreadState* __tstate = wxPyBeginAllowThreads();
28211 result = (bool)((wxWindow const *)arg1)->IsTopLevel();
28212
28213 wxPyEndAllowThreads(__tstate);
28214 if (PyErr_Occurred()) SWIG_fail;
28215 }
28216 {
28217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28218 }
28219 return resultobj;
28220 fail:
28221 return NULL;
28222 }
28223
28224
28225 static PyObject *_wrap_Window_Reparent(PyObject *, PyObject *args, PyObject *kwargs) {
28226 PyObject *resultobj;
28227 wxWindow *arg1 = (wxWindow *) 0 ;
28228 wxWindow *arg2 = (wxWindow *) 0 ;
28229 bool result;
28230 PyObject * obj0 = 0 ;
28231 PyObject * obj1 = 0 ;
28232 char *kwnames[] = {
28233 (char *) "self",(char *) "newParent", NULL
28234 };
28235
28236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail;
28237 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28238 if (SWIG_arg_fail(1)) SWIG_fail;
28239 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28240 if (SWIG_arg_fail(2)) SWIG_fail;
28241 {
28242 PyThreadState* __tstate = wxPyBeginAllowThreads();
28243 result = (bool)(arg1)->Reparent(arg2);
28244
28245 wxPyEndAllowThreads(__tstate);
28246 if (PyErr_Occurred()) SWIG_fail;
28247 }
28248 {
28249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28250 }
28251 return resultobj;
28252 fail:
28253 return NULL;
28254 }
28255
28256
28257 static PyObject *_wrap_Window_AddChild(PyObject *, PyObject *args, PyObject *kwargs) {
28258 PyObject *resultobj;
28259 wxWindow *arg1 = (wxWindow *) 0 ;
28260 wxWindow *arg2 = (wxWindow *) 0 ;
28261 PyObject * obj0 = 0 ;
28262 PyObject * obj1 = 0 ;
28263 char *kwnames[] = {
28264 (char *) "self",(char *) "child", NULL
28265 };
28266
28267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail;
28268 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28269 if (SWIG_arg_fail(1)) SWIG_fail;
28270 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28271 if (SWIG_arg_fail(2)) SWIG_fail;
28272 {
28273 PyThreadState* __tstate = wxPyBeginAllowThreads();
28274 (arg1)->AddChild(arg2);
28275
28276 wxPyEndAllowThreads(__tstate);
28277 if (PyErr_Occurred()) SWIG_fail;
28278 }
28279 Py_INCREF(Py_None); resultobj = Py_None;
28280 return resultobj;
28281 fail:
28282 return NULL;
28283 }
28284
28285
28286 static PyObject *_wrap_Window_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) {
28287 PyObject *resultobj;
28288 wxWindow *arg1 = (wxWindow *) 0 ;
28289 wxWindow *arg2 = (wxWindow *) 0 ;
28290 PyObject * obj0 = 0 ;
28291 PyObject * obj1 = 0 ;
28292 char *kwnames[] = {
28293 (char *) "self",(char *) "child", NULL
28294 };
28295
28296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
28297 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28298 if (SWIG_arg_fail(1)) SWIG_fail;
28299 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28300 if (SWIG_arg_fail(2)) SWIG_fail;
28301 {
28302 PyThreadState* __tstate = wxPyBeginAllowThreads();
28303 (arg1)->RemoveChild(arg2);
28304
28305 wxPyEndAllowThreads(__tstate);
28306 if (PyErr_Occurred()) SWIG_fail;
28307 }
28308 Py_INCREF(Py_None); resultobj = Py_None;
28309 return resultobj;
28310 fail:
28311 return NULL;
28312 }
28313
28314
28315 static PyObject *_wrap_Window_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) {
28316 PyObject *resultobj;
28317 wxWindow *arg1 = (wxWindow *) 0 ;
28318 long arg2 ;
28319 wxWindow *result;
28320 PyObject * obj0 = 0 ;
28321 PyObject * obj1 = 0 ;
28322 char *kwnames[] = {
28323 (char *) "self",(char *) "winid", NULL
28324 };
28325
28326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail;
28327 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28328 if (SWIG_arg_fail(1)) SWIG_fail;
28329 {
28330 arg2 = (long)(SWIG_As_long(obj1));
28331 if (SWIG_arg_fail(2)) SWIG_fail;
28332 }
28333 {
28334 PyThreadState* __tstate = wxPyBeginAllowThreads();
28335 result = (wxWindow *)(arg1)->FindWindow(arg2);
28336
28337 wxPyEndAllowThreads(__tstate);
28338 if (PyErr_Occurred()) SWIG_fail;
28339 }
28340 {
28341 resultobj = wxPyMake_wxObject(result, 0);
28342 }
28343 return resultobj;
28344 fail:
28345 return NULL;
28346 }
28347
28348
28349 static PyObject *_wrap_Window_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) {
28350 PyObject *resultobj;
28351 wxWindow *arg1 = (wxWindow *) 0 ;
28352 wxString *arg2 = 0 ;
28353 wxWindow *result;
28354 bool temp2 = false ;
28355 PyObject * obj0 = 0 ;
28356 PyObject * obj1 = 0 ;
28357 char *kwnames[] = {
28358 (char *) "self",(char *) "name", NULL
28359 };
28360
28361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
28362 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28363 if (SWIG_arg_fail(1)) SWIG_fail;
28364 {
28365 arg2 = wxString_in_helper(obj1);
28366 if (arg2 == NULL) SWIG_fail;
28367 temp2 = true;
28368 }
28369 {
28370 PyThreadState* __tstate = wxPyBeginAllowThreads();
28371 result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2);
28372
28373 wxPyEndAllowThreads(__tstate);
28374 if (PyErr_Occurred()) SWIG_fail;
28375 }
28376 {
28377 resultobj = wxPyMake_wxObject(result, 0);
28378 }
28379 {
28380 if (temp2)
28381 delete arg2;
28382 }
28383 return resultobj;
28384 fail:
28385 {
28386 if (temp2)
28387 delete arg2;
28388 }
28389 return NULL;
28390 }
28391
28392
28393 static PyObject *_wrap_Window_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
28394 PyObject *resultobj;
28395 wxWindow *arg1 = (wxWindow *) 0 ;
28396 wxEvtHandler *result;
28397 PyObject * obj0 = 0 ;
28398 char *kwnames[] = {
28399 (char *) "self", NULL
28400 };
28401
28402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail;
28403 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28404 if (SWIG_arg_fail(1)) SWIG_fail;
28405 {
28406 PyThreadState* __tstate = wxPyBeginAllowThreads();
28407 result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler();
28408
28409 wxPyEndAllowThreads(__tstate);
28410 if (PyErr_Occurred()) SWIG_fail;
28411 }
28412 {
28413 resultobj = wxPyMake_wxObject(result, 0);
28414 }
28415 return resultobj;
28416 fail:
28417 return NULL;
28418 }
28419
28420
28421 static PyObject *_wrap_Window_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
28422 PyObject *resultobj;
28423 wxWindow *arg1 = (wxWindow *) 0 ;
28424 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
28425 PyObject * obj0 = 0 ;
28426 PyObject * obj1 = 0 ;
28427 char *kwnames[] = {
28428 (char *) "self",(char *) "handler", NULL
28429 };
28430
28431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
28432 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28433 if (SWIG_arg_fail(1)) SWIG_fail;
28434 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
28435 if (SWIG_arg_fail(2)) SWIG_fail;
28436 {
28437 PyThreadState* __tstate = wxPyBeginAllowThreads();
28438 (arg1)->SetEventHandler(arg2);
28439
28440 wxPyEndAllowThreads(__tstate);
28441 if (PyErr_Occurred()) SWIG_fail;
28442 }
28443 Py_INCREF(Py_None); resultobj = Py_None;
28444 return resultobj;
28445 fail:
28446 return NULL;
28447 }
28448
28449
28450 static PyObject *_wrap_Window_PushEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
28451 PyObject *resultobj;
28452 wxWindow *arg1 = (wxWindow *) 0 ;
28453 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
28454 PyObject * obj0 = 0 ;
28455 PyObject * obj1 = 0 ;
28456 char *kwnames[] = {
28457 (char *) "self",(char *) "handler", NULL
28458 };
28459
28460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail;
28461 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28462 if (SWIG_arg_fail(1)) SWIG_fail;
28463 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
28464 if (SWIG_arg_fail(2)) SWIG_fail;
28465 {
28466 PyThreadState* __tstate = wxPyBeginAllowThreads();
28467 (arg1)->PushEventHandler(arg2);
28468
28469 wxPyEndAllowThreads(__tstate);
28470 if (PyErr_Occurred()) SWIG_fail;
28471 }
28472 Py_INCREF(Py_None); resultobj = Py_None;
28473 return resultobj;
28474 fail:
28475 return NULL;
28476 }
28477
28478
28479 static PyObject *_wrap_Window_PopEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
28480 PyObject *resultobj;
28481 wxWindow *arg1 = (wxWindow *) 0 ;
28482 bool arg2 = (bool) false ;
28483 wxEvtHandler *result;
28484 PyObject * obj0 = 0 ;
28485 PyObject * obj1 = 0 ;
28486 char *kwnames[] = {
28487 (char *) "self",(char *) "deleteHandler", NULL
28488 };
28489
28490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail;
28491 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28492 if (SWIG_arg_fail(1)) SWIG_fail;
28493 if (obj1) {
28494 {
28495 arg2 = (bool)(SWIG_As_bool(obj1));
28496 if (SWIG_arg_fail(2)) SWIG_fail;
28497 }
28498 }
28499 {
28500 PyThreadState* __tstate = wxPyBeginAllowThreads();
28501 result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2);
28502
28503 wxPyEndAllowThreads(__tstate);
28504 if (PyErr_Occurred()) SWIG_fail;
28505 }
28506 {
28507 resultobj = wxPyMake_wxObject(result, 0);
28508 }
28509 return resultobj;
28510 fail:
28511 return NULL;
28512 }
28513
28514
28515 static PyObject *_wrap_Window_RemoveEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
28516 PyObject *resultobj;
28517 wxWindow *arg1 = (wxWindow *) 0 ;
28518 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
28519 bool result;
28520 PyObject * obj0 = 0 ;
28521 PyObject * obj1 = 0 ;
28522 char *kwnames[] = {
28523 (char *) "self",(char *) "handler", NULL
28524 };
28525
28526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail;
28527 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28528 if (SWIG_arg_fail(1)) SWIG_fail;
28529 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
28530 if (SWIG_arg_fail(2)) SWIG_fail;
28531 {
28532 PyThreadState* __tstate = wxPyBeginAllowThreads();
28533 result = (bool)(arg1)->RemoveEventHandler(arg2);
28534
28535 wxPyEndAllowThreads(__tstate);
28536 if (PyErr_Occurred()) SWIG_fail;
28537 }
28538 {
28539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28540 }
28541 return resultobj;
28542 fail:
28543 return NULL;
28544 }
28545
28546
28547 static PyObject *_wrap_Window_SetValidator(PyObject *, PyObject *args, PyObject *kwargs) {
28548 PyObject *resultobj;
28549 wxWindow *arg1 = (wxWindow *) 0 ;
28550 wxValidator *arg2 = 0 ;
28551 PyObject * obj0 = 0 ;
28552 PyObject * obj1 = 0 ;
28553 char *kwnames[] = {
28554 (char *) "self",(char *) "validator", NULL
28555 };
28556
28557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail;
28558 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28559 if (SWIG_arg_fail(1)) SWIG_fail;
28560 {
28561 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
28562 if (SWIG_arg_fail(2)) SWIG_fail;
28563 if (arg2 == NULL) {
28564 SWIG_null_ref("wxValidator");
28565 }
28566 if (SWIG_arg_fail(2)) SWIG_fail;
28567 }
28568 {
28569 PyThreadState* __tstate = wxPyBeginAllowThreads();
28570 (arg1)->SetValidator((wxValidator const &)*arg2);
28571
28572 wxPyEndAllowThreads(__tstate);
28573 if (PyErr_Occurred()) SWIG_fail;
28574 }
28575 Py_INCREF(Py_None); resultobj = Py_None;
28576 return resultobj;
28577 fail:
28578 return NULL;
28579 }
28580
28581
28582 static PyObject *_wrap_Window_GetValidator(PyObject *, PyObject *args, PyObject *kwargs) {
28583 PyObject *resultobj;
28584 wxWindow *arg1 = (wxWindow *) 0 ;
28585 wxValidator *result;
28586 PyObject * obj0 = 0 ;
28587 char *kwnames[] = {
28588 (char *) "self", NULL
28589 };
28590
28591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail;
28592 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28593 if (SWIG_arg_fail(1)) SWIG_fail;
28594 {
28595 PyThreadState* __tstate = wxPyBeginAllowThreads();
28596 result = (wxValidator *)(arg1)->GetValidator();
28597
28598 wxPyEndAllowThreads(__tstate);
28599 if (PyErr_Occurred()) SWIG_fail;
28600 }
28601 {
28602 resultobj = wxPyMake_wxObject(result, 0);
28603 }
28604 return resultobj;
28605 fail:
28606 return NULL;
28607 }
28608
28609
28610 static PyObject *_wrap_Window_Validate(PyObject *, PyObject *args, PyObject *kwargs) {
28611 PyObject *resultobj;
28612 wxWindow *arg1 = (wxWindow *) 0 ;
28613 bool result;
28614 PyObject * obj0 = 0 ;
28615 char *kwnames[] = {
28616 (char *) "self", NULL
28617 };
28618
28619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail;
28620 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28621 if (SWIG_arg_fail(1)) SWIG_fail;
28622 {
28623 PyThreadState* __tstate = wxPyBeginAllowThreads();
28624 result = (bool)(arg1)->Validate();
28625
28626 wxPyEndAllowThreads(__tstate);
28627 if (PyErr_Occurred()) SWIG_fail;
28628 }
28629 {
28630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28631 }
28632 return resultobj;
28633 fail:
28634 return NULL;
28635 }
28636
28637
28638 static PyObject *_wrap_Window_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) {
28639 PyObject *resultobj;
28640 wxWindow *arg1 = (wxWindow *) 0 ;
28641 bool result;
28642 PyObject * obj0 = 0 ;
28643 char *kwnames[] = {
28644 (char *) "self", NULL
28645 };
28646
28647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail;
28648 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28649 if (SWIG_arg_fail(1)) SWIG_fail;
28650 {
28651 PyThreadState* __tstate = wxPyBeginAllowThreads();
28652 result = (bool)(arg1)->TransferDataToWindow();
28653
28654 wxPyEndAllowThreads(__tstate);
28655 if (PyErr_Occurred()) SWIG_fail;
28656 }
28657 {
28658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28659 }
28660 return resultobj;
28661 fail:
28662 return NULL;
28663 }
28664
28665
28666 static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
28667 PyObject *resultobj;
28668 wxWindow *arg1 = (wxWindow *) 0 ;
28669 bool result;
28670 PyObject * obj0 = 0 ;
28671 char *kwnames[] = {
28672 (char *) "self", NULL
28673 };
28674
28675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail;
28676 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28677 if (SWIG_arg_fail(1)) SWIG_fail;
28678 {
28679 PyThreadState* __tstate = wxPyBeginAllowThreads();
28680 result = (bool)(arg1)->TransferDataFromWindow();
28681
28682 wxPyEndAllowThreads(__tstate);
28683 if (PyErr_Occurred()) SWIG_fail;
28684 }
28685 {
28686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28687 }
28688 return resultobj;
28689 fail:
28690 return NULL;
28691 }
28692
28693
28694 static PyObject *_wrap_Window_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) {
28695 PyObject *resultobj;
28696 wxWindow *arg1 = (wxWindow *) 0 ;
28697 PyObject * obj0 = 0 ;
28698 char *kwnames[] = {
28699 (char *) "self", NULL
28700 };
28701
28702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail;
28703 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28704 if (SWIG_arg_fail(1)) SWIG_fail;
28705 {
28706 PyThreadState* __tstate = wxPyBeginAllowThreads();
28707 (arg1)->InitDialog();
28708
28709 wxPyEndAllowThreads(__tstate);
28710 if (PyErr_Occurred()) SWIG_fail;
28711 }
28712 Py_INCREF(Py_None); resultobj = Py_None;
28713 return resultobj;
28714 fail:
28715 return NULL;
28716 }
28717
28718
28719 static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) {
28720 PyObject *resultobj;
28721 wxWindow *arg1 = (wxWindow *) 0 ;
28722 wxAcceleratorTable *arg2 = 0 ;
28723 PyObject * obj0 = 0 ;
28724 PyObject * obj1 = 0 ;
28725 char *kwnames[] = {
28726 (char *) "self",(char *) "accel", NULL
28727 };
28728
28729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail;
28730 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28731 if (SWIG_arg_fail(1)) SWIG_fail;
28732 {
28733 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_EXCEPTION | 0);
28734 if (SWIG_arg_fail(2)) SWIG_fail;
28735 if (arg2 == NULL) {
28736 SWIG_null_ref("wxAcceleratorTable");
28737 }
28738 if (SWIG_arg_fail(2)) SWIG_fail;
28739 }
28740 {
28741 PyThreadState* __tstate = wxPyBeginAllowThreads();
28742 (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2);
28743
28744 wxPyEndAllowThreads(__tstate);
28745 if (PyErr_Occurred()) SWIG_fail;
28746 }
28747 Py_INCREF(Py_None); resultobj = Py_None;
28748 return resultobj;
28749 fail:
28750 return NULL;
28751 }
28752
28753
28754 static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) {
28755 PyObject *resultobj;
28756 wxWindow *arg1 = (wxWindow *) 0 ;
28757 wxAcceleratorTable *result;
28758 PyObject * obj0 = 0 ;
28759 char *kwnames[] = {
28760 (char *) "self", NULL
28761 };
28762
28763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail;
28764 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28765 if (SWIG_arg_fail(1)) SWIG_fail;
28766 {
28767 PyThreadState* __tstate = wxPyBeginAllowThreads();
28768 result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable();
28769
28770 wxPyEndAllowThreads(__tstate);
28771 if (PyErr_Occurred()) SWIG_fail;
28772 }
28773 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0);
28774 return resultobj;
28775 fail:
28776 return NULL;
28777 }
28778
28779
28780 static PyObject *_wrap_Window_RegisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) {
28781 PyObject *resultobj;
28782 wxWindow *arg1 = (wxWindow *) 0 ;
28783 int arg2 ;
28784 int arg3 ;
28785 int arg4 ;
28786 bool result;
28787 PyObject * obj0 = 0 ;
28788 PyObject * obj1 = 0 ;
28789 PyObject * obj2 = 0 ;
28790 PyObject * obj3 = 0 ;
28791 char *kwnames[] = {
28792 (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL
28793 };
28794
28795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
28796 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28797 if (SWIG_arg_fail(1)) SWIG_fail;
28798 {
28799 arg2 = (int)(SWIG_As_int(obj1));
28800 if (SWIG_arg_fail(2)) SWIG_fail;
28801 }
28802 {
28803 arg3 = (int)(SWIG_As_int(obj2));
28804 if (SWIG_arg_fail(3)) SWIG_fail;
28805 }
28806 {
28807 arg4 = (int)(SWIG_As_int(obj3));
28808 if (SWIG_arg_fail(4)) SWIG_fail;
28809 }
28810 {
28811 PyThreadState* __tstate = wxPyBeginAllowThreads();
28812 result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4);
28813
28814 wxPyEndAllowThreads(__tstate);
28815 if (PyErr_Occurred()) SWIG_fail;
28816 }
28817 {
28818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28819 }
28820 return resultobj;
28821 fail:
28822 return NULL;
28823 }
28824
28825
28826 static PyObject *_wrap_Window_UnregisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) {
28827 PyObject *resultobj;
28828 wxWindow *arg1 = (wxWindow *) 0 ;
28829 int arg2 ;
28830 bool result;
28831 PyObject * obj0 = 0 ;
28832 PyObject * obj1 = 0 ;
28833 char *kwnames[] = {
28834 (char *) "self",(char *) "hotkeyId", NULL
28835 };
28836
28837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail;
28838 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28839 if (SWIG_arg_fail(1)) SWIG_fail;
28840 {
28841 arg2 = (int)(SWIG_As_int(obj1));
28842 if (SWIG_arg_fail(2)) SWIG_fail;
28843 }
28844 {
28845 PyThreadState* __tstate = wxPyBeginAllowThreads();
28846 result = (bool)wxWindow_UnregisterHotKey(arg1,arg2);
28847
28848 wxPyEndAllowThreads(__tstate);
28849 if (PyErr_Occurred()) SWIG_fail;
28850 }
28851 {
28852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28853 }
28854 return resultobj;
28855 fail:
28856 return NULL;
28857 }
28858
28859
28860 static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *, PyObject *args, PyObject *kwargs) {
28861 PyObject *resultobj;
28862 wxWindow *arg1 = (wxWindow *) 0 ;
28863 wxPoint *arg2 = 0 ;
28864 wxPoint result;
28865 wxPoint temp2 ;
28866 PyObject * obj0 = 0 ;
28867 PyObject * obj1 = 0 ;
28868 char *kwnames[] = {
28869 (char *) "self",(char *) "pt", NULL
28870 };
28871
28872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail;
28873 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28874 if (SWIG_arg_fail(1)) SWIG_fail;
28875 {
28876 arg2 = &temp2;
28877 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28878 }
28879 {
28880 PyThreadState* __tstate = wxPyBeginAllowThreads();
28881 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
28882
28883 wxPyEndAllowThreads(__tstate);
28884 if (PyErr_Occurred()) SWIG_fail;
28885 }
28886 {
28887 wxPoint * resultptr;
28888 resultptr = new wxPoint((wxPoint &)(result));
28889 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
28890 }
28891 return resultobj;
28892 fail:
28893 return NULL;
28894 }
28895
28896
28897 static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *, PyObject *args, PyObject *kwargs) {
28898 PyObject *resultobj;
28899 wxWindow *arg1 = (wxWindow *) 0 ;
28900 wxSize *arg2 = 0 ;
28901 wxSize result;
28902 wxSize temp2 ;
28903 PyObject * obj0 = 0 ;
28904 PyObject * obj1 = 0 ;
28905 char *kwnames[] = {
28906 (char *) "self",(char *) "sz", NULL
28907 };
28908
28909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail;
28910 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28911 if (SWIG_arg_fail(1)) SWIG_fail;
28912 {
28913 arg2 = &temp2;
28914 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
28915 }
28916 {
28917 PyThreadState* __tstate = wxPyBeginAllowThreads();
28918 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
28919
28920 wxPyEndAllowThreads(__tstate);
28921 if (PyErr_Occurred()) SWIG_fail;
28922 }
28923 {
28924 wxSize * resultptr;
28925 resultptr = new wxSize((wxSize &)(result));
28926 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
28927 }
28928 return resultobj;
28929 fail:
28930 return NULL;
28931 }
28932
28933
28934 static PyObject *_wrap_Window_DLG_PNT(PyObject *, PyObject *args, PyObject *kwargs) {
28935 PyObject *resultobj;
28936 wxWindow *arg1 = (wxWindow *) 0 ;
28937 wxPoint *arg2 = 0 ;
28938 wxPoint result;
28939 wxPoint temp2 ;
28940 PyObject * obj0 = 0 ;
28941 PyObject * obj1 = 0 ;
28942 char *kwnames[] = {
28943 (char *) "self",(char *) "pt", NULL
28944 };
28945
28946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail;
28947 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28948 if (SWIG_arg_fail(1)) SWIG_fail;
28949 {
28950 arg2 = &temp2;
28951 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28952 }
28953 {
28954 PyThreadState* __tstate = wxPyBeginAllowThreads();
28955 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
28956
28957 wxPyEndAllowThreads(__tstate);
28958 if (PyErr_Occurred()) SWIG_fail;
28959 }
28960 {
28961 wxPoint * resultptr;
28962 resultptr = new wxPoint((wxPoint &)(result));
28963 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
28964 }
28965 return resultobj;
28966 fail:
28967 return NULL;
28968 }
28969
28970
28971 static PyObject *_wrap_Window_DLG_SZE(PyObject *, PyObject *args, PyObject *kwargs) {
28972 PyObject *resultobj;
28973 wxWindow *arg1 = (wxWindow *) 0 ;
28974 wxSize *arg2 = 0 ;
28975 wxSize result;
28976 wxSize temp2 ;
28977 PyObject * obj0 = 0 ;
28978 PyObject * obj1 = 0 ;
28979 char *kwnames[] = {
28980 (char *) "self",(char *) "sz", NULL
28981 };
28982
28983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail;
28984 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
28985 if (SWIG_arg_fail(1)) SWIG_fail;
28986 {
28987 arg2 = &temp2;
28988 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
28989 }
28990 {
28991 PyThreadState* __tstate = wxPyBeginAllowThreads();
28992 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
28993
28994 wxPyEndAllowThreads(__tstate);
28995 if (PyErr_Occurred()) SWIG_fail;
28996 }
28997 {
28998 wxSize * resultptr;
28999 resultptr = new wxSize((wxSize &)(result));
29000 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29001 }
29002 return resultobj;
29003 fail:
29004 return NULL;
29005 }
29006
29007
29008 static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *, PyObject *args, PyObject *kwargs) {
29009 PyObject *resultobj;
29010 wxWindow *arg1 = (wxWindow *) 0 ;
29011 wxPoint *arg2 = 0 ;
29012 wxPoint result;
29013 wxPoint temp2 ;
29014 PyObject * obj0 = 0 ;
29015 PyObject * obj1 = 0 ;
29016 char *kwnames[] = {
29017 (char *) "self",(char *) "pt", NULL
29018 };
29019
29020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail;
29021 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29022 if (SWIG_arg_fail(1)) SWIG_fail;
29023 {
29024 arg2 = &temp2;
29025 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29026 }
29027 {
29028 PyThreadState* __tstate = wxPyBeginAllowThreads();
29029 result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2);
29030
29031 wxPyEndAllowThreads(__tstate);
29032 if (PyErr_Occurred()) SWIG_fail;
29033 }
29034 {
29035 wxPoint * resultptr;
29036 resultptr = new wxPoint((wxPoint &)(result));
29037 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
29038 }
29039 return resultobj;
29040 fail:
29041 return NULL;
29042 }
29043
29044
29045 static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *, PyObject *args, PyObject *kwargs) {
29046 PyObject *resultobj;
29047 wxWindow *arg1 = (wxWindow *) 0 ;
29048 wxSize *arg2 = 0 ;
29049 wxSize result;
29050 wxSize temp2 ;
29051 PyObject * obj0 = 0 ;
29052 PyObject * obj1 = 0 ;
29053 char *kwnames[] = {
29054 (char *) "self",(char *) "sz", NULL
29055 };
29056
29057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail;
29058 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29059 if (SWIG_arg_fail(1)) SWIG_fail;
29060 {
29061 arg2 = &temp2;
29062 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
29063 }
29064 {
29065 PyThreadState* __tstate = wxPyBeginAllowThreads();
29066 result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2);
29067
29068 wxPyEndAllowThreads(__tstate);
29069 if (PyErr_Occurred()) SWIG_fail;
29070 }
29071 {
29072 wxSize * resultptr;
29073 resultptr = new wxSize((wxSize &)(result));
29074 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29075 }
29076 return resultobj;
29077 fail:
29078 return NULL;
29079 }
29080
29081
29082 static PyObject *_wrap_Window_WarpPointer(PyObject *, PyObject *args, PyObject *kwargs) {
29083 PyObject *resultobj;
29084 wxWindow *arg1 = (wxWindow *) 0 ;
29085 int arg2 ;
29086 int arg3 ;
29087 PyObject * obj0 = 0 ;
29088 PyObject * obj1 = 0 ;
29089 PyObject * obj2 = 0 ;
29090 char *kwnames[] = {
29091 (char *) "self",(char *) "x",(char *) "y", NULL
29092 };
29093
29094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail;
29095 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29096 if (SWIG_arg_fail(1)) SWIG_fail;
29097 {
29098 arg2 = (int)(SWIG_As_int(obj1));
29099 if (SWIG_arg_fail(2)) SWIG_fail;
29100 }
29101 {
29102 arg3 = (int)(SWIG_As_int(obj2));
29103 if (SWIG_arg_fail(3)) SWIG_fail;
29104 }
29105 {
29106 PyThreadState* __tstate = wxPyBeginAllowThreads();
29107 (arg1)->WarpPointer(arg2,arg3);
29108
29109 wxPyEndAllowThreads(__tstate);
29110 if (PyErr_Occurred()) SWIG_fail;
29111 }
29112 Py_INCREF(Py_None); resultobj = Py_None;
29113 return resultobj;
29114 fail:
29115 return NULL;
29116 }
29117
29118
29119 static PyObject *_wrap_Window_CaptureMouse(PyObject *, PyObject *args, PyObject *kwargs) {
29120 PyObject *resultobj;
29121 wxWindow *arg1 = (wxWindow *) 0 ;
29122 PyObject * obj0 = 0 ;
29123 char *kwnames[] = {
29124 (char *) "self", NULL
29125 };
29126
29127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail;
29128 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29129 if (SWIG_arg_fail(1)) SWIG_fail;
29130 {
29131 PyThreadState* __tstate = wxPyBeginAllowThreads();
29132 (arg1)->CaptureMouse();
29133
29134 wxPyEndAllowThreads(__tstate);
29135 if (PyErr_Occurred()) SWIG_fail;
29136 }
29137 Py_INCREF(Py_None); resultobj = Py_None;
29138 return resultobj;
29139 fail:
29140 return NULL;
29141 }
29142
29143
29144 static PyObject *_wrap_Window_ReleaseMouse(PyObject *, PyObject *args, PyObject *kwargs) {
29145 PyObject *resultobj;
29146 wxWindow *arg1 = (wxWindow *) 0 ;
29147 PyObject * obj0 = 0 ;
29148 char *kwnames[] = {
29149 (char *) "self", NULL
29150 };
29151
29152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail;
29153 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29154 if (SWIG_arg_fail(1)) SWIG_fail;
29155 {
29156 PyThreadState* __tstate = wxPyBeginAllowThreads();
29157 (arg1)->ReleaseMouse();
29158
29159 wxPyEndAllowThreads(__tstate);
29160 if (PyErr_Occurred()) SWIG_fail;
29161 }
29162 Py_INCREF(Py_None); resultobj = Py_None;
29163 return resultobj;
29164 fail:
29165 return NULL;
29166 }
29167
29168
29169 static PyObject *_wrap_Window_GetCapture(PyObject *, PyObject *args, PyObject *kwargs) {
29170 PyObject *resultobj;
29171 wxWindow *result;
29172 char *kwnames[] = {
29173 NULL
29174 };
29175
29176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail;
29177 {
29178 if (!wxPyCheckForApp()) SWIG_fail;
29179 PyThreadState* __tstate = wxPyBeginAllowThreads();
29180 result = (wxWindow *)wxWindow::GetCapture();
29181
29182 wxPyEndAllowThreads(__tstate);
29183 if (PyErr_Occurred()) SWIG_fail;
29184 }
29185 {
29186 resultobj = wxPyMake_wxObject(result, 0);
29187 }
29188 return resultobj;
29189 fail:
29190 return NULL;
29191 }
29192
29193
29194 static PyObject *_wrap_Window_HasCapture(PyObject *, PyObject *args, PyObject *kwargs) {
29195 PyObject *resultobj;
29196 wxWindow *arg1 = (wxWindow *) 0 ;
29197 bool result;
29198 PyObject * obj0 = 0 ;
29199 char *kwnames[] = {
29200 (char *) "self", NULL
29201 };
29202
29203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail;
29204 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29205 if (SWIG_arg_fail(1)) SWIG_fail;
29206 {
29207 PyThreadState* __tstate = wxPyBeginAllowThreads();
29208 result = (bool)((wxWindow const *)arg1)->HasCapture();
29209
29210 wxPyEndAllowThreads(__tstate);
29211 if (PyErr_Occurred()) SWIG_fail;
29212 }
29213 {
29214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29215 }
29216 return resultobj;
29217 fail:
29218 return NULL;
29219 }
29220
29221
29222 static PyObject *_wrap_Window_Refresh(PyObject *, PyObject *args, PyObject *kwargs) {
29223 PyObject *resultobj;
29224 wxWindow *arg1 = (wxWindow *) 0 ;
29225 bool arg2 = (bool) true ;
29226 wxRect *arg3 = (wxRect *) NULL ;
29227 PyObject * obj0 = 0 ;
29228 PyObject * obj1 = 0 ;
29229 PyObject * obj2 = 0 ;
29230 char *kwnames[] = {
29231 (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL
29232 };
29233
29234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail;
29235 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29236 if (SWIG_arg_fail(1)) SWIG_fail;
29237 if (obj1) {
29238 {
29239 arg2 = (bool)(SWIG_As_bool(obj1));
29240 if (SWIG_arg_fail(2)) SWIG_fail;
29241 }
29242 }
29243 if (obj2) {
29244 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
29245 if (SWIG_arg_fail(3)) SWIG_fail;
29246 }
29247 {
29248 PyThreadState* __tstate = wxPyBeginAllowThreads();
29249 (arg1)->Refresh(arg2,(wxRect const *)arg3);
29250
29251 wxPyEndAllowThreads(__tstate);
29252 if (PyErr_Occurred()) SWIG_fail;
29253 }
29254 Py_INCREF(Py_None); resultobj = Py_None;
29255 return resultobj;
29256 fail:
29257 return NULL;
29258 }
29259
29260
29261 static PyObject *_wrap_Window_RefreshRect(PyObject *, PyObject *args, PyObject *kwargs) {
29262 PyObject *resultobj;
29263 wxWindow *arg1 = (wxWindow *) 0 ;
29264 wxRect *arg2 = 0 ;
29265 bool arg3 = (bool) true ;
29266 wxRect temp2 ;
29267 PyObject * obj0 = 0 ;
29268 PyObject * obj1 = 0 ;
29269 PyObject * obj2 = 0 ;
29270 char *kwnames[] = {
29271 (char *) "self",(char *) "rect",(char *) "eraseBackground", NULL
29272 };
29273
29274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_RefreshRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
29275 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29276 if (SWIG_arg_fail(1)) SWIG_fail;
29277 {
29278 arg2 = &temp2;
29279 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29280 }
29281 if (obj2) {
29282 {
29283 arg3 = (bool)(SWIG_As_bool(obj2));
29284 if (SWIG_arg_fail(3)) SWIG_fail;
29285 }
29286 }
29287 {
29288 PyThreadState* __tstate = wxPyBeginAllowThreads();
29289 (arg1)->RefreshRect((wxRect const &)*arg2,arg3);
29290
29291 wxPyEndAllowThreads(__tstate);
29292 if (PyErr_Occurred()) SWIG_fail;
29293 }
29294 Py_INCREF(Py_None); resultobj = Py_None;
29295 return resultobj;
29296 fail:
29297 return NULL;
29298 }
29299
29300
29301 static PyObject *_wrap_Window_Update(PyObject *, PyObject *args, PyObject *kwargs) {
29302 PyObject *resultobj;
29303 wxWindow *arg1 = (wxWindow *) 0 ;
29304 PyObject * obj0 = 0 ;
29305 char *kwnames[] = {
29306 (char *) "self", NULL
29307 };
29308
29309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail;
29310 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29311 if (SWIG_arg_fail(1)) SWIG_fail;
29312 {
29313 PyThreadState* __tstate = wxPyBeginAllowThreads();
29314 (arg1)->Update();
29315
29316 wxPyEndAllowThreads(__tstate);
29317 if (PyErr_Occurred()) SWIG_fail;
29318 }
29319 Py_INCREF(Py_None); resultobj = Py_None;
29320 return resultobj;
29321 fail:
29322 return NULL;
29323 }
29324
29325
29326 static PyObject *_wrap_Window_ClearBackground(PyObject *, PyObject *args, PyObject *kwargs) {
29327 PyObject *resultobj;
29328 wxWindow *arg1 = (wxWindow *) 0 ;
29329 PyObject * obj0 = 0 ;
29330 char *kwnames[] = {
29331 (char *) "self", NULL
29332 };
29333
29334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail;
29335 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29336 if (SWIG_arg_fail(1)) SWIG_fail;
29337 {
29338 PyThreadState* __tstate = wxPyBeginAllowThreads();
29339 (arg1)->ClearBackground();
29340
29341 wxPyEndAllowThreads(__tstate);
29342 if (PyErr_Occurred()) SWIG_fail;
29343 }
29344 Py_INCREF(Py_None); resultobj = Py_None;
29345 return resultobj;
29346 fail:
29347 return NULL;
29348 }
29349
29350
29351 static PyObject *_wrap_Window_Freeze(PyObject *, PyObject *args, PyObject *kwargs) {
29352 PyObject *resultobj;
29353 wxWindow *arg1 = (wxWindow *) 0 ;
29354 PyObject * obj0 = 0 ;
29355 char *kwnames[] = {
29356 (char *) "self", NULL
29357 };
29358
29359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail;
29360 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29361 if (SWIG_arg_fail(1)) SWIG_fail;
29362 {
29363 PyThreadState* __tstate = wxPyBeginAllowThreads();
29364 (arg1)->Freeze();
29365
29366 wxPyEndAllowThreads(__tstate);
29367 if (PyErr_Occurred()) SWIG_fail;
29368 }
29369 Py_INCREF(Py_None); resultobj = Py_None;
29370 return resultobj;
29371 fail:
29372 return NULL;
29373 }
29374
29375
29376 static PyObject *_wrap_Window_Thaw(PyObject *, PyObject *args, PyObject *kwargs) {
29377 PyObject *resultobj;
29378 wxWindow *arg1 = (wxWindow *) 0 ;
29379 PyObject * obj0 = 0 ;
29380 char *kwnames[] = {
29381 (char *) "self", NULL
29382 };
29383
29384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail;
29385 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29386 if (SWIG_arg_fail(1)) SWIG_fail;
29387 {
29388 PyThreadState* __tstate = wxPyBeginAllowThreads();
29389 (arg1)->Thaw();
29390
29391 wxPyEndAllowThreads(__tstate);
29392 if (PyErr_Occurred()) SWIG_fail;
29393 }
29394 Py_INCREF(Py_None); resultobj = Py_None;
29395 return resultobj;
29396 fail:
29397 return NULL;
29398 }
29399
29400
29401 static PyObject *_wrap_Window_PrepareDC(PyObject *, PyObject *args, PyObject *kwargs) {
29402 PyObject *resultobj;
29403 wxWindow *arg1 = (wxWindow *) 0 ;
29404 wxDC *arg2 = 0 ;
29405 PyObject * obj0 = 0 ;
29406 PyObject * obj1 = 0 ;
29407 char *kwnames[] = {
29408 (char *) "self",(char *) "dc", NULL
29409 };
29410
29411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail;
29412 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29413 if (SWIG_arg_fail(1)) SWIG_fail;
29414 {
29415 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
29416 if (SWIG_arg_fail(2)) SWIG_fail;
29417 if (arg2 == NULL) {
29418 SWIG_null_ref("wxDC");
29419 }
29420 if (SWIG_arg_fail(2)) SWIG_fail;
29421 }
29422 {
29423 PyThreadState* __tstate = wxPyBeginAllowThreads();
29424 (arg1)->PrepareDC(*arg2);
29425
29426 wxPyEndAllowThreads(__tstate);
29427 if (PyErr_Occurred()) SWIG_fail;
29428 }
29429 Py_INCREF(Py_None); resultobj = Py_None;
29430 return resultobj;
29431 fail:
29432 return NULL;
29433 }
29434
29435
29436 static PyObject *_wrap_Window_GetUpdateRegion(PyObject *, PyObject *args, PyObject *kwargs) {
29437 PyObject *resultobj;
29438 wxWindow *arg1 = (wxWindow *) 0 ;
29439 wxRegion *result;
29440 PyObject * obj0 = 0 ;
29441 char *kwnames[] = {
29442 (char *) "self", NULL
29443 };
29444
29445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail;
29446 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29447 if (SWIG_arg_fail(1)) SWIG_fail;
29448 {
29449 PyThreadState* __tstate = wxPyBeginAllowThreads();
29450 {
29451 wxRegion &_result_ref = (arg1)->GetUpdateRegion();
29452 result = (wxRegion *) &_result_ref;
29453 }
29454
29455 wxPyEndAllowThreads(__tstate);
29456 if (PyErr_Occurred()) SWIG_fail;
29457 }
29458 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0);
29459 return resultobj;
29460 fail:
29461 return NULL;
29462 }
29463
29464
29465 static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *, PyObject *args, PyObject *kwargs) {
29466 PyObject *resultobj;
29467 wxWindow *arg1 = (wxWindow *) 0 ;
29468 wxRect result;
29469 PyObject * obj0 = 0 ;
29470 char *kwnames[] = {
29471 (char *) "self", NULL
29472 };
29473
29474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail;
29475 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29476 if (SWIG_arg_fail(1)) SWIG_fail;
29477 {
29478 PyThreadState* __tstate = wxPyBeginAllowThreads();
29479 result = ((wxWindow const *)arg1)->GetUpdateClientRect();
29480
29481 wxPyEndAllowThreads(__tstate);
29482 if (PyErr_Occurred()) SWIG_fail;
29483 }
29484 {
29485 wxRect * resultptr;
29486 resultptr = new wxRect((wxRect &)(result));
29487 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
29488 }
29489 return resultobj;
29490 fail:
29491 return NULL;
29492 }
29493
29494
29495 static PyObject *_wrap_Window_IsExposed(PyObject *, PyObject *args, PyObject *kwargs) {
29496 PyObject *resultobj;
29497 wxWindow *arg1 = (wxWindow *) 0 ;
29498 int arg2 ;
29499 int arg3 ;
29500 int arg4 = (int) 1 ;
29501 int arg5 = (int) 1 ;
29502 bool result;
29503 PyObject * obj0 = 0 ;
29504 PyObject * obj1 = 0 ;
29505 PyObject * obj2 = 0 ;
29506 PyObject * obj3 = 0 ;
29507 PyObject * obj4 = 0 ;
29508 char *kwnames[] = {
29509 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29510 };
29511
29512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29513 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29514 if (SWIG_arg_fail(1)) SWIG_fail;
29515 {
29516 arg2 = (int)(SWIG_As_int(obj1));
29517 if (SWIG_arg_fail(2)) SWIG_fail;
29518 }
29519 {
29520 arg3 = (int)(SWIG_As_int(obj2));
29521 if (SWIG_arg_fail(3)) SWIG_fail;
29522 }
29523 if (obj3) {
29524 {
29525 arg4 = (int)(SWIG_As_int(obj3));
29526 if (SWIG_arg_fail(4)) SWIG_fail;
29527 }
29528 }
29529 if (obj4) {
29530 {
29531 arg5 = (int)(SWIG_As_int(obj4));
29532 if (SWIG_arg_fail(5)) SWIG_fail;
29533 }
29534 }
29535 {
29536 PyThreadState* __tstate = wxPyBeginAllowThreads();
29537 result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5);
29538
29539 wxPyEndAllowThreads(__tstate);
29540 if (PyErr_Occurred()) SWIG_fail;
29541 }
29542 {
29543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29544 }
29545 return resultobj;
29546 fail:
29547 return NULL;
29548 }
29549
29550
29551 static PyObject *_wrap_Window_IsExposedPoint(PyObject *, PyObject *args, PyObject *kwargs) {
29552 PyObject *resultobj;
29553 wxWindow *arg1 = (wxWindow *) 0 ;
29554 wxPoint *arg2 = 0 ;
29555 bool result;
29556 wxPoint temp2 ;
29557 PyObject * obj0 = 0 ;
29558 PyObject * obj1 = 0 ;
29559 char *kwnames[] = {
29560 (char *) "self",(char *) "pt", NULL
29561 };
29562
29563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail;
29564 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29565 if (SWIG_arg_fail(1)) SWIG_fail;
29566 {
29567 arg2 = &temp2;
29568 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29569 }
29570 {
29571 PyThreadState* __tstate = wxPyBeginAllowThreads();
29572 result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2);
29573
29574 wxPyEndAllowThreads(__tstate);
29575 if (PyErr_Occurred()) SWIG_fail;
29576 }
29577 {
29578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29579 }
29580 return resultobj;
29581 fail:
29582 return NULL;
29583 }
29584
29585
29586 static PyObject *_wrap_Window_IsExposedRect(PyObject *, PyObject *args, PyObject *kwargs) {
29587 PyObject *resultobj;
29588 wxWindow *arg1 = (wxWindow *) 0 ;
29589 wxRect *arg2 = 0 ;
29590 bool result;
29591 wxRect temp2 ;
29592 PyObject * obj0 = 0 ;
29593 PyObject * obj1 = 0 ;
29594 char *kwnames[] = {
29595 (char *) "self",(char *) "rect", NULL
29596 };
29597
29598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail;
29599 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29600 if (SWIG_arg_fail(1)) SWIG_fail;
29601 {
29602 arg2 = &temp2;
29603 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29604 }
29605 {
29606 PyThreadState* __tstate = wxPyBeginAllowThreads();
29607 result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2);
29608
29609 wxPyEndAllowThreads(__tstate);
29610 if (PyErr_Occurred()) SWIG_fail;
29611 }
29612 {
29613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29614 }
29615 return resultobj;
29616 fail:
29617 return NULL;
29618 }
29619
29620
29621 static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
29622 PyObject *resultobj;
29623 wxWindow *arg1 = (wxWindow *) 0 ;
29624 wxVisualAttributes result;
29625 PyObject * obj0 = 0 ;
29626 char *kwnames[] = {
29627 (char *) "self", NULL
29628 };
29629
29630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail;
29631 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29632 if (SWIG_arg_fail(1)) SWIG_fail;
29633 {
29634 PyThreadState* __tstate = wxPyBeginAllowThreads();
29635 result = ((wxWindow const *)arg1)->GetDefaultAttributes();
29636
29637 wxPyEndAllowThreads(__tstate);
29638 if (PyErr_Occurred()) SWIG_fail;
29639 }
29640 {
29641 wxVisualAttributes * resultptr;
29642 resultptr = new wxVisualAttributes((wxVisualAttributes &)(result));
29643 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
29644 }
29645 return resultobj;
29646 fail:
29647 return NULL;
29648 }
29649
29650
29651 static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
29652 PyObject *resultobj;
29653 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
29654 wxVisualAttributes result;
29655 PyObject * obj0 = 0 ;
29656 char *kwnames[] = {
29657 (char *) "variant", NULL
29658 };
29659
29660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
29661 if (obj0) {
29662 {
29663 arg1 = (wxWindowVariant)(SWIG_As_int(obj0));
29664 if (SWIG_arg_fail(1)) SWIG_fail;
29665 }
29666 }
29667 {
29668 if (!wxPyCheckForApp()) SWIG_fail;
29669 PyThreadState* __tstate = wxPyBeginAllowThreads();
29670 result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1);
29671
29672 wxPyEndAllowThreads(__tstate);
29673 if (PyErr_Occurred()) SWIG_fail;
29674 }
29675 {
29676 wxVisualAttributes * resultptr;
29677 resultptr = new wxVisualAttributes((wxVisualAttributes &)(result));
29678 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
29679 }
29680 return resultobj;
29681 fail:
29682 return NULL;
29683 }
29684
29685
29686 static PyObject *_wrap_Window_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
29687 PyObject *resultobj;
29688 wxWindow *arg1 = (wxWindow *) 0 ;
29689 wxColour *arg2 = 0 ;
29690 bool result;
29691 wxColour temp2 ;
29692 PyObject * obj0 = 0 ;
29693 PyObject * obj1 = 0 ;
29694 char *kwnames[] = {
29695 (char *) "self",(char *) "colour", NULL
29696 };
29697
29698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
29699 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29700 if (SWIG_arg_fail(1)) SWIG_fail;
29701 {
29702 arg2 = &temp2;
29703 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29704 }
29705 {
29706 PyThreadState* __tstate = wxPyBeginAllowThreads();
29707 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
29708
29709 wxPyEndAllowThreads(__tstate);
29710 if (PyErr_Occurred()) SWIG_fail;
29711 }
29712 {
29713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29714 }
29715 return resultobj;
29716 fail:
29717 return NULL;
29718 }
29719
29720
29721 static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
29722 PyObject *resultobj;
29723 wxWindow *arg1 = (wxWindow *) 0 ;
29724 wxColour *arg2 = 0 ;
29725 wxColour temp2 ;
29726 PyObject * obj0 = 0 ;
29727 PyObject * obj1 = 0 ;
29728 char *kwnames[] = {
29729 (char *) "self",(char *) "colour", NULL
29730 };
29731
29732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
29733 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29734 if (SWIG_arg_fail(1)) SWIG_fail;
29735 {
29736 arg2 = &temp2;
29737 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29738 }
29739 {
29740 PyThreadState* __tstate = wxPyBeginAllowThreads();
29741 (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2);
29742
29743 wxPyEndAllowThreads(__tstate);
29744 if (PyErr_Occurred()) SWIG_fail;
29745 }
29746 Py_INCREF(Py_None); resultobj = Py_None;
29747 return resultobj;
29748 fail:
29749 return NULL;
29750 }
29751
29752
29753 static PyObject *_wrap_Window_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
29754 PyObject *resultobj;
29755 wxWindow *arg1 = (wxWindow *) 0 ;
29756 wxColour *arg2 = 0 ;
29757 bool result;
29758 wxColour temp2 ;
29759 PyObject * obj0 = 0 ;
29760 PyObject * obj1 = 0 ;
29761 char *kwnames[] = {
29762 (char *) "self",(char *) "colour", NULL
29763 };
29764
29765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
29766 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29767 if (SWIG_arg_fail(1)) SWIG_fail;
29768 {
29769 arg2 = &temp2;
29770 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29771 }
29772 {
29773 PyThreadState* __tstate = wxPyBeginAllowThreads();
29774 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
29775
29776 wxPyEndAllowThreads(__tstate);
29777 if (PyErr_Occurred()) SWIG_fail;
29778 }
29779 {
29780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29781 }
29782 return resultobj;
29783 fail:
29784 return NULL;
29785 }
29786
29787
29788 static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
29789 PyObject *resultobj;
29790 wxWindow *arg1 = (wxWindow *) 0 ;
29791 wxColour *arg2 = 0 ;
29792 wxColour temp2 ;
29793 PyObject * obj0 = 0 ;
29794 PyObject * obj1 = 0 ;
29795 char *kwnames[] = {
29796 (char *) "self",(char *) "colour", NULL
29797 };
29798
29799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail;
29800 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29801 if (SWIG_arg_fail(1)) SWIG_fail;
29802 {
29803 arg2 = &temp2;
29804 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29805 }
29806 {
29807 PyThreadState* __tstate = wxPyBeginAllowThreads();
29808 (arg1)->SetOwnForegroundColour((wxColour const &)*arg2);
29809
29810 wxPyEndAllowThreads(__tstate);
29811 if (PyErr_Occurred()) SWIG_fail;
29812 }
29813 Py_INCREF(Py_None); resultobj = Py_None;
29814 return resultobj;
29815 fail:
29816 return NULL;
29817 }
29818
29819
29820 static PyObject *_wrap_Window_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
29821 PyObject *resultobj;
29822 wxWindow *arg1 = (wxWindow *) 0 ;
29823 wxColour result;
29824 PyObject * obj0 = 0 ;
29825 char *kwnames[] = {
29826 (char *) "self", NULL
29827 };
29828
29829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail;
29830 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29831 if (SWIG_arg_fail(1)) SWIG_fail;
29832 {
29833 PyThreadState* __tstate = wxPyBeginAllowThreads();
29834 result = ((wxWindow const *)arg1)->GetBackgroundColour();
29835
29836 wxPyEndAllowThreads(__tstate);
29837 if (PyErr_Occurred()) SWIG_fail;
29838 }
29839 {
29840 wxColour * resultptr;
29841 resultptr = new wxColour((wxColour &)(result));
29842 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
29843 }
29844 return resultobj;
29845 fail:
29846 return NULL;
29847 }
29848
29849
29850 static PyObject *_wrap_Window_GetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
29851 PyObject *resultobj;
29852 wxWindow *arg1 = (wxWindow *) 0 ;
29853 wxColour result;
29854 PyObject * obj0 = 0 ;
29855 char *kwnames[] = {
29856 (char *) "self", NULL
29857 };
29858
29859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail;
29860 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29861 if (SWIG_arg_fail(1)) SWIG_fail;
29862 {
29863 PyThreadState* __tstate = wxPyBeginAllowThreads();
29864 result = ((wxWindow const *)arg1)->GetForegroundColour();
29865
29866 wxPyEndAllowThreads(__tstate);
29867 if (PyErr_Occurred()) SWIG_fail;
29868 }
29869 {
29870 wxColour * resultptr;
29871 resultptr = new wxColour((wxColour &)(result));
29872 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
29873 }
29874 return resultobj;
29875 fail:
29876 return NULL;
29877 }
29878
29879
29880 static PyObject *_wrap_Window_InheritsBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
29881 PyObject *resultobj;
29882 wxWindow *arg1 = (wxWindow *) 0 ;
29883 bool result;
29884 PyObject * obj0 = 0 ;
29885 char *kwnames[] = {
29886 (char *) "self", NULL
29887 };
29888
29889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritsBackgroundColour",kwnames,&obj0)) goto fail;
29890 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29891 if (SWIG_arg_fail(1)) SWIG_fail;
29892 {
29893 PyThreadState* __tstate = wxPyBeginAllowThreads();
29894 result = (bool)((wxWindow const *)arg1)->InheritsBackgroundColour();
29895
29896 wxPyEndAllowThreads(__tstate);
29897 if (PyErr_Occurred()) SWIG_fail;
29898 }
29899 {
29900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29901 }
29902 return resultobj;
29903 fail:
29904 return NULL;
29905 }
29906
29907
29908 static PyObject *_wrap_Window_UseBgCol(PyObject *, PyObject *args, PyObject *kwargs) {
29909 PyObject *resultobj;
29910 wxWindow *arg1 = (wxWindow *) 0 ;
29911 bool result;
29912 PyObject * obj0 = 0 ;
29913 char *kwnames[] = {
29914 (char *) "self", NULL
29915 };
29916
29917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_UseBgCol",kwnames,&obj0)) goto fail;
29918 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29919 if (SWIG_arg_fail(1)) SWIG_fail;
29920 {
29921 PyThreadState* __tstate = wxPyBeginAllowThreads();
29922 result = (bool)((wxWindow const *)arg1)->UseBgCol();
29923
29924 wxPyEndAllowThreads(__tstate);
29925 if (PyErr_Occurred()) SWIG_fail;
29926 }
29927 {
29928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29929 }
29930 return resultobj;
29931 fail:
29932 return NULL;
29933 }
29934
29935
29936 static PyObject *_wrap_Window_SetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) {
29937 PyObject *resultobj;
29938 wxWindow *arg1 = (wxWindow *) 0 ;
29939 wxBackgroundStyle arg2 ;
29940 bool result;
29941 PyObject * obj0 = 0 ;
29942 PyObject * obj1 = 0 ;
29943 char *kwnames[] = {
29944 (char *) "self",(char *) "style", NULL
29945 };
29946
29947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) goto fail;
29948 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29949 if (SWIG_arg_fail(1)) SWIG_fail;
29950 {
29951 arg2 = (wxBackgroundStyle)(SWIG_As_int(obj1));
29952 if (SWIG_arg_fail(2)) SWIG_fail;
29953 }
29954 {
29955 PyThreadState* __tstate = wxPyBeginAllowThreads();
29956 result = (bool)(arg1)->SetBackgroundStyle((wxBackgroundStyle )arg2);
29957
29958 wxPyEndAllowThreads(__tstate);
29959 if (PyErr_Occurred()) SWIG_fail;
29960 }
29961 {
29962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29963 }
29964 return resultobj;
29965 fail:
29966 return NULL;
29967 }
29968
29969
29970 static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) {
29971 PyObject *resultobj;
29972 wxWindow *arg1 = (wxWindow *) 0 ;
29973 wxBackgroundStyle result;
29974 PyObject * obj0 = 0 ;
29975 char *kwnames[] = {
29976 (char *) "self", NULL
29977 };
29978
29979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundStyle",kwnames,&obj0)) goto fail;
29980 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
29981 if (SWIG_arg_fail(1)) SWIG_fail;
29982 {
29983 PyThreadState* __tstate = wxPyBeginAllowThreads();
29984 result = (wxBackgroundStyle)((wxWindow const *)arg1)->GetBackgroundStyle();
29985
29986 wxPyEndAllowThreads(__tstate);
29987 if (PyErr_Occurred()) SWIG_fail;
29988 }
29989 resultobj = SWIG_From_int((result));
29990 return resultobj;
29991 fail:
29992 return NULL;
29993 }
29994
29995
29996 static PyObject *_wrap_Window_HasTransparentBackground(PyObject *, PyObject *args, PyObject *kwargs) {
29997 PyObject *resultobj;
29998 wxWindow *arg1 = (wxWindow *) 0 ;
29999 bool result;
30000 PyObject * obj0 = 0 ;
30001 char *kwnames[] = {
30002 (char *) "self", NULL
30003 };
30004
30005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasTransparentBackground",kwnames,&obj0)) goto fail;
30006 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30007 if (SWIG_arg_fail(1)) SWIG_fail;
30008 {
30009 PyThreadState* __tstate = wxPyBeginAllowThreads();
30010 result = (bool)(arg1)->HasTransparentBackground();
30011
30012 wxPyEndAllowThreads(__tstate);
30013 if (PyErr_Occurred()) SWIG_fail;
30014 }
30015 {
30016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30017 }
30018 return resultobj;
30019 fail:
30020 return NULL;
30021 }
30022
30023
30024 static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
30025 PyObject *resultobj;
30026 wxWindow *arg1 = (wxWindow *) 0 ;
30027 wxCursor *arg2 = 0 ;
30028 bool result;
30029 PyObject * obj0 = 0 ;
30030 PyObject * obj1 = 0 ;
30031 char *kwnames[] = {
30032 (char *) "self",(char *) "cursor", NULL
30033 };
30034
30035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail;
30036 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30037 if (SWIG_arg_fail(1)) SWIG_fail;
30038 {
30039 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
30040 if (SWIG_arg_fail(2)) SWIG_fail;
30041 if (arg2 == NULL) {
30042 SWIG_null_ref("wxCursor");
30043 }
30044 if (SWIG_arg_fail(2)) SWIG_fail;
30045 }
30046 {
30047 PyThreadState* __tstate = wxPyBeginAllowThreads();
30048 result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2);
30049
30050 wxPyEndAllowThreads(__tstate);
30051 if (PyErr_Occurred()) SWIG_fail;
30052 }
30053 {
30054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30055 }
30056 return resultobj;
30057 fail:
30058 return NULL;
30059 }
30060
30061
30062 static PyObject *_wrap_Window_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
30063 PyObject *resultobj;
30064 wxWindow *arg1 = (wxWindow *) 0 ;
30065 wxCursor result;
30066 PyObject * obj0 = 0 ;
30067 char *kwnames[] = {
30068 (char *) "self", NULL
30069 };
30070
30071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail;
30072 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30073 if (SWIG_arg_fail(1)) SWIG_fail;
30074 {
30075 PyThreadState* __tstate = wxPyBeginAllowThreads();
30076 result = (arg1)->GetCursor();
30077
30078 wxPyEndAllowThreads(__tstate);
30079 if (PyErr_Occurred()) SWIG_fail;
30080 }
30081 {
30082 wxCursor * resultptr;
30083 resultptr = new wxCursor((wxCursor &)(result));
30084 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1);
30085 }
30086 return resultobj;
30087 fail:
30088 return NULL;
30089 }
30090
30091
30092 static PyObject *_wrap_Window_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
30093 PyObject *resultobj;
30094 wxWindow *arg1 = (wxWindow *) 0 ;
30095 wxFont *arg2 = 0 ;
30096 bool result;
30097 PyObject * obj0 = 0 ;
30098 PyObject * obj1 = 0 ;
30099 char *kwnames[] = {
30100 (char *) "self",(char *) "font", NULL
30101 };
30102
30103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail;
30104 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30105 if (SWIG_arg_fail(1)) SWIG_fail;
30106 {
30107 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
30108 if (SWIG_arg_fail(2)) SWIG_fail;
30109 if (arg2 == NULL) {
30110 SWIG_null_ref("wxFont");
30111 }
30112 if (SWIG_arg_fail(2)) SWIG_fail;
30113 }
30114 {
30115 PyThreadState* __tstate = wxPyBeginAllowThreads();
30116 result = (bool)(arg1)->SetFont((wxFont const &)*arg2);
30117
30118 wxPyEndAllowThreads(__tstate);
30119 if (PyErr_Occurred()) SWIG_fail;
30120 }
30121 {
30122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30123 }
30124 return resultobj;
30125 fail:
30126 return NULL;
30127 }
30128
30129
30130 static PyObject *_wrap_Window_SetOwnFont(PyObject *, PyObject *args, PyObject *kwargs) {
30131 PyObject *resultobj;
30132 wxWindow *arg1 = (wxWindow *) 0 ;
30133 wxFont *arg2 = 0 ;
30134 PyObject * obj0 = 0 ;
30135 PyObject * obj1 = 0 ;
30136 char *kwnames[] = {
30137 (char *) "self",(char *) "font", NULL
30138 };
30139
30140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail;
30141 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30142 if (SWIG_arg_fail(1)) SWIG_fail;
30143 {
30144 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
30145 if (SWIG_arg_fail(2)) SWIG_fail;
30146 if (arg2 == NULL) {
30147 SWIG_null_ref("wxFont");
30148 }
30149 if (SWIG_arg_fail(2)) SWIG_fail;
30150 }
30151 {
30152 PyThreadState* __tstate = wxPyBeginAllowThreads();
30153 (arg1)->SetOwnFont((wxFont const &)*arg2);
30154
30155 wxPyEndAllowThreads(__tstate);
30156 if (PyErr_Occurred()) SWIG_fail;
30157 }
30158 Py_INCREF(Py_None); resultobj = Py_None;
30159 return resultobj;
30160 fail:
30161 return NULL;
30162 }
30163
30164
30165 static PyObject *_wrap_Window_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
30166 PyObject *resultobj;
30167 wxWindow *arg1 = (wxWindow *) 0 ;
30168 wxFont result;
30169 PyObject * obj0 = 0 ;
30170 char *kwnames[] = {
30171 (char *) "self", NULL
30172 };
30173
30174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail;
30175 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30176 if (SWIG_arg_fail(1)) SWIG_fail;
30177 {
30178 PyThreadState* __tstate = wxPyBeginAllowThreads();
30179 result = (arg1)->GetFont();
30180
30181 wxPyEndAllowThreads(__tstate);
30182 if (PyErr_Occurred()) SWIG_fail;
30183 }
30184 {
30185 wxFont * resultptr;
30186 resultptr = new wxFont((wxFont &)(result));
30187 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
30188 }
30189 return resultobj;
30190 fail:
30191 return NULL;
30192 }
30193
30194
30195 static PyObject *_wrap_Window_SetCaret(PyObject *, PyObject *args, PyObject *kwargs) {
30196 PyObject *resultobj;
30197 wxWindow *arg1 = (wxWindow *) 0 ;
30198 wxCaret *arg2 = (wxCaret *) 0 ;
30199 PyObject * obj0 = 0 ;
30200 PyObject * obj1 = 0 ;
30201 char *kwnames[] = {
30202 (char *) "self",(char *) "caret", NULL
30203 };
30204
30205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail;
30206 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30207 if (SWIG_arg_fail(1)) SWIG_fail;
30208 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
30209 if (SWIG_arg_fail(2)) SWIG_fail;
30210 {
30211 PyThreadState* __tstate = wxPyBeginAllowThreads();
30212 (arg1)->SetCaret(arg2);
30213
30214 wxPyEndAllowThreads(__tstate);
30215 if (PyErr_Occurred()) SWIG_fail;
30216 }
30217 Py_INCREF(Py_None); resultobj = Py_None;
30218 return resultobj;
30219 fail:
30220 return NULL;
30221 }
30222
30223
30224 static PyObject *_wrap_Window_GetCaret(PyObject *, PyObject *args, PyObject *kwargs) {
30225 PyObject *resultobj;
30226 wxWindow *arg1 = (wxWindow *) 0 ;
30227 wxCaret *result;
30228 PyObject * obj0 = 0 ;
30229 char *kwnames[] = {
30230 (char *) "self", NULL
30231 };
30232
30233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail;
30234 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30235 if (SWIG_arg_fail(1)) SWIG_fail;
30236 {
30237 PyThreadState* __tstate = wxPyBeginAllowThreads();
30238 result = (wxCaret *)((wxWindow const *)arg1)->GetCaret();
30239
30240 wxPyEndAllowThreads(__tstate);
30241 if (PyErr_Occurred()) SWIG_fail;
30242 }
30243 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0);
30244 return resultobj;
30245 fail:
30246 return NULL;
30247 }
30248
30249
30250 static PyObject *_wrap_Window_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
30251 PyObject *resultobj;
30252 wxWindow *arg1 = (wxWindow *) 0 ;
30253 int result;
30254 PyObject * obj0 = 0 ;
30255 char *kwnames[] = {
30256 (char *) "self", NULL
30257 };
30258
30259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail;
30260 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30261 if (SWIG_arg_fail(1)) SWIG_fail;
30262 {
30263 PyThreadState* __tstate = wxPyBeginAllowThreads();
30264 result = (int)((wxWindow const *)arg1)->GetCharHeight();
30265
30266 wxPyEndAllowThreads(__tstate);
30267 if (PyErr_Occurred()) SWIG_fail;
30268 }
30269 {
30270 resultobj = SWIG_From_int((int)(result));
30271 }
30272 return resultobj;
30273 fail:
30274 return NULL;
30275 }
30276
30277
30278 static PyObject *_wrap_Window_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
30279 PyObject *resultobj;
30280 wxWindow *arg1 = (wxWindow *) 0 ;
30281 int result;
30282 PyObject * obj0 = 0 ;
30283 char *kwnames[] = {
30284 (char *) "self", NULL
30285 };
30286
30287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail;
30288 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30289 if (SWIG_arg_fail(1)) SWIG_fail;
30290 {
30291 PyThreadState* __tstate = wxPyBeginAllowThreads();
30292 result = (int)((wxWindow const *)arg1)->GetCharWidth();
30293
30294 wxPyEndAllowThreads(__tstate);
30295 if (PyErr_Occurred()) SWIG_fail;
30296 }
30297 {
30298 resultobj = SWIG_From_int((int)(result));
30299 }
30300 return resultobj;
30301 fail:
30302 return NULL;
30303 }
30304
30305
30306 static PyObject *_wrap_Window_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
30307 PyObject *resultobj;
30308 wxWindow *arg1 = (wxWindow *) 0 ;
30309 wxString *arg2 = 0 ;
30310 int *arg3 = (int *) 0 ;
30311 int *arg4 = (int *) 0 ;
30312 bool temp2 = false ;
30313 int temp3 ;
30314 int res3 = 0 ;
30315 int temp4 ;
30316 int res4 = 0 ;
30317 PyObject * obj0 = 0 ;
30318 PyObject * obj1 = 0 ;
30319 char *kwnames[] = {
30320 (char *) "self",(char *) "string", NULL
30321 };
30322
30323 arg3 = &temp3; res3 = SWIG_NEWOBJ;
30324 arg4 = &temp4; res4 = SWIG_NEWOBJ;
30325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
30326 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30327 if (SWIG_arg_fail(1)) SWIG_fail;
30328 {
30329 arg2 = wxString_in_helper(obj1);
30330 if (arg2 == NULL) SWIG_fail;
30331 temp2 = true;
30332 }
30333 {
30334 PyThreadState* __tstate = wxPyBeginAllowThreads();
30335 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
30336
30337 wxPyEndAllowThreads(__tstate);
30338 if (PyErr_Occurred()) SWIG_fail;
30339 }
30340 Py_INCREF(Py_None); resultobj = Py_None;
30341 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
30342 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
30343 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
30344 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
30345 {
30346 if (temp2)
30347 delete arg2;
30348 }
30349 return resultobj;
30350 fail:
30351 {
30352 if (temp2)
30353 delete arg2;
30354 }
30355 return NULL;
30356 }
30357
30358
30359 static PyObject *_wrap_Window_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
30360 PyObject *resultobj;
30361 wxWindow *arg1 = (wxWindow *) 0 ;
30362 wxString *arg2 = 0 ;
30363 int *arg3 = (int *) 0 ;
30364 int *arg4 = (int *) 0 ;
30365 int *arg5 = (int *) 0 ;
30366 int *arg6 = (int *) 0 ;
30367 wxFont *arg7 = (wxFont *) NULL ;
30368 bool temp2 = false ;
30369 int temp3 ;
30370 int res3 = 0 ;
30371 int temp4 ;
30372 int res4 = 0 ;
30373 int temp5 ;
30374 int res5 = 0 ;
30375 int temp6 ;
30376 int res6 = 0 ;
30377 PyObject * obj0 = 0 ;
30378 PyObject * obj1 = 0 ;
30379 PyObject * obj2 = 0 ;
30380 char *kwnames[] = {
30381 (char *) "self",(char *) "string",(char *) "font", NULL
30382 };
30383
30384 arg3 = &temp3; res3 = SWIG_NEWOBJ;
30385 arg4 = &temp4; res4 = SWIG_NEWOBJ;
30386 arg5 = &temp5; res5 = SWIG_NEWOBJ;
30387 arg6 = &temp6; res6 = SWIG_NEWOBJ;
30388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
30389 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30390 if (SWIG_arg_fail(1)) SWIG_fail;
30391 {
30392 arg2 = wxString_in_helper(obj1);
30393 if (arg2 == NULL) SWIG_fail;
30394 temp2 = true;
30395 }
30396 if (obj2) {
30397 SWIG_Python_ConvertPtr(obj2, (void **)&arg7, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
30398 if (SWIG_arg_fail(7)) SWIG_fail;
30399 }
30400 {
30401 PyThreadState* __tstate = wxPyBeginAllowThreads();
30402 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7);
30403
30404 wxPyEndAllowThreads(__tstate);
30405 if (PyErr_Occurred()) SWIG_fail;
30406 }
30407 Py_INCREF(Py_None); resultobj = Py_None;
30408 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
30409 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
30410 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
30411 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
30412 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
30413 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
30414 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
30415 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
30416 {
30417 if (temp2)
30418 delete arg2;
30419 }
30420 return resultobj;
30421 fail:
30422 {
30423 if (temp2)
30424 delete arg2;
30425 }
30426 return NULL;
30427 }
30428
30429
30430 static PyObject *_wrap_Window_ClientToScreenXY(PyObject *, PyObject *args, PyObject *kwargs) {
30431 PyObject *resultobj;
30432 wxWindow *arg1 = (wxWindow *) 0 ;
30433 int *arg2 = (int *) 0 ;
30434 int *arg3 = (int *) 0 ;
30435 int temp2 ;
30436 int res2 = 0 ;
30437 int temp3 ;
30438 int res3 = 0 ;
30439 PyObject * obj0 = 0 ;
30440 PyObject * obj1 = 0 ;
30441 PyObject * obj2 = 0 ;
30442 char *kwnames[] = {
30443 (char *) "self",(char *) "x",(char *) "y", NULL
30444 };
30445
30446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
30447 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30448 if (SWIG_arg_fail(1)) SWIG_fail;
30449 {
30450 if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) {
30451 temp2 = SWIG_As_int(obj1);
30452 if (SWIG_arg_fail(2)) SWIG_fail;
30453 arg2 = &temp2;
30454 res2 = SWIG_NEWOBJ;
30455 }
30456 }
30457 {
30458 if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) {
30459 temp3 = SWIG_As_int(obj2);
30460 if (SWIG_arg_fail(3)) SWIG_fail;
30461 arg3 = &temp3;
30462 res3 = SWIG_NEWOBJ;
30463 }
30464 }
30465 {
30466 PyThreadState* __tstate = wxPyBeginAllowThreads();
30467 ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3);
30468
30469 wxPyEndAllowThreads(__tstate);
30470 if (PyErr_Occurred()) SWIG_fail;
30471 }
30472 Py_INCREF(Py_None); resultobj = Py_None;
30473 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
30474 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
30475 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
30476 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
30477 return resultobj;
30478 fail:
30479 return NULL;
30480 }
30481
30482
30483 static PyObject *_wrap_Window_ScreenToClientXY(PyObject *, PyObject *args, PyObject *kwargs) {
30484 PyObject *resultobj;
30485 wxWindow *arg1 = (wxWindow *) 0 ;
30486 int *arg2 = (int *) 0 ;
30487 int *arg3 = (int *) 0 ;
30488 int temp2 ;
30489 int res2 = 0 ;
30490 int temp3 ;
30491 int res3 = 0 ;
30492 PyObject * obj0 = 0 ;
30493 PyObject * obj1 = 0 ;
30494 PyObject * obj2 = 0 ;
30495 char *kwnames[] = {
30496 (char *) "self",(char *) "x",(char *) "y", NULL
30497 };
30498
30499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
30500 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30501 if (SWIG_arg_fail(1)) SWIG_fail;
30502 {
30503 if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) {
30504 temp2 = SWIG_As_int(obj1);
30505 if (SWIG_arg_fail(2)) SWIG_fail;
30506 arg2 = &temp2;
30507 res2 = SWIG_NEWOBJ;
30508 }
30509 }
30510 {
30511 if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) {
30512 temp3 = SWIG_As_int(obj2);
30513 if (SWIG_arg_fail(3)) SWIG_fail;
30514 arg3 = &temp3;
30515 res3 = SWIG_NEWOBJ;
30516 }
30517 }
30518 {
30519 PyThreadState* __tstate = wxPyBeginAllowThreads();
30520 ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3);
30521
30522 wxPyEndAllowThreads(__tstate);
30523 if (PyErr_Occurred()) SWIG_fail;
30524 }
30525 Py_INCREF(Py_None); resultobj = Py_None;
30526 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
30527 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
30528 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
30529 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
30530 return resultobj;
30531 fail:
30532 return NULL;
30533 }
30534
30535
30536 static PyObject *_wrap_Window_ClientToScreen(PyObject *, PyObject *args, PyObject *kwargs) {
30537 PyObject *resultobj;
30538 wxWindow *arg1 = (wxWindow *) 0 ;
30539 wxPoint *arg2 = 0 ;
30540 wxPoint result;
30541 wxPoint temp2 ;
30542 PyObject * obj0 = 0 ;
30543 PyObject * obj1 = 0 ;
30544 char *kwnames[] = {
30545 (char *) "self",(char *) "pt", NULL
30546 };
30547
30548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail;
30549 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30550 if (SWIG_arg_fail(1)) SWIG_fail;
30551 {
30552 arg2 = &temp2;
30553 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30554 }
30555 {
30556 PyThreadState* __tstate = wxPyBeginAllowThreads();
30557 result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2);
30558
30559 wxPyEndAllowThreads(__tstate);
30560 if (PyErr_Occurred()) SWIG_fail;
30561 }
30562 {
30563 wxPoint * resultptr;
30564 resultptr = new wxPoint((wxPoint &)(result));
30565 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
30566 }
30567 return resultobj;
30568 fail:
30569 return NULL;
30570 }
30571
30572
30573 static PyObject *_wrap_Window_ScreenToClient(PyObject *, PyObject *args, PyObject *kwargs) {
30574 PyObject *resultobj;
30575 wxWindow *arg1 = (wxWindow *) 0 ;
30576 wxPoint *arg2 = 0 ;
30577 wxPoint result;
30578 wxPoint temp2 ;
30579 PyObject * obj0 = 0 ;
30580 PyObject * obj1 = 0 ;
30581 char *kwnames[] = {
30582 (char *) "self",(char *) "pt", NULL
30583 };
30584
30585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail;
30586 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30587 if (SWIG_arg_fail(1)) SWIG_fail;
30588 {
30589 arg2 = &temp2;
30590 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30591 }
30592 {
30593 PyThreadState* __tstate = wxPyBeginAllowThreads();
30594 result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2);
30595
30596 wxPyEndAllowThreads(__tstate);
30597 if (PyErr_Occurred()) SWIG_fail;
30598 }
30599 {
30600 wxPoint * resultptr;
30601 resultptr = new wxPoint((wxPoint &)(result));
30602 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
30603 }
30604 return resultobj;
30605 fail:
30606 return NULL;
30607 }
30608
30609
30610 static PyObject *_wrap_Window_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) {
30611 PyObject *resultobj;
30612 wxWindow *arg1 = (wxWindow *) 0 ;
30613 int arg2 ;
30614 int arg3 ;
30615 wxHitTest result;
30616 PyObject * obj0 = 0 ;
30617 PyObject * obj1 = 0 ;
30618 PyObject * obj2 = 0 ;
30619 char *kwnames[] = {
30620 (char *) "self",(char *) "x",(char *) "y", NULL
30621 };
30622
30623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
30624 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30625 if (SWIG_arg_fail(1)) SWIG_fail;
30626 {
30627 arg2 = (int)(SWIG_As_int(obj1));
30628 if (SWIG_arg_fail(2)) SWIG_fail;
30629 }
30630 {
30631 arg3 = (int)(SWIG_As_int(obj2));
30632 if (SWIG_arg_fail(3)) SWIG_fail;
30633 }
30634 {
30635 PyThreadState* __tstate = wxPyBeginAllowThreads();
30636 result = (wxHitTest)((wxWindow const *)arg1)->HitTest(arg2,arg3);
30637
30638 wxPyEndAllowThreads(__tstate);
30639 if (PyErr_Occurred()) SWIG_fail;
30640 }
30641 resultobj = SWIG_From_int((result));
30642 return resultobj;
30643 fail:
30644 return NULL;
30645 }
30646
30647
30648 static PyObject *_wrap_Window_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
30649 PyObject *resultobj;
30650 wxWindow *arg1 = (wxWindow *) 0 ;
30651 wxPoint *arg2 = 0 ;
30652 wxHitTest result;
30653 wxPoint temp2 ;
30654 PyObject * obj0 = 0 ;
30655 PyObject * obj1 = 0 ;
30656 char *kwnames[] = {
30657 (char *) "self",(char *) "pt", NULL
30658 };
30659
30660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail;
30661 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30662 if (SWIG_arg_fail(1)) SWIG_fail;
30663 {
30664 arg2 = &temp2;
30665 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30666 }
30667 {
30668 PyThreadState* __tstate = wxPyBeginAllowThreads();
30669 result = (wxHitTest)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2);
30670
30671 wxPyEndAllowThreads(__tstate);
30672 if (PyErr_Occurred()) SWIG_fail;
30673 }
30674 resultobj = SWIG_From_int((result));
30675 return resultobj;
30676 fail:
30677 return NULL;
30678 }
30679
30680
30681 static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *, PyObject *args) {
30682 PyObject *resultobj;
30683 wxWindow *arg1 = (wxWindow *) 0 ;
30684 long arg2 ;
30685 wxBorder result;
30686 PyObject * obj0 = 0 ;
30687 PyObject * obj1 = 0 ;
30688
30689 if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail;
30690 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30691 if (SWIG_arg_fail(1)) SWIG_fail;
30692 {
30693 arg2 = (long)(SWIG_As_long(obj1));
30694 if (SWIG_arg_fail(2)) SWIG_fail;
30695 }
30696 {
30697 PyThreadState* __tstate = wxPyBeginAllowThreads();
30698 result = (wxBorder)((wxWindow const *)arg1)->GetBorder(arg2);
30699
30700 wxPyEndAllowThreads(__tstate);
30701 if (PyErr_Occurred()) SWIG_fail;
30702 }
30703 resultobj = SWIG_From_int((result));
30704 return resultobj;
30705 fail:
30706 return NULL;
30707 }
30708
30709
30710 static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *, PyObject *args) {
30711 PyObject *resultobj;
30712 wxWindow *arg1 = (wxWindow *) 0 ;
30713 wxBorder result;
30714 PyObject * obj0 = 0 ;
30715
30716 if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail;
30717 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30718 if (SWIG_arg_fail(1)) SWIG_fail;
30719 {
30720 PyThreadState* __tstate = wxPyBeginAllowThreads();
30721 result = (wxBorder)((wxWindow const *)arg1)->GetBorder();
30722
30723 wxPyEndAllowThreads(__tstate);
30724 if (PyErr_Occurred()) SWIG_fail;
30725 }
30726 resultobj = SWIG_From_int((result));
30727 return resultobj;
30728 fail:
30729 return NULL;
30730 }
30731
30732
30733 static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) {
30734 int argc;
30735 PyObject *argv[3];
30736 int ii;
30737
30738 argc = PyObject_Length(args);
30739 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
30740 argv[ii] = PyTuple_GetItem(args,ii);
30741 }
30742 if (argc == 1) {
30743 int _v;
30744 {
30745 void *ptr;
30746 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
30747 _v = 0;
30748 PyErr_Clear();
30749 } else {
30750 _v = 1;
30751 }
30752 }
30753 if (_v) {
30754 return _wrap_Window_GetBorder__SWIG_1(self,args);
30755 }
30756 }
30757 if (argc == 2) {
30758 int _v;
30759 {
30760 void *ptr;
30761 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
30762 _v = 0;
30763 PyErr_Clear();
30764 } else {
30765 _v = 1;
30766 }
30767 }
30768 if (_v) {
30769 _v = SWIG_Check_long(argv[1]);
30770 if (_v) {
30771 return _wrap_Window_GetBorder__SWIG_0(self,args);
30772 }
30773 }
30774 }
30775
30776 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'Window_GetBorder'");
30777 return NULL;
30778 }
30779
30780
30781 static PyObject *_wrap_Window_UpdateWindowUI(PyObject *, PyObject *args, PyObject *kwargs) {
30782 PyObject *resultobj;
30783 wxWindow *arg1 = (wxWindow *) 0 ;
30784 long arg2 = (long) wxUPDATE_UI_NONE ;
30785 PyObject * obj0 = 0 ;
30786 PyObject * obj1 = 0 ;
30787 char *kwnames[] = {
30788 (char *) "self",(char *) "flags", NULL
30789 };
30790
30791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail;
30792 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30793 if (SWIG_arg_fail(1)) SWIG_fail;
30794 if (obj1) {
30795 {
30796 arg2 = (long)(SWIG_As_long(obj1));
30797 if (SWIG_arg_fail(2)) SWIG_fail;
30798 }
30799 }
30800 {
30801 PyThreadState* __tstate = wxPyBeginAllowThreads();
30802 (arg1)->UpdateWindowUI(arg2);
30803
30804 wxPyEndAllowThreads(__tstate);
30805 if (PyErr_Occurred()) SWIG_fail;
30806 }
30807 Py_INCREF(Py_None); resultobj = Py_None;
30808 return resultobj;
30809 fail:
30810 return NULL;
30811 }
30812
30813
30814 static PyObject *_wrap_Window_PopupMenuXY(PyObject *, PyObject *args, PyObject *kwargs) {
30815 PyObject *resultobj;
30816 wxWindow *arg1 = (wxWindow *) 0 ;
30817 wxMenu *arg2 = (wxMenu *) 0 ;
30818 int arg3 = (int) -1 ;
30819 int arg4 = (int) -1 ;
30820 bool result;
30821 PyObject * obj0 = 0 ;
30822 PyObject * obj1 = 0 ;
30823 PyObject * obj2 = 0 ;
30824 PyObject * obj3 = 0 ;
30825 char *kwnames[] = {
30826 (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL
30827 };
30828
30829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30830 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30831 if (SWIG_arg_fail(1)) SWIG_fail;
30832 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
30833 if (SWIG_arg_fail(2)) SWIG_fail;
30834 if (obj2) {
30835 {
30836 arg3 = (int)(SWIG_As_int(obj2));
30837 if (SWIG_arg_fail(3)) SWIG_fail;
30838 }
30839 }
30840 if (obj3) {
30841 {
30842 arg4 = (int)(SWIG_As_int(obj3));
30843 if (SWIG_arg_fail(4)) SWIG_fail;
30844 }
30845 }
30846 {
30847 PyThreadState* __tstate = wxPyBeginAllowThreads();
30848 result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4);
30849
30850 wxPyEndAllowThreads(__tstate);
30851 if (PyErr_Occurred()) SWIG_fail;
30852 }
30853 {
30854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30855 }
30856 return resultobj;
30857 fail:
30858 return NULL;
30859 }
30860
30861
30862 static PyObject *_wrap_Window_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) {
30863 PyObject *resultobj;
30864 wxWindow *arg1 = (wxWindow *) 0 ;
30865 wxMenu *arg2 = (wxMenu *) 0 ;
30866 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30867 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30868 bool result;
30869 wxPoint temp3 ;
30870 PyObject * obj0 = 0 ;
30871 PyObject * obj1 = 0 ;
30872 PyObject * obj2 = 0 ;
30873 char *kwnames[] = {
30874 (char *) "self",(char *) "menu",(char *) "pos", NULL
30875 };
30876
30877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail;
30878 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30879 if (SWIG_arg_fail(1)) SWIG_fail;
30880 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
30881 if (SWIG_arg_fail(2)) SWIG_fail;
30882 if (obj2) {
30883 {
30884 arg3 = &temp3;
30885 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30886 }
30887 }
30888 {
30889 PyThreadState* __tstate = wxPyBeginAllowThreads();
30890 result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3);
30891
30892 wxPyEndAllowThreads(__tstate);
30893 if (PyErr_Occurred()) SWIG_fail;
30894 }
30895 {
30896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30897 }
30898 return resultobj;
30899 fail:
30900 return NULL;
30901 }
30902
30903
30904 static PyObject *_wrap_Window_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
30905 PyObject *resultobj;
30906 wxWindow *arg1 = (wxWindow *) 0 ;
30907 long result;
30908 PyObject * obj0 = 0 ;
30909 char *kwnames[] = {
30910 (char *) "self", NULL
30911 };
30912
30913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail;
30914 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30915 if (SWIG_arg_fail(1)) SWIG_fail;
30916 {
30917 PyThreadState* __tstate = wxPyBeginAllowThreads();
30918 result = (long)wxWindow_GetHandle(arg1);
30919
30920 wxPyEndAllowThreads(__tstate);
30921 if (PyErr_Occurred()) SWIG_fail;
30922 }
30923 {
30924 resultobj = SWIG_From_long((long)(result));
30925 }
30926 return resultobj;
30927 fail:
30928 return NULL;
30929 }
30930
30931
30932 static PyObject *_wrap_Window_AssociateHandle(PyObject *, PyObject *args, PyObject *kwargs) {
30933 PyObject *resultobj;
30934 wxWindow *arg1 = (wxWindow *) 0 ;
30935 long arg2 ;
30936 PyObject * obj0 = 0 ;
30937 PyObject * obj1 = 0 ;
30938 char *kwnames[] = {
30939 (char *) "self",(char *) "handle", NULL
30940 };
30941
30942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) goto fail;
30943 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30944 if (SWIG_arg_fail(1)) SWIG_fail;
30945 {
30946 arg2 = (long)(SWIG_As_long(obj1));
30947 if (SWIG_arg_fail(2)) SWIG_fail;
30948 }
30949 {
30950 PyThreadState* __tstate = wxPyBeginAllowThreads();
30951 wxWindow_AssociateHandle(arg1,arg2);
30952
30953 wxPyEndAllowThreads(__tstate);
30954 if (PyErr_Occurred()) SWIG_fail;
30955 }
30956 Py_INCREF(Py_None); resultobj = Py_None;
30957 return resultobj;
30958 fail:
30959 return NULL;
30960 }
30961
30962
30963 static PyObject *_wrap_Window_DissociateHandle(PyObject *, PyObject *args, PyObject *kwargs) {
30964 PyObject *resultobj;
30965 wxWindow *arg1 = (wxWindow *) 0 ;
30966 PyObject * obj0 = 0 ;
30967 char *kwnames[] = {
30968 (char *) "self", NULL
30969 };
30970
30971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DissociateHandle",kwnames,&obj0)) goto fail;
30972 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
30973 if (SWIG_arg_fail(1)) SWIG_fail;
30974 {
30975 PyThreadState* __tstate = wxPyBeginAllowThreads();
30976 (arg1)->DissociateHandle();
30977
30978 wxPyEndAllowThreads(__tstate);
30979 if (PyErr_Occurred()) SWIG_fail;
30980 }
30981 Py_INCREF(Py_None); resultobj = Py_None;
30982 return resultobj;
30983 fail:
30984 return NULL;
30985 }
30986
30987
30988 static PyObject *_wrap_Window_OnPaint(PyObject *, PyObject *args, PyObject *kwargs) {
30989 PyObject *resultobj;
30990 wxWindow *arg1 = (wxWindow *) 0 ;
30991 wxPaintEvent *arg2 = 0 ;
30992 PyObject * obj0 = 0 ;
30993 PyObject * obj1 = 0 ;
30994 char *kwnames[] = {
30995 (char *) "self",(char *) "event", NULL
30996 };
30997
30998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail;
30999 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31000 if (SWIG_arg_fail(1)) SWIG_fail;
31001 {
31002 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPaintEvent, SWIG_POINTER_EXCEPTION | 0);
31003 if (SWIG_arg_fail(2)) SWIG_fail;
31004 if (arg2 == NULL) {
31005 SWIG_null_ref("wxPaintEvent");
31006 }
31007 if (SWIG_arg_fail(2)) SWIG_fail;
31008 }
31009 {
31010 PyThreadState* __tstate = wxPyBeginAllowThreads();
31011 (arg1)->OnPaint(*arg2);
31012
31013 wxPyEndAllowThreads(__tstate);
31014 if (PyErr_Occurred()) SWIG_fail;
31015 }
31016 Py_INCREF(Py_None); resultobj = Py_None;
31017 return resultobj;
31018 fail:
31019 return NULL;
31020 }
31021
31022
31023 static PyObject *_wrap_Window_HasScrollbar(PyObject *, PyObject *args, PyObject *kwargs) {
31024 PyObject *resultobj;
31025 wxWindow *arg1 = (wxWindow *) 0 ;
31026 int arg2 ;
31027 bool result;
31028 PyObject * obj0 = 0 ;
31029 PyObject * obj1 = 0 ;
31030 char *kwnames[] = {
31031 (char *) "self",(char *) "orient", NULL
31032 };
31033
31034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail;
31035 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31036 if (SWIG_arg_fail(1)) SWIG_fail;
31037 {
31038 arg2 = (int)(SWIG_As_int(obj1));
31039 if (SWIG_arg_fail(2)) SWIG_fail;
31040 }
31041 {
31042 PyThreadState* __tstate = wxPyBeginAllowThreads();
31043 result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2);
31044
31045 wxPyEndAllowThreads(__tstate);
31046 if (PyErr_Occurred()) SWIG_fail;
31047 }
31048 {
31049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31050 }
31051 return resultobj;
31052 fail:
31053 return NULL;
31054 }
31055
31056
31057 static PyObject *_wrap_Window_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) {
31058 PyObject *resultobj;
31059 wxWindow *arg1 = (wxWindow *) 0 ;
31060 int arg2 ;
31061 int arg3 ;
31062 int arg4 ;
31063 int arg5 ;
31064 bool arg6 = (bool) true ;
31065 PyObject * obj0 = 0 ;
31066 PyObject * obj1 = 0 ;
31067 PyObject * obj2 = 0 ;
31068 PyObject * obj3 = 0 ;
31069 PyObject * obj4 = 0 ;
31070 PyObject * obj5 = 0 ;
31071 char *kwnames[] = {
31072 (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL
31073 };
31074
31075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
31076 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31077 if (SWIG_arg_fail(1)) SWIG_fail;
31078 {
31079 arg2 = (int)(SWIG_As_int(obj1));
31080 if (SWIG_arg_fail(2)) SWIG_fail;
31081 }
31082 {
31083 arg3 = (int)(SWIG_As_int(obj2));
31084 if (SWIG_arg_fail(3)) SWIG_fail;
31085 }
31086 {
31087 arg4 = (int)(SWIG_As_int(obj3));
31088 if (SWIG_arg_fail(4)) SWIG_fail;
31089 }
31090 {
31091 arg5 = (int)(SWIG_As_int(obj4));
31092 if (SWIG_arg_fail(5)) SWIG_fail;
31093 }
31094 if (obj5) {
31095 {
31096 arg6 = (bool)(SWIG_As_bool(obj5));
31097 if (SWIG_arg_fail(6)) SWIG_fail;
31098 }
31099 }
31100 {
31101 PyThreadState* __tstate = wxPyBeginAllowThreads();
31102 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
31103
31104 wxPyEndAllowThreads(__tstate);
31105 if (PyErr_Occurred()) SWIG_fail;
31106 }
31107 Py_INCREF(Py_None); resultobj = Py_None;
31108 return resultobj;
31109 fail:
31110 return NULL;
31111 }
31112
31113
31114 static PyObject *_wrap_Window_SetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) {
31115 PyObject *resultobj;
31116 wxWindow *arg1 = (wxWindow *) 0 ;
31117 int arg2 ;
31118 int arg3 ;
31119 bool arg4 = (bool) true ;
31120 PyObject * obj0 = 0 ;
31121 PyObject * obj1 = 0 ;
31122 PyObject * obj2 = 0 ;
31123 PyObject * obj3 = 0 ;
31124 char *kwnames[] = {
31125 (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL
31126 };
31127
31128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31129 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31130 if (SWIG_arg_fail(1)) SWIG_fail;
31131 {
31132 arg2 = (int)(SWIG_As_int(obj1));
31133 if (SWIG_arg_fail(2)) SWIG_fail;
31134 }
31135 {
31136 arg3 = (int)(SWIG_As_int(obj2));
31137 if (SWIG_arg_fail(3)) SWIG_fail;
31138 }
31139 if (obj3) {
31140 {
31141 arg4 = (bool)(SWIG_As_bool(obj3));
31142 if (SWIG_arg_fail(4)) SWIG_fail;
31143 }
31144 }
31145 {
31146 PyThreadState* __tstate = wxPyBeginAllowThreads();
31147 (arg1)->SetScrollPos(arg2,arg3,arg4);
31148
31149 wxPyEndAllowThreads(__tstate);
31150 if (PyErr_Occurred()) SWIG_fail;
31151 }
31152 Py_INCREF(Py_None); resultobj = Py_None;
31153 return resultobj;
31154 fail:
31155 return NULL;
31156 }
31157
31158
31159 static PyObject *_wrap_Window_GetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) {
31160 PyObject *resultobj;
31161 wxWindow *arg1 = (wxWindow *) 0 ;
31162 int arg2 ;
31163 int result;
31164 PyObject * obj0 = 0 ;
31165 PyObject * obj1 = 0 ;
31166 char *kwnames[] = {
31167 (char *) "self",(char *) "orientation", NULL
31168 };
31169
31170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail;
31171 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31172 if (SWIG_arg_fail(1)) SWIG_fail;
31173 {
31174 arg2 = (int)(SWIG_As_int(obj1));
31175 if (SWIG_arg_fail(2)) SWIG_fail;
31176 }
31177 {
31178 PyThreadState* __tstate = wxPyBeginAllowThreads();
31179 result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2);
31180
31181 wxPyEndAllowThreads(__tstate);
31182 if (PyErr_Occurred()) SWIG_fail;
31183 }
31184 {
31185 resultobj = SWIG_From_int((int)(result));
31186 }
31187 return resultobj;
31188 fail:
31189 return NULL;
31190 }
31191
31192
31193 static PyObject *_wrap_Window_GetScrollThumb(PyObject *, PyObject *args, PyObject *kwargs) {
31194 PyObject *resultobj;
31195 wxWindow *arg1 = (wxWindow *) 0 ;
31196 int arg2 ;
31197 int result;
31198 PyObject * obj0 = 0 ;
31199 PyObject * obj1 = 0 ;
31200 char *kwnames[] = {
31201 (char *) "self",(char *) "orientation", NULL
31202 };
31203
31204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail;
31205 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31206 if (SWIG_arg_fail(1)) SWIG_fail;
31207 {
31208 arg2 = (int)(SWIG_As_int(obj1));
31209 if (SWIG_arg_fail(2)) SWIG_fail;
31210 }
31211 {
31212 PyThreadState* __tstate = wxPyBeginAllowThreads();
31213 result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2);
31214
31215 wxPyEndAllowThreads(__tstate);
31216 if (PyErr_Occurred()) SWIG_fail;
31217 }
31218 {
31219 resultobj = SWIG_From_int((int)(result));
31220 }
31221 return resultobj;
31222 fail:
31223 return NULL;
31224 }
31225
31226
31227 static PyObject *_wrap_Window_GetScrollRange(PyObject *, PyObject *args, PyObject *kwargs) {
31228 PyObject *resultobj;
31229 wxWindow *arg1 = (wxWindow *) 0 ;
31230 int arg2 ;
31231 int result;
31232 PyObject * obj0 = 0 ;
31233 PyObject * obj1 = 0 ;
31234 char *kwnames[] = {
31235 (char *) "self",(char *) "orientation", NULL
31236 };
31237
31238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail;
31239 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31240 if (SWIG_arg_fail(1)) SWIG_fail;
31241 {
31242 arg2 = (int)(SWIG_As_int(obj1));
31243 if (SWIG_arg_fail(2)) SWIG_fail;
31244 }
31245 {
31246 PyThreadState* __tstate = wxPyBeginAllowThreads();
31247 result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2);
31248
31249 wxPyEndAllowThreads(__tstate);
31250 if (PyErr_Occurred()) SWIG_fail;
31251 }
31252 {
31253 resultobj = SWIG_From_int((int)(result));
31254 }
31255 return resultobj;
31256 fail:
31257 return NULL;
31258 }
31259
31260
31261 static PyObject *_wrap_Window_ScrollWindow(PyObject *, PyObject *args, PyObject *kwargs) {
31262 PyObject *resultobj;
31263 wxWindow *arg1 = (wxWindow *) 0 ;
31264 int arg2 ;
31265 int arg3 ;
31266 wxRect *arg4 = (wxRect *) NULL ;
31267 PyObject * obj0 = 0 ;
31268 PyObject * obj1 = 0 ;
31269 PyObject * obj2 = 0 ;
31270 PyObject * obj3 = 0 ;
31271 char *kwnames[] = {
31272 (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL
31273 };
31274
31275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31276 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31277 if (SWIG_arg_fail(1)) SWIG_fail;
31278 {
31279 arg2 = (int)(SWIG_As_int(obj1));
31280 if (SWIG_arg_fail(2)) SWIG_fail;
31281 }
31282 {
31283 arg3 = (int)(SWIG_As_int(obj2));
31284 if (SWIG_arg_fail(3)) SWIG_fail;
31285 }
31286 if (obj3) {
31287 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
31288 if (SWIG_arg_fail(4)) SWIG_fail;
31289 }
31290 {
31291 PyThreadState* __tstate = wxPyBeginAllowThreads();
31292 (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4);
31293
31294 wxPyEndAllowThreads(__tstate);
31295 if (PyErr_Occurred()) SWIG_fail;
31296 }
31297 Py_INCREF(Py_None); resultobj = Py_None;
31298 return resultobj;
31299 fail:
31300 return NULL;
31301 }
31302
31303
31304 static PyObject *_wrap_Window_ScrollLines(PyObject *, PyObject *args, PyObject *kwargs) {
31305 PyObject *resultobj;
31306 wxWindow *arg1 = (wxWindow *) 0 ;
31307 int arg2 ;
31308 bool result;
31309 PyObject * obj0 = 0 ;
31310 PyObject * obj1 = 0 ;
31311 char *kwnames[] = {
31312 (char *) "self",(char *) "lines", NULL
31313 };
31314
31315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail;
31316 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31317 if (SWIG_arg_fail(1)) SWIG_fail;
31318 {
31319 arg2 = (int)(SWIG_As_int(obj1));
31320 if (SWIG_arg_fail(2)) SWIG_fail;
31321 }
31322 {
31323 PyThreadState* __tstate = wxPyBeginAllowThreads();
31324 result = (bool)(arg1)->ScrollLines(arg2);
31325
31326 wxPyEndAllowThreads(__tstate);
31327 if (PyErr_Occurred()) SWIG_fail;
31328 }
31329 {
31330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31331 }
31332 return resultobj;
31333 fail:
31334 return NULL;
31335 }
31336
31337
31338 static PyObject *_wrap_Window_ScrollPages(PyObject *, PyObject *args, PyObject *kwargs) {
31339 PyObject *resultobj;
31340 wxWindow *arg1 = (wxWindow *) 0 ;
31341 int arg2 ;
31342 bool result;
31343 PyObject * obj0 = 0 ;
31344 PyObject * obj1 = 0 ;
31345 char *kwnames[] = {
31346 (char *) "self",(char *) "pages", NULL
31347 };
31348
31349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail;
31350 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31351 if (SWIG_arg_fail(1)) SWIG_fail;
31352 {
31353 arg2 = (int)(SWIG_As_int(obj1));
31354 if (SWIG_arg_fail(2)) SWIG_fail;
31355 }
31356 {
31357 PyThreadState* __tstate = wxPyBeginAllowThreads();
31358 result = (bool)(arg1)->ScrollPages(arg2);
31359
31360 wxPyEndAllowThreads(__tstate);
31361 if (PyErr_Occurred()) SWIG_fail;
31362 }
31363 {
31364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31365 }
31366 return resultobj;
31367 fail:
31368 return NULL;
31369 }
31370
31371
31372 static PyObject *_wrap_Window_LineUp(PyObject *, PyObject *args, PyObject *kwargs) {
31373 PyObject *resultobj;
31374 wxWindow *arg1 = (wxWindow *) 0 ;
31375 bool result;
31376 PyObject * obj0 = 0 ;
31377 char *kwnames[] = {
31378 (char *) "self", NULL
31379 };
31380
31381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail;
31382 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31383 if (SWIG_arg_fail(1)) SWIG_fail;
31384 {
31385 PyThreadState* __tstate = wxPyBeginAllowThreads();
31386 result = (bool)(arg1)->LineUp();
31387
31388 wxPyEndAllowThreads(__tstate);
31389 if (PyErr_Occurred()) SWIG_fail;
31390 }
31391 {
31392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31393 }
31394 return resultobj;
31395 fail:
31396 return NULL;
31397 }
31398
31399
31400 static PyObject *_wrap_Window_LineDown(PyObject *, PyObject *args, PyObject *kwargs) {
31401 PyObject *resultobj;
31402 wxWindow *arg1 = (wxWindow *) 0 ;
31403 bool result;
31404 PyObject * obj0 = 0 ;
31405 char *kwnames[] = {
31406 (char *) "self", NULL
31407 };
31408
31409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail;
31410 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31411 if (SWIG_arg_fail(1)) SWIG_fail;
31412 {
31413 PyThreadState* __tstate = wxPyBeginAllowThreads();
31414 result = (bool)(arg1)->LineDown();
31415
31416 wxPyEndAllowThreads(__tstate);
31417 if (PyErr_Occurred()) SWIG_fail;
31418 }
31419 {
31420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31421 }
31422 return resultobj;
31423 fail:
31424 return NULL;
31425 }
31426
31427
31428 static PyObject *_wrap_Window_PageUp(PyObject *, PyObject *args, PyObject *kwargs) {
31429 PyObject *resultobj;
31430 wxWindow *arg1 = (wxWindow *) 0 ;
31431 bool result;
31432 PyObject * obj0 = 0 ;
31433 char *kwnames[] = {
31434 (char *) "self", NULL
31435 };
31436
31437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail;
31438 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31439 if (SWIG_arg_fail(1)) SWIG_fail;
31440 {
31441 PyThreadState* __tstate = wxPyBeginAllowThreads();
31442 result = (bool)(arg1)->PageUp();
31443
31444 wxPyEndAllowThreads(__tstate);
31445 if (PyErr_Occurred()) SWIG_fail;
31446 }
31447 {
31448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31449 }
31450 return resultobj;
31451 fail:
31452 return NULL;
31453 }
31454
31455
31456 static PyObject *_wrap_Window_PageDown(PyObject *, PyObject *args, PyObject *kwargs) {
31457 PyObject *resultobj;
31458 wxWindow *arg1 = (wxWindow *) 0 ;
31459 bool result;
31460 PyObject * obj0 = 0 ;
31461 char *kwnames[] = {
31462 (char *) "self", NULL
31463 };
31464
31465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail;
31466 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31467 if (SWIG_arg_fail(1)) SWIG_fail;
31468 {
31469 PyThreadState* __tstate = wxPyBeginAllowThreads();
31470 result = (bool)(arg1)->PageDown();
31471
31472 wxPyEndAllowThreads(__tstate);
31473 if (PyErr_Occurred()) SWIG_fail;
31474 }
31475 {
31476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31477 }
31478 return resultobj;
31479 fail:
31480 return NULL;
31481 }
31482
31483
31484 static PyObject *_wrap_Window_SetHelpText(PyObject *, PyObject *args, PyObject *kwargs) {
31485 PyObject *resultobj;
31486 wxWindow *arg1 = (wxWindow *) 0 ;
31487 wxString *arg2 = 0 ;
31488 bool temp2 = false ;
31489 PyObject * obj0 = 0 ;
31490 PyObject * obj1 = 0 ;
31491 char *kwnames[] = {
31492 (char *) "self",(char *) "text", NULL
31493 };
31494
31495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail;
31496 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31497 if (SWIG_arg_fail(1)) SWIG_fail;
31498 {
31499 arg2 = wxString_in_helper(obj1);
31500 if (arg2 == NULL) SWIG_fail;
31501 temp2 = true;
31502 }
31503 {
31504 PyThreadState* __tstate = wxPyBeginAllowThreads();
31505 (arg1)->SetHelpText((wxString const &)*arg2);
31506
31507 wxPyEndAllowThreads(__tstate);
31508 if (PyErr_Occurred()) SWIG_fail;
31509 }
31510 Py_INCREF(Py_None); resultobj = Py_None;
31511 {
31512 if (temp2)
31513 delete arg2;
31514 }
31515 return resultobj;
31516 fail:
31517 {
31518 if (temp2)
31519 delete arg2;
31520 }
31521 return NULL;
31522 }
31523
31524
31525 static PyObject *_wrap_Window_SetHelpTextForId(PyObject *, PyObject *args, PyObject *kwargs) {
31526 PyObject *resultobj;
31527 wxWindow *arg1 = (wxWindow *) 0 ;
31528 wxString *arg2 = 0 ;
31529 bool temp2 = false ;
31530 PyObject * obj0 = 0 ;
31531 PyObject * obj1 = 0 ;
31532 char *kwnames[] = {
31533 (char *) "self",(char *) "text", NULL
31534 };
31535
31536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail;
31537 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31538 if (SWIG_arg_fail(1)) SWIG_fail;
31539 {
31540 arg2 = wxString_in_helper(obj1);
31541 if (arg2 == NULL) SWIG_fail;
31542 temp2 = true;
31543 }
31544 {
31545 PyThreadState* __tstate = wxPyBeginAllowThreads();
31546 (arg1)->SetHelpTextForId((wxString const &)*arg2);
31547
31548 wxPyEndAllowThreads(__tstate);
31549 if (PyErr_Occurred()) SWIG_fail;
31550 }
31551 Py_INCREF(Py_None); resultobj = Py_None;
31552 {
31553 if (temp2)
31554 delete arg2;
31555 }
31556 return resultobj;
31557 fail:
31558 {
31559 if (temp2)
31560 delete arg2;
31561 }
31562 return NULL;
31563 }
31564
31565
31566 static PyObject *_wrap_Window_GetHelpText(PyObject *, PyObject *args, PyObject *kwargs) {
31567 PyObject *resultobj;
31568 wxWindow *arg1 = (wxWindow *) 0 ;
31569 wxString result;
31570 PyObject * obj0 = 0 ;
31571 char *kwnames[] = {
31572 (char *) "self", NULL
31573 };
31574
31575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail;
31576 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31577 if (SWIG_arg_fail(1)) SWIG_fail;
31578 {
31579 PyThreadState* __tstate = wxPyBeginAllowThreads();
31580 result = ((wxWindow const *)arg1)->GetHelpText();
31581
31582 wxPyEndAllowThreads(__tstate);
31583 if (PyErr_Occurred()) SWIG_fail;
31584 }
31585 {
31586 #if wxUSE_UNICODE
31587 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31588 #else
31589 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31590 #endif
31591 }
31592 return resultobj;
31593 fail:
31594 return NULL;
31595 }
31596
31597
31598 static PyObject *_wrap_Window_SetToolTipString(PyObject *, PyObject *args, PyObject *kwargs) {
31599 PyObject *resultobj;
31600 wxWindow *arg1 = (wxWindow *) 0 ;
31601 wxString *arg2 = 0 ;
31602 bool temp2 = false ;
31603 PyObject * obj0 = 0 ;
31604 PyObject * obj1 = 0 ;
31605 char *kwnames[] = {
31606 (char *) "self",(char *) "tip", NULL
31607 };
31608
31609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail;
31610 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31611 if (SWIG_arg_fail(1)) SWIG_fail;
31612 {
31613 arg2 = wxString_in_helper(obj1);
31614 if (arg2 == NULL) SWIG_fail;
31615 temp2 = true;
31616 }
31617 {
31618 PyThreadState* __tstate = wxPyBeginAllowThreads();
31619 (arg1)->SetToolTip((wxString const &)*arg2);
31620
31621 wxPyEndAllowThreads(__tstate);
31622 if (PyErr_Occurred()) SWIG_fail;
31623 }
31624 Py_INCREF(Py_None); resultobj = Py_None;
31625 {
31626 if (temp2)
31627 delete arg2;
31628 }
31629 return resultobj;
31630 fail:
31631 {
31632 if (temp2)
31633 delete arg2;
31634 }
31635 return NULL;
31636 }
31637
31638
31639 static PyObject *_wrap_Window_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
31640 PyObject *resultobj;
31641 wxWindow *arg1 = (wxWindow *) 0 ;
31642 wxToolTip *arg2 = (wxToolTip *) 0 ;
31643 PyObject * obj0 = 0 ;
31644 PyObject * obj1 = 0 ;
31645 char *kwnames[] = {
31646 (char *) "self",(char *) "tip", NULL
31647 };
31648
31649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
31650 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31651 if (SWIG_arg_fail(1)) SWIG_fail;
31652 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0);
31653 if (SWIG_arg_fail(2)) SWIG_fail;
31654 {
31655 PyThreadState* __tstate = wxPyBeginAllowThreads();
31656 (arg1)->SetToolTip(arg2);
31657
31658 wxPyEndAllowThreads(__tstate);
31659 if (PyErr_Occurred()) SWIG_fail;
31660 }
31661 Py_INCREF(Py_None); resultobj = Py_None;
31662 return resultobj;
31663 fail:
31664 return NULL;
31665 }
31666
31667
31668 static PyObject *_wrap_Window_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
31669 PyObject *resultobj;
31670 wxWindow *arg1 = (wxWindow *) 0 ;
31671 wxToolTip *result;
31672 PyObject * obj0 = 0 ;
31673 char *kwnames[] = {
31674 (char *) "self", NULL
31675 };
31676
31677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail;
31678 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31679 if (SWIG_arg_fail(1)) SWIG_fail;
31680 {
31681 PyThreadState* __tstate = wxPyBeginAllowThreads();
31682 result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip();
31683
31684 wxPyEndAllowThreads(__tstate);
31685 if (PyErr_Occurred()) SWIG_fail;
31686 }
31687 {
31688 resultobj = wxPyMake_wxObject(result, 0);
31689 }
31690 return resultobj;
31691 fail:
31692 return NULL;
31693 }
31694
31695
31696 static PyObject *_wrap_Window_SetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
31697 PyObject *resultobj;
31698 wxWindow *arg1 = (wxWindow *) 0 ;
31699 wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ;
31700 PyObject * obj0 = 0 ;
31701 PyObject * obj1 = 0 ;
31702 char *kwnames[] = {
31703 (char *) "self",(char *) "dropTarget", NULL
31704 };
31705
31706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail;
31707 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31708 if (SWIG_arg_fail(1)) SWIG_fail;
31709 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
31710 if (SWIG_arg_fail(2)) SWIG_fail;
31711 {
31712 PyThreadState* __tstate = wxPyBeginAllowThreads();
31713 (arg1)->SetDropTarget(arg2);
31714
31715 wxPyEndAllowThreads(__tstate);
31716 if (PyErr_Occurred()) SWIG_fail;
31717 }
31718 Py_INCREF(Py_None); resultobj = Py_None;
31719 return resultobj;
31720 fail:
31721 return NULL;
31722 }
31723
31724
31725 static PyObject *_wrap_Window_GetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
31726 PyObject *resultobj;
31727 wxWindow *arg1 = (wxWindow *) 0 ;
31728 wxPyDropTarget *result;
31729 PyObject * obj0 = 0 ;
31730 char *kwnames[] = {
31731 (char *) "self", NULL
31732 };
31733
31734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail;
31735 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31736 if (SWIG_arg_fail(1)) SWIG_fail;
31737 {
31738 PyThreadState* __tstate = wxPyBeginAllowThreads();
31739 result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget();
31740
31741 wxPyEndAllowThreads(__tstate);
31742 if (PyErr_Occurred()) SWIG_fail;
31743 }
31744 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0);
31745 return resultobj;
31746 fail:
31747 return NULL;
31748 }
31749
31750
31751 static PyObject *_wrap_Window_DragAcceptFiles(PyObject *, PyObject *args, PyObject *kwargs) {
31752 PyObject *resultobj;
31753 wxWindow *arg1 = (wxWindow *) 0 ;
31754 bool arg2 ;
31755 PyObject * obj0 = 0 ;
31756 PyObject * obj1 = 0 ;
31757 char *kwnames[] = {
31758 (char *) "self",(char *) "accept", NULL
31759 };
31760
31761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail;
31762 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31763 if (SWIG_arg_fail(1)) SWIG_fail;
31764 {
31765 arg2 = (bool)(SWIG_As_bool(obj1));
31766 if (SWIG_arg_fail(2)) SWIG_fail;
31767 }
31768 {
31769 PyThreadState* __tstate = wxPyBeginAllowThreads();
31770 (arg1)->DragAcceptFiles(arg2);
31771
31772 wxPyEndAllowThreads(__tstate);
31773 if (PyErr_Occurred()) SWIG_fail;
31774 }
31775 Py_INCREF(Py_None); resultobj = Py_None;
31776 return resultobj;
31777 fail:
31778 return NULL;
31779 }
31780
31781
31782 static PyObject *_wrap_Window_SetConstraints(PyObject *, PyObject *args, PyObject *kwargs) {
31783 PyObject *resultobj;
31784 wxWindow *arg1 = (wxWindow *) 0 ;
31785 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
31786 PyObject * obj0 = 0 ;
31787 PyObject * obj1 = 0 ;
31788 char *kwnames[] = {
31789 (char *) "self",(char *) "constraints", NULL
31790 };
31791
31792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail;
31793 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31794 if (SWIG_arg_fail(1)) SWIG_fail;
31795 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0);
31796 if (SWIG_arg_fail(2)) SWIG_fail;
31797 {
31798 PyThreadState* __tstate = wxPyBeginAllowThreads();
31799 (arg1)->SetConstraints(arg2);
31800
31801 wxPyEndAllowThreads(__tstate);
31802 if (PyErr_Occurred()) SWIG_fail;
31803 }
31804 Py_INCREF(Py_None); resultobj = Py_None;
31805 return resultobj;
31806 fail:
31807 return NULL;
31808 }
31809
31810
31811 static PyObject *_wrap_Window_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) {
31812 PyObject *resultobj;
31813 wxWindow *arg1 = (wxWindow *) 0 ;
31814 wxLayoutConstraints *result;
31815 PyObject * obj0 = 0 ;
31816 char *kwnames[] = {
31817 (char *) "self", NULL
31818 };
31819
31820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail;
31821 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31822 if (SWIG_arg_fail(1)) SWIG_fail;
31823 {
31824 PyThreadState* __tstate = wxPyBeginAllowThreads();
31825 result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints();
31826
31827 wxPyEndAllowThreads(__tstate);
31828 if (PyErr_Occurred()) SWIG_fail;
31829 }
31830 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0);
31831 return resultobj;
31832 fail:
31833 return NULL;
31834 }
31835
31836
31837 static PyObject *_wrap_Window_SetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) {
31838 PyObject *resultobj;
31839 wxWindow *arg1 = (wxWindow *) 0 ;
31840 bool arg2 ;
31841 PyObject * obj0 = 0 ;
31842 PyObject * obj1 = 0 ;
31843 char *kwnames[] = {
31844 (char *) "self",(char *) "autoLayout", NULL
31845 };
31846
31847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail;
31848 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31849 if (SWIG_arg_fail(1)) SWIG_fail;
31850 {
31851 arg2 = (bool)(SWIG_As_bool(obj1));
31852 if (SWIG_arg_fail(2)) SWIG_fail;
31853 }
31854 {
31855 PyThreadState* __tstate = wxPyBeginAllowThreads();
31856 (arg1)->SetAutoLayout(arg2);
31857
31858 wxPyEndAllowThreads(__tstate);
31859 if (PyErr_Occurred()) SWIG_fail;
31860 }
31861 Py_INCREF(Py_None); resultobj = Py_None;
31862 return resultobj;
31863 fail:
31864 return NULL;
31865 }
31866
31867
31868 static PyObject *_wrap_Window_GetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) {
31869 PyObject *resultobj;
31870 wxWindow *arg1 = (wxWindow *) 0 ;
31871 bool result;
31872 PyObject * obj0 = 0 ;
31873 char *kwnames[] = {
31874 (char *) "self", NULL
31875 };
31876
31877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail;
31878 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31879 if (SWIG_arg_fail(1)) SWIG_fail;
31880 {
31881 PyThreadState* __tstate = wxPyBeginAllowThreads();
31882 result = (bool)((wxWindow const *)arg1)->GetAutoLayout();
31883
31884 wxPyEndAllowThreads(__tstate);
31885 if (PyErr_Occurred()) SWIG_fail;
31886 }
31887 {
31888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31889 }
31890 return resultobj;
31891 fail:
31892 return NULL;
31893 }
31894
31895
31896 static PyObject *_wrap_Window_Layout(PyObject *, PyObject *args, PyObject *kwargs) {
31897 PyObject *resultobj;
31898 wxWindow *arg1 = (wxWindow *) 0 ;
31899 bool result;
31900 PyObject * obj0 = 0 ;
31901 char *kwnames[] = {
31902 (char *) "self", NULL
31903 };
31904
31905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail;
31906 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31907 if (SWIG_arg_fail(1)) SWIG_fail;
31908 {
31909 PyThreadState* __tstate = wxPyBeginAllowThreads();
31910 result = (bool)(arg1)->Layout();
31911
31912 wxPyEndAllowThreads(__tstate);
31913 if (PyErr_Occurred()) SWIG_fail;
31914 }
31915 {
31916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31917 }
31918 return resultobj;
31919 fail:
31920 return NULL;
31921 }
31922
31923
31924 static PyObject *_wrap_Window_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) {
31925 PyObject *resultobj;
31926 wxWindow *arg1 = (wxWindow *) 0 ;
31927 wxSizer *arg2 = (wxSizer *) 0 ;
31928 bool arg3 = (bool) true ;
31929 PyObject * obj0 = 0 ;
31930 PyObject * obj1 = 0 ;
31931 PyObject * obj2 = 0 ;
31932 char *kwnames[] = {
31933 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
31934 };
31935
31936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail;
31937 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31938 if (SWIG_arg_fail(1)) SWIG_fail;
31939 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
31940 if (SWIG_arg_fail(2)) SWIG_fail;
31941 if (obj2) {
31942 {
31943 arg3 = (bool)(SWIG_As_bool(obj2));
31944 if (SWIG_arg_fail(3)) SWIG_fail;
31945 }
31946 }
31947 {
31948 PyThreadState* __tstate = wxPyBeginAllowThreads();
31949 (arg1)->SetSizer(arg2,arg3);
31950
31951 wxPyEndAllowThreads(__tstate);
31952 if (PyErr_Occurred()) SWIG_fail;
31953 }
31954 Py_INCREF(Py_None); resultobj = Py_None;
31955 return resultobj;
31956 fail:
31957 return NULL;
31958 }
31959
31960
31961 static PyObject *_wrap_Window_SetSizerAndFit(PyObject *, PyObject *args, PyObject *kwargs) {
31962 PyObject *resultobj;
31963 wxWindow *arg1 = (wxWindow *) 0 ;
31964 wxSizer *arg2 = (wxSizer *) 0 ;
31965 bool arg3 = (bool) true ;
31966 PyObject * obj0 = 0 ;
31967 PyObject * obj1 = 0 ;
31968 PyObject * obj2 = 0 ;
31969 char *kwnames[] = {
31970 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
31971 };
31972
31973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail;
31974 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
31975 if (SWIG_arg_fail(1)) SWIG_fail;
31976 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
31977 if (SWIG_arg_fail(2)) SWIG_fail;
31978 if (obj2) {
31979 {
31980 arg3 = (bool)(SWIG_As_bool(obj2));
31981 if (SWIG_arg_fail(3)) SWIG_fail;
31982 }
31983 }
31984 {
31985 PyThreadState* __tstate = wxPyBeginAllowThreads();
31986 (arg1)->SetSizerAndFit(arg2,arg3);
31987
31988 wxPyEndAllowThreads(__tstate);
31989 if (PyErr_Occurred()) SWIG_fail;
31990 }
31991 Py_INCREF(Py_None); resultobj = Py_None;
31992 return resultobj;
31993 fail:
31994 return NULL;
31995 }
31996
31997
31998 static PyObject *_wrap_Window_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) {
31999 PyObject *resultobj;
32000 wxWindow *arg1 = (wxWindow *) 0 ;
32001 wxSizer *result;
32002 PyObject * obj0 = 0 ;
32003 char *kwnames[] = {
32004 (char *) "self", NULL
32005 };
32006
32007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail;
32008 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
32009 if (SWIG_arg_fail(1)) SWIG_fail;
32010 {
32011 PyThreadState* __tstate = wxPyBeginAllowThreads();
32012 result = (wxSizer *)((wxWindow const *)arg1)->GetSizer();
32013
32014 wxPyEndAllowThreads(__tstate);
32015 if (PyErr_Occurred()) SWIG_fail;
32016 }
32017 {
32018 resultobj = wxPyMake_wxSizer(result, 0);
32019 }
32020 return resultobj;
32021 fail:
32022 return NULL;
32023 }
32024
32025
32026 static PyObject *_wrap_Window_SetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) {
32027 PyObject *resultobj;
32028 wxWindow *arg1 = (wxWindow *) 0 ;
32029 wxSizer *arg2 = (wxSizer *) 0 ;
32030 PyObject * obj0 = 0 ;
32031 PyObject * obj1 = 0 ;
32032 char *kwnames[] = {
32033 (char *) "self",(char *) "sizer", NULL
32034 };
32035
32036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail;
32037 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
32038 if (SWIG_arg_fail(1)) SWIG_fail;
32039 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
32040 if (SWIG_arg_fail(2)) SWIG_fail;
32041 {
32042 PyThreadState* __tstate = wxPyBeginAllowThreads();
32043 (arg1)->SetContainingSizer(arg2);
32044
32045 wxPyEndAllowThreads(__tstate);
32046 if (PyErr_Occurred()) SWIG_fail;
32047 }
32048 Py_INCREF(Py_None); resultobj = Py_None;
32049 return resultobj;
32050 fail:
32051 return NULL;
32052 }
32053
32054
32055 static PyObject *_wrap_Window_GetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) {
32056 PyObject *resultobj;
32057 wxWindow *arg1 = (wxWindow *) 0 ;
32058 wxSizer *result;
32059 PyObject * obj0 = 0 ;
32060 char *kwnames[] = {
32061 (char *) "self", NULL
32062 };
32063
32064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail;
32065 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
32066 if (SWIG_arg_fail(1)) SWIG_fail;
32067 {
32068 PyThreadState* __tstate = wxPyBeginAllowThreads();
32069 result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer();
32070
32071 wxPyEndAllowThreads(__tstate);
32072 if (PyErr_Occurred()) SWIG_fail;
32073 }
32074 {
32075 resultobj = wxPyMake_wxSizer(result, 0);
32076 }
32077 return resultobj;
32078 fail:
32079 return NULL;
32080 }
32081
32082
32083 static PyObject *_wrap_Window_InheritAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
32084 PyObject *resultobj;
32085 wxWindow *arg1 = (wxWindow *) 0 ;
32086 PyObject * obj0 = 0 ;
32087 char *kwnames[] = {
32088 (char *) "self", NULL
32089 };
32090
32091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail;
32092 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
32093 if (SWIG_arg_fail(1)) SWIG_fail;
32094 {
32095 PyThreadState* __tstate = wxPyBeginAllowThreads();
32096 (arg1)->InheritAttributes();
32097
32098 wxPyEndAllowThreads(__tstate);
32099 if (PyErr_Occurred()) SWIG_fail;
32100 }
32101 Py_INCREF(Py_None); resultobj = Py_None;
32102 return resultobj;
32103 fail:
32104 return NULL;
32105 }
32106
32107
32108 static PyObject *_wrap_Window_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) {
32109 PyObject *resultobj;
32110 wxWindow *arg1 = (wxWindow *) 0 ;
32111 bool result;
32112 PyObject * obj0 = 0 ;
32113 char *kwnames[] = {
32114 (char *) "self", NULL
32115 };
32116
32117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail;
32118 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
32119 if (SWIG_arg_fail(1)) SWIG_fail;
32120 {
32121 PyThreadState* __tstate = wxPyBeginAllowThreads();
32122 result = (bool)((wxWindow const *)arg1)->ShouldInheritColours();
32123
32124 wxPyEndAllowThreads(__tstate);
32125 if (PyErr_Occurred()) SWIG_fail;
32126 }
32127 {
32128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32129 }
32130 return resultobj;
32131 fail:
32132 return NULL;
32133 }
32134
32135
32136 static PyObject * Window_swigregister(PyObject *, PyObject *args) {
32137 PyObject *obj;
32138 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32139 SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj);
32140 Py_INCREF(obj);
32141 return Py_BuildValue((char *)"");
32142 }
32143 static PyObject *_wrap_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) {
32144 PyObject *resultobj;
32145 long arg1 ;
32146 wxWindow *arg2 = (wxWindow *) NULL ;
32147 wxWindow *result;
32148 PyObject * obj0 = 0 ;
32149 PyObject * obj1 = 0 ;
32150 char *kwnames[] = {
32151 (char *) "id",(char *) "parent", NULL
32152 };
32153
32154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail;
32155 {
32156 arg1 = (long)(SWIG_As_long(obj0));
32157 if (SWIG_arg_fail(1)) SWIG_fail;
32158 }
32159 if (obj1) {
32160 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
32161 if (SWIG_arg_fail(2)) SWIG_fail;
32162 }
32163 {
32164 if (!wxPyCheckForApp()) SWIG_fail;
32165 PyThreadState* __tstate = wxPyBeginAllowThreads();
32166 result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2);
32167
32168 wxPyEndAllowThreads(__tstate);
32169 if (PyErr_Occurred()) SWIG_fail;
32170 }
32171 {
32172 resultobj = wxPyMake_wxObject(result, 0);
32173 }
32174 return resultobj;
32175 fail:
32176 return NULL;
32177 }
32178
32179
32180 static PyObject *_wrap_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) {
32181 PyObject *resultobj;
32182 wxString *arg1 = 0 ;
32183 wxWindow *arg2 = (wxWindow *) NULL ;
32184 wxWindow *result;
32185 bool temp1 = false ;
32186 PyObject * obj0 = 0 ;
32187 PyObject * obj1 = 0 ;
32188 char *kwnames[] = {
32189 (char *) "name",(char *) "parent", NULL
32190 };
32191
32192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
32193 {
32194 arg1 = wxString_in_helper(obj0);
32195 if (arg1 == NULL) SWIG_fail;
32196 temp1 = true;
32197 }
32198 if (obj1) {
32199 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
32200 if (SWIG_arg_fail(2)) SWIG_fail;
32201 }
32202 {
32203 if (!wxPyCheckForApp()) SWIG_fail;
32204 PyThreadState* __tstate = wxPyBeginAllowThreads();
32205 result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2);
32206
32207 wxPyEndAllowThreads(__tstate);
32208 if (PyErr_Occurred()) SWIG_fail;
32209 }
32210 {
32211 resultobj = wxPyMake_wxObject(result, 0);
32212 }
32213 {
32214 if (temp1)
32215 delete arg1;
32216 }
32217 return resultobj;
32218 fail:
32219 {
32220 if (temp1)
32221 delete arg1;
32222 }
32223 return NULL;
32224 }
32225
32226
32227 static PyObject *_wrap_FindWindowByLabel(PyObject *, PyObject *args, PyObject *kwargs) {
32228 PyObject *resultobj;
32229 wxString *arg1 = 0 ;
32230 wxWindow *arg2 = (wxWindow *) NULL ;
32231 wxWindow *result;
32232 bool temp1 = false ;
32233 PyObject * obj0 = 0 ;
32234 PyObject * obj1 = 0 ;
32235 char *kwnames[] = {
32236 (char *) "label",(char *) "parent", NULL
32237 };
32238
32239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail;
32240 {
32241 arg1 = wxString_in_helper(obj0);
32242 if (arg1 == NULL) SWIG_fail;
32243 temp1 = true;
32244 }
32245 if (obj1) {
32246 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
32247 if (SWIG_arg_fail(2)) SWIG_fail;
32248 }
32249 {
32250 if (!wxPyCheckForApp()) SWIG_fail;
32251 PyThreadState* __tstate = wxPyBeginAllowThreads();
32252 result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2);
32253
32254 wxPyEndAllowThreads(__tstate);
32255 if (PyErr_Occurred()) SWIG_fail;
32256 }
32257 {
32258 resultobj = wxPyMake_wxObject(result, 0);
32259 }
32260 {
32261 if (temp1)
32262 delete arg1;
32263 }
32264 return resultobj;
32265 fail:
32266 {
32267 if (temp1)
32268 delete arg1;
32269 }
32270 return NULL;
32271 }
32272
32273
32274 static PyObject *_wrap_Window_FromHWND(PyObject *, PyObject *args, PyObject *kwargs) {
32275 PyObject *resultobj;
32276 wxWindow *arg1 = (wxWindow *) 0 ;
32277 unsigned long arg2 ;
32278 wxWindow *result;
32279 PyObject * obj0 = 0 ;
32280 PyObject * obj1 = 0 ;
32281 char *kwnames[] = {
32282 (char *) "parent",(char *) "_hWnd", NULL
32283 };
32284
32285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail;
32286 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
32287 if (SWIG_arg_fail(1)) SWIG_fail;
32288 {
32289 arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1));
32290 if (SWIG_arg_fail(2)) SWIG_fail;
32291 }
32292 {
32293 PyThreadState* __tstate = wxPyBeginAllowThreads();
32294 result = (wxWindow *)wxWindow_FromHWND(arg1,arg2);
32295
32296 wxPyEndAllowThreads(__tstate);
32297 if (PyErr_Occurred()) SWIG_fail;
32298 }
32299 {
32300 resultobj = wxPyMake_wxObject(result, 0);
32301 }
32302 return resultobj;
32303 fail:
32304 return NULL;
32305 }
32306
32307
32308 static PyObject *_wrap_GetTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) {
32309 PyObject *resultobj;
32310 PyObject *result;
32311 char *kwnames[] = {
32312 NULL
32313 };
32314
32315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetTopLevelWindows",kwnames)) goto fail;
32316 {
32317 PyThreadState* __tstate = wxPyBeginAllowThreads();
32318 result = (PyObject *)GetTopLevelWindows();
32319
32320 wxPyEndAllowThreads(__tstate);
32321 if (PyErr_Occurred()) SWIG_fail;
32322 }
32323 resultobj = result;
32324 return resultobj;
32325 fail:
32326 return NULL;
32327 }
32328
32329
32330 static PyObject *_wrap_new_Validator(PyObject *, PyObject *args, PyObject *kwargs) {
32331 PyObject *resultobj;
32332 wxValidator *result;
32333 char *kwnames[] = {
32334 NULL
32335 };
32336
32337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail;
32338 {
32339 PyThreadState* __tstate = wxPyBeginAllowThreads();
32340 result = (wxValidator *)new wxValidator();
32341
32342 wxPyEndAllowThreads(__tstate);
32343 if (PyErr_Occurred()) SWIG_fail;
32344 }
32345 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1);
32346 return resultobj;
32347 fail:
32348 return NULL;
32349 }
32350
32351
32352 static PyObject *_wrap_Validator_Clone(PyObject *, PyObject *args, PyObject *kwargs) {
32353 PyObject *resultobj;
32354 wxValidator *arg1 = (wxValidator *) 0 ;
32355 wxValidator *result;
32356 PyObject * obj0 = 0 ;
32357 char *kwnames[] = {
32358 (char *) "self", NULL
32359 };
32360
32361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail;
32362 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
32363 if (SWIG_arg_fail(1)) SWIG_fail;
32364 {
32365 PyThreadState* __tstate = wxPyBeginAllowThreads();
32366 result = (wxValidator *)(arg1)->Clone();
32367
32368 wxPyEndAllowThreads(__tstate);
32369 if (PyErr_Occurred()) SWIG_fail;
32370 }
32371 {
32372 resultobj = wxPyMake_wxObject(result, 0);
32373 }
32374 return resultobj;
32375 fail:
32376 return NULL;
32377 }
32378
32379
32380 static PyObject *_wrap_Validator_Validate(PyObject *, PyObject *args, PyObject *kwargs) {
32381 PyObject *resultobj;
32382 wxValidator *arg1 = (wxValidator *) 0 ;
32383 wxWindow *arg2 = (wxWindow *) 0 ;
32384 bool result;
32385 PyObject * obj0 = 0 ;
32386 PyObject * obj1 = 0 ;
32387 char *kwnames[] = {
32388 (char *) "self",(char *) "parent", NULL
32389 };
32390
32391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail;
32392 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
32393 if (SWIG_arg_fail(1)) SWIG_fail;
32394 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
32395 if (SWIG_arg_fail(2)) SWIG_fail;
32396 {
32397 PyThreadState* __tstate = wxPyBeginAllowThreads();
32398 result = (bool)(arg1)->Validate(arg2);
32399
32400 wxPyEndAllowThreads(__tstate);
32401 if (PyErr_Occurred()) SWIG_fail;
32402 }
32403 {
32404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32405 }
32406 return resultobj;
32407 fail:
32408 return NULL;
32409 }
32410
32411
32412 static PyObject *_wrap_Validator_TransferToWindow(PyObject *, PyObject *args, PyObject *kwargs) {
32413 PyObject *resultobj;
32414 wxValidator *arg1 = (wxValidator *) 0 ;
32415 bool result;
32416 PyObject * obj0 = 0 ;
32417 char *kwnames[] = {
32418 (char *) "self", NULL
32419 };
32420
32421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail;
32422 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
32423 if (SWIG_arg_fail(1)) SWIG_fail;
32424 {
32425 PyThreadState* __tstate = wxPyBeginAllowThreads();
32426 result = (bool)(arg1)->TransferToWindow();
32427
32428 wxPyEndAllowThreads(__tstate);
32429 if (PyErr_Occurred()) SWIG_fail;
32430 }
32431 {
32432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32433 }
32434 return resultobj;
32435 fail:
32436 return NULL;
32437 }
32438
32439
32440 static PyObject *_wrap_Validator_TransferFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
32441 PyObject *resultobj;
32442 wxValidator *arg1 = (wxValidator *) 0 ;
32443 bool result;
32444 PyObject * obj0 = 0 ;
32445 char *kwnames[] = {
32446 (char *) "self", NULL
32447 };
32448
32449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail;
32450 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
32451 if (SWIG_arg_fail(1)) SWIG_fail;
32452 {
32453 PyThreadState* __tstate = wxPyBeginAllowThreads();
32454 result = (bool)(arg1)->TransferFromWindow();
32455
32456 wxPyEndAllowThreads(__tstate);
32457 if (PyErr_Occurred()) SWIG_fail;
32458 }
32459 {
32460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32461 }
32462 return resultobj;
32463 fail:
32464 return NULL;
32465 }
32466
32467
32468 static PyObject *_wrap_Validator_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
32469 PyObject *resultobj;
32470 wxValidator *arg1 = (wxValidator *) 0 ;
32471 wxWindow *result;
32472 PyObject * obj0 = 0 ;
32473 char *kwnames[] = {
32474 (char *) "self", NULL
32475 };
32476
32477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail;
32478 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
32479 if (SWIG_arg_fail(1)) SWIG_fail;
32480 {
32481 PyThreadState* __tstate = wxPyBeginAllowThreads();
32482 result = (wxWindow *)(arg1)->GetWindow();
32483
32484 wxPyEndAllowThreads(__tstate);
32485 if (PyErr_Occurred()) SWIG_fail;
32486 }
32487 {
32488 resultobj = wxPyMake_wxObject(result, 0);
32489 }
32490 return resultobj;
32491 fail:
32492 return NULL;
32493 }
32494
32495
32496 static PyObject *_wrap_Validator_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
32497 PyObject *resultobj;
32498 wxValidator *arg1 = (wxValidator *) 0 ;
32499 wxWindow *arg2 = (wxWindow *) 0 ;
32500 PyObject * obj0 = 0 ;
32501 PyObject * obj1 = 0 ;
32502 char *kwnames[] = {
32503 (char *) "self",(char *) "window", NULL
32504 };
32505
32506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail;
32507 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
32508 if (SWIG_arg_fail(1)) SWIG_fail;
32509 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
32510 if (SWIG_arg_fail(2)) SWIG_fail;
32511 {
32512 PyThreadState* __tstate = wxPyBeginAllowThreads();
32513 (arg1)->SetWindow(arg2);
32514
32515 wxPyEndAllowThreads(__tstate);
32516 if (PyErr_Occurred()) SWIG_fail;
32517 }
32518 Py_INCREF(Py_None); resultobj = Py_None;
32519 return resultobj;
32520 fail:
32521 return NULL;
32522 }
32523
32524
32525 static PyObject *_wrap_Validator_IsSilent(PyObject *, PyObject *args, PyObject *kwargs) {
32526 PyObject *resultobj;
32527 bool result;
32528 char *kwnames[] = {
32529 NULL
32530 };
32531
32532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail;
32533 {
32534 PyThreadState* __tstate = wxPyBeginAllowThreads();
32535 result = (bool)wxValidator::IsSilent();
32536
32537 wxPyEndAllowThreads(__tstate);
32538 if (PyErr_Occurred()) SWIG_fail;
32539 }
32540 {
32541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32542 }
32543 return resultobj;
32544 fail:
32545 return NULL;
32546 }
32547
32548
32549 static PyObject *_wrap_Validator_SetBellOnError(PyObject *, PyObject *args, PyObject *kwargs) {
32550 PyObject *resultobj;
32551 int arg1 = (int) true ;
32552 PyObject * obj0 = 0 ;
32553 char *kwnames[] = {
32554 (char *) "doIt", NULL
32555 };
32556
32557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail;
32558 if (obj0) {
32559 {
32560 arg1 = (int)(SWIG_As_int(obj0));
32561 if (SWIG_arg_fail(1)) SWIG_fail;
32562 }
32563 }
32564 {
32565 PyThreadState* __tstate = wxPyBeginAllowThreads();
32566 wxValidator::SetBellOnError(arg1);
32567
32568 wxPyEndAllowThreads(__tstate);
32569 if (PyErr_Occurred()) SWIG_fail;
32570 }
32571 Py_INCREF(Py_None); resultobj = Py_None;
32572 return resultobj;
32573 fail:
32574 return NULL;
32575 }
32576
32577
32578 static PyObject * Validator_swigregister(PyObject *, PyObject *args) {
32579 PyObject *obj;
32580 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32581 SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj);
32582 Py_INCREF(obj);
32583 return Py_BuildValue((char *)"");
32584 }
32585 static PyObject *_wrap_new_PyValidator(PyObject *, PyObject *args, PyObject *kwargs) {
32586 PyObject *resultobj;
32587 wxPyValidator *result;
32588 char *kwnames[] = {
32589 NULL
32590 };
32591
32592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail;
32593 {
32594 PyThreadState* __tstate = wxPyBeginAllowThreads();
32595 result = (wxPyValidator *)new wxPyValidator();
32596
32597 wxPyEndAllowThreads(__tstate);
32598 if (PyErr_Occurred()) SWIG_fail;
32599 }
32600 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1);
32601 return resultobj;
32602 fail:
32603 return NULL;
32604 }
32605
32606
32607 static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
32608 PyObject *resultobj;
32609 wxPyValidator *arg1 = (wxPyValidator *) 0 ;
32610 PyObject *arg2 = (PyObject *) 0 ;
32611 PyObject *arg3 = (PyObject *) 0 ;
32612 int arg4 = (int) true ;
32613 PyObject * obj0 = 0 ;
32614 PyObject * obj1 = 0 ;
32615 PyObject * obj2 = 0 ;
32616 PyObject * obj3 = 0 ;
32617 char *kwnames[] = {
32618 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
32619 };
32620
32621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
32622 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyValidator, SWIG_POINTER_EXCEPTION | 0);
32623 if (SWIG_arg_fail(1)) SWIG_fail;
32624 arg2 = obj1;
32625 arg3 = obj2;
32626 if (obj3) {
32627 {
32628 arg4 = (int)(SWIG_As_int(obj3));
32629 if (SWIG_arg_fail(4)) SWIG_fail;
32630 }
32631 }
32632 {
32633 PyThreadState* __tstate = wxPyBeginAllowThreads();
32634 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
32635
32636 wxPyEndAllowThreads(__tstate);
32637 if (PyErr_Occurred()) SWIG_fail;
32638 }
32639 Py_INCREF(Py_None); resultobj = Py_None;
32640 return resultobj;
32641 fail:
32642 return NULL;
32643 }
32644
32645
32646 static PyObject * PyValidator_swigregister(PyObject *, PyObject *args) {
32647 PyObject *obj;
32648 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32649 SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj);
32650 Py_INCREF(obj);
32651 return Py_BuildValue((char *)"");
32652 }
32653 static int _wrap_DefaultValidator_set(PyObject *) {
32654 PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only.");
32655 return 1;
32656 }
32657
32658
32659 static PyObject *_wrap_DefaultValidator_get(void) {
32660 PyObject *pyobj;
32661
32662 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0);
32663 return pyobj;
32664 }
32665
32666
32667 static PyObject *_wrap_new_Menu(PyObject *, PyObject *args, PyObject *kwargs) {
32668 PyObject *resultobj;
32669 wxString const &arg1_defvalue = wxPyEmptyString ;
32670 wxString *arg1 = (wxString *) &arg1_defvalue ;
32671 long arg2 = (long) 0 ;
32672 wxMenu *result;
32673 bool temp1 = false ;
32674 PyObject * obj0 = 0 ;
32675 PyObject * obj1 = 0 ;
32676 char *kwnames[] = {
32677 (char *) "title",(char *) "style", NULL
32678 };
32679
32680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail;
32681 if (obj0) {
32682 {
32683 arg1 = wxString_in_helper(obj0);
32684 if (arg1 == NULL) SWIG_fail;
32685 temp1 = true;
32686 }
32687 }
32688 if (obj1) {
32689 {
32690 arg2 = (long)(SWIG_As_long(obj1));
32691 if (SWIG_arg_fail(2)) SWIG_fail;
32692 }
32693 }
32694 {
32695 if (!wxPyCheckForApp()) SWIG_fail;
32696 PyThreadState* __tstate = wxPyBeginAllowThreads();
32697 result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2);
32698
32699 wxPyEndAllowThreads(__tstate);
32700 if (PyErr_Occurred()) SWIG_fail;
32701 }
32702 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1);
32703 {
32704 if (temp1)
32705 delete arg1;
32706 }
32707 return resultobj;
32708 fail:
32709 {
32710 if (temp1)
32711 delete arg1;
32712 }
32713 return NULL;
32714 }
32715
32716
32717 static PyObject *_wrap_Menu_Append(PyObject *, PyObject *args, PyObject *kwargs) {
32718 PyObject *resultobj;
32719 wxMenu *arg1 = (wxMenu *) 0 ;
32720 int arg2 ;
32721 wxString *arg3 = 0 ;
32722 wxString const &arg4_defvalue = wxPyEmptyString ;
32723 wxString *arg4 = (wxString *) &arg4_defvalue ;
32724 wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ;
32725 wxMenuItem *result;
32726 bool temp3 = false ;
32727 bool temp4 = false ;
32728 PyObject * obj0 = 0 ;
32729 PyObject * obj1 = 0 ;
32730 PyObject * obj2 = 0 ;
32731 PyObject * obj3 = 0 ;
32732 PyObject * obj4 = 0 ;
32733 char *kwnames[] = {
32734 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
32735 };
32736
32737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
32738 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
32739 if (SWIG_arg_fail(1)) SWIG_fail;
32740 {
32741 arg2 = (int)(SWIG_As_int(obj1));
32742 if (SWIG_arg_fail(2)) SWIG_fail;
32743 }
32744 {
32745 arg3 = wxString_in_helper(obj2);
32746 if (arg3 == NULL) SWIG_fail;
32747 temp3 = true;
32748 }
32749 if (obj3) {
32750 {
32751 arg4 = wxString_in_helper(obj3);
32752 if (arg4 == NULL) SWIG_fail;
32753 temp4 = true;
32754 }
32755 }
32756 if (obj4) {
32757 {
32758 arg5 = (wxItemKind)(SWIG_As_int(obj4));
32759 if (SWIG_arg_fail(5)) SWIG_fail;
32760 }
32761 }
32762 {
32763 PyThreadState* __tstate = wxPyBeginAllowThreads();
32764 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
32765
32766 wxPyEndAllowThreads(__tstate);
32767 if (PyErr_Occurred()) SWIG_fail;
32768 }
32769 {
32770 resultobj = wxPyMake_wxObject(result, 0);
32771 }
32772 {
32773 if (temp3)
32774 delete arg3;
32775 }
32776 {
32777 if (temp4)
32778 delete arg4;
32779 }
32780 return resultobj;
32781 fail:
32782 {
32783 if (temp3)
32784 delete arg3;
32785 }
32786 {
32787 if (temp4)
32788 delete arg4;
32789 }
32790 return NULL;
32791 }
32792
32793
32794 static PyObject *_wrap_Menu_AppendSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
32795 PyObject *resultobj;
32796 wxMenu *arg1 = (wxMenu *) 0 ;
32797 wxMenuItem *result;
32798 PyObject * obj0 = 0 ;
32799 char *kwnames[] = {
32800 (char *) "self", NULL
32801 };
32802
32803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail;
32804 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
32805 if (SWIG_arg_fail(1)) SWIG_fail;
32806 {
32807 PyThreadState* __tstate = wxPyBeginAllowThreads();
32808 result = (wxMenuItem *)(arg1)->AppendSeparator();
32809
32810 wxPyEndAllowThreads(__tstate);
32811 if (PyErr_Occurred()) SWIG_fail;
32812 }
32813 {
32814 resultobj = wxPyMake_wxObject(result, 0);
32815 }
32816 return resultobj;
32817 fail:
32818 return NULL;
32819 }
32820
32821
32822 static PyObject *_wrap_Menu_AppendCheckItem(PyObject *, PyObject *args, PyObject *kwargs) {
32823 PyObject *resultobj;
32824 wxMenu *arg1 = (wxMenu *) 0 ;
32825 int arg2 ;
32826 wxString *arg3 = 0 ;
32827 wxString const &arg4_defvalue = wxPyEmptyString ;
32828 wxString *arg4 = (wxString *) &arg4_defvalue ;
32829 wxMenuItem *result;
32830 bool temp3 = false ;
32831 bool temp4 = false ;
32832 PyObject * obj0 = 0 ;
32833 PyObject * obj1 = 0 ;
32834 PyObject * obj2 = 0 ;
32835 PyObject * obj3 = 0 ;
32836 char *kwnames[] = {
32837 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
32838 };
32839
32840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
32841 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
32842 if (SWIG_arg_fail(1)) SWIG_fail;
32843 {
32844 arg2 = (int)(SWIG_As_int(obj1));
32845 if (SWIG_arg_fail(2)) SWIG_fail;
32846 }
32847 {
32848 arg3 = wxString_in_helper(obj2);
32849 if (arg3 == NULL) SWIG_fail;
32850 temp3 = true;
32851 }
32852 if (obj3) {
32853 {
32854 arg4 = wxString_in_helper(obj3);
32855 if (arg4 == NULL) SWIG_fail;
32856 temp4 = true;
32857 }
32858 }
32859 {
32860 PyThreadState* __tstate = wxPyBeginAllowThreads();
32861 result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
32862
32863 wxPyEndAllowThreads(__tstate);
32864 if (PyErr_Occurred()) SWIG_fail;
32865 }
32866 {
32867 resultobj = wxPyMake_wxObject(result, 0);
32868 }
32869 {
32870 if (temp3)
32871 delete arg3;
32872 }
32873 {
32874 if (temp4)
32875 delete arg4;
32876 }
32877 return resultobj;
32878 fail:
32879 {
32880 if (temp3)
32881 delete arg3;
32882 }
32883 {
32884 if (temp4)
32885 delete arg4;
32886 }
32887 return NULL;
32888 }
32889
32890
32891 static PyObject *_wrap_Menu_AppendRadioItem(PyObject *, PyObject *args, PyObject *kwargs) {
32892 PyObject *resultobj;
32893 wxMenu *arg1 = (wxMenu *) 0 ;
32894 int arg2 ;
32895 wxString *arg3 = 0 ;
32896 wxString const &arg4_defvalue = wxPyEmptyString ;
32897 wxString *arg4 = (wxString *) &arg4_defvalue ;
32898 wxMenuItem *result;
32899 bool temp3 = false ;
32900 bool temp4 = false ;
32901 PyObject * obj0 = 0 ;
32902 PyObject * obj1 = 0 ;
32903 PyObject * obj2 = 0 ;
32904 PyObject * obj3 = 0 ;
32905 char *kwnames[] = {
32906 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
32907 };
32908
32909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
32910 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
32911 if (SWIG_arg_fail(1)) SWIG_fail;
32912 {
32913 arg2 = (int)(SWIG_As_int(obj1));
32914 if (SWIG_arg_fail(2)) SWIG_fail;
32915 }
32916 {
32917 arg3 = wxString_in_helper(obj2);
32918 if (arg3 == NULL) SWIG_fail;
32919 temp3 = true;
32920 }
32921 if (obj3) {
32922 {
32923 arg4 = wxString_in_helper(obj3);
32924 if (arg4 == NULL) SWIG_fail;
32925 temp4 = true;
32926 }
32927 }
32928 {
32929 PyThreadState* __tstate = wxPyBeginAllowThreads();
32930 result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
32931
32932 wxPyEndAllowThreads(__tstate);
32933 if (PyErr_Occurred()) SWIG_fail;
32934 }
32935 {
32936 resultobj = wxPyMake_wxObject(result, 0);
32937 }
32938 {
32939 if (temp3)
32940 delete arg3;
32941 }
32942 {
32943 if (temp4)
32944 delete arg4;
32945 }
32946 return resultobj;
32947 fail:
32948 {
32949 if (temp3)
32950 delete arg3;
32951 }
32952 {
32953 if (temp4)
32954 delete arg4;
32955 }
32956 return NULL;
32957 }
32958
32959
32960 static PyObject *_wrap_Menu_AppendMenu(PyObject *, PyObject *args, PyObject *kwargs) {
32961 PyObject *resultobj;
32962 wxMenu *arg1 = (wxMenu *) 0 ;
32963 int arg2 ;
32964 wxString *arg3 = 0 ;
32965 wxMenu *arg4 = (wxMenu *) 0 ;
32966 wxString const &arg5_defvalue = wxPyEmptyString ;
32967 wxString *arg5 = (wxString *) &arg5_defvalue ;
32968 wxMenuItem *result;
32969 bool temp3 = false ;
32970 bool temp5 = false ;
32971 PyObject * obj0 = 0 ;
32972 PyObject * obj1 = 0 ;
32973 PyObject * obj2 = 0 ;
32974 PyObject * obj3 = 0 ;
32975 PyObject * obj4 = 0 ;
32976 char *kwnames[] = {
32977 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
32978 };
32979
32980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
32981 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
32982 if (SWIG_arg_fail(1)) SWIG_fail;
32983 {
32984 arg2 = (int)(SWIG_As_int(obj1));
32985 if (SWIG_arg_fail(2)) SWIG_fail;
32986 }
32987 {
32988 arg3 = wxString_in_helper(obj2);
32989 if (arg3 == NULL) SWIG_fail;
32990 temp3 = true;
32991 }
32992 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
32993 if (SWIG_arg_fail(4)) SWIG_fail;
32994 if (obj4) {
32995 {
32996 arg5 = wxString_in_helper(obj4);
32997 if (arg5 == NULL) SWIG_fail;
32998 temp5 = true;
32999 }
33000 }
33001 {
33002 PyThreadState* __tstate = wxPyBeginAllowThreads();
33003 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
33004
33005 wxPyEndAllowThreads(__tstate);
33006 if (PyErr_Occurred()) SWIG_fail;
33007 }
33008 {
33009 resultobj = wxPyMake_wxObject(result, 0);
33010 }
33011 {
33012 if (temp3)
33013 delete arg3;
33014 }
33015 {
33016 if (temp5)
33017 delete arg5;
33018 }
33019 return resultobj;
33020 fail:
33021 {
33022 if (temp3)
33023 delete arg3;
33024 }
33025 {
33026 if (temp5)
33027 delete arg5;
33028 }
33029 return NULL;
33030 }
33031
33032
33033 static PyObject *_wrap_Menu_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) {
33034 PyObject *resultobj;
33035 wxMenu *arg1 = (wxMenu *) 0 ;
33036 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
33037 wxMenuItem *result;
33038 PyObject * obj0 = 0 ;
33039 PyObject * obj1 = 0 ;
33040 char *kwnames[] = {
33041 (char *) "self",(char *) "item", NULL
33042 };
33043
33044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail;
33045 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33046 if (SWIG_arg_fail(1)) SWIG_fail;
33047 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
33048 if (SWIG_arg_fail(2)) SWIG_fail;
33049 {
33050 PyThreadState* __tstate = wxPyBeginAllowThreads();
33051 result = (wxMenuItem *)(arg1)->Append(arg2);
33052
33053 wxPyEndAllowThreads(__tstate);
33054 if (PyErr_Occurred()) SWIG_fail;
33055 }
33056 {
33057 resultobj = wxPyMake_wxObject(result, 0);
33058 }
33059 return resultobj;
33060 fail:
33061 return NULL;
33062 }
33063
33064
33065 static PyObject *_wrap_Menu_Break(PyObject *, PyObject *args, PyObject *kwargs) {
33066 PyObject *resultobj;
33067 wxMenu *arg1 = (wxMenu *) 0 ;
33068 PyObject * obj0 = 0 ;
33069 char *kwnames[] = {
33070 (char *) "self", NULL
33071 };
33072
33073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail;
33074 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33075 if (SWIG_arg_fail(1)) SWIG_fail;
33076 {
33077 PyThreadState* __tstate = wxPyBeginAllowThreads();
33078 (arg1)->Break();
33079
33080 wxPyEndAllowThreads(__tstate);
33081 if (PyErr_Occurred()) SWIG_fail;
33082 }
33083 Py_INCREF(Py_None); resultobj = Py_None;
33084 return resultobj;
33085 fail:
33086 return NULL;
33087 }
33088
33089
33090 static PyObject *_wrap_Menu_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
33091 PyObject *resultobj;
33092 wxMenu *arg1 = (wxMenu *) 0 ;
33093 size_t arg2 ;
33094 wxMenuItem *arg3 = (wxMenuItem *) 0 ;
33095 wxMenuItem *result;
33096 PyObject * obj0 = 0 ;
33097 PyObject * obj1 = 0 ;
33098 PyObject * obj2 = 0 ;
33099 char *kwnames[] = {
33100 (char *) "self",(char *) "pos",(char *) "item", NULL
33101 };
33102
33103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
33104 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33105 if (SWIG_arg_fail(1)) SWIG_fail;
33106 {
33107 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
33108 if (SWIG_arg_fail(2)) SWIG_fail;
33109 }
33110 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
33111 if (SWIG_arg_fail(3)) SWIG_fail;
33112 {
33113 PyThreadState* __tstate = wxPyBeginAllowThreads();
33114 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3);
33115
33116 wxPyEndAllowThreads(__tstate);
33117 if (PyErr_Occurred()) SWIG_fail;
33118 }
33119 {
33120 resultobj = wxPyMake_wxObject(result, 0);
33121 }
33122 return resultobj;
33123 fail:
33124 return NULL;
33125 }
33126
33127
33128 static PyObject *_wrap_Menu_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
33129 PyObject *resultobj;
33130 wxMenu *arg1 = (wxMenu *) 0 ;
33131 size_t arg2 ;
33132 int arg3 ;
33133 wxString *arg4 = 0 ;
33134 wxString const &arg5_defvalue = wxPyEmptyString ;
33135 wxString *arg5 = (wxString *) &arg5_defvalue ;
33136 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
33137 wxMenuItem *result;
33138 bool temp4 = false ;
33139 bool temp5 = false ;
33140 PyObject * obj0 = 0 ;
33141 PyObject * obj1 = 0 ;
33142 PyObject * obj2 = 0 ;
33143 PyObject * obj3 = 0 ;
33144 PyObject * obj4 = 0 ;
33145 PyObject * obj5 = 0 ;
33146 char *kwnames[] = {
33147 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
33148 };
33149
33150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
33151 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33152 if (SWIG_arg_fail(1)) SWIG_fail;
33153 {
33154 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
33155 if (SWIG_arg_fail(2)) SWIG_fail;
33156 }
33157 {
33158 arg3 = (int)(SWIG_As_int(obj2));
33159 if (SWIG_arg_fail(3)) SWIG_fail;
33160 }
33161 {
33162 arg4 = wxString_in_helper(obj3);
33163 if (arg4 == NULL) SWIG_fail;
33164 temp4 = true;
33165 }
33166 if (obj4) {
33167 {
33168 arg5 = wxString_in_helper(obj4);
33169 if (arg5 == NULL) SWIG_fail;
33170 temp5 = true;
33171 }
33172 }
33173 if (obj5) {
33174 {
33175 arg6 = (wxItemKind)(SWIG_As_int(obj5));
33176 if (SWIG_arg_fail(6)) SWIG_fail;
33177 }
33178 }
33179 {
33180 PyThreadState* __tstate = wxPyBeginAllowThreads();
33181 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6);
33182
33183 wxPyEndAllowThreads(__tstate);
33184 if (PyErr_Occurred()) SWIG_fail;
33185 }
33186 {
33187 resultobj = wxPyMake_wxObject(result, 0);
33188 }
33189 {
33190 if (temp4)
33191 delete arg4;
33192 }
33193 {
33194 if (temp5)
33195 delete arg5;
33196 }
33197 return resultobj;
33198 fail:
33199 {
33200 if (temp4)
33201 delete arg4;
33202 }
33203 {
33204 if (temp5)
33205 delete arg5;
33206 }
33207 return NULL;
33208 }
33209
33210
33211 static PyObject *_wrap_Menu_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
33212 PyObject *resultobj;
33213 wxMenu *arg1 = (wxMenu *) 0 ;
33214 size_t arg2 ;
33215 wxMenuItem *result;
33216 PyObject * obj0 = 0 ;
33217 PyObject * obj1 = 0 ;
33218 char *kwnames[] = {
33219 (char *) "self",(char *) "pos", NULL
33220 };
33221
33222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
33223 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33224 if (SWIG_arg_fail(1)) SWIG_fail;
33225 {
33226 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
33227 if (SWIG_arg_fail(2)) SWIG_fail;
33228 }
33229 {
33230 PyThreadState* __tstate = wxPyBeginAllowThreads();
33231 result = (wxMenuItem *)(arg1)->InsertSeparator(arg2);
33232
33233 wxPyEndAllowThreads(__tstate);
33234 if (PyErr_Occurred()) SWIG_fail;
33235 }
33236 {
33237 resultobj = wxPyMake_wxObject(result, 0);
33238 }
33239 return resultobj;
33240 fail:
33241 return NULL;
33242 }
33243
33244
33245 static PyObject *_wrap_Menu_InsertCheckItem(PyObject *, PyObject *args, PyObject *kwargs) {
33246 PyObject *resultobj;
33247 wxMenu *arg1 = (wxMenu *) 0 ;
33248 size_t arg2 ;
33249 int arg3 ;
33250 wxString *arg4 = 0 ;
33251 wxString const &arg5_defvalue = wxPyEmptyString ;
33252 wxString *arg5 = (wxString *) &arg5_defvalue ;
33253 wxMenuItem *result;
33254 bool temp4 = false ;
33255 bool temp5 = false ;
33256 PyObject * obj0 = 0 ;
33257 PyObject * obj1 = 0 ;
33258 PyObject * obj2 = 0 ;
33259 PyObject * obj3 = 0 ;
33260 PyObject * obj4 = 0 ;
33261 char *kwnames[] = {
33262 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
33263 };
33264
33265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
33266 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33267 if (SWIG_arg_fail(1)) SWIG_fail;
33268 {
33269 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
33270 if (SWIG_arg_fail(2)) SWIG_fail;
33271 }
33272 {
33273 arg3 = (int)(SWIG_As_int(obj2));
33274 if (SWIG_arg_fail(3)) SWIG_fail;
33275 }
33276 {
33277 arg4 = wxString_in_helper(obj3);
33278 if (arg4 == NULL) SWIG_fail;
33279 temp4 = true;
33280 }
33281 if (obj4) {
33282 {
33283 arg5 = wxString_in_helper(obj4);
33284 if (arg5 == NULL) SWIG_fail;
33285 temp5 = true;
33286 }
33287 }
33288 {
33289 PyThreadState* __tstate = wxPyBeginAllowThreads();
33290 result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
33291
33292 wxPyEndAllowThreads(__tstate);
33293 if (PyErr_Occurred()) SWIG_fail;
33294 }
33295 {
33296 resultobj = wxPyMake_wxObject(result, 0);
33297 }
33298 {
33299 if (temp4)
33300 delete arg4;
33301 }
33302 {
33303 if (temp5)
33304 delete arg5;
33305 }
33306 return resultobj;
33307 fail:
33308 {
33309 if (temp4)
33310 delete arg4;
33311 }
33312 {
33313 if (temp5)
33314 delete arg5;
33315 }
33316 return NULL;
33317 }
33318
33319
33320 static PyObject *_wrap_Menu_InsertRadioItem(PyObject *, PyObject *args, PyObject *kwargs) {
33321 PyObject *resultobj;
33322 wxMenu *arg1 = (wxMenu *) 0 ;
33323 size_t arg2 ;
33324 int arg3 ;
33325 wxString *arg4 = 0 ;
33326 wxString const &arg5_defvalue = wxPyEmptyString ;
33327 wxString *arg5 = (wxString *) &arg5_defvalue ;
33328 wxMenuItem *result;
33329 bool temp4 = false ;
33330 bool temp5 = false ;
33331 PyObject * obj0 = 0 ;
33332 PyObject * obj1 = 0 ;
33333 PyObject * obj2 = 0 ;
33334 PyObject * obj3 = 0 ;
33335 PyObject * obj4 = 0 ;
33336 char *kwnames[] = {
33337 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
33338 };
33339
33340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
33341 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33342 if (SWIG_arg_fail(1)) SWIG_fail;
33343 {
33344 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
33345 if (SWIG_arg_fail(2)) SWIG_fail;
33346 }
33347 {
33348 arg3 = (int)(SWIG_As_int(obj2));
33349 if (SWIG_arg_fail(3)) SWIG_fail;
33350 }
33351 {
33352 arg4 = wxString_in_helper(obj3);
33353 if (arg4 == NULL) SWIG_fail;
33354 temp4 = true;
33355 }
33356 if (obj4) {
33357 {
33358 arg5 = wxString_in_helper(obj4);
33359 if (arg5 == NULL) SWIG_fail;
33360 temp5 = true;
33361 }
33362 }
33363 {
33364 PyThreadState* __tstate = wxPyBeginAllowThreads();
33365 result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
33366
33367 wxPyEndAllowThreads(__tstate);
33368 if (PyErr_Occurred()) SWIG_fail;
33369 }
33370 {
33371 resultobj = wxPyMake_wxObject(result, 0);
33372 }
33373 {
33374 if (temp4)
33375 delete arg4;
33376 }
33377 {
33378 if (temp5)
33379 delete arg5;
33380 }
33381 return resultobj;
33382 fail:
33383 {
33384 if (temp4)
33385 delete arg4;
33386 }
33387 {
33388 if (temp5)
33389 delete arg5;
33390 }
33391 return NULL;
33392 }
33393
33394
33395 static PyObject *_wrap_Menu_InsertMenu(PyObject *, PyObject *args, PyObject *kwargs) {
33396 PyObject *resultobj;
33397 wxMenu *arg1 = (wxMenu *) 0 ;
33398 size_t arg2 ;
33399 int arg3 ;
33400 wxString *arg4 = 0 ;
33401 wxMenu *arg5 = (wxMenu *) 0 ;
33402 wxString const &arg6_defvalue = wxPyEmptyString ;
33403 wxString *arg6 = (wxString *) &arg6_defvalue ;
33404 wxMenuItem *result;
33405 bool temp4 = false ;
33406 bool temp6 = false ;
33407 PyObject * obj0 = 0 ;
33408 PyObject * obj1 = 0 ;
33409 PyObject * obj2 = 0 ;
33410 PyObject * obj3 = 0 ;
33411 PyObject * obj4 = 0 ;
33412 PyObject * obj5 = 0 ;
33413 char *kwnames[] = {
33414 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
33415 };
33416
33417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
33418 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33419 if (SWIG_arg_fail(1)) SWIG_fail;
33420 {
33421 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
33422 if (SWIG_arg_fail(2)) SWIG_fail;
33423 }
33424 {
33425 arg3 = (int)(SWIG_As_int(obj2));
33426 if (SWIG_arg_fail(3)) SWIG_fail;
33427 }
33428 {
33429 arg4 = wxString_in_helper(obj3);
33430 if (arg4 == NULL) SWIG_fail;
33431 temp4 = true;
33432 }
33433 SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33434 if (SWIG_arg_fail(5)) SWIG_fail;
33435 if (obj5) {
33436 {
33437 arg6 = wxString_in_helper(obj5);
33438 if (arg6 == NULL) SWIG_fail;
33439 temp6 = true;
33440 }
33441 }
33442 {
33443 PyThreadState* __tstate = wxPyBeginAllowThreads();
33444 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6);
33445
33446 wxPyEndAllowThreads(__tstate);
33447 if (PyErr_Occurred()) SWIG_fail;
33448 }
33449 {
33450 resultobj = wxPyMake_wxObject(result, 0);
33451 }
33452 {
33453 if (temp4)
33454 delete arg4;
33455 }
33456 {
33457 if (temp6)
33458 delete arg6;
33459 }
33460 return resultobj;
33461 fail:
33462 {
33463 if (temp4)
33464 delete arg4;
33465 }
33466 {
33467 if (temp6)
33468 delete arg6;
33469 }
33470 return NULL;
33471 }
33472
33473
33474 static PyObject *_wrap_Menu_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) {
33475 PyObject *resultobj;
33476 wxMenu *arg1 = (wxMenu *) 0 ;
33477 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
33478 wxMenuItem *result;
33479 PyObject * obj0 = 0 ;
33480 PyObject * obj1 = 0 ;
33481 char *kwnames[] = {
33482 (char *) "self",(char *) "item", NULL
33483 };
33484
33485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail;
33486 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33487 if (SWIG_arg_fail(1)) SWIG_fail;
33488 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
33489 if (SWIG_arg_fail(2)) SWIG_fail;
33490 {
33491 PyThreadState* __tstate = wxPyBeginAllowThreads();
33492 result = (wxMenuItem *)(arg1)->Prepend(arg2);
33493
33494 wxPyEndAllowThreads(__tstate);
33495 if (PyErr_Occurred()) SWIG_fail;
33496 }
33497 {
33498 resultobj = wxPyMake_wxObject(result, 0);
33499 }
33500 return resultobj;
33501 fail:
33502 return NULL;
33503 }
33504
33505
33506 static PyObject *_wrap_Menu_Prepend(PyObject *, PyObject *args, PyObject *kwargs) {
33507 PyObject *resultobj;
33508 wxMenu *arg1 = (wxMenu *) 0 ;
33509 int arg2 ;
33510 wxString *arg3 = 0 ;
33511 wxString const &arg4_defvalue = wxPyEmptyString ;
33512 wxString *arg4 = (wxString *) &arg4_defvalue ;
33513 wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ;
33514 wxMenuItem *result;
33515 bool temp3 = false ;
33516 bool temp4 = false ;
33517 PyObject * obj0 = 0 ;
33518 PyObject * obj1 = 0 ;
33519 PyObject * obj2 = 0 ;
33520 PyObject * obj3 = 0 ;
33521 PyObject * obj4 = 0 ;
33522 char *kwnames[] = {
33523 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
33524 };
33525
33526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
33527 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33528 if (SWIG_arg_fail(1)) SWIG_fail;
33529 {
33530 arg2 = (int)(SWIG_As_int(obj1));
33531 if (SWIG_arg_fail(2)) SWIG_fail;
33532 }
33533 {
33534 arg3 = wxString_in_helper(obj2);
33535 if (arg3 == NULL) SWIG_fail;
33536 temp3 = true;
33537 }
33538 if (obj3) {
33539 {
33540 arg4 = wxString_in_helper(obj3);
33541 if (arg4 == NULL) SWIG_fail;
33542 temp4 = true;
33543 }
33544 }
33545 if (obj4) {
33546 {
33547 arg5 = (wxItemKind)(SWIG_As_int(obj4));
33548 if (SWIG_arg_fail(5)) SWIG_fail;
33549 }
33550 }
33551 {
33552 PyThreadState* __tstate = wxPyBeginAllowThreads();
33553 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
33554
33555 wxPyEndAllowThreads(__tstate);
33556 if (PyErr_Occurred()) SWIG_fail;
33557 }
33558 {
33559 resultobj = wxPyMake_wxObject(result, 0);
33560 }
33561 {
33562 if (temp3)
33563 delete arg3;
33564 }
33565 {
33566 if (temp4)
33567 delete arg4;
33568 }
33569 return resultobj;
33570 fail:
33571 {
33572 if (temp3)
33573 delete arg3;
33574 }
33575 {
33576 if (temp4)
33577 delete arg4;
33578 }
33579 return NULL;
33580 }
33581
33582
33583 static PyObject *_wrap_Menu_PrependSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
33584 PyObject *resultobj;
33585 wxMenu *arg1 = (wxMenu *) 0 ;
33586 wxMenuItem *result;
33587 PyObject * obj0 = 0 ;
33588 char *kwnames[] = {
33589 (char *) "self", NULL
33590 };
33591
33592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail;
33593 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33594 if (SWIG_arg_fail(1)) SWIG_fail;
33595 {
33596 PyThreadState* __tstate = wxPyBeginAllowThreads();
33597 result = (wxMenuItem *)(arg1)->PrependSeparator();
33598
33599 wxPyEndAllowThreads(__tstate);
33600 if (PyErr_Occurred()) SWIG_fail;
33601 }
33602 {
33603 resultobj = wxPyMake_wxObject(result, 0);
33604 }
33605 return resultobj;
33606 fail:
33607 return NULL;
33608 }
33609
33610
33611 static PyObject *_wrap_Menu_PrependCheckItem(PyObject *, PyObject *args, PyObject *kwargs) {
33612 PyObject *resultobj;
33613 wxMenu *arg1 = (wxMenu *) 0 ;
33614 int arg2 ;
33615 wxString *arg3 = 0 ;
33616 wxString const &arg4_defvalue = wxPyEmptyString ;
33617 wxString *arg4 = (wxString *) &arg4_defvalue ;
33618 wxMenuItem *result;
33619 bool temp3 = false ;
33620 bool temp4 = false ;
33621 PyObject * obj0 = 0 ;
33622 PyObject * obj1 = 0 ;
33623 PyObject * obj2 = 0 ;
33624 PyObject * obj3 = 0 ;
33625 char *kwnames[] = {
33626 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
33627 };
33628
33629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
33630 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33631 if (SWIG_arg_fail(1)) SWIG_fail;
33632 {
33633 arg2 = (int)(SWIG_As_int(obj1));
33634 if (SWIG_arg_fail(2)) SWIG_fail;
33635 }
33636 {
33637 arg3 = wxString_in_helper(obj2);
33638 if (arg3 == NULL) SWIG_fail;
33639 temp3 = true;
33640 }
33641 if (obj3) {
33642 {
33643 arg4 = wxString_in_helper(obj3);
33644 if (arg4 == NULL) SWIG_fail;
33645 temp4 = true;
33646 }
33647 }
33648 {
33649 PyThreadState* __tstate = wxPyBeginAllowThreads();
33650 result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
33651
33652 wxPyEndAllowThreads(__tstate);
33653 if (PyErr_Occurred()) SWIG_fail;
33654 }
33655 {
33656 resultobj = wxPyMake_wxObject(result, 0);
33657 }
33658 {
33659 if (temp3)
33660 delete arg3;
33661 }
33662 {
33663 if (temp4)
33664 delete arg4;
33665 }
33666 return resultobj;
33667 fail:
33668 {
33669 if (temp3)
33670 delete arg3;
33671 }
33672 {
33673 if (temp4)
33674 delete arg4;
33675 }
33676 return NULL;
33677 }
33678
33679
33680 static PyObject *_wrap_Menu_PrependRadioItem(PyObject *, PyObject *args, PyObject *kwargs) {
33681 PyObject *resultobj;
33682 wxMenu *arg1 = (wxMenu *) 0 ;
33683 int arg2 ;
33684 wxString *arg3 = 0 ;
33685 wxString const &arg4_defvalue = wxPyEmptyString ;
33686 wxString *arg4 = (wxString *) &arg4_defvalue ;
33687 wxMenuItem *result;
33688 bool temp3 = false ;
33689 bool temp4 = false ;
33690 PyObject * obj0 = 0 ;
33691 PyObject * obj1 = 0 ;
33692 PyObject * obj2 = 0 ;
33693 PyObject * obj3 = 0 ;
33694 char *kwnames[] = {
33695 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
33696 };
33697
33698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
33699 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33700 if (SWIG_arg_fail(1)) SWIG_fail;
33701 {
33702 arg2 = (int)(SWIG_As_int(obj1));
33703 if (SWIG_arg_fail(2)) SWIG_fail;
33704 }
33705 {
33706 arg3 = wxString_in_helper(obj2);
33707 if (arg3 == NULL) SWIG_fail;
33708 temp3 = true;
33709 }
33710 if (obj3) {
33711 {
33712 arg4 = wxString_in_helper(obj3);
33713 if (arg4 == NULL) SWIG_fail;
33714 temp4 = true;
33715 }
33716 }
33717 {
33718 PyThreadState* __tstate = wxPyBeginAllowThreads();
33719 result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
33720
33721 wxPyEndAllowThreads(__tstate);
33722 if (PyErr_Occurred()) SWIG_fail;
33723 }
33724 {
33725 resultobj = wxPyMake_wxObject(result, 0);
33726 }
33727 {
33728 if (temp3)
33729 delete arg3;
33730 }
33731 {
33732 if (temp4)
33733 delete arg4;
33734 }
33735 return resultobj;
33736 fail:
33737 {
33738 if (temp3)
33739 delete arg3;
33740 }
33741 {
33742 if (temp4)
33743 delete arg4;
33744 }
33745 return NULL;
33746 }
33747
33748
33749 static PyObject *_wrap_Menu_PrependMenu(PyObject *, PyObject *args, PyObject *kwargs) {
33750 PyObject *resultobj;
33751 wxMenu *arg1 = (wxMenu *) 0 ;
33752 int arg2 ;
33753 wxString *arg3 = 0 ;
33754 wxMenu *arg4 = (wxMenu *) 0 ;
33755 wxString const &arg5_defvalue = wxPyEmptyString ;
33756 wxString *arg5 = (wxString *) &arg5_defvalue ;
33757 wxMenuItem *result;
33758 bool temp3 = false ;
33759 bool temp5 = false ;
33760 PyObject * obj0 = 0 ;
33761 PyObject * obj1 = 0 ;
33762 PyObject * obj2 = 0 ;
33763 PyObject * obj3 = 0 ;
33764 PyObject * obj4 = 0 ;
33765 char *kwnames[] = {
33766 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
33767 };
33768
33769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
33770 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33771 if (SWIG_arg_fail(1)) SWIG_fail;
33772 {
33773 arg2 = (int)(SWIG_As_int(obj1));
33774 if (SWIG_arg_fail(2)) SWIG_fail;
33775 }
33776 {
33777 arg3 = wxString_in_helper(obj2);
33778 if (arg3 == NULL) SWIG_fail;
33779 temp3 = true;
33780 }
33781 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33782 if (SWIG_arg_fail(4)) SWIG_fail;
33783 if (obj4) {
33784 {
33785 arg5 = wxString_in_helper(obj4);
33786 if (arg5 == NULL) SWIG_fail;
33787 temp5 = true;
33788 }
33789 }
33790 {
33791 PyThreadState* __tstate = wxPyBeginAllowThreads();
33792 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
33793
33794 wxPyEndAllowThreads(__tstate);
33795 if (PyErr_Occurred()) SWIG_fail;
33796 }
33797 {
33798 resultobj = wxPyMake_wxObject(result, 0);
33799 }
33800 {
33801 if (temp3)
33802 delete arg3;
33803 }
33804 {
33805 if (temp5)
33806 delete arg5;
33807 }
33808 return resultobj;
33809 fail:
33810 {
33811 if (temp3)
33812 delete arg3;
33813 }
33814 {
33815 if (temp5)
33816 delete arg5;
33817 }
33818 return NULL;
33819 }
33820
33821
33822 static PyObject *_wrap_Menu_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
33823 PyObject *resultobj;
33824 wxMenu *arg1 = (wxMenu *) 0 ;
33825 int arg2 ;
33826 wxMenuItem *result;
33827 PyObject * obj0 = 0 ;
33828 PyObject * obj1 = 0 ;
33829 char *kwnames[] = {
33830 (char *) "self",(char *) "id", NULL
33831 };
33832
33833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail;
33834 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33835 if (SWIG_arg_fail(1)) SWIG_fail;
33836 {
33837 arg2 = (int)(SWIG_As_int(obj1));
33838 if (SWIG_arg_fail(2)) SWIG_fail;
33839 }
33840 {
33841 PyThreadState* __tstate = wxPyBeginAllowThreads();
33842 result = (wxMenuItem *)(arg1)->Remove(arg2);
33843
33844 wxPyEndAllowThreads(__tstate);
33845 if (PyErr_Occurred()) SWIG_fail;
33846 }
33847 {
33848 resultobj = wxPyMake_wxObject(result, 0);
33849 }
33850 return resultobj;
33851 fail:
33852 return NULL;
33853 }
33854
33855
33856 static PyObject *_wrap_Menu_RemoveItem(PyObject *, PyObject *args, PyObject *kwargs) {
33857 PyObject *resultobj;
33858 wxMenu *arg1 = (wxMenu *) 0 ;
33859 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
33860 wxMenuItem *result;
33861 PyObject * obj0 = 0 ;
33862 PyObject * obj1 = 0 ;
33863 char *kwnames[] = {
33864 (char *) "self",(char *) "item", NULL
33865 };
33866
33867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail;
33868 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33869 if (SWIG_arg_fail(1)) SWIG_fail;
33870 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
33871 if (SWIG_arg_fail(2)) SWIG_fail;
33872 {
33873 PyThreadState* __tstate = wxPyBeginAllowThreads();
33874 result = (wxMenuItem *)(arg1)->Remove(arg2);
33875
33876 wxPyEndAllowThreads(__tstate);
33877 if (PyErr_Occurred()) SWIG_fail;
33878 }
33879 {
33880 resultobj = wxPyMake_wxObject(result, 0);
33881 }
33882 return resultobj;
33883 fail:
33884 return NULL;
33885 }
33886
33887
33888 static PyObject *_wrap_Menu_Delete(PyObject *, PyObject *args, PyObject *kwargs) {
33889 PyObject *resultobj;
33890 wxMenu *arg1 = (wxMenu *) 0 ;
33891 int arg2 ;
33892 bool result;
33893 PyObject * obj0 = 0 ;
33894 PyObject * obj1 = 0 ;
33895 char *kwnames[] = {
33896 (char *) "self",(char *) "id", NULL
33897 };
33898
33899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail;
33900 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33901 if (SWIG_arg_fail(1)) SWIG_fail;
33902 {
33903 arg2 = (int)(SWIG_As_int(obj1));
33904 if (SWIG_arg_fail(2)) SWIG_fail;
33905 }
33906 {
33907 PyThreadState* __tstate = wxPyBeginAllowThreads();
33908 result = (bool)(arg1)->Delete(arg2);
33909
33910 wxPyEndAllowThreads(__tstate);
33911 if (PyErr_Occurred()) SWIG_fail;
33912 }
33913 {
33914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33915 }
33916 return resultobj;
33917 fail:
33918 return NULL;
33919 }
33920
33921
33922 static PyObject *_wrap_Menu_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) {
33923 PyObject *resultobj;
33924 wxMenu *arg1 = (wxMenu *) 0 ;
33925 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
33926 bool result;
33927 PyObject * obj0 = 0 ;
33928 PyObject * obj1 = 0 ;
33929 char *kwnames[] = {
33930 (char *) "self",(char *) "item", NULL
33931 };
33932
33933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
33934 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33935 if (SWIG_arg_fail(1)) SWIG_fail;
33936 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
33937 if (SWIG_arg_fail(2)) SWIG_fail;
33938 {
33939 PyThreadState* __tstate = wxPyBeginAllowThreads();
33940 result = (bool)(arg1)->Delete(arg2);
33941
33942 wxPyEndAllowThreads(__tstate);
33943 if (PyErr_Occurred()) SWIG_fail;
33944 }
33945 {
33946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33947 }
33948 return resultobj;
33949 fail:
33950 return NULL;
33951 }
33952
33953
33954 static PyObject *_wrap_Menu_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
33955 PyObject *resultobj;
33956 wxMenu *arg1 = (wxMenu *) 0 ;
33957 PyObject * obj0 = 0 ;
33958 char *kwnames[] = {
33959 (char *) "self", NULL
33960 };
33961
33962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail;
33963 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33964 if (SWIG_arg_fail(1)) SWIG_fail;
33965 {
33966 PyThreadState* __tstate = wxPyBeginAllowThreads();
33967 wxMenu_Destroy(arg1);
33968
33969 wxPyEndAllowThreads(__tstate);
33970 if (PyErr_Occurred()) SWIG_fail;
33971 }
33972 Py_INCREF(Py_None); resultobj = Py_None;
33973 return resultobj;
33974 fail:
33975 return NULL;
33976 }
33977
33978
33979 static PyObject *_wrap_Menu_DestroyId(PyObject *, PyObject *args, PyObject *kwargs) {
33980 PyObject *resultobj;
33981 wxMenu *arg1 = (wxMenu *) 0 ;
33982 int arg2 ;
33983 bool result;
33984 PyObject * obj0 = 0 ;
33985 PyObject * obj1 = 0 ;
33986 char *kwnames[] = {
33987 (char *) "self",(char *) "id", NULL
33988 };
33989
33990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail;
33991 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
33992 if (SWIG_arg_fail(1)) SWIG_fail;
33993 {
33994 arg2 = (int)(SWIG_As_int(obj1));
33995 if (SWIG_arg_fail(2)) SWIG_fail;
33996 }
33997 {
33998 PyThreadState* __tstate = wxPyBeginAllowThreads();
33999 result = (bool)(arg1)->Destroy(arg2);
34000
34001 wxPyEndAllowThreads(__tstate);
34002 if (PyErr_Occurred()) SWIG_fail;
34003 }
34004 {
34005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34006 }
34007 return resultobj;
34008 fail:
34009 return NULL;
34010 }
34011
34012
34013 static PyObject *_wrap_Menu_DestroyItem(PyObject *, PyObject *args, PyObject *kwargs) {
34014 PyObject *resultobj;
34015 wxMenu *arg1 = (wxMenu *) 0 ;
34016 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
34017 bool result;
34018 PyObject * obj0 = 0 ;
34019 PyObject * obj1 = 0 ;
34020 char *kwnames[] = {
34021 (char *) "self",(char *) "item", NULL
34022 };
34023
34024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail;
34025 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34026 if (SWIG_arg_fail(1)) SWIG_fail;
34027 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
34028 if (SWIG_arg_fail(2)) SWIG_fail;
34029 {
34030 PyThreadState* __tstate = wxPyBeginAllowThreads();
34031 result = (bool)(arg1)->Destroy(arg2);
34032
34033 wxPyEndAllowThreads(__tstate);
34034 if (PyErr_Occurred()) SWIG_fail;
34035 }
34036 {
34037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34038 }
34039 return resultobj;
34040 fail:
34041 return NULL;
34042 }
34043
34044
34045 static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
34046 PyObject *resultobj;
34047 wxMenu *arg1 = (wxMenu *) 0 ;
34048 size_t result;
34049 PyObject * obj0 = 0 ;
34050 char *kwnames[] = {
34051 (char *) "self", NULL
34052 };
34053
34054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail;
34055 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34056 if (SWIG_arg_fail(1)) SWIG_fail;
34057 {
34058 PyThreadState* __tstate = wxPyBeginAllowThreads();
34059 result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount();
34060
34061 wxPyEndAllowThreads(__tstate);
34062 if (PyErr_Occurred()) SWIG_fail;
34063 }
34064 {
34065 resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
34066 }
34067 return resultobj;
34068 fail:
34069 return NULL;
34070 }
34071
34072
34073 static PyObject *_wrap_Menu_GetMenuItems(PyObject *, PyObject *args, PyObject *kwargs) {
34074 PyObject *resultobj;
34075 wxMenu *arg1 = (wxMenu *) 0 ;
34076 PyObject *result;
34077 PyObject * obj0 = 0 ;
34078 char *kwnames[] = {
34079 (char *) "self", NULL
34080 };
34081
34082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail;
34083 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34084 if (SWIG_arg_fail(1)) SWIG_fail;
34085 {
34086 PyThreadState* __tstate = wxPyBeginAllowThreads();
34087 result = (PyObject *)wxMenu_GetMenuItems(arg1);
34088
34089 wxPyEndAllowThreads(__tstate);
34090 if (PyErr_Occurred()) SWIG_fail;
34091 }
34092 resultobj = result;
34093 return resultobj;
34094 fail:
34095 return NULL;
34096 }
34097
34098
34099 static PyObject *_wrap_Menu_FindItem(PyObject *, PyObject *args, PyObject *kwargs) {
34100 PyObject *resultobj;
34101 wxMenu *arg1 = (wxMenu *) 0 ;
34102 wxString *arg2 = 0 ;
34103 int result;
34104 bool temp2 = false ;
34105 PyObject * obj0 = 0 ;
34106 PyObject * obj1 = 0 ;
34107 char *kwnames[] = {
34108 (char *) "self",(char *) "item", NULL
34109 };
34110
34111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail;
34112 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34113 if (SWIG_arg_fail(1)) SWIG_fail;
34114 {
34115 arg2 = wxString_in_helper(obj1);
34116 if (arg2 == NULL) SWIG_fail;
34117 temp2 = true;
34118 }
34119 {
34120 PyThreadState* __tstate = wxPyBeginAllowThreads();
34121 result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2);
34122
34123 wxPyEndAllowThreads(__tstate);
34124 if (PyErr_Occurred()) SWIG_fail;
34125 }
34126 {
34127 resultobj = SWIG_From_int((int)(result));
34128 }
34129 {
34130 if (temp2)
34131 delete arg2;
34132 }
34133 return resultobj;
34134 fail:
34135 {
34136 if (temp2)
34137 delete arg2;
34138 }
34139 return NULL;
34140 }
34141
34142
34143 static PyObject *_wrap_Menu_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) {
34144 PyObject *resultobj;
34145 wxMenu *arg1 = (wxMenu *) 0 ;
34146 int arg2 ;
34147 wxMenuItem *result;
34148 PyObject * obj0 = 0 ;
34149 PyObject * obj1 = 0 ;
34150 char *kwnames[] = {
34151 (char *) "self",(char *) "id", NULL
34152 };
34153
34154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail;
34155 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34156 if (SWIG_arg_fail(1)) SWIG_fail;
34157 {
34158 arg2 = (int)(SWIG_As_int(obj1));
34159 if (SWIG_arg_fail(2)) SWIG_fail;
34160 }
34161 {
34162 PyThreadState* __tstate = wxPyBeginAllowThreads();
34163 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2);
34164
34165 wxPyEndAllowThreads(__tstate);
34166 if (PyErr_Occurred()) SWIG_fail;
34167 }
34168 {
34169 resultobj = wxPyMake_wxObject(result, 0);
34170 }
34171 return resultobj;
34172 fail:
34173 return NULL;
34174 }
34175
34176
34177 static PyObject *_wrap_Menu_FindItemByPosition(PyObject *, PyObject *args, PyObject *kwargs) {
34178 PyObject *resultobj;
34179 wxMenu *arg1 = (wxMenu *) 0 ;
34180 size_t arg2 ;
34181 wxMenuItem *result;
34182 PyObject * obj0 = 0 ;
34183 PyObject * obj1 = 0 ;
34184 char *kwnames[] = {
34185 (char *) "self",(char *) "position", NULL
34186 };
34187
34188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail;
34189 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34190 if (SWIG_arg_fail(1)) SWIG_fail;
34191 {
34192 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
34193 if (SWIG_arg_fail(2)) SWIG_fail;
34194 }
34195 {
34196 PyThreadState* __tstate = wxPyBeginAllowThreads();
34197 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2);
34198
34199 wxPyEndAllowThreads(__tstate);
34200 if (PyErr_Occurred()) SWIG_fail;
34201 }
34202 {
34203 resultobj = wxPyMake_wxObject(result, 0);
34204 }
34205 return resultobj;
34206 fail:
34207 return NULL;
34208 }
34209
34210
34211 static PyObject *_wrap_Menu_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
34212 PyObject *resultobj;
34213 wxMenu *arg1 = (wxMenu *) 0 ;
34214 int arg2 ;
34215 bool arg3 ;
34216 PyObject * obj0 = 0 ;
34217 PyObject * obj1 = 0 ;
34218 PyObject * obj2 = 0 ;
34219 char *kwnames[] = {
34220 (char *) "self",(char *) "id",(char *) "enable", NULL
34221 };
34222
34223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
34224 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34225 if (SWIG_arg_fail(1)) SWIG_fail;
34226 {
34227 arg2 = (int)(SWIG_As_int(obj1));
34228 if (SWIG_arg_fail(2)) SWIG_fail;
34229 }
34230 {
34231 arg3 = (bool)(SWIG_As_bool(obj2));
34232 if (SWIG_arg_fail(3)) SWIG_fail;
34233 }
34234 {
34235 PyThreadState* __tstate = wxPyBeginAllowThreads();
34236 (arg1)->Enable(arg2,arg3);
34237
34238 wxPyEndAllowThreads(__tstate);
34239 if (PyErr_Occurred()) SWIG_fail;
34240 }
34241 Py_INCREF(Py_None); resultobj = Py_None;
34242 return resultobj;
34243 fail:
34244 return NULL;
34245 }
34246
34247
34248 static PyObject *_wrap_Menu_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
34249 PyObject *resultobj;
34250 wxMenu *arg1 = (wxMenu *) 0 ;
34251 int arg2 ;
34252 bool result;
34253 PyObject * obj0 = 0 ;
34254 PyObject * obj1 = 0 ;
34255 char *kwnames[] = {
34256 (char *) "self",(char *) "id", NULL
34257 };
34258
34259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
34260 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34261 if (SWIG_arg_fail(1)) SWIG_fail;
34262 {
34263 arg2 = (int)(SWIG_As_int(obj1));
34264 if (SWIG_arg_fail(2)) SWIG_fail;
34265 }
34266 {
34267 PyThreadState* __tstate = wxPyBeginAllowThreads();
34268 result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2);
34269
34270 wxPyEndAllowThreads(__tstate);
34271 if (PyErr_Occurred()) SWIG_fail;
34272 }
34273 {
34274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34275 }
34276 return resultobj;
34277 fail:
34278 return NULL;
34279 }
34280
34281
34282 static PyObject *_wrap_Menu_Check(PyObject *, PyObject *args, PyObject *kwargs) {
34283 PyObject *resultobj;
34284 wxMenu *arg1 = (wxMenu *) 0 ;
34285 int arg2 ;
34286 bool arg3 ;
34287 PyObject * obj0 = 0 ;
34288 PyObject * obj1 = 0 ;
34289 PyObject * obj2 = 0 ;
34290 char *kwnames[] = {
34291 (char *) "self",(char *) "id",(char *) "check", NULL
34292 };
34293
34294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
34295 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34296 if (SWIG_arg_fail(1)) SWIG_fail;
34297 {
34298 arg2 = (int)(SWIG_As_int(obj1));
34299 if (SWIG_arg_fail(2)) SWIG_fail;
34300 }
34301 {
34302 arg3 = (bool)(SWIG_As_bool(obj2));
34303 if (SWIG_arg_fail(3)) SWIG_fail;
34304 }
34305 {
34306 PyThreadState* __tstate = wxPyBeginAllowThreads();
34307 (arg1)->Check(arg2,arg3);
34308
34309 wxPyEndAllowThreads(__tstate);
34310 if (PyErr_Occurred()) SWIG_fail;
34311 }
34312 Py_INCREF(Py_None); resultobj = Py_None;
34313 return resultobj;
34314 fail:
34315 return NULL;
34316 }
34317
34318
34319 static PyObject *_wrap_Menu_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
34320 PyObject *resultobj;
34321 wxMenu *arg1 = (wxMenu *) 0 ;
34322 int arg2 ;
34323 bool result;
34324 PyObject * obj0 = 0 ;
34325 PyObject * obj1 = 0 ;
34326 char *kwnames[] = {
34327 (char *) "self",(char *) "id", NULL
34328 };
34329
34330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail;
34331 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34332 if (SWIG_arg_fail(1)) SWIG_fail;
34333 {
34334 arg2 = (int)(SWIG_As_int(obj1));
34335 if (SWIG_arg_fail(2)) SWIG_fail;
34336 }
34337 {
34338 PyThreadState* __tstate = wxPyBeginAllowThreads();
34339 result = (bool)((wxMenu const *)arg1)->IsChecked(arg2);
34340
34341 wxPyEndAllowThreads(__tstate);
34342 if (PyErr_Occurred()) SWIG_fail;
34343 }
34344 {
34345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34346 }
34347 return resultobj;
34348 fail:
34349 return NULL;
34350 }
34351
34352
34353 static PyObject *_wrap_Menu_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
34354 PyObject *resultobj;
34355 wxMenu *arg1 = (wxMenu *) 0 ;
34356 int arg2 ;
34357 wxString *arg3 = 0 ;
34358 bool temp3 = false ;
34359 PyObject * obj0 = 0 ;
34360 PyObject * obj1 = 0 ;
34361 PyObject * obj2 = 0 ;
34362 char *kwnames[] = {
34363 (char *) "self",(char *) "id",(char *) "label", NULL
34364 };
34365
34366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
34367 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34368 if (SWIG_arg_fail(1)) SWIG_fail;
34369 {
34370 arg2 = (int)(SWIG_As_int(obj1));
34371 if (SWIG_arg_fail(2)) SWIG_fail;
34372 }
34373 {
34374 arg3 = wxString_in_helper(obj2);
34375 if (arg3 == NULL) SWIG_fail;
34376 temp3 = true;
34377 }
34378 {
34379 PyThreadState* __tstate = wxPyBeginAllowThreads();
34380 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
34381
34382 wxPyEndAllowThreads(__tstate);
34383 if (PyErr_Occurred()) SWIG_fail;
34384 }
34385 Py_INCREF(Py_None); resultobj = Py_None;
34386 {
34387 if (temp3)
34388 delete arg3;
34389 }
34390 return resultobj;
34391 fail:
34392 {
34393 if (temp3)
34394 delete arg3;
34395 }
34396 return NULL;
34397 }
34398
34399
34400 static PyObject *_wrap_Menu_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
34401 PyObject *resultobj;
34402 wxMenu *arg1 = (wxMenu *) 0 ;
34403 int arg2 ;
34404 wxString result;
34405 PyObject * obj0 = 0 ;
34406 PyObject * obj1 = 0 ;
34407 char *kwnames[] = {
34408 (char *) "self",(char *) "id", NULL
34409 };
34410
34411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail;
34412 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34413 if (SWIG_arg_fail(1)) SWIG_fail;
34414 {
34415 arg2 = (int)(SWIG_As_int(obj1));
34416 if (SWIG_arg_fail(2)) SWIG_fail;
34417 }
34418 {
34419 PyThreadState* __tstate = wxPyBeginAllowThreads();
34420 result = ((wxMenu const *)arg1)->GetLabel(arg2);
34421
34422 wxPyEndAllowThreads(__tstate);
34423 if (PyErr_Occurred()) SWIG_fail;
34424 }
34425 {
34426 #if wxUSE_UNICODE
34427 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34428 #else
34429 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34430 #endif
34431 }
34432 return resultobj;
34433 fail:
34434 return NULL;
34435 }
34436
34437
34438 static PyObject *_wrap_Menu_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) {
34439 PyObject *resultobj;
34440 wxMenu *arg1 = (wxMenu *) 0 ;
34441 int arg2 ;
34442 wxString *arg3 = 0 ;
34443 bool temp3 = false ;
34444 PyObject * obj0 = 0 ;
34445 PyObject * obj1 = 0 ;
34446 PyObject * obj2 = 0 ;
34447 char *kwnames[] = {
34448 (char *) "self",(char *) "id",(char *) "helpString", NULL
34449 };
34450
34451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
34452 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34453 if (SWIG_arg_fail(1)) SWIG_fail;
34454 {
34455 arg2 = (int)(SWIG_As_int(obj1));
34456 if (SWIG_arg_fail(2)) SWIG_fail;
34457 }
34458 {
34459 arg3 = wxString_in_helper(obj2);
34460 if (arg3 == NULL) SWIG_fail;
34461 temp3 = true;
34462 }
34463 {
34464 PyThreadState* __tstate = wxPyBeginAllowThreads();
34465 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
34466
34467 wxPyEndAllowThreads(__tstate);
34468 if (PyErr_Occurred()) SWIG_fail;
34469 }
34470 Py_INCREF(Py_None); resultobj = Py_None;
34471 {
34472 if (temp3)
34473 delete arg3;
34474 }
34475 return resultobj;
34476 fail:
34477 {
34478 if (temp3)
34479 delete arg3;
34480 }
34481 return NULL;
34482 }
34483
34484
34485 static PyObject *_wrap_Menu_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) {
34486 PyObject *resultobj;
34487 wxMenu *arg1 = (wxMenu *) 0 ;
34488 int arg2 ;
34489 wxString result;
34490 PyObject * obj0 = 0 ;
34491 PyObject * obj1 = 0 ;
34492 char *kwnames[] = {
34493 (char *) "self",(char *) "id", NULL
34494 };
34495
34496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
34497 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34498 if (SWIG_arg_fail(1)) SWIG_fail;
34499 {
34500 arg2 = (int)(SWIG_As_int(obj1));
34501 if (SWIG_arg_fail(2)) SWIG_fail;
34502 }
34503 {
34504 PyThreadState* __tstate = wxPyBeginAllowThreads();
34505 result = ((wxMenu const *)arg1)->GetHelpString(arg2);
34506
34507 wxPyEndAllowThreads(__tstate);
34508 if (PyErr_Occurred()) SWIG_fail;
34509 }
34510 {
34511 #if wxUSE_UNICODE
34512 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34513 #else
34514 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34515 #endif
34516 }
34517 return resultobj;
34518 fail:
34519 return NULL;
34520 }
34521
34522
34523 static PyObject *_wrap_Menu_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) {
34524 PyObject *resultobj;
34525 wxMenu *arg1 = (wxMenu *) 0 ;
34526 wxString *arg2 = 0 ;
34527 bool temp2 = false ;
34528 PyObject * obj0 = 0 ;
34529 PyObject * obj1 = 0 ;
34530 char *kwnames[] = {
34531 (char *) "self",(char *) "title", NULL
34532 };
34533
34534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail;
34535 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34536 if (SWIG_arg_fail(1)) SWIG_fail;
34537 {
34538 arg2 = wxString_in_helper(obj1);
34539 if (arg2 == NULL) SWIG_fail;
34540 temp2 = true;
34541 }
34542 {
34543 PyThreadState* __tstate = wxPyBeginAllowThreads();
34544 (arg1)->SetTitle((wxString const &)*arg2);
34545
34546 wxPyEndAllowThreads(__tstate);
34547 if (PyErr_Occurred()) SWIG_fail;
34548 }
34549 Py_INCREF(Py_None); resultobj = Py_None;
34550 {
34551 if (temp2)
34552 delete arg2;
34553 }
34554 return resultobj;
34555 fail:
34556 {
34557 if (temp2)
34558 delete arg2;
34559 }
34560 return NULL;
34561 }
34562
34563
34564 static PyObject *_wrap_Menu_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) {
34565 PyObject *resultobj;
34566 wxMenu *arg1 = (wxMenu *) 0 ;
34567 wxString result;
34568 PyObject * obj0 = 0 ;
34569 char *kwnames[] = {
34570 (char *) "self", NULL
34571 };
34572
34573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail;
34574 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34575 if (SWIG_arg_fail(1)) SWIG_fail;
34576 {
34577 PyThreadState* __tstate = wxPyBeginAllowThreads();
34578 result = ((wxMenu const *)arg1)->GetTitle();
34579
34580 wxPyEndAllowThreads(__tstate);
34581 if (PyErr_Occurred()) SWIG_fail;
34582 }
34583 {
34584 #if wxUSE_UNICODE
34585 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34586 #else
34587 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34588 #endif
34589 }
34590 return resultobj;
34591 fail:
34592 return NULL;
34593 }
34594
34595
34596 static PyObject *_wrap_Menu_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
34597 PyObject *resultobj;
34598 wxMenu *arg1 = (wxMenu *) 0 ;
34599 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
34600 PyObject * obj0 = 0 ;
34601 PyObject * obj1 = 0 ;
34602 char *kwnames[] = {
34603 (char *) "self",(char *) "handler", NULL
34604 };
34605
34606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
34607 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34608 if (SWIG_arg_fail(1)) SWIG_fail;
34609 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
34610 if (SWIG_arg_fail(2)) SWIG_fail;
34611 {
34612 PyThreadState* __tstate = wxPyBeginAllowThreads();
34613 (arg1)->SetEventHandler(arg2);
34614
34615 wxPyEndAllowThreads(__tstate);
34616 if (PyErr_Occurred()) SWIG_fail;
34617 }
34618 Py_INCREF(Py_None); resultobj = Py_None;
34619 return resultobj;
34620 fail:
34621 return NULL;
34622 }
34623
34624
34625 static PyObject *_wrap_Menu_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
34626 PyObject *resultobj;
34627 wxMenu *arg1 = (wxMenu *) 0 ;
34628 wxEvtHandler *result;
34629 PyObject * obj0 = 0 ;
34630 char *kwnames[] = {
34631 (char *) "self", NULL
34632 };
34633
34634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail;
34635 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34636 if (SWIG_arg_fail(1)) SWIG_fail;
34637 {
34638 PyThreadState* __tstate = wxPyBeginAllowThreads();
34639 result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler();
34640
34641 wxPyEndAllowThreads(__tstate);
34642 if (PyErr_Occurred()) SWIG_fail;
34643 }
34644 {
34645 resultobj = wxPyMake_wxObject(result, 0);
34646 }
34647 return resultobj;
34648 fail:
34649 return NULL;
34650 }
34651
34652
34653 static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) {
34654 PyObject *resultobj;
34655 wxMenu *arg1 = (wxMenu *) 0 ;
34656 wxWindow *arg2 = (wxWindow *) 0 ;
34657 PyObject * obj0 = 0 ;
34658 PyObject * obj1 = 0 ;
34659 char *kwnames[] = {
34660 (char *) "self",(char *) "win", NULL
34661 };
34662
34663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail;
34664 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34665 if (SWIG_arg_fail(1)) SWIG_fail;
34666 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
34667 if (SWIG_arg_fail(2)) SWIG_fail;
34668 {
34669 PyThreadState* __tstate = wxPyBeginAllowThreads();
34670 (arg1)->SetInvokingWindow(arg2);
34671
34672 wxPyEndAllowThreads(__tstate);
34673 if (PyErr_Occurred()) SWIG_fail;
34674 }
34675 Py_INCREF(Py_None); resultobj = Py_None;
34676 return resultobj;
34677 fail:
34678 return NULL;
34679 }
34680
34681
34682 static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) {
34683 PyObject *resultobj;
34684 wxMenu *arg1 = (wxMenu *) 0 ;
34685 wxWindow *result;
34686 PyObject * obj0 = 0 ;
34687 char *kwnames[] = {
34688 (char *) "self", NULL
34689 };
34690
34691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail;
34692 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34693 if (SWIG_arg_fail(1)) SWIG_fail;
34694 {
34695 PyThreadState* __tstate = wxPyBeginAllowThreads();
34696 result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow();
34697
34698 wxPyEndAllowThreads(__tstate);
34699 if (PyErr_Occurred()) SWIG_fail;
34700 }
34701 {
34702 resultobj = wxPyMake_wxObject(result, 0);
34703 }
34704 return resultobj;
34705 fail:
34706 return NULL;
34707 }
34708
34709
34710 static PyObject *_wrap_Menu_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
34711 PyObject *resultobj;
34712 wxMenu *arg1 = (wxMenu *) 0 ;
34713 long result;
34714 PyObject * obj0 = 0 ;
34715 char *kwnames[] = {
34716 (char *) "self", NULL
34717 };
34718
34719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail;
34720 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34721 if (SWIG_arg_fail(1)) SWIG_fail;
34722 {
34723 PyThreadState* __tstate = wxPyBeginAllowThreads();
34724 result = (long)((wxMenu const *)arg1)->GetStyle();
34725
34726 wxPyEndAllowThreads(__tstate);
34727 if (PyErr_Occurred()) SWIG_fail;
34728 }
34729 {
34730 resultobj = SWIG_From_long((long)(result));
34731 }
34732 return resultobj;
34733 fail:
34734 return NULL;
34735 }
34736
34737
34738 static PyObject *_wrap_Menu_UpdateUI(PyObject *, PyObject *args, PyObject *kwargs) {
34739 PyObject *resultobj;
34740 wxMenu *arg1 = (wxMenu *) 0 ;
34741 wxEvtHandler *arg2 = (wxEvtHandler *) NULL ;
34742 PyObject * obj0 = 0 ;
34743 PyObject * obj1 = 0 ;
34744 char *kwnames[] = {
34745 (char *) "self",(char *) "source", NULL
34746 };
34747
34748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail;
34749 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34750 if (SWIG_arg_fail(1)) SWIG_fail;
34751 if (obj1) {
34752 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_EXCEPTION | 0);
34753 if (SWIG_arg_fail(2)) SWIG_fail;
34754 }
34755 {
34756 PyThreadState* __tstate = wxPyBeginAllowThreads();
34757 (arg1)->UpdateUI(arg2);
34758
34759 wxPyEndAllowThreads(__tstate);
34760 if (PyErr_Occurred()) SWIG_fail;
34761 }
34762 Py_INCREF(Py_None); resultobj = Py_None;
34763 return resultobj;
34764 fail:
34765 return NULL;
34766 }
34767
34768
34769 static PyObject *_wrap_Menu_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) {
34770 PyObject *resultobj;
34771 wxMenu *arg1 = (wxMenu *) 0 ;
34772 wxMenuBar *result;
34773 PyObject * obj0 = 0 ;
34774 char *kwnames[] = {
34775 (char *) "self", NULL
34776 };
34777
34778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail;
34779 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34780 if (SWIG_arg_fail(1)) SWIG_fail;
34781 {
34782 PyThreadState* __tstate = wxPyBeginAllowThreads();
34783 result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar();
34784
34785 wxPyEndAllowThreads(__tstate);
34786 if (PyErr_Occurred()) SWIG_fail;
34787 }
34788 {
34789 resultobj = wxPyMake_wxObject(result, 0);
34790 }
34791 return resultobj;
34792 fail:
34793 return NULL;
34794 }
34795
34796
34797 static PyObject *_wrap_Menu_Attach(PyObject *, PyObject *args, PyObject *kwargs) {
34798 PyObject *resultobj;
34799 wxMenu *arg1 = (wxMenu *) 0 ;
34800 wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ;
34801 PyObject * obj0 = 0 ;
34802 PyObject * obj1 = 0 ;
34803 char *kwnames[] = {
34804 (char *) "self",(char *) "menubar", NULL
34805 };
34806
34807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail;
34808 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34809 if (SWIG_arg_fail(1)) SWIG_fail;
34810 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenuBarBase, SWIG_POINTER_EXCEPTION | 0);
34811 if (SWIG_arg_fail(2)) SWIG_fail;
34812 {
34813 PyThreadState* __tstate = wxPyBeginAllowThreads();
34814 (arg1)->Attach(arg2);
34815
34816 wxPyEndAllowThreads(__tstate);
34817 if (PyErr_Occurred()) SWIG_fail;
34818 }
34819 Py_INCREF(Py_None); resultobj = Py_None;
34820 return resultobj;
34821 fail:
34822 return NULL;
34823 }
34824
34825
34826 static PyObject *_wrap_Menu_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
34827 PyObject *resultobj;
34828 wxMenu *arg1 = (wxMenu *) 0 ;
34829 PyObject * obj0 = 0 ;
34830 char *kwnames[] = {
34831 (char *) "self", NULL
34832 };
34833
34834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail;
34835 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34836 if (SWIG_arg_fail(1)) SWIG_fail;
34837 {
34838 PyThreadState* __tstate = wxPyBeginAllowThreads();
34839 (arg1)->Detach();
34840
34841 wxPyEndAllowThreads(__tstate);
34842 if (PyErr_Occurred()) SWIG_fail;
34843 }
34844 Py_INCREF(Py_None); resultobj = Py_None;
34845 return resultobj;
34846 fail:
34847 return NULL;
34848 }
34849
34850
34851 static PyObject *_wrap_Menu_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) {
34852 PyObject *resultobj;
34853 wxMenu *arg1 = (wxMenu *) 0 ;
34854 bool result;
34855 PyObject * obj0 = 0 ;
34856 char *kwnames[] = {
34857 (char *) "self", NULL
34858 };
34859
34860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail;
34861 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34862 if (SWIG_arg_fail(1)) SWIG_fail;
34863 {
34864 PyThreadState* __tstate = wxPyBeginAllowThreads();
34865 result = (bool)((wxMenu const *)arg1)->IsAttached();
34866
34867 wxPyEndAllowThreads(__tstate);
34868 if (PyErr_Occurred()) SWIG_fail;
34869 }
34870 {
34871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34872 }
34873 return resultobj;
34874 fail:
34875 return NULL;
34876 }
34877
34878
34879 static PyObject *_wrap_Menu_SetParent(PyObject *, PyObject *args, PyObject *kwargs) {
34880 PyObject *resultobj;
34881 wxMenu *arg1 = (wxMenu *) 0 ;
34882 wxMenu *arg2 = (wxMenu *) 0 ;
34883 PyObject * obj0 = 0 ;
34884 PyObject * obj1 = 0 ;
34885 char *kwnames[] = {
34886 (char *) "self",(char *) "parent", NULL
34887 };
34888
34889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail;
34890 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34891 if (SWIG_arg_fail(1)) SWIG_fail;
34892 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34893 if (SWIG_arg_fail(2)) SWIG_fail;
34894 {
34895 PyThreadState* __tstate = wxPyBeginAllowThreads();
34896 (arg1)->SetParent(arg2);
34897
34898 wxPyEndAllowThreads(__tstate);
34899 if (PyErr_Occurred()) SWIG_fail;
34900 }
34901 Py_INCREF(Py_None); resultobj = Py_None;
34902 return resultobj;
34903 fail:
34904 return NULL;
34905 }
34906
34907
34908 static PyObject *_wrap_Menu_GetParent(PyObject *, PyObject *args, PyObject *kwargs) {
34909 PyObject *resultobj;
34910 wxMenu *arg1 = (wxMenu *) 0 ;
34911 wxMenu *result;
34912 PyObject * obj0 = 0 ;
34913 char *kwnames[] = {
34914 (char *) "self", NULL
34915 };
34916
34917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail;
34918 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34919 if (SWIG_arg_fail(1)) SWIG_fail;
34920 {
34921 PyThreadState* __tstate = wxPyBeginAllowThreads();
34922 result = (wxMenu *)((wxMenu const *)arg1)->GetParent();
34923
34924 wxPyEndAllowThreads(__tstate);
34925 if (PyErr_Occurred()) SWIG_fail;
34926 }
34927 {
34928 resultobj = wxPyMake_wxObject(result, 0);
34929 }
34930 return resultobj;
34931 fail:
34932 return NULL;
34933 }
34934
34935
34936 static PyObject * Menu_swigregister(PyObject *, PyObject *args) {
34937 PyObject *obj;
34938 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34939 SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj);
34940 Py_INCREF(obj);
34941 return Py_BuildValue((char *)"");
34942 }
34943 static PyObject *_wrap_new_MenuBar(PyObject *, PyObject *args, PyObject *kwargs) {
34944 PyObject *resultobj;
34945 long arg1 = (long) 0 ;
34946 wxMenuBar *result;
34947 PyObject * obj0 = 0 ;
34948 char *kwnames[] = {
34949 (char *) "style", NULL
34950 };
34951
34952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail;
34953 if (obj0) {
34954 {
34955 arg1 = (long)(SWIG_As_long(obj0));
34956 if (SWIG_arg_fail(1)) SWIG_fail;
34957 }
34958 }
34959 {
34960 if (!wxPyCheckForApp()) SWIG_fail;
34961 PyThreadState* __tstate = wxPyBeginAllowThreads();
34962 result = (wxMenuBar *)new wxMenuBar(arg1);
34963
34964 wxPyEndAllowThreads(__tstate);
34965 if (PyErr_Occurred()) SWIG_fail;
34966 }
34967 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1);
34968 return resultobj;
34969 fail:
34970 return NULL;
34971 }
34972
34973
34974 static PyObject *_wrap_MenuBar_Append(PyObject *, PyObject *args, PyObject *kwargs) {
34975 PyObject *resultobj;
34976 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
34977 wxMenu *arg2 = (wxMenu *) 0 ;
34978 wxString *arg3 = 0 ;
34979 bool result;
34980 bool temp3 = false ;
34981 PyObject * obj0 = 0 ;
34982 PyObject * obj1 = 0 ;
34983 PyObject * obj2 = 0 ;
34984 char *kwnames[] = {
34985 (char *) "self",(char *) "menu",(char *) "title", NULL
34986 };
34987
34988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
34989 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
34990 if (SWIG_arg_fail(1)) SWIG_fail;
34991 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
34992 if (SWIG_arg_fail(2)) SWIG_fail;
34993 {
34994 arg3 = wxString_in_helper(obj2);
34995 if (arg3 == NULL) SWIG_fail;
34996 temp3 = true;
34997 }
34998 {
34999 PyThreadState* __tstate = wxPyBeginAllowThreads();
35000 result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3);
35001
35002 wxPyEndAllowThreads(__tstate);
35003 if (PyErr_Occurred()) SWIG_fail;
35004 }
35005 {
35006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35007 }
35008 {
35009 if (temp3)
35010 delete arg3;
35011 }
35012 return resultobj;
35013 fail:
35014 {
35015 if (temp3)
35016 delete arg3;
35017 }
35018 return NULL;
35019 }
35020
35021
35022 static PyObject *_wrap_MenuBar_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
35023 PyObject *resultobj;
35024 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35025 size_t arg2 ;
35026 wxMenu *arg3 = (wxMenu *) 0 ;
35027 wxString *arg4 = 0 ;
35028 bool result;
35029 bool temp4 = false ;
35030 PyObject * obj0 = 0 ;
35031 PyObject * obj1 = 0 ;
35032 PyObject * obj2 = 0 ;
35033 PyObject * obj3 = 0 ;
35034 char *kwnames[] = {
35035 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
35036 };
35037
35038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
35039 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35040 if (SWIG_arg_fail(1)) SWIG_fail;
35041 {
35042 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
35043 if (SWIG_arg_fail(2)) SWIG_fail;
35044 }
35045 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
35046 if (SWIG_arg_fail(3)) SWIG_fail;
35047 {
35048 arg4 = wxString_in_helper(obj3);
35049 if (arg4 == NULL) SWIG_fail;
35050 temp4 = true;
35051 }
35052 {
35053 PyThreadState* __tstate = wxPyBeginAllowThreads();
35054 result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4);
35055
35056 wxPyEndAllowThreads(__tstate);
35057 if (PyErr_Occurred()) SWIG_fail;
35058 }
35059 {
35060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35061 }
35062 {
35063 if (temp4)
35064 delete arg4;
35065 }
35066 return resultobj;
35067 fail:
35068 {
35069 if (temp4)
35070 delete arg4;
35071 }
35072 return NULL;
35073 }
35074
35075
35076 static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *, PyObject *args, PyObject *kwargs) {
35077 PyObject *resultobj;
35078 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35079 size_t result;
35080 PyObject * obj0 = 0 ;
35081 char *kwnames[] = {
35082 (char *) "self", NULL
35083 };
35084
35085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail;
35086 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35087 if (SWIG_arg_fail(1)) SWIG_fail;
35088 {
35089 PyThreadState* __tstate = wxPyBeginAllowThreads();
35090 result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount();
35091
35092 wxPyEndAllowThreads(__tstate);
35093 if (PyErr_Occurred()) SWIG_fail;
35094 }
35095 {
35096 resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
35097 }
35098 return resultobj;
35099 fail:
35100 return NULL;
35101 }
35102
35103
35104 static PyObject *_wrap_MenuBar_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) {
35105 PyObject *resultobj;
35106 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35107 size_t arg2 ;
35108 wxMenu *result;
35109 PyObject * obj0 = 0 ;
35110 PyObject * obj1 = 0 ;
35111 char *kwnames[] = {
35112 (char *) "self",(char *) "pos", NULL
35113 };
35114
35115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail;
35116 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35117 if (SWIG_arg_fail(1)) SWIG_fail;
35118 {
35119 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
35120 if (SWIG_arg_fail(2)) SWIG_fail;
35121 }
35122 {
35123 PyThreadState* __tstate = wxPyBeginAllowThreads();
35124 result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2);
35125
35126 wxPyEndAllowThreads(__tstate);
35127 if (PyErr_Occurred()) SWIG_fail;
35128 }
35129 {
35130 resultobj = wxPyMake_wxObject(result, 0);
35131 }
35132 return resultobj;
35133 fail:
35134 return NULL;
35135 }
35136
35137
35138 static PyObject *_wrap_MenuBar_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
35139 PyObject *resultobj;
35140 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35141 size_t arg2 ;
35142 wxMenu *arg3 = (wxMenu *) 0 ;
35143 wxString *arg4 = 0 ;
35144 wxMenu *result;
35145 bool temp4 = false ;
35146 PyObject * obj0 = 0 ;
35147 PyObject * obj1 = 0 ;
35148 PyObject * obj2 = 0 ;
35149 PyObject * obj3 = 0 ;
35150 char *kwnames[] = {
35151 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
35152 };
35153
35154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
35155 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35156 if (SWIG_arg_fail(1)) SWIG_fail;
35157 {
35158 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
35159 if (SWIG_arg_fail(2)) SWIG_fail;
35160 }
35161 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
35162 if (SWIG_arg_fail(3)) SWIG_fail;
35163 {
35164 arg4 = wxString_in_helper(obj3);
35165 if (arg4 == NULL) SWIG_fail;
35166 temp4 = true;
35167 }
35168 {
35169 PyThreadState* __tstate = wxPyBeginAllowThreads();
35170 result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
35171
35172 wxPyEndAllowThreads(__tstate);
35173 if (PyErr_Occurred()) SWIG_fail;
35174 }
35175 {
35176 resultobj = wxPyMake_wxObject(result, 0);
35177 }
35178 {
35179 if (temp4)
35180 delete arg4;
35181 }
35182 return resultobj;
35183 fail:
35184 {
35185 if (temp4)
35186 delete arg4;
35187 }
35188 return NULL;
35189 }
35190
35191
35192 static PyObject *_wrap_MenuBar_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
35193 PyObject *resultobj;
35194 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35195 size_t arg2 ;
35196 wxMenu *result;
35197 PyObject * obj0 = 0 ;
35198 PyObject * obj1 = 0 ;
35199 char *kwnames[] = {
35200 (char *) "self",(char *) "pos", NULL
35201 };
35202
35203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail;
35204 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35205 if (SWIG_arg_fail(1)) SWIG_fail;
35206 {
35207 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
35208 if (SWIG_arg_fail(2)) SWIG_fail;
35209 }
35210 {
35211 PyThreadState* __tstate = wxPyBeginAllowThreads();
35212 result = (wxMenu *)(arg1)->Remove(arg2);
35213
35214 wxPyEndAllowThreads(__tstate);
35215 if (PyErr_Occurred()) SWIG_fail;
35216 }
35217 {
35218 resultobj = wxPyMake_wxObject(result, 0);
35219 }
35220 return resultobj;
35221 fail:
35222 return NULL;
35223 }
35224
35225
35226 static PyObject *_wrap_MenuBar_EnableTop(PyObject *, PyObject *args, PyObject *kwargs) {
35227 PyObject *resultobj;
35228 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35229 size_t arg2 ;
35230 bool arg3 ;
35231 PyObject * obj0 = 0 ;
35232 PyObject * obj1 = 0 ;
35233 PyObject * obj2 = 0 ;
35234 char *kwnames[] = {
35235 (char *) "self",(char *) "pos",(char *) "enable", NULL
35236 };
35237
35238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
35239 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35240 if (SWIG_arg_fail(1)) SWIG_fail;
35241 {
35242 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
35243 if (SWIG_arg_fail(2)) SWIG_fail;
35244 }
35245 {
35246 arg3 = (bool)(SWIG_As_bool(obj2));
35247 if (SWIG_arg_fail(3)) SWIG_fail;
35248 }
35249 {
35250 PyThreadState* __tstate = wxPyBeginAllowThreads();
35251 (arg1)->EnableTop(arg2,arg3);
35252
35253 wxPyEndAllowThreads(__tstate);
35254 if (PyErr_Occurred()) SWIG_fail;
35255 }
35256 Py_INCREF(Py_None); resultobj = Py_None;
35257 return resultobj;
35258 fail:
35259 return NULL;
35260 }
35261
35262
35263 static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *, PyObject *args, PyObject *kwargs) {
35264 PyObject *resultobj;
35265 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35266 size_t arg2 ;
35267 bool result;
35268 PyObject * obj0 = 0 ;
35269 PyObject * obj1 = 0 ;
35270 char *kwnames[] = {
35271 (char *) "self",(char *) "pos", NULL
35272 };
35273
35274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail;
35275 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35276 if (SWIG_arg_fail(1)) SWIG_fail;
35277 {
35278 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
35279 if (SWIG_arg_fail(2)) SWIG_fail;
35280 }
35281 {
35282 PyThreadState* __tstate = wxPyBeginAllowThreads();
35283 result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2);
35284
35285 wxPyEndAllowThreads(__tstate);
35286 if (PyErr_Occurred()) SWIG_fail;
35287 }
35288 {
35289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35290 }
35291 return resultobj;
35292 fail:
35293 return NULL;
35294 }
35295
35296
35297 static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) {
35298 PyObject *resultobj;
35299 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35300 size_t arg2 ;
35301 wxString *arg3 = 0 ;
35302 bool temp3 = false ;
35303 PyObject * obj0 = 0 ;
35304 PyObject * obj1 = 0 ;
35305 PyObject * obj2 = 0 ;
35306 char *kwnames[] = {
35307 (char *) "self",(char *) "pos",(char *) "label", NULL
35308 };
35309
35310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
35311 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35312 if (SWIG_arg_fail(1)) SWIG_fail;
35313 {
35314 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
35315 if (SWIG_arg_fail(2)) SWIG_fail;
35316 }
35317 {
35318 arg3 = wxString_in_helper(obj2);
35319 if (arg3 == NULL) SWIG_fail;
35320 temp3 = true;
35321 }
35322 {
35323 PyThreadState* __tstate = wxPyBeginAllowThreads();
35324 (arg1)->SetLabelTop(arg2,(wxString const &)*arg3);
35325
35326 wxPyEndAllowThreads(__tstate);
35327 if (PyErr_Occurred()) SWIG_fail;
35328 }
35329 Py_INCREF(Py_None); resultobj = Py_None;
35330 {
35331 if (temp3)
35332 delete arg3;
35333 }
35334 return resultobj;
35335 fail:
35336 {
35337 if (temp3)
35338 delete arg3;
35339 }
35340 return NULL;
35341 }
35342
35343
35344 static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) {
35345 PyObject *resultobj;
35346 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35347 size_t arg2 ;
35348 wxString result;
35349 PyObject * obj0 = 0 ;
35350 PyObject * obj1 = 0 ;
35351 char *kwnames[] = {
35352 (char *) "self",(char *) "pos", NULL
35353 };
35354
35355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail;
35356 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35357 if (SWIG_arg_fail(1)) SWIG_fail;
35358 {
35359 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
35360 if (SWIG_arg_fail(2)) SWIG_fail;
35361 }
35362 {
35363 PyThreadState* __tstate = wxPyBeginAllowThreads();
35364 result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2);
35365
35366 wxPyEndAllowThreads(__tstate);
35367 if (PyErr_Occurred()) SWIG_fail;
35368 }
35369 {
35370 #if wxUSE_UNICODE
35371 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
35372 #else
35373 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
35374 #endif
35375 }
35376 return resultobj;
35377 fail:
35378 return NULL;
35379 }
35380
35381
35382 static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *, PyObject *args, PyObject *kwargs) {
35383 PyObject *resultobj;
35384 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35385 wxString *arg2 = 0 ;
35386 wxString *arg3 = 0 ;
35387 int result;
35388 bool temp2 = false ;
35389 bool temp3 = false ;
35390 PyObject * obj0 = 0 ;
35391 PyObject * obj1 = 0 ;
35392 PyObject * obj2 = 0 ;
35393 char *kwnames[] = {
35394 (char *) "self",(char *) "menu",(char *) "item", NULL
35395 };
35396
35397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
35398 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35399 if (SWIG_arg_fail(1)) SWIG_fail;
35400 {
35401 arg2 = wxString_in_helper(obj1);
35402 if (arg2 == NULL) SWIG_fail;
35403 temp2 = true;
35404 }
35405 {
35406 arg3 = wxString_in_helper(obj2);
35407 if (arg3 == NULL) SWIG_fail;
35408 temp3 = true;
35409 }
35410 {
35411 PyThreadState* __tstate = wxPyBeginAllowThreads();
35412 result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3);
35413
35414 wxPyEndAllowThreads(__tstate);
35415 if (PyErr_Occurred()) SWIG_fail;
35416 }
35417 {
35418 resultobj = SWIG_From_int((int)(result));
35419 }
35420 {
35421 if (temp2)
35422 delete arg2;
35423 }
35424 {
35425 if (temp3)
35426 delete arg3;
35427 }
35428 return resultobj;
35429 fail:
35430 {
35431 if (temp2)
35432 delete arg2;
35433 }
35434 {
35435 if (temp3)
35436 delete arg3;
35437 }
35438 return NULL;
35439 }
35440
35441
35442 static PyObject *_wrap_MenuBar_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) {
35443 PyObject *resultobj;
35444 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35445 int arg2 ;
35446 wxMenuItem *result;
35447 PyObject * obj0 = 0 ;
35448 PyObject * obj1 = 0 ;
35449 char *kwnames[] = {
35450 (char *) "self",(char *) "id", NULL
35451 };
35452
35453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail;
35454 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35455 if (SWIG_arg_fail(1)) SWIG_fail;
35456 {
35457 arg2 = (int)(SWIG_As_int(obj1));
35458 if (SWIG_arg_fail(2)) SWIG_fail;
35459 }
35460 {
35461 PyThreadState* __tstate = wxPyBeginAllowThreads();
35462 result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2);
35463
35464 wxPyEndAllowThreads(__tstate);
35465 if (PyErr_Occurred()) SWIG_fail;
35466 }
35467 {
35468 resultobj = wxPyMake_wxObject(result, 0);
35469 }
35470 return resultobj;
35471 fail:
35472 return NULL;
35473 }
35474
35475
35476 static PyObject *_wrap_MenuBar_FindMenu(PyObject *, PyObject *args, PyObject *kwargs) {
35477 PyObject *resultobj;
35478 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35479 wxString *arg2 = 0 ;
35480 int result;
35481 bool temp2 = false ;
35482 PyObject * obj0 = 0 ;
35483 PyObject * obj1 = 0 ;
35484 char *kwnames[] = {
35485 (char *) "self",(char *) "title", NULL
35486 };
35487
35488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail;
35489 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35490 if (SWIG_arg_fail(1)) SWIG_fail;
35491 {
35492 arg2 = wxString_in_helper(obj1);
35493 if (arg2 == NULL) SWIG_fail;
35494 temp2 = true;
35495 }
35496 {
35497 PyThreadState* __tstate = wxPyBeginAllowThreads();
35498 result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2);
35499
35500 wxPyEndAllowThreads(__tstate);
35501 if (PyErr_Occurred()) SWIG_fail;
35502 }
35503 {
35504 resultobj = SWIG_From_int((int)(result));
35505 }
35506 {
35507 if (temp2)
35508 delete arg2;
35509 }
35510 return resultobj;
35511 fail:
35512 {
35513 if (temp2)
35514 delete arg2;
35515 }
35516 return NULL;
35517 }
35518
35519
35520 static PyObject *_wrap_MenuBar_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
35521 PyObject *resultobj;
35522 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35523 int arg2 ;
35524 bool arg3 ;
35525 PyObject * obj0 = 0 ;
35526 PyObject * obj1 = 0 ;
35527 PyObject * obj2 = 0 ;
35528 char *kwnames[] = {
35529 (char *) "self",(char *) "id",(char *) "enable", NULL
35530 };
35531
35532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
35533 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35534 if (SWIG_arg_fail(1)) SWIG_fail;
35535 {
35536 arg2 = (int)(SWIG_As_int(obj1));
35537 if (SWIG_arg_fail(2)) SWIG_fail;
35538 }
35539 {
35540 arg3 = (bool)(SWIG_As_bool(obj2));
35541 if (SWIG_arg_fail(3)) SWIG_fail;
35542 }
35543 {
35544 PyThreadState* __tstate = wxPyBeginAllowThreads();
35545 (arg1)->Enable(arg2,arg3);
35546
35547 wxPyEndAllowThreads(__tstate);
35548 if (PyErr_Occurred()) SWIG_fail;
35549 }
35550 Py_INCREF(Py_None); resultobj = Py_None;
35551 return resultobj;
35552 fail:
35553 return NULL;
35554 }
35555
35556
35557 static PyObject *_wrap_MenuBar_Check(PyObject *, PyObject *args, PyObject *kwargs) {
35558 PyObject *resultobj;
35559 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35560 int arg2 ;
35561 bool arg3 ;
35562 PyObject * obj0 = 0 ;
35563 PyObject * obj1 = 0 ;
35564 PyObject * obj2 = 0 ;
35565 char *kwnames[] = {
35566 (char *) "self",(char *) "id",(char *) "check", NULL
35567 };
35568
35569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
35570 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35571 if (SWIG_arg_fail(1)) SWIG_fail;
35572 {
35573 arg2 = (int)(SWIG_As_int(obj1));
35574 if (SWIG_arg_fail(2)) SWIG_fail;
35575 }
35576 {
35577 arg3 = (bool)(SWIG_As_bool(obj2));
35578 if (SWIG_arg_fail(3)) SWIG_fail;
35579 }
35580 {
35581 PyThreadState* __tstate = wxPyBeginAllowThreads();
35582 (arg1)->Check(arg2,arg3);
35583
35584 wxPyEndAllowThreads(__tstate);
35585 if (PyErr_Occurred()) SWIG_fail;
35586 }
35587 Py_INCREF(Py_None); resultobj = Py_None;
35588 return resultobj;
35589 fail:
35590 return NULL;
35591 }
35592
35593
35594 static PyObject *_wrap_MenuBar_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
35595 PyObject *resultobj;
35596 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35597 int arg2 ;
35598 bool result;
35599 PyObject * obj0 = 0 ;
35600 PyObject * obj1 = 0 ;
35601 char *kwnames[] = {
35602 (char *) "self",(char *) "id", NULL
35603 };
35604
35605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail;
35606 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35607 if (SWIG_arg_fail(1)) SWIG_fail;
35608 {
35609 arg2 = (int)(SWIG_As_int(obj1));
35610 if (SWIG_arg_fail(2)) SWIG_fail;
35611 }
35612 {
35613 PyThreadState* __tstate = wxPyBeginAllowThreads();
35614 result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2);
35615
35616 wxPyEndAllowThreads(__tstate);
35617 if (PyErr_Occurred()) SWIG_fail;
35618 }
35619 {
35620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35621 }
35622 return resultobj;
35623 fail:
35624 return NULL;
35625 }
35626
35627
35628 static PyObject *_wrap_MenuBar_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
35629 PyObject *resultobj;
35630 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35631 int arg2 ;
35632 bool result;
35633 PyObject * obj0 = 0 ;
35634 PyObject * obj1 = 0 ;
35635 char *kwnames[] = {
35636 (char *) "self",(char *) "id", NULL
35637 };
35638
35639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
35640 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35641 if (SWIG_arg_fail(1)) SWIG_fail;
35642 {
35643 arg2 = (int)(SWIG_As_int(obj1));
35644 if (SWIG_arg_fail(2)) SWIG_fail;
35645 }
35646 {
35647 PyThreadState* __tstate = wxPyBeginAllowThreads();
35648 result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2);
35649
35650 wxPyEndAllowThreads(__tstate);
35651 if (PyErr_Occurred()) SWIG_fail;
35652 }
35653 {
35654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35655 }
35656 return resultobj;
35657 fail:
35658 return NULL;
35659 }
35660
35661
35662 static PyObject *_wrap_MenuBar_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
35663 PyObject *resultobj;
35664 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35665 int arg2 ;
35666 wxString *arg3 = 0 ;
35667 bool temp3 = false ;
35668 PyObject * obj0 = 0 ;
35669 PyObject * obj1 = 0 ;
35670 PyObject * obj2 = 0 ;
35671 char *kwnames[] = {
35672 (char *) "self",(char *) "id",(char *) "label", NULL
35673 };
35674
35675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
35676 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35677 if (SWIG_arg_fail(1)) SWIG_fail;
35678 {
35679 arg2 = (int)(SWIG_As_int(obj1));
35680 if (SWIG_arg_fail(2)) SWIG_fail;
35681 }
35682 {
35683 arg3 = wxString_in_helper(obj2);
35684 if (arg3 == NULL) SWIG_fail;
35685 temp3 = true;
35686 }
35687 {
35688 PyThreadState* __tstate = wxPyBeginAllowThreads();
35689 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
35690
35691 wxPyEndAllowThreads(__tstate);
35692 if (PyErr_Occurred()) SWIG_fail;
35693 }
35694 Py_INCREF(Py_None); resultobj = Py_None;
35695 {
35696 if (temp3)
35697 delete arg3;
35698 }
35699 return resultobj;
35700 fail:
35701 {
35702 if (temp3)
35703 delete arg3;
35704 }
35705 return NULL;
35706 }
35707
35708
35709 static PyObject *_wrap_MenuBar_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
35710 PyObject *resultobj;
35711 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35712 int arg2 ;
35713 wxString result;
35714 PyObject * obj0 = 0 ;
35715 PyObject * obj1 = 0 ;
35716 char *kwnames[] = {
35717 (char *) "self",(char *) "id", NULL
35718 };
35719
35720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail;
35721 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35722 if (SWIG_arg_fail(1)) SWIG_fail;
35723 {
35724 arg2 = (int)(SWIG_As_int(obj1));
35725 if (SWIG_arg_fail(2)) SWIG_fail;
35726 }
35727 {
35728 PyThreadState* __tstate = wxPyBeginAllowThreads();
35729 result = ((wxMenuBar const *)arg1)->GetLabel(arg2);
35730
35731 wxPyEndAllowThreads(__tstate);
35732 if (PyErr_Occurred()) SWIG_fail;
35733 }
35734 {
35735 #if wxUSE_UNICODE
35736 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
35737 #else
35738 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
35739 #endif
35740 }
35741 return resultobj;
35742 fail:
35743 return NULL;
35744 }
35745
35746
35747 static PyObject *_wrap_MenuBar_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) {
35748 PyObject *resultobj;
35749 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35750 int arg2 ;
35751 wxString *arg3 = 0 ;
35752 bool temp3 = false ;
35753 PyObject * obj0 = 0 ;
35754 PyObject * obj1 = 0 ;
35755 PyObject * obj2 = 0 ;
35756 char *kwnames[] = {
35757 (char *) "self",(char *) "id",(char *) "helpString", NULL
35758 };
35759
35760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
35761 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35762 if (SWIG_arg_fail(1)) SWIG_fail;
35763 {
35764 arg2 = (int)(SWIG_As_int(obj1));
35765 if (SWIG_arg_fail(2)) SWIG_fail;
35766 }
35767 {
35768 arg3 = wxString_in_helper(obj2);
35769 if (arg3 == NULL) SWIG_fail;
35770 temp3 = true;
35771 }
35772 {
35773 PyThreadState* __tstate = wxPyBeginAllowThreads();
35774 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
35775
35776 wxPyEndAllowThreads(__tstate);
35777 if (PyErr_Occurred()) SWIG_fail;
35778 }
35779 Py_INCREF(Py_None); resultobj = Py_None;
35780 {
35781 if (temp3)
35782 delete arg3;
35783 }
35784 return resultobj;
35785 fail:
35786 {
35787 if (temp3)
35788 delete arg3;
35789 }
35790 return NULL;
35791 }
35792
35793
35794 static PyObject *_wrap_MenuBar_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) {
35795 PyObject *resultobj;
35796 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35797 int arg2 ;
35798 wxString result;
35799 PyObject * obj0 = 0 ;
35800 PyObject * obj1 = 0 ;
35801 char *kwnames[] = {
35802 (char *) "self",(char *) "id", NULL
35803 };
35804
35805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
35806 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35807 if (SWIG_arg_fail(1)) SWIG_fail;
35808 {
35809 arg2 = (int)(SWIG_As_int(obj1));
35810 if (SWIG_arg_fail(2)) SWIG_fail;
35811 }
35812 {
35813 PyThreadState* __tstate = wxPyBeginAllowThreads();
35814 result = ((wxMenuBar const *)arg1)->GetHelpString(arg2);
35815
35816 wxPyEndAllowThreads(__tstate);
35817 if (PyErr_Occurred()) SWIG_fail;
35818 }
35819 {
35820 #if wxUSE_UNICODE
35821 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
35822 #else
35823 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
35824 #endif
35825 }
35826 return resultobj;
35827 fail:
35828 return NULL;
35829 }
35830
35831
35832 static PyObject *_wrap_MenuBar_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
35833 PyObject *resultobj;
35834 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35835 wxFrame *result;
35836 PyObject * obj0 = 0 ;
35837 char *kwnames[] = {
35838 (char *) "self", NULL
35839 };
35840
35841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail;
35842 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35843 if (SWIG_arg_fail(1)) SWIG_fail;
35844 {
35845 PyThreadState* __tstate = wxPyBeginAllowThreads();
35846 result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame();
35847
35848 wxPyEndAllowThreads(__tstate);
35849 if (PyErr_Occurred()) SWIG_fail;
35850 }
35851 {
35852 resultobj = wxPyMake_wxObject(result, 0);
35853 }
35854 return resultobj;
35855 fail:
35856 return NULL;
35857 }
35858
35859
35860 static PyObject *_wrap_MenuBar_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) {
35861 PyObject *resultobj;
35862 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35863 bool result;
35864 PyObject * obj0 = 0 ;
35865 char *kwnames[] = {
35866 (char *) "self", NULL
35867 };
35868
35869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail;
35870 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35871 if (SWIG_arg_fail(1)) SWIG_fail;
35872 {
35873 PyThreadState* __tstate = wxPyBeginAllowThreads();
35874 result = (bool)((wxMenuBar const *)arg1)->IsAttached();
35875
35876 wxPyEndAllowThreads(__tstate);
35877 if (PyErr_Occurred()) SWIG_fail;
35878 }
35879 {
35880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35881 }
35882 return resultobj;
35883 fail:
35884 return NULL;
35885 }
35886
35887
35888 static PyObject *_wrap_MenuBar_Attach(PyObject *, PyObject *args, PyObject *kwargs) {
35889 PyObject *resultobj;
35890 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35891 wxFrame *arg2 = (wxFrame *) 0 ;
35892 PyObject * obj0 = 0 ;
35893 PyObject * obj1 = 0 ;
35894 char *kwnames[] = {
35895 (char *) "self",(char *) "frame", NULL
35896 };
35897
35898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail;
35899 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35900 if (SWIG_arg_fail(1)) SWIG_fail;
35901 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0);
35902 if (SWIG_arg_fail(2)) SWIG_fail;
35903 {
35904 PyThreadState* __tstate = wxPyBeginAllowThreads();
35905 (arg1)->Attach(arg2);
35906
35907 wxPyEndAllowThreads(__tstate);
35908 if (PyErr_Occurred()) SWIG_fail;
35909 }
35910 Py_INCREF(Py_None); resultobj = Py_None;
35911 return resultobj;
35912 fail:
35913 return NULL;
35914 }
35915
35916
35917 static PyObject *_wrap_MenuBar_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
35918 PyObject *resultobj;
35919 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
35920 PyObject * obj0 = 0 ;
35921 char *kwnames[] = {
35922 (char *) "self", NULL
35923 };
35924
35925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail;
35926 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuBar, SWIG_POINTER_EXCEPTION | 0);
35927 if (SWIG_arg_fail(1)) SWIG_fail;
35928 {
35929 PyThreadState* __tstate = wxPyBeginAllowThreads();
35930 (arg1)->Detach();
35931
35932 wxPyEndAllowThreads(__tstate);
35933 if (PyErr_Occurred()) SWIG_fail;
35934 }
35935 Py_INCREF(Py_None); resultobj = Py_None;
35936 return resultobj;
35937 fail:
35938 return NULL;
35939 }
35940
35941
35942 static PyObject * MenuBar_swigregister(PyObject *, PyObject *args) {
35943 PyObject *obj;
35944 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35945 SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj);
35946 Py_INCREF(obj);
35947 return Py_BuildValue((char *)"");
35948 }
35949 static PyObject *_wrap_new_MenuItem(PyObject *, PyObject *args, PyObject *kwargs) {
35950 PyObject *resultobj;
35951 wxMenu *arg1 = (wxMenu *) NULL ;
35952 int arg2 = (int) wxID_ANY ;
35953 wxString const &arg3_defvalue = wxPyEmptyString ;
35954 wxString *arg3 = (wxString *) &arg3_defvalue ;
35955 wxString const &arg4_defvalue = wxPyEmptyString ;
35956 wxString *arg4 = (wxString *) &arg4_defvalue ;
35957 wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ;
35958 wxMenu *arg6 = (wxMenu *) NULL ;
35959 wxMenuItem *result;
35960 bool temp3 = false ;
35961 bool temp4 = false ;
35962 PyObject * obj0 = 0 ;
35963 PyObject * obj1 = 0 ;
35964 PyObject * obj2 = 0 ;
35965 PyObject * obj3 = 0 ;
35966 PyObject * obj4 = 0 ;
35967 PyObject * obj5 = 0 ;
35968 char *kwnames[] = {
35969 (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL
35970 };
35971
35972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
35973 if (obj0) {
35974 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
35975 if (SWIG_arg_fail(1)) SWIG_fail;
35976 }
35977 if (obj1) {
35978 {
35979 arg2 = (int)(SWIG_As_int(obj1));
35980 if (SWIG_arg_fail(2)) SWIG_fail;
35981 }
35982 }
35983 if (obj2) {
35984 {
35985 arg3 = wxString_in_helper(obj2);
35986 if (arg3 == NULL) SWIG_fail;
35987 temp3 = true;
35988 }
35989 }
35990 if (obj3) {
35991 {
35992 arg4 = wxString_in_helper(obj3);
35993 if (arg4 == NULL) SWIG_fail;
35994 temp4 = true;
35995 }
35996 }
35997 if (obj4) {
35998 {
35999 arg5 = (wxItemKind)(SWIG_As_int(obj4));
36000 if (SWIG_arg_fail(5)) SWIG_fail;
36001 }
36002 }
36003 if (obj5) {
36004 SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
36005 if (SWIG_arg_fail(6)) SWIG_fail;
36006 }
36007 {
36008 PyThreadState* __tstate = wxPyBeginAllowThreads();
36009 result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6);
36010
36011 wxPyEndAllowThreads(__tstate);
36012 if (PyErr_Occurred()) SWIG_fail;
36013 }
36014 {
36015 resultobj = wxPyMake_wxObject(result, 1);
36016 }
36017 {
36018 if (temp3)
36019 delete arg3;
36020 }
36021 {
36022 if (temp4)
36023 delete arg4;
36024 }
36025 return resultobj;
36026 fail:
36027 {
36028 if (temp3)
36029 delete arg3;
36030 }
36031 {
36032 if (temp4)
36033 delete arg4;
36034 }
36035 return NULL;
36036 }
36037
36038
36039 static PyObject *_wrap_MenuItem_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) {
36040 PyObject *resultobj;
36041 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36042 wxMenu *result;
36043 PyObject * obj0 = 0 ;
36044 char *kwnames[] = {
36045 (char *) "self", NULL
36046 };
36047
36048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail;
36049 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36050 if (SWIG_arg_fail(1)) SWIG_fail;
36051 {
36052 PyThreadState* __tstate = wxPyBeginAllowThreads();
36053 result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu();
36054
36055 wxPyEndAllowThreads(__tstate);
36056 if (PyErr_Occurred()) SWIG_fail;
36057 }
36058 {
36059 resultobj = wxPyMake_wxObject(result, 0);
36060 }
36061 return resultobj;
36062 fail:
36063 return NULL;
36064 }
36065
36066
36067 static PyObject *_wrap_MenuItem_SetMenu(PyObject *, PyObject *args, PyObject *kwargs) {
36068 PyObject *resultobj;
36069 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36070 wxMenu *arg2 = (wxMenu *) 0 ;
36071 PyObject * obj0 = 0 ;
36072 PyObject * obj1 = 0 ;
36073 char *kwnames[] = {
36074 (char *) "self",(char *) "menu", NULL
36075 };
36076
36077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail;
36078 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36079 if (SWIG_arg_fail(1)) SWIG_fail;
36080 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
36081 if (SWIG_arg_fail(2)) SWIG_fail;
36082 {
36083 PyThreadState* __tstate = wxPyBeginAllowThreads();
36084 (arg1)->SetMenu(arg2);
36085
36086 wxPyEndAllowThreads(__tstate);
36087 if (PyErr_Occurred()) SWIG_fail;
36088 }
36089 Py_INCREF(Py_None); resultobj = Py_None;
36090 return resultobj;
36091 fail:
36092 return NULL;
36093 }
36094
36095
36096 static PyObject *_wrap_MenuItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
36097 PyObject *resultobj;
36098 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36099 int arg2 ;
36100 PyObject * obj0 = 0 ;
36101 PyObject * obj1 = 0 ;
36102 char *kwnames[] = {
36103 (char *) "self",(char *) "id", NULL
36104 };
36105
36106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail;
36107 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36108 if (SWIG_arg_fail(1)) SWIG_fail;
36109 {
36110 arg2 = (int)(SWIG_As_int(obj1));
36111 if (SWIG_arg_fail(2)) SWIG_fail;
36112 }
36113 {
36114 PyThreadState* __tstate = wxPyBeginAllowThreads();
36115 (arg1)->SetId(arg2);
36116
36117 wxPyEndAllowThreads(__tstate);
36118 if (PyErr_Occurred()) SWIG_fail;
36119 }
36120 Py_INCREF(Py_None); resultobj = Py_None;
36121 return resultobj;
36122 fail:
36123 return NULL;
36124 }
36125
36126
36127 static PyObject *_wrap_MenuItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
36128 PyObject *resultobj;
36129 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36130 int result;
36131 PyObject * obj0 = 0 ;
36132 char *kwnames[] = {
36133 (char *) "self", NULL
36134 };
36135
36136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail;
36137 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36138 if (SWIG_arg_fail(1)) SWIG_fail;
36139 {
36140 PyThreadState* __tstate = wxPyBeginAllowThreads();
36141 result = (int)((wxMenuItem const *)arg1)->GetId();
36142
36143 wxPyEndAllowThreads(__tstate);
36144 if (PyErr_Occurred()) SWIG_fail;
36145 }
36146 {
36147 resultobj = SWIG_From_int((int)(result));
36148 }
36149 return resultobj;
36150 fail:
36151 return NULL;
36152 }
36153
36154
36155 static PyObject *_wrap_MenuItem_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
36156 PyObject *resultobj;
36157 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36158 bool result;
36159 PyObject * obj0 = 0 ;
36160 char *kwnames[] = {
36161 (char *) "self", NULL
36162 };
36163
36164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail;
36165 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36166 if (SWIG_arg_fail(1)) SWIG_fail;
36167 {
36168 PyThreadState* __tstate = wxPyBeginAllowThreads();
36169 result = (bool)((wxMenuItem const *)arg1)->IsSeparator();
36170
36171 wxPyEndAllowThreads(__tstate);
36172 if (PyErr_Occurred()) SWIG_fail;
36173 }
36174 {
36175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36176 }
36177 return resultobj;
36178 fail:
36179 return NULL;
36180 }
36181
36182
36183 static PyObject *_wrap_MenuItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
36184 PyObject *resultobj;
36185 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36186 wxString *arg2 = 0 ;
36187 bool temp2 = false ;
36188 PyObject * obj0 = 0 ;
36189 PyObject * obj1 = 0 ;
36190 char *kwnames[] = {
36191 (char *) "self",(char *) "str", NULL
36192 };
36193
36194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail;
36195 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36196 if (SWIG_arg_fail(1)) SWIG_fail;
36197 {
36198 arg2 = wxString_in_helper(obj1);
36199 if (arg2 == NULL) SWIG_fail;
36200 temp2 = true;
36201 }
36202 {
36203 PyThreadState* __tstate = wxPyBeginAllowThreads();
36204 (arg1)->SetText((wxString const &)*arg2);
36205
36206 wxPyEndAllowThreads(__tstate);
36207 if (PyErr_Occurred()) SWIG_fail;
36208 }
36209 Py_INCREF(Py_None); resultobj = Py_None;
36210 {
36211 if (temp2)
36212 delete arg2;
36213 }
36214 return resultobj;
36215 fail:
36216 {
36217 if (temp2)
36218 delete arg2;
36219 }
36220 return NULL;
36221 }
36222
36223
36224 static PyObject *_wrap_MenuItem_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
36225 PyObject *resultobj;
36226 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36227 wxString result;
36228 PyObject * obj0 = 0 ;
36229 char *kwnames[] = {
36230 (char *) "self", NULL
36231 };
36232
36233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail;
36234 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36235 if (SWIG_arg_fail(1)) SWIG_fail;
36236 {
36237 PyThreadState* __tstate = wxPyBeginAllowThreads();
36238 result = ((wxMenuItem const *)arg1)->GetLabel();
36239
36240 wxPyEndAllowThreads(__tstate);
36241 if (PyErr_Occurred()) SWIG_fail;
36242 }
36243 {
36244 #if wxUSE_UNICODE
36245 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36246 #else
36247 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36248 #endif
36249 }
36250 return resultobj;
36251 fail:
36252 return NULL;
36253 }
36254
36255
36256 static PyObject *_wrap_MenuItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
36257 PyObject *resultobj;
36258 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36259 wxString *result;
36260 PyObject * obj0 = 0 ;
36261 char *kwnames[] = {
36262 (char *) "self", NULL
36263 };
36264
36265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail;
36266 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36267 if (SWIG_arg_fail(1)) SWIG_fail;
36268 {
36269 PyThreadState* __tstate = wxPyBeginAllowThreads();
36270 {
36271 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText();
36272 result = (wxString *) &_result_ref;
36273 }
36274
36275 wxPyEndAllowThreads(__tstate);
36276 if (PyErr_Occurred()) SWIG_fail;
36277 }
36278 {
36279 #if wxUSE_UNICODE
36280 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
36281 #else
36282 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
36283 #endif
36284 }
36285 return resultobj;
36286 fail:
36287 return NULL;
36288 }
36289
36290
36291 static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *, PyObject *args, PyObject *kwargs) {
36292 PyObject *resultobj;
36293 wxString *arg1 = 0 ;
36294 wxString result;
36295 bool temp1 = false ;
36296 PyObject * obj0 = 0 ;
36297 char *kwnames[] = {
36298 (char *) "text", NULL
36299 };
36300
36301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail;
36302 {
36303 arg1 = wxString_in_helper(obj0);
36304 if (arg1 == NULL) SWIG_fail;
36305 temp1 = true;
36306 }
36307 {
36308 PyThreadState* __tstate = wxPyBeginAllowThreads();
36309 result = wxMenuItem::GetLabelFromText((wxString const &)*arg1);
36310
36311 wxPyEndAllowThreads(__tstate);
36312 if (PyErr_Occurred()) SWIG_fail;
36313 }
36314 {
36315 #if wxUSE_UNICODE
36316 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36317 #else
36318 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36319 #endif
36320 }
36321 {
36322 if (temp1)
36323 delete arg1;
36324 }
36325 return resultobj;
36326 fail:
36327 {
36328 if (temp1)
36329 delete arg1;
36330 }
36331 return NULL;
36332 }
36333
36334
36335 static PyObject *_wrap_MenuItem_GetKind(PyObject *, PyObject *args, PyObject *kwargs) {
36336 PyObject *resultobj;
36337 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36338 wxItemKind result;
36339 PyObject * obj0 = 0 ;
36340 char *kwnames[] = {
36341 (char *) "self", NULL
36342 };
36343
36344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail;
36345 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36346 if (SWIG_arg_fail(1)) SWIG_fail;
36347 {
36348 PyThreadState* __tstate = wxPyBeginAllowThreads();
36349 result = (wxItemKind)((wxMenuItem const *)arg1)->GetKind();
36350
36351 wxPyEndAllowThreads(__tstate);
36352 if (PyErr_Occurred()) SWIG_fail;
36353 }
36354 resultobj = SWIG_From_int((result));
36355 return resultobj;
36356 fail:
36357 return NULL;
36358 }
36359
36360
36361 static PyObject *_wrap_MenuItem_SetKind(PyObject *, PyObject *args, PyObject *kwargs) {
36362 PyObject *resultobj;
36363 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36364 wxItemKind arg2 ;
36365 PyObject * obj0 = 0 ;
36366 PyObject * obj1 = 0 ;
36367 char *kwnames[] = {
36368 (char *) "self",(char *) "kind", NULL
36369 };
36370
36371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail;
36372 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36373 if (SWIG_arg_fail(1)) SWIG_fail;
36374 {
36375 arg2 = (wxItemKind)(SWIG_As_int(obj1));
36376 if (SWIG_arg_fail(2)) SWIG_fail;
36377 }
36378 {
36379 PyThreadState* __tstate = wxPyBeginAllowThreads();
36380 (arg1)->SetKind((wxItemKind )arg2);
36381
36382 wxPyEndAllowThreads(__tstate);
36383 if (PyErr_Occurred()) SWIG_fail;
36384 }
36385 Py_INCREF(Py_None); resultobj = Py_None;
36386 return resultobj;
36387 fail:
36388 return NULL;
36389 }
36390
36391
36392 static PyObject *_wrap_MenuItem_SetCheckable(PyObject *, PyObject *args, PyObject *kwargs) {
36393 PyObject *resultobj;
36394 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36395 bool arg2 ;
36396 PyObject * obj0 = 0 ;
36397 PyObject * obj1 = 0 ;
36398 char *kwnames[] = {
36399 (char *) "self",(char *) "checkable", NULL
36400 };
36401
36402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail;
36403 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36404 if (SWIG_arg_fail(1)) SWIG_fail;
36405 {
36406 arg2 = (bool)(SWIG_As_bool(obj1));
36407 if (SWIG_arg_fail(2)) SWIG_fail;
36408 }
36409 {
36410 PyThreadState* __tstate = wxPyBeginAllowThreads();
36411 (arg1)->SetCheckable(arg2);
36412
36413 wxPyEndAllowThreads(__tstate);
36414 if (PyErr_Occurred()) SWIG_fail;
36415 }
36416 Py_INCREF(Py_None); resultobj = Py_None;
36417 return resultobj;
36418 fail:
36419 return NULL;
36420 }
36421
36422
36423 static PyObject *_wrap_MenuItem_IsCheckable(PyObject *, PyObject *args, PyObject *kwargs) {
36424 PyObject *resultobj;
36425 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36426 bool result;
36427 PyObject * obj0 = 0 ;
36428 char *kwnames[] = {
36429 (char *) "self", NULL
36430 };
36431
36432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail;
36433 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36434 if (SWIG_arg_fail(1)) SWIG_fail;
36435 {
36436 PyThreadState* __tstate = wxPyBeginAllowThreads();
36437 result = (bool)((wxMenuItem const *)arg1)->IsCheckable();
36438
36439 wxPyEndAllowThreads(__tstate);
36440 if (PyErr_Occurred()) SWIG_fail;
36441 }
36442 {
36443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36444 }
36445 return resultobj;
36446 fail:
36447 return NULL;
36448 }
36449
36450
36451 static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *, PyObject *args, PyObject *kwargs) {
36452 PyObject *resultobj;
36453 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36454 bool result;
36455 PyObject * obj0 = 0 ;
36456 char *kwnames[] = {
36457 (char *) "self", NULL
36458 };
36459
36460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail;
36461 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36462 if (SWIG_arg_fail(1)) SWIG_fail;
36463 {
36464 PyThreadState* __tstate = wxPyBeginAllowThreads();
36465 result = (bool)((wxMenuItem const *)arg1)->IsSubMenu();
36466
36467 wxPyEndAllowThreads(__tstate);
36468 if (PyErr_Occurred()) SWIG_fail;
36469 }
36470 {
36471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36472 }
36473 return resultobj;
36474 fail:
36475 return NULL;
36476 }
36477
36478
36479 static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) {
36480 PyObject *resultobj;
36481 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36482 wxMenu *arg2 = (wxMenu *) 0 ;
36483 PyObject * obj0 = 0 ;
36484 PyObject * obj1 = 0 ;
36485 char *kwnames[] = {
36486 (char *) "self",(char *) "menu", NULL
36487 };
36488
36489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail;
36490 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36491 if (SWIG_arg_fail(1)) SWIG_fail;
36492 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMenu, SWIG_POINTER_EXCEPTION | 0);
36493 if (SWIG_arg_fail(2)) SWIG_fail;
36494 {
36495 PyThreadState* __tstate = wxPyBeginAllowThreads();
36496 (arg1)->SetSubMenu(arg2);
36497
36498 wxPyEndAllowThreads(__tstate);
36499 if (PyErr_Occurred()) SWIG_fail;
36500 }
36501 Py_INCREF(Py_None); resultobj = Py_None;
36502 return resultobj;
36503 fail:
36504 return NULL;
36505 }
36506
36507
36508 static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) {
36509 PyObject *resultobj;
36510 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36511 wxMenu *result;
36512 PyObject * obj0 = 0 ;
36513 char *kwnames[] = {
36514 (char *) "self", NULL
36515 };
36516
36517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail;
36518 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36519 if (SWIG_arg_fail(1)) SWIG_fail;
36520 {
36521 PyThreadState* __tstate = wxPyBeginAllowThreads();
36522 result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu();
36523
36524 wxPyEndAllowThreads(__tstate);
36525 if (PyErr_Occurred()) SWIG_fail;
36526 }
36527 {
36528 resultobj = wxPyMake_wxObject(result, 0);
36529 }
36530 return resultobj;
36531 fail:
36532 return NULL;
36533 }
36534
36535
36536 static PyObject *_wrap_MenuItem_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
36537 PyObject *resultobj;
36538 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36539 bool arg2 = (bool) true ;
36540 PyObject * obj0 = 0 ;
36541 PyObject * obj1 = 0 ;
36542 char *kwnames[] = {
36543 (char *) "self",(char *) "enable", NULL
36544 };
36545
36546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail;
36547 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36548 if (SWIG_arg_fail(1)) SWIG_fail;
36549 if (obj1) {
36550 {
36551 arg2 = (bool)(SWIG_As_bool(obj1));
36552 if (SWIG_arg_fail(2)) SWIG_fail;
36553 }
36554 }
36555 {
36556 PyThreadState* __tstate = wxPyBeginAllowThreads();
36557 (arg1)->Enable(arg2);
36558
36559 wxPyEndAllowThreads(__tstate);
36560 if (PyErr_Occurred()) SWIG_fail;
36561 }
36562 Py_INCREF(Py_None); resultobj = Py_None;
36563 return resultobj;
36564 fail:
36565 return NULL;
36566 }
36567
36568
36569 static PyObject *_wrap_MenuItem_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
36570 PyObject *resultobj;
36571 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36572 bool result;
36573 PyObject * obj0 = 0 ;
36574 char *kwnames[] = {
36575 (char *) "self", NULL
36576 };
36577
36578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail;
36579 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36580 if (SWIG_arg_fail(1)) SWIG_fail;
36581 {
36582 PyThreadState* __tstate = wxPyBeginAllowThreads();
36583 result = (bool)((wxMenuItem const *)arg1)->IsEnabled();
36584
36585 wxPyEndAllowThreads(__tstate);
36586 if (PyErr_Occurred()) SWIG_fail;
36587 }
36588 {
36589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36590 }
36591 return resultobj;
36592 fail:
36593 return NULL;
36594 }
36595
36596
36597 static PyObject *_wrap_MenuItem_Check(PyObject *, PyObject *args, PyObject *kwargs) {
36598 PyObject *resultobj;
36599 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36600 bool arg2 = (bool) true ;
36601 PyObject * obj0 = 0 ;
36602 PyObject * obj1 = 0 ;
36603 char *kwnames[] = {
36604 (char *) "self",(char *) "check", NULL
36605 };
36606
36607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail;
36608 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36609 if (SWIG_arg_fail(1)) SWIG_fail;
36610 if (obj1) {
36611 {
36612 arg2 = (bool)(SWIG_As_bool(obj1));
36613 if (SWIG_arg_fail(2)) SWIG_fail;
36614 }
36615 }
36616 {
36617 PyThreadState* __tstate = wxPyBeginAllowThreads();
36618 (arg1)->Check(arg2);
36619
36620 wxPyEndAllowThreads(__tstate);
36621 if (PyErr_Occurred()) SWIG_fail;
36622 }
36623 Py_INCREF(Py_None); resultobj = Py_None;
36624 return resultobj;
36625 fail:
36626 return NULL;
36627 }
36628
36629
36630 static PyObject *_wrap_MenuItem_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
36631 PyObject *resultobj;
36632 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36633 bool result;
36634 PyObject * obj0 = 0 ;
36635 char *kwnames[] = {
36636 (char *) "self", NULL
36637 };
36638
36639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail;
36640 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36641 if (SWIG_arg_fail(1)) SWIG_fail;
36642 {
36643 PyThreadState* __tstate = wxPyBeginAllowThreads();
36644 result = (bool)((wxMenuItem const *)arg1)->IsChecked();
36645
36646 wxPyEndAllowThreads(__tstate);
36647 if (PyErr_Occurred()) SWIG_fail;
36648 }
36649 {
36650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36651 }
36652 return resultobj;
36653 fail:
36654 return NULL;
36655 }
36656
36657
36658 static PyObject *_wrap_MenuItem_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
36659 PyObject *resultobj;
36660 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36661 PyObject * obj0 = 0 ;
36662 char *kwnames[] = {
36663 (char *) "self", NULL
36664 };
36665
36666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail;
36667 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36668 if (SWIG_arg_fail(1)) SWIG_fail;
36669 {
36670 PyThreadState* __tstate = wxPyBeginAllowThreads();
36671 (arg1)->Toggle();
36672
36673 wxPyEndAllowThreads(__tstate);
36674 if (PyErr_Occurred()) SWIG_fail;
36675 }
36676 Py_INCREF(Py_None); resultobj = Py_None;
36677 return resultobj;
36678 fail:
36679 return NULL;
36680 }
36681
36682
36683 static PyObject *_wrap_MenuItem_SetHelp(PyObject *, PyObject *args, PyObject *kwargs) {
36684 PyObject *resultobj;
36685 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36686 wxString *arg2 = 0 ;
36687 bool temp2 = false ;
36688 PyObject * obj0 = 0 ;
36689 PyObject * obj1 = 0 ;
36690 char *kwnames[] = {
36691 (char *) "self",(char *) "str", NULL
36692 };
36693
36694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail;
36695 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36696 if (SWIG_arg_fail(1)) SWIG_fail;
36697 {
36698 arg2 = wxString_in_helper(obj1);
36699 if (arg2 == NULL) SWIG_fail;
36700 temp2 = true;
36701 }
36702 {
36703 PyThreadState* __tstate = wxPyBeginAllowThreads();
36704 (arg1)->SetHelp((wxString const &)*arg2);
36705
36706 wxPyEndAllowThreads(__tstate);
36707 if (PyErr_Occurred()) SWIG_fail;
36708 }
36709 Py_INCREF(Py_None); resultobj = Py_None;
36710 {
36711 if (temp2)
36712 delete arg2;
36713 }
36714 return resultobj;
36715 fail:
36716 {
36717 if (temp2)
36718 delete arg2;
36719 }
36720 return NULL;
36721 }
36722
36723
36724 static PyObject *_wrap_MenuItem_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) {
36725 PyObject *resultobj;
36726 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36727 wxString *result;
36728 PyObject * obj0 = 0 ;
36729 char *kwnames[] = {
36730 (char *) "self", NULL
36731 };
36732
36733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail;
36734 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36735 if (SWIG_arg_fail(1)) SWIG_fail;
36736 {
36737 PyThreadState* __tstate = wxPyBeginAllowThreads();
36738 {
36739 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp();
36740 result = (wxString *) &_result_ref;
36741 }
36742
36743 wxPyEndAllowThreads(__tstate);
36744 if (PyErr_Occurred()) SWIG_fail;
36745 }
36746 {
36747 #if wxUSE_UNICODE
36748 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
36749 #else
36750 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
36751 #endif
36752 }
36753 return resultobj;
36754 fail:
36755 return NULL;
36756 }
36757
36758
36759 static PyObject *_wrap_MenuItem_GetAccel(PyObject *, PyObject *args, PyObject *kwargs) {
36760 PyObject *resultobj;
36761 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36762 wxAcceleratorEntry *result;
36763 PyObject * obj0 = 0 ;
36764 char *kwnames[] = {
36765 (char *) "self", NULL
36766 };
36767
36768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail;
36769 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36770 if (SWIG_arg_fail(1)) SWIG_fail;
36771 {
36772 PyThreadState* __tstate = wxPyBeginAllowThreads();
36773 result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel();
36774
36775 wxPyEndAllowThreads(__tstate);
36776 if (PyErr_Occurred()) SWIG_fail;
36777 }
36778 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0);
36779 return resultobj;
36780 fail:
36781 return NULL;
36782 }
36783
36784
36785 static PyObject *_wrap_MenuItem_SetAccel(PyObject *, PyObject *args, PyObject *kwargs) {
36786 PyObject *resultobj;
36787 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36788 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
36789 PyObject * obj0 = 0 ;
36790 PyObject * obj1 = 0 ;
36791 char *kwnames[] = {
36792 (char *) "self",(char *) "accel", NULL
36793 };
36794
36795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail;
36796 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36797 if (SWIG_arg_fail(1)) SWIG_fail;
36798 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_EXCEPTION | 0);
36799 if (SWIG_arg_fail(2)) SWIG_fail;
36800 {
36801 PyThreadState* __tstate = wxPyBeginAllowThreads();
36802 (arg1)->SetAccel(arg2);
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
36814 static PyObject *_wrap_MenuItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
36815 PyObject *resultobj;
36816 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36817 wxFont *arg2 = 0 ;
36818 PyObject * obj0 = 0 ;
36819 PyObject * obj1 = 0 ;
36820 char *kwnames[] = {
36821 (char *) "self",(char *) "font", NULL
36822 };
36823
36824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
36825 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36826 if (SWIG_arg_fail(1)) SWIG_fail;
36827 {
36828 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
36829 if (SWIG_arg_fail(2)) SWIG_fail;
36830 if (arg2 == NULL) {
36831 SWIG_null_ref("wxFont");
36832 }
36833 if (SWIG_arg_fail(2)) SWIG_fail;
36834 }
36835 {
36836 PyThreadState* __tstate = wxPyBeginAllowThreads();
36837 (arg1)->SetFont((wxFont const &)*arg2);
36838
36839 wxPyEndAllowThreads(__tstate);
36840 if (PyErr_Occurred()) SWIG_fail;
36841 }
36842 Py_INCREF(Py_None); resultobj = Py_None;
36843 return resultobj;
36844 fail:
36845 return NULL;
36846 }
36847
36848
36849 static PyObject *_wrap_MenuItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
36850 PyObject *resultobj;
36851 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36852 wxFont result;
36853 PyObject * obj0 = 0 ;
36854 char *kwnames[] = {
36855 (char *) "self", NULL
36856 };
36857
36858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail;
36859 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36860 if (SWIG_arg_fail(1)) SWIG_fail;
36861 {
36862 PyThreadState* __tstate = wxPyBeginAllowThreads();
36863 result = (arg1)->GetFont();
36864
36865 wxPyEndAllowThreads(__tstate);
36866 if (PyErr_Occurred()) SWIG_fail;
36867 }
36868 {
36869 wxFont * resultptr;
36870 resultptr = new wxFont((wxFont &)(result));
36871 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
36872 }
36873 return resultobj;
36874 fail:
36875 return NULL;
36876 }
36877
36878
36879 static PyObject *_wrap_MenuItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
36880 PyObject *resultobj;
36881 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36882 wxColour *arg2 = 0 ;
36883 wxColour temp2 ;
36884 PyObject * obj0 = 0 ;
36885 PyObject * obj1 = 0 ;
36886 char *kwnames[] = {
36887 (char *) "self",(char *) "colText", NULL
36888 };
36889
36890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
36891 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36892 if (SWIG_arg_fail(1)) SWIG_fail;
36893 {
36894 arg2 = &temp2;
36895 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
36896 }
36897 {
36898 PyThreadState* __tstate = wxPyBeginAllowThreads();
36899 (arg1)->SetTextColour((wxColour const &)*arg2);
36900
36901 wxPyEndAllowThreads(__tstate);
36902 if (PyErr_Occurred()) SWIG_fail;
36903 }
36904 Py_INCREF(Py_None); resultobj = Py_None;
36905 return resultobj;
36906 fail:
36907 return NULL;
36908 }
36909
36910
36911 static PyObject *_wrap_MenuItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
36912 PyObject *resultobj;
36913 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36914 wxColour result;
36915 PyObject * obj0 = 0 ;
36916 char *kwnames[] = {
36917 (char *) "self", NULL
36918 };
36919
36920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail;
36921 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36922 if (SWIG_arg_fail(1)) SWIG_fail;
36923 {
36924 PyThreadState* __tstate = wxPyBeginAllowThreads();
36925 result = (arg1)->GetTextColour();
36926
36927 wxPyEndAllowThreads(__tstate);
36928 if (PyErr_Occurred()) SWIG_fail;
36929 }
36930 {
36931 wxColour * resultptr;
36932 resultptr = new wxColour((wxColour &)(result));
36933 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
36934 }
36935 return resultobj;
36936 fail:
36937 return NULL;
36938 }
36939
36940
36941 static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
36942 PyObject *resultobj;
36943 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36944 wxColour *arg2 = 0 ;
36945 wxColour temp2 ;
36946 PyObject * obj0 = 0 ;
36947 PyObject * obj1 = 0 ;
36948 char *kwnames[] = {
36949 (char *) "self",(char *) "colBack", NULL
36950 };
36951
36952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
36953 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36954 if (SWIG_arg_fail(1)) SWIG_fail;
36955 {
36956 arg2 = &temp2;
36957 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
36958 }
36959 {
36960 PyThreadState* __tstate = wxPyBeginAllowThreads();
36961 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
36962
36963 wxPyEndAllowThreads(__tstate);
36964 if (PyErr_Occurred()) SWIG_fail;
36965 }
36966 Py_INCREF(Py_None); resultobj = Py_None;
36967 return resultobj;
36968 fail:
36969 return NULL;
36970 }
36971
36972
36973 static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
36974 PyObject *resultobj;
36975 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
36976 wxColour result;
36977 PyObject * obj0 = 0 ;
36978 char *kwnames[] = {
36979 (char *) "self", NULL
36980 };
36981
36982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
36983 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
36984 if (SWIG_arg_fail(1)) SWIG_fail;
36985 {
36986 PyThreadState* __tstate = wxPyBeginAllowThreads();
36987 result = (arg1)->GetBackgroundColour();
36988
36989 wxPyEndAllowThreads(__tstate);
36990 if (PyErr_Occurred()) SWIG_fail;
36991 }
36992 {
36993 wxColour * resultptr;
36994 resultptr = new wxColour((wxColour &)(result));
36995 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
36996 }
36997 return resultobj;
36998 fail:
36999 return NULL;
37000 }
37001
37002
37003 static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *, PyObject *args, PyObject *kwargs) {
37004 PyObject *resultobj;
37005 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
37006 wxBitmap *arg2 = 0 ;
37007 wxBitmap const &arg3_defvalue = wxNullBitmap ;
37008 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
37009 PyObject * obj0 = 0 ;
37010 PyObject * obj1 = 0 ;
37011 PyObject * obj2 = 0 ;
37012 char *kwnames[] = {
37013 (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL
37014 };
37015
37016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail;
37017 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
37018 if (SWIG_arg_fail(1)) SWIG_fail;
37019 {
37020 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
37021 if (SWIG_arg_fail(2)) SWIG_fail;
37022 if (arg2 == NULL) {
37023 SWIG_null_ref("wxBitmap");
37024 }
37025 if (SWIG_arg_fail(2)) SWIG_fail;
37026 }
37027 if (obj2) {
37028 {
37029 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
37030 if (SWIG_arg_fail(3)) SWIG_fail;
37031 if (arg3 == NULL) {
37032 SWIG_null_ref("wxBitmap");
37033 }
37034 if (SWIG_arg_fail(3)) SWIG_fail;
37035 }
37036 }
37037 {
37038 PyThreadState* __tstate = wxPyBeginAllowThreads();
37039 (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
37040
37041 wxPyEndAllowThreads(__tstate);
37042 if (PyErr_Occurred()) SWIG_fail;
37043 }
37044 Py_INCREF(Py_None); resultobj = Py_None;
37045 return resultobj;
37046 fail:
37047 return NULL;
37048 }
37049
37050
37051 static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
37052 PyObject *resultobj;
37053 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
37054 wxBitmap *arg2 = 0 ;
37055 PyObject * obj0 = 0 ;
37056 PyObject * obj1 = 0 ;
37057 char *kwnames[] = {
37058 (char *) "self",(char *) "bmpDisabled", NULL
37059 };
37060
37061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
37062 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
37063 if (SWIG_arg_fail(1)) SWIG_fail;
37064 {
37065 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
37066 if (SWIG_arg_fail(2)) SWIG_fail;
37067 if (arg2 == NULL) {
37068 SWIG_null_ref("wxBitmap");
37069 }
37070 if (SWIG_arg_fail(2)) SWIG_fail;
37071 }
37072 {
37073 PyThreadState* __tstate = wxPyBeginAllowThreads();
37074 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
37075
37076 wxPyEndAllowThreads(__tstate);
37077 if (PyErr_Occurred()) SWIG_fail;
37078 }
37079 Py_INCREF(Py_None); resultobj = Py_None;
37080 return resultobj;
37081 fail:
37082 return NULL;
37083 }
37084
37085
37086 static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
37087 PyObject *resultobj;
37088 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
37089 wxBitmap *result;
37090 PyObject * obj0 = 0 ;
37091 char *kwnames[] = {
37092 (char *) "self", NULL
37093 };
37094
37095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail;
37096 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
37097 if (SWIG_arg_fail(1)) SWIG_fail;
37098 {
37099 PyThreadState* __tstate = wxPyBeginAllowThreads();
37100 {
37101 wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap();
37102 result = (wxBitmap *) &_result_ref;
37103 }
37104
37105 wxPyEndAllowThreads(__tstate);
37106 if (PyErr_Occurred()) SWIG_fail;
37107 }
37108 {
37109 wxBitmap* resultptr = new wxBitmap(*result);
37110 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
37111 }
37112 return resultobj;
37113 fail:
37114 return NULL;
37115 }
37116
37117
37118 static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) {
37119 PyObject *resultobj;
37120 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
37121 int arg2 ;
37122 PyObject * obj0 = 0 ;
37123 PyObject * obj1 = 0 ;
37124 char *kwnames[] = {
37125 (char *) "self",(char *) "nWidth", NULL
37126 };
37127
37128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail;
37129 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
37130 if (SWIG_arg_fail(1)) SWIG_fail;
37131 {
37132 arg2 = (int)(SWIG_As_int(obj1));
37133 if (SWIG_arg_fail(2)) SWIG_fail;
37134 }
37135 {
37136 PyThreadState* __tstate = wxPyBeginAllowThreads();
37137 (arg1)->SetMarginWidth(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
37149 static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) {
37150 PyObject *resultobj;
37151 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
37152 int result;
37153 PyObject * obj0 = 0 ;
37154 char *kwnames[] = {
37155 (char *) "self", NULL
37156 };
37157
37158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail;
37159 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
37160 if (SWIG_arg_fail(1)) SWIG_fail;
37161 {
37162 PyThreadState* __tstate = wxPyBeginAllowThreads();
37163 result = (int)(arg1)->GetMarginWidth();
37164
37165 wxPyEndAllowThreads(__tstate);
37166 if (PyErr_Occurred()) SWIG_fail;
37167 }
37168 {
37169 resultobj = SWIG_From_int((int)(result));
37170 }
37171 return resultobj;
37172 fail:
37173 return NULL;
37174 }
37175
37176
37177 static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) {
37178 PyObject *resultobj;
37179 int result;
37180 char *kwnames[] = {
37181 NULL
37182 };
37183
37184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail;
37185 {
37186 PyThreadState* __tstate = wxPyBeginAllowThreads();
37187 result = (int)wxMenuItem::GetDefaultMarginWidth();
37188
37189 wxPyEndAllowThreads(__tstate);
37190 if (PyErr_Occurred()) SWIG_fail;
37191 }
37192 {
37193 resultobj = SWIG_From_int((int)(result));
37194 }
37195 return resultobj;
37196 fail:
37197 return NULL;
37198 }
37199
37200
37201 static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) {
37202 PyObject *resultobj;
37203 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
37204 bool result;
37205 PyObject * obj0 = 0 ;
37206 char *kwnames[] = {
37207 (char *) "self", NULL
37208 };
37209
37210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail;
37211 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
37212 if (SWIG_arg_fail(1)) SWIG_fail;
37213 {
37214 PyThreadState* __tstate = wxPyBeginAllowThreads();
37215 result = (bool)(arg1)->IsOwnerDrawn();
37216
37217 wxPyEndAllowThreads(__tstate);
37218 if (PyErr_Occurred()) SWIG_fail;
37219 }
37220 {
37221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37222 }
37223 return resultobj;
37224 fail:
37225 return NULL;
37226 }
37227
37228
37229 static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) {
37230 PyObject *resultobj;
37231 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
37232 bool arg2 = (bool) true ;
37233 PyObject * obj0 = 0 ;
37234 PyObject * obj1 = 0 ;
37235 char *kwnames[] = {
37236 (char *) "self",(char *) "ownerDrawn", NULL
37237 };
37238
37239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail;
37240 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
37241 if (SWIG_arg_fail(1)) SWIG_fail;
37242 if (obj1) {
37243 {
37244 arg2 = (bool)(SWIG_As_bool(obj1));
37245 if (SWIG_arg_fail(2)) SWIG_fail;
37246 }
37247 }
37248 {
37249 PyThreadState* __tstate = wxPyBeginAllowThreads();
37250 (arg1)->SetOwnerDrawn(arg2);
37251
37252 wxPyEndAllowThreads(__tstate);
37253 if (PyErr_Occurred()) SWIG_fail;
37254 }
37255 Py_INCREF(Py_None); resultobj = Py_None;
37256 return resultobj;
37257 fail:
37258 return NULL;
37259 }
37260
37261
37262 static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) {
37263 PyObject *resultobj;
37264 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
37265 PyObject * obj0 = 0 ;
37266 char *kwnames[] = {
37267 (char *) "self", NULL
37268 };
37269
37270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail;
37271 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
37272 if (SWIG_arg_fail(1)) SWIG_fail;
37273 {
37274 PyThreadState* __tstate = wxPyBeginAllowThreads();
37275 (arg1)->ResetOwnerDrawn();
37276
37277 wxPyEndAllowThreads(__tstate);
37278 if (PyErr_Occurred()) SWIG_fail;
37279 }
37280 Py_INCREF(Py_None); resultobj = Py_None;
37281 return resultobj;
37282 fail:
37283 return NULL;
37284 }
37285
37286
37287 static PyObject *_wrap_MenuItem_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
37288 PyObject *resultobj;
37289 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
37290 wxBitmap *arg2 = 0 ;
37291 PyObject * obj0 = 0 ;
37292 PyObject * obj1 = 0 ;
37293 char *kwnames[] = {
37294 (char *) "self",(char *) "bitmap", NULL
37295 };
37296
37297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
37298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
37299 if (SWIG_arg_fail(1)) SWIG_fail;
37300 {
37301 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
37302 if (SWIG_arg_fail(2)) SWIG_fail;
37303 if (arg2 == NULL) {
37304 SWIG_null_ref("wxBitmap");
37305 }
37306 if (SWIG_arg_fail(2)) SWIG_fail;
37307 }
37308 {
37309 PyThreadState* __tstate = wxPyBeginAllowThreads();
37310 (arg1)->SetBitmap((wxBitmap const &)*arg2);
37311
37312 wxPyEndAllowThreads(__tstate);
37313 if (PyErr_Occurred()) SWIG_fail;
37314 }
37315 Py_INCREF(Py_None); resultobj = Py_None;
37316 return resultobj;
37317 fail:
37318 return NULL;
37319 }
37320
37321
37322 static PyObject *_wrap_MenuItem_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
37323 PyObject *resultobj;
37324 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
37325 wxBitmap *result;
37326 PyObject * obj0 = 0 ;
37327 char *kwnames[] = {
37328 (char *) "self", NULL
37329 };
37330
37331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail;
37332 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMenuItem, SWIG_POINTER_EXCEPTION | 0);
37333 if (SWIG_arg_fail(1)) SWIG_fail;
37334 {
37335 PyThreadState* __tstate = wxPyBeginAllowThreads();
37336 {
37337 wxBitmap const &_result_ref = (arg1)->GetBitmap();
37338 result = (wxBitmap *) &_result_ref;
37339 }
37340
37341 wxPyEndAllowThreads(__tstate);
37342 if (PyErr_Occurred()) SWIG_fail;
37343 }
37344 {
37345 wxBitmap* resultptr = new wxBitmap(*result);
37346 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
37347 }
37348 return resultobj;
37349 fail:
37350 return NULL;
37351 }
37352
37353
37354 static PyObject * MenuItem_swigregister(PyObject *, PyObject *args) {
37355 PyObject *obj;
37356 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37357 SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj);
37358 Py_INCREF(obj);
37359 return Py_BuildValue((char *)"");
37360 }
37361 static int _wrap_ControlNameStr_set(PyObject *) {
37362 PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only.");
37363 return 1;
37364 }
37365
37366
37367 static PyObject *_wrap_ControlNameStr_get(void) {
37368 PyObject *pyobj;
37369
37370 {
37371 #if wxUSE_UNICODE
37372 pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
37373 #else
37374 pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
37375 #endif
37376 }
37377 return pyobj;
37378 }
37379
37380
37381 static PyObject *_wrap_new_Control(PyObject *, PyObject *args, PyObject *kwargs) {
37382 PyObject *resultobj;
37383 wxWindow *arg1 = (wxWindow *) 0 ;
37384 int arg2 = (int) -1 ;
37385 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37386 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37387 wxSize const &arg4_defvalue = wxDefaultSize ;
37388 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37389 long arg5 = (long) 0 ;
37390 wxValidator const &arg6_defvalue = wxDefaultValidator ;
37391 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
37392 wxString const &arg7_defvalue = wxPyControlNameStr ;
37393 wxString *arg7 = (wxString *) &arg7_defvalue ;
37394 wxControl *result;
37395 wxPoint temp3 ;
37396 wxSize temp4 ;
37397 bool temp7 = false ;
37398 PyObject * obj0 = 0 ;
37399 PyObject * obj1 = 0 ;
37400 PyObject * obj2 = 0 ;
37401 PyObject * obj3 = 0 ;
37402 PyObject * obj4 = 0 ;
37403 PyObject * obj5 = 0 ;
37404 PyObject * obj6 = 0 ;
37405 char *kwnames[] = {
37406 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
37407 };
37408
37409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
37410 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
37411 if (SWIG_arg_fail(1)) SWIG_fail;
37412 if (obj1) {
37413 {
37414 arg2 = (int)(SWIG_As_int(obj1));
37415 if (SWIG_arg_fail(2)) SWIG_fail;
37416 }
37417 }
37418 if (obj2) {
37419 {
37420 arg3 = &temp3;
37421 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37422 }
37423 }
37424 if (obj3) {
37425 {
37426 arg4 = &temp4;
37427 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
37428 }
37429 }
37430 if (obj4) {
37431 {
37432 arg5 = (long)(SWIG_As_long(obj4));
37433 if (SWIG_arg_fail(5)) SWIG_fail;
37434 }
37435 }
37436 if (obj5) {
37437 {
37438 SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
37439 if (SWIG_arg_fail(6)) SWIG_fail;
37440 if (arg6 == NULL) {
37441 SWIG_null_ref("wxValidator");
37442 }
37443 if (SWIG_arg_fail(6)) SWIG_fail;
37444 }
37445 }
37446 if (obj6) {
37447 {
37448 arg7 = wxString_in_helper(obj6);
37449 if (arg7 == NULL) SWIG_fail;
37450 temp7 = true;
37451 }
37452 }
37453 {
37454 if (!wxPyCheckForApp()) SWIG_fail;
37455 PyThreadState* __tstate = wxPyBeginAllowThreads();
37456 result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
37457
37458 wxPyEndAllowThreads(__tstate);
37459 if (PyErr_Occurred()) SWIG_fail;
37460 }
37461 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1);
37462 {
37463 if (temp7)
37464 delete arg7;
37465 }
37466 return resultobj;
37467 fail:
37468 {
37469 if (temp7)
37470 delete arg7;
37471 }
37472 return NULL;
37473 }
37474
37475
37476 static PyObject *_wrap_new_PreControl(PyObject *, PyObject *args, PyObject *kwargs) {
37477 PyObject *resultobj;
37478 wxControl *result;
37479 char *kwnames[] = {
37480 NULL
37481 };
37482
37483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail;
37484 {
37485 if (!wxPyCheckForApp()) SWIG_fail;
37486 PyThreadState* __tstate = wxPyBeginAllowThreads();
37487 result = (wxControl *)new wxControl();
37488
37489 wxPyEndAllowThreads(__tstate);
37490 if (PyErr_Occurred()) SWIG_fail;
37491 }
37492 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1);
37493 return resultobj;
37494 fail:
37495 return NULL;
37496 }
37497
37498
37499 static PyObject *_wrap_Control_Create(PyObject *, PyObject *args, PyObject *kwargs) {
37500 PyObject *resultobj;
37501 wxControl *arg1 = (wxControl *) 0 ;
37502 wxWindow *arg2 = (wxWindow *) 0 ;
37503 int arg3 = (int) -1 ;
37504 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37505 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37506 wxSize const &arg5_defvalue = wxDefaultSize ;
37507 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37508 long arg6 = (long) 0 ;
37509 wxValidator const &arg7_defvalue = wxDefaultValidator ;
37510 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
37511 wxString const &arg8_defvalue = wxPyControlNameStr ;
37512 wxString *arg8 = (wxString *) &arg8_defvalue ;
37513 bool result;
37514 wxPoint temp4 ;
37515 wxSize temp5 ;
37516 bool temp8 = false ;
37517 PyObject * obj0 = 0 ;
37518 PyObject * obj1 = 0 ;
37519 PyObject * obj2 = 0 ;
37520 PyObject * obj3 = 0 ;
37521 PyObject * obj4 = 0 ;
37522 PyObject * obj5 = 0 ;
37523 PyObject * obj6 = 0 ;
37524 PyObject * obj7 = 0 ;
37525 char *kwnames[] = {
37526 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
37527 };
37528
37529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
37530 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0);
37531 if (SWIG_arg_fail(1)) SWIG_fail;
37532 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
37533 if (SWIG_arg_fail(2)) SWIG_fail;
37534 if (obj2) {
37535 {
37536 arg3 = (int)(SWIG_As_int(obj2));
37537 if (SWIG_arg_fail(3)) SWIG_fail;
37538 }
37539 }
37540 if (obj3) {
37541 {
37542 arg4 = &temp4;
37543 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37544 }
37545 }
37546 if (obj4) {
37547 {
37548 arg5 = &temp5;
37549 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37550 }
37551 }
37552 if (obj5) {
37553 {
37554 arg6 = (long)(SWIG_As_long(obj5));
37555 if (SWIG_arg_fail(6)) SWIG_fail;
37556 }
37557 }
37558 if (obj6) {
37559 {
37560 SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0);
37561 if (SWIG_arg_fail(7)) SWIG_fail;
37562 if (arg7 == NULL) {
37563 SWIG_null_ref("wxValidator");
37564 }
37565 if (SWIG_arg_fail(7)) SWIG_fail;
37566 }
37567 }
37568 if (obj7) {
37569 {
37570 arg8 = wxString_in_helper(obj7);
37571 if (arg8 == NULL) SWIG_fail;
37572 temp8 = true;
37573 }
37574 }
37575 {
37576 PyThreadState* __tstate = wxPyBeginAllowThreads();
37577 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
37578
37579 wxPyEndAllowThreads(__tstate);
37580 if (PyErr_Occurred()) SWIG_fail;
37581 }
37582 {
37583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37584 }
37585 {
37586 if (temp8)
37587 delete arg8;
37588 }
37589 return resultobj;
37590 fail:
37591 {
37592 if (temp8)
37593 delete arg8;
37594 }
37595 return NULL;
37596 }
37597
37598
37599 static PyObject *_wrap_Control_Command(PyObject *, PyObject *args, PyObject *kwargs) {
37600 PyObject *resultobj;
37601 wxControl *arg1 = (wxControl *) 0 ;
37602 wxCommandEvent *arg2 = 0 ;
37603 PyObject * obj0 = 0 ;
37604 PyObject * obj1 = 0 ;
37605 char *kwnames[] = {
37606 (char *) "self",(char *) "event", NULL
37607 };
37608
37609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail;
37610 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0);
37611 if (SWIG_arg_fail(1)) SWIG_fail;
37612 {
37613 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_EXCEPTION | 0);
37614 if (SWIG_arg_fail(2)) SWIG_fail;
37615 if (arg2 == NULL) {
37616 SWIG_null_ref("wxCommandEvent");
37617 }
37618 if (SWIG_arg_fail(2)) SWIG_fail;
37619 }
37620 {
37621 PyThreadState* __tstate = wxPyBeginAllowThreads();
37622 (arg1)->Command(*arg2);
37623
37624 wxPyEndAllowThreads(__tstate);
37625 if (PyErr_Occurred()) SWIG_fail;
37626 }
37627 Py_INCREF(Py_None); resultobj = Py_None;
37628 return resultobj;
37629 fail:
37630 return NULL;
37631 }
37632
37633
37634 static PyObject *_wrap_Control_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
37635 PyObject *resultobj;
37636 wxControl *arg1 = (wxControl *) 0 ;
37637 wxString result;
37638 PyObject * obj0 = 0 ;
37639 char *kwnames[] = {
37640 (char *) "self", NULL
37641 };
37642
37643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail;
37644 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0);
37645 if (SWIG_arg_fail(1)) SWIG_fail;
37646 {
37647 PyThreadState* __tstate = wxPyBeginAllowThreads();
37648 result = (arg1)->GetLabel();
37649
37650 wxPyEndAllowThreads(__tstate);
37651 if (PyErr_Occurred()) SWIG_fail;
37652 }
37653 {
37654 #if wxUSE_UNICODE
37655 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37656 #else
37657 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37658 #endif
37659 }
37660 return resultobj;
37661 fail:
37662 return NULL;
37663 }
37664
37665
37666 static PyObject *_wrap_Control_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
37667 PyObject *resultobj;
37668 wxControl *arg1 = (wxControl *) 0 ;
37669 wxString *arg2 = 0 ;
37670 bool temp2 = false ;
37671 PyObject * obj0 = 0 ;
37672 PyObject * obj1 = 0 ;
37673 char *kwnames[] = {
37674 (char *) "self",(char *) "label", NULL
37675 };
37676
37677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail;
37678 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0);
37679 if (SWIG_arg_fail(1)) SWIG_fail;
37680 {
37681 arg2 = wxString_in_helper(obj1);
37682 if (arg2 == NULL) SWIG_fail;
37683 temp2 = true;
37684 }
37685 {
37686 PyThreadState* __tstate = wxPyBeginAllowThreads();
37687 (arg1)->SetLabel((wxString const &)*arg2);
37688
37689 wxPyEndAllowThreads(__tstate);
37690 if (PyErr_Occurred()) SWIG_fail;
37691 }
37692 Py_INCREF(Py_None); resultobj = Py_None;
37693 {
37694 if (temp2)
37695 delete arg2;
37696 }
37697 return resultobj;
37698 fail:
37699 {
37700 if (temp2)
37701 delete arg2;
37702 }
37703 return NULL;
37704 }
37705
37706
37707 static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
37708 PyObject *resultobj;
37709 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37710 wxVisualAttributes result;
37711 PyObject * obj0 = 0 ;
37712 char *kwnames[] = {
37713 (char *) "variant", NULL
37714 };
37715
37716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
37717 if (obj0) {
37718 {
37719 arg1 = (wxWindowVariant)(SWIG_As_int(obj0));
37720 if (SWIG_arg_fail(1)) SWIG_fail;
37721 }
37722 }
37723 {
37724 if (!wxPyCheckForApp()) SWIG_fail;
37725 PyThreadState* __tstate = wxPyBeginAllowThreads();
37726 result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1);
37727
37728 wxPyEndAllowThreads(__tstate);
37729 if (PyErr_Occurred()) SWIG_fail;
37730 }
37731 {
37732 wxVisualAttributes * resultptr;
37733 resultptr = new wxVisualAttributes((wxVisualAttributes &)(result));
37734 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
37735 }
37736 return resultobj;
37737 fail:
37738 return NULL;
37739 }
37740
37741
37742 static PyObject * Control_swigregister(PyObject *, PyObject *args) {
37743 PyObject *obj;
37744 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37745 SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj);
37746 Py_INCREF(obj);
37747 return Py_BuildValue((char *)"");
37748 }
37749 static PyObject *_wrap_ItemContainer_Append(PyObject *, PyObject *args, PyObject *kwargs) {
37750 PyObject *resultobj;
37751 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
37752 wxString *arg2 = 0 ;
37753 PyObject *arg3 = (PyObject *) NULL ;
37754 int result;
37755 bool temp2 = false ;
37756 PyObject * obj0 = 0 ;
37757 PyObject * obj1 = 0 ;
37758 PyObject * obj2 = 0 ;
37759 char *kwnames[] = {
37760 (char *) "self",(char *) "item",(char *) "clientData", NULL
37761 };
37762
37763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
37764 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
37765 if (SWIG_arg_fail(1)) SWIG_fail;
37766 {
37767 arg2 = wxString_in_helper(obj1);
37768 if (arg2 == NULL) SWIG_fail;
37769 temp2 = true;
37770 }
37771 if (obj2) {
37772 arg3 = obj2;
37773 }
37774 {
37775 PyThreadState* __tstate = wxPyBeginAllowThreads();
37776 result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3);
37777
37778 wxPyEndAllowThreads(__tstate);
37779 if (PyErr_Occurred()) SWIG_fail;
37780 }
37781 {
37782 resultobj = SWIG_From_int((int)(result));
37783 }
37784 {
37785 if (temp2)
37786 delete arg2;
37787 }
37788 return resultobj;
37789 fail:
37790 {
37791 if (temp2)
37792 delete arg2;
37793 }
37794 return NULL;
37795 }
37796
37797
37798 static PyObject *_wrap_ItemContainer_AppendItems(PyObject *, PyObject *args, PyObject *kwargs) {
37799 PyObject *resultobj;
37800 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
37801 wxArrayString *arg2 = 0 ;
37802 bool temp2 = false ;
37803 PyObject * obj0 = 0 ;
37804 PyObject * obj1 = 0 ;
37805 char *kwnames[] = {
37806 (char *) "self",(char *) "strings", NULL
37807 };
37808
37809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail;
37810 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
37811 if (SWIG_arg_fail(1)) SWIG_fail;
37812 {
37813 if (! PySequence_Check(obj1)) {
37814 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
37815 SWIG_fail;
37816 }
37817 arg2 = new wxArrayString;
37818 temp2 = true;
37819 int i, len=PySequence_Length(obj1);
37820 for (i=0; i<len; i++) {
37821 PyObject* item = PySequence_GetItem(obj1, i);
37822 #if wxUSE_UNICODE
37823 PyObject* str = PyObject_Unicode(item);
37824 #else
37825 PyObject* str = PyObject_Str(item);
37826 #endif
37827 if (PyErr_Occurred()) SWIG_fail;
37828 arg2->Add(Py2wxString(str));
37829 Py_DECREF(item);
37830 Py_DECREF(str);
37831 }
37832 }
37833 {
37834 PyThreadState* __tstate = wxPyBeginAllowThreads();
37835 (arg1)->Append((wxArrayString const &)*arg2);
37836
37837 wxPyEndAllowThreads(__tstate);
37838 if (PyErr_Occurred()) SWIG_fail;
37839 }
37840 Py_INCREF(Py_None); resultobj = Py_None;
37841 {
37842 if (temp2) delete arg2;
37843 }
37844 return resultobj;
37845 fail:
37846 {
37847 if (temp2) delete arg2;
37848 }
37849 return NULL;
37850 }
37851
37852
37853 static PyObject *_wrap_ItemContainer_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
37854 PyObject *resultobj;
37855 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
37856 wxString *arg2 = 0 ;
37857 int arg3 ;
37858 PyObject *arg4 = (PyObject *) NULL ;
37859 int result;
37860 bool temp2 = false ;
37861 PyObject * obj0 = 0 ;
37862 PyObject * obj1 = 0 ;
37863 PyObject * obj2 = 0 ;
37864 PyObject * obj3 = 0 ;
37865 char *kwnames[] = {
37866 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
37867 };
37868
37869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
37870 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
37871 if (SWIG_arg_fail(1)) SWIG_fail;
37872 {
37873 arg2 = wxString_in_helper(obj1);
37874 if (arg2 == NULL) SWIG_fail;
37875 temp2 = true;
37876 }
37877 {
37878 arg3 = (int)(SWIG_As_int(obj2));
37879 if (SWIG_arg_fail(3)) SWIG_fail;
37880 }
37881 if (obj3) {
37882 arg4 = obj3;
37883 }
37884 {
37885 PyThreadState* __tstate = wxPyBeginAllowThreads();
37886 result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
37887
37888 wxPyEndAllowThreads(__tstate);
37889 if (PyErr_Occurred()) SWIG_fail;
37890 }
37891 {
37892 resultobj = SWIG_From_int((int)(result));
37893 }
37894 {
37895 if (temp2)
37896 delete arg2;
37897 }
37898 return resultobj;
37899 fail:
37900 {
37901 if (temp2)
37902 delete arg2;
37903 }
37904 return NULL;
37905 }
37906
37907
37908 static PyObject *_wrap_ItemContainer_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
37909 PyObject *resultobj;
37910 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
37911 PyObject * obj0 = 0 ;
37912 char *kwnames[] = {
37913 (char *) "self", NULL
37914 };
37915
37916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail;
37917 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
37918 if (SWIG_arg_fail(1)) SWIG_fail;
37919 {
37920 PyThreadState* __tstate = wxPyBeginAllowThreads();
37921 (arg1)->Clear();
37922
37923 wxPyEndAllowThreads(__tstate);
37924 if (PyErr_Occurred()) SWIG_fail;
37925 }
37926 Py_INCREF(Py_None); resultobj = Py_None;
37927 return resultobj;
37928 fail:
37929 return NULL;
37930 }
37931
37932
37933 static PyObject *_wrap_ItemContainer_Delete(PyObject *, PyObject *args, PyObject *kwargs) {
37934 PyObject *resultobj;
37935 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
37936 int arg2 ;
37937 PyObject * obj0 = 0 ;
37938 PyObject * obj1 = 0 ;
37939 char *kwnames[] = {
37940 (char *) "self",(char *) "n", NULL
37941 };
37942
37943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail;
37944 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
37945 if (SWIG_arg_fail(1)) SWIG_fail;
37946 {
37947 arg2 = (int)(SWIG_As_int(obj1));
37948 if (SWIG_arg_fail(2)) SWIG_fail;
37949 }
37950 {
37951 PyThreadState* __tstate = wxPyBeginAllowThreads();
37952 (arg1)->Delete(arg2);
37953
37954 wxPyEndAllowThreads(__tstate);
37955 if (PyErr_Occurred()) SWIG_fail;
37956 }
37957 Py_INCREF(Py_None); resultobj = Py_None;
37958 return resultobj;
37959 fail:
37960 return NULL;
37961 }
37962
37963
37964 static PyObject *_wrap_ItemContainer_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
37965 PyObject *resultobj;
37966 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
37967 int arg2 ;
37968 PyObject *result;
37969 PyObject * obj0 = 0 ;
37970 PyObject * obj1 = 0 ;
37971 char *kwnames[] = {
37972 (char *) "self",(char *) "n", NULL
37973 };
37974
37975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail;
37976 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
37977 if (SWIG_arg_fail(1)) SWIG_fail;
37978 {
37979 arg2 = (int)(SWIG_As_int(obj1));
37980 if (SWIG_arg_fail(2)) SWIG_fail;
37981 }
37982 {
37983 PyThreadState* __tstate = wxPyBeginAllowThreads();
37984 result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2);
37985
37986 wxPyEndAllowThreads(__tstate);
37987 if (PyErr_Occurred()) SWIG_fail;
37988 }
37989 resultobj = result;
37990 return resultobj;
37991 fail:
37992 return NULL;
37993 }
37994
37995
37996 static PyObject *_wrap_ItemContainer_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
37997 PyObject *resultobj;
37998 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
37999 int arg2 ;
38000 PyObject *arg3 = (PyObject *) 0 ;
38001 PyObject * obj0 = 0 ;
38002 PyObject * obj1 = 0 ;
38003 PyObject * obj2 = 0 ;
38004 char *kwnames[] = {
38005 (char *) "self",(char *) "n",(char *) "clientData", NULL
38006 };
38007
38008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
38009 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
38010 if (SWIG_arg_fail(1)) SWIG_fail;
38011 {
38012 arg2 = (int)(SWIG_As_int(obj1));
38013 if (SWIG_arg_fail(2)) SWIG_fail;
38014 }
38015 arg3 = obj2;
38016 {
38017 PyThreadState* __tstate = wxPyBeginAllowThreads();
38018 wxItemContainer_SetClientData(arg1,arg2,arg3);
38019
38020 wxPyEndAllowThreads(__tstate);
38021 if (PyErr_Occurred()) SWIG_fail;
38022 }
38023 Py_INCREF(Py_None); resultobj = Py_None;
38024 return resultobj;
38025 fail:
38026 return NULL;
38027 }
38028
38029
38030 static PyObject *_wrap_ItemContainer_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
38031 PyObject *resultobj;
38032 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
38033 int result;
38034 PyObject * obj0 = 0 ;
38035 char *kwnames[] = {
38036 (char *) "self", NULL
38037 };
38038
38039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail;
38040 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
38041 if (SWIG_arg_fail(1)) SWIG_fail;
38042 {
38043 PyThreadState* __tstate = wxPyBeginAllowThreads();
38044 result = (int)((wxItemContainer const *)arg1)->GetCount();
38045
38046 wxPyEndAllowThreads(__tstate);
38047 if (PyErr_Occurred()) SWIG_fail;
38048 }
38049 {
38050 resultobj = SWIG_From_int((int)(result));
38051 }
38052 return resultobj;
38053 fail:
38054 return NULL;
38055 }
38056
38057
38058 static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
38059 PyObject *resultobj;
38060 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
38061 bool result;
38062 PyObject * obj0 = 0 ;
38063 char *kwnames[] = {
38064 (char *) "self", NULL
38065 };
38066
38067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail;
38068 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
38069 if (SWIG_arg_fail(1)) SWIG_fail;
38070 {
38071 PyThreadState* __tstate = wxPyBeginAllowThreads();
38072 result = (bool)((wxItemContainer const *)arg1)->IsEmpty();
38073
38074 wxPyEndAllowThreads(__tstate);
38075 if (PyErr_Occurred()) SWIG_fail;
38076 }
38077 {
38078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38079 }
38080 return resultobj;
38081 fail:
38082 return NULL;
38083 }
38084
38085
38086 static PyObject *_wrap_ItemContainer_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
38087 PyObject *resultobj;
38088 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
38089 int arg2 ;
38090 wxString result;
38091 PyObject * obj0 = 0 ;
38092 PyObject * obj1 = 0 ;
38093 char *kwnames[] = {
38094 (char *) "self",(char *) "n", NULL
38095 };
38096
38097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail;
38098 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
38099 if (SWIG_arg_fail(1)) SWIG_fail;
38100 {
38101 arg2 = (int)(SWIG_As_int(obj1));
38102 if (SWIG_arg_fail(2)) SWIG_fail;
38103 }
38104 {
38105 PyThreadState* __tstate = wxPyBeginAllowThreads();
38106 result = ((wxItemContainer const *)arg1)->GetString(arg2);
38107
38108 wxPyEndAllowThreads(__tstate);
38109 if (PyErr_Occurred()) SWIG_fail;
38110 }
38111 {
38112 #if wxUSE_UNICODE
38113 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38114 #else
38115 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38116 #endif
38117 }
38118 return resultobj;
38119 fail:
38120 return NULL;
38121 }
38122
38123
38124 static PyObject *_wrap_ItemContainer_GetStrings(PyObject *, PyObject *args, PyObject *kwargs) {
38125 PyObject *resultobj;
38126 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
38127 wxArrayString result;
38128 PyObject * obj0 = 0 ;
38129 char *kwnames[] = {
38130 (char *) "self", NULL
38131 };
38132
38133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail;
38134 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
38135 if (SWIG_arg_fail(1)) SWIG_fail;
38136 {
38137 PyThreadState* __tstate = wxPyBeginAllowThreads();
38138 result = ((wxItemContainer const *)arg1)->GetStrings();
38139
38140 wxPyEndAllowThreads(__tstate);
38141 if (PyErr_Occurred()) SWIG_fail;
38142 }
38143 {
38144 resultobj = wxArrayString2PyList_helper(result);
38145 }
38146 return resultobj;
38147 fail:
38148 return NULL;
38149 }
38150
38151
38152 static PyObject *_wrap_ItemContainer_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
38153 PyObject *resultobj;
38154 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
38155 int arg2 ;
38156 wxString *arg3 = 0 ;
38157 bool temp3 = false ;
38158 PyObject * obj0 = 0 ;
38159 PyObject * obj1 = 0 ;
38160 PyObject * obj2 = 0 ;
38161 char *kwnames[] = {
38162 (char *) "self",(char *) "n",(char *) "s", NULL
38163 };
38164
38165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
38166 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
38167 if (SWIG_arg_fail(1)) SWIG_fail;
38168 {
38169 arg2 = (int)(SWIG_As_int(obj1));
38170 if (SWIG_arg_fail(2)) SWIG_fail;
38171 }
38172 {
38173 arg3 = wxString_in_helper(obj2);
38174 if (arg3 == NULL) SWIG_fail;
38175 temp3 = true;
38176 }
38177 {
38178 PyThreadState* __tstate = wxPyBeginAllowThreads();
38179 (arg1)->SetString(arg2,(wxString const &)*arg3);
38180
38181 wxPyEndAllowThreads(__tstate);
38182 if (PyErr_Occurred()) SWIG_fail;
38183 }
38184 Py_INCREF(Py_None); resultobj = Py_None;
38185 {
38186 if (temp3)
38187 delete arg3;
38188 }
38189 return resultobj;
38190 fail:
38191 {
38192 if (temp3)
38193 delete arg3;
38194 }
38195 return NULL;
38196 }
38197
38198
38199 static PyObject *_wrap_ItemContainer_FindString(PyObject *, PyObject *args, PyObject *kwargs) {
38200 PyObject *resultobj;
38201 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
38202 wxString *arg2 = 0 ;
38203 int result;
38204 bool temp2 = false ;
38205 PyObject * obj0 = 0 ;
38206 PyObject * obj1 = 0 ;
38207 char *kwnames[] = {
38208 (char *) "self",(char *) "s", NULL
38209 };
38210
38211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail;
38212 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
38213 if (SWIG_arg_fail(1)) SWIG_fail;
38214 {
38215 arg2 = wxString_in_helper(obj1);
38216 if (arg2 == NULL) SWIG_fail;
38217 temp2 = true;
38218 }
38219 {
38220 PyThreadState* __tstate = wxPyBeginAllowThreads();
38221 result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2);
38222
38223 wxPyEndAllowThreads(__tstate);
38224 if (PyErr_Occurred()) SWIG_fail;
38225 }
38226 {
38227 resultobj = SWIG_From_int((int)(result));
38228 }
38229 {
38230 if (temp2)
38231 delete arg2;
38232 }
38233 return resultobj;
38234 fail:
38235 {
38236 if (temp2)
38237 delete arg2;
38238 }
38239 return NULL;
38240 }
38241
38242
38243 static PyObject *_wrap_ItemContainer_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
38244 PyObject *resultobj;
38245 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
38246 int arg2 ;
38247 PyObject * obj0 = 0 ;
38248 PyObject * obj1 = 0 ;
38249 char *kwnames[] = {
38250 (char *) "self",(char *) "n", NULL
38251 };
38252
38253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_SetSelection",kwnames,&obj0,&obj1)) goto fail;
38254 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
38255 if (SWIG_arg_fail(1)) SWIG_fail;
38256 {
38257 arg2 = (int)(SWIG_As_int(obj1));
38258 if (SWIG_arg_fail(2)) SWIG_fail;
38259 }
38260 {
38261 PyThreadState* __tstate = wxPyBeginAllowThreads();
38262 (arg1)->SetSelection(arg2);
38263
38264 wxPyEndAllowThreads(__tstate);
38265 if (PyErr_Occurred()) SWIG_fail;
38266 }
38267 Py_INCREF(Py_None); resultobj = Py_None;
38268 return resultobj;
38269 fail:
38270 return NULL;
38271 }
38272
38273
38274 static PyObject *_wrap_ItemContainer_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
38275 PyObject *resultobj;
38276 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
38277 int result;
38278 PyObject * obj0 = 0 ;
38279 char *kwnames[] = {
38280 (char *) "self", NULL
38281 };
38282
38283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail;
38284 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
38285 if (SWIG_arg_fail(1)) SWIG_fail;
38286 {
38287 PyThreadState* __tstate = wxPyBeginAllowThreads();
38288 result = (int)((wxItemContainer const *)arg1)->GetSelection();
38289
38290 wxPyEndAllowThreads(__tstate);
38291 if (PyErr_Occurred()) SWIG_fail;
38292 }
38293 {
38294 resultobj = SWIG_From_int((int)(result));
38295 }
38296 return resultobj;
38297 fail:
38298 return NULL;
38299 }
38300
38301
38302 static PyObject *_wrap_ItemContainer_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
38303 PyObject *resultobj;
38304 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
38305 wxString *arg2 = 0 ;
38306 bool result;
38307 bool temp2 = false ;
38308 PyObject * obj0 = 0 ;
38309 PyObject * obj1 = 0 ;
38310 char *kwnames[] = {
38311 (char *) "self",(char *) "s", NULL
38312 };
38313
38314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
38315 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
38316 if (SWIG_arg_fail(1)) SWIG_fail;
38317 {
38318 arg2 = wxString_in_helper(obj1);
38319 if (arg2 == NULL) SWIG_fail;
38320 temp2 = true;
38321 }
38322 {
38323 PyThreadState* __tstate = wxPyBeginAllowThreads();
38324 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
38325
38326 wxPyEndAllowThreads(__tstate);
38327 if (PyErr_Occurred()) SWIG_fail;
38328 }
38329 {
38330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38331 }
38332 {
38333 if (temp2)
38334 delete arg2;
38335 }
38336 return resultobj;
38337 fail:
38338 {
38339 if (temp2)
38340 delete arg2;
38341 }
38342 return NULL;
38343 }
38344
38345
38346 static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
38347 PyObject *resultobj;
38348 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
38349 wxString result;
38350 PyObject * obj0 = 0 ;
38351 char *kwnames[] = {
38352 (char *) "self", NULL
38353 };
38354
38355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail;
38356 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
38357 if (SWIG_arg_fail(1)) SWIG_fail;
38358 {
38359 PyThreadState* __tstate = wxPyBeginAllowThreads();
38360 result = ((wxItemContainer const *)arg1)->GetStringSelection();
38361
38362 wxPyEndAllowThreads(__tstate);
38363 if (PyErr_Occurred()) SWIG_fail;
38364 }
38365 {
38366 #if wxUSE_UNICODE
38367 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38368 #else
38369 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38370 #endif
38371 }
38372 return resultobj;
38373 fail:
38374 return NULL;
38375 }
38376
38377
38378 static PyObject *_wrap_ItemContainer_Select(PyObject *, PyObject *args, PyObject *kwargs) {
38379 PyObject *resultobj;
38380 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
38381 int arg2 ;
38382 PyObject * obj0 = 0 ;
38383 PyObject * obj1 = 0 ;
38384 char *kwnames[] = {
38385 (char *) "self",(char *) "n", NULL
38386 };
38387
38388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail;
38389 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxItemContainer, SWIG_POINTER_EXCEPTION | 0);
38390 if (SWIG_arg_fail(1)) SWIG_fail;
38391 {
38392 arg2 = (int)(SWIG_As_int(obj1));
38393 if (SWIG_arg_fail(2)) SWIG_fail;
38394 }
38395 {
38396 PyThreadState* __tstate = wxPyBeginAllowThreads();
38397 (arg1)->Select(arg2);
38398
38399 wxPyEndAllowThreads(__tstate);
38400 if (PyErr_Occurred()) SWIG_fail;
38401 }
38402 Py_INCREF(Py_None); resultobj = Py_None;
38403 return resultobj;
38404 fail:
38405 return NULL;
38406 }
38407
38408
38409 static PyObject * ItemContainer_swigregister(PyObject *, PyObject *args) {
38410 PyObject *obj;
38411 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
38412 SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj);
38413 Py_INCREF(obj);
38414 return Py_BuildValue((char *)"");
38415 }
38416 static PyObject * ControlWithItems_swigregister(PyObject *, PyObject *args) {
38417 PyObject *obj;
38418 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
38419 SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj);
38420 Py_INCREF(obj);
38421 return Py_BuildValue((char *)"");
38422 }
38423 static PyObject *_wrap_new_SizerItem(PyObject *, PyObject *args, PyObject *kwargs) {
38424 PyObject *resultobj;
38425 wxSizerItem *result;
38426 char *kwnames[] = {
38427 NULL
38428 };
38429
38430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail;
38431 {
38432 PyThreadState* __tstate = wxPyBeginAllowThreads();
38433 result = (wxSizerItem *)new wxSizerItem();
38434
38435 wxPyEndAllowThreads(__tstate);
38436 if (PyErr_Occurred()) SWIG_fail;
38437 }
38438 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
38439 return resultobj;
38440 fail:
38441 return NULL;
38442 }
38443
38444
38445 static PyObject *_wrap_new_SizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) {
38446 PyObject *resultobj;
38447 wxWindow *arg1 = (wxWindow *) 0 ;
38448 int arg2 ;
38449 int arg3 ;
38450 int arg4 ;
38451 PyObject *arg5 = (PyObject *) NULL ;
38452 wxSizerItem *result;
38453 PyObject * obj0 = 0 ;
38454 PyObject * obj1 = 0 ;
38455 PyObject * obj2 = 0 ;
38456 PyObject * obj3 = 0 ;
38457 PyObject * obj4 = 0 ;
38458 char *kwnames[] = {
38459 (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
38460 };
38461
38462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
38463 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
38464 if (SWIG_arg_fail(1)) SWIG_fail;
38465 {
38466 arg2 = (int)(SWIG_As_int(obj1));
38467 if (SWIG_arg_fail(2)) SWIG_fail;
38468 }
38469 {
38470 arg3 = (int)(SWIG_As_int(obj2));
38471 if (SWIG_arg_fail(3)) SWIG_fail;
38472 }
38473 {
38474 arg4 = (int)(SWIG_As_int(obj3));
38475 if (SWIG_arg_fail(4)) SWIG_fail;
38476 }
38477 if (obj4) {
38478 arg5 = obj4;
38479 }
38480 {
38481 PyThreadState* __tstate = wxPyBeginAllowThreads();
38482 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
38483
38484 wxPyEndAllowThreads(__tstate);
38485 if (PyErr_Occurred()) SWIG_fail;
38486 }
38487 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
38488 return resultobj;
38489 fail:
38490 return NULL;
38491 }
38492
38493
38494 static PyObject *_wrap_new_SizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) {
38495 PyObject *resultobj;
38496 int arg1 ;
38497 int arg2 ;
38498 int arg3 ;
38499 int arg4 ;
38500 int arg5 ;
38501 PyObject *arg6 = (PyObject *) NULL ;
38502 wxSizerItem *result;
38503 PyObject * obj0 = 0 ;
38504 PyObject * obj1 = 0 ;
38505 PyObject * obj2 = 0 ;
38506 PyObject * obj3 = 0 ;
38507 PyObject * obj4 = 0 ;
38508 PyObject * obj5 = 0 ;
38509 char *kwnames[] = {
38510 (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
38511 };
38512
38513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
38514 {
38515 arg1 = (int)(SWIG_As_int(obj0));
38516 if (SWIG_arg_fail(1)) SWIG_fail;
38517 }
38518 {
38519 arg2 = (int)(SWIG_As_int(obj1));
38520 if (SWIG_arg_fail(2)) SWIG_fail;
38521 }
38522 {
38523 arg3 = (int)(SWIG_As_int(obj2));
38524 if (SWIG_arg_fail(3)) SWIG_fail;
38525 }
38526 {
38527 arg4 = (int)(SWIG_As_int(obj3));
38528 if (SWIG_arg_fail(4)) SWIG_fail;
38529 }
38530 {
38531 arg5 = (int)(SWIG_As_int(obj4));
38532 if (SWIG_arg_fail(5)) SWIG_fail;
38533 }
38534 if (obj5) {
38535 arg6 = obj5;
38536 }
38537 {
38538 PyThreadState* __tstate = wxPyBeginAllowThreads();
38539 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6);
38540
38541 wxPyEndAllowThreads(__tstate);
38542 if (PyErr_Occurred()) SWIG_fail;
38543 }
38544 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
38545 return resultobj;
38546 fail:
38547 return NULL;
38548 }
38549
38550
38551 static PyObject *_wrap_new_SizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) {
38552 PyObject *resultobj;
38553 wxSizer *arg1 = (wxSizer *) 0 ;
38554 int arg2 ;
38555 int arg3 ;
38556 int arg4 ;
38557 PyObject *arg5 = (PyObject *) NULL ;
38558 wxSizerItem *result;
38559 PyObject * obj0 = 0 ;
38560 PyObject * obj1 = 0 ;
38561 PyObject * obj2 = 0 ;
38562 PyObject * obj3 = 0 ;
38563 PyObject * obj4 = 0 ;
38564 char *kwnames[] = {
38565 (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
38566 };
38567
38568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
38569 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
38570 if (SWIG_arg_fail(1)) SWIG_fail;
38571 {
38572 arg2 = (int)(SWIG_As_int(obj1));
38573 if (SWIG_arg_fail(2)) SWIG_fail;
38574 }
38575 {
38576 arg3 = (int)(SWIG_As_int(obj2));
38577 if (SWIG_arg_fail(3)) SWIG_fail;
38578 }
38579 {
38580 arg4 = (int)(SWIG_As_int(obj3));
38581 if (SWIG_arg_fail(4)) SWIG_fail;
38582 }
38583 if (obj4) {
38584 arg5 = obj4;
38585 }
38586 {
38587 PyThreadState* __tstate = wxPyBeginAllowThreads();
38588 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
38589
38590 wxPyEndAllowThreads(__tstate);
38591 if (PyErr_Occurred()) SWIG_fail;
38592 }
38593 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
38594 return resultobj;
38595 fail:
38596 return NULL;
38597 }
38598
38599
38600 static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) {
38601 PyObject *resultobj;
38602 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
38603 PyObject * obj0 = 0 ;
38604 char *kwnames[] = {
38605 (char *) "self", NULL
38606 };
38607
38608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail;
38609 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
38610 if (SWIG_arg_fail(1)) SWIG_fail;
38611 {
38612 PyThreadState* __tstate = wxPyBeginAllowThreads();
38613 (arg1)->DeleteWindows();
38614
38615 wxPyEndAllowThreads(__tstate);
38616 if (PyErr_Occurred()) SWIG_fail;
38617 }
38618 Py_INCREF(Py_None); resultobj = Py_None;
38619 return resultobj;
38620 fail:
38621 return NULL;
38622 }
38623
38624
38625 static PyObject *_wrap_SizerItem_DetachSizer(PyObject *, PyObject *args, PyObject *kwargs) {
38626 PyObject *resultobj;
38627 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
38628 PyObject * obj0 = 0 ;
38629 char *kwnames[] = {
38630 (char *) "self", NULL
38631 };
38632
38633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail;
38634 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
38635 if (SWIG_arg_fail(1)) SWIG_fail;
38636 {
38637 PyThreadState* __tstate = wxPyBeginAllowThreads();
38638 (arg1)->DetachSizer();
38639
38640 wxPyEndAllowThreads(__tstate);
38641 if (PyErr_Occurred()) SWIG_fail;
38642 }
38643 Py_INCREF(Py_None); resultobj = Py_None;
38644 return resultobj;
38645 fail:
38646 return NULL;
38647 }
38648
38649
38650 static PyObject *_wrap_SizerItem_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
38651 PyObject *resultobj;
38652 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
38653 wxSize result;
38654 PyObject * obj0 = 0 ;
38655 char *kwnames[] = {
38656 (char *) "self", NULL
38657 };
38658
38659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail;
38660 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
38661 if (SWIG_arg_fail(1)) SWIG_fail;
38662 {
38663 PyThreadState* __tstate = wxPyBeginAllowThreads();
38664 result = (arg1)->GetSize();
38665
38666 wxPyEndAllowThreads(__tstate);
38667 if (PyErr_Occurred()) SWIG_fail;
38668 }
38669 {
38670 wxSize * resultptr;
38671 resultptr = new wxSize((wxSize &)(result));
38672 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
38673 }
38674 return resultobj;
38675 fail:
38676 return NULL;
38677 }
38678
38679
38680 static PyObject *_wrap_SizerItem_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
38681 PyObject *resultobj;
38682 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
38683 wxSize result;
38684 PyObject * obj0 = 0 ;
38685 char *kwnames[] = {
38686 (char *) "self", NULL
38687 };
38688
38689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail;
38690 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
38691 if (SWIG_arg_fail(1)) SWIG_fail;
38692 {
38693 PyThreadState* __tstate = wxPyBeginAllowThreads();
38694 result = (arg1)->CalcMin();
38695
38696 wxPyEndAllowThreads(__tstate);
38697 if (PyErr_Occurred()) SWIG_fail;
38698 }
38699 {
38700 wxSize * resultptr;
38701 resultptr = new wxSize((wxSize &)(result));
38702 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
38703 }
38704 return resultobj;
38705 fail:
38706 return NULL;
38707 }
38708
38709
38710 static PyObject *_wrap_SizerItem_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) {
38711 PyObject *resultobj;
38712 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
38713 wxPoint arg2 ;
38714 wxSize arg3 ;
38715 PyObject * obj0 = 0 ;
38716 PyObject * obj1 = 0 ;
38717 PyObject * obj2 = 0 ;
38718 char *kwnames[] = {
38719 (char *) "self",(char *) "pos",(char *) "size", NULL
38720 };
38721
38722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail;
38723 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
38724 if (SWIG_arg_fail(1)) SWIG_fail;
38725 {
38726 wxPoint * argp;
38727 SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION);
38728 if (SWIG_arg_fail(2)) SWIG_fail;
38729 if (argp == NULL) {
38730 SWIG_null_ref("wxPoint");
38731 }
38732 if (SWIG_arg_fail(2)) SWIG_fail;
38733 arg2 = *argp;
38734 }
38735 {
38736 wxSize * argp;
38737 SWIG_Python_ConvertPtr(obj2, (void **)&argp, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION);
38738 if (SWIG_arg_fail(3)) SWIG_fail;
38739 if (argp == NULL) {
38740 SWIG_null_ref("wxSize");
38741 }
38742 if (SWIG_arg_fail(3)) SWIG_fail;
38743 arg3 = *argp;
38744 }
38745 {
38746 PyThreadState* __tstate = wxPyBeginAllowThreads();
38747 (arg1)->SetDimension(arg2,arg3);
38748
38749 wxPyEndAllowThreads(__tstate);
38750 if (PyErr_Occurred()) SWIG_fail;
38751 }
38752 Py_INCREF(Py_None); resultobj = Py_None;
38753 return resultobj;
38754 fail:
38755 return NULL;
38756 }
38757
38758
38759 static PyObject *_wrap_SizerItem_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
38760 PyObject *resultobj;
38761 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
38762 wxSize result;
38763 PyObject * obj0 = 0 ;
38764 char *kwnames[] = {
38765 (char *) "self", NULL
38766 };
38767
38768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail;
38769 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
38770 if (SWIG_arg_fail(1)) SWIG_fail;
38771 {
38772 PyThreadState* __tstate = wxPyBeginAllowThreads();
38773 result = (arg1)->GetMinSize();
38774
38775 wxPyEndAllowThreads(__tstate);
38776 if (PyErr_Occurred()) SWIG_fail;
38777 }
38778 {
38779 wxSize * resultptr;
38780 resultptr = new wxSize((wxSize &)(result));
38781 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
38782 }
38783 return resultobj;
38784 fail:
38785 return NULL;
38786 }
38787
38788
38789 static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *, PyObject *args, PyObject *kwargs) {
38790 PyObject *resultobj;
38791 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
38792 wxSize result;
38793 PyObject * obj0 = 0 ;
38794 char *kwnames[] = {
38795 (char *) "self", NULL
38796 };
38797
38798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail;
38799 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
38800 if (SWIG_arg_fail(1)) SWIG_fail;
38801 {
38802 PyThreadState* __tstate = wxPyBeginAllowThreads();
38803 result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder();
38804
38805 wxPyEndAllowThreads(__tstate);
38806 if (PyErr_Occurred()) SWIG_fail;
38807 }
38808 {
38809 wxSize * resultptr;
38810 resultptr = new wxSize((wxSize &)(result));
38811 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
38812 }
38813 return resultobj;
38814 fail:
38815 return NULL;
38816 }
38817
38818
38819 static PyObject *_wrap_SizerItem_SetInitSize(PyObject *, PyObject *args, PyObject *kwargs) {
38820 PyObject *resultobj;
38821 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
38822 int arg2 ;
38823 int arg3 ;
38824 PyObject * obj0 = 0 ;
38825 PyObject * obj1 = 0 ;
38826 PyObject * obj2 = 0 ;
38827 char *kwnames[] = {
38828 (char *) "self",(char *) "x",(char *) "y", NULL
38829 };
38830
38831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
38832 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
38833 if (SWIG_arg_fail(1)) SWIG_fail;
38834 {
38835 arg2 = (int)(SWIG_As_int(obj1));
38836 if (SWIG_arg_fail(2)) SWIG_fail;
38837 }
38838 {
38839 arg3 = (int)(SWIG_As_int(obj2));
38840 if (SWIG_arg_fail(3)) SWIG_fail;
38841 }
38842 {
38843 PyThreadState* __tstate = wxPyBeginAllowThreads();
38844 (arg1)->SetInitSize(arg2,arg3);
38845
38846 wxPyEndAllowThreads(__tstate);
38847 if (PyErr_Occurred()) SWIG_fail;
38848 }
38849 Py_INCREF(Py_None); resultobj = Py_None;
38850 return resultobj;
38851 fail:
38852 return NULL;
38853 }
38854
38855
38856 static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *, PyObject *args, PyObject *kwargs) {
38857 PyObject *resultobj;
38858 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
38859 int arg2 ;
38860 int arg3 ;
38861 PyObject * obj0 = 0 ;
38862 PyObject * obj1 = 0 ;
38863 PyObject * obj2 = 0 ;
38864 char *kwnames[] = {
38865 (char *) "self",(char *) "width",(char *) "height", NULL
38866 };
38867
38868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
38869 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
38870 if (SWIG_arg_fail(1)) SWIG_fail;
38871 {
38872 arg2 = (int)(SWIG_As_int(obj1));
38873 if (SWIG_arg_fail(2)) SWIG_fail;
38874 }
38875 {
38876 arg3 = (int)(SWIG_As_int(obj2));
38877 if (SWIG_arg_fail(3)) SWIG_fail;
38878 }
38879 {
38880 PyThreadState* __tstate = wxPyBeginAllowThreads();
38881 (arg1)->SetRatio(arg2,arg3);
38882
38883 wxPyEndAllowThreads(__tstate);
38884 if (PyErr_Occurred()) SWIG_fail;
38885 }
38886 Py_INCREF(Py_None); resultobj = Py_None;
38887 return resultobj;
38888 fail:
38889 return NULL;
38890 }
38891
38892
38893 static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *, PyObject *args, PyObject *kwargs) {
38894 PyObject *resultobj;
38895 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
38896 wxSize *arg2 = 0 ;
38897 wxSize temp2 ;
38898 PyObject * obj0 = 0 ;
38899 PyObject * obj1 = 0 ;
38900 char *kwnames[] = {
38901 (char *) "self",(char *) "size", NULL
38902 };
38903
38904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail;
38905 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
38906 if (SWIG_arg_fail(1)) SWIG_fail;
38907 {
38908 arg2 = &temp2;
38909 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38910 }
38911 {
38912 PyThreadState* __tstate = wxPyBeginAllowThreads();
38913 (arg1)->SetRatio((wxSize const &)*arg2);
38914
38915 wxPyEndAllowThreads(__tstate);
38916 if (PyErr_Occurred()) SWIG_fail;
38917 }
38918 Py_INCREF(Py_None); resultobj = Py_None;
38919 return resultobj;
38920 fail:
38921 return NULL;
38922 }
38923
38924
38925 static PyObject *_wrap_SizerItem_SetRatio(PyObject *, PyObject *args, PyObject *kwargs) {
38926 PyObject *resultobj;
38927 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
38928 float arg2 ;
38929 PyObject * obj0 = 0 ;
38930 PyObject * obj1 = 0 ;
38931 char *kwnames[] = {
38932 (char *) "self",(char *) "ratio", NULL
38933 };
38934
38935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail;
38936 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
38937 if (SWIG_arg_fail(1)) SWIG_fail;
38938 {
38939 arg2 = (float)(SWIG_As_float(obj1));
38940 if (SWIG_arg_fail(2)) SWIG_fail;
38941 }
38942 {
38943 PyThreadState* __tstate = wxPyBeginAllowThreads();
38944 (arg1)->SetRatio(arg2);
38945
38946 wxPyEndAllowThreads(__tstate);
38947 if (PyErr_Occurred()) SWIG_fail;
38948 }
38949 Py_INCREF(Py_None); resultobj = Py_None;
38950 return resultobj;
38951 fail:
38952 return NULL;
38953 }
38954
38955
38956 static PyObject *_wrap_SizerItem_GetRatio(PyObject *, PyObject *args, PyObject *kwargs) {
38957 PyObject *resultobj;
38958 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
38959 float result;
38960 PyObject * obj0 = 0 ;
38961 char *kwnames[] = {
38962 (char *) "self", NULL
38963 };
38964
38965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail;
38966 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
38967 if (SWIG_arg_fail(1)) SWIG_fail;
38968 {
38969 PyThreadState* __tstate = wxPyBeginAllowThreads();
38970 result = (float)(arg1)->GetRatio();
38971
38972 wxPyEndAllowThreads(__tstate);
38973 if (PyErr_Occurred()) SWIG_fail;
38974 }
38975 {
38976 resultobj = SWIG_From_float((float)(result));
38977 }
38978 return resultobj;
38979 fail:
38980 return NULL;
38981 }
38982
38983
38984 static PyObject *_wrap_SizerItem_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
38985 PyObject *resultobj;
38986 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
38987 wxRect result;
38988 PyObject * obj0 = 0 ;
38989 char *kwnames[] = {
38990 (char *) "self", NULL
38991 };
38992
38993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRect",kwnames,&obj0)) goto fail;
38994 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
38995 if (SWIG_arg_fail(1)) SWIG_fail;
38996 {
38997 PyThreadState* __tstate = wxPyBeginAllowThreads();
38998 result = (arg1)->GetRect();
38999
39000 wxPyEndAllowThreads(__tstate);
39001 if (PyErr_Occurred()) SWIG_fail;
39002 }
39003 {
39004 wxRect * resultptr;
39005 resultptr = new wxRect((wxRect &)(result));
39006 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
39007 }
39008 return resultobj;
39009 fail:
39010 return NULL;
39011 }
39012
39013
39014 static PyObject *_wrap_SizerItem_IsWindow(PyObject *, PyObject *args, PyObject *kwargs) {
39015 PyObject *resultobj;
39016 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39017 bool result;
39018 PyObject * obj0 = 0 ;
39019 char *kwnames[] = {
39020 (char *) "self", NULL
39021 };
39022
39023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail;
39024 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39025 if (SWIG_arg_fail(1)) SWIG_fail;
39026 {
39027 PyThreadState* __tstate = wxPyBeginAllowThreads();
39028 result = (bool)(arg1)->IsWindow();
39029
39030 wxPyEndAllowThreads(__tstate);
39031 if (PyErr_Occurred()) SWIG_fail;
39032 }
39033 {
39034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39035 }
39036 return resultobj;
39037 fail:
39038 return NULL;
39039 }
39040
39041
39042 static PyObject *_wrap_SizerItem_IsSizer(PyObject *, PyObject *args, PyObject *kwargs) {
39043 PyObject *resultobj;
39044 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39045 bool result;
39046 PyObject * obj0 = 0 ;
39047 char *kwnames[] = {
39048 (char *) "self", NULL
39049 };
39050
39051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail;
39052 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39053 if (SWIG_arg_fail(1)) SWIG_fail;
39054 {
39055 PyThreadState* __tstate = wxPyBeginAllowThreads();
39056 result = (bool)(arg1)->IsSizer();
39057
39058 wxPyEndAllowThreads(__tstate);
39059 if (PyErr_Occurred()) SWIG_fail;
39060 }
39061 {
39062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39063 }
39064 return resultobj;
39065 fail:
39066 return NULL;
39067 }
39068
39069
39070 static PyObject *_wrap_SizerItem_IsSpacer(PyObject *, PyObject *args, PyObject *kwargs) {
39071 PyObject *resultobj;
39072 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39073 bool result;
39074 PyObject * obj0 = 0 ;
39075 char *kwnames[] = {
39076 (char *) "self", NULL
39077 };
39078
39079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail;
39080 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39081 if (SWIG_arg_fail(1)) SWIG_fail;
39082 {
39083 PyThreadState* __tstate = wxPyBeginAllowThreads();
39084 result = (bool)(arg1)->IsSpacer();
39085
39086 wxPyEndAllowThreads(__tstate);
39087 if (PyErr_Occurred()) SWIG_fail;
39088 }
39089 {
39090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39091 }
39092 return resultobj;
39093 fail:
39094 return NULL;
39095 }
39096
39097
39098 static PyObject *_wrap_SizerItem_SetProportion(PyObject *, PyObject *args, PyObject *kwargs) {
39099 PyObject *resultobj;
39100 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39101 int arg2 ;
39102 PyObject * obj0 = 0 ;
39103 PyObject * obj1 = 0 ;
39104 char *kwnames[] = {
39105 (char *) "self",(char *) "proportion", NULL
39106 };
39107
39108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail;
39109 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39110 if (SWIG_arg_fail(1)) SWIG_fail;
39111 {
39112 arg2 = (int)(SWIG_As_int(obj1));
39113 if (SWIG_arg_fail(2)) SWIG_fail;
39114 }
39115 {
39116 PyThreadState* __tstate = wxPyBeginAllowThreads();
39117 (arg1)->SetProportion(arg2);
39118
39119 wxPyEndAllowThreads(__tstate);
39120 if (PyErr_Occurred()) SWIG_fail;
39121 }
39122 Py_INCREF(Py_None); resultobj = Py_None;
39123 return resultobj;
39124 fail:
39125 return NULL;
39126 }
39127
39128
39129 static PyObject *_wrap_SizerItem_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) {
39130 PyObject *resultobj;
39131 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39132 int result;
39133 PyObject * obj0 = 0 ;
39134 char *kwnames[] = {
39135 (char *) "self", NULL
39136 };
39137
39138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail;
39139 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39140 if (SWIG_arg_fail(1)) SWIG_fail;
39141 {
39142 PyThreadState* __tstate = wxPyBeginAllowThreads();
39143 result = (int)(arg1)->GetProportion();
39144
39145 wxPyEndAllowThreads(__tstate);
39146 if (PyErr_Occurred()) SWIG_fail;
39147 }
39148 {
39149 resultobj = SWIG_From_int((int)(result));
39150 }
39151 return resultobj;
39152 fail:
39153 return NULL;
39154 }
39155
39156
39157 static PyObject *_wrap_SizerItem_SetFlag(PyObject *, PyObject *args, PyObject *kwargs) {
39158 PyObject *resultobj;
39159 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39160 int arg2 ;
39161 PyObject * obj0 = 0 ;
39162 PyObject * obj1 = 0 ;
39163 char *kwnames[] = {
39164 (char *) "self",(char *) "flag", NULL
39165 };
39166
39167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail;
39168 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39169 if (SWIG_arg_fail(1)) SWIG_fail;
39170 {
39171 arg2 = (int)(SWIG_As_int(obj1));
39172 if (SWIG_arg_fail(2)) SWIG_fail;
39173 }
39174 {
39175 PyThreadState* __tstate = wxPyBeginAllowThreads();
39176 (arg1)->SetFlag(arg2);
39177
39178 wxPyEndAllowThreads(__tstate);
39179 if (PyErr_Occurred()) SWIG_fail;
39180 }
39181 Py_INCREF(Py_None); resultobj = Py_None;
39182 return resultobj;
39183 fail:
39184 return NULL;
39185 }
39186
39187
39188 static PyObject *_wrap_SizerItem_GetFlag(PyObject *, PyObject *args, PyObject *kwargs) {
39189 PyObject *resultobj;
39190 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39191 int result;
39192 PyObject * obj0 = 0 ;
39193 char *kwnames[] = {
39194 (char *) "self", NULL
39195 };
39196
39197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail;
39198 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39199 if (SWIG_arg_fail(1)) SWIG_fail;
39200 {
39201 PyThreadState* __tstate = wxPyBeginAllowThreads();
39202 result = (int)(arg1)->GetFlag();
39203
39204 wxPyEndAllowThreads(__tstate);
39205 if (PyErr_Occurred()) SWIG_fail;
39206 }
39207 {
39208 resultobj = SWIG_From_int((int)(result));
39209 }
39210 return resultobj;
39211 fail:
39212 return NULL;
39213 }
39214
39215
39216 static PyObject *_wrap_SizerItem_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) {
39217 PyObject *resultobj;
39218 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39219 int arg2 ;
39220 PyObject * obj0 = 0 ;
39221 PyObject * obj1 = 0 ;
39222 char *kwnames[] = {
39223 (char *) "self",(char *) "border", NULL
39224 };
39225
39226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail;
39227 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39228 if (SWIG_arg_fail(1)) SWIG_fail;
39229 {
39230 arg2 = (int)(SWIG_As_int(obj1));
39231 if (SWIG_arg_fail(2)) SWIG_fail;
39232 }
39233 {
39234 PyThreadState* __tstate = wxPyBeginAllowThreads();
39235 (arg1)->SetBorder(arg2);
39236
39237 wxPyEndAllowThreads(__tstate);
39238 if (PyErr_Occurred()) SWIG_fail;
39239 }
39240 Py_INCREF(Py_None); resultobj = Py_None;
39241 return resultobj;
39242 fail:
39243 return NULL;
39244 }
39245
39246
39247 static PyObject *_wrap_SizerItem_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) {
39248 PyObject *resultobj;
39249 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39250 int result;
39251 PyObject * obj0 = 0 ;
39252 char *kwnames[] = {
39253 (char *) "self", NULL
39254 };
39255
39256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail;
39257 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39258 if (SWIG_arg_fail(1)) SWIG_fail;
39259 {
39260 PyThreadState* __tstate = wxPyBeginAllowThreads();
39261 result = (int)(arg1)->GetBorder();
39262
39263 wxPyEndAllowThreads(__tstate);
39264 if (PyErr_Occurred()) SWIG_fail;
39265 }
39266 {
39267 resultobj = SWIG_From_int((int)(result));
39268 }
39269 return resultobj;
39270 fail:
39271 return NULL;
39272 }
39273
39274
39275 static PyObject *_wrap_SizerItem_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
39276 PyObject *resultobj;
39277 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39278 wxWindow *result;
39279 PyObject * obj0 = 0 ;
39280 char *kwnames[] = {
39281 (char *) "self", NULL
39282 };
39283
39284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail;
39285 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39286 if (SWIG_arg_fail(1)) SWIG_fail;
39287 {
39288 PyThreadState* __tstate = wxPyBeginAllowThreads();
39289 result = (wxWindow *)(arg1)->GetWindow();
39290
39291 wxPyEndAllowThreads(__tstate);
39292 if (PyErr_Occurred()) SWIG_fail;
39293 }
39294 {
39295 resultobj = wxPyMake_wxObject(result, 0);
39296 }
39297 return resultobj;
39298 fail:
39299 return NULL;
39300 }
39301
39302
39303 static PyObject *_wrap_SizerItem_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
39304 PyObject *resultobj;
39305 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39306 wxWindow *arg2 = (wxWindow *) 0 ;
39307 PyObject * obj0 = 0 ;
39308 PyObject * obj1 = 0 ;
39309 char *kwnames[] = {
39310 (char *) "self",(char *) "window", NULL
39311 };
39312
39313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail;
39314 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39315 if (SWIG_arg_fail(1)) SWIG_fail;
39316 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
39317 if (SWIG_arg_fail(2)) SWIG_fail;
39318 {
39319 PyThreadState* __tstate = wxPyBeginAllowThreads();
39320 (arg1)->SetWindow(arg2);
39321
39322 wxPyEndAllowThreads(__tstate);
39323 if (PyErr_Occurred()) SWIG_fail;
39324 }
39325 Py_INCREF(Py_None); resultobj = Py_None;
39326 return resultobj;
39327 fail:
39328 return NULL;
39329 }
39330
39331
39332 static PyObject *_wrap_SizerItem_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) {
39333 PyObject *resultobj;
39334 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39335 wxSizer *result;
39336 PyObject * obj0 = 0 ;
39337 char *kwnames[] = {
39338 (char *) "self", NULL
39339 };
39340
39341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail;
39342 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39343 if (SWIG_arg_fail(1)) SWIG_fail;
39344 {
39345 PyThreadState* __tstate = wxPyBeginAllowThreads();
39346 result = (wxSizer *)(arg1)->GetSizer();
39347
39348 wxPyEndAllowThreads(__tstate);
39349 if (PyErr_Occurred()) SWIG_fail;
39350 }
39351 {
39352 resultobj = wxPyMake_wxSizer(result, 0);
39353 }
39354 return resultobj;
39355 fail:
39356 return NULL;
39357 }
39358
39359
39360 static PyObject *_wrap_SizerItem_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) {
39361 PyObject *resultobj;
39362 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39363 wxSizer *arg2 = (wxSizer *) 0 ;
39364 PyObject * obj0 = 0 ;
39365 PyObject * obj1 = 0 ;
39366 char *kwnames[] = {
39367 (char *) "self",(char *) "sizer", NULL
39368 };
39369
39370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail;
39371 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39372 if (SWIG_arg_fail(1)) SWIG_fail;
39373 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
39374 if (SWIG_arg_fail(2)) SWIG_fail;
39375 {
39376 PyThreadState* __tstate = wxPyBeginAllowThreads();
39377 (arg1)->SetSizer(arg2);
39378
39379 wxPyEndAllowThreads(__tstate);
39380 if (PyErr_Occurred()) SWIG_fail;
39381 }
39382 Py_INCREF(Py_None); resultobj = Py_None;
39383 return resultobj;
39384 fail:
39385 return NULL;
39386 }
39387
39388
39389 static PyObject *_wrap_SizerItem_GetSpacer(PyObject *, PyObject *args, PyObject *kwargs) {
39390 PyObject *resultobj;
39391 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39392 wxSize *result;
39393 PyObject * obj0 = 0 ;
39394 char *kwnames[] = {
39395 (char *) "self", NULL
39396 };
39397
39398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail;
39399 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39400 if (SWIG_arg_fail(1)) SWIG_fail;
39401 {
39402 PyThreadState* __tstate = wxPyBeginAllowThreads();
39403 {
39404 wxSize const &_result_ref = (arg1)->GetSpacer();
39405 result = (wxSize *) &_result_ref;
39406 }
39407
39408 wxPyEndAllowThreads(__tstate);
39409 if (PyErr_Occurred()) SWIG_fail;
39410 }
39411 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0);
39412 return resultobj;
39413 fail:
39414 return NULL;
39415 }
39416
39417
39418 static PyObject *_wrap_SizerItem_SetSpacer(PyObject *, PyObject *args, PyObject *kwargs) {
39419 PyObject *resultobj;
39420 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39421 wxSize *arg2 = 0 ;
39422 wxSize temp2 ;
39423 PyObject * obj0 = 0 ;
39424 PyObject * obj1 = 0 ;
39425 char *kwnames[] = {
39426 (char *) "self",(char *) "size", NULL
39427 };
39428
39429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail;
39430 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39431 if (SWIG_arg_fail(1)) SWIG_fail;
39432 {
39433 arg2 = &temp2;
39434 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
39435 }
39436 {
39437 PyThreadState* __tstate = wxPyBeginAllowThreads();
39438 (arg1)->SetSpacer((wxSize const &)*arg2);
39439
39440 wxPyEndAllowThreads(__tstate);
39441 if (PyErr_Occurred()) SWIG_fail;
39442 }
39443 Py_INCREF(Py_None); resultobj = Py_None;
39444 return resultobj;
39445 fail:
39446 return NULL;
39447 }
39448
39449
39450 static PyObject *_wrap_SizerItem_Show(PyObject *, PyObject *args, PyObject *kwargs) {
39451 PyObject *resultobj;
39452 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39453 bool arg2 ;
39454 PyObject * obj0 = 0 ;
39455 PyObject * obj1 = 0 ;
39456 char *kwnames[] = {
39457 (char *) "self",(char *) "show", NULL
39458 };
39459
39460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail;
39461 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39462 if (SWIG_arg_fail(1)) SWIG_fail;
39463 {
39464 arg2 = (bool)(SWIG_As_bool(obj1));
39465 if (SWIG_arg_fail(2)) SWIG_fail;
39466 }
39467 {
39468 PyThreadState* __tstate = wxPyBeginAllowThreads();
39469 (arg1)->Show(arg2);
39470
39471 wxPyEndAllowThreads(__tstate);
39472 if (PyErr_Occurred()) SWIG_fail;
39473 }
39474 Py_INCREF(Py_None); resultobj = Py_None;
39475 return resultobj;
39476 fail:
39477 return NULL;
39478 }
39479
39480
39481 static PyObject *_wrap_SizerItem_IsShown(PyObject *, PyObject *args, PyObject *kwargs) {
39482 PyObject *resultobj;
39483 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39484 bool result;
39485 PyObject * obj0 = 0 ;
39486 char *kwnames[] = {
39487 (char *) "self", NULL
39488 };
39489
39490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail;
39491 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39492 if (SWIG_arg_fail(1)) SWIG_fail;
39493 {
39494 PyThreadState* __tstate = wxPyBeginAllowThreads();
39495 result = (bool)(arg1)->IsShown();
39496
39497 wxPyEndAllowThreads(__tstate);
39498 if (PyErr_Occurred()) SWIG_fail;
39499 }
39500 {
39501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39502 }
39503 return resultobj;
39504 fail:
39505 return NULL;
39506 }
39507
39508
39509 static PyObject *_wrap_SizerItem_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
39510 PyObject *resultobj;
39511 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39512 wxPoint result;
39513 PyObject * obj0 = 0 ;
39514 char *kwnames[] = {
39515 (char *) "self", NULL
39516 };
39517
39518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail;
39519 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39520 if (SWIG_arg_fail(1)) SWIG_fail;
39521 {
39522 PyThreadState* __tstate = wxPyBeginAllowThreads();
39523 result = (arg1)->GetPosition();
39524
39525 wxPyEndAllowThreads(__tstate);
39526 if (PyErr_Occurred()) SWIG_fail;
39527 }
39528 {
39529 wxPoint * resultptr;
39530 resultptr = new wxPoint((wxPoint &)(result));
39531 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
39532 }
39533 return resultobj;
39534 fail:
39535 return NULL;
39536 }
39537
39538
39539 static PyObject *_wrap_SizerItem_GetUserData(PyObject *, PyObject *args, PyObject *kwargs) {
39540 PyObject *resultobj;
39541 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
39542 PyObject *result;
39543 PyObject * obj0 = 0 ;
39544 char *kwnames[] = {
39545 (char *) "self", NULL
39546 };
39547
39548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail;
39549 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39550 if (SWIG_arg_fail(1)) SWIG_fail;
39551 {
39552 PyThreadState* __tstate = wxPyBeginAllowThreads();
39553 result = (PyObject *)wxSizerItem_GetUserData(arg1);
39554
39555 wxPyEndAllowThreads(__tstate);
39556 if (PyErr_Occurred()) SWIG_fail;
39557 }
39558 resultobj = result;
39559 return resultobj;
39560 fail:
39561 return NULL;
39562 }
39563
39564
39565 static PyObject * SizerItem_swigregister(PyObject *, PyObject *args) {
39566 PyObject *obj;
39567 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
39568 SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj);
39569 Py_INCREF(obj);
39570 return Py_BuildValue((char *)"");
39571 }
39572 static PyObject *_wrap_Sizer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) {
39573 PyObject *resultobj;
39574 wxSizer *arg1 = (wxSizer *) 0 ;
39575 PyObject *arg2 = (PyObject *) 0 ;
39576 PyObject * obj0 = 0 ;
39577 PyObject * obj1 = 0 ;
39578 char *kwnames[] = {
39579 (char *) "self",(char *) "_self", NULL
39580 };
39581
39582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
39583 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
39584 if (SWIG_arg_fail(1)) SWIG_fail;
39585 arg2 = obj1;
39586 {
39587 PyThreadState* __tstate = wxPyBeginAllowThreads();
39588 wxSizer__setOORInfo(arg1,arg2);
39589
39590 wxPyEndAllowThreads(__tstate);
39591 if (PyErr_Occurred()) SWIG_fail;
39592 }
39593 Py_INCREF(Py_None); resultobj = Py_None;
39594 return resultobj;
39595 fail:
39596 return NULL;
39597 }
39598
39599
39600 static PyObject *_wrap_Sizer_Add(PyObject *, PyObject *args, PyObject *kwargs) {
39601 PyObject *resultobj;
39602 wxSizer *arg1 = (wxSizer *) 0 ;
39603 PyObject *arg2 = (PyObject *) 0 ;
39604 int arg3 = (int) 0 ;
39605 int arg4 = (int) 0 ;
39606 int arg5 = (int) 0 ;
39607 PyObject *arg6 = (PyObject *) NULL ;
39608 wxSizerItem *result;
39609 PyObject * obj0 = 0 ;
39610 PyObject * obj1 = 0 ;
39611 PyObject * obj2 = 0 ;
39612 PyObject * obj3 = 0 ;
39613 PyObject * obj4 = 0 ;
39614 PyObject * obj5 = 0 ;
39615 char *kwnames[] = {
39616 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
39617 };
39618
39619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
39620 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
39621 if (SWIG_arg_fail(1)) SWIG_fail;
39622 arg2 = obj1;
39623 if (obj2) {
39624 {
39625 arg3 = (int)(SWIG_As_int(obj2));
39626 if (SWIG_arg_fail(3)) SWIG_fail;
39627 }
39628 }
39629 if (obj3) {
39630 {
39631 arg4 = (int)(SWIG_As_int(obj3));
39632 if (SWIG_arg_fail(4)) SWIG_fail;
39633 }
39634 }
39635 if (obj4) {
39636 {
39637 arg5 = (int)(SWIG_As_int(obj4));
39638 if (SWIG_arg_fail(5)) SWIG_fail;
39639 }
39640 }
39641 if (obj5) {
39642 arg6 = obj5;
39643 }
39644 {
39645 PyThreadState* __tstate = wxPyBeginAllowThreads();
39646 result = (wxSizerItem *)wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6);
39647
39648 wxPyEndAllowThreads(__tstate);
39649 if (PyErr_Occurred()) SWIG_fail;
39650 }
39651 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
39652 return resultobj;
39653 fail:
39654 return NULL;
39655 }
39656
39657
39658 static PyObject *_wrap_Sizer_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
39659 PyObject *resultobj;
39660 wxSizer *arg1 = (wxSizer *) 0 ;
39661 int arg2 ;
39662 PyObject *arg3 = (PyObject *) 0 ;
39663 int arg4 = (int) 0 ;
39664 int arg5 = (int) 0 ;
39665 int arg6 = (int) 0 ;
39666 PyObject *arg7 = (PyObject *) NULL ;
39667 wxSizerItem *result;
39668 PyObject * obj0 = 0 ;
39669 PyObject * obj1 = 0 ;
39670 PyObject * obj2 = 0 ;
39671 PyObject * obj3 = 0 ;
39672 PyObject * obj4 = 0 ;
39673 PyObject * obj5 = 0 ;
39674 PyObject * obj6 = 0 ;
39675 char *kwnames[] = {
39676 (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
39677 };
39678
39679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
39680 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
39681 if (SWIG_arg_fail(1)) SWIG_fail;
39682 {
39683 arg2 = (int)(SWIG_As_int(obj1));
39684 if (SWIG_arg_fail(2)) SWIG_fail;
39685 }
39686 arg3 = obj2;
39687 if (obj3) {
39688 {
39689 arg4 = (int)(SWIG_As_int(obj3));
39690 if (SWIG_arg_fail(4)) SWIG_fail;
39691 }
39692 }
39693 if (obj4) {
39694 {
39695 arg5 = (int)(SWIG_As_int(obj4));
39696 if (SWIG_arg_fail(5)) SWIG_fail;
39697 }
39698 }
39699 if (obj5) {
39700 {
39701 arg6 = (int)(SWIG_As_int(obj5));
39702 if (SWIG_arg_fail(6)) SWIG_fail;
39703 }
39704 }
39705 if (obj6) {
39706 arg7 = obj6;
39707 }
39708 {
39709 PyThreadState* __tstate = wxPyBeginAllowThreads();
39710 result = (wxSizerItem *)wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
39711
39712 wxPyEndAllowThreads(__tstate);
39713 if (PyErr_Occurred()) SWIG_fail;
39714 }
39715 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
39716 return resultobj;
39717 fail:
39718 return NULL;
39719 }
39720
39721
39722 static PyObject *_wrap_Sizer_Prepend(PyObject *, PyObject *args, PyObject *kwargs) {
39723 PyObject *resultobj;
39724 wxSizer *arg1 = (wxSizer *) 0 ;
39725 PyObject *arg2 = (PyObject *) 0 ;
39726 int arg3 = (int) 0 ;
39727 int arg4 = (int) 0 ;
39728 int arg5 = (int) 0 ;
39729 PyObject *arg6 = (PyObject *) NULL ;
39730 wxSizerItem *result;
39731 PyObject * obj0 = 0 ;
39732 PyObject * obj1 = 0 ;
39733 PyObject * obj2 = 0 ;
39734 PyObject * obj3 = 0 ;
39735 PyObject * obj4 = 0 ;
39736 PyObject * obj5 = 0 ;
39737 char *kwnames[] = {
39738 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
39739 };
39740
39741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
39742 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
39743 if (SWIG_arg_fail(1)) SWIG_fail;
39744 arg2 = obj1;
39745 if (obj2) {
39746 {
39747 arg3 = (int)(SWIG_As_int(obj2));
39748 if (SWIG_arg_fail(3)) SWIG_fail;
39749 }
39750 }
39751 if (obj3) {
39752 {
39753 arg4 = (int)(SWIG_As_int(obj3));
39754 if (SWIG_arg_fail(4)) SWIG_fail;
39755 }
39756 }
39757 if (obj4) {
39758 {
39759 arg5 = (int)(SWIG_As_int(obj4));
39760 if (SWIG_arg_fail(5)) SWIG_fail;
39761 }
39762 }
39763 if (obj5) {
39764 arg6 = obj5;
39765 }
39766 {
39767 PyThreadState* __tstate = wxPyBeginAllowThreads();
39768 result = (wxSizerItem *)wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6);
39769
39770 wxPyEndAllowThreads(__tstate);
39771 if (PyErr_Occurred()) SWIG_fail;
39772 }
39773 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
39774 return resultobj;
39775 fail:
39776 return NULL;
39777 }
39778
39779
39780 static PyObject *_wrap_Sizer_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
39781 PyObject *resultobj;
39782 wxSizer *arg1 = (wxSizer *) 0 ;
39783 PyObject *arg2 = (PyObject *) 0 ;
39784 bool result;
39785 PyObject * obj0 = 0 ;
39786 PyObject * obj1 = 0 ;
39787 char *kwnames[] = {
39788 (char *) "self",(char *) "item", NULL
39789 };
39790
39791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail;
39792 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
39793 if (SWIG_arg_fail(1)) SWIG_fail;
39794 arg2 = obj1;
39795 {
39796 PyThreadState* __tstate = wxPyBeginAllowThreads();
39797 result = (bool)wxSizer_Remove(arg1,arg2);
39798
39799 wxPyEndAllowThreads(__tstate);
39800 if (PyErr_Occurred()) SWIG_fail;
39801 }
39802 {
39803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39804 }
39805 return resultobj;
39806 fail:
39807 return NULL;
39808 }
39809
39810
39811 static PyObject *_wrap_Sizer_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
39812 PyObject *resultobj;
39813 wxSizer *arg1 = (wxSizer *) 0 ;
39814 PyObject *arg2 = (PyObject *) 0 ;
39815 bool result;
39816 PyObject * obj0 = 0 ;
39817 PyObject * obj1 = 0 ;
39818 char *kwnames[] = {
39819 (char *) "self",(char *) "item", NULL
39820 };
39821
39822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail;
39823 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
39824 if (SWIG_arg_fail(1)) SWIG_fail;
39825 arg2 = obj1;
39826 {
39827 PyThreadState* __tstate = wxPyBeginAllowThreads();
39828 result = (bool)wxSizer_Detach(arg1,arg2);
39829
39830 wxPyEndAllowThreads(__tstate);
39831 if (PyErr_Occurred()) SWIG_fail;
39832 }
39833 {
39834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39835 }
39836 return resultobj;
39837 fail:
39838 return NULL;
39839 }
39840
39841
39842 static PyObject *_wrap_Sizer_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
39843 PyObject *resultobj;
39844 wxSizer *arg1 = (wxSizer *) 0 ;
39845 PyObject *arg2 = (PyObject *) 0 ;
39846 wxSizerItem *result;
39847 PyObject * obj0 = 0 ;
39848 PyObject * obj1 = 0 ;
39849 char *kwnames[] = {
39850 (char *) "self",(char *) "item", NULL
39851 };
39852
39853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_GetItem",kwnames,&obj0,&obj1)) goto fail;
39854 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
39855 if (SWIG_arg_fail(1)) SWIG_fail;
39856 arg2 = obj1;
39857 {
39858 PyThreadState* __tstate = wxPyBeginAllowThreads();
39859 result = (wxSizerItem *)wxSizer_GetItem(arg1,arg2);
39860
39861 wxPyEndAllowThreads(__tstate);
39862 if (PyErr_Occurred()) SWIG_fail;
39863 }
39864 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
39865 return resultobj;
39866 fail:
39867 return NULL;
39868 }
39869
39870
39871 static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
39872 PyObject *resultobj;
39873 wxSizer *arg1 = (wxSizer *) 0 ;
39874 PyObject *arg2 = (PyObject *) 0 ;
39875 wxSize *arg3 = 0 ;
39876 wxSize temp3 ;
39877 PyObject * obj0 = 0 ;
39878 PyObject * obj1 = 0 ;
39879 PyObject * obj2 = 0 ;
39880 char *kwnames[] = {
39881 (char *) "self",(char *) "item",(char *) "size", NULL
39882 };
39883
39884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
39885 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
39886 if (SWIG_arg_fail(1)) SWIG_fail;
39887 arg2 = obj1;
39888 {
39889 arg3 = &temp3;
39890 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
39891 }
39892 {
39893 PyThreadState* __tstate = wxPyBeginAllowThreads();
39894 wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3);
39895
39896 wxPyEndAllowThreads(__tstate);
39897 if (PyErr_Occurred()) SWIG_fail;
39898 }
39899 Py_INCREF(Py_None); resultobj = Py_None;
39900 return resultobj;
39901 fail:
39902 return NULL;
39903 }
39904
39905
39906 static PyObject *_wrap_Sizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) {
39907 PyObject *resultobj;
39908 wxSizer *arg1 = (wxSizer *) 0 ;
39909 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
39910 wxSizerItem *result;
39911 PyObject * obj0 = 0 ;
39912 PyObject * obj1 = 0 ;
39913 char *kwnames[] = {
39914 (char *) "self",(char *) "item", NULL
39915 };
39916
39917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
39918 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
39919 if (SWIG_arg_fail(1)) SWIG_fail;
39920 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39921 if (SWIG_arg_fail(2)) SWIG_fail;
39922 {
39923 PyThreadState* __tstate = wxPyBeginAllowThreads();
39924 result = (wxSizerItem *)(arg1)->Add(arg2);
39925
39926 wxPyEndAllowThreads(__tstate);
39927 if (PyErr_Occurred()) SWIG_fail;
39928 }
39929 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
39930 return resultobj;
39931 fail:
39932 return NULL;
39933 }
39934
39935
39936 static PyObject *_wrap_Sizer_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
39937 PyObject *resultobj;
39938 wxSizer *arg1 = (wxSizer *) 0 ;
39939 size_t arg2 ;
39940 wxSizerItem *arg3 = (wxSizerItem *) 0 ;
39941 wxSizerItem *result;
39942 PyObject * obj0 = 0 ;
39943 PyObject * obj1 = 0 ;
39944 PyObject * obj2 = 0 ;
39945 char *kwnames[] = {
39946 (char *) "self",(char *) "index",(char *) "item", NULL
39947 };
39948
39949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
39950 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
39951 if (SWIG_arg_fail(1)) SWIG_fail;
39952 {
39953 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
39954 if (SWIG_arg_fail(2)) SWIG_fail;
39955 }
39956 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39957 if (SWIG_arg_fail(3)) SWIG_fail;
39958 {
39959 PyThreadState* __tstate = wxPyBeginAllowThreads();
39960 result = (wxSizerItem *)(arg1)->Insert(arg2,arg3);
39961
39962 wxPyEndAllowThreads(__tstate);
39963 if (PyErr_Occurred()) SWIG_fail;
39964 }
39965 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
39966 return resultobj;
39967 fail:
39968 return NULL;
39969 }
39970
39971
39972 static PyObject *_wrap_Sizer_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) {
39973 PyObject *resultobj;
39974 wxSizer *arg1 = (wxSizer *) 0 ;
39975 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
39976 wxSizerItem *result;
39977 PyObject * obj0 = 0 ;
39978 PyObject * obj1 = 0 ;
39979 char *kwnames[] = {
39980 (char *) "self",(char *) "item", NULL
39981 };
39982
39983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail;
39984 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
39985 if (SWIG_arg_fail(1)) SWIG_fail;
39986 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizerItem, SWIG_POINTER_EXCEPTION | 0);
39987 if (SWIG_arg_fail(2)) SWIG_fail;
39988 {
39989 PyThreadState* __tstate = wxPyBeginAllowThreads();
39990 result = (wxSizerItem *)(arg1)->Prepend(arg2);
39991
39992 wxPyEndAllowThreads(__tstate);
39993 if (PyErr_Occurred()) SWIG_fail;
39994 }
39995 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0);
39996 return resultobj;
39997 fail:
39998 return NULL;
39999 }
40000
40001
40002 static PyObject *_wrap_Sizer_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) {
40003 PyObject *resultobj;
40004 wxSizer *arg1 = (wxSizer *) 0 ;
40005 int arg2 ;
40006 int arg3 ;
40007 int arg4 ;
40008 int arg5 ;
40009 PyObject * obj0 = 0 ;
40010 PyObject * obj1 = 0 ;
40011 PyObject * obj2 = 0 ;
40012 PyObject * obj3 = 0 ;
40013 PyObject * obj4 = 0 ;
40014 char *kwnames[] = {
40015 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
40016 };
40017
40018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
40019 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40020 if (SWIG_arg_fail(1)) SWIG_fail;
40021 {
40022 arg2 = (int)(SWIG_As_int(obj1));
40023 if (SWIG_arg_fail(2)) SWIG_fail;
40024 }
40025 {
40026 arg3 = (int)(SWIG_As_int(obj2));
40027 if (SWIG_arg_fail(3)) SWIG_fail;
40028 }
40029 {
40030 arg4 = (int)(SWIG_As_int(obj3));
40031 if (SWIG_arg_fail(4)) SWIG_fail;
40032 }
40033 {
40034 arg5 = (int)(SWIG_As_int(obj4));
40035 if (SWIG_arg_fail(5)) SWIG_fail;
40036 }
40037 {
40038 PyThreadState* __tstate = wxPyBeginAllowThreads();
40039 (arg1)->SetDimension(arg2,arg3,arg4,arg5);
40040
40041 wxPyEndAllowThreads(__tstate);
40042 if (PyErr_Occurred()) SWIG_fail;
40043 }
40044 Py_INCREF(Py_None); resultobj = Py_None;
40045 return resultobj;
40046 fail:
40047 return NULL;
40048 }
40049
40050
40051 static PyObject *_wrap_Sizer_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
40052 PyObject *resultobj;
40053 wxSizer *arg1 = (wxSizer *) 0 ;
40054 wxSize *arg2 = 0 ;
40055 wxSize temp2 ;
40056 PyObject * obj0 = 0 ;
40057 PyObject * obj1 = 0 ;
40058 char *kwnames[] = {
40059 (char *) "self",(char *) "size", NULL
40060 };
40061
40062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
40063 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40064 if (SWIG_arg_fail(1)) SWIG_fail;
40065 {
40066 arg2 = &temp2;
40067 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
40068 }
40069 {
40070 PyThreadState* __tstate = wxPyBeginAllowThreads();
40071 (arg1)->SetMinSize((wxSize const &)*arg2);
40072
40073 wxPyEndAllowThreads(__tstate);
40074 if (PyErr_Occurred()) SWIG_fail;
40075 }
40076 Py_INCREF(Py_None); resultobj = Py_None;
40077 return resultobj;
40078 fail:
40079 return NULL;
40080 }
40081
40082
40083 static PyObject *_wrap_Sizer_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
40084 PyObject *resultobj;
40085 wxSizer *arg1 = (wxSizer *) 0 ;
40086 wxSize result;
40087 PyObject * obj0 = 0 ;
40088 char *kwnames[] = {
40089 (char *) "self", NULL
40090 };
40091
40092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail;
40093 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40094 if (SWIG_arg_fail(1)) SWIG_fail;
40095 {
40096 PyThreadState* __tstate = wxPyBeginAllowThreads();
40097 result = (arg1)->GetSize();
40098
40099 wxPyEndAllowThreads(__tstate);
40100 if (PyErr_Occurred()) SWIG_fail;
40101 }
40102 {
40103 wxSize * resultptr;
40104 resultptr = new wxSize((wxSize &)(result));
40105 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
40106 }
40107 return resultobj;
40108 fail:
40109 return NULL;
40110 }
40111
40112
40113 static PyObject *_wrap_Sizer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
40114 PyObject *resultobj;
40115 wxSizer *arg1 = (wxSizer *) 0 ;
40116 wxPoint result;
40117 PyObject * obj0 = 0 ;
40118 char *kwnames[] = {
40119 (char *) "self", NULL
40120 };
40121
40122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail;
40123 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40124 if (SWIG_arg_fail(1)) SWIG_fail;
40125 {
40126 PyThreadState* __tstate = wxPyBeginAllowThreads();
40127 result = (arg1)->GetPosition();
40128
40129 wxPyEndAllowThreads(__tstate);
40130 if (PyErr_Occurred()) SWIG_fail;
40131 }
40132 {
40133 wxPoint * resultptr;
40134 resultptr = new wxPoint((wxPoint &)(result));
40135 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
40136 }
40137 return resultobj;
40138 fail:
40139 return NULL;
40140 }
40141
40142
40143 static PyObject *_wrap_Sizer_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
40144 PyObject *resultobj;
40145 wxSizer *arg1 = (wxSizer *) 0 ;
40146 wxSize result;
40147 PyObject * obj0 = 0 ;
40148 char *kwnames[] = {
40149 (char *) "self", NULL
40150 };
40151
40152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail;
40153 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40154 if (SWIG_arg_fail(1)) SWIG_fail;
40155 {
40156 PyThreadState* __tstate = wxPyBeginAllowThreads();
40157 result = (arg1)->GetMinSize();
40158
40159 wxPyEndAllowThreads(__tstate);
40160 if (PyErr_Occurred()) SWIG_fail;
40161 }
40162 {
40163 wxSize * resultptr;
40164 resultptr = new wxSize((wxSize &)(result));
40165 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
40166 }
40167 return resultobj;
40168 fail:
40169 return NULL;
40170 }
40171
40172
40173 static PyObject *_wrap_Sizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
40174 PyObject *resultobj;
40175 wxSizer *arg1 = (wxSizer *) 0 ;
40176 PyObject * obj0 = 0 ;
40177 char *kwnames[] = {
40178 (char *) "self", NULL
40179 };
40180
40181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail;
40182 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40183 if (SWIG_arg_fail(1)) SWIG_fail;
40184 {
40185 PyThreadState* __tstate = wxPyBeginAllowThreads();
40186 (arg1)->RecalcSizes();
40187
40188 wxPyEndAllowThreads(__tstate);
40189 if (PyErr_Occurred()) SWIG_fail;
40190 }
40191 Py_INCREF(Py_None); resultobj = Py_None;
40192 return resultobj;
40193 fail:
40194 return NULL;
40195 }
40196
40197
40198 static PyObject *_wrap_Sizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
40199 PyObject *resultobj;
40200 wxSizer *arg1 = (wxSizer *) 0 ;
40201 wxSize result;
40202 PyObject * obj0 = 0 ;
40203 char *kwnames[] = {
40204 (char *) "self", NULL
40205 };
40206
40207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail;
40208 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40209 if (SWIG_arg_fail(1)) SWIG_fail;
40210 {
40211 PyThreadState* __tstate = wxPyBeginAllowThreads();
40212 result = (arg1)->CalcMin();
40213
40214 wxPyEndAllowThreads(__tstate);
40215 if (PyErr_Occurred()) SWIG_fail;
40216 }
40217 {
40218 wxSize * resultptr;
40219 resultptr = new wxSize((wxSize &)(result));
40220 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
40221 }
40222 return resultobj;
40223 fail:
40224 return NULL;
40225 }
40226
40227
40228 static PyObject *_wrap_Sizer_Layout(PyObject *, PyObject *args, PyObject *kwargs) {
40229 PyObject *resultobj;
40230 wxSizer *arg1 = (wxSizer *) 0 ;
40231 PyObject * obj0 = 0 ;
40232 char *kwnames[] = {
40233 (char *) "self", NULL
40234 };
40235
40236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail;
40237 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40238 if (SWIG_arg_fail(1)) SWIG_fail;
40239 {
40240 PyThreadState* __tstate = wxPyBeginAllowThreads();
40241 (arg1)->Layout();
40242
40243 wxPyEndAllowThreads(__tstate);
40244 if (PyErr_Occurred()) SWIG_fail;
40245 }
40246 Py_INCREF(Py_None); resultobj = Py_None;
40247 return resultobj;
40248 fail:
40249 return NULL;
40250 }
40251
40252
40253 static PyObject *_wrap_Sizer_Fit(PyObject *, PyObject *args, PyObject *kwargs) {
40254 PyObject *resultobj;
40255 wxSizer *arg1 = (wxSizer *) 0 ;
40256 wxWindow *arg2 = (wxWindow *) 0 ;
40257 wxSize result;
40258 PyObject * obj0 = 0 ;
40259 PyObject * obj1 = 0 ;
40260 char *kwnames[] = {
40261 (char *) "self",(char *) "window", NULL
40262 };
40263
40264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail;
40265 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40266 if (SWIG_arg_fail(1)) SWIG_fail;
40267 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
40268 if (SWIG_arg_fail(2)) SWIG_fail;
40269 {
40270 PyThreadState* __tstate = wxPyBeginAllowThreads();
40271 result = (arg1)->Fit(arg2);
40272
40273 wxPyEndAllowThreads(__tstate);
40274 if (PyErr_Occurred()) SWIG_fail;
40275 }
40276 {
40277 wxSize * resultptr;
40278 resultptr = new wxSize((wxSize &)(result));
40279 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
40280 }
40281 return resultobj;
40282 fail:
40283 return NULL;
40284 }
40285
40286
40287 static PyObject *_wrap_Sizer_FitInside(PyObject *, PyObject *args, PyObject *kwargs) {
40288 PyObject *resultobj;
40289 wxSizer *arg1 = (wxSizer *) 0 ;
40290 wxWindow *arg2 = (wxWindow *) 0 ;
40291 PyObject * obj0 = 0 ;
40292 PyObject * obj1 = 0 ;
40293 char *kwnames[] = {
40294 (char *) "self",(char *) "window", NULL
40295 };
40296
40297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail;
40298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40299 if (SWIG_arg_fail(1)) SWIG_fail;
40300 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
40301 if (SWIG_arg_fail(2)) SWIG_fail;
40302 {
40303 PyThreadState* __tstate = wxPyBeginAllowThreads();
40304 (arg1)->FitInside(arg2);
40305
40306 wxPyEndAllowThreads(__tstate);
40307 if (PyErr_Occurred()) SWIG_fail;
40308 }
40309 Py_INCREF(Py_None); resultobj = Py_None;
40310 return resultobj;
40311 fail:
40312 return NULL;
40313 }
40314
40315
40316 static PyObject *_wrap_Sizer_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) {
40317 PyObject *resultobj;
40318 wxSizer *arg1 = (wxSizer *) 0 ;
40319 wxWindow *arg2 = (wxWindow *) 0 ;
40320 PyObject * obj0 = 0 ;
40321 PyObject * obj1 = 0 ;
40322 char *kwnames[] = {
40323 (char *) "self",(char *) "window", NULL
40324 };
40325
40326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail;
40327 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40328 if (SWIG_arg_fail(1)) SWIG_fail;
40329 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
40330 if (SWIG_arg_fail(2)) SWIG_fail;
40331 {
40332 PyThreadState* __tstate = wxPyBeginAllowThreads();
40333 (arg1)->SetSizeHints(arg2);
40334
40335 wxPyEndAllowThreads(__tstate);
40336 if (PyErr_Occurred()) SWIG_fail;
40337 }
40338 Py_INCREF(Py_None); resultobj = Py_None;
40339 return resultobj;
40340 fail:
40341 return NULL;
40342 }
40343
40344
40345 static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) {
40346 PyObject *resultobj;
40347 wxSizer *arg1 = (wxSizer *) 0 ;
40348 wxWindow *arg2 = (wxWindow *) 0 ;
40349 PyObject * obj0 = 0 ;
40350 PyObject * obj1 = 0 ;
40351 char *kwnames[] = {
40352 (char *) "self",(char *) "window", NULL
40353 };
40354
40355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail;
40356 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40357 if (SWIG_arg_fail(1)) SWIG_fail;
40358 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
40359 if (SWIG_arg_fail(2)) SWIG_fail;
40360 {
40361 PyThreadState* __tstate = wxPyBeginAllowThreads();
40362 (arg1)->SetVirtualSizeHints(arg2);
40363
40364 wxPyEndAllowThreads(__tstate);
40365 if (PyErr_Occurred()) SWIG_fail;
40366 }
40367 Py_INCREF(Py_None); resultobj = Py_None;
40368 return resultobj;
40369 fail:
40370 return NULL;
40371 }
40372
40373
40374 static PyObject *_wrap_Sizer_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
40375 PyObject *resultobj;
40376 wxSizer *arg1 = (wxSizer *) 0 ;
40377 bool arg2 = (bool) false ;
40378 PyObject * obj0 = 0 ;
40379 PyObject * obj1 = 0 ;
40380 char *kwnames[] = {
40381 (char *) "self",(char *) "deleteWindows", NULL
40382 };
40383
40384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail;
40385 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40386 if (SWIG_arg_fail(1)) SWIG_fail;
40387 if (obj1) {
40388 {
40389 arg2 = (bool)(SWIG_As_bool(obj1));
40390 if (SWIG_arg_fail(2)) SWIG_fail;
40391 }
40392 }
40393 {
40394 PyThreadState* __tstate = wxPyBeginAllowThreads();
40395 (arg1)->Clear(arg2);
40396
40397 wxPyEndAllowThreads(__tstate);
40398 if (PyErr_Occurred()) SWIG_fail;
40399 }
40400 Py_INCREF(Py_None); resultobj = Py_None;
40401 return resultobj;
40402 fail:
40403 return NULL;
40404 }
40405
40406
40407 static PyObject *_wrap_Sizer_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) {
40408 PyObject *resultobj;
40409 wxSizer *arg1 = (wxSizer *) 0 ;
40410 PyObject * obj0 = 0 ;
40411 char *kwnames[] = {
40412 (char *) "self", NULL
40413 };
40414
40415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail;
40416 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40417 if (SWIG_arg_fail(1)) SWIG_fail;
40418 {
40419 PyThreadState* __tstate = wxPyBeginAllowThreads();
40420 (arg1)->DeleteWindows();
40421
40422 wxPyEndAllowThreads(__tstate);
40423 if (PyErr_Occurred()) SWIG_fail;
40424 }
40425 Py_INCREF(Py_None); resultobj = Py_None;
40426 return resultobj;
40427 fail:
40428 return NULL;
40429 }
40430
40431
40432 static PyObject *_wrap_Sizer_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) {
40433 PyObject *resultobj;
40434 wxSizer *arg1 = (wxSizer *) 0 ;
40435 PyObject *result;
40436 PyObject * obj0 = 0 ;
40437 char *kwnames[] = {
40438 (char *) "self", NULL
40439 };
40440
40441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail;
40442 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40443 if (SWIG_arg_fail(1)) SWIG_fail;
40444 {
40445 PyThreadState* __tstate = wxPyBeginAllowThreads();
40446 result = (PyObject *)wxSizer_GetChildren(arg1);
40447
40448 wxPyEndAllowThreads(__tstate);
40449 if (PyErr_Occurred()) SWIG_fail;
40450 }
40451 resultobj = result;
40452 return resultobj;
40453 fail:
40454 return NULL;
40455 }
40456
40457
40458 static PyObject *_wrap_Sizer_Show(PyObject *, PyObject *args, PyObject *kwargs) {
40459 PyObject *resultobj;
40460 wxSizer *arg1 = (wxSizer *) 0 ;
40461 PyObject *arg2 = (PyObject *) 0 ;
40462 bool arg3 = (bool) true ;
40463 bool arg4 = (bool) false ;
40464 bool result;
40465 PyObject * obj0 = 0 ;
40466 PyObject * obj1 = 0 ;
40467 PyObject * obj2 = 0 ;
40468 PyObject * obj3 = 0 ;
40469 char *kwnames[] = {
40470 (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL
40471 };
40472
40473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
40474 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40475 if (SWIG_arg_fail(1)) SWIG_fail;
40476 arg2 = obj1;
40477 if (obj2) {
40478 {
40479 arg3 = (bool)(SWIG_As_bool(obj2));
40480 if (SWIG_arg_fail(3)) SWIG_fail;
40481 }
40482 }
40483 if (obj3) {
40484 {
40485 arg4 = (bool)(SWIG_As_bool(obj3));
40486 if (SWIG_arg_fail(4)) SWIG_fail;
40487 }
40488 }
40489 {
40490 PyThreadState* __tstate = wxPyBeginAllowThreads();
40491 result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4);
40492
40493 wxPyEndAllowThreads(__tstate);
40494 if (PyErr_Occurred()) SWIG_fail;
40495 }
40496 {
40497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40498 }
40499 return resultobj;
40500 fail:
40501 return NULL;
40502 }
40503
40504
40505 static PyObject *_wrap_Sizer_IsShown(PyObject *, PyObject *args, PyObject *kwargs) {
40506 PyObject *resultobj;
40507 wxSizer *arg1 = (wxSizer *) 0 ;
40508 PyObject *arg2 = (PyObject *) 0 ;
40509 bool result;
40510 PyObject * obj0 = 0 ;
40511 PyObject * obj1 = 0 ;
40512 char *kwnames[] = {
40513 (char *) "self",(char *) "item", NULL
40514 };
40515
40516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail;
40517 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40518 if (SWIG_arg_fail(1)) SWIG_fail;
40519 arg2 = obj1;
40520 {
40521 PyThreadState* __tstate = wxPyBeginAllowThreads();
40522 result = (bool)wxSizer_IsShown(arg1,arg2);
40523
40524 wxPyEndAllowThreads(__tstate);
40525 if (PyErr_Occurred()) SWIG_fail;
40526 }
40527 {
40528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40529 }
40530 return resultobj;
40531 fail:
40532 return NULL;
40533 }
40534
40535
40536 static PyObject *_wrap_Sizer_ShowItems(PyObject *, PyObject *args, PyObject *kwargs) {
40537 PyObject *resultobj;
40538 wxSizer *arg1 = (wxSizer *) 0 ;
40539 bool arg2 ;
40540 PyObject * obj0 = 0 ;
40541 PyObject * obj1 = 0 ;
40542 char *kwnames[] = {
40543 (char *) "self",(char *) "show", NULL
40544 };
40545
40546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail;
40547 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
40548 if (SWIG_arg_fail(1)) SWIG_fail;
40549 {
40550 arg2 = (bool)(SWIG_As_bool(obj1));
40551 if (SWIG_arg_fail(2)) SWIG_fail;
40552 }
40553 {
40554 PyThreadState* __tstate = wxPyBeginAllowThreads();
40555 (arg1)->ShowItems(arg2);
40556
40557 wxPyEndAllowThreads(__tstate);
40558 if (PyErr_Occurred()) SWIG_fail;
40559 }
40560 Py_INCREF(Py_None); resultobj = Py_None;
40561 return resultobj;
40562 fail:
40563 return NULL;
40564 }
40565
40566
40567 static PyObject * Sizer_swigregister(PyObject *, PyObject *args) {
40568 PyObject *obj;
40569 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
40570 SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj);
40571 Py_INCREF(obj);
40572 return Py_BuildValue((char *)"");
40573 }
40574 static PyObject *_wrap_new_PySizer(PyObject *, PyObject *args, PyObject *kwargs) {
40575 PyObject *resultobj;
40576 wxPySizer *result;
40577 char *kwnames[] = {
40578 NULL
40579 };
40580
40581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail;
40582 {
40583 PyThreadState* __tstate = wxPyBeginAllowThreads();
40584 result = (wxPySizer *)new wxPySizer();
40585
40586 wxPyEndAllowThreads(__tstate);
40587 if (PyErr_Occurred()) SWIG_fail;
40588 }
40589 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1);
40590 return resultobj;
40591 fail:
40592 return NULL;
40593 }
40594
40595
40596 static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
40597 PyObject *resultobj;
40598 wxPySizer *arg1 = (wxPySizer *) 0 ;
40599 PyObject *arg2 = (PyObject *) 0 ;
40600 PyObject *arg3 = (PyObject *) 0 ;
40601 PyObject * obj0 = 0 ;
40602 PyObject * obj1 = 0 ;
40603 PyObject * obj2 = 0 ;
40604 char *kwnames[] = {
40605 (char *) "self",(char *) "self",(char *) "_class", NULL
40606 };
40607
40608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
40609 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPySizer, SWIG_POINTER_EXCEPTION | 0);
40610 if (SWIG_arg_fail(1)) SWIG_fail;
40611 arg2 = obj1;
40612 arg3 = obj2;
40613 {
40614 PyThreadState* __tstate = wxPyBeginAllowThreads();
40615 (arg1)->_setCallbackInfo(arg2,arg3);
40616
40617 wxPyEndAllowThreads(__tstate);
40618 if (PyErr_Occurred()) SWIG_fail;
40619 }
40620 Py_INCREF(Py_None); resultobj = Py_None;
40621 return resultobj;
40622 fail:
40623 return NULL;
40624 }
40625
40626
40627 static PyObject * PySizer_swigregister(PyObject *, PyObject *args) {
40628 PyObject *obj;
40629 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
40630 SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj);
40631 Py_INCREF(obj);
40632 return Py_BuildValue((char *)"");
40633 }
40634 static PyObject *_wrap_new_BoxSizer(PyObject *, PyObject *args, PyObject *kwargs) {
40635 PyObject *resultobj;
40636 int arg1 = (int) wxHORIZONTAL ;
40637 wxBoxSizer *result;
40638 PyObject * obj0 = 0 ;
40639 char *kwnames[] = {
40640 (char *) "orient", NULL
40641 };
40642
40643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail;
40644 if (obj0) {
40645 {
40646 arg1 = (int)(SWIG_As_int(obj0));
40647 if (SWIG_arg_fail(1)) SWIG_fail;
40648 }
40649 }
40650 {
40651 PyThreadState* __tstate = wxPyBeginAllowThreads();
40652 result = (wxBoxSizer *)new wxBoxSizer(arg1);
40653
40654 wxPyEndAllowThreads(__tstate);
40655 if (PyErr_Occurred()) SWIG_fail;
40656 }
40657 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1);
40658 return resultobj;
40659 fail:
40660 return NULL;
40661 }
40662
40663
40664 static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
40665 PyObject *resultobj;
40666 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
40667 int result;
40668 PyObject * obj0 = 0 ;
40669 char *kwnames[] = {
40670 (char *) "self", NULL
40671 };
40672
40673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail;
40674 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBoxSizer, SWIG_POINTER_EXCEPTION | 0);
40675 if (SWIG_arg_fail(1)) SWIG_fail;
40676 {
40677 PyThreadState* __tstate = wxPyBeginAllowThreads();
40678 result = (int)(arg1)->GetOrientation();
40679
40680 wxPyEndAllowThreads(__tstate);
40681 if (PyErr_Occurred()) SWIG_fail;
40682 }
40683 {
40684 resultobj = SWIG_From_int((int)(result));
40685 }
40686 return resultobj;
40687 fail:
40688 return NULL;
40689 }
40690
40691
40692 static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
40693 PyObject *resultobj;
40694 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
40695 int arg2 ;
40696 PyObject * obj0 = 0 ;
40697 PyObject * obj1 = 0 ;
40698 char *kwnames[] = {
40699 (char *) "self",(char *) "orient", NULL
40700 };
40701
40702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
40703 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBoxSizer, SWIG_POINTER_EXCEPTION | 0);
40704 if (SWIG_arg_fail(1)) SWIG_fail;
40705 {
40706 arg2 = (int)(SWIG_As_int(obj1));
40707 if (SWIG_arg_fail(2)) SWIG_fail;
40708 }
40709 {
40710 PyThreadState* __tstate = wxPyBeginAllowThreads();
40711 (arg1)->SetOrientation(arg2);
40712
40713 wxPyEndAllowThreads(__tstate);
40714 if (PyErr_Occurred()) SWIG_fail;
40715 }
40716 Py_INCREF(Py_None); resultobj = Py_None;
40717 return resultobj;
40718 fail:
40719 return NULL;
40720 }
40721
40722
40723 static PyObject * BoxSizer_swigregister(PyObject *, PyObject *args) {
40724 PyObject *obj;
40725 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
40726 SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj);
40727 Py_INCREF(obj);
40728 return Py_BuildValue((char *)"");
40729 }
40730 static PyObject *_wrap_new_StaticBoxSizer(PyObject *, PyObject *args, PyObject *kwargs) {
40731 PyObject *resultobj;
40732 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
40733 int arg2 = (int) wxHORIZONTAL ;
40734 wxStaticBoxSizer *result;
40735 PyObject * obj0 = 0 ;
40736 PyObject * obj1 = 0 ;
40737 char *kwnames[] = {
40738 (char *) "box",(char *) "orient", NULL
40739 };
40740
40741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail;
40742 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBox, SWIG_POINTER_EXCEPTION | 0);
40743 if (SWIG_arg_fail(1)) SWIG_fail;
40744 if (obj1) {
40745 {
40746 arg2 = (int)(SWIG_As_int(obj1));
40747 if (SWIG_arg_fail(2)) SWIG_fail;
40748 }
40749 }
40750 {
40751 PyThreadState* __tstate = wxPyBeginAllowThreads();
40752 result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2);
40753
40754 wxPyEndAllowThreads(__tstate);
40755 if (PyErr_Occurred()) SWIG_fail;
40756 }
40757 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1);
40758 return resultobj;
40759 fail:
40760 return NULL;
40761 }
40762
40763
40764 static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
40765 PyObject *resultobj;
40766 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
40767 wxStaticBox *result;
40768 PyObject * obj0 = 0 ;
40769 char *kwnames[] = {
40770 (char *) "self", NULL
40771 };
40772
40773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail;
40774 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBoxSizer, SWIG_POINTER_EXCEPTION | 0);
40775 if (SWIG_arg_fail(1)) SWIG_fail;
40776 {
40777 PyThreadState* __tstate = wxPyBeginAllowThreads();
40778 result = (wxStaticBox *)(arg1)->GetStaticBox();
40779
40780 wxPyEndAllowThreads(__tstate);
40781 if (PyErr_Occurred()) SWIG_fail;
40782 }
40783 {
40784 resultobj = wxPyMake_wxObject(result, 0);
40785 }
40786 return resultobj;
40787 fail:
40788 return NULL;
40789 }
40790
40791
40792 static PyObject * StaticBoxSizer_swigregister(PyObject *, PyObject *args) {
40793 PyObject *obj;
40794 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
40795 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj);
40796 Py_INCREF(obj);
40797 return Py_BuildValue((char *)"");
40798 }
40799 static PyObject *_wrap_new_GridSizer(PyObject *, PyObject *args, PyObject *kwargs) {
40800 PyObject *resultobj;
40801 int arg1 = (int) 1 ;
40802 int arg2 = (int) 0 ;
40803 int arg3 = (int) 0 ;
40804 int arg4 = (int) 0 ;
40805 wxGridSizer *result;
40806 PyObject * obj0 = 0 ;
40807 PyObject * obj1 = 0 ;
40808 PyObject * obj2 = 0 ;
40809 PyObject * obj3 = 0 ;
40810 char *kwnames[] = {
40811 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
40812 };
40813
40814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
40815 if (obj0) {
40816 {
40817 arg1 = (int)(SWIG_As_int(obj0));
40818 if (SWIG_arg_fail(1)) SWIG_fail;
40819 }
40820 }
40821 if (obj1) {
40822 {
40823 arg2 = (int)(SWIG_As_int(obj1));
40824 if (SWIG_arg_fail(2)) SWIG_fail;
40825 }
40826 }
40827 if (obj2) {
40828 {
40829 arg3 = (int)(SWIG_As_int(obj2));
40830 if (SWIG_arg_fail(3)) SWIG_fail;
40831 }
40832 }
40833 if (obj3) {
40834 {
40835 arg4 = (int)(SWIG_As_int(obj3));
40836 if (SWIG_arg_fail(4)) SWIG_fail;
40837 }
40838 }
40839 {
40840 PyThreadState* __tstate = wxPyBeginAllowThreads();
40841 result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4);
40842
40843 wxPyEndAllowThreads(__tstate);
40844 if (PyErr_Occurred()) SWIG_fail;
40845 }
40846 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1);
40847 return resultobj;
40848 fail:
40849 return NULL;
40850 }
40851
40852
40853 static PyObject *_wrap_GridSizer_SetCols(PyObject *, PyObject *args, PyObject *kwargs) {
40854 PyObject *resultobj;
40855 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
40856 int arg2 ;
40857 PyObject * obj0 = 0 ;
40858 PyObject * obj1 = 0 ;
40859 char *kwnames[] = {
40860 (char *) "self",(char *) "cols", NULL
40861 };
40862
40863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail;
40864 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0);
40865 if (SWIG_arg_fail(1)) SWIG_fail;
40866 {
40867 arg2 = (int)(SWIG_As_int(obj1));
40868 if (SWIG_arg_fail(2)) SWIG_fail;
40869 }
40870 {
40871 PyThreadState* __tstate = wxPyBeginAllowThreads();
40872 (arg1)->SetCols(arg2);
40873
40874 wxPyEndAllowThreads(__tstate);
40875 if (PyErr_Occurred()) SWIG_fail;
40876 }
40877 Py_INCREF(Py_None); resultobj = Py_None;
40878 return resultobj;
40879 fail:
40880 return NULL;
40881 }
40882
40883
40884 static PyObject *_wrap_GridSizer_SetRows(PyObject *, PyObject *args, PyObject *kwargs) {
40885 PyObject *resultobj;
40886 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
40887 int arg2 ;
40888 PyObject * obj0 = 0 ;
40889 PyObject * obj1 = 0 ;
40890 char *kwnames[] = {
40891 (char *) "self",(char *) "rows", NULL
40892 };
40893
40894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail;
40895 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0);
40896 if (SWIG_arg_fail(1)) SWIG_fail;
40897 {
40898 arg2 = (int)(SWIG_As_int(obj1));
40899 if (SWIG_arg_fail(2)) SWIG_fail;
40900 }
40901 {
40902 PyThreadState* __tstate = wxPyBeginAllowThreads();
40903 (arg1)->SetRows(arg2);
40904
40905 wxPyEndAllowThreads(__tstate);
40906 if (PyErr_Occurred()) SWIG_fail;
40907 }
40908 Py_INCREF(Py_None); resultobj = Py_None;
40909 return resultobj;
40910 fail:
40911 return NULL;
40912 }
40913
40914
40915 static PyObject *_wrap_GridSizer_SetVGap(PyObject *, PyObject *args, PyObject *kwargs) {
40916 PyObject *resultobj;
40917 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
40918 int arg2 ;
40919 PyObject * obj0 = 0 ;
40920 PyObject * obj1 = 0 ;
40921 char *kwnames[] = {
40922 (char *) "self",(char *) "gap", NULL
40923 };
40924
40925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail;
40926 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0);
40927 if (SWIG_arg_fail(1)) SWIG_fail;
40928 {
40929 arg2 = (int)(SWIG_As_int(obj1));
40930 if (SWIG_arg_fail(2)) SWIG_fail;
40931 }
40932 {
40933 PyThreadState* __tstate = wxPyBeginAllowThreads();
40934 (arg1)->SetVGap(arg2);
40935
40936 wxPyEndAllowThreads(__tstate);
40937 if (PyErr_Occurred()) SWIG_fail;
40938 }
40939 Py_INCREF(Py_None); resultobj = Py_None;
40940 return resultobj;
40941 fail:
40942 return NULL;
40943 }
40944
40945
40946 static PyObject *_wrap_GridSizer_SetHGap(PyObject *, PyObject *args, PyObject *kwargs) {
40947 PyObject *resultobj;
40948 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
40949 int arg2 ;
40950 PyObject * obj0 = 0 ;
40951 PyObject * obj1 = 0 ;
40952 char *kwnames[] = {
40953 (char *) "self",(char *) "gap", NULL
40954 };
40955
40956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail;
40957 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0);
40958 if (SWIG_arg_fail(1)) SWIG_fail;
40959 {
40960 arg2 = (int)(SWIG_As_int(obj1));
40961 if (SWIG_arg_fail(2)) SWIG_fail;
40962 }
40963 {
40964 PyThreadState* __tstate = wxPyBeginAllowThreads();
40965 (arg1)->SetHGap(arg2);
40966
40967 wxPyEndAllowThreads(__tstate);
40968 if (PyErr_Occurred()) SWIG_fail;
40969 }
40970 Py_INCREF(Py_None); resultobj = Py_None;
40971 return resultobj;
40972 fail:
40973 return NULL;
40974 }
40975
40976
40977 static PyObject *_wrap_GridSizer_GetCols(PyObject *, PyObject *args, PyObject *kwargs) {
40978 PyObject *resultobj;
40979 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
40980 int result;
40981 PyObject * obj0 = 0 ;
40982 char *kwnames[] = {
40983 (char *) "self", NULL
40984 };
40985
40986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail;
40987 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0);
40988 if (SWIG_arg_fail(1)) SWIG_fail;
40989 {
40990 PyThreadState* __tstate = wxPyBeginAllowThreads();
40991 result = (int)(arg1)->GetCols();
40992
40993 wxPyEndAllowThreads(__tstate);
40994 if (PyErr_Occurred()) SWIG_fail;
40995 }
40996 {
40997 resultobj = SWIG_From_int((int)(result));
40998 }
40999 return resultobj;
41000 fail:
41001 return NULL;
41002 }
41003
41004
41005 static PyObject *_wrap_GridSizer_GetRows(PyObject *, PyObject *args, PyObject *kwargs) {
41006 PyObject *resultobj;
41007 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
41008 int result;
41009 PyObject * obj0 = 0 ;
41010 char *kwnames[] = {
41011 (char *) "self", NULL
41012 };
41013
41014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail;
41015 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0);
41016 if (SWIG_arg_fail(1)) SWIG_fail;
41017 {
41018 PyThreadState* __tstate = wxPyBeginAllowThreads();
41019 result = (int)(arg1)->GetRows();
41020
41021 wxPyEndAllowThreads(__tstate);
41022 if (PyErr_Occurred()) SWIG_fail;
41023 }
41024 {
41025 resultobj = SWIG_From_int((int)(result));
41026 }
41027 return resultobj;
41028 fail:
41029 return NULL;
41030 }
41031
41032
41033 static PyObject *_wrap_GridSizer_GetVGap(PyObject *, PyObject *args, PyObject *kwargs) {
41034 PyObject *resultobj;
41035 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
41036 int result;
41037 PyObject * obj0 = 0 ;
41038 char *kwnames[] = {
41039 (char *) "self", NULL
41040 };
41041
41042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail;
41043 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0);
41044 if (SWIG_arg_fail(1)) SWIG_fail;
41045 {
41046 PyThreadState* __tstate = wxPyBeginAllowThreads();
41047 result = (int)(arg1)->GetVGap();
41048
41049 wxPyEndAllowThreads(__tstate);
41050 if (PyErr_Occurred()) SWIG_fail;
41051 }
41052 {
41053 resultobj = SWIG_From_int((int)(result));
41054 }
41055 return resultobj;
41056 fail:
41057 return NULL;
41058 }
41059
41060
41061 static PyObject *_wrap_GridSizer_GetHGap(PyObject *, PyObject *args, PyObject *kwargs) {
41062 PyObject *resultobj;
41063 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
41064 int result;
41065 PyObject * obj0 = 0 ;
41066 char *kwnames[] = {
41067 (char *) "self", NULL
41068 };
41069
41070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail;
41071 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridSizer, SWIG_POINTER_EXCEPTION | 0);
41072 if (SWIG_arg_fail(1)) SWIG_fail;
41073 {
41074 PyThreadState* __tstate = wxPyBeginAllowThreads();
41075 result = (int)(arg1)->GetHGap();
41076
41077 wxPyEndAllowThreads(__tstate);
41078 if (PyErr_Occurred()) SWIG_fail;
41079 }
41080 {
41081 resultobj = SWIG_From_int((int)(result));
41082 }
41083 return resultobj;
41084 fail:
41085 return NULL;
41086 }
41087
41088
41089 static PyObject * GridSizer_swigregister(PyObject *, PyObject *args) {
41090 PyObject *obj;
41091 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
41092 SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj);
41093 Py_INCREF(obj);
41094 return Py_BuildValue((char *)"");
41095 }
41096 static PyObject *_wrap_new_FlexGridSizer(PyObject *, PyObject *args, PyObject *kwargs) {
41097 PyObject *resultobj;
41098 int arg1 = (int) 1 ;
41099 int arg2 = (int) 0 ;
41100 int arg3 = (int) 0 ;
41101 int arg4 = (int) 0 ;
41102 wxFlexGridSizer *result;
41103 PyObject * obj0 = 0 ;
41104 PyObject * obj1 = 0 ;
41105 PyObject * obj2 = 0 ;
41106 PyObject * obj3 = 0 ;
41107 char *kwnames[] = {
41108 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
41109 };
41110
41111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
41112 if (obj0) {
41113 {
41114 arg1 = (int)(SWIG_As_int(obj0));
41115 if (SWIG_arg_fail(1)) SWIG_fail;
41116 }
41117 }
41118 if (obj1) {
41119 {
41120 arg2 = (int)(SWIG_As_int(obj1));
41121 if (SWIG_arg_fail(2)) SWIG_fail;
41122 }
41123 }
41124 if (obj2) {
41125 {
41126 arg3 = (int)(SWIG_As_int(obj2));
41127 if (SWIG_arg_fail(3)) SWIG_fail;
41128 }
41129 }
41130 if (obj3) {
41131 {
41132 arg4 = (int)(SWIG_As_int(obj3));
41133 if (SWIG_arg_fail(4)) SWIG_fail;
41134 }
41135 }
41136 {
41137 PyThreadState* __tstate = wxPyBeginAllowThreads();
41138 result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4);
41139
41140 wxPyEndAllowThreads(__tstate);
41141 if (PyErr_Occurred()) SWIG_fail;
41142 }
41143 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1);
41144 return resultobj;
41145 fail:
41146 return NULL;
41147 }
41148
41149
41150 static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) {
41151 PyObject *resultobj;
41152 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
41153 size_t arg2 ;
41154 int arg3 = (int) 0 ;
41155 PyObject * obj0 = 0 ;
41156 PyObject * obj1 = 0 ;
41157 PyObject * obj2 = 0 ;
41158 char *kwnames[] = {
41159 (char *) "self",(char *) "idx",(char *) "proportion", NULL
41160 };
41161
41162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail;
41163 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0);
41164 if (SWIG_arg_fail(1)) SWIG_fail;
41165 {
41166 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
41167 if (SWIG_arg_fail(2)) SWIG_fail;
41168 }
41169 if (obj2) {
41170 {
41171 arg3 = (int)(SWIG_As_int(obj2));
41172 if (SWIG_arg_fail(3)) SWIG_fail;
41173 }
41174 }
41175 {
41176 PyThreadState* __tstate = wxPyBeginAllowThreads();
41177 (arg1)->AddGrowableRow(arg2,arg3);
41178
41179 wxPyEndAllowThreads(__tstate);
41180 if (PyErr_Occurred()) SWIG_fail;
41181 }
41182 Py_INCREF(Py_None); resultobj = Py_None;
41183 return resultobj;
41184 fail:
41185 return NULL;
41186 }
41187
41188
41189 static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) {
41190 PyObject *resultobj;
41191 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
41192 size_t arg2 ;
41193 PyObject * obj0 = 0 ;
41194 PyObject * obj1 = 0 ;
41195 char *kwnames[] = {
41196 (char *) "self",(char *) "idx", NULL
41197 };
41198
41199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail;
41200 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0);
41201 if (SWIG_arg_fail(1)) SWIG_fail;
41202 {
41203 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
41204 if (SWIG_arg_fail(2)) SWIG_fail;
41205 }
41206 {
41207 PyThreadState* __tstate = wxPyBeginAllowThreads();
41208 (arg1)->RemoveGrowableRow(arg2);
41209
41210 wxPyEndAllowThreads(__tstate);
41211 if (PyErr_Occurred()) SWIG_fail;
41212 }
41213 Py_INCREF(Py_None); resultobj = Py_None;
41214 return resultobj;
41215 fail:
41216 return NULL;
41217 }
41218
41219
41220 static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) {
41221 PyObject *resultobj;
41222 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
41223 size_t arg2 ;
41224 int arg3 = (int) 0 ;
41225 PyObject * obj0 = 0 ;
41226 PyObject * obj1 = 0 ;
41227 PyObject * obj2 = 0 ;
41228 char *kwnames[] = {
41229 (char *) "self",(char *) "idx",(char *) "proportion", NULL
41230 };
41231
41232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail;
41233 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0);
41234 if (SWIG_arg_fail(1)) SWIG_fail;
41235 {
41236 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
41237 if (SWIG_arg_fail(2)) SWIG_fail;
41238 }
41239 if (obj2) {
41240 {
41241 arg3 = (int)(SWIG_As_int(obj2));
41242 if (SWIG_arg_fail(3)) SWIG_fail;
41243 }
41244 }
41245 {
41246 PyThreadState* __tstate = wxPyBeginAllowThreads();
41247 (arg1)->AddGrowableCol(arg2,arg3);
41248
41249 wxPyEndAllowThreads(__tstate);
41250 if (PyErr_Occurred()) SWIG_fail;
41251 }
41252 Py_INCREF(Py_None); resultobj = Py_None;
41253 return resultobj;
41254 fail:
41255 return NULL;
41256 }
41257
41258
41259 static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) {
41260 PyObject *resultobj;
41261 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
41262 size_t arg2 ;
41263 PyObject * obj0 = 0 ;
41264 PyObject * obj1 = 0 ;
41265 char *kwnames[] = {
41266 (char *) "self",(char *) "idx", NULL
41267 };
41268
41269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail;
41270 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0);
41271 if (SWIG_arg_fail(1)) SWIG_fail;
41272 {
41273 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
41274 if (SWIG_arg_fail(2)) SWIG_fail;
41275 }
41276 {
41277 PyThreadState* __tstate = wxPyBeginAllowThreads();
41278 (arg1)->RemoveGrowableCol(arg2);
41279
41280 wxPyEndAllowThreads(__tstate);
41281 if (PyErr_Occurred()) SWIG_fail;
41282 }
41283 Py_INCREF(Py_None); resultobj = Py_None;
41284 return resultobj;
41285 fail:
41286 return NULL;
41287 }
41288
41289
41290 static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) {
41291 PyObject *resultobj;
41292 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
41293 int arg2 ;
41294 PyObject * obj0 = 0 ;
41295 PyObject * obj1 = 0 ;
41296 char *kwnames[] = {
41297 (char *) "self",(char *) "direction", NULL
41298 };
41299
41300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail;
41301 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0);
41302 if (SWIG_arg_fail(1)) SWIG_fail;
41303 {
41304 arg2 = (int)(SWIG_As_int(obj1));
41305 if (SWIG_arg_fail(2)) SWIG_fail;
41306 }
41307 {
41308 PyThreadState* __tstate = wxPyBeginAllowThreads();
41309 (arg1)->SetFlexibleDirection(arg2);
41310
41311 wxPyEndAllowThreads(__tstate);
41312 if (PyErr_Occurred()) SWIG_fail;
41313 }
41314 Py_INCREF(Py_None); resultobj = Py_None;
41315 return resultobj;
41316 fail:
41317 return NULL;
41318 }
41319
41320
41321 static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) {
41322 PyObject *resultobj;
41323 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
41324 int result;
41325 PyObject * obj0 = 0 ;
41326 char *kwnames[] = {
41327 (char *) "self", NULL
41328 };
41329
41330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail;
41331 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0);
41332 if (SWIG_arg_fail(1)) SWIG_fail;
41333 {
41334 PyThreadState* __tstate = wxPyBeginAllowThreads();
41335 result = (int)(arg1)->GetFlexibleDirection();
41336
41337 wxPyEndAllowThreads(__tstate);
41338 if (PyErr_Occurred()) SWIG_fail;
41339 }
41340 {
41341 resultobj = SWIG_From_int((int)(result));
41342 }
41343 return resultobj;
41344 fail:
41345 return NULL;
41346 }
41347
41348
41349 static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) {
41350 PyObject *resultobj;
41351 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
41352 wxFlexSizerGrowMode arg2 ;
41353 PyObject * obj0 = 0 ;
41354 PyObject * obj1 = 0 ;
41355 char *kwnames[] = {
41356 (char *) "self",(char *) "mode", NULL
41357 };
41358
41359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail;
41360 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0);
41361 if (SWIG_arg_fail(1)) SWIG_fail;
41362 {
41363 arg2 = (wxFlexSizerGrowMode)(SWIG_As_int(obj1));
41364 if (SWIG_arg_fail(2)) SWIG_fail;
41365 }
41366 {
41367 PyThreadState* __tstate = wxPyBeginAllowThreads();
41368 (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2);
41369
41370 wxPyEndAllowThreads(__tstate);
41371 if (PyErr_Occurred()) SWIG_fail;
41372 }
41373 Py_INCREF(Py_None); resultobj = Py_None;
41374 return resultobj;
41375 fail:
41376 return NULL;
41377 }
41378
41379
41380 static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) {
41381 PyObject *resultobj;
41382 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
41383 wxFlexSizerGrowMode result;
41384 PyObject * obj0 = 0 ;
41385 char *kwnames[] = {
41386 (char *) "self", NULL
41387 };
41388
41389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail;
41390 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0);
41391 if (SWIG_arg_fail(1)) SWIG_fail;
41392 {
41393 PyThreadState* __tstate = wxPyBeginAllowThreads();
41394 result = (wxFlexSizerGrowMode)(arg1)->GetNonFlexibleGrowMode();
41395
41396 wxPyEndAllowThreads(__tstate);
41397 if (PyErr_Occurred()) SWIG_fail;
41398 }
41399 resultobj = SWIG_From_int((result));
41400 return resultobj;
41401 fail:
41402 return NULL;
41403 }
41404
41405
41406 static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *, PyObject *args, PyObject *kwargs) {
41407 PyObject *resultobj;
41408 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
41409 wxArrayInt *result;
41410 PyObject * obj0 = 0 ;
41411 char *kwnames[] = {
41412 (char *) "self", NULL
41413 };
41414
41415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail;
41416 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0);
41417 if (SWIG_arg_fail(1)) SWIG_fail;
41418 {
41419 PyThreadState* __tstate = wxPyBeginAllowThreads();
41420 {
41421 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights();
41422 result = (wxArrayInt *) &_result_ref;
41423 }
41424
41425 wxPyEndAllowThreads(__tstate);
41426 if (PyErr_Occurred()) SWIG_fail;
41427 }
41428 {
41429 resultobj = PyList_New(0);
41430 size_t idx;
41431 for (idx = 0; idx < result->GetCount(); idx += 1) {
41432 PyObject* val = PyInt_FromLong( result->Item(idx) );
41433 PyList_Append(resultobj, val);
41434 Py_DECREF(val);
41435 }
41436 }
41437 return resultobj;
41438 fail:
41439 return NULL;
41440 }
41441
41442
41443 static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *, PyObject *args, PyObject *kwargs) {
41444 PyObject *resultobj;
41445 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
41446 wxArrayInt *result;
41447 PyObject * obj0 = 0 ;
41448 char *kwnames[] = {
41449 (char *) "self", NULL
41450 };
41451
41452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail;
41453 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_EXCEPTION | 0);
41454 if (SWIG_arg_fail(1)) SWIG_fail;
41455 {
41456 PyThreadState* __tstate = wxPyBeginAllowThreads();
41457 {
41458 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths();
41459 result = (wxArrayInt *) &_result_ref;
41460 }
41461
41462 wxPyEndAllowThreads(__tstate);
41463 if (PyErr_Occurred()) SWIG_fail;
41464 }
41465 {
41466 resultobj = PyList_New(0);
41467 size_t idx;
41468 for (idx = 0; idx < result->GetCount(); idx += 1) {
41469 PyObject* val = PyInt_FromLong( result->Item(idx) );
41470 PyList_Append(resultobj, val);
41471 Py_DECREF(val);
41472 }
41473 }
41474 return resultobj;
41475 fail:
41476 return NULL;
41477 }
41478
41479
41480 static PyObject * FlexGridSizer_swigregister(PyObject *, PyObject *args) {
41481 PyObject *obj;
41482 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
41483 SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj);
41484 Py_INCREF(obj);
41485 return Py_BuildValue((char *)"");
41486 }
41487 static PyObject *_wrap_new_StdDialogButtonSizer(PyObject *, PyObject *args, PyObject *kwargs) {
41488 PyObject *resultobj;
41489 wxStdDialogButtonSizer *result;
41490 char *kwnames[] = {
41491 NULL
41492 };
41493
41494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StdDialogButtonSizer",kwnames)) goto fail;
41495 {
41496 PyThreadState* __tstate = wxPyBeginAllowThreads();
41497 result = (wxStdDialogButtonSizer *)new wxStdDialogButtonSizer();
41498
41499 wxPyEndAllowThreads(__tstate);
41500 if (PyErr_Occurred()) SWIG_fail;
41501 }
41502 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStdDialogButtonSizer, 1);
41503 return resultobj;
41504 fail:
41505 return NULL;
41506 }
41507
41508
41509 static PyObject *_wrap_StdDialogButtonSizer_AddButton(PyObject *, PyObject *args, PyObject *kwargs) {
41510 PyObject *resultobj;
41511 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
41512 wxButton *arg2 = (wxButton *) 0 ;
41513 PyObject * obj0 = 0 ;
41514 PyObject * obj1 = 0 ;
41515 char *kwnames[] = {
41516 (char *) "self",(char *) "button", NULL
41517 };
41518
41519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_AddButton",kwnames,&obj0,&obj1)) goto fail;
41520 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
41521 if (SWIG_arg_fail(1)) SWIG_fail;
41522 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0);
41523 if (SWIG_arg_fail(2)) SWIG_fail;
41524 {
41525 PyThreadState* __tstate = wxPyBeginAllowThreads();
41526 (arg1)->AddButton(arg2);
41527
41528 wxPyEndAllowThreads(__tstate);
41529 if (PyErr_Occurred()) SWIG_fail;
41530 }
41531 Py_INCREF(Py_None); resultobj = Py_None;
41532 return resultobj;
41533 fail:
41534 return NULL;
41535 }
41536
41537
41538 static PyObject *_wrap_StdDialogButtonSizer_Realize(PyObject *, PyObject *args, PyObject *kwargs) {
41539 PyObject *resultobj;
41540 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
41541 PyObject * obj0 = 0 ;
41542 char *kwnames[] = {
41543 (char *) "self", NULL
41544 };
41545
41546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_Realize",kwnames,&obj0)) goto fail;
41547 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
41548 if (SWIG_arg_fail(1)) SWIG_fail;
41549 {
41550 PyThreadState* __tstate = wxPyBeginAllowThreads();
41551 (arg1)->Realize();
41552
41553 wxPyEndAllowThreads(__tstate);
41554 if (PyErr_Occurred()) SWIG_fail;
41555 }
41556 Py_INCREF(Py_None); resultobj = Py_None;
41557 return resultobj;
41558 fail:
41559 return NULL;
41560 }
41561
41562
41563 static PyObject *_wrap_StdDialogButtonSizer_SetAffirmativeButton(PyObject *, PyObject *args, PyObject *kwargs) {
41564 PyObject *resultobj;
41565 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
41566 wxButton *arg2 = (wxButton *) 0 ;
41567 PyObject * obj0 = 0 ;
41568 PyObject * obj1 = 0 ;
41569 char *kwnames[] = {
41570 (char *) "self",(char *) "button", NULL
41571 };
41572
41573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetAffirmativeButton",kwnames,&obj0,&obj1)) goto fail;
41574 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
41575 if (SWIG_arg_fail(1)) SWIG_fail;
41576 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0);
41577 if (SWIG_arg_fail(2)) SWIG_fail;
41578 {
41579 PyThreadState* __tstate = wxPyBeginAllowThreads();
41580 (arg1)->SetAffirmativeButton(arg2);
41581
41582 wxPyEndAllowThreads(__tstate);
41583 if (PyErr_Occurred()) SWIG_fail;
41584 }
41585 Py_INCREF(Py_None); resultobj = Py_None;
41586 return resultobj;
41587 fail:
41588 return NULL;
41589 }
41590
41591
41592 static PyObject *_wrap_StdDialogButtonSizer_SetNegativeButton(PyObject *, PyObject *args, PyObject *kwargs) {
41593 PyObject *resultobj;
41594 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
41595 wxButton *arg2 = (wxButton *) 0 ;
41596 PyObject * obj0 = 0 ;
41597 PyObject * obj1 = 0 ;
41598 char *kwnames[] = {
41599 (char *) "self",(char *) "button", NULL
41600 };
41601
41602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetNegativeButton",kwnames,&obj0,&obj1)) goto fail;
41603 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
41604 if (SWIG_arg_fail(1)) SWIG_fail;
41605 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0);
41606 if (SWIG_arg_fail(2)) SWIG_fail;
41607 {
41608 PyThreadState* __tstate = wxPyBeginAllowThreads();
41609 (arg1)->SetNegativeButton(arg2);
41610
41611 wxPyEndAllowThreads(__tstate);
41612 if (PyErr_Occurred()) SWIG_fail;
41613 }
41614 Py_INCREF(Py_None); resultobj = Py_None;
41615 return resultobj;
41616 fail:
41617 return NULL;
41618 }
41619
41620
41621 static PyObject *_wrap_StdDialogButtonSizer_SetCancelButton(PyObject *, PyObject *args, PyObject *kwargs) {
41622 PyObject *resultobj;
41623 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
41624 wxButton *arg2 = (wxButton *) 0 ;
41625 PyObject * obj0 = 0 ;
41626 PyObject * obj1 = 0 ;
41627 char *kwnames[] = {
41628 (char *) "self",(char *) "button", NULL
41629 };
41630
41631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetCancelButton",kwnames,&obj0,&obj1)) goto fail;
41632 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
41633 if (SWIG_arg_fail(1)) SWIG_fail;
41634 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0);
41635 if (SWIG_arg_fail(2)) SWIG_fail;
41636 {
41637 PyThreadState* __tstate = wxPyBeginAllowThreads();
41638 (arg1)->SetCancelButton(arg2);
41639
41640 wxPyEndAllowThreads(__tstate);
41641 if (PyErr_Occurred()) SWIG_fail;
41642 }
41643 Py_INCREF(Py_None); resultobj = Py_None;
41644 return resultobj;
41645 fail:
41646 return NULL;
41647 }
41648
41649
41650 static PyObject *_wrap_StdDialogButtonSizer_GetAffirmativeButton(PyObject *, PyObject *args, PyObject *kwargs) {
41651 PyObject *resultobj;
41652 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
41653 wxButton *result;
41654 PyObject * obj0 = 0 ;
41655 char *kwnames[] = {
41656 (char *) "self", NULL
41657 };
41658
41659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetAffirmativeButton",kwnames,&obj0)) goto fail;
41660 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
41661 if (SWIG_arg_fail(1)) SWIG_fail;
41662 {
41663 PyThreadState* __tstate = wxPyBeginAllowThreads();
41664 result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetAffirmativeButton();
41665
41666 wxPyEndAllowThreads(__tstate);
41667 if (PyErr_Occurred()) SWIG_fail;
41668 }
41669 {
41670 resultobj = wxPyMake_wxObject(result, 0);
41671 }
41672 return resultobj;
41673 fail:
41674 return NULL;
41675 }
41676
41677
41678 static PyObject *_wrap_StdDialogButtonSizer_GetApplyButton(PyObject *, PyObject *args, PyObject *kwargs) {
41679 PyObject *resultobj;
41680 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
41681 wxButton *result;
41682 PyObject * obj0 = 0 ;
41683 char *kwnames[] = {
41684 (char *) "self", NULL
41685 };
41686
41687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetApplyButton",kwnames,&obj0)) goto fail;
41688 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
41689 if (SWIG_arg_fail(1)) SWIG_fail;
41690 {
41691 PyThreadState* __tstate = wxPyBeginAllowThreads();
41692 result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetApplyButton();
41693
41694 wxPyEndAllowThreads(__tstate);
41695 if (PyErr_Occurred()) SWIG_fail;
41696 }
41697 {
41698 resultobj = wxPyMake_wxObject(result, 0);
41699 }
41700 return resultobj;
41701 fail:
41702 return NULL;
41703 }
41704
41705
41706 static PyObject *_wrap_StdDialogButtonSizer_GetNegativeButton(PyObject *, PyObject *args, PyObject *kwargs) {
41707 PyObject *resultobj;
41708 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
41709 wxButton *result;
41710 PyObject * obj0 = 0 ;
41711 char *kwnames[] = {
41712 (char *) "self", NULL
41713 };
41714
41715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetNegativeButton",kwnames,&obj0)) goto fail;
41716 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
41717 if (SWIG_arg_fail(1)) SWIG_fail;
41718 {
41719 PyThreadState* __tstate = wxPyBeginAllowThreads();
41720 result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetNegativeButton();
41721
41722 wxPyEndAllowThreads(__tstate);
41723 if (PyErr_Occurred()) SWIG_fail;
41724 }
41725 {
41726 resultobj = wxPyMake_wxObject(result, 0);
41727 }
41728 return resultobj;
41729 fail:
41730 return NULL;
41731 }
41732
41733
41734 static PyObject *_wrap_StdDialogButtonSizer_GetCancelButton(PyObject *, PyObject *args, PyObject *kwargs) {
41735 PyObject *resultobj;
41736 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
41737 wxButton *result;
41738 PyObject * obj0 = 0 ;
41739 char *kwnames[] = {
41740 (char *) "self", NULL
41741 };
41742
41743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetCancelButton",kwnames,&obj0)) goto fail;
41744 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
41745 if (SWIG_arg_fail(1)) SWIG_fail;
41746 {
41747 PyThreadState* __tstate = wxPyBeginAllowThreads();
41748 result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetCancelButton();
41749
41750 wxPyEndAllowThreads(__tstate);
41751 if (PyErr_Occurred()) SWIG_fail;
41752 }
41753 {
41754 resultobj = wxPyMake_wxObject(result, 0);
41755 }
41756 return resultobj;
41757 fail:
41758 return NULL;
41759 }
41760
41761
41762 static PyObject *_wrap_StdDialogButtonSizer_GetHelpButton(PyObject *, PyObject *args, PyObject *kwargs) {
41763 PyObject *resultobj;
41764 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
41765 wxButton *result;
41766 PyObject * obj0 = 0 ;
41767 char *kwnames[] = {
41768 (char *) "self", NULL
41769 };
41770
41771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StdDialogButtonSizer_GetHelpButton",kwnames,&obj0)) goto fail;
41772 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
41773 if (SWIG_arg_fail(1)) SWIG_fail;
41774 {
41775 PyThreadState* __tstate = wxPyBeginAllowThreads();
41776 result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetHelpButton();
41777
41778 wxPyEndAllowThreads(__tstate);
41779 if (PyErr_Occurred()) SWIG_fail;
41780 }
41781 {
41782 resultobj = wxPyMake_wxObject(result, 0);
41783 }
41784 return resultobj;
41785 fail:
41786 return NULL;
41787 }
41788
41789
41790 static PyObject * StdDialogButtonSizer_swigregister(PyObject *, PyObject *args) {
41791 PyObject *obj;
41792 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
41793 SWIG_TypeClientData(SWIGTYPE_p_wxStdDialogButtonSizer, obj);
41794 Py_INCREF(obj);
41795 return Py_BuildValue((char *)"");
41796 }
41797 static PyObject *_wrap_new_GBPosition(PyObject *, PyObject *args, PyObject *kwargs) {
41798 PyObject *resultobj;
41799 int arg1 = (int) 0 ;
41800 int arg2 = (int) 0 ;
41801 wxGBPosition *result;
41802 PyObject * obj0 = 0 ;
41803 PyObject * obj1 = 0 ;
41804 char *kwnames[] = {
41805 (char *) "row",(char *) "col", NULL
41806 };
41807
41808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail;
41809 if (obj0) {
41810 {
41811 arg1 = (int)(SWIG_As_int(obj0));
41812 if (SWIG_arg_fail(1)) SWIG_fail;
41813 }
41814 }
41815 if (obj1) {
41816 {
41817 arg2 = (int)(SWIG_As_int(obj1));
41818 if (SWIG_arg_fail(2)) SWIG_fail;
41819 }
41820 }
41821 {
41822 PyThreadState* __tstate = wxPyBeginAllowThreads();
41823 result = (wxGBPosition *)new wxGBPosition(arg1,arg2);
41824
41825 wxPyEndAllowThreads(__tstate);
41826 if (PyErr_Occurred()) SWIG_fail;
41827 }
41828 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1);
41829 return resultobj;
41830 fail:
41831 return NULL;
41832 }
41833
41834
41835 static PyObject *_wrap_GBPosition_GetRow(PyObject *, PyObject *args, PyObject *kwargs) {
41836 PyObject *resultobj;
41837 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
41838 int result;
41839 PyObject * obj0 = 0 ;
41840 char *kwnames[] = {
41841 (char *) "self", NULL
41842 };
41843
41844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail;
41845 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0);
41846 if (SWIG_arg_fail(1)) SWIG_fail;
41847 {
41848 PyThreadState* __tstate = wxPyBeginAllowThreads();
41849 result = (int)((wxGBPosition const *)arg1)->GetRow();
41850
41851 wxPyEndAllowThreads(__tstate);
41852 if (PyErr_Occurred()) SWIG_fail;
41853 }
41854 {
41855 resultobj = SWIG_From_int((int)(result));
41856 }
41857 return resultobj;
41858 fail:
41859 return NULL;
41860 }
41861
41862
41863 static PyObject *_wrap_GBPosition_GetCol(PyObject *, PyObject *args, PyObject *kwargs) {
41864 PyObject *resultobj;
41865 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
41866 int result;
41867 PyObject * obj0 = 0 ;
41868 char *kwnames[] = {
41869 (char *) "self", NULL
41870 };
41871
41872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail;
41873 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0);
41874 if (SWIG_arg_fail(1)) SWIG_fail;
41875 {
41876 PyThreadState* __tstate = wxPyBeginAllowThreads();
41877 result = (int)((wxGBPosition const *)arg1)->GetCol();
41878
41879 wxPyEndAllowThreads(__tstate);
41880 if (PyErr_Occurred()) SWIG_fail;
41881 }
41882 {
41883 resultobj = SWIG_From_int((int)(result));
41884 }
41885 return resultobj;
41886 fail:
41887 return NULL;
41888 }
41889
41890
41891 static PyObject *_wrap_GBPosition_SetRow(PyObject *, PyObject *args, PyObject *kwargs) {
41892 PyObject *resultobj;
41893 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
41894 int arg2 ;
41895 PyObject * obj0 = 0 ;
41896 PyObject * obj1 = 0 ;
41897 char *kwnames[] = {
41898 (char *) "self",(char *) "row", NULL
41899 };
41900
41901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail;
41902 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0);
41903 if (SWIG_arg_fail(1)) SWIG_fail;
41904 {
41905 arg2 = (int)(SWIG_As_int(obj1));
41906 if (SWIG_arg_fail(2)) SWIG_fail;
41907 }
41908 {
41909 PyThreadState* __tstate = wxPyBeginAllowThreads();
41910 (arg1)->SetRow(arg2);
41911
41912 wxPyEndAllowThreads(__tstate);
41913 if (PyErr_Occurred()) SWIG_fail;
41914 }
41915 Py_INCREF(Py_None); resultobj = Py_None;
41916 return resultobj;
41917 fail:
41918 return NULL;
41919 }
41920
41921
41922 static PyObject *_wrap_GBPosition_SetCol(PyObject *, PyObject *args, PyObject *kwargs) {
41923 PyObject *resultobj;
41924 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
41925 int arg2 ;
41926 PyObject * obj0 = 0 ;
41927 PyObject * obj1 = 0 ;
41928 char *kwnames[] = {
41929 (char *) "self",(char *) "col", NULL
41930 };
41931
41932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail;
41933 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0);
41934 if (SWIG_arg_fail(1)) SWIG_fail;
41935 {
41936 arg2 = (int)(SWIG_As_int(obj1));
41937 if (SWIG_arg_fail(2)) SWIG_fail;
41938 }
41939 {
41940 PyThreadState* __tstate = wxPyBeginAllowThreads();
41941 (arg1)->SetCol(arg2);
41942
41943 wxPyEndAllowThreads(__tstate);
41944 if (PyErr_Occurred()) SWIG_fail;
41945 }
41946 Py_INCREF(Py_None); resultobj = Py_None;
41947 return resultobj;
41948 fail:
41949 return NULL;
41950 }
41951
41952
41953 static PyObject *_wrap_GBPosition___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
41954 PyObject *resultobj;
41955 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
41956 wxGBPosition *arg2 = 0 ;
41957 bool result;
41958 wxGBPosition temp2 ;
41959 PyObject * obj0 = 0 ;
41960 PyObject * obj1 = 0 ;
41961 char *kwnames[] = {
41962 (char *) "self",(char *) "other", NULL
41963 };
41964
41965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail;
41966 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0);
41967 if (SWIG_arg_fail(1)) SWIG_fail;
41968 {
41969 arg2 = &temp2;
41970 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
41971 }
41972 {
41973 PyThreadState* __tstate = wxPyBeginAllowThreads();
41974 result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2);
41975
41976 wxPyEndAllowThreads(__tstate);
41977 if (PyErr_Occurred()) SWIG_fail;
41978 }
41979 {
41980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41981 }
41982 return resultobj;
41983 fail:
41984 return NULL;
41985 }
41986
41987
41988 static PyObject *_wrap_GBPosition___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
41989 PyObject *resultobj;
41990 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
41991 wxGBPosition *arg2 = 0 ;
41992 bool result;
41993 wxGBPosition temp2 ;
41994 PyObject * obj0 = 0 ;
41995 PyObject * obj1 = 0 ;
41996 char *kwnames[] = {
41997 (char *) "self",(char *) "other", NULL
41998 };
41999
42000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail;
42001 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0);
42002 if (SWIG_arg_fail(1)) SWIG_fail;
42003 {
42004 arg2 = &temp2;
42005 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
42006 }
42007 {
42008 PyThreadState* __tstate = wxPyBeginAllowThreads();
42009 result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2);
42010
42011 wxPyEndAllowThreads(__tstate);
42012 if (PyErr_Occurred()) SWIG_fail;
42013 }
42014 {
42015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42016 }
42017 return resultobj;
42018 fail:
42019 return NULL;
42020 }
42021
42022
42023 static PyObject *_wrap_GBPosition_Set(PyObject *, PyObject *args, PyObject *kwargs) {
42024 PyObject *resultobj;
42025 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
42026 int arg2 = (int) 0 ;
42027 int arg3 = (int) 0 ;
42028 PyObject * obj0 = 0 ;
42029 PyObject * obj1 = 0 ;
42030 PyObject * obj2 = 0 ;
42031 char *kwnames[] = {
42032 (char *) "self",(char *) "row",(char *) "col", NULL
42033 };
42034
42035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
42036 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0);
42037 if (SWIG_arg_fail(1)) SWIG_fail;
42038 if (obj1) {
42039 {
42040 arg2 = (int)(SWIG_As_int(obj1));
42041 if (SWIG_arg_fail(2)) SWIG_fail;
42042 }
42043 }
42044 if (obj2) {
42045 {
42046 arg3 = (int)(SWIG_As_int(obj2));
42047 if (SWIG_arg_fail(3)) SWIG_fail;
42048 }
42049 }
42050 {
42051 PyThreadState* __tstate = wxPyBeginAllowThreads();
42052 wxGBPosition_Set(arg1,arg2,arg3);
42053
42054 wxPyEndAllowThreads(__tstate);
42055 if (PyErr_Occurred()) SWIG_fail;
42056 }
42057 Py_INCREF(Py_None); resultobj = Py_None;
42058 return resultobj;
42059 fail:
42060 return NULL;
42061 }
42062
42063
42064 static PyObject *_wrap_GBPosition_Get(PyObject *, PyObject *args, PyObject *kwargs) {
42065 PyObject *resultobj;
42066 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
42067 PyObject *result;
42068 PyObject * obj0 = 0 ;
42069 char *kwnames[] = {
42070 (char *) "self", NULL
42071 };
42072
42073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail;
42074 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBPosition, SWIG_POINTER_EXCEPTION | 0);
42075 if (SWIG_arg_fail(1)) SWIG_fail;
42076 {
42077 PyThreadState* __tstate = wxPyBeginAllowThreads();
42078 result = (PyObject *)wxGBPosition_Get(arg1);
42079
42080 wxPyEndAllowThreads(__tstate);
42081 if (PyErr_Occurred()) SWIG_fail;
42082 }
42083 resultobj = result;
42084 return resultobj;
42085 fail:
42086 return NULL;
42087 }
42088
42089
42090 static PyObject * GBPosition_swigregister(PyObject *, PyObject *args) {
42091 PyObject *obj;
42092 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
42093 SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj);
42094 Py_INCREF(obj);
42095 return Py_BuildValue((char *)"");
42096 }
42097 static PyObject *_wrap_new_GBSpan(PyObject *, PyObject *args, PyObject *kwargs) {
42098 PyObject *resultobj;
42099 int arg1 = (int) 1 ;
42100 int arg2 = (int) 1 ;
42101 wxGBSpan *result;
42102 PyObject * obj0 = 0 ;
42103 PyObject * obj1 = 0 ;
42104 char *kwnames[] = {
42105 (char *) "rowspan",(char *) "colspan", NULL
42106 };
42107
42108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail;
42109 if (obj0) {
42110 {
42111 arg1 = (int)(SWIG_As_int(obj0));
42112 if (SWIG_arg_fail(1)) SWIG_fail;
42113 }
42114 }
42115 if (obj1) {
42116 {
42117 arg2 = (int)(SWIG_As_int(obj1));
42118 if (SWIG_arg_fail(2)) SWIG_fail;
42119 }
42120 }
42121 {
42122 PyThreadState* __tstate = wxPyBeginAllowThreads();
42123 result = (wxGBSpan *)new wxGBSpan(arg1,arg2);
42124
42125 wxPyEndAllowThreads(__tstate);
42126 if (PyErr_Occurred()) SWIG_fail;
42127 }
42128 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1);
42129 return resultobj;
42130 fail:
42131 return NULL;
42132 }
42133
42134
42135 static PyObject *_wrap_GBSpan_GetRowspan(PyObject *, PyObject *args, PyObject *kwargs) {
42136 PyObject *resultobj;
42137 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
42138 int result;
42139 PyObject * obj0 = 0 ;
42140 char *kwnames[] = {
42141 (char *) "self", NULL
42142 };
42143
42144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail;
42145 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0);
42146 if (SWIG_arg_fail(1)) SWIG_fail;
42147 {
42148 PyThreadState* __tstate = wxPyBeginAllowThreads();
42149 result = (int)((wxGBSpan const *)arg1)->GetRowspan();
42150
42151 wxPyEndAllowThreads(__tstate);
42152 if (PyErr_Occurred()) SWIG_fail;
42153 }
42154 {
42155 resultobj = SWIG_From_int((int)(result));
42156 }
42157 return resultobj;
42158 fail:
42159 return NULL;
42160 }
42161
42162
42163 static PyObject *_wrap_GBSpan_GetColspan(PyObject *, PyObject *args, PyObject *kwargs) {
42164 PyObject *resultobj;
42165 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
42166 int result;
42167 PyObject * obj0 = 0 ;
42168 char *kwnames[] = {
42169 (char *) "self", NULL
42170 };
42171
42172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail;
42173 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0);
42174 if (SWIG_arg_fail(1)) SWIG_fail;
42175 {
42176 PyThreadState* __tstate = wxPyBeginAllowThreads();
42177 result = (int)((wxGBSpan const *)arg1)->GetColspan();
42178
42179 wxPyEndAllowThreads(__tstate);
42180 if (PyErr_Occurred()) SWIG_fail;
42181 }
42182 {
42183 resultobj = SWIG_From_int((int)(result));
42184 }
42185 return resultobj;
42186 fail:
42187 return NULL;
42188 }
42189
42190
42191 static PyObject *_wrap_GBSpan_SetRowspan(PyObject *, PyObject *args, PyObject *kwargs) {
42192 PyObject *resultobj;
42193 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
42194 int arg2 ;
42195 PyObject * obj0 = 0 ;
42196 PyObject * obj1 = 0 ;
42197 char *kwnames[] = {
42198 (char *) "self",(char *) "rowspan", NULL
42199 };
42200
42201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail;
42202 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0);
42203 if (SWIG_arg_fail(1)) SWIG_fail;
42204 {
42205 arg2 = (int)(SWIG_As_int(obj1));
42206 if (SWIG_arg_fail(2)) SWIG_fail;
42207 }
42208 {
42209 PyThreadState* __tstate = wxPyBeginAllowThreads();
42210 (arg1)->SetRowspan(arg2);
42211
42212 wxPyEndAllowThreads(__tstate);
42213 if (PyErr_Occurred()) SWIG_fail;
42214 }
42215 Py_INCREF(Py_None); resultobj = Py_None;
42216 return resultobj;
42217 fail:
42218 return NULL;
42219 }
42220
42221
42222 static PyObject *_wrap_GBSpan_SetColspan(PyObject *, PyObject *args, PyObject *kwargs) {
42223 PyObject *resultobj;
42224 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
42225 int arg2 ;
42226 PyObject * obj0 = 0 ;
42227 PyObject * obj1 = 0 ;
42228 char *kwnames[] = {
42229 (char *) "self",(char *) "colspan", NULL
42230 };
42231
42232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail;
42233 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0);
42234 if (SWIG_arg_fail(1)) SWIG_fail;
42235 {
42236 arg2 = (int)(SWIG_As_int(obj1));
42237 if (SWIG_arg_fail(2)) SWIG_fail;
42238 }
42239 {
42240 PyThreadState* __tstate = wxPyBeginAllowThreads();
42241 (arg1)->SetColspan(arg2);
42242
42243 wxPyEndAllowThreads(__tstate);
42244 if (PyErr_Occurred()) SWIG_fail;
42245 }
42246 Py_INCREF(Py_None); resultobj = Py_None;
42247 return resultobj;
42248 fail:
42249 return NULL;
42250 }
42251
42252
42253 static PyObject *_wrap_GBSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
42254 PyObject *resultobj;
42255 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
42256 wxGBSpan *arg2 = 0 ;
42257 bool result;
42258 wxGBSpan temp2 ;
42259 PyObject * obj0 = 0 ;
42260 PyObject * obj1 = 0 ;
42261 char *kwnames[] = {
42262 (char *) "self",(char *) "other", NULL
42263 };
42264
42265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
42266 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0);
42267 if (SWIG_arg_fail(1)) SWIG_fail;
42268 {
42269 arg2 = &temp2;
42270 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
42271 }
42272 {
42273 PyThreadState* __tstate = wxPyBeginAllowThreads();
42274 result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2);
42275
42276 wxPyEndAllowThreads(__tstate);
42277 if (PyErr_Occurred()) SWIG_fail;
42278 }
42279 {
42280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42281 }
42282 return resultobj;
42283 fail:
42284 return NULL;
42285 }
42286
42287
42288 static PyObject *_wrap_GBSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
42289 PyObject *resultobj;
42290 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
42291 wxGBSpan *arg2 = 0 ;
42292 bool result;
42293 wxGBSpan temp2 ;
42294 PyObject * obj0 = 0 ;
42295 PyObject * obj1 = 0 ;
42296 char *kwnames[] = {
42297 (char *) "self",(char *) "other", NULL
42298 };
42299
42300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
42301 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0);
42302 if (SWIG_arg_fail(1)) SWIG_fail;
42303 {
42304 arg2 = &temp2;
42305 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
42306 }
42307 {
42308 PyThreadState* __tstate = wxPyBeginAllowThreads();
42309 result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2);
42310
42311 wxPyEndAllowThreads(__tstate);
42312 if (PyErr_Occurred()) SWIG_fail;
42313 }
42314 {
42315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42316 }
42317 return resultobj;
42318 fail:
42319 return NULL;
42320 }
42321
42322
42323 static PyObject *_wrap_GBSpan_Set(PyObject *, PyObject *args, PyObject *kwargs) {
42324 PyObject *resultobj;
42325 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
42326 int arg2 = (int) 1 ;
42327 int arg3 = (int) 1 ;
42328 PyObject * obj0 = 0 ;
42329 PyObject * obj1 = 0 ;
42330 PyObject * obj2 = 0 ;
42331 char *kwnames[] = {
42332 (char *) "self",(char *) "rowspan",(char *) "colspan", NULL
42333 };
42334
42335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
42336 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0);
42337 if (SWIG_arg_fail(1)) SWIG_fail;
42338 if (obj1) {
42339 {
42340 arg2 = (int)(SWIG_As_int(obj1));
42341 if (SWIG_arg_fail(2)) SWIG_fail;
42342 }
42343 }
42344 if (obj2) {
42345 {
42346 arg3 = (int)(SWIG_As_int(obj2));
42347 if (SWIG_arg_fail(3)) SWIG_fail;
42348 }
42349 }
42350 {
42351 PyThreadState* __tstate = wxPyBeginAllowThreads();
42352 wxGBSpan_Set(arg1,arg2,arg3);
42353
42354 wxPyEndAllowThreads(__tstate);
42355 if (PyErr_Occurred()) SWIG_fail;
42356 }
42357 Py_INCREF(Py_None); resultobj = Py_None;
42358 return resultobj;
42359 fail:
42360 return NULL;
42361 }
42362
42363
42364 static PyObject *_wrap_GBSpan_Get(PyObject *, PyObject *args, PyObject *kwargs) {
42365 PyObject *resultobj;
42366 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
42367 PyObject *result;
42368 PyObject * obj0 = 0 ;
42369 char *kwnames[] = {
42370 (char *) "self", NULL
42371 };
42372
42373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail;
42374 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSpan, SWIG_POINTER_EXCEPTION | 0);
42375 if (SWIG_arg_fail(1)) SWIG_fail;
42376 {
42377 PyThreadState* __tstate = wxPyBeginAllowThreads();
42378 result = (PyObject *)wxGBSpan_Get(arg1);
42379
42380 wxPyEndAllowThreads(__tstate);
42381 if (PyErr_Occurred()) SWIG_fail;
42382 }
42383 resultobj = result;
42384 return resultobj;
42385 fail:
42386 return NULL;
42387 }
42388
42389
42390 static PyObject * GBSpan_swigregister(PyObject *, PyObject *args) {
42391 PyObject *obj;
42392 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
42393 SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj);
42394 Py_INCREF(obj);
42395 return Py_BuildValue((char *)"");
42396 }
42397 static int _wrap_DefaultSpan_set(PyObject *) {
42398 PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only.");
42399 return 1;
42400 }
42401
42402
42403 static PyObject *_wrap_DefaultSpan_get(void) {
42404 PyObject *pyobj;
42405
42406 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0);
42407 return pyobj;
42408 }
42409
42410
42411 static PyObject *_wrap_new_GBSizerItem(PyObject *, PyObject *args, PyObject *kwargs) {
42412 PyObject *resultobj;
42413 wxGBSizerItem *result;
42414 char *kwnames[] = {
42415 NULL
42416 };
42417
42418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail;
42419 {
42420 PyThreadState* __tstate = wxPyBeginAllowThreads();
42421 result = (wxGBSizerItem *)new wxGBSizerItem();
42422
42423 wxPyEndAllowThreads(__tstate);
42424 if (PyErr_Occurred()) SWIG_fail;
42425 }
42426 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
42427 return resultobj;
42428 fail:
42429 return NULL;
42430 }
42431
42432
42433 static PyObject *_wrap_new_GBSizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) {
42434 PyObject *resultobj;
42435 wxWindow *arg1 = (wxWindow *) 0 ;
42436 wxGBPosition *arg2 = 0 ;
42437 wxGBSpan *arg3 = 0 ;
42438 int arg4 ;
42439 int arg5 ;
42440 PyObject *arg6 = (PyObject *) NULL ;
42441 wxGBSizerItem *result;
42442 wxGBPosition temp2 ;
42443 wxGBSpan temp3 ;
42444 PyObject * obj0 = 0 ;
42445 PyObject * obj1 = 0 ;
42446 PyObject * obj2 = 0 ;
42447 PyObject * obj3 = 0 ;
42448 PyObject * obj4 = 0 ;
42449 PyObject * obj5 = 0 ;
42450 char *kwnames[] = {
42451 (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
42452 };
42453
42454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
42455 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
42456 if (SWIG_arg_fail(1)) SWIG_fail;
42457 {
42458 arg2 = &temp2;
42459 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
42460 }
42461 {
42462 arg3 = &temp3;
42463 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
42464 }
42465 {
42466 arg4 = (int)(SWIG_As_int(obj3));
42467 if (SWIG_arg_fail(4)) SWIG_fail;
42468 }
42469 {
42470 arg5 = (int)(SWIG_As_int(obj4));
42471 if (SWIG_arg_fail(5)) SWIG_fail;
42472 }
42473 if (obj5) {
42474 arg6 = obj5;
42475 }
42476 {
42477 PyThreadState* __tstate = wxPyBeginAllowThreads();
42478 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
42479
42480 wxPyEndAllowThreads(__tstate);
42481 if (PyErr_Occurred()) SWIG_fail;
42482 }
42483 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
42484 return resultobj;
42485 fail:
42486 return NULL;
42487 }
42488
42489
42490 static PyObject *_wrap_new_GBSizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) {
42491 PyObject *resultobj;
42492 wxSizer *arg1 = (wxSizer *) 0 ;
42493 wxGBPosition *arg2 = 0 ;
42494 wxGBSpan *arg3 = 0 ;
42495 int arg4 ;
42496 int arg5 ;
42497 PyObject *arg6 = (PyObject *) NULL ;
42498 wxGBSizerItem *result;
42499 wxGBPosition temp2 ;
42500 wxGBSpan temp3 ;
42501 PyObject * obj0 = 0 ;
42502 PyObject * obj1 = 0 ;
42503 PyObject * obj2 = 0 ;
42504 PyObject * obj3 = 0 ;
42505 PyObject * obj4 = 0 ;
42506 PyObject * obj5 = 0 ;
42507 char *kwnames[] = {
42508 (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
42509 };
42510
42511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
42512 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
42513 if (SWIG_arg_fail(1)) SWIG_fail;
42514 {
42515 arg2 = &temp2;
42516 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
42517 }
42518 {
42519 arg3 = &temp3;
42520 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
42521 }
42522 {
42523 arg4 = (int)(SWIG_As_int(obj3));
42524 if (SWIG_arg_fail(4)) SWIG_fail;
42525 }
42526 {
42527 arg5 = (int)(SWIG_As_int(obj4));
42528 if (SWIG_arg_fail(5)) SWIG_fail;
42529 }
42530 if (obj5) {
42531 arg6 = obj5;
42532 }
42533 {
42534 PyThreadState* __tstate = wxPyBeginAllowThreads();
42535 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
42536
42537 wxPyEndAllowThreads(__tstate);
42538 if (PyErr_Occurred()) SWIG_fail;
42539 }
42540 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
42541 return resultobj;
42542 fail:
42543 return NULL;
42544 }
42545
42546
42547 static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) {
42548 PyObject *resultobj;
42549 int arg1 ;
42550 int arg2 ;
42551 wxGBPosition *arg3 = 0 ;
42552 wxGBSpan *arg4 = 0 ;
42553 int arg5 ;
42554 int arg6 ;
42555 PyObject *arg7 = (PyObject *) NULL ;
42556 wxGBSizerItem *result;
42557 wxGBPosition temp3 ;
42558 wxGBSpan temp4 ;
42559 PyObject * obj0 = 0 ;
42560 PyObject * obj1 = 0 ;
42561 PyObject * obj2 = 0 ;
42562 PyObject * obj3 = 0 ;
42563 PyObject * obj4 = 0 ;
42564 PyObject * obj5 = 0 ;
42565 PyObject * obj6 = 0 ;
42566 char *kwnames[] = {
42567 (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
42568 };
42569
42570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
42571 {
42572 arg1 = (int)(SWIG_As_int(obj0));
42573 if (SWIG_arg_fail(1)) SWIG_fail;
42574 }
42575 {
42576 arg2 = (int)(SWIG_As_int(obj1));
42577 if (SWIG_arg_fail(2)) SWIG_fail;
42578 }
42579 {
42580 arg3 = &temp3;
42581 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
42582 }
42583 {
42584 arg4 = &temp4;
42585 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
42586 }
42587 {
42588 arg5 = (int)(SWIG_As_int(obj4));
42589 if (SWIG_arg_fail(5)) SWIG_fail;
42590 }
42591 {
42592 arg6 = (int)(SWIG_As_int(obj5));
42593 if (SWIG_arg_fail(6)) SWIG_fail;
42594 }
42595 if (obj6) {
42596 arg7 = obj6;
42597 }
42598 {
42599 PyThreadState* __tstate = wxPyBeginAllowThreads();
42600 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
42601
42602 wxPyEndAllowThreads(__tstate);
42603 if (PyErr_Occurred()) SWIG_fail;
42604 }
42605 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
42606 return resultobj;
42607 fail:
42608 return NULL;
42609 }
42610
42611
42612 static PyObject *_wrap_GBSizerItem_GetPos(PyObject *, PyObject *args, PyObject *kwargs) {
42613 PyObject *resultobj;
42614 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
42615 wxGBPosition result;
42616 PyObject * obj0 = 0 ;
42617 char *kwnames[] = {
42618 (char *) "self", NULL
42619 };
42620
42621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail;
42622 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0);
42623 if (SWIG_arg_fail(1)) SWIG_fail;
42624 {
42625 PyThreadState* __tstate = wxPyBeginAllowThreads();
42626 result = ((wxGBSizerItem const *)arg1)->GetPos();
42627
42628 wxPyEndAllowThreads(__tstate);
42629 if (PyErr_Occurred()) SWIG_fail;
42630 }
42631 {
42632 wxGBPosition * resultptr;
42633 resultptr = new wxGBPosition((wxGBPosition &)(result));
42634 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
42635 }
42636 return resultobj;
42637 fail:
42638 return NULL;
42639 }
42640
42641
42642 static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *, PyObject *args, PyObject *kwargs) {
42643 PyObject *resultobj;
42644 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
42645 wxGBSpan result;
42646 PyObject * obj0 = 0 ;
42647 char *kwnames[] = {
42648 (char *) "self", NULL
42649 };
42650
42651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail;
42652 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0);
42653 if (SWIG_arg_fail(1)) SWIG_fail;
42654 {
42655 PyThreadState* __tstate = wxPyBeginAllowThreads();
42656 result = ((wxGBSizerItem const *)arg1)->GetSpan();
42657
42658 wxPyEndAllowThreads(__tstate);
42659 if (PyErr_Occurred()) SWIG_fail;
42660 }
42661 {
42662 wxGBSpan * resultptr;
42663 resultptr = new wxGBSpan((wxGBSpan &)(result));
42664 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
42665 }
42666 return resultobj;
42667 fail:
42668 return NULL;
42669 }
42670
42671
42672 static PyObject *_wrap_GBSizerItem_SetPos(PyObject *, PyObject *args, PyObject *kwargs) {
42673 PyObject *resultobj;
42674 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
42675 wxGBPosition *arg2 = 0 ;
42676 bool result;
42677 wxGBPosition temp2 ;
42678 PyObject * obj0 = 0 ;
42679 PyObject * obj1 = 0 ;
42680 char *kwnames[] = {
42681 (char *) "self",(char *) "pos", NULL
42682 };
42683
42684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail;
42685 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0);
42686 if (SWIG_arg_fail(1)) SWIG_fail;
42687 {
42688 arg2 = &temp2;
42689 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
42690 }
42691 {
42692 PyThreadState* __tstate = wxPyBeginAllowThreads();
42693 result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2);
42694
42695 wxPyEndAllowThreads(__tstate);
42696 if (PyErr_Occurred()) SWIG_fail;
42697 }
42698 {
42699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42700 }
42701 return resultobj;
42702 fail:
42703 return NULL;
42704 }
42705
42706
42707 static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *, PyObject *args, PyObject *kwargs) {
42708 PyObject *resultobj;
42709 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
42710 wxGBSpan *arg2 = 0 ;
42711 bool result;
42712 wxGBSpan temp2 ;
42713 PyObject * obj0 = 0 ;
42714 PyObject * obj1 = 0 ;
42715 char *kwnames[] = {
42716 (char *) "self",(char *) "span", NULL
42717 };
42718
42719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail;
42720 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0);
42721 if (SWIG_arg_fail(1)) SWIG_fail;
42722 {
42723 arg2 = &temp2;
42724 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
42725 }
42726 {
42727 PyThreadState* __tstate = wxPyBeginAllowThreads();
42728 result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2);
42729
42730 wxPyEndAllowThreads(__tstate);
42731 if (PyErr_Occurred()) SWIG_fail;
42732 }
42733 {
42734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42735 }
42736 return resultobj;
42737 fail:
42738 return NULL;
42739 }
42740
42741
42742 static PyObject *_wrap_GBSizerItem_Intersects(PyObject *, PyObject *args, PyObject *kwargs) {
42743 PyObject *resultobj;
42744 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
42745 wxGBSizerItem *arg2 = 0 ;
42746 bool result;
42747 PyObject * obj0 = 0 ;
42748 PyObject * obj1 = 0 ;
42749 char *kwnames[] = {
42750 (char *) "self",(char *) "other", NULL
42751 };
42752
42753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail;
42754 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0);
42755 if (SWIG_arg_fail(1)) SWIG_fail;
42756 {
42757 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0);
42758 if (SWIG_arg_fail(2)) SWIG_fail;
42759 if (arg2 == NULL) {
42760 SWIG_null_ref("wxGBSizerItem");
42761 }
42762 if (SWIG_arg_fail(2)) SWIG_fail;
42763 }
42764 {
42765 PyThreadState* __tstate = wxPyBeginAllowThreads();
42766 result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2);
42767
42768 wxPyEndAllowThreads(__tstate);
42769 if (PyErr_Occurred()) SWIG_fail;
42770 }
42771 {
42772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42773 }
42774 return resultobj;
42775 fail:
42776 return NULL;
42777 }
42778
42779
42780 static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *, PyObject *args, PyObject *kwargs) {
42781 PyObject *resultobj;
42782 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
42783 wxGBPosition *arg2 = 0 ;
42784 wxGBSpan *arg3 = 0 ;
42785 bool result;
42786 wxGBPosition temp2 ;
42787 wxGBSpan temp3 ;
42788 PyObject * obj0 = 0 ;
42789 PyObject * obj1 = 0 ;
42790 PyObject * obj2 = 0 ;
42791 char *kwnames[] = {
42792 (char *) "self",(char *) "pos",(char *) "span", NULL
42793 };
42794
42795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail;
42796 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0);
42797 if (SWIG_arg_fail(1)) SWIG_fail;
42798 {
42799 arg2 = &temp2;
42800 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
42801 }
42802 {
42803 arg3 = &temp3;
42804 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
42805 }
42806 {
42807 PyThreadState* __tstate = wxPyBeginAllowThreads();
42808 result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3);
42809
42810 wxPyEndAllowThreads(__tstate);
42811 if (PyErr_Occurred()) SWIG_fail;
42812 }
42813 {
42814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42815 }
42816 return resultobj;
42817 fail:
42818 return NULL;
42819 }
42820
42821
42822 static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *, PyObject *args, PyObject *kwargs) {
42823 PyObject *resultobj;
42824 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
42825 wxGBPosition result;
42826 PyObject * obj0 = 0 ;
42827 char *kwnames[] = {
42828 (char *) "self", NULL
42829 };
42830
42831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail;
42832 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0);
42833 if (SWIG_arg_fail(1)) SWIG_fail;
42834 {
42835 PyThreadState* __tstate = wxPyBeginAllowThreads();
42836 result = wxGBSizerItem_GetEndPos(arg1);
42837
42838 wxPyEndAllowThreads(__tstate);
42839 if (PyErr_Occurred()) SWIG_fail;
42840 }
42841 {
42842 wxGBPosition * resultptr;
42843 resultptr = new wxGBPosition((wxGBPosition &)(result));
42844 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
42845 }
42846 return resultobj;
42847 fail:
42848 return NULL;
42849 }
42850
42851
42852 static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) {
42853 PyObject *resultobj;
42854 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
42855 wxGridBagSizer *result;
42856 PyObject * obj0 = 0 ;
42857 char *kwnames[] = {
42858 (char *) "self", NULL
42859 };
42860
42861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail;
42862 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0);
42863 if (SWIG_arg_fail(1)) SWIG_fail;
42864 {
42865 PyThreadState* __tstate = wxPyBeginAllowThreads();
42866 result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer();
42867
42868 wxPyEndAllowThreads(__tstate);
42869 if (PyErr_Occurred()) SWIG_fail;
42870 }
42871 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0);
42872 return resultobj;
42873 fail:
42874 return NULL;
42875 }
42876
42877
42878 static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) {
42879 PyObject *resultobj;
42880 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
42881 wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ;
42882 PyObject * obj0 = 0 ;
42883 PyObject * obj1 = 0 ;
42884 char *kwnames[] = {
42885 (char *) "self",(char *) "sizer", NULL
42886 };
42887
42888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail;
42889 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0);
42890 if (SWIG_arg_fail(1)) SWIG_fail;
42891 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
42892 if (SWIG_arg_fail(2)) SWIG_fail;
42893 {
42894 PyThreadState* __tstate = wxPyBeginAllowThreads();
42895 (arg1)->SetGBSizer(arg2);
42896
42897 wxPyEndAllowThreads(__tstate);
42898 if (PyErr_Occurred()) SWIG_fail;
42899 }
42900 Py_INCREF(Py_None); resultobj = Py_None;
42901 return resultobj;
42902 fail:
42903 return NULL;
42904 }
42905
42906
42907 static PyObject * GBSizerItem_swigregister(PyObject *, PyObject *args) {
42908 PyObject *obj;
42909 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
42910 SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj);
42911 Py_INCREF(obj);
42912 return Py_BuildValue((char *)"");
42913 }
42914 static PyObject *_wrap_new_GridBagSizer(PyObject *, PyObject *args, PyObject *kwargs) {
42915 PyObject *resultobj;
42916 int arg1 = (int) 0 ;
42917 int arg2 = (int) 0 ;
42918 wxGridBagSizer *result;
42919 PyObject * obj0 = 0 ;
42920 PyObject * obj1 = 0 ;
42921 char *kwnames[] = {
42922 (char *) "vgap",(char *) "hgap", NULL
42923 };
42924
42925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail;
42926 if (obj0) {
42927 {
42928 arg1 = (int)(SWIG_As_int(obj0));
42929 if (SWIG_arg_fail(1)) SWIG_fail;
42930 }
42931 }
42932 if (obj1) {
42933 {
42934 arg2 = (int)(SWIG_As_int(obj1));
42935 if (SWIG_arg_fail(2)) SWIG_fail;
42936 }
42937 }
42938 {
42939 PyThreadState* __tstate = wxPyBeginAllowThreads();
42940 result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2);
42941
42942 wxPyEndAllowThreads(__tstate);
42943 if (PyErr_Occurred()) SWIG_fail;
42944 }
42945 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1);
42946 return resultobj;
42947 fail:
42948 return NULL;
42949 }
42950
42951
42952 static PyObject *_wrap_GridBagSizer_Add(PyObject *, PyObject *args, PyObject *kwargs) {
42953 PyObject *resultobj;
42954 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
42955 PyObject *arg2 = (PyObject *) 0 ;
42956 wxGBPosition *arg3 = 0 ;
42957 wxGBSpan const &arg4_defvalue = wxDefaultSpan ;
42958 wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ;
42959 int arg5 = (int) 0 ;
42960 int arg6 = (int) 0 ;
42961 PyObject *arg7 = (PyObject *) NULL ;
42962 wxGBSizerItem *result;
42963 wxGBPosition temp3 ;
42964 wxGBSpan temp4 ;
42965 PyObject * obj0 = 0 ;
42966 PyObject * obj1 = 0 ;
42967 PyObject * obj2 = 0 ;
42968 PyObject * obj3 = 0 ;
42969 PyObject * obj4 = 0 ;
42970 PyObject * obj5 = 0 ;
42971 PyObject * obj6 = 0 ;
42972 char *kwnames[] = {
42973 (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
42974 };
42975
42976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
42977 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
42978 if (SWIG_arg_fail(1)) SWIG_fail;
42979 arg2 = obj1;
42980 {
42981 arg3 = &temp3;
42982 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
42983 }
42984 if (obj3) {
42985 {
42986 arg4 = &temp4;
42987 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
42988 }
42989 }
42990 if (obj4) {
42991 {
42992 arg5 = (int)(SWIG_As_int(obj4));
42993 if (SWIG_arg_fail(5)) SWIG_fail;
42994 }
42995 }
42996 if (obj5) {
42997 {
42998 arg6 = (int)(SWIG_As_int(obj5));
42999 if (SWIG_arg_fail(6)) SWIG_fail;
43000 }
43001 }
43002 if (obj6) {
43003 arg7 = obj6;
43004 }
43005 {
43006 PyThreadState* __tstate = wxPyBeginAllowThreads();
43007 result = (wxGBSizerItem *)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
43008
43009 wxPyEndAllowThreads(__tstate);
43010 if (PyErr_Occurred()) SWIG_fail;
43011 }
43012 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
43013 return resultobj;
43014 fail:
43015 return NULL;
43016 }
43017
43018
43019 static PyObject *_wrap_GridBagSizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) {
43020 PyObject *resultobj;
43021 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43022 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
43023 wxGBSizerItem *result;
43024 PyObject * obj0 = 0 ;
43025 PyObject * obj1 = 0 ;
43026 char *kwnames[] = {
43027 (char *) "self",(char *) "item", NULL
43028 };
43029
43030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
43031 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43032 if (SWIG_arg_fail(1)) SWIG_fail;
43033 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0);
43034 if (SWIG_arg_fail(2)) SWIG_fail;
43035 {
43036 PyThreadState* __tstate = wxPyBeginAllowThreads();
43037 result = (wxGBSizerItem *)(arg1)->Add(arg2);
43038
43039 wxPyEndAllowThreads(__tstate);
43040 if (PyErr_Occurred()) SWIG_fail;
43041 }
43042 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
43043 return resultobj;
43044 fail:
43045 return NULL;
43046 }
43047
43048
43049 static PyObject *_wrap_GridBagSizer_GetCellSize(PyObject *, PyObject *args, PyObject *kwargs) {
43050 PyObject *resultobj;
43051 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43052 int arg2 ;
43053 int arg3 ;
43054 wxSize result;
43055 PyObject * obj0 = 0 ;
43056 PyObject * obj1 = 0 ;
43057 PyObject * obj2 = 0 ;
43058 char *kwnames[] = {
43059 (char *) "self",(char *) "row",(char *) "col", NULL
43060 };
43061
43062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridBagSizer_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
43063 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43064 if (SWIG_arg_fail(1)) SWIG_fail;
43065 {
43066 arg2 = (int)(SWIG_As_int(obj1));
43067 if (SWIG_arg_fail(2)) SWIG_fail;
43068 }
43069 {
43070 arg3 = (int)(SWIG_As_int(obj2));
43071 if (SWIG_arg_fail(3)) SWIG_fail;
43072 }
43073 {
43074 PyThreadState* __tstate = wxPyBeginAllowThreads();
43075 result = ((wxGridBagSizer const *)arg1)->GetCellSize(arg2,arg3);
43076
43077 wxPyEndAllowThreads(__tstate);
43078 if (PyErr_Occurred()) SWIG_fail;
43079 }
43080 {
43081 wxSize * resultptr;
43082 resultptr = new wxSize((wxSize &)(result));
43083 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
43084 }
43085 return resultobj;
43086 fail:
43087 return NULL;
43088 }
43089
43090
43091 static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) {
43092 PyObject *resultobj;
43093 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43094 wxSize result;
43095 PyObject * obj0 = 0 ;
43096 char *kwnames[] = {
43097 (char *) "self", NULL
43098 };
43099
43100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail;
43101 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43102 if (SWIG_arg_fail(1)) SWIG_fail;
43103 {
43104 PyThreadState* __tstate = wxPyBeginAllowThreads();
43105 result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize();
43106
43107 wxPyEndAllowThreads(__tstate);
43108 if (PyErr_Occurred()) SWIG_fail;
43109 }
43110 {
43111 wxSize * resultptr;
43112 resultptr = new wxSize((wxSize &)(result));
43113 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
43114 }
43115 return resultobj;
43116 fail:
43117 return NULL;
43118 }
43119
43120
43121 static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) {
43122 PyObject *resultobj;
43123 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43124 wxSize *arg2 = 0 ;
43125 wxSize temp2 ;
43126 PyObject * obj0 = 0 ;
43127 PyObject * obj1 = 0 ;
43128 char *kwnames[] = {
43129 (char *) "self",(char *) "sz", NULL
43130 };
43131
43132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail;
43133 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43134 if (SWIG_arg_fail(1)) SWIG_fail;
43135 {
43136 arg2 = &temp2;
43137 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
43138 }
43139 {
43140 PyThreadState* __tstate = wxPyBeginAllowThreads();
43141 (arg1)->SetEmptyCellSize((wxSize const &)*arg2);
43142
43143 wxPyEndAllowThreads(__tstate);
43144 if (PyErr_Occurred()) SWIG_fail;
43145 }
43146 Py_INCREF(Py_None); resultobj = Py_None;
43147 return resultobj;
43148 fail:
43149 return NULL;
43150 }
43151
43152
43153 static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *, PyObject *args) {
43154 PyObject *resultobj;
43155 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43156 wxWindow *arg2 = (wxWindow *) 0 ;
43157 wxGBPosition result;
43158 PyObject * obj0 = 0 ;
43159 PyObject * obj1 = 0 ;
43160
43161 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
43162 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43163 if (SWIG_arg_fail(1)) SWIG_fail;
43164 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
43165 if (SWIG_arg_fail(2)) SWIG_fail;
43166 {
43167 PyThreadState* __tstate = wxPyBeginAllowThreads();
43168 result = (arg1)->GetItemPosition(arg2);
43169
43170 wxPyEndAllowThreads(__tstate);
43171 if (PyErr_Occurred()) SWIG_fail;
43172 }
43173 {
43174 wxGBPosition * resultptr;
43175 resultptr = new wxGBPosition((wxGBPosition &)(result));
43176 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
43177 }
43178 return resultobj;
43179 fail:
43180 return NULL;
43181 }
43182
43183
43184 static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *, PyObject *args) {
43185 PyObject *resultobj;
43186 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43187 wxSizer *arg2 = (wxSizer *) 0 ;
43188 wxGBPosition result;
43189 PyObject * obj0 = 0 ;
43190 PyObject * obj1 = 0 ;
43191
43192 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
43193 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43194 if (SWIG_arg_fail(1)) SWIG_fail;
43195 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
43196 if (SWIG_arg_fail(2)) SWIG_fail;
43197 {
43198 PyThreadState* __tstate = wxPyBeginAllowThreads();
43199 result = (arg1)->GetItemPosition(arg2);
43200
43201 wxPyEndAllowThreads(__tstate);
43202 if (PyErr_Occurred()) SWIG_fail;
43203 }
43204 {
43205 wxGBPosition * resultptr;
43206 resultptr = new wxGBPosition((wxGBPosition &)(result));
43207 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
43208 }
43209 return resultobj;
43210 fail:
43211 return NULL;
43212 }
43213
43214
43215 static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *, PyObject *args) {
43216 PyObject *resultobj;
43217 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43218 size_t arg2 ;
43219 wxGBPosition result;
43220 PyObject * obj0 = 0 ;
43221 PyObject * obj1 = 0 ;
43222
43223 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
43224 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43225 if (SWIG_arg_fail(1)) SWIG_fail;
43226 {
43227 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
43228 if (SWIG_arg_fail(2)) SWIG_fail;
43229 }
43230 {
43231 PyThreadState* __tstate = wxPyBeginAllowThreads();
43232 result = (arg1)->GetItemPosition(arg2);
43233
43234 wxPyEndAllowThreads(__tstate);
43235 if (PyErr_Occurred()) SWIG_fail;
43236 }
43237 {
43238 wxGBPosition * resultptr;
43239 resultptr = new wxGBPosition((wxGBPosition &)(result));
43240 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
43241 }
43242 return resultobj;
43243 fail:
43244 return NULL;
43245 }
43246
43247
43248 static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) {
43249 int argc;
43250 PyObject *argv[3];
43251 int ii;
43252
43253 argc = PyObject_Length(args);
43254 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
43255 argv[ii] = PyTuple_GetItem(args,ii);
43256 }
43257 if (argc == 2) {
43258 int _v;
43259 {
43260 void *ptr;
43261 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
43262 _v = 0;
43263 PyErr_Clear();
43264 } else {
43265 _v = 1;
43266 }
43267 }
43268 if (_v) {
43269 {
43270 void *ptr;
43271 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
43272 _v = 0;
43273 PyErr_Clear();
43274 } else {
43275 _v = 1;
43276 }
43277 }
43278 if (_v) {
43279 return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args);
43280 }
43281 }
43282 }
43283 if (argc == 2) {
43284 int _v;
43285 {
43286 void *ptr;
43287 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
43288 _v = 0;
43289 PyErr_Clear();
43290 } else {
43291 _v = 1;
43292 }
43293 }
43294 if (_v) {
43295 {
43296 void *ptr;
43297 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
43298 _v = 0;
43299 PyErr_Clear();
43300 } else {
43301 _v = 1;
43302 }
43303 }
43304 if (_v) {
43305 return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args);
43306 }
43307 }
43308 }
43309 if (argc == 2) {
43310 int _v;
43311 {
43312 void *ptr;
43313 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
43314 _v = 0;
43315 PyErr_Clear();
43316 } else {
43317 _v = 1;
43318 }
43319 }
43320 if (_v) {
43321 _v = SWIG_Check_unsigned_SS_long(argv[1]);
43322 if (_v) {
43323 return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args);
43324 }
43325 }
43326 }
43327
43328 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'");
43329 return NULL;
43330 }
43331
43332
43333 static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *, PyObject *args) {
43334 PyObject *resultobj;
43335 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43336 wxWindow *arg2 = (wxWindow *) 0 ;
43337 wxGBPosition *arg3 = 0 ;
43338 bool result;
43339 wxGBPosition temp3 ;
43340 PyObject * obj0 = 0 ;
43341 PyObject * obj1 = 0 ;
43342 PyObject * obj2 = 0 ;
43343
43344 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
43345 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43346 if (SWIG_arg_fail(1)) SWIG_fail;
43347 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
43348 if (SWIG_arg_fail(2)) SWIG_fail;
43349 {
43350 arg3 = &temp3;
43351 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
43352 }
43353 {
43354 PyThreadState* __tstate = wxPyBeginAllowThreads();
43355 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
43356
43357 wxPyEndAllowThreads(__tstate);
43358 if (PyErr_Occurred()) SWIG_fail;
43359 }
43360 {
43361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43362 }
43363 return resultobj;
43364 fail:
43365 return NULL;
43366 }
43367
43368
43369 static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *, PyObject *args) {
43370 PyObject *resultobj;
43371 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43372 wxSizer *arg2 = (wxSizer *) 0 ;
43373 wxGBPosition *arg3 = 0 ;
43374 bool result;
43375 wxGBPosition temp3 ;
43376 PyObject * obj0 = 0 ;
43377 PyObject * obj1 = 0 ;
43378 PyObject * obj2 = 0 ;
43379
43380 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
43381 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43382 if (SWIG_arg_fail(1)) SWIG_fail;
43383 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
43384 if (SWIG_arg_fail(2)) SWIG_fail;
43385 {
43386 arg3 = &temp3;
43387 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
43388 }
43389 {
43390 PyThreadState* __tstate = wxPyBeginAllowThreads();
43391 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
43392
43393 wxPyEndAllowThreads(__tstate);
43394 if (PyErr_Occurred()) SWIG_fail;
43395 }
43396 {
43397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43398 }
43399 return resultobj;
43400 fail:
43401 return NULL;
43402 }
43403
43404
43405 static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *, PyObject *args) {
43406 PyObject *resultobj;
43407 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43408 size_t arg2 ;
43409 wxGBPosition *arg3 = 0 ;
43410 bool result;
43411 wxGBPosition temp3 ;
43412 PyObject * obj0 = 0 ;
43413 PyObject * obj1 = 0 ;
43414 PyObject * obj2 = 0 ;
43415
43416 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
43417 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43418 if (SWIG_arg_fail(1)) SWIG_fail;
43419 {
43420 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
43421 if (SWIG_arg_fail(2)) SWIG_fail;
43422 }
43423 {
43424 arg3 = &temp3;
43425 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
43426 }
43427 {
43428 PyThreadState* __tstate = wxPyBeginAllowThreads();
43429 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
43430
43431 wxPyEndAllowThreads(__tstate);
43432 if (PyErr_Occurred()) SWIG_fail;
43433 }
43434 {
43435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43436 }
43437 return resultobj;
43438 fail:
43439 return NULL;
43440 }
43441
43442
43443 static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) {
43444 int argc;
43445 PyObject *argv[4];
43446 int ii;
43447
43448 argc = PyObject_Length(args);
43449 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
43450 argv[ii] = PyTuple_GetItem(args,ii);
43451 }
43452 if (argc == 3) {
43453 int _v;
43454 {
43455 void *ptr;
43456 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
43457 _v = 0;
43458 PyErr_Clear();
43459 } else {
43460 _v = 1;
43461 }
43462 }
43463 if (_v) {
43464 {
43465 void *ptr;
43466 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
43467 _v = 0;
43468 PyErr_Clear();
43469 } else {
43470 _v = 1;
43471 }
43472 }
43473 if (_v) {
43474 {
43475 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
43476 }
43477 if (_v) {
43478 return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args);
43479 }
43480 }
43481 }
43482 }
43483 if (argc == 3) {
43484 int _v;
43485 {
43486 void *ptr;
43487 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
43488 _v = 0;
43489 PyErr_Clear();
43490 } else {
43491 _v = 1;
43492 }
43493 }
43494 if (_v) {
43495 {
43496 void *ptr;
43497 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
43498 _v = 0;
43499 PyErr_Clear();
43500 } else {
43501 _v = 1;
43502 }
43503 }
43504 if (_v) {
43505 {
43506 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
43507 }
43508 if (_v) {
43509 return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args);
43510 }
43511 }
43512 }
43513 }
43514 if (argc == 3) {
43515 int _v;
43516 {
43517 void *ptr;
43518 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
43519 _v = 0;
43520 PyErr_Clear();
43521 } else {
43522 _v = 1;
43523 }
43524 }
43525 if (_v) {
43526 _v = SWIG_Check_unsigned_SS_long(argv[1]);
43527 if (_v) {
43528 {
43529 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
43530 }
43531 if (_v) {
43532 return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args);
43533 }
43534 }
43535 }
43536 }
43537
43538 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'");
43539 return NULL;
43540 }
43541
43542
43543 static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *, PyObject *args) {
43544 PyObject *resultobj;
43545 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43546 wxWindow *arg2 = (wxWindow *) 0 ;
43547 wxGBSpan result;
43548 PyObject * obj0 = 0 ;
43549 PyObject * obj1 = 0 ;
43550
43551 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
43552 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43553 if (SWIG_arg_fail(1)) SWIG_fail;
43554 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
43555 if (SWIG_arg_fail(2)) SWIG_fail;
43556 {
43557 PyThreadState* __tstate = wxPyBeginAllowThreads();
43558 result = (arg1)->GetItemSpan(arg2);
43559
43560 wxPyEndAllowThreads(__tstate);
43561 if (PyErr_Occurred()) SWIG_fail;
43562 }
43563 {
43564 wxGBSpan * resultptr;
43565 resultptr = new wxGBSpan((wxGBSpan &)(result));
43566 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
43567 }
43568 return resultobj;
43569 fail:
43570 return NULL;
43571 }
43572
43573
43574 static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *, PyObject *args) {
43575 PyObject *resultobj;
43576 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43577 wxSizer *arg2 = (wxSizer *) 0 ;
43578 wxGBSpan result;
43579 PyObject * obj0 = 0 ;
43580 PyObject * obj1 = 0 ;
43581
43582 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
43583 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43584 if (SWIG_arg_fail(1)) SWIG_fail;
43585 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
43586 if (SWIG_arg_fail(2)) SWIG_fail;
43587 {
43588 PyThreadState* __tstate = wxPyBeginAllowThreads();
43589 result = (arg1)->GetItemSpan(arg2);
43590
43591 wxPyEndAllowThreads(__tstate);
43592 if (PyErr_Occurred()) SWIG_fail;
43593 }
43594 {
43595 wxGBSpan * resultptr;
43596 resultptr = new wxGBSpan((wxGBSpan &)(result));
43597 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
43598 }
43599 return resultobj;
43600 fail:
43601 return NULL;
43602 }
43603
43604
43605 static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *, PyObject *args) {
43606 PyObject *resultobj;
43607 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43608 size_t arg2 ;
43609 wxGBSpan result;
43610 PyObject * obj0 = 0 ;
43611 PyObject * obj1 = 0 ;
43612
43613 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
43614 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43615 if (SWIG_arg_fail(1)) SWIG_fail;
43616 {
43617 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
43618 if (SWIG_arg_fail(2)) SWIG_fail;
43619 }
43620 {
43621 PyThreadState* __tstate = wxPyBeginAllowThreads();
43622 result = (arg1)->GetItemSpan(arg2);
43623
43624 wxPyEndAllowThreads(__tstate);
43625 if (PyErr_Occurred()) SWIG_fail;
43626 }
43627 {
43628 wxGBSpan * resultptr;
43629 resultptr = new wxGBSpan((wxGBSpan &)(result));
43630 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
43631 }
43632 return resultobj;
43633 fail:
43634 return NULL;
43635 }
43636
43637
43638 static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) {
43639 int argc;
43640 PyObject *argv[3];
43641 int ii;
43642
43643 argc = PyObject_Length(args);
43644 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
43645 argv[ii] = PyTuple_GetItem(args,ii);
43646 }
43647 if (argc == 2) {
43648 int _v;
43649 {
43650 void *ptr;
43651 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
43652 _v = 0;
43653 PyErr_Clear();
43654 } else {
43655 _v = 1;
43656 }
43657 }
43658 if (_v) {
43659 {
43660 void *ptr;
43661 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
43662 _v = 0;
43663 PyErr_Clear();
43664 } else {
43665 _v = 1;
43666 }
43667 }
43668 if (_v) {
43669 return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args);
43670 }
43671 }
43672 }
43673 if (argc == 2) {
43674 int _v;
43675 {
43676 void *ptr;
43677 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
43678 _v = 0;
43679 PyErr_Clear();
43680 } else {
43681 _v = 1;
43682 }
43683 }
43684 if (_v) {
43685 {
43686 void *ptr;
43687 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
43688 _v = 0;
43689 PyErr_Clear();
43690 } else {
43691 _v = 1;
43692 }
43693 }
43694 if (_v) {
43695 return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args);
43696 }
43697 }
43698 }
43699 if (argc == 2) {
43700 int _v;
43701 {
43702 void *ptr;
43703 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
43704 _v = 0;
43705 PyErr_Clear();
43706 } else {
43707 _v = 1;
43708 }
43709 }
43710 if (_v) {
43711 _v = SWIG_Check_unsigned_SS_long(argv[1]);
43712 if (_v) {
43713 return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args);
43714 }
43715 }
43716 }
43717
43718 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'");
43719 return NULL;
43720 }
43721
43722
43723 static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *, PyObject *args) {
43724 PyObject *resultobj;
43725 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43726 wxWindow *arg2 = (wxWindow *) 0 ;
43727 wxGBSpan *arg3 = 0 ;
43728 bool result;
43729 wxGBSpan temp3 ;
43730 PyObject * obj0 = 0 ;
43731 PyObject * obj1 = 0 ;
43732 PyObject * obj2 = 0 ;
43733
43734 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
43735 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43736 if (SWIG_arg_fail(1)) SWIG_fail;
43737 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
43738 if (SWIG_arg_fail(2)) SWIG_fail;
43739 {
43740 arg3 = &temp3;
43741 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
43742 }
43743 {
43744 PyThreadState* __tstate = wxPyBeginAllowThreads();
43745 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
43746
43747 wxPyEndAllowThreads(__tstate);
43748 if (PyErr_Occurred()) SWIG_fail;
43749 }
43750 {
43751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43752 }
43753 return resultobj;
43754 fail:
43755 return NULL;
43756 }
43757
43758
43759 static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *, PyObject *args) {
43760 PyObject *resultobj;
43761 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43762 wxSizer *arg2 = (wxSizer *) 0 ;
43763 wxGBSpan *arg3 = 0 ;
43764 bool result;
43765 wxGBSpan temp3 ;
43766 PyObject * obj0 = 0 ;
43767 PyObject * obj1 = 0 ;
43768 PyObject * obj2 = 0 ;
43769
43770 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
43771 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43772 if (SWIG_arg_fail(1)) SWIG_fail;
43773 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
43774 if (SWIG_arg_fail(2)) SWIG_fail;
43775 {
43776 arg3 = &temp3;
43777 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
43778 }
43779 {
43780 PyThreadState* __tstate = wxPyBeginAllowThreads();
43781 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
43782
43783 wxPyEndAllowThreads(__tstate);
43784 if (PyErr_Occurred()) SWIG_fail;
43785 }
43786 {
43787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43788 }
43789 return resultobj;
43790 fail:
43791 return NULL;
43792 }
43793
43794
43795 static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *, PyObject *args) {
43796 PyObject *resultobj;
43797 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43798 size_t arg2 ;
43799 wxGBSpan *arg3 = 0 ;
43800 bool result;
43801 wxGBSpan temp3 ;
43802 PyObject * obj0 = 0 ;
43803 PyObject * obj1 = 0 ;
43804 PyObject * obj2 = 0 ;
43805
43806 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
43807 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43808 if (SWIG_arg_fail(1)) SWIG_fail;
43809 {
43810 arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1));
43811 if (SWIG_arg_fail(2)) SWIG_fail;
43812 }
43813 {
43814 arg3 = &temp3;
43815 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
43816 }
43817 {
43818 PyThreadState* __tstate = wxPyBeginAllowThreads();
43819 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
43820
43821 wxPyEndAllowThreads(__tstate);
43822 if (PyErr_Occurred()) SWIG_fail;
43823 }
43824 {
43825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43826 }
43827 return resultobj;
43828 fail:
43829 return NULL;
43830 }
43831
43832
43833 static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) {
43834 int argc;
43835 PyObject *argv[4];
43836 int ii;
43837
43838 argc = PyObject_Length(args);
43839 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
43840 argv[ii] = PyTuple_GetItem(args,ii);
43841 }
43842 if (argc == 3) {
43843 int _v;
43844 {
43845 void *ptr;
43846 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
43847 _v = 0;
43848 PyErr_Clear();
43849 } else {
43850 _v = 1;
43851 }
43852 }
43853 if (_v) {
43854 {
43855 void *ptr;
43856 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
43857 _v = 0;
43858 PyErr_Clear();
43859 } else {
43860 _v = 1;
43861 }
43862 }
43863 if (_v) {
43864 {
43865 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
43866 }
43867 if (_v) {
43868 return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args);
43869 }
43870 }
43871 }
43872 }
43873 if (argc == 3) {
43874 int _v;
43875 {
43876 void *ptr;
43877 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
43878 _v = 0;
43879 PyErr_Clear();
43880 } else {
43881 _v = 1;
43882 }
43883 }
43884 if (_v) {
43885 {
43886 void *ptr;
43887 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
43888 _v = 0;
43889 PyErr_Clear();
43890 } else {
43891 _v = 1;
43892 }
43893 }
43894 if (_v) {
43895 {
43896 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
43897 }
43898 if (_v) {
43899 return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args);
43900 }
43901 }
43902 }
43903 }
43904 if (argc == 3) {
43905 int _v;
43906 {
43907 void *ptr;
43908 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
43909 _v = 0;
43910 PyErr_Clear();
43911 } else {
43912 _v = 1;
43913 }
43914 }
43915 if (_v) {
43916 _v = SWIG_Check_unsigned_SS_long(argv[1]);
43917 if (_v) {
43918 {
43919 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
43920 }
43921 if (_v) {
43922 return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args);
43923 }
43924 }
43925 }
43926 }
43927
43928 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'");
43929 return NULL;
43930 }
43931
43932
43933 static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *, PyObject *args) {
43934 PyObject *resultobj;
43935 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43936 wxWindow *arg2 = (wxWindow *) 0 ;
43937 wxGBSizerItem *result;
43938 PyObject * obj0 = 0 ;
43939 PyObject * obj1 = 0 ;
43940
43941 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
43942 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43943 if (SWIG_arg_fail(1)) SWIG_fail;
43944 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
43945 if (SWIG_arg_fail(2)) SWIG_fail;
43946 {
43947 PyThreadState* __tstate = wxPyBeginAllowThreads();
43948 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
43949
43950 wxPyEndAllowThreads(__tstate);
43951 if (PyErr_Occurred()) SWIG_fail;
43952 }
43953 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
43954 return resultobj;
43955 fail:
43956 return NULL;
43957 }
43958
43959
43960 static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *, PyObject *args) {
43961 PyObject *resultobj;
43962 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
43963 wxSizer *arg2 = (wxSizer *) 0 ;
43964 wxGBSizerItem *result;
43965 PyObject * obj0 = 0 ;
43966 PyObject * obj1 = 0 ;
43967
43968 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
43969 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
43970 if (SWIG_arg_fail(1)) SWIG_fail;
43971 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxSizer, SWIG_POINTER_EXCEPTION | 0);
43972 if (SWIG_arg_fail(2)) SWIG_fail;
43973 {
43974 PyThreadState* __tstate = wxPyBeginAllowThreads();
43975 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
43976
43977 wxPyEndAllowThreads(__tstate);
43978 if (PyErr_Occurred()) SWIG_fail;
43979 }
43980 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
43981 return resultobj;
43982 fail:
43983 return NULL;
43984 }
43985
43986
43987 static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) {
43988 int argc;
43989 PyObject *argv[3];
43990 int ii;
43991
43992 argc = PyObject_Length(args);
43993 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
43994 argv[ii] = PyTuple_GetItem(args,ii);
43995 }
43996 if (argc == 2) {
43997 int _v;
43998 {
43999 void *ptr;
44000 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
44001 _v = 0;
44002 PyErr_Clear();
44003 } else {
44004 _v = 1;
44005 }
44006 }
44007 if (_v) {
44008 {
44009 void *ptr;
44010 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
44011 _v = 0;
44012 PyErr_Clear();
44013 } else {
44014 _v = 1;
44015 }
44016 }
44017 if (_v) {
44018 return _wrap_GridBagSizer_FindItem__SWIG_0(self,args);
44019 }
44020 }
44021 }
44022 if (argc == 2) {
44023 int _v;
44024 {
44025 void *ptr;
44026 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
44027 _v = 0;
44028 PyErr_Clear();
44029 } else {
44030 _v = 1;
44031 }
44032 }
44033 if (_v) {
44034 {
44035 void *ptr;
44036 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
44037 _v = 0;
44038 PyErr_Clear();
44039 } else {
44040 _v = 1;
44041 }
44042 }
44043 if (_v) {
44044 return _wrap_GridBagSizer_FindItem__SWIG_1(self,args);
44045 }
44046 }
44047 }
44048
44049 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_FindItem'");
44050 return NULL;
44051 }
44052
44053
44054 static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *, PyObject *args, PyObject *kwargs) {
44055 PyObject *resultobj;
44056 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
44057 wxGBPosition *arg2 = 0 ;
44058 wxGBSizerItem *result;
44059 wxGBPosition temp2 ;
44060 PyObject * obj0 = 0 ;
44061 PyObject * obj1 = 0 ;
44062 char *kwnames[] = {
44063 (char *) "self",(char *) "pos", NULL
44064 };
44065
44066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail;
44067 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
44068 if (SWIG_arg_fail(1)) SWIG_fail;
44069 {
44070 arg2 = &temp2;
44071 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
44072 }
44073 {
44074 PyThreadState* __tstate = wxPyBeginAllowThreads();
44075 result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2);
44076
44077 wxPyEndAllowThreads(__tstate);
44078 if (PyErr_Occurred()) SWIG_fail;
44079 }
44080 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
44081 return resultobj;
44082 fail:
44083 return NULL;
44084 }
44085
44086
44087 static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
44088 PyObject *resultobj;
44089 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
44090 wxPoint *arg2 = 0 ;
44091 wxGBSizerItem *result;
44092 wxPoint temp2 ;
44093 PyObject * obj0 = 0 ;
44094 PyObject * obj1 = 0 ;
44095 char *kwnames[] = {
44096 (char *) "self",(char *) "pt", NULL
44097 };
44098
44099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail;
44100 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
44101 if (SWIG_arg_fail(1)) SWIG_fail;
44102 {
44103 arg2 = &temp2;
44104 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
44105 }
44106 {
44107 PyThreadState* __tstate = wxPyBeginAllowThreads();
44108 result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2);
44109
44110 wxPyEndAllowThreads(__tstate);
44111 if (PyErr_Occurred()) SWIG_fail;
44112 }
44113 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
44114 return resultobj;
44115 fail:
44116 return NULL;
44117 }
44118
44119
44120 static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *, PyObject *args, PyObject *kwargs) {
44121 PyObject *resultobj;
44122 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
44123 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
44124 wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ;
44125 bool result;
44126 PyObject * obj0 = 0 ;
44127 PyObject * obj1 = 0 ;
44128 PyObject * obj2 = 0 ;
44129 char *kwnames[] = {
44130 (char *) "self",(char *) "item",(char *) "excludeItem", NULL
44131 };
44132
44133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail;
44134 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
44135 if (SWIG_arg_fail(1)) SWIG_fail;
44136 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0);
44137 if (SWIG_arg_fail(2)) SWIG_fail;
44138 if (obj2) {
44139 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0);
44140 if (SWIG_arg_fail(3)) SWIG_fail;
44141 }
44142 {
44143 PyThreadState* __tstate = wxPyBeginAllowThreads();
44144 result = (bool)(arg1)->CheckForIntersection(arg2,arg3);
44145
44146 wxPyEndAllowThreads(__tstate);
44147 if (PyErr_Occurred()) SWIG_fail;
44148 }
44149 {
44150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44151 }
44152 return resultobj;
44153 fail:
44154 return NULL;
44155 }
44156
44157
44158 static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *, PyObject *args, PyObject *kwargs) {
44159 PyObject *resultobj;
44160 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
44161 wxGBPosition *arg2 = 0 ;
44162 wxGBSpan *arg3 = 0 ;
44163 wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ;
44164 bool result;
44165 wxGBPosition temp2 ;
44166 wxGBSpan temp3 ;
44167 PyObject * obj0 = 0 ;
44168 PyObject * obj1 = 0 ;
44169 PyObject * obj2 = 0 ;
44170 PyObject * obj3 = 0 ;
44171 char *kwnames[] = {
44172 (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL
44173 };
44174
44175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
44176 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_EXCEPTION | 0);
44177 if (SWIG_arg_fail(1)) SWIG_fail;
44178 {
44179 arg2 = &temp2;
44180 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
44181 }
44182 {
44183 arg3 = &temp3;
44184 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
44185 }
44186 if (obj3) {
44187 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_EXCEPTION | 0);
44188 if (SWIG_arg_fail(4)) SWIG_fail;
44189 }
44190 {
44191 PyThreadState* __tstate = wxPyBeginAllowThreads();
44192 result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4);
44193
44194 wxPyEndAllowThreads(__tstate);
44195 if (PyErr_Occurred()) SWIG_fail;
44196 }
44197 {
44198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44199 }
44200 return resultobj;
44201 fail:
44202 return NULL;
44203 }
44204
44205
44206 static PyObject * GridBagSizer_swigregister(PyObject *, PyObject *args) {
44207 PyObject *obj;
44208 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
44209 SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj);
44210 Py_INCREF(obj);
44211 return Py_BuildValue((char *)"");
44212 }
44213 static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *, PyObject *args, PyObject *kwargs) {
44214 PyObject *resultobj;
44215 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44216 wxRelationship arg2 ;
44217 wxWindow *arg3 = (wxWindow *) 0 ;
44218 wxEdge arg4 ;
44219 int arg5 = (int) 0 ;
44220 int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ;
44221 PyObject * obj0 = 0 ;
44222 PyObject * obj1 = 0 ;
44223 PyObject * obj2 = 0 ;
44224 PyObject * obj3 = 0 ;
44225 PyObject * obj4 = 0 ;
44226 PyObject * obj5 = 0 ;
44227 char *kwnames[] = {
44228 (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL
44229 };
44230
44231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
44232 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44233 if (SWIG_arg_fail(1)) SWIG_fail;
44234 {
44235 arg2 = (wxRelationship)(SWIG_As_int(obj1));
44236 if (SWIG_arg_fail(2)) SWIG_fail;
44237 }
44238 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
44239 if (SWIG_arg_fail(3)) SWIG_fail;
44240 {
44241 arg4 = (wxEdge)(SWIG_As_int(obj3));
44242 if (SWIG_arg_fail(4)) SWIG_fail;
44243 }
44244 if (obj4) {
44245 {
44246 arg5 = (int)(SWIG_As_int(obj4));
44247 if (SWIG_arg_fail(5)) SWIG_fail;
44248 }
44249 }
44250 if (obj5) {
44251 {
44252 arg6 = (int)(SWIG_As_int(obj5));
44253 if (SWIG_arg_fail(6)) SWIG_fail;
44254 }
44255 }
44256 {
44257 PyThreadState* __tstate = wxPyBeginAllowThreads();
44258 (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6);
44259
44260 wxPyEndAllowThreads(__tstate);
44261 if (PyErr_Occurred()) SWIG_fail;
44262 }
44263 Py_INCREF(Py_None); resultobj = Py_None;
44264 return resultobj;
44265 fail:
44266 return NULL;
44267 }
44268
44269
44270 static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *, PyObject *args, PyObject *kwargs) {
44271 PyObject *resultobj;
44272 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44273 wxWindow *arg2 = (wxWindow *) 0 ;
44274 int arg3 = (int) 0 ;
44275 PyObject * obj0 = 0 ;
44276 PyObject * obj1 = 0 ;
44277 PyObject * obj2 = 0 ;
44278 char *kwnames[] = {
44279 (char *) "self",(char *) "sibling",(char *) "marg", NULL
44280 };
44281
44282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
44283 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44284 if (SWIG_arg_fail(1)) SWIG_fail;
44285 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
44286 if (SWIG_arg_fail(2)) SWIG_fail;
44287 if (obj2) {
44288 {
44289 arg3 = (int)(SWIG_As_int(obj2));
44290 if (SWIG_arg_fail(3)) SWIG_fail;
44291 }
44292 }
44293 {
44294 PyThreadState* __tstate = wxPyBeginAllowThreads();
44295 (arg1)->LeftOf(arg2,arg3);
44296
44297 wxPyEndAllowThreads(__tstate);
44298 if (PyErr_Occurred()) SWIG_fail;
44299 }
44300 Py_INCREF(Py_None); resultobj = Py_None;
44301 return resultobj;
44302 fail:
44303 return NULL;
44304 }
44305
44306
44307 static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *, PyObject *args, PyObject *kwargs) {
44308 PyObject *resultobj;
44309 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44310 wxWindow *arg2 = (wxWindow *) 0 ;
44311 int arg3 = (int) 0 ;
44312 PyObject * obj0 = 0 ;
44313 PyObject * obj1 = 0 ;
44314 PyObject * obj2 = 0 ;
44315 char *kwnames[] = {
44316 (char *) "self",(char *) "sibling",(char *) "marg", NULL
44317 };
44318
44319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
44320 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44321 if (SWIG_arg_fail(1)) SWIG_fail;
44322 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
44323 if (SWIG_arg_fail(2)) SWIG_fail;
44324 if (obj2) {
44325 {
44326 arg3 = (int)(SWIG_As_int(obj2));
44327 if (SWIG_arg_fail(3)) SWIG_fail;
44328 }
44329 }
44330 {
44331 PyThreadState* __tstate = wxPyBeginAllowThreads();
44332 (arg1)->RightOf(arg2,arg3);
44333
44334 wxPyEndAllowThreads(__tstate);
44335 if (PyErr_Occurred()) SWIG_fail;
44336 }
44337 Py_INCREF(Py_None); resultobj = Py_None;
44338 return resultobj;
44339 fail:
44340 return NULL;
44341 }
44342
44343
44344 static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *, PyObject *args, PyObject *kwargs) {
44345 PyObject *resultobj;
44346 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44347 wxWindow *arg2 = (wxWindow *) 0 ;
44348 int arg3 = (int) 0 ;
44349 PyObject * obj0 = 0 ;
44350 PyObject * obj1 = 0 ;
44351 PyObject * obj2 = 0 ;
44352 char *kwnames[] = {
44353 (char *) "self",(char *) "sibling",(char *) "marg", NULL
44354 };
44355
44356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail;
44357 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44358 if (SWIG_arg_fail(1)) SWIG_fail;
44359 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
44360 if (SWIG_arg_fail(2)) SWIG_fail;
44361 if (obj2) {
44362 {
44363 arg3 = (int)(SWIG_As_int(obj2));
44364 if (SWIG_arg_fail(3)) SWIG_fail;
44365 }
44366 }
44367 {
44368 PyThreadState* __tstate = wxPyBeginAllowThreads();
44369 (arg1)->Above(arg2,arg3);
44370
44371 wxPyEndAllowThreads(__tstate);
44372 if (PyErr_Occurred()) SWIG_fail;
44373 }
44374 Py_INCREF(Py_None); resultobj = Py_None;
44375 return resultobj;
44376 fail:
44377 return NULL;
44378 }
44379
44380
44381 static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *, PyObject *args, PyObject *kwargs) {
44382 PyObject *resultobj;
44383 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44384 wxWindow *arg2 = (wxWindow *) 0 ;
44385 int arg3 = (int) 0 ;
44386 PyObject * obj0 = 0 ;
44387 PyObject * obj1 = 0 ;
44388 PyObject * obj2 = 0 ;
44389 char *kwnames[] = {
44390 (char *) "self",(char *) "sibling",(char *) "marg", NULL
44391 };
44392
44393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail;
44394 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44395 if (SWIG_arg_fail(1)) SWIG_fail;
44396 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
44397 if (SWIG_arg_fail(2)) SWIG_fail;
44398 if (obj2) {
44399 {
44400 arg3 = (int)(SWIG_As_int(obj2));
44401 if (SWIG_arg_fail(3)) SWIG_fail;
44402 }
44403 }
44404 {
44405 PyThreadState* __tstate = wxPyBeginAllowThreads();
44406 (arg1)->Below(arg2,arg3);
44407
44408 wxPyEndAllowThreads(__tstate);
44409 if (PyErr_Occurred()) SWIG_fail;
44410 }
44411 Py_INCREF(Py_None); resultobj = Py_None;
44412 return resultobj;
44413 fail:
44414 return NULL;
44415 }
44416
44417
44418 static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *, PyObject *args, PyObject *kwargs) {
44419 PyObject *resultobj;
44420 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44421 wxWindow *arg2 = (wxWindow *) 0 ;
44422 wxEdge arg3 ;
44423 int arg4 = (int) 0 ;
44424 PyObject * obj0 = 0 ;
44425 PyObject * obj1 = 0 ;
44426 PyObject * obj2 = 0 ;
44427 PyObject * obj3 = 0 ;
44428 char *kwnames[] = {
44429 (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL
44430 };
44431
44432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
44433 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44434 if (SWIG_arg_fail(1)) SWIG_fail;
44435 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
44436 if (SWIG_arg_fail(2)) SWIG_fail;
44437 {
44438 arg3 = (wxEdge)(SWIG_As_int(obj2));
44439 if (SWIG_arg_fail(3)) SWIG_fail;
44440 }
44441 if (obj3) {
44442 {
44443 arg4 = (int)(SWIG_As_int(obj3));
44444 if (SWIG_arg_fail(4)) SWIG_fail;
44445 }
44446 }
44447 {
44448 PyThreadState* __tstate = wxPyBeginAllowThreads();
44449 (arg1)->SameAs(arg2,(wxEdge )arg3,arg4);
44450
44451 wxPyEndAllowThreads(__tstate);
44452 if (PyErr_Occurred()) SWIG_fail;
44453 }
44454 Py_INCREF(Py_None); resultobj = Py_None;
44455 return resultobj;
44456 fail:
44457 return NULL;
44458 }
44459
44460
44461 static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *, PyObject *args, PyObject *kwargs) {
44462 PyObject *resultobj;
44463 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44464 wxWindow *arg2 = (wxWindow *) 0 ;
44465 wxEdge arg3 ;
44466 int arg4 ;
44467 PyObject * obj0 = 0 ;
44468 PyObject * obj1 = 0 ;
44469 PyObject * obj2 = 0 ;
44470 PyObject * obj3 = 0 ;
44471 char *kwnames[] = {
44472 (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL
44473 };
44474
44475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
44476 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44477 if (SWIG_arg_fail(1)) SWIG_fail;
44478 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
44479 if (SWIG_arg_fail(2)) SWIG_fail;
44480 {
44481 arg3 = (wxEdge)(SWIG_As_int(obj2));
44482 if (SWIG_arg_fail(3)) SWIG_fail;
44483 }
44484 {
44485 arg4 = (int)(SWIG_As_int(obj3));
44486 if (SWIG_arg_fail(4)) SWIG_fail;
44487 }
44488 {
44489 PyThreadState* __tstate = wxPyBeginAllowThreads();
44490 (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4);
44491
44492 wxPyEndAllowThreads(__tstate);
44493 if (PyErr_Occurred()) SWIG_fail;
44494 }
44495 Py_INCREF(Py_None); resultobj = Py_None;
44496 return resultobj;
44497 fail:
44498 return NULL;
44499 }
44500
44501
44502 static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *, PyObject *args, PyObject *kwargs) {
44503 PyObject *resultobj;
44504 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44505 int arg2 ;
44506 PyObject * obj0 = 0 ;
44507 PyObject * obj1 = 0 ;
44508 char *kwnames[] = {
44509 (char *) "self",(char *) "val", NULL
44510 };
44511
44512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail;
44513 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44514 if (SWIG_arg_fail(1)) SWIG_fail;
44515 {
44516 arg2 = (int)(SWIG_As_int(obj1));
44517 if (SWIG_arg_fail(2)) SWIG_fail;
44518 }
44519 {
44520 PyThreadState* __tstate = wxPyBeginAllowThreads();
44521 (arg1)->Absolute(arg2);
44522
44523 wxPyEndAllowThreads(__tstate);
44524 if (PyErr_Occurred()) SWIG_fail;
44525 }
44526 Py_INCREF(Py_None); resultobj = Py_None;
44527 return resultobj;
44528 fail:
44529 return NULL;
44530 }
44531
44532
44533 static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *, PyObject *args, PyObject *kwargs) {
44534 PyObject *resultobj;
44535 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44536 PyObject * obj0 = 0 ;
44537 char *kwnames[] = {
44538 (char *) "self", NULL
44539 };
44540
44541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail;
44542 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44543 if (SWIG_arg_fail(1)) SWIG_fail;
44544 {
44545 PyThreadState* __tstate = wxPyBeginAllowThreads();
44546 (arg1)->Unconstrained();
44547
44548 wxPyEndAllowThreads(__tstate);
44549 if (PyErr_Occurred()) SWIG_fail;
44550 }
44551 Py_INCREF(Py_None); resultobj = Py_None;
44552 return resultobj;
44553 fail:
44554 return NULL;
44555 }
44556
44557
44558 static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *, PyObject *args, PyObject *kwargs) {
44559 PyObject *resultobj;
44560 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44561 PyObject * obj0 = 0 ;
44562 char *kwnames[] = {
44563 (char *) "self", NULL
44564 };
44565
44566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail;
44567 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44568 if (SWIG_arg_fail(1)) SWIG_fail;
44569 {
44570 PyThreadState* __tstate = wxPyBeginAllowThreads();
44571 (arg1)->AsIs();
44572
44573 wxPyEndAllowThreads(__tstate);
44574 if (PyErr_Occurred()) SWIG_fail;
44575 }
44576 Py_INCREF(Py_None); resultobj = Py_None;
44577 return resultobj;
44578 fail:
44579 return NULL;
44580 }
44581
44582
44583 static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *, PyObject *args, PyObject *kwargs) {
44584 PyObject *resultobj;
44585 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44586 wxWindow *result;
44587 PyObject * obj0 = 0 ;
44588 char *kwnames[] = {
44589 (char *) "self", NULL
44590 };
44591
44592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail;
44593 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44594 if (SWIG_arg_fail(1)) SWIG_fail;
44595 {
44596 PyThreadState* __tstate = wxPyBeginAllowThreads();
44597 result = (wxWindow *)(arg1)->GetOtherWindow();
44598
44599 wxPyEndAllowThreads(__tstate);
44600 if (PyErr_Occurred()) SWIG_fail;
44601 }
44602 {
44603 resultobj = wxPyMake_wxObject(result, 0);
44604 }
44605 return resultobj;
44606 fail:
44607 return NULL;
44608 }
44609
44610
44611 static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *, PyObject *args, PyObject *kwargs) {
44612 PyObject *resultobj;
44613 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44614 wxEdge result;
44615 PyObject * obj0 = 0 ;
44616 char *kwnames[] = {
44617 (char *) "self", NULL
44618 };
44619
44620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail;
44621 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44622 if (SWIG_arg_fail(1)) SWIG_fail;
44623 {
44624 PyThreadState* __tstate = wxPyBeginAllowThreads();
44625 result = (wxEdge)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge();
44626
44627 wxPyEndAllowThreads(__tstate);
44628 if (PyErr_Occurred()) SWIG_fail;
44629 }
44630 resultobj = SWIG_From_int((result));
44631 return resultobj;
44632 fail:
44633 return NULL;
44634 }
44635
44636
44637 static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *, PyObject *args, PyObject *kwargs) {
44638 PyObject *resultobj;
44639 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44640 wxEdge arg2 ;
44641 PyObject * obj0 = 0 ;
44642 PyObject * obj1 = 0 ;
44643 char *kwnames[] = {
44644 (char *) "self",(char *) "which", NULL
44645 };
44646
44647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail;
44648 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44649 if (SWIG_arg_fail(1)) SWIG_fail;
44650 {
44651 arg2 = (wxEdge)(SWIG_As_int(obj1));
44652 if (SWIG_arg_fail(2)) SWIG_fail;
44653 }
44654 {
44655 PyThreadState* __tstate = wxPyBeginAllowThreads();
44656 (arg1)->SetEdge((wxEdge )arg2);
44657
44658 wxPyEndAllowThreads(__tstate);
44659 if (PyErr_Occurred()) SWIG_fail;
44660 }
44661 Py_INCREF(Py_None); resultobj = Py_None;
44662 return resultobj;
44663 fail:
44664 return NULL;
44665 }
44666
44667
44668 static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
44669 PyObject *resultobj;
44670 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44671 int arg2 ;
44672 PyObject * obj0 = 0 ;
44673 PyObject * obj1 = 0 ;
44674 char *kwnames[] = {
44675 (char *) "self",(char *) "v", NULL
44676 };
44677
44678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail;
44679 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44680 if (SWIG_arg_fail(1)) SWIG_fail;
44681 {
44682 arg2 = (int)(SWIG_As_int(obj1));
44683 if (SWIG_arg_fail(2)) SWIG_fail;
44684 }
44685 {
44686 PyThreadState* __tstate = wxPyBeginAllowThreads();
44687 (arg1)->SetValue(arg2);
44688
44689 wxPyEndAllowThreads(__tstate);
44690 if (PyErr_Occurred()) SWIG_fail;
44691 }
44692 Py_INCREF(Py_None); resultobj = Py_None;
44693 return resultobj;
44694 fail:
44695 return NULL;
44696 }
44697
44698
44699 static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *, PyObject *args, PyObject *kwargs) {
44700 PyObject *resultobj;
44701 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44702 int result;
44703 PyObject * obj0 = 0 ;
44704 char *kwnames[] = {
44705 (char *) "self", NULL
44706 };
44707
44708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail;
44709 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44710 if (SWIG_arg_fail(1)) SWIG_fail;
44711 {
44712 PyThreadState* __tstate = wxPyBeginAllowThreads();
44713 result = (int)(arg1)->GetMargin();
44714
44715 wxPyEndAllowThreads(__tstate);
44716 if (PyErr_Occurred()) SWIG_fail;
44717 }
44718 {
44719 resultobj = SWIG_From_int((int)(result));
44720 }
44721 return resultobj;
44722 fail:
44723 return NULL;
44724 }
44725
44726
44727 static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *, PyObject *args, PyObject *kwargs) {
44728 PyObject *resultobj;
44729 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44730 int arg2 ;
44731 PyObject * obj0 = 0 ;
44732 PyObject * obj1 = 0 ;
44733 char *kwnames[] = {
44734 (char *) "self",(char *) "m", NULL
44735 };
44736
44737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail;
44738 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44739 if (SWIG_arg_fail(1)) SWIG_fail;
44740 {
44741 arg2 = (int)(SWIG_As_int(obj1));
44742 if (SWIG_arg_fail(2)) SWIG_fail;
44743 }
44744 {
44745 PyThreadState* __tstate = wxPyBeginAllowThreads();
44746 (arg1)->SetMargin(arg2);
44747
44748 wxPyEndAllowThreads(__tstate);
44749 if (PyErr_Occurred()) SWIG_fail;
44750 }
44751 Py_INCREF(Py_None); resultobj = Py_None;
44752 return resultobj;
44753 fail:
44754 return NULL;
44755 }
44756
44757
44758 static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
44759 PyObject *resultobj;
44760 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44761 int result;
44762 PyObject * obj0 = 0 ;
44763 char *kwnames[] = {
44764 (char *) "self", NULL
44765 };
44766
44767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail;
44768 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44769 if (SWIG_arg_fail(1)) SWIG_fail;
44770 {
44771 PyThreadState* __tstate = wxPyBeginAllowThreads();
44772 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue();
44773
44774 wxPyEndAllowThreads(__tstate);
44775 if (PyErr_Occurred()) SWIG_fail;
44776 }
44777 {
44778 resultobj = SWIG_From_int((int)(result));
44779 }
44780 return resultobj;
44781 fail:
44782 return NULL;
44783 }
44784
44785
44786 static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *, PyObject *args, PyObject *kwargs) {
44787 PyObject *resultobj;
44788 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44789 int result;
44790 PyObject * obj0 = 0 ;
44791 char *kwnames[] = {
44792 (char *) "self", NULL
44793 };
44794
44795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail;
44796 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44797 if (SWIG_arg_fail(1)) SWIG_fail;
44798 {
44799 PyThreadState* __tstate = wxPyBeginAllowThreads();
44800 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent();
44801
44802 wxPyEndAllowThreads(__tstate);
44803 if (PyErr_Occurred()) SWIG_fail;
44804 }
44805 {
44806 resultobj = SWIG_From_int((int)(result));
44807 }
44808 return resultobj;
44809 fail:
44810 return NULL;
44811 }
44812
44813
44814 static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *, PyObject *args, PyObject *kwargs) {
44815 PyObject *resultobj;
44816 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44817 int result;
44818 PyObject * obj0 = 0 ;
44819 char *kwnames[] = {
44820 (char *) "self", NULL
44821 };
44822
44823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail;
44824 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44825 if (SWIG_arg_fail(1)) SWIG_fail;
44826 {
44827 PyThreadState* __tstate = wxPyBeginAllowThreads();
44828 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge();
44829
44830 wxPyEndAllowThreads(__tstate);
44831 if (PyErr_Occurred()) SWIG_fail;
44832 }
44833 {
44834 resultobj = SWIG_From_int((int)(result));
44835 }
44836 return resultobj;
44837 fail:
44838 return NULL;
44839 }
44840
44841
44842 static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *, PyObject *args, PyObject *kwargs) {
44843 PyObject *resultobj;
44844 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44845 bool result;
44846 PyObject * obj0 = 0 ;
44847 char *kwnames[] = {
44848 (char *) "self", NULL
44849 };
44850
44851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail;
44852 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44853 if (SWIG_arg_fail(1)) SWIG_fail;
44854 {
44855 PyThreadState* __tstate = wxPyBeginAllowThreads();
44856 result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone();
44857
44858 wxPyEndAllowThreads(__tstate);
44859 if (PyErr_Occurred()) SWIG_fail;
44860 }
44861 {
44862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44863 }
44864 return resultobj;
44865 fail:
44866 return NULL;
44867 }
44868
44869
44870 static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *, PyObject *args, PyObject *kwargs) {
44871 PyObject *resultobj;
44872 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44873 bool arg2 ;
44874 PyObject * obj0 = 0 ;
44875 PyObject * obj1 = 0 ;
44876 char *kwnames[] = {
44877 (char *) "self",(char *) "d", NULL
44878 };
44879
44880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail;
44881 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44882 if (SWIG_arg_fail(1)) SWIG_fail;
44883 {
44884 arg2 = (bool)(SWIG_As_bool(obj1));
44885 if (SWIG_arg_fail(2)) SWIG_fail;
44886 }
44887 {
44888 PyThreadState* __tstate = wxPyBeginAllowThreads();
44889 (arg1)->SetDone(arg2);
44890
44891 wxPyEndAllowThreads(__tstate);
44892 if (PyErr_Occurred()) SWIG_fail;
44893 }
44894 Py_INCREF(Py_None); resultobj = Py_None;
44895 return resultobj;
44896 fail:
44897 return NULL;
44898 }
44899
44900
44901 static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *, PyObject *args, PyObject *kwargs) {
44902 PyObject *resultobj;
44903 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44904 wxRelationship result;
44905 PyObject * obj0 = 0 ;
44906 char *kwnames[] = {
44907 (char *) "self", NULL
44908 };
44909
44910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail;
44911 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44912 if (SWIG_arg_fail(1)) SWIG_fail;
44913 {
44914 PyThreadState* __tstate = wxPyBeginAllowThreads();
44915 result = (wxRelationship)(arg1)->GetRelationship();
44916
44917 wxPyEndAllowThreads(__tstate);
44918 if (PyErr_Occurred()) SWIG_fail;
44919 }
44920 resultobj = SWIG_From_int((result));
44921 return resultobj;
44922 fail:
44923 return NULL;
44924 }
44925
44926
44927 static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *, PyObject *args, PyObject *kwargs) {
44928 PyObject *resultobj;
44929 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44930 wxRelationship arg2 ;
44931 PyObject * obj0 = 0 ;
44932 PyObject * obj1 = 0 ;
44933 char *kwnames[] = {
44934 (char *) "self",(char *) "r", NULL
44935 };
44936
44937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail;
44938 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44939 if (SWIG_arg_fail(1)) SWIG_fail;
44940 {
44941 arg2 = (wxRelationship)(SWIG_As_int(obj1));
44942 if (SWIG_arg_fail(2)) SWIG_fail;
44943 }
44944 {
44945 PyThreadState* __tstate = wxPyBeginAllowThreads();
44946 (arg1)->SetRelationship((wxRelationship )arg2);
44947
44948 wxPyEndAllowThreads(__tstate);
44949 if (PyErr_Occurred()) SWIG_fail;
44950 }
44951 Py_INCREF(Py_None); resultobj = Py_None;
44952 return resultobj;
44953 fail:
44954 return NULL;
44955 }
44956
44957
44958 static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *, PyObject *args, PyObject *kwargs) {
44959 PyObject *resultobj;
44960 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44961 wxWindow *arg2 = (wxWindow *) 0 ;
44962 bool result;
44963 PyObject * obj0 = 0 ;
44964 PyObject * obj1 = 0 ;
44965 char *kwnames[] = {
44966 (char *) "self",(char *) "otherW", NULL
44967 };
44968
44969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail;
44970 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
44971 if (SWIG_arg_fail(1)) SWIG_fail;
44972 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
44973 if (SWIG_arg_fail(2)) SWIG_fail;
44974 {
44975 PyThreadState* __tstate = wxPyBeginAllowThreads();
44976 result = (bool)(arg1)->ResetIfWin(arg2);
44977
44978 wxPyEndAllowThreads(__tstate);
44979 if (PyErr_Occurred()) SWIG_fail;
44980 }
44981 {
44982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44983 }
44984 return resultobj;
44985 fail:
44986 return NULL;
44987 }
44988
44989
44990 static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *, PyObject *args, PyObject *kwargs) {
44991 PyObject *resultobj;
44992 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
44993 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
44994 wxWindow *arg3 = (wxWindow *) 0 ;
44995 bool result;
44996 PyObject * obj0 = 0 ;
44997 PyObject * obj1 = 0 ;
44998 PyObject * obj2 = 0 ;
44999 char *kwnames[] = {
45000 (char *) "self",(char *) "constraints",(char *) "win", NULL
45001 };
45002
45003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail;
45004 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
45005 if (SWIG_arg_fail(1)) SWIG_fail;
45006 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0);
45007 if (SWIG_arg_fail(2)) SWIG_fail;
45008 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
45009 if (SWIG_arg_fail(3)) SWIG_fail;
45010 {
45011 PyThreadState* __tstate = wxPyBeginAllowThreads();
45012 result = (bool)(arg1)->SatisfyConstraint(arg2,arg3);
45013
45014 wxPyEndAllowThreads(__tstate);
45015 if (PyErr_Occurred()) SWIG_fail;
45016 }
45017 {
45018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45019 }
45020 return resultobj;
45021 fail:
45022 return NULL;
45023 }
45024
45025
45026 static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *, PyObject *args, PyObject *kwargs) {
45027 PyObject *resultobj;
45028 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
45029 wxEdge arg2 ;
45030 wxWindow *arg3 = (wxWindow *) 0 ;
45031 wxWindow *arg4 = (wxWindow *) 0 ;
45032 int result;
45033 PyObject * obj0 = 0 ;
45034 PyObject * obj1 = 0 ;
45035 PyObject * obj2 = 0 ;
45036 PyObject * obj3 = 0 ;
45037 char *kwnames[] = {
45038 (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL
45039 };
45040
45041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
45042 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_POINTER_EXCEPTION | 0);
45043 if (SWIG_arg_fail(1)) SWIG_fail;
45044 {
45045 arg2 = (wxEdge)(SWIG_As_int(obj1));
45046 if (SWIG_arg_fail(2)) SWIG_fail;
45047 }
45048 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
45049 if (SWIG_arg_fail(3)) SWIG_fail;
45050 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
45051 if (SWIG_arg_fail(4)) SWIG_fail;
45052 {
45053 PyThreadState* __tstate = wxPyBeginAllowThreads();
45054 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4);
45055
45056 wxPyEndAllowThreads(__tstate);
45057 if (PyErr_Occurred()) SWIG_fail;
45058 }
45059 {
45060 resultobj = SWIG_From_int((int)(result));
45061 }
45062 return resultobj;
45063 fail:
45064 return NULL;
45065 }
45066
45067
45068 static PyObject * IndividualLayoutConstraint_swigregister(PyObject *, PyObject *args) {
45069 PyObject *obj;
45070 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
45071 SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj);
45072 Py_INCREF(obj);
45073 return Py_BuildValue((char *)"");
45074 }
45075 static PyObject *_wrap_LayoutConstraints_left_get(PyObject *, PyObject *args, PyObject *kwargs) {
45076 PyObject *resultobj;
45077 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
45078 wxIndividualLayoutConstraint *result;
45079 PyObject * obj0 = 0 ;
45080 char *kwnames[] = {
45081 (char *) "self", NULL
45082 };
45083
45084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail;
45085 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0);
45086 if (SWIG_arg_fail(1)) SWIG_fail;
45087 result = (wxIndividualLayoutConstraint *)& ((arg1)->left);
45088
45089 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
45090 return resultobj;
45091 fail:
45092 return NULL;
45093 }
45094
45095
45096 static PyObject *_wrap_LayoutConstraints_top_get(PyObject *, PyObject *args, PyObject *kwargs) {
45097 PyObject *resultobj;
45098 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
45099 wxIndividualLayoutConstraint *result;
45100 PyObject * obj0 = 0 ;
45101 char *kwnames[] = {
45102 (char *) "self", NULL
45103 };
45104
45105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail;
45106 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0);
45107 if (SWIG_arg_fail(1)) SWIG_fail;
45108 result = (wxIndividualLayoutConstraint *)& ((arg1)->top);
45109
45110 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
45111 return resultobj;
45112 fail:
45113 return NULL;
45114 }
45115
45116
45117 static PyObject *_wrap_LayoutConstraints_right_get(PyObject *, PyObject *args, PyObject *kwargs) {
45118 PyObject *resultobj;
45119 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
45120 wxIndividualLayoutConstraint *result;
45121 PyObject * obj0 = 0 ;
45122 char *kwnames[] = {
45123 (char *) "self", NULL
45124 };
45125
45126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail;
45127 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0);
45128 if (SWIG_arg_fail(1)) SWIG_fail;
45129 result = (wxIndividualLayoutConstraint *)& ((arg1)->right);
45130
45131 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
45132 return resultobj;
45133 fail:
45134 return NULL;
45135 }
45136
45137
45138 static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *, PyObject *args, PyObject *kwargs) {
45139 PyObject *resultobj;
45140 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
45141 wxIndividualLayoutConstraint *result;
45142 PyObject * obj0 = 0 ;
45143 char *kwnames[] = {
45144 (char *) "self", NULL
45145 };
45146
45147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail;
45148 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0);
45149 if (SWIG_arg_fail(1)) SWIG_fail;
45150 result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom);
45151
45152 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
45153 return resultobj;
45154 fail:
45155 return NULL;
45156 }
45157
45158
45159 static PyObject *_wrap_LayoutConstraints_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
45160 PyObject *resultobj;
45161 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
45162 wxIndividualLayoutConstraint *result;
45163 PyObject * obj0 = 0 ;
45164 char *kwnames[] = {
45165 (char *) "self", NULL
45166 };
45167
45168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail;
45169 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0);
45170 if (SWIG_arg_fail(1)) SWIG_fail;
45171 result = (wxIndividualLayoutConstraint *)& ((arg1)->width);
45172
45173 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
45174 return resultobj;
45175 fail:
45176 return NULL;
45177 }
45178
45179
45180 static PyObject *_wrap_LayoutConstraints_height_get(PyObject *, PyObject *args, PyObject *kwargs) {
45181 PyObject *resultobj;
45182 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
45183 wxIndividualLayoutConstraint *result;
45184 PyObject * obj0 = 0 ;
45185 char *kwnames[] = {
45186 (char *) "self", NULL
45187 };
45188
45189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail;
45190 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0);
45191 if (SWIG_arg_fail(1)) SWIG_fail;
45192 result = (wxIndividualLayoutConstraint *)& ((arg1)->height);
45193
45194 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
45195 return resultobj;
45196 fail:
45197 return NULL;
45198 }
45199
45200
45201 static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *, PyObject *args, PyObject *kwargs) {
45202 PyObject *resultobj;
45203 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
45204 wxIndividualLayoutConstraint *result;
45205 PyObject * obj0 = 0 ;
45206 char *kwnames[] = {
45207 (char *) "self", NULL
45208 };
45209
45210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail;
45211 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0);
45212 if (SWIG_arg_fail(1)) SWIG_fail;
45213 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX);
45214
45215 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
45216 return resultobj;
45217 fail:
45218 return NULL;
45219 }
45220
45221
45222 static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *, PyObject *args, PyObject *kwargs) {
45223 PyObject *resultobj;
45224 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
45225 wxIndividualLayoutConstraint *result;
45226 PyObject * obj0 = 0 ;
45227 char *kwnames[] = {
45228 (char *) "self", NULL
45229 };
45230
45231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail;
45232 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0);
45233 if (SWIG_arg_fail(1)) SWIG_fail;
45234 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY);
45235
45236 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
45237 return resultobj;
45238 fail:
45239 return NULL;
45240 }
45241
45242
45243 static PyObject *_wrap_new_LayoutConstraints(PyObject *, PyObject *args, PyObject *kwargs) {
45244 PyObject *resultobj;
45245 wxLayoutConstraints *result;
45246 char *kwnames[] = {
45247 NULL
45248 };
45249
45250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail;
45251 {
45252 PyThreadState* __tstate = wxPyBeginAllowThreads();
45253 result = (wxLayoutConstraints *)new wxLayoutConstraints();
45254
45255 wxPyEndAllowThreads(__tstate);
45256 if (PyErr_Occurred()) SWIG_fail;
45257 }
45258 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1);
45259 return resultobj;
45260 fail:
45261 return NULL;
45262 }
45263
45264
45265 static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *, PyObject *args, PyObject *kwargs) {
45266 PyObject *resultobj;
45267 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
45268 wxWindow *arg2 = (wxWindow *) 0 ;
45269 int *arg3 = (int *) 0 ;
45270 bool result;
45271 int temp3 ;
45272 int res3 = 0 ;
45273 PyObject * obj0 = 0 ;
45274 PyObject * obj1 = 0 ;
45275 char *kwnames[] = {
45276 (char *) "self",(char *) "win", NULL
45277 };
45278
45279 arg3 = &temp3; res3 = SWIG_NEWOBJ;
45280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail;
45281 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0);
45282 if (SWIG_arg_fail(1)) SWIG_fail;
45283 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
45284 if (SWIG_arg_fail(2)) SWIG_fail;
45285 {
45286 PyThreadState* __tstate = wxPyBeginAllowThreads();
45287 result = (bool)(arg1)->SatisfyConstraints(arg2,arg3);
45288
45289 wxPyEndAllowThreads(__tstate);
45290 if (PyErr_Occurred()) SWIG_fail;
45291 }
45292 {
45293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45294 }
45295 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
45296 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
45297 return resultobj;
45298 fail:
45299 return NULL;
45300 }
45301
45302
45303 static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *, PyObject *args, PyObject *kwargs) {
45304 PyObject *resultobj;
45305 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
45306 bool result;
45307 PyObject * obj0 = 0 ;
45308 char *kwnames[] = {
45309 (char *) "self", NULL
45310 };
45311
45312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail;
45313 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_EXCEPTION | 0);
45314 if (SWIG_arg_fail(1)) SWIG_fail;
45315 {
45316 PyThreadState* __tstate = wxPyBeginAllowThreads();
45317 result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied();
45318
45319 wxPyEndAllowThreads(__tstate);
45320 if (PyErr_Occurred()) SWIG_fail;
45321 }
45322 {
45323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45324 }
45325 return resultobj;
45326 fail:
45327 return NULL;
45328 }
45329
45330
45331 static PyObject * LayoutConstraints_swigregister(PyObject *, PyObject *args) {
45332 PyObject *obj;
45333 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
45334 SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj);
45335 Py_INCREF(obj);
45336 return Py_BuildValue((char *)"");
45337 }
45338 static PyMethodDef SwigMethods[] = {
45339 { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL},
45340 { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL},
45341 { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL},
45342 { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
45343 { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL},
45344 { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS, NULL},
45345 { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS, NULL},
45346 { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS, NULL},
45347 { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS, NULL},
45348 { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL},
45349 { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS, NULL},
45350 { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45351 { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45352 { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL},
45353 { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
45354 { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL},
45355 { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL},
45356 { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45357 { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45358 { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
45359 { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45360 { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
45361 { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS, NULL},
45362 { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL},
45363 { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS, NULL},
45364 { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL},
45365 { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS, NULL},
45366 { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS, NULL},
45367 { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS, NULL},
45368 { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS, NULL},
45369 { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45370 { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45371 { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45372 { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45373 { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL},
45374 { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
45375 { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45376 { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS, NULL},
45377 { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL},
45378 { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS, NULL},
45379 { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS, NULL},
45380 { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS, NULL},
45381 { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS, NULL},
45382 { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL},
45383 { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS, NULL},
45384 { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45385 { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45386 { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL},
45387 { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
45388 { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
45389 { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
45390 { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45391 { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS, NULL},
45392 { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL},
45393 { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL},
45394 { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL},
45395 { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL},
45396 { (char *)"new_RectS", (PyCFunction) _wrap_new_RectS, METH_VARARGS | METH_KEYWORDS, NULL},
45397 { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS, NULL},
45398 { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS, NULL},
45399 { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL},
45400 { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS, NULL},
45401 { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL},
45402 { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45403 { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45404 { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
45405 { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
45406 { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45407 { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45408 { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
45409 { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
45410 { (char *)"Rect_IsEmpty", (PyCFunction) _wrap_Rect_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL},
45411 { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL},
45412 { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL},
45413 { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL},
45414 { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL},
45415 { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS, NULL},
45416 { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS, NULL},
45417 { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS, NULL},
45418 { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS, NULL},
45419 { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL},
45420 { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL},
45421 { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL},
45422 { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL},
45423 { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL},
45424 { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL},
45425 { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL},
45426 { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
45427 { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
45428 { (char *)"Rect_Union", (PyCFunction) _wrap_Rect_Union, METH_VARARGS | METH_KEYWORDS, NULL},
45429 { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL},
45430 { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
45431 { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45432 { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45433 { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS, NULL},
45434 { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS, NULL},
45435 { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL},
45436 { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS, NULL},
45437 { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS, NULL},
45438 { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS, NULL},
45439 { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS, NULL},
45440 { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS, NULL},
45441 { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS, NULL},
45442 { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS, NULL},
45443 { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS, NULL},
45444 { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45445 { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS, NULL},
45446 { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL},
45447 { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
45448 { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL},
45449 { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL},
45450 { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45451 { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS, NULL},
45452 { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS, NULL},
45453 { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL},
45454 { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL},
45455 { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL},
45456 { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL},
45457 { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL},
45458 { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL},
45459 { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL},
45460 { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL},
45461 { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS, NULL},
45462 { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
45463 { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
45464 { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL},
45465 { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL},
45466 { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45467 { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45468 { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS, NULL},
45469 { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS, NULL},
45470 { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS, NULL},
45471 { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS, NULL},
45472 { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45473 { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS, NULL},
45474 { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL},
45475 { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL},
45476 { (char *)"delete_InputStream", (PyCFunction) _wrap_delete_InputStream, METH_VARARGS | METH_KEYWORDS, NULL},
45477 { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS, NULL},
45478 { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS, NULL},
45479 { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS, NULL},
45480 { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL},
45481 { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL},
45482 { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL},
45483 { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL},
45484 { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS, NULL},
45485 { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS, NULL},
45486 { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS, NULL},
45487 { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS, NULL},
45488 { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS, NULL},
45489 { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS, NULL},
45490 { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL},
45491 { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL},
45492 { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS, NULL},
45493 { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL},
45494 { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL},
45495 { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL},
45496 { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL},
45497 { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS, NULL},
45498 { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS, NULL},
45499 { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
45500 { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS, NULL},
45501 { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL},
45502 { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS, NULL},
45503 { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL},
45504 { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL},
45505 { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45506 { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45507 { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL},
45508 { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
45509 { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL},
45510 { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL},
45511 { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL},
45512 { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL},
45513 { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL},
45514 { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL},
45515 { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL},
45516 { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL},
45517 { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL},
45518 { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL},
45519 { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL},
45520 { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS, NULL},
45521 { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
45522 { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL},
45523 { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS, NULL},
45524 { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45525 { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS, NULL},
45526 { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL},
45527 { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL},
45528 { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL},
45529 { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45530 { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL},
45531 { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
45532 { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL},
45533 { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45534 { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL},
45535 { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
45536 { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL},
45537 { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL},
45538 { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL},
45539 { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL},
45540 { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45541 { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL},
45542 { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45543 { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45544 { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL},
45545 { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
45546 { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL},
45547 { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL},
45548 { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL},
45549 { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL},
45550 { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS, NULL},
45551 { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS, NULL},
45552 { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
45553 { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL},
45554 { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL},
45555 { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL},
45556 { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL},
45557 { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
45558 { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL},
45559 { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS, NULL},
45560 { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL},
45561 { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL},
45562 { (char *)"ImageHistogram_GetCount", (PyCFunction) _wrap_ImageHistogram_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
45563 { (char *)"ImageHistogram_GetCountRGB", (PyCFunction) _wrap_ImageHistogram_GetCountRGB, METH_VARARGS | METH_KEYWORDS, NULL},
45564 { (char *)"ImageHistogram_GetCountColour", (PyCFunction) _wrap_ImageHistogram_GetCountColour, METH_VARARGS | METH_KEYWORDS, NULL},
45565 { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL},
45566 { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL},
45567 { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS, NULL},
45568 { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL},
45569 { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL},
45570 { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL},
45571 { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL},
45572 { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45573 { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL},
45574 { (char *)"new_ImageFromDataWithAlpha", (PyCFunction) _wrap_new_ImageFromDataWithAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
45575 { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45576 { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
45577 { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
45578 { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL},
45579 { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL},
45580 { (char *)"Image_Resize", (PyCFunction) _wrap_Image_Resize, METH_VARARGS | METH_KEYWORDS, NULL},
45581 { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
45582 { (char *)"Image_SetRGBRect", (PyCFunction) _wrap_Image_SetRGBRect, METH_VARARGS | METH_KEYWORDS, NULL},
45583 { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL},
45584 { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL},
45585 { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL},
45586 { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
45587 { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
45588 { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
45589 { (char *)"Image_InitAlpha", (PyCFunction) _wrap_Image_InitAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
45590 { (char *)"Image_IsTransparent", (PyCFunction) _wrap_Image_IsTransparent, METH_VARARGS | METH_KEYWORDS, NULL},
45591 { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL},
45592 { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL},
45593 { (char *)"Image_ConvertColourToAlpha", (PyCFunction) _wrap_Image_ConvertColourToAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
45594 { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
45595 { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL},
45596 { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL},
45597 { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45598 { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL},
45599 { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45600 { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL},
45601 { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL},
45602 { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL},
45603 { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL},
45604 { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
45605 { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45606 { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
45607 { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
45608 { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL},
45609 { (char *)"Image_Size", (PyCFunction) _wrap_Image_Size, METH_VARARGS | METH_KEYWORDS, NULL},
45610 { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS, NULL},
45611 { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL},
45612 { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS, NULL},
45613 { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45614 { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
45615 { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
45616 { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL},
45617 { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL},
45618 { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
45619 { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
45620 { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
45621 { (char *)"Image_GetOrFindMaskColour", (PyCFunction) _wrap_Image_GetOrFindMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
45622 { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS, NULL},
45623 { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS, NULL},
45624 { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS, NULL},
45625 { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45626 { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS, NULL},
45627 { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
45628 { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL},
45629 { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL},
45630 { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45631 { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL},
45632 { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL},
45633 { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
45634 { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL},
45635 { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
45636 { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL},
45637 { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL},
45638 { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL},
45639 { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45640 { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45641 { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45642 { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS, NULL},
45643 { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45644 { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45645 { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL},
45646 { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45647 { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL},
45648 { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45649 { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL},
45650 { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45651 { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL},
45652 { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45653 { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL},
45654 { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45655 { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL},
45656 { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45657 { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL},
45658 { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45659 { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL},
45660 { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45661 { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL},
45662 { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45663 { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL},
45664 { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45665 { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL},
45666 { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45667 { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL},
45668 { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL},
45669 { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL},
45670 { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45671 { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45672 { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45673 { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45674 { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL},
45675 { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45676 { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45677 { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45678 { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45679 { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL},
45680 { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL},
45681 { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL},
45682 { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45683 { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL},
45684 { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS, NULL},
45685 { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS, NULL},
45686 { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL},
45687 { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS, NULL},
45688 { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS, NULL},
45689 { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL},
45690 { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL},
45691 { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL},
45692 { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS, NULL},
45693 { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45694 { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45695 { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL},
45696 { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS, NULL},
45697 { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS, NULL},
45698 { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS, NULL},
45699 { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL},
45700 { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS, NULL},
45701 { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL},
45702 { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL},
45703 { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL},
45704 { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL},
45705 { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL},
45706 { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL},
45707 { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL},
45708 { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45709 { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45710 { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45711 { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45712 { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45713 { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45714 { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL},
45715 { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL},
45716 { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL},
45717 { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS, NULL},
45718 { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS, NULL},
45719 { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL},
45720 { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45721 { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL},
45722 { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS, NULL},
45723 { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS, NULL},
45724 { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL},
45725 { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45726 { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
45727 { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45728 { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
45729 { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45730 { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL},
45731 { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45732 { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
45733 { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45734 { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
45735 { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45736 { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL},
45737 { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45738 { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL},
45739 { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL},
45740 { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL},
45741 { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL},
45742 { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45743 { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL},
45744 { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS, NULL},
45745 { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL},
45746 { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL},
45747 { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL},
45748 { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL},
45749 { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL},
45750 { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL},
45751 { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL},
45752 { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS, NULL},
45753 { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS, NULL},
45754 { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS, NULL},
45755 { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS, NULL},
45756 { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS, NULL},
45757 { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS, NULL},
45758 { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS, NULL},
45759 { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS, NULL},
45760 { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS, NULL},
45761 { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS, NULL},
45762 { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS, NULL},
45763 { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS, NULL},
45764 { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS, NULL},
45765 { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS, NULL},
45766 { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45767 { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL},
45768 { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45769 { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL},
45770 { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL},
45771 { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS, NULL},
45772 { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS, NULL},
45773 { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS, NULL},
45774 { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS, NULL},
45775 { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL},
45776 { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL},
45777 { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL},
45778 { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL},
45779 { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS, NULL},
45780 { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS, NULL},
45781 { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS, NULL},
45782 { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS, NULL},
45783 { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS, NULL},
45784 { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS, NULL},
45785 { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL},
45786 { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL},
45787 { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL},
45788 { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL},
45789 { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL},
45790 { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL},
45791 { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL},
45792 { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL},
45793 { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS, NULL},
45794 { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS, NULL},
45795 { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS, NULL},
45796 { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS, NULL},
45797 { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS, NULL},
45798 { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS, NULL},
45799 { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL},
45800 { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45801 { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL},
45802 { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL},
45803 { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
45804 { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
45805 { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS, NULL},
45806 { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL},
45807 { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45808 { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL},
45809 { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL},
45810 { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL},
45811 { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL},
45812 { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL},
45813 { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS, NULL},
45814 { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL},
45815 { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL},
45816 { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS, NULL},
45817 { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45818 { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45819 { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL},
45820 { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL},
45821 { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL},
45822 { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL},
45823 { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL},
45824 { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL},
45825 { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL},
45826 { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS, NULL},
45827 { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS, NULL},
45828 { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL},
45829 { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL},
45830 { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL},
45831 { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL},
45832 { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL},
45833 { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL},
45834 { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL},
45835 { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL},
45836 { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS, NULL},
45837 { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS, NULL},
45838 { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS, NULL},
45839 { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS, NULL},
45840 { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS, NULL},
45841 { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS, NULL},
45842 { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL},
45843 { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45844 { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
45845 { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL},
45846 { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL},
45847 { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
45848 { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS, NULL},
45849 { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS, NULL},
45850 { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL},
45851 { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL},
45852 { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL},
45853 { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45854 { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45855 { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL},
45856 { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL},
45857 { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45858 { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL},
45859 { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45860 { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL},
45861 { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45862 { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL},
45863 { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45864 { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS, NULL},
45865 { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL},
45866 { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45867 { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45868 { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45869 { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL},
45870 { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45871 { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45872 { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL},
45873 { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45874 { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS, NULL},
45875 { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL},
45876 { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45877 { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL},
45878 { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45879 { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS, NULL},
45880 { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS, NULL},
45881 { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
45882 { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL},
45883 { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45884 { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL},
45885 { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL},
45886 { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL},
45887 { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL},
45888 { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS, NULL},
45889 { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS, NULL},
45890 { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL},
45891 { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45892 { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL},
45893 { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS, NULL},
45894 { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL},
45895 { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45896 { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS, NULL},
45897 { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL},
45898 { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45899 { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL},
45900 { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45901 { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS, NULL},
45902 { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS, NULL},
45903 { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL},
45904 { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45905 { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45906 { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45907 { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL},
45908 { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS, NULL},
45909 { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45910 { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45911 { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45912 { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45913 { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45914 { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL},
45915 { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL},
45916 { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL},
45917 { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS, NULL},
45918 { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL},
45919 { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL},
45920 { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL},
45921 { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45922 { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL},
45923 { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45924 { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45925 { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL},
45926 { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45927 { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL},
45928 { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45929 { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45930 { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45931 { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL},
45932 { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45933 { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL},
45934 { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL},
45935 { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL},
45936 { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45937 { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS, NULL},
45938 { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL},
45939 { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS, NULL},
45940 { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL},
45941 { (char *)"NavigationKeyEvent_IsFromTab", (PyCFunction) _wrap_NavigationKeyEvent_IsFromTab, METH_VARARGS | METH_KEYWORDS, NULL},
45942 { (char *)"NavigationKeyEvent_SetFromTab", (PyCFunction) _wrap_NavigationKeyEvent_SetFromTab, METH_VARARGS | METH_KEYWORDS, NULL},
45943 { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45944 { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45945 { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45946 { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL},
45947 { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45948 { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45949 { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL},
45950 { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45951 { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45952 { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL},
45953 { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45954 { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45955 { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45956 { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL},
45957 { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45958 { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL},
45959 { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS, NULL},
45960 { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL},
45961 { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL},
45962 { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL},
45963 { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL},
45964 { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45965 { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45966 { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL},
45967 { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL},
45968 { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL},
45969 { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45970 { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45971 { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL},
45972 { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL},
45973 { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL},
45974 { (char *)"new_DateEvent", (PyCFunction) _wrap_new_DateEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45975 { (char *)"DateEvent_GetDate", (PyCFunction) _wrap_DateEvent_GetDate, METH_VARARGS | METH_KEYWORDS, NULL},
45976 { (char *)"DateEvent_SetDate", (PyCFunction) _wrap_DateEvent_SetDate, METH_VARARGS | METH_KEYWORDS, NULL},
45977 { (char *)"DateEvent_swigregister", DateEvent_swigregister, METH_VARARGS, NULL},
45978 { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS, NULL},
45979 { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS, NULL},
45980 { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45981 { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL},
45982 { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL},
45983 { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL},
45984 { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL},
45985 { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL},
45986 { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL},
45987 { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS, NULL},
45988 { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL},
45989 { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL},
45990 { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL},
45991 { (char *)"PyApp_IsMainLoopRunning", (PyCFunction) _wrap_PyApp_IsMainLoopRunning, METH_VARARGS | METH_KEYWORDS, NULL},
45992 { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS, NULL},
45993 { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS, NULL},
45994 { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS, NULL},
45995 { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS, NULL},
45996 { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL},
45997 { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS, NULL},
45998 { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL},
45999 { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS, NULL},
46000 { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46001 { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46002 { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL},
46003 { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL},
46004 { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL},
46005 { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL},
46006 { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL},
46007 { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL},
46008 { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL},
46009 { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL},
46010 { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL},
46011 { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL},
46012 { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL},
46013 { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL},
46014 { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL},
46015 { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL},
46016 { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL},
46017 { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL},
46018 { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL},
46019 { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL},
46020 { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS, NULL},
46021 { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS, NULL},
46022 { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL},
46023 { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS, NULL},
46024 { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS, NULL},
46025 { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS, NULL},
46026 { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL},
46027 { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL},
46028 { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46029 { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS, NULL},
46030 { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS, NULL},
46031 { (char *)"SetDefaultPyEncoding", (PyCFunction) _wrap_SetDefaultPyEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
46032 { (char *)"GetDefaultPyEncoding", (PyCFunction) _wrap_GetDefaultPyEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
46033 { (char *)"new_EventLoop", (PyCFunction) _wrap_new_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL},
46034 { (char *)"delete_EventLoop", (PyCFunction) _wrap_delete_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL},
46035 { (char *)"EventLoop_Run", (PyCFunction) _wrap_EventLoop_Run, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL},
46037 { (char *)"EventLoop_Pending", (PyCFunction) _wrap_EventLoop_Pending, METH_VARARGS | METH_KEYWORDS, NULL},
46038 { (char *)"EventLoop_Dispatch", (PyCFunction) _wrap_EventLoop_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL},
46039 { (char *)"EventLoop_IsRunning", (PyCFunction) _wrap_EventLoop_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL},
46040 { (char *)"EventLoop_GetActive", (PyCFunction) _wrap_EventLoop_GetActive, METH_VARARGS | METH_KEYWORDS, NULL},
46041 { (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL},
46042 { (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL},
46043 { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL},
46044 { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL},
46045 { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
46047 { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL},
46048 { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS, NULL},
46049 { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL},
46050 { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL},
46051 { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL},
46052 { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
46053 { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL},
46054 { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL},
46055 { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46056 { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46057 { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS, NULL},
46058 { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS, NULL},
46059 { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS, NULL},
46060 { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS, NULL},
46061 { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS, NULL},
46062 { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS, NULL},
46063 { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL},
46064 { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL},
46065 { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46066 { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46067 { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL},
46068 { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
46069 { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46070 { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS, NULL},
46071 { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL},
46072 { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL},
46073 { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46074 { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46075 { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL},
46076 { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS, NULL},
46077 { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL},
46078 { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL},
46079 { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46080 { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS, NULL},
46081 { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS, NULL},
46082 { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL},
46083 { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL},
46084 { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46085 { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL},
46086 { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL},
46087 { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
46088 { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46089 { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL},
46090 { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL},
46091 { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS, NULL},
46092 { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS, NULL},
46093 { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46094 { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
46095 { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL},
46096 { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46097 { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL},
46098 { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46099 { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL},
46100 { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS, NULL},
46101 { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46102 { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL},
46103 { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
46104 { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS, NULL},
46105 { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46106 { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL},
46107 { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46108 { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL},
46109 { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46110 { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL},
46111 { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL},
46112 { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL},
46113 { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS, NULL},
46114 { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS, NULL},
46115 { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL},
46116 { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL},
46117 { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL},
46118 { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL},
46119 { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL},
46120 { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL},
46121 { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL},
46122 { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL},
46123 { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46124 { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL},
46125 { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46126 { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS, NULL},
46127 { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46128 { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
46129 { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46130 { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL},
46131 { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46132 { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL},
46133 { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS, NULL},
46134 { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
46135 { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS, NULL},
46136 { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS, NULL},
46137 { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46138 { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46139 { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46140 { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46141 { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS, NULL},
46142 { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46143 { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46144 { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL},
46145 { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46146 { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46147 { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS, NULL},
46148 { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS, NULL},
46149 { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS, NULL},
46150 { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL},
46151 { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL},
46152 { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL},
46153 { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL},
46154 { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL},
46155 { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL},
46156 { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL},
46157 { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL},
46158 { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46159 { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS, NULL},
46160 { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS, NULL},
46161 { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS, NULL},
46162 { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL},
46163 { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL},
46164 { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL},
46165 { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL},
46166 { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL},
46167 { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
46168 { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
46169 { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
46170 { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
46171 { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
46172 { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL},
46173 { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS, NULL},
46174 { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS, NULL},
46175 { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46176 { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46177 { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL},
46178 { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL},
46179 { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL},
46180 { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL},
46181 { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL},
46182 { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL},
46183 { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL},
46184 { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL},
46185 { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL},
46186 { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL},
46187 { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL},
46188 { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL},
46189 { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS, NULL},
46190 { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS, NULL},
46191 { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS, NULL},
46192 { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS, NULL},
46193 { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL},
46194 { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL},
46195 { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS, NULL},
46196 { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46197 { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS, NULL},
46198 { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS, NULL},
46199 { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL},
46200 { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS, NULL},
46201 { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS, NULL},
46202 { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL},
46203 { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46204 { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL},
46205 { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46206 { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46207 { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46208 { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46209 { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46210 { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46211 { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46212 { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46213 { (char *)"Window_InheritsBackgroundColour", (PyCFunction) _wrap_Window_InheritsBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46214 { (char *)"Window_UseBgCol", (PyCFunction) _wrap_Window_UseBgCol, METH_VARARGS | METH_KEYWORDS, NULL},
46215 { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46216 { (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46217 { (char *)"Window_HasTransparentBackground", (PyCFunction) _wrap_Window_HasTransparentBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46218 { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
46219 { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
46220 { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46221 { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL},
46222 { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46223 { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL},
46224 { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS, NULL},
46225 { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL},
46226 { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46227 { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
46228 { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
46229 { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL},
46230 { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL},
46231 { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL},
46232 { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL},
46233 { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL},
46234 { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46235 { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL},
46236 { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL},
46237 { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL},
46238 { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL},
46239 { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
46240 { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL},
46241 { (char *)"Window_DissociateHandle", (PyCFunction) _wrap_Window_DissociateHandle, METH_VARARGS | METH_KEYWORDS, NULL},
46242 { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS, NULL},
46243 { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL},
46244 { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL},
46245 { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL},
46246 { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL},
46247 { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL},
46248 { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL},
46249 { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46250 { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL},
46251 { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL},
46252 { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS, NULL},
46253 { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS, NULL},
46254 { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS, NULL},
46255 { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS, NULL},
46256 { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46257 { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL},
46258 { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46259 { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL},
46260 { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46261 { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46262 { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
46263 { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
46264 { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS, NULL},
46265 { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL},
46266 { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL},
46267 { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL},
46268 { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL},
46269 { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS, NULL},
46270 { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46271 { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL},
46272 { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46273 { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46274 { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46275 { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46276 { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL},
46277 { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL},
46278 { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL},
46279 { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL},
46280 { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46281 { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL},
46282 { (char *)"GetTopLevelWindows", (PyCFunction) _wrap_GetTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL},
46283 { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS, NULL},
46284 { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS, NULL},
46285 { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL},
46286 { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46287 { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46288 { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46289 { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46290 { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS, NULL},
46291 { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL},
46292 { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL},
46293 { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS, NULL},
46294 { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46295 { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL},
46296 { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL},
46297 { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL},
46298 { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
46299 { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL},
46300 { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL},
46301 { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL},
46302 { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
46303 { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS, NULL},
46304 { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46305 { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
46306 { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
46307 { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL},
46308 { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL},
46309 { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL},
46310 { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
46311 { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL},
46312 { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
46313 { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL},
46314 { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL},
46315 { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL},
46316 { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46317 { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL},
46318 { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
46319 { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
46320 { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
46321 { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL},
46322 { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL},
46323 { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
46324 { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS, NULL},
46325 { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
46326 { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL},
46327 { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46328 { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
46329 { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46330 { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL},
46331 { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
46332 { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46333 { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46334 { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
46335 { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
46336 { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL},
46337 { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL},
46338 { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
46339 { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
46340 { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46341 { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46342 { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46343 { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL},
46344 { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL},
46345 { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
46346 { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS, NULL},
46347 { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL},
46348 { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL},
46349 { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS, NULL},
46350 { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL},
46351 { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL},
46352 { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL},
46353 { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
46354 { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS, NULL},
46355 { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
46356 { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46357 { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46358 { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL},
46359 { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL},
46360 { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL},
46361 { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL},
46362 { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL},
46363 { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL},
46364 { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL},
46365 { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
46366 { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL},
46367 { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
46368 { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46369 { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46370 { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46371 { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
46372 { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
46373 { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL},
46374 { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL},
46375 { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
46376 { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS, NULL},
46377 { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL},
46378 { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL},
46379 { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
46380 { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
46381 { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46382 { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL},
46383 { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
46384 { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
46385 { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46386 { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL},
46387 { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL},
46388 { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS, NULL},
46389 { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL},
46390 { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL},
46391 { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS, NULL},
46392 { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS, NULL},
46393 { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL},
46394 { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL},
46395 { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
46396 { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46397 { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL},
46398 { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
46399 { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
46400 { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46401 { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46402 { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS, NULL},
46403 { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL},
46404 { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46405 { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46406 { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46407 { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46408 { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46409 { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46410 { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS, NULL},
46411 { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46412 { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46413 { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46414 { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46415 { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46416 { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL},
46417 { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL},
46418 { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL},
46419 { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46420 { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46421 { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL},
46422 { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL},
46423 { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS, NULL},
46424 { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46425 { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL},
46426 { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46427 { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46428 { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46429 { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL},
46430 { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL},
46431 { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL},
46432 { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
46433 { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
46434 { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
46435 { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46436 { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46437 { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
46438 { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL},
46439 { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46440 { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS, NULL},
46441 { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
46442 { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
46443 { (char *)"ItemContainer_SetSelection", (PyCFunction) _wrap_ItemContainer_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46444 { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46445 { (char *)"ItemContainer_SetStringSelection", (PyCFunction) _wrap_ItemContainer_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46446 { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46447 { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46448 { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL},
46449 { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL},
46450 { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS, NULL},
46451 { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46452 { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
46453 { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46454 { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL},
46455 { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46456 { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46457 { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL},
46458 { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL},
46459 { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL},
46460 { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS, NULL},
46461 { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL},
46462 { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL},
46463 { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL},
46464 { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL},
46465 { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS, NULL},
46466 { (char *)"SizerItem_GetRect", (PyCFunction) _wrap_SizerItem_GetRect, METH_VARARGS | METH_KEYWORDS, NULL},
46467 { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46468 { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46469 { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
46470 { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46471 { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46472 { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46473 { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46474 { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL},
46475 { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL},
46476 { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46477 { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46478 { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46479 { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46480 { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
46481 { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
46482 { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL},
46483 { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS, NULL},
46484 { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46485 { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS, NULL},
46486 { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL},
46487 { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46488 { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL},
46489 { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
46490 { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL},
46491 { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46492 { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL},
46493 { (char *)"Sizer_GetItem", (PyCFunction) _wrap_Sizer_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46494 { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL},
46495 { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL},
46496 { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46497 { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
46498 { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL},
46499 { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL},
46500 { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46501 { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46502 { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL},
46503 { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL},
46504 { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL},
46505 { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS, NULL},
46506 { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL},
46507 { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL},
46508 { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL},
46509 { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL},
46510 { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
46511 { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL},
46512 { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46513 { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL},
46514 { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL},
46515 { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL},
46516 { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL},
46517 { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS, NULL},
46518 { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46519 { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL},
46520 { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46521 { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
46522 { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
46523 { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL},
46524 { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46525 { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
46526 { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL},
46527 { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46528 { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL},
46529 { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
46530 { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL},
46531 { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL},
46532 { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS, NULL},
46533 { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS, NULL},
46534 { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS, NULL},
46535 { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS, NULL},
46536 { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL},
46537 { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46538 { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL},
46539 { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL},
46540 { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL},
46541 { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL},
46542 { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL},
46543 { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL},
46544 { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL},
46545 { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL},
46546 { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS, NULL},
46547 { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS, NULL},
46548 { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL},
46549 { (char *)"new_StdDialogButtonSizer", (PyCFunction) _wrap_new_StdDialogButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46550 { (char *)"StdDialogButtonSizer_AddButton", (PyCFunction) _wrap_StdDialogButtonSizer_AddButton, METH_VARARGS | METH_KEYWORDS, NULL},
46551 { (char *)"StdDialogButtonSizer_Realize", (PyCFunction) _wrap_StdDialogButtonSizer_Realize, METH_VARARGS | METH_KEYWORDS, NULL},
46552 { (char *)"StdDialogButtonSizer_SetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
46553 { (char *)"StdDialogButtonSizer_SetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
46554 { (char *)"StdDialogButtonSizer_SetCancelButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
46555 { (char *)"StdDialogButtonSizer_GetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
46556 { (char *)"StdDialogButtonSizer_GetApplyButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetApplyButton, METH_VARARGS | METH_KEYWORDS, NULL},
46557 { (char *)"StdDialogButtonSizer_GetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
46558 { (char *)"StdDialogButtonSizer_GetCancelButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
46559 { (char *)"StdDialogButtonSizer_GetHelpButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46560 { (char *)"StdDialogButtonSizer_swigregister", StdDialogButtonSizer_swigregister, METH_VARARGS, NULL},
46561 { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46562 { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS, NULL},
46563 { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS, NULL},
46564 { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL},
46565 { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL},
46566 { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
46567 { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
46568 { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46569 { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS, NULL},
46570 { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL},
46571 { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL},
46572 { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS, NULL},
46573 { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS, NULL},
46574 { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL},
46575 { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL},
46576 { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
46577 { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
46578 { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46579 { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS, NULL},
46580 { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL},
46581 { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS, NULL},
46582 { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46583 { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46584 { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
46585 { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS, NULL},
46586 { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS, NULL},
46587 { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL},
46588 { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL},
46589 { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL},
46590 { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL},
46591 { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS, NULL},
46592 { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46593 { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46594 { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL},
46595 { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL},
46596 { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL},
46597 { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL},
46598 { (char *)"GridBagSizer_GetCellSize", (PyCFunction) _wrap_GridBagSizer_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL},
46599 { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL},
46600 { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL},
46601 { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL},
46602 { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL},
46603 { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL},
46604 { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL},
46605 { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL},
46606 { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46607 { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46608 { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL},
46609 { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL},
46610 { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL},
46611 { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46612 { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL},
46613 { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL},
46614 { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL},
46615 { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL},
46616 { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL},
46617 { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL},
46618 { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL},
46619 { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS, NULL},
46620 { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS, NULL},
46621 { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46622 { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS, NULL},
46623 { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL},
46624 { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46625 { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46626 { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46627 { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46628 { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS, NULL},
46629 { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS, NULL},
46630 { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS, NULL},
46631 { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL},
46632 { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS, NULL},
46633 { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL},
46634 { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL},
46635 { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL},
46636 { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL},
46637 { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL},
46638 { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS, NULL},
46639 { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS, NULL},
46640 { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS, NULL},
46641 { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS, NULL},
46642 { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS, NULL},
46643 { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS, NULL},
46644 { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS, NULL},
46645 { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS, NULL},
46646 { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS, NULL},
46647 { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL},
46648 { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS, NULL},
46649 { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL},
46650 { NULL, NULL, 0, NULL }
46651 };
46652
46653
46654 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46655
46656 static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) {
46657 return (void *)((wxSizerItem *) ((wxGBSizerItem *) x));
46658 }
46659 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
46660 return (void *)((wxSizer *) ((wxBoxSizer *) x));
46661 }
46662 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
46663 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
46664 }
46665 static void *_p_wxStdDialogButtonSizerTo_p_wxSizer(void *x) {
46666 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
46667 }
46668 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
46669 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46670 }
46671 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
46672 return (void *)((wxSizer *) ((wxGridSizer *) x));
46673 }
46674 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
46675 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
46676 }
46677 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
46678 return (void *)((wxSizer *) ((wxPySizer *) x));
46679 }
46680 static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) {
46681 return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x));
46682 }
46683 static void *_p_wxStdDialogButtonSizerTo_p_wxBoxSizer(void *x) {
46684 return (void *)((wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
46685 }
46686 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46687 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46688 }
46689 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46690 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46691 }
46692 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46693 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46694 }
46695 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46696 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46697 }
46698 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46699 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46700 }
46701 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46702 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46703 }
46704 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46705 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46706 }
46707 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46708 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46709 }
46710 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46711 return (void *)((wxEvent *) ((wxPyEvent *) x));
46712 }
46713 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46714 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46715 }
46716 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46717 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46718 }
46719 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46720 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46721 }
46722 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46723 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46724 }
46725 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46726 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46727 }
46728 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46729 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46730 }
46731 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46732 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46733 }
46734 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46735 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46736 }
46737 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46738 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46739 }
46740 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46741 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46742 }
46743 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46744 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46745 }
46746 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46747 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46748 }
46749 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46750 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46751 }
46752 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46753 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46754 }
46755 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46756 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46757 }
46758 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46759 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46760 }
46761 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46762 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46763 }
46764 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46765 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46766 }
46767 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46768 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46769 }
46770 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46771 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46772 }
46773 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46774 return (void *)((wxEvent *) ((wxShowEvent *) x));
46775 }
46776 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46777 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46778 }
46779 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46780 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46781 }
46782 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46783 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46784 }
46785 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46786 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46787 }
46788 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46789 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46790 }
46791 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46792 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46793 }
46794 static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) {
46795 return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x));
46796 }
46797 static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) {
46798 return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x));
46799 }
46800 static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) {
46801 return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x));
46802 }
46803 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46804 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46805 }
46806 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46807 return (void *)((wxControl *) ((wxControlWithItems *) x));
46808 }
46809 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46810 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46811 }
46812 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46813 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46814 }
46815 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46816 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46817 }
46818 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46819 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46820 }
46821 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46822 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46823 }
46824 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46825 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46826 }
46827 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46828 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46829 }
46830 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46831 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46832 }
46833 static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) {
46834 return (void *)((wxCURHandler *) ((wxANIHandler *) x));
46835 }
46836 static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) {
46837 return (void *)((wxICOHandler *) ((wxCURHandler *) x));
46838 }
46839 static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) {
46840 return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x));
46841 }
46842 static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) {
46843 return (void *)((wxBMPHandler *) ((wxICOHandler *) x));
46844 }
46845 static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) {
46846 return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x));
46847 }
46848 static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) {
46849 return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
46850 }
46851 static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) {
46852 return (void *)((wxImageHandler *) ((wxBMPHandler *) x));
46853 }
46854 static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) {
46855 return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x));
46856 }
46857 static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) {
46858 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
46859 }
46860 static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) {
46861 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
46862 }
46863 static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) {
46864 return (void *)((wxImageHandler *) ((wxPNGHandler *) x));
46865 }
46866 static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) {
46867 return (void *)((wxImageHandler *) ((wxGIFHandler *) x));
46868 }
46869 static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) {
46870 return (void *)((wxImageHandler *) ((wxPCXHandler *) x));
46871 }
46872 static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) {
46873 return (void *)((wxImageHandler *) ((wxJPEGHandler *) x));
46874 }
46875 static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) {
46876 return (void *)((wxImageHandler *) ((wxPNMHandler *) x));
46877 }
46878 static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) {
46879 return (void *)((wxImageHandler *) ((wxXPMHandler *) x));
46880 }
46881 static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) {
46882 return (void *)((wxImageHandler *) ((wxTIFFHandler *) x));
46883 }
46884 static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) {
46885 return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x));
46886 }
46887 static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) {
46888 return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x));
46889 }
46890 static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) {
46891 return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x));
46892 }
46893 static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) {
46894 return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x));
46895 }
46896 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46897 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46898 }
46899 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46900 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46901 }
46902 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46903 return (void *)((wxObject *) ((wxSizerItem *) x));
46904 }
46905 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46906 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46907 }
46908 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46909 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46910 }
46911 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46912 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46913 }
46914 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46915 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46916 }
46917 static void *_p_wxSizerTo_p_wxObject(void *x) {
46918 return (void *)((wxObject *) ((wxSizer *) x));
46919 }
46920 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46921 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46922 }
46923 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46924 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46925 }
46926 static void *_p_wxEventTo_p_wxObject(void *x) {
46927 return (void *)((wxObject *) ((wxEvent *) x));
46928 }
46929 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46930 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46931 }
46932 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46933 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46934 }
46935 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46936 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46937 }
46938 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46939 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46940 }
46941 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46942 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46943 }
46944 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46945 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46946 }
46947 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46948 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46949 }
46950 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46951 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46952 }
46953 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
46954 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
46955 }
46956 static void *_p_wxControlTo_p_wxObject(void *x) {
46957 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
46958 }
46959 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
46960 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
46961 }
46962 static void *_p_wxFSFileTo_p_wxObject(void *x) {
46963 return (void *)((wxObject *) ((wxFSFile *) x));
46964 }
46965 static void *_p_wxPySizerTo_p_wxObject(void *x) {
46966 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
46967 }
46968 static void *_p_wxPyEventTo_p_wxObject(void *x) {
46969 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
46970 }
46971 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
46972 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
46973 }
46974 static void *_p_wxShowEventTo_p_wxObject(void *x) {
46975 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
46976 }
46977 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
46978 return (void *)((wxObject *) ((wxMenuItem *) x));
46979 }
46980 static void *_p_wxDateEventTo_p_wxObject(void *x) {
46981 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
46982 }
46983 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
46984 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
46985 }
46986 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
46987 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
46988 }
46989 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
46990 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
46991 }
46992 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
46993 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
46994 }
46995 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
46996 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
46997 }
46998 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
46999 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
47000 }
47001 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
47002 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
47003 }
47004 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
47005 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
47006 }
47007 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
47008 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
47009 }
47010 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
47011 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
47012 }
47013 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
47014 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
47015 }
47016 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
47017 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
47018 }
47019 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
47020 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
47021 }
47022 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
47023 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
47024 }
47025 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
47026 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
47027 }
47028 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
47029 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
47030 }
47031 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
47032 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
47033 }
47034 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
47035 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
47036 }
47037 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
47038 return (void *)((wxObject *) ((wxImageHandler *) x));
47039 }
47040 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
47041 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
47042 }
47043 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
47044 return (void *)((wxObject *) ((wxEvtHandler *) x));
47045 }
47046 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
47047 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
47048 }
47049 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
47050 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
47051 }
47052 static void *_p_wxImageTo_p_wxObject(void *x) {
47053 return (void *)((wxObject *) ((wxImage *) x));
47054 }
47055 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47056 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47057 }
47058 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47059 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47060 }
47061 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47062 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47063 }
47064 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47065 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47066 }
47067 static void *_p_wxWindowTo_p_wxObject(void *x) {
47068 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47069 }
47070 static void *_p_wxMenuTo_p_wxObject(void *x) {
47071 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47072 }
47073 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47074 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47075 }
47076 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47077 return (void *)((wxObject *) ((wxFileSystem *) x));
47078 }
47079 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47080 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47081 }
47082 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47083 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47084 }
47085 static void *_p_wxPyAppTo_p_wxObject(void *x) {
47086 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47087 }
47088 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47089 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47090 }
47091 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47092 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47093 }
47094 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47095 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47096 }
47097 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47098 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47099 }
47100 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47101 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47102 }
47103 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47104 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47105 }
47106 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47107 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47108 }
47109 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47110 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47111 }
47112 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47113 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47114 }
47115 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47116 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47117 }
47118 static void *_p_wxValidatorTo_p_wxObject(void *x) {
47119 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47120 }
47121 static void *_p_wxControlTo_p_wxWindow(void *x) {
47122 return (void *)((wxWindow *) ((wxControl *) x));
47123 }
47124 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47125 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47126 }
47127 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47128 return (void *)((wxWindow *) ((wxMenuBar *) x));
47129 }
47130 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47131 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47132 }
47133 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47134 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47135 }
47136 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47137 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47138 }
47139 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47140 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47141 }
47142 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47143 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47144 }
47145 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47146 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47147 }
47148 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47149 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47150 }
47151 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47152 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47153 }
47154 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47155 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47156 }
47157 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47158 return (void *)((wxValidator *) ((wxPyValidator *) x));
47159 }
47160 static 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}};
47161 static 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}};
47162 static 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}};
47163 static 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}};
47164 static 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}};
47165 static swig_type_info _swigt__p_wxEventLoop[] = {{"_p_wxEventLoop", 0, "wxEventLoop *", 0, 0, 0, 0},{"_p_wxEventLoop", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
47166 static 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}};
47167 static 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_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_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}};
47168 static 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},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxBoxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
47169 static 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}};
47170 static 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}};
47171 static 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}};
47172 static 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}};
47173 static 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_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_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_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_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_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}};
47174 static swig_type_info _swigt__p_buffer[] = {{"_p_buffer", 0, "buffer *", 0, 0, 0, 0},{"_p_buffer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
47175 static 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}};
47176 static 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}};
47177 static 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}};
47178 static 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}};
47179 static 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}};
47180 static 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}};
47181 static 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}};
47182 static 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}};
47183 static 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}};
47184 static 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}};
47185 static 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}};
47186 static 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}};
47187 static 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}};
47188 static 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}};
47189 static 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}};
47190 static 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}};
47191 static 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}};
47192 static swig_type_info _swigt__ptrdiff_t[] = {{"_ptrdiff_t", 0, "ptrdiff_t", 0, 0, 0, 0},{"_ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
47193 static swig_type_info _swigt__std__ptrdiff_t[] = {{"_std__ptrdiff_t", 0, "std::ptrdiff_t", 0, 0, 0, 0},{"_std__ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
47194 static 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}};
47195 static 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}};
47196 static 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}};
47197 static 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}};
47198 static 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}};
47199 static 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}};
47200 static 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}};
47201 static 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}};
47202 static 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}};
47203 static 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}};
47204 static swig_type_info _swigt__p_form_ops_t[] = {{"_p_form_ops_t", 0, "enum form_ops_t *|form_ops_t *", 0, 0, 0, 0},{"_p_form_ops_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
47205 static 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}};
47206 static 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}};
47207 static 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}};
47208 static 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}};
47209 static 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}};
47210 static 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}};
47211 static 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}};
47212 static 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}};
47213 static 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}};
47214 static 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}};
47215 static 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}};
47216 static 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}};
47217 static swig_type_info _swigt__p_wxDateEvent[] = {{"_p_wxDateEvent", 0, "wxDateEvent *", 0, 0, 0, 0},{"_p_wxDateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
47218 static 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}};
47219 static 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}};
47220 static 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}};
47221 static swig_type_info _swigt__p_wxDuplexMode[] = {{"_p_wxDuplexMode", 0, "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0, 0},{"_p_wxDuplexMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
47222 static 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}};
47223 static 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}};
47224 static 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}};
47225 static 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}};
47226 static 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}};
47227 static 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}};
47228 static 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}};
47229 static 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}};
47230 static 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}};
47231 static 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}};
47232 static 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}};
47233 static 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}};
47234 static 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}};
47235 static 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}};
47236 static 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}};
47237 static 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}};
47238 static 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}};
47239 static 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}};
47240 static 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}};
47241 static swig_type_info _swigt__p_wxButton[] = {{"_p_wxButton", 0, "wxButton *", 0, 0, 0, 0},{"_p_wxButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
47242 static 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}};
47243 static 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}};
47244 static 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}};
47245 static swig_type_info _swigt__p_wxStdDialogButtonSizer[] = {{"_p_wxStdDialogButtonSizer", 0, "wxStdDialogButtonSizer *", 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
47246 static 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}};
47247 static 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}};
47248 static 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}};
47249 static 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}};
47250 static 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}};
47251 static swig_type_info _swigt__p_wxPaperSize[] = {{"_p_wxPaperSize", 0, "enum wxPaperSize *|wxPaperSize *", 0, 0, 0, 0},{"_p_wxPaperSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
47252 static 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}};
47253 static 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}};
47254 static 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}};
47255 static 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_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_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_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_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_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_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_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_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}};
47256 static 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}};
47257 static 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}};
47258 static 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}};
47259 static 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}};
47260 static 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}};
47261 static 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}};
47262 static 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}};
47263 static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *|wxUIntPtr *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
47264 static 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}};
47265 static 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}};
47266 static 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}};
47267 static 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}};
47268 static swig_type_info _swigt__unsigned_int[] = {{"_unsigned_int", 0, "unsigned int|std::size_t", 0, 0, 0, 0},{"_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
47269 static swig_type_info _swigt__p_unsigned_int[] = {{"_p_unsigned_int", 0, "unsigned int *|time_t *", 0, 0, 0, 0},{"_p_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
47270 static 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}};
47271 static 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}};
47272 static 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},{0, 0, 0, 0, 0, 0, 0}};
47273 static 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}};
47274 static 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}};
47275 static 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}};
47276 static 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}};
47277 static 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_wxDateEvent", _p_wxDateEventTo_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}};
47278 static 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}};
47279 static 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}};
47280 static swig_type_info _swigt__p_wxQuantize[] = {{"_p_wxQuantize", 0, "wxQuantize *", 0, 0, 0, 0},{"_p_wxQuantize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
47281 static 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}};
47282 static 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}};
47283 static 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}};
47284 static 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}};
47285 static 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}};
47286 static 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}};
47287 static 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}};
47288
47289 static swig_type_info *swig_types_initial[] = {
47290 _swigt__p_wxLayoutConstraints,
47291 _swigt__p_wxRealPoint,
47292 _swigt__p_wxSizerItem,
47293 _swigt__p_wxGBSizerItem,
47294 _swigt__p_wxScrollEvent,
47295 _swigt__p_wxEventLoop,
47296 _swigt__p_wxIndividualLayoutConstraint,
47297 _swigt__p_wxSizer,
47298 _swigt__p_wxBoxSizer,
47299 _swigt__p_wxStaticBoxSizer,
47300 _swigt__p_wxGridBagSizer,
47301 _swigt__p_wxAcceleratorEntry,
47302 _swigt__p_wxUpdateUIEvent,
47303 _swigt__p_wxEvent,
47304 _swigt__p_buffer,
47305 _swigt__p_wxMenu,
47306 _swigt__p_wxGridSizer,
47307 _swigt__p_wxFlexGridSizer,
47308 _swigt__p_wxInitDialogEvent,
47309 _swigt__p_wxItemContainer,
47310 _swigt__p_wxNcPaintEvent,
47311 _swigt__p_wxPaintEvent,
47312 _swigt__p_wxSysColourChangedEvent,
47313 _swigt__p_wxMouseCaptureChangedEvent,
47314 _swigt__p_wxDisplayChangedEvent,
47315 _swigt__p_wxPaletteChangedEvent,
47316 _swigt__p_wxControl,
47317 _swigt__p_wxFont,
47318 _swigt__p_wxMenuBarBase,
47319 _swigt__p_wxSetCursorEvent,
47320 _swigt__p_wxFSFile,
47321 _swigt__p_wxCaret,
47322 _swigt__ptrdiff_t,
47323 _swigt__std__ptrdiff_t,
47324 _swigt__p_wxRegion,
47325 _swigt__p_wxPoint2D,
47326 _swigt__p_int,
47327 _swigt__p_wxSize,
47328 _swigt__p_wxDC,
47329 _swigt__p_wxPySizer,
47330 _swigt__p_wxVisualAttributes,
47331 _swigt__p_wxNotifyEvent,
47332 _swigt__p_wxPyEvent,
47333 _swigt__p_wxPropagationDisabler,
47334 _swigt__p_form_ops_t,
47335 _swigt__p_wxAppTraits,
47336 _swigt__p_wxArrayString,
47337 _swigt__p_wxShowEvent,
47338 _swigt__p_wxToolTip,
47339 _swigt__p_wxMoveEvent,
47340 _swigt__p_wxSizeEvent,
47341 _swigt__p_wxActivateEvent,
47342 _swigt__p_wxIconizeEvent,
47343 _swigt__p_wxMaximizeEvent,
47344 _swigt__p_wxQueryNewPaletteEvent,
47345 _swigt__p_wxWindowCreateEvent,
47346 _swigt__p_wxIdleEvent,
47347 _swigt__p_wxDateEvent,
47348 _swigt__p_wxMenuItem,
47349 _swigt__p_wxStaticBox,
47350 _swigt__p_long,
47351 _swigt__p_wxDuplexMode,
47352 _swigt__p_wxTIFFHandler,
47353 _swigt__p_wxXPMHandler,
47354 _swigt__p_wxPNMHandler,
47355 _swigt__p_wxJPEGHandler,
47356 _swigt__p_wxPCXHandler,
47357 _swigt__p_wxGIFHandler,
47358 _swigt__p_wxPNGHandler,
47359 _swigt__p_wxANIHandler,
47360 _swigt__p_wxMemoryFSHandler,
47361 _swigt__p_wxZipFSHandler,
47362 _swigt__p_wxInternetFSHandler,
47363 _swigt__p_wxPyFileSystemHandler,
47364 _swigt__p_wxEvtHandler,
47365 _swigt__p_wxCURHandler,
47366 _swigt__p_wxICOHandler,
47367 _swigt__p_wxBMPHandler,
47368 _swigt__p_wxImageHandler,
47369 _swigt__p_wxFileSystemHandler,
47370 _swigt__p_wxRect,
47371 _swigt__p_wxButton,
47372 _swigt__p_wxGBSpan,
47373 _swigt__p_wxPropagateOnce,
47374 _swigt__p_wxAcceleratorTable,
47375 _swigt__p_wxStdDialogButtonSizer,
47376 _swigt__p_char,
47377 _swigt__p_wxGBPosition,
47378 _swigt__p_wxImage,
47379 _swigt__p_wxFrame,
47380 _swigt__p_wxScrollWinEvent,
47381 _swigt__p_wxPaperSize,
47382 _swigt__p_wxImageHistogram,
47383 _swigt__p_wxPoint,
47384 _swigt__p_wxCursor,
47385 _swigt__p_wxObject,
47386 _swigt__p_wxInputStream,
47387 _swigt__p_wxOutputStream,
47388 _swigt__p_wxPyInputStream,
47389 _swigt__p_wxDateTime,
47390 _swigt__p_wxKeyEvent,
47391 _swigt__p_wxNavigationKeyEvent,
47392 _swigt__p_wxWindowDestroyEvent,
47393 _swigt__p_unsigned_long,
47394 _swigt__p_wxWindow,
47395 _swigt__p_wxMenuBar,
47396 _swigt__p_wxFileSystem,
47397 _swigt__p_wxBitmap,
47398 _swigt__unsigned_int,
47399 _swigt__p_unsigned_int,
47400 _swigt__p_wxMenuEvent,
47401 _swigt__p_wxContextMenuEvent,
47402 _swigt__p_unsigned_char,
47403 _swigt__p_wxEraseEvent,
47404 _swigt__p_wxMouseEvent,
47405 _swigt__p_wxCloseEvent,
47406 _swigt__p_wxPyApp,
47407 _swigt__p_wxCommandEvent,
47408 _swigt__p_wxPyCommandEvent,
47409 _swigt__p_wxPyDropTarget,
47410 _swigt__p_wxQuantize,
47411 _swigt__p_wxFocusEvent,
47412 _swigt__p_wxChildFocusEvent,
47413 _swigt__p_wxDropFilesEvent,
47414 _swigt__p_wxControlWithItems,
47415 _swigt__p_wxColour,
47416 _swigt__p_wxValidator,
47417 _swigt__p_wxPyValidator,
47418 0
47419 };
47420
47421
47422 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
47423
47424 static swig_const_info swig_const_table[] = {
47425 {0, 0, 0, 0.0, 0, 0}};
47426
47427 #ifdef __cplusplus
47428 }
47429 #endif
47430
47431
47432 #ifdef __cplusplus
47433 extern "C" {
47434 #endif
47435
47436 /* Python-specific SWIG API */
47437 #define SWIG_newvarlink() SWIG_Python_newvarlink()
47438 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
47439 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
47440
47441 /* -----------------------------------------------------------------------------
47442 * global variable support code.
47443 * ----------------------------------------------------------------------------- */
47444
47445 typedef struct swig_globalvar {
47446 char *name; /* Name of global variable */
47447 PyObject *(*get_attr)(); /* Return the current value */
47448 int (*set_attr)(PyObject *); /* Set the value */
47449 struct swig_globalvar *next;
47450 } swig_globalvar;
47451
47452 typedef struct swig_varlinkobject {
47453 PyObject_HEAD
47454 swig_globalvar *vars;
47455 } swig_varlinkobject;
47456
47457 static PyObject *
47458 swig_varlink_repr(swig_varlinkobject *v) {
47459 v = v;
47460 return PyString_FromString("<Swig global variables>");
47461 }
47462
47463 static int
47464 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
47465 swig_globalvar *var;
47466 flags = flags;
47467 fprintf(fp,"Swig global variables { ");
47468 for (var = v->vars; var; var=var->next) {
47469 fprintf(fp,"%s", var->name);
47470 if (var->next) fprintf(fp,", ");
47471 }
47472 fprintf(fp," }\n");
47473 return 0;
47474 }
47475
47476 static PyObject *
47477 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
47478 swig_globalvar *var = v->vars;
47479 while (var) {
47480 if (strcmp(var->name,n) == 0) {
47481 return (*var->get_attr)();
47482 }
47483 var = var->next;
47484 }
47485 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
47486 return NULL;
47487 }
47488
47489 static int
47490 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
47491 swig_globalvar *var = v->vars;
47492 while (var) {
47493 if (strcmp(var->name,n) == 0) {
47494 return (*var->set_attr)(p);
47495 }
47496 var = var->next;
47497 }
47498 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
47499 return 1;
47500 }
47501
47502 static PyTypeObject varlinktype = {
47503 PyObject_HEAD_INIT(0)
47504 0, /* Number of items in variable part (ob_size) */
47505 (char *)"swigvarlink", /* Type name (tp_name) */
47506 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
47507 0, /* Itemsize (tp_itemsize) */
47508 0, /* Deallocator (tp_dealloc) */
47509 (printfunc) swig_varlink_print, /* Print (tp_print) */
47510 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
47511 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
47512 0, /* tp_compare */
47513 (reprfunc) swig_varlink_repr, /* tp_repr */
47514 0, /* tp_as_number */
47515 0, /* tp_as_sequence */
47516 0, /* tp_as_mapping */
47517 0, /* tp_hash */
47518 0, /* tp_call */
47519 0, /* tp_str */
47520 0, /* tp_getattro */
47521 0, /* tp_setattro */
47522 0, /* tp_as_buffer */
47523 0, /* tp_flags */
47524 0, /* tp_doc */
47525 #if PY_VERSION_HEX >= 0x02000000
47526 0, /* tp_traverse */
47527 0, /* tp_clear */
47528 #endif
47529 #if PY_VERSION_HEX >= 0x02010000
47530 0, /* tp_richcompare */
47531 0, /* tp_weaklistoffset */
47532 #endif
47533 #if PY_VERSION_HEX >= 0x02020000
47534 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
47535 #endif
47536 #if PY_VERSION_HEX >= 0x02030000
47537 0, /* tp_del */
47538 #endif
47539 #ifdef COUNT_ALLOCS
47540 0,0,0,0 /* tp_alloc -> tp_next */
47541 #endif
47542 };
47543
47544 /* Create a variable linking object for use later */
47545 static PyObject *
47546 SWIG_Python_newvarlink(void) {
47547 swig_varlinkobject *result = 0;
47548 result = PyMem_NEW(swig_varlinkobject,1);
47549 varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
47550 result->ob_type = &varlinktype;
47551 result->vars = 0;
47552 result->ob_refcnt = 0;
47553 Py_XINCREF((PyObject *) result);
47554 return ((PyObject*) result);
47555 }
47556
47557 static void
47558 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
47559 swig_varlinkobject *v;
47560 swig_globalvar *gv;
47561 v= (swig_varlinkobject *) p;
47562 gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
47563 gv->name = (char *) malloc(strlen(name)+1);
47564 strcpy(gv->name,name);
47565 gv->get_attr = get_attr;
47566 gv->set_attr = set_attr;
47567 gv->next = v->vars;
47568 v->vars = gv;
47569 }
47570
47571 /* -----------------------------------------------------------------------------
47572 * constants/methods manipulation
47573 * ----------------------------------------------------------------------------- */
47574
47575 /* Install Constants */
47576 static void
47577 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
47578 PyObject *obj = 0;
47579 size_t i;
47580 for (i = 0; constants[i].type; i++) {
47581 switch(constants[i].type) {
47582 case SWIG_PY_INT:
47583 obj = PyInt_FromLong(constants[i].lvalue);
47584 break;
47585 case SWIG_PY_FLOAT:
47586 obj = PyFloat_FromDouble(constants[i].dvalue);
47587 break;
47588 case SWIG_PY_STRING:
47589 if (constants[i].pvalue) {
47590 obj = PyString_FromString((char *) constants[i].pvalue);
47591 } else {
47592 Py_INCREF(Py_None);
47593 obj = Py_None;
47594 }
47595 break;
47596 case SWIG_PY_POINTER:
47597 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
47598 break;
47599 case SWIG_PY_BINARY:
47600 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
47601 break;
47602 default:
47603 obj = 0;
47604 break;
47605 }
47606 if (obj) {
47607 PyDict_SetItemString(d,constants[i].name,obj);
47608 Py_DECREF(obj);
47609 }
47610 }
47611 }
47612
47613 /* -----------------------------------------------------------------------------*/
47614 /* Fix SwigMethods to carry the callback ptrs when needed */
47615 /* -----------------------------------------------------------------------------*/
47616
47617 static void
47618 SWIG_Python_FixMethods(PyMethodDef *methods,
47619 swig_const_info *const_table,
47620 swig_type_info **types,
47621 swig_type_info **types_initial) {
47622 size_t i;
47623 for (i = 0; methods[i].ml_name; ++i) {
47624 char *c = methods[i].ml_doc;
47625 if (c && (c = strstr(c, "swig_ptr: "))) {
47626 int j;
47627 swig_const_info *ci = 0;
47628 char *name = c + 10;
47629 for (j = 0; const_table[j].type; j++) {
47630 if (strncmp(const_table[j].name, name,
47631 strlen(const_table[j].name)) == 0) {
47632 ci = &(const_table[j]);
47633 break;
47634 }
47635 }
47636 if (ci) {
47637 size_t shift = (ci->ptype) - types;
47638 swig_type_info *ty = types_initial[shift];
47639 size_t ldoc = (c - methods[i].ml_doc);
47640 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
47641 char *ndoc = (char*)malloc(ldoc + lptr + 10);
47642 char *buff = ndoc;
47643 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue);
47644 strncpy(buff, methods[i].ml_doc, ldoc);
47645 buff += ldoc;
47646 strncpy(buff, "swig_ptr: ", 10);
47647 buff += 10;
47648 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
47649 methods[i].ml_doc = ndoc;
47650 }
47651 }
47652 }
47653 }
47654
47655 /* -----------------------------------------------------------------------------*
47656 * Initialize type list
47657 * -----------------------------------------------------------------------------*/
47658
47659 #if PY_MAJOR_VERSION < 2
47660 /* PyModule_AddObject function was introduced in Python 2.0. The following function
47661 is copied out of Python/modsupport.c in python version 2.3.4 */
47662 static int
47663 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
47664 {
47665 PyObject *dict;
47666 if (!PyModule_Check(m)) {
47667 PyErr_SetString(PyExc_TypeError,
47668 "PyModule_AddObject() needs module as first arg");
47669 return -1;
47670 }
47671 if (!o) {
47672 PyErr_SetString(PyExc_TypeError,
47673 "PyModule_AddObject() needs non-NULL value");
47674 return -1;
47675 }
47676
47677 dict = PyModule_GetDict(m);
47678 if (dict == NULL) {
47679 /* Internal error -- modules must have a dict! */
47680 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
47681 PyModule_GetName(m));
47682 return -1;
47683 }
47684 if (PyDict_SetItemString(dict, name, o))
47685 return -1;
47686 Py_DECREF(o);
47687 return 0;
47688 }
47689 #endif
47690
47691 static swig_type_info **
47692 SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) {
47693 static PyMethodDef swig_empty_runtime_method_table[] = {
47694 {
47695 NULL, NULL, 0, NULL
47696 }
47697 };/* Sentinel */
47698
47699 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
47700 swig_empty_runtime_method_table);
47701 PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL);
47702 if (pointer && module) {
47703 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
47704 }
47705 return type_list_handle;
47706 }
47707
47708 static swig_type_info **
47709 SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) {
47710 swig_type_info **type_pointer;
47711
47712 /* first check if module already created */
47713 type_pointer = SWIG_Python_GetTypeListHandle();
47714 if (type_pointer) {
47715 return type_pointer;
47716 } else {
47717 /* create a new module and variable */
47718 return SWIG_Python_SetTypeListHandle(type_list_handle);
47719 }
47720 }
47721
47722 #ifdef __cplusplus
47723 }
47724 #endif
47725
47726 /* -----------------------------------------------------------------------------*
47727 * Partial Init method
47728 * -----------------------------------------------------------------------------*/
47729
47730 #ifdef SWIG_LINK_RUNTIME
47731 #ifdef __cplusplus
47732 extern "C"
47733 #endif
47734 SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *);
47735 #endif
47736
47737 #ifdef __cplusplus
47738 extern "C"
47739 #endif
47740 SWIGEXPORT(void) SWIG_init(void) {
47741 static PyObject *SWIG_globals = 0;
47742 static int typeinit = 0;
47743 PyObject *m, *d;
47744 int i;
47745 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
47746
47747 /* Fix SwigMethods to carry the callback ptrs when needed */
47748 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial);
47749
47750 m = Py_InitModule((char *) SWIG_name, SwigMethods);
47751 d = PyModule_GetDict(m);
47752
47753 if (!typeinit) {
47754 #ifdef SWIG_LINK_RUNTIME
47755 swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle);
47756 #else
47757 # ifndef SWIG_STATIC_RUNTIME
47758 swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle);
47759 # endif
47760 #endif
47761 for (i = 0; swig_types_initial[i]; i++) {
47762 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
47763 }
47764 typeinit = 1;
47765 }
47766 SWIG_InstallConstants(d,swig_const_table);
47767
47768
47769 #ifndef wxPyUSE_EXPORT
47770 // Make our API structure a CObject so other modules can import it
47771 // from this module.
47772 PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL);
47773 PyDict_SetItemString(d,"_wxPyCoreAPI", cobj);
47774 Py_XDECREF(cobj);
47775 #endif
47776
47777 {
47778 PyDict_SetItemString(d,"NOT_FOUND", SWIG_From_int((int)(wxNOT_FOUND)));
47779 }
47780 {
47781 PyDict_SetItemString(d,"VSCROLL", SWIG_From_int((int)(wxVSCROLL)));
47782 }
47783 {
47784 PyDict_SetItemString(d,"HSCROLL", SWIG_From_int((int)(wxHSCROLL)));
47785 }
47786 {
47787 PyDict_SetItemString(d,"CAPTION", SWIG_From_int((int)(wxCAPTION)));
47788 }
47789 {
47790 PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_From_int((int)(wxDOUBLE_BORDER)));
47791 }
47792 {
47793 PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_From_int((int)(wxSUNKEN_BORDER)));
47794 }
47795 {
47796 PyDict_SetItemString(d,"RAISED_BORDER", SWIG_From_int((int)(wxRAISED_BORDER)));
47797 }
47798 {
47799 PyDict_SetItemString(d,"BORDER", SWIG_From_int((int)(wxBORDER)));
47800 }
47801 {
47802 PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_From_int((int)(wxSIMPLE_BORDER)));
47803 }
47804 {
47805 PyDict_SetItemString(d,"STATIC_BORDER", SWIG_From_int((int)(wxSTATIC_BORDER)));
47806 }
47807 {
47808 PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_From_int((int)(wxTRANSPARENT_WINDOW)));
47809 }
47810 {
47811 PyDict_SetItemString(d,"NO_BORDER", SWIG_From_int((int)(wxNO_BORDER)));
47812 }
47813 {
47814 PyDict_SetItemString(d,"DEFAULT_CONTROL_BORDER", SWIG_From_int((int)(wxDEFAULT_CONTROL_BORDER)));
47815 }
47816 {
47817 PyDict_SetItemString(d,"DEFAULT_STATUSBAR_STYLE", SWIG_From_int((int)(wxDEFAULT_STATUSBAR_STYLE)));
47818 }
47819 {
47820 PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_From_int((int)(wxTAB_TRAVERSAL)));
47821 }
47822 {
47823 PyDict_SetItemString(d,"WANTS_CHARS", SWIG_From_int((int)(wxWANTS_CHARS)));
47824 }
47825 {
47826 PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_From_int((int)(wxPOPUP_WINDOW)));
47827 }
47828 {
47829 PyDict_SetItemString(d,"CENTER_FRAME", SWIG_From_int((int)(wxCENTER_FRAME)));
47830 }
47831 {
47832 PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_From_int((int)(wxCENTRE_ON_SCREEN)));
47833 }
47834 {
47835 PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_From_int((int)(wxCENTER_ON_SCREEN)));
47836 }
47837 {
47838 PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_From_int((int)(wxCLIP_CHILDREN)));
47839 }
47840 {
47841 PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_From_int((int)(wxCLIP_SIBLINGS)));
47842 }
47843 {
47844 PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_From_int((int)(wxALWAYS_SHOW_SB)));
47845 }
47846 {
47847 PyDict_SetItemString(d,"RETAINED", SWIG_From_int((int)(wxRETAINED)));
47848 }
47849 {
47850 PyDict_SetItemString(d,"BACKINGSTORE", SWIG_From_int((int)(wxBACKINGSTORE)));
47851 }
47852 {
47853 PyDict_SetItemString(d,"COLOURED", SWIG_From_int((int)(wxCOLOURED)));
47854 }
47855 {
47856 PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_From_int((int)(wxFIXED_LENGTH)));
47857 }
47858 {
47859 PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_From_int((int)(wxLB_NEEDED_SB)));
47860 }
47861 {
47862 PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_From_int((int)(wxLB_ALWAYS_SB)));
47863 }
47864 {
47865 PyDict_SetItemString(d,"LB_SORT", SWIG_From_int((int)(wxLB_SORT)));
47866 }
47867 {
47868 PyDict_SetItemString(d,"LB_SINGLE", SWIG_From_int((int)(wxLB_SINGLE)));
47869 }
47870 {
47871 PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_From_int((int)(wxLB_MULTIPLE)));
47872 }
47873 {
47874 PyDict_SetItemString(d,"LB_EXTENDED", SWIG_From_int((int)(wxLB_EXTENDED)));
47875 }
47876 {
47877 PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_From_int((int)(wxLB_OWNERDRAW)));
47878 }
47879 {
47880 PyDict_SetItemString(d,"LB_HSCROLL", SWIG_From_int((int)(wxLB_HSCROLL)));
47881 }
47882 {
47883 PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_From_int((int)(wxPROCESS_ENTER)));
47884 }
47885 {
47886 PyDict_SetItemString(d,"PASSWORD", SWIG_From_int((int)(wxPASSWORD)));
47887 }
47888 {
47889 PyDict_SetItemString(d,"CB_SIMPLE", SWIG_From_int((int)(wxCB_SIMPLE)));
47890 }
47891 {
47892 PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_From_int((int)(wxCB_DROPDOWN)));
47893 }
47894 {
47895 PyDict_SetItemString(d,"CB_SORT", SWIG_From_int((int)(wxCB_SORT)));
47896 }
47897 {
47898 PyDict_SetItemString(d,"CB_READONLY", SWIG_From_int((int)(wxCB_READONLY)));
47899 }
47900 {
47901 PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_From_int((int)(wxRA_HORIZONTAL)));
47902 }
47903 {
47904 PyDict_SetItemString(d,"RA_VERTICAL", SWIG_From_int((int)(wxRA_VERTICAL)));
47905 }
47906 {
47907 PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_From_int((int)(wxRA_SPECIFY_ROWS)));
47908 }
47909 {
47910 PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_From_int((int)(wxRA_SPECIFY_COLS)));
47911 }
47912 {
47913 PyDict_SetItemString(d,"RA_USE_CHECKBOX", SWIG_From_int((int)(wxRA_USE_CHECKBOX)));
47914 }
47915 {
47916 PyDict_SetItemString(d,"RB_GROUP", SWIG_From_int((int)(wxRB_GROUP)));
47917 }
47918 {
47919 PyDict_SetItemString(d,"RB_SINGLE", SWIG_From_int((int)(wxRB_SINGLE)));
47920 }
47921 {
47922 PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_From_int((int)(wxSB_HORIZONTAL)));
47923 }
47924 {
47925 PyDict_SetItemString(d,"SB_VERTICAL", SWIG_From_int((int)(wxSB_VERTICAL)));
47926 }
47927 {
47928 PyDict_SetItemString(d,"RB_USE_CHECKBOX", SWIG_From_int((int)(wxRB_USE_CHECKBOX)));
47929 }
47930 {
47931 PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_From_int((int)(wxST_SIZEGRIP)));
47932 }
47933 {
47934 PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_From_int((int)(wxST_NO_AUTORESIZE)));
47935 }
47936 {
47937 PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_From_int((int)(wxFLOOD_SURFACE)));
47938 }
47939 {
47940 PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_From_int((int)(wxFLOOD_BORDER)));
47941 }
47942 {
47943 PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_From_int((int)(wxODDEVEN_RULE)));
47944 }
47945 {
47946 PyDict_SetItemString(d,"WINDING_RULE", SWIG_From_int((int)(wxWINDING_RULE)));
47947 }
47948 {
47949 PyDict_SetItemString(d,"TOOL_TOP", SWIG_From_int((int)(wxTOOL_TOP)));
47950 }
47951 {
47952 PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_From_int((int)(wxTOOL_BOTTOM)));
47953 }
47954 {
47955 PyDict_SetItemString(d,"TOOL_LEFT", SWIG_From_int((int)(wxTOOL_LEFT)));
47956 }
47957 {
47958 PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_From_int((int)(wxTOOL_RIGHT)));
47959 }
47960 {
47961 PyDict_SetItemString(d,"OK", SWIG_From_int((int)(wxOK)));
47962 }
47963 {
47964 PyDict_SetItemString(d,"YES_NO", SWIG_From_int((int)(wxYES_NO)));
47965 }
47966 {
47967 PyDict_SetItemString(d,"CANCEL", SWIG_From_int((int)(wxCANCEL)));
47968 }
47969 {
47970 PyDict_SetItemString(d,"YES", SWIG_From_int((int)(wxYES)));
47971 }
47972 {
47973 PyDict_SetItemString(d,"NO", SWIG_From_int((int)(wxNO)));
47974 }
47975 {
47976 PyDict_SetItemString(d,"NO_DEFAULT", SWIG_From_int((int)(wxNO_DEFAULT)));
47977 }
47978 {
47979 PyDict_SetItemString(d,"YES_DEFAULT", SWIG_From_int((int)(wxYES_DEFAULT)));
47980 }
47981 {
47982 PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_From_int((int)(wxICON_EXCLAMATION)));
47983 }
47984 {
47985 PyDict_SetItemString(d,"ICON_HAND", SWIG_From_int((int)(wxICON_HAND)));
47986 }
47987 {
47988 PyDict_SetItemString(d,"ICON_QUESTION", SWIG_From_int((int)(wxICON_QUESTION)));
47989 }
47990 {
47991 PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_From_int((int)(wxICON_INFORMATION)));
47992 }
47993 {
47994 PyDict_SetItemString(d,"ICON_STOP", SWIG_From_int((int)(wxICON_STOP)));
47995 }
47996 {
47997 PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_From_int((int)(wxICON_ASTERISK)));
47998 }
47999 {
48000 PyDict_SetItemString(d,"ICON_MASK", SWIG_From_int((int)(wxICON_MASK)));
48001 }
48002 {
48003 PyDict_SetItemString(d,"ICON_WARNING", SWIG_From_int((int)(wxICON_WARNING)));
48004 }
48005 {
48006 PyDict_SetItemString(d,"ICON_ERROR", SWIG_From_int((int)(wxICON_ERROR)));
48007 }
48008 {
48009 PyDict_SetItemString(d,"FORWARD", SWIG_From_int((int)(wxFORWARD)));
48010 }
48011 {
48012 PyDict_SetItemString(d,"BACKWARD", SWIG_From_int((int)(wxBACKWARD)));
48013 }
48014 {
48015 PyDict_SetItemString(d,"RESET", SWIG_From_int((int)(wxRESET)));
48016 }
48017 {
48018 PyDict_SetItemString(d,"HELP", SWIG_From_int((int)(wxHELP)));
48019 }
48020 {
48021 PyDict_SetItemString(d,"MORE", SWIG_From_int((int)(wxMORE)));
48022 }
48023 {
48024 PyDict_SetItemString(d,"SETUP", SWIG_From_int((int)(wxSETUP)));
48025 }
48026 {
48027 PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_From_int((int)(wxSIZE_AUTO_WIDTH)));
48028 }
48029 {
48030 PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_From_int((int)(wxSIZE_AUTO_HEIGHT)));
48031 }
48032 {
48033 PyDict_SetItemString(d,"SIZE_AUTO", SWIG_From_int((int)(wxSIZE_AUTO)));
48034 }
48035 {
48036 PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_From_int((int)(wxSIZE_USE_EXISTING)));
48037 }
48038 {
48039 PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_From_int((int)(wxSIZE_ALLOW_MINUS_ONE)));
48040 }
48041 {
48042 PyDict_SetItemString(d,"PORTRAIT", SWIG_From_int((int)(wxPORTRAIT)));
48043 }
48044 {
48045 PyDict_SetItemString(d,"LANDSCAPE", SWIG_From_int((int)(wxLANDSCAPE)));
48046 }
48047 {
48048 PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_From_int((int)(wxPRINT_QUALITY_HIGH)));
48049 }
48050 {
48051 PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_From_int((int)(wxPRINT_QUALITY_MEDIUM)));
48052 }
48053 {
48054 PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_From_int((int)(wxPRINT_QUALITY_LOW)));
48055 }
48056 {
48057 PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_From_int((int)(wxPRINT_QUALITY_DRAFT)));
48058 }
48059 {
48060 PyDict_SetItemString(d,"ID_ANY", SWIG_From_int((int)(wxID_ANY)));
48061 }
48062 {
48063 PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_From_int((int)(wxID_SEPARATOR)));
48064 }
48065 {
48066 PyDict_SetItemString(d,"ID_LOWEST", SWIG_From_int((int)(wxID_LOWEST)));
48067 }
48068 {
48069 PyDict_SetItemString(d,"ID_OPEN", SWIG_From_int((int)(wxID_OPEN)));
48070 }
48071 {
48072 PyDict_SetItemString(d,"ID_CLOSE", SWIG_From_int((int)(wxID_CLOSE)));
48073 }
48074 {
48075 PyDict_SetItemString(d,"ID_NEW", SWIG_From_int((int)(wxID_NEW)));
48076 }
48077 {
48078 PyDict_SetItemString(d,"ID_SAVE", SWIG_From_int((int)(wxID_SAVE)));
48079 }
48080 {
48081 PyDict_SetItemString(d,"ID_SAVEAS", SWIG_From_int((int)(wxID_SAVEAS)));
48082 }
48083 {
48084 PyDict_SetItemString(d,"ID_REVERT", SWIG_From_int((int)(wxID_REVERT)));
48085 }
48086 {
48087 PyDict_SetItemString(d,"ID_EXIT", SWIG_From_int((int)(wxID_EXIT)));
48088 }
48089 {
48090 PyDict_SetItemString(d,"ID_UNDO", SWIG_From_int((int)(wxID_UNDO)));
48091 }
48092 {
48093 PyDict_SetItemString(d,"ID_REDO", SWIG_From_int((int)(wxID_REDO)));
48094 }
48095 {
48096 PyDict_SetItemString(d,"ID_HELP", SWIG_From_int((int)(wxID_HELP)));
48097 }
48098 {
48099 PyDict_SetItemString(d,"ID_PRINT", SWIG_From_int((int)(wxID_PRINT)));
48100 }
48101 {
48102 PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_From_int((int)(wxID_PRINT_SETUP)));
48103 }
48104 {
48105 PyDict_SetItemString(d,"ID_PREVIEW", SWIG_From_int((int)(wxID_PREVIEW)));
48106 }
48107 {
48108 PyDict_SetItemString(d,"ID_ABOUT", SWIG_From_int((int)(wxID_ABOUT)));
48109 }
48110 {
48111 PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_From_int((int)(wxID_HELP_CONTENTS)));
48112 }
48113 {
48114 PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_From_int((int)(wxID_HELP_COMMANDS)));
48115 }
48116 {
48117 PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_From_int((int)(wxID_HELP_PROCEDURES)));
48118 }
48119 {
48120 PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_From_int((int)(wxID_HELP_CONTEXT)));
48121 }
48122 {
48123 PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_From_int((int)(wxID_CLOSE_ALL)));
48124 }
48125 {
48126 PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_From_int((int)(wxID_PREFERENCES)));
48127 }
48128 {
48129 PyDict_SetItemString(d,"ID_CUT", SWIG_From_int((int)(wxID_CUT)));
48130 }
48131 {
48132 PyDict_SetItemString(d,"ID_COPY", SWIG_From_int((int)(wxID_COPY)));
48133 }
48134 {
48135 PyDict_SetItemString(d,"ID_PASTE", SWIG_From_int((int)(wxID_PASTE)));
48136 }
48137 {
48138 PyDict_SetItemString(d,"ID_CLEAR", SWIG_From_int((int)(wxID_CLEAR)));
48139 }
48140 {
48141 PyDict_SetItemString(d,"ID_FIND", SWIG_From_int((int)(wxID_FIND)));
48142 }
48143 {
48144 PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_From_int((int)(wxID_DUPLICATE)));
48145 }
48146 {
48147 PyDict_SetItemString(d,"ID_SELECTALL", SWIG_From_int((int)(wxID_SELECTALL)));
48148 }
48149 {
48150 PyDict_SetItemString(d,"ID_DELETE", SWIG_From_int((int)(wxID_DELETE)));
48151 }
48152 {
48153 PyDict_SetItemString(d,"ID_REPLACE", SWIG_From_int((int)(wxID_REPLACE)));
48154 }
48155 {
48156 PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_From_int((int)(wxID_REPLACE_ALL)));
48157 }
48158 {
48159 PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_From_int((int)(wxID_PROPERTIES)));
48160 }
48161 {
48162 PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_From_int((int)(wxID_VIEW_DETAILS)));
48163 }
48164 {
48165 PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_From_int((int)(wxID_VIEW_LARGEICONS)));
48166 }
48167 {
48168 PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_From_int((int)(wxID_VIEW_SMALLICONS)));
48169 }
48170 {
48171 PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_From_int((int)(wxID_VIEW_LIST)));
48172 }
48173 {
48174 PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_From_int((int)(wxID_VIEW_SORTDATE)));
48175 }
48176 {
48177 PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_From_int((int)(wxID_VIEW_SORTNAME)));
48178 }
48179 {
48180 PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_From_int((int)(wxID_VIEW_SORTSIZE)));
48181 }
48182 {
48183 PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_From_int((int)(wxID_VIEW_SORTTYPE)));
48184 }
48185 {
48186 PyDict_SetItemString(d,"ID_FILE1", SWIG_From_int((int)(wxID_FILE1)));
48187 }
48188 {
48189 PyDict_SetItemString(d,"ID_FILE2", SWIG_From_int((int)(wxID_FILE2)));
48190 }
48191 {
48192 PyDict_SetItemString(d,"ID_FILE3", SWIG_From_int((int)(wxID_FILE3)));
48193 }
48194 {
48195 PyDict_SetItemString(d,"ID_FILE4", SWIG_From_int((int)(wxID_FILE4)));
48196 }
48197 {
48198 PyDict_SetItemString(d,"ID_FILE5", SWIG_From_int((int)(wxID_FILE5)));
48199 }
48200 {
48201 PyDict_SetItemString(d,"ID_FILE6", SWIG_From_int((int)(wxID_FILE6)));
48202 }
48203 {
48204 PyDict_SetItemString(d,"ID_FILE7", SWIG_From_int((int)(wxID_FILE7)));
48205 }
48206 {
48207 PyDict_SetItemString(d,"ID_FILE8", SWIG_From_int((int)(wxID_FILE8)));
48208 }
48209 {
48210 PyDict_SetItemString(d,"ID_FILE9", SWIG_From_int((int)(wxID_FILE9)));
48211 }
48212 {
48213 PyDict_SetItemString(d,"ID_OK", SWIG_From_int((int)(wxID_OK)));
48214 }
48215 {
48216 PyDict_SetItemString(d,"ID_CANCEL", SWIG_From_int((int)(wxID_CANCEL)));
48217 }
48218 {
48219 PyDict_SetItemString(d,"ID_APPLY", SWIG_From_int((int)(wxID_APPLY)));
48220 }
48221 {
48222 PyDict_SetItemString(d,"ID_YES", SWIG_From_int((int)(wxID_YES)));
48223 }
48224 {
48225 PyDict_SetItemString(d,"ID_NO", SWIG_From_int((int)(wxID_NO)));
48226 }
48227 {
48228 PyDict_SetItemString(d,"ID_STATIC", SWIG_From_int((int)(wxID_STATIC)));
48229 }
48230 {
48231 PyDict_SetItemString(d,"ID_FORWARD", SWIG_From_int((int)(wxID_FORWARD)));
48232 }
48233 {
48234 PyDict_SetItemString(d,"ID_BACKWARD", SWIG_From_int((int)(wxID_BACKWARD)));
48235 }
48236 {
48237 PyDict_SetItemString(d,"ID_DEFAULT", SWIG_From_int((int)(wxID_DEFAULT)));
48238 }
48239 {
48240 PyDict_SetItemString(d,"ID_MORE", SWIG_From_int((int)(wxID_MORE)));
48241 }
48242 {
48243 PyDict_SetItemString(d,"ID_SETUP", SWIG_From_int((int)(wxID_SETUP)));
48244 }
48245 {
48246 PyDict_SetItemString(d,"ID_RESET", SWIG_From_int((int)(wxID_RESET)));
48247 }
48248 {
48249 PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_From_int((int)(wxID_CONTEXT_HELP)));
48250 }
48251 {
48252 PyDict_SetItemString(d,"ID_YESTOALL", SWIG_From_int((int)(wxID_YESTOALL)));
48253 }
48254 {
48255 PyDict_SetItemString(d,"ID_NOTOALL", SWIG_From_int((int)(wxID_NOTOALL)));
48256 }
48257 {
48258 PyDict_SetItemString(d,"ID_ABORT", SWIG_From_int((int)(wxID_ABORT)));
48259 }
48260 {
48261 PyDict_SetItemString(d,"ID_RETRY", SWIG_From_int((int)(wxID_RETRY)));
48262 }
48263 {
48264 PyDict_SetItemString(d,"ID_IGNORE", SWIG_From_int((int)(wxID_IGNORE)));
48265 }
48266 {
48267 PyDict_SetItemString(d,"ID_ADD", SWIG_From_int((int)(wxID_ADD)));
48268 }
48269 {
48270 PyDict_SetItemString(d,"ID_REMOVE", SWIG_From_int((int)(wxID_REMOVE)));
48271 }
48272 {
48273 PyDict_SetItemString(d,"ID_UP", SWIG_From_int((int)(wxID_UP)));
48274 }
48275 {
48276 PyDict_SetItemString(d,"ID_DOWN", SWIG_From_int((int)(wxID_DOWN)));
48277 }
48278 {
48279 PyDict_SetItemString(d,"ID_HOME", SWIG_From_int((int)(wxID_HOME)));
48280 }
48281 {
48282 PyDict_SetItemString(d,"ID_REFRESH", SWIG_From_int((int)(wxID_REFRESH)));
48283 }
48284 {
48285 PyDict_SetItemString(d,"ID_STOP", SWIG_From_int((int)(wxID_STOP)));
48286 }
48287 {
48288 PyDict_SetItemString(d,"ID_INDEX", SWIG_From_int((int)(wxID_INDEX)));
48289 }
48290 {
48291 PyDict_SetItemString(d,"ID_BOLD", SWIG_From_int((int)(wxID_BOLD)));
48292 }
48293 {
48294 PyDict_SetItemString(d,"ID_ITALIC", SWIG_From_int((int)(wxID_ITALIC)));
48295 }
48296 {
48297 PyDict_SetItemString(d,"ID_JUSTIFY_CENTER", SWIG_From_int((int)(wxID_JUSTIFY_CENTER)));
48298 }
48299 {
48300 PyDict_SetItemString(d,"ID_JUSTIFY_FILL", SWIG_From_int((int)(wxID_JUSTIFY_FILL)));
48301 }
48302 {
48303 PyDict_SetItemString(d,"ID_JUSTIFY_RIGHT", SWIG_From_int((int)(wxID_JUSTIFY_RIGHT)));
48304 }
48305 {
48306 PyDict_SetItemString(d,"ID_JUSTIFY_LEFT", SWIG_From_int((int)(wxID_JUSTIFY_LEFT)));
48307 }
48308 {
48309 PyDict_SetItemString(d,"ID_UNDERLINE", SWIG_From_int((int)(wxID_UNDERLINE)));
48310 }
48311 {
48312 PyDict_SetItemString(d,"ID_INDENT", SWIG_From_int((int)(wxID_INDENT)));
48313 }
48314 {
48315 PyDict_SetItemString(d,"ID_UNINDENT", SWIG_From_int((int)(wxID_UNINDENT)));
48316 }
48317 {
48318 PyDict_SetItemString(d,"ID_ZOOM_100", SWIG_From_int((int)(wxID_ZOOM_100)));
48319 }
48320 {
48321 PyDict_SetItemString(d,"ID_ZOOM_FIT", SWIG_From_int((int)(wxID_ZOOM_FIT)));
48322 }
48323 {
48324 PyDict_SetItemString(d,"ID_ZOOM_IN", SWIG_From_int((int)(wxID_ZOOM_IN)));
48325 }
48326 {
48327 PyDict_SetItemString(d,"ID_ZOOM_OUT", SWIG_From_int((int)(wxID_ZOOM_OUT)));
48328 }
48329 {
48330 PyDict_SetItemString(d,"ID_UNDELETE", SWIG_From_int((int)(wxID_UNDELETE)));
48331 }
48332 {
48333 PyDict_SetItemString(d,"ID_REVERT_TO_SAVED", SWIG_From_int((int)(wxID_REVERT_TO_SAVED)));
48334 }
48335 {
48336 PyDict_SetItemString(d,"ID_HIGHEST", SWIG_From_int((int)(wxID_HIGHEST)));
48337 }
48338 {
48339 PyDict_SetItemString(d,"OPEN", SWIG_From_int((int)(wxOPEN)));
48340 }
48341 {
48342 PyDict_SetItemString(d,"SAVE", SWIG_From_int((int)(wxSAVE)));
48343 }
48344 {
48345 PyDict_SetItemString(d,"HIDE_READONLY", SWIG_From_int((int)(wxHIDE_READONLY)));
48346 }
48347 {
48348 PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_From_int((int)(wxOVERWRITE_PROMPT)));
48349 }
48350 {
48351 PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_From_int((int)(wxFILE_MUST_EXIST)));
48352 }
48353 {
48354 PyDict_SetItemString(d,"MULTIPLE", SWIG_From_int((int)(wxMULTIPLE)));
48355 }
48356 {
48357 PyDict_SetItemString(d,"CHANGE_DIR", SWIG_From_int((int)(wxCHANGE_DIR)));
48358 }
48359 {
48360 PyDict_SetItemString(d,"ACCEL_ALT", SWIG_From_int((int)(wxACCEL_ALT)));
48361 }
48362 {
48363 PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_From_int((int)(wxACCEL_CTRL)));
48364 }
48365 {
48366 PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_From_int((int)(wxACCEL_SHIFT)));
48367 }
48368 {
48369 PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_From_int((int)(wxACCEL_NORMAL)));
48370 }
48371 {
48372 PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_From_int((int)(wxPD_AUTO_HIDE)));
48373 }
48374 {
48375 PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_From_int((int)(wxPD_APP_MODAL)));
48376 }
48377 {
48378 PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_From_int((int)(wxPD_CAN_ABORT)));
48379 }
48380 {
48381 PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_From_int((int)(wxPD_ELAPSED_TIME)));
48382 }
48383 {
48384 PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_From_int((int)(wxPD_ESTIMATED_TIME)));
48385 }
48386 {
48387 PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_From_int((int)(wxPD_REMAINING_TIME)));
48388 }
48389 {
48390 PyDict_SetItemString(d,"PD_SMOOTH", SWIG_From_int((int)(wxPD_SMOOTH)));
48391 }
48392 {
48393 PyDict_SetItemString(d,"PD_CAN_SKIP", SWIG_From_int((int)(wxPD_CAN_SKIP)));
48394 }
48395 {
48396 PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_From_int((int)(wxDD_NEW_DIR_BUTTON)));
48397 }
48398 {
48399 PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_From_int((int)(wxDD_DEFAULT_STYLE)));
48400 }
48401 {
48402 PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_From_int((int)(wxMENU_TEAROFF)));
48403 }
48404 {
48405 PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_From_int((int)(wxMB_DOCKABLE)));
48406 }
48407 {
48408 PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)(wxNO_FULL_REPAINT_ON_RESIZE)));
48409 }
48410 {
48411 PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)(wxFULL_REPAINT_ON_RESIZE)));
48412 }
48413 {
48414 PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_From_int((int)(wxLI_HORIZONTAL)));
48415 }
48416 {
48417 PyDict_SetItemString(d,"LI_VERTICAL", SWIG_From_int((int)(wxLI_VERTICAL)));
48418 }
48419 {
48420 PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_From_int((int)(wxWS_EX_VALIDATE_RECURSIVELY)));
48421 }
48422 {
48423 PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_From_int((int)(wxWS_EX_BLOCK_EVENTS)));
48424 }
48425 {
48426 PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_From_int((int)(wxWS_EX_TRANSIENT)));
48427 }
48428 {
48429 PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_From_int((int)(wxWS_EX_THEMED_BACKGROUND)));
48430 }
48431 {
48432 PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_From_int((int)(wxWS_EX_PROCESS_IDLE)));
48433 }
48434 {
48435 PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_From_int((int)(wxWS_EX_PROCESS_UI_UPDATES)));
48436 }
48437 {
48438 PyDict_SetItemString(d,"MM_TEXT", SWIG_From_int((int)(wxMM_TEXT)));
48439 }
48440 {
48441 PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_From_int((int)(wxMM_LOMETRIC)));
48442 }
48443 {
48444 PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_From_int((int)(wxMM_HIMETRIC)));
48445 }
48446 {
48447 PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_From_int((int)(wxMM_LOENGLISH)));
48448 }
48449 {
48450 PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_From_int((int)(wxMM_HIENGLISH)));
48451 }
48452 {
48453 PyDict_SetItemString(d,"MM_TWIPS", SWIG_From_int((int)(wxMM_TWIPS)));
48454 }
48455 {
48456 PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_From_int((int)(wxMM_ISOTROPIC)));
48457 }
48458 {
48459 PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_From_int((int)(wxMM_ANISOTROPIC)));
48460 }
48461 {
48462 PyDict_SetItemString(d,"MM_POINTS", SWIG_From_int((int)(wxMM_POINTS)));
48463 }
48464 {
48465 PyDict_SetItemString(d,"MM_METRIC", SWIG_From_int((int)(wxMM_METRIC)));
48466 }
48467 {
48468 PyDict_SetItemString(d,"CENTRE", SWIG_From_int((int)(wxCENTRE)));
48469 }
48470 {
48471 PyDict_SetItemString(d,"CENTER", SWIG_From_int((int)(wxCENTER)));
48472 }
48473 {
48474 PyDict_SetItemString(d,"HORIZONTAL", SWIG_From_int((int)(wxHORIZONTAL)));
48475 }
48476 {
48477 PyDict_SetItemString(d,"VERTICAL", SWIG_From_int((int)(wxVERTICAL)));
48478 }
48479 {
48480 PyDict_SetItemString(d,"BOTH", SWIG_From_int((int)(wxBOTH)));
48481 }
48482 {
48483 PyDict_SetItemString(d,"LEFT", SWIG_From_int((int)(wxLEFT)));
48484 }
48485 {
48486 PyDict_SetItemString(d,"RIGHT", SWIG_From_int((int)(wxRIGHT)));
48487 }
48488 {
48489 PyDict_SetItemString(d,"UP", SWIG_From_int((int)(wxUP)));
48490 }
48491 {
48492 PyDict_SetItemString(d,"DOWN", SWIG_From_int((int)(wxDOWN)));
48493 }
48494 {
48495 PyDict_SetItemString(d,"TOP", SWIG_From_int((int)(wxTOP)));
48496 }
48497 {
48498 PyDict_SetItemString(d,"BOTTOM", SWIG_From_int((int)(wxBOTTOM)));
48499 }
48500 {
48501 PyDict_SetItemString(d,"NORTH", SWIG_From_int((int)(wxNORTH)));
48502 }
48503 {
48504 PyDict_SetItemString(d,"SOUTH", SWIG_From_int((int)(wxSOUTH)));
48505 }
48506 {
48507 PyDict_SetItemString(d,"WEST", SWIG_From_int((int)(wxWEST)));
48508 }
48509 {
48510 PyDict_SetItemString(d,"EAST", SWIG_From_int((int)(wxEAST)));
48511 }
48512 {
48513 PyDict_SetItemString(d,"ALL", SWIG_From_int((int)(wxALL)));
48514 }
48515 {
48516 PyDict_SetItemString(d,"ALIGN_NOT", SWIG_From_int((int)(wxALIGN_NOT)));
48517 }
48518 {
48519 PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_From_int((int)(wxALIGN_CENTER_HORIZONTAL)));
48520 }
48521 {
48522 PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_From_int((int)(wxALIGN_CENTRE_HORIZONTAL)));
48523 }
48524 {
48525 PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_From_int((int)(wxALIGN_LEFT)));
48526 }
48527 {
48528 PyDict_SetItemString(d,"ALIGN_TOP", SWIG_From_int((int)(wxALIGN_TOP)));
48529 }
48530 {
48531 PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_From_int((int)(wxALIGN_RIGHT)));
48532 }
48533 {
48534 PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_From_int((int)(wxALIGN_BOTTOM)));
48535 }
48536 {
48537 PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_From_int((int)(wxALIGN_CENTER_VERTICAL)));
48538 }
48539 {
48540 PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_From_int((int)(wxALIGN_CENTRE_VERTICAL)));
48541 }
48542 {
48543 PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_From_int((int)(wxALIGN_CENTER)));
48544 }
48545 {
48546 PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_From_int((int)(wxALIGN_CENTRE)));
48547 }
48548 {
48549 PyDict_SetItemString(d,"ALIGN_MASK", SWIG_From_int((int)(wxALIGN_MASK)));
48550 }
48551 {
48552 PyDict_SetItemString(d,"STRETCH_NOT", SWIG_From_int((int)(wxSTRETCH_NOT)));
48553 }
48554 {
48555 PyDict_SetItemString(d,"SHRINK", SWIG_From_int((int)(wxSHRINK)));
48556 }
48557 {
48558 PyDict_SetItemString(d,"GROW", SWIG_From_int((int)(wxGROW)));
48559 }
48560 {
48561 PyDict_SetItemString(d,"EXPAND", SWIG_From_int((int)(wxEXPAND)));
48562 }
48563 {
48564 PyDict_SetItemString(d,"SHAPED", SWIG_From_int((int)(wxSHAPED)));
48565 }
48566 {
48567 PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_From_int((int)(wxFIXED_MINSIZE)));
48568 }
48569 {
48570 PyDict_SetItemString(d,"TILE", SWIG_From_int((int)(wxTILE)));
48571 }
48572 {
48573 PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_From_int((int)(wxADJUST_MINSIZE)));
48574 }
48575 {
48576 PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_From_int((int)(wxBORDER_DEFAULT)));
48577 }
48578 {
48579 PyDict_SetItemString(d,"BORDER_NONE", SWIG_From_int((int)(wxBORDER_NONE)));
48580 }
48581 {
48582 PyDict_SetItemString(d,"BORDER_STATIC", SWIG_From_int((int)(wxBORDER_STATIC)));
48583 }
48584 {
48585 PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_From_int((int)(wxBORDER_SIMPLE)));
48586 }
48587 {
48588 PyDict_SetItemString(d,"BORDER_RAISED", SWIG_From_int((int)(wxBORDER_RAISED)));
48589 }
48590 {
48591 PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_From_int((int)(wxBORDER_SUNKEN)));
48592 }
48593 {
48594 PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_From_int((int)(wxBORDER_DOUBLE)));
48595 }
48596 {
48597 PyDict_SetItemString(d,"BORDER_MASK", SWIG_From_int((int)(wxBORDER_MASK)));
48598 }
48599 {
48600 PyDict_SetItemString(d,"BG_STYLE_SYSTEM", SWIG_From_int((int)(wxBG_STYLE_SYSTEM)));
48601 }
48602 {
48603 PyDict_SetItemString(d,"BG_STYLE_COLOUR", SWIG_From_int((int)(wxBG_STYLE_COLOUR)));
48604 }
48605 {
48606 PyDict_SetItemString(d,"BG_STYLE_CUSTOM", SWIG_From_int((int)(wxBG_STYLE_CUSTOM)));
48607 }
48608 {
48609 PyDict_SetItemString(d,"DEFAULT", SWIG_From_int((int)(wxDEFAULT)));
48610 }
48611 {
48612 PyDict_SetItemString(d,"DECORATIVE", SWIG_From_int((int)(wxDECORATIVE)));
48613 }
48614 {
48615 PyDict_SetItemString(d,"ROMAN", SWIG_From_int((int)(wxROMAN)));
48616 }
48617 {
48618 PyDict_SetItemString(d,"SCRIPT", SWIG_From_int((int)(wxSCRIPT)));
48619 }
48620 {
48621 PyDict_SetItemString(d,"SWISS", SWIG_From_int((int)(wxSWISS)));
48622 }
48623 {
48624 PyDict_SetItemString(d,"MODERN", SWIG_From_int((int)(wxMODERN)));
48625 }
48626 {
48627 PyDict_SetItemString(d,"TELETYPE", SWIG_From_int((int)(wxTELETYPE)));
48628 }
48629 {
48630 PyDict_SetItemString(d,"VARIABLE", SWIG_From_int((int)(wxVARIABLE)));
48631 }
48632 {
48633 PyDict_SetItemString(d,"FIXED", SWIG_From_int((int)(wxFIXED)));
48634 }
48635 {
48636 PyDict_SetItemString(d,"NORMAL", SWIG_From_int((int)(wxNORMAL)));
48637 }
48638 {
48639 PyDict_SetItemString(d,"LIGHT", SWIG_From_int((int)(wxLIGHT)));
48640 }
48641 {
48642 PyDict_SetItemString(d,"BOLD", SWIG_From_int((int)(wxBOLD)));
48643 }
48644 {
48645 PyDict_SetItemString(d,"ITALIC", SWIG_From_int((int)(wxITALIC)));
48646 }
48647 {
48648 PyDict_SetItemString(d,"SLANT", SWIG_From_int((int)(wxSLANT)));
48649 }
48650 {
48651 PyDict_SetItemString(d,"SOLID", SWIG_From_int((int)(wxSOLID)));
48652 }
48653 {
48654 PyDict_SetItemString(d,"DOT", SWIG_From_int((int)(wxDOT)));
48655 }
48656 {
48657 PyDict_SetItemString(d,"LONG_DASH", SWIG_From_int((int)(wxLONG_DASH)));
48658 }
48659 {
48660 PyDict_SetItemString(d,"SHORT_DASH", SWIG_From_int((int)(wxSHORT_DASH)));
48661 }
48662 {
48663 PyDict_SetItemString(d,"DOT_DASH", SWIG_From_int((int)(wxDOT_DASH)));
48664 }
48665 {
48666 PyDict_SetItemString(d,"USER_DASH", SWIG_From_int((int)(wxUSER_DASH)));
48667 }
48668 {
48669 PyDict_SetItemString(d,"TRANSPARENT", SWIG_From_int((int)(wxTRANSPARENT)));
48670 }
48671 {
48672 PyDict_SetItemString(d,"STIPPLE", SWIG_From_int((int)(wxSTIPPLE)));
48673 }
48674 {
48675 PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_From_int((int)(wxBDIAGONAL_HATCH)));
48676 }
48677 {
48678 PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_From_int((int)(wxCROSSDIAG_HATCH)));
48679 }
48680 {
48681 PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_From_int((int)(wxFDIAGONAL_HATCH)));
48682 }
48683 {
48684 PyDict_SetItemString(d,"CROSS_HATCH", SWIG_From_int((int)(wxCROSS_HATCH)));
48685 }
48686 {
48687 PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_From_int((int)(wxHORIZONTAL_HATCH)));
48688 }
48689 {
48690 PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_From_int((int)(wxVERTICAL_HATCH)));
48691 }
48692 {
48693 PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_From_int((int)(wxJOIN_BEVEL)));
48694 }
48695 {
48696 PyDict_SetItemString(d,"JOIN_MITER", SWIG_From_int((int)(wxJOIN_MITER)));
48697 }
48698 {
48699 PyDict_SetItemString(d,"JOIN_ROUND", SWIG_From_int((int)(wxJOIN_ROUND)));
48700 }
48701 {
48702 PyDict_SetItemString(d,"CAP_ROUND", SWIG_From_int((int)(wxCAP_ROUND)));
48703 }
48704 {
48705 PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_From_int((int)(wxCAP_PROJECTING)));
48706 }
48707 {
48708 PyDict_SetItemString(d,"CAP_BUTT", SWIG_From_int((int)(wxCAP_BUTT)));
48709 }
48710 {
48711 PyDict_SetItemString(d,"CLEAR", SWIG_From_int((int)(wxCLEAR)));
48712 }
48713 {
48714 PyDict_SetItemString(d,"XOR", SWIG_From_int((int)(wxXOR)));
48715 }
48716 {
48717 PyDict_SetItemString(d,"INVERT", SWIG_From_int((int)(wxINVERT)));
48718 }
48719 {
48720 PyDict_SetItemString(d,"OR_REVERSE", SWIG_From_int((int)(wxOR_REVERSE)));
48721 }
48722 {
48723 PyDict_SetItemString(d,"AND_REVERSE", SWIG_From_int((int)(wxAND_REVERSE)));
48724 }
48725 {
48726 PyDict_SetItemString(d,"COPY", SWIG_From_int((int)(wxCOPY)));
48727 }
48728 {
48729 PyDict_SetItemString(d,"AND", SWIG_From_int((int)(wxAND)));
48730 }
48731 {
48732 PyDict_SetItemString(d,"AND_INVERT", SWIG_From_int((int)(wxAND_INVERT)));
48733 }
48734 {
48735 PyDict_SetItemString(d,"NO_OP", SWIG_From_int((int)(wxNO_OP)));
48736 }
48737 {
48738 PyDict_SetItemString(d,"NOR", SWIG_From_int((int)(wxNOR)));
48739 }
48740 {
48741 PyDict_SetItemString(d,"EQUIV", SWIG_From_int((int)(wxEQUIV)));
48742 }
48743 {
48744 PyDict_SetItemString(d,"SRC_INVERT", SWIG_From_int((int)(wxSRC_INVERT)));
48745 }
48746 {
48747 PyDict_SetItemString(d,"OR_INVERT", SWIG_From_int((int)(wxOR_INVERT)));
48748 }
48749 {
48750 PyDict_SetItemString(d,"NAND", SWIG_From_int((int)(wxNAND)));
48751 }
48752 {
48753 PyDict_SetItemString(d,"OR", SWIG_From_int((int)(wxOR)));
48754 }
48755 {
48756 PyDict_SetItemString(d,"SET", SWIG_From_int((int)(wxSET)));
48757 }
48758 {
48759 PyDict_SetItemString(d,"WXK_BACK", SWIG_From_int((int)(WXK_BACK)));
48760 }
48761 {
48762 PyDict_SetItemString(d,"WXK_TAB", SWIG_From_int((int)(WXK_TAB)));
48763 }
48764 {
48765 PyDict_SetItemString(d,"WXK_RETURN", SWIG_From_int((int)(WXK_RETURN)));
48766 }
48767 {
48768 PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_From_int((int)(WXK_ESCAPE)));
48769 }
48770 {
48771 PyDict_SetItemString(d,"WXK_SPACE", SWIG_From_int((int)(WXK_SPACE)));
48772 }
48773 {
48774 PyDict_SetItemString(d,"WXK_DELETE", SWIG_From_int((int)(WXK_DELETE)));
48775 }
48776 {
48777 PyDict_SetItemString(d,"WXK_START", SWIG_From_int((int)(WXK_START)));
48778 }
48779 {
48780 PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_From_int((int)(WXK_LBUTTON)));
48781 }
48782 {
48783 PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_From_int((int)(WXK_RBUTTON)));
48784 }
48785 {
48786 PyDict_SetItemString(d,"WXK_CANCEL", SWIG_From_int((int)(WXK_CANCEL)));
48787 }
48788 {
48789 PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_From_int((int)(WXK_MBUTTON)));
48790 }
48791 {
48792 PyDict_SetItemString(d,"WXK_CLEAR", SWIG_From_int((int)(WXK_CLEAR)));
48793 }
48794 {
48795 PyDict_SetItemString(d,"WXK_SHIFT", SWIG_From_int((int)(WXK_SHIFT)));
48796 }
48797 {
48798 PyDict_SetItemString(d,"WXK_ALT", SWIG_From_int((int)(WXK_ALT)));
48799 }
48800 {
48801 PyDict_SetItemString(d,"WXK_CONTROL", SWIG_From_int((int)(WXK_CONTROL)));
48802 }
48803 {
48804 PyDict_SetItemString(d,"WXK_MENU", SWIG_From_int((int)(WXK_MENU)));
48805 }
48806 {
48807 PyDict_SetItemString(d,"WXK_PAUSE", SWIG_From_int((int)(WXK_PAUSE)));
48808 }
48809 {
48810 PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_From_int((int)(WXK_CAPITAL)));
48811 }
48812 {
48813 PyDict_SetItemString(d,"WXK_PRIOR", SWIG_From_int((int)(WXK_PRIOR)));
48814 }
48815 {
48816 PyDict_SetItemString(d,"WXK_NEXT", SWIG_From_int((int)(WXK_NEXT)));
48817 }
48818 {
48819 PyDict_SetItemString(d,"WXK_END", SWIG_From_int((int)(WXK_END)));
48820 }
48821 {
48822 PyDict_SetItemString(d,"WXK_HOME", SWIG_From_int((int)(WXK_HOME)));
48823 }
48824 {
48825 PyDict_SetItemString(d,"WXK_LEFT", SWIG_From_int((int)(WXK_LEFT)));
48826 }
48827 {
48828 PyDict_SetItemString(d,"WXK_UP", SWIG_From_int((int)(WXK_UP)));
48829 }
48830 {
48831 PyDict_SetItemString(d,"WXK_RIGHT", SWIG_From_int((int)(WXK_RIGHT)));
48832 }
48833 {
48834 PyDict_SetItemString(d,"WXK_DOWN", SWIG_From_int((int)(WXK_DOWN)));
48835 }
48836 {
48837 PyDict_SetItemString(d,"WXK_SELECT", SWIG_From_int((int)(WXK_SELECT)));
48838 }
48839 {
48840 PyDict_SetItemString(d,"WXK_PRINT", SWIG_From_int((int)(WXK_PRINT)));
48841 }
48842 {
48843 PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_From_int((int)(WXK_EXECUTE)));
48844 }
48845 {
48846 PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_From_int((int)(WXK_SNAPSHOT)));
48847 }
48848 {
48849 PyDict_SetItemString(d,"WXK_INSERT", SWIG_From_int((int)(WXK_INSERT)));
48850 }
48851 {
48852 PyDict_SetItemString(d,"WXK_HELP", SWIG_From_int((int)(WXK_HELP)));
48853 }
48854 {
48855 PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_From_int((int)(WXK_NUMPAD0)));
48856 }
48857 {
48858 PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_From_int((int)(WXK_NUMPAD1)));
48859 }
48860 {
48861 PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_From_int((int)(WXK_NUMPAD2)));
48862 }
48863 {
48864 PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_From_int((int)(WXK_NUMPAD3)));
48865 }
48866 {
48867 PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_From_int((int)(WXK_NUMPAD4)));
48868 }
48869 {
48870 PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_From_int((int)(WXK_NUMPAD5)));
48871 }
48872 {
48873 PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_From_int((int)(WXK_NUMPAD6)));
48874 }
48875 {
48876 PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_From_int((int)(WXK_NUMPAD7)));
48877 }
48878 {
48879 PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_From_int((int)(WXK_NUMPAD8)));
48880 }
48881 {
48882 PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_From_int((int)(WXK_NUMPAD9)));
48883 }
48884 {
48885 PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_From_int((int)(WXK_MULTIPLY)));
48886 }
48887 {
48888 PyDict_SetItemString(d,"WXK_ADD", SWIG_From_int((int)(WXK_ADD)));
48889 }
48890 {
48891 PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_From_int((int)(WXK_SEPARATOR)));
48892 }
48893 {
48894 PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_From_int((int)(WXK_SUBTRACT)));
48895 }
48896 {
48897 PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_From_int((int)(WXK_DECIMAL)));
48898 }
48899 {
48900 PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_From_int((int)(WXK_DIVIDE)));
48901 }
48902 {
48903 PyDict_SetItemString(d,"WXK_F1", SWIG_From_int((int)(WXK_F1)));
48904 }
48905 {
48906 PyDict_SetItemString(d,"WXK_F2", SWIG_From_int((int)(WXK_F2)));
48907 }
48908 {
48909 PyDict_SetItemString(d,"WXK_F3", SWIG_From_int((int)(WXK_F3)));
48910 }
48911 {
48912 PyDict_SetItemString(d,"WXK_F4", SWIG_From_int((int)(WXK_F4)));
48913 }
48914 {
48915 PyDict_SetItemString(d,"WXK_F5", SWIG_From_int((int)(WXK_F5)));
48916 }
48917 {
48918 PyDict_SetItemString(d,"WXK_F6", SWIG_From_int((int)(WXK_F6)));
48919 }
48920 {
48921 PyDict_SetItemString(d,"WXK_F7", SWIG_From_int((int)(WXK_F7)));
48922 }
48923 {
48924 PyDict_SetItemString(d,"WXK_F8", SWIG_From_int((int)(WXK_F8)));
48925 }
48926 {
48927 PyDict_SetItemString(d,"WXK_F9", SWIG_From_int((int)(WXK_F9)));
48928 }
48929 {
48930 PyDict_SetItemString(d,"WXK_F10", SWIG_From_int((int)(WXK_F10)));
48931 }
48932 {
48933 PyDict_SetItemString(d,"WXK_F11", SWIG_From_int((int)(WXK_F11)));
48934 }
48935 {
48936 PyDict_SetItemString(d,"WXK_F12", SWIG_From_int((int)(WXK_F12)));
48937 }
48938 {
48939 PyDict_SetItemString(d,"WXK_F13", SWIG_From_int((int)(WXK_F13)));
48940 }
48941 {
48942 PyDict_SetItemString(d,"WXK_F14", SWIG_From_int((int)(WXK_F14)));
48943 }
48944 {
48945 PyDict_SetItemString(d,"WXK_F15", SWIG_From_int((int)(WXK_F15)));
48946 }
48947 {
48948 PyDict_SetItemString(d,"WXK_F16", SWIG_From_int((int)(WXK_F16)));
48949 }
48950 {
48951 PyDict_SetItemString(d,"WXK_F17", SWIG_From_int((int)(WXK_F17)));
48952 }
48953 {
48954 PyDict_SetItemString(d,"WXK_F18", SWIG_From_int((int)(WXK_F18)));
48955 }
48956 {
48957 PyDict_SetItemString(d,"WXK_F19", SWIG_From_int((int)(WXK_F19)));
48958 }
48959 {
48960 PyDict_SetItemString(d,"WXK_F20", SWIG_From_int((int)(WXK_F20)));
48961 }
48962 {
48963 PyDict_SetItemString(d,"WXK_F21", SWIG_From_int((int)(WXK_F21)));
48964 }
48965 {
48966 PyDict_SetItemString(d,"WXK_F22", SWIG_From_int((int)(WXK_F22)));
48967 }
48968 {
48969 PyDict_SetItemString(d,"WXK_F23", SWIG_From_int((int)(WXK_F23)));
48970 }
48971 {
48972 PyDict_SetItemString(d,"WXK_F24", SWIG_From_int((int)(WXK_F24)));
48973 }
48974 {
48975 PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_From_int((int)(WXK_NUMLOCK)));
48976 }
48977 {
48978 PyDict_SetItemString(d,"WXK_SCROLL", SWIG_From_int((int)(WXK_SCROLL)));
48979 }
48980 {
48981 PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_From_int((int)(WXK_PAGEUP)));
48982 }
48983 {
48984 PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_From_int((int)(WXK_PAGEDOWN)));
48985 }
48986 {
48987 PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_From_int((int)(WXK_NUMPAD_SPACE)));
48988 }
48989 {
48990 PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_From_int((int)(WXK_NUMPAD_TAB)));
48991 }
48992 {
48993 PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_From_int((int)(WXK_NUMPAD_ENTER)));
48994 }
48995 {
48996 PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_From_int((int)(WXK_NUMPAD_F1)));
48997 }
48998 {
48999 PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_From_int((int)(WXK_NUMPAD_F2)));
49000 }
49001 {
49002 PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_From_int((int)(WXK_NUMPAD_F3)));
49003 }
49004 {
49005 PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_From_int((int)(WXK_NUMPAD_F4)));
49006 }
49007 {
49008 PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_From_int((int)(WXK_NUMPAD_HOME)));
49009 }
49010 {
49011 PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_From_int((int)(WXK_NUMPAD_LEFT)));
49012 }
49013 {
49014 PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_From_int((int)(WXK_NUMPAD_UP)));
49015 }
49016 {
49017 PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_From_int((int)(WXK_NUMPAD_RIGHT)));
49018 }
49019 {
49020 PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_From_int((int)(WXK_NUMPAD_DOWN)));
49021 }
49022 {
49023 PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_From_int((int)(WXK_NUMPAD_PRIOR)));
49024 }
49025 {
49026 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_From_int((int)(WXK_NUMPAD_PAGEUP)));
49027 }
49028 {
49029 PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_From_int((int)(WXK_NUMPAD_NEXT)));
49030 }
49031 {
49032 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_From_int((int)(WXK_NUMPAD_PAGEDOWN)));
49033 }
49034 {
49035 PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_From_int((int)(WXK_NUMPAD_END)));
49036 }
49037 {
49038 PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_From_int((int)(WXK_NUMPAD_BEGIN)));
49039 }
49040 {
49041 PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_From_int((int)(WXK_NUMPAD_INSERT)));
49042 }
49043 {
49044 PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_From_int((int)(WXK_NUMPAD_DELETE)));
49045 }
49046 {
49047 PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_From_int((int)(WXK_NUMPAD_EQUAL)));
49048 }
49049 {
49050 PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_From_int((int)(WXK_NUMPAD_MULTIPLY)));
49051 }
49052 {
49053 PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_From_int((int)(WXK_NUMPAD_ADD)));
49054 }
49055 {
49056 PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_From_int((int)(WXK_NUMPAD_SEPARATOR)));
49057 }
49058 {
49059 PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_From_int((int)(WXK_NUMPAD_SUBTRACT)));
49060 }
49061 {
49062 PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_From_int((int)(WXK_NUMPAD_DECIMAL)));
49063 }
49064 {
49065 PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_From_int((int)(WXK_NUMPAD_DIVIDE)));
49066 }
49067 {
49068 PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_From_int((int)(WXK_WINDOWS_LEFT)));
49069 }
49070 {
49071 PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_From_int((int)(WXK_WINDOWS_RIGHT)));
49072 }
49073 {
49074 PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_From_int((int)(WXK_WINDOWS_MENU)));
49075 }
49076 {
49077 PyDict_SetItemString(d,"WXK_COMMAND", SWIG_From_int((int)(WXK_COMMAND)));
49078 }
49079 {
49080 PyDict_SetItemString(d,"WXK_SPECIAL1", SWIG_From_int((int)(WXK_SPECIAL1)));
49081 }
49082 {
49083 PyDict_SetItemString(d,"WXK_SPECIAL2", SWIG_From_int((int)(WXK_SPECIAL2)));
49084 }
49085 {
49086 PyDict_SetItemString(d,"WXK_SPECIAL3", SWIG_From_int((int)(WXK_SPECIAL3)));
49087 }
49088 {
49089 PyDict_SetItemString(d,"WXK_SPECIAL4", SWIG_From_int((int)(WXK_SPECIAL4)));
49090 }
49091 {
49092 PyDict_SetItemString(d,"WXK_SPECIAL5", SWIG_From_int((int)(WXK_SPECIAL5)));
49093 }
49094 {
49095 PyDict_SetItemString(d,"WXK_SPECIAL6", SWIG_From_int((int)(WXK_SPECIAL6)));
49096 }
49097 {
49098 PyDict_SetItemString(d,"WXK_SPECIAL7", SWIG_From_int((int)(WXK_SPECIAL7)));
49099 }
49100 {
49101 PyDict_SetItemString(d,"WXK_SPECIAL8", SWIG_From_int((int)(WXK_SPECIAL8)));
49102 }
49103 {
49104 PyDict_SetItemString(d,"WXK_SPECIAL9", SWIG_From_int((int)(WXK_SPECIAL9)));
49105 }
49106 {
49107 PyDict_SetItemString(d,"WXK_SPECIAL10", SWIG_From_int((int)(WXK_SPECIAL10)));
49108 }
49109 {
49110 PyDict_SetItemString(d,"WXK_SPECIAL11", SWIG_From_int((int)(WXK_SPECIAL11)));
49111 }
49112 {
49113 PyDict_SetItemString(d,"WXK_SPECIAL12", SWIG_From_int((int)(WXK_SPECIAL12)));
49114 }
49115 {
49116 PyDict_SetItemString(d,"WXK_SPECIAL13", SWIG_From_int((int)(WXK_SPECIAL13)));
49117 }
49118 {
49119 PyDict_SetItemString(d,"WXK_SPECIAL14", SWIG_From_int((int)(WXK_SPECIAL14)));
49120 }
49121 {
49122 PyDict_SetItemString(d,"WXK_SPECIAL15", SWIG_From_int((int)(WXK_SPECIAL15)));
49123 }
49124 {
49125 PyDict_SetItemString(d,"WXK_SPECIAL16", SWIG_From_int((int)(WXK_SPECIAL16)));
49126 }
49127 {
49128 PyDict_SetItemString(d,"WXK_SPECIAL17", SWIG_From_int((int)(WXK_SPECIAL17)));
49129 }
49130 {
49131 PyDict_SetItemString(d,"WXK_SPECIAL18", SWIG_From_int((int)(WXK_SPECIAL18)));
49132 }
49133 {
49134 PyDict_SetItemString(d,"WXK_SPECIAL19", SWIG_From_int((int)(WXK_SPECIAL19)));
49135 }
49136 {
49137 PyDict_SetItemString(d,"WXK_SPECIAL20", SWIG_From_int((int)(WXK_SPECIAL20)));
49138 }
49139 {
49140 PyDict_SetItemString(d,"PAPER_NONE", SWIG_From_int((int)(wxPAPER_NONE)));
49141 }
49142 {
49143 PyDict_SetItemString(d,"PAPER_LETTER", SWIG_From_int((int)(wxPAPER_LETTER)));
49144 }
49145 {
49146 PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_From_int((int)(wxPAPER_LEGAL)));
49147 }
49148 {
49149 PyDict_SetItemString(d,"PAPER_A4", SWIG_From_int((int)(wxPAPER_A4)));
49150 }
49151 {
49152 PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_From_int((int)(wxPAPER_CSHEET)));
49153 }
49154 {
49155 PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_From_int((int)(wxPAPER_DSHEET)));
49156 }
49157 {
49158 PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_From_int((int)(wxPAPER_ESHEET)));
49159 }
49160 {
49161 PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_From_int((int)(wxPAPER_LETTERSMALL)));
49162 }
49163 {
49164 PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_From_int((int)(wxPAPER_TABLOID)));
49165 }
49166 {
49167 PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_From_int((int)(wxPAPER_LEDGER)));
49168 }
49169 {
49170 PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_From_int((int)(wxPAPER_STATEMENT)));
49171 }
49172 {
49173 PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_From_int((int)(wxPAPER_EXECUTIVE)));
49174 }
49175 {
49176 PyDict_SetItemString(d,"PAPER_A3", SWIG_From_int((int)(wxPAPER_A3)));
49177 }
49178 {
49179 PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_From_int((int)(wxPAPER_A4SMALL)));
49180 }
49181 {
49182 PyDict_SetItemString(d,"PAPER_A5", SWIG_From_int((int)(wxPAPER_A5)));
49183 }
49184 {
49185 PyDict_SetItemString(d,"PAPER_B4", SWIG_From_int((int)(wxPAPER_B4)));
49186 }
49187 {
49188 PyDict_SetItemString(d,"PAPER_B5", SWIG_From_int((int)(wxPAPER_B5)));
49189 }
49190 {
49191 PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_From_int((int)(wxPAPER_FOLIO)));
49192 }
49193 {
49194 PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_From_int((int)(wxPAPER_QUARTO)));
49195 }
49196 {
49197 PyDict_SetItemString(d,"PAPER_10X14", SWIG_From_int((int)(wxPAPER_10X14)));
49198 }
49199 {
49200 PyDict_SetItemString(d,"PAPER_11X17", SWIG_From_int((int)(wxPAPER_11X17)));
49201 }
49202 {
49203 PyDict_SetItemString(d,"PAPER_NOTE", SWIG_From_int((int)(wxPAPER_NOTE)));
49204 }
49205 {
49206 PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_From_int((int)(wxPAPER_ENV_9)));
49207 }
49208 {
49209 PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_From_int((int)(wxPAPER_ENV_10)));
49210 }
49211 {
49212 PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_From_int((int)(wxPAPER_ENV_11)));
49213 }
49214 {
49215 PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_From_int((int)(wxPAPER_ENV_12)));
49216 }
49217 {
49218 PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_From_int((int)(wxPAPER_ENV_14)));
49219 }
49220 {
49221 PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_From_int((int)(wxPAPER_ENV_DL)));
49222 }
49223 {
49224 PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_From_int((int)(wxPAPER_ENV_C5)));
49225 }
49226 {
49227 PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_From_int((int)(wxPAPER_ENV_C3)));
49228 }
49229 {
49230 PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_From_int((int)(wxPAPER_ENV_C4)));
49231 }
49232 {
49233 PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_From_int((int)(wxPAPER_ENV_C6)));
49234 }
49235 {
49236 PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_From_int((int)(wxPAPER_ENV_C65)));
49237 }
49238 {
49239 PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_From_int((int)(wxPAPER_ENV_B4)));
49240 }
49241 {
49242 PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_From_int((int)(wxPAPER_ENV_B5)));
49243 }
49244 {
49245 PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_From_int((int)(wxPAPER_ENV_B6)));
49246 }
49247 {
49248 PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_From_int((int)(wxPAPER_ENV_ITALY)));
49249 }
49250 {
49251 PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_From_int((int)(wxPAPER_ENV_MONARCH)));
49252 }
49253 {
49254 PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_From_int((int)(wxPAPER_ENV_PERSONAL)));
49255 }
49256 {
49257 PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_From_int((int)(wxPAPER_FANFOLD_US)));
49258 }
49259 {
49260 PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_From_int((int)(wxPAPER_FANFOLD_STD_GERMAN)));
49261 }
49262 {
49263 PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_From_int((int)(wxPAPER_FANFOLD_LGL_GERMAN)));
49264 }
49265 {
49266 PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_From_int((int)(wxPAPER_ISO_B4)));
49267 }
49268 {
49269 PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_From_int((int)(wxPAPER_JAPANESE_POSTCARD)));
49270 }
49271 {
49272 PyDict_SetItemString(d,"PAPER_9X11", SWIG_From_int((int)(wxPAPER_9X11)));
49273 }
49274 {
49275 PyDict_SetItemString(d,"PAPER_10X11", SWIG_From_int((int)(wxPAPER_10X11)));
49276 }
49277 {
49278 PyDict_SetItemString(d,"PAPER_15X11", SWIG_From_int((int)(wxPAPER_15X11)));
49279 }
49280 {
49281 PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_From_int((int)(wxPAPER_ENV_INVITE)));
49282 }
49283 {
49284 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_From_int((int)(wxPAPER_LETTER_EXTRA)));
49285 }
49286 {
49287 PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_From_int((int)(wxPAPER_LEGAL_EXTRA)));
49288 }
49289 {
49290 PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_From_int((int)(wxPAPER_TABLOID_EXTRA)));
49291 }
49292 {
49293 PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_From_int((int)(wxPAPER_A4_EXTRA)));
49294 }
49295 {
49296 PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_From_int((int)(wxPAPER_LETTER_TRANSVERSE)));
49297 }
49298 {
49299 PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_From_int((int)(wxPAPER_A4_TRANSVERSE)));
49300 }
49301 {
49302 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_From_int((int)(wxPAPER_LETTER_EXTRA_TRANSVERSE)));
49303 }
49304 {
49305 PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_From_int((int)(wxPAPER_A_PLUS)));
49306 }
49307 {
49308 PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_From_int((int)(wxPAPER_B_PLUS)));
49309 }
49310 {
49311 PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_From_int((int)(wxPAPER_LETTER_PLUS)));
49312 }
49313 {
49314 PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_From_int((int)(wxPAPER_A4_PLUS)));
49315 }
49316 {
49317 PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_From_int((int)(wxPAPER_A5_TRANSVERSE)));
49318 }
49319 {
49320 PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_From_int((int)(wxPAPER_B5_TRANSVERSE)));
49321 }
49322 {
49323 PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_From_int((int)(wxPAPER_A3_EXTRA)));
49324 }
49325 {
49326 PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_From_int((int)(wxPAPER_A5_EXTRA)));
49327 }
49328 {
49329 PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_From_int((int)(wxPAPER_B5_EXTRA)));
49330 }
49331 {
49332 PyDict_SetItemString(d,"PAPER_A2", SWIG_From_int((int)(wxPAPER_A2)));
49333 }
49334 {
49335 PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_From_int((int)(wxPAPER_A3_TRANSVERSE)));
49336 }
49337 {
49338 PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_From_int((int)(wxPAPER_A3_EXTRA_TRANSVERSE)));
49339 }
49340 {
49341 PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_From_int((int)(wxDUPLEX_SIMPLEX)));
49342 }
49343 {
49344 PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_From_int((int)(wxDUPLEX_HORIZONTAL)));
49345 }
49346 {
49347 PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_From_int((int)(wxDUPLEX_VERTICAL)));
49348 }
49349 {
49350 PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_From_int((int)(wxITEM_SEPARATOR)));
49351 }
49352 {
49353 PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_From_int((int)(wxITEM_NORMAL)));
49354 }
49355 {
49356 PyDict_SetItemString(d,"ITEM_CHECK", SWIG_From_int((int)(wxITEM_CHECK)));
49357 }
49358 {
49359 PyDict_SetItemString(d,"ITEM_RADIO", SWIG_From_int((int)(wxITEM_RADIO)));
49360 }
49361 {
49362 PyDict_SetItemString(d,"ITEM_MAX", SWIG_From_int((int)(wxITEM_MAX)));
49363 }
49364 {
49365 PyDict_SetItemString(d,"HT_NOWHERE", SWIG_From_int((int)(wxHT_NOWHERE)));
49366 }
49367 {
49368 PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_From_int((int)(wxHT_SCROLLBAR_FIRST)));
49369 }
49370 {
49371 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_From_int((int)(wxHT_SCROLLBAR_ARROW_LINE_1)));
49372 }
49373 {
49374 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_From_int((int)(wxHT_SCROLLBAR_ARROW_LINE_2)));
49375 }
49376 {
49377 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_From_int((int)(wxHT_SCROLLBAR_ARROW_PAGE_1)));
49378 }
49379 {
49380 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_From_int((int)(wxHT_SCROLLBAR_ARROW_PAGE_2)));
49381 }
49382 {
49383 PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_From_int((int)(wxHT_SCROLLBAR_THUMB)));
49384 }
49385 {
49386 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_From_int((int)(wxHT_SCROLLBAR_BAR_1)));
49387 }
49388 {
49389 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_From_int((int)(wxHT_SCROLLBAR_BAR_2)));
49390 }
49391 {
49392 PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_From_int((int)(wxHT_SCROLLBAR_LAST)));
49393 }
49394 {
49395 PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_From_int((int)(wxHT_WINDOW_OUTSIDE)));
49396 }
49397 {
49398 PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_From_int((int)(wxHT_WINDOW_INSIDE)));
49399 }
49400 {
49401 PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_From_int((int)(wxHT_WINDOW_VERT_SCROLLBAR)));
49402 }
49403 {
49404 PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_From_int((int)(wxHT_WINDOW_HORZ_SCROLLBAR)));
49405 }
49406 {
49407 PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_From_int((int)(wxHT_WINDOW_CORNER)));
49408 }
49409 {
49410 PyDict_SetItemString(d,"HT_MAX", SWIG_From_int((int)(wxHT_MAX)));
49411 }
49412 {
49413 PyDict_SetItemString(d,"MOD_NONE", SWIG_From_int((int)(wxMOD_NONE)));
49414 }
49415 {
49416 PyDict_SetItemString(d,"MOD_ALT", SWIG_From_int((int)(wxMOD_ALT)));
49417 }
49418 {
49419 PyDict_SetItemString(d,"MOD_CONTROL", SWIG_From_int((int)(wxMOD_CONTROL)));
49420 }
49421 {
49422 PyDict_SetItemString(d,"MOD_SHIFT", SWIG_From_int((int)(wxMOD_SHIFT)));
49423 }
49424 {
49425 PyDict_SetItemString(d,"MOD_WIN", SWIG_From_int((int)(wxMOD_WIN)));
49426 }
49427 {
49428 PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_From_int((int)(wxUPDATE_UI_NONE)));
49429 }
49430 {
49431 PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_From_int((int)(wxUPDATE_UI_RECURSE)));
49432 }
49433 {
49434 PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_From_int((int)(wxUPDATE_UI_FROMIDLE)));
49435 }
49436 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
49437 SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set);
49438 {
49439 PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_From_int((int)(wxBITMAP_TYPE_INVALID)));
49440 }
49441 {
49442 PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_From_int((int)(wxBITMAP_TYPE_BMP)));
49443 }
49444 {
49445 PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_From_int((int)(wxBITMAP_TYPE_ICO)));
49446 }
49447 {
49448 PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_From_int((int)(wxBITMAP_TYPE_CUR)));
49449 }
49450 {
49451 PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_From_int((int)(wxBITMAP_TYPE_XBM)));
49452 }
49453 {
49454 PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_From_int((int)(wxBITMAP_TYPE_XBM_DATA)));
49455 }
49456 {
49457 PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_From_int((int)(wxBITMAP_TYPE_XPM)));
49458 }
49459 {
49460 PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_From_int((int)(wxBITMAP_TYPE_XPM_DATA)));
49461 }
49462 {
49463 PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_From_int((int)(wxBITMAP_TYPE_TIF)));
49464 }
49465 {
49466 PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_From_int((int)(wxBITMAP_TYPE_GIF)));
49467 }
49468 {
49469 PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_From_int((int)(wxBITMAP_TYPE_PNG)));
49470 }
49471 {
49472 PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_From_int((int)(wxBITMAP_TYPE_JPEG)));
49473 }
49474 {
49475 PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_From_int((int)(wxBITMAP_TYPE_PNM)));
49476 }
49477 {
49478 PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_From_int((int)(wxBITMAP_TYPE_PCX)));
49479 }
49480 {
49481 PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_From_int((int)(wxBITMAP_TYPE_PICT)));
49482 }
49483 {
49484 PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_From_int((int)(wxBITMAP_TYPE_ICON)));
49485 }
49486 {
49487 PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_From_int((int)(wxBITMAP_TYPE_ANI)));
49488 }
49489 {
49490 PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_From_int((int)(wxBITMAP_TYPE_IFF)));
49491 }
49492 {
49493 PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_From_int((int)(wxBITMAP_TYPE_MACCURSOR)));
49494 }
49495 {
49496 PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_From_int((int)(wxBITMAP_TYPE_ANY)));
49497 }
49498 {
49499 PyDict_SetItemString(d,"CURSOR_NONE", SWIG_From_int((int)(wxCURSOR_NONE)));
49500 }
49501 {
49502 PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_From_int((int)(wxCURSOR_ARROW)));
49503 }
49504 {
49505 PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_From_int((int)(wxCURSOR_RIGHT_ARROW)));
49506 }
49507 {
49508 PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_From_int((int)(wxCURSOR_BULLSEYE)));
49509 }
49510 {
49511 PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_From_int((int)(wxCURSOR_CHAR)));
49512 }
49513 {
49514 PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_From_int((int)(wxCURSOR_CROSS)));
49515 }
49516 {
49517 PyDict_SetItemString(d,"CURSOR_HAND", SWIG_From_int((int)(wxCURSOR_HAND)));
49518 }
49519 {
49520 PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_From_int((int)(wxCURSOR_IBEAM)));
49521 }
49522 {
49523 PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_From_int((int)(wxCURSOR_LEFT_BUTTON)));
49524 }
49525 {
49526 PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_From_int((int)(wxCURSOR_MAGNIFIER)));
49527 }
49528 {
49529 PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_From_int((int)(wxCURSOR_MIDDLE_BUTTON)));
49530 }
49531 {
49532 PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_From_int((int)(wxCURSOR_NO_ENTRY)));
49533 }
49534 {
49535 PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_From_int((int)(wxCURSOR_PAINT_BRUSH)));
49536 }
49537 {
49538 PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_From_int((int)(wxCURSOR_PENCIL)));
49539 }
49540 {
49541 PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_From_int((int)(wxCURSOR_POINT_LEFT)));
49542 }
49543 {
49544 PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_From_int((int)(wxCURSOR_POINT_RIGHT)));
49545 }
49546 {
49547 PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_From_int((int)(wxCURSOR_QUESTION_ARROW)));
49548 }
49549 {
49550 PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_From_int((int)(wxCURSOR_RIGHT_BUTTON)));
49551 }
49552 {
49553 PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_From_int((int)(wxCURSOR_SIZENESW)));
49554 }
49555 {
49556 PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_From_int((int)(wxCURSOR_SIZENS)));
49557 }
49558 {
49559 PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_From_int((int)(wxCURSOR_SIZENWSE)));
49560 }
49561 {
49562 PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_From_int((int)(wxCURSOR_SIZEWE)));
49563 }
49564 {
49565 PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_From_int((int)(wxCURSOR_SIZING)));
49566 }
49567 {
49568 PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_From_int((int)(wxCURSOR_SPRAYCAN)));
49569 }
49570 {
49571 PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_From_int((int)(wxCURSOR_WAIT)));
49572 }
49573 {
49574 PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_From_int((int)(wxCURSOR_WATCH)));
49575 }
49576 {
49577 PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_From_int((int)(wxCURSOR_BLANK)));
49578 }
49579 {
49580 PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_From_int((int)(wxCURSOR_DEFAULT)));
49581 }
49582 {
49583 PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_From_int((int)(wxCURSOR_COPY_ARROW)));
49584 }
49585 {
49586 PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_From_int((int)(wxCURSOR_ARROWWAIT)));
49587 }
49588 {
49589 PyDict_SetItemString(d,"CURSOR_MAX", SWIG_From_int((int)(wxCURSOR_MAX)));
49590 }
49591 SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set);
49592 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set);
49593 {
49594 PyDict_SetItemString(d,"FromStart", SWIG_From_int((int)(wxFromStart)));
49595 }
49596 {
49597 PyDict_SetItemString(d,"FromCurrent", SWIG_From_int((int)(wxFromCurrent)));
49598 }
49599 {
49600 PyDict_SetItemString(d,"FromEnd", SWIG_From_int((int)(wxFromEnd)));
49601 }
49602
49603 wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
49604
49605
49606 wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
49607
49608 {
49609 PyDict_SetItemString(d,"IMAGE_ALPHA_TRANSPARENT", SWIG_From_int((int)(wxIMAGE_ALPHA_TRANSPARENT)));
49610 }
49611 {
49612 PyDict_SetItemString(d,"IMAGE_ALPHA_THRESHOLD", SWIG_From_int((int)(wxIMAGE_ALPHA_THRESHOLD)));
49613 }
49614 {
49615 PyDict_SetItemString(d,"IMAGE_ALPHA_OPAQUE", SWIG_From_int((int)(wxIMAGE_ALPHA_OPAQUE)));
49616 }
49617 SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set);
49618 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_FILENAME",_wrap_IMAGE_OPTION_FILENAME_get, _wrap_IMAGE_OPTION_FILENAME_set);
49619 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set);
49620 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set);
49621 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set);
49622 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set);
49623 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONX",_wrap_IMAGE_OPTION_RESOLUTIONX_get, _wrap_IMAGE_OPTION_RESOLUTIONX_set);
49624 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONY",_wrap_IMAGE_OPTION_RESOLUTIONY_get, _wrap_IMAGE_OPTION_RESOLUTIONY_set);
49625 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set);
49626 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_QUALITY",_wrap_IMAGE_OPTION_QUALITY_get, _wrap_IMAGE_OPTION_QUALITY_set);
49627 {
49628 PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_From_int((int)(wxIMAGE_RESOLUTION_INCHES)));
49629 }
49630 {
49631 PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_From_int((int)(wxIMAGE_RESOLUTION_CM)));
49632 }
49633 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BITSPERSAMPLE",_wrap_IMAGE_OPTION_BITSPERSAMPLE_get, _wrap_IMAGE_OPTION_BITSPERSAMPLE_set);
49634 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_SAMPLESPERPIXEL",_wrap_IMAGE_OPTION_SAMPLESPERPIXEL_get, _wrap_IMAGE_OPTION_SAMPLESPERPIXEL_set);
49635 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_COMPRESSION",_wrap_IMAGE_OPTION_COMPRESSION_get, _wrap_IMAGE_OPTION_COMPRESSION_set);
49636 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_IMAGEDESCRIPTOR",_wrap_IMAGE_OPTION_IMAGEDESCRIPTOR_get, _wrap_IMAGE_OPTION_IMAGEDESCRIPTOR_set);
49637 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_PNG_FORMAT",_wrap_IMAGE_OPTION_PNG_FORMAT_get, _wrap_IMAGE_OPTION_PNG_FORMAT_set);
49638 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_PNG_BITDEPTH",_wrap_IMAGE_OPTION_PNG_BITDEPTH_get, _wrap_IMAGE_OPTION_PNG_BITDEPTH_set);
49639 {
49640 PyDict_SetItemString(d,"PNG_TYPE_COLOUR", SWIG_From_int((int)(wxPNG_TYPE_COLOUR)));
49641 }
49642 {
49643 PyDict_SetItemString(d,"PNG_TYPE_GREY", SWIG_From_int((int)(wxPNG_TYPE_GREY)));
49644 }
49645 {
49646 PyDict_SetItemString(d,"PNG_TYPE_GREY_RED", SWIG_From_int((int)(wxPNG_TYPE_GREY_RED)));
49647 }
49648 {
49649 PyDict_SetItemString(d,"BMP_24BPP", SWIG_From_int((int)(wxBMP_24BPP)));
49650 }
49651 {
49652 PyDict_SetItemString(d,"BMP_8BPP", SWIG_From_int((int)(wxBMP_8BPP)));
49653 }
49654 {
49655 PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_From_int((int)(wxBMP_8BPP_GREY)));
49656 }
49657 {
49658 PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_From_int((int)(wxBMP_8BPP_GRAY)));
49659 }
49660 {
49661 PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_From_int((int)(wxBMP_8BPP_RED)));
49662 }
49663 {
49664 PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_From_int((int)(wxBMP_8BPP_PALETTE)));
49665 }
49666 {
49667 PyDict_SetItemString(d,"BMP_4BPP", SWIG_From_int((int)(wxBMP_4BPP)));
49668 }
49669 {
49670 PyDict_SetItemString(d,"BMP_1BPP", SWIG_From_int((int)(wxBMP_1BPP)));
49671 }
49672 {
49673 PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_From_int((int)(wxBMP_1BPP_BW)));
49674 }
49675 {
49676 PyDict_SetItemString(d,"QUANTIZE_INCLUDE_WINDOWS_COLOURS", SWIG_From_int((int)(wxQUANTIZE_INCLUDE_WINDOWS_COLOURS)));
49677 }
49678 {
49679 PyDict_SetItemString(d,"QUANTIZE_FILL_DESTINATION_IMAGE", SWIG_From_int((int)(wxQUANTIZE_FILL_DESTINATION_IMAGE)));
49680 }
49681 {
49682 PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_From_int((int)(wxEVENT_PROPAGATE_NONE)));
49683 }
49684 {
49685 PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_From_int((int)(wxEVENT_PROPAGATE_MAX)));
49686 }
49687 PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL));
49688 PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST));
49689 PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST));
49690 PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED));
49691 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED));
49692 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED));
49693 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED));
49694 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED));
49695 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED));
49696 PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED));
49697 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED));
49698 PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED));
49699 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED));
49700 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED));
49701 PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED));
49702 PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED));
49703 PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED));
49704 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED));
49705 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER));
49706 PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN));
49707 PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP));
49708 PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN));
49709 PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP));
49710 PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN));
49711 PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP));
49712 PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION));
49713 PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW));
49714 PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW));
49715 PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK));
49716 PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK));
49717 PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK));
49718 PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS));
49719 PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS));
49720 PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS));
49721 PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL));
49722 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN));
49723 PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP));
49724 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN));
49725 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP));
49726 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN));
49727 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP));
49728 PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION));
49729 PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW));
49730 PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW));
49731 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK));
49732 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK));
49733 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK));
49734 PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR));
49735 PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK));
49736 PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY));
49737 PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN));
49738 PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP));
49739 PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY));
49740 PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR));
49741 PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP));
49742 PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM));
49743 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP));
49744 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN));
49745 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP));
49746 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN));
49747 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK));
49748 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE));
49749 PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL));
49750 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP));
49751 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM));
49752 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP));
49753 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN));
49754 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP));
49755 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN));
49756 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK));
49757 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE));
49758 PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE));
49759 PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE));
49760 PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW));
49761 PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION));
49762 PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION));
49763 PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP));
49764 PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER));
49765 PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE));
49766 PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE));
49767 PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY));
49768 PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW));
49769 PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE));
49770 PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE));
49771 PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED));
49772 PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT));
49773 PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND));
49774 PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT));
49775 PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON));
49776 PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN));
49777 PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE));
49778 PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT));
49779 PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU));
49780 PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED));
49781 PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED));
49782 PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED));
49783 PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE));
49784 PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED));
49785 PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES));
49786 PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM));
49787 PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM));
49788 PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM));
49789 PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG));
49790 PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE));
49791 PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI));
49792 PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING));
49793 PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING));
49794 PyDict_SetItemString(d, "wxEVT_HIBERNATE", PyInt_FromLong(wxEVT_HIBERNATE));
49795 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK));
49796 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK));
49797 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK));
49798 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK));
49799 PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS));
49800 PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS));
49801 PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER));
49802 {
49803 PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_From_int((int)(wxMOUSE_BTN_ANY)));
49804 }
49805 {
49806 PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_From_int((int)(wxMOUSE_BTN_NONE)));
49807 }
49808 {
49809 PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_From_int((int)(wxMOUSE_BTN_LEFT)));
49810 }
49811 {
49812 PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_From_int((int)(wxMOUSE_BTN_MIDDLE)));
49813 }
49814 {
49815 PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_From_int((int)(wxMOUSE_BTN_RIGHT)));
49816 }
49817 {
49818 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_From_int((int)(wxUPDATE_UI_PROCESS_ALL)));
49819 }
49820 {
49821 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_From_int((int)(wxUPDATE_UI_PROCESS_SPECIFIED)));
49822 }
49823 {
49824 PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_From_int((int)(wxNavigationKeyEvent::IsBackward)));
49825 }
49826 {
49827 PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_From_int((int)(wxNavigationKeyEvent::IsForward)));
49828 }
49829 {
49830 PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_From_int((int)(wxNavigationKeyEvent::WinChange)));
49831 }
49832 {
49833 PyDict_SetItemString(d,"NavigationKeyEvent_FromTab", SWIG_From_int((int)(wxNavigationKeyEvent::FromTab)));
49834 }
49835 {
49836 PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_From_int((int)(wxIDLE_PROCESS_ALL)));
49837 }
49838 {
49839 PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_From_int((int)(wxIDLE_PROCESS_SPECIFIED)));
49840 }
49841 PyDict_SetItemString(d, "wxEVT_DATE_CHANGED", PyInt_FromLong(wxEVT_DATE_CHANGED));
49842 {
49843 PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_From_int((int)(wxPYAPP_ASSERT_SUPPRESS)));
49844 }
49845 {
49846 PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_From_int((int)(wxPYAPP_ASSERT_EXCEPTION)));
49847 }
49848 {
49849 PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_From_int((int)(wxPYAPP_ASSERT_DIALOG)));
49850 }
49851 {
49852 PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_From_int((int)(wxPYAPP_ASSERT_LOG)));
49853 }
49854 {
49855 PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_From_int((int)(wxPRINT_WINDOWS)));
49856 }
49857 {
49858 PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_From_int((int)(wxPRINT_POSTSCRIPT)));
49859 }
49860 SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set);
49861 SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set);
49862 {
49863 PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_From_int((int)(wxWINDOW_VARIANT_NORMAL)));
49864 }
49865 {
49866 PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_From_int((int)(wxWINDOW_VARIANT_SMALL)));
49867 }
49868 {
49869 PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_From_int((int)(wxWINDOW_VARIANT_MINI)));
49870 }
49871 {
49872 PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_From_int((int)(wxWINDOW_VARIANT_LARGE)));
49873 }
49874 {
49875 PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_From_int((int)(wxWINDOW_VARIANT_MAX)));
49876 }
49877 SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set);
49878 SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set);
49879 {
49880 PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_From_int((int)(wxFLEX_GROWMODE_NONE)));
49881 }
49882 {
49883 PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_From_int((int)(wxFLEX_GROWMODE_SPECIFIED)));
49884 }
49885 {
49886 PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_From_int((int)(wxFLEX_GROWMODE_ALL)));
49887 }
49888 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set);
49889 {
49890 PyDict_SetItemString(d,"Left", SWIG_From_int((int)(wxLeft)));
49891 }
49892 {
49893 PyDict_SetItemString(d,"Top", SWIG_From_int((int)(wxTop)));
49894 }
49895 {
49896 PyDict_SetItemString(d,"Right", SWIG_From_int((int)(wxRight)));
49897 }
49898 {
49899 PyDict_SetItemString(d,"Bottom", SWIG_From_int((int)(wxBottom)));
49900 }
49901 {
49902 PyDict_SetItemString(d,"Width", SWIG_From_int((int)(wxWidth)));
49903 }
49904 {
49905 PyDict_SetItemString(d,"Height", SWIG_From_int((int)(wxHeight)));
49906 }
49907 {
49908 PyDict_SetItemString(d,"Centre", SWIG_From_int((int)(wxCentre)));
49909 }
49910 {
49911 PyDict_SetItemString(d,"Center", SWIG_From_int((int)(wxCenter)));
49912 }
49913 {
49914 PyDict_SetItemString(d,"CentreX", SWIG_From_int((int)(wxCentreX)));
49915 }
49916 {
49917 PyDict_SetItemString(d,"CentreY", SWIG_From_int((int)(wxCentreY)));
49918 }
49919 {
49920 PyDict_SetItemString(d,"Unconstrained", SWIG_From_int((int)(wxUnconstrained)));
49921 }
49922 {
49923 PyDict_SetItemString(d,"AsIs", SWIG_From_int((int)(wxAsIs)));
49924 }
49925 {
49926 PyDict_SetItemString(d,"PercentOf", SWIG_From_int((int)(wxPercentOf)));
49927 }
49928 {
49929 PyDict_SetItemString(d,"Above", SWIG_From_int((int)(wxAbove)));
49930 }
49931 {
49932 PyDict_SetItemString(d,"Below", SWIG_From_int((int)(wxBelow)));
49933 }
49934 {
49935 PyDict_SetItemString(d,"LeftOf", SWIG_From_int((int)(wxLeftOf)));
49936 }
49937 {
49938 PyDict_SetItemString(d,"RightOf", SWIG_From_int((int)(wxRightOf)));
49939 }
49940 {
49941 PyDict_SetItemString(d,"SameAs", SWIG_From_int((int)(wxSameAs)));
49942 }
49943 {
49944 PyDict_SetItemString(d,"Absolute", SWIG_From_int((int)(wxAbsolute)));
49945 }
49946
49947 // Initialize threading, some globals and such
49948 __wxPyPreStart(d);
49949
49950
49951 // Although these are defined in __version__ they need to be here too so
49952 // that an assert can be done to ensure that the wxPython and the wxWindows
49953 // versions match.
49954 PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION ));
49955 PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION ));
49956 PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER ));
49957
49958 }
49959