]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_core_wrap.cpp
added missing button state
[wxWidgets.git] / wxPython / src / mac / _core_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
1bd55598 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
1bd55598 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 27};
d55e5bfc
RD
28#endif
29
1bd55598 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
1bd55598 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
1bd55598
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
36ed4f51 46#endif
d55e5bfc 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
1bd55598
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
1bd55598
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
1bd55598
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
1bd55598
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
1bd55598
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
d55e5bfc 127
1bd55598 128/* Python.h has to appear first */
36ed4f51 129#include <Python.h>
d55e5bfc 130
1bd55598 131/* -----------------------------------------------------------------------------
36ed4f51 132 * swigrun.swg
d55e5bfc 133 *
1bd55598
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
36ed4f51
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
36ed4f51
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
36ed4f51 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
36ed4f51 162#endif
32fe5131 163
36ed4f51 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
1bd55598
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
1bd55598 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
36ed4f51
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
1bd55598 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
36ed4f51
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
36ed4f51
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
36ed4f51 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
36ed4f51 400 }
32fe5131 401 return equiv;
36ed4f51
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
36ed4f51
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
36ed4f51 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51 439}
d55e5bfc 440
36ed4f51
RD
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
1bd55598 481 if (!type) return NULL;
36ed4f51
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
36ed4f51
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
36ed4f51
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
36ed4f51 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
1bd55598
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
36ed4f51 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
36ed4f51 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
36ed4f51
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
36ed4f51 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
36ed4f51
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
36ed4f51 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
1bd55598 622 register unsigned char uu;
36ed4f51
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
36ed4f51
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
682
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
1bd55598
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
36ed4f51 714
1bd55598
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
764#endif
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
d55e5bfc
RD
797#endif
798
1bd55598 799
36ed4f51 800/* -----------------------------------------------------------------------------
1bd55598 801 * error manipulation
36ed4f51
RD
802 * ----------------------------------------------------------------------------- */
803
1bd55598
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
36ed4f51 846
1bd55598
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
36ed4f51
RD
935#endif
936
1bd55598
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
36ed4f51 940
1bd55598
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
36ed4f51
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952/* Constant Types */
d55e5bfc
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
d55e5bfc
RD
956/* Constant information structure */
957typedef struct swig_const_info {
1bd55598
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
d55e5bfc
RD
964} swig_const_info;
965
36ed4f51 966#ifdef __cplusplus
1bd55598
RD
967#if 0
968{ /* cc-mode */
969#endif
36ed4f51
RD
970}
971#endif
972
973
1bd55598
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
36ed4f51
RD
978 * pyrun.swg
979 *
1bd55598
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
36ed4f51 983 *
1bd55598 984 * ----------------------------------------------------------------------------- */
36ed4f51 985
d55e5bfc 986/* Common SWIG API */
d55e5bfc 987
4f89b6b7
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
1bd55598
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
1bd55598
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
1bd55598
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
1bd55598
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
1bd55598
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
36ed4f51 1017
1bd55598 1018/* Runtime API */
36ed4f51 1019
1bd55598
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
1bd55598
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
36ed4f51 1030
1bd55598 1031/* Runtime API implementation */
36ed4f51 1032
1bd55598 1033/* Error manipulation */
36ed4f51 1034
1bd55598
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
36ed4f51
RD
1041}
1042
1bd55598
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
36ed4f51
RD
1048}
1049
1bd55598 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
1bd55598 1052/* Set a constant value */
36ed4f51 1053
1bd55598
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
36ed4f51
RD
1058}
1059
1bd55598 1060/* Append a value to the result obj */
36ed4f51 1061
1bd55598
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
36ed4f51 1088 } else {
1bd55598
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
36ed4f51 1100 }
1bd55598
RD
1101 return result;
1102#endif
36ed4f51
RD
1103}
1104
1bd55598 1105/* Unpack the argument tuple */
36ed4f51 1106
1bd55598
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
36ed4f51
RD
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
36ed4f51 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
1613#endif
1614 };
1615
1bd55598 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
36ed4f51 1618 if (!type_init) {
1bd55598
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
36ed4f51 1632#endif
1bd55598
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
36ed4f51 1651#if PY_VERSION_HEX >= 0x02020000
1bd55598
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
36ed4f51
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
1bd55598 1674 0, /* tp_del */
36ed4f51
RD
1675#endif
1676#ifdef COUNT_ALLOCS
1bd55598 1677 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1678#endif
1bd55598 1679 };
32fe5131 1680 pyswigobject_type = tmp;
1bd55598 1681 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51
RD
1682 type_init = 1;
1683 }
32fe5131 1684 return &pyswigobject_type;
36ed4f51
RD
1685}
1686
1687SWIGRUNTIME PyObject *
1bd55598 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1689{
1bd55598
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
1bd55598 1697 return (PyObject *)sobj;
36ed4f51
RD
1698}
1699
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1bd55598 1707 swig_type_info *ty;
36ed4f51
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
1bd55598 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
36ed4f51
RD
1713{
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1bd55598 1720 fputs(v->ty->name,fp);
36ed4f51
RD
1721 fputs(">", fp);
1722 return 0;
1723}
1724
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
1727{
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1bd55598 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1731 } else {
1bd55598 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51
RD
1733 }
1734}
1735
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1bd55598 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1742 } else {
1bd55598 1743 return PyString_FromString(v->ty->name);
36ed4f51
RD
1744 }
1745}
1746
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749{
1bd55598
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
d55e5bfc 1754}
36ed4f51 1755
1bd55598 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
36ed4f51
RD
1757
1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
1bd55598
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
d55e5bfc 1835#endif
36ed4f51 1836#if PY_VERSION_HEX >= 0x02030000
1bd55598 1837 0, /* tp_del */
36ed4f51
RD
1838#endif
1839#ifdef COUNT_ALLOCS
1bd55598 1840 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1841#endif
1bd55598 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
1bd55598 1844 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
36ed4f51
RD
1848}
1849
1850SWIGRUNTIME PyObject *
1bd55598 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
36ed4f51 1852{
1bd55598
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
36ed4f51 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1bd55598
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
36ed4f51 1865 }
1bd55598 1866 return (PyObject *) sobj;
36ed4f51
RD
1867}
1868
1bd55598 1869SWIGRUNTIME swig_type_info *
36ed4f51
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
1bd55598
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
36ed4f51
RD
1880}
1881
36ed4f51 1882/* -----------------------------------------------------------------------------
1bd55598 1883 * pointers/data manipulation
36ed4f51
RD
1884 * ----------------------------------------------------------------------------- */
1885
1bd55598
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
36ed4f51 1891
1bd55598
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
36ed4f51 1898
1bd55598 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1900
1bd55598
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1903{
1bd55598
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
36ed4f51 1926 } else {
1bd55598
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
36ed4f51 1929 }
36ed4f51 1930 }
1bd55598
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
36ed4f51
RD
1947 }
1948}
1949
1bd55598
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
36ed4f51 1961 }
1bd55598 1962 return 0;
36ed4f51
RD
1963}
1964
1bd55598
RD
1965/* Convert a pointer value */
1966
36ed4f51 1967SWIGRUNTIME int
1bd55598
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
36ed4f51 1992 } else {
1bd55598
RD
1993 if (ptr) *ptr = vptr;
1994 break;
36ed4f51 1995 }
36ed4f51 1996 }
1bd55598
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
36ed4f51
RD
2042 }
2043}
2044
1bd55598
RD
2045/* Convert a function ptr value */
2046
36ed4f51 2047SWIGRUNTIME int
1bd55598
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
36ed4f51 2051 } else {
1bd55598
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
4f89b6b7 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1bd55598
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
36ed4f51
RD
2069 }
2070}
2071
1bd55598 2072/* Convert a packed value value */
36ed4f51 2073
36ed4f51 2074SWIGRUNTIME int
1bd55598
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
36ed4f51 2084 }
1bd55598
RD
2085 return SWIG_OK;
2086}
36ed4f51 2087
1bd55598
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
36ed4f51 2091
1bd55598
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
36ed4f51 2096
1bd55598
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
36ed4f51 2115 }
1bd55598
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
36ed4f51 2120 }
1bd55598
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
36ed4f51 2126 }
1bd55598
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
36ed4f51 2140 }
1bd55598
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
36ed4f51 2147 }
1bd55598
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
36ed4f51
RD
2158}
2159
1bd55598
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
36ed4f51 2175#endif
1bd55598
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
36ed4f51 2180
1bd55598
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
36ed4f51 2191 } else {
1bd55598 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2193 }
1bd55598 2194 return SWIG_Py_Void();
36ed4f51 2195 }
1bd55598
RD
2196}
2197
2198/* Create a new pointer object */
36ed4f51 2199
36ed4f51 2200SWIGRUNTIME PyObject *
1bd55598 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2202 if (!ptr) {
1bd55598
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
36ed4f51 2213 }
36ed4f51 2214 }
1bd55598 2215 return robj;
36ed4f51 2216 }
36ed4f51
RD
2217}
2218
1bd55598
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
36ed4f51 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
36ed4f51
RD
2224}
2225
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
36ed4f51
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241#else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
36ed4f51 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
36ed4f51
RD
2251}
2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
1bd55598 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
1bd55598 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
1bd55598 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
1bd55598 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
1bd55598 2281 return SWIG_OK;
36ed4f51 2282}
32fe5131 2283#endif
36ed4f51 2284
1bd55598
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
1bd55598 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1bd55598
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
36ed4f51 2314
1bd55598
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
36ed4f51 2320}
1bd55598
RD
2321
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
d55e5bfc 2465
32fe5131
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_form_ops_t swig_types[2]
2469#define SWIGTYPE_p_int swig_types[3]
2470#define SWIGTYPE_p_long swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
2474#define SWIGTYPE_p_wxANIHandler swig_types[8]
2475#define SWIGTYPE_p_wxAcceleratorEntry swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxAppTraits swig_types[12]
2479#define SWIGTYPE_p_wxArrayString swig_types[13]
2480#define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481#define SWIGTYPE_p_wxBitmap swig_types[15]
2482#define SWIGTYPE_p_wxBoxSizer swig_types[16]
2483#define SWIGTYPE_p_wxButton swig_types[17]
2484#define SWIGTYPE_p_wxCURHandler swig_types[18]
2485#define SWIGTYPE_p_wxCaret swig_types[19]
2486#define SWIGTYPE_p_wxChildFocusEvent swig_types[20]
2131d850
RD
2487#define SWIGTYPE_p_wxClipboardTextEvent swig_types[21]
2488#define SWIGTYPE_p_wxCloseEvent swig_types[22]
2489#define SWIGTYPE_p_wxColour swig_types[23]
2490#define SWIGTYPE_p_wxCommandEvent swig_types[24]
2491#define SWIGTYPE_p_wxContextMenuEvent swig_types[25]
2492#define SWIGTYPE_p_wxControl swig_types[26]
2493#define SWIGTYPE_p_wxControlWithItems swig_types[27]
2494#define SWIGTYPE_p_wxCursor swig_types[28]
2495#define SWIGTYPE_p_wxDC swig_types[29]
2496#define SWIGTYPE_p_wxDateEvent swig_types[30]
2497#define SWIGTYPE_p_wxDateTime swig_types[31]
2498#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[32]
70d7cb34
RD
2499#define SWIGTYPE_p_wxDouble swig_types[33]
2500#define SWIGTYPE_p_wxDropFilesEvent swig_types[34]
2501#define SWIGTYPE_p_wxDuplexMode swig_types[35]
2502#define SWIGTYPE_p_wxEraseEvent swig_types[36]
2503#define SWIGTYPE_p_wxEvent swig_types[37]
2504#define SWIGTYPE_p_wxEventLoop swig_types[38]
2505#define SWIGTYPE_p_wxEventLoopActivator swig_types[39]
2506#define SWIGTYPE_p_wxEvtHandler swig_types[40]
2507#define SWIGTYPE_p_wxFSFile swig_types[41]
2508#define SWIGTYPE_p_wxFileSystem swig_types[42]
2509#define SWIGTYPE_p_wxFileSystemHandler swig_types[43]
2510#define SWIGTYPE_p_wxFlexGridSizer swig_types[44]
2511#define SWIGTYPE_p_wxFocusEvent swig_types[45]
2512#define SWIGTYPE_p_wxFont swig_types[46]
2513#define SWIGTYPE_p_wxFrame swig_types[47]
2514#define SWIGTYPE_p_wxGBPosition swig_types[48]
2515#define SWIGTYPE_p_wxGBSizerItem swig_types[49]
2516#define SWIGTYPE_p_wxGBSpan swig_types[50]
2517#define SWIGTYPE_p_wxGIFHandler swig_types[51]
2518#define SWIGTYPE_p_wxGridBagSizer swig_types[52]
2519#define SWIGTYPE_p_wxGridSizer swig_types[53]
2520#define SWIGTYPE_p_wxHelpEvent__Origin swig_types[54]
2521#define SWIGTYPE_p_wxICOHandler swig_types[55]
2522#define SWIGTYPE_p_wxIconizeEvent swig_types[56]
2523#define SWIGTYPE_p_wxIdleEvent swig_types[57]
2524#define SWIGTYPE_p_wxImage swig_types[58]
2525#define SWIGTYPE_p_wxImageHandler swig_types[59]
2526#define SWIGTYPE_p_wxImageHistogram swig_types[60]
2527#define SWIGTYPE_p_wxImage_HSVValue swig_types[61]
2528#define SWIGTYPE_p_wxImage_RGBValue swig_types[62]
2529#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[63]
2530#define SWIGTYPE_p_wxInitDialogEvent swig_types[64]
2531#define SWIGTYPE_p_wxInputStream swig_types[65]
2532#define SWIGTYPE_p_wxInternetFSHandler swig_types[66]
2533#define SWIGTYPE_p_wxItemContainer swig_types[67]
2534#define SWIGTYPE_p_wxJPEGHandler swig_types[68]
2535#define SWIGTYPE_p_wxKeyEvent swig_types[69]
2536#define SWIGTYPE_p_wxLayoutConstraints swig_types[70]
2537#define SWIGTYPE_p_wxMaximizeEvent swig_types[71]
2538#define SWIGTYPE_p_wxMemoryFSHandler swig_types[72]
2539#define SWIGTYPE_p_wxMenu swig_types[73]
2540#define SWIGTYPE_p_wxMenuBar swig_types[74]
2541#define SWIGTYPE_p_wxMenuBarBase swig_types[75]
2542#define SWIGTYPE_p_wxMenuEvent swig_types[76]
2543#define SWIGTYPE_p_wxMenuItem swig_types[77]
2544#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[78]
2545#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[79]
2546#define SWIGTYPE_p_wxMouseEvent swig_types[80]
2547#define SWIGTYPE_p_wxMoveEvent swig_types[81]
2548#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[82]
2549#define SWIGTYPE_p_wxNcPaintEvent swig_types[83]
2550#define SWIGTYPE_p_wxNotifyEvent swig_types[84]
2551#define SWIGTYPE_p_wxObject swig_types[85]
2552#define SWIGTYPE_p_wxOutputStream swig_types[86]
2553#define SWIGTYPE_p_wxPCXHandler swig_types[87]
2554#define SWIGTYPE_p_wxPNGHandler swig_types[88]
2555#define SWIGTYPE_p_wxPNMHandler swig_types[89]
2556#define SWIGTYPE_p_wxPaintEvent swig_types[90]
2557#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[91]
2558#define SWIGTYPE_p_wxPaperSize swig_types[92]
2559#define SWIGTYPE_p_wxPoint swig_types[93]
2560#define SWIGTYPE_p_wxPoint2D swig_types[94]
2561#define SWIGTYPE_p_wxPropagateOnce swig_types[95]
2562#define SWIGTYPE_p_wxPropagationDisabler swig_types[96]
2563#define SWIGTYPE_p_wxPyApp swig_types[97]
2564#define SWIGTYPE_p_wxPyCommandEvent swig_types[98]
2565#define SWIGTYPE_p_wxPyDropTarget swig_types[99]
2566#define SWIGTYPE_p_wxPyEvent swig_types[100]
2567#define SWIGTYPE_p_wxPyFileSystemHandler swig_types[101]
2568#define SWIGTYPE_p_wxPyImageHandler swig_types[102]
2569#define SWIGTYPE_p_wxPyInputStream swig_types[103]
2570#define SWIGTYPE_p_wxPySizer swig_types[104]
2571#define SWIGTYPE_p_wxPyValidator swig_types[105]
2572#define SWIGTYPE_p_wxQuantize swig_types[106]
2573#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[107]
2574#define SWIGTYPE_p_wxRealPoint swig_types[108]
2575#define SWIGTYPE_p_wxRect swig_types[109]
2576#define SWIGTYPE_p_wxRect2D swig_types[110]
2577#define SWIGTYPE_p_wxRegion swig_types[111]
2578#define SWIGTYPE_p_wxScrollEvent swig_types[112]
2579#define SWIGTYPE_p_wxScrollWinEvent swig_types[113]
2580#define SWIGTYPE_p_wxSetCursorEvent swig_types[114]
2581#define SWIGTYPE_p_wxShowEvent swig_types[115]
2582#define SWIGTYPE_p_wxSize swig_types[116]
2583#define SWIGTYPE_p_wxSizeEvent swig_types[117]
2584#define SWIGTYPE_p_wxSizer swig_types[118]
2585#define SWIGTYPE_p_wxSizerItem swig_types[119]
2586#define SWIGTYPE_p_wxStaticBox swig_types[120]
2587#define SWIGTYPE_p_wxStaticBoxSizer swig_types[121]
2588#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[122]
2589#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[123]
580080c5
RD
2590#define SWIGTYPE_p_wxTGAHandler swig_types[124]
2591#define SWIGTYPE_p_wxTIFFHandler swig_types[125]
2592#define SWIGTYPE_p_wxToolTip swig_types[126]
2593#define SWIGTYPE_p_wxUpdateUIEvent swig_types[127]
2594#define SWIGTYPE_p_wxValidator swig_types[128]
2595#define SWIGTYPE_p_wxVisualAttributes swig_types[129]
2596#define SWIGTYPE_p_wxWindow swig_types[130]
2597#define SWIGTYPE_p_wxWindowCreateEvent swig_types[131]
2598#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[132]
2599#define SWIGTYPE_p_wxXPMHandler swig_types[133]
2600#define SWIGTYPE_p_wxZipFSHandler swig_types[134]
2601static swig_type_info *swig_types[136];
2602static swig_module_info swig_module = {swig_types, 135, 0, 0, 0, 0};
32fe5131
RD
2603#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2604#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc
RD
2605
2606/* -------- TYPES TABLE (END) -------- */
2607
1bd55598
RD
2608#if (PY_VERSION_HEX <= 0x02000000)
2609# if !defined(SWIG_PYTHON_CLASSIC)
2610# error "This python version requires to use swig with the '-classic' option"
2611# endif
2612#endif
2613#if (PY_VERSION_HEX <= 0x02020000)
2614# error "This python version requires to use swig with the '-nomodern' option"
2615#endif
2616#if (PY_VERSION_HEX <= 0x02020000)
2617# error "This python version requires to use swig with the '-nomodernargs' option"
2618#endif
2619#ifndef METH_O
2620# error "This python version requires to use swig with the '-nofastunpack' option"
2621#endif
d55e5bfc
RD
2622
2623/*-----------------------------------------------
5b5c9bc7 2624 @(target):= _core_.so
d55e5bfc 2625 ------------------------------------------------*/
5b5c9bc7 2626#define SWIG_init init_core_
d55e5bfc 2627
5b5c9bc7 2628#define SWIG_name "_core_"
d55e5bfc 2629
1bd55598
RD
2630#define SWIGVERSION 0x010329
2631
2632
2633#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2634#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2635
2636
2637#include <stdexcept>
2638
2639
2640namespace swig {
2641 class PyObject_ptr {
2642 protected:
2643 PyObject *_obj;
2644
2645 public:
2646 PyObject_ptr() :_obj(0)
2647 {
2648 }
2649
2650 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2651 {
2652 Py_XINCREF(_obj);
2653 }
2654
2655 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2656 {
2657 if (initial_ref) Py_XINCREF(_obj);
2658 }
2659
2660 PyObject_ptr & operator=(const PyObject_ptr& item)
2661 {
2662 Py_XINCREF(item._obj);
2663 Py_XDECREF(_obj);
2664 _obj = item._obj;
2665 return *this;
2666 }
2667
2668 ~PyObject_ptr()
2669 {
2670 Py_XDECREF(_obj);
2671 }
2672
2673 operator PyObject *() const
2674 {
2675 return _obj;
2676 }
2677
2678 PyObject *operator->() const
2679 {
2680 return _obj;
2681 }
2682 };
2683}
2684
2685
2686namespace swig {
2687 struct PyObject_var : PyObject_ptr {
2688 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2689
2690 PyObject_var & operator = (PyObject* obj)
2691 {
2692 Py_XDECREF(_obj);
2693 _obj = obj;
2694 return *this;
2695 }
2696 };
2697}
2698
2699
d55e5bfc
RD
2700#include "wx/wxPython/wxPython_int.h"
2701#include "wx/wxPython/pyclasses.h"
2131d850 2702#include "wx/wxPython/twoitem.h"
d55e5bfc
RD
2703
2704
2705#ifndef wxPyUSE_EXPORT
2706// Helper functions for dealing with SWIG objects and such. These are
2707// located here so they know about the SWIG types and functions declared
2708// in the wrapper code.
2709
2710#include <wx/hashmap.h>
b1fcee84 2711WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap );
d55e5bfc
RD
2712
2713
2714// Maintains a hashmap of className to swig_type_info pointers. Given the
2715// name of a class either looks up the type info in the cache, or scans the
2716// SWIG tables for it.
2717extern PyObject* wxPyPtrTypeMap;
2718static
2719swig_type_info* wxPyFindSwigType(const wxChar* className) {
2720
2721 static wxPyTypeInfoHashMap* typeInfoCache = NULL;
2722
2723 if (typeInfoCache == NULL)
2724 typeInfoCache = new wxPyTypeInfoHashMap;
2725
2726 wxString name(className);
2727 swig_type_info* swigType = (*typeInfoCache)[name];
2728
2729 if (! swigType) {
2730 // it wasn't in the cache, so look it up from SWIG
2731 name.Append(wxT(" *"));
36ed4f51 2732 swigType = SWIG_TypeQuery(name.mb_str());
d55e5bfc
RD
2733
2734 // if it still wasn't found, try looking for a mapped name
2735 if (!swigType) {
2736 PyObject* item;
2737 name = className;
2738
2739 if ((item = PyDict_GetItemString(wxPyPtrTypeMap,
2740 (char*)(const char*)name.mbc_str())) != NULL) {
2741 name = wxString(PyString_AsString(item), *wxConvCurrent);
2742 name.Append(wxT(" *"));
36ed4f51 2743 swigType = SWIG_TypeQuery(name.mb_str());
d55e5bfc
RD
2744 }
2745 }
2746 if (swigType) {
2747 // and add it to the map if found
2748 (*typeInfoCache)[className] = swigType;
2749 }
2750 }
2751 return swigType;
2752}
2753
2754
2755// Check if a class name is a type known to SWIG
2756bool wxPyCheckSwigType(const wxChar* className) {
2757
2758 swig_type_info* swigType = wxPyFindSwigType(className);
2759 return swigType != NULL;
2760}
2761
2762
2763// Given a pointer to a C++ object and a class name, construct a Python proxy
2764// object for it.
2765PyObject* wxPyConstructObject(void* ptr,
2766 const wxChar* className,
2767 int setThisOwn) {
2768
2769 swig_type_info* swigType = wxPyFindSwigType(className);
2770 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject"));
2771
2772 return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn);
2773}
2774
2775
2776// Extract a pointer to the wrapped C++ object from a Python proxy object.
2777// Ensures that the proxy object is of the specified (or derived) type. If
2778// not able to perform the conversion then a Python exception is set and the
2779// error should be handled properly in the caller. Returns True on success.
2780bool wxPyConvertSwigPtr(PyObject* obj, void **ptr,
2781 const wxChar* className) {
2782
2783 swig_type_info* swigType = wxPyFindSwigType(className);
b411df4a 2784 wxCHECK_MSG(swigType != NULL, false, wxT("Unknown type in wxPyConvertSwigPtr"));
d55e5bfc
RD
2785
2786 return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1;
2787}
2788
2789
b1fcee84 2790
d55e5bfc
RD
2791// Make a SWIGified pointer object suitable for a .this attribute
2792PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) {
2793
2794 PyObject* robj = NULL;
2795
2796 swig_type_info* swigType = wxPyFindSwigType(className);
7e08d4ef 2797 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyMakeSwigPtr"));
d55e5bfc 2798
1bd55598 2799 robj = PySwigObject_New(ptr, swigType, 0);
d55e5bfc
RD
2800 return robj;
2801}
2802
b1fcee84 2803
943e8dfd
RD
2804// Python's PyInstance_Check does not return True for instances of new-style
2805// classes. This should get close enough for both new and old classes but I
2806// should re-evaluate the need for doing instance checks...
2807bool wxPyInstance_Check(PyObject* obj) {
2808 return PyObject_HasAttrString(obj, "__class__") != 0;
2809}
2810
2811
943e8dfd
RD
2812// This one checks if the object is an instance of a SWIG proxy class (it has
2813// a .this attribute, and the .this attribute is a PySwigObject.)
2814bool wxPySwigInstance_Check(PyObject* obj) {
2815 static PyObject* this_str = NULL;
2816 if (this_str == NULL)
2817 this_str = PyString_FromString("this");
2818
2819 PyObject* this_attr = PyObject_GetAttr(obj, this_str);
2820 if (this_attr) {
2821 bool retval = (PySwigObject_Check(this_attr) != 0);
2822 Py_DECREF(this_attr);
2823 return retval;
2824 }
2825
2826 PyErr_Clear();
2827 return false;
2828}
d55e5bfc
RD
2829
2830
2831// Export a C API in a struct. Other modules will be able to load this from
2832// the wx._core_ module and will then have safe access to these functions,
2833// even if they are located in another shared library.
2834static wxPyCoreAPI API = {
2835
d55e5bfc
RD
2836 wxPyCheckSwigType,
2837 wxPyConstructObject,
2838 wxPyConvertSwigPtr,
2839 wxPyMakeSwigPtr,
2840
2841 wxPyBeginAllowThreads,
2842 wxPyEndAllowThreads,
2843 wxPyBeginBlockThreads,
2844 wxPyEndBlockThreads,
2845
2846 wxPy_ConvertList,
2847
2848 wxString_in_helper,
2849 Py2wxString,
2850 wx2PyString,
2851
2852 byte_LIST_helper,
2853 int_LIST_helper,
2854 long_LIST_helper,
2855 string_LIST_helper,
2856 wxPoint_LIST_helper,
2857 wxBitmap_LIST_helper,
2858 wxString_LIST_helper,
2859 wxAcceleratorEntry_LIST_helper,
2860
2861 wxSize_helper,
2862 wxPoint_helper,
2863 wxRealPoint_helper,
2864 wxRect_helper,
2865 wxColour_helper,
2866 wxPoint2D_helper,
2867
2868 wxPySimple_typecheck,
2869 wxColour_typecheck,
2870
2871 wxPyCBH_setCallbackInfo,
2872 wxPyCBH_findCallback,
2873 wxPyCBH_callCallback,
2874 wxPyCBH_callCallbackObj,
2875 wxPyCBH_delete,
2876
2877 wxPyMake_wxObject,
2878 wxPyMake_wxSizer,
2879 wxPyPtrTypeMap_Add,
2880 wxPy2int_seq_helper,
2881 wxPy4int_seq_helper,
2882 wxArrayString2PyList_helper,
2883 wxArrayInt2PyList_helper,
2884
2885 wxPyClientData_dtor,
2886 wxPyUserData_dtor,
2887 wxPyOORClientData_dtor,
2888
2889 wxPyCBInputStream_create,
e2950dbb
RD
2890 wxPyCBInputStream_copy,
2891
d55e5bfc 2892 wxPyInstance_Check,
0439c23b
RD
2893 wxPySwigInstance_Check,
2894
b39fe951 2895 wxPyCheckForApp,
d55e5bfc 2896
b39fe951 2897 wxArrayDouble2PyList_helper,
70d7cb34
RD
2898 wxPoint2D_LIST_helper,
2899 wxRect2D_helper,
2900
d55e5bfc
RD
2901};
2902
2903#endif
2904
2905
fef4c27a
RD
2906#if !WXWIN_COMPATIBILITY_2_4
2907 #define wxHIDE_READONLY 0
2908#endif
2909
2910
1bd55598
RD
2911 #define SWIG_From_long PyInt_FromLong
2912
2913
2914SWIGINTERNINLINE PyObject *
2915SWIG_From_int (int value)
2916{
2917 return SWIG_From_long (value);
2918}
36ed4f51 2919
d55e5bfc 2920 static const wxString wxPyEmptyString(wxEmptyString);
1bd55598 2921SWIGINTERN wxString wxObject_GetClassName(wxObject *self){
d55e5bfc
RD
2922 return self->GetClassInfo()->GetClassName();
2923 }
1bd55598 2924SWIGINTERN void wxObject_Destroy(wxObject *self){
d55e5bfc
RD
2925 delete self;
2926 }
2927
2928#ifndef __WXMAC__
2929#define wxCURSOR_COPY_ARROW wxCURSOR_ARROW
2930#endif
2931
2932
2933#include <limits.h>
1bd55598
RD
2934#ifndef LLONG_MIN
2935# define LLONG_MIN LONG_LONG_MIN
2936#endif
2937#ifndef LLONG_MAX
2938# define LLONG_MAX LONG_LONG_MAX
2939#endif
2940#ifndef ULLONG_MAX
2941# define ULLONG_MAX ULONG_LONG_MAX
2942#endif
d55e5bfc
RD
2943
2944
36ed4f51 2945SWIGINTERN int
1bd55598 2946SWIG_AsVal_long (PyObject* obj, long* val)
d55e5bfc 2947{
c370783e
RD
2948 if (PyNumber_Check(obj)) {
2949 if (val) *val = PyInt_AsLong(obj);
1bd55598 2950 return SWIG_OK;
c370783e 2951 }
1bd55598 2952 return SWIG_TypeError;
d55e5bfc
RD
2953}
2954
2955
36ed4f51 2956SWIGINTERN int
1bd55598
RD
2957SWIG_AsVal_int (PyObject * obj, int *val)
2958{
c370783e 2959 long v;
1bd55598
RD
2960 int res = SWIG_AsVal_long (obj, &v);
2961 if (SWIG_IsOK(res)) {
2962 if ((v < INT_MIN || v > INT_MAX)) {
2963 return SWIG_OverflowError;
c370783e 2964 } else {
1bd55598 2965 if (val) *val = static_cast< int >(v);
c370783e 2966 }
1bd55598
RD
2967 }
2968 return res;
d55e5bfc
RD
2969}
2970
e9d6f3a4
RD
2971SWIGINTERN bool wxSize___eq__(wxSize *self,PyObject *other){
2972 wxSize temp, *obj = &temp;
2973 if ( other == Py_None ) return false;
2974 if ( ! wxSize_helper(other, &obj) ) {
2975 PyErr_Clear();
2976 return false;
2977 }
2978 return self->operator==(*obj);
2979 }
2980SWIGINTERN bool wxSize___ne__(wxSize *self,PyObject *other){
2981 wxSize temp, *obj = &temp;
2982 if ( other == Py_None ) return true;
2983 if ( ! wxSize_helper(other, &obj)) {
2984 PyErr_Clear();
2985 return true;
2986 }
2987 return self->operator!=(*obj);
2988 }
1eeb270e
RD
2989
2990#include <float.h>
2991
d55e5bfc 2992
36ed4f51 2993SWIGINTERN int
1bd55598 2994SWIG_AsVal_double (PyObject *obj, double* val)
d55e5bfc 2995{
c370783e
RD
2996 if (PyNumber_Check(obj)) {
2997 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 2998 return SWIG_OK;
c370783e 2999 }
1bd55598 3000 return SWIG_TypeError;
d55e5bfc
RD
3001}
3002
36ed4f51 3003
1eeb270e
RD
3004SWIGINTERN int
3005SWIG_AsVal_float (PyObject * obj, float *val)
3006{
3007 double v;
3008 int res = SWIG_AsVal_double (obj, &v);
3009 if (SWIG_IsOK(res)) {
3010 if ((v < -FLT_MAX || v > FLT_MAX)) {
3011 return SWIG_OverflowError;
3012 } else {
3013 if (val) *val = static_cast< float >(v);
3014 }
3015 }
3016 return res;
3017}
3018
3019SWIGINTERN PyObject *wxSize_Get(wxSize *self){
70d7cb34 3020 //wxPyBlock_t blocked = wxPyBeginBlockThreads();
1eeb270e
RD
3021 PyObject* tup = PyTuple_New(2);
3022 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
3023 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
70d7cb34 3024 //wxPyEndBlockThreads(blocked);
1eeb270e
RD
3025 return tup;
3026 }
3027
1bd55598 3028 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3029
e9d6f3a4
RD
3030SWIGINTERN bool wxRealPoint___eq__(wxRealPoint *self,PyObject *other){
3031 wxRealPoint temp, *obj = &temp;
3032 if ( other == Py_None ) return false;
3033 if ( ! wxRealPoint_helper(other, &obj) ) {
3034 PyErr_Clear();
3035 return false;
3036 }
3037 return self->operator==(*obj);
3038 }
3039SWIGINTERN bool wxRealPoint___ne__(wxRealPoint *self,PyObject *other){
3040 wxRealPoint temp, *obj = &temp;
3041 if ( other == Py_None ) return true;
3042 if ( ! wxRealPoint_helper(other, &obj)) {
3043 PyErr_Clear();
3044 return true;
3045 }
3046 return self->operator!=(*obj);
3047 }
1bd55598 3048SWIGINTERN void wxRealPoint_Set(wxRealPoint *self,double x,double y){
d55e5bfc
RD
3049 self->x = x;
3050 self->y = y;
3051 }
1bd55598 3052SWIGINTERN PyObject *wxRealPoint_Get(wxRealPoint *self){
70d7cb34 3053 //wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3054 PyObject* tup = PyTuple_New(2);
3055 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x));
3056 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y));
70d7cb34 3057 //PyEndBlockThreads(blocked);
d55e5bfc
RD
3058 return tup;
3059 }
e9d6f3a4
RD
3060SWIGINTERN bool wxPoint___eq__(wxPoint *self,PyObject *other){
3061 wxPoint temp, *obj = &temp;
3062 if ( other == Py_None ) return false;
3063 if ( ! wxPoint_helper(other, &obj) ) {
3064 PyErr_Clear();
3065 return false;
3066 }
3067 return self->operator==(*obj);
3068 }
3069SWIGINTERN bool wxPoint___ne__(wxPoint *self,PyObject *other){
3070 wxPoint temp, *obj = &temp;
3071 if ( other == Py_None ) return true;
3072 if ( ! wxPoint_helper(other, &obj)) {
3073 PyErr_Clear();
3074 return true;
3075 }
3076 return self->operator!=(*obj);
3077 }
1bd55598 3078SWIGINTERN void wxPoint_Set(wxPoint *self,long x,long y){
d55e5bfc
RD
3079 self->x = x;
3080 self->y = y;
3081 }
1bd55598 3082SWIGINTERN PyObject *wxPoint_Get(wxPoint *self){
70d7cb34 3083 //wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3084 PyObject* tup = PyTuple_New(2);
3085 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
3086 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
70d7cb34 3087 //wxPyEndBlockThreads(blocked);
d55e5bfc
RD
3088 return tup;
3089 }
e9d6f3a4
RD
3090SWIGINTERN bool wxRect___eq__(wxRect *self,PyObject *other){
3091 wxRect temp, *obj = &temp;
3092 if ( other == Py_None ) return false;
3093 if ( ! wxRect_helper(other, &obj) ) {
3094 PyErr_Clear();
3095 return false;
3096 }
3097 return self->operator==(*obj);
3098 }
3099SWIGINTERN bool wxRect___ne__(wxRect *self,PyObject *other){
3100 wxRect temp, *obj = &temp;
3101 if ( other == Py_None ) return true;
3102 if ( ! wxRect_helper(other, &obj)) {
3103 PyErr_Clear();
3104 return true;
3105 }
3106 return self->operator!=(*obj);
3107 }
1bd55598 3108SWIGINTERN void wxRect_Set(wxRect *self,int x=0,int y=0,int width=0,int height=0){
d55e5bfc
RD
3109 self->x = x;
3110 self->y = y;
3111 self->width = width;
3112 self->height = height;
3113 }
1bd55598 3114SWIGINTERN PyObject *wxRect_Get(wxRect *self){
70d7cb34 3115 //wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3116 PyObject* tup = PyTuple_New(4);
3117 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
3118 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
3119 PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width));
3120 PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height));
70d7cb34 3121 //wxPyEndBlockThreads(blocked);
d55e5bfc
RD
3122 return tup;
3123 }
3124
3125 PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) {
3126 wxRegion reg1(*r1);
3127 wxRegion reg2(*r2);
3128 wxRect dest(0,0,0,0);
3129 PyObject* obj;
3130
3131 reg1.Intersect(reg2);
3132 dest = reg1.GetBox();
3133
3134 if (dest != wxRect(0,0,0,0)) {
70d7cb34 3135 //wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3136 wxRect* newRect = new wxRect(dest);
b411df4a 3137 obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), true);
70d7cb34 3138 //wxPyEndBlockThreads(blocked);
d55e5bfc
RD
3139 return obj;
3140 }
3141 Py_INCREF(Py_None);
3142 return Py_None;
3143 }
3144
e9d6f3a4
RD
3145SWIGINTERN bool wxPoint2D___eq__(wxPoint2D *self,PyObject *other){
3146 wxPoint2D temp, *obj = &temp;
3147 if ( other == Py_None ) return false;
3148 if ( ! wxPoint2D_helper(other, &obj) ) {
3149 PyErr_Clear();
3150 return false;
3151 }
3152 return self->operator==(*obj);
3153 }
3154SWIGINTERN bool wxPoint2D___ne__(wxPoint2D *self,PyObject *other){
3155 wxPoint2D temp, *obj = &temp;
3156 if ( other == Py_None ) return true;
3157 if ( ! wxPoint2D_helper(other, &obj)) {
3158 PyErr_Clear();
3159 return true;
3160 }
3161 return self->operator!=(*obj);
3162 }
1bd55598 3163SWIGINTERN void wxPoint2D_Set(wxPoint2D *self,double x=0,double y=0){
d55e5bfc
RD
3164 self->m_x = x;
3165 self->m_y = y;
3166 }
1bd55598 3167SWIGINTERN PyObject *wxPoint2D_Get(wxPoint2D *self){
70d7cb34 3168 //wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3169 PyObject* tup = PyTuple_New(2);
3170 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
3171 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
70d7cb34
RD
3172 //wxPyEndBlockThreads(blocked);
3173 return tup;
3174 }
3175SWIGINTERN bool wxRect2D___eq__(wxRect2D *self,PyObject *other){
3176 wxRect2D temp, *obj = &temp;
3177 if ( other == Py_None ) return false;
3178 if ( ! wxRect2D_helper(other, &obj) ) {
3179 PyErr_Clear();
3180 return false;
3181 }
3182 return self->operator==(*obj);
3183 }
3184SWIGINTERN bool wxRect2D___ne__(wxRect2D *self,PyObject *other){
3185 wxRect2D temp, *obj = &temp;
3186 if ( other == Py_None ) return true;
3187 if ( ! wxRect2D_helper(other, &obj)) {
3188 PyErr_Clear();
3189 return true;
3190 }
3191 return self->operator!=(*obj);
3192 }
3193SWIGINTERN void wxRect2D_Set(wxRect2D *self,wxDouble x=0,wxDouble y=0,wxDouble width=0,wxDouble height=0){
3194 self->m_x = x;
3195 self->m_y = y;
3196 self->m_width = width;
3197 self->m_height = height;
3198 }
3199SWIGINTERN PyObject *wxRect2D_Get(wxRect2D *self){
3200 //wxPyBlock_t blocked = wxPyBeginBlockThreads();
3201 PyObject* tup = PyTuple_New(4);
3202 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
3203 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
3204 PyTuple_SET_ITEM(tup, 2, PyFloat_FromDouble(self->m_width));
3205 PyTuple_SET_ITEM(tup, 3, PyFloat_FromDouble(self->m_height));
3206 //wxPyEndBlockThreads(blocked);
d55e5bfc
RD
3207 return tup;
3208 }
3209
3210#include "wx/wxPython/pyistream.h"
3211
1bd55598 3212SWIGINTERN wxPyInputStream *new_wxPyInputStream(PyObject *p){
d55e5bfc
RD
3213 wxInputStream* wxis = wxPyCBInputStream::create(p);
3214 if (wxis)
3215 return new wxPyInputStream(wxis);
3216 else
3217 return NULL;
3218 }
3219
1bd55598
RD
3220SWIGINTERN swig_type_info*
3221SWIG_pchar_descriptor()
3222{
3223 static int init = 0;
3224 static swig_type_info* info = 0;
3225 if (!init) {
3226 info = SWIG_TypeQuery("_p_char");
3227 init = 1;
3228 }
3229 return info;
d55e5bfc
RD
3230}
3231
3232
1bd55598
RD
3233SWIGINTERNINLINE PyObject *
3234SWIG_FromCharPtrAndSize(const char* carray, size_t size)
d55e5bfc 3235{
1bd55598
RD
3236 if (carray) {
3237 if (size > INT_MAX) {
3238 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3239 return pchar_descriptor ?
3240 SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
3241 } else {
3242 return PyString_FromStringAndSize(carray, static_cast< int >(size));
3243 }
3244 } else {
3245 return SWIG_Py_Void();
3246 }
d55e5bfc
RD
3247}
3248
3249
1bd55598
RD
3250SWIGINTERNINLINE PyObject *
3251SWIG_From_char (char c)
3252{
3253 return SWIG_FromCharPtrAndSize(&c,1);
3254}
3255
3256
3257SWIGINTERNINLINE PyObject*
3258SWIG_From_unsigned_SS_long (unsigned long value)
3259{
3260 return (value > LONG_MAX) ?
3261 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
3262}
3263
3264
3265SWIGINTERNINLINE PyObject *
3266SWIG_From_size_t (size_t value)
3267{
3268 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3269}
3270
3271
3272SWIGINTERN int
3273SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3274{
3275 if (PyString_Check(obj)) {
4f89b6b7 3276 char *cstr; Py_ssize_t len;
1bd55598
RD
3277 PyString_AsStringAndSize(obj, &cstr, &len);
3278 if (cptr) {
3279 if (alloc) {
3280 /*
3281 In python the user should not be able to modify the inner
3282 string representation. To warranty that, if you define
3283 SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
3284 buffer is always returned.
3285
3286 The default behavior is just to return the pointer value,
3287 so, be careful.
3288 */
3289#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
3290 if (*alloc != SWIG_OLDOBJ)
3291#else
3292 if (*alloc == SWIG_NEWOBJ)
3293#endif
3294 {
3295 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
3296 *alloc = SWIG_NEWOBJ;
3297 }
3298 else {
3299 *cptr = cstr;
3300 *alloc = SWIG_OLDOBJ;
c370783e 3301 }
1bd55598
RD
3302 } else {
3303 *cptr = PyString_AsString(obj);
3304 }
3305 }
3306 if (psize) *psize = len + 1;
3307 return SWIG_OK;
3308 } else {
3309 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3310 if (pchar_descriptor) {
3311 void* vptr = 0;
3312 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
3313 if (cptr) *cptr = (char *) vptr;
3314 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3315 if (alloc) *alloc = SWIG_OLDOBJ;
3316 return SWIG_OK;
c370783e 3317 }
c370783e 3318 }
d55e5bfc 3319 }
1bd55598 3320 return SWIG_TypeError;
d55e5bfc
RD
3321}
3322
3323
36ed4f51 3324SWIGINTERN int
1bd55598 3325SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
d55e5bfc 3326{
1bd55598
RD
3327 char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
3328 int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
3329 if (SWIG_IsOK(res)) {
3330 if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
c370783e
RD
3331 if (csize <= size) {
3332 if (val) {
1bd55598
RD
3333 if (csize) memcpy(val, cptr, csize*sizeof(char));
3334 if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
c370783e 3335 }
1bd55598
RD
3336 if (alloc == SWIG_NEWOBJ) {
3337 delete[] cptr;
3338 res = SWIG_DelNewMask(res);
3339 }
3340 return res;
d55e5bfc 3341 }
1bd55598 3342 if (alloc == SWIG_NEWOBJ) delete[] cptr;
d55e5bfc 3343 }
1bd55598 3344 return SWIG_TypeError;
d55e5bfc
RD
3345}
3346
3347
36ed4f51 3348SWIGINTERN int
1bd55598
RD
3349SWIG_AsVal_char (PyObject * obj, char *val)
3350{
3351 int res = SWIG_AsCharArray(obj, val, 1);
3352 if (!SWIG_IsOK(res)) {
3353 long v;
3354 res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
3355 if (SWIG_IsOK(res)) {
3356 if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
3357 if (val) *val = static_cast< char >(v);
3358 } else {
3359 res = SWIG_OverflowError;
3360 }
3361 }
d55e5bfc 3362 }
1bd55598 3363 return res;
d55e5bfc
RD
3364}
3365
1bd55598 3366SWIGINTERN void wxOutputStream_write(wxOutputStream *self,PyObject *obj){
d55e5bfc
RD
3367 // We use only strings for the streams, not unicode
3368 PyObject* str = PyObject_Str(obj);
3369 if (! str) {
3370 PyErr_SetString(PyExc_TypeError, "Unable to convert to string");
3371 return;
3372 }
3373 self->Write(PyString_AS_STRING(str),
3374 PyString_GET_SIZE(str));
3375 Py_DECREF(str);
3376 }
3377
3378#include "wx/wxPython/pyistream.h"
3379
3380
3381class wxPyFileSystemHandler : public wxFileSystemHandler
3382{
3383public:
3384 wxPyFileSystemHandler() : wxFileSystemHandler() {}
3385
3386 DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen);
3387 DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile);
3388 DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst);
3389 DEC_PYCALLBACK_STRING__pure(FindNext);
3390
3391 wxString GetProtocol(const wxString& location) {
3392 return wxFileSystemHandler::GetProtocol(location);
3393 }
3394
3395 wxString GetLeftLocation(const wxString& location) {
3396 return wxFileSystemHandler::GetLeftLocation(location);
3397 }
3398
3399 wxString GetAnchor(const wxString& location) {
3400 return wxFileSystemHandler::GetAnchor(location);
3401 }
3402
3403 wxString GetRightLocation(const wxString& location) {
3404 return wxFileSystemHandler::GetRightLocation(location);
3405 }
3406
3407 wxString GetMimeTypeFromExt(const wxString& location) {
3408 return wxFileSystemHandler::GetMimeTypeFromExt(location);
3409 }
3410
3411 PYPRIVATE;
3412};
3413
3414
3415IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen);
3416IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile);
3417IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst);
3418IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext);
3419
3420
36ed4f51 3421SWIGINTERN int
1bd55598 3422SWIG_AsVal_bool (PyObject *obj, bool *val)
d55e5bfc 3423{
c370783e
RD
3424 if (obj == Py_True) {
3425 if (val) *val = true;
1bd55598
RD
3426 return SWIG_OK;
3427 } else if (obj == Py_False) {
c370783e 3428 if (val) *val = false;
1bd55598 3429 return SWIG_OK;
36ed4f51 3430 } else {
1bd55598
RD
3431 long v = 0;
3432 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3433 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3434 return res;
d55e5bfc
RD
3435 }
3436}
3437
1bd55598 3438SWIGINTERN wxString wxFileSystem_URLToFileName(wxString const &url){
b411df4a
RD
3439 wxFileName fname = wxFileSystem::URLToFileName(url);
3440 return fname.GetFullPath();
3441 }
d55e5bfc
RD
3442
3443 void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename,
3444 wxImage& image,
3445 long type) {
3446 wxMemoryFSHandler::AddFile(filename, image, type);
3447 }
3448
3449 void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename,
3450 const wxBitmap& bitmap,
3451 long type) {
3452 wxMemoryFSHandler::AddFile(filename, bitmap, type);
3453 }
3454
3455 void __wxMemoryFSHandler_AddFile_Data(const wxString& filename,
3456 PyObject* data) {
b411df4a
RD
3457 if (! PyString_Check(data)) {
3458 wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError,
3459 "Expected string object"));
3460 return;
3461 }
3462
5a446332 3463 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a
RD
3464 void* ptr = (void*)PyString_AsString(data);
3465 size_t size = PyString_Size(data);
3466 wxPyEndBlockThreads(blocked);
3467
3468 wxMemoryFSHandler::AddFile(filename, ptr, size);
d55e5bfc
RD
3469 }
3470
3471
3472#include "wx/wxPython/pyistream.h"
3473
3474
36ed4f51 3475SWIGINTERN int
1bd55598 3476SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
d55e5bfc 3477{
c370783e
RD
3478 long v = 0;
3479 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 3480 return SWIG_TypeError;
d55e5bfc 3481 }
c370783e
RD
3482 else if (val)
3483 *val = (unsigned long)v;
1bd55598 3484 return SWIG_OK;
d55e5bfc
RD
3485}
3486
3487
36ed4f51 3488SWIGINTERN int
1bd55598
RD
3489SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
3490{
c370783e 3491 unsigned long v;
1bd55598
RD
3492 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3493 if (SWIG_IsOK(res)) {
3494 if ((v > UCHAR_MAX)) {
3495 return SWIG_OverflowError;
c370783e 3496 } else {
1bd55598 3497 if (val) *val = static_cast< unsigned char >(v);
c370783e 3498 }
1bd55598
RD
3499 }
3500 return res;
c370783e
RD
3501}
3502
3503
1bd55598
RD
3504SWIGINTERNINLINE PyObject *
3505SWIG_From_unsigned_SS_char (unsigned char value)
3506{
3507 return SWIG_From_unsigned_SS_long (value);
f1cbd8fa
RD
3508}
3509
1bd55598 3510SWIGINTERN unsigned long wxImageHistogram_GetCount(wxImageHistogram *self,unsigned long key){
f1cbd8fa
RD
3511 wxImageHistogramEntry e = (*self)[key];
3512 return e.value;
3513 }
1bd55598 3514SWIGINTERN unsigned long wxImageHistogram_GetCountRGB(wxImageHistogram *self,byte r,byte g,byte b){
f1cbd8fa
RD
3515 unsigned long key = wxImageHistogram::MakeKey(r, g, b);
3516 wxImageHistogramEntry e = (*self)[key];
3517 return e.value;
3518 }
1bd55598 3519SWIGINTERN unsigned long wxImageHistogram_GetCountColour(wxImageHistogram *self,wxColour const &colour){
f1cbd8fa
RD
3520 unsigned long key = wxImageHistogram::MakeKey(colour.Red(),
3521 colour.Green(),
3522 colour.Blue());
3523 wxImageHistogramEntry e = (*self)[key];
3524 return e.value;
3525 }
bb2ef2cc 3526
943e8dfd
RD
3527// Pull the nested class out to the top level for SWIG's sake
3528#define wxImage_RGBValue wxImage::RGBValue
3529#define wxImage_HSVValue wxImage::HSVValue
3530
1bd55598 3531SWIGINTERN wxImage *new_wxImage(int width=0,int height=0,bool clear=true){
bb2ef2cc
RD
3532 if (width > 0 && height > 0)
3533 return new wxImage(width, height, clear);
3534 else
3535 return new wxImage;
d55e5bfc 3536 }
1bd55598 3537SWIGINTERN wxImage *new_wxImage(wxBitmap const &bitmap){
bb2ef2cc 3538 return new wxImage(bitmap.ConvertToImage());
03e46024 3539 }
1bd55598 3540SWIGINTERN wxImage *new_wxImage(int width,int height,buffer data,int DATASIZE){
bb2ef2cc
RD
3541 if (DATASIZE != width*height*3) {
3542 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3543 return NULL;
3544 }
3545
3546 // Copy the source data so the wxImage can clean it up later
3547 buffer copy = (buffer)malloc(DATASIZE);
3548 if (copy == NULL) {
3549 wxPyBLOCK_THREADS(PyErr_NoMemory());
3550 return NULL;
3551 }
3552 memcpy(copy, data, DATASIZE);
3553 return new wxImage(width, height, copy, false);
03e46024 3554 }
1bd55598 3555SWIGINTERN wxImage *new_wxImage(int width,int height,buffer data,int DATASIZE,buffer alpha,int ALPHASIZE){
bb2ef2cc
RD
3556 if (DATASIZE != width*height*3) {
3557 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3558 return NULL;
3559 }
3560 if (ALPHASIZE != width*height) {
3561 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3562 return NULL;
3563 }
3564
3565 // Copy the source data so the wxImage can clean it up later
3566 buffer dcopy = (buffer)malloc(DATASIZE);
3567 if (dcopy == NULL) {
3568 wxPyBLOCK_THREADS(PyErr_NoMemory());
3569 return NULL;
3570 }
3571 memcpy(dcopy, data, DATASIZE);
03e46024 3572
bb2ef2cc
RD
3573 buffer acopy = (buffer)malloc(ALPHASIZE);
3574 if (acopy == NULL) {
3575 wxPyBLOCK_THREADS(PyErr_NoMemory());
3576 return NULL;
3577 }
3578 memcpy(acopy, alpha, ALPHASIZE);
3579
3580 return new wxImage(width, height, dcopy, acopy, false);
3581 }
1bd55598 3582SWIGINTERN wxSize wxImage_GetSize(wxImage *self){
d55e5bfc
RD
3583 wxSize size(self->GetWidth(), self->GetHeight());
3584 return size;
3585 }
1bd55598 3586SWIGINTERN PyObject *wxImage_GetData(wxImage *self){
bb2ef2cc 3587 buffer data = self->GetData();
d55e5bfc
RD
3588 int len = self->GetWidth() * self->GetHeight() * 3;
3589 PyObject* rv;
3590 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len));
3591 return rv;
3592 }
1bd55598 3593SWIGINTERN void wxImage_SetData(wxImage *self,buffer data,int DATASIZE){
bb2ef2cc
RD
3594 if (DATASIZE != self->GetWidth() * self->GetHeight() * 3) {
3595 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3596 return;
3597 }
3598 buffer copy = (buffer)malloc(DATASIZE);
3599 if (copy == NULL) {
3600 wxPyBLOCK_THREADS(PyErr_NoMemory());
3601 return;
3602 }
3603 memcpy(copy, data, DATASIZE);
3604 self->SetData(copy, false);
3605 // wxImage takes ownership of copy...
d55e5bfc 3606 }
1bd55598 3607SWIGINTERN PyObject *wxImage_GetDataBuffer(wxImage *self){
bb2ef2cc 3608 buffer data = self->GetData();
d55e5bfc
RD
3609 int len = self->GetWidth() * self->GetHeight() * 3;
3610 PyObject* rv;
3611 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
3612 return rv;
3613 }
1bd55598 3614SWIGINTERN void wxImage_SetDataBuffer(wxImage *self,buffer data,int DATASIZE){
bb2ef2cc
RD
3615 if (DATASIZE != self->GetWidth() * self->GetHeight() * 3) {
3616 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3617 return;
d55e5bfc 3618 }
bb2ef2cc 3619 self->SetData(data, true);
d55e5bfc 3620 }
1bd55598 3621SWIGINTERN PyObject *wxImage_GetAlphaData(wxImage *self){
bb2ef2cc 3622 buffer data = self->GetAlpha();
d55e5bfc
RD
3623 if (! data) {
3624 RETURN_NONE();
3625 } else {
3626 int len = self->GetWidth() * self->GetHeight();
3627 PyObject* rv;
3628 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) );
3629 return rv;
3630 }
3631 }
1bd55598 3632SWIGINTERN void wxImage_SetAlphaData(wxImage *self,buffer alpha,int ALPHASIZE){
bb2ef2cc
RD
3633 if (ALPHASIZE != self->GetWidth() * self->GetHeight()) {
3634 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3635 return;
d55e5bfc 3636 }
bb2ef2cc
RD
3637 buffer acopy = (buffer)malloc(ALPHASIZE);
3638 if (acopy == NULL) {
3639 wxPyBLOCK_THREADS(PyErr_NoMemory());
3640 return;
3641 }
3642 memcpy(acopy, alpha, ALPHASIZE);
3643 self->SetAlpha(acopy, false);
3644 // wxImage takes ownership of acopy...
d55e5bfc 3645 }
1bd55598 3646SWIGINTERN PyObject *wxImage_GetAlphaBuffer(wxImage *self){
bb2ef2cc 3647 buffer data = self->GetAlpha();
d55e5bfc
RD
3648 int len = self->GetWidth() * self->GetHeight();
3649 PyObject* rv;
3650 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
3651 return rv;
3652 }
1bd55598 3653SWIGINTERN void wxImage_SetAlphaBuffer(wxImage *self,buffer alpha,int ALPHASIZE){
bb2ef2cc
RD
3654 if (ALPHASIZE != self->GetWidth() * self->GetHeight()) {
3655 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3656 return;
d55e5bfc 3657 }
bb2ef2cc 3658 self->SetAlpha(alpha, true);
d55e5bfc 3659 }
1bd55598
RD
3660SWIGINTERN PyObject *wxImage_GetHandlers(){
3661 wxList& list = wxImage::GetHandlers();
3662 return wxPy_ConvertList(&list);
3663 }
3664SWIGINTERN wxBitmap wxImage_ConvertToBitmap(wxImage *self,int depth=-1){
44bf767a 3665 wxBitmap bitmap(*self, depth);
d55e5bfc
RD
3666 return bitmap;
3667 }
1bd55598 3668SWIGINTERN wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,byte red,byte green,byte blue){
d55e5bfc
RD
3669 wxImage mono = self->ConvertToMono( red, green, blue );
3670 wxBitmap bitmap( mono, 1 );
3671 return bitmap;
3672 }
fc46b7f3
RD
3673
3674 wxImage* _ImageFromBuffer(int width, int height,
3675 buffer data, int DATASIZE,
3676 buffer alpha=NULL, int ALPHASIZE=0)
3677 {
3678 if (DATASIZE != width*height*3) {
3679 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3680 return NULL;
3681 }
3682 if (alpha != NULL) {
3683 if (ALPHASIZE != width*height) {
3684 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3685 return NULL;
3686 }
3687 return new wxImage(width, height, data, alpha, true);
3688 }
3689 return new wxImage(width, height, data, true);
3690 }
3691
68350608 3692 static const wxString wxPyIMAGE_OPTION_FILENAME(wxIMAGE_OPTION_FILENAME);
d55e5bfc
RD
3693 static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT);
3694 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X);
3695 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
3696 static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION);
68350608
RD
3697 static const wxString wxPyIMAGE_OPTION_RESOLUTIONX(wxIMAGE_OPTION_RESOLUTIONX);
3698 static const wxString wxPyIMAGE_OPTION_RESOLUTIONY(wxIMAGE_OPTION_RESOLUTIONY);
d55e5bfc 3699 static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT);
24d7cbea 3700 static const wxString wxPyIMAGE_OPTION_QUALITY(wxIMAGE_OPTION_QUALITY);
68350608
RD
3701 static const wxString wxPyIMAGE_OPTION_BITSPERSAMPLE(wxIMAGE_OPTION_BITSPERSAMPLE);
3702 static const wxString wxPyIMAGE_OPTION_SAMPLESPERPIXEL(wxIMAGE_OPTION_SAMPLESPERPIXEL);
3703 static const wxString wxPyIMAGE_OPTION_COMPRESSION(wxIMAGE_OPTION_COMPRESSION);
3704 static const wxString wxPyIMAGE_OPTION_IMAGEDESCRIPTOR(wxIMAGE_OPTION_IMAGEDESCRIPTOR);
7fbf8399
RD
3705 static const wxString wxPyIMAGE_OPTION_PNG_FORMAT(wxIMAGE_OPTION_PNG_FORMAT);
3706 static const wxString wxPyIMAGE_OPTION_PNG_BITDEPTH(wxIMAGE_OPTION_PNG_BITDEPTH);
c0de73ae 3707
580080c5
RD
3708#include <wx/imagtga.h>
3709
3710
c0de73ae
RD
3711#include <wx/quantize.h>
3712
1bd55598 3713SWIGINTERN bool wxQuantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours=236,int flags=wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE){
c0de73ae
RD
3714 return wxQuantize::Quantize(src, dest,
3715 //NULL, // palette
3716 desiredNoColours,
3717 NULL, // eightBitData
3718 flags);
3719 }
1bd55598 3720SWIGINTERN void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){
d55e5bfc
RD
3721 if (PyCallable_Check(func)) {
3722 self->Connect(id, lastId, eventType,
3723 (wxObjectEventFunction) &wxPyCallback::EventThunker,
3724 new wxPyCallback(func));
3725 }
3726 else if (func == Py_None) {
3727 self->Disconnect(id, lastId, eventType,
3728 (wxObjectEventFunction)
3729 &wxPyCallback::EventThunker);
3730 }
3731 else {
3732 wxPyBLOCK_THREADS(
3733 PyErr_SetString(PyExc_TypeError, "Expected callable object or None."));
3734 }
3735 }
1bd55598 3736SWIGINTERN bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId=-1,wxEventType eventType=wxEVT_NULL){
d55e5bfc
RD
3737 return self->Disconnect(id, lastId, eventType,
3738 (wxObjectEventFunction)
3739 &wxPyCallback::EventThunker);
3740 }
1bd55598 3741SWIGINTERN void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self,bool incref=true){
d55e5bfc 3742 if (_self && _self != Py_None) {
36ed4f51 3743 self->SetClientObject(new wxPyOORClientData(_self, incref));
d55e5bfc
RD
3744 }
3745 else {
3746 wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject();
3747 if (data) {
3748 self->SetClientObject(NULL); // This will delete it too
3749 }
3750 }
3751 }
c370783e 3752
943e8dfd
RD
3753#if ! wxUSE_HOTKEY
3754#define wxEVT_HOTKEY -9999
3755#endif
3756
1bd55598
RD
3757SWIGINTERN PyObject *wxCommandEvent_GetClientData(wxCommandEvent *self){
3758 wxPyClientData* data = (wxPyClientData*)self->GetClientObject();
3759 if (data) {
3760 Py_INCREF(data->m_obj);
3761 return data->m_obj;
3762 } else {
3763 Py_INCREF(Py_None);
3764 return Py_None;
3765 }
3766 }
3767SWIGINTERN void wxCommandEvent_SetClientData(wxCommandEvent *self,PyObject *clientData){
3768 wxPyClientData* data = new wxPyClientData(clientData);
3769 self->SetClientObject(data);
3770 }
3771SWIGINTERN int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){
d55e5bfc 3772 #if wxUSE_UNICODE
bb4524c4 3773 return self->GetUnicodeKey();
d55e5bfc
RD
3774 #else
3775 return 0;
3776 #endif
3777 }
b850e7f3
RD
3778SWIGINTERN void wxKeyEvent_SetUnicodeKey(wxKeyEvent *self,int uniChar){
3779 #if wxUSE_UNICODE
3780 self->m_uniChar = uniChar;
3781 #endif
3782 }
d55e5bfc 3783
1bd55598
RD
3784SWIGINTERNINLINE PyObject *
3785SWIG_From_unsigned_SS_int (unsigned int value)
3786{
3787 return SWIG_From_unsigned_SS_long (value);
3788}
d55e5bfc
RD
3789
3790
36ed4f51 3791SWIGINTERN int
1bd55598
RD
3792SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
3793{
c370783e 3794 unsigned long v;
1bd55598
RD
3795 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3796 if (SWIG_IsOK(res)) {
3797 if ((v > UINT_MAX)) {
3798 return SWIG_OverflowError;
3799 } else {
3800 if (val) *val = static_cast< unsigned int >(v);
c370783e 3801 }
1bd55598
RD
3802 }
3803 return res;
d55e5bfc
RD
3804}
3805
1bd55598 3806SWIGINTERN void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){
d55e5bfc
RD
3807 self->m_size = size;
3808 }
1bd55598 3809SWIGINTERN PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){
d55e5bfc
RD
3810 int count = self->GetNumberOfFiles();
3811 wxString* files = self->GetFiles();
5ba5649b 3812 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3813 PyObject* list = PyList_New(count);
3814
3815 if (!list) {
3816 PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!");
5ba5649b 3817 wxPyEndBlockThreads(blocked);
d55e5bfc
RD
3818 return NULL;
3819 }
3820
3821 for (int i=0; i<count; i++) {
3822 PyList_SetItem(list, i, wx2PyString(files[i]));
3823 }
5ba5649b 3824 wxPyEndBlockThreads(blocked);
d55e5bfc
RD
3825 return list;
3826 }
3827
3828
1bd55598 3829SWIGINTERN wxPyApp *new_wxPyApp(){
d55e5bfc
RD
3830 wxPythonApp = new wxPyApp();
3831 return wxPythonApp;
3832 }
1bd55598 3833SWIGINTERN int wxPyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; }
33d6fd3b 3834SWIGINTERN bool wxPyApp_IsDisplayAvailable(){
fc46b7f3
RD
3835 return wxPyTestDisplayAvailable();
3836 }
d55e5bfc
RD
3837
3838 void wxApp_CleanUp() {
3839 __wxPyCleanup();
3840 }
3841
3842
a5ee0656 3843 wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; }
d55e5bfc
RD
3844
3845
5cbf236d
RD
3846
3847
1bd55598
RD
3848
3849SWIGINTERNINLINE PyObject *
3850SWIG_FromCharPtr(const char *cptr)
5cbf236d 3851{
1bd55598 3852 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
5cbf236d
RD
3853}
3854
3855
32fe5131 3856#if 0 // #ifdef __WXMAC__
b411df4a
RD
3857
3858// A dummy class that raises an exception if used...
3859class wxEventLoop
3860{
3861public:
3862 wxEventLoop() { wxPyRaiseNotImplemented(); }
3863 int Run() { return 0; }
3864 void Exit(int rc = 0) {}
3865 bool Pending() const { return false; }
3866 bool Dispatch() { return false; }
3867 bool IsRunning() const { return false; }
3868 static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; }
3869 static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); }
3870};
3871
3872#else
3873
3874#include <wx/evtloop.h>
3875
3876#endif
3877
3878
d55e5bfc
RD
3879
3880 static const wxString wxPyPanelNameStr(wxPanelNameStr);
1bd55598
RD
3881SWIGINTERN wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; }
3882SWIGINTERN void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; }
3883SWIGINTERN PyObject *wxWindow_GetChildren(wxWindow *self){
d55e5bfc
RD
3884 wxWindowList& list = self->GetChildren();
3885 return wxPy_ConvertList(&list);
3886 }
704eda0c 3887SWIGINTERN void wxWindow_SetDoubleBuffered(wxWindow *self,bool on){}
1bd55598 3888SWIGINTERN bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){
d55e5bfc
RD
3889 #if wxUSE_HOTKEY
3890 return self->RegisterHotKey(hotkeyId, modifiers, keycode);
3891 #else
b411df4a 3892 return false;
d55e5bfc
RD
3893 #endif
3894 }
1bd55598 3895SWIGINTERN bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){
d55e5bfc
RD
3896
3897
3898
b411df4a 3899 return false;
d55e5bfc
RD
3900
3901 }
1bd55598 3902SWIGINTERN long wxWindow_GetHandle(wxWindow *self){
d55e5bfc
RD
3903 return wxPyGetWinHandle(self);
3904 }
1bd55598 3905SWIGINTERN void wxWindow_AssociateHandle(wxWindow *self,long handle){
629e65c2
RD
3906 self->AssociateHandle((WXWidget)handle);
3907 }
1bd55598 3908SWIGINTERN void wxWindow_DragAcceptFiles(wxWindow *self,bool accept){}
d55e5bfc
RD
3909
3910wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) {
3911 return wxWindow::FindWindowById(id, parent);
3912}
3913
3914wxWindow* wxFindWindowByName( const wxString& name,
3915 const wxWindow *parent = NULL ) {
3916 return wxWindow::FindWindowByName(name, parent);
3917}
3918
3919wxWindow* wxFindWindowByLabel( const wxString& label,
3920 const wxWindow *parent = NULL ) {
3921 return wxWindow::FindWindowByLabel(label, parent);
3922}
3923
3924
3925#ifdef __WXMSW__
3926#include <wx/msw/private.h> // to get wxGetWindowId
3927#endif
3928
3929
3930 wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) {
3931#ifdef __WXMSW__
3932 WXHWND hWnd = (WXHWND)_hWnd;
3933 long id = wxGetWindowId(hWnd);
3934 wxWindow* win = new wxWindow;
943e8dfd
RD
3935 if (parent)
3936 parent->AddChild(win);
d55e5bfc
RD
3937 win->SetEventHandler(win);
3938 win->SetHWND(hWnd);
3939 win->SetId(id);
3940 win->SubclassWin(hWnd);
3941 win->AdoptAttributesFromHWND();
3942 win->SetupColours();
3943 return win;
3944#else
3945 wxPyRaiseNotImplemented();
3946 return NULL;
3947#endif
3948 }
3949
3950
3215336e
RD
3951 PyObject* GetTopLevelWindows() {
3952 return wxPy_ConvertList(&wxTopLevelWindows);
3953 }
3954
3955
d55e5bfc
RD
3956IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
3957IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow);
3958IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow);
3959
3960IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator);
3961
1bd55598
RD
3962
3963SWIGINTERNINLINE int
3964SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3965{
3966 unsigned long v;
3967 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3968 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3969 return res;
3970}
3971
3972SWIGINTERN void wxMenu_Destroy(wxMenu *self){ delete self; }
3973SWIGINTERN PyObject *wxMenu_GetMenuItems(wxMenu *self){
d55e5bfc
RD
3974 wxMenuItemList& list = self->GetMenuItems();
3975 return wxPy_ConvertList(&list);
3976 }
1bd55598
RD
3977SWIGINTERN void wxMenuItem_SetFont(wxMenuItem *self,wxFont const &font){}
3978SWIGINTERN wxFont wxMenuItem_GetFont(wxMenuItem *self){ return wxNullFont; }
3979SWIGINTERN void wxMenuItem_SetTextColour(wxMenuItem *self,wxColour const &colText){}
3980SWIGINTERN wxColour wxMenuItem_GetTextColour(wxMenuItem *self){ return wxNullColour; }
3981SWIGINTERN void wxMenuItem_SetBackgroundColour(wxMenuItem *self,wxColour const &colBack){}
3982SWIGINTERN wxColour wxMenuItem_GetBackgroundColour(wxMenuItem *self){ return wxNullColour; }
3983SWIGINTERN void wxMenuItem_SetBitmaps(wxMenuItem *self,wxBitmap const &bmpChecked,wxBitmap const &bmpUnchecked=wxNullBitmap){ self->SetBitmap( bmpChecked ); }
3984SWIGINTERN void wxMenuItem_SetDisabledBitmap(wxMenuItem *self,wxBitmap const &bmpDisabled){}
3985SWIGINTERN wxBitmap const &wxMenuItem_GetDisabledBitmap(wxMenuItem const *self){ return wxNullBitmap; }
3986SWIGINTERN void wxMenuItem_SetMarginWidth(wxMenuItem *self,int nWidth){}
3987SWIGINTERN int wxMenuItem_GetMarginWidth(wxMenuItem *self){ return 0; }
3988SWIGINTERN int wxMenuItem_GetDefaultMarginWidth(){ return 0; }
3989SWIGINTERN bool wxMenuItem_IsOwnerDrawn(wxMenuItem *self){ return false; }
3990SWIGINTERN void wxMenuItem_SetOwnerDrawn(wxMenuItem *self,bool ownerDrawn=true){}
3991SWIGINTERN void wxMenuItem_ResetOwnerDrawn(wxMenuItem *self){}
d55e5bfc 3992 static const wxString wxPyControlNameStr(wxControlNameStr);
1bd55598 3993SWIGINTERN int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData=NULL){
d55e5bfc
RD
3994 if (clientData) {
3995 wxPyClientData* data = new wxPyClientData(clientData);
3996 return self->Append(item, data);
3997 } else
3998 return self->Append(item);
3999 }
50f151d7 4000SWIGINTERN int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,unsigned int pos,PyObject *clientData=NULL){
d55e5bfc
RD
4001 if (clientData) {
4002 wxPyClientData* data = new wxPyClientData(clientData);
4003 return self->Insert(item, pos, data);
4004 } else
4005 return self->Insert(item, pos);
4006 }
50f151d7 4007SWIGINTERN PyObject *wxItemContainer_GetClientData(wxItemContainer *self,unsigned int n){
d55e5bfc
RD
4008 wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n);
4009 if (data) {
4010 Py_INCREF(data->m_obj);
4011 return data->m_obj;
4012 } else {
4013 Py_INCREF(Py_None);
4014 return Py_None;
4015 }
4016 }
50f151d7 4017SWIGINTERN void wxItemContainer_SetClientData(wxItemContainer *self,unsigned int n,PyObject *clientData){
d55e5bfc
RD
4018 wxPyClientData* data = new wxPyClientData(clientData);
4019 self->SetClientObject(n, data);
4020 }
4021
4022
1bd55598 4023SWIGINTERN wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData=NULL){
bfddbb17
RD
4024 wxPyUserData* data = NULL;
4025 if ( userData ) {
5a446332 4026 wxPyBlock_t blocked = wxPyBeginBlockThreads();
bfddbb17
RD
4027 data = new wxPyUserData(userData);
4028 wxPyEndBlockThreads(blocked);
4029 }
4030 return new wxSizerItem(window, proportion, flag, border, data);
4031 }
1bd55598 4032SWIGINTERN wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData=NULL){
bfddbb17
RD
4033 wxPyUserData* data = NULL;
4034 if ( userData ) {
5a446332 4035 wxPyBlock_t blocked = wxPyBeginBlockThreads();
bfddbb17
RD
4036 data = new wxPyUserData(userData);
4037 wxPyEndBlockThreads(blocked);
4038 }
4039 return new wxSizerItem(width, height, proportion, flag, border, data);
4040 }
1bd55598 4041SWIGINTERN wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData=NULL){
bfddbb17
RD
4042 wxPyUserData* data = NULL;
4043 if ( userData ) {
5a446332 4044 wxPyBlock_t blocked = wxPyBeginBlockThreads();
bfddbb17
RD
4045 data = new wxPyUserData(userData);
4046 wxPyEndBlockThreads(blocked);
4047 }
4048 return new wxSizerItem(sizer, proportion, flag, border, data);
4049 }
d55e5bfc 4050
1bd55598
RD
4051SWIGINTERNINLINE PyObject *
4052SWIG_From_float (float value)
4053{
4054 return SWIG_From_double (value);
d55e5bfc
RD
4055}
4056
1bd55598 4057SWIGINTERN PyObject *wxSizerItem_GetUserData(wxSizerItem *self){
d55e5bfc
RD
4058 wxPyUserData* data = (wxPyUserData*)self->GetUserData();
4059 if (data) {
4060 Py_INCREF(data->m_obj);
4061 return data->m_obj;
4062 } else {
4063 Py_INCREF(Py_None);
4064 return Py_None;
4065 }
4066 }
1bd55598 4067SWIGINTERN void wxSizerItem_SetUserData(wxSizerItem *self,PyObject *userData){
32fe5131
RD
4068 wxPyUserData* data = NULL;
4069 if ( userData ) {
4070 wxPyBlock_t blocked = wxPyBeginBlockThreads();
4071 data = new wxPyUserData(userData);
4072 wxPyEndBlockThreads(blocked);
4073 }
4074 self->SetUserData(data);
4075 }
d55e5bfc
RD
4076
4077// Figure out the type of the sizer item
4078
4079struct wxPySizerItemInfo {
4080 wxPySizerItemInfo()
b411df4a
RD
4081 : window(NULL), sizer(NULL), gotSize(false),
4082 size(wxDefaultSize), gotPos(false), pos(-1)
d55e5bfc 4083 {}
7fbf8399 4084
d55e5bfc
RD
4085 wxWindow* window;
4086 wxSizer* sizer;
4087 bool gotSize;
4088 wxSize size;
4089 bool gotPos;
4090 int pos;
4091};
7fbf8399 4092
d55e5bfc
RD
4093static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) {
4094
4095 wxPySizerItemInfo info;
4096 wxSize size;
4097 wxSize* sizePtr = &size;
4098
4099 // Find out what the type of the item is
4100 // try wxWindow
4101 if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) {
4102 PyErr_Clear();
4103 info.window = NULL;
7fbf8399 4104
d55e5bfc
RD
4105 // try wxSizer
4106 if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) {
4107 PyErr_Clear();
4108 info.sizer = NULL;
7fbf8399 4109
d55e5bfc
RD
4110 // try wxSize or (w,h)
4111 if ( checkSize && wxSize_helper(item, &sizePtr)) {
4112 info.size = *sizePtr;
b411df4a 4113 info.gotSize = true;
d55e5bfc
RD
4114 }
4115
4116 // or a single int
4117 if (checkIdx && PyInt_Check(item)) {
4118 info.pos = PyInt_AsLong(item);
b411df4a 4119 info.gotPos = true;
d55e5bfc
RD
4120 }
4121 }
4122 }
4123
4124 if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) {
4125 // no expected type, figure out what kind of error message to generate
4126 if ( !checkSize && !checkIdx )
943e8dfd 4127 PyErr_SetString(PyExc_TypeError, "wx.Window or wx.Sizer expected for item");
d55e5bfc 4128 else if ( checkSize && !checkIdx )
943e8dfd 4129 PyErr_SetString(PyExc_TypeError, "wx.Window, wx.Sizer, wx.Size, or (w,h) expected for item");
d55e5bfc 4130 else if ( !checkSize && checkIdx)
943e8dfd 4131 PyErr_SetString(PyExc_TypeError, "wx.Window, wx.Sizer or int (position) expected for item");
d55e5bfc
RD
4132 else
4133 // can this one happen?
943e8dfd 4134 PyErr_SetString(PyExc_TypeError, "wx.Window, wx.Sizer, wx.Size, or (w,h) or int (position) expected for item");
d55e5bfc
RD
4135 }
4136
4137 return info;
4138}
4139
1bd55598 4140SWIGINTERN void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){
b0f7404b
RD
4141 if (!self->GetClientObject())
4142 self->SetClientObject(new wxPyOORClientData(_self));
d55e5bfc 4143 }
1bd55598 4144SWIGINTERN wxSizerItem *wxSizer_Add(wxSizer *self,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){
7fbf8399 4145
d55e5bfc 4146 wxPyUserData* data = NULL;
5a446332 4147 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4148 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
d55e5bfc
RD
4149 if ( userData && (info.window || info.sizer || info.gotSize) )
4150 data = new wxPyUserData(userData);
7e08d4ef
RD
4151 if ( info.sizer )
4152 PyObject_SetAttrString(item,"thisown",Py_False);
d55e5bfc 4153 wxPyEndBlockThreads(blocked);
7fbf8399 4154
d55e5bfc
RD
4155 // Now call the real Add method if a valid item type was found
4156 if ( info.window )
070c48b4 4157 return self->Add(info.window, proportion, flag, border, data);
d55e5bfc 4158 else if ( info.sizer )
070c48b4 4159 return self->Add(info.sizer, proportion, flag, border, data);
d55e5bfc 4160 else if (info.gotSize)
070c48b4
RD
4161 return self->Add(info.size.GetWidth(), info.size.GetHeight(),
4162 proportion, flag, border, data);
4163 else
4164 return NULL;
d55e5bfc 4165 }
1bd55598 4166SWIGINTERN wxSizerItem *wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){
d55e5bfc
RD
4167
4168 wxPyUserData* data = NULL;
5a446332 4169 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4170 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
d55e5bfc
RD
4171 if ( userData && (info.window || info.sizer || info.gotSize) )
4172 data = new wxPyUserData(userData);
7e08d4ef
RD
4173 if ( info.sizer )
4174 PyObject_SetAttrString(item,"thisown",Py_False);
d55e5bfc 4175 wxPyEndBlockThreads(blocked);
7fbf8399 4176
d55e5bfc
RD
4177 // Now call the real Insert method if a valid item type was found
4178 if ( info.window )
070c48b4 4179 return self->Insert(before, info.window, proportion, flag, border, data);
d55e5bfc 4180 else if ( info.sizer )
070c48b4 4181 return self->Insert(before, info.sizer, proportion, flag, border, data);
d55e5bfc 4182 else if (info.gotSize)
070c48b4
RD
4183 return self->Insert(before, info.size.GetWidth(), info.size.GetHeight(),
4184 proportion, flag, border, data);
4185 else
4186 return NULL;
d55e5bfc 4187 }
1bd55598 4188SWIGINTERN wxSizerItem *wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){
d55e5bfc
RD
4189
4190 wxPyUserData* data = NULL;
5a446332 4191 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4192 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
d55e5bfc
RD
4193 if ( userData && (info.window || info.sizer || info.gotSize) )
4194 data = new wxPyUserData(userData);
7e08d4ef
RD
4195 if ( info.sizer )
4196 PyObject_SetAttrString(item,"thisown",Py_False);
d55e5bfc 4197 wxPyEndBlockThreads(blocked);
7fbf8399 4198
d55e5bfc
RD
4199 // Now call the real Prepend method if a valid item type was found
4200 if ( info.window )
070c48b4 4201 return self->Prepend(info.window, proportion, flag, border, data);
d55e5bfc 4202 else if ( info.sizer )
070c48b4 4203 return self->Prepend(info.sizer, proportion, flag, border, data);
d55e5bfc 4204 else if (info.gotSize)
070c48b4
RD
4205 return self->Prepend(info.size.GetWidth(), info.size.GetHeight(),
4206 proportion, flag, border, data);
4207 else
4208 return NULL;
d55e5bfc 4209 }
1bd55598 4210SWIGINTERN bool wxSizer_Remove(wxSizer *self,PyObject *item){
5a446332 4211 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4212 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
d55e5bfc
RD
4213 wxPyEndBlockThreads(blocked);
4214 if ( info.window )
4215 return self->Remove(info.window);
4216 else if ( info.sizer )
4217 return self->Remove(info.sizer);
4218 else if ( info.gotPos )
4219 return self->Remove(info.pos);
7fbf8399 4220 else
b411df4a 4221 return false;
d55e5bfc 4222 }
1bd55598 4223SWIGINTERN bool wxSizer_Detach(wxSizer *self,PyObject *item){
5a446332 4224 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4225 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
1a6bba1e
RD
4226 wxPyEndBlockThreads(blocked);
4227 if ( info.window )
4228 return self->Detach(info.window);
4229 else if ( info.sizer )
4230 return self->Detach(info.sizer);
4231 else if ( info.gotPos )
4232 return self->Detach(info.pos);
7fbf8399 4233 else
b411df4a 4234 return false;
1a6bba1e 4235 }
1bd55598 4236SWIGINTERN wxSizerItem *wxSizer_GetItem(wxSizer *self,PyObject *item){
5a446332 4237 wxPyBlock_t blocked = wxPyBeginBlockThreads();
070c48b4
RD
4238 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
4239 wxPyEndBlockThreads(blocked);
4240 if ( info.window )
4241 return self->GetItem(info.window);
4242 else if ( info.sizer )
4243 return self->GetItem(info.sizer);
4244 else if ( info.gotPos )
4245 return self->GetItem(info.pos);
4246 else
4247 return NULL;
4248 }
1bd55598 4249SWIGINTERN void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){
5a446332 4250 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4251 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
d55e5bfc
RD
4252 wxPyEndBlockThreads(blocked);
4253 if ( info.window )
4254 self->SetItemMinSize(info.window, size);
4255 else if ( info.sizer )
4256 self->SetItemMinSize(info.sizer, size);
4257 else if ( info.gotPos )
4258 self->SetItemMinSize(info.pos, size);
4259 }
1bd55598 4260SWIGINTERN PyObject *wxSizer_GetChildren(wxSizer *self){
d55e5bfc
RD
4261 wxSizerItemList& list = self->GetChildren();
4262 return wxPy_ConvertList(&list);
4263 }
1bd55598 4264SWIGINTERN bool wxSizer_Show(wxSizer *self,PyObject *item,bool show=true,bool recursive=false){
5a446332 4265 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4266 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
d6c14a4c 4267 wxPyEndBlockThreads(blocked);
d55e5bfc 4268 if ( info.window )
629e65c2 4269 return self->Show(info.window, show, recursive);
d55e5bfc 4270 else if ( info.sizer )
629e65c2 4271 return self->Show(info.sizer, show, recursive);
bfddbb17 4272 else if ( info.gotPos )
629e65c2 4273 return self->Show(info.pos, show);
b411df4a
RD
4274 else
4275 return false;
d55e5bfc 4276 }
1bd55598 4277SWIGINTERN bool wxSizer_IsShown(wxSizer *self,PyObject *item){
5a446332 4278 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4279 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false);
d6c14a4c 4280 wxPyEndBlockThreads(blocked);
7fbf8399 4281 if ( info.window )
d55e5bfc 4282 return self->IsShown(info.window);
7fbf8399 4283 else if ( info.sizer )
d55e5bfc 4284 return self->IsShown(info.sizer);
bfddbb17
RD
4285 else if ( info.gotPos )
4286 return self->IsShown(info.pos);
d55e5bfc 4287 else
b411df4a 4288 return false;
d55e5bfc
RD
4289 }
4290
7fbf8399 4291// See pyclasses.h
d55e5bfc
RD
4292IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes);
4293IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin);
4294IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer);
4295
4296
4297
4298
4299bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj)
4300{
4301 if (source == Py_None) {
4302 **obj = wxGBPosition(-1,-1);
b411df4a 4303 return true;
d55e5bfc
RD
4304 }
4305 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition"));
4306}
4307
4308bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj)
4309{
4310 if (source == Py_None) {
4311 **obj = wxGBSpan(-1,-1);
b411df4a 4312 return true;
d55e5bfc
RD
4313 }
4314 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan"));
4315}
4316
4317
e9d6f3a4
RD
4318SWIGINTERN bool wxGBPosition___eq__(wxGBPosition *self,PyObject *other){
4319 wxGBPosition temp, *obj = &temp;
4320 if ( other == Py_None ) return false;
4321 if ( ! wxGBPosition_helper(other, &obj) ) {
4322 PyErr_Clear();
4323 return false;
4324 }
4325 return self->operator==(*obj);
4326 }
4327SWIGINTERN bool wxGBPosition___ne__(wxGBPosition *self,PyObject *other){
4328 wxGBPosition temp, *obj = &temp;
4329 if ( other == Py_None ) return true;
4330 if ( ! wxGBPosition_helper(other, &obj)) {
4331 PyErr_Clear();
4332 return true;
4333 }
4334 return self->operator!=(*obj);
4335 }
1bd55598 4336SWIGINTERN void wxGBPosition_Set(wxGBPosition *self,int row=0,int col=0){
d55e5bfc
RD
4337 self->SetRow(row);
4338 self->SetCol(col);
4339 }
1bd55598 4340SWIGINTERN PyObject *wxGBPosition_Get(wxGBPosition *self){
5a446332 4341 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
4342 PyObject* tup = PyTuple_New(2);
4343 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
4344 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
4345 wxPyEndBlockThreads(blocked);
4346 return tup;
4347 }
e9d6f3a4
RD
4348SWIGINTERN bool wxGBSpan___eq__(wxGBSpan *self,PyObject *other){
4349 wxGBSpan temp, *obj = &temp;
4350 if ( other == Py_None ) return false;
4351 if ( ! wxGBSpan_helper(other, &obj) ) {
4352 PyErr_Clear();
4353 return false;
4354 }
4355 return self->operator==(*obj);
4356 }
4357SWIGINTERN bool wxGBSpan___ne__(wxGBSpan *self,PyObject *other){
4358 wxGBSpan temp, *obj = &temp;
4359 if ( other == Py_None ) return true;
4360 if ( ! wxGBSpan_helper(other, &obj)) {
4361 PyErr_Clear();
4362 return true;
4363 }
4364 return self->operator!=(*obj);
4365 }
1bd55598 4366SWIGINTERN void wxGBSpan_Set(wxGBSpan *self,int rowspan=1,int colspan=1){
d55e5bfc
RD
4367 self->SetRowspan(rowspan);
4368 self->SetColspan(colspan);
4369 }
1bd55598 4370SWIGINTERN PyObject *wxGBSpan_Get(wxGBSpan *self){
5a446332 4371 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
4372 PyObject* tup = PyTuple_New(2);
4373 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan()));
4374 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan()));
4375 wxPyEndBlockThreads(blocked);
4376 return tup;
4377 }
1bd55598 4378SWIGINTERN wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){
bfddbb17
RD
4379 wxPyUserData* data = NULL;
4380 if ( userData ) {
5a446332 4381 wxPyBlock_t blocked = wxPyBeginBlockThreads();
bfddbb17
RD
4382 data = new wxPyUserData(userData);
4383 wxPyEndBlockThreads(blocked);
4384 }
4385 return new wxGBSizerItem(window, pos, span, flag, border, data);
4386 }
1bd55598 4387SWIGINTERN wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){
bfddbb17
RD
4388 wxPyUserData* data = NULL;
4389 if ( userData ) {
5a446332 4390 wxPyBlock_t blocked = wxPyBeginBlockThreads();
bfddbb17
RD
4391 data = new wxPyUserData(userData);
4392 wxPyEndBlockThreads(blocked);
4393 }
4394 return new wxGBSizerItem(sizer, pos, span, flag, border, data);
4395 }
1bd55598 4396SWIGINTERN wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){
bfddbb17
RD
4397 wxPyUserData* data = NULL;
4398 if ( userData ) {
5a446332 4399 wxPyBlock_t blocked = wxPyBeginBlockThreads();
bfddbb17
RD
4400 data = new wxPyUserData(userData);
4401 wxPyEndBlockThreads(blocked);
4402 }
4403 return new wxGBSizerItem(width, height, pos, span, flag, border, data);
4404 }
1bd55598 4405SWIGINTERN wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){
bfddbb17
RD
4406 int row, col;
4407 self->GetEndPos(row, col);
4408 return wxGBPosition(row, col);
4409 }
1bd55598 4410SWIGINTERN wxGBSizerItem *wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span=wxDefaultSpan,int flag=0,int border=0,PyObject *userData=NULL){
d55e5bfc
RD
4411
4412 wxPyUserData* data = NULL;
5a446332 4413 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4414 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
d55e5bfc
RD
4415 if ( userData && (info.window || info.sizer || info.gotSize) )
4416 data = new wxPyUserData(userData);
7e08d4ef
RD
4417 if ( info.sizer )
4418 PyObject_SetAttrString(item,"thisown",Py_False);
d55e5bfc
RD
4419 wxPyEndBlockThreads(blocked);
4420
4421 // Now call the real Add method if a valid item type was found
4422 if ( info.window )
070c48b4 4423 return (wxGBSizerItem*)self->Add(info.window, pos, span, flag, border, data);
d55e5bfc 4424 else if ( info.sizer )
070c48b4 4425 return (wxGBSizerItem*)self->Add(info.sizer, pos, span, flag, border, data);
d55e5bfc 4426 else if (info.gotSize)
070c48b4
RD
4427 return (wxGBSizerItem*)self->Add(info.size.GetWidth(), info.size.GetHeight(),
4428 pos, span, flag, border, data);
4429 return NULL;
d55e5bfc
RD
4430 }
4431
4432
4433#ifdef __cplusplus
4434extern "C" {
4435#endif
1bd55598
RD
4436SWIGINTERN int EmptyString_set(PyObject *) {
4437 SWIG_Error(SWIG_AttributeError,"Variable EmptyString is read-only.");
4438 return 1;
d55e5bfc
RD
4439}
4440
4441
1bd55598
RD
4442SWIGINTERN PyObject *EmptyString_get(void) {
4443 PyObject *pyobj = 0;
4444
4445 {
d55e5bfc 4446#if wxUSE_UNICODE
1bd55598 4447 pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
d55e5bfc 4448#else
1bd55598 4449 pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
d55e5bfc 4450#endif
1bd55598
RD
4451 }
4452 return pyobj;
d55e5bfc
RD
4453}
4454
4455
1bd55598
RD
4456SWIGINTERN PyObject *_wrap_Object_GetClassName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4457 PyObject *resultobj = 0;
4458 wxObject *arg1 = (wxObject *) 0 ;
4459 wxString result;
4460 void *argp1 = 0 ;
4461 int res1 = 0 ;
4462 PyObject *swig_obj[1] ;
4463
4464 if (!args) SWIG_fail;
4465 swig_obj[0] = args;
4466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
4467 if (!SWIG_IsOK(res1)) {
4468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Object_GetClassName" "', expected argument " "1"" of type '" "wxObject *""'");
4469 }
4470 arg1 = reinterpret_cast< wxObject * >(argp1);
4471 {
4472 PyThreadState* __tstate = wxPyBeginAllowThreads();
4473 result = wxObject_GetClassName(arg1);
4474 wxPyEndAllowThreads(__tstate);
4475 if (PyErr_Occurred()) SWIG_fail;
4476 }
4477 {
d55e5bfc 4478#if wxUSE_UNICODE
1bd55598 4479 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 4480#else
1bd55598 4481 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 4482#endif
1bd55598
RD
4483 }
4484 return resultobj;
4485fail:
4486 return NULL;
d55e5bfc
RD
4487}
4488
4489
1bd55598
RD
4490SWIGINTERN PyObject *_wrap_Object_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4491 PyObject *resultobj = 0;
4492 wxObject *arg1 = (wxObject *) 0 ;
4493 void *argp1 = 0 ;
4494 int res1 = 0 ;
4495 PyObject *swig_obj[1] ;
4496
4497 if (!args) SWIG_fail;
4498 swig_obj[0] = args;
4499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
4500 if (!SWIG_IsOK(res1)) {
4501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Object_Destroy" "', expected argument " "1"" of type '" "wxObject *""'");
4502 }
4503 arg1 = reinterpret_cast< wxObject * >(argp1);
4504 {
4505 PyThreadState* __tstate = wxPyBeginAllowThreads();
4506 wxObject_Destroy(arg1);
4507 wxPyEndAllowThreads(__tstate);
4508 if (PyErr_Occurred()) SWIG_fail;
4509 }
4510 resultobj = SWIG_Py_Void();
4511 return resultobj;
4512fail:
4513 return NULL;
d55e5bfc
RD
4514}
4515
4516
8f514ab4
RD
4517SWIGINTERN PyObject *_wrap_Object_IsSameAs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4518 PyObject *resultobj = 0;
4519 wxObject *arg1 = (wxObject *) 0 ;
4520 wxObject *arg2 = 0 ;
4521 bool result;
4522 void *argp1 = 0 ;
4523 int res1 = 0 ;
4524 void *argp2 = 0 ;
4525 int res2 = 0 ;
4526 PyObject * obj0 = 0 ;
4527 PyObject * obj1 = 0 ;
4528 char * kwnames[] = {
4529 (char *) "self",(char *) "p", NULL
4530 };
4531
4532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Object_IsSameAs",kwnames,&obj0,&obj1)) SWIG_fail;
4533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
4534 if (!SWIG_IsOK(res1)) {
4535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Object_IsSameAs" "', expected argument " "1"" of type '" "wxObject const *""'");
4536 }
4537 arg1 = reinterpret_cast< wxObject * >(argp1);
4538 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxObject, 0 | 0);
4539 if (!SWIG_IsOK(res2)) {
4540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Object_IsSameAs" "', expected argument " "2"" of type '" "wxObject const &""'");
4541 }
4542 if (!argp2) {
4543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Object_IsSameAs" "', expected argument " "2"" of type '" "wxObject const &""'");
4544 }
4545 arg2 = reinterpret_cast< wxObject * >(argp2);
4546 {
4547 PyThreadState* __tstate = wxPyBeginAllowThreads();
4548 result = (bool)((wxObject const *)arg1)->IsSameAs((wxObject const &)*arg2);
4549 wxPyEndAllowThreads(__tstate);
4550 if (PyErr_Occurred()) SWIG_fail;
4551 }
4552 {
4553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4554 }
4555 return resultobj;
4556fail:
4557 return NULL;
4558}
4559
4560
1bd55598
RD
4561SWIGINTERN PyObject *Object_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4562 PyObject *obj;
4563 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4564 SWIG_TypeNewClientData(SWIGTYPE_p_wxObject, SWIG_NewClientData(obj));
4565 return SWIG_Py_Void();
d55e5bfc
RD
4566}
4567
1bd55598
RD
4568SWIGINTERN PyObject *_wrap_Size_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4569 PyObject *resultobj = 0;
4570 wxSize *arg1 = (wxSize *) 0 ;
4571 int arg2 ;
4572 void *argp1 = 0 ;
4573 int res1 = 0 ;
4574 int val2 ;
4575 int ecode2 = 0 ;
4576 PyObject *swig_obj[2] ;
4577
4578 if (!SWIG_Python_UnpackTuple(args,"Size_width_set",2,2,swig_obj)) SWIG_fail;
4579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4580 if (!SWIG_IsOK(res1)) {
4581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_width_set" "', expected argument " "1"" of type '" "wxSize *""'");
4582 }
4583 arg1 = reinterpret_cast< wxSize * >(argp1);
4584 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
4585 if (!SWIG_IsOK(ecode2)) {
4586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_width_set" "', expected argument " "2"" of type '" "int""'");
4587 }
4588 arg2 = static_cast< int >(val2);
4589 if (arg1) (arg1)->x = arg2;
4590
4591 resultobj = SWIG_Py_Void();
4592 return resultobj;
4593fail:
4594 return NULL;
d55e5bfc
RD
4595}
4596
4597
1bd55598
RD
4598SWIGINTERN PyObject *_wrap_Size_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4599 PyObject *resultobj = 0;
4600 wxSize *arg1 = (wxSize *) 0 ;
4601 int result;
4602 void *argp1 = 0 ;
4603 int res1 = 0 ;
4604 PyObject *swig_obj[1] ;
4605
4606 if (!args) SWIG_fail;
4607 swig_obj[0] = args;
4608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4609 if (!SWIG_IsOK(res1)) {
4610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_width_get" "', expected argument " "1"" of type '" "wxSize *""'");
4611 }
4612 arg1 = reinterpret_cast< wxSize * >(argp1);
4613 result = (int) ((arg1)->x);
4614 resultobj = SWIG_From_int(static_cast< int >(result));
4615 return resultobj;
4616fail:
4617 return NULL;
4618}
4619
4620
4621SWIGINTERN PyObject *_wrap_Size_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4622 PyObject *resultobj = 0;
4623 wxSize *arg1 = (wxSize *) 0 ;
4624 int arg2 ;
4625 void *argp1 = 0 ;
4626 int res1 = 0 ;
4627 int val2 ;
4628 int ecode2 = 0 ;
4629 PyObject *swig_obj[2] ;
4630
4631 if (!SWIG_Python_UnpackTuple(args,"Size_height_set",2,2,swig_obj)) SWIG_fail;
4632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4633 if (!SWIG_IsOK(res1)) {
4634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_height_set" "', expected argument " "1"" of type '" "wxSize *""'");
4635 }
4636 arg1 = reinterpret_cast< wxSize * >(argp1);
4637 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
4638 if (!SWIG_IsOK(ecode2)) {
4639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_height_set" "', expected argument " "2"" of type '" "int""'");
4640 }
4641 arg2 = static_cast< int >(val2);
4642 if (arg1) (arg1)->y = arg2;
4643
4644 resultobj = SWIG_Py_Void();
4645 return resultobj;
4646fail:
4647 return NULL;
d55e5bfc
RD
4648}
4649
4650
1bd55598
RD
4651SWIGINTERN PyObject *_wrap_Size_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4652 PyObject *resultobj = 0;
4653 wxSize *arg1 = (wxSize *) 0 ;
4654 int result;
4655 void *argp1 = 0 ;
4656 int res1 = 0 ;
4657 PyObject *swig_obj[1] ;
4658
4659 if (!args) SWIG_fail;
4660 swig_obj[0] = args;
4661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4662 if (!SWIG_IsOK(res1)) {
4663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_height_get" "', expected argument " "1"" of type '" "wxSize *""'");
4664 }
4665 arg1 = reinterpret_cast< wxSize * >(argp1);
4666 result = (int) ((arg1)->y);
4667 resultobj = SWIG_From_int(static_cast< int >(result));
4668 return resultobj;
4669fail:
4670 return NULL;
4671}
4672
4673
4674SWIGINTERN PyObject *_wrap_new_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4675 PyObject *resultobj = 0;
4676 int arg1 = (int) 0 ;
4677 int arg2 = (int) 0 ;
4678 wxSize *result = 0 ;
4679 int val1 ;
4680 int ecode1 = 0 ;
4681 int val2 ;
4682 int ecode2 = 0 ;
4683 PyObject * obj0 = 0 ;
4684 PyObject * obj1 = 0 ;
4685 char * kwnames[] = {
4686 (char *) "w",(char *) "h", NULL
4687 };
4688
4689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) SWIG_fail;
4690 if (obj0) {
4691 ecode1 = SWIG_AsVal_int(obj0, &val1);
4692 if (!SWIG_IsOK(ecode1)) {
4693 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Size" "', expected argument " "1"" of type '" "int""'");
4694 }
4695 arg1 = static_cast< int >(val1);
4696 }
4697 if (obj1) {
4698 ecode2 = SWIG_AsVal_int(obj1, &val2);
4699 if (!SWIG_IsOK(ecode2)) {
4700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Size" "', expected argument " "2"" of type '" "int""'");
4701 }
4702 arg2 = static_cast< int >(val2);
4703 }
4704 {
1bd55598 4705 result = (wxSize *)new wxSize(arg1,arg2);
1bd55598
RD
4706 if (PyErr_Occurred()) SWIG_fail;
4707 }
4708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSize, SWIG_POINTER_NEW | 0 );
4709 return resultobj;
4710fail:
4711 return NULL;
d55e5bfc
RD
4712}
4713
4714
1bd55598
RD
4715SWIGINTERN PyObject *_wrap_delete_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4716 PyObject *resultobj = 0;
4717 wxSize *arg1 = (wxSize *) 0 ;
4718 void *argp1 = 0 ;
4719 int res1 = 0 ;
4720 PyObject *swig_obj[1] ;
4721
4722 if (!args) SWIG_fail;
4723 swig_obj[0] = args;
4724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, SWIG_POINTER_DISOWN | 0 );
4725 if (!SWIG_IsOK(res1)) {
4726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Size" "', expected argument " "1"" of type '" "wxSize *""'");
4727 }
4728 arg1 = reinterpret_cast< wxSize * >(argp1);
4729 {
1bd55598 4730 delete arg1;
d55e5bfc 4731
1bd55598
RD
4732 if (PyErr_Occurred()) SWIG_fail;
4733 }
4734 resultobj = SWIG_Py_Void();
4735 return resultobj;
4736fail:
4737 return NULL;
4738}
4739
4740
4741SWIGINTERN PyObject *_wrap_Size___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4742 PyObject *resultobj = 0;
4743 wxSize *arg1 = (wxSize *) 0 ;
e9d6f3a4 4744 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4745 bool result;
4746 void *argp1 = 0 ;
4747 int res1 = 0 ;
1bd55598
RD
4748 PyObject * obj0 = 0 ;
4749 PyObject * obj1 = 0 ;
4750 char * kwnames[] = {
e9d6f3a4 4751 (char *) "self",(char *) "other", NULL
1bd55598
RD
4752 };
4753
4754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4756 if (!SWIG_IsOK(res1)) {
4757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size___eq__" "', expected argument " "1"" of type '" "wxSize *""'");
4758 }
4759 arg1 = reinterpret_cast< wxSize * >(argp1);
e9d6f3a4 4760 arg2 = obj1;
1bd55598 4761 {
e9d6f3a4 4762 result = (bool)wxSize___eq__(arg1,arg2);
1bd55598
RD
4763 if (PyErr_Occurred()) SWIG_fail;
4764 }
4765 {
4766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4767 }
4768 return resultobj;
4769fail:
4770 return NULL;
4771}
4772
4773
4774SWIGINTERN PyObject *_wrap_Size___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4775 PyObject *resultobj = 0;
4776 wxSize *arg1 = (wxSize *) 0 ;
e9d6f3a4 4777 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4778 bool result;
4779 void *argp1 = 0 ;
4780 int res1 = 0 ;
1bd55598
RD
4781 PyObject * obj0 = 0 ;
4782 PyObject * obj1 = 0 ;
4783 char * kwnames[] = {
e9d6f3a4 4784 (char *) "self",(char *) "other", NULL
1bd55598
RD
4785 };
4786
4787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4789 if (!SWIG_IsOK(res1)) {
4790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size___ne__" "', expected argument " "1"" of type '" "wxSize *""'");
4791 }
4792 arg1 = reinterpret_cast< wxSize * >(argp1);
e9d6f3a4 4793 arg2 = obj1;
1bd55598 4794 {
e9d6f3a4 4795 result = (bool)wxSize___ne__(arg1,arg2);
1bd55598
RD
4796 if (PyErr_Occurred()) SWIG_fail;
4797 }
4798 {
4799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4800 }
4801 return resultobj;
4802fail:
4803 return NULL;
4804}
4805
4806
4807SWIGINTERN PyObject *_wrap_Size___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4808 PyObject *resultobj = 0;
4809 wxSize *arg1 = (wxSize *) 0 ;
4810 wxSize *arg2 = 0 ;
4811 wxSize result;
4812 void *argp1 = 0 ;
4813 int res1 = 0 ;
4814 wxSize temp2 ;
4815 PyObject * obj0 = 0 ;
4816 PyObject * obj1 = 0 ;
4817 char * kwnames[] = {
4818 (char *) "self",(char *) "sz", NULL
4819 };
4820
4821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) SWIG_fail;
4822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4823 if (!SWIG_IsOK(res1)) {
4824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size___add__" "', expected argument " "1"" of type '" "wxSize *""'");
4825 }
4826 arg1 = reinterpret_cast< wxSize * >(argp1);
4827 {
4828 arg2 = &temp2;
4829 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4830 }
4831 {
1bd55598 4832 result = (arg1)->operator +((wxSize const &)*arg2);
1bd55598
RD
4833 if (PyErr_Occurred()) SWIG_fail;
4834 }
4835 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
4836 return resultobj;
4837fail:
4838 return NULL;
4839}
4840
4841
4842SWIGINTERN PyObject *_wrap_Size___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4843 PyObject *resultobj = 0;
4844 wxSize *arg1 = (wxSize *) 0 ;
4845 wxSize *arg2 = 0 ;
4846 wxSize result;
4847 void *argp1 = 0 ;
4848 int res1 = 0 ;
4849 wxSize temp2 ;
4850 PyObject * obj0 = 0 ;
4851 PyObject * obj1 = 0 ;
4852 char * kwnames[] = {
4853 (char *) "self",(char *) "sz", NULL
4854 };
4855
4856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
4857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4858 if (!SWIG_IsOK(res1)) {
4859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size___sub__" "', expected argument " "1"" of type '" "wxSize *""'");
4860 }
4861 arg1 = reinterpret_cast< wxSize * >(argp1);
4862 {
4863 arg2 = &temp2;
4864 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4865 }
4866 {
1bd55598 4867 result = (arg1)->operator -((wxSize const &)*arg2);
1bd55598
RD
4868 if (PyErr_Occurred()) SWIG_fail;
4869 }
4870 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
4871 return resultobj;
4872fail:
4873 return NULL;
4874}
4875
4876
4877SWIGINTERN PyObject *_wrap_Size_IncTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4878 PyObject *resultobj = 0;
4879 wxSize *arg1 = (wxSize *) 0 ;
4880 wxSize *arg2 = 0 ;
4881 void *argp1 = 0 ;
4882 int res1 = 0 ;
4883 wxSize temp2 ;
4884 PyObject * obj0 = 0 ;
4885 PyObject * obj1 = 0 ;
4886 char * kwnames[] = {
4887 (char *) "self",(char *) "sz", NULL
4888 };
4889
4890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) SWIG_fail;
4891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4892 if (!SWIG_IsOK(res1)) {
4893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_IncTo" "', expected argument " "1"" of type '" "wxSize *""'");
4894 }
4895 arg1 = reinterpret_cast< wxSize * >(argp1);
4896 {
4897 arg2 = &temp2;
4898 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4899 }
4900 {
1bd55598 4901 (arg1)->IncTo((wxSize const &)*arg2);
1bd55598
RD
4902 if (PyErr_Occurred()) SWIG_fail;
4903 }
4904 resultobj = SWIG_Py_Void();
4905 return resultobj;
4906fail:
4907 return NULL;
4908}
4909
4910
4911SWIGINTERN PyObject *_wrap_Size_DecTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4912 PyObject *resultobj = 0;
4913 wxSize *arg1 = (wxSize *) 0 ;
4914 wxSize *arg2 = 0 ;
4915 void *argp1 = 0 ;
4916 int res1 = 0 ;
4917 wxSize temp2 ;
4918 PyObject * obj0 = 0 ;
4919 PyObject * obj1 = 0 ;
4920 char * kwnames[] = {
4921 (char *) "self",(char *) "sz", NULL
4922 };
4923
4924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) SWIG_fail;
4925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4926 if (!SWIG_IsOK(res1)) {
4927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_DecTo" "', expected argument " "1"" of type '" "wxSize *""'");
4928 }
4929 arg1 = reinterpret_cast< wxSize * >(argp1);
4930 {
4931 arg2 = &temp2;
4932 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4933 }
4934 {
1bd55598 4935 (arg1)->DecTo((wxSize const &)*arg2);
1bd55598
RD
4936 if (PyErr_Occurred()) SWIG_fail;
4937 }
4938 resultobj = SWIG_Py_Void();
4939 return resultobj;
4940fail:
4941 return NULL;
4942}
4943
4944
f5263701
RD
4945SWIGINTERN PyObject *_wrap_Size_IncBy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4946 PyObject *resultobj = 0;
4947 wxSize *arg1 = (wxSize *) 0 ;
4948 int arg2 ;
4949 int arg3 ;
4950 void *argp1 = 0 ;
4951 int res1 = 0 ;
4952 int val2 ;
4953 int ecode2 = 0 ;
4954 int val3 ;
4955 int ecode3 = 0 ;
4956 PyObject * obj0 = 0 ;
4957 PyObject * obj1 = 0 ;
4958 PyObject * obj2 = 0 ;
4959 char * kwnames[] = {
4960 (char *) "self",(char *) "dx",(char *) "dy", NULL
4961 };
4962
4963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_IncBy",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4965 if (!SWIG_IsOK(res1)) {
4966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_IncBy" "', expected argument " "1"" of type '" "wxSize *""'");
4967 }
4968 arg1 = reinterpret_cast< wxSize * >(argp1);
4969 ecode2 = SWIG_AsVal_int(obj1, &val2);
4970 if (!SWIG_IsOK(ecode2)) {
4971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_IncBy" "', expected argument " "2"" of type '" "int""'");
4972 }
4973 arg2 = static_cast< int >(val2);
4974 ecode3 = SWIG_AsVal_int(obj2, &val3);
4975 if (!SWIG_IsOK(ecode3)) {
4976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Size_IncBy" "', expected argument " "3"" of type '" "int""'");
4977 }
4978 arg3 = static_cast< int >(val3);
4979 {
f5263701 4980 (arg1)->IncBy(arg2,arg3);
f5263701
RD
4981 if (PyErr_Occurred()) SWIG_fail;
4982 }
4983 resultobj = SWIG_Py_Void();
4984 return resultobj;
4985fail:
4986 return NULL;
4987}
4988
4989
4990SWIGINTERN PyObject *_wrap_Size_DecBy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4991 PyObject *resultobj = 0;
4992 wxSize *arg1 = (wxSize *) 0 ;
4993 int arg2 ;
4994 int arg3 ;
4995 void *argp1 = 0 ;
4996 int res1 = 0 ;
4997 int val2 ;
4998 int ecode2 = 0 ;
4999 int val3 ;
5000 int ecode3 = 0 ;
5001 PyObject * obj0 = 0 ;
5002 PyObject * obj1 = 0 ;
5003 PyObject * obj2 = 0 ;
5004 char * kwnames[] = {
5005 (char *) "self",(char *) "dx",(char *) "dy", NULL
5006 };
5007
5008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_DecBy",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5010 if (!SWIG_IsOK(res1)) {
5011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_DecBy" "', expected argument " "1"" of type '" "wxSize *""'");
5012 }
5013 arg1 = reinterpret_cast< wxSize * >(argp1);
5014 ecode2 = SWIG_AsVal_int(obj1, &val2);
5015 if (!SWIG_IsOK(ecode2)) {
5016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_DecBy" "', expected argument " "2"" of type '" "int""'");
5017 }
5018 arg2 = static_cast< int >(val2);
5019 ecode3 = SWIG_AsVal_int(obj2, &val3);
5020 if (!SWIG_IsOK(ecode3)) {
5021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Size_DecBy" "', expected argument " "3"" of type '" "int""'");
5022 }
5023 arg3 = static_cast< int >(val3);
5024 {
f5263701 5025 (arg1)->DecBy(arg2,arg3);
f5263701
RD
5026 if (PyErr_Occurred()) SWIG_fail;
5027 }
5028 resultobj = SWIG_Py_Void();
5029 return resultobj;
5030fail:
5031 return NULL;
5032}
5033
5034
1eeb270e
RD
5035SWIGINTERN PyObject *_wrap_Size_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5036 PyObject *resultobj = 0;
5037 wxSize *arg1 = (wxSize *) 0 ;
5038 float arg2 ;
5039 float arg3 ;
5040 void *argp1 = 0 ;
5041 int res1 = 0 ;
5042 float val2 ;
5043 int ecode2 = 0 ;
5044 float val3 ;
5045 int ecode3 = 0 ;
5046 PyObject * obj0 = 0 ;
5047 PyObject * obj1 = 0 ;
5048 PyObject * obj2 = 0 ;
5049 char * kwnames[] = {
5050 (char *) "self",(char *) "xscale",(char *) "yscale", NULL
5051 };
5052
5053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5055 if (!SWIG_IsOK(res1)) {
5056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_Scale" "', expected argument " "1"" of type '" "wxSize *""'");
5057 }
5058 arg1 = reinterpret_cast< wxSize * >(argp1);
5059 ecode2 = SWIG_AsVal_float(obj1, &val2);
5060 if (!SWIG_IsOK(ecode2)) {
5061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_Scale" "', expected argument " "2"" of type '" "float""'");
5062 }
5063 arg2 = static_cast< float >(val2);
5064 ecode3 = SWIG_AsVal_float(obj2, &val3);
5065 if (!SWIG_IsOK(ecode3)) {
5066 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Size_Scale" "', expected argument " "3"" of type '" "float""'");
5067 }
5068 arg3 = static_cast< float >(val3);
5069 {
1eeb270e 5070 (arg1)->Scale(arg2,arg3);
1eeb270e
RD
5071 if (PyErr_Occurred()) SWIG_fail;
5072 }
5073 resultobj = SWIG_Py_Void();
5074 return resultobj;
5075fail:
5076 return NULL;
5077}
5078
5079
1bd55598
RD
5080SWIGINTERN PyObject *_wrap_Size_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5081 PyObject *resultobj = 0;
5082 wxSize *arg1 = (wxSize *) 0 ;
5083 int arg2 ;
5084 int arg3 ;
5085 void *argp1 = 0 ;
5086 int res1 = 0 ;
5087 int val2 ;
5088 int ecode2 = 0 ;
5089 int val3 ;
5090 int ecode3 = 0 ;
5091 PyObject * obj0 = 0 ;
5092 PyObject * obj1 = 0 ;
5093 PyObject * obj2 = 0 ;
5094 char * kwnames[] = {
5095 (char *) "self",(char *) "w",(char *) "h", NULL
5096 };
5097
5098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5100 if (!SWIG_IsOK(res1)) {
5101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_Set" "', expected argument " "1"" of type '" "wxSize *""'");
5102 }
5103 arg1 = reinterpret_cast< wxSize * >(argp1);
5104 ecode2 = SWIG_AsVal_int(obj1, &val2);
5105 if (!SWIG_IsOK(ecode2)) {
5106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_Set" "', expected argument " "2"" of type '" "int""'");
5107 }
5108 arg2 = static_cast< int >(val2);
5109 ecode3 = SWIG_AsVal_int(obj2, &val3);
5110 if (!SWIG_IsOK(ecode3)) {
5111 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Size_Set" "', expected argument " "3"" of type '" "int""'");
5112 }
5113 arg3 = static_cast< int >(val3);
5114 {
1bd55598 5115 (arg1)->Set(arg2,arg3);
1bd55598
RD
5116 if (PyErr_Occurred()) SWIG_fail;
5117 }
5118 resultobj = SWIG_Py_Void();
5119 return resultobj;
5120fail:
5121 return NULL;
5122}
5123
5124
5125SWIGINTERN PyObject *_wrap_Size_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5126 PyObject *resultobj = 0;
5127 wxSize *arg1 = (wxSize *) 0 ;
5128 int arg2 ;
5129 void *argp1 = 0 ;
5130 int res1 = 0 ;
5131 int val2 ;
5132 int ecode2 = 0 ;
5133 PyObject * obj0 = 0 ;
5134 PyObject * obj1 = 0 ;
5135 char * kwnames[] = {
5136 (char *) "self",(char *) "w", NULL
5137 };
5138
5139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5141 if (!SWIG_IsOK(res1)) {
5142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_SetWidth" "', expected argument " "1"" of type '" "wxSize *""'");
5143 }
5144 arg1 = reinterpret_cast< wxSize * >(argp1);
5145 ecode2 = SWIG_AsVal_int(obj1, &val2);
5146 if (!SWIG_IsOK(ecode2)) {
5147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_SetWidth" "', expected argument " "2"" of type '" "int""'");
5148 }
5149 arg2 = static_cast< int >(val2);
5150 {
1bd55598 5151 (arg1)->SetWidth(arg2);
1bd55598
RD
5152 if (PyErr_Occurred()) SWIG_fail;
5153 }
5154 resultobj = SWIG_Py_Void();
5155 return resultobj;
5156fail:
5157 return NULL;
5158}
5159
5160
5161SWIGINTERN PyObject *_wrap_Size_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5162 PyObject *resultobj = 0;
5163 wxSize *arg1 = (wxSize *) 0 ;
5164 int arg2 ;
5165 void *argp1 = 0 ;
5166 int res1 = 0 ;
5167 int val2 ;
5168 int ecode2 = 0 ;
5169 PyObject * obj0 = 0 ;
5170 PyObject * obj1 = 0 ;
5171 char * kwnames[] = {
5172 (char *) "self",(char *) "h", NULL
5173 };
5174
5175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
5176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5177 if (!SWIG_IsOK(res1)) {
5178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_SetHeight" "', expected argument " "1"" of type '" "wxSize *""'");
5179 }
5180 arg1 = reinterpret_cast< wxSize * >(argp1);
5181 ecode2 = SWIG_AsVal_int(obj1, &val2);
5182 if (!SWIG_IsOK(ecode2)) {
5183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_SetHeight" "', expected argument " "2"" of type '" "int""'");
5184 }
5185 arg2 = static_cast< int >(val2);
5186 {
1bd55598 5187 (arg1)->SetHeight(arg2);
1bd55598
RD
5188 if (PyErr_Occurred()) SWIG_fail;
5189 }
5190 resultobj = SWIG_Py_Void();
5191 return resultobj;
5192fail:
5193 return NULL;
d55e5bfc
RD
5194}
5195
5196
1bd55598
RD
5197SWIGINTERN PyObject *_wrap_Size_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5198 PyObject *resultobj = 0;
5199 wxSize *arg1 = (wxSize *) 0 ;
5200 int result;
5201 void *argp1 = 0 ;
5202 int res1 = 0 ;
5203 PyObject *swig_obj[1] ;
5204
5205 if (!args) SWIG_fail;
5206 swig_obj[0] = args;
5207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5208 if (!SWIG_IsOK(res1)) {
5209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_GetWidth" "', expected argument " "1"" of type '" "wxSize const *""'");
5210 }
5211 arg1 = reinterpret_cast< wxSize * >(argp1);
5212 {
1bd55598 5213 result = (int)((wxSize const *)arg1)->GetWidth();
1bd55598
RD
5214 if (PyErr_Occurred()) SWIG_fail;
5215 }
5216 resultobj = SWIG_From_int(static_cast< int >(result));
5217 return resultobj;
5218fail:
5219 return NULL;
d55e5bfc
RD
5220}
5221
5222
1bd55598
RD
5223SWIGINTERN PyObject *_wrap_Size_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5224 PyObject *resultobj = 0;
5225 wxSize *arg1 = (wxSize *) 0 ;
5226 int result;
5227 void *argp1 = 0 ;
5228 int res1 = 0 ;
5229 PyObject *swig_obj[1] ;
5230
5231 if (!args) SWIG_fail;
5232 swig_obj[0] = args;
5233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5234 if (!SWIG_IsOK(res1)) {
5235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_GetHeight" "', expected argument " "1"" of type '" "wxSize const *""'");
5236 }
5237 arg1 = reinterpret_cast< wxSize * >(argp1);
5238 {
1bd55598 5239 result = (int)((wxSize const *)arg1)->GetHeight();
1bd55598
RD
5240 if (PyErr_Occurred()) SWIG_fail;
5241 }
5242 resultobj = SWIG_From_int(static_cast< int >(result));
5243 return resultobj;
5244fail:
5245 return NULL;
d55e5bfc
RD
5246}
5247
5248
1bd55598
RD
5249SWIGINTERN PyObject *_wrap_Size_IsFullySpecified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5250 PyObject *resultobj = 0;
5251 wxSize *arg1 = (wxSize *) 0 ;
5252 bool result;
5253 void *argp1 = 0 ;
5254 int res1 = 0 ;
5255 PyObject *swig_obj[1] ;
5256
5257 if (!args) SWIG_fail;
5258 swig_obj[0] = args;
5259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5260 if (!SWIG_IsOK(res1)) {
5261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_IsFullySpecified" "', expected argument " "1"" of type '" "wxSize const *""'");
5262 }
5263 arg1 = reinterpret_cast< wxSize * >(argp1);
5264 {
1bd55598 5265 result = (bool)((wxSize const *)arg1)->IsFullySpecified();
1bd55598
RD
5266 if (PyErr_Occurred()) SWIG_fail;
5267 }
5268 {
5269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5270 }
5271 return resultobj;
5272fail:
5273 return NULL;
5274}
5275
5276
5277SWIGINTERN PyObject *_wrap_Size_SetDefaults(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5278 PyObject *resultobj = 0;
5279 wxSize *arg1 = (wxSize *) 0 ;
5280 wxSize *arg2 = 0 ;
5281 void *argp1 = 0 ;
5282 int res1 = 0 ;
5283 wxSize temp2 ;
5284 PyObject * obj0 = 0 ;
5285 PyObject * obj1 = 0 ;
5286 char * kwnames[] = {
5287 (char *) "self",(char *) "size", NULL
5288 };
5289
5290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) SWIG_fail;
5291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5292 if (!SWIG_IsOK(res1)) {
5293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_SetDefaults" "', expected argument " "1"" of type '" "wxSize *""'");
5294 }
5295 arg1 = reinterpret_cast< wxSize * >(argp1);
5296 {
5297 arg2 = &temp2;
5298 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5299 }
5300 {
1bd55598 5301 (arg1)->SetDefaults((wxSize const &)*arg2);
1bd55598
RD
5302 if (PyErr_Occurred()) SWIG_fail;
5303 }
5304 resultobj = SWIG_Py_Void();
5305 return resultobj;
5306fail:
5307 return NULL;
d55e5bfc
RD
5308}
5309
5310
1bd55598
RD
5311SWIGINTERN PyObject *_wrap_Size_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5312 PyObject *resultobj = 0;
5313 wxSize *arg1 = (wxSize *) 0 ;
5314 PyObject *result = 0 ;
5315 void *argp1 = 0 ;
5316 int res1 = 0 ;
5317 PyObject *swig_obj[1] ;
5318
5319 if (!args) SWIG_fail;
5320 swig_obj[0] = args;
5321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5322 if (!SWIG_IsOK(res1)) {
5323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_Get" "', expected argument " "1"" of type '" "wxSize *""'");
5324 }
5325 arg1 = reinterpret_cast< wxSize * >(argp1);
5326 {
1bd55598 5327 result = (PyObject *)wxSize_Get(arg1);
1bd55598
RD
5328 if (PyErr_Occurred()) SWIG_fail;
5329 }
5330 resultobj = result;
5331 return resultobj;
5332fail:
5333 return NULL;
d55e5bfc
RD
5334}
5335
5336
1bd55598
RD
5337SWIGINTERN PyObject *Size_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5338 PyObject *obj;
5339 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5340 SWIG_TypeNewClientData(SWIGTYPE_p_wxSize, SWIG_NewClientData(obj));
5341 return SWIG_Py_Void();
d55e5bfc
RD
5342}
5343
1bd55598
RD
5344SWIGINTERN PyObject *Size_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5345 return SWIG_Python_InitShadowInstance(args);
5346}
d55e5bfc 5347
1bd55598
RD
5348SWIGINTERN PyObject *_wrap_RealPoint_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5349 PyObject *resultobj = 0;
5350 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5351 double arg2 ;
5352 void *argp1 = 0 ;
5353 int res1 = 0 ;
5354 double val2 ;
5355 int ecode2 = 0 ;
5356 PyObject *swig_obj[2] ;
5357
5358 if (!SWIG_Python_UnpackTuple(args,"RealPoint_x_set",2,2,swig_obj)) SWIG_fail;
5359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5360 if (!SWIG_IsOK(res1)) {
5361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_x_set" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5362 }
5363 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5364 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
5365 if (!SWIG_IsOK(ecode2)) {
5366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RealPoint_x_set" "', expected argument " "2"" of type '" "double""'");
5367 }
5368 arg2 = static_cast< double >(val2);
5369 if (arg1) (arg1)->x = arg2;
5370
5371 resultobj = SWIG_Py_Void();
5372 return resultobj;
5373fail:
5374 return NULL;
d55e5bfc
RD
5375}
5376
5377
1bd55598
RD
5378SWIGINTERN PyObject *_wrap_RealPoint_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5379 PyObject *resultobj = 0;
5380 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5381 double result;
5382 void *argp1 = 0 ;
5383 int res1 = 0 ;
5384 PyObject *swig_obj[1] ;
5385
5386 if (!args) SWIG_fail;
5387 swig_obj[0] = args;
5388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5389 if (!SWIG_IsOK(res1)) {
5390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_x_get" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5391 }
5392 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5393 result = (double) ((arg1)->x);
5394 resultobj = SWIG_From_double(static_cast< double >(result));
5395 return resultobj;
5396fail:
5397 return NULL;
5398}
5399
5400
5401SWIGINTERN PyObject *_wrap_RealPoint_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5402 PyObject *resultobj = 0;
5403 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5404 double arg2 ;
5405 void *argp1 = 0 ;
5406 int res1 = 0 ;
5407 double val2 ;
5408 int ecode2 = 0 ;
5409 PyObject *swig_obj[2] ;
5410
5411 if (!SWIG_Python_UnpackTuple(args,"RealPoint_y_set",2,2,swig_obj)) SWIG_fail;
5412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5413 if (!SWIG_IsOK(res1)) {
5414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_y_set" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5415 }
5416 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5417 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
5418 if (!SWIG_IsOK(ecode2)) {
5419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RealPoint_y_set" "', expected argument " "2"" of type '" "double""'");
5420 }
5421 arg2 = static_cast< double >(val2);
5422 if (arg1) (arg1)->y = arg2;
5423
5424 resultobj = SWIG_Py_Void();
5425 return resultobj;
5426fail:
5427 return NULL;
d55e5bfc
RD
5428}
5429
5430
1bd55598
RD
5431SWIGINTERN PyObject *_wrap_RealPoint_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5432 PyObject *resultobj = 0;
5433 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5434 double result;
5435 void *argp1 = 0 ;
5436 int res1 = 0 ;
5437 PyObject *swig_obj[1] ;
5438
5439 if (!args) SWIG_fail;
5440 swig_obj[0] = args;
5441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5442 if (!SWIG_IsOK(res1)) {
5443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_y_get" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5444 }
5445 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5446 result = (double) ((arg1)->y);
5447 resultobj = SWIG_From_double(static_cast< double >(result));
5448 return resultobj;
5449fail:
5450 return NULL;
5451}
5452
5453
5454SWIGINTERN PyObject *_wrap_new_RealPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5455 PyObject *resultobj = 0;
5456 double arg1 = (double) 0.0 ;
5457 double arg2 = (double) 0.0 ;
5458 wxRealPoint *result = 0 ;
5459 double val1 ;
5460 int ecode1 = 0 ;
5461 double val2 ;
5462 int ecode2 = 0 ;
5463 PyObject * obj0 = 0 ;
5464 PyObject * obj1 = 0 ;
5465 char * kwnames[] = {
5466 (char *) "x",(char *) "y", NULL
5467 };
5468
5469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5470 if (obj0) {
5471 ecode1 = SWIG_AsVal_double(obj0, &val1);
5472 if (!SWIG_IsOK(ecode1)) {
5473 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RealPoint" "', expected argument " "1"" of type '" "double""'");
5474 }
5475 arg1 = static_cast< double >(val1);
5476 }
5477 if (obj1) {
5478 ecode2 = SWIG_AsVal_double(obj1, &val2);
5479 if (!SWIG_IsOK(ecode2)) {
5480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RealPoint" "', expected argument " "2"" of type '" "double""'");
5481 }
5482 arg2 = static_cast< double >(val2);
5483 }
5484 {
1bd55598 5485 result = (wxRealPoint *)new wxRealPoint(arg1,arg2);
1bd55598
RD
5486 if (PyErr_Occurred()) SWIG_fail;
5487 }
5488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRealPoint, SWIG_POINTER_NEW | 0 );
5489 return resultobj;
5490fail:
5491 return NULL;
d55e5bfc
RD
5492}
5493
5494
1bd55598
RD
5495SWIGINTERN PyObject *_wrap_delete_RealPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5496 PyObject *resultobj = 0;
5497 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5498 void *argp1 = 0 ;
5499 int res1 = 0 ;
5500 PyObject *swig_obj[1] ;
5501
5502 if (!args) SWIG_fail;
5503 swig_obj[0] = args;
5504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, SWIG_POINTER_DISOWN | 0 );
5505 if (!SWIG_IsOK(res1)) {
5506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RealPoint" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5507 }
5508 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5509 {
1bd55598 5510 delete arg1;
d55e5bfc 5511
1bd55598
RD
5512 if (PyErr_Occurred()) SWIG_fail;
5513 }
5514 resultobj = SWIG_Py_Void();
5515 return resultobj;
5516fail:
5517 return NULL;
5518}
5519
5520
5521SWIGINTERN PyObject *_wrap_RealPoint___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5522 PyObject *resultobj = 0;
5523 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
e9d6f3a4 5524 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
5525 bool result;
5526 void *argp1 = 0 ;
5527 int res1 = 0 ;
1bd55598
RD
5528 PyObject * obj0 = 0 ;
5529 PyObject * obj1 = 0 ;
5530 char * kwnames[] = {
e9d6f3a4 5531 (char *) "self",(char *) "other", NULL
1bd55598
RD
5532 };
5533
5534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5536 if (!SWIG_IsOK(res1)) {
5537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint___eq__" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5538 }
5539 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
e9d6f3a4 5540 arg2 = obj1;
1bd55598 5541 {
e9d6f3a4 5542 result = (bool)wxRealPoint___eq__(arg1,arg2);
1bd55598
RD
5543 if (PyErr_Occurred()) SWIG_fail;
5544 }
5545 {
5546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5547 }
5548 return resultobj;
5549fail:
5550 return NULL;
5551}
5552
5553
5554SWIGINTERN PyObject *_wrap_RealPoint___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5555 PyObject *resultobj = 0;
5556 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
e9d6f3a4 5557 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
5558 bool result;
5559 void *argp1 = 0 ;
5560 int res1 = 0 ;
1bd55598
RD
5561 PyObject * obj0 = 0 ;
5562 PyObject * obj1 = 0 ;
5563 char * kwnames[] = {
e9d6f3a4 5564 (char *) "self",(char *) "other", NULL
1bd55598
RD
5565 };
5566
5567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5569 if (!SWIG_IsOK(res1)) {
5570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint___ne__" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5571 }
5572 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
e9d6f3a4 5573 arg2 = obj1;
1bd55598 5574 {
e9d6f3a4 5575 result = (bool)wxRealPoint___ne__(arg1,arg2);
1bd55598
RD
5576 if (PyErr_Occurred()) SWIG_fail;
5577 }
5578 {
5579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5580 }
5581 return resultobj;
5582fail:
5583 return NULL;
5584}
5585
5586
5587SWIGINTERN PyObject *_wrap_RealPoint___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5588 PyObject *resultobj = 0;
5589 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5590 wxRealPoint *arg2 = 0 ;
5591 wxRealPoint result;
5592 void *argp1 = 0 ;
5593 int res1 = 0 ;
5594 wxRealPoint temp2 ;
5595 PyObject * obj0 = 0 ;
5596 PyObject * obj1 = 0 ;
5597 char * kwnames[] = {
5598 (char *) "self",(char *) "pt", NULL
5599 };
5600
5601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) SWIG_fail;
5602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5603 if (!SWIG_IsOK(res1)) {
5604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint___add__" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5605 }
5606 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5607 {
5608 arg2 = &temp2;
5609 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
5610 }
5611 {
1bd55598 5612 result = (arg1)->operator +((wxRealPoint const &)*arg2);
1bd55598
RD
5613 if (PyErr_Occurred()) SWIG_fail;
5614 }
5615 resultobj = SWIG_NewPointerObj((new wxRealPoint(static_cast< const wxRealPoint& >(result))), SWIGTYPE_p_wxRealPoint, SWIG_POINTER_OWN | 0 );
5616 return resultobj;
5617fail:
5618 return NULL;
5619}
5620
5621
5622SWIGINTERN PyObject *_wrap_RealPoint___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5623 PyObject *resultobj = 0;
5624 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5625 wxRealPoint *arg2 = 0 ;
5626 wxRealPoint result;
5627 void *argp1 = 0 ;
5628 int res1 = 0 ;
5629 wxRealPoint temp2 ;
5630 PyObject * obj0 = 0 ;
5631 PyObject * obj1 = 0 ;
5632 char * kwnames[] = {
5633 (char *) "self",(char *) "pt", NULL
5634 };
5635
5636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
5637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5638 if (!SWIG_IsOK(res1)) {
5639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint___sub__" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5640 }
5641 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5642 {
5643 arg2 = &temp2;
5644 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
5645 }
5646 {
1bd55598 5647 result = (arg1)->operator -((wxRealPoint const &)*arg2);
1bd55598
RD
5648 if (PyErr_Occurred()) SWIG_fail;
5649 }
5650 resultobj = SWIG_NewPointerObj((new wxRealPoint(static_cast< const wxRealPoint& >(result))), SWIGTYPE_p_wxRealPoint, SWIG_POINTER_OWN | 0 );
5651 return resultobj;
5652fail:
5653 return NULL;
5654}
5655
5656
5657SWIGINTERN PyObject *_wrap_RealPoint_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5658 PyObject *resultobj = 0;
5659 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5660 double arg2 ;
5661 double arg3 ;
5662 void *argp1 = 0 ;
5663 int res1 = 0 ;
5664 double val2 ;
5665 int ecode2 = 0 ;
5666 double val3 ;
5667 int ecode3 = 0 ;
5668 PyObject * obj0 = 0 ;
5669 PyObject * obj1 = 0 ;
5670 PyObject * obj2 = 0 ;
5671 char * kwnames[] = {
5672 (char *) "self",(char *) "x",(char *) "y", NULL
5673 };
5674
5675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5677 if (!SWIG_IsOK(res1)) {
5678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_Set" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5679 }
5680 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5681 ecode2 = SWIG_AsVal_double(obj1, &val2);
5682 if (!SWIG_IsOK(ecode2)) {
5683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RealPoint_Set" "', expected argument " "2"" of type '" "double""'");
5684 }
5685 arg2 = static_cast< double >(val2);
5686 ecode3 = SWIG_AsVal_double(obj2, &val3);
5687 if (!SWIG_IsOK(ecode3)) {
5688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RealPoint_Set" "', expected argument " "3"" of type '" "double""'");
5689 }
5690 arg3 = static_cast< double >(val3);
5691 {
1bd55598 5692 wxRealPoint_Set(arg1,arg2,arg3);
1bd55598
RD
5693 if (PyErr_Occurred()) SWIG_fail;
5694 }
5695 resultobj = SWIG_Py_Void();
5696 return resultobj;
5697fail:
5698 return NULL;
d55e5bfc
RD
5699}
5700
5701
1bd55598
RD
5702SWIGINTERN PyObject *_wrap_RealPoint_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5703 PyObject *resultobj = 0;
5704 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5705 PyObject *result = 0 ;
5706 void *argp1 = 0 ;
5707 int res1 = 0 ;
5708 PyObject *swig_obj[1] ;
5709
5710 if (!args) SWIG_fail;
5711 swig_obj[0] = args;
5712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5713 if (!SWIG_IsOK(res1)) {
5714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_Get" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5715 }
5716 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5717 {
1bd55598 5718 result = (PyObject *)wxRealPoint_Get(arg1);
1bd55598
RD
5719 if (PyErr_Occurred()) SWIG_fail;
5720 }
5721 resultobj = result;
5722 return resultobj;
5723fail:
5724 return NULL;
d55e5bfc
RD
5725}
5726
5727
1bd55598
RD
5728SWIGINTERN PyObject *RealPoint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5729 PyObject *obj;
5730 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5731 SWIG_TypeNewClientData(SWIGTYPE_p_wxRealPoint, SWIG_NewClientData(obj));
5732 return SWIG_Py_Void();
d55e5bfc
RD
5733}
5734
1bd55598
RD
5735SWIGINTERN PyObject *RealPoint_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5736 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
5737}
5738
1bd55598
RD
5739SWIGINTERN PyObject *_wrap_Point_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5740 PyObject *resultobj = 0;
5741 wxPoint *arg1 = (wxPoint *) 0 ;
5742 int arg2 ;
5743 void *argp1 = 0 ;
5744 int res1 = 0 ;
5745 int val2 ;
5746 int ecode2 = 0 ;
5747 PyObject *swig_obj[2] ;
5748
5749 if (!SWIG_Python_UnpackTuple(args,"Point_x_set",2,2,swig_obj)) SWIG_fail;
5750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
5751 if (!SWIG_IsOK(res1)) {
5752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_x_set" "', expected argument " "1"" of type '" "wxPoint *""'");
5753 }
5754 arg1 = reinterpret_cast< wxPoint * >(argp1);
5755 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
5756 if (!SWIG_IsOK(ecode2)) {
5757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point_x_set" "', expected argument " "2"" of type '" "int""'");
5758 }
5759 arg2 = static_cast< int >(val2);
5760 if (arg1) (arg1)->x = arg2;
5761
5762 resultobj = SWIG_Py_Void();
5763 return resultobj;
5764fail:
5765 return NULL;
d55e5bfc
RD
5766}
5767
5768
1bd55598
RD
5769SWIGINTERN PyObject *_wrap_Point_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5770 PyObject *resultobj = 0;
5771 wxPoint *arg1 = (wxPoint *) 0 ;
5772 int result;
5773 void *argp1 = 0 ;
5774 int res1 = 0 ;
5775 PyObject *swig_obj[1] ;
5776
5777 if (!args) SWIG_fail;
5778 swig_obj[0] = args;
5779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
5780 if (!SWIG_IsOK(res1)) {
5781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_x_get" "', expected argument " "1"" of type '" "wxPoint *""'");
5782 }
5783 arg1 = reinterpret_cast< wxPoint * >(argp1);
5784 result = (int) ((arg1)->x);
5785 resultobj = SWIG_From_int(static_cast< int >(result));
5786 return resultobj;
5787fail:
5788 return NULL;
5789}
5790
5791
5792SWIGINTERN PyObject *_wrap_Point_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5793 PyObject *resultobj = 0;
5794 wxPoint *arg1 = (wxPoint *) 0 ;
5795 int arg2 ;
5796 void *argp1 = 0 ;
5797 int res1 = 0 ;
5798 int val2 ;
5799 int ecode2 = 0 ;
5800 PyObject *swig_obj[2] ;
5801
5802 if (!SWIG_Python_UnpackTuple(args,"Point_y_set",2,2,swig_obj)) SWIG_fail;
5803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
5804 if (!SWIG_IsOK(res1)) {
5805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_y_set" "', expected argument " "1"" of type '" "wxPoint *""'");
5806 }
5807 arg1 = reinterpret_cast< wxPoint * >(argp1);
5808 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
5809 if (!SWIG_IsOK(ecode2)) {
5810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point_y_set" "', expected argument " "2"" of type '" "int""'");
5811 }
5812 arg2 = static_cast< int >(val2);
5813 if (arg1) (arg1)->y = arg2;
5814
5815 resultobj = SWIG_Py_Void();
5816 return resultobj;
5817fail:
5818 return NULL;
d55e5bfc
RD
5819}
5820
5821
1bd55598
RD
5822SWIGINTERN PyObject *_wrap_Point_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5823 PyObject *resultobj = 0;
5824 wxPoint *arg1 = (wxPoint *) 0 ;
5825 int result;
5826 void *argp1 = 0 ;
5827 int res1 = 0 ;
5828 PyObject *swig_obj[1] ;
5829
5830 if (!args) SWIG_fail;
5831 swig_obj[0] = args;
5832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
5833 if (!SWIG_IsOK(res1)) {
5834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_y_get" "', expected argument " "1"" of type '" "wxPoint *""'");
5835 }
5836 arg1 = reinterpret_cast< wxPoint * >(argp1);
5837 result = (int) ((arg1)->y);
5838 resultobj = SWIG_From_int(static_cast< int >(result));
5839 return resultobj;
5840fail:
5841 return NULL;
5842}
5843
5844
5845SWIGINTERN PyObject *_wrap_new_Point(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5846 PyObject *resultobj = 0;
5847 int arg1 = (int) 0 ;
5848 int arg2 = (int) 0 ;
5849 wxPoint *result = 0 ;
5850 int val1 ;
5851 int ecode1 = 0 ;
5852 int val2 ;
5853 int ecode2 = 0 ;
5854 PyObject * obj0 = 0 ;
5855 PyObject * obj1 = 0 ;
5856 char * kwnames[] = {
5857 (char *) "x",(char *) "y", NULL
5858 };
5859
5860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) SWIG_fail;
5861 if (obj0) {
5862 ecode1 = SWIG_AsVal_int(obj0, &val1);
5863 if (!SWIG_IsOK(ecode1)) {
5864 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Point" "', expected argument " "1"" of type '" "int""'");
5865 }
5866 arg1 = static_cast< int >(val1);
5867 }
5868 if (obj1) {
5869 ecode2 = SWIG_AsVal_int(obj1, &val2);
5870 if (!SWIG_IsOK(ecode2)) {
5871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Point" "', expected argument " "2"" of type '" "int""'");
5872 }
5873 arg2 = static_cast< int >(val2);
5874 }
5875 {
1bd55598 5876 result = (wxPoint *)new wxPoint(arg1,arg2);
1bd55598
RD
5877 if (PyErr_Occurred()) SWIG_fail;
5878 }
5879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, SWIG_POINTER_NEW | 0 );
5880 return resultobj;
5881fail:
5882 return NULL;
d55e5bfc
RD
5883}
5884
5885
1bd55598
RD
5886SWIGINTERN PyObject *_wrap_delete_Point(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5887 PyObject *resultobj = 0;
5888 wxPoint *arg1 = (wxPoint *) 0 ;
5889 void *argp1 = 0 ;
5890 int res1 = 0 ;
5891 PyObject *swig_obj[1] ;
5892
5893 if (!args) SWIG_fail;
5894 swig_obj[0] = args;
5895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, SWIG_POINTER_DISOWN | 0 );
5896 if (!SWIG_IsOK(res1)) {
5897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Point" "', expected argument " "1"" of type '" "wxPoint *""'");
5898 }
5899 arg1 = reinterpret_cast< wxPoint * >(argp1);
5900 {
1bd55598 5901 delete arg1;
d55e5bfc 5902
1bd55598
RD
5903 if (PyErr_Occurred()) SWIG_fail;
5904 }
5905 resultobj = SWIG_Py_Void();
5906 return resultobj;
5907fail:
5908 return NULL;
5909}
5910
5911
5912SWIGINTERN PyObject *_wrap_Point___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5913 PyObject *resultobj = 0;
5914 wxPoint *arg1 = (wxPoint *) 0 ;
e9d6f3a4 5915 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
5916 bool result;
5917 void *argp1 = 0 ;
5918 int res1 = 0 ;
1bd55598
RD
5919 PyObject * obj0 = 0 ;
5920 PyObject * obj1 = 0 ;
5921 char * kwnames[] = {
e9d6f3a4 5922 (char *) "self",(char *) "other", NULL
1bd55598
RD
5923 };
5924
5925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
5927 if (!SWIG_IsOK(res1)) {
5928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___eq__" "', expected argument " "1"" of type '" "wxPoint *""'");
5929 }
5930 arg1 = reinterpret_cast< wxPoint * >(argp1);
e9d6f3a4 5931 arg2 = obj1;
1bd55598 5932 {
e9d6f3a4 5933 result = (bool)wxPoint___eq__(arg1,arg2);
1bd55598
RD
5934 if (PyErr_Occurred()) SWIG_fail;
5935 }
5936 {
5937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5938 }
5939 return resultobj;
5940fail:
5941 return NULL;
5942}
5943
5944
5945SWIGINTERN PyObject *_wrap_Point___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5946 PyObject *resultobj = 0;
5947 wxPoint *arg1 = (wxPoint *) 0 ;
e9d6f3a4 5948 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
5949 bool result;
5950 void *argp1 = 0 ;
5951 int res1 = 0 ;
1bd55598
RD
5952 PyObject * obj0 = 0 ;
5953 PyObject * obj1 = 0 ;
5954 char * kwnames[] = {
e9d6f3a4 5955 (char *) "self",(char *) "other", NULL
1bd55598
RD
5956 };
5957
5958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
5960 if (!SWIG_IsOK(res1)) {
5961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___ne__" "', expected argument " "1"" of type '" "wxPoint *""'");
5962 }
5963 arg1 = reinterpret_cast< wxPoint * >(argp1);
e9d6f3a4 5964 arg2 = obj1;
1bd55598 5965 {
e9d6f3a4 5966 result = (bool)wxPoint___ne__(arg1,arg2);
1bd55598
RD
5967 if (PyErr_Occurred()) SWIG_fail;
5968 }
5969 {
5970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5971 }
5972 return resultobj;
5973fail:
5974 return NULL;
5975}
5976
5977
5978SWIGINTERN PyObject *_wrap_Point___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5979 PyObject *resultobj = 0;
5980 wxPoint *arg1 = (wxPoint *) 0 ;
5981 wxPoint *arg2 = 0 ;
5982 wxPoint result;
5983 void *argp1 = 0 ;
5984 int res1 = 0 ;
5985 wxPoint temp2 ;
5986 PyObject * obj0 = 0 ;
5987 PyObject * obj1 = 0 ;
5988 char * kwnames[] = {
5989 (char *) "self",(char *) "pt", NULL
5990 };
5991
5992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) SWIG_fail;
5993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
5994 if (!SWIG_IsOK(res1)) {
5995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___add__" "', expected argument " "1"" of type '" "wxPoint *""'");
5996 }
5997 arg1 = reinterpret_cast< wxPoint * >(argp1);
5998 {
5999 arg2 = &temp2;
6000 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6001 }
6002 {
1bd55598 6003 result = (arg1)->operator +((wxPoint const &)*arg2);
1bd55598
RD
6004 if (PyErr_Occurred()) SWIG_fail;
6005 }
6006 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6007 return resultobj;
6008fail:
6009 return NULL;
6010}
6011
6012
6013SWIGINTERN PyObject *_wrap_Point___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6014 PyObject *resultobj = 0;
6015 wxPoint *arg1 = (wxPoint *) 0 ;
6016 wxPoint *arg2 = 0 ;
6017 wxPoint result;
6018 void *argp1 = 0 ;
6019 int res1 = 0 ;
6020 wxPoint temp2 ;
6021 PyObject * obj0 = 0 ;
6022 PyObject * obj1 = 0 ;
6023 char * kwnames[] = {
6024 (char *) "self",(char *) "pt", NULL
6025 };
6026
6027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
6028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
6029 if (!SWIG_IsOK(res1)) {
6030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___sub__" "', expected argument " "1"" of type '" "wxPoint *""'");
6031 }
6032 arg1 = reinterpret_cast< wxPoint * >(argp1);
6033 {
6034 arg2 = &temp2;
6035 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6036 }
6037 {
1bd55598 6038 result = (arg1)->operator -((wxPoint const &)*arg2);
1bd55598
RD
6039 if (PyErr_Occurred()) SWIG_fail;
6040 }
6041 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6042 return resultobj;
6043fail:
6044 return NULL;
6045}
6046
6047
6048SWIGINTERN PyObject *_wrap_Point___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6049 PyObject *resultobj = 0;
6050 wxPoint *arg1 = (wxPoint *) 0 ;
6051 wxPoint *arg2 = 0 ;
6052 wxPoint *result = 0 ;
6053 void *argp1 = 0 ;
6054 int res1 = 0 ;
6055 wxPoint temp2 ;
6056 PyObject * obj0 = 0 ;
6057 PyObject * obj1 = 0 ;
6058 char * kwnames[] = {
6059 (char *) "self",(char *) "pt", NULL
6060 };
6061
6062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) SWIG_fail;
6063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, SWIG_POINTER_DISOWN | 0 );
6064 if (!SWIG_IsOK(res1)) {
6065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___iadd__" "', expected argument " "1"" of type '" "wxPoint *""'");
6066 }
6067 arg1 = reinterpret_cast< wxPoint * >(argp1);
6068 {
6069 arg2 = &temp2;
6070 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6071 }
6072 {
36ed4f51 6073 {
1bd55598
RD
6074 wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2);
6075 result = (wxPoint *) &_result_ref;
36ed4f51 6076 }
1bd55598
RD
6077 if (PyErr_Occurred()) SWIG_fail;
6078 }
6079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6080 return resultobj;
6081fail:
6082 return NULL;
6083}
6084
6085
6086SWIGINTERN PyObject *_wrap_Point___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6087 PyObject *resultobj = 0;
6088 wxPoint *arg1 = (wxPoint *) 0 ;
6089 wxPoint *arg2 = 0 ;
6090 wxPoint *result = 0 ;
6091 void *argp1 = 0 ;
6092 int res1 = 0 ;
6093 wxPoint temp2 ;
6094 PyObject * obj0 = 0 ;
6095 PyObject * obj1 = 0 ;
6096 char * kwnames[] = {
6097 (char *) "self",(char *) "pt", NULL
6098 };
6099
6100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) SWIG_fail;
6101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, SWIG_POINTER_DISOWN | 0 );
6102 if (!SWIG_IsOK(res1)) {
6103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___isub__" "', expected argument " "1"" of type '" "wxPoint *""'");
6104 }
6105 arg1 = reinterpret_cast< wxPoint * >(argp1);
6106 {
6107 arg2 = &temp2;
6108 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6109 }
6110 {
36ed4f51 6111 {
1bd55598
RD
6112 wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2);
6113 result = (wxPoint *) &_result_ref;
36ed4f51 6114 }
1bd55598
RD
6115 if (PyErr_Occurred()) SWIG_fail;
6116 }
6117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6118 return resultobj;
6119fail:
6120 return NULL;
6121}
6122
6123
6124SWIGINTERN PyObject *_wrap_Point_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6125 PyObject *resultobj = 0;
6126 wxPoint *arg1 = (wxPoint *) 0 ;
6127 long arg2 ;
6128 long arg3 ;
6129 void *argp1 = 0 ;
6130 int res1 = 0 ;
6131 long val2 ;
6132 int ecode2 = 0 ;
6133 long val3 ;
6134 int ecode3 = 0 ;
6135 PyObject * obj0 = 0 ;
6136 PyObject * obj1 = 0 ;
6137 PyObject * obj2 = 0 ;
6138 char * kwnames[] = {
6139 (char *) "self",(char *) "x",(char *) "y", NULL
6140 };
6141
6142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
6144 if (!SWIG_IsOK(res1)) {
6145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_Set" "', expected argument " "1"" of type '" "wxPoint *""'");
6146 }
6147 arg1 = reinterpret_cast< wxPoint * >(argp1);
6148 ecode2 = SWIG_AsVal_long(obj1, &val2);
6149 if (!SWIG_IsOK(ecode2)) {
6150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point_Set" "', expected argument " "2"" of type '" "long""'");
6151 }
6152 arg2 = static_cast< long >(val2);
6153 ecode3 = SWIG_AsVal_long(obj2, &val3);
6154 if (!SWIG_IsOK(ecode3)) {
6155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Point_Set" "', expected argument " "3"" of type '" "long""'");
6156 }
6157 arg3 = static_cast< long >(val3);
6158 {
1bd55598 6159 wxPoint_Set(arg1,arg2,arg3);
1bd55598
RD
6160 if (PyErr_Occurred()) SWIG_fail;
6161 }
6162 resultobj = SWIG_Py_Void();
6163 return resultobj;
6164fail:
6165 return NULL;
d55e5bfc
RD
6166}
6167
6168
1bd55598
RD
6169SWIGINTERN PyObject *_wrap_Point_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6170 PyObject *resultobj = 0;
6171 wxPoint *arg1 = (wxPoint *) 0 ;
6172 PyObject *result = 0 ;
6173 void *argp1 = 0 ;
6174 int res1 = 0 ;
6175 PyObject *swig_obj[1] ;
6176
6177 if (!args) SWIG_fail;
6178 swig_obj[0] = args;
6179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
6180 if (!SWIG_IsOK(res1)) {
6181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_Get" "', expected argument " "1"" of type '" "wxPoint *""'");
6182 }
6183 arg1 = reinterpret_cast< wxPoint * >(argp1);
6184 {
1bd55598 6185 result = (PyObject *)wxPoint_Get(arg1);
1bd55598
RD
6186 if (PyErr_Occurred()) SWIG_fail;
6187 }
6188 resultobj = result;
6189 return resultobj;
6190fail:
6191 return NULL;
6192}
6193
6194
6195SWIGINTERN PyObject *Point_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6196 PyObject *obj;
6197 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6198 SWIG_TypeNewClientData(SWIGTYPE_p_wxPoint, SWIG_NewClientData(obj));
6199 return SWIG_Py_Void();
6200}
6201
6202SWIGINTERN PyObject *Point_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6203 return SWIG_Python_InitShadowInstance(args);
6204}
6205
6206SWIGINTERN PyObject *_wrap_new_Rect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6207 PyObject *resultobj = 0;
6208 int arg1 = (int) 0 ;
6209 int arg2 = (int) 0 ;
6210 int arg3 = (int) 0 ;
6211 int arg4 = (int) 0 ;
6212 wxRect *result = 0 ;
6213 int val1 ;
6214 int ecode1 = 0 ;
6215 int val2 ;
6216 int ecode2 = 0 ;
6217 int val3 ;
6218 int ecode3 = 0 ;
6219 int val4 ;
6220 int ecode4 = 0 ;
6221 PyObject * obj0 = 0 ;
6222 PyObject * obj1 = 0 ;
6223 PyObject * obj2 = 0 ;
6224 PyObject * obj3 = 0 ;
6225 char * kwnames[] = {
6226 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6227 };
6228
6229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6230 if (obj0) {
6231 ecode1 = SWIG_AsVal_int(obj0, &val1);
6232 if (!SWIG_IsOK(ecode1)) {
6233 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Rect" "', expected argument " "1"" of type '" "int""'");
6234 }
6235 arg1 = static_cast< int >(val1);
6236 }
6237 if (obj1) {
6238 ecode2 = SWIG_AsVal_int(obj1, &val2);
6239 if (!SWIG_IsOK(ecode2)) {
6240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Rect" "', expected argument " "2"" of type '" "int""'");
6241 }
6242 arg2 = static_cast< int >(val2);
6243 }
6244 if (obj2) {
6245 ecode3 = SWIG_AsVal_int(obj2, &val3);
6246 if (!SWIG_IsOK(ecode3)) {
6247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Rect" "', expected argument " "3"" of type '" "int""'");
6248 }
6249 arg3 = static_cast< int >(val3);
6250 }
6251 if (obj3) {
6252 ecode4 = SWIG_AsVal_int(obj3, &val4);
6253 if (!SWIG_IsOK(ecode4)) {
6254 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Rect" "', expected argument " "4"" of type '" "int""'");
6255 }
6256 arg4 = static_cast< int >(val4);
6257 }
6258 {
1bd55598 6259 result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4);
1bd55598
RD
6260 if (PyErr_Occurred()) SWIG_fail;
6261 }
6262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, SWIG_POINTER_NEW | 0 );
6263 return resultobj;
6264fail:
6265 return NULL;
6266}
6267
6268
6269SWIGINTERN PyObject *_wrap_new_RectPP(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6270 PyObject *resultobj = 0;
6271 wxPoint *arg1 = 0 ;
6272 wxPoint *arg2 = 0 ;
6273 wxRect *result = 0 ;
6274 wxPoint temp1 ;
6275 wxPoint temp2 ;
6276 PyObject * obj0 = 0 ;
6277 PyObject * obj1 = 0 ;
6278 char * kwnames[] = {
6279 (char *) "topLeft",(char *) "bottomRight", NULL
6280 };
6281
6282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) SWIG_fail;
6283 {
6284 arg1 = &temp1;
6285 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
6286 }
6287 {
6288 arg2 = &temp2;
6289 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6290 }
6291 {
1bd55598 6292 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2);
1bd55598
RD
6293 if (PyErr_Occurred()) SWIG_fail;
6294 }
6295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
6296 return resultobj;
6297fail:
6298 return NULL;
6299}
6300
6301
6302SWIGINTERN PyObject *_wrap_new_RectPS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6303 PyObject *resultobj = 0;
6304 wxPoint *arg1 = 0 ;
6305 wxSize *arg2 = 0 ;
6306 wxRect *result = 0 ;
6307 wxPoint temp1 ;
6308 wxSize temp2 ;
6309 PyObject * obj0 = 0 ;
6310 PyObject * obj1 = 0 ;
6311 char * kwnames[] = {
6312 (char *) "pos",(char *) "size", NULL
6313 };
6314
6315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) SWIG_fail;
6316 {
6317 arg1 = &temp1;
6318 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
6319 }
6320 {
6321 arg2 = &temp2;
6322 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6323 }
6324 {
1bd55598 6325 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2);
1bd55598
RD
6326 if (PyErr_Occurred()) SWIG_fail;
6327 }
6328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
6329 return resultobj;
6330fail:
6331 return NULL;
d55e5bfc
RD
6332}
6333
6334
1bd55598
RD
6335SWIGINTERN PyObject *_wrap_new_RectS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6336 PyObject *resultobj = 0;
6337 wxSize *arg1 = 0 ;
6338 wxRect *result = 0 ;
6339 wxSize temp1 ;
6340 PyObject * obj0 = 0 ;
6341 char * kwnames[] = {
6342 (char *) "size", NULL
6343 };
6344
6345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RectS",kwnames,&obj0)) SWIG_fail;
6346 {
6347 arg1 = &temp1;
6348 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
6349 }
6350 {
1bd55598 6351 result = (wxRect *)new wxRect((wxSize const &)*arg1);
1bd55598
RD
6352 if (PyErr_Occurred()) SWIG_fail;
6353 }
6354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
6355 return resultobj;
6356fail:
6357 return NULL;
d55e5bfc
RD
6358}
6359
6360
1bd55598
RD
6361SWIGINTERN PyObject *_wrap_delete_Rect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6362 PyObject *resultobj = 0;
6363 wxRect *arg1 = (wxRect *) 0 ;
6364 void *argp1 = 0 ;
6365 int res1 = 0 ;
6366 PyObject *swig_obj[1] ;
6367
6368 if (!args) SWIG_fail;
6369 swig_obj[0] = args;
6370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, SWIG_POINTER_DISOWN | 0 );
6371 if (!SWIG_IsOK(res1)) {
6372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Rect" "', expected argument " "1"" of type '" "wxRect *""'");
6373 }
6374 arg1 = reinterpret_cast< wxRect * >(argp1);
6375 {
1bd55598 6376 delete arg1;
d55e5bfc 6377
1bd55598
RD
6378 if (PyErr_Occurred()) SWIG_fail;
6379 }
6380 resultobj = SWIG_Py_Void();
6381 return resultobj;
6382fail:
6383 return NULL;
d55e5bfc
RD
6384}
6385
6386
1bd55598
RD
6387SWIGINTERN PyObject *_wrap_Rect_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6388 PyObject *resultobj = 0;
6389 wxRect *arg1 = (wxRect *) 0 ;
6390 int result;
6391 void *argp1 = 0 ;
6392 int res1 = 0 ;
6393 PyObject *swig_obj[1] ;
6394
6395 if (!args) SWIG_fail;
6396 swig_obj[0] = args;
6397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6398 if (!SWIG_IsOK(res1)) {
6399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetX" "', expected argument " "1"" of type '" "wxRect const *""'");
6400 }
6401 arg1 = reinterpret_cast< wxRect * >(argp1);
6402 {
1bd55598 6403 result = (int)((wxRect const *)arg1)->GetX();
1bd55598
RD
6404 if (PyErr_Occurred()) SWIG_fail;
6405 }
6406 resultobj = SWIG_From_int(static_cast< int >(result));
6407 return resultobj;
6408fail:
6409 return NULL;
6410}
6411
6412
6413SWIGINTERN PyObject *_wrap_Rect_SetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6414 PyObject *resultobj = 0;
6415 wxRect *arg1 = (wxRect *) 0 ;
6416 int arg2 ;
6417 void *argp1 = 0 ;
6418 int res1 = 0 ;
6419 int val2 ;
6420 int ecode2 = 0 ;
6421 PyObject * obj0 = 0 ;
6422 PyObject * obj1 = 0 ;
6423 char * kwnames[] = {
6424 (char *) "self",(char *) "x", NULL
6425 };
6426
6427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) SWIG_fail;
6428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6429 if (!SWIG_IsOK(res1)) {
6430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetX" "', expected argument " "1"" of type '" "wxRect *""'");
6431 }
6432 arg1 = reinterpret_cast< wxRect * >(argp1);
6433 ecode2 = SWIG_AsVal_int(obj1, &val2);
6434 if (!SWIG_IsOK(ecode2)) {
6435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetX" "', expected argument " "2"" of type '" "int""'");
6436 }
6437 arg2 = static_cast< int >(val2);
6438 {
1bd55598 6439 (arg1)->SetX(arg2);
1bd55598
RD
6440 if (PyErr_Occurred()) SWIG_fail;
6441 }
6442 resultobj = SWIG_Py_Void();
6443 return resultobj;
6444fail:
6445 return NULL;
d55e5bfc
RD
6446}
6447
6448
1bd55598
RD
6449SWIGINTERN PyObject *_wrap_Rect_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6450 PyObject *resultobj = 0;
6451 wxRect *arg1 = (wxRect *) 0 ;
6452 int result;
6453 void *argp1 = 0 ;
6454 int res1 = 0 ;
6455 PyObject *swig_obj[1] ;
6456
6457 if (!args) SWIG_fail;
6458 swig_obj[0] = args;
6459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6460 if (!SWIG_IsOK(res1)) {
6461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetY" "', expected argument " "1"" of type '" "wxRect *""'");
6462 }
6463 arg1 = reinterpret_cast< wxRect * >(argp1);
6464 {
1bd55598 6465 result = (int)(arg1)->GetY();
1bd55598
RD
6466 if (PyErr_Occurred()) SWIG_fail;
6467 }
6468 resultobj = SWIG_From_int(static_cast< int >(result));
6469 return resultobj;
6470fail:
6471 return NULL;
6472}
6473
6474
6475SWIGINTERN PyObject *_wrap_Rect_SetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6476 PyObject *resultobj = 0;
6477 wxRect *arg1 = (wxRect *) 0 ;
6478 int arg2 ;
6479 void *argp1 = 0 ;
6480 int res1 = 0 ;
6481 int val2 ;
6482 int ecode2 = 0 ;
6483 PyObject * obj0 = 0 ;
6484 PyObject * obj1 = 0 ;
6485 char * kwnames[] = {
6486 (char *) "self",(char *) "y", NULL
6487 };
6488
6489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) SWIG_fail;
6490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6491 if (!SWIG_IsOK(res1)) {
6492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetY" "', expected argument " "1"" of type '" "wxRect *""'");
6493 }
6494 arg1 = reinterpret_cast< wxRect * >(argp1);
6495 ecode2 = SWIG_AsVal_int(obj1, &val2);
6496 if (!SWIG_IsOK(ecode2)) {
6497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetY" "', expected argument " "2"" of type '" "int""'");
6498 }
6499 arg2 = static_cast< int >(val2);
6500 {
1bd55598 6501 (arg1)->SetY(arg2);
1bd55598
RD
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 resultobj = SWIG_Py_Void();
6505 return resultobj;
6506fail:
6507 return NULL;
d55e5bfc
RD
6508}
6509
6510
1bd55598
RD
6511SWIGINTERN PyObject *_wrap_Rect_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6512 PyObject *resultobj = 0;
6513 wxRect *arg1 = (wxRect *) 0 ;
6514 int result;
6515 void *argp1 = 0 ;
6516 int res1 = 0 ;
6517 PyObject *swig_obj[1] ;
6518
6519 if (!args) SWIG_fail;
6520 swig_obj[0] = args;
6521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6522 if (!SWIG_IsOK(res1)) {
6523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetWidth" "', expected argument " "1"" of type '" "wxRect const *""'");
6524 }
6525 arg1 = reinterpret_cast< wxRect * >(argp1);
6526 {
1bd55598 6527 result = (int)((wxRect const *)arg1)->GetWidth();
1bd55598
RD
6528 if (PyErr_Occurred()) SWIG_fail;
6529 }
6530 resultobj = SWIG_From_int(static_cast< int >(result));
6531 return resultobj;
6532fail:
6533 return NULL;
6534}
6535
6536
6537SWIGINTERN PyObject *_wrap_Rect_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6538 PyObject *resultobj = 0;
6539 wxRect *arg1 = (wxRect *) 0 ;
6540 int arg2 ;
6541 void *argp1 = 0 ;
6542 int res1 = 0 ;
6543 int val2 ;
6544 int ecode2 = 0 ;
6545 PyObject * obj0 = 0 ;
6546 PyObject * obj1 = 0 ;
6547 char * kwnames[] = {
6548 (char *) "self",(char *) "w", NULL
6549 };
6550
6551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6553 if (!SWIG_IsOK(res1)) {
6554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetWidth" "', expected argument " "1"" of type '" "wxRect *""'");
6555 }
6556 arg1 = reinterpret_cast< wxRect * >(argp1);
6557 ecode2 = SWIG_AsVal_int(obj1, &val2);
6558 if (!SWIG_IsOK(ecode2)) {
6559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetWidth" "', expected argument " "2"" of type '" "int""'");
6560 }
6561 arg2 = static_cast< int >(val2);
6562 {
1bd55598 6563 (arg1)->SetWidth(arg2);
1bd55598
RD
6564 if (PyErr_Occurred()) SWIG_fail;
6565 }
6566 resultobj = SWIG_Py_Void();
6567 return resultobj;
6568fail:
6569 return NULL;
d55e5bfc
RD
6570}
6571
6572
1bd55598
RD
6573SWIGINTERN PyObject *_wrap_Rect_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6574 PyObject *resultobj = 0;
6575 wxRect *arg1 = (wxRect *) 0 ;
6576 int result;
6577 void *argp1 = 0 ;
6578 int res1 = 0 ;
6579 PyObject *swig_obj[1] ;
6580
6581 if (!args) SWIG_fail;
6582 swig_obj[0] = args;
6583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6584 if (!SWIG_IsOK(res1)) {
6585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetHeight" "', expected argument " "1"" of type '" "wxRect const *""'");
6586 }
6587 arg1 = reinterpret_cast< wxRect * >(argp1);
6588 {
1bd55598 6589 result = (int)((wxRect const *)arg1)->GetHeight();
1bd55598
RD
6590 if (PyErr_Occurred()) SWIG_fail;
6591 }
6592 resultobj = SWIG_From_int(static_cast< int >(result));
6593 return resultobj;
6594fail:
6595 return NULL;
6596}
6597
6598
6599SWIGINTERN PyObject *_wrap_Rect_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6600 PyObject *resultobj = 0;
6601 wxRect *arg1 = (wxRect *) 0 ;
6602 int arg2 ;
6603 void *argp1 = 0 ;
6604 int res1 = 0 ;
6605 int val2 ;
6606 int ecode2 = 0 ;
6607 PyObject * obj0 = 0 ;
6608 PyObject * obj1 = 0 ;
6609 char * kwnames[] = {
6610 (char *) "self",(char *) "h", NULL
6611 };
6612
6613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6615 if (!SWIG_IsOK(res1)) {
6616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetHeight" "', expected argument " "1"" of type '" "wxRect *""'");
6617 }
6618 arg1 = reinterpret_cast< wxRect * >(argp1);
6619 ecode2 = SWIG_AsVal_int(obj1, &val2);
6620 if (!SWIG_IsOK(ecode2)) {
6621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetHeight" "', expected argument " "2"" of type '" "int""'");
6622 }
6623 arg2 = static_cast< int >(val2);
6624 {
1bd55598 6625 (arg1)->SetHeight(arg2);
1bd55598
RD
6626 if (PyErr_Occurred()) SWIG_fail;
6627 }
6628 resultobj = SWIG_Py_Void();
6629 return resultobj;
6630fail:
6631 return NULL;
d55e5bfc
RD
6632}
6633
6634
1bd55598
RD
6635SWIGINTERN PyObject *_wrap_Rect_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6636 PyObject *resultobj = 0;
6637 wxRect *arg1 = (wxRect *) 0 ;
6638 wxPoint result;
6639 void *argp1 = 0 ;
6640 int res1 = 0 ;
6641 PyObject *swig_obj[1] ;
6642
6643 if (!args) SWIG_fail;
6644 swig_obj[0] = args;
6645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6646 if (!SWIG_IsOK(res1)) {
6647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetPosition" "', expected argument " "1"" of type '" "wxRect const *""'");
6648 }
6649 arg1 = reinterpret_cast< wxRect * >(argp1);
6650 {
1bd55598 6651 result = ((wxRect const *)arg1)->GetPosition();
1bd55598
RD
6652 if (PyErr_Occurred()) SWIG_fail;
6653 }
6654 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6655 return resultobj;
6656fail:
6657 return NULL;
6658}
6659
6660
6661SWIGINTERN PyObject *_wrap_Rect_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6662 PyObject *resultobj = 0;
6663 wxRect *arg1 = (wxRect *) 0 ;
6664 wxPoint *arg2 = 0 ;
6665 void *argp1 = 0 ;
6666 int res1 = 0 ;
6667 wxPoint temp2 ;
6668 PyObject * obj0 = 0 ;
6669 PyObject * obj1 = 0 ;
6670 char * kwnames[] = {
6671 (char *) "self",(char *) "p", NULL
6672 };
6673
6674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
6675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6676 if (!SWIG_IsOK(res1)) {
6677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetPosition" "', expected argument " "1"" of type '" "wxRect *""'");
6678 }
6679 arg1 = reinterpret_cast< wxRect * >(argp1);
6680 {
6681 arg2 = &temp2;
6682 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6683 }
6684 {
1bd55598 6685 (arg1)->SetPosition((wxPoint const &)*arg2);
1bd55598
RD
6686 if (PyErr_Occurred()) SWIG_fail;
6687 }
6688 resultobj = SWIG_Py_Void();
6689 return resultobj;
6690fail:
6691 return NULL;
d55e5bfc
RD
6692}
6693
6694
1bd55598
RD
6695SWIGINTERN PyObject *_wrap_Rect_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6696 PyObject *resultobj = 0;
6697 wxRect *arg1 = (wxRect *) 0 ;
6698 wxSize result;
6699 void *argp1 = 0 ;
6700 int res1 = 0 ;
6701 PyObject *swig_obj[1] ;
6702
6703 if (!args) SWIG_fail;
6704 swig_obj[0] = args;
6705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6706 if (!SWIG_IsOK(res1)) {
6707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetSize" "', expected argument " "1"" of type '" "wxRect const *""'");
6708 }
6709 arg1 = reinterpret_cast< wxRect * >(argp1);
6710 {
1bd55598 6711 result = ((wxRect const *)arg1)->GetSize();
1bd55598
RD
6712 if (PyErr_Occurred()) SWIG_fail;
6713 }
6714 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6715 return resultobj;
6716fail:
6717 return NULL;
6718}
6719
6720
6721SWIGINTERN PyObject *_wrap_Rect_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6722 PyObject *resultobj = 0;
6723 wxRect *arg1 = (wxRect *) 0 ;
6724 wxSize *arg2 = 0 ;
6725 void *argp1 = 0 ;
6726 int res1 = 0 ;
6727 wxSize temp2 ;
6728 PyObject * obj0 = 0 ;
6729 PyObject * obj1 = 0 ;
6730 char * kwnames[] = {
6731 (char *) "self",(char *) "s", NULL
6732 };
6733
6734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6736 if (!SWIG_IsOK(res1)) {
6737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetSize" "', expected argument " "1"" of type '" "wxRect *""'");
6738 }
6739 arg1 = reinterpret_cast< wxRect * >(argp1);
6740 {
6741 arg2 = &temp2;
6742 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6743 }
6744 {
1bd55598 6745 (arg1)->SetSize((wxSize const &)*arg2);
1bd55598
RD
6746 if (PyErr_Occurred()) SWIG_fail;
6747 }
6748 resultobj = SWIG_Py_Void();
6749 return resultobj;
6750fail:
6751 return NULL;
d55e5bfc
RD
6752}
6753
6754
1bd55598
RD
6755SWIGINTERN PyObject *_wrap_Rect_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6756 PyObject *resultobj = 0;
6757 wxRect *arg1 = (wxRect *) 0 ;
6758 bool result;
6759 void *argp1 = 0 ;
6760 int res1 = 0 ;
6761 PyObject *swig_obj[1] ;
6762
6763 if (!args) SWIG_fail;
6764 swig_obj[0] = args;
6765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6766 if (!SWIG_IsOK(res1)) {
6767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_IsEmpty" "', expected argument " "1"" of type '" "wxRect const *""'");
6768 }
6769 arg1 = reinterpret_cast< wxRect * >(argp1);
6770 {
1bd55598 6771 result = (bool)((wxRect const *)arg1)->IsEmpty();
1bd55598
RD
6772 if (PyErr_Occurred()) SWIG_fail;
6773 }
6774 {
6775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6776 }
6777 return resultobj;
6778fail:
6779 return NULL;
d55e5bfc
RD
6780}
6781
6782
1bd55598
RD
6783SWIGINTERN PyObject *_wrap_Rect_GetTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6784 PyObject *resultobj = 0;
6785 wxRect *arg1 = (wxRect *) 0 ;
6786 wxPoint result;
6787 void *argp1 = 0 ;
6788 int res1 = 0 ;
6789 PyObject *swig_obj[1] ;
6790
6791 if (!args) SWIG_fail;
6792 swig_obj[0] = args;
6793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6794 if (!SWIG_IsOK(res1)) {
6795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetTopLeft" "', expected argument " "1"" of type '" "wxRect const *""'");
6796 }
6797 arg1 = reinterpret_cast< wxRect * >(argp1);
6798 {
1bd55598 6799 result = ((wxRect const *)arg1)->GetTopLeft();
1bd55598
RD
6800 if (PyErr_Occurred()) SWIG_fail;
6801 }
6802 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6803 return resultobj;
6804fail:
6805 return NULL;
6806}
6807
6808
6809SWIGINTERN PyObject *_wrap_Rect_SetTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6810 PyObject *resultobj = 0;
6811 wxRect *arg1 = (wxRect *) 0 ;
6812 wxPoint *arg2 = 0 ;
6813 void *argp1 = 0 ;
6814 int res1 = 0 ;
6815 wxPoint temp2 ;
6816 PyObject * obj0 = 0 ;
6817 PyObject * obj1 = 0 ;
6818 char * kwnames[] = {
6819 (char *) "self",(char *) "p", NULL
6820 };
6821
6822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) SWIG_fail;
6823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6824 if (!SWIG_IsOK(res1)) {
6825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetTopLeft" "', expected argument " "1"" of type '" "wxRect *""'");
6826 }
6827 arg1 = reinterpret_cast< wxRect * >(argp1);
6828 {
6829 arg2 = &temp2;
6830 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6831 }
6832 {
1bd55598 6833 (arg1)->SetTopLeft((wxPoint const &)*arg2);
1bd55598
RD
6834 if (PyErr_Occurred()) SWIG_fail;
6835 }
6836 resultobj = SWIG_Py_Void();
6837 return resultobj;
6838fail:
6839 return NULL;
d55e5bfc
RD
6840}
6841
6842
1bd55598
RD
6843SWIGINTERN PyObject *_wrap_Rect_GetBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6844 PyObject *resultobj = 0;
6845 wxRect *arg1 = (wxRect *) 0 ;
6846 wxPoint result;
6847 void *argp1 = 0 ;
6848 int res1 = 0 ;
6849 PyObject *swig_obj[1] ;
6850
6851 if (!args) SWIG_fail;
6852 swig_obj[0] = args;
6853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6854 if (!SWIG_IsOK(res1)) {
6855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetBottomRight" "', expected argument " "1"" of type '" "wxRect const *""'");
6856 }
6857 arg1 = reinterpret_cast< wxRect * >(argp1);
6858 {
1bd55598 6859 result = ((wxRect const *)arg1)->GetBottomRight();
1bd55598
RD
6860 if (PyErr_Occurred()) SWIG_fail;
6861 }
6862 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6863 return resultobj;
6864fail:
6865 return NULL;
6866}
6867
6868
6869SWIGINTERN PyObject *_wrap_Rect_SetBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6870 PyObject *resultobj = 0;
6871 wxRect *arg1 = (wxRect *) 0 ;
6872 wxPoint *arg2 = 0 ;
6873 void *argp1 = 0 ;
6874 int res1 = 0 ;
6875 wxPoint temp2 ;
6876 PyObject * obj0 = 0 ;
6877 PyObject * obj1 = 0 ;
6878 char * kwnames[] = {
6879 (char *) "self",(char *) "p", NULL
6880 };
6881
6882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) SWIG_fail;
6883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6884 if (!SWIG_IsOK(res1)) {
6885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetBottomRight" "', expected argument " "1"" of type '" "wxRect *""'");
6886 }
6887 arg1 = reinterpret_cast< wxRect * >(argp1);
6888 {
6889 arg2 = &temp2;
6890 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6891 }
6892 {
1bd55598 6893 (arg1)->SetBottomRight((wxPoint const &)*arg2);
1bd55598
RD
6894 if (PyErr_Occurred()) SWIG_fail;
6895 }
6896 resultobj = SWIG_Py_Void();
6897 return resultobj;
6898fail:
6899 return NULL;
d55e5bfc
RD
6900}
6901
6902
5acb46e0
RD
6903SWIGINTERN PyObject *_wrap_Rect_GetTopRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6904 PyObject *resultobj = 0;
6905 wxRect *arg1 = (wxRect *) 0 ;
6906 wxPoint result;
6907 void *argp1 = 0 ;
6908 int res1 = 0 ;
6909 PyObject *swig_obj[1] ;
6910
6911 if (!args) SWIG_fail;
6912 swig_obj[0] = args;
6913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6914 if (!SWIG_IsOK(res1)) {
6915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetTopRight" "', expected argument " "1"" of type '" "wxRect const *""'");
6916 }
6917 arg1 = reinterpret_cast< wxRect * >(argp1);
6918 {
5acb46e0 6919 result = ((wxRect const *)arg1)->GetTopRight();
5acb46e0
RD
6920 if (PyErr_Occurred()) SWIG_fail;
6921 }
6922 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6923 return resultobj;
6924fail:
6925 return NULL;
6926}
6927
6928
6929SWIGINTERN PyObject *_wrap_Rect_SetTopRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6930 PyObject *resultobj = 0;
6931 wxRect *arg1 = (wxRect *) 0 ;
6932 wxPoint *arg2 = 0 ;
6933 void *argp1 = 0 ;
6934 int res1 = 0 ;
6935 wxPoint temp2 ;
6936 PyObject * obj0 = 0 ;
6937 PyObject * obj1 = 0 ;
6938 char * kwnames[] = {
6939 (char *) "self",(char *) "p", NULL
6940 };
6941
6942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopRight",kwnames,&obj0,&obj1)) SWIG_fail;
6943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6944 if (!SWIG_IsOK(res1)) {
6945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetTopRight" "', expected argument " "1"" of type '" "wxRect *""'");
6946 }
6947 arg1 = reinterpret_cast< wxRect * >(argp1);
6948 {
6949 arg2 = &temp2;
6950 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6951 }
6952 {
5acb46e0 6953 (arg1)->SetTopRight((wxPoint const &)*arg2);
5acb46e0
RD
6954 if (PyErr_Occurred()) SWIG_fail;
6955 }
6956 resultobj = SWIG_Py_Void();
6957 return resultobj;
6958fail:
6959 return NULL;
6960}
6961
6962
6963SWIGINTERN PyObject *_wrap_Rect_GetBottomLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6964 PyObject *resultobj = 0;
6965 wxRect *arg1 = (wxRect *) 0 ;
6966 wxPoint result;
6967 void *argp1 = 0 ;
6968 int res1 = 0 ;
6969 PyObject *swig_obj[1] ;
6970
6971 if (!args) SWIG_fail;
6972 swig_obj[0] = args;
6973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6974 if (!SWIG_IsOK(res1)) {
6975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetBottomLeft" "', expected argument " "1"" of type '" "wxRect const *""'");
6976 }
6977 arg1 = reinterpret_cast< wxRect * >(argp1);
6978 {
5acb46e0 6979 result = ((wxRect const *)arg1)->GetBottomLeft();
5acb46e0
RD
6980 if (PyErr_Occurred()) SWIG_fail;
6981 }
6982 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6983 return resultobj;
6984fail:
6985 return NULL;
6986}
6987
6988
6989SWIGINTERN PyObject *_wrap_Rect_SetBottomLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6990 PyObject *resultobj = 0;
6991 wxRect *arg1 = (wxRect *) 0 ;
6992 wxPoint *arg2 = 0 ;
6993 void *argp1 = 0 ;
6994 int res1 = 0 ;
6995 wxPoint temp2 ;
6996 PyObject * obj0 = 0 ;
6997 PyObject * obj1 = 0 ;
6998 char * kwnames[] = {
6999 (char *) "self",(char *) "p", NULL
7000 };
7001
7002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomLeft",kwnames,&obj0,&obj1)) SWIG_fail;
7003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7004 if (!SWIG_IsOK(res1)) {
7005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetBottomLeft" "', expected argument " "1"" of type '" "wxRect *""'");
7006 }
7007 arg1 = reinterpret_cast< wxRect * >(argp1);
7008 {
7009 arg2 = &temp2;
7010 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7011 }
7012 {
5acb46e0 7013 (arg1)->SetBottomLeft((wxPoint const &)*arg2);
5acb46e0
RD
7014 if (PyErr_Occurred()) SWIG_fail;
7015 }
7016 resultobj = SWIG_Py_Void();
7017 return resultobj;
7018fail:
7019 return NULL;
7020}
7021
7022
1bd55598
RD
7023SWIGINTERN PyObject *_wrap_Rect_GetLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7024 PyObject *resultobj = 0;
7025 wxRect *arg1 = (wxRect *) 0 ;
7026 int result;
7027 void *argp1 = 0 ;
7028 int res1 = 0 ;
7029 PyObject *swig_obj[1] ;
7030
7031 if (!args) SWIG_fail;
7032 swig_obj[0] = args;
7033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7034 if (!SWIG_IsOK(res1)) {
7035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetLeft" "', expected argument " "1"" of type '" "wxRect const *""'");
7036 }
7037 arg1 = reinterpret_cast< wxRect * >(argp1);
7038 {
1bd55598 7039 result = (int)((wxRect const *)arg1)->GetLeft();
1bd55598
RD
7040 if (PyErr_Occurred()) SWIG_fail;
7041 }
7042 resultobj = SWIG_From_int(static_cast< int >(result));
7043 return resultobj;
7044fail:
7045 return NULL;
d55e5bfc
RD
7046}
7047
7048
1bd55598
RD
7049SWIGINTERN PyObject *_wrap_Rect_GetTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7050 PyObject *resultobj = 0;
7051 wxRect *arg1 = (wxRect *) 0 ;
7052 int result;
7053 void *argp1 = 0 ;
7054 int res1 = 0 ;
7055 PyObject *swig_obj[1] ;
7056
7057 if (!args) SWIG_fail;
7058 swig_obj[0] = args;
7059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7060 if (!SWIG_IsOK(res1)) {
7061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetTop" "', expected argument " "1"" of type '" "wxRect const *""'");
7062 }
7063 arg1 = reinterpret_cast< wxRect * >(argp1);
7064 {
1bd55598 7065 result = (int)((wxRect const *)arg1)->GetTop();
1bd55598
RD
7066 if (PyErr_Occurred()) SWIG_fail;
7067 }
7068 resultobj = SWIG_From_int(static_cast< int >(result));
7069 return resultobj;
7070fail:
7071 return NULL;
d55e5bfc
RD
7072}
7073
7074
1bd55598
RD
7075SWIGINTERN PyObject *_wrap_Rect_GetBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7076 PyObject *resultobj = 0;
7077 wxRect *arg1 = (wxRect *) 0 ;
7078 int result;
7079 void *argp1 = 0 ;
7080 int res1 = 0 ;
7081 PyObject *swig_obj[1] ;
7082
7083 if (!args) SWIG_fail;
7084 swig_obj[0] = args;
7085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7086 if (!SWIG_IsOK(res1)) {
7087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetBottom" "', expected argument " "1"" of type '" "wxRect const *""'");
7088 }
7089 arg1 = reinterpret_cast< wxRect * >(argp1);
7090 {
1bd55598 7091 result = (int)((wxRect const *)arg1)->GetBottom();
1bd55598
RD
7092 if (PyErr_Occurred()) SWIG_fail;
7093 }
7094 resultobj = SWIG_From_int(static_cast< int >(result));
7095 return resultobj;
7096fail:
7097 return NULL;
d55e5bfc
RD
7098}
7099
7100
1bd55598
RD
7101SWIGINTERN PyObject *_wrap_Rect_GetRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7102 PyObject *resultobj = 0;
7103 wxRect *arg1 = (wxRect *) 0 ;
7104 int result;
7105 void *argp1 = 0 ;
7106 int res1 = 0 ;
7107 PyObject *swig_obj[1] ;
7108
7109 if (!args) SWIG_fail;
7110 swig_obj[0] = args;
7111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7112 if (!SWIG_IsOK(res1)) {
7113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetRight" "', expected argument " "1"" of type '" "wxRect const *""'");
7114 }
7115 arg1 = reinterpret_cast< wxRect * >(argp1);
7116 {
1bd55598 7117 result = (int)((wxRect const *)arg1)->GetRight();
1bd55598
RD
7118 if (PyErr_Occurred()) SWIG_fail;
7119 }
7120 resultobj = SWIG_From_int(static_cast< int >(result));
7121 return resultobj;
7122fail:
7123 return NULL;
7124}
7125
7126
7127SWIGINTERN PyObject *_wrap_Rect_SetLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7128 PyObject *resultobj = 0;
7129 wxRect *arg1 = (wxRect *) 0 ;
7130 int arg2 ;
7131 void *argp1 = 0 ;
7132 int res1 = 0 ;
7133 int val2 ;
7134 int ecode2 = 0 ;
7135 PyObject * obj0 = 0 ;
7136 PyObject * obj1 = 0 ;
7137 char * kwnames[] = {
7138 (char *) "self",(char *) "left", NULL
7139 };
7140
7141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) SWIG_fail;
7142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7143 if (!SWIG_IsOK(res1)) {
7144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetLeft" "', expected argument " "1"" of type '" "wxRect *""'");
7145 }
7146 arg1 = reinterpret_cast< wxRect * >(argp1);
7147 ecode2 = SWIG_AsVal_int(obj1, &val2);
7148 if (!SWIG_IsOK(ecode2)) {
7149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetLeft" "', expected argument " "2"" of type '" "int""'");
7150 }
7151 arg2 = static_cast< int >(val2);
7152 {
1bd55598 7153 (arg1)->SetLeft(arg2);
1bd55598
RD
7154 if (PyErr_Occurred()) SWIG_fail;
7155 }
7156 resultobj = SWIG_Py_Void();
7157 return resultobj;
7158fail:
7159 return NULL;
7160}
7161
7162
7163SWIGINTERN PyObject *_wrap_Rect_SetRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7164 PyObject *resultobj = 0;
7165 wxRect *arg1 = (wxRect *) 0 ;
7166 int arg2 ;
7167 void *argp1 = 0 ;
7168 int res1 = 0 ;
7169 int val2 ;
7170 int ecode2 = 0 ;
7171 PyObject * obj0 = 0 ;
7172 PyObject * obj1 = 0 ;
7173 char * kwnames[] = {
7174 (char *) "self",(char *) "right", NULL
7175 };
7176
7177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) SWIG_fail;
7178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7179 if (!SWIG_IsOK(res1)) {
7180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetRight" "', expected argument " "1"" of type '" "wxRect *""'");
7181 }
7182 arg1 = reinterpret_cast< wxRect * >(argp1);
7183 ecode2 = SWIG_AsVal_int(obj1, &val2);
7184 if (!SWIG_IsOK(ecode2)) {
7185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetRight" "', expected argument " "2"" of type '" "int""'");
7186 }
7187 arg2 = static_cast< int >(val2);
7188 {
1bd55598 7189 (arg1)->SetRight(arg2);
1bd55598
RD
7190 if (PyErr_Occurred()) SWIG_fail;
7191 }
7192 resultobj = SWIG_Py_Void();
7193 return resultobj;
7194fail:
7195 return NULL;
7196}
7197
7198
7199SWIGINTERN PyObject *_wrap_Rect_SetTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7200 PyObject *resultobj = 0;
7201 wxRect *arg1 = (wxRect *) 0 ;
7202 int arg2 ;
7203 void *argp1 = 0 ;
7204 int res1 = 0 ;
7205 int val2 ;
7206 int ecode2 = 0 ;
7207 PyObject * obj0 = 0 ;
7208 PyObject * obj1 = 0 ;
7209 char * kwnames[] = {
7210 (char *) "self",(char *) "top", NULL
7211 };
7212
7213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) SWIG_fail;
7214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7215 if (!SWIG_IsOK(res1)) {
7216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetTop" "', expected argument " "1"" of type '" "wxRect *""'");
7217 }
7218 arg1 = reinterpret_cast< wxRect * >(argp1);
7219 ecode2 = SWIG_AsVal_int(obj1, &val2);
7220 if (!SWIG_IsOK(ecode2)) {
7221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetTop" "', expected argument " "2"" of type '" "int""'");
7222 }
7223 arg2 = static_cast< int >(val2);
7224 {
1bd55598 7225 (arg1)->SetTop(arg2);
1bd55598
RD
7226 if (PyErr_Occurred()) SWIG_fail;
7227 }
7228 resultobj = SWIG_Py_Void();
7229 return resultobj;
7230fail:
7231 return NULL;
7232}
7233
7234
7235SWIGINTERN PyObject *_wrap_Rect_SetBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7236 PyObject *resultobj = 0;
7237 wxRect *arg1 = (wxRect *) 0 ;
7238 int arg2 ;
7239 void *argp1 = 0 ;
7240 int res1 = 0 ;
7241 int val2 ;
7242 int ecode2 = 0 ;
7243 PyObject * obj0 = 0 ;
7244 PyObject * obj1 = 0 ;
7245 char * kwnames[] = {
7246 (char *) "self",(char *) "bottom", NULL
7247 };
7248
7249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) SWIG_fail;
7250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7251 if (!SWIG_IsOK(res1)) {
7252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetBottom" "', expected argument " "1"" of type '" "wxRect *""'");
7253 }
7254 arg1 = reinterpret_cast< wxRect * >(argp1);
7255 ecode2 = SWIG_AsVal_int(obj1, &val2);
7256 if (!SWIG_IsOK(ecode2)) {
7257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetBottom" "', expected argument " "2"" of type '" "int""'");
7258 }
7259 arg2 = static_cast< int >(val2);
7260 {
1bd55598 7261 (arg1)->SetBottom(arg2);
1bd55598
RD
7262 if (PyErr_Occurred()) SWIG_fail;
7263 }
7264 resultobj = SWIG_Py_Void();
7265 return resultobj;
7266fail:
7267 return NULL;
7268}
7269
7270
7271SWIGINTERN PyObject *_wrap_Rect_Inflate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7272 PyObject *resultobj = 0;
7273 wxRect *arg1 = (wxRect *) 0 ;
7274 int arg2 ;
7275 int arg3 ;
7276 wxRect *result = 0 ;
7277 void *argp1 = 0 ;
7278 int res1 = 0 ;
7279 int val2 ;
7280 int ecode2 = 0 ;
7281 int val3 ;
7282 int ecode3 = 0 ;
7283 PyObject * obj0 = 0 ;
7284 PyObject * obj1 = 0 ;
7285 PyObject * obj2 = 0 ;
7286 char * kwnames[] = {
7287 (char *) "self",(char *) "dx",(char *) "dy", NULL
7288 };
7289
7290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7292 if (!SWIG_IsOK(res1)) {
7293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Inflate" "', expected argument " "1"" of type '" "wxRect *""'");
7294 }
7295 arg1 = reinterpret_cast< wxRect * >(argp1);
7296 ecode2 = SWIG_AsVal_int(obj1, &val2);
7297 if (!SWIG_IsOK(ecode2)) {
7298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_Inflate" "', expected argument " "2"" of type '" "int""'");
7299 }
7300 arg2 = static_cast< int >(val2);
7301 ecode3 = SWIG_AsVal_int(obj2, &val3);
7302 if (!SWIG_IsOK(ecode3)) {
7303 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_Inflate" "', expected argument " "3"" of type '" "int""'");
7304 }
7305 arg3 = static_cast< int >(val3);
7306 {
d55e5bfc 7307 {
1bd55598
RD
7308 wxRect &_result_ref = (arg1)->Inflate(arg2,arg3);
7309 result = (wxRect *) &_result_ref;
d55e5bfc 7310 }
1bd55598
RD
7311 if (PyErr_Occurred()) SWIG_fail;
7312 }
7313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, 0 | 0 );
7314 return resultobj;
7315fail:
7316 return NULL;
7317}
7318
7319
7320SWIGINTERN PyObject *_wrap_Rect_Deflate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7321 PyObject *resultobj = 0;
7322 wxRect *arg1 = (wxRect *) 0 ;
7323 int arg2 ;
7324 int arg3 ;
7325 wxRect *result = 0 ;
7326 void *argp1 = 0 ;
7327 int res1 = 0 ;
7328 int val2 ;
7329 int ecode2 = 0 ;
7330 int val3 ;
7331 int ecode3 = 0 ;
7332 PyObject * obj0 = 0 ;
7333 PyObject * obj1 = 0 ;
7334 PyObject * obj2 = 0 ;
7335 char * kwnames[] = {
7336 (char *) "self",(char *) "dx",(char *) "dy", NULL
7337 };
7338
7339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7341 if (!SWIG_IsOK(res1)) {
7342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Deflate" "', expected argument " "1"" of type '" "wxRect *""'");
7343 }
7344 arg1 = reinterpret_cast< wxRect * >(argp1);
7345 ecode2 = SWIG_AsVal_int(obj1, &val2);
7346 if (!SWIG_IsOK(ecode2)) {
7347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_Deflate" "', expected argument " "2"" of type '" "int""'");
7348 }
7349 arg2 = static_cast< int >(val2);
7350 ecode3 = SWIG_AsVal_int(obj2, &val3);
7351 if (!SWIG_IsOK(ecode3)) {
7352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_Deflate" "', expected argument " "3"" of type '" "int""'");
7353 }
7354 arg3 = static_cast< int >(val3);
7355 {
d55e5bfc 7356 {
1bd55598
RD
7357 wxRect &_result_ref = (arg1)->Deflate(arg2,arg3);
7358 result = (wxRect *) &_result_ref;
d55e5bfc 7359 }
1bd55598
RD
7360 if (PyErr_Occurred()) SWIG_fail;
7361 }
7362 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, 0 | 0 );
7363 return resultobj;
7364fail:
7365 return NULL;
7366}
7367
7368
7369SWIGINTERN PyObject *_wrap_Rect_OffsetXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7370 PyObject *resultobj = 0;
7371 wxRect *arg1 = (wxRect *) 0 ;
7372 int arg2 ;
7373 int arg3 ;
7374 void *argp1 = 0 ;
7375 int res1 = 0 ;
7376 int val2 ;
7377 int ecode2 = 0 ;
7378 int val3 ;
7379 int ecode3 = 0 ;
7380 PyObject * obj0 = 0 ;
7381 PyObject * obj1 = 0 ;
7382 PyObject * obj2 = 0 ;
7383 char * kwnames[] = {
7384 (char *) "self",(char *) "dx",(char *) "dy", NULL
7385 };
7386
7387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7389 if (!SWIG_IsOK(res1)) {
7390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_OffsetXY" "', expected argument " "1"" of type '" "wxRect *""'");
7391 }
7392 arg1 = reinterpret_cast< wxRect * >(argp1);
7393 ecode2 = SWIG_AsVal_int(obj1, &val2);
7394 if (!SWIG_IsOK(ecode2)) {
7395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_OffsetXY" "', expected argument " "2"" of type '" "int""'");
7396 }
7397 arg2 = static_cast< int >(val2);
7398 ecode3 = SWIG_AsVal_int(obj2, &val3);
7399 if (!SWIG_IsOK(ecode3)) {
7400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_OffsetXY" "', expected argument " "3"" of type '" "int""'");
7401 }
7402 arg3 = static_cast< int >(val3);
7403 {
1bd55598 7404 (arg1)->Offset(arg2,arg3);
1bd55598
RD
7405 if (PyErr_Occurred()) SWIG_fail;
7406 }
7407 resultobj = SWIG_Py_Void();
7408 return resultobj;
7409fail:
7410 return NULL;
7411}
7412
7413
7414SWIGINTERN PyObject *_wrap_Rect_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7415 PyObject *resultobj = 0;
7416 wxRect *arg1 = (wxRect *) 0 ;
7417 wxPoint *arg2 = 0 ;
7418 void *argp1 = 0 ;
7419 int res1 = 0 ;
7420 wxPoint temp2 ;
7421 PyObject * obj0 = 0 ;
7422 PyObject * obj1 = 0 ;
7423 char * kwnames[] = {
7424 (char *) "self",(char *) "pt", NULL
7425 };
7426
7427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) SWIG_fail;
7428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7429 if (!SWIG_IsOK(res1)) {
7430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Offset" "', expected argument " "1"" of type '" "wxRect *""'");
7431 }
7432 arg1 = reinterpret_cast< wxRect * >(argp1);
7433 {
7434 arg2 = &temp2;
7435 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7436 }
7437 {
1bd55598 7438 (arg1)->Offset((wxPoint const &)*arg2);
1bd55598
RD
7439 if (PyErr_Occurred()) SWIG_fail;
7440 }
7441 resultobj = SWIG_Py_Void();
7442 return resultobj;
7443fail:
7444 return NULL;
7445}
7446
7447
7448SWIGINTERN PyObject *_wrap_Rect_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7449 PyObject *resultobj = 0;
7450 wxRect *arg1 = (wxRect *) 0 ;
7451 wxRect *arg2 = 0 ;
7452 wxRect result;
7453 void *argp1 = 0 ;
7454 int res1 = 0 ;
7455 wxRect temp2 ;
7456 PyObject * obj0 = 0 ;
7457 PyObject * obj1 = 0 ;
7458 char * kwnames[] = {
7459 (char *) "self",(char *) "rect", NULL
7460 };
7461
7462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) SWIG_fail;
7463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7464 if (!SWIG_IsOK(res1)) {
7465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Intersect" "', expected argument " "1"" of type '" "wxRect *""'");
7466 }
7467 arg1 = reinterpret_cast< wxRect * >(argp1);
7468 {
7469 arg2 = &temp2;
7470 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7471 }
7472 {
1bd55598 7473 result = (arg1)->Intersect((wxRect const &)*arg2);
1bd55598
RD
7474 if (PyErr_Occurred()) SWIG_fail;
7475 }
7476 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
7477 return resultobj;
7478fail:
7479 return NULL;
7480}
7481
7482
7483SWIGINTERN PyObject *_wrap_Rect_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7484 PyObject *resultobj = 0;
7485 wxRect *arg1 = (wxRect *) 0 ;
7486 wxRect *arg2 = 0 ;
7487 wxRect result;
7488 void *argp1 = 0 ;
7489 int res1 = 0 ;
7490 wxRect temp2 ;
7491 PyObject * obj0 = 0 ;
7492 PyObject * obj1 = 0 ;
7493 char * kwnames[] = {
7494 (char *) "self",(char *) "rect", NULL
7495 };
7496
7497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Union",kwnames,&obj0,&obj1)) SWIG_fail;
7498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7499 if (!SWIG_IsOK(res1)) {
7500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Union" "', expected argument " "1"" of type '" "wxRect *""'");
7501 }
7502 arg1 = reinterpret_cast< wxRect * >(argp1);
7503 {
7504 arg2 = &temp2;
7505 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7506 }
7507 {
1bd55598 7508 result = (arg1)->Union((wxRect const &)*arg2);
1bd55598
RD
7509 if (PyErr_Occurred()) SWIG_fail;
7510 }
7511 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
7512 return resultobj;
7513fail:
7514 return NULL;
7515}
7516
7517
7518SWIGINTERN PyObject *_wrap_Rect___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7519 PyObject *resultobj = 0;
7520 wxRect *arg1 = (wxRect *) 0 ;
7521 wxRect *arg2 = 0 ;
7522 wxRect result;
7523 void *argp1 = 0 ;
7524 int res1 = 0 ;
7525 wxRect temp2 ;
7526 PyObject * obj0 = 0 ;
7527 PyObject * obj1 = 0 ;
7528 char * kwnames[] = {
7529 (char *) "self",(char *) "rect", NULL
7530 };
7531
7532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) SWIG_fail;
7533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7534 if (!SWIG_IsOK(res1)) {
7535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect___add__" "', expected argument " "1"" of type '" "wxRect const *""'");
7536 }
7537 arg1 = reinterpret_cast< wxRect * >(argp1);
7538 {
7539 arg2 = &temp2;
7540 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7541 }
7542 {
1bd55598 7543 result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2);
1bd55598
RD
7544 if (PyErr_Occurred()) SWIG_fail;
7545 }
7546 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
7547 return resultobj;
7548fail:
7549 return NULL;
7550}
7551
7552
7553SWIGINTERN PyObject *_wrap_Rect___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7554 PyObject *resultobj = 0;
7555 wxRect *arg1 = (wxRect *) 0 ;
7556 wxRect *arg2 = 0 ;
7557 wxRect *result = 0 ;
7558 void *argp1 = 0 ;
7559 int res1 = 0 ;
7560 wxRect temp2 ;
7561 PyObject * obj0 = 0 ;
7562 PyObject * obj1 = 0 ;
7563 char * kwnames[] = {
7564 (char *) "self",(char *) "rect", NULL
7565 };
7566
7567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) SWIG_fail;
7568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, SWIG_POINTER_DISOWN | 0 );
7569 if (!SWIG_IsOK(res1)) {
7570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect___iadd__" "', expected argument " "1"" of type '" "wxRect *""'");
7571 }
7572 arg1 = reinterpret_cast< wxRect * >(argp1);
7573 {
7574 arg2 = &temp2;
7575 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7576 }
7577 {
d55e5bfc 7578 {
1bd55598
RD
7579 wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2);
7580 result = (wxRect *) &_result_ref;
d55e5bfc 7581 }
1bd55598
RD
7582 if (PyErr_Occurred()) SWIG_fail;
7583 }
7584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
7585 return resultobj;
7586fail:
7587 return NULL;
7588}
7589
7590
7591SWIGINTERN PyObject *_wrap_Rect___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7592 PyObject *resultobj = 0;
7593 wxRect *arg1 = (wxRect *) 0 ;
e9d6f3a4 7594 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
7595 bool result;
7596 void *argp1 = 0 ;
7597 int res1 = 0 ;
1bd55598
RD
7598 PyObject * obj0 = 0 ;
7599 PyObject * obj1 = 0 ;
7600 char * kwnames[] = {
e9d6f3a4 7601 (char *) "self",(char *) "other", NULL
1bd55598
RD
7602 };
7603
7604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7606 if (!SWIG_IsOK(res1)) {
e9d6f3a4 7607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect___eq__" "', expected argument " "1"" of type '" "wxRect *""'");
1bd55598
RD
7608 }
7609 arg1 = reinterpret_cast< wxRect * >(argp1);
e9d6f3a4 7610 arg2 = obj1;
1bd55598 7611 {
e9d6f3a4 7612 result = (bool)wxRect___eq__(arg1,arg2);
1bd55598
RD
7613 if (PyErr_Occurred()) SWIG_fail;
7614 }
7615 {
7616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7617 }
7618 return resultobj;
7619fail:
7620 return NULL;
7621}
7622
7623
7624SWIGINTERN PyObject *_wrap_Rect___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7625 PyObject *resultobj = 0;
7626 wxRect *arg1 = (wxRect *) 0 ;
e9d6f3a4 7627 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
7628 bool result;
7629 void *argp1 = 0 ;
7630 int res1 = 0 ;
1bd55598
RD
7631 PyObject * obj0 = 0 ;
7632 PyObject * obj1 = 0 ;
7633 char * kwnames[] = {
e9d6f3a4 7634 (char *) "self",(char *) "other", NULL
1bd55598
RD
7635 };
7636
7637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7639 if (!SWIG_IsOK(res1)) {
e9d6f3a4 7640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect___ne__" "', expected argument " "1"" of type '" "wxRect *""'");
1bd55598
RD
7641 }
7642 arg1 = reinterpret_cast< wxRect * >(argp1);
e9d6f3a4 7643 arg2 = obj1;
1bd55598 7644 {
e9d6f3a4 7645 result = (bool)wxRect___ne__(arg1,arg2);
1bd55598
RD
7646 if (PyErr_Occurred()) SWIG_fail;
7647 }
7648 {
7649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7650 }
7651 return resultobj;
7652fail:
7653 return NULL;
7654}
7655
7656
33d6fd3b 7657SWIGINTERN PyObject *_wrap_Rect_ContainsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
7658 PyObject *resultobj = 0;
7659 wxRect *arg1 = (wxRect *) 0 ;
7660 int arg2 ;
7661 int arg3 ;
7662 bool result;
7663 void *argp1 = 0 ;
7664 int res1 = 0 ;
7665 int val2 ;
7666 int ecode2 = 0 ;
7667 int val3 ;
7668 int ecode3 = 0 ;
7669 PyObject * obj0 = 0 ;
7670 PyObject * obj1 = 0 ;
7671 PyObject * obj2 = 0 ;
7672 char * kwnames[] = {
7673 (char *) "self",(char *) "x",(char *) "y", NULL
7674 };
7675
33d6fd3b 7676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_ContainsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
1bd55598
RD
7677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7678 if (!SWIG_IsOK(res1)) {
33d6fd3b 7679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_ContainsXY" "', expected argument " "1"" of type '" "wxRect const *""'");
1bd55598
RD
7680 }
7681 arg1 = reinterpret_cast< wxRect * >(argp1);
7682 ecode2 = SWIG_AsVal_int(obj1, &val2);
7683 if (!SWIG_IsOK(ecode2)) {
33d6fd3b 7684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_ContainsXY" "', expected argument " "2"" of type '" "int""'");
1bd55598
RD
7685 }
7686 arg2 = static_cast< int >(val2);
7687 ecode3 = SWIG_AsVal_int(obj2, &val3);
7688 if (!SWIG_IsOK(ecode3)) {
33d6fd3b 7689 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_ContainsXY" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
7690 }
7691 arg3 = static_cast< int >(val3);
7692 {
33d6fd3b 7693 result = (bool)((wxRect const *)arg1)->Contains(arg2,arg3);
1bd55598
RD
7694 if (PyErr_Occurred()) SWIG_fail;
7695 }
7696 {
7697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7698 }
7699 return resultobj;
7700fail:
7701 return NULL;
7702}
7703
7704
33d6fd3b 7705SWIGINTERN PyObject *_wrap_Rect_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
7706 PyObject *resultobj = 0;
7707 wxRect *arg1 = (wxRect *) 0 ;
7708 wxPoint *arg2 = 0 ;
7709 bool result;
7710 void *argp1 = 0 ;
7711 int res1 = 0 ;
7712 wxPoint temp2 ;
7713 PyObject * obj0 = 0 ;
7714 PyObject * obj1 = 0 ;
7715 char * kwnames[] = {
7716 (char *) "self",(char *) "pt", NULL
7717 };
7718
33d6fd3b 7719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Contains",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
7720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7721 if (!SWIG_IsOK(res1)) {
33d6fd3b 7722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Contains" "', expected argument " "1"" of type '" "wxRect const *""'");
1bd55598
RD
7723 }
7724 arg1 = reinterpret_cast< wxRect * >(argp1);
7725 {
7726 arg2 = &temp2;
7727 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7728 }
7729 {
33d6fd3b 7730 result = (bool)((wxRect const *)arg1)->Contains((wxPoint const &)*arg2);
1bd55598
RD
7731 if (PyErr_Occurred()) SWIG_fail;
7732 }
7733 {
7734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7735 }
7736 return resultobj;
7737fail:
7738 return NULL;
7739}
7740
7741
33d6fd3b 7742SWIGINTERN PyObject *_wrap_Rect_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
fc46b7f3
RD
7743 PyObject *resultobj = 0;
7744 wxRect *arg1 = (wxRect *) 0 ;
7745 wxRect *arg2 = 0 ;
7746 bool result;
7747 void *argp1 = 0 ;
7748 int res1 = 0 ;
7749 wxRect temp2 ;
7750 PyObject * obj0 = 0 ;
7751 PyObject * obj1 = 0 ;
7752 char * kwnames[] = {
7753 (char *) "self",(char *) "rect", NULL
7754 };
7755
33d6fd3b 7756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
fc46b7f3
RD
7757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7758 if (!SWIG_IsOK(res1)) {
33d6fd3b 7759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_ContainsRect" "', expected argument " "1"" of type '" "wxRect const *""'");
fc46b7f3
RD
7760 }
7761 arg1 = reinterpret_cast< wxRect * >(argp1);
7762 {
7763 arg2 = &temp2;
7764 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7765 }
7766 {
33d6fd3b 7767 result = (bool)((wxRect const *)arg1)->Contains((wxRect const &)*arg2);
fc46b7f3
RD
7768 if (PyErr_Occurred()) SWIG_fail;
7769 }
7770 {
7771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7772 }
7773 return resultobj;
7774fail:
7775 return NULL;
7776}
7777
7778
1bd55598
RD
7779SWIGINTERN PyObject *_wrap_Rect_Intersects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7780 PyObject *resultobj = 0;
7781 wxRect *arg1 = (wxRect *) 0 ;
7782 wxRect *arg2 = 0 ;
7783 bool result;
7784 void *argp1 = 0 ;
7785 int res1 = 0 ;
7786 wxRect temp2 ;
7787 PyObject * obj0 = 0 ;
7788 PyObject * obj1 = 0 ;
7789 char * kwnames[] = {
7790 (char *) "self",(char *) "rect", NULL
7791 };
7792
7793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) SWIG_fail;
7794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7795 if (!SWIG_IsOK(res1)) {
7796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Intersects" "', expected argument " "1"" of type '" "wxRect const *""'");
7797 }
7798 arg1 = reinterpret_cast< wxRect * >(argp1);
7799 {
7800 arg2 = &temp2;
7801 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7802 }
7803 {
1bd55598 7804 result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2);
1bd55598
RD
7805 if (PyErr_Occurred()) SWIG_fail;
7806 }
7807 {
7808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7809 }
7810 return resultobj;
7811fail:
7812 return NULL;
7813}
7814
7815
7816SWIGINTERN PyObject *_wrap_Rect_CenterIn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7817 PyObject *resultobj = 0;
7818 wxRect *arg1 = (wxRect *) 0 ;
7819 wxRect *arg2 = 0 ;
7820 int arg3 = (int) wxBOTH ;
7821 wxRect result;
7822 void *argp1 = 0 ;
7823 int res1 = 0 ;
7824 wxRect temp2 ;
7825 int val3 ;
7826 int ecode3 = 0 ;
7827 PyObject * obj0 = 0 ;
7828 PyObject * obj1 = 0 ;
7829 PyObject * obj2 = 0 ;
7830 char * kwnames[] = {
7831 (char *) "self",(char *) "r",(char *) "dir", NULL
7832 };
7833
7834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Rect_CenterIn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7836 if (!SWIG_IsOK(res1)) {
7837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_CenterIn" "', expected argument " "1"" of type '" "wxRect *""'");
7838 }
7839 arg1 = reinterpret_cast< wxRect * >(argp1);
7840 {
7841 arg2 = &temp2;
7842 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7843 }
7844 if (obj2) {
7845 ecode3 = SWIG_AsVal_int(obj2, &val3);
7846 if (!SWIG_IsOK(ecode3)) {
7847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_CenterIn" "', expected argument " "3"" of type '" "int""'");
7848 }
7849 arg3 = static_cast< int >(val3);
7850 }
7851 {
1bd55598 7852 result = (arg1)->CenterIn((wxRect const &)*arg2,arg3);
1bd55598
RD
7853 if (PyErr_Occurred()) SWIG_fail;
7854 }
7855 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
7856 return resultobj;
7857fail:
7858 return NULL;
7859}
7860
7861
7862SWIGINTERN PyObject *_wrap_Rect_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7863 PyObject *resultobj = 0;
7864 wxRect *arg1 = (wxRect *) 0 ;
7865 int arg2 ;
7866 void *argp1 = 0 ;
7867 int res1 = 0 ;
7868 int val2 ;
7869 int ecode2 = 0 ;
7870 PyObject *swig_obj[2] ;
7871
7872 if (!SWIG_Python_UnpackTuple(args,"Rect_x_set",2,2,swig_obj)) SWIG_fail;
7873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7874 if (!SWIG_IsOK(res1)) {
7875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_x_set" "', expected argument " "1"" of type '" "wxRect *""'");
7876 }
7877 arg1 = reinterpret_cast< wxRect * >(argp1);
7878 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
7879 if (!SWIG_IsOK(ecode2)) {
7880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_x_set" "', expected argument " "2"" of type '" "int""'");
7881 }
7882 arg2 = static_cast< int >(val2);
7883 if (arg1) (arg1)->x = arg2;
7884
7885 resultobj = SWIG_Py_Void();
7886 return resultobj;
7887fail:
7888 return NULL;
d55e5bfc
RD
7889}
7890
7891
1bd55598
RD
7892SWIGINTERN PyObject *_wrap_Rect_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7893 PyObject *resultobj = 0;
7894 wxRect *arg1 = (wxRect *) 0 ;
7895 int result;
7896 void *argp1 = 0 ;
7897 int res1 = 0 ;
7898 PyObject *swig_obj[1] ;
7899
7900 if (!args) SWIG_fail;
7901 swig_obj[0] = args;
7902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7903 if (!SWIG_IsOK(res1)) {
7904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_x_get" "', expected argument " "1"" of type '" "wxRect *""'");
7905 }
7906 arg1 = reinterpret_cast< wxRect * >(argp1);
7907 result = (int) ((arg1)->x);
7908 resultobj = SWIG_From_int(static_cast< int >(result));
7909 return resultobj;
7910fail:
7911 return NULL;
7912}
7913
7914
7915SWIGINTERN PyObject *_wrap_Rect_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7916 PyObject *resultobj = 0;
7917 wxRect *arg1 = (wxRect *) 0 ;
7918 int arg2 ;
7919 void *argp1 = 0 ;
7920 int res1 = 0 ;
7921 int val2 ;
7922 int ecode2 = 0 ;
7923 PyObject *swig_obj[2] ;
7924
7925 if (!SWIG_Python_UnpackTuple(args,"Rect_y_set",2,2,swig_obj)) SWIG_fail;
7926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7927 if (!SWIG_IsOK(res1)) {
7928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_y_set" "', expected argument " "1"" of type '" "wxRect *""'");
7929 }
7930 arg1 = reinterpret_cast< wxRect * >(argp1);
7931 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
7932 if (!SWIG_IsOK(ecode2)) {
7933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_y_set" "', expected argument " "2"" of type '" "int""'");
7934 }
7935 arg2 = static_cast< int >(val2);
7936 if (arg1) (arg1)->y = arg2;
7937
7938 resultobj = SWIG_Py_Void();
7939 return resultobj;
7940fail:
7941 return NULL;
d55e5bfc
RD
7942}
7943
7944
1bd55598
RD
7945SWIGINTERN PyObject *_wrap_Rect_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7946 PyObject *resultobj = 0;
7947 wxRect *arg1 = (wxRect *) 0 ;
7948 int result;
7949 void *argp1 = 0 ;
7950 int res1 = 0 ;
7951 PyObject *swig_obj[1] ;
7952
7953 if (!args) SWIG_fail;
7954 swig_obj[0] = args;
7955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7956 if (!SWIG_IsOK(res1)) {
7957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_y_get" "', expected argument " "1"" of type '" "wxRect *""'");
7958 }
7959 arg1 = reinterpret_cast< wxRect * >(argp1);
7960 result = (int) ((arg1)->y);
7961 resultobj = SWIG_From_int(static_cast< int >(result));
7962 return resultobj;
7963fail:
7964 return NULL;
7965}
7966
7967
7968SWIGINTERN PyObject *_wrap_Rect_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7969 PyObject *resultobj = 0;
7970 wxRect *arg1 = (wxRect *) 0 ;
7971 int arg2 ;
7972 void *argp1 = 0 ;
7973 int res1 = 0 ;
7974 int val2 ;
7975 int ecode2 = 0 ;
7976 PyObject *swig_obj[2] ;
7977
7978 if (!SWIG_Python_UnpackTuple(args,"Rect_width_set",2,2,swig_obj)) SWIG_fail;
7979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7980 if (!SWIG_IsOK(res1)) {
7981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_width_set" "', expected argument " "1"" of type '" "wxRect *""'");
7982 }
7983 arg1 = reinterpret_cast< wxRect * >(argp1);
7984 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
7985 if (!SWIG_IsOK(ecode2)) {
7986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_width_set" "', expected argument " "2"" of type '" "int""'");
7987 }
7988 arg2 = static_cast< int >(val2);
7989 if (arg1) (arg1)->width = arg2;
7990
7991 resultobj = SWIG_Py_Void();
7992 return resultobj;
7993fail:
7994 return NULL;
d55e5bfc
RD
7995}
7996
7997
1bd55598
RD
7998SWIGINTERN PyObject *_wrap_Rect_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7999 PyObject *resultobj = 0;
8000 wxRect *arg1 = (wxRect *) 0 ;
8001 int result;
8002 void *argp1 = 0 ;
8003 int res1 = 0 ;
8004 PyObject *swig_obj[1] ;
8005
8006 if (!args) SWIG_fail;
8007 swig_obj[0] = args;
8008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
8009 if (!SWIG_IsOK(res1)) {
8010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_width_get" "', expected argument " "1"" of type '" "wxRect *""'");
8011 }
8012 arg1 = reinterpret_cast< wxRect * >(argp1);
8013 result = (int) ((arg1)->width);
8014 resultobj = SWIG_From_int(static_cast< int >(result));
8015 return resultobj;
8016fail:
8017 return NULL;
8018}
8019
8020
8021SWIGINTERN PyObject *_wrap_Rect_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8022 PyObject *resultobj = 0;
8023 wxRect *arg1 = (wxRect *) 0 ;
8024 int arg2 ;
8025 void *argp1 = 0 ;
8026 int res1 = 0 ;
8027 int val2 ;
8028 int ecode2 = 0 ;
8029 PyObject *swig_obj[2] ;
8030
8031 if (!SWIG_Python_UnpackTuple(args,"Rect_height_set",2,2,swig_obj)) SWIG_fail;
8032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
8033 if (!SWIG_IsOK(res1)) {
8034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_height_set" "', expected argument " "1"" of type '" "wxRect *""'");
8035 }
8036 arg1 = reinterpret_cast< wxRect * >(argp1);
8037 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
8038 if (!SWIG_IsOK(ecode2)) {
8039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_height_set" "', expected argument " "2"" of type '" "int""'");
8040 }
8041 arg2 = static_cast< int >(val2);
8042 if (arg1) (arg1)->height = arg2;
8043
8044 resultobj = SWIG_Py_Void();
8045 return resultobj;
8046fail:
8047 return NULL;
d55e5bfc
RD
8048}
8049
8050
1bd55598
RD
8051SWIGINTERN PyObject *_wrap_Rect_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8052 PyObject *resultobj = 0;
8053 wxRect *arg1 = (wxRect *) 0 ;
8054 int result;
8055 void *argp1 = 0 ;
8056 int res1 = 0 ;
8057 PyObject *swig_obj[1] ;
8058
8059 if (!args) SWIG_fail;
8060 swig_obj[0] = args;
8061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
8062 if (!SWIG_IsOK(res1)) {
8063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_height_get" "', expected argument " "1"" of type '" "wxRect *""'");
8064 }
8065 arg1 = reinterpret_cast< wxRect * >(argp1);
8066 result = (int) ((arg1)->height);
8067 resultobj = SWIG_From_int(static_cast< int >(result));
8068 return resultobj;
8069fail:
8070 return NULL;
8071}
8072
8073
8074SWIGINTERN PyObject *_wrap_Rect_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8075 PyObject *resultobj = 0;
8076 wxRect *arg1 = (wxRect *) 0 ;
8077 int arg2 = (int) 0 ;
8078 int arg3 = (int) 0 ;
8079 int arg4 = (int) 0 ;
8080 int arg5 = (int) 0 ;
8081 void *argp1 = 0 ;
8082 int res1 = 0 ;
8083 int val2 ;
8084 int ecode2 = 0 ;
8085 int val3 ;
8086 int ecode3 = 0 ;
8087 int val4 ;
8088 int ecode4 = 0 ;
8089 int val5 ;
8090 int ecode5 = 0 ;
8091 PyObject * obj0 = 0 ;
8092 PyObject * obj1 = 0 ;
8093 PyObject * obj2 = 0 ;
8094 PyObject * obj3 = 0 ;
8095 PyObject * obj4 = 0 ;
8096 char * kwnames[] = {
8097 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8098 };
8099
8100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
8102 if (!SWIG_IsOK(res1)) {
8103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Set" "', expected argument " "1"" of type '" "wxRect *""'");
8104 }
8105 arg1 = reinterpret_cast< wxRect * >(argp1);
8106 if (obj1) {
8107 ecode2 = SWIG_AsVal_int(obj1, &val2);
8108 if (!SWIG_IsOK(ecode2)) {
8109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_Set" "', expected argument " "2"" of type '" "int""'");
8110 }
8111 arg2 = static_cast< int >(val2);
8112 }
8113 if (obj2) {
8114 ecode3 = SWIG_AsVal_int(obj2, &val3);
8115 if (!SWIG_IsOK(ecode3)) {
8116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_Set" "', expected argument " "3"" of type '" "int""'");
8117 }
8118 arg3 = static_cast< int >(val3);
8119 }
8120 if (obj3) {
8121 ecode4 = SWIG_AsVal_int(obj3, &val4);
8122 if (!SWIG_IsOK(ecode4)) {
8123 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Rect_Set" "', expected argument " "4"" of type '" "int""'");
8124 }
8125 arg4 = static_cast< int >(val4);
8126 }
8127 if (obj4) {
8128 ecode5 = SWIG_AsVal_int(obj4, &val5);
8129 if (!SWIG_IsOK(ecode5)) {
8130 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Rect_Set" "', expected argument " "5"" of type '" "int""'");
8131 }
8132 arg5 = static_cast< int >(val5);
8133 }
8134 {
1bd55598 8135 wxRect_Set(arg1,arg2,arg3,arg4,arg5);
1bd55598
RD
8136 if (PyErr_Occurred()) SWIG_fail;
8137 }
8138 resultobj = SWIG_Py_Void();
8139 return resultobj;
8140fail:
8141 return NULL;
070c48b4
RD
8142}
8143
8144
1bd55598
RD
8145SWIGINTERN PyObject *_wrap_Rect_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8146 PyObject *resultobj = 0;
8147 wxRect *arg1 = (wxRect *) 0 ;
8148 PyObject *result = 0 ;
8149 void *argp1 = 0 ;
8150 int res1 = 0 ;
8151 PyObject *swig_obj[1] ;
8152
8153 if (!args) SWIG_fail;
8154 swig_obj[0] = args;
8155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
8156 if (!SWIG_IsOK(res1)) {
8157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Get" "', expected argument " "1"" of type '" "wxRect *""'");
8158 }
8159 arg1 = reinterpret_cast< wxRect * >(argp1);
8160 {
1bd55598 8161 result = (PyObject *)wxRect_Get(arg1);
1bd55598
RD
8162 if (PyErr_Occurred()) SWIG_fail;
8163 }
8164 resultobj = result;
8165 return resultobj;
8166fail:
8167 return NULL;
d55e5bfc
RD
8168}
8169
8170
1bd55598
RD
8171SWIGINTERN PyObject *Rect_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8172 PyObject *obj;
8173 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8174 SWIG_TypeNewClientData(SWIGTYPE_p_wxRect, SWIG_NewClientData(obj));
8175 return SWIG_Py_Void();
d55e5bfc
RD
8176}
8177
1bd55598
RD
8178SWIGINTERN PyObject *Rect_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8179 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8180}
8181
1bd55598
RD
8182SWIGINTERN PyObject *_wrap_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8183 PyObject *resultobj = 0;
8184 wxRect *arg1 = (wxRect *) 0 ;
8185 wxRect *arg2 = (wxRect *) 0 ;
8186 PyObject *result = 0 ;
8187 void *argp1 = 0 ;
8188 int res1 = 0 ;
8189 void *argp2 = 0 ;
8190 int res2 = 0 ;
8191 PyObject * obj0 = 0 ;
8192 PyObject * obj1 = 0 ;
8193 char * kwnames[] = {
8194 (char *) "r1",(char *) "r2", NULL
8195 };
8196
8197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
8199 if (!SWIG_IsOK(res1)) {
8200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntersectRect" "', expected argument " "1"" of type '" "wxRect *""'");
8201 }
8202 arg1 = reinterpret_cast< wxRect * >(argp1);
8203 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
8204 if (!SWIG_IsOK(res2)) {
8205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntersectRect" "', expected argument " "2"" of type '" "wxRect *""'");
8206 }
8207 arg2 = reinterpret_cast< wxRect * >(argp2);
8208 {
8209 if (!wxPyCheckForApp()) SWIG_fail;
8210 PyThreadState* __tstate = wxPyBeginAllowThreads();
8211 result = (PyObject *)wxIntersectRect(arg1,arg2);
8212 wxPyEndAllowThreads(__tstate);
8213 if (PyErr_Occurred()) SWIG_fail;
8214 }
8215 resultobj = result;
8216 return resultobj;
8217fail:
8218 return NULL;
8219}
8220
8221
8222SWIGINTERN PyObject *_wrap_new_Point2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8223 PyObject *resultobj = 0;
8224 double arg1 = (double) 0.0 ;
8225 double arg2 = (double) 0.0 ;
8226 wxPoint2D *result = 0 ;
8227 double val1 ;
8228 int ecode1 = 0 ;
8229 double val2 ;
8230 int ecode2 = 0 ;
8231 PyObject * obj0 = 0 ;
8232 PyObject * obj1 = 0 ;
8233 char * kwnames[] = {
8234 (char *) "x",(char *) "y", NULL
8235 };
8236
8237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) SWIG_fail;
8238 if (obj0) {
8239 ecode1 = SWIG_AsVal_double(obj0, &val1);
8240 if (!SWIG_IsOK(ecode1)) {
8241 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Point2D" "', expected argument " "1"" of type '" "double""'");
8242 }
8243 arg1 = static_cast< double >(val1);
8244 }
8245 if (obj1) {
8246 ecode2 = SWIG_AsVal_double(obj1, &val2);
8247 if (!SWIG_IsOK(ecode2)) {
8248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Point2D" "', expected argument " "2"" of type '" "double""'");
8249 }
8250 arg2 = static_cast< double >(val2);
8251 }
8252 {
1bd55598 8253 result = (wxPoint2D *)new wxPoint2D(arg1,arg2);
1bd55598
RD
8254 if (PyErr_Occurred()) SWIG_fail;
8255 }
8256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_NEW | 0 );
8257 return resultobj;
8258fail:
8259 return NULL;
d55e5bfc
RD
8260}
8261
8262
1bd55598
RD
8263SWIGINTERN PyObject *_wrap_new_Point2DCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8264 PyObject *resultobj = 0;
8265 wxPoint2D *arg1 = 0 ;
8266 wxPoint2D *result = 0 ;
8267 wxPoint2D temp1 ;
8268 PyObject * obj0 = 0 ;
8269 char * kwnames[] = {
8270 (char *) "pt", NULL
8271 };
8272
8273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) SWIG_fail;
8274 {
8275 arg1 = &temp1;
8276 if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail;
8277 }
8278 {
1bd55598 8279 result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1);
1bd55598
RD
8280 if (PyErr_Occurred()) SWIG_fail;
8281 }
8282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
8283 return resultobj;
8284fail:
8285 return NULL;
d55e5bfc
RD
8286}
8287
8288
1bd55598
RD
8289SWIGINTERN PyObject *_wrap_new_Point2DFromPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8290 PyObject *resultobj = 0;
8291 wxPoint *arg1 = 0 ;
8292 wxPoint2D *result = 0 ;
8293 wxPoint temp1 ;
8294 PyObject * obj0 = 0 ;
8295 char * kwnames[] = {
8296 (char *) "pt", NULL
8297 };
8298
8299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) SWIG_fail;
8300 {
8301 arg1 = &temp1;
8302 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
8303 }
8304 {
1bd55598 8305 result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1);
1bd55598
RD
8306 if (PyErr_Occurred()) SWIG_fail;
8307 }
8308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
8309 return resultobj;
8310fail:
8311 return NULL;
8312}
8313
8314
b39fe951
RD
8315SWIGINTERN PyObject *_wrap_delete_Point2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8316 PyObject *resultobj = 0;
8317 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8318 void *argp1 = 0 ;
8319 int res1 = 0 ;
8320 PyObject *swig_obj[1] ;
8321
8322 if (!args) SWIG_fail;
8323 swig_obj[0] = args;
8324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, SWIG_POINTER_DISOWN | 0 );
8325 if (!SWIG_IsOK(res1)) {
8326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Point2D" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8327 }
8328 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8329 {
b39fe951
RD
8330 delete arg1;
8331
b39fe951
RD
8332 if (PyErr_Occurred()) SWIG_fail;
8333 }
8334 resultobj = SWIG_Py_Void();
8335 return resultobj;
8336fail:
8337 return NULL;
8338}
8339
8340
1bd55598
RD
8341SWIGINTERN PyObject *_wrap_Point2D_GetFloor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8342 PyObject *resultobj = 0;
8343 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8344 int *arg2 = (int *) 0 ;
8345 int *arg3 = (int *) 0 ;
8346 void *argp1 = 0 ;
8347 int res1 = 0 ;
8348 int temp2 ;
8349 int res2 = SWIG_TMPOBJ ;
8350 int temp3 ;
8351 int res3 = SWIG_TMPOBJ ;
8352 PyObject *swig_obj[1] ;
8353
8354 arg2 = &temp2;
8355 arg3 = &temp3;
8356 if (!args) SWIG_fail;
8357 swig_obj[0] = args;
8358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8359 if (!SWIG_IsOK(res1)) {
8360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetFloor" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
8361 }
8362 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8363 {
1bd55598 8364 ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3);
1bd55598
RD
8365 if (PyErr_Occurred()) SWIG_fail;
8366 }
8367 resultobj = SWIG_Py_Void();
8368 if (SWIG_IsTmpObj(res2)) {
8369 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
8370 } else {
8371 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
8373 }
8374 if (SWIG_IsTmpObj(res3)) {
8375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
8376 } else {
8377 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8378 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
8379 }
8380 return resultobj;
8381fail:
8382 return NULL;
8383}
8384
8385
8386SWIGINTERN PyObject *_wrap_Point2D_GetRounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8387 PyObject *resultobj = 0;
8388 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8389 int *arg2 = (int *) 0 ;
8390 int *arg3 = (int *) 0 ;
8391 void *argp1 = 0 ;
8392 int res1 = 0 ;
8393 int temp2 ;
8394 int res2 = SWIG_TMPOBJ ;
8395 int temp3 ;
8396 int res3 = SWIG_TMPOBJ ;
8397 PyObject *swig_obj[1] ;
8398
8399 arg2 = &temp2;
8400 arg3 = &temp3;
8401 if (!args) SWIG_fail;
8402 swig_obj[0] = args;
8403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8404 if (!SWIG_IsOK(res1)) {
8405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetRounded" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
8406 }
8407 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8408 {
1bd55598 8409 ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3);
1bd55598
RD
8410 if (PyErr_Occurred()) SWIG_fail;
8411 }
8412 resultobj = SWIG_Py_Void();
8413 if (SWIG_IsTmpObj(res2)) {
8414 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
8415 } else {
8416 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8417 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
8418 }
8419 if (SWIG_IsTmpObj(res3)) {
8420 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
8421 } else {
8422 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8423 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
8424 }
8425 return resultobj;
8426fail:
8427 return NULL;
d55e5bfc
RD
8428}
8429
8430
1bd55598
RD
8431SWIGINTERN PyObject *_wrap_Point2D_GetVectorLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8432 PyObject *resultobj = 0;
8433 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8434 double result;
8435 void *argp1 = 0 ;
8436 int res1 = 0 ;
8437 PyObject *swig_obj[1] ;
8438
8439 if (!args) SWIG_fail;
8440 swig_obj[0] = args;
8441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8442 if (!SWIG_IsOK(res1)) {
8443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetVectorLength" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
8444 }
8445 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8446 {
1bd55598 8447 result = (double)((wxPoint2D const *)arg1)->GetVectorLength();
1bd55598
RD
8448 if (PyErr_Occurred()) SWIG_fail;
8449 }
8450 resultobj = SWIG_From_double(static_cast< double >(result));
8451 return resultobj;
8452fail:
8453 return NULL;
d55e5bfc
RD
8454}
8455
8456
1bd55598
RD
8457SWIGINTERN PyObject *_wrap_Point2D_GetVectorAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8458 PyObject *resultobj = 0;
8459 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8460 double result;
8461 void *argp1 = 0 ;
8462 int res1 = 0 ;
8463 PyObject *swig_obj[1] ;
8464
8465 if (!args) SWIG_fail;
8466 swig_obj[0] = args;
8467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8468 if (!SWIG_IsOK(res1)) {
8469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetVectorAngle" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
8470 }
8471 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8472 {
1bd55598 8473 result = (double)((wxPoint2D const *)arg1)->GetVectorAngle();
1bd55598
RD
8474 if (PyErr_Occurred()) SWIG_fail;
8475 }
8476 resultobj = SWIG_From_double(static_cast< double >(result));
8477 return resultobj;
8478fail:
8479 return NULL;
8480}
8481
8482
8483SWIGINTERN PyObject *_wrap_Point2D_SetVectorLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8484 PyObject *resultobj = 0;
8485 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8486 double arg2 ;
8487 void *argp1 = 0 ;
8488 int res1 = 0 ;
8489 double val2 ;
8490 int ecode2 = 0 ;
8491 PyObject * obj0 = 0 ;
8492 PyObject * obj1 = 0 ;
8493 char * kwnames[] = {
8494 (char *) "self",(char *) "length", NULL
8495 };
8496
8497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) SWIG_fail;
8498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8499 if (!SWIG_IsOK(res1)) {
8500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_SetVectorLength" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8501 }
8502 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8503 ecode2 = SWIG_AsVal_double(obj1, &val2);
8504 if (!SWIG_IsOK(ecode2)) {
8505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point2D_SetVectorLength" "', expected argument " "2"" of type '" "double""'");
8506 }
8507 arg2 = static_cast< double >(val2);
8508 {
1bd55598 8509 (arg1)->SetVectorLength(arg2);
1bd55598
RD
8510 if (PyErr_Occurred()) SWIG_fail;
8511 }
8512 resultobj = SWIG_Py_Void();
8513 return resultobj;
8514fail:
8515 return NULL;
8516}
8517
8518
8519SWIGINTERN PyObject *_wrap_Point2D_SetVectorAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8520 PyObject *resultobj = 0;
8521 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8522 double arg2 ;
8523 void *argp1 = 0 ;
8524 int res1 = 0 ;
8525 double val2 ;
8526 int ecode2 = 0 ;
8527 PyObject * obj0 = 0 ;
8528 PyObject * obj1 = 0 ;
8529 char * kwnames[] = {
8530 (char *) "self",(char *) "degrees", NULL
8531 };
8532
8533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) SWIG_fail;
8534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8535 if (!SWIG_IsOK(res1)) {
8536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_SetVectorAngle" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8537 }
8538 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8539 ecode2 = SWIG_AsVal_double(obj1, &val2);
8540 if (!SWIG_IsOK(ecode2)) {
8541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point2D_SetVectorAngle" "', expected argument " "2"" of type '" "double""'");
8542 }
8543 arg2 = static_cast< double >(val2);
8544 {
1bd55598 8545 (arg1)->SetVectorAngle(arg2);
1bd55598
RD
8546 if (PyErr_Occurred()) SWIG_fail;
8547 }
8548 resultobj = SWIG_Py_Void();
8549 return resultobj;
8550fail:
8551 return NULL;
8552}
8553
8554
8555SWIGINTERN PyObject *_wrap_Point2D_GetDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8556 PyObject *resultobj = 0;
8557 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8558 wxPoint2D *arg2 = 0 ;
8559 double result;
8560 void *argp1 = 0 ;
8561 int res1 = 0 ;
8562 wxPoint2D temp2 ;
8563 PyObject * obj0 = 0 ;
8564 PyObject * obj1 = 0 ;
8565 char * kwnames[] = {
8566 (char *) "self",(char *) "pt", NULL
8567 };
8568
8569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) SWIG_fail;
8570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8571 if (!SWIG_IsOK(res1)) {
8572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetDistance" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
8573 }
8574 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8575 {
8576 arg2 = &temp2;
8577 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
8578 }
8579 {
1bd55598 8580 result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2);
1bd55598
RD
8581 if (PyErr_Occurred()) SWIG_fail;
8582 }
8583 resultobj = SWIG_From_double(static_cast< double >(result));
8584 return resultobj;
8585fail:
8586 return NULL;
8587}
8588
8589
8590SWIGINTERN PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8591 PyObject *resultobj = 0;
8592 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8593 wxPoint2D *arg2 = 0 ;
8594 double result;
8595 void *argp1 = 0 ;
8596 int res1 = 0 ;
8597 wxPoint2D temp2 ;
8598 PyObject * obj0 = 0 ;
8599 PyObject * obj1 = 0 ;
8600 char * kwnames[] = {
8601 (char *) "self",(char *) "pt", NULL
8602 };
8603
8604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) SWIG_fail;
8605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8606 if (!SWIG_IsOK(res1)) {
8607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetDistanceSquare" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
8608 }
8609 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8610 {
8611 arg2 = &temp2;
8612 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
8613 }
8614 {
1bd55598 8615 result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2);
1bd55598
RD
8616 if (PyErr_Occurred()) SWIG_fail;
8617 }
8618 resultobj = SWIG_From_double(static_cast< double >(result));
8619 return resultobj;
8620fail:
8621 return NULL;
8622}
8623
8624
8625SWIGINTERN PyObject *_wrap_Point2D_GetDotProduct(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8626 PyObject *resultobj = 0;
8627 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8628 wxPoint2D *arg2 = 0 ;
8629 double result;
8630 void *argp1 = 0 ;
8631 int res1 = 0 ;
8632 wxPoint2D temp2 ;
8633 PyObject * obj0 = 0 ;
8634 PyObject * obj1 = 0 ;
8635 char * kwnames[] = {
8636 (char *) "self",(char *) "vec", NULL
8637 };
8638
8639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) SWIG_fail;
8640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8641 if (!SWIG_IsOK(res1)) {
8642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetDotProduct" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
8643 }
8644 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8645 {
8646 arg2 = &temp2;
8647 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
8648 }
8649 {
1bd55598 8650 result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2);
1bd55598
RD
8651 if (PyErr_Occurred()) SWIG_fail;
8652 }
8653 resultobj = SWIG_From_double(static_cast< double >(result));
8654 return resultobj;
8655fail:
8656 return NULL;
8657}
8658
8659
8660SWIGINTERN PyObject *_wrap_Point2D_GetCrossProduct(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8661 PyObject *resultobj = 0;
8662 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8663 wxPoint2D *arg2 = 0 ;
8664 double result;
8665 void *argp1 = 0 ;
8666 int res1 = 0 ;
8667 wxPoint2D temp2 ;
8668 PyObject * obj0 = 0 ;
8669 PyObject * obj1 = 0 ;
8670 char * kwnames[] = {
8671 (char *) "self",(char *) "vec", NULL
8672 };
8673
8674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) SWIG_fail;
8675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8676 if (!SWIG_IsOK(res1)) {
8677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetCrossProduct" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
8678 }
8679 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8680 {
8681 arg2 = &temp2;
8682 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
8683 }
8684 {
1bd55598 8685 result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2);
1bd55598
RD
8686 if (PyErr_Occurred()) SWIG_fail;
8687 }
8688 resultobj = SWIG_From_double(static_cast< double >(result));
8689 return resultobj;
8690fail:
8691 return NULL;
d55e5bfc
RD
8692}
8693
8694
1bd55598
RD
8695SWIGINTERN PyObject *_wrap_Point2D___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8696 PyObject *resultobj = 0;
8697 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8698 wxPoint2D result;
8699 void *argp1 = 0 ;
8700 int res1 = 0 ;
8701 PyObject *swig_obj[1] ;
8702
8703 if (!args) SWIG_fail;
8704 swig_obj[0] = args;
8705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8706 if (!SWIG_IsOK(res1)) {
8707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___neg__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8708 }
8709 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8710 {
1bd55598 8711 result = (arg1)->operator -();
1bd55598
RD
8712 if (PyErr_Occurred()) SWIG_fail;
8713 }
8714 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
8715 return resultobj;
8716fail:
8717 return NULL;
8718}
8719
8720
8721SWIGINTERN PyObject *_wrap_Point2D___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8722 PyObject *resultobj = 0;
8723 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8724 wxPoint2D *arg2 = 0 ;
8725 wxPoint2D *result = 0 ;
8726 void *argp1 = 0 ;
8727 int res1 = 0 ;
8728 wxPoint2D temp2 ;
8729 PyObject * obj0 = 0 ;
8730 PyObject * obj1 = 0 ;
8731 char * kwnames[] = {
8732 (char *) "self",(char *) "pt", NULL
8733 };
8734
8735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) SWIG_fail;
8736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, SWIG_POINTER_DISOWN | 0 );
8737 if (!SWIG_IsOK(res1)) {
8738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___iadd__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8739 }
8740 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8741 {
8742 arg2 = &temp2;
8743 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
8744 }
8745 {
36ed4f51 8746 {
1bd55598
RD
8747 wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2);
8748 result = (wxPoint2D *) &_result_ref;
36ed4f51 8749 }
1bd55598
RD
8750 if (PyErr_Occurred()) SWIG_fail;
8751 }
8752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
8753 return resultobj;
8754fail:
8755 return NULL;
8756}
8757
8758
8759SWIGINTERN PyObject *_wrap_Point2D___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8760 PyObject *resultobj = 0;
8761 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8762 wxPoint2D *arg2 = 0 ;
8763 wxPoint2D *result = 0 ;
8764 void *argp1 = 0 ;
8765 int res1 = 0 ;
8766 wxPoint2D temp2 ;
8767 PyObject * obj0 = 0 ;
8768 PyObject * obj1 = 0 ;
8769 char * kwnames[] = {
8770 (char *) "self",(char *) "pt", NULL
8771 };
8772
8773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) SWIG_fail;
8774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, SWIG_POINTER_DISOWN | 0 );
8775 if (!SWIG_IsOK(res1)) {
8776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___isub__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8777 }
8778 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8779 {
8780 arg2 = &temp2;
8781 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
8782 }
8783 {
d55e5bfc 8784 {
1bd55598
RD
8785 wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2);
8786 result = (wxPoint2D *) &_result_ref;
d55e5bfc 8787 }
1bd55598
RD
8788 if (PyErr_Occurred()) SWIG_fail;
8789 }
8790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
8791 return resultobj;
8792fail:
8793 return NULL;
8794}
8795
8796
8797SWIGINTERN PyObject *_wrap_Point2D___imul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8798 PyObject *resultobj = 0;
8799 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8800 wxPoint2D *arg2 = 0 ;
8801 wxPoint2D *result = 0 ;
8802 void *argp1 = 0 ;
8803 int res1 = 0 ;
8804 wxPoint2D temp2 ;
8805 PyObject * obj0 = 0 ;
8806 PyObject * obj1 = 0 ;
8807 char * kwnames[] = {
8808 (char *) "self",(char *) "pt", NULL
8809 };
8810
8811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) SWIG_fail;
8812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, SWIG_POINTER_DISOWN | 0 );
8813 if (!SWIG_IsOK(res1)) {
8814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___imul__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8815 }
8816 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8817 {
8818 arg2 = &temp2;
8819 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
8820 }
8821 {
d55e5bfc 8822 {
1bd55598
RD
8823 wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2);
8824 result = (wxPoint2D *) &_result_ref;
d55e5bfc 8825 }
1bd55598
RD
8826 if (PyErr_Occurred()) SWIG_fail;
8827 }
8828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
8829 return resultobj;
8830fail:
8831 return NULL;
8832}
8833
8834
8835SWIGINTERN PyObject *_wrap_Point2D___idiv__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8836 PyObject *resultobj = 0;
8837 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8838 wxPoint2D *arg2 = 0 ;
8839 wxPoint2D *result = 0 ;
8840 void *argp1 = 0 ;
8841 int res1 = 0 ;
8842 wxPoint2D temp2 ;
8843 PyObject * obj0 = 0 ;
8844 PyObject * obj1 = 0 ;
8845 char * kwnames[] = {
8846 (char *) "self",(char *) "pt", NULL
8847 };
8848
8849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) SWIG_fail;
8850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, SWIG_POINTER_DISOWN | 0 );
8851 if (!SWIG_IsOK(res1)) {
8852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___idiv__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8853 }
8854 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8855 {
8856 arg2 = &temp2;
8857 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
8858 }
8859 {
d55e5bfc 8860 {
1bd55598
RD
8861 wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2);
8862 result = (wxPoint2D *) &_result_ref;
d55e5bfc 8863 }
1bd55598
RD
8864 if (PyErr_Occurred()) SWIG_fail;
8865 }
8866 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
8867 return resultobj;
8868fail:
8869 return NULL;
8870}
8871
8872
8873SWIGINTERN PyObject *_wrap_Point2D___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8874 PyObject *resultobj = 0;
8875 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
e9d6f3a4 8876 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
8877 bool result;
8878 void *argp1 = 0 ;
8879 int res1 = 0 ;
1bd55598
RD
8880 PyObject * obj0 = 0 ;
8881 PyObject * obj1 = 0 ;
8882 char * kwnames[] = {
e9d6f3a4 8883 (char *) "self",(char *) "other", NULL
1bd55598
RD
8884 };
8885
8886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
8887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8888 if (!SWIG_IsOK(res1)) {
e9d6f3a4 8889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___eq__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
1bd55598
RD
8890 }
8891 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
e9d6f3a4 8892 arg2 = obj1;
1bd55598 8893 {
e9d6f3a4 8894 result = (bool)wxPoint2D___eq__(arg1,arg2);
1bd55598
RD
8895 if (PyErr_Occurred()) SWIG_fail;
8896 }
8897 {
8898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8899 }
8900 return resultobj;
8901fail:
8902 return NULL;
8903}
8904
8905
8906SWIGINTERN PyObject *_wrap_Point2D___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8907 PyObject *resultobj = 0;
8908 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
e9d6f3a4 8909 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
8910 bool result;
8911 void *argp1 = 0 ;
8912 int res1 = 0 ;
1bd55598
RD
8913 PyObject * obj0 = 0 ;
8914 PyObject * obj1 = 0 ;
8915 char * kwnames[] = {
e9d6f3a4 8916 (char *) "self",(char *) "other", NULL
1bd55598
RD
8917 };
8918
8919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
8920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8921 if (!SWIG_IsOK(res1)) {
e9d6f3a4 8922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___ne__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
1bd55598
RD
8923 }
8924 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
e9d6f3a4 8925 arg2 = obj1;
1bd55598 8926 {
e9d6f3a4 8927 result = (bool)wxPoint2D___ne__(arg1,arg2);
1bd55598
RD
8928 if (PyErr_Occurred()) SWIG_fail;
8929 }
8930 {
8931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8932 }
8933 return resultobj;
8934fail:
8935 return NULL;
d55e5bfc
RD
8936}
8937
8938
1bd55598
RD
8939SWIGINTERN PyObject *_wrap_Point2D_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8940 PyObject *resultobj = 0;
8941 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8942 double arg2 ;
8943 void *argp1 = 0 ;
8944 int res1 = 0 ;
8945 double val2 ;
8946 int ecode2 = 0 ;
8947 PyObject *swig_obj[2] ;
8948
8949 if (!SWIG_Python_UnpackTuple(args,"Point2D_x_set",2,2,swig_obj)) SWIG_fail;
8950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8951 if (!SWIG_IsOK(res1)) {
8952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_x_set" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8953 }
8954 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8955 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8956 if (!SWIG_IsOK(ecode2)) {
8957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point2D_x_set" "', expected argument " "2"" of type '" "double""'");
8958 }
8959 arg2 = static_cast< double >(val2);
8960 if (arg1) (arg1)->m_x = arg2;
8961
8962 resultobj = SWIG_Py_Void();
8963 return resultobj;
8964fail:
8965 return NULL;
d55e5bfc
RD
8966}
8967
8968
1bd55598
RD
8969SWIGINTERN PyObject *_wrap_Point2D_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8970 PyObject *resultobj = 0;
8971 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8972 double result;
8973 void *argp1 = 0 ;
8974 int res1 = 0 ;
8975 PyObject *swig_obj[1] ;
8976
8977 if (!args) SWIG_fail;
8978 swig_obj[0] = args;
8979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8980 if (!SWIG_IsOK(res1)) {
8981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_x_get" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8982 }
8983 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8984 result = (double) ((arg1)->m_x);
8985 resultobj = SWIG_From_double(static_cast< double >(result));
8986 return resultobj;
8987fail:
8988 return NULL;
8989}
8990
8991
8992SWIGINTERN PyObject *_wrap_Point2D_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8993 PyObject *resultobj = 0;
8994 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8995 double arg2 ;
8996 void *argp1 = 0 ;
8997 int res1 = 0 ;
8998 double val2 ;
8999 int ecode2 = 0 ;
9000 PyObject *swig_obj[2] ;
9001
9002 if (!SWIG_Python_UnpackTuple(args,"Point2D_y_set",2,2,swig_obj)) SWIG_fail;
9003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
9004 if (!SWIG_IsOK(res1)) {
9005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_y_set" "', expected argument " "1"" of type '" "wxPoint2D *""'");
9006 }
9007 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
9008 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
9009 if (!SWIG_IsOK(ecode2)) {
9010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point2D_y_set" "', expected argument " "2"" of type '" "double""'");
9011 }
9012 arg2 = static_cast< double >(val2);
9013 if (arg1) (arg1)->m_y = arg2;
9014
9015 resultobj = SWIG_Py_Void();
9016 return resultobj;
9017fail:
9018 return NULL;
d55e5bfc
RD
9019}
9020
9021
1bd55598
RD
9022SWIGINTERN PyObject *_wrap_Point2D_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9023 PyObject *resultobj = 0;
9024 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
9025 double result;
9026 void *argp1 = 0 ;
9027 int res1 = 0 ;
9028 PyObject *swig_obj[1] ;
9029
9030 if (!args) SWIG_fail;
9031 swig_obj[0] = args;
9032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
9033 if (!SWIG_IsOK(res1)) {
9034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_y_get" "', expected argument " "1"" of type '" "wxPoint2D *""'");
9035 }
9036 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
9037 result = (double) ((arg1)->m_y);
9038 resultobj = SWIG_From_double(static_cast< double >(result));
9039 return resultobj;
9040fail:
9041 return NULL;
9042}
9043
9044
9045SWIGINTERN PyObject *_wrap_Point2D_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9046 PyObject *resultobj = 0;
9047 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
9048 double arg2 = (double) 0 ;
9049 double arg3 = (double) 0 ;
9050 void *argp1 = 0 ;
9051 int res1 = 0 ;
9052 double val2 ;
9053 int ecode2 = 0 ;
9054 double val3 ;
9055 int ecode3 = 0 ;
9056 PyObject * obj0 = 0 ;
9057 PyObject * obj1 = 0 ;
9058 PyObject * obj2 = 0 ;
9059 char * kwnames[] = {
9060 (char *) "self",(char *) "x",(char *) "y", NULL
9061 };
9062
9063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
9065 if (!SWIG_IsOK(res1)) {
9066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_Set" "', expected argument " "1"" of type '" "wxPoint2D *""'");
9067 }
9068 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
9069 if (obj1) {
9070 ecode2 = SWIG_AsVal_double(obj1, &val2);
9071 if (!SWIG_IsOK(ecode2)) {
9072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point2D_Set" "', expected argument " "2"" of type '" "double""'");
9073 }
9074 arg2 = static_cast< double >(val2);
9075 }
9076 if (obj2) {
9077 ecode3 = SWIG_AsVal_double(obj2, &val3);
9078 if (!SWIG_IsOK(ecode3)) {
9079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Point2D_Set" "', expected argument " "3"" of type '" "double""'");
9080 }
9081 arg3 = static_cast< double >(val3);
9082 }
9083 {
1bd55598 9084 wxPoint2D_Set(arg1,arg2,arg3);
1bd55598
RD
9085 if (PyErr_Occurred()) SWIG_fail;
9086 }
9087 resultobj = SWIG_Py_Void();
9088 return resultobj;
9089fail:
9090 return NULL;
d55e5bfc
RD
9091}
9092
9093
1bd55598
RD
9094SWIGINTERN PyObject *_wrap_Point2D_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9095 PyObject *resultobj = 0;
9096 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
9097 PyObject *result = 0 ;
9098 void *argp1 = 0 ;
9099 int res1 = 0 ;
9100 PyObject *swig_obj[1] ;
9101
9102 if (!args) SWIG_fail;
9103 swig_obj[0] = args;
9104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
9105 if (!SWIG_IsOK(res1)) {
9106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_Get" "', expected argument " "1"" of type '" "wxPoint2D *""'");
9107 }
9108 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
9109 {
1bd55598 9110 result = (PyObject *)wxPoint2D_Get(arg1);
1bd55598
RD
9111 if (PyErr_Occurred()) SWIG_fail;
9112 }
9113 resultobj = result;
9114 return resultobj;
9115fail:
9116 return NULL;
aff4cc5c
RD
9117}
9118
9119
1bd55598
RD
9120SWIGINTERN PyObject *Point2D_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9121 PyObject *obj;
9122 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9123 SWIG_TypeNewClientData(SWIGTYPE_p_wxPoint2D, SWIG_NewClientData(obj));
9124 return SWIG_Py_Void();
d55e5bfc
RD
9125}
9126
1bd55598
RD
9127SWIGINTERN PyObject *Point2D_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9128 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9129}
9130
70d7cb34
RD
9131SWIGINTERN PyObject *_wrap_new_Rect2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9132 PyObject *resultobj = 0;
9133 wxDouble arg1 = (wxDouble) 0.0 ;
9134 wxDouble arg2 = (wxDouble) 0.0 ;
9135 wxDouble arg3 = (wxDouble) 0.0 ;
9136 wxDouble arg4 = (wxDouble) 0.0 ;
9137 wxRect2D *result = 0 ;
9138 void *argp1 ;
9139 int res1 = 0 ;
9140 void *argp2 ;
9141 int res2 = 0 ;
9142 void *argp3 ;
9143 int res3 = 0 ;
9144 void *argp4 ;
9145 int res4 = 0 ;
9146 PyObject * obj0 = 0 ;
9147 PyObject * obj1 = 0 ;
9148 PyObject * obj2 = 0 ;
9149 PyObject * obj3 = 0 ;
9150 char * kwnames[] = {
9151 (char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
9152 };
9153
9154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect2D",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9155 if (obj0) {
9156 {
9157 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDouble, 0 | 0);
9158 if (!SWIG_IsOK(res1)) {
9159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Rect2D" "', expected argument " "1"" of type '" "wxDouble""'");
9160 }
9161 if (!argp1) {
9162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Rect2D" "', expected argument " "1"" of type '" "wxDouble""'");
9163 } else {
9164 wxDouble * temp = reinterpret_cast< wxDouble * >(argp1);
9165 arg1 = *temp;
9166 if (SWIG_IsNewObj(res1)) delete temp;
9167 }
9168 }
9169 }
9170 if (obj1) {
9171 {
9172 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9173 if (!SWIG_IsOK(res2)) {
9174 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Rect2D" "', expected argument " "2"" of type '" "wxDouble""'");
9175 }
9176 if (!argp2) {
9177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Rect2D" "', expected argument " "2"" of type '" "wxDouble""'");
9178 } else {
9179 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9180 arg2 = *temp;
9181 if (SWIG_IsNewObj(res2)) delete temp;
9182 }
9183 }
9184 }
9185 if (obj2) {
9186 {
9187 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDouble, 0 | 0);
9188 if (!SWIG_IsOK(res3)) {
9189 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Rect2D" "', expected argument " "3"" of type '" "wxDouble""'");
9190 }
9191 if (!argp3) {
9192 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Rect2D" "', expected argument " "3"" of type '" "wxDouble""'");
9193 } else {
9194 wxDouble * temp = reinterpret_cast< wxDouble * >(argp3);
9195 arg3 = *temp;
9196 if (SWIG_IsNewObj(res3)) delete temp;
9197 }
9198 }
9199 }
9200 if (obj3) {
9201 {
9202 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDouble, 0 | 0);
9203 if (!SWIG_IsOK(res4)) {
9204 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Rect2D" "', expected argument " "4"" of type '" "wxDouble""'");
9205 }
9206 if (!argp4) {
9207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Rect2D" "', expected argument " "4"" of type '" "wxDouble""'");
9208 } else {
9209 wxDouble * temp = reinterpret_cast< wxDouble * >(argp4);
9210 arg4 = *temp;
9211 if (SWIG_IsNewObj(res4)) delete temp;
9212 }
9213 }
9214 }
9215 {
9216 result = (wxRect2D *)new wxRect2D(arg1,arg2,arg3,arg4);
9217 if (PyErr_Occurred()) SWIG_fail;
9218 }
9219 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect2D, SWIG_POINTER_NEW | 0 );
9220 return resultobj;
9221fail:
9222 return NULL;
9223}
9224
9225
9226SWIGINTERN PyObject *_wrap_delete_Rect2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9227 PyObject *resultobj = 0;
9228 wxRect2D *arg1 = (wxRect2D *) 0 ;
9229 void *argp1 = 0 ;
9230 int res1 = 0 ;
9231 PyObject *swig_obj[1] ;
9232
9233 if (!args) SWIG_fail;
9234 swig_obj[0] = args;
9235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, SWIG_POINTER_DISOWN | 0 );
9236 if (!SWIG_IsOK(res1)) {
9237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Rect2D" "', expected argument " "1"" of type '" "wxRect2D *""'");
9238 }
9239 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9240 {
9241 delete arg1;
9242
9243 if (PyErr_Occurred()) SWIG_fail;
9244 }
9245 resultobj = SWIG_Py_Void();
9246 return resultobj;
9247fail:
9248 return NULL;
9249}
9250
9251
9252SWIGINTERN PyObject *_wrap_Rect2D_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9253 PyObject *resultobj = 0;
9254 wxRect2D *arg1 = (wxRect2D *) 0 ;
9255 wxPoint2D result;
9256 void *argp1 = 0 ;
9257 int res1 = 0 ;
9258 PyObject *swig_obj[1] ;
9259
9260 if (!args) SWIG_fail;
9261 swig_obj[0] = args;
9262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9263 if (!SWIG_IsOK(res1)) {
9264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetPosition" "', expected argument " "1"" of type '" "wxRect2D *""'");
9265 }
9266 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9267 {
9268 result = (arg1)->GetPosition();
9269 if (PyErr_Occurred()) SWIG_fail;
9270 }
9271 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
9272 return resultobj;
9273fail:
9274 return NULL;
9275}
9276
9277
9278SWIGINTERN PyObject *_wrap_Rect2D_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9279 PyObject *resultobj = 0;
9280 wxRect2D *arg1 = (wxRect2D *) 0 ;
9281 wxSize result;
9282 void *argp1 = 0 ;
9283 int res1 = 0 ;
9284 PyObject *swig_obj[1] ;
9285
9286 if (!args) SWIG_fail;
9287 swig_obj[0] = args;
9288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9289 if (!SWIG_IsOK(res1)) {
9290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetSize" "', expected argument " "1"" of type '" "wxRect2D *""'");
9291 }
9292 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9293 {
9294 result = (arg1)->GetSize();
9295 if (PyErr_Occurred()) SWIG_fail;
9296 }
9297 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
9298 return resultobj;
9299fail:
9300 return NULL;
9301}
9302
9303
9304SWIGINTERN PyObject *_wrap_Rect2D_GetLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9305 PyObject *resultobj = 0;
9306 wxRect2D *arg1 = (wxRect2D *) 0 ;
9307 wxDouble result;
9308 void *argp1 = 0 ;
9309 int res1 = 0 ;
9310 PyObject *swig_obj[1] ;
9311
9312 if (!args) SWIG_fail;
9313 swig_obj[0] = args;
9314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9315 if (!SWIG_IsOK(res1)) {
9316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetLeft" "', expected argument " "1"" of type '" "wxRect2D const *""'");
9317 }
9318 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9319 {
9320 result = ((wxRect2D const *)arg1)->GetLeft();
9321 if (PyErr_Occurred()) SWIG_fail;
9322 }
9323 resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
9324 return resultobj;
9325fail:
9326 return NULL;
9327}
9328
9329
9330SWIGINTERN PyObject *_wrap_Rect2D_SetLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9331 PyObject *resultobj = 0;
9332 wxRect2D *arg1 = (wxRect2D *) 0 ;
9333 wxDouble arg2 ;
9334 void *argp1 = 0 ;
9335 int res1 = 0 ;
9336 void *argp2 ;
9337 int res2 = 0 ;
9338 PyObject * obj0 = 0 ;
9339 PyObject * obj1 = 0 ;
9340 char * kwnames[] = {
9341 (char *) "self",(char *) "n", NULL
9342 };
9343
9344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetLeft",kwnames,&obj0,&obj1)) SWIG_fail;
9345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9346 if (!SWIG_IsOK(res1)) {
9347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetLeft" "', expected argument " "1"" of type '" "wxRect2D *""'");
9348 }
9349 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9350 {
9351 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9352 if (!SWIG_IsOK(res2)) {
9353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_SetLeft" "', expected argument " "2"" of type '" "wxDouble""'");
9354 }
9355 if (!argp2) {
9356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_SetLeft" "', expected argument " "2"" of type '" "wxDouble""'");
9357 } else {
9358 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9359 arg2 = *temp;
9360 if (SWIG_IsNewObj(res2)) delete temp;
9361 }
9362 }
9363 {
9364 (arg1)->SetLeft(arg2);
9365 if (PyErr_Occurred()) SWIG_fail;
9366 }
9367 resultobj = SWIG_Py_Void();
9368 return resultobj;
9369fail:
9370 return NULL;
9371}
9372
9373
9374SWIGINTERN PyObject *_wrap_Rect2D_MoveLeftTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9375 PyObject *resultobj = 0;
9376 wxRect2D *arg1 = (wxRect2D *) 0 ;
9377 wxDouble arg2 ;
9378 void *argp1 = 0 ;
9379 int res1 = 0 ;
9380 void *argp2 ;
9381 int res2 = 0 ;
9382 PyObject * obj0 = 0 ;
9383 PyObject * obj1 = 0 ;
9384 char * kwnames[] = {
9385 (char *) "self",(char *) "n", NULL
9386 };
9387
9388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveLeftTo",kwnames,&obj0,&obj1)) SWIG_fail;
9389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9390 if (!SWIG_IsOK(res1)) {
9391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveLeftTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
9392 }
9393 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9394 {
9395 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9396 if (!SWIG_IsOK(res2)) {
9397 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_MoveLeftTo" "', expected argument " "2"" of type '" "wxDouble""'");
9398 }
9399 if (!argp2) {
9400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_MoveLeftTo" "', expected argument " "2"" of type '" "wxDouble""'");
9401 } else {
9402 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9403 arg2 = *temp;
9404 if (SWIG_IsNewObj(res2)) delete temp;
9405 }
9406 }
9407 {
9408 (arg1)->MoveLeftTo(arg2);
9409 if (PyErr_Occurred()) SWIG_fail;
9410 }
9411 resultobj = SWIG_Py_Void();
9412 return resultobj;
9413fail:
9414 return NULL;
9415}
9416
9417
9418SWIGINTERN PyObject *_wrap_Rect2D_GetTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9419 PyObject *resultobj = 0;
9420 wxRect2D *arg1 = (wxRect2D *) 0 ;
9421 wxDouble result;
9422 void *argp1 = 0 ;
9423 int res1 = 0 ;
9424 PyObject *swig_obj[1] ;
9425
9426 if (!args) SWIG_fail;
9427 swig_obj[0] = args;
9428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9429 if (!SWIG_IsOK(res1)) {
9430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetTop" "', expected argument " "1"" of type '" "wxRect2D const *""'");
9431 }
9432 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9433 {
9434 result = ((wxRect2D const *)arg1)->GetTop();
9435 if (PyErr_Occurred()) SWIG_fail;
9436 }
9437 resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
9438 return resultobj;
9439fail:
9440 return NULL;
9441}
9442
9443
9444SWIGINTERN PyObject *_wrap_Rect2D_SetTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9445 PyObject *resultobj = 0;
9446 wxRect2D *arg1 = (wxRect2D *) 0 ;
9447 wxDouble arg2 ;
9448 void *argp1 = 0 ;
9449 int res1 = 0 ;
9450 void *argp2 ;
9451 int res2 = 0 ;
9452 PyObject * obj0 = 0 ;
9453 PyObject * obj1 = 0 ;
9454 char * kwnames[] = {
9455 (char *) "self",(char *) "n", NULL
9456 };
9457
9458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetTop",kwnames,&obj0,&obj1)) SWIG_fail;
9459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9460 if (!SWIG_IsOK(res1)) {
9461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetTop" "', expected argument " "1"" of type '" "wxRect2D *""'");
9462 }
9463 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9464 {
9465 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9466 if (!SWIG_IsOK(res2)) {
9467 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_SetTop" "', expected argument " "2"" of type '" "wxDouble""'");
9468 }
9469 if (!argp2) {
9470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_SetTop" "', expected argument " "2"" of type '" "wxDouble""'");
9471 } else {
9472 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9473 arg2 = *temp;
9474 if (SWIG_IsNewObj(res2)) delete temp;
9475 }
9476 }
9477 {
9478 (arg1)->SetTop(arg2);
9479 if (PyErr_Occurred()) SWIG_fail;
9480 }
9481 resultobj = SWIG_Py_Void();
9482 return resultobj;
9483fail:
9484 return NULL;
9485}
9486
9487
9488SWIGINTERN PyObject *_wrap_Rect2D_MoveTopTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9489 PyObject *resultobj = 0;
9490 wxRect2D *arg1 = (wxRect2D *) 0 ;
9491 wxDouble arg2 ;
9492 void *argp1 = 0 ;
9493 int res1 = 0 ;
9494 void *argp2 ;
9495 int res2 = 0 ;
9496 PyObject * obj0 = 0 ;
9497 PyObject * obj1 = 0 ;
9498 char * kwnames[] = {
9499 (char *) "self",(char *) "n", NULL
9500 };
9501
9502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveTopTo",kwnames,&obj0,&obj1)) SWIG_fail;
9503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9504 if (!SWIG_IsOK(res1)) {
9505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveTopTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
9506 }
9507 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9508 {
9509 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9510 if (!SWIG_IsOK(res2)) {
9511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_MoveTopTo" "', expected argument " "2"" of type '" "wxDouble""'");
9512 }
9513 if (!argp2) {
9514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_MoveTopTo" "', expected argument " "2"" of type '" "wxDouble""'");
9515 } else {
9516 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9517 arg2 = *temp;
9518 if (SWIG_IsNewObj(res2)) delete temp;
9519 }
9520 }
9521 {
9522 (arg1)->MoveTopTo(arg2);
9523 if (PyErr_Occurred()) SWIG_fail;
9524 }
9525 resultobj = SWIG_Py_Void();
9526 return resultobj;
9527fail:
9528 return NULL;
9529}
9530
9531
9532SWIGINTERN PyObject *_wrap_Rect2D_GetBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9533 PyObject *resultobj = 0;
9534 wxRect2D *arg1 = (wxRect2D *) 0 ;
9535 wxDouble result;
9536 void *argp1 = 0 ;
9537 int res1 = 0 ;
9538 PyObject *swig_obj[1] ;
9539
9540 if (!args) SWIG_fail;
9541 swig_obj[0] = args;
9542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9543 if (!SWIG_IsOK(res1)) {
9544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetBottom" "', expected argument " "1"" of type '" "wxRect2D const *""'");
9545 }
9546 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9547 {
9548 result = ((wxRect2D const *)arg1)->GetBottom();
9549 if (PyErr_Occurred()) SWIG_fail;
9550 }
9551 resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
9552 return resultobj;
9553fail:
9554 return NULL;
9555}
9556
9557
9558SWIGINTERN PyObject *_wrap_Rect2D_SetBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9559 PyObject *resultobj = 0;
9560 wxRect2D *arg1 = (wxRect2D *) 0 ;
9561 wxDouble arg2 ;
9562 void *argp1 = 0 ;
9563 int res1 = 0 ;
9564 void *argp2 ;
9565 int res2 = 0 ;
9566 PyObject * obj0 = 0 ;
9567 PyObject * obj1 = 0 ;
9568 char * kwnames[] = {
9569 (char *) "self",(char *) "n", NULL
9570 };
9571
9572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetBottom",kwnames,&obj0,&obj1)) SWIG_fail;
9573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9574 if (!SWIG_IsOK(res1)) {
9575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetBottom" "', expected argument " "1"" of type '" "wxRect2D *""'");
9576 }
9577 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9578 {
9579 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9580 if (!SWIG_IsOK(res2)) {
9581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_SetBottom" "', expected argument " "2"" of type '" "wxDouble""'");
9582 }
9583 if (!argp2) {
9584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_SetBottom" "', expected argument " "2"" of type '" "wxDouble""'");
9585 } else {
9586 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9587 arg2 = *temp;
9588 if (SWIG_IsNewObj(res2)) delete temp;
9589 }
9590 }
9591 {
9592 (arg1)->SetBottom(arg2);
9593 if (PyErr_Occurred()) SWIG_fail;
9594 }
9595 resultobj = SWIG_Py_Void();
9596 return resultobj;
9597fail:
9598 return NULL;
9599}
9600
9601
9602SWIGINTERN PyObject *_wrap_Rect2D_MoveBottomTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9603 PyObject *resultobj = 0;
9604 wxRect2D *arg1 = (wxRect2D *) 0 ;
9605 wxDouble arg2 ;
9606 void *argp1 = 0 ;
9607 int res1 = 0 ;
9608 void *argp2 ;
9609 int res2 = 0 ;
9610 PyObject * obj0 = 0 ;
9611 PyObject * obj1 = 0 ;
9612 char * kwnames[] = {
9613 (char *) "self",(char *) "n", NULL
9614 };
9615
9616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveBottomTo",kwnames,&obj0,&obj1)) SWIG_fail;
9617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9618 if (!SWIG_IsOK(res1)) {
9619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveBottomTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
9620 }
9621 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9622 {
9623 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9624 if (!SWIG_IsOK(res2)) {
9625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_MoveBottomTo" "', expected argument " "2"" of type '" "wxDouble""'");
9626 }
9627 if (!argp2) {
9628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_MoveBottomTo" "', expected argument " "2"" of type '" "wxDouble""'");
9629 } else {
9630 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9631 arg2 = *temp;
9632 if (SWIG_IsNewObj(res2)) delete temp;
9633 }
9634 }
9635 {
9636 (arg1)->MoveBottomTo(arg2);
9637 if (PyErr_Occurred()) SWIG_fail;
9638 }
9639 resultobj = SWIG_Py_Void();
9640 return resultobj;
9641fail:
9642 return NULL;
9643}
9644
9645
9646SWIGINTERN PyObject *_wrap_Rect2D_GetRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9647 PyObject *resultobj = 0;
9648 wxRect2D *arg1 = (wxRect2D *) 0 ;
9649 wxDouble result;
9650 void *argp1 = 0 ;
9651 int res1 = 0 ;
9652 PyObject *swig_obj[1] ;
9653
9654 if (!args) SWIG_fail;
9655 swig_obj[0] = args;
9656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9657 if (!SWIG_IsOK(res1)) {
9658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetRight" "', expected argument " "1"" of type '" "wxRect2D const *""'");
9659 }
9660 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9661 {
9662 result = ((wxRect2D const *)arg1)->GetRight();
9663 if (PyErr_Occurred()) SWIG_fail;
9664 }
9665 resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
9666 return resultobj;
9667fail:
9668 return NULL;
9669}
9670
9671
9672SWIGINTERN PyObject *_wrap_Rect2D_SetRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9673 PyObject *resultobj = 0;
9674 wxRect2D *arg1 = (wxRect2D *) 0 ;
9675 wxDouble arg2 ;
9676 void *argp1 = 0 ;
9677 int res1 = 0 ;
9678 void *argp2 ;
9679 int res2 = 0 ;
9680 PyObject * obj0 = 0 ;
9681 PyObject * obj1 = 0 ;
9682 char * kwnames[] = {
9683 (char *) "self",(char *) "n", NULL
9684 };
9685
9686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetRight",kwnames,&obj0,&obj1)) SWIG_fail;
9687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9688 if (!SWIG_IsOK(res1)) {
9689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetRight" "', expected argument " "1"" of type '" "wxRect2D *""'");
9690 }
9691 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9692 {
9693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9694 if (!SWIG_IsOK(res2)) {
9695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_SetRight" "', expected argument " "2"" of type '" "wxDouble""'");
9696 }
9697 if (!argp2) {
9698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_SetRight" "', expected argument " "2"" of type '" "wxDouble""'");
9699 } else {
9700 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9701 arg2 = *temp;
9702 if (SWIG_IsNewObj(res2)) delete temp;
9703 }
9704 }
9705 {
9706 (arg1)->SetRight(arg2);
9707 if (PyErr_Occurred()) SWIG_fail;
9708 }
9709 resultobj = SWIG_Py_Void();
9710 return resultobj;
9711fail:
9712 return NULL;
9713}
9714
9715
9716SWIGINTERN PyObject *_wrap_Rect2D_MoveRightTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9717 PyObject *resultobj = 0;
9718 wxRect2D *arg1 = (wxRect2D *) 0 ;
9719 wxDouble arg2 ;
9720 void *argp1 = 0 ;
9721 int res1 = 0 ;
9722 void *argp2 ;
9723 int res2 = 0 ;
9724 PyObject * obj0 = 0 ;
9725 PyObject * obj1 = 0 ;
9726 char * kwnames[] = {
9727 (char *) "self",(char *) "n", NULL
9728 };
9729
9730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveRightTo",kwnames,&obj0,&obj1)) SWIG_fail;
9731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9732 if (!SWIG_IsOK(res1)) {
9733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveRightTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
9734 }
9735 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9736 {
9737 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9738 if (!SWIG_IsOK(res2)) {
9739 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_MoveRightTo" "', expected argument " "2"" of type '" "wxDouble""'");
9740 }
9741 if (!argp2) {
9742 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_MoveRightTo" "', expected argument " "2"" of type '" "wxDouble""'");
9743 } else {
9744 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9745 arg2 = *temp;
9746 if (SWIG_IsNewObj(res2)) delete temp;
9747 }
9748 }
9749 {
9750 (arg1)->MoveRightTo(arg2);
9751 if (PyErr_Occurred()) SWIG_fail;
9752 }
9753 resultobj = SWIG_Py_Void();
9754 return resultobj;
9755fail:
9756 return NULL;
9757}
9758
9759
9760SWIGINTERN PyObject *_wrap_Rect2D_GetLeftTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9761 PyObject *resultobj = 0;
9762 wxRect2D *arg1 = (wxRect2D *) 0 ;
9763 wxPoint2D result;
9764 void *argp1 = 0 ;
9765 int res1 = 0 ;
9766 PyObject *swig_obj[1] ;
9767
9768 if (!args) SWIG_fail;
9769 swig_obj[0] = args;
9770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9771 if (!SWIG_IsOK(res1)) {
9772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetLeftTop" "', expected argument " "1"" of type '" "wxRect2D const *""'");
9773 }
9774 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9775 {
9776 result = ((wxRect2D const *)arg1)->GetLeftTop();
9777 if (PyErr_Occurred()) SWIG_fail;
9778 }
9779 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
9780 return resultobj;
9781fail:
9782 return NULL;
9783}
9784
9785
9786SWIGINTERN PyObject *_wrap_Rect2D_SetLeftTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9787 PyObject *resultobj = 0;
9788 wxRect2D *arg1 = (wxRect2D *) 0 ;
9789 wxPoint2D *arg2 = 0 ;
9790 void *argp1 = 0 ;
9791 int res1 = 0 ;
9792 wxPoint2D temp2 ;
9793 PyObject * obj0 = 0 ;
9794 PyObject * obj1 = 0 ;
9795 char * kwnames[] = {
9796 (char *) "self",(char *) "pt", NULL
9797 };
9798
9799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetLeftTop",kwnames,&obj0,&obj1)) SWIG_fail;
9800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9801 if (!SWIG_IsOK(res1)) {
9802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetLeftTop" "', expected argument " "1"" of type '" "wxRect2D *""'");
9803 }
9804 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9805 {
9806 arg2 = &temp2;
9807 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
9808 }
9809 {
9810 (arg1)->SetLeftTop((wxPoint2D const &)*arg2);
9811 if (PyErr_Occurred()) SWIG_fail;
9812 }
9813 resultobj = SWIG_Py_Void();
9814 return resultobj;
9815fail:
9816 return NULL;
9817}
9818
9819
9820SWIGINTERN PyObject *_wrap_Rect2D_MoveLeftTopTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9821 PyObject *resultobj = 0;
9822 wxRect2D *arg1 = (wxRect2D *) 0 ;
9823 wxPoint2D *arg2 = 0 ;
9824 void *argp1 = 0 ;
9825 int res1 = 0 ;
9826 wxPoint2D temp2 ;
9827 PyObject * obj0 = 0 ;
9828 PyObject * obj1 = 0 ;
9829 char * kwnames[] = {
9830 (char *) "self",(char *) "pt", NULL
9831 };
9832
9833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveLeftTopTo",kwnames,&obj0,&obj1)) SWIG_fail;
9834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9835 if (!SWIG_IsOK(res1)) {
9836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveLeftTopTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
9837 }
9838 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9839 {
9840 arg2 = &temp2;
9841 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
9842 }
9843 {
9844 (arg1)->MoveLeftTopTo((wxPoint2D const &)*arg2);
9845 if (PyErr_Occurred()) SWIG_fail;
9846 }
9847 resultobj = SWIG_Py_Void();
9848 return resultobj;
9849fail:
9850 return NULL;
9851}
9852
9853
9854SWIGINTERN PyObject *_wrap_Rect2D_GetLeftBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9855 PyObject *resultobj = 0;
9856 wxRect2D *arg1 = (wxRect2D *) 0 ;
9857 wxPoint2D result;
9858 void *argp1 = 0 ;
9859 int res1 = 0 ;
9860 PyObject *swig_obj[1] ;
9861
9862 if (!args) SWIG_fail;
9863 swig_obj[0] = args;
9864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9865 if (!SWIG_IsOK(res1)) {
9866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetLeftBottom" "', expected argument " "1"" of type '" "wxRect2D const *""'");
9867 }
9868 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9869 {
9870 result = ((wxRect2D const *)arg1)->GetLeftBottom();
9871 if (PyErr_Occurred()) SWIG_fail;
9872 }
9873 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
9874 return resultobj;
9875fail:
9876 return NULL;
9877}
9878
9879
9880SWIGINTERN PyObject *_wrap_Rect2D_SetLeftBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9881 PyObject *resultobj = 0;
9882 wxRect2D *arg1 = (wxRect2D *) 0 ;
9883 wxPoint2D *arg2 = 0 ;
9884 void *argp1 = 0 ;
9885 int res1 = 0 ;
9886 wxPoint2D temp2 ;
9887 PyObject * obj0 = 0 ;
9888 PyObject * obj1 = 0 ;
9889 char * kwnames[] = {
9890 (char *) "self",(char *) "pt", NULL
9891 };
9892
9893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetLeftBottom",kwnames,&obj0,&obj1)) SWIG_fail;
9894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9895 if (!SWIG_IsOK(res1)) {
9896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetLeftBottom" "', expected argument " "1"" of type '" "wxRect2D *""'");
9897 }
9898 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9899 {
9900 arg2 = &temp2;
9901 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
9902 }
9903 {
9904 (arg1)->SetLeftBottom((wxPoint2D const &)*arg2);
9905 if (PyErr_Occurred()) SWIG_fail;
9906 }
9907 resultobj = SWIG_Py_Void();
9908 return resultobj;
9909fail:
9910 return NULL;
9911}
9912
9913
9914SWIGINTERN PyObject *_wrap_Rect2D_MoveLeftBottomTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9915 PyObject *resultobj = 0;
9916 wxRect2D *arg1 = (wxRect2D *) 0 ;
9917 wxPoint2D *arg2 = 0 ;
9918 void *argp1 = 0 ;
9919 int res1 = 0 ;
9920 wxPoint2D temp2 ;
9921 PyObject * obj0 = 0 ;
9922 PyObject * obj1 = 0 ;
9923 char * kwnames[] = {
9924 (char *) "self",(char *) "pt", NULL
9925 };
9926
9927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveLeftBottomTo",kwnames,&obj0,&obj1)) SWIG_fail;
9928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9929 if (!SWIG_IsOK(res1)) {
9930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveLeftBottomTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
9931 }
9932 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9933 {
9934 arg2 = &temp2;
9935 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
9936 }
9937 {
9938 (arg1)->MoveLeftBottomTo((wxPoint2D const &)*arg2);
9939 if (PyErr_Occurred()) SWIG_fail;
9940 }
9941 resultobj = SWIG_Py_Void();
9942 return resultobj;
9943fail:
9944 return NULL;
9945}
9946
9947
9948SWIGINTERN PyObject *_wrap_Rect2D_GetRightTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9949 PyObject *resultobj = 0;
9950 wxRect2D *arg1 = (wxRect2D *) 0 ;
9951 wxPoint2D result;
9952 void *argp1 = 0 ;
9953 int res1 = 0 ;
9954 PyObject *swig_obj[1] ;
9955
9956 if (!args) SWIG_fail;
9957 swig_obj[0] = args;
9958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9959 if (!SWIG_IsOK(res1)) {
9960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetRightTop" "', expected argument " "1"" of type '" "wxRect2D const *""'");
9961 }
9962 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9963 {
9964 result = ((wxRect2D const *)arg1)->GetRightTop();
9965 if (PyErr_Occurred()) SWIG_fail;
9966 }
9967 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
9968 return resultobj;
9969fail:
9970 return NULL;
9971}
9972
9973
9974SWIGINTERN PyObject *_wrap_Rect2D_SetRightTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9975 PyObject *resultobj = 0;
9976 wxRect2D *arg1 = (wxRect2D *) 0 ;
9977 wxPoint2D *arg2 = 0 ;
9978 void *argp1 = 0 ;
9979 int res1 = 0 ;
9980 wxPoint2D temp2 ;
9981 PyObject * obj0 = 0 ;
9982 PyObject * obj1 = 0 ;
9983 char * kwnames[] = {
9984 (char *) "self",(char *) "pt", NULL
9985 };
9986
9987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetRightTop",kwnames,&obj0,&obj1)) SWIG_fail;
9988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9989 if (!SWIG_IsOK(res1)) {
9990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetRightTop" "', expected argument " "1"" of type '" "wxRect2D *""'");
9991 }
9992 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9993 {
9994 arg2 = &temp2;
9995 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
9996 }
9997 {
9998 (arg1)->SetRightTop((wxPoint2D const &)*arg2);
9999 if (PyErr_Occurred()) SWIG_fail;
10000 }
10001 resultobj = SWIG_Py_Void();
10002 return resultobj;
10003fail:
10004 return NULL;
10005}
10006
10007
10008SWIGINTERN PyObject *_wrap_Rect2D_MoveRightTopTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10009 PyObject *resultobj = 0;
10010 wxRect2D *arg1 = (wxRect2D *) 0 ;
10011 wxPoint2D *arg2 = 0 ;
10012 void *argp1 = 0 ;
10013 int res1 = 0 ;
10014 wxPoint2D temp2 ;
10015 PyObject * obj0 = 0 ;
10016 PyObject * obj1 = 0 ;
10017 char * kwnames[] = {
10018 (char *) "self",(char *) "pt", NULL
10019 };
10020
10021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveRightTopTo",kwnames,&obj0,&obj1)) SWIG_fail;
10022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10023 if (!SWIG_IsOK(res1)) {
10024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveRightTopTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
10025 }
10026 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10027 {
10028 arg2 = &temp2;
10029 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
10030 }
10031 {
10032 (arg1)->MoveRightTopTo((wxPoint2D const &)*arg2);
10033 if (PyErr_Occurred()) SWIG_fail;
10034 }
10035 resultobj = SWIG_Py_Void();
10036 return resultobj;
10037fail:
10038 return NULL;
10039}
10040
10041
10042SWIGINTERN PyObject *_wrap_Rect2D_GetRightBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10043 PyObject *resultobj = 0;
10044 wxRect2D *arg1 = (wxRect2D *) 0 ;
10045 wxPoint2D result;
10046 void *argp1 = 0 ;
10047 int res1 = 0 ;
10048 PyObject *swig_obj[1] ;
10049
10050 if (!args) SWIG_fail;
10051 swig_obj[0] = args;
10052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10053 if (!SWIG_IsOK(res1)) {
10054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetRightBottom" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10055 }
10056 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10057 {
10058 result = ((wxRect2D const *)arg1)->GetRightBottom();
10059 if (PyErr_Occurred()) SWIG_fail;
10060 }
10061 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
10062 return resultobj;
10063fail:
10064 return NULL;
10065}
10066
10067
10068SWIGINTERN PyObject *_wrap_Rect2D_SetRightBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10069 PyObject *resultobj = 0;
10070 wxRect2D *arg1 = (wxRect2D *) 0 ;
10071 wxPoint2D *arg2 = 0 ;
10072 void *argp1 = 0 ;
10073 int res1 = 0 ;
10074 wxPoint2D temp2 ;
10075 PyObject * obj0 = 0 ;
10076 PyObject * obj1 = 0 ;
10077 char * kwnames[] = {
10078 (char *) "self",(char *) "pt", NULL
10079 };
10080
10081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetRightBottom",kwnames,&obj0,&obj1)) SWIG_fail;
10082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10083 if (!SWIG_IsOK(res1)) {
10084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetRightBottom" "', expected argument " "1"" of type '" "wxRect2D *""'");
10085 }
10086 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10087 {
10088 arg2 = &temp2;
10089 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
10090 }
10091 {
10092 (arg1)->SetRightBottom((wxPoint2D const &)*arg2);
10093 if (PyErr_Occurred()) SWIG_fail;
10094 }
10095 resultobj = SWIG_Py_Void();
10096 return resultobj;
10097fail:
10098 return NULL;
10099}
10100
10101
10102SWIGINTERN PyObject *_wrap_Rect2D_MoveRightBottomTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10103 PyObject *resultobj = 0;
10104 wxRect2D *arg1 = (wxRect2D *) 0 ;
10105 wxPoint2D *arg2 = 0 ;
10106 void *argp1 = 0 ;
10107 int res1 = 0 ;
10108 wxPoint2D temp2 ;
10109 PyObject * obj0 = 0 ;
10110 PyObject * obj1 = 0 ;
10111 char * kwnames[] = {
10112 (char *) "self",(char *) "pt", NULL
10113 };
10114
10115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveRightBottomTo",kwnames,&obj0,&obj1)) SWIG_fail;
10116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10117 if (!SWIG_IsOK(res1)) {
10118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveRightBottomTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
10119 }
10120 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10121 {
10122 arg2 = &temp2;
10123 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
10124 }
10125 {
10126 (arg1)->MoveRightBottomTo((wxPoint2D const &)*arg2);
10127 if (PyErr_Occurred()) SWIG_fail;
10128 }
10129 resultobj = SWIG_Py_Void();
10130 return resultobj;
10131fail:
10132 return NULL;
10133}
10134
10135
10136SWIGINTERN PyObject *_wrap_Rect2D_GetCentre(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10137 PyObject *resultobj = 0;
10138 wxRect2D *arg1 = (wxRect2D *) 0 ;
10139 wxPoint2D result;
10140 void *argp1 = 0 ;
10141 int res1 = 0 ;
10142 PyObject *swig_obj[1] ;
10143
10144 if (!args) SWIG_fail;
10145 swig_obj[0] = args;
10146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10147 if (!SWIG_IsOK(res1)) {
10148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetCentre" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10149 }
10150 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10151 {
10152 result = ((wxRect2D const *)arg1)->GetCentre();
10153 if (PyErr_Occurred()) SWIG_fail;
10154 }
10155 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
10156 return resultobj;
10157fail:
10158 return NULL;
10159}
10160
10161
10162SWIGINTERN PyObject *_wrap_Rect2D_SetCentre(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10163 PyObject *resultobj = 0;
10164 wxRect2D *arg1 = (wxRect2D *) 0 ;
10165 wxPoint2D *arg2 = 0 ;
10166 void *argp1 = 0 ;
10167 int res1 = 0 ;
10168 wxPoint2D temp2 ;
10169 PyObject * obj0 = 0 ;
10170 PyObject * obj1 = 0 ;
10171 char * kwnames[] = {
10172 (char *) "self",(char *) "pt", NULL
10173 };
10174
10175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetCentre",kwnames,&obj0,&obj1)) SWIG_fail;
10176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10177 if (!SWIG_IsOK(res1)) {
10178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetCentre" "', expected argument " "1"" of type '" "wxRect2D *""'");
10179 }
10180 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10181 {
10182 arg2 = &temp2;
10183 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
10184 }
10185 {
10186 (arg1)->SetCentre((wxPoint2D const &)*arg2);
10187 if (PyErr_Occurred()) SWIG_fail;
10188 }
10189 resultobj = SWIG_Py_Void();
10190 return resultobj;
10191fail:
10192 return NULL;
10193}
10194
10195
10196SWIGINTERN PyObject *_wrap_Rect2D_MoveCentreTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10197 PyObject *resultobj = 0;
10198 wxRect2D *arg1 = (wxRect2D *) 0 ;
10199 wxPoint2D *arg2 = 0 ;
10200 void *argp1 = 0 ;
10201 int res1 = 0 ;
10202 wxPoint2D temp2 ;
10203 PyObject * obj0 = 0 ;
10204 PyObject * obj1 = 0 ;
10205 char * kwnames[] = {
10206 (char *) "self",(char *) "pt", NULL
10207 };
10208
10209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveCentreTo",kwnames,&obj0,&obj1)) SWIG_fail;
10210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10211 if (!SWIG_IsOK(res1)) {
10212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveCentreTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
10213 }
10214 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10215 {
10216 arg2 = &temp2;
10217 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
10218 }
10219 {
10220 (arg1)->MoveCentreTo((wxPoint2D const &)*arg2);
10221 if (PyErr_Occurred()) SWIG_fail;
10222 }
10223 resultobj = SWIG_Py_Void();
10224 return resultobj;
10225fail:
10226 return NULL;
10227}
10228
10229
10230SWIGINTERN PyObject *_wrap_Rect2D_GetOutcode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10231 PyObject *resultobj = 0;
10232 wxRect2D *arg1 = (wxRect2D *) 0 ;
10233 wxPoint2D *arg2 = 0 ;
10234 wxOutCode result;
10235 void *argp1 = 0 ;
10236 int res1 = 0 ;
10237 wxPoint2D temp2 ;
10238 PyObject * obj0 = 0 ;
10239 PyObject * obj1 = 0 ;
10240 char * kwnames[] = {
10241 (char *) "self",(char *) "pt", NULL
10242 };
10243
10244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_GetOutcode",kwnames,&obj0,&obj1)) SWIG_fail;
10245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10246 if (!SWIG_IsOK(res1)) {
10247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetOutcode" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10248 }
10249 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10250 {
10251 arg2 = &temp2;
10252 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
10253 }
10254 {
10255 result = (wxOutCode)((wxRect2D const *)arg1)->GetOutcode((wxPoint2D const &)*arg2);
10256 if (PyErr_Occurred()) SWIG_fail;
10257 }
10258 resultobj = SWIG_From_int(static_cast< int >(result));
10259 return resultobj;
10260fail:
10261 return NULL;
10262}
10263
10264
10265SWIGINTERN PyObject *_wrap_Rect2D_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10266 PyObject *resultobj = 0;
10267 wxRect2D *arg1 = (wxRect2D *) 0 ;
10268 wxPoint2D *arg2 = 0 ;
10269 bool result;
10270 void *argp1 = 0 ;
10271 int res1 = 0 ;
10272 wxPoint2D temp2 ;
10273 PyObject * obj0 = 0 ;
10274 PyObject * obj1 = 0 ;
10275 char * kwnames[] = {
10276 (char *) "self",(char *) "pt", NULL
10277 };
10278
10279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_Contains",kwnames,&obj0,&obj1)) SWIG_fail;
10280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10281 if (!SWIG_IsOK(res1)) {
10282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Contains" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10283 }
10284 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10285 {
10286 arg2 = &temp2;
10287 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
10288 }
10289 {
10290 result = (bool)((wxRect2D const *)arg1)->Contains((wxPoint2D const &)*arg2);
10291 if (PyErr_Occurred()) SWIG_fail;
10292 }
10293 {
10294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10295 }
10296 return resultobj;
10297fail:
10298 return NULL;
10299}
10300
10301
10302SWIGINTERN PyObject *_wrap_Rect2D_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10303 PyObject *resultobj = 0;
10304 wxRect2D *arg1 = (wxRect2D *) 0 ;
10305 wxRect2D *arg2 = 0 ;
10306 bool result;
10307 void *argp1 = 0 ;
10308 int res1 = 0 ;
10309 wxRect2D temp2 ;
10310 PyObject * obj0 = 0 ;
10311 PyObject * obj1 = 0 ;
10312 char * kwnames[] = {
10313 (char *) "self",(char *) "rect", NULL
10314 };
10315
10316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10318 if (!SWIG_IsOK(res1)) {
10319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_ContainsRect" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10320 }
10321 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10322 {
10323 arg2 = &temp2;
10324 if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
10325 }
10326 {
10327 result = (bool)((wxRect2D const *)arg1)->Contains((wxRect2D const &)*arg2);
10328 if (PyErr_Occurred()) SWIG_fail;
10329 }
10330 {
10331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10332 }
10333 return resultobj;
10334fail:
10335 return NULL;
10336}
10337
10338
10339SWIGINTERN PyObject *_wrap_Rect2D_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10340 PyObject *resultobj = 0;
10341 wxRect2D *arg1 = (wxRect2D *) 0 ;
10342 bool result;
10343 void *argp1 = 0 ;
10344 int res1 = 0 ;
10345 PyObject *swig_obj[1] ;
10346
10347 if (!args) SWIG_fail;
10348 swig_obj[0] = args;
10349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10350 if (!SWIG_IsOK(res1)) {
10351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_IsEmpty" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10352 }
10353 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10354 {
10355 result = (bool)((wxRect2D const *)arg1)->IsEmpty();
10356 if (PyErr_Occurred()) SWIG_fail;
10357 }
10358 {
10359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10360 }
10361 return resultobj;
10362fail:
10363 return NULL;
10364}
10365
10366
10367SWIGINTERN PyObject *_wrap_Rect2D_HaveEqualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10368 PyObject *resultobj = 0;
10369 wxRect2D *arg1 = (wxRect2D *) 0 ;
10370 wxRect2D *arg2 = 0 ;
10371 bool result;
10372 void *argp1 = 0 ;
10373 int res1 = 0 ;
10374 wxRect2D temp2 ;
10375 PyObject * obj0 = 0 ;
10376 PyObject * obj1 = 0 ;
10377 char * kwnames[] = {
10378 (char *) "self",(char *) "rect", NULL
10379 };
10380
10381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_HaveEqualSize",kwnames,&obj0,&obj1)) SWIG_fail;
10382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10383 if (!SWIG_IsOK(res1)) {
10384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_HaveEqualSize" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10385 }
10386 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10387 {
10388 arg2 = &temp2;
10389 if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
10390 }
10391 {
10392 result = (bool)((wxRect2D const *)arg1)->HaveEqualSize((wxRect2D const &)*arg2);
10393 if (PyErr_Occurred()) SWIG_fail;
10394 }
10395 {
10396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10397 }
10398 return resultobj;
10399fail:
10400 return NULL;
10401}
10402
10403
10404SWIGINTERN PyObject *_wrap_Rect2D_Inset__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10405 PyObject *resultobj = 0;
10406 wxRect2D *arg1 = (wxRect2D *) 0 ;
10407 wxDouble arg2 ;
10408 wxDouble arg3 ;
10409 void *argp1 = 0 ;
10410 int res1 = 0 ;
10411 void *argp2 ;
10412 int res2 = 0 ;
10413 void *argp3 ;
10414 int res3 = 0 ;
10415
10416 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
10417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10418 if (!SWIG_IsOK(res1)) {
10419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Inset" "', expected argument " "1"" of type '" "wxRect2D *""'");
10420 }
10421 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10422 {
10423 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
10424 if (!SWIG_IsOK(res2)) {
10425 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_Inset" "', expected argument " "2"" of type '" "wxDouble""'");
10426 }
10427 if (!argp2) {
10428 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "2"" of type '" "wxDouble""'");
10429 } else {
10430 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
10431 arg2 = *temp;
10432 if (SWIG_IsNewObj(res2)) delete temp;
10433 }
10434 }
10435 {
10436 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxDouble, 0 | 0);
10437 if (!SWIG_IsOK(res3)) {
10438 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Rect2D_Inset" "', expected argument " "3"" of type '" "wxDouble""'");
10439 }
10440 if (!argp3) {
10441 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "3"" of type '" "wxDouble""'");
10442 } else {
10443 wxDouble * temp = reinterpret_cast< wxDouble * >(argp3);
10444 arg3 = *temp;
10445 if (SWIG_IsNewObj(res3)) delete temp;
10446 }
10447 }
10448 {
10449 (arg1)->Inset(arg2,arg3);
10450 if (PyErr_Occurred()) SWIG_fail;
10451 }
10452 resultobj = SWIG_Py_Void();
10453 return resultobj;
10454fail:
10455 return NULL;
10456}
10457
10458
10459SWIGINTERN PyObject *_wrap_Rect2D_Inset__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10460 PyObject *resultobj = 0;
10461 wxRect2D *arg1 = (wxRect2D *) 0 ;
10462 wxDouble arg2 ;
10463 wxDouble arg3 ;
10464 wxDouble arg4 ;
10465 wxDouble arg5 ;
10466 void *argp1 = 0 ;
10467 int res1 = 0 ;
10468 void *argp2 ;
10469 int res2 = 0 ;
10470 void *argp3 ;
10471 int res3 = 0 ;
10472 void *argp4 ;
10473 int res4 = 0 ;
10474 void *argp5 ;
10475 int res5 = 0 ;
10476
10477 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
10478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10479 if (!SWIG_IsOK(res1)) {
10480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Inset" "', expected argument " "1"" of type '" "wxRect2D *""'");
10481 }
10482 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10483 {
10484 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
10485 if (!SWIG_IsOK(res2)) {
10486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_Inset" "', expected argument " "2"" of type '" "wxDouble""'");
10487 }
10488 if (!argp2) {
10489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "2"" of type '" "wxDouble""'");
10490 } else {
10491 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
10492 arg2 = *temp;
10493 if (SWIG_IsNewObj(res2)) delete temp;
10494 }
10495 }
10496 {
10497 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxDouble, 0 | 0);
10498 if (!SWIG_IsOK(res3)) {
10499 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Rect2D_Inset" "', expected argument " "3"" of type '" "wxDouble""'");
10500 }
10501 if (!argp3) {
10502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "3"" of type '" "wxDouble""'");
10503 } else {
10504 wxDouble * temp = reinterpret_cast< wxDouble * >(argp3);
10505 arg3 = *temp;
10506 if (SWIG_IsNewObj(res3)) delete temp;
10507 }
10508 }
10509 {
10510 res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_wxDouble, 0 | 0);
10511 if (!SWIG_IsOK(res4)) {
10512 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Rect2D_Inset" "', expected argument " "4"" of type '" "wxDouble""'");
10513 }
10514 if (!argp4) {
10515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "4"" of type '" "wxDouble""'");
10516 } else {
10517 wxDouble * temp = reinterpret_cast< wxDouble * >(argp4);
10518 arg4 = *temp;
10519 if (SWIG_IsNewObj(res4)) delete temp;
10520 }
10521 }
10522 {
10523 res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_wxDouble, 0 | 0);
10524 if (!SWIG_IsOK(res5)) {
10525 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Rect2D_Inset" "', expected argument " "5"" of type '" "wxDouble""'");
10526 }
10527 if (!argp5) {
10528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "5"" of type '" "wxDouble""'");
10529 } else {
10530 wxDouble * temp = reinterpret_cast< wxDouble * >(argp5);
10531 arg5 = *temp;
10532 if (SWIG_IsNewObj(res5)) delete temp;
10533 }
10534 }
10535 {
10536 (arg1)->Inset(arg2,arg3,arg4,arg5);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 resultobj = SWIG_Py_Void();
10540 return resultobj;
10541fail:
10542 return NULL;
10543}
10544
10545
10546SWIGINTERN PyObject *_wrap_Rect2D_Inset(PyObject *self, PyObject *args) {
10547 int argc;
10548 PyObject *argv[6];
10549
10550 if (!(argc = SWIG_Python_UnpackTuple(args,"Rect2D_Inset",0,5,argv))) SWIG_fail;
10551 --argc;
10552 if (argc == 3) {
10553 return _wrap_Rect2D_Inset__SWIG_0(self, argc, argv);
10554 }
10555 if (argc == 5) {
10556 return _wrap_Rect2D_Inset__SWIG_1(self, argc, argv);
10557 }
10558
10559fail:
10560 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'Rect2D_Inset'");
10561 return NULL;
10562}
10563
10564
10565SWIGINTERN PyObject *_wrap_Rect2D_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10566 PyObject *resultobj = 0;
10567 wxRect2D *arg1 = (wxRect2D *) 0 ;
10568 wxPoint2D *arg2 = 0 ;
10569 void *argp1 = 0 ;
10570 int res1 = 0 ;
10571 wxPoint2D temp2 ;
10572 PyObject * obj0 = 0 ;
10573 PyObject * obj1 = 0 ;
10574 char * kwnames[] = {
10575 (char *) "self",(char *) "pt", NULL
10576 };
10577
10578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_Offset",kwnames,&obj0,&obj1)) SWIG_fail;
10579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10580 if (!SWIG_IsOK(res1)) {
10581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Offset" "', expected argument " "1"" of type '" "wxRect2D *""'");
10582 }
10583 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10584 {
10585 arg2 = &temp2;
10586 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
10587 }
10588 {
10589 (arg1)->Offset((wxPoint2D const &)*arg2);
10590 if (PyErr_Occurred()) SWIG_fail;
10591 }
10592 resultobj = SWIG_Py_Void();
10593 return resultobj;
10594fail:
10595 return NULL;
10596}
10597
10598
10599SWIGINTERN PyObject *_wrap_Rect2D_ConstrainTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10600 PyObject *resultobj = 0;
10601 wxRect2D *arg1 = (wxRect2D *) 0 ;
10602 wxRect2D *arg2 = 0 ;
10603 void *argp1 = 0 ;
10604 int res1 = 0 ;
10605 wxRect2D temp2 ;
10606 PyObject * obj0 = 0 ;
10607 PyObject * obj1 = 0 ;
10608 char * kwnames[] = {
10609 (char *) "self",(char *) "rect", NULL
10610 };
10611
10612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_ConstrainTo",kwnames,&obj0,&obj1)) SWIG_fail;
10613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10614 if (!SWIG_IsOK(res1)) {
10615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_ConstrainTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
10616 }
10617 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10618 {
10619 arg2 = &temp2;
10620 if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
10621 }
10622 {
10623 (arg1)->ConstrainTo((wxRect2D const &)*arg2);
10624 if (PyErr_Occurred()) SWIG_fail;
10625 }
10626 resultobj = SWIG_Py_Void();
10627 return resultobj;
10628fail:
10629 return NULL;
10630}
10631
10632
10633SWIGINTERN PyObject *_wrap_Rect2D_Interpolate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10634 PyObject *resultobj = 0;
10635 wxRect2D *arg1 = (wxRect2D *) 0 ;
10636 int arg2 ;
10637 int arg3 ;
10638 wxPoint2D result;
10639 void *argp1 = 0 ;
10640 int res1 = 0 ;
10641 int val2 ;
10642 int ecode2 = 0 ;
10643 int val3 ;
10644 int ecode3 = 0 ;
10645 PyObject * obj0 = 0 ;
10646 PyObject * obj1 = 0 ;
10647 PyObject * obj2 = 0 ;
10648 char * kwnames[] = {
10649 (char *) "self",(char *) "widthfactor",(char *) "heightfactor", NULL
10650 };
10651
10652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect2D_Interpolate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10654 if (!SWIG_IsOK(res1)) {
10655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Interpolate" "', expected argument " "1"" of type '" "wxRect2D *""'");
10656 }
10657 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10658 ecode2 = SWIG_AsVal_int(obj1, &val2);
10659 if (!SWIG_IsOK(ecode2)) {
10660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect2D_Interpolate" "', expected argument " "2"" of type '" "int""'");
10661 }
10662 arg2 = static_cast< int >(val2);
10663 ecode3 = SWIG_AsVal_int(obj2, &val3);
10664 if (!SWIG_IsOK(ecode3)) {
10665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect2D_Interpolate" "', expected argument " "3"" of type '" "int""'");
10666 }
10667 arg3 = static_cast< int >(val3);
10668 {
10669 result = (arg1)->Interpolate(arg2,arg3);
10670 if (PyErr_Occurred()) SWIG_fail;
10671 }
10672 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
10673 return resultobj;
10674fail:
10675 return NULL;
10676}
10677
10678
10679SWIGINTERN PyObject *_wrap_Rect2D_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10680 PyObject *resultobj = 0;
10681 wxRect2D *arg1 = (wxRect2D *) 0 ;
10682 wxRect2D *arg2 = 0 ;
10683 void *argp1 = 0 ;
10684 int res1 = 0 ;
10685 wxRect2D temp2 ;
10686 PyObject * obj0 = 0 ;
10687 PyObject * obj1 = 0 ;
10688 char * kwnames[] = {
10689 (char *) "self",(char *) "otherRect", NULL
10690 };
10691
10692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_Intersect",kwnames,&obj0,&obj1)) SWIG_fail;
10693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10694 if (!SWIG_IsOK(res1)) {
10695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Intersect" "', expected argument " "1"" of type '" "wxRect2D *""'");
10696 }
10697 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10698 {
10699 arg2 = &temp2;
10700 if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
10701 }
10702 {
10703 (arg1)->Intersect((wxRect2D const &)*arg2);
10704 if (PyErr_Occurred()) SWIG_fail;
10705 }
10706 resultobj = SWIG_Py_Void();
10707 return resultobj;
10708fail:
10709 return NULL;
10710}
10711
10712
10713SWIGINTERN PyObject *_wrap_Rect2D_CreateIntersection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10714 PyObject *resultobj = 0;
10715 wxRect2D *arg1 = (wxRect2D *) 0 ;
10716 wxRect2D *arg2 = 0 ;
10717 wxRect2D result;
10718 void *argp1 = 0 ;
10719 int res1 = 0 ;
10720 wxRect2D temp2 ;
10721 PyObject * obj0 = 0 ;
10722 PyObject * obj1 = 0 ;
10723 char * kwnames[] = {
10724 (char *) "self",(char *) "otherRect", NULL
10725 };
10726
10727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_CreateIntersection",kwnames,&obj0,&obj1)) SWIG_fail;
10728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10729 if (!SWIG_IsOK(res1)) {
10730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_CreateIntersection" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10731 }
10732 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10733 {
10734 arg2 = &temp2;
10735 if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
10736 }
10737 {
10738 result = ((wxRect2D const *)arg1)->CreateIntersection((wxRect2D const &)*arg2);
10739 if (PyErr_Occurred()) SWIG_fail;
10740 }
10741 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
10742 return resultobj;
10743fail:
10744 return NULL;
10745}
10746
10747
10748SWIGINTERN PyObject *_wrap_Rect2D_Intersects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10749 PyObject *resultobj = 0;
10750 wxRect2D *arg1 = (wxRect2D *) 0 ;
10751 wxRect2D *arg2 = 0 ;
10752 bool result;
10753 void *argp1 = 0 ;
10754 int res1 = 0 ;
10755 wxRect2D temp2 ;
10756 PyObject * obj0 = 0 ;
10757 PyObject * obj1 = 0 ;
10758 char * kwnames[] = {
10759 (char *) "self",(char *) "rect", NULL
10760 };
10761
10762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_Intersects",kwnames,&obj0,&obj1)) SWIG_fail;
10763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10764 if (!SWIG_IsOK(res1)) {
10765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Intersects" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10766 }
10767 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10768 {
10769 arg2 = &temp2;
10770 if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
10771 }
10772 {
10773 result = (bool)((wxRect2D const *)arg1)->Intersects((wxRect2D const &)*arg2);
10774 if (PyErr_Occurred()) SWIG_fail;
10775 }
10776 {
10777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10778 }
10779 return resultobj;
10780fail:
10781 return NULL;
10782}
10783
10784
10785SWIGINTERN PyObject *_wrap_Rect2D_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10786 PyObject *resultobj = 0;
10787 wxRect2D *arg1 = (wxRect2D *) 0 ;
10788 wxRect2D *arg2 = 0 ;
10789 void *argp1 = 0 ;
10790 int res1 = 0 ;
10791 wxRect2D temp2 ;
10792 PyObject * obj0 = 0 ;
10793 PyObject * obj1 = 0 ;
10794 char * kwnames[] = {
10795 (char *) "self",(char *) "otherRect", NULL
10796 };
10797
10798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_Union",kwnames,&obj0,&obj1)) SWIG_fail;
10799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10800 if (!SWIG_IsOK(res1)) {
10801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Union" "', expected argument " "1"" of type '" "wxRect2D *""'");
10802 }
10803 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10804 {
10805 arg2 = &temp2;
10806 if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
10807 }
10808 {
10809 (arg1)->Union((wxRect2D const &)*arg2);
10810 if (PyErr_Occurred()) SWIG_fail;
10811 }
10812 resultobj = SWIG_Py_Void();
10813 return resultobj;
10814fail:
10815 return NULL;
10816}
10817
10818
10819SWIGINTERN PyObject *_wrap_Rect2D_CreateUnion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10820 PyObject *resultobj = 0;
10821 wxRect2D *arg1 = (wxRect2D *) 0 ;
10822 wxRect2D *arg2 = 0 ;
10823 wxRect2D result;
10824 void *argp1 = 0 ;
10825 int res1 = 0 ;
10826 wxRect2D temp2 ;
10827 PyObject * obj0 = 0 ;
10828 PyObject * obj1 = 0 ;
10829 char * kwnames[] = {
10830 (char *) "self",(char *) "otherRect", NULL
10831 };
10832
10833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_CreateUnion",kwnames,&obj0,&obj1)) SWIG_fail;
10834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10835 if (!SWIG_IsOK(res1)) {
10836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_CreateUnion" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10837 }
10838 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10839 {
10840 arg2 = &temp2;
10841 if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
10842 }
10843 {
10844 result = ((wxRect2D const *)arg1)->CreateUnion((wxRect2D const &)*arg2);
10845 if (PyErr_Occurred()) SWIG_fail;
10846 }
10847 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
10848 return resultobj;
10849fail:
10850 return NULL;
10851}
10852
10853
10854SWIGINTERN PyObject *_wrap_Rect2D_Scale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10855 PyObject *resultobj = 0;
10856 wxRect2D *arg1 = (wxRect2D *) 0 ;
10857 wxDouble arg2 ;
10858 void *argp1 = 0 ;
10859 int res1 = 0 ;
10860 void *argp2 ;
10861 int res2 = 0 ;
10862
10863 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
10864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10865 if (!SWIG_IsOK(res1)) {
10866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Scale" "', expected argument " "1"" of type '" "wxRect2D *""'");
10867 }
10868 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10869 {
10870 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
10871 if (!SWIG_IsOK(res2)) {
10872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
10873 }
10874 if (!argp2) {
10875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
10876 } else {
10877 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
10878 arg2 = *temp;
10879 if (SWIG_IsNewObj(res2)) delete temp;
10880 }
10881 }
10882 {
10883 (arg1)->Scale(arg2);
10884 if (PyErr_Occurred()) SWIG_fail;
10885 }
10886 resultobj = SWIG_Py_Void();
10887 return resultobj;
10888fail:
10889 return NULL;
10890}
10891
10892
10893SWIGINTERN PyObject *_wrap_Rect2D_Scale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10894 PyObject *resultobj = 0;
10895 wxRect2D *arg1 = (wxRect2D *) 0 ;
10896 int arg2 ;
10897 int arg3 ;
10898 void *argp1 = 0 ;
10899 int res1 = 0 ;
10900 int val2 ;
10901 int ecode2 = 0 ;
10902 int val3 ;
10903 int ecode3 = 0 ;
10904
10905 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
10906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10907 if (!SWIG_IsOK(res1)) {
10908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Scale" "', expected argument " "1"" of type '" "wxRect2D *""'");
10909 }
10910 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10911 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10912 if (!SWIG_IsOK(ecode2)) {
10913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect2D_Scale" "', expected argument " "2"" of type '" "int""'");
10914 }
10915 arg2 = static_cast< int >(val2);
10916 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
10917 if (!SWIG_IsOK(ecode3)) {
10918 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect2D_Scale" "', expected argument " "3"" of type '" "int""'");
10919 }
10920 arg3 = static_cast< int >(val3);
10921 {
10922 (arg1)->Scale(arg2,arg3);
10923 if (PyErr_Occurred()) SWIG_fail;
10924 }
10925 resultobj = SWIG_Py_Void();
10926 return resultobj;
10927fail:
10928 return NULL;
10929}
10930
10931
10932SWIGINTERN PyObject *_wrap_Rect2D_Scale(PyObject *self, PyObject *args) {
10933 int argc;
10934 PyObject *argv[4];
10935
10936 if (!(argc = SWIG_Python_UnpackTuple(args,"Rect2D_Scale",0,3,argv))) SWIG_fail;
10937 --argc;
10938 if (argc == 2) {
10939 return _wrap_Rect2D_Scale__SWIG_0(self, argc, argv);
10940 }
10941 if (argc == 3) {
10942 return _wrap_Rect2D_Scale__SWIG_1(self, argc, argv);
10943 }
10944
10945fail:
10946 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'Rect2D_Scale'");
10947 return NULL;
10948}
10949
10950
10951SWIGINTERN PyObject *_wrap_Rect2D___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10952 PyObject *resultobj = 0;
10953 wxRect2D *arg1 = (wxRect2D *) 0 ;
10954 PyObject *arg2 = (PyObject *) 0 ;
10955 bool result;
10956 void *argp1 = 0 ;
10957 int res1 = 0 ;
10958 PyObject * obj0 = 0 ;
10959 PyObject * obj1 = 0 ;
10960 char * kwnames[] = {
10961 (char *) "self",(char *) "other", NULL
10962 };
10963
10964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
10965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10966 if (!SWIG_IsOK(res1)) {
10967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D___eq__" "', expected argument " "1"" of type '" "wxRect2D *""'");
10968 }
10969 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10970 arg2 = obj1;
10971 {
10972 result = (bool)wxRect2D___eq__(arg1,arg2);
10973 if (PyErr_Occurred()) SWIG_fail;
10974 }
10975 {
10976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10977 }
10978 return resultobj;
10979fail:
10980 return NULL;
10981}
10982
10983
10984SWIGINTERN PyObject *_wrap_Rect2D___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10985 PyObject *resultobj = 0;
10986 wxRect2D *arg1 = (wxRect2D *) 0 ;
10987 PyObject *arg2 = (PyObject *) 0 ;
10988 bool result;
10989 void *argp1 = 0 ;
10990 int res1 = 0 ;
10991 PyObject * obj0 = 0 ;
10992 PyObject * obj1 = 0 ;
10993 char * kwnames[] = {
10994 (char *) "self",(char *) "other", NULL
10995 };
10996
10997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
10998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10999 if (!SWIG_IsOK(res1)) {
11000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D___ne__" "', expected argument " "1"" of type '" "wxRect2D *""'");
11001 }
11002 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11003 arg2 = obj1;
11004 {
11005 result = (bool)wxRect2D___ne__(arg1,arg2);
11006 if (PyErr_Occurred()) SWIG_fail;
11007 }
11008 {
11009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11010 }
11011 return resultobj;
11012fail:
11013 return NULL;
11014}
11015
11016
11017SWIGINTERN PyObject *_wrap_Rect2D_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11018 PyObject *resultobj = 0;
11019 wxRect2D *arg1 = (wxRect2D *) 0 ;
11020 wxDouble arg2 ;
11021 void *argp1 = 0 ;
11022 int res1 = 0 ;
11023 void *argp2 ;
11024 int res2 = 0 ;
11025 PyObject *swig_obj[2] ;
11026
11027 if (!SWIG_Python_UnpackTuple(args,"Rect2D_x_set",2,2,swig_obj)) SWIG_fail;
11028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11029 if (!SWIG_IsOK(res1)) {
11030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_x_set" "', expected argument " "1"" of type '" "wxRect2D *""'");
11031 }
11032 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11033 {
11034 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
11035 if (!SWIG_IsOK(res2)) {
11036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_x_set" "', expected argument " "2"" of type '" "wxDouble""'");
11037 }
11038 if (!argp2) {
11039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_x_set" "', expected argument " "2"" of type '" "wxDouble""'");
11040 } else {
11041 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
11042 arg2 = *temp;
11043 if (SWIG_IsNewObj(res2)) delete temp;
11044 }
11045 }
11046 if (arg1) (arg1)->m_x = arg2;
11047
11048 resultobj = SWIG_Py_Void();
11049 return resultobj;
11050fail:
11051 return NULL;
11052}
11053
11054
11055SWIGINTERN PyObject *_wrap_Rect2D_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11056 PyObject *resultobj = 0;
11057 wxRect2D *arg1 = (wxRect2D *) 0 ;
11058 wxDouble result;
11059 void *argp1 = 0 ;
11060 int res1 = 0 ;
11061 PyObject *swig_obj[1] ;
11062
11063 if (!args) SWIG_fail;
11064 swig_obj[0] = args;
11065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11066 if (!SWIG_IsOK(res1)) {
11067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_x_get" "', expected argument " "1"" of type '" "wxRect2D *""'");
11068 }
11069 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11070 result = ((arg1)->m_x);
11071 resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
11072 return resultobj;
11073fail:
11074 return NULL;
11075}
11076
11077
11078SWIGINTERN PyObject *_wrap_Rect2D_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11079 PyObject *resultobj = 0;
11080 wxRect2D *arg1 = (wxRect2D *) 0 ;
11081 wxDouble arg2 ;
11082 void *argp1 = 0 ;
11083 int res1 = 0 ;
11084 void *argp2 ;
11085 int res2 = 0 ;
11086 PyObject *swig_obj[2] ;
11087
11088 if (!SWIG_Python_UnpackTuple(args,"Rect2D_y_set",2,2,swig_obj)) SWIG_fail;
11089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11090 if (!SWIG_IsOK(res1)) {
11091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_y_set" "', expected argument " "1"" of type '" "wxRect2D *""'");
11092 }
11093 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11094 {
11095 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
11096 if (!SWIG_IsOK(res2)) {
11097 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_y_set" "', expected argument " "2"" of type '" "wxDouble""'");
11098 }
11099 if (!argp2) {
11100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_y_set" "', expected argument " "2"" of type '" "wxDouble""'");
11101 } else {
11102 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
11103 arg2 = *temp;
11104 if (SWIG_IsNewObj(res2)) delete temp;
11105 }
11106 }
11107 if (arg1) (arg1)->m_y = arg2;
11108
11109 resultobj = SWIG_Py_Void();
11110 return resultobj;
11111fail:
11112 return NULL;
11113}
11114
11115
11116SWIGINTERN PyObject *_wrap_Rect2D_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11117 PyObject *resultobj = 0;
11118 wxRect2D *arg1 = (wxRect2D *) 0 ;
11119 wxDouble result;
11120 void *argp1 = 0 ;
11121 int res1 = 0 ;
11122 PyObject *swig_obj[1] ;
11123
11124 if (!args) SWIG_fail;
11125 swig_obj[0] = args;
11126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11127 if (!SWIG_IsOK(res1)) {
11128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_y_get" "', expected argument " "1"" of type '" "wxRect2D *""'");
11129 }
11130 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11131 result = ((arg1)->m_y);
11132 resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
11133 return resultobj;
11134fail:
11135 return NULL;
11136}
11137
11138
11139SWIGINTERN PyObject *_wrap_Rect2D_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11140 PyObject *resultobj = 0;
11141 wxRect2D *arg1 = (wxRect2D *) 0 ;
11142 wxDouble arg2 ;
11143 void *argp1 = 0 ;
11144 int res1 = 0 ;
11145 void *argp2 ;
11146 int res2 = 0 ;
11147 PyObject *swig_obj[2] ;
11148
11149 if (!SWIG_Python_UnpackTuple(args,"Rect2D_width_set",2,2,swig_obj)) SWIG_fail;
11150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11151 if (!SWIG_IsOK(res1)) {
11152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_width_set" "', expected argument " "1"" of type '" "wxRect2D *""'");
11153 }
11154 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11155 {
11156 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
11157 if (!SWIG_IsOK(res2)) {
11158 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_width_set" "', expected argument " "2"" of type '" "wxDouble""'");
11159 }
11160 if (!argp2) {
11161 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_width_set" "', expected argument " "2"" of type '" "wxDouble""'");
11162 } else {
11163 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
11164 arg2 = *temp;
11165 if (SWIG_IsNewObj(res2)) delete temp;
11166 }
11167 }
11168 if (arg1) (arg1)->m_width = arg2;
11169
11170 resultobj = SWIG_Py_Void();
11171 return resultobj;
11172fail:
11173 return NULL;
11174}
11175
11176
11177SWIGINTERN PyObject *_wrap_Rect2D_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11178 PyObject *resultobj = 0;
11179 wxRect2D *arg1 = (wxRect2D *) 0 ;
11180 wxDouble result;
11181 void *argp1 = 0 ;
11182 int res1 = 0 ;
11183 PyObject *swig_obj[1] ;
11184
11185 if (!args) SWIG_fail;
11186 swig_obj[0] = args;
11187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11188 if (!SWIG_IsOK(res1)) {
11189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_width_get" "', expected argument " "1"" of type '" "wxRect2D *""'");
11190 }
11191 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11192 result = ((arg1)->m_width);
11193 resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
11194 return resultobj;
11195fail:
11196 return NULL;
11197}
11198
11199
11200SWIGINTERN PyObject *_wrap_Rect2D_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11201 PyObject *resultobj = 0;
11202 wxRect2D *arg1 = (wxRect2D *) 0 ;
11203 wxDouble arg2 ;
11204 void *argp1 = 0 ;
11205 int res1 = 0 ;
11206 void *argp2 ;
11207 int res2 = 0 ;
11208 PyObject *swig_obj[2] ;
11209
11210 if (!SWIG_Python_UnpackTuple(args,"Rect2D_height_set",2,2,swig_obj)) SWIG_fail;
11211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11212 if (!SWIG_IsOK(res1)) {
11213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_height_set" "', expected argument " "1"" of type '" "wxRect2D *""'");
11214 }
11215 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11216 {
11217 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
11218 if (!SWIG_IsOK(res2)) {
11219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_height_set" "', expected argument " "2"" of type '" "wxDouble""'");
11220 }
11221 if (!argp2) {
11222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_height_set" "', expected argument " "2"" of type '" "wxDouble""'");
11223 } else {
11224 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
11225 arg2 = *temp;
11226 if (SWIG_IsNewObj(res2)) delete temp;
11227 }
11228 }
11229 if (arg1) (arg1)->m_height = arg2;
11230
11231 resultobj = SWIG_Py_Void();
11232 return resultobj;
11233fail:
11234 return NULL;
11235}
11236
11237
11238SWIGINTERN PyObject *_wrap_Rect2D_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11239 PyObject *resultobj = 0;
11240 wxRect2D *arg1 = (wxRect2D *) 0 ;
11241 wxDouble result;
11242 void *argp1 = 0 ;
11243 int res1 = 0 ;
11244 PyObject *swig_obj[1] ;
11245
11246 if (!args) SWIG_fail;
11247 swig_obj[0] = args;
11248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11249 if (!SWIG_IsOK(res1)) {
11250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_height_get" "', expected argument " "1"" of type '" "wxRect2D *""'");
11251 }
11252 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11253 result = ((arg1)->m_height);
11254 resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
11255 return resultobj;
11256fail:
11257 return NULL;
11258}
11259
11260
11261SWIGINTERN PyObject *_wrap_Rect2D_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11262 PyObject *resultobj = 0;
11263 wxRect2D *arg1 = (wxRect2D *) 0 ;
11264 wxDouble arg2 = (wxDouble) 0 ;
11265 wxDouble arg3 = (wxDouble) 0 ;
11266 wxDouble arg4 = (wxDouble) 0 ;
11267 wxDouble arg5 = (wxDouble) 0 ;
11268 void *argp1 = 0 ;
11269 int res1 = 0 ;
11270 void *argp2 ;
11271 int res2 = 0 ;
11272 void *argp3 ;
11273 int res3 = 0 ;
11274 void *argp4 ;
11275 int res4 = 0 ;
11276 void *argp5 ;
11277 int res5 = 0 ;
11278 PyObject * obj0 = 0 ;
11279 PyObject * obj1 = 0 ;
11280 PyObject * obj2 = 0 ;
11281 PyObject * obj3 = 0 ;
11282 PyObject * obj4 = 0 ;
11283 char * kwnames[] = {
11284 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11285 };
11286
11287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect2D_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11289 if (!SWIG_IsOK(res1)) {
11290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Set" "', expected argument " "1"" of type '" "wxRect2D *""'");
11291 }
11292 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11293 if (obj1) {
11294 {
11295 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
11296 if (!SWIG_IsOK(res2)) {
11297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_Set" "', expected argument " "2"" of type '" "wxDouble""'");
11298 }
11299 if (!argp2) {
11300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Set" "', expected argument " "2"" of type '" "wxDouble""'");
11301 } else {
11302 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
11303 arg2 = *temp;
11304 if (SWIG_IsNewObj(res2)) delete temp;
11305 }
11306 }
11307 }
11308 if (obj2) {
11309 {
11310 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDouble, 0 | 0);
11311 if (!SWIG_IsOK(res3)) {
11312 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Rect2D_Set" "', expected argument " "3"" of type '" "wxDouble""'");
11313 }
11314 if (!argp3) {
11315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Set" "', expected argument " "3"" of type '" "wxDouble""'");
11316 } else {
11317 wxDouble * temp = reinterpret_cast< wxDouble * >(argp3);
11318 arg3 = *temp;
11319 if (SWIG_IsNewObj(res3)) delete temp;
11320 }
11321 }
11322 }
11323 if (obj3) {
11324 {
11325 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDouble, 0 | 0);
11326 if (!SWIG_IsOK(res4)) {
11327 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Rect2D_Set" "', expected argument " "4"" of type '" "wxDouble""'");
11328 }
11329 if (!argp4) {
11330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Set" "', expected argument " "4"" of type '" "wxDouble""'");
11331 } else {
11332 wxDouble * temp = reinterpret_cast< wxDouble * >(argp4);
11333 arg4 = *temp;
11334 if (SWIG_IsNewObj(res4)) delete temp;
11335 }
11336 }
11337 }
11338 if (obj4) {
11339 {
11340 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxDouble, 0 | 0);
11341 if (!SWIG_IsOK(res5)) {
11342 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Rect2D_Set" "', expected argument " "5"" of type '" "wxDouble""'");
11343 }
11344 if (!argp5) {
11345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Set" "', expected argument " "5"" of type '" "wxDouble""'");
11346 } else {
11347 wxDouble * temp = reinterpret_cast< wxDouble * >(argp5);
11348 arg5 = *temp;
11349 if (SWIG_IsNewObj(res5)) delete temp;
11350 }
11351 }
11352 }
11353 {
11354 wxRect2D_Set(arg1,arg2,arg3,arg4,arg5);
11355 if (PyErr_Occurred()) SWIG_fail;
11356 }
11357 resultobj = SWIG_Py_Void();
11358 return resultobj;
11359fail:
11360 return NULL;
11361}
11362
11363
11364SWIGINTERN PyObject *_wrap_Rect2D_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11365 PyObject *resultobj = 0;
11366 wxRect2D *arg1 = (wxRect2D *) 0 ;
11367 PyObject *result = 0 ;
11368 void *argp1 = 0 ;
11369 int res1 = 0 ;
11370 PyObject *swig_obj[1] ;
11371
11372 if (!args) SWIG_fail;
11373 swig_obj[0] = args;
11374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11375 if (!SWIG_IsOK(res1)) {
11376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Get" "', expected argument " "1"" of type '" "wxRect2D *""'");
11377 }
11378 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11379 {
11380 result = (PyObject *)wxRect2D_Get(arg1);
11381 if (PyErr_Occurred()) SWIG_fail;
11382 }
11383 resultobj = result;
11384 return resultobj;
11385fail:
11386 return NULL;
11387}
11388
11389
11390SWIGINTERN PyObject *Rect2D_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11391 PyObject *obj;
11392 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11393 SWIG_TypeNewClientData(SWIGTYPE_p_wxRect2D, SWIG_NewClientData(obj));
11394 return SWIG_Py_Void();
11395}
11396
11397SWIGINTERN PyObject *Rect2D_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11398 return SWIG_Python_InitShadowInstance(args);
11399}
11400
1bd55598
RD
11401SWIGINTERN int DefaultPosition_set(PyObject *) {
11402 SWIG_Error(SWIG_AttributeError,"Variable DefaultPosition is read-only.");
11403 return 1;
d55e5bfc
RD
11404}
11405
11406
1bd55598
RD
11407SWIGINTERN PyObject *DefaultPosition_get(void) {
11408 PyObject *pyobj = 0;
11409
11410 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0 );
11411 return pyobj;
d55e5bfc
RD
11412}
11413
11414
1bd55598
RD
11415SWIGINTERN int DefaultSize_set(PyObject *) {
11416 SWIG_Error(SWIG_AttributeError,"Variable DefaultSize is read-only.");
11417 return 1;
d55e5bfc
RD
11418}
11419
11420
1bd55598
RD
11421SWIGINTERN PyObject *DefaultSize_get(void) {
11422 PyObject *pyobj = 0;
11423
11424 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxDefaultSize), SWIGTYPE_p_wxSize, 0 );
11425 return pyobj;
d55e5bfc
RD
11426}
11427
11428
1bd55598
RD
11429SWIGINTERN PyObject *_wrap_new_InputStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11430 PyObject *resultobj = 0;
11431 PyObject *arg1 = (PyObject *) 0 ;
11432 wxPyInputStream *result = 0 ;
11433 PyObject * obj0 = 0 ;
11434 char * kwnames[] = {
11435 (char *) "p", NULL
11436 };
11437
11438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) SWIG_fail;
11439 arg1 = obj0;
11440 {
11441 PyThreadState* __tstate = wxPyBeginAllowThreads();
11442 result = (wxPyInputStream *)new_wxPyInputStream(arg1);
11443 wxPyEndAllowThreads(__tstate);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 }
11446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_NEW | 0 );
11447 return resultobj;
11448fail:
11449 return NULL;
d55e5bfc
RD
11450}
11451
11452
1bd55598
RD
11453SWIGINTERN PyObject *_wrap_delete_InputStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11454 PyObject *resultobj = 0;
11455 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11456 void *argp1 = 0 ;
11457 int res1 = 0 ;
11458 PyObject *swig_obj[1] ;
11459
11460 if (!args) SWIG_fail;
11461 swig_obj[0] = args;
11462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_DISOWN | 0 );
11463 if (!SWIG_IsOK(res1)) {
11464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InputStream" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11465 }
11466 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11467 {
11468 PyThreadState* __tstate = wxPyBeginAllowThreads();
11469 delete arg1;
d55e5bfc 11470
1bd55598
RD
11471 wxPyEndAllowThreads(__tstate);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 }
11474 resultobj = SWIG_Py_Void();
11475 return resultobj;
11476fail:
11477 return NULL;
d55e5bfc
RD
11478}
11479
11480
1bd55598
RD
11481SWIGINTERN PyObject *_wrap_InputStream_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11482 PyObject *resultobj = 0;
11483 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11484 void *argp1 = 0 ;
11485 int res1 = 0 ;
11486 PyObject *swig_obj[1] ;
11487
11488 if (!args) SWIG_fail;
11489 swig_obj[0] = args;
11490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11491 if (!SWIG_IsOK(res1)) {
11492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_close" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11493 }
11494 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11495 {
11496 PyThreadState* __tstate = wxPyBeginAllowThreads();
11497 (arg1)->close();
11498 wxPyEndAllowThreads(__tstate);
11499 if (PyErr_Occurred()) SWIG_fail;
11500 }
11501 resultobj = SWIG_Py_Void();
11502 return resultobj;
11503fail:
11504 return NULL;
d55e5bfc
RD
11505}
11506
11507
1bd55598
RD
11508SWIGINTERN PyObject *_wrap_InputStream_flush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11509 PyObject *resultobj = 0;
11510 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11511 void *argp1 = 0 ;
11512 int res1 = 0 ;
11513 PyObject *swig_obj[1] ;
11514
11515 if (!args) SWIG_fail;
11516 swig_obj[0] = args;
11517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11518 if (!SWIG_IsOK(res1)) {
11519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_flush" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11520 }
11521 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11522 {
11523 PyThreadState* __tstate = wxPyBeginAllowThreads();
11524 (arg1)->flush();
11525 wxPyEndAllowThreads(__tstate);
11526 if (PyErr_Occurred()) SWIG_fail;
11527 }
11528 resultobj = SWIG_Py_Void();
11529 return resultobj;
11530fail:
11531 return NULL;
d55e5bfc
RD
11532}
11533
11534
1bd55598
RD
11535SWIGINTERN PyObject *_wrap_InputStream_eof(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11536 PyObject *resultobj = 0;
11537 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11538 bool result;
11539 void *argp1 = 0 ;
11540 int res1 = 0 ;
11541 PyObject *swig_obj[1] ;
11542
11543 if (!args) SWIG_fail;
11544 swig_obj[0] = args;
11545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11546 if (!SWIG_IsOK(res1)) {
11547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_eof" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11548 }
11549 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11550 {
11551 PyThreadState* __tstate = wxPyBeginAllowThreads();
11552 result = (bool)(arg1)->eof();
11553 wxPyEndAllowThreads(__tstate);
11554 if (PyErr_Occurred()) SWIG_fail;
11555 }
11556 {
11557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11558 }
11559 return resultobj;
11560fail:
11561 return NULL;
11562}
11563
11564
11565SWIGINTERN PyObject *_wrap_InputStream_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11566 PyObject *resultobj = 0;
11567 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11568 int arg2 = (int) -1 ;
11569 PyObject *result = 0 ;
11570 void *argp1 = 0 ;
11571 int res1 = 0 ;
11572 int val2 ;
11573 int ecode2 = 0 ;
11574 PyObject * obj0 = 0 ;
11575 PyObject * obj1 = 0 ;
11576 char * kwnames[] = {
11577 (char *) "self",(char *) "size", NULL
11578 };
11579
11580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) SWIG_fail;
11581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11582 if (!SWIG_IsOK(res1)) {
11583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_read" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11584 }
11585 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11586 if (obj1) {
11587 ecode2 = SWIG_AsVal_int(obj1, &val2);
11588 if (!SWIG_IsOK(ecode2)) {
11589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_read" "', expected argument " "2"" of type '" "int""'");
11590 }
11591 arg2 = static_cast< int >(val2);
11592 }
11593 {
11594 PyThreadState* __tstate = wxPyBeginAllowThreads();
11595 result = (PyObject *)(arg1)->read(arg2);
11596 wxPyEndAllowThreads(__tstate);
11597 if (PyErr_Occurred()) SWIG_fail;
11598 }
11599 resultobj = result;
11600 return resultobj;
11601fail:
11602 return NULL;
11603}
11604
11605
11606SWIGINTERN PyObject *_wrap_InputStream_readline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11607 PyObject *resultobj = 0;
11608 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11609 int arg2 = (int) -1 ;
11610 PyObject *result = 0 ;
11611 void *argp1 = 0 ;
11612 int res1 = 0 ;
11613 int val2 ;
11614 int ecode2 = 0 ;
11615 PyObject * obj0 = 0 ;
11616 PyObject * obj1 = 0 ;
11617 char * kwnames[] = {
11618 (char *) "self",(char *) "size", NULL
11619 };
11620
11621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) SWIG_fail;
11622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11623 if (!SWIG_IsOK(res1)) {
11624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_readline" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11625 }
11626 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11627 if (obj1) {
11628 ecode2 = SWIG_AsVal_int(obj1, &val2);
11629 if (!SWIG_IsOK(ecode2)) {
11630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_readline" "', expected argument " "2"" of type '" "int""'");
11631 }
11632 arg2 = static_cast< int >(val2);
11633 }
11634 {
11635 PyThreadState* __tstate = wxPyBeginAllowThreads();
11636 result = (PyObject *)(arg1)->readline(arg2);
11637 wxPyEndAllowThreads(__tstate);
11638 if (PyErr_Occurred()) SWIG_fail;
11639 }
11640 resultobj = result;
11641 return resultobj;
11642fail:
11643 return NULL;
11644}
11645
11646
11647SWIGINTERN PyObject *_wrap_InputStream_readlines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11648 PyObject *resultobj = 0;
11649 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11650 int arg2 = (int) -1 ;
11651 PyObject *result = 0 ;
11652 void *argp1 = 0 ;
11653 int res1 = 0 ;
11654 int val2 ;
11655 int ecode2 = 0 ;
11656 PyObject * obj0 = 0 ;
11657 PyObject * obj1 = 0 ;
11658 char * kwnames[] = {
11659 (char *) "self",(char *) "sizehint", NULL
11660 };
11661
11662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) SWIG_fail;
11663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11664 if (!SWIG_IsOK(res1)) {
11665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_readlines" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11666 }
11667 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11668 if (obj1) {
11669 ecode2 = SWIG_AsVal_int(obj1, &val2);
11670 if (!SWIG_IsOK(ecode2)) {
11671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_readlines" "', expected argument " "2"" of type '" "int""'");
11672 }
11673 arg2 = static_cast< int >(val2);
11674 }
11675 {
11676 PyThreadState* __tstate = wxPyBeginAllowThreads();
11677 result = (PyObject *)(arg1)->readlines(arg2);
11678 wxPyEndAllowThreads(__tstate);
11679 if (PyErr_Occurred()) SWIG_fail;
11680 }
11681 resultobj = result;
11682 return resultobj;
11683fail:
11684 return NULL;
11685}
11686
11687
11688SWIGINTERN PyObject *_wrap_InputStream_seek(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11689 PyObject *resultobj = 0;
11690 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11691 int arg2 ;
11692 int arg3 = (int) 0 ;
11693 void *argp1 = 0 ;
11694 int res1 = 0 ;
11695 int val2 ;
11696 int ecode2 = 0 ;
11697 int val3 ;
11698 int ecode3 = 0 ;
11699 PyObject * obj0 = 0 ;
11700 PyObject * obj1 = 0 ;
11701 PyObject * obj2 = 0 ;
11702 char * kwnames[] = {
11703 (char *) "self",(char *) "offset",(char *) "whence", NULL
11704 };
11705
11706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11708 if (!SWIG_IsOK(res1)) {
11709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_seek" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11710 }
11711 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11712 ecode2 = SWIG_AsVal_int(obj1, &val2);
11713 if (!SWIG_IsOK(ecode2)) {
11714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_seek" "', expected argument " "2"" of type '" "int""'");
11715 }
11716 arg2 = static_cast< int >(val2);
11717 if (obj2) {
11718 ecode3 = SWIG_AsVal_int(obj2, &val3);
11719 if (!SWIG_IsOK(ecode3)) {
11720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InputStream_seek" "', expected argument " "3"" of type '" "int""'");
11721 }
11722 arg3 = static_cast< int >(val3);
11723 }
11724 {
11725 PyThreadState* __tstate = wxPyBeginAllowThreads();
11726 (arg1)->seek(arg2,arg3);
11727 wxPyEndAllowThreads(__tstate);
11728 if (PyErr_Occurred()) SWIG_fail;
11729 }
11730 resultobj = SWIG_Py_Void();
11731 return resultobj;
11732fail:
11733 return NULL;
d55e5bfc
RD
11734}
11735
11736
1bd55598
RD
11737SWIGINTERN PyObject *_wrap_InputStream_tell(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11738 PyObject *resultobj = 0;
11739 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11740 int result;
11741 void *argp1 = 0 ;
11742 int res1 = 0 ;
11743 PyObject *swig_obj[1] ;
11744
11745 if (!args) SWIG_fail;
11746 swig_obj[0] = args;
11747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11748 if (!SWIG_IsOK(res1)) {
11749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_tell" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11750 }
11751 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11752 {
11753 PyThreadState* __tstate = wxPyBeginAllowThreads();
11754 result = (int)(arg1)->tell();
11755 wxPyEndAllowThreads(__tstate);
11756 if (PyErr_Occurred()) SWIG_fail;
11757 }
11758 resultobj = SWIG_From_int(static_cast< int >(result));
11759 return resultobj;
11760fail:
11761 return NULL;
d55e5bfc
RD
11762}
11763
11764
1bd55598
RD
11765SWIGINTERN PyObject *_wrap_InputStream_Peek(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11766 PyObject *resultobj = 0;
11767 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11768 char result;
11769 void *argp1 = 0 ;
11770 int res1 = 0 ;
11771 PyObject *swig_obj[1] ;
11772
11773 if (!args) SWIG_fail;
11774 swig_obj[0] = args;
11775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11776 if (!SWIG_IsOK(res1)) {
11777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_Peek" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11778 }
11779 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11780 {
11781 PyThreadState* __tstate = wxPyBeginAllowThreads();
11782 result = (char)(arg1)->Peek();
11783 wxPyEndAllowThreads(__tstate);
11784 if (PyErr_Occurred()) SWIG_fail;
11785 }
11786 resultobj = SWIG_From_char(static_cast< char >(result));
11787 return resultobj;
11788fail:
11789 return NULL;
d55e5bfc
RD
11790}
11791
11792
1bd55598
RD
11793SWIGINTERN PyObject *_wrap_InputStream_GetC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11794 PyObject *resultobj = 0;
11795 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11796 char result;
11797 void *argp1 = 0 ;
11798 int res1 = 0 ;
11799 PyObject *swig_obj[1] ;
11800
11801 if (!args) SWIG_fail;
11802 swig_obj[0] = args;
11803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11804 if (!SWIG_IsOK(res1)) {
11805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_GetC" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11806 }
11807 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11808 {
11809 PyThreadState* __tstate = wxPyBeginAllowThreads();
11810 result = (char)(arg1)->GetC();
11811 wxPyEndAllowThreads(__tstate);
11812 if (PyErr_Occurred()) SWIG_fail;
11813 }
11814 resultobj = SWIG_From_char(static_cast< char >(result));
11815 return resultobj;
11816fail:
11817 return NULL;
d55e5bfc
RD
11818}
11819
11820
1bd55598
RD
11821SWIGINTERN PyObject *_wrap_InputStream_LastRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11822 PyObject *resultobj = 0;
11823 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11824 size_t result;
11825 void *argp1 = 0 ;
11826 int res1 = 0 ;
11827 PyObject *swig_obj[1] ;
11828
11829 if (!args) SWIG_fail;
11830 swig_obj[0] = args;
11831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11832 if (!SWIG_IsOK(res1)) {
11833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_LastRead" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11834 }
11835 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11836 {
11837 PyThreadState* __tstate = wxPyBeginAllowThreads();
11838 result = (size_t)(arg1)->LastRead();
11839 wxPyEndAllowThreads(__tstate);
11840 if (PyErr_Occurred()) SWIG_fail;
11841 }
11842 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
11843 return resultobj;
11844fail:
11845 return NULL;
d55e5bfc
RD
11846}
11847
11848
1bd55598
RD
11849SWIGINTERN PyObject *_wrap_InputStream_CanRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11850 PyObject *resultobj = 0;
11851 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11852 bool result;
11853 void *argp1 = 0 ;
11854 int res1 = 0 ;
11855 PyObject *swig_obj[1] ;
11856
11857 if (!args) SWIG_fail;
11858 swig_obj[0] = args;
11859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11860 if (!SWIG_IsOK(res1)) {
11861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_CanRead" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11862 }
11863 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11864 {
11865 PyThreadState* __tstate = wxPyBeginAllowThreads();
11866 result = (bool)(arg1)->CanRead();
11867 wxPyEndAllowThreads(__tstate);
11868 if (PyErr_Occurred()) SWIG_fail;
11869 }
11870 {
11871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11872 }
11873 return resultobj;
11874fail:
11875 return NULL;
d55e5bfc
RD
11876}
11877
11878
1bd55598
RD
11879SWIGINTERN PyObject *_wrap_InputStream_Eof(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11880 PyObject *resultobj = 0;
11881 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11882 bool result;
11883 void *argp1 = 0 ;
11884 int res1 = 0 ;
11885 PyObject *swig_obj[1] ;
11886
11887 if (!args) SWIG_fail;
11888 swig_obj[0] = args;
11889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11890 if (!SWIG_IsOK(res1)) {
11891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_Eof" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11892 }
11893 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11894 {
11895 PyThreadState* __tstate = wxPyBeginAllowThreads();
11896 result = (bool)(arg1)->Eof();
11897 wxPyEndAllowThreads(__tstate);
11898 if (PyErr_Occurred()) SWIG_fail;
11899 }
11900 {
11901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11902 }
11903 return resultobj;
11904fail:
11905 return NULL;
11906}
11907
11908
11909SWIGINTERN PyObject *_wrap_InputStream_Ungetch(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11910 PyObject *resultobj = 0;
11911 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11912 char arg2 ;
11913 bool result;
11914 void *argp1 = 0 ;
11915 int res1 = 0 ;
11916 char val2 ;
11917 int ecode2 = 0 ;
11918 PyObject * obj0 = 0 ;
11919 PyObject * obj1 = 0 ;
11920 char * kwnames[] = {
11921 (char *) "self",(char *) "c", NULL
11922 };
11923
11924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) SWIG_fail;
11925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11926 if (!SWIG_IsOK(res1)) {
11927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_Ungetch" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11928 }
11929 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11930 ecode2 = SWIG_AsVal_char(obj1, &val2);
11931 if (!SWIG_IsOK(ecode2)) {
11932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_Ungetch" "', expected argument " "2"" of type '" "char""'");
11933 }
11934 arg2 = static_cast< char >(val2);
11935 {
11936 PyThreadState* __tstate = wxPyBeginAllowThreads();
11937 result = (bool)(arg1)->Ungetch(arg2);
11938 wxPyEndAllowThreads(__tstate);
11939 if (PyErr_Occurred()) SWIG_fail;
11940 }
11941 {
11942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11943 }
11944 return resultobj;
11945fail:
11946 return NULL;
11947}
11948
11949
11950SWIGINTERN PyObject *_wrap_InputStream_SeekI(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11951 PyObject *resultobj = 0;
11952 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11953 long arg2 ;
11954 wxSeekMode arg3 = (wxSeekMode) wxFromStart ;
11955 long result;
11956 void *argp1 = 0 ;
11957 int res1 = 0 ;
11958 long val2 ;
11959 int ecode2 = 0 ;
11960 int val3 ;
11961 int ecode3 = 0 ;
11962 PyObject * obj0 = 0 ;
11963 PyObject * obj1 = 0 ;
11964 PyObject * obj2 = 0 ;
11965 char * kwnames[] = {
11966 (char *) "self",(char *) "pos",(char *) "mode", NULL
11967 };
11968
11969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11971 if (!SWIG_IsOK(res1)) {
11972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_SeekI" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11973 }
11974 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11975 ecode2 = SWIG_AsVal_long(obj1, &val2);
11976 if (!SWIG_IsOK(ecode2)) {
11977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_SeekI" "', expected argument " "2"" of type '" "long""'");
11978 }
11979 arg2 = static_cast< long >(val2);
11980 if (obj2) {
11981 ecode3 = SWIG_AsVal_int(obj2, &val3);
11982 if (!SWIG_IsOK(ecode3)) {
11983 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InputStream_SeekI" "', expected argument " "3"" of type '" "wxSeekMode""'");
11984 }
11985 arg3 = static_cast< wxSeekMode >(val3);
11986 }
11987 {
11988 PyThreadState* __tstate = wxPyBeginAllowThreads();
11989 result = (long)(arg1)->SeekI(arg2,arg3);
11990 wxPyEndAllowThreads(__tstate);
11991 if (PyErr_Occurred()) SWIG_fail;
11992 }
11993 resultobj = SWIG_From_long(static_cast< long >(result));
11994 return resultobj;
11995fail:
11996 return NULL;
5cbf236d
RD
11997}
11998
11999
1bd55598
RD
12000SWIGINTERN PyObject *_wrap_InputStream_TellI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12001 PyObject *resultobj = 0;
12002 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
12003 long result;
12004 void *argp1 = 0 ;
12005 int res1 = 0 ;
12006 PyObject *swig_obj[1] ;
12007
12008 if (!args) SWIG_fail;
12009 swig_obj[0] = args;
12010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
12011 if (!SWIG_IsOK(res1)) {
12012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_TellI" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
12013 }
12014 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
12015 {
12016 PyThreadState* __tstate = wxPyBeginAllowThreads();
12017 result = (long)(arg1)->TellI();
12018 wxPyEndAllowThreads(__tstate);
12019 if (PyErr_Occurred()) SWIG_fail;
12020 }
12021 resultobj = SWIG_From_long(static_cast< long >(result));
12022 return resultobj;
12023fail:
12024 return NULL;
d55e5bfc
RD
12025}
12026
12027
1bd55598
RD
12028SWIGINTERN PyObject *InputStream_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12029 PyObject *obj;
12030 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12031 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyInputStream, SWIG_NewClientData(obj));
12032 return SWIG_Py_Void();
d55e5bfc
RD
12033}
12034
1bd55598
RD
12035SWIGINTERN PyObject *InputStream_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12036 return SWIG_Python_InitShadowInstance(args);
12037}
d55e5bfc 12038
1bd55598
RD
12039SWIGINTERN PyObject *_wrap_OutputStream_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12040 PyObject *resultobj = 0;
12041 wxOutputStream *arg1 = (wxOutputStream *) 0 ;
12042 PyObject *arg2 = (PyObject *) 0 ;
12043 void *argp1 = 0 ;
12044 int res1 = 0 ;
12045 PyObject * obj0 = 0 ;
12046 PyObject * obj1 = 0 ;
12047 char * kwnames[] = {
12048 (char *) "self",(char *) "obj", NULL
12049 };
12050
12051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) SWIG_fail;
12052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxOutputStream, 0 | 0 );
12053 if (!SWIG_IsOK(res1)) {
12054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputStream_write" "', expected argument " "1"" of type '" "wxOutputStream *""'");
12055 }
12056 arg1 = reinterpret_cast< wxOutputStream * >(argp1);
12057 arg2 = obj1;
12058 {
12059 PyThreadState* __tstate = wxPyBeginAllowThreads();
12060 wxOutputStream_write(arg1,arg2);
12061 wxPyEndAllowThreads(__tstate);
12062 if (PyErr_Occurred()) SWIG_fail;
12063 }
12064 resultobj = SWIG_Py_Void();
12065 return resultobj;
12066fail:
12067 return NULL;
d55e5bfc
RD
12068}
12069
12070
1bd55598
RD
12071SWIGINTERN PyObject *_wrap_OutputStream_LastWrite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12072 PyObject *resultobj = 0;
12073 wxOutputStream *arg1 = (wxOutputStream *) 0 ;
12074 size_t result;
12075 void *argp1 = 0 ;
12076 int res1 = 0 ;
12077 PyObject *swig_obj[1] ;
12078
12079 if (!args) SWIG_fail;
12080 swig_obj[0] = args;
12081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOutputStream, 0 | 0 );
12082 if (!SWIG_IsOK(res1)) {
12083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputStream_LastWrite" "', expected argument " "1"" of type '" "wxOutputStream const *""'");
12084 }
12085 arg1 = reinterpret_cast< wxOutputStream * >(argp1);
12086 {
12087 PyThreadState* __tstate = wxPyBeginAllowThreads();
12088 result = (size_t)((wxOutputStream const *)arg1)->LastWrite();
12089 wxPyEndAllowThreads(__tstate);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
12092 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12093 return resultobj;
12094fail:
12095 return NULL;
12096}
12097
12098
12099SWIGINTERN PyObject *OutputStream_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12100 PyObject *obj;
12101 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12102 SWIG_TypeNewClientData(SWIGTYPE_p_wxOutputStream, SWIG_NewClientData(obj));
12103 return SWIG_Py_Void();
12104}
12105
12106SWIGINTERN PyObject *_wrap_new_FSFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12107 PyObject *resultobj = 0;
12108 wxInputStream *arg1 = (wxInputStream *) 0 ;
12109 wxString *arg2 = 0 ;
12110 wxString *arg3 = 0 ;
12111 wxString *arg4 = 0 ;
12112 wxDateTime arg5 ;
12113 wxFSFile *result = 0 ;
12114 wxPyInputStream *temp1 ;
12115 bool temp2 = false ;
12116 bool temp3 = false ;
12117 bool temp4 = false ;
12118 void *argp5 ;
12119 int res5 = 0 ;
12120 PyObject * obj0 = 0 ;
12121 PyObject * obj1 = 0 ;
12122 PyObject * obj2 = 0 ;
12123 PyObject * obj3 = 0 ;
12124 PyObject * obj4 = 0 ;
12125 char * kwnames[] = {
12126 (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL
12127 };
12128
12129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12130 {
12131 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
12132 arg1 = wxPyCBInputStream_copy((wxPyCBInputStream*)temp1->m_wxis);
12133 } else {
12134 PyErr_Clear(); // clear the failure of the wxPyConvert above
12135 arg1 = wxPyCBInputStream_create(obj0, true);
12136 if (arg1 == NULL) {
12137 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
12138 SWIG_fail;
12139 }
d55e5bfc 12140 }
1bd55598
RD
12141 }
12142 {
12143 arg2 = wxString_in_helper(obj1);
12144 if (arg2 == NULL) SWIG_fail;
12145 temp2 = true;
12146 }
12147 {
12148 arg3 = wxString_in_helper(obj2);
12149 if (arg3 == NULL) SWIG_fail;
12150 temp3 = true;
12151 }
12152 {
12153 arg4 = wxString_in_helper(obj3);
12154 if (arg4 == NULL) SWIG_fail;
12155 temp4 = true;
12156 }
12157 {
12158 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxDateTime, 0 | 0);
12159 if (!SWIG_IsOK(res5)) {
12160 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FSFile" "', expected argument " "5"" of type '" "wxDateTime""'");
12161 }
12162 if (!argp5) {
12163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FSFile" "', expected argument " "5"" of type '" "wxDateTime""'");
12164 } else {
12165 wxDateTime * temp = reinterpret_cast< wxDateTime * >(argp5);
12166 arg5 = *temp;
12167 if (SWIG_IsNewObj(res5)) delete temp;
d55e5bfc 12168 }
1bd55598
RD
12169 }
12170 {
12171 PyThreadState* __tstate = wxPyBeginAllowThreads();
12172 result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
12173 wxPyEndAllowThreads(__tstate);
12174 if (PyErr_Occurred()) SWIG_fail;
12175 }
b850e7f3 12176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFSFile, SWIG_POINTER_NEW | 0 );
1bd55598
RD
12177 {
12178 if (temp2)
12179 delete arg2;
12180 }
12181 {
12182 if (temp3)
12183 delete arg3;
12184 }
12185 {
12186 if (temp4)
12187 delete arg4;
12188 }
12189 return resultobj;
12190fail:
12191 {
12192 if (temp2)
12193 delete arg2;
12194 }
12195 {
12196 if (temp3)
12197 delete arg3;
12198 }
12199 {
12200 if (temp4)
12201 delete arg4;
12202 }
12203 return NULL;
d55e5bfc
RD
12204}
12205
12206
1bd55598
RD
12207SWIGINTERN PyObject *_wrap_delete_FSFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12208 PyObject *resultobj = 0;
12209 wxFSFile *arg1 = (wxFSFile *) 0 ;
12210 void *argp1 = 0 ;
12211 int res1 = 0 ;
12212 PyObject *swig_obj[1] ;
12213
12214 if (!args) SWIG_fail;
12215 swig_obj[0] = args;
12216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, SWIG_POINTER_DISOWN | 0 );
12217 if (!SWIG_IsOK(res1)) {
12218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FSFile" "', expected argument " "1"" of type '" "wxFSFile *""'");
12219 }
12220 arg1 = reinterpret_cast< wxFSFile * >(argp1);
12221 {
12222 PyThreadState* __tstate = wxPyBeginAllowThreads();
12223 delete arg1;
d55e5bfc 12224
1bd55598
RD
12225 wxPyEndAllowThreads(__tstate);
12226 if (PyErr_Occurred()) SWIG_fail;
12227 }
12228 resultobj = SWIG_Py_Void();
12229 return resultobj;
12230fail:
12231 return NULL;
d55e5bfc
RD
12232}
12233
12234
1bd55598
RD
12235SWIGINTERN PyObject *_wrap_FSFile_GetStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12236 PyObject *resultobj = 0;
12237 wxFSFile *arg1 = (wxFSFile *) 0 ;
12238 wxInputStream *result = 0 ;
12239 void *argp1 = 0 ;
12240 int res1 = 0 ;
12241 PyObject *swig_obj[1] ;
12242
12243 if (!args) SWIG_fail;
12244 swig_obj[0] = args;
12245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
12246 if (!SWIG_IsOK(res1)) {
12247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_GetStream" "', expected argument " "1"" of type '" "wxFSFile *""'");
12248 }
12249 arg1 = reinterpret_cast< wxFSFile * >(argp1);
12250 {
12251 PyThreadState* __tstate = wxPyBeginAllowThreads();
12252 result = (wxInputStream *)(arg1)->GetStream();
12253 wxPyEndAllowThreads(__tstate);
12254 if (PyErr_Occurred()) SWIG_fail;
12255 }
12256 {
12257 wxPyInputStream * _ptr = NULL;
d55e5bfc 12258
1bd55598
RD
12259 if (result) {
12260 _ptr = new wxPyInputStream(result);
36ed4f51 12261 }
1bd55598
RD
12262 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
12263 }
12264 return resultobj;
12265fail:
12266 return NULL;
d55e5bfc
RD
12267}
12268
12269
ac5d357a
RD
12270SWIGINTERN PyObject *_wrap_FSFile_DetachStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12271 PyObject *resultobj = 0;
12272 wxFSFile *arg1 = (wxFSFile *) 0 ;
12273 void *argp1 = 0 ;
12274 int res1 = 0 ;
12275 PyObject *swig_obj[1] ;
12276
12277 if (!args) SWIG_fail;
12278 swig_obj[0] = args;
12279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
12280 if (!SWIG_IsOK(res1)) {
12281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_DetachStream" "', expected argument " "1"" of type '" "wxFSFile *""'");
12282 }
12283 arg1 = reinterpret_cast< wxFSFile * >(argp1);
12284 {
12285 PyThreadState* __tstate = wxPyBeginAllowThreads();
12286 (arg1)->DetachStream();
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 resultobj = SWIG_Py_Void();
12291 return resultobj;
12292fail:
12293 return NULL;
12294}
12295
12296
1bd55598
RD
12297SWIGINTERN PyObject *_wrap_FSFile_GetMimeType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12298 PyObject *resultobj = 0;
12299 wxFSFile *arg1 = (wxFSFile *) 0 ;
12300 wxString *result = 0 ;
12301 void *argp1 = 0 ;
12302 int res1 = 0 ;
12303 PyObject *swig_obj[1] ;
12304
12305 if (!args) SWIG_fail;
12306 swig_obj[0] = args;
12307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
12308 if (!SWIG_IsOK(res1)) {
12309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_GetMimeType" "', expected argument " "1"" of type '" "wxFSFile *""'");
12310 }
12311 arg1 = reinterpret_cast< wxFSFile * >(argp1);
12312 {
12313 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 12314 {
1bd55598
RD
12315 wxString const &_result_ref = (arg1)->GetMimeType();
12316 result = (wxString *) &_result_ref;
d55e5bfc 12317 }
1bd55598
RD
12318 wxPyEndAllowThreads(__tstate);
12319 if (PyErr_Occurred()) SWIG_fail;
12320 }
12321 {
12322#if wxUSE_UNICODE
12323 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12324#else
12325 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12326#endif
12327 }
12328 return resultobj;
12329fail:
12330 return NULL;
d55e5bfc
RD
12331}
12332
12333
1bd55598
RD
12334SWIGINTERN PyObject *_wrap_FSFile_GetLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12335 PyObject *resultobj = 0;
12336 wxFSFile *arg1 = (wxFSFile *) 0 ;
12337 wxString *result = 0 ;
12338 void *argp1 = 0 ;
12339 int res1 = 0 ;
12340 PyObject *swig_obj[1] ;
12341
12342 if (!args) SWIG_fail;
12343 swig_obj[0] = args;
12344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
12345 if (!SWIG_IsOK(res1)) {
12346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_GetLocation" "', expected argument " "1"" of type '" "wxFSFile *""'");
12347 }
12348 arg1 = reinterpret_cast< wxFSFile * >(argp1);
12349 {
12350 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 12351 {
1bd55598
RD
12352 wxString const &_result_ref = (arg1)->GetLocation();
12353 result = (wxString *) &_result_ref;
d55e5bfc 12354 }
1bd55598
RD
12355 wxPyEndAllowThreads(__tstate);
12356 if (PyErr_Occurred()) SWIG_fail;
12357 }
12358 {
12359#if wxUSE_UNICODE
12360 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12361#else
12362 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12363#endif
12364 }
12365 return resultobj;
12366fail:
12367 return NULL;
d55e5bfc
RD
12368}
12369
12370
1bd55598
RD
12371SWIGINTERN PyObject *_wrap_FSFile_GetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12372 PyObject *resultobj = 0;
12373 wxFSFile *arg1 = (wxFSFile *) 0 ;
12374 wxString *result = 0 ;
12375 void *argp1 = 0 ;
12376 int res1 = 0 ;
12377 PyObject *swig_obj[1] ;
12378
12379 if (!args) SWIG_fail;
12380 swig_obj[0] = args;
12381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
12382 if (!SWIG_IsOK(res1)) {
12383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_GetAnchor" "', expected argument " "1"" of type '" "wxFSFile *""'");
12384 }
12385 arg1 = reinterpret_cast< wxFSFile * >(argp1);
12386 {
12387 PyThreadState* __tstate = wxPyBeginAllowThreads();
b1fcee84 12388 {
1bd55598
RD
12389 wxString const &_result_ref = (arg1)->GetAnchor();
12390 result = (wxString *) &_result_ref;
b1fcee84 12391 }
1bd55598
RD
12392 wxPyEndAllowThreads(__tstate);
12393 if (PyErr_Occurred()) SWIG_fail;
12394 }
12395 {
12396#if wxUSE_UNICODE
12397 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12398#else
12399 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12400#endif
12401 }
12402 return resultobj;
12403fail:
12404 return NULL;
b1fcee84
RD
12405}
12406
12407
1bd55598
RD
12408SWIGINTERN PyObject *_wrap_FSFile_GetModificationTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12409 PyObject *resultobj = 0;
12410 wxFSFile *arg1 = (wxFSFile *) 0 ;
12411 wxDateTime result;
12412 void *argp1 = 0 ;
12413 int res1 = 0 ;
12414 PyObject *swig_obj[1] ;
12415
12416 if (!args) SWIG_fail;
12417 swig_obj[0] = args;
12418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
12419 if (!SWIG_IsOK(res1)) {
12420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_GetModificationTime" "', expected argument " "1"" of type '" "wxFSFile *""'");
12421 }
12422 arg1 = reinterpret_cast< wxFSFile * >(argp1);
12423 {
12424 PyThreadState* __tstate = wxPyBeginAllowThreads();
12425 result = (arg1)->GetModificationTime();
12426 wxPyEndAllowThreads(__tstate);
12427 if (PyErr_Occurred()) SWIG_fail;
12428 }
12429 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
12430 return resultobj;
12431fail:
12432 return NULL;
d55e5bfc
RD
12433}
12434
12435
1bd55598
RD
12436SWIGINTERN PyObject *FSFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12437 PyObject *obj;
12438 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12439 SWIG_TypeNewClientData(SWIGTYPE_p_wxFSFile, SWIG_NewClientData(obj));
12440 return SWIG_Py_Void();
d55e5bfc
RD
12441}
12442
1bd55598
RD
12443SWIGINTERN PyObject *FSFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12444 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
12445}
12446
50f151d7
RD
12447SWIGINTERN PyObject *_wrap_delete_CPPFileSystemHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12448 PyObject *resultobj = 0;
12449 wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
12450 void *argp1 = 0 ;
12451 int res1 = 0 ;
12452 PyObject *swig_obj[1] ;
12453
12454 if (!args) SWIG_fail;
12455 swig_obj[0] = args;
12456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileSystemHandler, SWIG_POINTER_DISOWN | 0 );
12457 if (!SWIG_IsOK(res1)) {
12458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CPPFileSystemHandler" "', expected argument " "1"" of type '" "wxFileSystemHandler *""'");
12459 }
12460 arg1 = reinterpret_cast< wxFileSystemHandler * >(argp1);
12461 {
12462 PyThreadState* __tstate = wxPyBeginAllowThreads();
12463 delete arg1;
12464
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 resultobj = SWIG_Py_Void();
12469 return resultobj;
12470fail:
12471 return NULL;
12472}
12473
12474
1bd55598
RD
12475SWIGINTERN PyObject *CPPFileSystemHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12476 PyObject *obj;
12477 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12478 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileSystemHandler, SWIG_NewClientData(obj));
12479 return SWIG_Py_Void();
d55e5bfc
RD
12480}
12481
1bd55598
RD
12482SWIGINTERN PyObject *_wrap_new_FileSystemHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12483 PyObject *resultobj = 0;
12484 wxPyFileSystemHandler *result = 0 ;
12485
12486 if (!SWIG_Python_UnpackTuple(args,"new_FileSystemHandler",0,0,0)) SWIG_fail;
12487 {
12488 PyThreadState* __tstate = wxPyBeginAllowThreads();
12489 result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler();
12490 wxPyEndAllowThreads(__tstate);
12491 if (PyErr_Occurred()) SWIG_fail;
12492 }
12493 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_NEW | 0 );
12494 return resultobj;
12495fail:
12496 return NULL;
12497}
12498
12499
12500SWIGINTERN PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12501 PyObject *resultobj = 0;
12502 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12503 PyObject *arg2 = (PyObject *) 0 ;
12504 PyObject *arg3 = (PyObject *) 0 ;
12505 void *argp1 = 0 ;
12506 int res1 = 0 ;
12507 PyObject * obj0 = 0 ;
12508 PyObject * obj1 = 0 ;
12509 PyObject * obj2 = 0 ;
12510 char * kwnames[] = {
12511 (char *) "self",(char *) "self",(char *) "_class", NULL
12512 };
12513
12514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12516 if (!SWIG_IsOK(res1)) {
12517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12518 }
12519 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12520 arg2 = obj1;
12521 arg3 = obj2;
12522 {
12523 PyThreadState* __tstate = wxPyBeginAllowThreads();
12524 (arg1)->_setCallbackInfo(arg2,arg3);
12525 wxPyEndAllowThreads(__tstate);
12526 if (PyErr_Occurred()) SWIG_fail;
12527 }
12528 resultobj = SWIG_Py_Void();
12529 return resultobj;
12530fail:
12531 return NULL;
12532}
12533
12534
12535SWIGINTERN PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12536 PyObject *resultobj = 0;
12537 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12538 wxString *arg2 = 0 ;
12539 bool result;
12540 void *argp1 = 0 ;
12541 int res1 = 0 ;
12542 bool temp2 = false ;
12543 PyObject * obj0 = 0 ;
12544 PyObject * obj1 = 0 ;
12545 char * kwnames[] = {
12546 (char *) "self",(char *) "location", NULL
12547 };
12548
12549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) SWIG_fail;
12550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12551 if (!SWIG_IsOK(res1)) {
12552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_CanOpen" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12553 }
12554 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12555 {
12556 arg2 = wxString_in_helper(obj1);
12557 if (arg2 == NULL) SWIG_fail;
12558 temp2 = true;
12559 }
12560 {
12561 PyThreadState* __tstate = wxPyBeginAllowThreads();
12562 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
12563 wxPyEndAllowThreads(__tstate);
12564 if (PyErr_Occurred()) SWIG_fail;
12565 }
12566 {
12567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12568 }
12569 {
12570 if (temp2)
12571 delete arg2;
12572 }
12573 return resultobj;
12574fail:
12575 {
12576 if (temp2)
12577 delete arg2;
12578 }
12579 return NULL;
12580}
12581
12582
12583SWIGINTERN PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12584 PyObject *resultobj = 0;
12585 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12586 wxFileSystem *arg2 = 0 ;
12587 wxString *arg3 = 0 ;
12588 wxFSFile *result = 0 ;
12589 void *argp1 = 0 ;
12590 int res1 = 0 ;
12591 void *argp2 = 0 ;
12592 int res2 = 0 ;
12593 bool temp3 = false ;
12594 PyObject * obj0 = 0 ;
12595 PyObject * obj1 = 0 ;
12596 PyObject * obj2 = 0 ;
12597 char * kwnames[] = {
12598 (char *) "self",(char *) "fs",(char *) "location", NULL
12599 };
12600
12601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12603 if (!SWIG_IsOK(res1)) {
12604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_OpenFile" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12605 }
12606 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12607 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFileSystem, 0 );
12608 if (!SWIG_IsOK(res2)) {
12609 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FileSystemHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
12610 }
12611 if (!argp2) {
12612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FileSystemHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
12613 }
12614 arg2 = reinterpret_cast< wxFileSystem * >(argp2);
12615 {
12616 arg3 = wxString_in_helper(obj2);
12617 if (arg3 == NULL) SWIG_fail;
12618 temp3 = true;
12619 }
12620 {
12621 PyThreadState* __tstate = wxPyBeginAllowThreads();
12622 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
12623 wxPyEndAllowThreads(__tstate);
12624 if (PyErr_Occurred()) SWIG_fail;
12625 }
12626 {
b850e7f3 12627 resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
1bd55598
RD
12628 }
12629 {
12630 if (temp3)
12631 delete arg3;
12632 }
12633 return resultobj;
12634fail:
12635 {
12636 if (temp3)
12637 delete arg3;
12638 }
12639 return NULL;
12640}
12641
12642
12643SWIGINTERN PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12644 PyObject *resultobj = 0;
12645 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12646 wxString *arg2 = 0 ;
12647 int arg3 = (int) 0 ;
12648 wxString result;
12649 void *argp1 = 0 ;
12650 int res1 = 0 ;
12651 bool temp2 = false ;
12652 int val3 ;
12653 int ecode3 = 0 ;
12654 PyObject * obj0 = 0 ;
12655 PyObject * obj1 = 0 ;
12656 PyObject * obj2 = 0 ;
12657 char * kwnames[] = {
12658 (char *) "self",(char *) "spec",(char *) "flags", NULL
12659 };
12660
12661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12663 if (!SWIG_IsOK(res1)) {
12664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_FindFirst" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12665 }
12666 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12667 {
12668 arg2 = wxString_in_helper(obj1);
12669 if (arg2 == NULL) SWIG_fail;
12670 temp2 = true;
12671 }
12672 if (obj2) {
12673 ecode3 = SWIG_AsVal_int(obj2, &val3);
12674 if (!SWIG_IsOK(ecode3)) {
12675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileSystemHandler_FindFirst" "', expected argument " "3"" of type '" "int""'");
12676 }
12677 arg3 = static_cast< int >(val3);
12678 }
12679 {
12680 PyThreadState* __tstate = wxPyBeginAllowThreads();
12681 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
12682 wxPyEndAllowThreads(__tstate);
12683 if (PyErr_Occurred()) SWIG_fail;
12684 }
12685 {
12686#if wxUSE_UNICODE
12687 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12688#else
12689 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12690#endif
12691 }
12692 {
12693 if (temp2)
12694 delete arg2;
12695 }
12696 return resultobj;
12697fail:
12698 {
12699 if (temp2)
12700 delete arg2;
12701 }
12702 return NULL;
d55e5bfc
RD
12703}
12704
12705
1bd55598
RD
12706SWIGINTERN PyObject *_wrap_FileSystemHandler_FindNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12707 PyObject *resultobj = 0;
12708 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12709 wxString result;
12710 void *argp1 = 0 ;
12711 int res1 = 0 ;
12712 PyObject *swig_obj[1] ;
12713
12714 if (!args) SWIG_fail;
12715 swig_obj[0] = args;
12716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12717 if (!SWIG_IsOK(res1)) {
12718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_FindNext" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12719 }
12720 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12721 {
12722 PyThreadState* __tstate = wxPyBeginAllowThreads();
12723 result = (arg1)->FindNext();
12724 wxPyEndAllowThreads(__tstate);
12725 if (PyErr_Occurred()) SWIG_fail;
12726 }
12727 {
12728#if wxUSE_UNICODE
12729 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12730#else
12731 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12732#endif
12733 }
12734 return resultobj;
12735fail:
12736 return NULL;
12737}
12738
12739
12740SWIGINTERN PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12741 PyObject *resultobj = 0;
12742 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12743 wxString *arg2 = 0 ;
12744 wxString result;
12745 void *argp1 = 0 ;
12746 int res1 = 0 ;
12747 bool temp2 = false ;
12748 PyObject * obj0 = 0 ;
12749 PyObject * obj1 = 0 ;
12750 char * kwnames[] = {
12751 (char *) "self",(char *) "location", NULL
12752 };
12753
12754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) SWIG_fail;
12755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12756 if (!SWIG_IsOK(res1)) {
12757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_GetProtocol" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12758 }
12759 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12760 {
12761 arg2 = wxString_in_helper(obj1);
12762 if (arg2 == NULL) SWIG_fail;
12763 temp2 = true;
12764 }
12765 {
12766 PyThreadState* __tstate = wxPyBeginAllowThreads();
12767 result = (arg1)->GetProtocol((wxString const &)*arg2);
12768 wxPyEndAllowThreads(__tstate);
12769 if (PyErr_Occurred()) SWIG_fail;
12770 }
12771 {
12772#if wxUSE_UNICODE
12773 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12774#else
12775 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12776#endif
12777 }
12778 {
12779 if (temp2)
12780 delete arg2;
12781 }
12782 return resultobj;
12783fail:
12784 {
12785 if (temp2)
12786 delete arg2;
12787 }
12788 return NULL;
12789}
12790
12791
12792SWIGINTERN PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12793 PyObject *resultobj = 0;
12794 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12795 wxString *arg2 = 0 ;
12796 wxString result;
12797 void *argp1 = 0 ;
12798 int res1 = 0 ;
12799 bool temp2 = false ;
12800 PyObject * obj0 = 0 ;
12801 PyObject * obj1 = 0 ;
12802 char * kwnames[] = {
12803 (char *) "self",(char *) "location", NULL
12804 };
12805
12806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) SWIG_fail;
12807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12808 if (!SWIG_IsOK(res1)) {
12809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_GetLeftLocation" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12810 }
12811 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12812 {
12813 arg2 = wxString_in_helper(obj1);
12814 if (arg2 == NULL) SWIG_fail;
12815 temp2 = true;
12816 }
12817 {
12818 PyThreadState* __tstate = wxPyBeginAllowThreads();
12819 result = (arg1)->GetLeftLocation((wxString const &)*arg2);
12820 wxPyEndAllowThreads(__tstate);
12821 if (PyErr_Occurred()) SWIG_fail;
12822 }
12823 {
12824#if wxUSE_UNICODE
12825 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12826#else
12827 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12828#endif
12829 }
12830 {
12831 if (temp2)
12832 delete arg2;
12833 }
12834 return resultobj;
12835fail:
12836 {
12837 if (temp2)
12838 delete arg2;
12839 }
12840 return NULL;
12841}
12842
12843
12844SWIGINTERN PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12845 PyObject *resultobj = 0;
12846 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12847 wxString *arg2 = 0 ;
12848 wxString result;
12849 void *argp1 = 0 ;
12850 int res1 = 0 ;
12851 bool temp2 = false ;
12852 PyObject * obj0 = 0 ;
12853 PyObject * obj1 = 0 ;
12854 char * kwnames[] = {
12855 (char *) "self",(char *) "location", NULL
12856 };
12857
12858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) SWIG_fail;
12859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12860 if (!SWIG_IsOK(res1)) {
12861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_GetAnchor" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12862 }
12863 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12864 {
12865 arg2 = wxString_in_helper(obj1);
12866 if (arg2 == NULL) SWIG_fail;
12867 temp2 = true;
12868 }
12869 {
12870 PyThreadState* __tstate = wxPyBeginAllowThreads();
12871 result = (arg1)->GetAnchor((wxString const &)*arg2);
12872 wxPyEndAllowThreads(__tstate);
12873 if (PyErr_Occurred()) SWIG_fail;
12874 }
12875 {
12876#if wxUSE_UNICODE
12877 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12878#else
12879 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12880#endif
12881 }
12882 {
12883 if (temp2)
12884 delete arg2;
12885 }
12886 return resultobj;
12887fail:
12888 {
12889 if (temp2)
12890 delete arg2;
12891 }
12892 return NULL;
12893}
12894
12895
12896SWIGINTERN PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12897 PyObject *resultobj = 0;
12898 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12899 wxString *arg2 = 0 ;
12900 wxString result;
12901 void *argp1 = 0 ;
12902 int res1 = 0 ;
12903 bool temp2 = false ;
12904 PyObject * obj0 = 0 ;
12905 PyObject * obj1 = 0 ;
12906 char * kwnames[] = {
12907 (char *) "self",(char *) "location", NULL
12908 };
12909
12910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) SWIG_fail;
12911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12912 if (!SWIG_IsOK(res1)) {
12913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_GetRightLocation" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12914 }
12915 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12916 {
12917 arg2 = wxString_in_helper(obj1);
12918 if (arg2 == NULL) SWIG_fail;
12919 temp2 = true;
12920 }
12921 {
12922 PyThreadState* __tstate = wxPyBeginAllowThreads();
12923 result = (arg1)->GetRightLocation((wxString const &)*arg2);
12924 wxPyEndAllowThreads(__tstate);
12925 if (PyErr_Occurred()) SWIG_fail;
12926 }
12927 {
12928#if wxUSE_UNICODE
12929 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12930#else
12931 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12932#endif
12933 }
12934 {
12935 if (temp2)
12936 delete arg2;
12937 }
12938 return resultobj;
12939fail:
12940 {
12941 if (temp2)
12942 delete arg2;
12943 }
12944 return NULL;
12945}
12946
12947
12948SWIGINTERN PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12949 PyObject *resultobj = 0;
12950 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12951 wxString *arg2 = 0 ;
12952 wxString result;
12953 void *argp1 = 0 ;
12954 int res1 = 0 ;
12955 bool temp2 = false ;
12956 PyObject * obj0 = 0 ;
12957 PyObject * obj1 = 0 ;
12958 char * kwnames[] = {
12959 (char *) "self",(char *) "location", NULL
12960 };
12961
12962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) SWIG_fail;
12963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12964 if (!SWIG_IsOK(res1)) {
12965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_GetMimeTypeFromExt" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12966 }
12967 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12968 {
12969 arg2 = wxString_in_helper(obj1);
12970 if (arg2 == NULL) SWIG_fail;
12971 temp2 = true;
12972 }
12973 {
12974 PyThreadState* __tstate = wxPyBeginAllowThreads();
12975 result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2);
12976 wxPyEndAllowThreads(__tstate);
12977 if (PyErr_Occurred()) SWIG_fail;
12978 }
12979 {
12980#if wxUSE_UNICODE
12981 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12982#else
12983 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12984#endif
12985 }
12986 {
12987 if (temp2)
12988 delete arg2;
12989 }
12990 return resultobj;
12991fail:
12992 {
12993 if (temp2)
12994 delete arg2;
12995 }
12996 return NULL;
d55e5bfc
RD
12997}
12998
12999
1bd55598
RD
13000SWIGINTERN PyObject *FileSystemHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13001 PyObject *obj;
13002 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13003 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFileSystemHandler, SWIG_NewClientData(obj));
13004 return SWIG_Py_Void();
d55e5bfc
RD
13005}
13006
1bd55598
RD
13007SWIGINTERN PyObject *FileSystemHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13008 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
13009}
13010
1bd55598
RD
13011SWIGINTERN PyObject *_wrap_new_FileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13012 PyObject *resultobj = 0;
13013 wxFileSystem *result = 0 ;
13014
13015 if (!SWIG_Python_UnpackTuple(args,"new_FileSystem",0,0,0)) SWIG_fail;
13016 {
13017 PyThreadState* __tstate = wxPyBeginAllowThreads();
13018 result = (wxFileSystem *)new wxFileSystem();
13019 wxPyEndAllowThreads(__tstate);
13020 if (PyErr_Occurred()) SWIG_fail;
13021 }
3ecece7e 13022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystem, SWIG_POINTER_NEW | 0 );
1bd55598
RD
13023 return resultobj;
13024fail:
13025 return NULL;
d55e5bfc
RD
13026}
13027
13028
1bd55598
RD
13029SWIGINTERN PyObject *_wrap_delete_FileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13030 PyObject *resultobj = 0;
13031 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
13032 void *argp1 = 0 ;
13033 int res1 = 0 ;
13034 PyObject *swig_obj[1] ;
13035
13036 if (!args) SWIG_fail;
13037 swig_obj[0] = args;
13038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileSystem, SWIG_POINTER_DISOWN | 0 );
13039 if (!SWIG_IsOK(res1)) {
13040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FileSystem" "', expected argument " "1"" of type '" "wxFileSystem *""'");
13041 }
13042 arg1 = reinterpret_cast< wxFileSystem * >(argp1);
13043 {
13044 PyThreadState* __tstate = wxPyBeginAllowThreads();
13045 delete arg1;
d55e5bfc 13046
1bd55598
RD
13047 wxPyEndAllowThreads(__tstate);
13048 if (PyErr_Occurred()) SWIG_fail;
13049 }
13050 resultobj = SWIG_Py_Void();
13051 return resultobj;
13052fail:
13053 return NULL;
13054}
13055
13056
13057SWIGINTERN PyObject *_wrap_FileSystem_ChangePathTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13058 PyObject *resultobj = 0;
13059 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
13060 wxString *arg2 = 0 ;
13061 bool arg3 = (bool) false ;
13062 void *argp1 = 0 ;
13063 int res1 = 0 ;
13064 bool temp2 = false ;
13065 bool val3 ;
13066 int ecode3 = 0 ;
13067 PyObject * obj0 = 0 ;
13068 PyObject * obj1 = 0 ;
13069 PyObject * obj2 = 0 ;
13070 char * kwnames[] = {
13071 (char *) "self",(char *) "location",(char *) "is_dir", NULL
13072 };
13073
13074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileSystem, 0 | 0 );
13076 if (!SWIG_IsOK(res1)) {
13077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_ChangePathTo" "', expected argument " "1"" of type '" "wxFileSystem *""'");
13078 }
13079 arg1 = reinterpret_cast< wxFileSystem * >(argp1);
13080 {
13081 arg2 = wxString_in_helper(obj1);
13082 if (arg2 == NULL) SWIG_fail;
13083 temp2 = true;
13084 }
13085 if (obj2) {
13086 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13087 if (!SWIG_IsOK(ecode3)) {
13088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileSystem_ChangePathTo" "', expected argument " "3"" of type '" "bool""'");
13089 }
13090 arg3 = static_cast< bool >(val3);
13091 }
13092 {
13093 PyThreadState* __tstate = wxPyBeginAllowThreads();
13094 (arg1)->ChangePathTo((wxString const &)*arg2,arg3);
13095 wxPyEndAllowThreads(__tstate);
13096 if (PyErr_Occurred()) SWIG_fail;
13097 }
13098 resultobj = SWIG_Py_Void();
13099 {
13100 if (temp2)
13101 delete arg2;
13102 }
13103 return resultobj;
13104fail:
13105 {
13106 if (temp2)
13107 delete arg2;
13108 }
13109 return NULL;
d55e5bfc
RD
13110}
13111
13112
1bd55598
RD
13113SWIGINTERN PyObject *_wrap_FileSystem_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13114 PyObject *resultobj = 0;
13115 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
13116 wxString result;
13117 void *argp1 = 0 ;
13118 int res1 = 0 ;
13119 PyObject *swig_obj[1] ;
13120
13121 if (!args) SWIG_fail;
13122 swig_obj[0] = args;
13123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileSystem, 0 | 0 );
13124 if (!SWIG_IsOK(res1)) {
13125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_GetPath" "', expected argument " "1"" of type '" "wxFileSystem *""'");
13126 }
13127 arg1 = reinterpret_cast< wxFileSystem * >(argp1);
13128 {
13129 PyThreadState* __tstate = wxPyBeginAllowThreads();
13130 result = (arg1)->GetPath();
13131 wxPyEndAllowThreads(__tstate);
13132 if (PyErr_Occurred()) SWIG_fail;
13133 }
13134 {
13135#if wxUSE_UNICODE
13136 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13137#else
13138 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13139#endif
13140 }
13141 return resultobj;
13142fail:
13143 return NULL;
13144}
13145
13146
13147SWIGINTERN PyObject *_wrap_FileSystem_OpenFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13148 PyObject *resultobj = 0;
13149 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
13150 wxString *arg2 = 0 ;
13151 wxFSFile *result = 0 ;
13152 void *argp1 = 0 ;
13153 int res1 = 0 ;
13154 bool temp2 = false ;
13155 PyObject * obj0 = 0 ;
13156 PyObject * obj1 = 0 ;
13157 char * kwnames[] = {
13158 (char *) "self",(char *) "location", NULL
13159 };
13160
13161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) SWIG_fail;
13162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileSystem, 0 | 0 );
13163 if (!SWIG_IsOK(res1)) {
13164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_OpenFile" "', expected argument " "1"" of type '" "wxFileSystem *""'");
13165 }
13166 arg1 = reinterpret_cast< wxFileSystem * >(argp1);
13167 {
13168 arg2 = wxString_in_helper(obj1);
13169 if (arg2 == NULL) SWIG_fail;
13170 temp2 = true;
13171 }
13172 {
13173 PyThreadState* __tstate = wxPyBeginAllowThreads();
13174 result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2);
13175 wxPyEndAllowThreads(__tstate);
13176 if (PyErr_Occurred()) SWIG_fail;
13177 }
13178 {
b850e7f3 13179 resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
1bd55598
RD
13180 }
13181 {
13182 if (temp2)
13183 delete arg2;
13184 }
13185 return resultobj;
13186fail:
13187 {
13188 if (temp2)
13189 delete arg2;
13190 }
13191 return NULL;
13192}
13193
13194
13195SWIGINTERN PyObject *_wrap_FileSystem_FindFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13196 PyObject *resultobj = 0;
13197 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
13198 wxString *arg2 = 0 ;
13199 int arg3 = (int) 0 ;
13200 wxString result;
13201 void *argp1 = 0 ;
13202 int res1 = 0 ;
13203 bool temp2 = false ;
13204 int val3 ;
13205 int ecode3 = 0 ;
13206 PyObject * obj0 = 0 ;
13207 PyObject * obj1 = 0 ;
13208 PyObject * obj2 = 0 ;
13209 char * kwnames[] = {
13210 (char *) "self",(char *) "spec",(char *) "flags", NULL
13211 };
13212
13213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileSystem, 0 | 0 );
13215 if (!SWIG_IsOK(res1)) {
13216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_FindFirst" "', expected argument " "1"" of type '" "wxFileSystem *""'");
13217 }
13218 arg1 = reinterpret_cast< wxFileSystem * >(argp1);
13219 {
13220 arg2 = wxString_in_helper(obj1);
13221 if (arg2 == NULL) SWIG_fail;
13222 temp2 = true;
13223 }
13224 if (obj2) {
13225 ecode3 = SWIG_AsVal_int(obj2, &val3);
13226 if (!SWIG_IsOK(ecode3)) {
13227 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileSystem_FindFirst" "', expected argument " "3"" of type '" "int""'");
13228 }
13229 arg3 = static_cast< int >(val3);
13230 }
13231 {
13232 PyThreadState* __tstate = wxPyBeginAllowThreads();
13233 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
13234 wxPyEndAllowThreads(__tstate);
13235 if (PyErr_Occurred()) SWIG_fail;
13236 }
13237 {
13238#if wxUSE_UNICODE
13239 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13240#else
13241 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13242#endif
13243 }
13244 {
13245 if (temp2)
13246 delete arg2;
13247 }
13248 return resultobj;
13249fail:
13250 {
13251 if (temp2)
13252 delete arg2;
13253 }
13254 return NULL;
d55e5bfc
RD
13255}
13256
13257
1bd55598
RD
13258SWIGINTERN PyObject *_wrap_FileSystem_FindNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13259 PyObject *resultobj = 0;
13260 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
13261 wxString result;
13262 void *argp1 = 0 ;
13263 int res1 = 0 ;
13264 PyObject *swig_obj[1] ;
13265
13266 if (!args) SWIG_fail;
13267 swig_obj[0] = args;
13268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileSystem, 0 | 0 );
13269 if (!SWIG_IsOK(res1)) {
13270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_FindNext" "', expected argument " "1"" of type '" "wxFileSystem *""'");
13271 }
13272 arg1 = reinterpret_cast< wxFileSystem * >(argp1);
13273 {
13274 PyThreadState* __tstate = wxPyBeginAllowThreads();
13275 result = (arg1)->FindNext();
13276 wxPyEndAllowThreads(__tstate);
13277 if (PyErr_Occurred()) SWIG_fail;
13278 }
13279 {
13280#if wxUSE_UNICODE
13281 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13282#else
13283 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13284#endif
13285 }
13286 return resultobj;
13287fail:
13288 return NULL;
d55e5bfc
RD
13289}
13290
13291
1bd55598
RD
13292SWIGINTERN PyObject *_wrap_FileSystem_AddHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13293 PyObject *resultobj = 0;
13294 wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
1bd55598
RD
13295 int res1 = 0 ;
13296 PyObject * obj0 = 0 ;
13297 char * kwnames[] = {
13298 (char *) "handler", NULL
13299 };
13300
13301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) SWIG_fail;
50f151d7 13302 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxFileSystemHandler, SWIG_POINTER_DISOWN | 0 );
1bd55598 13303 if (!SWIG_IsOK(res1)) {
50f151d7 13304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_AddHandler" "', expected argument " "1"" of type '" "wxFileSystemHandler *""'");
1bd55598 13305 }
1bd55598
RD
13306 {
13307 PyThreadState* __tstate = wxPyBeginAllowThreads();
13308 wxFileSystem::AddHandler(arg1);
13309 wxPyEndAllowThreads(__tstate);
13310 if (PyErr_Occurred()) SWIG_fail;
13311 }
13312 resultobj = SWIG_Py_Void();
13313 return resultobj;
13314fail:
13315 return NULL;
d55e5bfc
RD
13316}
13317
13318
ac5d357a
RD
13319SWIGINTERN PyObject *_wrap_FileSystem_RemoveHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13320 PyObject *resultobj = 0;
13321 wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
13322 wxFileSystemHandler *result = 0 ;
13323 void *argp1 = 0 ;
13324 int res1 = 0 ;
13325 PyObject * obj0 = 0 ;
13326 char * kwnames[] = {
13327 (char *) "handler", NULL
13328 };
13329
13330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_RemoveHandler",kwnames,&obj0)) SWIG_fail;
13331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileSystemHandler, 0 | 0 );
13332 if (!SWIG_IsOK(res1)) {
13333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_RemoveHandler" "', expected argument " "1"" of type '" "wxFileSystemHandler *""'");
13334 }
13335 arg1 = reinterpret_cast< wxFileSystemHandler * >(argp1);
13336 {
13337 PyThreadState* __tstate = wxPyBeginAllowThreads();
13338 result = (wxFileSystemHandler *)wxFileSystem::RemoveHandler(arg1);
13339 wxPyEndAllowThreads(__tstate);
13340 if (PyErr_Occurred()) SWIG_fail;
13341 }
13342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystemHandler, SWIG_POINTER_OWN | 0 );
13343 return resultobj;
13344fail:
13345 return NULL;
13346}
13347
13348
1bd55598
RD
13349SWIGINTERN PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13350 PyObject *resultobj = 0;
13351
13352 if (!SWIG_Python_UnpackTuple(args,"FileSystem_CleanUpHandlers",0,0,0)) SWIG_fail;
13353 {
13354 PyThreadState* __tstate = wxPyBeginAllowThreads();
13355 wxFileSystem::CleanUpHandlers();
13356 wxPyEndAllowThreads(__tstate);
13357 if (PyErr_Occurred()) SWIG_fail;
13358 }
13359 resultobj = SWIG_Py_Void();
13360 return resultobj;
13361fail:
13362 return NULL;
d55e5bfc
RD
13363}
13364
13365
1bd55598
RD
13366SWIGINTERN PyObject *_wrap_FileSystem_FileNameToURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13367 PyObject *resultobj = 0;
13368 wxString *arg1 = 0 ;
13369 wxString result;
13370 bool temp1 = false ;
13371 PyObject * obj0 = 0 ;
13372 char * kwnames[] = {
13373 (char *) "filename", NULL
13374 };
13375
13376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) SWIG_fail;
13377 {
13378 arg1 = wxString_in_helper(obj0);
13379 if (arg1 == NULL) SWIG_fail;
13380 temp1 = true;
13381 }
13382 {
13383 PyThreadState* __tstate = wxPyBeginAllowThreads();
13384 result = wxFileSystem::FileNameToURL((wxString const &)*arg1);
13385 wxPyEndAllowThreads(__tstate);
13386 if (PyErr_Occurred()) SWIG_fail;
13387 }
13388 {
13389#if wxUSE_UNICODE
13390 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13391#else
13392 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13393#endif
13394 }
13395 {
13396 if (temp1)
13397 delete arg1;
13398 }
13399 return resultobj;
13400fail:
13401 {
13402 if (temp1)
13403 delete arg1;
13404 }
13405 return NULL;
d55e5bfc
RD
13406}
13407
13408
1bd55598
RD
13409SWIGINTERN PyObject *_wrap_FileSystem_URLToFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13410 PyObject *resultobj = 0;
13411 wxString *arg1 = 0 ;
13412 wxString result;
13413 bool temp1 = false ;
13414 PyObject * obj0 = 0 ;
13415 char * kwnames[] = {
13416 (char *) "url", NULL
13417 };
13418
13419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) SWIG_fail;
13420 {
13421 arg1 = wxString_in_helper(obj0);
13422 if (arg1 == NULL) SWIG_fail;
13423 temp1 = true;
13424 }
13425 {
13426 PyThreadState* __tstate = wxPyBeginAllowThreads();
13427 result = wxFileSystem_URLToFileName((wxString const &)*arg1);
13428 wxPyEndAllowThreads(__tstate);
13429 if (PyErr_Occurred()) SWIG_fail;
13430 }
13431 {
13432#if wxUSE_UNICODE
13433 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13434#else
13435 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13436#endif
13437 }
13438 {
13439 if (temp1)
13440 delete arg1;
13441 }
13442 return resultobj;
13443fail:
13444 {
13445 if (temp1)
13446 delete arg1;
13447 }
13448 return NULL;
d55e5bfc
RD
13449}
13450
13451
1bd55598
RD
13452SWIGINTERN PyObject *FileSystem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13453 PyObject *obj;
13454 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13455 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileSystem, SWIG_NewClientData(obj));
13456 return SWIG_Py_Void();
d55e5bfc
RD
13457}
13458
1bd55598
RD
13459SWIGINTERN PyObject *FileSystem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13460 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
13461}
13462
1bd55598
RD
13463SWIGINTERN PyObject *_wrap_new_InternetFSHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13464 PyObject *resultobj = 0;
13465 wxInternetFSHandler *result = 0 ;
13466
13467 if (!SWIG_Python_UnpackTuple(args,"new_InternetFSHandler",0,0,0)) SWIG_fail;
13468 {
13469 PyThreadState* __tstate = wxPyBeginAllowThreads();
13470 result = (wxInternetFSHandler *)new wxInternetFSHandler();
13471 wxPyEndAllowThreads(__tstate);
13472 if (PyErr_Occurred()) SWIG_fail;
13473 }
13474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxInternetFSHandler, SWIG_POINTER_NEW | 0 );
13475 return resultobj;
13476fail:
13477 return NULL;
13478}
13479
13480
13481SWIGINTERN PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13482 PyObject *resultobj = 0;
13483 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
13484 wxString *arg2 = 0 ;
13485 bool result;
13486 void *argp1 = 0 ;
13487 int res1 = 0 ;
13488 bool temp2 = false ;
13489 PyObject * obj0 = 0 ;
13490 PyObject * obj1 = 0 ;
13491 char * kwnames[] = {
13492 (char *) "self",(char *) "location", NULL
13493 };
13494
13495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) SWIG_fail;
13496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxInternetFSHandler, 0 | 0 );
13497 if (!SWIG_IsOK(res1)) {
13498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InternetFSHandler_CanOpen" "', expected argument " "1"" of type '" "wxInternetFSHandler *""'");
13499 }
13500 arg1 = reinterpret_cast< wxInternetFSHandler * >(argp1);
13501 {
13502 arg2 = wxString_in_helper(obj1);
13503 if (arg2 == NULL) SWIG_fail;
13504 temp2 = true;
13505 }
13506 {
13507 PyThreadState* __tstate = wxPyBeginAllowThreads();
13508 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
13509 wxPyEndAllowThreads(__tstate);
13510 if (PyErr_Occurred()) SWIG_fail;
13511 }
13512 {
13513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13514 }
13515 {
13516 if (temp2)
13517 delete arg2;
13518 }
13519 return resultobj;
13520fail:
13521 {
13522 if (temp2)
13523 delete arg2;
13524 }
13525 return NULL;
13526}
13527
13528
13529SWIGINTERN PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13530 PyObject *resultobj = 0;
13531 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
13532 wxFileSystem *arg2 = 0 ;
13533 wxString *arg3 = 0 ;
13534 wxFSFile *result = 0 ;
13535 void *argp1 = 0 ;
13536 int res1 = 0 ;
13537 void *argp2 = 0 ;
13538 int res2 = 0 ;
13539 bool temp3 = false ;
13540 PyObject * obj0 = 0 ;
13541 PyObject * obj1 = 0 ;
13542 PyObject * obj2 = 0 ;
13543 char * kwnames[] = {
13544 (char *) "self",(char *) "fs",(char *) "location", NULL
13545 };
13546
13547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxInternetFSHandler, 0 | 0 );
13549 if (!SWIG_IsOK(res1)) {
13550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InternetFSHandler_OpenFile" "', expected argument " "1"" of type '" "wxInternetFSHandler *""'");
13551 }
13552 arg1 = reinterpret_cast< wxInternetFSHandler * >(argp1);
13553 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFileSystem, 0 );
13554 if (!SWIG_IsOK(res2)) {
13555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InternetFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
13556 }
13557 if (!argp2) {
13558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InternetFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
13559 }
13560 arg2 = reinterpret_cast< wxFileSystem * >(argp2);
13561 {
13562 arg3 = wxString_in_helper(obj2);
13563 if (arg3 == NULL) SWIG_fail;
13564 temp3 = true;
13565 }
13566 {
13567 PyThreadState* __tstate = wxPyBeginAllowThreads();
13568 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
13569 wxPyEndAllowThreads(__tstate);
13570 if (PyErr_Occurred()) SWIG_fail;
13571 }
13572 {
b850e7f3 13573 resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
1bd55598
RD
13574 }
13575 {
13576 if (temp3)
13577 delete arg3;
13578 }
13579 return resultobj;
13580fail:
13581 {
13582 if (temp3)
13583 delete arg3;
13584 }
13585 return NULL;
d55e5bfc
RD
13586}
13587
13588
1bd55598
RD
13589SWIGINTERN PyObject *InternetFSHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13590 PyObject *obj;
13591 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13592 SWIG_TypeNewClientData(SWIGTYPE_p_wxInternetFSHandler, SWIG_NewClientData(obj));
13593 return SWIG_Py_Void();
d55e5bfc
RD
13594}
13595
1bd55598
RD
13596SWIGINTERN PyObject *InternetFSHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13597 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
13598}
13599
1bd55598
RD
13600SWIGINTERN PyObject *_wrap_new_ZipFSHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13601 PyObject *resultobj = 0;
13602 wxZipFSHandler *result = 0 ;
13603
13604 if (!SWIG_Python_UnpackTuple(args,"new_ZipFSHandler",0,0,0)) SWIG_fail;
13605 {
13606 PyThreadState* __tstate = wxPyBeginAllowThreads();
13607 result = (wxZipFSHandler *)new wxZipFSHandler();
13608 wxPyEndAllowThreads(__tstate);
13609 if (PyErr_Occurred()) SWIG_fail;
13610 }
13611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_NEW | 0 );
13612 return resultobj;
13613fail:
13614 return NULL;
13615}
13616
13617
13618SWIGINTERN PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13619 PyObject *resultobj = 0;
13620 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
13621 wxString *arg2 = 0 ;
13622 bool result;
13623 void *argp1 = 0 ;
13624 int res1 = 0 ;
13625 bool temp2 = false ;
13626 PyObject * obj0 = 0 ;
13627 PyObject * obj1 = 0 ;
13628 char * kwnames[] = {
13629 (char *) "self",(char *) "location", NULL
13630 };
13631
13632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) SWIG_fail;
13633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxZipFSHandler, 0 | 0 );
13634 if (!SWIG_IsOK(res1)) {
13635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZipFSHandler_CanOpen" "', expected argument " "1"" of type '" "wxZipFSHandler *""'");
13636 }
13637 arg1 = reinterpret_cast< wxZipFSHandler * >(argp1);
13638 {
13639 arg2 = wxString_in_helper(obj1);
13640 if (arg2 == NULL) SWIG_fail;
13641 temp2 = true;
13642 }
13643 {
13644 PyThreadState* __tstate = wxPyBeginAllowThreads();
13645 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
13646 wxPyEndAllowThreads(__tstate);
13647 if (PyErr_Occurred()) SWIG_fail;
13648 }
13649 {
13650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13651 }
13652 {
13653 if (temp2)
13654 delete arg2;
13655 }
13656 return resultobj;
13657fail:
13658 {
13659 if (temp2)
13660 delete arg2;
13661 }
13662 return NULL;
13663}
13664
13665
13666SWIGINTERN PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13667 PyObject *resultobj = 0;
13668 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
13669 wxFileSystem *arg2 = 0 ;
13670 wxString *arg3 = 0 ;
13671 wxFSFile *result = 0 ;
13672 void *argp1 = 0 ;
13673 int res1 = 0 ;
13674 void *argp2 = 0 ;
13675 int res2 = 0 ;
13676 bool temp3 = false ;
13677 PyObject * obj0 = 0 ;
13678 PyObject * obj1 = 0 ;
13679 PyObject * obj2 = 0 ;
13680 char * kwnames[] = {
13681 (char *) "self",(char *) "fs",(char *) "location", NULL
13682 };
13683
13684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxZipFSHandler, 0 | 0 );
13686 if (!SWIG_IsOK(res1)) {
13687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZipFSHandler_OpenFile" "', expected argument " "1"" of type '" "wxZipFSHandler *""'");
13688 }
13689 arg1 = reinterpret_cast< wxZipFSHandler * >(argp1);
13690 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFileSystem, 0 );
13691 if (!SWIG_IsOK(res2)) {
13692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZipFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
13693 }
13694 if (!argp2) {
13695 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZipFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
13696 }
13697 arg2 = reinterpret_cast< wxFileSystem * >(argp2);
13698 {
13699 arg3 = wxString_in_helper(obj2);
13700 if (arg3 == NULL) SWIG_fail;
13701 temp3 = true;
13702 }
13703 {
13704 PyThreadState* __tstate = wxPyBeginAllowThreads();
13705 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
13706 wxPyEndAllowThreads(__tstate);
13707 if (PyErr_Occurred()) SWIG_fail;
13708 }
13709 {
b850e7f3 13710 resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
1bd55598
RD
13711 }
13712 {
13713 if (temp3)
13714 delete arg3;
13715 }
13716 return resultobj;
13717fail:
13718 {
13719 if (temp3)
13720 delete arg3;
13721 }
13722 return NULL;
13723}
13724
13725
13726SWIGINTERN PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13727 PyObject *resultobj = 0;
13728 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
13729 wxString *arg2 = 0 ;
13730 int arg3 = (int) 0 ;
13731 wxString result;
13732 void *argp1 = 0 ;
13733 int res1 = 0 ;
13734 bool temp2 = false ;
13735 int val3 ;
13736 int ecode3 = 0 ;
13737 PyObject * obj0 = 0 ;
13738 PyObject * obj1 = 0 ;
13739 PyObject * obj2 = 0 ;
13740 char * kwnames[] = {
13741 (char *) "self",(char *) "spec",(char *) "flags", NULL
13742 };
13743
13744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxZipFSHandler, 0 | 0 );
13746 if (!SWIG_IsOK(res1)) {
13747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZipFSHandler_FindFirst" "', expected argument " "1"" of type '" "wxZipFSHandler *""'");
13748 }
13749 arg1 = reinterpret_cast< wxZipFSHandler * >(argp1);
13750 {
13751 arg2 = wxString_in_helper(obj1);
13752 if (arg2 == NULL) SWIG_fail;
13753 temp2 = true;
13754 }
13755 if (obj2) {
13756 ecode3 = SWIG_AsVal_int(obj2, &val3);
13757 if (!SWIG_IsOK(ecode3)) {
13758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ZipFSHandler_FindFirst" "', expected argument " "3"" of type '" "int""'");
13759 }
13760 arg3 = static_cast< int >(val3);
13761 }
13762 {
13763 PyThreadState* __tstate = wxPyBeginAllowThreads();
13764 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
13765 wxPyEndAllowThreads(__tstate);
13766 if (PyErr_Occurred()) SWIG_fail;
13767 }
13768 {
13769#if wxUSE_UNICODE
13770 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13771#else
13772 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13773#endif
13774 }
13775 {
13776 if (temp2)
13777 delete arg2;
13778 }
13779 return resultobj;
13780fail:
13781 {
13782 if (temp2)
13783 delete arg2;
13784 }
13785 return NULL;
d55e5bfc
RD
13786}
13787
13788
1bd55598
RD
13789SWIGINTERN PyObject *_wrap_ZipFSHandler_FindNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13790 PyObject *resultobj = 0;
13791 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
13792 wxString result;
13793 void *argp1 = 0 ;
13794 int res1 = 0 ;
13795 PyObject *swig_obj[1] ;
13796
13797 if (!args) SWIG_fail;
13798 swig_obj[0] = args;
13799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxZipFSHandler, 0 | 0 );
13800 if (!SWIG_IsOK(res1)) {
13801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZipFSHandler_FindNext" "', expected argument " "1"" of type '" "wxZipFSHandler *""'");
13802 }
13803 arg1 = reinterpret_cast< wxZipFSHandler * >(argp1);
13804 {
13805 PyThreadState* __tstate = wxPyBeginAllowThreads();
13806 result = (arg1)->FindNext();
13807 wxPyEndAllowThreads(__tstate);
13808 if (PyErr_Occurred()) SWIG_fail;
13809 }
13810 {
13811#if wxUSE_UNICODE
13812 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13813#else
13814 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13815#endif
13816 }
13817 return resultobj;
13818fail:
13819 return NULL;
13820}
13821
13822
13823SWIGINTERN PyObject *ZipFSHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13824 PyObject *obj;
13825 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13826 SWIG_TypeNewClientData(SWIGTYPE_p_wxZipFSHandler, SWIG_NewClientData(obj));
13827 return SWIG_Py_Void();
13828}
13829
13830SWIGINTERN PyObject *ZipFSHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13831 return SWIG_Python_InitShadowInstance(args);
13832}
13833
13834SWIGINTERN PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13835 PyObject *resultobj = 0;
13836 wxString *arg1 = 0 ;
13837 wxImage *arg2 = 0 ;
13838 long arg3 ;
13839 bool temp1 = false ;
13840 void *argp2 = 0 ;
13841 int res2 = 0 ;
13842 long val3 ;
13843 int ecode3 = 0 ;
13844 PyObject * obj0 = 0 ;
13845 PyObject * obj1 = 0 ;
13846 PyObject * obj2 = 0 ;
13847 char * kwnames[] = {
13848 (char *) "filename",(char *) "image",(char *) "type", NULL
13849 };
13850
13851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13852 {
13853 arg1 = wxString_in_helper(obj0);
13854 if (arg1 == NULL) SWIG_fail;
13855 temp1 = true;
13856 }
13857 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 );
13858 if (!SWIG_IsOK(res2)) {
13859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__wxMemoryFSHandler_AddFile_wxImage" "', expected argument " "2"" of type '" "wxImage &""'");
13860 }
13861 if (!argp2) {
13862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__wxMemoryFSHandler_AddFile_wxImage" "', expected argument " "2"" of type '" "wxImage &""'");
13863 }
13864 arg2 = reinterpret_cast< wxImage * >(argp2);
13865 ecode3 = SWIG_AsVal_long(obj2, &val3);
13866 if (!SWIG_IsOK(ecode3)) {
13867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "__wxMemoryFSHandler_AddFile_wxImage" "', expected argument " "3"" of type '" "long""'");
13868 }
13869 arg3 = static_cast< long >(val3);
13870 {
13871 PyThreadState* __tstate = wxPyBeginAllowThreads();
13872 __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3);
13873 wxPyEndAllowThreads(__tstate);
13874 if (PyErr_Occurred()) SWIG_fail;
13875 }
13876 resultobj = SWIG_Py_Void();
13877 {
13878 if (temp1)
13879 delete arg1;
13880 }
13881 return resultobj;
13882fail:
13883 {
13884 if (temp1)
13885 delete arg1;
13886 }
13887 return NULL;
13888}
13889
13890
13891SWIGINTERN PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13892 PyObject *resultobj = 0;
13893 wxString *arg1 = 0 ;
13894 wxBitmap *arg2 = 0 ;
13895 long arg3 ;
13896 bool temp1 = false ;
13897 void *argp2 = 0 ;
13898 int res2 = 0 ;
13899 long val3 ;
13900 int ecode3 = 0 ;
13901 PyObject * obj0 = 0 ;
13902 PyObject * obj1 = 0 ;
13903 PyObject * obj2 = 0 ;
13904 char * kwnames[] = {
13905 (char *) "filename",(char *) "bitmap",(char *) "type", NULL
13906 };
13907
13908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13909 {
13910 arg1 = wxString_in_helper(obj0);
13911 if (arg1 == NULL) SWIG_fail;
13912 temp1 = true;
13913 }
13914 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
13915 if (!SWIG_IsOK(res2)) {
13916 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__wxMemoryFSHandler_AddFile_wxBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
13917 }
13918 if (!argp2) {
13919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__wxMemoryFSHandler_AddFile_wxBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
13920 }
13921 arg2 = reinterpret_cast< wxBitmap * >(argp2);
13922 ecode3 = SWIG_AsVal_long(obj2, &val3);
13923 if (!SWIG_IsOK(ecode3)) {
13924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "__wxMemoryFSHandler_AddFile_wxBitmap" "', expected argument " "3"" of type '" "long""'");
13925 }
13926 arg3 = static_cast< long >(val3);
13927 {
13928 PyThreadState* __tstate = wxPyBeginAllowThreads();
13929 __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3);
13930 wxPyEndAllowThreads(__tstate);
13931 if (PyErr_Occurred()) SWIG_fail;
13932 }
13933 resultobj = SWIG_Py_Void();
13934 {
13935 if (temp1)
13936 delete arg1;
13937 }
13938 return resultobj;
13939fail:
13940 {
13941 if (temp1)
13942 delete arg1;
13943 }
13944 return NULL;
d55e5bfc
RD
13945}
13946
13947
1bd55598
RD
13948SWIGINTERN PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13949 PyObject *resultobj = 0;
13950 wxString *arg1 = 0 ;
13951 PyObject *arg2 = (PyObject *) 0 ;
13952 bool temp1 = false ;
13953 PyObject * obj0 = 0 ;
13954 PyObject * obj1 = 0 ;
13955 char * kwnames[] = {
13956 (char *) "filename",(char *) "data", NULL
13957 };
13958
13959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) SWIG_fail;
13960 {
13961 arg1 = wxString_in_helper(obj0);
13962 if (arg1 == NULL) SWIG_fail;
13963 temp1 = true;
13964 }
13965 arg2 = obj1;
13966 {
13967 PyThreadState* __tstate = wxPyBeginAllowThreads();
13968 __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2);
13969 wxPyEndAllowThreads(__tstate);
13970 if (PyErr_Occurred()) SWIG_fail;
13971 }
13972 resultobj = SWIG_Py_Void();
13973 {
13974 if (temp1)
13975 delete arg1;
13976 }
13977 return resultobj;
13978fail:
13979 {
13980 if (temp1)
13981 delete arg1;
13982 }
13983 return NULL;
d55e5bfc
RD
13984}
13985
13986
1bd55598
RD
13987SWIGINTERN PyObject *_wrap_new_MemoryFSHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13988 PyObject *resultobj = 0;
13989 wxMemoryFSHandler *result = 0 ;
13990
13991 if (!SWIG_Python_UnpackTuple(args,"new_MemoryFSHandler",0,0,0)) SWIG_fail;
13992 {
13993 PyThreadState* __tstate = wxPyBeginAllowThreads();
13994 result = (wxMemoryFSHandler *)new wxMemoryFSHandler();
13995 wxPyEndAllowThreads(__tstate);
13996 if (PyErr_Occurred()) SWIG_fail;
13997 }
13998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_NEW | 0 );
13999 return resultobj;
14000fail:
14001 return NULL;
d55e5bfc
RD
14002}
14003
14004
1bd55598
RD
14005SWIGINTERN PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14006 PyObject *resultobj = 0;
14007 wxString *arg1 = 0 ;
14008 bool temp1 = false ;
14009 PyObject * obj0 = 0 ;
14010 char * kwnames[] = {
14011 (char *) "filename", NULL
14012 };
14013
14014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) SWIG_fail;
14015 {
14016 arg1 = wxString_in_helper(obj0);
14017 if (arg1 == NULL) SWIG_fail;
14018 temp1 = true;
14019 }
14020 {
14021 PyThreadState* __tstate = wxPyBeginAllowThreads();
14022 wxMemoryFSHandler::RemoveFile((wxString const &)*arg1);
14023 wxPyEndAllowThreads(__tstate);
14024 if (PyErr_Occurred()) SWIG_fail;
14025 }
14026 resultobj = SWIG_Py_Void();
14027 {
14028 if (temp1)
14029 delete arg1;
14030 }
14031 return resultobj;
14032fail:
14033 {
14034 if (temp1)
14035 delete arg1;
14036 }
14037 return NULL;
14038}
14039
14040
14041SWIGINTERN PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14042 PyObject *resultobj = 0;
14043 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
14044 wxString *arg2 = 0 ;
14045 bool result;
14046 void *argp1 = 0 ;
14047 int res1 = 0 ;
14048 bool temp2 = false ;
14049 PyObject * obj0 = 0 ;
14050 PyObject * obj1 = 0 ;
14051 char * kwnames[] = {
14052 (char *) "self",(char *) "location", NULL
14053 };
14054
14055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) SWIG_fail;
14056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryFSHandler, 0 | 0 );
14057 if (!SWIG_IsOK(res1)) {
14058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryFSHandler_CanOpen" "', expected argument " "1"" of type '" "wxMemoryFSHandler *""'");
14059 }
14060 arg1 = reinterpret_cast< wxMemoryFSHandler * >(argp1);
14061 {
14062 arg2 = wxString_in_helper(obj1);
14063 if (arg2 == NULL) SWIG_fail;
14064 temp2 = true;
14065 }
14066 {
14067 PyThreadState* __tstate = wxPyBeginAllowThreads();
14068 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
14069 wxPyEndAllowThreads(__tstate);
14070 if (PyErr_Occurred()) SWIG_fail;
14071 }
14072 {
14073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14074 }
14075 {
14076 if (temp2)
14077 delete arg2;
14078 }
14079 return resultobj;
14080fail:
14081 {
14082 if (temp2)
14083 delete arg2;
14084 }
14085 return NULL;
14086}
14087
14088
14089SWIGINTERN PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14090 PyObject *resultobj = 0;
14091 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
14092 wxFileSystem *arg2 = 0 ;
14093 wxString *arg3 = 0 ;
14094 wxFSFile *result = 0 ;
14095 void *argp1 = 0 ;
14096 int res1 = 0 ;
14097 void *argp2 = 0 ;
14098 int res2 = 0 ;
14099 bool temp3 = false ;
14100 PyObject * obj0 = 0 ;
14101 PyObject * obj1 = 0 ;
14102 PyObject * obj2 = 0 ;
14103 char * kwnames[] = {
14104 (char *) "self",(char *) "fs",(char *) "location", NULL
14105 };
14106
14107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryFSHandler, 0 | 0 );
14109 if (!SWIG_IsOK(res1)) {
14110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryFSHandler_OpenFile" "', expected argument " "1"" of type '" "wxMemoryFSHandler *""'");
14111 }
14112 arg1 = reinterpret_cast< wxMemoryFSHandler * >(argp1);
14113 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFileSystem, 0 );
14114 if (!SWIG_IsOK(res2)) {
14115 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
14116 }
14117 if (!argp2) {
14118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
14119 }
14120 arg2 = reinterpret_cast< wxFileSystem * >(argp2);
14121 {
14122 arg3 = wxString_in_helper(obj2);
14123 if (arg3 == NULL) SWIG_fail;
14124 temp3 = true;
14125 }
14126 {
14127 PyThreadState* __tstate = wxPyBeginAllowThreads();
14128 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
14129 wxPyEndAllowThreads(__tstate);
14130 if (PyErr_Occurred()) SWIG_fail;
14131 }
14132 {
b850e7f3 14133 resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
1bd55598
RD
14134 }
14135 {
14136 if (temp3)
14137 delete arg3;
14138 }
14139 return resultobj;
14140fail:
14141 {
14142 if (temp3)
14143 delete arg3;
14144 }
14145 return NULL;
14146}
14147
14148
14149SWIGINTERN PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14150 PyObject *resultobj = 0;
14151 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
14152 wxString *arg2 = 0 ;
14153 int arg3 = (int) 0 ;
14154 wxString result;
14155 void *argp1 = 0 ;
14156 int res1 = 0 ;
14157 bool temp2 = false ;
14158 int val3 ;
14159 int ecode3 = 0 ;
14160 PyObject * obj0 = 0 ;
14161 PyObject * obj1 = 0 ;
14162 PyObject * obj2 = 0 ;
14163 char * kwnames[] = {
14164 (char *) "self",(char *) "spec",(char *) "flags", NULL
14165 };
14166
14167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryFSHandler, 0 | 0 );
14169 if (!SWIG_IsOK(res1)) {
14170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryFSHandler_FindFirst" "', expected argument " "1"" of type '" "wxMemoryFSHandler *""'");
14171 }
14172 arg1 = reinterpret_cast< wxMemoryFSHandler * >(argp1);
14173 {
14174 arg2 = wxString_in_helper(obj1);
14175 if (arg2 == NULL) SWIG_fail;
14176 temp2 = true;
14177 }
14178 if (obj2) {
14179 ecode3 = SWIG_AsVal_int(obj2, &val3);
14180 if (!SWIG_IsOK(ecode3)) {
14181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MemoryFSHandler_FindFirst" "', expected argument " "3"" of type '" "int""'");
14182 }
14183 arg3 = static_cast< int >(val3);
14184 }
14185 {
14186 PyThreadState* __tstate = wxPyBeginAllowThreads();
14187 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
14188 wxPyEndAllowThreads(__tstate);
14189 if (PyErr_Occurred()) SWIG_fail;
14190 }
14191 {
14192#if wxUSE_UNICODE
14193 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14194#else
14195 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14196#endif
14197 }
14198 {
14199 if (temp2)
14200 delete arg2;
14201 }
14202 return resultobj;
14203fail:
14204 {
14205 if (temp2)
14206 delete arg2;
14207 }
14208 return NULL;
d55e5bfc
RD
14209}
14210
14211
1bd55598
RD
14212SWIGINTERN PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14213 PyObject *resultobj = 0;
14214 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
14215 wxString result;
14216 void *argp1 = 0 ;
14217 int res1 = 0 ;
14218 PyObject *swig_obj[1] ;
14219
14220 if (!args) SWIG_fail;
14221 swig_obj[0] = args;
14222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMemoryFSHandler, 0 | 0 );
14223 if (!SWIG_IsOK(res1)) {
14224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryFSHandler_FindNext" "', expected argument " "1"" of type '" "wxMemoryFSHandler *""'");
14225 }
14226 arg1 = reinterpret_cast< wxMemoryFSHandler * >(argp1);
14227 {
14228 PyThreadState* __tstate = wxPyBeginAllowThreads();
14229 result = (arg1)->FindNext();
14230 wxPyEndAllowThreads(__tstate);
14231 if (PyErr_Occurred()) SWIG_fail;
14232 }
14233 {
14234#if wxUSE_UNICODE
14235 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14236#else
14237 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14238#endif
14239 }
14240 return resultobj;
14241fail:
14242 return NULL;
d55e5bfc
RD
14243}
14244
14245
1bd55598
RD
14246SWIGINTERN PyObject *MemoryFSHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14247 PyObject *obj;
14248 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14249 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryFSHandler, SWIG_NewClientData(obj));
14250 return SWIG_Py_Void();
d55e5bfc
RD
14251}
14252
1bd55598
RD
14253SWIGINTERN PyObject *MemoryFSHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14254 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14255}
14256
1bd55598
RD
14257SWIGINTERN PyObject *_wrap_ImageHandler_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14258 PyObject *resultobj = 0;
14259 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14260 wxString result;
14261 void *argp1 = 0 ;
14262 int res1 = 0 ;
14263 PyObject *swig_obj[1] ;
14264
14265 if (!args) SWIG_fail;
14266 swig_obj[0] = args;
14267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14268 if (!SWIG_IsOK(res1)) {
14269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_GetName" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14270 }
14271 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14272 {
14273 PyThreadState* __tstate = wxPyBeginAllowThreads();
14274 result = (arg1)->GetName();
14275 wxPyEndAllowThreads(__tstate);
14276 if (PyErr_Occurred()) SWIG_fail;
14277 }
14278 {
14279#if wxUSE_UNICODE
14280 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14281#else
14282 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14283#endif
14284 }
14285 return resultobj;
14286fail:
14287 return NULL;
d55e5bfc
RD
14288}
14289
14290
1bd55598
RD
14291SWIGINTERN PyObject *_wrap_ImageHandler_GetExtension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14292 PyObject *resultobj = 0;
14293 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14294 wxString result;
14295 void *argp1 = 0 ;
14296 int res1 = 0 ;
14297 PyObject *swig_obj[1] ;
14298
14299 if (!args) SWIG_fail;
14300 swig_obj[0] = args;
14301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14302 if (!SWIG_IsOK(res1)) {
14303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_GetExtension" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14304 }
14305 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14306 {
14307 PyThreadState* __tstate = wxPyBeginAllowThreads();
14308 result = (arg1)->GetExtension();
14309 wxPyEndAllowThreads(__tstate);
14310 if (PyErr_Occurred()) SWIG_fail;
14311 }
14312 {
14313#if wxUSE_UNICODE
14314 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14315#else
14316 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14317#endif
14318 }
14319 return resultobj;
14320fail:
14321 return NULL;
d55e5bfc
RD
14322}
14323
14324
1bd55598
RD
14325SWIGINTERN PyObject *_wrap_ImageHandler_GetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14326 PyObject *resultobj = 0;
14327 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14328 long result;
14329 void *argp1 = 0 ;
14330 int res1 = 0 ;
14331 PyObject *swig_obj[1] ;
14332
14333 if (!args) SWIG_fail;
14334 swig_obj[0] = args;
14335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14336 if (!SWIG_IsOK(res1)) {
14337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_GetType" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14338 }
14339 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14340 {
14341 PyThreadState* __tstate = wxPyBeginAllowThreads();
14342 result = (long)(arg1)->GetType();
14343 wxPyEndAllowThreads(__tstate);
14344 if (PyErr_Occurred()) SWIG_fail;
14345 }
14346 resultobj = SWIG_From_long(static_cast< long >(result));
14347 return resultobj;
14348fail:
14349 return NULL;
d55e5bfc
RD
14350}
14351
14352
1bd55598
RD
14353SWIGINTERN PyObject *_wrap_ImageHandler_GetMimeType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14354 PyObject *resultobj = 0;
14355 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14356 wxString result;
14357 void *argp1 = 0 ;
14358 int res1 = 0 ;
14359 PyObject *swig_obj[1] ;
14360
14361 if (!args) SWIG_fail;
14362 swig_obj[0] = args;
14363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14364 if (!SWIG_IsOK(res1)) {
14365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_GetMimeType" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14366 }
14367 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14368 {
14369 PyThreadState* __tstate = wxPyBeginAllowThreads();
14370 result = (arg1)->GetMimeType();
14371 wxPyEndAllowThreads(__tstate);
14372 if (PyErr_Occurred()) SWIG_fail;
14373 }
14374 {
14375#if wxUSE_UNICODE
14376 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14377#else
14378 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14379#endif
14380 }
14381 return resultobj;
14382fail:
14383 return NULL;
14384}
14385
14386
14387SWIGINTERN PyObject *_wrap_ImageHandler_CanRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14388 PyObject *resultobj = 0;
14389 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14390 wxString *arg2 = 0 ;
14391 bool result;
14392 void *argp1 = 0 ;
14393 int res1 = 0 ;
14394 bool temp2 = false ;
14395 PyObject * obj0 = 0 ;
14396 PyObject * obj1 = 0 ;
14397 char * kwnames[] = {
14398 (char *) "self",(char *) "name", NULL
14399 };
14400
14401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) SWIG_fail;
14402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14403 if (!SWIG_IsOK(res1)) {
14404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_CanRead" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14405 }
14406 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14407 {
14408 arg2 = wxString_in_helper(obj1);
14409 if (arg2 == NULL) SWIG_fail;
14410 temp2 = true;
14411 }
14412 {
14413 PyThreadState* __tstate = wxPyBeginAllowThreads();
14414 result = (bool)(arg1)->CanRead((wxString const &)*arg2);
14415 wxPyEndAllowThreads(__tstate);
14416 if (PyErr_Occurred()) SWIG_fail;
14417 }
14418 {
14419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14420 }
14421 {
14422 if (temp2)
14423 delete arg2;
14424 }
14425 return resultobj;
14426fail:
14427 {
14428 if (temp2)
14429 delete arg2;
14430 }
14431 return NULL;
d55e5bfc
RD
14432}
14433
14434
b02396e8
RD
14435SWIGINTERN PyObject *_wrap_ImageHandler_CanReadStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14436 PyObject *resultobj = 0;
14437 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14438 wxInputStream *arg2 = 0 ;
14439 bool result;
14440 void *argp1 = 0 ;
14441 int res1 = 0 ;
14442 wxPyInputStream *temp2 ;
14443 bool created2 ;
14444 PyObject * obj0 = 0 ;
14445 PyObject * obj1 = 0 ;
14446 char * kwnames[] = {
14447 (char *) "self",(char *) "stream", NULL
14448 };
14449
14450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanReadStream",kwnames,&obj0,&obj1)) SWIG_fail;
14451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14452 if (!SWIG_IsOK(res1)) {
14453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_CanReadStream" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14454 }
14455 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14456 {
14457 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
14458 arg2 = temp2->m_wxis;
14459 created2 = false;
14460 } else {
14461 PyErr_Clear(); // clear the failure of the wxPyConvert above
14462 arg2 = wxPyCBInputStream_create(obj1, false);
14463 if (arg2 == NULL) {
14464 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
14465 SWIG_fail;
14466 }
14467 created2 = true;
14468 }
14469 }
14470 {
14471 PyThreadState* __tstate = wxPyBeginAllowThreads();
14472 result = (bool)(arg1)->CanRead(*arg2);
14473 wxPyEndAllowThreads(__tstate);
14474 if (PyErr_Occurred()) SWIG_fail;
14475 }
14476 {
14477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14478 }
14479 {
14480 if (created2) delete arg2;
14481 }
14482 return resultobj;
14483fail:
14484 {
14485 if (created2) delete arg2;
14486 }
14487 return NULL;
14488}
14489
14490
1bd55598
RD
14491SWIGINTERN PyObject *_wrap_ImageHandler_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14492 PyObject *resultobj = 0;
14493 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14494 wxString *arg2 = 0 ;
14495 void *argp1 = 0 ;
14496 int res1 = 0 ;
14497 bool temp2 = false ;
14498 PyObject * obj0 = 0 ;
14499 PyObject * obj1 = 0 ;
14500 char * kwnames[] = {
14501 (char *) "self",(char *) "name", NULL
14502 };
14503
14504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) SWIG_fail;
14505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14506 if (!SWIG_IsOK(res1)) {
14507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_SetName" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14508 }
14509 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14510 {
14511 arg2 = wxString_in_helper(obj1);
14512 if (arg2 == NULL) SWIG_fail;
14513 temp2 = true;
14514 }
14515 {
14516 PyThreadState* __tstate = wxPyBeginAllowThreads();
14517 (arg1)->SetName((wxString const &)*arg2);
14518 wxPyEndAllowThreads(__tstate);
14519 if (PyErr_Occurred()) SWIG_fail;
14520 }
14521 resultobj = SWIG_Py_Void();
14522 {
14523 if (temp2)
14524 delete arg2;
14525 }
14526 return resultobj;
14527fail:
14528 {
14529 if (temp2)
14530 delete arg2;
14531 }
14532 return NULL;
d55e5bfc
RD
14533}
14534
14535
1bd55598
RD
14536SWIGINTERN PyObject *_wrap_ImageHandler_SetExtension(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14537 PyObject *resultobj = 0;
14538 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14539 wxString *arg2 = 0 ;
14540 void *argp1 = 0 ;
14541 int res1 = 0 ;
14542 bool temp2 = false ;
14543 PyObject * obj0 = 0 ;
14544 PyObject * obj1 = 0 ;
14545 char * kwnames[] = {
14546 (char *) "self",(char *) "extension", NULL
14547 };
14548
14549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) SWIG_fail;
14550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14551 if (!SWIG_IsOK(res1)) {
14552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_SetExtension" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14553 }
14554 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14555 {
14556 arg2 = wxString_in_helper(obj1);
14557 if (arg2 == NULL) SWIG_fail;
14558 temp2 = true;
14559 }
14560 {
14561 PyThreadState* __tstate = wxPyBeginAllowThreads();
14562 (arg1)->SetExtension((wxString const &)*arg2);
14563 wxPyEndAllowThreads(__tstate);
14564 if (PyErr_Occurred()) SWIG_fail;
14565 }
14566 resultobj = SWIG_Py_Void();
14567 {
14568 if (temp2)
14569 delete arg2;
14570 }
14571 return resultobj;
14572fail:
14573 {
14574 if (temp2)
14575 delete arg2;
14576 }
14577 return NULL;
14578}
14579
14580
14581SWIGINTERN PyObject *_wrap_ImageHandler_SetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14582 PyObject *resultobj = 0;
14583 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14584 long arg2 ;
14585 void *argp1 = 0 ;
14586 int res1 = 0 ;
14587 long val2 ;
14588 int ecode2 = 0 ;
14589 PyObject * obj0 = 0 ;
14590 PyObject * obj1 = 0 ;
14591 char * kwnames[] = {
14592 (char *) "self",(char *) "type", NULL
14593 };
14594
14595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) SWIG_fail;
14596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14597 if (!SWIG_IsOK(res1)) {
14598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_SetType" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14599 }
14600 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14601 ecode2 = SWIG_AsVal_long(obj1, &val2);
14602 if (!SWIG_IsOK(ecode2)) {
14603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageHandler_SetType" "', expected argument " "2"" of type '" "long""'");
14604 }
14605 arg2 = static_cast< long >(val2);
14606 {
14607 PyThreadState* __tstate = wxPyBeginAllowThreads();
14608 (arg1)->SetType(arg2);
14609 wxPyEndAllowThreads(__tstate);
14610 if (PyErr_Occurred()) SWIG_fail;
14611 }
14612 resultobj = SWIG_Py_Void();
14613 return resultobj;
14614fail:
14615 return NULL;
14616}
14617
14618
14619SWIGINTERN PyObject *_wrap_ImageHandler_SetMimeType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14620 PyObject *resultobj = 0;
14621 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14622 wxString *arg2 = 0 ;
14623 void *argp1 = 0 ;
14624 int res1 = 0 ;
14625 bool temp2 = false ;
14626 PyObject * obj0 = 0 ;
14627 PyObject * obj1 = 0 ;
14628 char * kwnames[] = {
14629 (char *) "self",(char *) "mimetype", NULL
14630 };
14631
14632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) SWIG_fail;
14633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14634 if (!SWIG_IsOK(res1)) {
14635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_SetMimeType" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14636 }
14637 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14638 {
14639 arg2 = wxString_in_helper(obj1);
14640 if (arg2 == NULL) SWIG_fail;
14641 temp2 = true;
14642 }
14643 {
14644 PyThreadState* __tstate = wxPyBeginAllowThreads();
14645 (arg1)->SetMimeType((wxString const &)*arg2);
14646 wxPyEndAllowThreads(__tstate);
14647 if (PyErr_Occurred()) SWIG_fail;
14648 }
14649 resultobj = SWIG_Py_Void();
14650 {
14651 if (temp2)
14652 delete arg2;
14653 }
14654 return resultobj;
14655fail:
14656 {
14657 if (temp2)
14658 delete arg2;
14659 }
14660 return NULL;
d55e5bfc
RD
14661}
14662
14663
1bd55598
RD
14664SWIGINTERN PyObject *ImageHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14665 PyObject *obj;
14666 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14667 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageHandler, SWIG_NewClientData(obj));
14668 return SWIG_Py_Void();
d55e5bfc
RD
14669}
14670
1bd55598
RD
14671SWIGINTERN PyObject *_wrap_new_PyImageHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14672 PyObject *resultobj = 0;
14673 wxPyImageHandler *result = 0 ;
14674
14675 if (!SWIG_Python_UnpackTuple(args,"new_PyImageHandler",0,0,0)) SWIG_fail;
14676 {
14677 PyThreadState* __tstate = wxPyBeginAllowThreads();
14678 result = (wxPyImageHandler *)new wxPyImageHandler();
14679 wxPyEndAllowThreads(__tstate);
14680 if (PyErr_Occurred()) SWIG_fail;
14681 }
14682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyImageHandler, SWIG_POINTER_NEW | 0 );
14683 return resultobj;
14684fail:
14685 return NULL;
14686}
14687
14688
14689SWIGINTERN PyObject *_wrap_PyImageHandler__SetSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14690 PyObject *resultobj = 0;
14691 wxPyImageHandler *arg1 = (wxPyImageHandler *) 0 ;
14692 PyObject *arg2 = (PyObject *) 0 ;
14693 void *argp1 = 0 ;
14694 int res1 = 0 ;
14695 PyObject * obj0 = 0 ;
14696 PyObject * obj1 = 0 ;
14697 char * kwnames[] = {
14698 (char *) "self",(char *) "self", NULL
14699 };
14700
14701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyImageHandler__SetSelf",kwnames,&obj0,&obj1)) SWIG_fail;
14702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyImageHandler, 0 | 0 );
14703 if (!SWIG_IsOK(res1)) {
14704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyImageHandler__SetSelf" "', expected argument " "1"" of type '" "wxPyImageHandler *""'");
14705 }
14706 arg1 = reinterpret_cast< wxPyImageHandler * >(argp1);
14707 arg2 = obj1;
14708 {
14709 PyThreadState* __tstate = wxPyBeginAllowThreads();
14710 (arg1)->_SetSelf(arg2);
14711 wxPyEndAllowThreads(__tstate);
14712 if (PyErr_Occurred()) SWIG_fail;
14713 }
14714 resultobj = SWIG_Py_Void();
14715 return resultobj;
14716fail:
14717 return NULL;
d55e5bfc
RD
14718}
14719
14720
1bd55598
RD
14721SWIGINTERN PyObject *PyImageHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14722 PyObject *obj;
14723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14724 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyImageHandler, SWIG_NewClientData(obj));
14725 return SWIG_Py_Void();
d55e5bfc
RD
14726}
14727
1bd55598
RD
14728SWIGINTERN PyObject *PyImageHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14729 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14730}
14731
1bd55598
RD
14732SWIGINTERN PyObject *_wrap_new_ImageHistogram(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14733 PyObject *resultobj = 0;
14734 wxImageHistogram *result = 0 ;
14735
14736 if (!SWIG_Python_UnpackTuple(args,"new_ImageHistogram",0,0,0)) SWIG_fail;
14737 {
14738 PyThreadState* __tstate = wxPyBeginAllowThreads();
14739 result = (wxImageHistogram *)new wxImageHistogram();
14740 wxPyEndAllowThreads(__tstate);
14741 if (PyErr_Occurred()) SWIG_fail;
14742 }
14743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_NEW | 0 );
14744 return resultobj;
14745fail:
14746 return NULL;
14747}
14748
14749
14750SWIGINTERN PyObject *_wrap_ImageHistogram_MakeKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14751 PyObject *resultobj = 0;
14752 byte arg1 ;
14753 byte arg2 ;
14754 byte arg3 ;
14755 unsigned long result;
14756 unsigned char val1 ;
14757 int ecode1 = 0 ;
14758 unsigned char val2 ;
14759 int ecode2 = 0 ;
14760 unsigned char val3 ;
14761 int ecode3 = 0 ;
14762 PyObject * obj0 = 0 ;
14763 PyObject * obj1 = 0 ;
14764 PyObject * obj2 = 0 ;
14765 char * kwnames[] = {
14766 (char *) "r",(char *) "g",(char *) "b", NULL
14767 };
14768
14769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14770 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
14771 if (!SWIG_IsOK(ecode1)) {
14772 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ImageHistogram_MakeKey" "', expected argument " "1"" of type '" "byte""'");
14773 }
14774 arg1 = static_cast< byte >(val1);
14775 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
14776 if (!SWIG_IsOK(ecode2)) {
14777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageHistogram_MakeKey" "', expected argument " "2"" of type '" "byte""'");
14778 }
14779 arg2 = static_cast< byte >(val2);
14780 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
14781 if (!SWIG_IsOK(ecode3)) {
14782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ImageHistogram_MakeKey" "', expected argument " "3"" of type '" "byte""'");
14783 }
14784 arg3 = static_cast< byte >(val3);
14785 {
14786 PyThreadState* __tstate = wxPyBeginAllowThreads();
14787 result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3);
14788 wxPyEndAllowThreads(__tstate);
14789 if (PyErr_Occurred()) SWIG_fail;
14790 }
14791 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
14792 return resultobj;
14793fail:
14794 return NULL;
14795}
14796
14797
14798SWIGINTERN PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14799 PyObject *resultobj = 0;
14800 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
14801 byte *arg2 = (byte *) 0 ;
14802 byte *arg3 = (byte *) 0 ;
14803 byte *arg4 = (byte *) 0 ;
14804 byte arg5 = (byte) 1 ;
14805 byte arg6 = (byte) 0 ;
14806 byte arg7 = (byte) 0 ;
14807 bool result;
14808 void *argp1 = 0 ;
14809 int res1 = 0 ;
14810 byte temp2 ;
14811 int res2 = SWIG_TMPOBJ ;
14812 byte temp3 ;
14813 int res3 = SWIG_TMPOBJ ;
14814 byte temp4 ;
14815 int res4 = SWIG_TMPOBJ ;
14816 unsigned char val5 ;
14817 int ecode5 = 0 ;
14818 unsigned char val6 ;
14819 int ecode6 = 0 ;
14820 unsigned char val7 ;
14821 int ecode7 = 0 ;
14822 PyObject * obj0 = 0 ;
14823 PyObject * obj1 = 0 ;
14824 PyObject * obj2 = 0 ;
14825 PyObject * obj3 = 0 ;
14826 char * kwnames[] = {
14827 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
14828 };
14829
14830 arg2 = &temp2;
14831 arg3 = &temp3;
14832 arg4 = &temp4;
14833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHistogram, 0 | 0 );
14835 if (!SWIG_IsOK(res1)) {
14836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHistogram_FindFirstUnusedColour" "', expected argument " "1"" of type '" "wxImageHistogram const *""'");
14837 }
14838 arg1 = reinterpret_cast< wxImageHistogram * >(argp1);
14839 if (obj1) {
14840 ecode5 = SWIG_AsVal_unsigned_SS_char(obj1, &val5);
14841 if (!SWIG_IsOK(ecode5)) {
14842 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageHistogram_FindFirstUnusedColour" "', expected argument " "5"" of type '" "byte""'");
14843 }
14844 arg5 = static_cast< byte >(val5);
14845 }
14846 if (obj2) {
14847 ecode6 = SWIG_AsVal_unsigned_SS_char(obj2, &val6);
14848 if (!SWIG_IsOK(ecode6)) {
14849 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageHistogram_FindFirstUnusedColour" "', expected argument " "6"" of type '" "byte""'");
14850 }
14851 arg6 = static_cast< byte >(val6);
14852 }
14853 if (obj3) {
14854 ecode7 = SWIG_AsVal_unsigned_SS_char(obj3, &val7);
14855 if (!SWIG_IsOK(ecode7)) {
14856 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageHistogram_FindFirstUnusedColour" "', expected argument " "7"" of type '" "byte""'");
14857 }
14858 arg7 = static_cast< byte >(val7);
14859 }
14860 {
14861 PyThreadState* __tstate = wxPyBeginAllowThreads();
14862 result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
14863 wxPyEndAllowThreads(__tstate);
14864 if (PyErr_Occurred()) SWIG_fail;
14865 }
14866 {
14867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14868 }
14869 if (SWIG_IsTmpObj(res2)) {
14870 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg2)));
14871 } else {
14872 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
14873 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags));
14874 }
14875 if (SWIG_IsTmpObj(res3)) {
14876 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
14877 } else {
14878 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
14879 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
14880 }
14881 if (SWIG_IsTmpObj(res4)) {
14882 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
14883 } else {
14884 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
14885 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
14886 }
14887 return resultobj;
14888fail:
14889 return NULL;
14890}
14891
14892
14893SWIGINTERN PyObject *_wrap_ImageHistogram_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14894 PyObject *resultobj = 0;
14895 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
14896 unsigned long arg2 ;
14897 unsigned long result;
14898 void *argp1 = 0 ;
14899 int res1 = 0 ;
14900 unsigned long val2 ;
14901 int ecode2 = 0 ;
14902 PyObject * obj0 = 0 ;
14903 PyObject * obj1 = 0 ;
14904 char * kwnames[] = {
14905 (char *) "self",(char *) "key", NULL
14906 };
14907
14908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHistogram_GetCount",kwnames,&obj0,&obj1)) SWIG_fail;
14909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHistogram, 0 | 0 );
14910 if (!SWIG_IsOK(res1)) {
14911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHistogram_GetCount" "', expected argument " "1"" of type '" "wxImageHistogram *""'");
14912 }
14913 arg1 = reinterpret_cast< wxImageHistogram * >(argp1);
14914 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
14915 if (!SWIG_IsOK(ecode2)) {
14916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageHistogram_GetCount" "', expected argument " "2"" of type '" "unsigned long""'");
14917 }
14918 arg2 = static_cast< unsigned long >(val2);
14919 {
14920 PyThreadState* __tstate = wxPyBeginAllowThreads();
14921 result = (unsigned long)wxImageHistogram_GetCount(arg1,arg2);
14922 wxPyEndAllowThreads(__tstate);
14923 if (PyErr_Occurred()) SWIG_fail;
14924 }
14925 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
14926 return resultobj;
14927fail:
14928 return NULL;
14929}
14930
14931
14932SWIGINTERN PyObject *_wrap_ImageHistogram_GetCountRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14933 PyObject *resultobj = 0;
14934 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
14935 byte arg2 ;
14936 byte arg3 ;
14937 byte arg4 ;
14938 unsigned long result;
14939 void *argp1 = 0 ;
14940 int res1 = 0 ;
14941 unsigned char val2 ;
14942 int ecode2 = 0 ;
14943 unsigned char val3 ;
14944 int ecode3 = 0 ;
14945 unsigned char val4 ;
14946 int ecode4 = 0 ;
14947 PyObject * obj0 = 0 ;
14948 PyObject * obj1 = 0 ;
14949 PyObject * obj2 = 0 ;
14950 PyObject * obj3 = 0 ;
14951 char * kwnames[] = {
14952 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
14953 };
14954
14955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ImageHistogram_GetCountRGB",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHistogram, 0 | 0 );
14957 if (!SWIG_IsOK(res1)) {
14958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHistogram_GetCountRGB" "', expected argument " "1"" of type '" "wxImageHistogram *""'");
14959 }
14960 arg1 = reinterpret_cast< wxImageHistogram * >(argp1);
14961 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
14962 if (!SWIG_IsOK(ecode2)) {
14963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageHistogram_GetCountRGB" "', expected argument " "2"" of type '" "byte""'");
14964 }
14965 arg2 = static_cast< byte >(val2);
14966 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
14967 if (!SWIG_IsOK(ecode3)) {
14968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ImageHistogram_GetCountRGB" "', expected argument " "3"" of type '" "byte""'");
14969 }
14970 arg3 = static_cast< byte >(val3);
14971 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
14972 if (!SWIG_IsOK(ecode4)) {
14973 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageHistogram_GetCountRGB" "', expected argument " "4"" of type '" "byte""'");
14974 }
14975 arg4 = static_cast< byte >(val4);
14976 {
14977 PyThreadState* __tstate = wxPyBeginAllowThreads();
14978 result = (unsigned long)wxImageHistogram_GetCountRGB(arg1,arg2,arg3,arg4);
14979 wxPyEndAllowThreads(__tstate);
14980 if (PyErr_Occurred()) SWIG_fail;
14981 }
14982 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
14983 return resultobj;
14984fail:
14985 return NULL;
14986}
14987
14988
14989SWIGINTERN PyObject *_wrap_ImageHistogram_GetCountColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14990 PyObject *resultobj = 0;
14991 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
14992 wxColour *arg2 = 0 ;
14993 unsigned long result;
14994 void *argp1 = 0 ;
14995 int res1 = 0 ;
14996 wxColour temp2 ;
14997 PyObject * obj0 = 0 ;
14998 PyObject * obj1 = 0 ;
14999 char * kwnames[] = {
15000 (char *) "self",(char *) "colour", NULL
15001 };
15002
15003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHistogram_GetCountColour",kwnames,&obj0,&obj1)) SWIG_fail;
15004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHistogram, 0 | 0 );
15005 if (!SWIG_IsOK(res1)) {
15006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHistogram_GetCountColour" "', expected argument " "1"" of type '" "wxImageHistogram *""'");
15007 }
15008 arg1 = reinterpret_cast< wxImageHistogram * >(argp1);
15009 {
15010 arg2 = &temp2;
15011 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15012 }
15013 {
15014 PyThreadState* __tstate = wxPyBeginAllowThreads();
15015 result = (unsigned long)wxImageHistogram_GetCountColour(arg1,(wxColour const &)*arg2);
15016 wxPyEndAllowThreads(__tstate);
15017 if (PyErr_Occurred()) SWIG_fail;
15018 }
15019 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
15020 return resultobj;
15021fail:
15022 return NULL;
15023}
15024
15025
15026SWIGINTERN PyObject *ImageHistogram_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15027 PyObject *obj;
15028 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15029 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageHistogram, SWIG_NewClientData(obj));
15030 return SWIG_Py_Void();
15031}
15032
15033SWIGINTERN PyObject *ImageHistogram_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15034 return SWIG_Python_InitShadowInstance(args);
15035}
15036
15037SWIGINTERN PyObject *_wrap_new_Image_RGBValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15038 PyObject *resultobj = 0;
15039 byte arg1 = (byte) 0 ;
15040 byte arg2 = (byte) 0 ;
15041 byte arg3 = (byte) 0 ;
15042 wxImage_RGBValue *result = 0 ;
15043 unsigned char val1 ;
15044 int ecode1 = 0 ;
15045 unsigned char val2 ;
15046 int ecode2 = 0 ;
15047 unsigned char val3 ;
15048 int ecode3 = 0 ;
15049 PyObject * obj0 = 0 ;
15050 PyObject * obj1 = 0 ;
15051 PyObject * obj2 = 0 ;
15052 char * kwnames[] = {
15053 (char *) "r",(char *) "g",(char *) "b", NULL
15054 };
15055
15056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Image_RGBValue",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15057 if (obj0) {
15058 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
15059 if (!SWIG_IsOK(ecode1)) {
15060 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Image_RGBValue" "', expected argument " "1"" of type '" "byte""'");
15061 }
15062 arg1 = static_cast< byte >(val1);
15063 }
15064 if (obj1) {
15065 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
15066 if (!SWIG_IsOK(ecode2)) {
15067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Image_RGBValue" "', expected argument " "2"" of type '" "byte""'");
15068 }
15069 arg2 = static_cast< byte >(val2);
15070 }
15071 if (obj2) {
15072 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
15073 if (!SWIG_IsOK(ecode3)) {
15074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Image_RGBValue" "', expected argument " "3"" of type '" "byte""'");
15075 }
15076 arg3 = static_cast< byte >(val3);
15077 }
15078 {
15079 PyThreadState* __tstate = wxPyBeginAllowThreads();
15080 result = (wxImage_RGBValue *)new wxImage_RGBValue(arg1,arg2,arg3);
15081 wxPyEndAllowThreads(__tstate);
15082 if (PyErr_Occurred()) SWIG_fail;
15083 }
15084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage_RGBValue, SWIG_POINTER_NEW | 0 );
15085 return resultobj;
15086fail:
15087 return NULL;
15088}
15089
15090
15091SWIGINTERN PyObject *_wrap_Image_RGBValue_red_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15092 PyObject *resultobj = 0;
15093 wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
15094 byte arg2 ;
15095 void *argp1 = 0 ;
15096 int res1 = 0 ;
15097 unsigned char val2 ;
15098 int ecode2 = 0 ;
15099 PyObject *swig_obj[2] ;
15100
15101 if (!SWIG_Python_UnpackTuple(args,"Image_RGBValue_red_set",2,2,swig_obj)) SWIG_fail;
15102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
15103 if (!SWIG_IsOK(res1)) {
15104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_red_set" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
15105 }
15106 arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
15107 ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
15108 if (!SWIG_IsOK(ecode2)) {
15109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_RGBValue_red_set" "', expected argument " "2"" of type '" "byte""'");
15110 }
15111 arg2 = static_cast< byte >(val2);
15112 if (arg1) (arg1)->red = arg2;
15113
15114 resultobj = SWIG_Py_Void();
15115 return resultobj;
15116fail:
15117 return NULL;
d55e5bfc
RD
15118}
15119
15120
1bd55598
RD
15121SWIGINTERN PyObject *_wrap_Image_RGBValue_red_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15122 PyObject *resultobj = 0;
15123 wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
15124 byte result;
15125 void *argp1 = 0 ;
15126 int res1 = 0 ;
15127 PyObject *swig_obj[1] ;
15128
15129 if (!args) SWIG_fail;
15130 swig_obj[0] = args;
15131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
15132 if (!SWIG_IsOK(res1)) {
15133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_red_get" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
15134 }
15135 arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
15136 result = (byte) ((arg1)->red);
15137 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
15138 return resultobj;
15139fail:
15140 return NULL;
15141}
15142
15143
15144SWIGINTERN PyObject *_wrap_Image_RGBValue_green_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15145 PyObject *resultobj = 0;
15146 wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
15147 byte arg2 ;
15148 void *argp1 = 0 ;
15149 int res1 = 0 ;
15150 unsigned char val2 ;
15151 int ecode2 = 0 ;
15152 PyObject *swig_obj[2] ;
15153
15154 if (!SWIG_Python_UnpackTuple(args,"Image_RGBValue_green_set",2,2,swig_obj)) SWIG_fail;
15155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
15156 if (!SWIG_IsOK(res1)) {
15157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_green_set" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
15158 }
15159 arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
15160 ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
15161 if (!SWIG_IsOK(ecode2)) {
15162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_RGBValue_green_set" "', expected argument " "2"" of type '" "byte""'");
15163 }
15164 arg2 = static_cast< byte >(val2);
15165 if (arg1) (arg1)->green = arg2;
15166
15167 resultobj = SWIG_Py_Void();
15168 return resultobj;
15169fail:
15170 return NULL;
d55e5bfc
RD
15171}
15172
15173
1bd55598
RD
15174SWIGINTERN PyObject *_wrap_Image_RGBValue_green_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15175 PyObject *resultobj = 0;
15176 wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
15177 byte result;
15178 void *argp1 = 0 ;
15179 int res1 = 0 ;
15180 PyObject *swig_obj[1] ;
15181
15182 if (!args) SWIG_fail;
15183 swig_obj[0] = args;
15184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
15185 if (!SWIG_IsOK(res1)) {
15186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_green_get" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
15187 }
15188 arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
15189 result = (byte) ((arg1)->green);
15190 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
15191 return resultobj;
15192fail:
15193 return NULL;
15194}
15195
15196
15197SWIGINTERN PyObject *_wrap_Image_RGBValue_blue_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15198 PyObject *resultobj = 0;
15199 wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
15200 byte arg2 ;
15201 void *argp1 = 0 ;
15202 int res1 = 0 ;
15203 unsigned char val2 ;
15204 int ecode2 = 0 ;
15205 PyObject *swig_obj[2] ;
15206
15207 if (!SWIG_Python_UnpackTuple(args,"Image_RGBValue_blue_set",2,2,swig_obj)) SWIG_fail;
15208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
15209 if (!SWIG_IsOK(res1)) {
15210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_blue_set" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
15211 }
15212 arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
15213 ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
15214 if (!SWIG_IsOK(ecode2)) {
15215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_RGBValue_blue_set" "', expected argument " "2"" of type '" "byte""'");
15216 }
15217 arg2 = static_cast< byte >(val2);
15218 if (arg1) (arg1)->blue = arg2;
15219
15220 resultobj = SWIG_Py_Void();
15221 return resultobj;
15222fail:
15223 return NULL;
8fb0e70a
RD
15224}
15225
15226
1bd55598
RD
15227SWIGINTERN PyObject *_wrap_Image_RGBValue_blue_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15228 PyObject *resultobj = 0;
15229 wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
15230 byte result;
15231 void *argp1 = 0 ;
15232 int res1 = 0 ;
15233 PyObject *swig_obj[1] ;
15234
15235 if (!args) SWIG_fail;
15236 swig_obj[0] = args;
15237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
15238 if (!SWIG_IsOK(res1)) {
15239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_blue_get" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
15240 }
15241 arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
15242 result = (byte) ((arg1)->blue);
15243 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
15244 return resultobj;
15245fail:
15246 return NULL;
15247}
15248
15249
15250SWIGINTERN PyObject *Image_RGBValue_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15251 PyObject *obj;
15252 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15253 SWIG_TypeNewClientData(SWIGTYPE_p_wxImage_RGBValue, SWIG_NewClientData(obj));
15254 return SWIG_Py_Void();
15255}
15256
15257SWIGINTERN PyObject *Image_RGBValue_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15258 return SWIG_Python_InitShadowInstance(args);
15259}
15260
15261SWIGINTERN PyObject *_wrap_new_Image_HSVValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15262 PyObject *resultobj = 0;
15263 double arg1 = (double) 0.0 ;
15264 double arg2 = (double) 0.0 ;
15265 double arg3 = (double) 0.0 ;
15266 wxImage_HSVValue *result = 0 ;
15267 double val1 ;
15268 int ecode1 = 0 ;
15269 double val2 ;
15270 int ecode2 = 0 ;
15271 double val3 ;
15272 int ecode3 = 0 ;
15273 PyObject * obj0 = 0 ;
15274 PyObject * obj1 = 0 ;
15275 PyObject * obj2 = 0 ;
15276 char * kwnames[] = {
15277 (char *) "h",(char *) "s",(char *) "v", NULL
15278 };
15279
15280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Image_HSVValue",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15281 if (obj0) {
15282 ecode1 = SWIG_AsVal_double(obj0, &val1);
15283 if (!SWIG_IsOK(ecode1)) {
15284 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Image_HSVValue" "', expected argument " "1"" of type '" "double""'");
15285 }
15286 arg1 = static_cast< double >(val1);
15287 }
15288 if (obj1) {
15289 ecode2 = SWIG_AsVal_double(obj1, &val2);
15290 if (!SWIG_IsOK(ecode2)) {
15291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Image_HSVValue" "', expected argument " "2"" of type '" "double""'");
15292 }
15293 arg2 = static_cast< double >(val2);
15294 }
15295 if (obj2) {
15296 ecode3 = SWIG_AsVal_double(obj2, &val3);
15297 if (!SWIG_IsOK(ecode3)) {
15298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Image_HSVValue" "', expected argument " "3"" of type '" "double""'");
15299 }
15300 arg3 = static_cast< double >(val3);
15301 }
15302 {
15303 PyThreadState* __tstate = wxPyBeginAllowThreads();
15304 result = (wxImage_HSVValue *)new wxImage_HSVValue(arg1,arg2,arg3);
15305 wxPyEndAllowThreads(__tstate);
15306 if (PyErr_Occurred()) SWIG_fail;
15307 }
15308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage_HSVValue, SWIG_POINTER_NEW | 0 );
15309 return resultobj;
15310fail:
15311 return NULL;
15312}
15313
15314
15315SWIGINTERN PyObject *_wrap_Image_HSVValue_hue_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15316 PyObject *resultobj = 0;
15317 wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
15318 double arg2 ;
15319 void *argp1 = 0 ;
15320 int res1 = 0 ;
15321 double val2 ;
15322 int ecode2 = 0 ;
15323 PyObject *swig_obj[2] ;
15324
15325 if (!SWIG_Python_UnpackTuple(args,"Image_HSVValue_hue_set",2,2,swig_obj)) SWIG_fail;
15326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
15327 if (!SWIG_IsOK(res1)) {
15328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_hue_set" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
15329 }
15330 arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
15331 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15332 if (!SWIG_IsOK(ecode2)) {
15333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_HSVValue_hue_set" "', expected argument " "2"" of type '" "double""'");
15334 }
15335 arg2 = static_cast< double >(val2);
15336 if (arg1) (arg1)->hue = arg2;
15337
15338 resultobj = SWIG_Py_Void();
15339 return resultobj;
15340fail:
15341 return NULL;
d55e5bfc
RD
15342}
15343
15344
1bd55598
RD
15345SWIGINTERN PyObject *_wrap_Image_HSVValue_hue_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15346 PyObject *resultobj = 0;
15347 wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
15348 double result;
15349 void *argp1 = 0 ;
15350 int res1 = 0 ;
15351 PyObject *swig_obj[1] ;
15352
15353 if (!args) SWIG_fail;
15354 swig_obj[0] = args;
15355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
15356 if (!SWIG_IsOK(res1)) {
15357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_hue_get" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
15358 }
15359 arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
15360 result = (double) ((arg1)->hue);
15361 resultobj = SWIG_From_double(static_cast< double >(result));
15362 return resultobj;
15363fail:
15364 return NULL;
15365}
15366
15367
15368SWIGINTERN PyObject *_wrap_Image_HSVValue_saturation_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15369 PyObject *resultobj = 0;
15370 wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
15371 double arg2 ;
15372 void *argp1 = 0 ;
15373 int res1 = 0 ;
15374 double val2 ;
15375 int ecode2 = 0 ;
15376 PyObject *swig_obj[2] ;
15377
15378 if (!SWIG_Python_UnpackTuple(args,"Image_HSVValue_saturation_set",2,2,swig_obj)) SWIG_fail;
15379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
15380 if (!SWIG_IsOK(res1)) {
15381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_saturation_set" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
15382 }
15383 arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
15384 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15385 if (!SWIG_IsOK(ecode2)) {
15386 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_HSVValue_saturation_set" "', expected argument " "2"" of type '" "double""'");
15387 }
15388 arg2 = static_cast< double >(val2);
15389 if (arg1) (arg1)->saturation = arg2;
15390
15391 resultobj = SWIG_Py_Void();
15392 return resultobj;
15393fail:
15394 return NULL;
d55e5bfc
RD
15395}
15396
15397
1bd55598
RD
15398SWIGINTERN PyObject *_wrap_Image_HSVValue_saturation_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15399 PyObject *resultobj = 0;
15400 wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
15401 double result;
15402 void *argp1 = 0 ;
15403 int res1 = 0 ;
15404 PyObject *swig_obj[1] ;
15405
15406 if (!args) SWIG_fail;
15407 swig_obj[0] = args;
15408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
15409 if (!SWIG_IsOK(res1)) {
15410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_saturation_get" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
15411 }
15412 arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
15413 result = (double) ((arg1)->saturation);
15414 resultobj = SWIG_From_double(static_cast< double >(result));
15415 return resultobj;
15416fail:
15417 return NULL;
15418}
15419
15420
15421SWIGINTERN PyObject *_wrap_Image_HSVValue_value_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15422 PyObject *resultobj = 0;
15423 wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
15424 double arg2 ;
15425 void *argp1 = 0 ;
15426 int res1 = 0 ;
15427 double val2 ;
15428 int ecode2 = 0 ;
15429 PyObject *swig_obj[2] ;
15430
15431 if (!SWIG_Python_UnpackTuple(args,"Image_HSVValue_value_set",2,2,swig_obj)) SWIG_fail;
15432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
15433 if (!SWIG_IsOK(res1)) {
15434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_value_set" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
15435 }
15436 arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
15437 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15438 if (!SWIG_IsOK(ecode2)) {
15439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_HSVValue_value_set" "', expected argument " "2"" of type '" "double""'");
15440 }
15441 arg2 = static_cast< double >(val2);
15442 if (arg1) (arg1)->value = arg2;
15443
15444 resultobj = SWIG_Py_Void();
15445 return resultobj;
15446fail:
15447 return NULL;
d55e5bfc
RD
15448}
15449
15450
1bd55598
RD
15451SWIGINTERN PyObject *_wrap_Image_HSVValue_value_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15452 PyObject *resultobj = 0;
15453 wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
15454 double result;
15455 void *argp1 = 0 ;
15456 int res1 = 0 ;
15457 PyObject *swig_obj[1] ;
15458
15459 if (!args) SWIG_fail;
15460 swig_obj[0] = args;
15461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
15462 if (!SWIG_IsOK(res1)) {
15463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_value_get" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
15464 }
15465 arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
15466 result = (double) ((arg1)->value);
15467 resultobj = SWIG_From_double(static_cast< double >(result));
15468 return resultobj;
15469fail:
15470 return NULL;
15471}
15472
15473
15474SWIGINTERN PyObject *Image_HSVValue_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15475 PyObject *obj;
15476 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15477 SWIG_TypeNewClientData(SWIGTYPE_p_wxImage_HSVValue, SWIG_NewClientData(obj));
15478 return SWIG_Py_Void();
15479}
15480
15481SWIGINTERN PyObject *Image_HSVValue_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15482 return SWIG_Python_InitShadowInstance(args);
15483}
15484
15485SWIGINTERN PyObject *_wrap_new_Image(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15486 PyObject *resultobj = 0;
15487 wxString *arg1 = 0 ;
15488 long arg2 = (long) wxBITMAP_TYPE_ANY ;
15489 int arg3 = (int) -1 ;
15490 wxImage *result = 0 ;
15491 bool temp1 = false ;
15492 long val2 ;
15493 int ecode2 = 0 ;
15494 int val3 ;
15495 int ecode3 = 0 ;
15496 PyObject * obj0 = 0 ;
15497 PyObject * obj1 = 0 ;
15498 PyObject * obj2 = 0 ;
15499 char * kwnames[] = {
15500 (char *) "name",(char *) "type",(char *) "index", NULL
15501 };
15502
15503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15504 {
15505 arg1 = wxString_in_helper(obj0);
15506 if (arg1 == NULL) SWIG_fail;
15507 temp1 = true;
15508 }
15509 if (obj1) {
15510 ecode2 = SWIG_AsVal_long(obj1, &val2);
15511 if (!SWIG_IsOK(ecode2)) {
15512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Image" "', expected argument " "2"" of type '" "long""'");
15513 }
15514 arg2 = static_cast< long >(val2);
15515 }
15516 if (obj2) {
15517 ecode3 = SWIG_AsVal_int(obj2, &val3);
15518 if (!SWIG_IsOK(ecode3)) {
15519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Image" "', expected argument " "3"" of type '" "int""'");
15520 }
15521 arg3 = static_cast< int >(val3);
15522 }
15523 {
15524 PyThreadState* __tstate = wxPyBeginAllowThreads();
15525 result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3);
15526 wxPyEndAllowThreads(__tstate);
15527 if (PyErr_Occurred()) SWIG_fail;
15528 }
15529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_NEW | 0 );
15530 {
15531 if (temp1)
15532 delete arg1;
15533 }
15534 return resultobj;
15535fail:
15536 {
15537 if (temp1)
15538 delete arg1;
15539 }
15540 return NULL;
d55e5bfc
RD
15541}
15542
15543
1bd55598
RD
15544SWIGINTERN PyObject *_wrap_delete_Image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15545 PyObject *resultobj = 0;
15546 wxImage *arg1 = (wxImage *) 0 ;
15547 void *argp1 = 0 ;
15548 int res1 = 0 ;
15549 PyObject *swig_obj[1] ;
15550
15551 if (!args) SWIG_fail;
15552 swig_obj[0] = args;
15553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, SWIG_POINTER_DISOWN | 0 );
15554 if (!SWIG_IsOK(res1)) {
15555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Image" "', expected argument " "1"" of type '" "wxImage *""'");
15556 }
15557 arg1 = reinterpret_cast< wxImage * >(argp1);
15558 {
15559 PyThreadState* __tstate = wxPyBeginAllowThreads();
15560 delete arg1;
d55e5bfc 15561
1bd55598
RD
15562 wxPyEndAllowThreads(__tstate);
15563 if (PyErr_Occurred()) SWIG_fail;
15564 }
15565 resultobj = SWIG_Py_Void();
15566 return resultobj;
15567fail:
15568 return NULL;
15569}
15570
15571
15572SWIGINTERN PyObject *_wrap_new_ImageFromMime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15573 PyObject *resultobj = 0;
15574 wxString *arg1 = 0 ;
15575 wxString *arg2 = 0 ;
15576 int arg3 = (int) -1 ;
15577 wxImage *result = 0 ;
15578 bool temp1 = false ;
15579 bool temp2 = false ;
15580 int val3 ;
15581 int ecode3 = 0 ;
15582 PyObject * obj0 = 0 ;
15583 PyObject * obj1 = 0 ;
15584 PyObject * obj2 = 0 ;
15585 char * kwnames[] = {
15586 (char *) "name",(char *) "mimetype",(char *) "index", NULL
15587 };
15588
15589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15590 {
15591 arg1 = wxString_in_helper(obj0);
15592 if (arg1 == NULL) SWIG_fail;
15593 temp1 = true;
15594 }
15595 {
15596 arg2 = wxString_in_helper(obj1);
15597 if (arg2 == NULL) SWIG_fail;
15598 temp2 = true;
15599 }
15600 if (obj2) {
15601 ecode3 = SWIG_AsVal_int(obj2, &val3);
15602 if (!SWIG_IsOK(ecode3)) {
15603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageFromMime" "', expected argument " "3"" of type '" "int""'");
15604 }
15605 arg3 = static_cast< int >(val3);
15606 }
15607 {
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
15609 result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3);
15610 wxPyEndAllowThreads(__tstate);
15611 if (PyErr_Occurred()) SWIG_fail;
15612 }
15613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
15614 {
15615 if (temp1)
15616 delete arg1;
15617 }
15618 {
15619 if (temp2)
15620 delete arg2;
15621 }
15622 return resultobj;
15623fail:
15624 {
15625 if (temp1)
15626 delete arg1;
15627 }
15628 {
15629 if (temp2)
15630 delete arg2;
15631 }
15632 return NULL;
15633}
15634
15635
15636SWIGINTERN PyObject *_wrap_new_ImageFromStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15637 PyObject *resultobj = 0;
15638 wxInputStream *arg1 = 0 ;
15639 long arg2 = (long) wxBITMAP_TYPE_ANY ;
15640 int arg3 = (int) -1 ;
15641 wxImage *result = 0 ;
15642 wxPyInputStream *temp1 ;
15643 bool created1 ;
15644 long val2 ;
15645 int ecode2 = 0 ;
15646 int val3 ;
15647 int ecode3 = 0 ;
15648 PyObject * obj0 = 0 ;
15649 PyObject * obj1 = 0 ;
15650 PyObject * obj2 = 0 ;
15651 char * kwnames[] = {
15652 (char *) "stream",(char *) "type",(char *) "index", NULL
15653 };
15654
15655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15656 {
15657 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
15658 arg1 = temp1->m_wxis;
15659 created1 = false;
15660 } else {
15661 PyErr_Clear(); // clear the failure of the wxPyConvert above
15662 arg1 = wxPyCBInputStream_create(obj0, false);
15663 if (arg1 == NULL) {
15664 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
15665 SWIG_fail;
15666 }
15667 created1 = true;
d55e5bfc 15668 }
1bd55598
RD
15669 }
15670 if (obj1) {
15671 ecode2 = SWIG_AsVal_long(obj1, &val2);
15672 if (!SWIG_IsOK(ecode2)) {
15673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageFromStream" "', expected argument " "2"" of type '" "long""'");
15674 }
15675 arg2 = static_cast< long >(val2);
15676 }
15677 if (obj2) {
15678 ecode3 = SWIG_AsVal_int(obj2, &val3);
15679 if (!SWIG_IsOK(ecode3)) {
15680 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageFromStream" "', expected argument " "3"" of type '" "int""'");
15681 }
15682 arg3 = static_cast< int >(val3);
15683 }
15684 {
15685 PyThreadState* __tstate = wxPyBeginAllowThreads();
15686 result = (wxImage *)new wxImage(*arg1,arg2,arg3);
15687 wxPyEndAllowThreads(__tstate);
15688 if (PyErr_Occurred()) SWIG_fail;
15689 }
15690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
15691 {
15692 if (created1) delete arg1;
15693 }
15694 return resultobj;
15695fail:
15696 {
15697 if (created1) delete arg1;
15698 }
15699 return NULL;
15700}
15701
15702
15703SWIGINTERN PyObject *_wrap_new_ImageFromStreamMime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15704 PyObject *resultobj = 0;
15705 wxInputStream *arg1 = 0 ;
15706 wxString *arg2 = 0 ;
15707 int arg3 = (int) -1 ;
15708 wxImage *result = 0 ;
15709 wxPyInputStream *temp1 ;
15710 bool created1 ;
15711 bool temp2 = false ;
15712 int val3 ;
15713 int ecode3 = 0 ;
15714 PyObject * obj0 = 0 ;
15715 PyObject * obj1 = 0 ;
15716 PyObject * obj2 = 0 ;
15717 char * kwnames[] = {
15718 (char *) "stream",(char *) "mimetype",(char *) "index", NULL
15719 };
15720
15721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15722 {
15723 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
15724 arg1 = temp1->m_wxis;
15725 created1 = false;
15726 } else {
15727 PyErr_Clear(); // clear the failure of the wxPyConvert above
15728 arg1 = wxPyCBInputStream_create(obj0, false);
15729 if (arg1 == NULL) {
15730 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
15731 SWIG_fail;
15732 }
15733 created1 = true;
d55e5bfc 15734 }
1bd55598
RD
15735 }
15736 {
15737 arg2 = wxString_in_helper(obj1);
15738 if (arg2 == NULL) SWIG_fail;
15739 temp2 = true;
15740 }
15741 if (obj2) {
15742 ecode3 = SWIG_AsVal_int(obj2, &val3);
15743 if (!SWIG_IsOK(ecode3)) {
15744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageFromStreamMime" "', expected argument " "3"" of type '" "int""'");
15745 }
15746 arg3 = static_cast< int >(val3);
15747 }
15748 {
15749 PyThreadState* __tstate = wxPyBeginAllowThreads();
15750 result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3);
15751 wxPyEndAllowThreads(__tstate);
15752 if (PyErr_Occurred()) SWIG_fail;
15753 }
15754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
15755 {
15756 if (created1) delete arg1;
15757 }
15758 {
15759 if (temp2)
15760 delete arg2;
15761 }
15762 return resultobj;
15763fail:
15764 {
15765 if (created1) delete arg1;
15766 }
15767 {
15768 if (temp2)
15769 delete arg2;
15770 }
15771 return NULL;
15772}
15773
15774
15775SWIGINTERN PyObject *_wrap_new_EmptyImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15776 PyObject *resultobj = 0;
15777 int arg1 = (int) 0 ;
15778 int arg2 = (int) 0 ;
15779 bool arg3 = (bool) true ;
15780 wxImage *result = 0 ;
15781 int val1 ;
15782 int ecode1 = 0 ;
15783 int val2 ;
15784 int ecode2 = 0 ;
15785 bool val3 ;
15786 int ecode3 = 0 ;
15787 PyObject * obj0 = 0 ;
15788 PyObject * obj1 = 0 ;
15789 PyObject * obj2 = 0 ;
15790 char * kwnames[] = {
15791 (char *) "width",(char *) "height",(char *) "clear", NULL
15792 };
15793
15794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15795 if (obj0) {
15796 ecode1 = SWIG_AsVal_int(obj0, &val1);
15797 if (!SWIG_IsOK(ecode1)) {
15798 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyImage" "', expected argument " "1"" of type '" "int""'");
15799 }
15800 arg1 = static_cast< int >(val1);
15801 }
15802 if (obj1) {
15803 ecode2 = SWIG_AsVal_int(obj1, &val2);
15804 if (!SWIG_IsOK(ecode2)) {
15805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyImage" "', expected argument " "2"" of type '" "int""'");
15806 }
15807 arg2 = static_cast< int >(val2);
15808 }
15809 if (obj2) {
15810 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15811 if (!SWIG_IsOK(ecode3)) {
15812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyImage" "', expected argument " "3"" of type '" "bool""'");
15813 }
15814 arg3 = static_cast< bool >(val3);
15815 }
15816 {
15817 PyThreadState* __tstate = wxPyBeginAllowThreads();
15818 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
15819 wxPyEndAllowThreads(__tstate);
15820 if (PyErr_Occurred()) SWIG_fail;
15821 }
15822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
15823 return resultobj;
15824fail:
15825 return NULL;
15826}
15827
15828
15829SWIGINTERN PyObject *_wrap_new_ImageFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15830 PyObject *resultobj = 0;
15831 wxBitmap *arg1 = 0 ;
15832 wxImage *result = 0 ;
15833 void *argp1 = 0 ;
15834 int res1 = 0 ;
15835 PyObject * obj0 = 0 ;
15836 char * kwnames[] = {
15837 (char *) "bitmap", NULL
15838 };
15839
15840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) SWIG_fail;
15841 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
15842 if (!SWIG_IsOK(res1)) {
15843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ImageFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
15844 }
15845 if (!argp1) {
15846 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ImageFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
15847 }
15848 arg1 = reinterpret_cast< wxBitmap * >(argp1);
15849 {
15850 if (!wxPyCheckForApp()) SWIG_fail;
15851 PyThreadState* __tstate = wxPyBeginAllowThreads();
15852 result = (wxImage *)new_wxImage((wxBitmap const &)*arg1);
15853 wxPyEndAllowThreads(__tstate);
15854 if (PyErr_Occurred()) SWIG_fail;
15855 }
15856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
15857 return resultobj;
15858fail:
15859 return NULL;
15860}
15861
15862
15863SWIGINTERN PyObject *_wrap_new_ImageFromData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15864 PyObject *resultobj = 0;
15865 int arg1 ;
15866 int arg2 ;
15867 buffer arg3 ;
15868 int arg4 ;
15869 wxImage *result = 0 ;
15870 int val1 ;
15871 int ecode1 = 0 ;
15872 int val2 ;
15873 int ecode2 = 0 ;
8c9c423b 15874 Py_ssize_t temp3 ;
1bd55598
RD
15875 PyObject * obj0 = 0 ;
15876 PyObject * obj1 = 0 ;
15877 PyObject * obj2 = 0 ;
15878 char * kwnames[] = {
15879 (char *) "width",(char *) "height",(char *) "data", NULL
15880 };
15881
15882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15883 ecode1 = SWIG_AsVal_int(obj0, &val1);
15884 if (!SWIG_IsOK(ecode1)) {
15885 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageFromData" "', expected argument " "1"" of type '" "int""'");
15886 }
15887 arg1 = static_cast< int >(val1);
15888 ecode2 = SWIG_AsVal_int(obj1, &val2);
15889 if (!SWIG_IsOK(ecode2)) {
15890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageFromData" "', expected argument " "2"" of type '" "int""'");
15891 }
15892 arg2 = static_cast< int >(val2);
15893 {
8c9c423b
RD
15894 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
15895 arg4 = (int)temp3;
1bd55598
RD
15896 }
15897 {
15898 PyThreadState* __tstate = wxPyBeginAllowThreads();
15899 result = (wxImage *)new_wxImage(arg1,arg2,arg3,arg4);
15900 wxPyEndAllowThreads(__tstate);
15901 if (PyErr_Occurred()) SWIG_fail;
15902 }
15903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
15904 return resultobj;
15905fail:
15906 return NULL;
15907}
15908
15909
15910SWIGINTERN PyObject *_wrap_new_ImageFromDataWithAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15911 PyObject *resultobj = 0;
15912 int arg1 ;
15913 int arg2 ;
15914 buffer arg3 ;
15915 int arg4 ;
15916 buffer arg5 ;
15917 int arg6 ;
15918 wxImage *result = 0 ;
15919 int val1 ;
15920 int ecode1 = 0 ;
15921 int val2 ;
15922 int ecode2 = 0 ;
8c9c423b
RD
15923 Py_ssize_t temp3 ;
15924 Py_ssize_t temp5 ;
1bd55598
RD
15925 PyObject * obj0 = 0 ;
15926 PyObject * obj1 = 0 ;
15927 PyObject * obj2 = 0 ;
15928 PyObject * obj3 = 0 ;
15929 char * kwnames[] = {
15930 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
15931 };
15932
15933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_ImageFromDataWithAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15934 ecode1 = SWIG_AsVal_int(obj0, &val1);
15935 if (!SWIG_IsOK(ecode1)) {
15936 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageFromDataWithAlpha" "', expected argument " "1"" of type '" "int""'");
15937 }
15938 arg1 = static_cast< int >(val1);
15939 ecode2 = SWIG_AsVal_int(obj1, &val2);
15940 if (!SWIG_IsOK(ecode2)) {
15941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageFromDataWithAlpha" "', expected argument " "2"" of type '" "int""'");
15942 }
15943 arg2 = static_cast< int >(val2);
15944 {
8c9c423b
RD
15945 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
15946 arg4 = (int)temp3;
1bd55598
RD
15947 }
15948 {
fc46b7f3 15949 if (obj3 != Py_None) {
8c9c423b
RD
15950 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
15951 arg6 = (int)temp5;
fc46b7f3 15952 }
1bd55598
RD
15953 }
15954 {
15955 PyThreadState* __tstate = wxPyBeginAllowThreads();
15956 result = (wxImage *)new_wxImage(arg1,arg2,arg3,arg4,arg5,arg6);
15957 wxPyEndAllowThreads(__tstate);
15958 if (PyErr_Occurred()) SWIG_fail;
15959 }
15960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
15961 return resultobj;
15962fail:
15963 return NULL;
15964}
15965
15966
15967SWIGINTERN PyObject *_wrap_Image_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15968 PyObject *resultobj = 0;
15969 wxImage *arg1 = (wxImage *) 0 ;
15970 int arg2 ;
15971 int arg3 ;
15972 bool arg4 = (bool) true ;
15973 void *argp1 = 0 ;
15974 int res1 = 0 ;
15975 int val2 ;
15976 int ecode2 = 0 ;
15977 int val3 ;
15978 int ecode3 = 0 ;
15979 bool val4 ;
15980 int ecode4 = 0 ;
15981 PyObject * obj0 = 0 ;
15982 PyObject * obj1 = 0 ;
15983 PyObject * obj2 = 0 ;
15984 PyObject * obj3 = 0 ;
15985 char * kwnames[] = {
15986 (char *) "self",(char *) "width",(char *) "height",(char *) "clear", NULL
15987 };
15988
15989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_Create",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
15991 if (!SWIG_IsOK(res1)) {
15992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Create" "', expected argument " "1"" of type '" "wxImage *""'");
15993 }
15994 arg1 = reinterpret_cast< wxImage * >(argp1);
15995 ecode2 = SWIG_AsVal_int(obj1, &val2);
15996 if (!SWIG_IsOK(ecode2)) {
15997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Create" "', expected argument " "2"" of type '" "int""'");
15998 }
15999 arg2 = static_cast< int >(val2);
16000 ecode3 = SWIG_AsVal_int(obj2, &val3);
16001 if (!SWIG_IsOK(ecode3)) {
16002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_Create" "', expected argument " "3"" of type '" "int""'");
16003 }
16004 arg3 = static_cast< int >(val3);
16005 if (obj3) {
16006 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16007 if (!SWIG_IsOK(ecode4)) {
16008 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Create" "', expected argument " "4"" of type '" "bool""'");
16009 }
16010 arg4 = static_cast< bool >(val4);
16011 }
16012 {
16013 PyThreadState* __tstate = wxPyBeginAllowThreads();
16014 (arg1)->Create(arg2,arg3,arg4);
16015 wxPyEndAllowThreads(__tstate);
16016 if (PyErr_Occurred()) SWIG_fail;
16017 }
16018 resultobj = SWIG_Py_Void();
16019 return resultobj;
16020fail:
16021 return NULL;
d55e5bfc
RD
16022}
16023
16024
1bd55598
RD
16025SWIGINTERN PyObject *_wrap_Image_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16026 PyObject *resultobj = 0;
16027 wxImage *arg1 = (wxImage *) 0 ;
16028 void *argp1 = 0 ;
16029 int res1 = 0 ;
16030 PyObject *swig_obj[1] ;
16031
16032 if (!args) SWIG_fail;
16033 swig_obj[0] = args;
16034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16035 if (!SWIG_IsOK(res1)) {
16036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Destroy" "', expected argument " "1"" of type '" "wxImage *""'");
16037 }
16038 arg1 = reinterpret_cast< wxImage * >(argp1);
16039 {
16040 PyThreadState* __tstate = wxPyBeginAllowThreads();
16041 (arg1)->Destroy();
16042 wxPyEndAllowThreads(__tstate);
16043 if (PyErr_Occurred()) SWIG_fail;
16044 }
16045 resultobj = SWIG_Py_Void();
16046 return resultobj;
16047fail:
16048 return NULL;
16049}
16050
16051
16052SWIGINTERN PyObject *_wrap_Image_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16053 PyObject *resultobj = 0;
16054 wxImage *arg1 = (wxImage *) 0 ;
16055 int arg2 ;
16056 int arg3 ;
f5263701 16057 int arg4 = (int) wxIMAGE_QUALITY_NORMAL ;
1bd55598
RD
16058 SwigValueWrapper<wxImage > result;
16059 void *argp1 = 0 ;
16060 int res1 = 0 ;
16061 int val2 ;
16062 int ecode2 = 0 ;
16063 int val3 ;
16064 int ecode3 = 0 ;
f5263701
RD
16065 int val4 ;
16066 int ecode4 = 0 ;
1bd55598
RD
16067 PyObject * obj0 = 0 ;
16068 PyObject * obj1 = 0 ;
16069 PyObject * obj2 = 0 ;
f5263701 16070 PyObject * obj3 = 0 ;
1bd55598 16071 char * kwnames[] = {
f5263701 16072 (char *) "self",(char *) "width",(char *) "height",(char *) "quality", NULL
1bd55598
RD
16073 };
16074
f5263701 16075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_Scale",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
16076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16077 if (!SWIG_IsOK(res1)) {
16078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Scale" "', expected argument " "1"" of type '" "wxImage *""'");
16079 }
16080 arg1 = reinterpret_cast< wxImage * >(argp1);
16081 ecode2 = SWIG_AsVal_int(obj1, &val2);
16082 if (!SWIG_IsOK(ecode2)) {
16083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Scale" "', expected argument " "2"" of type '" "int""'");
16084 }
16085 arg2 = static_cast< int >(val2);
16086 ecode3 = SWIG_AsVal_int(obj2, &val3);
16087 if (!SWIG_IsOK(ecode3)) {
16088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_Scale" "', expected argument " "3"" of type '" "int""'");
16089 }
16090 arg3 = static_cast< int >(val3);
f5263701
RD
16091 if (obj3) {
16092 ecode4 = SWIG_AsVal_int(obj3, &val4);
16093 if (!SWIG_IsOK(ecode4)) {
16094 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Scale" "', expected argument " "4"" of type '" "int""'");
16095 }
16096 arg4 = static_cast< int >(val4);
16097 }
1bd55598
RD
16098 {
16099 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701
RD
16100 result = (arg1)->Scale(arg2,arg3,arg4);
16101 wxPyEndAllowThreads(__tstate);
16102 if (PyErr_Occurred()) SWIG_fail;
16103 }
16104 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
16105 return resultobj;
16106fail:
16107 return NULL;
16108}
16109
16110
16111SWIGINTERN PyObject *_wrap_Image_ResampleBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16112 PyObject *resultobj = 0;
16113 wxImage *arg1 = (wxImage *) 0 ;
16114 int arg2 ;
16115 int arg3 ;
16116 SwigValueWrapper<wxImage > result;
16117 void *argp1 = 0 ;
16118 int res1 = 0 ;
16119 int val2 ;
16120 int ecode2 = 0 ;
16121 int val3 ;
16122 int ecode3 = 0 ;
16123 PyObject * obj0 = 0 ;
16124 PyObject * obj1 = 0 ;
16125 PyObject * obj2 = 0 ;
16126 char * kwnames[] = {
16127 (char *) "self",(char *) "width",(char *) "height", NULL
16128 };
16129
16130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ResampleBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16132 if (!SWIG_IsOK(res1)) {
16133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ResampleBox" "', expected argument " "1"" of type '" "wxImage const *""'");
16134 }
16135 arg1 = reinterpret_cast< wxImage * >(argp1);
16136 ecode2 = SWIG_AsVal_int(obj1, &val2);
16137 if (!SWIG_IsOK(ecode2)) {
16138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ResampleBox" "', expected argument " "2"" of type '" "int""'");
16139 }
16140 arg2 = static_cast< int >(val2);
16141 ecode3 = SWIG_AsVal_int(obj2, &val3);
16142 if (!SWIG_IsOK(ecode3)) {
16143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ResampleBox" "', expected argument " "3"" of type '" "int""'");
16144 }
16145 arg3 = static_cast< int >(val3);
16146 {
16147 PyThreadState* __tstate = wxPyBeginAllowThreads();
16148 result = ((wxImage const *)arg1)->ResampleBox(arg2,arg3);
16149 wxPyEndAllowThreads(__tstate);
16150 if (PyErr_Occurred()) SWIG_fail;
16151 }
16152 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
16153 return resultobj;
16154fail:
16155 return NULL;
16156}
16157
16158
16159SWIGINTERN PyObject *_wrap_Image_ResampleBicubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16160 PyObject *resultobj = 0;
16161 wxImage *arg1 = (wxImage *) 0 ;
16162 int arg2 ;
16163 int arg3 ;
16164 SwigValueWrapper<wxImage > result;
16165 void *argp1 = 0 ;
16166 int res1 = 0 ;
16167 int val2 ;
16168 int ecode2 = 0 ;
16169 int val3 ;
16170 int ecode3 = 0 ;
16171 PyObject * obj0 = 0 ;
16172 PyObject * obj1 = 0 ;
16173 PyObject * obj2 = 0 ;
16174 char * kwnames[] = {
16175 (char *) "self",(char *) "width",(char *) "height", NULL
16176 };
16177
16178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ResampleBicubic",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16180 if (!SWIG_IsOK(res1)) {
16181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ResampleBicubic" "', expected argument " "1"" of type '" "wxImage const *""'");
16182 }
16183 arg1 = reinterpret_cast< wxImage * >(argp1);
16184 ecode2 = SWIG_AsVal_int(obj1, &val2);
16185 if (!SWIG_IsOK(ecode2)) {
16186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ResampleBicubic" "', expected argument " "2"" of type '" "int""'");
16187 }
16188 arg2 = static_cast< int >(val2);
16189 ecode3 = SWIG_AsVal_int(obj2, &val3);
16190 if (!SWIG_IsOK(ecode3)) {
16191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ResampleBicubic" "', expected argument " "3"" of type '" "int""'");
16192 }
16193 arg3 = static_cast< int >(val3);
16194 {
16195 PyThreadState* __tstate = wxPyBeginAllowThreads();
16196 result = ((wxImage const *)arg1)->ResampleBicubic(arg2,arg3);
16197 wxPyEndAllowThreads(__tstate);
16198 if (PyErr_Occurred()) SWIG_fail;
16199 }
16200 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
16201 return resultobj;
16202fail:
16203 return NULL;
16204}
16205
16206
16207SWIGINTERN PyObject *_wrap_Image_Blur(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16208 PyObject *resultobj = 0;
16209 wxImage *arg1 = (wxImage *) 0 ;
16210 int arg2 ;
16211 SwigValueWrapper<wxImage > result;
16212 void *argp1 = 0 ;
16213 int res1 = 0 ;
16214 int val2 ;
16215 int ecode2 = 0 ;
16216 PyObject * obj0 = 0 ;
16217 PyObject * obj1 = 0 ;
16218 char * kwnames[] = {
16219 (char *) "self",(char *) "radius", NULL
16220 };
16221
16222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_Blur",kwnames,&obj0,&obj1)) SWIG_fail;
16223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16224 if (!SWIG_IsOK(res1)) {
16225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Blur" "', expected argument " "1"" of type '" "wxImage *""'");
16226 }
16227 arg1 = reinterpret_cast< wxImage * >(argp1);
16228 ecode2 = SWIG_AsVal_int(obj1, &val2);
16229 if (!SWIG_IsOK(ecode2)) {
16230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Blur" "', expected argument " "2"" of type '" "int""'");
16231 }
16232 arg2 = static_cast< int >(val2);
16233 {
16234 PyThreadState* __tstate = wxPyBeginAllowThreads();
16235 result = (arg1)->Blur(arg2);
16236 wxPyEndAllowThreads(__tstate);
16237 if (PyErr_Occurred()) SWIG_fail;
16238 }
16239 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
16240 return resultobj;
16241fail:
16242 return NULL;
16243}
16244
16245
16246SWIGINTERN PyObject *_wrap_Image_BlurHorizontal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16247 PyObject *resultobj = 0;
16248 wxImage *arg1 = (wxImage *) 0 ;
16249 int arg2 ;
16250 SwigValueWrapper<wxImage > result;
16251 void *argp1 = 0 ;
16252 int res1 = 0 ;
16253 int val2 ;
16254 int ecode2 = 0 ;
16255 PyObject * obj0 = 0 ;
16256 PyObject * obj1 = 0 ;
16257 char * kwnames[] = {
16258 (char *) "self",(char *) "radius", NULL
16259 };
16260
16261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_BlurHorizontal",kwnames,&obj0,&obj1)) SWIG_fail;
16262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16263 if (!SWIG_IsOK(res1)) {
16264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_BlurHorizontal" "', expected argument " "1"" of type '" "wxImage *""'");
16265 }
16266 arg1 = reinterpret_cast< wxImage * >(argp1);
16267 ecode2 = SWIG_AsVal_int(obj1, &val2);
16268 if (!SWIG_IsOK(ecode2)) {
16269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_BlurHorizontal" "', expected argument " "2"" of type '" "int""'");
16270 }
16271 arg2 = static_cast< int >(val2);
16272 {
16273 PyThreadState* __tstate = wxPyBeginAllowThreads();
16274 result = (arg1)->BlurHorizontal(arg2);
16275 wxPyEndAllowThreads(__tstate);
16276 if (PyErr_Occurred()) SWIG_fail;
16277 }
16278 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
16279 return resultobj;
16280fail:
16281 return NULL;
16282}
16283
16284
16285SWIGINTERN PyObject *_wrap_Image_BlurVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16286 PyObject *resultobj = 0;
16287 wxImage *arg1 = (wxImage *) 0 ;
16288 int arg2 ;
16289 SwigValueWrapper<wxImage > result;
16290 void *argp1 = 0 ;
16291 int res1 = 0 ;
16292 int val2 ;
16293 int ecode2 = 0 ;
16294 PyObject * obj0 = 0 ;
16295 PyObject * obj1 = 0 ;
16296 char * kwnames[] = {
16297 (char *) "self",(char *) "radius", NULL
16298 };
16299
16300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_BlurVertical",kwnames,&obj0,&obj1)) SWIG_fail;
16301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16302 if (!SWIG_IsOK(res1)) {
16303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_BlurVertical" "', expected argument " "1"" of type '" "wxImage *""'");
16304 }
16305 arg1 = reinterpret_cast< wxImage * >(argp1);
16306 ecode2 = SWIG_AsVal_int(obj1, &val2);
16307 if (!SWIG_IsOK(ecode2)) {
16308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_BlurVertical" "', expected argument " "2"" of type '" "int""'");
16309 }
16310 arg2 = static_cast< int >(val2);
16311 {
16312 PyThreadState* __tstate = wxPyBeginAllowThreads();
16313 result = (arg1)->BlurVertical(arg2);
1bd55598
RD
16314 wxPyEndAllowThreads(__tstate);
16315 if (PyErr_Occurred()) SWIG_fail;
16316 }
16317 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
16318 return resultobj;
16319fail:
16320 return NULL;
16321}
16322
16323
16324SWIGINTERN PyObject *_wrap_Image_ShrinkBy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16325 PyObject *resultobj = 0;
16326 wxImage *arg1 = (wxImage *) 0 ;
16327 int arg2 ;
16328 int arg3 ;
16329 SwigValueWrapper<wxImage > result;
16330 void *argp1 = 0 ;
16331 int res1 = 0 ;
16332 int val2 ;
16333 int ecode2 = 0 ;
16334 int val3 ;
16335 int ecode3 = 0 ;
16336 PyObject * obj0 = 0 ;
16337 PyObject * obj1 = 0 ;
16338 PyObject * obj2 = 0 ;
16339 char * kwnames[] = {
16340 (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL
16341 };
16342
16343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16345 if (!SWIG_IsOK(res1)) {
16346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ShrinkBy" "', expected argument " "1"" of type '" "wxImage const *""'");
16347 }
16348 arg1 = reinterpret_cast< wxImage * >(argp1);
16349 ecode2 = SWIG_AsVal_int(obj1, &val2);
16350 if (!SWIG_IsOK(ecode2)) {
16351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ShrinkBy" "', expected argument " "2"" of type '" "int""'");
16352 }
16353 arg2 = static_cast< int >(val2);
16354 ecode3 = SWIG_AsVal_int(obj2, &val3);
16355 if (!SWIG_IsOK(ecode3)) {
16356 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ShrinkBy" "', expected argument " "3"" of type '" "int""'");
16357 }
16358 arg3 = static_cast< int >(val3);
16359 {
16360 PyThreadState* __tstate = wxPyBeginAllowThreads();
16361 result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3);
16362 wxPyEndAllowThreads(__tstate);
16363 if (PyErr_Occurred()) SWIG_fail;
16364 }
16365 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
16366 return resultobj;
16367fail:
16368 return NULL;
16369}
16370
16371
16372SWIGINTERN PyObject *_wrap_Image_Rescale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16373 PyObject *resultobj = 0;
16374 wxImage *arg1 = (wxImage *) 0 ;
16375 int arg2 ;
16376 int arg3 ;
f5263701 16377 int arg4 = (int) wxIMAGE_QUALITY_NORMAL ;
1bd55598
RD
16378 wxImage *result = 0 ;
16379 void *argp1 = 0 ;
16380 int res1 = 0 ;
16381 int val2 ;
16382 int ecode2 = 0 ;
16383 int val3 ;
16384 int ecode3 = 0 ;
f5263701
RD
16385 int val4 ;
16386 int ecode4 = 0 ;
1bd55598
RD
16387 PyObject * obj0 = 0 ;
16388 PyObject * obj1 = 0 ;
16389 PyObject * obj2 = 0 ;
f5263701 16390 PyObject * obj3 = 0 ;
1bd55598 16391 char * kwnames[] = {
f5263701 16392 (char *) "self",(char *) "width",(char *) "height",(char *) "quality", NULL
1bd55598
RD
16393 };
16394
f5263701 16395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_Rescale",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
16396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16397 if (!SWIG_IsOK(res1)) {
16398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Rescale" "', expected argument " "1"" of type '" "wxImage *""'");
16399 }
16400 arg1 = reinterpret_cast< wxImage * >(argp1);
16401 ecode2 = SWIG_AsVal_int(obj1, &val2);
16402 if (!SWIG_IsOK(ecode2)) {
16403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Rescale" "', expected argument " "2"" of type '" "int""'");
16404 }
16405 arg2 = static_cast< int >(val2);
16406 ecode3 = SWIG_AsVal_int(obj2, &val3);
16407 if (!SWIG_IsOK(ecode3)) {
16408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_Rescale" "', expected argument " "3"" of type '" "int""'");
16409 }
16410 arg3 = static_cast< int >(val3);
f5263701
RD
16411 if (obj3) {
16412 ecode4 = SWIG_AsVal_int(obj3, &val4);
16413 if (!SWIG_IsOK(ecode4)) {
16414 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Rescale" "', expected argument " "4"" of type '" "int""'");
16415 }
16416 arg4 = static_cast< int >(val4);
16417 }
1bd55598
RD
16418 {
16419 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 16420 {
f5263701 16421 wxImage &_result_ref = (arg1)->Rescale(arg2,arg3,arg4);
1bd55598 16422 result = (wxImage *) &_result_ref;
d55e5bfc 16423 }
1bd55598
RD
16424 wxPyEndAllowThreads(__tstate);
16425 if (PyErr_Occurred()) SWIG_fail;
16426 }
16427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, 0 | 0 );
16428 return resultobj;
16429fail:
16430 return NULL;
16431}
16432
16433
16434SWIGINTERN PyObject *_wrap_Image_Resize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16435 PyObject *resultobj = 0;
16436 wxImage *arg1 = (wxImage *) 0 ;
16437 wxSize *arg2 = 0 ;
16438 wxPoint *arg3 = 0 ;
16439 int arg4 = (int) -1 ;
16440 int arg5 = (int) -1 ;
16441 int arg6 = (int) -1 ;
16442 wxImage *result = 0 ;
16443 void *argp1 = 0 ;
16444 int res1 = 0 ;
16445 wxSize temp2 ;
16446 wxPoint temp3 ;
16447 int val4 ;
16448 int ecode4 = 0 ;
16449 int val5 ;
16450 int ecode5 = 0 ;
16451 int val6 ;
16452 int ecode6 = 0 ;
16453 PyObject * obj0 = 0 ;
16454 PyObject * obj1 = 0 ;
16455 PyObject * obj2 = 0 ;
16456 PyObject * obj3 = 0 ;
16457 PyObject * obj4 = 0 ;
16458 PyObject * obj5 = 0 ;
16459 char * kwnames[] = {
16460 (char *) "self",(char *) "size",(char *) "pos",(char *) "r",(char *) "g",(char *) "b", NULL
16461 };
16462
16463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:Image_Resize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16465 if (!SWIG_IsOK(res1)) {
16466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Resize" "', expected argument " "1"" of type '" "wxImage *""'");
16467 }
16468 arg1 = reinterpret_cast< wxImage * >(argp1);
16469 {
16470 arg2 = &temp2;
16471 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
16472 }
16473 {
16474 arg3 = &temp3;
16475 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16476 }
16477 if (obj3) {
16478 ecode4 = SWIG_AsVal_int(obj3, &val4);
16479 if (!SWIG_IsOK(ecode4)) {
16480 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Resize" "', expected argument " "4"" of type '" "int""'");
16481 }
16482 arg4 = static_cast< int >(val4);
16483 }
16484 if (obj4) {
16485 ecode5 = SWIG_AsVal_int(obj4, &val5);
16486 if (!SWIG_IsOK(ecode5)) {
16487 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_Resize" "', expected argument " "5"" of type '" "int""'");
16488 }
16489 arg5 = static_cast< int >(val5);
16490 }
16491 if (obj5) {
16492 ecode6 = SWIG_AsVal_int(obj5, &val6);
16493 if (!SWIG_IsOK(ecode6)) {
16494 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Image_Resize" "', expected argument " "6"" of type '" "int""'");
16495 }
16496 arg6 = static_cast< int >(val6);
16497 }
16498 {
16499 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 16500 {
1bd55598
RD
16501 wxImage &_result_ref = (arg1)->Resize((wxSize const &)*arg2,(wxPoint const &)*arg3,arg4,arg5,arg6);
16502 result = (wxImage *) &_result_ref;
36ed4f51 16503 }
1bd55598
RD
16504 wxPyEndAllowThreads(__tstate);
16505 if (PyErr_Occurred()) SWIG_fail;
16506 }
16507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, 0 | 0 );
16508 return resultobj;
16509fail:
16510 return NULL;
16511}
16512
16513
16514SWIGINTERN PyObject *_wrap_Image_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16515 PyObject *resultobj = 0;
16516 wxImage *arg1 = (wxImage *) 0 ;
16517 int arg2 ;
16518 int arg3 ;
16519 byte arg4 ;
16520 byte arg5 ;
16521 byte arg6 ;
16522 void *argp1 = 0 ;
16523 int res1 = 0 ;
16524 int val2 ;
16525 int ecode2 = 0 ;
16526 int val3 ;
16527 int ecode3 = 0 ;
16528 unsigned char val4 ;
16529 int ecode4 = 0 ;
16530 unsigned char val5 ;
16531 int ecode5 = 0 ;
16532 unsigned char val6 ;
16533 int ecode6 = 0 ;
16534 PyObject * obj0 = 0 ;
16535 PyObject * obj1 = 0 ;
16536 PyObject * obj2 = 0 ;
16537 PyObject * obj3 = 0 ;
16538 PyObject * obj4 = 0 ;
16539 PyObject * obj5 = 0 ;
16540 char * kwnames[] = {
16541 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL
16542 };
16543
16544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16546 if (!SWIG_IsOK(res1)) {
16547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetRGB" "', expected argument " "1"" of type '" "wxImage *""'");
16548 }
16549 arg1 = reinterpret_cast< wxImage * >(argp1);
16550 ecode2 = SWIG_AsVal_int(obj1, &val2);
16551 if (!SWIG_IsOK(ecode2)) {
16552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_SetRGB" "', expected argument " "2"" of type '" "int""'");
16553 }
16554 arg2 = static_cast< int >(val2);
16555 ecode3 = SWIG_AsVal_int(obj2, &val3);
16556 if (!SWIG_IsOK(ecode3)) {
16557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetRGB" "', expected argument " "3"" of type '" "int""'");
16558 }
16559 arg3 = static_cast< int >(val3);
16560 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
16561 if (!SWIG_IsOK(ecode4)) {
16562 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_SetRGB" "', expected argument " "4"" of type '" "byte""'");
16563 }
16564 arg4 = static_cast< byte >(val4);
16565 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
16566 if (!SWIG_IsOK(ecode5)) {
16567 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_SetRGB" "', expected argument " "5"" of type '" "byte""'");
16568 }
16569 arg5 = static_cast< byte >(val5);
16570 ecode6 = SWIG_AsVal_unsigned_SS_char(obj5, &val6);
16571 if (!SWIG_IsOK(ecode6)) {
16572 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Image_SetRGB" "', expected argument " "6"" of type '" "byte""'");
16573 }
16574 arg6 = static_cast< byte >(val6);
16575 {
16576 PyThreadState* __tstate = wxPyBeginAllowThreads();
16577 (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6);
16578 wxPyEndAllowThreads(__tstate);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 }
16581 resultobj = SWIG_Py_Void();
16582 return resultobj;
16583fail:
16584 return NULL;
16585}
16586
16587
16588SWIGINTERN PyObject *_wrap_Image_SetRGBRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16589 PyObject *resultobj = 0;
16590 wxImage *arg1 = (wxImage *) 0 ;
16591 wxRect *arg2 = 0 ;
16592 byte arg3 ;
16593 byte arg4 ;
16594 byte arg5 ;
16595 void *argp1 = 0 ;
16596 int res1 = 0 ;
16597 wxRect temp2 ;
16598 unsigned char val3 ;
16599 int ecode3 = 0 ;
16600 unsigned char val4 ;
16601 int ecode4 = 0 ;
16602 unsigned char val5 ;
16603 int ecode5 = 0 ;
16604 PyObject * obj0 = 0 ;
16605 PyObject * obj1 = 0 ;
16606 PyObject * obj2 = 0 ;
16607 PyObject * obj3 = 0 ;
16608 PyObject * obj4 = 0 ;
16609 char * kwnames[] = {
16610 (char *) "self",(char *) "rect",(char *) "r",(char *) "g",(char *) "b", NULL
16611 };
16612
16613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetRGBRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16615 if (!SWIG_IsOK(res1)) {
16616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetRGBRect" "', expected argument " "1"" of type '" "wxImage *""'");
16617 }
16618 arg1 = reinterpret_cast< wxImage * >(argp1);
16619 {
16620 arg2 = &temp2;
16621 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16622 }
16623 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
16624 if (!SWIG_IsOK(ecode3)) {
16625 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetRGBRect" "', expected argument " "3"" of type '" "byte""'");
16626 }
16627 arg3 = static_cast< byte >(val3);
16628 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
16629 if (!SWIG_IsOK(ecode4)) {
16630 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_SetRGBRect" "', expected argument " "4"" of type '" "byte""'");
16631 }
16632 arg4 = static_cast< byte >(val4);
16633 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
16634 if (!SWIG_IsOK(ecode5)) {
16635 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_SetRGBRect" "', expected argument " "5"" of type '" "byte""'");
16636 }
16637 arg5 = static_cast< byte >(val5);
16638 {
16639 PyThreadState* __tstate = wxPyBeginAllowThreads();
16640 (arg1)->SetRGB((wxRect const &)*arg2,arg3,arg4,arg5);
16641 wxPyEndAllowThreads(__tstate);
16642 if (PyErr_Occurred()) SWIG_fail;
16643 }
16644 resultobj = SWIG_Py_Void();
16645 return resultobj;
16646fail:
16647 return NULL;
16648}
16649
16650
16651SWIGINTERN PyObject *_wrap_Image_GetRed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16652 PyObject *resultobj = 0;
16653 wxImage *arg1 = (wxImage *) 0 ;
16654 int arg2 ;
16655 int arg3 ;
16656 byte result;
16657 void *argp1 = 0 ;
16658 int res1 = 0 ;
16659 int val2 ;
16660 int ecode2 = 0 ;
16661 int val3 ;
16662 int ecode3 = 0 ;
16663 PyObject * obj0 = 0 ;
16664 PyObject * obj1 = 0 ;
16665 PyObject * obj2 = 0 ;
16666 char * kwnames[] = {
16667 (char *) "self",(char *) "x",(char *) "y", NULL
16668 };
16669
16670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16672 if (!SWIG_IsOK(res1)) {
16673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetRed" "', expected argument " "1"" of type '" "wxImage *""'");
16674 }
16675 arg1 = reinterpret_cast< wxImage * >(argp1);
16676 ecode2 = SWIG_AsVal_int(obj1, &val2);
16677 if (!SWIG_IsOK(ecode2)) {
16678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_GetRed" "', expected argument " "2"" of type '" "int""'");
16679 }
16680 arg2 = static_cast< int >(val2);
16681 ecode3 = SWIG_AsVal_int(obj2, &val3);
16682 if (!SWIG_IsOK(ecode3)) {
16683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_GetRed" "', expected argument " "3"" of type '" "int""'");
16684 }
16685 arg3 = static_cast< int >(val3);
16686 {
16687 PyThreadState* __tstate = wxPyBeginAllowThreads();
16688 result = (byte)(arg1)->GetRed(arg2,arg3);
16689 wxPyEndAllowThreads(__tstate);
16690 if (PyErr_Occurred()) SWIG_fail;
16691 }
16692 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
16693 return resultobj;
16694fail:
16695 return NULL;
16696}
16697
16698
16699SWIGINTERN PyObject *_wrap_Image_GetGreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16700 PyObject *resultobj = 0;
16701 wxImage *arg1 = (wxImage *) 0 ;
16702 int arg2 ;
16703 int arg3 ;
16704 byte result;
16705 void *argp1 = 0 ;
16706 int res1 = 0 ;
16707 int val2 ;
16708 int ecode2 = 0 ;
16709 int val3 ;
16710 int ecode3 = 0 ;
16711 PyObject * obj0 = 0 ;
16712 PyObject * obj1 = 0 ;
16713 PyObject * obj2 = 0 ;
16714 char * kwnames[] = {
16715 (char *) "self",(char *) "x",(char *) "y", NULL
16716 };
16717
16718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16720 if (!SWIG_IsOK(res1)) {
16721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetGreen" "', expected argument " "1"" of type '" "wxImage *""'");
16722 }
16723 arg1 = reinterpret_cast< wxImage * >(argp1);
16724 ecode2 = SWIG_AsVal_int(obj1, &val2);
16725 if (!SWIG_IsOK(ecode2)) {
16726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_GetGreen" "', expected argument " "2"" of type '" "int""'");
16727 }
16728 arg2 = static_cast< int >(val2);
16729 ecode3 = SWIG_AsVal_int(obj2, &val3);
16730 if (!SWIG_IsOK(ecode3)) {
16731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_GetGreen" "', expected argument " "3"" of type '" "int""'");
16732 }
16733 arg3 = static_cast< int >(val3);
16734 {
16735 PyThreadState* __tstate = wxPyBeginAllowThreads();
16736 result = (byte)(arg1)->GetGreen(arg2,arg3);
16737 wxPyEndAllowThreads(__tstate);
16738 if (PyErr_Occurred()) SWIG_fail;
16739 }
16740 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
16741 return resultobj;
16742fail:
16743 return NULL;
16744}
16745
16746
16747SWIGINTERN PyObject *_wrap_Image_GetBlue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16748 PyObject *resultobj = 0;
16749 wxImage *arg1 = (wxImage *) 0 ;
16750 int arg2 ;
16751 int arg3 ;
16752 byte result;
16753 void *argp1 = 0 ;
16754 int res1 = 0 ;
16755 int val2 ;
16756 int ecode2 = 0 ;
16757 int val3 ;
16758 int ecode3 = 0 ;
16759 PyObject * obj0 = 0 ;
16760 PyObject * obj1 = 0 ;
16761 PyObject * obj2 = 0 ;
16762 char * kwnames[] = {
16763 (char *) "self",(char *) "x",(char *) "y", NULL
16764 };
16765
16766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16768 if (!SWIG_IsOK(res1)) {
16769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetBlue" "', expected argument " "1"" of type '" "wxImage *""'");
16770 }
16771 arg1 = reinterpret_cast< wxImage * >(argp1);
16772 ecode2 = SWIG_AsVal_int(obj1, &val2);
16773 if (!SWIG_IsOK(ecode2)) {
16774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_GetBlue" "', expected argument " "2"" of type '" "int""'");
16775 }
16776 arg2 = static_cast< int >(val2);
16777 ecode3 = SWIG_AsVal_int(obj2, &val3);
16778 if (!SWIG_IsOK(ecode3)) {
16779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_GetBlue" "', expected argument " "3"" of type '" "int""'");
16780 }
16781 arg3 = static_cast< int >(val3);
16782 {
16783 PyThreadState* __tstate = wxPyBeginAllowThreads();
16784 result = (byte)(arg1)->GetBlue(arg2,arg3);
16785 wxPyEndAllowThreads(__tstate);
16786 if (PyErr_Occurred()) SWIG_fail;
16787 }
16788 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
16789 return resultobj;
16790fail:
16791 return NULL;
16792}
16793
16794
16795SWIGINTERN PyObject *_wrap_Image_SetAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16796 PyObject *resultobj = 0;
16797 wxImage *arg1 = (wxImage *) 0 ;
16798 int arg2 ;
16799 int arg3 ;
16800 byte arg4 ;
16801 void *argp1 = 0 ;
16802 int res1 = 0 ;
16803 int val2 ;
16804 int ecode2 = 0 ;
16805 int val3 ;
16806 int ecode3 = 0 ;
16807 unsigned char val4 ;
16808 int ecode4 = 0 ;
16809 PyObject * obj0 = 0 ;
16810 PyObject * obj1 = 0 ;
16811 PyObject * obj2 = 0 ;
16812 PyObject * obj3 = 0 ;
16813 char * kwnames[] = {
16814 (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL
16815 };
16816
16817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16819 if (!SWIG_IsOK(res1)) {
16820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetAlpha" "', expected argument " "1"" of type '" "wxImage *""'");
16821 }
16822 arg1 = reinterpret_cast< wxImage * >(argp1);
16823 ecode2 = SWIG_AsVal_int(obj1, &val2);
16824 if (!SWIG_IsOK(ecode2)) {
16825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_SetAlpha" "', expected argument " "2"" of type '" "int""'");
16826 }
16827 arg2 = static_cast< int >(val2);
16828 ecode3 = SWIG_AsVal_int(obj2, &val3);
16829 if (!SWIG_IsOK(ecode3)) {
16830 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetAlpha" "', expected argument " "3"" of type '" "int""'");
16831 }
16832 arg3 = static_cast< int >(val3);
16833 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
16834 if (!SWIG_IsOK(ecode4)) {
16835 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_SetAlpha" "', expected argument " "4"" of type '" "byte""'");
16836 }
16837 arg4 = static_cast< byte >(val4);
16838 {
16839 PyThreadState* __tstate = wxPyBeginAllowThreads();
16840 (arg1)->SetAlpha(arg2,arg3,arg4);
16841 wxPyEndAllowThreads(__tstate);
16842 if (PyErr_Occurred()) SWIG_fail;
16843 }
16844 resultobj = SWIG_Py_Void();
16845 return resultobj;
16846fail:
16847 return NULL;
16848}
16849
16850
16851SWIGINTERN PyObject *_wrap_Image_GetAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16852 PyObject *resultobj = 0;
16853 wxImage *arg1 = (wxImage *) 0 ;
16854 int arg2 ;
16855 int arg3 ;
16856 byte result;
16857 void *argp1 = 0 ;
16858 int res1 = 0 ;
16859 int val2 ;
16860 int ecode2 = 0 ;
16861 int val3 ;
16862 int ecode3 = 0 ;
16863 PyObject * obj0 = 0 ;
16864 PyObject * obj1 = 0 ;
16865 PyObject * obj2 = 0 ;
16866 char * kwnames[] = {
16867 (char *) "self",(char *) "x",(char *) "y", NULL
16868 };
16869
16870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16872 if (!SWIG_IsOK(res1)) {
16873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetAlpha" "', expected argument " "1"" of type '" "wxImage *""'");
16874 }
16875 arg1 = reinterpret_cast< wxImage * >(argp1);
16876 ecode2 = SWIG_AsVal_int(obj1, &val2);
16877 if (!SWIG_IsOK(ecode2)) {
16878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_GetAlpha" "', expected argument " "2"" of type '" "int""'");
16879 }
16880 arg2 = static_cast< int >(val2);
16881 ecode3 = SWIG_AsVal_int(obj2, &val3);
16882 if (!SWIG_IsOK(ecode3)) {
16883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_GetAlpha" "', expected argument " "3"" of type '" "int""'");
16884 }
16885 arg3 = static_cast< int >(val3);
16886 {
16887 PyThreadState* __tstate = wxPyBeginAllowThreads();
16888 result = (byte)(arg1)->GetAlpha(arg2,arg3);
16889 wxPyEndAllowThreads(__tstate);
16890 if (PyErr_Occurred()) SWIG_fail;
16891 }
16892 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
16893 return resultobj;
16894fail:
16895 return NULL;
d55e5bfc
RD
16896}
16897
16898
1bd55598
RD
16899SWIGINTERN PyObject *_wrap_Image_HasAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16900 PyObject *resultobj = 0;
16901 wxImage *arg1 = (wxImage *) 0 ;
16902 bool result;
16903 void *argp1 = 0 ;
16904 int res1 = 0 ;
16905 PyObject *swig_obj[1] ;
16906
16907 if (!args) SWIG_fail;
16908 swig_obj[0] = args;
16909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16910 if (!SWIG_IsOK(res1)) {
16911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HasAlpha" "', expected argument " "1"" of type '" "wxImage *""'");
16912 }
16913 arg1 = reinterpret_cast< wxImage * >(argp1);
16914 {
16915 PyThreadState* __tstate = wxPyBeginAllowThreads();
16916 result = (bool)(arg1)->HasAlpha();
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;
16924fail:
16925 return NULL;
d55e5bfc
RD
16926}
16927
16928
1bd55598
RD
16929SWIGINTERN PyObject *_wrap_Image_InitAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16930 PyObject *resultobj = 0;
16931 wxImage *arg1 = (wxImage *) 0 ;
16932 void *argp1 = 0 ;
16933 int res1 = 0 ;
16934 PyObject *swig_obj[1] ;
16935
16936 if (!args) SWIG_fail;
16937 swig_obj[0] = args;
16938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16939 if (!SWIG_IsOK(res1)) {
16940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_InitAlpha" "', expected argument " "1"" of type '" "wxImage *""'");
16941 }
16942 arg1 = reinterpret_cast< wxImage * >(argp1);
16943 {
16944 PyThreadState* __tstate = wxPyBeginAllowThreads();
16945 (arg1)->InitAlpha();
16946 wxPyEndAllowThreads(__tstate);
16947 if (PyErr_Occurred()) SWIG_fail;
16948 }
16949 resultobj = SWIG_Py_Void();
16950 return resultobj;
16951fail:
16952 return NULL;
16953}
16954
16955
16956SWIGINTERN PyObject *_wrap_Image_IsTransparent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16957 PyObject *resultobj = 0;
16958 wxImage *arg1 = (wxImage *) 0 ;
16959 int arg2 ;
16960 int arg3 ;
16961 byte arg4 = (byte) wxIMAGE_ALPHA_THRESHOLD ;
16962 bool result;
16963 void *argp1 = 0 ;
16964 int res1 = 0 ;
16965 int val2 ;
16966 int ecode2 = 0 ;
16967 int val3 ;
16968 int ecode3 = 0 ;
16969 unsigned char val4 ;
16970 int ecode4 = 0 ;
16971 PyObject * obj0 = 0 ;
16972 PyObject * obj1 = 0 ;
16973 PyObject * obj2 = 0 ;
16974 PyObject * obj3 = 0 ;
16975 char * kwnames[] = {
16976 (char *) "self",(char *) "x",(char *) "y",(char *) "threshold", NULL
16977 };
16978
16979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_IsTransparent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16981 if (!SWIG_IsOK(res1)) {
16982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_IsTransparent" "', expected argument " "1"" of type '" "wxImage const *""'");
16983 }
16984 arg1 = reinterpret_cast< wxImage * >(argp1);
16985 ecode2 = SWIG_AsVal_int(obj1, &val2);
16986 if (!SWIG_IsOK(ecode2)) {
16987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_IsTransparent" "', expected argument " "2"" of type '" "int""'");
16988 }
16989 arg2 = static_cast< int >(val2);
16990 ecode3 = SWIG_AsVal_int(obj2, &val3);
16991 if (!SWIG_IsOK(ecode3)) {
16992 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_IsTransparent" "', expected argument " "3"" of type '" "int""'");
16993 }
16994 arg3 = static_cast< int >(val3);
16995 if (obj3) {
16996 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
16997 if (!SWIG_IsOK(ecode4)) {
16998 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_IsTransparent" "', expected argument " "4"" of type '" "byte""'");
16999 }
17000 arg4 = static_cast< byte >(val4);
17001 }
17002 {
17003 PyThreadState* __tstate = wxPyBeginAllowThreads();
17004 result = (bool)((wxImage const *)arg1)->IsTransparent(arg2,arg3,arg4);
17005 wxPyEndAllowThreads(__tstate);
17006 if (PyErr_Occurred()) SWIG_fail;
17007 }
17008 {
17009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17010 }
17011 return resultobj;
17012fail:
17013 return NULL;
17014}
17015
17016
17017SWIGINTERN PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17018 PyObject *resultobj = 0;
17019 wxImage *arg1 = (wxImage *) 0 ;
17020 byte *arg2 = (byte *) 0 ;
17021 byte *arg3 = (byte *) 0 ;
17022 byte *arg4 = (byte *) 0 ;
17023 byte arg5 = (byte) 0 ;
17024 byte arg6 = (byte) 0 ;
17025 byte arg7 = (byte) 0 ;
17026 bool result;
17027 void *argp1 = 0 ;
17028 int res1 = 0 ;
17029 byte temp2 ;
17030 int res2 = SWIG_TMPOBJ ;
17031 byte temp3 ;
17032 int res3 = SWIG_TMPOBJ ;
17033 byte temp4 ;
17034 int res4 = SWIG_TMPOBJ ;
17035 unsigned char val5 ;
17036 int ecode5 = 0 ;
17037 unsigned char val6 ;
17038 int ecode6 = 0 ;
17039 unsigned char val7 ;
17040 int ecode7 = 0 ;
17041 PyObject * obj0 = 0 ;
17042 PyObject * obj1 = 0 ;
17043 PyObject * obj2 = 0 ;
17044 PyObject * obj3 = 0 ;
17045 char * kwnames[] = {
17046 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
17047 };
17048
17049 arg2 = &temp2;
17050 arg3 = &temp3;
17051 arg4 = &temp4;
17052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17054 if (!SWIG_IsOK(res1)) {
17055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_FindFirstUnusedColour" "', expected argument " "1"" of type '" "wxImage const *""'");
17056 }
17057 arg1 = reinterpret_cast< wxImage * >(argp1);
17058 if (obj1) {
17059 ecode5 = SWIG_AsVal_unsigned_SS_char(obj1, &val5);
17060 if (!SWIG_IsOK(ecode5)) {
17061 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_FindFirstUnusedColour" "', expected argument " "5"" of type '" "byte""'");
17062 }
17063 arg5 = static_cast< byte >(val5);
17064 }
17065 if (obj2) {
17066 ecode6 = SWIG_AsVal_unsigned_SS_char(obj2, &val6);
17067 if (!SWIG_IsOK(ecode6)) {
17068 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Image_FindFirstUnusedColour" "', expected argument " "6"" of type '" "byte""'");
17069 }
17070 arg6 = static_cast< byte >(val6);
17071 }
17072 if (obj3) {
17073 ecode7 = SWIG_AsVal_unsigned_SS_char(obj3, &val7);
17074 if (!SWIG_IsOK(ecode7)) {
17075 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Image_FindFirstUnusedColour" "', expected argument " "7"" of type '" "byte""'");
17076 }
17077 arg7 = static_cast< byte >(val7);
17078 }
17079 {
17080 PyThreadState* __tstate = wxPyBeginAllowThreads();
17081 result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
17082 wxPyEndAllowThreads(__tstate);
17083 if (PyErr_Occurred()) SWIG_fail;
17084 }
17085 {
17086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17087 }
17088 if (SWIG_IsTmpObj(res2)) {
17089 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg2)));
17090 } else {
17091 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17092 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags));
17093 }
17094 if (SWIG_IsTmpObj(res3)) {
17095 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
17096 } else {
17097 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17098 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
17099 }
17100 if (SWIG_IsTmpObj(res4)) {
17101 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
17102 } else {
17103 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17104 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
17105 }
17106 return resultobj;
17107fail:
17108 return NULL;
17109}
17110
17111
17112SWIGINTERN PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17113 PyObject *resultobj = 0;
17114 wxImage *arg1 = (wxImage *) 0 ;
17115 byte arg2 = (byte) wxIMAGE_ALPHA_THRESHOLD ;
17116 bool result;
17117 void *argp1 = 0 ;
17118 int res1 = 0 ;
17119 unsigned char val2 ;
17120 int ecode2 = 0 ;
17121 PyObject * obj0 = 0 ;
17122 PyObject * obj1 = 0 ;
17123 char * kwnames[] = {
17124 (char *) "self",(char *) "threshold", NULL
17125 };
17126
17127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) SWIG_fail;
17128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17129 if (!SWIG_IsOK(res1)) {
17130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertAlphaToMask" "', expected argument " "1"" of type '" "wxImage *""'");
17131 }
17132 arg1 = reinterpret_cast< wxImage * >(argp1);
17133 if (obj1) {
17134 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
17135 if (!SWIG_IsOK(ecode2)) {
17136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertAlphaToMask" "', expected argument " "2"" of type '" "byte""'");
17137 }
17138 arg2 = static_cast< byte >(val2);
17139 }
17140 {
17141 PyThreadState* __tstate = wxPyBeginAllowThreads();
17142 result = (bool)(arg1)->ConvertAlphaToMask(arg2);
17143 wxPyEndAllowThreads(__tstate);
17144 if (PyErr_Occurred()) SWIG_fail;
17145 }
17146 {
17147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17148 }
17149 return resultobj;
17150fail:
17151 return NULL;
17152}
17153
17154
17155SWIGINTERN PyObject *_wrap_Image_ConvertColourToAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17156 PyObject *resultobj = 0;
17157 wxImage *arg1 = (wxImage *) 0 ;
17158 byte arg2 ;
17159 byte arg3 ;
17160 byte arg4 ;
17161 bool result;
17162 void *argp1 = 0 ;
17163 int res1 = 0 ;
17164 unsigned char val2 ;
17165 int ecode2 = 0 ;
17166 unsigned char val3 ;
17167 int ecode3 = 0 ;
17168 unsigned char val4 ;
17169 int ecode4 = 0 ;
17170 PyObject * obj0 = 0 ;
17171 PyObject * obj1 = 0 ;
17172 PyObject * obj2 = 0 ;
17173 PyObject * obj3 = 0 ;
17174 char * kwnames[] = {
17175 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
17176 };
17177
17178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertColourToAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17180 if (!SWIG_IsOK(res1)) {
17181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertColourToAlpha" "', expected argument " "1"" of type '" "wxImage *""'");
17182 }
17183 arg1 = reinterpret_cast< wxImage * >(argp1);
17184 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
17185 if (!SWIG_IsOK(ecode2)) {
17186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertColourToAlpha" "', expected argument " "2"" of type '" "byte""'");
17187 }
17188 arg2 = static_cast< byte >(val2);
17189 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
17190 if (!SWIG_IsOK(ecode3)) {
17191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ConvertColourToAlpha" "', expected argument " "3"" of type '" "byte""'");
17192 }
17193 arg3 = static_cast< byte >(val3);
17194 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
17195 if (!SWIG_IsOK(ecode4)) {
17196 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_ConvertColourToAlpha" "', expected argument " "4"" of type '" "byte""'");
17197 }
17198 arg4 = static_cast< byte >(val4);
17199 {
17200 PyThreadState* __tstate = wxPyBeginAllowThreads();
17201 result = (bool)(arg1)->ConvertColourToAlpha(arg2,arg3,arg4);
17202 wxPyEndAllowThreads(__tstate);
17203 if (PyErr_Occurred()) SWIG_fail;
17204 }
17205 {
17206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17207 }
17208 return resultobj;
17209fail:
17210 return NULL;
17211}
17212
17213
17214SWIGINTERN PyObject *_wrap_Image_SetMaskFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17215 PyObject *resultobj = 0;
17216 wxImage *arg1 = (wxImage *) 0 ;
17217 wxImage *arg2 = 0 ;
17218 byte arg3 ;
17219 byte arg4 ;
17220 byte arg5 ;
17221 bool result;
17222 void *argp1 = 0 ;
17223 int res1 = 0 ;
17224 void *argp2 = 0 ;
17225 int res2 = 0 ;
17226 unsigned char val3 ;
17227 int ecode3 = 0 ;
17228 unsigned char val4 ;
17229 int ecode4 = 0 ;
17230 unsigned char val5 ;
17231 int ecode5 = 0 ;
17232 PyObject * obj0 = 0 ;
17233 PyObject * obj1 = 0 ;
17234 PyObject * obj2 = 0 ;
17235 PyObject * obj3 = 0 ;
17236 PyObject * obj4 = 0 ;
17237 char * kwnames[] = {
17238 (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL
17239 };
17240
17241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17243 if (!SWIG_IsOK(res1)) {
17244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetMaskFromImage" "', expected argument " "1"" of type '" "wxImage *""'");
17245 }
17246 arg1 = reinterpret_cast< wxImage * >(argp1);
17247 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0);
17248 if (!SWIG_IsOK(res2)) {
17249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Image_SetMaskFromImage" "', expected argument " "2"" of type '" "wxImage const &""'");
17250 }
17251 if (!argp2) {
17252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Image_SetMaskFromImage" "', expected argument " "2"" of type '" "wxImage const &""'");
17253 }
17254 arg2 = reinterpret_cast< wxImage * >(argp2);
17255 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
17256 if (!SWIG_IsOK(ecode3)) {
17257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetMaskFromImage" "', expected argument " "3"" of type '" "byte""'");
17258 }
17259 arg3 = static_cast< byte >(val3);
17260 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
17261 if (!SWIG_IsOK(ecode4)) {
17262 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_SetMaskFromImage" "', expected argument " "4"" of type '" "byte""'");
17263 }
17264 arg4 = static_cast< byte >(val4);
17265 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
17266 if (!SWIG_IsOK(ecode5)) {
17267 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_SetMaskFromImage" "', expected argument " "5"" of type '" "byte""'");
17268 }
17269 arg5 = static_cast< byte >(val5);
17270 {
17271 PyThreadState* __tstate = wxPyBeginAllowThreads();
17272 result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5);
17273 wxPyEndAllowThreads(__tstate);
17274 if (PyErr_Occurred()) SWIG_fail;
17275 }
17276 {
17277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17278 }
17279 return resultobj;
17280fail:
17281 return NULL;
d55e5bfc
RD
17282}
17283
17284
1bd55598
RD
17285SWIGINTERN PyObject *_wrap_Image_CanRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17286 PyObject *resultobj = 0;
17287 wxString *arg1 = 0 ;
17288 bool result;
17289 bool temp1 = false ;
17290 PyObject * obj0 = 0 ;
17291 char * kwnames[] = {
17292 (char *) "filename", NULL
17293 };
17294
17295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) SWIG_fail;
17296 {
17297 arg1 = wxString_in_helper(obj0);
17298 if (arg1 == NULL) SWIG_fail;
17299 temp1 = true;
17300 }
17301 {
17302 PyThreadState* __tstate = wxPyBeginAllowThreads();
17303 result = (bool)wxImage::CanRead((wxString const &)*arg1);
17304 wxPyEndAllowThreads(__tstate);
17305 if (PyErr_Occurred()) SWIG_fail;
17306 }
17307 {
17308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17309 }
17310 {
17311 if (temp1)
17312 delete arg1;
17313 }
17314 return resultobj;
17315fail:
17316 {
17317 if (temp1)
17318 delete arg1;
17319 }
17320 return NULL;
17321}
17322
17323
17324SWIGINTERN PyObject *_wrap_Image_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17325 PyObject *resultobj = 0;
17326 wxString *arg1 = 0 ;
17327 long arg2 = (long) wxBITMAP_TYPE_ANY ;
17328 int result;
17329 bool temp1 = false ;
17330 long val2 ;
17331 int ecode2 = 0 ;
17332 PyObject * obj0 = 0 ;
17333 PyObject * obj1 = 0 ;
17334 char * kwnames[] = {
17335 (char *) "filename",(char *) "type", NULL
17336 };
17337
17338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) SWIG_fail;
17339 {
17340 arg1 = wxString_in_helper(obj0);
17341 if (arg1 == NULL) SWIG_fail;
17342 temp1 = true;
17343 }
17344 if (obj1) {
17345 ecode2 = SWIG_AsVal_long(obj1, &val2);
17346 if (!SWIG_IsOK(ecode2)) {
17347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_GetImageCount" "', expected argument " "2"" of type '" "long""'");
17348 }
17349 arg2 = static_cast< long >(val2);
17350 }
17351 {
17352 PyThreadState* __tstate = wxPyBeginAllowThreads();
17353 result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2);
17354 wxPyEndAllowThreads(__tstate);
17355 if (PyErr_Occurred()) SWIG_fail;
17356 }
17357 resultobj = SWIG_From_int(static_cast< int >(result));
17358 {
17359 if (temp1)
17360 delete arg1;
17361 }
17362 return resultobj;
17363fail:
17364 {
17365 if (temp1)
17366 delete arg1;
17367 }
17368 return NULL;
17369}
17370
17371
17372SWIGINTERN PyObject *_wrap_Image_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17373 PyObject *resultobj = 0;
17374 wxImage *arg1 = (wxImage *) 0 ;
17375 wxString *arg2 = 0 ;
17376 long arg3 = (long) wxBITMAP_TYPE_ANY ;
17377 int arg4 = (int) -1 ;
17378 bool result;
17379 void *argp1 = 0 ;
17380 int res1 = 0 ;
17381 bool temp2 = false ;
17382 long val3 ;
17383 int ecode3 = 0 ;
17384 int val4 ;
17385 int ecode4 = 0 ;
17386 PyObject * obj0 = 0 ;
17387 PyObject * obj1 = 0 ;
17388 PyObject * obj2 = 0 ;
17389 PyObject * obj3 = 0 ;
17390 char * kwnames[] = {
17391 (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL
17392 };
17393
17394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17396 if (!SWIG_IsOK(res1)) {
17397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_LoadFile" "', expected argument " "1"" of type '" "wxImage *""'");
17398 }
17399 arg1 = reinterpret_cast< wxImage * >(argp1);
17400 {
17401 arg2 = wxString_in_helper(obj1);
17402 if (arg2 == NULL) SWIG_fail;
17403 temp2 = true;
17404 }
17405 if (obj2) {
17406 ecode3 = SWIG_AsVal_long(obj2, &val3);
17407 if (!SWIG_IsOK(ecode3)) {
17408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_LoadFile" "', expected argument " "3"" of type '" "long""'");
17409 }
17410 arg3 = static_cast< long >(val3);
17411 }
17412 if (obj3) {
17413 ecode4 = SWIG_AsVal_int(obj3, &val4);
17414 if (!SWIG_IsOK(ecode4)) {
17415 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_LoadFile" "', expected argument " "4"" of type '" "int""'");
17416 }
17417 arg4 = static_cast< int >(val4);
17418 }
17419 {
17420 PyThreadState* __tstate = wxPyBeginAllowThreads();
17421 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4);
17422 wxPyEndAllowThreads(__tstate);
17423 if (PyErr_Occurred()) SWIG_fail;
17424 }
17425 {
17426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17427 }
17428 {
17429 if (temp2)
17430 delete arg2;
17431 }
17432 return resultobj;
17433fail:
17434 {
17435 if (temp2)
17436 delete arg2;
17437 }
17438 return NULL;
17439}
17440
17441
17442SWIGINTERN PyObject *_wrap_Image_LoadMimeFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17443 PyObject *resultobj = 0;
17444 wxImage *arg1 = (wxImage *) 0 ;
17445 wxString *arg2 = 0 ;
17446 wxString *arg3 = 0 ;
17447 int arg4 = (int) -1 ;
17448 bool result;
17449 void *argp1 = 0 ;
17450 int res1 = 0 ;
17451 bool temp2 = false ;
17452 bool temp3 = false ;
17453 int val4 ;
17454 int ecode4 = 0 ;
17455 PyObject * obj0 = 0 ;
17456 PyObject * obj1 = 0 ;
17457 PyObject * obj2 = 0 ;
17458 PyObject * obj3 = 0 ;
17459 char * kwnames[] = {
17460 (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL
17461 };
17462
17463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17465 if (!SWIG_IsOK(res1)) {
17466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_LoadMimeFile" "', expected argument " "1"" of type '" "wxImage *""'");
17467 }
17468 arg1 = reinterpret_cast< wxImage * >(argp1);
17469 {
17470 arg2 = wxString_in_helper(obj1);
17471 if (arg2 == NULL) SWIG_fail;
17472 temp2 = true;
17473 }
17474 {
17475 arg3 = wxString_in_helper(obj2);
17476 if (arg3 == NULL) SWIG_fail;
17477 temp3 = true;
17478 }
17479 if (obj3) {
17480 ecode4 = SWIG_AsVal_int(obj3, &val4);
17481 if (!SWIG_IsOK(ecode4)) {
17482 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_LoadMimeFile" "', expected argument " "4"" of type '" "int""'");
17483 }
17484 arg4 = static_cast< int >(val4);
17485 }
17486 {
17487 PyThreadState* __tstate = wxPyBeginAllowThreads();
17488 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4);
17489 wxPyEndAllowThreads(__tstate);
17490 if (PyErr_Occurred()) SWIG_fail;
17491 }
17492 {
17493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17494 }
17495 {
17496 if (temp2)
17497 delete arg2;
17498 }
17499 {
17500 if (temp3)
17501 delete arg3;
17502 }
17503 return resultobj;
17504fail:
17505 {
17506 if (temp2)
17507 delete arg2;
17508 }
17509 {
17510 if (temp3)
17511 delete arg3;
17512 }
17513 return NULL;
17514}
17515
17516
17517SWIGINTERN PyObject *_wrap_Image_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17518 PyObject *resultobj = 0;
17519 wxImage *arg1 = (wxImage *) 0 ;
17520 wxString *arg2 = 0 ;
17521 int arg3 ;
17522 bool result;
17523 void *argp1 = 0 ;
17524 int res1 = 0 ;
17525 bool temp2 = false ;
17526 int val3 ;
17527 int ecode3 = 0 ;
17528 PyObject * obj0 = 0 ;
17529 PyObject * obj1 = 0 ;
17530 PyObject * obj2 = 0 ;
17531 char * kwnames[] = {
17532 (char *) "self",(char *) "name",(char *) "type", NULL
17533 };
17534
17535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17537 if (!SWIG_IsOK(res1)) {
17538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SaveFile" "', expected argument " "1"" of type '" "wxImage *""'");
17539 }
17540 arg1 = reinterpret_cast< wxImage * >(argp1);
17541 {
17542 arg2 = wxString_in_helper(obj1);
17543 if (arg2 == NULL) SWIG_fail;
17544 temp2 = true;
17545 }
17546 ecode3 = SWIG_AsVal_int(obj2, &val3);
17547 if (!SWIG_IsOK(ecode3)) {
17548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SaveFile" "', expected argument " "3"" of type '" "int""'");
17549 }
17550 arg3 = static_cast< int >(val3);
17551 {
17552 PyThreadState* __tstate = wxPyBeginAllowThreads();
17553 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
17554 wxPyEndAllowThreads(__tstate);
17555 if (PyErr_Occurred()) SWIG_fail;
17556 }
17557 {
17558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17559 }
17560 {
17561 if (temp2)
17562 delete arg2;
17563 }
17564 return resultobj;
17565fail:
17566 {
17567 if (temp2)
17568 delete arg2;
17569 }
17570 return NULL;
17571}
17572
17573
17574SWIGINTERN PyObject *_wrap_Image_SaveMimeFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17575 PyObject *resultobj = 0;
17576 wxImage *arg1 = (wxImage *) 0 ;
17577 wxString *arg2 = 0 ;
17578 wxString *arg3 = 0 ;
17579 bool result;
17580 void *argp1 = 0 ;
17581 int res1 = 0 ;
17582 bool temp2 = false ;
17583 bool temp3 = false ;
17584 PyObject * obj0 = 0 ;
17585 PyObject * obj1 = 0 ;
17586 PyObject * obj2 = 0 ;
17587 char * kwnames[] = {
17588 (char *) "self",(char *) "name",(char *) "mimetype", NULL
17589 };
17590
17591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17593 if (!SWIG_IsOK(res1)) {
17594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SaveMimeFile" "', expected argument " "1"" of type '" "wxImage *""'");
17595 }
17596 arg1 = reinterpret_cast< wxImage * >(argp1);
17597 {
17598 arg2 = wxString_in_helper(obj1);
17599 if (arg2 == NULL) SWIG_fail;
17600 temp2 = true;
17601 }
17602 {
17603 arg3 = wxString_in_helper(obj2);
17604 if (arg3 == NULL) SWIG_fail;
17605 temp3 = true;
17606 }
17607 {
17608 PyThreadState* __tstate = wxPyBeginAllowThreads();
17609 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3);
17610 wxPyEndAllowThreads(__tstate);
17611 if (PyErr_Occurred()) SWIG_fail;
17612 }
17613 {
17614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17615 }
17616 {
17617 if (temp2)
17618 delete arg2;
17619 }
17620 {
17621 if (temp3)
17622 delete arg3;
17623 }
17624 return resultobj;
17625fail:
17626 {
17627 if (temp2)
17628 delete arg2;
17629 }
17630 {
17631 if (temp3)
17632 delete arg3;
17633 }
17634 return NULL;
d55e5bfc
RD
17635}
17636
17637
1bd55598
RD
17638SWIGINTERN PyObject *_wrap_Image_CanReadStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17639 PyObject *resultobj = 0;
17640 wxInputStream *arg1 = 0 ;
17641 bool result;
17642 wxPyInputStream *temp1 ;
17643 bool created1 ;
17644 PyObject * obj0 = 0 ;
17645 char * kwnames[] = {
17646 (char *) "stream", NULL
17647 };
17648
17649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) SWIG_fail;
17650 {
17651 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
17652 arg1 = temp1->m_wxis;
17653 created1 = false;
17654 } else {
17655 PyErr_Clear(); // clear the failure of the wxPyConvert above
17656 arg1 = wxPyCBInputStream_create(obj0, false);
17657 if (arg1 == NULL) {
17658 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
17659 SWIG_fail;
17660 }
17661 created1 = true;
d55e5bfc 17662 }
1bd55598
RD
17663 }
17664 {
17665 PyThreadState* __tstate = wxPyBeginAllowThreads();
17666 result = (bool)wxImage::CanRead(*arg1);
17667 wxPyEndAllowThreads(__tstate);
17668 if (PyErr_Occurred()) SWIG_fail;
17669 }
17670 {
17671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17672 }
17673 {
17674 if (created1) delete arg1;
17675 }
17676 return resultobj;
17677fail:
17678 {
17679 if (created1) delete arg1;
17680 }
17681 return NULL;
17682}
17683
17684
17685SWIGINTERN PyObject *_wrap_Image_LoadStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17686 PyObject *resultobj = 0;
17687 wxImage *arg1 = (wxImage *) 0 ;
17688 wxInputStream *arg2 = 0 ;
17689 long arg3 = (long) wxBITMAP_TYPE_ANY ;
17690 int arg4 = (int) -1 ;
17691 bool result;
17692 void *argp1 = 0 ;
17693 int res1 = 0 ;
17694 wxPyInputStream *temp2 ;
17695 bool created2 ;
17696 long val3 ;
17697 int ecode3 = 0 ;
17698 int val4 ;
17699 int ecode4 = 0 ;
17700 PyObject * obj0 = 0 ;
17701 PyObject * obj1 = 0 ;
17702 PyObject * obj2 = 0 ;
17703 PyObject * obj3 = 0 ;
17704 char * kwnames[] = {
17705 (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL
17706 };
17707
17708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17710 if (!SWIG_IsOK(res1)) {
17711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_LoadStream" "', expected argument " "1"" of type '" "wxImage *""'");
17712 }
17713 arg1 = reinterpret_cast< wxImage * >(argp1);
17714 {
17715 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
17716 arg2 = temp2->m_wxis;
17717 created2 = false;
17718 } else {
17719 PyErr_Clear(); // clear the failure of the wxPyConvert above
17720 arg2 = wxPyCBInputStream_create(obj1, false);
17721 if (arg2 == NULL) {
17722 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
17723 SWIG_fail;
17724 }
17725 created2 = true;
d55e5bfc 17726 }
1bd55598
RD
17727 }
17728 if (obj2) {
17729 ecode3 = SWIG_AsVal_long(obj2, &val3);
17730 if (!SWIG_IsOK(ecode3)) {
17731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_LoadStream" "', expected argument " "3"" of type '" "long""'");
17732 }
17733 arg3 = static_cast< long >(val3);
17734 }
17735 if (obj3) {
17736 ecode4 = SWIG_AsVal_int(obj3, &val4);
17737 if (!SWIG_IsOK(ecode4)) {
17738 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_LoadStream" "', expected argument " "4"" of type '" "int""'");
17739 }
17740 arg4 = static_cast< int >(val4);
17741 }
17742 {
17743 PyThreadState* __tstate = wxPyBeginAllowThreads();
17744 result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4);
17745 wxPyEndAllowThreads(__tstate);
17746 if (PyErr_Occurred()) SWIG_fail;
17747 }
17748 {
17749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17750 }
17751 {
17752 if (created2) delete arg2;
17753 }
17754 return resultobj;
17755fail:
17756 {
17757 if (created2) delete arg2;
17758 }
17759 return NULL;
17760}
17761
17762
17763SWIGINTERN PyObject *_wrap_Image_LoadMimeStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17764 PyObject *resultobj = 0;
17765 wxImage *arg1 = (wxImage *) 0 ;
17766 wxInputStream *arg2 = 0 ;
17767 wxString *arg3 = 0 ;
17768 int arg4 = (int) -1 ;
17769 bool result;
17770 void *argp1 = 0 ;
17771 int res1 = 0 ;
17772 wxPyInputStream *temp2 ;
17773 bool created2 ;
17774 bool temp3 = false ;
17775 int val4 ;
17776 int ecode4 = 0 ;
17777 PyObject * obj0 = 0 ;
17778 PyObject * obj1 = 0 ;
17779 PyObject * obj2 = 0 ;
17780 PyObject * obj3 = 0 ;
17781 char * kwnames[] = {
17782 (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL
17783 };
17784
17785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17787 if (!SWIG_IsOK(res1)) {
17788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_LoadMimeStream" "', expected argument " "1"" of type '" "wxImage *""'");
17789 }
17790 arg1 = reinterpret_cast< wxImage * >(argp1);
17791 {
17792 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
17793 arg2 = temp2->m_wxis;
17794 created2 = false;
17795 } else {
17796 PyErr_Clear(); // clear the failure of the wxPyConvert above
17797 arg2 = wxPyCBInputStream_create(obj1, false);
17798 if (arg2 == NULL) {
17799 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
17800 SWIG_fail;
17801 }
17802 created2 = true;
17803 }
17804 }
17805 {
17806 arg3 = wxString_in_helper(obj2);
17807 if (arg3 == NULL) SWIG_fail;
17808 temp3 = true;
17809 }
17810 if (obj3) {
17811 ecode4 = SWIG_AsVal_int(obj3, &val4);
17812 if (!SWIG_IsOK(ecode4)) {
17813 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_LoadMimeStream" "', expected argument " "4"" of type '" "int""'");
17814 }
17815 arg4 = static_cast< int >(val4);
17816 }
17817 {
17818 PyThreadState* __tstate = wxPyBeginAllowThreads();
17819 result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4);
17820 wxPyEndAllowThreads(__tstate);
17821 if (PyErr_Occurred()) SWIG_fail;
17822 }
17823 {
17824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17825 }
17826 {
17827 if (created2) delete arg2;
17828 }
17829 {
17830 if (temp3)
17831 delete arg3;
17832 }
17833 return resultobj;
17834fail:
17835 {
17836 if (created2) delete arg2;
17837 }
17838 {
17839 if (temp3)
17840 delete arg3;
17841 }
17842 return NULL;
d55e5bfc
RD
17843}
17844
17845
b39fe951 17846SWIGINTERN PyObject *_wrap_Image_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
17847 PyObject *resultobj = 0;
17848 wxImage *arg1 = (wxImage *) 0 ;
17849 bool result;
17850 void *argp1 = 0 ;
17851 int res1 = 0 ;
17852 PyObject *swig_obj[1] ;
17853
17854 if (!args) SWIG_fail;
17855 swig_obj[0] = args;
17856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17857 if (!SWIG_IsOK(res1)) {
b39fe951 17858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_IsOk" "', expected argument " "1"" of type '" "wxImage *""'");
1bd55598
RD
17859 }
17860 arg1 = reinterpret_cast< wxImage * >(argp1);
17861 {
17862 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 17863 result = (bool)(arg1)->IsOk();
1bd55598
RD
17864 wxPyEndAllowThreads(__tstate);
17865 if (PyErr_Occurred()) SWIG_fail;
17866 }
17867 {
17868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17869 }
17870 return resultobj;
17871fail:
17872 return NULL;
d55e5bfc
RD
17873}
17874
17875
1bd55598
RD
17876SWIGINTERN PyObject *_wrap_Image_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17877 PyObject *resultobj = 0;
17878 wxImage *arg1 = (wxImage *) 0 ;
17879 int result;
17880 void *argp1 = 0 ;
17881 int res1 = 0 ;
17882 PyObject *swig_obj[1] ;
17883
17884 if (!args) SWIG_fail;
17885 swig_obj[0] = args;
17886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17887 if (!SWIG_IsOK(res1)) {
17888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetWidth" "', expected argument " "1"" of type '" "wxImage *""'");
17889 }
17890 arg1 = reinterpret_cast< wxImage * >(argp1);
17891 {
17892 PyThreadState* __tstate = wxPyBeginAllowThreads();
17893 result = (int)(arg1)->GetWidth();
17894 wxPyEndAllowThreads(__tstate);
17895 if (PyErr_Occurred()) SWIG_fail;
17896 }
17897 resultobj = SWIG_From_int(static_cast< int >(result));
17898 return resultobj;
17899fail:
17900 return NULL;
d55e5bfc
RD
17901}
17902
17903
1bd55598
RD
17904SWIGINTERN PyObject *_wrap_Image_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17905 PyObject *resultobj = 0;
17906 wxImage *arg1 = (wxImage *) 0 ;
17907 int result;
17908 void *argp1 = 0 ;
17909 int res1 = 0 ;
17910 PyObject *swig_obj[1] ;
17911
17912 if (!args) SWIG_fail;
17913 swig_obj[0] = args;
17914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17915 if (!SWIG_IsOK(res1)) {
17916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetHeight" "', expected argument " "1"" of type '" "wxImage *""'");
17917 }
17918 arg1 = reinterpret_cast< wxImage * >(argp1);
17919 {
17920 PyThreadState* __tstate = wxPyBeginAllowThreads();
17921 result = (int)(arg1)->GetHeight();
17922 wxPyEndAllowThreads(__tstate);
17923 if (PyErr_Occurred()) SWIG_fail;
17924 }
17925 resultobj = SWIG_From_int(static_cast< int >(result));
17926 return resultobj;
17927fail:
17928 return NULL;
d55e5bfc
RD
17929}
17930
17931
1bd55598
RD
17932SWIGINTERN PyObject *_wrap_Image_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17933 PyObject *resultobj = 0;
17934 wxImage *arg1 = (wxImage *) 0 ;
17935 wxSize result;
17936 void *argp1 = 0 ;
17937 int res1 = 0 ;
17938 PyObject *swig_obj[1] ;
17939
17940 if (!args) SWIG_fail;
17941 swig_obj[0] = args;
17942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17943 if (!SWIG_IsOK(res1)) {
17944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetSize" "', expected argument " "1"" of type '" "wxImage *""'");
17945 }
17946 arg1 = reinterpret_cast< wxImage * >(argp1);
17947 {
17948 PyThreadState* __tstate = wxPyBeginAllowThreads();
17949 result = wxImage_GetSize(arg1);
17950 wxPyEndAllowThreads(__tstate);
17951 if (PyErr_Occurred()) SWIG_fail;
17952 }
17953 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
17954 return resultobj;
17955fail:
17956 return NULL;
17957}
17958
17959
17960SWIGINTERN PyObject *_wrap_Image_GetSubImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17961 PyObject *resultobj = 0;
17962 wxImage *arg1 = (wxImage *) 0 ;
17963 wxRect *arg2 = 0 ;
17964 SwigValueWrapper<wxImage > result;
17965 void *argp1 = 0 ;
17966 int res1 = 0 ;
17967 wxRect temp2 ;
17968 PyObject * obj0 = 0 ;
17969 PyObject * obj1 = 0 ;
17970 char * kwnames[] = {
17971 (char *) "self",(char *) "rect", NULL
17972 };
17973
17974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) SWIG_fail;
17975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17976 if (!SWIG_IsOK(res1)) {
17977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetSubImage" "', expected argument " "1"" of type '" "wxImage *""'");
17978 }
17979 arg1 = reinterpret_cast< wxImage * >(argp1);
17980 {
17981 arg2 = &temp2;
17982 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17983 }
17984 {
17985 PyThreadState* __tstate = wxPyBeginAllowThreads();
17986 result = (arg1)->GetSubImage((wxRect const &)*arg2);
17987 wxPyEndAllowThreads(__tstate);
17988 if (PyErr_Occurred()) SWIG_fail;
17989 }
17990 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
17991 return resultobj;
17992fail:
17993 return NULL;
17994}
17995
17996
17997SWIGINTERN PyObject *_wrap_Image_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17998 PyObject *resultobj = 0;
17999 wxImage *arg1 = (wxImage *) 0 ;
18000 wxSize *arg2 = 0 ;
18001 wxPoint *arg3 = 0 ;
18002 int arg4 = (int) -1 ;
18003 int arg5 = (int) -1 ;
18004 int arg6 = (int) -1 ;
18005 SwigValueWrapper<wxImage > result;
18006 void *argp1 = 0 ;
18007 int res1 = 0 ;
18008 wxSize temp2 ;
18009 wxPoint temp3 ;
18010 int val4 ;
18011 int ecode4 = 0 ;
18012 int val5 ;
18013 int ecode5 = 0 ;
18014 int val6 ;
18015 int ecode6 = 0 ;
18016 PyObject * obj0 = 0 ;
18017 PyObject * obj1 = 0 ;
18018 PyObject * obj2 = 0 ;
18019 PyObject * obj3 = 0 ;
18020 PyObject * obj4 = 0 ;
18021 PyObject * obj5 = 0 ;
18022 char * kwnames[] = {
18023 (char *) "self",(char *) "size",(char *) "pos",(char *) "r",(char *) "g",(char *) "b", NULL
18024 };
18025
18026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:Image_Size",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18028 if (!SWIG_IsOK(res1)) {
18029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Size" "', expected argument " "1"" of type '" "wxImage const *""'");
18030 }
18031 arg1 = reinterpret_cast< wxImage * >(argp1);
18032 {
18033 arg2 = &temp2;
18034 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18035 }
18036 {
18037 arg3 = &temp3;
18038 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18039 }
18040 if (obj3) {
18041 ecode4 = SWIG_AsVal_int(obj3, &val4);
18042 if (!SWIG_IsOK(ecode4)) {
18043 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Size" "', expected argument " "4"" of type '" "int""'");
18044 }
18045 arg4 = static_cast< int >(val4);
18046 }
18047 if (obj4) {
18048 ecode5 = SWIG_AsVal_int(obj4, &val5);
18049 if (!SWIG_IsOK(ecode5)) {
18050 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_Size" "', expected argument " "5"" of type '" "int""'");
18051 }
18052 arg5 = static_cast< int >(val5);
18053 }
18054 if (obj5) {
18055 ecode6 = SWIG_AsVal_int(obj5, &val6);
18056 if (!SWIG_IsOK(ecode6)) {
18057 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Image_Size" "', expected argument " "6"" of type '" "int""'");
18058 }
18059 arg6 = static_cast< int >(val6);
18060 }
18061 {
18062 PyThreadState* __tstate = wxPyBeginAllowThreads();
18063 result = ((wxImage const *)arg1)->Size((wxSize const &)*arg2,(wxPoint const &)*arg3,arg4,arg5,arg6);
18064 wxPyEndAllowThreads(__tstate);
18065 if (PyErr_Occurred()) SWIG_fail;
18066 }
18067 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
18068 return resultobj;
18069fail:
18070 return NULL;
d55e5bfc 18071}
1bd55598
RD
18072
18073
18074SWIGINTERN PyObject *_wrap_Image_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18075 PyObject *resultobj = 0;
18076 wxImage *arg1 = (wxImage *) 0 ;
18077 SwigValueWrapper<wxImage > result;
18078 void *argp1 = 0 ;
18079 int res1 = 0 ;
18080 PyObject *swig_obj[1] ;
18081
18082 if (!args) SWIG_fail;
18083 swig_obj[0] = args;
18084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18085 if (!SWIG_IsOK(res1)) {
18086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Copy" "', expected argument " "1"" of type '" "wxImage *""'");
18087 }
18088 arg1 = reinterpret_cast< wxImage * >(argp1);
18089 {
18090 PyThreadState* __tstate = wxPyBeginAllowThreads();
18091 result = (arg1)->Copy();
18092 wxPyEndAllowThreads(__tstate);
18093 if (PyErr_Occurred()) SWIG_fail;
18094 }
18095 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
18096 return resultobj;
18097fail:
18098 return NULL;
18099}
18100
18101
18102SWIGINTERN PyObject *_wrap_Image_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18103 PyObject *resultobj = 0;
18104 wxImage *arg1 = (wxImage *) 0 ;
18105 wxImage *arg2 = 0 ;
18106 int arg3 ;
18107 int arg4 ;
18108 void *argp1 = 0 ;
18109 int res1 = 0 ;
18110 void *argp2 = 0 ;
18111 int res2 = 0 ;
18112 int val3 ;
18113 int ecode3 = 0 ;
18114 int val4 ;
18115 int ecode4 = 0 ;
18116 PyObject * obj0 = 0 ;
18117 PyObject * obj1 = 0 ;
18118 PyObject * obj2 = 0 ;
18119 PyObject * obj3 = 0 ;
18120 char * kwnames[] = {
18121 (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL
18122 };
18123
18124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18126 if (!SWIG_IsOK(res1)) {
18127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Paste" "', expected argument " "1"" of type '" "wxImage *""'");
18128 }
18129 arg1 = reinterpret_cast< wxImage * >(argp1);
18130 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0);
18131 if (!SWIG_IsOK(res2)) {
18132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Image_Paste" "', expected argument " "2"" of type '" "wxImage const &""'");
18133 }
18134 if (!argp2) {
18135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Image_Paste" "', expected argument " "2"" of type '" "wxImage const &""'");
18136 }
18137 arg2 = reinterpret_cast< wxImage * >(argp2);
18138 ecode3 = SWIG_AsVal_int(obj2, &val3);
18139 if (!SWIG_IsOK(ecode3)) {
18140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_Paste" "', expected argument " "3"" of type '" "int""'");
18141 }
18142 arg3 = static_cast< int >(val3);
18143 ecode4 = SWIG_AsVal_int(obj3, &val4);
18144 if (!SWIG_IsOK(ecode4)) {
18145 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Paste" "', expected argument " "4"" of type '" "int""'");
18146 }
18147 arg4 = static_cast< int >(val4);
18148 {
18149 PyThreadState* __tstate = wxPyBeginAllowThreads();
18150 (arg1)->Paste((wxImage const &)*arg2,arg3,arg4);
18151 wxPyEndAllowThreads(__tstate);
18152 if (PyErr_Occurred()) SWIG_fail;
18153 }
18154 resultobj = SWIG_Py_Void();
18155 return resultobj;
18156fail:
18157 return NULL;
d55e5bfc
RD
18158}
18159
18160
1bd55598
RD
18161SWIGINTERN PyObject *_wrap_Image_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18162 PyObject *resultobj = 0;
18163 wxImage *arg1 = (wxImage *) 0 ;
18164 PyObject *result = 0 ;
18165 void *argp1 = 0 ;
18166 int res1 = 0 ;
18167 PyObject *swig_obj[1] ;
18168
18169 if (!args) SWIG_fail;
18170 swig_obj[0] = args;
18171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18172 if (!SWIG_IsOK(res1)) {
18173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetData" "', expected argument " "1"" of type '" "wxImage *""'");
18174 }
18175 arg1 = reinterpret_cast< wxImage * >(argp1);
18176 {
18177 PyThreadState* __tstate = wxPyBeginAllowThreads();
18178 result = (PyObject *)wxImage_GetData(arg1);
18179 wxPyEndAllowThreads(__tstate);
18180 if (PyErr_Occurred()) SWIG_fail;
18181 }
18182 resultobj = result;
18183 return resultobj;
18184fail:
18185 return NULL;
18186}
18187
18188
18189SWIGINTERN PyObject *_wrap_Image_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18190 PyObject *resultobj = 0;
18191 wxImage *arg1 = (wxImage *) 0 ;
18192 buffer arg2 ;
18193 int arg3 ;
18194 void *argp1 = 0 ;
18195 int res1 = 0 ;
8c9c423b 18196 Py_ssize_t temp2 ;
1bd55598
RD
18197 PyObject * obj0 = 0 ;
18198 PyObject * obj1 = 0 ;
18199 char * kwnames[] = {
18200 (char *) "self",(char *) "data", NULL
18201 };
18202
18203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
18204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18205 if (!SWIG_IsOK(res1)) {
18206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetData" "', expected argument " "1"" of type '" "wxImage *""'");
18207 }
18208 arg1 = reinterpret_cast< wxImage * >(argp1);
18209 {
8c9c423b
RD
18210 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
18211 arg3 = (int)temp2;
1bd55598
RD
18212 }
18213 {
18214 PyThreadState* __tstate = wxPyBeginAllowThreads();
18215 wxImage_SetData(arg1,arg2,arg3);
18216 wxPyEndAllowThreads(__tstate);
18217 if (PyErr_Occurred()) SWIG_fail;
18218 }
18219 resultobj = SWIG_Py_Void();
18220 return resultobj;
18221fail:
18222 return NULL;
d55e5bfc
RD
18223}
18224
18225
1bd55598
RD
18226SWIGINTERN PyObject *_wrap_Image_GetDataBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18227 PyObject *resultobj = 0;
18228 wxImage *arg1 = (wxImage *) 0 ;
18229 PyObject *result = 0 ;
18230 void *argp1 = 0 ;
18231 int res1 = 0 ;
18232 PyObject *swig_obj[1] ;
18233
18234 if (!args) SWIG_fail;
18235 swig_obj[0] = args;
18236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18237 if (!SWIG_IsOK(res1)) {
18238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetDataBuffer" "', expected argument " "1"" of type '" "wxImage *""'");
18239 }
18240 arg1 = reinterpret_cast< wxImage * >(argp1);
18241 {
18242 PyThreadState* __tstate = wxPyBeginAllowThreads();
18243 result = (PyObject *)wxImage_GetDataBuffer(arg1);
18244 wxPyEndAllowThreads(__tstate);
18245 if (PyErr_Occurred()) SWIG_fail;
18246 }
18247 resultobj = result;
18248 return resultobj;
18249fail:
18250 return NULL;
18251}
18252
18253
18254SWIGINTERN PyObject *_wrap_Image_SetDataBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18255 PyObject *resultobj = 0;
18256 wxImage *arg1 = (wxImage *) 0 ;
18257 buffer arg2 ;
18258 int arg3 ;
18259 void *argp1 = 0 ;
18260 int res1 = 0 ;
8c9c423b 18261 Py_ssize_t temp2 ;
1bd55598
RD
18262 PyObject * obj0 = 0 ;
18263 PyObject * obj1 = 0 ;
18264 char * kwnames[] = {
18265 (char *) "self",(char *) "data", NULL
18266 };
18267
18268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
18269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18270 if (!SWIG_IsOK(res1)) {
18271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetDataBuffer" "', expected argument " "1"" of type '" "wxImage *""'");
18272 }
18273 arg1 = reinterpret_cast< wxImage * >(argp1);
18274 {
8c9c423b
RD
18275 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
18276 arg3 = (int)temp2;
1bd55598
RD
18277 }
18278 {
18279 PyThreadState* __tstate = wxPyBeginAllowThreads();
18280 wxImage_SetDataBuffer(arg1,arg2,arg3);
18281 wxPyEndAllowThreads(__tstate);
18282 if (PyErr_Occurred()) SWIG_fail;
18283 }
18284 resultobj = SWIG_Py_Void();
18285 return resultobj;
18286fail:
18287 return NULL;
d55e5bfc
RD
18288}
18289
18290
1bd55598
RD
18291SWIGINTERN PyObject *_wrap_Image_GetAlphaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18292 PyObject *resultobj = 0;
18293 wxImage *arg1 = (wxImage *) 0 ;
18294 PyObject *result = 0 ;
18295 void *argp1 = 0 ;
18296 int res1 = 0 ;
18297 PyObject *swig_obj[1] ;
18298
18299 if (!args) SWIG_fail;
18300 swig_obj[0] = args;
18301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18302 if (!SWIG_IsOK(res1)) {
18303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetAlphaData" "', expected argument " "1"" of type '" "wxImage *""'");
18304 }
18305 arg1 = reinterpret_cast< wxImage * >(argp1);
18306 {
18307 PyThreadState* __tstate = wxPyBeginAllowThreads();
18308 result = (PyObject *)wxImage_GetAlphaData(arg1);
18309 wxPyEndAllowThreads(__tstate);
18310 if (PyErr_Occurred()) SWIG_fail;
18311 }
18312 resultobj = result;
18313 return resultobj;
18314fail:
18315 return NULL;
18316}
18317
18318
18319SWIGINTERN PyObject *_wrap_Image_SetAlphaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18320 PyObject *resultobj = 0;
18321 wxImage *arg1 = (wxImage *) 0 ;
18322 buffer arg2 ;
18323 int arg3 ;
18324 void *argp1 = 0 ;
18325 int res1 = 0 ;
8c9c423b 18326 Py_ssize_t temp2 ;
1bd55598
RD
18327 PyObject * obj0 = 0 ;
18328 PyObject * obj1 = 0 ;
18329 char * kwnames[] = {
18330 (char *) "self",(char *) "alpha", NULL
18331 };
18332
18333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) SWIG_fail;
18334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18335 if (!SWIG_IsOK(res1)) {
18336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetAlphaData" "', expected argument " "1"" of type '" "wxImage *""'");
18337 }
18338 arg1 = reinterpret_cast< wxImage * >(argp1);
18339 {
fc46b7f3 18340 if (obj1 != Py_None) {
8c9c423b
RD
18341 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
18342 arg3 = (int)temp2;
fc46b7f3 18343 }
1bd55598
RD
18344 }
18345 {
18346 PyThreadState* __tstate = wxPyBeginAllowThreads();
18347 wxImage_SetAlphaData(arg1,arg2,arg3);
18348 wxPyEndAllowThreads(__tstate);
18349 if (PyErr_Occurred()) SWIG_fail;
18350 }
18351 resultobj = SWIG_Py_Void();
18352 return resultobj;
18353fail:
18354 return NULL;
d55e5bfc
RD
18355}
18356
18357
1bd55598
RD
18358SWIGINTERN PyObject *_wrap_Image_GetAlphaBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18359 PyObject *resultobj = 0;
18360 wxImage *arg1 = (wxImage *) 0 ;
18361 PyObject *result = 0 ;
18362 void *argp1 = 0 ;
18363 int res1 = 0 ;
18364 PyObject *swig_obj[1] ;
18365
18366 if (!args) SWIG_fail;
18367 swig_obj[0] = args;
18368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18369 if (!SWIG_IsOK(res1)) {
18370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetAlphaBuffer" "', expected argument " "1"" of type '" "wxImage *""'");
18371 }
18372 arg1 = reinterpret_cast< wxImage * >(argp1);
18373 {
18374 PyThreadState* __tstate = wxPyBeginAllowThreads();
18375 result = (PyObject *)wxImage_GetAlphaBuffer(arg1);
18376 wxPyEndAllowThreads(__tstate);
18377 if (PyErr_Occurred()) SWIG_fail;
18378 }
18379 resultobj = result;
18380 return resultobj;
18381fail:
18382 return NULL;
18383}
18384
18385
18386SWIGINTERN PyObject *_wrap_Image_SetAlphaBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18387 PyObject *resultobj = 0;
18388 wxImage *arg1 = (wxImage *) 0 ;
18389 buffer arg2 ;
18390 int arg3 ;
18391 void *argp1 = 0 ;
18392 int res1 = 0 ;
8c9c423b 18393 Py_ssize_t temp2 ;
1bd55598
RD
18394 PyObject * obj0 = 0 ;
18395 PyObject * obj1 = 0 ;
18396 char * kwnames[] = {
18397 (char *) "self",(char *) "alpha", NULL
18398 };
18399
18400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
18401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18402 if (!SWIG_IsOK(res1)) {
18403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetAlphaBuffer" "', expected argument " "1"" of type '" "wxImage *""'");
18404 }
18405 arg1 = reinterpret_cast< wxImage * >(argp1);
18406 {
fc46b7f3 18407 if (obj1 != Py_None) {
8c9c423b
RD
18408 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
18409 arg3 = (int)temp2;
fc46b7f3 18410 }
1bd55598
RD
18411 }
18412 {
18413 PyThreadState* __tstate = wxPyBeginAllowThreads();
18414 wxImage_SetAlphaBuffer(arg1,arg2,arg3);
18415 wxPyEndAllowThreads(__tstate);
18416 if (PyErr_Occurred()) SWIG_fail;
18417 }
18418 resultobj = SWIG_Py_Void();
18419 return resultobj;
18420fail:
18421 return NULL;
18422}
18423
18424
18425SWIGINTERN PyObject *_wrap_Image_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18426 PyObject *resultobj = 0;
18427 wxImage *arg1 = (wxImage *) 0 ;
18428 byte arg2 ;
18429 byte arg3 ;
18430 byte arg4 ;
18431 void *argp1 = 0 ;
18432 int res1 = 0 ;
18433 unsigned char val2 ;
18434 int ecode2 = 0 ;
18435 unsigned char val3 ;
18436 int ecode3 = 0 ;
18437 unsigned char val4 ;
18438 int ecode4 = 0 ;
18439 PyObject * obj0 = 0 ;
18440 PyObject * obj1 = 0 ;
18441 PyObject * obj2 = 0 ;
18442 PyObject * obj3 = 0 ;
18443 char * kwnames[] = {
18444 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
18445 };
18446
18447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18449 if (!SWIG_IsOK(res1)) {
18450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetMaskColour" "', expected argument " "1"" of type '" "wxImage *""'");
18451 }
18452 arg1 = reinterpret_cast< wxImage * >(argp1);
18453 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
18454 if (!SWIG_IsOK(ecode2)) {
18455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_SetMaskColour" "', expected argument " "2"" of type '" "byte""'");
18456 }
18457 arg2 = static_cast< byte >(val2);
18458 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
18459 if (!SWIG_IsOK(ecode3)) {
18460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetMaskColour" "', expected argument " "3"" of type '" "byte""'");
18461 }
18462 arg3 = static_cast< byte >(val3);
18463 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
18464 if (!SWIG_IsOK(ecode4)) {
18465 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_SetMaskColour" "', expected argument " "4"" of type '" "byte""'");
18466 }
18467 arg4 = static_cast< byte >(val4);
18468 {
18469 PyThreadState* __tstate = wxPyBeginAllowThreads();
18470 (arg1)->SetMaskColour(arg2,arg3,arg4);
18471 wxPyEndAllowThreads(__tstate);
18472 if (PyErr_Occurred()) SWIG_fail;
18473 }
18474 resultobj = SWIG_Py_Void();
18475 return resultobj;
18476fail:
18477 return NULL;
18478}
18479
18480
18481SWIGINTERN PyObject *_wrap_Image_GetOrFindMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18482 PyObject *resultobj = 0;
18483 wxImage *arg1 = (wxImage *) 0 ;
18484 byte *arg2 = (byte *) 0 ;
18485 byte *arg3 = (byte *) 0 ;
18486 byte *arg4 = (byte *) 0 ;
18487 void *argp1 = 0 ;
18488 int res1 = 0 ;
18489 byte temp2 ;
18490 int res2 = SWIG_TMPOBJ ;
18491 byte temp3 ;
18492 int res3 = SWIG_TMPOBJ ;
18493 byte temp4 ;
18494 int res4 = SWIG_TMPOBJ ;
18495 PyObject *swig_obj[1] ;
18496
18497 arg2 = &temp2;
18498 arg3 = &temp3;
18499 arg4 = &temp4;
18500 if (!args) SWIG_fail;
18501 swig_obj[0] = args;
18502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18503 if (!SWIG_IsOK(res1)) {
18504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetOrFindMaskColour" "', expected argument " "1"" of type '" "wxImage const *""'");
18505 }
18506 arg1 = reinterpret_cast< wxImage * >(argp1);
18507 {
18508 PyThreadState* __tstate = wxPyBeginAllowThreads();
18509 ((wxImage const *)arg1)->GetOrFindMaskColour(arg2,arg3,arg4);
18510 wxPyEndAllowThreads(__tstate);
18511 if (PyErr_Occurred()) SWIG_fail;
18512 }
18513 resultobj = SWIG_Py_Void();
18514 if (SWIG_IsTmpObj(res2)) {
18515 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg2)));
18516 } else {
18517 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18518 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags));
18519 }
18520 if (SWIG_IsTmpObj(res3)) {
18521 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
18522 } else {
18523 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18524 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
18525 }
18526 if (SWIG_IsTmpObj(res4)) {
18527 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
18528 } else {
18529 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18530 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
18531 }
18532 return resultobj;
18533fail:
18534 return NULL;
d55e5bfc
RD
18535}
18536
18537
1bd55598
RD
18538SWIGINTERN PyObject *_wrap_Image_GetMaskRed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18539 PyObject *resultobj = 0;
18540 wxImage *arg1 = (wxImage *) 0 ;
18541 byte result;
18542 void *argp1 = 0 ;
18543 int res1 = 0 ;
18544 PyObject *swig_obj[1] ;
18545
18546 if (!args) SWIG_fail;
18547 swig_obj[0] = args;
18548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18549 if (!SWIG_IsOK(res1)) {
18550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetMaskRed" "', expected argument " "1"" of type '" "wxImage *""'");
18551 }
18552 arg1 = reinterpret_cast< wxImage * >(argp1);
18553 {
18554 PyThreadState* __tstate = wxPyBeginAllowThreads();
18555 result = (byte)(arg1)->GetMaskRed();
18556 wxPyEndAllowThreads(__tstate);
18557 if (PyErr_Occurred()) SWIG_fail;
18558 }
18559 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
18560 return resultobj;
18561fail:
18562 return NULL;
d55e5bfc
RD
18563}
18564
18565
1bd55598
RD
18566SWIGINTERN PyObject *_wrap_Image_GetMaskGreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18567 PyObject *resultobj = 0;
18568 wxImage *arg1 = (wxImage *) 0 ;
18569 byte result;
18570 void *argp1 = 0 ;
18571 int res1 = 0 ;
18572 PyObject *swig_obj[1] ;
18573
18574 if (!args) SWIG_fail;
18575 swig_obj[0] = args;
18576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18577 if (!SWIG_IsOK(res1)) {
18578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetMaskGreen" "', expected argument " "1"" of type '" "wxImage *""'");
18579 }
18580 arg1 = reinterpret_cast< wxImage * >(argp1);
18581 {
18582 PyThreadState* __tstate = wxPyBeginAllowThreads();
18583 result = (byte)(arg1)->GetMaskGreen();
18584 wxPyEndAllowThreads(__tstate);
18585 if (PyErr_Occurred()) SWIG_fail;
18586 }
18587 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
18588 return resultobj;
18589fail:
18590 return NULL;
d55e5bfc
RD
18591}
18592
18593
1bd55598
RD
18594SWIGINTERN PyObject *_wrap_Image_GetMaskBlue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18595 PyObject *resultobj = 0;
18596 wxImage *arg1 = (wxImage *) 0 ;
18597 byte result;
18598 void *argp1 = 0 ;
18599 int res1 = 0 ;
18600 PyObject *swig_obj[1] ;
18601
18602 if (!args) SWIG_fail;
18603 swig_obj[0] = args;
18604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18605 if (!SWIG_IsOK(res1)) {
18606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetMaskBlue" "', expected argument " "1"" of type '" "wxImage *""'");
18607 }
18608 arg1 = reinterpret_cast< wxImage * >(argp1);
18609 {
18610 PyThreadState* __tstate = wxPyBeginAllowThreads();
18611 result = (byte)(arg1)->GetMaskBlue();
18612 wxPyEndAllowThreads(__tstate);
18613 if (PyErr_Occurred()) SWIG_fail;
18614 }
18615 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
18616 return resultobj;
18617fail:
18618 return NULL;
18619}
18620
18621
18622SWIGINTERN PyObject *_wrap_Image_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18623 PyObject *resultobj = 0;
18624 wxImage *arg1 = (wxImage *) 0 ;
18625 bool arg2 = (bool) true ;
18626 void *argp1 = 0 ;
18627 int res1 = 0 ;
18628 bool val2 ;
18629 int ecode2 = 0 ;
18630 PyObject * obj0 = 0 ;
18631 PyObject * obj1 = 0 ;
18632 char * kwnames[] = {
18633 (char *) "self",(char *) "mask", NULL
18634 };
18635
18636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
18637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18638 if (!SWIG_IsOK(res1)) {
18639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetMask" "', expected argument " "1"" of type '" "wxImage *""'");
18640 }
18641 arg1 = reinterpret_cast< wxImage * >(argp1);
18642 if (obj1) {
18643 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18644 if (!SWIG_IsOK(ecode2)) {
18645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_SetMask" "', expected argument " "2"" of type '" "bool""'");
18646 }
18647 arg2 = static_cast< bool >(val2);
18648 }
18649 {
18650 PyThreadState* __tstate = wxPyBeginAllowThreads();
18651 (arg1)->SetMask(arg2);
18652 wxPyEndAllowThreads(__tstate);
18653 if (PyErr_Occurred()) SWIG_fail;
18654 }
18655 resultobj = SWIG_Py_Void();
18656 return resultobj;
18657fail:
18658 return NULL;
d55e5bfc
RD
18659}
18660
18661
1bd55598
RD
18662SWIGINTERN PyObject *_wrap_Image_HasMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18663 PyObject *resultobj = 0;
18664 wxImage *arg1 = (wxImage *) 0 ;
18665 bool result;
18666 void *argp1 = 0 ;
18667 int res1 = 0 ;
18668 PyObject *swig_obj[1] ;
18669
18670 if (!args) SWIG_fail;
18671 swig_obj[0] = args;
18672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18673 if (!SWIG_IsOK(res1)) {
18674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HasMask" "', expected argument " "1"" of type '" "wxImage *""'");
18675 }
18676 arg1 = reinterpret_cast< wxImage * >(argp1);
18677 {
18678 PyThreadState* __tstate = wxPyBeginAllowThreads();
18679 result = (bool)(arg1)->HasMask();
18680 wxPyEndAllowThreads(__tstate);
18681 if (PyErr_Occurred()) SWIG_fail;
18682 }
18683 {
18684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18685 }
18686 return resultobj;
18687fail:
18688 return NULL;
18689}
18690
18691
18692SWIGINTERN PyObject *_wrap_Image_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18693 PyObject *resultobj = 0;
18694 wxImage *arg1 = (wxImage *) 0 ;
18695 double arg2 ;
18696 wxPoint *arg3 = 0 ;
18697 bool arg4 = (bool) true ;
18698 wxPoint *arg5 = (wxPoint *) NULL ;
18699 SwigValueWrapper<wxImage > result;
18700 void *argp1 = 0 ;
18701 int res1 = 0 ;
18702 double val2 ;
18703 int ecode2 = 0 ;
18704 wxPoint temp3 ;
18705 bool val4 ;
18706 int ecode4 = 0 ;
18707 void *argp5 = 0 ;
18708 int res5 = 0 ;
18709 PyObject * obj0 = 0 ;
18710 PyObject * obj1 = 0 ;
18711 PyObject * obj2 = 0 ;
18712 PyObject * obj3 = 0 ;
18713 PyObject * obj4 = 0 ;
18714 char * kwnames[] = {
18715 (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL
18716 };
18717
18718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18720 if (!SWIG_IsOK(res1)) {
18721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Rotate" "', expected argument " "1"" of type '" "wxImage const *""'");
18722 }
18723 arg1 = reinterpret_cast< wxImage * >(argp1);
18724 ecode2 = SWIG_AsVal_double(obj1, &val2);
18725 if (!SWIG_IsOK(ecode2)) {
18726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Rotate" "', expected argument " "2"" of type '" "double""'");
18727 }
18728 arg2 = static_cast< double >(val2);
18729 {
18730 arg3 = &temp3;
18731 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18732 }
18733 if (obj3) {
18734 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18735 if (!SWIG_IsOK(ecode4)) {
18736 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Rotate" "', expected argument " "4"" of type '" "bool""'");
18737 }
18738 arg4 = static_cast< bool >(val4);
18739 }
18740 if (obj4) {
18741 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxPoint, 0 | 0 );
18742 if (!SWIG_IsOK(res5)) {
18743 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Image_Rotate" "', expected argument " "5"" of type '" "wxPoint *""'");
d55e5bfc 18744 }
1bd55598
RD
18745 arg5 = reinterpret_cast< wxPoint * >(argp5);
18746 }
18747 {
18748 PyThreadState* __tstate = wxPyBeginAllowThreads();
18749 result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5);
18750 wxPyEndAllowThreads(__tstate);
18751 if (PyErr_Occurred()) SWIG_fail;
18752 }
18753 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
18754 return resultobj;
18755fail:
18756 return NULL;
18757}
18758
18759
18760SWIGINTERN PyObject *_wrap_Image_Rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18761 PyObject *resultobj = 0;
18762 wxImage *arg1 = (wxImage *) 0 ;
18763 bool arg2 = (bool) true ;
18764 SwigValueWrapper<wxImage > result;
18765 void *argp1 = 0 ;
18766 int res1 = 0 ;
18767 bool val2 ;
18768 int ecode2 = 0 ;
18769 PyObject * obj0 = 0 ;
18770 PyObject * obj1 = 0 ;
18771 char * kwnames[] = {
18772 (char *) "self",(char *) "clockwise", NULL
18773 };
18774
18775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) SWIG_fail;
18776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18777 if (!SWIG_IsOK(res1)) {
18778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Rotate90" "', expected argument " "1"" of type '" "wxImage *""'");
18779 }
18780 arg1 = reinterpret_cast< wxImage * >(argp1);
18781 if (obj1) {
18782 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18783 if (!SWIG_IsOK(ecode2)) {
18784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Rotate90" "', expected argument " "2"" of type '" "bool""'");
18785 }
18786 arg2 = static_cast< bool >(val2);
18787 }
18788 {
18789 PyThreadState* __tstate = wxPyBeginAllowThreads();
18790 result = (arg1)->Rotate90(arg2);
18791 wxPyEndAllowThreads(__tstate);
18792 if (PyErr_Occurred()) SWIG_fail;
18793 }
18794 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
18795 return resultobj;
18796fail:
18797 return NULL;
18798}
18799
18800
18801SWIGINTERN PyObject *_wrap_Image_Mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18802 PyObject *resultobj = 0;
18803 wxImage *arg1 = (wxImage *) 0 ;
18804 bool arg2 = (bool) true ;
18805 SwigValueWrapper<wxImage > result;
18806 void *argp1 = 0 ;
18807 int res1 = 0 ;
18808 bool val2 ;
18809 int ecode2 = 0 ;
18810 PyObject * obj0 = 0 ;
18811 PyObject * obj1 = 0 ;
18812 char * kwnames[] = {
18813 (char *) "self",(char *) "horizontally", NULL
18814 };
18815
18816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) SWIG_fail;
18817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18818 if (!SWIG_IsOK(res1)) {
18819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Mirror" "', expected argument " "1"" of type '" "wxImage *""'");
18820 }
18821 arg1 = reinterpret_cast< wxImage * >(argp1);
18822 if (obj1) {
18823 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18824 if (!SWIG_IsOK(ecode2)) {
18825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Mirror" "', expected argument " "2"" of type '" "bool""'");
18826 }
18827 arg2 = static_cast< bool >(val2);
18828 }
18829 {
18830 PyThreadState* __tstate = wxPyBeginAllowThreads();
18831 result = (arg1)->Mirror(arg2);
18832 wxPyEndAllowThreads(__tstate);
18833 if (PyErr_Occurred()) SWIG_fail;
18834 }
18835 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
18836 return resultobj;
18837fail:
18838 return NULL;
18839}
18840
18841
18842SWIGINTERN PyObject *_wrap_Image_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18843 PyObject *resultobj = 0;
18844 wxImage *arg1 = (wxImage *) 0 ;
18845 byte arg2 ;
18846 byte arg3 ;
18847 byte arg4 ;
18848 byte arg5 ;
18849 byte arg6 ;
18850 byte arg7 ;
18851 void *argp1 = 0 ;
18852 int res1 = 0 ;
18853 unsigned char val2 ;
18854 int ecode2 = 0 ;
18855 unsigned char val3 ;
18856 int ecode3 = 0 ;
18857 unsigned char val4 ;
18858 int ecode4 = 0 ;
18859 unsigned char val5 ;
18860 int ecode5 = 0 ;
18861 unsigned char val6 ;
18862 int ecode6 = 0 ;
18863 unsigned char val7 ;
18864 int ecode7 = 0 ;
18865 PyObject * obj0 = 0 ;
18866 PyObject * obj1 = 0 ;
18867 PyObject * obj2 = 0 ;
18868 PyObject * obj3 = 0 ;
18869 PyObject * obj4 = 0 ;
18870 PyObject * obj5 = 0 ;
18871 PyObject * obj6 = 0 ;
18872 char * kwnames[] = {
18873 (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL
18874 };
18875
18876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18878 if (!SWIG_IsOK(res1)) {
18879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Replace" "', expected argument " "1"" of type '" "wxImage *""'");
18880 }
18881 arg1 = reinterpret_cast< wxImage * >(argp1);
18882 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
18883 if (!SWIG_IsOK(ecode2)) {
18884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Replace" "', expected argument " "2"" of type '" "byte""'");
18885 }
18886 arg2 = static_cast< byte >(val2);
18887 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
18888 if (!SWIG_IsOK(ecode3)) {
18889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_Replace" "', expected argument " "3"" of type '" "byte""'");
18890 }
18891 arg3 = static_cast< byte >(val3);
18892 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
18893 if (!SWIG_IsOK(ecode4)) {
18894 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Replace" "', expected argument " "4"" of type '" "byte""'");
18895 }
18896 arg4 = static_cast< byte >(val4);
18897 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
18898 if (!SWIG_IsOK(ecode5)) {
18899 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_Replace" "', expected argument " "5"" of type '" "byte""'");
18900 }
18901 arg5 = static_cast< byte >(val5);
18902 ecode6 = SWIG_AsVal_unsigned_SS_char(obj5, &val6);
18903 if (!SWIG_IsOK(ecode6)) {
18904 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Image_Replace" "', expected argument " "6"" of type '" "byte""'");
18905 }
18906 arg6 = static_cast< byte >(val6);
18907 ecode7 = SWIG_AsVal_unsigned_SS_char(obj6, &val7);
18908 if (!SWIG_IsOK(ecode7)) {
18909 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Image_Replace" "', expected argument " "7"" of type '" "byte""'");
18910 }
18911 arg7 = static_cast< byte >(val7);
18912 {
18913 PyThreadState* __tstate = wxPyBeginAllowThreads();
18914 (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7);
18915 wxPyEndAllowThreads(__tstate);
18916 if (PyErr_Occurred()) SWIG_fail;
18917 }
18918 resultobj = SWIG_Py_Void();
18919 return resultobj;
18920fail:
18921 return NULL;
18922}
18923
18924
18925SWIGINTERN PyObject *_wrap_Image_ConvertToGreyscale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18926 PyObject *resultobj = 0;
18927 wxImage *arg1 = (wxImage *) 0 ;
18928 double arg2 = (double) 0.299 ;
18929 double arg3 = (double) 0.587 ;
18930 double arg4 = (double) 0.114 ;
18931 SwigValueWrapper<wxImage > result;
18932 void *argp1 = 0 ;
18933 int res1 = 0 ;
18934 double val2 ;
18935 int ecode2 = 0 ;
18936 double val3 ;
18937 int ecode3 = 0 ;
18938 double val4 ;
18939 int ecode4 = 0 ;
18940 PyObject * obj0 = 0 ;
18941 PyObject * obj1 = 0 ;
18942 PyObject * obj2 = 0 ;
18943 PyObject * obj3 = 0 ;
18944 char * kwnames[] = {
18945 (char *) "self",(char *) "lr",(char *) "lg",(char *) "lb", NULL
18946 };
18947
18948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_ConvertToGreyscale",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18950 if (!SWIG_IsOK(res1)) {
18951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertToGreyscale" "', expected argument " "1"" of type '" "wxImage const *""'");
18952 }
18953 arg1 = reinterpret_cast< wxImage * >(argp1);
18954 if (obj1) {
18955 ecode2 = SWIG_AsVal_double(obj1, &val2);
18956 if (!SWIG_IsOK(ecode2)) {
18957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertToGreyscale" "', expected argument " "2"" of type '" "double""'");
18958 }
18959 arg2 = static_cast< double >(val2);
18960 }
18961 if (obj2) {
18962 ecode3 = SWIG_AsVal_double(obj2, &val3);
18963 if (!SWIG_IsOK(ecode3)) {
18964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ConvertToGreyscale" "', expected argument " "3"" of type '" "double""'");
18965 }
18966 arg3 = static_cast< double >(val3);
18967 }
18968 if (obj3) {
18969 ecode4 = SWIG_AsVal_double(obj3, &val4);
18970 if (!SWIG_IsOK(ecode4)) {
18971 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_ConvertToGreyscale" "', expected argument " "4"" of type '" "double""'");
18972 }
18973 arg4 = static_cast< double >(val4);
18974 }
18975 {
18976 PyThreadState* __tstate = wxPyBeginAllowThreads();
18977 result = ((wxImage const *)arg1)->ConvertToGreyscale(arg2,arg3,arg4);
18978 wxPyEndAllowThreads(__tstate);
18979 if (PyErr_Occurred()) SWIG_fail;
18980 }
18981 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
18982 return resultobj;
18983fail:
18984 return NULL;
18985}
18986
18987
18988SWIGINTERN PyObject *_wrap_Image_ConvertToMono(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18989 PyObject *resultobj = 0;
18990 wxImage *arg1 = (wxImage *) 0 ;
18991 byte arg2 ;
18992 byte arg3 ;
18993 byte arg4 ;
18994 SwigValueWrapper<wxImage > result;
18995 void *argp1 = 0 ;
18996 int res1 = 0 ;
18997 unsigned char val2 ;
18998 int ecode2 = 0 ;
18999 unsigned char val3 ;
19000 int ecode3 = 0 ;
19001 unsigned char val4 ;
19002 int ecode4 = 0 ;
19003 PyObject * obj0 = 0 ;
19004 PyObject * obj1 = 0 ;
19005 PyObject * obj2 = 0 ;
19006 PyObject * obj3 = 0 ;
19007 char * kwnames[] = {
19008 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
19009 };
19010
19011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19013 if (!SWIG_IsOK(res1)) {
19014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertToMono" "', expected argument " "1"" of type '" "wxImage const *""'");
19015 }
19016 arg1 = reinterpret_cast< wxImage * >(argp1);
19017 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
19018 if (!SWIG_IsOK(ecode2)) {
19019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertToMono" "', expected argument " "2"" of type '" "byte""'");
19020 }
19021 arg2 = static_cast< byte >(val2);
19022 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
19023 if (!SWIG_IsOK(ecode3)) {
19024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ConvertToMono" "', expected argument " "3"" of type '" "byte""'");
19025 }
19026 arg3 = static_cast< byte >(val3);
19027 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
19028 if (!SWIG_IsOK(ecode4)) {
19029 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_ConvertToMono" "', expected argument " "4"" of type '" "byte""'");
19030 }
19031 arg4 = static_cast< byte >(val4);
19032 {
19033 PyThreadState* __tstate = wxPyBeginAllowThreads();
19034 result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4);
19035 wxPyEndAllowThreads(__tstate);
19036 if (PyErr_Occurred()) SWIG_fail;
19037 }
19038 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
19039 return resultobj;
19040fail:
19041 return NULL;
19042}
19043
19044
19045SWIGINTERN PyObject *_wrap_Image_SetOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19046 PyObject *resultobj = 0;
19047 wxImage *arg1 = (wxImage *) 0 ;
19048 wxString *arg2 = 0 ;
19049 wxString *arg3 = 0 ;
19050 void *argp1 = 0 ;
19051 int res1 = 0 ;
19052 bool temp2 = false ;
19053 bool temp3 = false ;
19054 PyObject * obj0 = 0 ;
19055 PyObject * obj1 = 0 ;
19056 PyObject * obj2 = 0 ;
19057 char * kwnames[] = {
19058 (char *) "self",(char *) "name",(char *) "value", NULL
19059 };
19060
19061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19063 if (!SWIG_IsOK(res1)) {
19064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetOption" "', expected argument " "1"" of type '" "wxImage *""'");
19065 }
19066 arg1 = reinterpret_cast< wxImage * >(argp1);
19067 {
19068 arg2 = wxString_in_helper(obj1);
19069 if (arg2 == NULL) SWIG_fail;
19070 temp2 = true;
19071 }
19072 {
19073 arg3 = wxString_in_helper(obj2);
19074 if (arg3 == NULL) SWIG_fail;
19075 temp3 = true;
19076 }
19077 {
19078 PyThreadState* __tstate = wxPyBeginAllowThreads();
19079 (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3);
19080 wxPyEndAllowThreads(__tstate);
19081 if (PyErr_Occurred()) SWIG_fail;
19082 }
19083 resultobj = SWIG_Py_Void();
19084 {
19085 if (temp2)
19086 delete arg2;
19087 }
19088 {
19089 if (temp3)
19090 delete arg3;
19091 }
19092 return resultobj;
19093fail:
19094 {
19095 if (temp2)
19096 delete arg2;
19097 }
19098 {
19099 if (temp3)
19100 delete arg3;
19101 }
19102 return NULL;
19103}
19104
19105
19106SWIGINTERN PyObject *_wrap_Image_SetOptionInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19107 PyObject *resultobj = 0;
19108 wxImage *arg1 = (wxImage *) 0 ;
19109 wxString *arg2 = 0 ;
19110 int arg3 ;
19111 void *argp1 = 0 ;
19112 int res1 = 0 ;
19113 bool temp2 = false ;
19114 int val3 ;
19115 int ecode3 = 0 ;
19116 PyObject * obj0 = 0 ;
19117 PyObject * obj1 = 0 ;
19118 PyObject * obj2 = 0 ;
19119 char * kwnames[] = {
19120 (char *) "self",(char *) "name",(char *) "value", NULL
19121 };
19122
19123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19125 if (!SWIG_IsOK(res1)) {
19126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetOptionInt" "', expected argument " "1"" of type '" "wxImage *""'");
19127 }
19128 arg1 = reinterpret_cast< wxImage * >(argp1);
19129 {
19130 arg2 = wxString_in_helper(obj1);
19131 if (arg2 == NULL) SWIG_fail;
19132 temp2 = true;
19133 }
19134 ecode3 = SWIG_AsVal_int(obj2, &val3);
19135 if (!SWIG_IsOK(ecode3)) {
19136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetOptionInt" "', expected argument " "3"" of type '" "int""'");
19137 }
19138 arg3 = static_cast< int >(val3);
19139 {
19140 PyThreadState* __tstate = wxPyBeginAllowThreads();
19141 (arg1)->SetOption((wxString const &)*arg2,arg3);
19142 wxPyEndAllowThreads(__tstate);
19143 if (PyErr_Occurred()) SWIG_fail;
19144 }
19145 resultobj = SWIG_Py_Void();
19146 {
19147 if (temp2)
19148 delete arg2;
19149 }
19150 return resultobj;
19151fail:
19152 {
19153 if (temp2)
19154 delete arg2;
19155 }
19156 return NULL;
19157}
19158
19159
19160SWIGINTERN PyObject *_wrap_Image_GetOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19161 PyObject *resultobj = 0;
19162 wxImage *arg1 = (wxImage *) 0 ;
19163 wxString *arg2 = 0 ;
19164 wxString result;
19165 void *argp1 = 0 ;
19166 int res1 = 0 ;
19167 bool temp2 = false ;
19168 PyObject * obj0 = 0 ;
19169 PyObject * obj1 = 0 ;
19170 char * kwnames[] = {
19171 (char *) "self",(char *) "name", NULL
19172 };
19173
19174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) SWIG_fail;
19175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19176 if (!SWIG_IsOK(res1)) {
19177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetOption" "', expected argument " "1"" of type '" "wxImage const *""'");
19178 }
19179 arg1 = reinterpret_cast< wxImage * >(argp1);
19180 {
19181 arg2 = wxString_in_helper(obj1);
19182 if (arg2 == NULL) SWIG_fail;
19183 temp2 = true;
19184 }
19185 {
19186 PyThreadState* __tstate = wxPyBeginAllowThreads();
19187 result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2);
19188 wxPyEndAllowThreads(__tstate);
19189 if (PyErr_Occurred()) SWIG_fail;
19190 }
19191 {
d55e5bfc 19192#if wxUSE_UNICODE
1bd55598 19193 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 19194#else
1bd55598 19195 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 19196#endif
1bd55598
RD
19197 }
19198 {
19199 if (temp2)
19200 delete arg2;
19201 }
19202 return resultobj;
19203fail:
19204 {
19205 if (temp2)
19206 delete arg2;
19207 }
19208 return NULL;
19209}
19210
19211
19212SWIGINTERN PyObject *_wrap_Image_GetOptionInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19213 PyObject *resultobj = 0;
19214 wxImage *arg1 = (wxImage *) 0 ;
19215 wxString *arg2 = 0 ;
19216 int result;
19217 void *argp1 = 0 ;
19218 int res1 = 0 ;
19219 bool temp2 = false ;
19220 PyObject * obj0 = 0 ;
19221 PyObject * obj1 = 0 ;
19222 char * kwnames[] = {
19223 (char *) "self",(char *) "name", NULL
19224 };
19225
19226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) SWIG_fail;
19227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19228 if (!SWIG_IsOK(res1)) {
19229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetOptionInt" "', expected argument " "1"" of type '" "wxImage const *""'");
19230 }
19231 arg1 = reinterpret_cast< wxImage * >(argp1);
19232 {
19233 arg2 = wxString_in_helper(obj1);
19234 if (arg2 == NULL) SWIG_fail;
19235 temp2 = true;
19236 }
19237 {
19238 PyThreadState* __tstate = wxPyBeginAllowThreads();
19239 result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2);
19240 wxPyEndAllowThreads(__tstate);
19241 if (PyErr_Occurred()) SWIG_fail;
19242 }
19243 resultobj = SWIG_From_int(static_cast< int >(result));
19244 {
19245 if (temp2)
19246 delete arg2;
19247 }
19248 return resultobj;
19249fail:
19250 {
19251 if (temp2)
19252 delete arg2;
19253 }
19254 return NULL;
19255}
19256
19257
19258SWIGINTERN PyObject *_wrap_Image_HasOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19259 PyObject *resultobj = 0;
19260 wxImage *arg1 = (wxImage *) 0 ;
19261 wxString *arg2 = 0 ;
19262 bool result;
19263 void *argp1 = 0 ;
19264 int res1 = 0 ;
19265 bool temp2 = false ;
19266 PyObject * obj0 = 0 ;
19267 PyObject * obj1 = 0 ;
19268 char * kwnames[] = {
19269 (char *) "self",(char *) "name", NULL
19270 };
19271
19272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) SWIG_fail;
19273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19274 if (!SWIG_IsOK(res1)) {
19275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HasOption" "', expected argument " "1"" of type '" "wxImage const *""'");
19276 }
19277 arg1 = reinterpret_cast< wxImage * >(argp1);
19278 {
19279 arg2 = wxString_in_helper(obj1);
19280 if (arg2 == NULL) SWIG_fail;
19281 temp2 = true;
19282 }
19283 {
19284 PyThreadState* __tstate = wxPyBeginAllowThreads();
19285 result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2);
19286 wxPyEndAllowThreads(__tstate);
19287 if (PyErr_Occurred()) SWIG_fail;
19288 }
19289 {
19290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19291 }
19292 {
19293 if (temp2)
19294 delete arg2;
19295 }
19296 return resultobj;
19297fail:
19298 {
19299 if (temp2)
19300 delete arg2;
19301 }
19302 return NULL;
19303}
19304
19305
19306SWIGINTERN PyObject *_wrap_Image_CountColours(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19307 PyObject *resultobj = 0;
19308 wxImage *arg1 = (wxImage *) 0 ;
19309 unsigned long arg2 = (unsigned long) (unsigned long) -1 ;
19310 unsigned long result;
19311 void *argp1 = 0 ;
19312 int res1 = 0 ;
19313 unsigned long val2 ;
19314 int ecode2 = 0 ;
19315 PyObject * obj0 = 0 ;
19316 PyObject * obj1 = 0 ;
19317 char * kwnames[] = {
19318 (char *) "self",(char *) "stopafter", NULL
19319 };
19320
19321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) SWIG_fail;
19322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19323 if (!SWIG_IsOK(res1)) {
19324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_CountColours" "', expected argument " "1"" of type '" "wxImage *""'");
19325 }
19326 arg1 = reinterpret_cast< wxImage * >(argp1);
19327 if (obj1) {
19328 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
19329 if (!SWIG_IsOK(ecode2)) {
19330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_CountColours" "', expected argument " "2"" of type '" "unsigned long""'");
19331 }
19332 arg2 = static_cast< unsigned long >(val2);
19333 }
19334 {
19335 PyThreadState* __tstate = wxPyBeginAllowThreads();
19336 result = (unsigned long)(arg1)->CountColours(arg2);
19337 wxPyEndAllowThreads(__tstate);
19338 if (PyErr_Occurred()) SWIG_fail;
19339 }
19340 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
19341 return resultobj;
19342fail:
19343 return NULL;
19344}
19345
19346
19347SWIGINTERN PyObject *_wrap_Image_ComputeHistogram(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19348 PyObject *resultobj = 0;
19349 wxImage *arg1 = (wxImage *) 0 ;
19350 wxImageHistogram *arg2 = 0 ;
19351 unsigned long result;
19352 void *argp1 = 0 ;
19353 int res1 = 0 ;
19354 void *argp2 = 0 ;
19355 int res2 = 0 ;
19356 PyObject * obj0 = 0 ;
19357 PyObject * obj1 = 0 ;
19358 char * kwnames[] = {
19359 (char *) "self",(char *) "h", NULL
19360 };
19361
19362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) SWIG_fail;
19363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19364 if (!SWIG_IsOK(res1)) {
19365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ComputeHistogram" "', expected argument " "1"" of type '" "wxImage *""'");
19366 }
19367 arg1 = reinterpret_cast< wxImage * >(argp1);
19368 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImageHistogram, 0 );
19369 if (!SWIG_IsOK(res2)) {
19370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Image_ComputeHistogram" "', expected argument " "2"" of type '" "wxImageHistogram &""'");
19371 }
19372 if (!argp2) {
19373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Image_ComputeHistogram" "', expected argument " "2"" of type '" "wxImageHistogram &""'");
19374 }
19375 arg2 = reinterpret_cast< wxImageHistogram * >(argp2);
19376 {
19377 PyThreadState* __tstate = wxPyBeginAllowThreads();
19378 result = (unsigned long)(arg1)->ComputeHistogram(*arg2);
19379 wxPyEndAllowThreads(__tstate);
19380 if (PyErr_Occurred()) SWIG_fail;
19381 }
19382 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
19383 return resultobj;
19384fail:
19385 return NULL;
d55e5bfc
RD
19386}
19387
19388
1bd55598
RD
19389SWIGINTERN PyObject *_wrap_Image_AddHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19390 PyObject *resultobj = 0;
19391 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
19392 void *argp1 = 0 ;
19393 int res1 = 0 ;
19394 PyObject * obj0 = 0 ;
19395 char * kwnames[] = {
19396 (char *) "handler", NULL
19397 };
19398
19399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) SWIG_fail;
19400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
19401 if (!SWIG_IsOK(res1)) {
19402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_AddHandler" "', expected argument " "1"" of type '" "wxImageHandler *""'");
19403 }
19404 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
19405 {
19406 PyThreadState* __tstate = wxPyBeginAllowThreads();
19407 wxImage::AddHandler(arg1);
19408 wxPyEndAllowThreads(__tstate);
19409 if (PyErr_Occurred()) SWIG_fail;
19410 }
19411 resultobj = SWIG_Py_Void();
19412 return resultobj;
19413fail:
19414 return NULL;
d55e5bfc
RD
19415}
19416
19417
1bd55598
RD
19418SWIGINTERN PyObject *_wrap_Image_InsertHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19419 PyObject *resultobj = 0;
19420 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
19421 void *argp1 = 0 ;
19422 int res1 = 0 ;
19423 PyObject * obj0 = 0 ;
19424 char * kwnames[] = {
19425 (char *) "handler", NULL
19426 };
19427
19428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) SWIG_fail;
19429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
19430 if (!SWIG_IsOK(res1)) {
19431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_InsertHandler" "', expected argument " "1"" of type '" "wxImageHandler *""'");
19432 }
19433 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
19434 {
19435 PyThreadState* __tstate = wxPyBeginAllowThreads();
19436 wxImage::InsertHandler(arg1);
19437 wxPyEndAllowThreads(__tstate);
19438 if (PyErr_Occurred()) SWIG_fail;
19439 }
19440 resultobj = SWIG_Py_Void();
19441 return resultobj;
19442fail:
19443 return NULL;
d55e5bfc
RD
19444}
19445
19446
1bd55598
RD
19447SWIGINTERN PyObject *_wrap_Image_RemoveHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19448 PyObject *resultobj = 0;
19449 wxString *arg1 = 0 ;
19450 bool result;
19451 bool temp1 = false ;
19452 PyObject * obj0 = 0 ;
19453 char * kwnames[] = {
19454 (char *) "name", NULL
19455 };
19456
19457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) SWIG_fail;
19458 {
19459 arg1 = wxString_in_helper(obj0);
19460 if (arg1 == NULL) SWIG_fail;
19461 temp1 = true;
19462 }
19463 {
19464 PyThreadState* __tstate = wxPyBeginAllowThreads();
19465 result = (bool)wxImage::RemoveHandler((wxString const &)*arg1);
19466 wxPyEndAllowThreads(__tstate);
19467 if (PyErr_Occurred()) SWIG_fail;
19468 }
19469 {
19470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19471 }
19472 {
19473 if (temp1)
19474 delete arg1;
19475 }
19476 return resultobj;
19477fail:
19478 {
19479 if (temp1)
19480 delete arg1;
19481 }
19482 return NULL;
d55e5bfc
RD
19483}
19484
19485
1bd55598
RD
19486SWIGINTERN PyObject *_wrap_Image_GetHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19487 PyObject *resultobj = 0;
19488 PyObject *result = 0 ;
19489
19490 if (!SWIG_Python_UnpackTuple(args,"Image_GetHandlers",0,0,0)) SWIG_fail;
19491 {
19492 PyThreadState* __tstate = wxPyBeginAllowThreads();
19493 result = (PyObject *)wxImage_GetHandlers();
19494 wxPyEndAllowThreads(__tstate);
19495 if (PyErr_Occurred()) SWIG_fail;
19496 }
19497 resultobj = result;
19498 return resultobj;
19499fail:
19500 return NULL;
19501}
19502
19503
19504SWIGINTERN PyObject *_wrap_Image_GetImageExtWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19505 PyObject *resultobj = 0;
19506 wxString result;
19507
19508 if (!SWIG_Python_UnpackTuple(args,"Image_GetImageExtWildcard",0,0,0)) SWIG_fail;
19509 {
19510 PyThreadState* __tstate = wxPyBeginAllowThreads();
19511 result = wxImage::GetImageExtWildcard();
19512 wxPyEndAllowThreads(__tstate);
19513 if (PyErr_Occurred()) SWIG_fail;
19514 }
19515 {
d55e5bfc 19516#if wxUSE_UNICODE
1bd55598 19517 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 19518#else
1bd55598 19519 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 19520#endif
1bd55598
RD
19521 }
19522 return resultobj;
19523fail:
19524 return NULL;
19525}
19526
19527
19528SWIGINTERN PyObject *_wrap_Image_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19529 PyObject *resultobj = 0;
19530 wxImage *arg1 = (wxImage *) 0 ;
19531 int arg2 = (int) -1 ;
19532 wxBitmap result;
19533 void *argp1 = 0 ;
19534 int res1 = 0 ;
19535 int val2 ;
19536 int ecode2 = 0 ;
19537 PyObject * obj0 = 0 ;
19538 PyObject * obj1 = 0 ;
19539 char * kwnames[] = {
19540 (char *) "self",(char *) "depth", NULL
19541 };
19542
19543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertToBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19545 if (!SWIG_IsOK(res1)) {
19546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertToBitmap" "', expected argument " "1"" of type '" "wxImage *""'");
19547 }
19548 arg1 = reinterpret_cast< wxImage * >(argp1);
19549 if (obj1) {
19550 ecode2 = SWIG_AsVal_int(obj1, &val2);
19551 if (!SWIG_IsOK(ecode2)) {
19552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertToBitmap" "', expected argument " "2"" of type '" "int""'");
19553 }
19554 arg2 = static_cast< int >(val2);
19555 }
19556 {
19557 if (!wxPyCheckForApp()) SWIG_fail;
19558 PyThreadState* __tstate = wxPyBeginAllowThreads();
19559 result = wxImage_ConvertToBitmap(arg1,arg2);
19560 wxPyEndAllowThreads(__tstate);
19561 if (PyErr_Occurred()) SWIG_fail;
19562 }
19563 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19564 return resultobj;
19565fail:
19566 return NULL;
19567}
19568
19569
19570SWIGINTERN PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19571 PyObject *resultobj = 0;
19572 wxImage *arg1 = (wxImage *) 0 ;
19573 byte arg2 ;
19574 byte arg3 ;
19575 byte arg4 ;
19576 wxBitmap result;
19577 void *argp1 = 0 ;
19578 int res1 = 0 ;
19579 unsigned char val2 ;
19580 int ecode2 = 0 ;
19581 unsigned char val3 ;
19582 int ecode3 = 0 ;
19583 unsigned char val4 ;
19584 int ecode4 = 0 ;
19585 PyObject * obj0 = 0 ;
19586 PyObject * obj1 = 0 ;
19587 PyObject * obj2 = 0 ;
19588 PyObject * obj3 = 0 ;
19589 char * kwnames[] = {
19590 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
19591 };
19592
19593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19595 if (!SWIG_IsOK(res1)) {
19596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertToMonoBitmap" "', expected argument " "1"" of type '" "wxImage *""'");
19597 }
19598 arg1 = reinterpret_cast< wxImage * >(argp1);
19599 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
19600 if (!SWIG_IsOK(ecode2)) {
19601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertToMonoBitmap" "', expected argument " "2"" of type '" "byte""'");
19602 }
19603 arg2 = static_cast< byte >(val2);
19604 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
19605 if (!SWIG_IsOK(ecode3)) {
19606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ConvertToMonoBitmap" "', expected argument " "3"" of type '" "byte""'");
19607 }
19608 arg3 = static_cast< byte >(val3);
19609 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
19610 if (!SWIG_IsOK(ecode4)) {
19611 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_ConvertToMonoBitmap" "', expected argument " "4"" of type '" "byte""'");
19612 }
19613 arg4 = static_cast< byte >(val4);
19614 {
19615 if (!wxPyCheckForApp()) SWIG_fail;
19616 PyThreadState* __tstate = wxPyBeginAllowThreads();
19617 result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4);
19618 wxPyEndAllowThreads(__tstate);
19619 if (PyErr_Occurred()) SWIG_fail;
19620 }
19621 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19622 return resultobj;
19623fail:
19624 return NULL;
19625}
19626
19627
19628SWIGINTERN PyObject *_wrap_Image_RotateHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19629 PyObject *resultobj = 0;
19630 wxImage *arg1 = (wxImage *) 0 ;
19631 double arg2 ;
19632 void *argp1 = 0 ;
19633 int res1 = 0 ;
19634 double val2 ;
19635 int ecode2 = 0 ;
19636 PyObject * obj0 = 0 ;
19637 PyObject * obj1 = 0 ;
19638 char * kwnames[] = {
19639 (char *) "self",(char *) "angle", NULL
19640 };
19641
19642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_RotateHue",kwnames,&obj0,&obj1)) SWIG_fail;
19643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19644 if (!SWIG_IsOK(res1)) {
19645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RotateHue" "', expected argument " "1"" of type '" "wxImage *""'");
19646 }
19647 arg1 = reinterpret_cast< wxImage * >(argp1);
19648 ecode2 = SWIG_AsVal_double(obj1, &val2);
19649 if (!SWIG_IsOK(ecode2)) {
19650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_RotateHue" "', expected argument " "2"" of type '" "double""'");
19651 }
19652 arg2 = static_cast< double >(val2);
19653 {
19654 PyThreadState* __tstate = wxPyBeginAllowThreads();
19655 (arg1)->RotateHue(arg2);
19656 wxPyEndAllowThreads(__tstate);
19657 if (PyErr_Occurred()) SWIG_fail;
19658 }
19659 resultobj = SWIG_Py_Void();
19660 return resultobj;
19661fail:
19662 return NULL;
19663}
19664
19665
19666SWIGINTERN PyObject *_wrap_Image_RGBtoHSV(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19667 PyObject *resultobj = 0;
19668 wxImage_RGBValue arg1 ;
19669 wxImage_HSVValue result;
19670 void *argp1 ;
19671 int res1 = 0 ;
19672 PyObject * obj0 = 0 ;
19673 char * kwnames[] = {
19674 (char *) "rgb", NULL
19675 };
19676
19677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RGBtoHSV",kwnames,&obj0)) SWIG_fail;
19678 {
19679 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage_RGBValue, 0 | 0);
19680 if (!SWIG_IsOK(res1)) {
19681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBtoHSV" "', expected argument " "1"" of type '" "wxImage_RGBValue""'");
19682 }
19683 if (!argp1) {
19684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Image_RGBtoHSV" "', expected argument " "1"" of type '" "wxImage_RGBValue""'");
19685 } else {
19686 wxImage_RGBValue * temp = reinterpret_cast< wxImage_RGBValue * >(argp1);
19687 arg1 = *temp;
19688 if (SWIG_IsNewObj(res1)) delete temp;
d55e5bfc 19689 }
1bd55598
RD
19690 }
19691 {
19692 PyThreadState* __tstate = wxPyBeginAllowThreads();
19693 result = wxImage::RGBtoHSV(arg1);
19694 wxPyEndAllowThreads(__tstate);
19695 if (PyErr_Occurred()) SWIG_fail;
19696 }
19697 resultobj = SWIG_NewPointerObj((new wxImage_HSVValue(static_cast< const wxImage_HSVValue& >(result))), SWIGTYPE_p_wxImage_HSVValue, SWIG_POINTER_OWN | 0 );
19698 return resultobj;
19699fail:
19700 return NULL;
19701}
19702
19703
19704SWIGINTERN PyObject *_wrap_Image_HSVtoRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19705 PyObject *resultobj = 0;
19706 wxImage_HSVValue arg1 ;
19707 wxImage_RGBValue result;
19708 void *argp1 ;
19709 int res1 = 0 ;
19710 PyObject * obj0 = 0 ;
19711 char * kwnames[] = {
19712 (char *) "hsv", NULL
19713 };
19714
19715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HSVtoRGB",kwnames,&obj0)) SWIG_fail;
19716 {
19717 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage_HSVValue, 0 | 0);
19718 if (!SWIG_IsOK(res1)) {
19719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVtoRGB" "', expected argument " "1"" of type '" "wxImage_HSVValue""'");
19720 }
19721 if (!argp1) {
19722 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Image_HSVtoRGB" "', expected argument " "1"" of type '" "wxImage_HSVValue""'");
19723 } else {
19724 wxImage_HSVValue * temp = reinterpret_cast< wxImage_HSVValue * >(argp1);
19725 arg1 = *temp;
19726 if (SWIG_IsNewObj(res1)) delete temp;
d55e5bfc 19727 }
1bd55598
RD
19728 }
19729 {
19730 PyThreadState* __tstate = wxPyBeginAllowThreads();
19731 result = wxImage::HSVtoRGB(arg1);
19732 wxPyEndAllowThreads(__tstate);
19733 if (PyErr_Occurred()) SWIG_fail;
19734 }
19735 resultobj = SWIG_NewPointerObj((new wxImage_RGBValue(static_cast< const wxImage_RGBValue& >(result))), SWIGTYPE_p_wxImage_RGBValue, SWIG_POINTER_OWN | 0 );
19736 return resultobj;
19737fail:
19738 return NULL;
d55e5bfc
RD
19739}
19740
19741
1bd55598
RD
19742SWIGINTERN PyObject *Image_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19743 PyObject *obj;
19744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19745 SWIG_TypeNewClientData(SWIGTYPE_p_wxImage, SWIG_NewClientData(obj));
19746 return SWIG_Py_Void();
d55e5bfc 19747}
1bd55598
RD
19748
19749SWIGINTERN PyObject *Image_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19750 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
19751}
19752
fc46b7f3
RD
19753SWIGINTERN PyObject *_wrap__ImageFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19754 PyObject *resultobj = 0;
19755 int arg1 ;
19756 int arg2 ;
19757 buffer arg3 ;
19758 int arg4 ;
19759 buffer arg5 = (buffer) NULL ;
19760 int arg6 = (int) 0 ;
19761 wxImage *result = 0 ;
19762 int val1 ;
19763 int ecode1 = 0 ;
19764 int val2 ;
19765 int ecode2 = 0 ;
8c9c423b
RD
19766 Py_ssize_t temp3 ;
19767 Py_ssize_t temp5 ;
fc46b7f3
RD
19768 PyObject * obj0 = 0 ;
19769 PyObject * obj1 = 0 ;
19770 PyObject * obj2 = 0 ;
19771 PyObject * obj3 = 0 ;
19772 char * kwnames[] = {
19773 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
19774 };
19775
19776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:_ImageFromBuffer",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19777 ecode1 = SWIG_AsVal_int(obj0, &val1);
19778 if (!SWIG_IsOK(ecode1)) {
19779 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_ImageFromBuffer" "', expected argument " "1"" of type '" "int""'");
19780 }
19781 arg1 = static_cast< int >(val1);
19782 ecode2 = SWIG_AsVal_int(obj1, &val2);
19783 if (!SWIG_IsOK(ecode2)) {
19784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_ImageFromBuffer" "', expected argument " "2"" of type '" "int""'");
19785 }
19786 arg2 = static_cast< int >(val2);
19787 {
8c9c423b
RD
19788 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
19789 arg4 = (int)temp3;
fc46b7f3
RD
19790 }
19791 if (obj3) {
19792 {
19793 if (obj3 != Py_None) {
8c9c423b
RD
19794 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
19795 arg6 = (int)temp5;
fc46b7f3
RD
19796 }
19797 }
19798 }
19799 {
19800 PyThreadState* __tstate = wxPyBeginAllowThreads();
19801 result = (wxImage *)_ImageFromBuffer(arg1,arg2,arg3,arg4,arg5,arg6);
19802 wxPyEndAllowThreads(__tstate);
19803 if (PyErr_Occurred()) SWIG_fail;
19804 }
19805 {
19806 resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
19807 }
19808 return resultobj;
19809fail:
19810 return NULL;
19811}
19812
19813
1bd55598
RD
19814SWIGINTERN int NullImage_set(PyObject *) {
19815 SWIG_Error(SWIG_AttributeError,"Variable NullImage is read-only.");
19816 return 1;
19817}
d55e5bfc 19818
1bd55598
RD
19819
19820SWIGINTERN PyObject *NullImage_get(void) {
19821 PyObject *pyobj = 0;
19822
19823 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullImage), SWIGTYPE_p_wxImage, 0 );
19824 return pyobj;
d55e5bfc
RD
19825}
19826
19827
1bd55598
RD
19828SWIGINTERN int IMAGE_OPTION_FILENAME_set(PyObject *) {
19829 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_FILENAME is read-only.");
19830 return 1;
d55e5bfc
RD
19831}
19832
19833
1bd55598
RD
19834SWIGINTERN PyObject *IMAGE_OPTION_FILENAME_get(void) {
19835 PyObject *pyobj = 0;
19836
19837 {
d55e5bfc 19838#if wxUSE_UNICODE
1bd55598 19839 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_FILENAME)->c_str(), (&wxPyIMAGE_OPTION_FILENAME)->Len());
d55e5bfc 19840#else
1bd55598 19841 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_FILENAME)->c_str(), (&wxPyIMAGE_OPTION_FILENAME)->Len());
d55e5bfc 19842#endif
1bd55598
RD
19843 }
19844 return pyobj;
d55e5bfc
RD
19845}
19846
19847
1bd55598
RD
19848SWIGINTERN int IMAGE_OPTION_BMP_FORMAT_set(PyObject *) {
19849 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only.");
19850 return 1;
d55e5bfc
RD
19851}
19852
19853
1bd55598
RD
19854SWIGINTERN PyObject *IMAGE_OPTION_BMP_FORMAT_get(void) {
19855 PyObject *pyobj = 0;
19856
19857 {
d55e5bfc 19858#if wxUSE_UNICODE
1bd55598 19859 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
d55e5bfc 19860#else
1bd55598 19861 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
d55e5bfc 19862#endif
1bd55598
RD
19863 }
19864 return pyobj;
d55e5bfc
RD
19865}
19866
19867
1bd55598
RD
19868SWIGINTERN int IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) {
19869 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only.");
19870 return 1;
19871}
19872
19873
19874SWIGINTERN PyObject *IMAGE_OPTION_CUR_HOTSPOT_X_get(void) {
19875 PyObject *pyobj = 0;
19876
19877 {
d55e5bfc 19878#if wxUSE_UNICODE
1bd55598 19879 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
d55e5bfc 19880#else
1bd55598 19881 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
d55e5bfc 19882#endif
1bd55598
RD
19883 }
19884 return pyobj;
d55e5bfc
RD
19885}
19886
19887
1bd55598
RD
19888SWIGINTERN int IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) {
19889 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only.");
19890 return 1;
d55e5bfc
RD
19891}
19892
19893
1bd55598
RD
19894SWIGINTERN PyObject *IMAGE_OPTION_CUR_HOTSPOT_Y_get(void) {
19895 PyObject *pyobj = 0;
19896
19897 {
19898#if wxUSE_UNICODE
19899 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
19900#else
19901 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
19902#endif
19903 }
19904 return pyobj;
d55e5bfc
RD
19905}
19906
19907
1bd55598
RD
19908SWIGINTERN int IMAGE_OPTION_RESOLUTION_set(PyObject *) {
19909 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_RESOLUTION is read-only.");
19910 return 1;
19911}
19912
19913
19914SWIGINTERN PyObject *IMAGE_OPTION_RESOLUTION_get(void) {
19915 PyObject *pyobj = 0;
19916
19917 {
d55e5bfc 19918#if wxUSE_UNICODE
1bd55598 19919 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
d55e5bfc 19920#else
1bd55598 19921 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
d55e5bfc 19922#endif
1bd55598
RD
19923 }
19924 return pyobj;
d55e5bfc
RD
19925}
19926
19927
1bd55598
RD
19928SWIGINTERN int IMAGE_OPTION_RESOLUTIONX_set(PyObject *) {
19929 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_RESOLUTIONX is read-only.");
19930 return 1;
19931}
19932
19933
19934SWIGINTERN PyObject *IMAGE_OPTION_RESOLUTIONX_get(void) {
19935 PyObject *pyobj = 0;
19936
19937 {
d55e5bfc 19938#if wxUSE_UNICODE
1bd55598 19939 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONX)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONX)->Len());
d55e5bfc 19940#else
1bd55598 19941 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONX)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONX)->Len());
d55e5bfc 19942#endif
1bd55598
RD
19943 }
19944 return pyobj;
d55e5bfc
RD
19945}
19946
19947
1bd55598
RD
19948SWIGINTERN int IMAGE_OPTION_RESOLUTIONY_set(PyObject *) {
19949 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_RESOLUTIONY is read-only.");
19950 return 1;
d55e5bfc
RD
19951}
19952
19953
1bd55598
RD
19954SWIGINTERN PyObject *IMAGE_OPTION_RESOLUTIONY_get(void) {
19955 PyObject *pyobj = 0;
19956
19957 {
19958#if wxUSE_UNICODE
19959 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONY)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONY)->Len());
19960#else
19961 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONY)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONY)->Len());
19962#endif
19963 }
19964 return pyobj;
d55e5bfc
RD
19965}
19966
19967
1bd55598
RD
19968SWIGINTERN int IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) {
19969 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only.");
19970 return 1;
d55e5bfc
RD
19971}
19972
19973
1bd55598
RD
19974SWIGINTERN PyObject *IMAGE_OPTION_RESOLUTIONUNIT_get(void) {
19975 PyObject *pyobj = 0;
19976
19977 {
19978#if wxUSE_UNICODE
19979 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
19980#else
19981 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
19982#endif
19983 }
19984 return pyobj;
d55e5bfc 19985}
1bd55598
RD
19986
19987
19988SWIGINTERN int IMAGE_OPTION_QUALITY_set(PyObject *) {
19989 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_QUALITY is read-only.");
19990 return 1;
d55e5bfc
RD
19991}
19992
19993
1bd55598
RD
19994SWIGINTERN PyObject *IMAGE_OPTION_QUALITY_get(void) {
19995 PyObject *pyobj = 0;
19996
19997 {
19998#if wxUSE_UNICODE
19999 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_QUALITY)->c_str(), (&wxPyIMAGE_OPTION_QUALITY)->Len());
20000#else
20001 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_QUALITY)->c_str(), (&wxPyIMAGE_OPTION_QUALITY)->Len());
20002#endif
20003 }
20004 return pyobj;
d55e5bfc
RD
20005}
20006
20007
1bd55598
RD
20008SWIGINTERN int IMAGE_OPTION_BITSPERSAMPLE_set(PyObject *) {
20009 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_BITSPERSAMPLE is read-only.");
20010 return 1;
d55e5bfc
RD
20011}
20012
20013
1bd55598
RD
20014SWIGINTERN PyObject *IMAGE_OPTION_BITSPERSAMPLE_get(void) {
20015 PyObject *pyobj = 0;
20016
20017 {
d55e5bfc 20018#if wxUSE_UNICODE
1bd55598 20019 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BITSPERSAMPLE)->c_str(), (&wxPyIMAGE_OPTION_BITSPERSAMPLE)->Len());
d55e5bfc 20020#else
1bd55598 20021 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BITSPERSAMPLE)->c_str(), (&wxPyIMAGE_OPTION_BITSPERSAMPLE)->Len());
d55e5bfc 20022#endif
1bd55598
RD
20023 }
20024 return pyobj;
d55e5bfc
RD
20025}
20026
20027
1bd55598
RD
20028SWIGINTERN int IMAGE_OPTION_SAMPLESPERPIXEL_set(PyObject *) {
20029 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_SAMPLESPERPIXEL is read-only.");
20030 return 1;
20031}
20032
20033
20034SWIGINTERN PyObject *IMAGE_OPTION_SAMPLESPERPIXEL_get(void) {
20035 PyObject *pyobj = 0;
20036
20037 {
d55e5bfc 20038#if wxUSE_UNICODE
1bd55598 20039 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->c_str(), (&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->Len());
d55e5bfc 20040#else
1bd55598 20041 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->c_str(), (&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->Len());
d55e5bfc 20042#endif
1bd55598
RD
20043 }
20044 return pyobj;
d55e5bfc
RD
20045}
20046
20047
1bd55598
RD
20048SWIGINTERN int IMAGE_OPTION_COMPRESSION_set(PyObject *) {
20049 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_COMPRESSION is read-only.");
20050 return 1;
d55e5bfc
RD
20051}
20052
20053
1bd55598
RD
20054SWIGINTERN PyObject *IMAGE_OPTION_COMPRESSION_get(void) {
20055 PyObject *pyobj = 0;
20056
20057 {
20058#if wxUSE_UNICODE
20059 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_COMPRESSION)->c_str(), (&wxPyIMAGE_OPTION_COMPRESSION)->Len());
20060#else
20061 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_COMPRESSION)->c_str(), (&wxPyIMAGE_OPTION_COMPRESSION)->Len());
20062#endif
20063 }
20064 return pyobj;
d55e5bfc
RD
20065}
20066
20067
1bd55598
RD
20068SWIGINTERN int IMAGE_OPTION_IMAGEDESCRIPTOR_set(PyObject *) {
20069 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_IMAGEDESCRIPTOR is read-only.");
20070 return 1;
d55e5bfc
RD
20071}
20072
20073
1bd55598
RD
20074SWIGINTERN PyObject *IMAGE_OPTION_IMAGEDESCRIPTOR_get(void) {
20075 PyObject *pyobj = 0;
20076
20077 {
20078#if wxUSE_UNICODE
20079 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->c_str(), (&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->Len());
20080#else
20081 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->c_str(), (&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->Len());
20082#endif
20083 }
20084 return pyobj;
d55e5bfc
RD
20085}
20086
20087
1bd55598
RD
20088SWIGINTERN int IMAGE_OPTION_PNG_FORMAT_set(PyObject *) {
20089 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_PNG_FORMAT is read-only.");
20090 return 1;
d55e5bfc
RD
20091}
20092
20093
1bd55598
RD
20094SWIGINTERN PyObject *IMAGE_OPTION_PNG_FORMAT_get(void) {
20095 PyObject *pyobj = 0;
20096
20097 {
20098#if wxUSE_UNICODE
20099 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_PNG_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_PNG_FORMAT)->Len());
20100#else
20101 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_PNG_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_PNG_FORMAT)->Len());
20102#endif
20103 }
20104 return pyobj;
d55e5bfc
RD
20105}
20106
20107
1bd55598
RD
20108SWIGINTERN int IMAGE_OPTION_PNG_BITDEPTH_set(PyObject *) {
20109 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_PNG_BITDEPTH is read-only.");
20110 return 1;
d55e5bfc
RD
20111}
20112
20113
1bd55598
RD
20114SWIGINTERN PyObject *IMAGE_OPTION_PNG_BITDEPTH_get(void) {
20115 PyObject *pyobj = 0;
20116
20117 {
d55e5bfc 20118#if wxUSE_UNICODE
1bd55598 20119 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_PNG_BITDEPTH)->c_str(), (&wxPyIMAGE_OPTION_PNG_BITDEPTH)->Len());
d55e5bfc 20120#else
1bd55598 20121 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_PNG_BITDEPTH)->c_str(), (&wxPyIMAGE_OPTION_PNG_BITDEPTH)->Len());
d55e5bfc 20122#endif
1bd55598
RD
20123 }
20124 return pyobj;
d55e5bfc
RD
20125}
20126
20127
1bd55598
RD
20128SWIGINTERN PyObject *_wrap_new_BMPHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20129 PyObject *resultobj = 0;
20130 wxBMPHandler *result = 0 ;
20131
20132 if (!SWIG_Python_UnpackTuple(args,"new_BMPHandler",0,0,0)) SWIG_fail;
20133 {
20134 PyThreadState* __tstate = wxPyBeginAllowThreads();
20135 result = (wxBMPHandler *)new wxBMPHandler();
20136 wxPyEndAllowThreads(__tstate);
20137 if (PyErr_Occurred()) SWIG_fail;
20138 }
20139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBMPHandler, SWIG_POINTER_NEW | 0 );
20140 return resultobj;
20141fail:
20142 return NULL;
d55e5bfc
RD
20143}
20144
20145
1bd55598
RD
20146SWIGINTERN PyObject *BMPHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20147 PyObject *obj;
20148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20149 SWIG_TypeNewClientData(SWIGTYPE_p_wxBMPHandler, SWIG_NewClientData(obj));
20150 return SWIG_Py_Void();
d55e5bfc 20151}
1bd55598
RD
20152
20153SWIGINTERN PyObject *BMPHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20154 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
20155}
20156
1bd55598
RD
20157SWIGINTERN PyObject *_wrap_new_ICOHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20158 PyObject *resultobj = 0;
20159 wxICOHandler *result = 0 ;
20160
20161 if (!SWIG_Python_UnpackTuple(args,"new_ICOHandler",0,0,0)) SWIG_fail;
20162 {
20163 PyThreadState* __tstate = wxPyBeginAllowThreads();
20164 result = (wxICOHandler *)new wxICOHandler();
20165 wxPyEndAllowThreads(__tstate);
20166 if (PyErr_Occurred()) SWIG_fail;
20167 }
20168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxICOHandler, SWIG_POINTER_NEW | 0 );
20169 return resultobj;
20170fail:
20171 return NULL;
20172}
d55e5bfc 20173
1bd55598
RD
20174
20175SWIGINTERN PyObject *ICOHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20176 PyObject *obj;
20177 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20178 SWIG_TypeNewClientData(SWIGTYPE_p_wxICOHandler, SWIG_NewClientData(obj));
20179 return SWIG_Py_Void();
d55e5bfc
RD
20180}
20181
1bd55598
RD
20182SWIGINTERN PyObject *ICOHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20183 return SWIG_Python_InitShadowInstance(args);
20184}
d55e5bfc 20185
1bd55598
RD
20186SWIGINTERN PyObject *_wrap_new_CURHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20187 PyObject *resultobj = 0;
20188 wxCURHandler *result = 0 ;
20189
20190 if (!SWIG_Python_UnpackTuple(args,"new_CURHandler",0,0,0)) SWIG_fail;
20191 {
20192 PyThreadState* __tstate = wxPyBeginAllowThreads();
20193 result = (wxCURHandler *)new wxCURHandler();
20194 wxPyEndAllowThreads(__tstate);
20195 if (PyErr_Occurred()) SWIG_fail;
20196 }
20197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCURHandler, SWIG_POINTER_NEW | 0 );
20198 return resultobj;
20199fail:
20200 return NULL;
d55e5bfc
RD
20201}
20202
20203
1bd55598
RD
20204SWIGINTERN PyObject *CURHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20205 PyObject *obj;
20206 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20207 SWIG_TypeNewClientData(SWIGTYPE_p_wxCURHandler, SWIG_NewClientData(obj));
20208 return SWIG_Py_Void();
d55e5bfc
RD
20209}
20210
1bd55598
RD
20211SWIGINTERN PyObject *CURHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20212 return SWIG_Python_InitShadowInstance(args);
20213}
d55e5bfc 20214
1bd55598
RD
20215SWIGINTERN PyObject *_wrap_new_ANIHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20216 PyObject *resultobj = 0;
20217 wxANIHandler *result = 0 ;
20218
20219 if (!SWIG_Python_UnpackTuple(args,"new_ANIHandler",0,0,0)) SWIG_fail;
20220 {
20221 PyThreadState* __tstate = wxPyBeginAllowThreads();
20222 result = (wxANIHandler *)new wxANIHandler();
20223 wxPyEndAllowThreads(__tstate);
20224 if (PyErr_Occurred()) SWIG_fail;
20225 }
20226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxANIHandler, SWIG_POINTER_NEW | 0 );
20227 return resultobj;
20228fail:
20229 return NULL;
d55e5bfc
RD
20230}
20231
20232
1bd55598
RD
20233SWIGINTERN PyObject *ANIHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20234 PyObject *obj;
20235 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20236 SWIG_TypeNewClientData(SWIGTYPE_p_wxANIHandler, SWIG_NewClientData(obj));
20237 return SWIG_Py_Void();
d55e5bfc
RD
20238}
20239
1bd55598
RD
20240SWIGINTERN PyObject *ANIHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20241 return SWIG_Python_InitShadowInstance(args);
20242}
d55e5bfc 20243
1bd55598
RD
20244SWIGINTERN PyObject *_wrap_new_PNGHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20245 PyObject *resultobj = 0;
20246 wxPNGHandler *result = 0 ;
20247
20248 if (!SWIG_Python_UnpackTuple(args,"new_PNGHandler",0,0,0)) SWIG_fail;
20249 {
20250 PyThreadState* __tstate = wxPyBeginAllowThreads();
20251 result = (wxPNGHandler *)new wxPNGHandler();
20252 wxPyEndAllowThreads(__tstate);
20253 if (PyErr_Occurred()) SWIG_fail;
20254 }
20255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPNGHandler, SWIG_POINTER_NEW | 0 );
20256 return resultobj;
20257fail:
20258 return NULL;
d55e5bfc
RD
20259}
20260
20261
1bd55598
RD
20262SWIGINTERN PyObject *PNGHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20263 PyObject *obj;
20264 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20265 SWIG_TypeNewClientData(SWIGTYPE_p_wxPNGHandler, SWIG_NewClientData(obj));
20266 return SWIG_Py_Void();
d55e5bfc
RD
20267}
20268
1bd55598
RD
20269SWIGINTERN PyObject *PNGHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20270 return SWIG_Python_InitShadowInstance(args);
20271}
d55e5bfc 20272
1bd55598
RD
20273SWIGINTERN PyObject *_wrap_new_GIFHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20274 PyObject *resultobj = 0;
20275 wxGIFHandler *result = 0 ;
20276
20277 if (!SWIG_Python_UnpackTuple(args,"new_GIFHandler",0,0,0)) SWIG_fail;
20278 {
20279 PyThreadState* __tstate = wxPyBeginAllowThreads();
20280 result = (wxGIFHandler *)new wxGIFHandler();
20281 wxPyEndAllowThreads(__tstate);
20282 if (PyErr_Occurred()) SWIG_fail;
20283 }
20284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGIFHandler, SWIG_POINTER_NEW | 0 );
20285 return resultobj;
20286fail:
20287 return NULL;
d55e5bfc
RD
20288}
20289
20290
1bd55598
RD
20291SWIGINTERN PyObject *GIFHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20292 PyObject *obj;
20293 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20294 SWIG_TypeNewClientData(SWIGTYPE_p_wxGIFHandler, SWIG_NewClientData(obj));
20295 return SWIG_Py_Void();
943e8dfd
RD
20296}
20297
1bd55598
RD
20298SWIGINTERN PyObject *GIFHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20299 return SWIG_Python_InitShadowInstance(args);
943e8dfd
RD
20300}
20301
1bd55598
RD
20302SWIGINTERN PyObject *_wrap_new_PCXHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20303 PyObject *resultobj = 0;
20304 wxPCXHandler *result = 0 ;
20305
20306 if (!SWIG_Python_UnpackTuple(args,"new_PCXHandler",0,0,0)) SWIG_fail;
20307 {
20308 PyThreadState* __tstate = wxPyBeginAllowThreads();
20309 result = (wxPCXHandler *)new wxPCXHandler();
20310 wxPyEndAllowThreads(__tstate);
20311 if (PyErr_Occurred()) SWIG_fail;
20312 }
20313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPCXHandler, SWIG_POINTER_NEW | 0 );
20314 return resultobj;
20315fail:
20316 return NULL;
d55e5bfc
RD
20317}
20318
20319
1bd55598
RD
20320SWIGINTERN PyObject *PCXHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20321 PyObject *obj;
20322 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20323 SWIG_TypeNewClientData(SWIGTYPE_p_wxPCXHandler, SWIG_NewClientData(obj));
20324 return SWIG_Py_Void();
d55e5bfc
RD
20325}
20326
1bd55598
RD
20327SWIGINTERN PyObject *PCXHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20328 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
20329}
20330
1bd55598
RD
20331SWIGINTERN PyObject *_wrap_new_JPEGHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20332 PyObject *resultobj = 0;
20333 wxJPEGHandler *result = 0 ;
20334
20335 if (!SWIG_Python_UnpackTuple(args,"new_JPEGHandler",0,0,0)) SWIG_fail;
20336 {
20337 PyThreadState* __tstate = wxPyBeginAllowThreads();
20338 result = (wxJPEGHandler *)new wxJPEGHandler();
20339 wxPyEndAllowThreads(__tstate);
20340 if (PyErr_Occurred()) SWIG_fail;
20341 }
20342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxJPEGHandler, SWIG_POINTER_NEW | 0 );
20343 return resultobj;
20344fail:
20345 return NULL;
f1cbd8fa
RD
20346}
20347
20348
1bd55598
RD
20349SWIGINTERN PyObject *JPEGHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20350 PyObject *obj;
20351 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20352 SWIG_TypeNewClientData(SWIGTYPE_p_wxJPEGHandler, SWIG_NewClientData(obj));
20353 return SWIG_Py_Void();
f1cbd8fa
RD
20354}
20355
1bd55598
RD
20356SWIGINTERN PyObject *JPEGHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20357 return SWIG_Python_InitShadowInstance(args);
f1cbd8fa
RD
20358}
20359
1bd55598
RD
20360SWIGINTERN PyObject *_wrap_new_PNMHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20361 PyObject *resultobj = 0;
20362 wxPNMHandler *result = 0 ;
20363
20364 if (!SWIG_Python_UnpackTuple(args,"new_PNMHandler",0,0,0)) SWIG_fail;
20365 {
20366 PyThreadState* __tstate = wxPyBeginAllowThreads();
20367 result = (wxPNMHandler *)new wxPNMHandler();
20368 wxPyEndAllowThreads(__tstate);
20369 if (PyErr_Occurred()) SWIG_fail;
20370 }
20371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPNMHandler, SWIG_POINTER_NEW | 0 );
20372 return resultobj;
20373fail:
20374 return NULL;
943e8dfd
RD
20375}
20376
20377
1bd55598
RD
20378SWIGINTERN PyObject *PNMHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20379 PyObject *obj;
20380 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20381 SWIG_TypeNewClientData(SWIGTYPE_p_wxPNMHandler, SWIG_NewClientData(obj));
20382 return SWIG_Py_Void();
943e8dfd
RD
20383}
20384
1bd55598
RD
20385SWIGINTERN PyObject *PNMHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20386 return SWIG_Python_InitShadowInstance(args);
943e8dfd
RD
20387}
20388
1bd55598
RD
20389SWIGINTERN PyObject *_wrap_new_XPMHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20390 PyObject *resultobj = 0;
20391 wxXPMHandler *result = 0 ;
20392
20393 if (!SWIG_Python_UnpackTuple(args,"new_XPMHandler",0,0,0)) SWIG_fail;
20394 {
20395 PyThreadState* __tstate = wxPyBeginAllowThreads();
20396 result = (wxXPMHandler *)new wxXPMHandler();
20397 wxPyEndAllowThreads(__tstate);
20398 if (PyErr_Occurred()) SWIG_fail;
20399 }
20400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXPMHandler, SWIG_POINTER_NEW | 0 );
20401 return resultobj;
20402fail:
20403 return NULL;
943e8dfd
RD
20404}
20405
20406
1bd55598
RD
20407SWIGINTERN PyObject *XPMHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20408 PyObject *obj;
20409 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20410 SWIG_TypeNewClientData(SWIGTYPE_p_wxXPMHandler, SWIG_NewClientData(obj));
20411 return SWIG_Py_Void();
943e8dfd
RD
20412}
20413
1bd55598
RD
20414SWIGINTERN PyObject *XPMHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20415 return SWIG_Python_InitShadowInstance(args);
943e8dfd
RD
20416}
20417
1bd55598
RD
20418SWIGINTERN PyObject *_wrap_new_TIFFHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20419 PyObject *resultobj = 0;
20420 wxTIFFHandler *result = 0 ;
20421
20422 if (!SWIG_Python_UnpackTuple(args,"new_TIFFHandler",0,0,0)) SWIG_fail;
20423 {
20424 PyThreadState* __tstate = wxPyBeginAllowThreads();
20425 result = (wxTIFFHandler *)new wxTIFFHandler();
20426 wxPyEndAllowThreads(__tstate);
20427 if (PyErr_Occurred()) SWIG_fail;
20428 }
20429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTIFFHandler, SWIG_POINTER_NEW | 0 );
20430 return resultobj;
20431fail:
20432 return NULL;
20433}
20434
20435
20436SWIGINTERN PyObject *TIFFHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20437 PyObject *obj;
20438 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20439 SWIG_TypeNewClientData(SWIGTYPE_p_wxTIFFHandler, SWIG_NewClientData(obj));
20440 return SWIG_Py_Void();
20441}
20442
20443SWIGINTERN PyObject *TIFFHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20444 return SWIG_Python_InitShadowInstance(args);
20445}
20446
580080c5
RD
20447SWIGINTERN PyObject *_wrap_new_TGAHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20448 PyObject *resultobj = 0;
20449 wxTGAHandler *result = 0 ;
20450
20451 if (!SWIG_Python_UnpackTuple(args,"new_TGAHandler",0,0,0)) SWIG_fail;
20452 {
20453 PyThreadState* __tstate = wxPyBeginAllowThreads();
20454 result = (wxTGAHandler *)new wxTGAHandler();
20455 wxPyEndAllowThreads(__tstate);
20456 if (PyErr_Occurred()) SWIG_fail;
20457 }
20458 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTGAHandler, SWIG_POINTER_NEW | 0 );
20459 return resultobj;
20460fail:
20461 return NULL;
20462}
20463
20464
20465SWIGINTERN PyObject *TGAHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20466 PyObject *obj;
20467 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20468 SWIG_TypeNewClientData(SWIGTYPE_p_wxTGAHandler, SWIG_NewClientData(obj));
20469 return SWIG_Py_Void();
20470}
20471
20472SWIGINTERN PyObject *TGAHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20473 return SWIG_Python_InitShadowInstance(args);
20474}
20475
1bd55598
RD
20476SWIGINTERN PyObject *_wrap_Quantize_Quantize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20477 PyObject *resultobj = 0;
20478 wxImage *arg1 = 0 ;
20479 wxImage *arg2 = 0 ;
20480 int arg3 = (int) 236 ;
20481 int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ;
20482 bool result;
20483 void *argp1 = 0 ;
20484 int res1 = 0 ;
20485 void *argp2 = 0 ;
20486 int res2 = 0 ;
20487 int val3 ;
20488 int ecode3 = 0 ;
20489 int val4 ;
20490 int ecode4 = 0 ;
20491 PyObject * obj0 = 0 ;
20492 PyObject * obj1 = 0 ;
20493 PyObject * obj2 = 0 ;
20494 PyObject * obj3 = 0 ;
20495 char * kwnames[] = {
20496 (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL
20497 };
20498
20499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20500 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
20501 if (!SWIG_IsOK(res1)) {
20502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Quantize_Quantize" "', expected argument " "1"" of type '" "wxImage const &""'");
20503 }
20504 if (!argp1) {
20505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Quantize_Quantize" "', expected argument " "1"" of type '" "wxImage const &""'");
20506 }
20507 arg1 = reinterpret_cast< wxImage * >(argp1);
20508 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 );
20509 if (!SWIG_IsOK(res2)) {
20510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Quantize_Quantize" "', expected argument " "2"" of type '" "wxImage &""'");
20511 }
20512 if (!argp2) {
20513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Quantize_Quantize" "', expected argument " "2"" of type '" "wxImage &""'");
20514 }
20515 arg2 = reinterpret_cast< wxImage * >(argp2);
20516 if (obj2) {
20517 ecode3 = SWIG_AsVal_int(obj2, &val3);
20518 if (!SWIG_IsOK(ecode3)) {
20519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Quantize_Quantize" "', expected argument " "3"" of type '" "int""'");
20520 }
20521 arg3 = static_cast< int >(val3);
20522 }
20523 if (obj3) {
20524 ecode4 = SWIG_AsVal_int(obj3, &val4);
20525 if (!SWIG_IsOK(ecode4)) {
20526 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Quantize_Quantize" "', expected argument " "4"" of type '" "int""'");
20527 }
20528 arg4 = static_cast< int >(val4);
20529 }
20530 {
20531 PyThreadState* __tstate = wxPyBeginAllowThreads();
20532 result = (bool)wxQuantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4);
20533 wxPyEndAllowThreads(__tstate);
20534 if (PyErr_Occurred()) SWIG_fail;
20535 }
20536 {
20537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20538 }
20539 return resultobj;
20540fail:
20541 return NULL;
943e8dfd
RD
20542}
20543
20544
1bd55598
RD
20545SWIGINTERN PyObject *Quantize_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20546 PyObject *obj;
20547 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20548 SWIG_TypeNewClientData(SWIGTYPE_p_wxQuantize, SWIG_NewClientData(obj));
20549 return SWIG_Py_Void();
943e8dfd
RD
20550}
20551
1bd55598
RD
20552SWIGINTERN PyObject *_wrap_new_EvtHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20553 PyObject *resultobj = 0;
20554 wxEvtHandler *result = 0 ;
20555
20556 if (!SWIG_Python_UnpackTuple(args,"new_EvtHandler",0,0,0)) SWIG_fail;
20557 {
20558 PyThreadState* __tstate = wxPyBeginAllowThreads();
20559 result = (wxEvtHandler *)new wxEvtHandler();
20560 wxPyEndAllowThreads(__tstate);
20561 if (PyErr_Occurred()) SWIG_fail;
20562 }
20563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_NEW | 0 );
20564 return resultobj;
20565fail:
20566 return NULL;
943e8dfd
RD
20567}
20568
20569
1bd55598
RD
20570SWIGINTERN PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20571 PyObject *resultobj = 0;
20572 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20573 wxEvtHandler *result = 0 ;
20574 void *argp1 = 0 ;
20575 int res1 = 0 ;
20576 PyObject *swig_obj[1] ;
20577
20578 if (!args) SWIG_fail;
20579 swig_obj[0] = args;
20580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20581 if (!SWIG_IsOK(res1)) {
20582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_GetNextHandler" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20583 }
20584 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20585 {
20586 PyThreadState* __tstate = wxPyBeginAllowThreads();
20587 result = (wxEvtHandler *)(arg1)->GetNextHandler();
20588 wxPyEndAllowThreads(__tstate);
20589 if (PyErr_Occurred()) SWIG_fail;
20590 }
20591 {
20592 resultobj = wxPyMake_wxObject(result, 0);
20593 }
20594 return resultobj;
20595fail:
20596 return NULL;
943e8dfd
RD
20597}
20598
20599
1bd55598
RD
20600SWIGINTERN PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20601 PyObject *resultobj = 0;
20602 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20603 wxEvtHandler *result = 0 ;
20604 void *argp1 = 0 ;
20605 int res1 = 0 ;
20606 PyObject *swig_obj[1] ;
20607
20608 if (!args) SWIG_fail;
20609 swig_obj[0] = args;
20610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20611 if (!SWIG_IsOK(res1)) {
20612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_GetPreviousHandler" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20613 }
20614 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20615 {
20616 PyThreadState* __tstate = wxPyBeginAllowThreads();
20617 result = (wxEvtHandler *)(arg1)->GetPreviousHandler();
20618 wxPyEndAllowThreads(__tstate);
20619 if (PyErr_Occurred()) SWIG_fail;
20620 }
20621 {
20622 resultobj = wxPyMake_wxObject(result, 0);
20623 }
20624 return resultobj;
20625fail:
20626 return NULL;
20627}
20628
20629
20630SWIGINTERN PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20631 PyObject *resultobj = 0;
20632 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20633 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
20634 void *argp1 = 0 ;
20635 int res1 = 0 ;
20636 void *argp2 = 0 ;
20637 int res2 = 0 ;
20638 PyObject * obj0 = 0 ;
20639 PyObject * obj1 = 0 ;
20640 char * kwnames[] = {
20641 (char *) "self",(char *) "handler", NULL
20642 };
20643
20644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) SWIG_fail;
20645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20646 if (!SWIG_IsOK(res1)) {
20647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_SetNextHandler" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20648 }
20649 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20650 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20651 if (!SWIG_IsOK(res2)) {
20652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EvtHandler_SetNextHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
20653 }
20654 arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
20655 {
20656 PyThreadState* __tstate = wxPyBeginAllowThreads();
20657 (arg1)->SetNextHandler(arg2);
20658 wxPyEndAllowThreads(__tstate);
20659 if (PyErr_Occurred()) SWIG_fail;
20660 }
20661 resultobj = SWIG_Py_Void();
20662 return resultobj;
20663fail:
20664 return NULL;
20665}
20666
20667
20668SWIGINTERN PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20669 PyObject *resultobj = 0;
20670 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20671 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
20672 void *argp1 = 0 ;
20673 int res1 = 0 ;
20674 void *argp2 = 0 ;
20675 int res2 = 0 ;
20676 PyObject * obj0 = 0 ;
20677 PyObject * obj1 = 0 ;
20678 char * kwnames[] = {
20679 (char *) "self",(char *) "handler", NULL
20680 };
20681
20682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) SWIG_fail;
20683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20684 if (!SWIG_IsOK(res1)) {
20685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_SetPreviousHandler" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20686 }
20687 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20688 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20689 if (!SWIG_IsOK(res2)) {
20690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EvtHandler_SetPreviousHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
20691 }
20692 arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
20693 {
20694 PyThreadState* __tstate = wxPyBeginAllowThreads();
20695 (arg1)->SetPreviousHandler(arg2);
20696 wxPyEndAllowThreads(__tstate);
20697 if (PyErr_Occurred()) SWIG_fail;
20698 }
20699 resultobj = SWIG_Py_Void();
20700 return resultobj;
20701fail:
20702 return NULL;
943e8dfd
RD
20703}
20704
20705
1bd55598
RD
20706SWIGINTERN PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20707 PyObject *resultobj = 0;
20708 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20709 bool result;
20710 void *argp1 = 0 ;
20711 int res1 = 0 ;
20712 PyObject *swig_obj[1] ;
20713
20714 if (!args) SWIG_fail;
20715 swig_obj[0] = args;
20716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20717 if (!SWIG_IsOK(res1)) {
20718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_GetEvtHandlerEnabled" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20719 }
20720 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20721 {
20722 PyThreadState* __tstate = wxPyBeginAllowThreads();
20723 result = (bool)(arg1)->GetEvtHandlerEnabled();
20724 wxPyEndAllowThreads(__tstate);
20725 if (PyErr_Occurred()) SWIG_fail;
20726 }
20727 {
20728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20729 }
20730 return resultobj;
20731fail:
20732 return NULL;
20733}
20734
20735
20736SWIGINTERN PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20737 PyObject *resultobj = 0;
20738 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20739 bool arg2 ;
20740 void *argp1 = 0 ;
20741 int res1 = 0 ;
20742 bool val2 ;
20743 int ecode2 = 0 ;
20744 PyObject * obj0 = 0 ;
20745 PyObject * obj1 = 0 ;
20746 char * kwnames[] = {
20747 (char *) "self",(char *) "enabled", NULL
20748 };
20749
20750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
20751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20752 if (!SWIG_IsOK(res1)) {
20753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_SetEvtHandlerEnabled" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20754 }
20755 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20756 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20757 if (!SWIG_IsOK(ecode2)) {
20758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EvtHandler_SetEvtHandlerEnabled" "', expected argument " "2"" of type '" "bool""'");
20759 }
20760 arg2 = static_cast< bool >(val2);
20761 {
20762 PyThreadState* __tstate = wxPyBeginAllowThreads();
20763 (arg1)->SetEvtHandlerEnabled(arg2);
20764 wxPyEndAllowThreads(__tstate);
20765 if (PyErr_Occurred()) SWIG_fail;
20766 }
20767 resultobj = SWIG_Py_Void();
20768 return resultobj;
20769fail:
20770 return NULL;
20771}
20772
20773
20774SWIGINTERN PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20775 PyObject *resultobj = 0;
20776 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20777 wxEvent *arg2 = 0 ;
20778 bool result;
20779 void *argp1 = 0 ;
20780 int res1 = 0 ;
20781 void *argp2 = 0 ;
20782 int res2 = 0 ;
20783 PyObject * obj0 = 0 ;
20784 PyObject * obj1 = 0 ;
20785 char * kwnames[] = {
20786 (char *) "self",(char *) "event", NULL
20787 };
20788
20789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) SWIG_fail;
20790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20791 if (!SWIG_IsOK(res1)) {
20792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_ProcessEvent" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20793 }
20794 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxEvent, 0 );
20796 if (!SWIG_IsOK(res2)) {
20797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EvtHandler_ProcessEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
20798 }
20799 if (!argp2) {
20800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "EvtHandler_ProcessEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
20801 }
20802 arg2 = reinterpret_cast< wxEvent * >(argp2);
20803 {
20804 PyThreadState* __tstate = wxPyBeginAllowThreads();
20805 result = (bool)(arg1)->ProcessEvent(*arg2);
20806 wxPyEndAllowThreads(__tstate);
20807 if (PyErr_Occurred()) SWIG_fail;
20808 }
20809 {
20810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20811 }
20812 return resultobj;
20813fail:
20814 return NULL;
20815}
20816
20817
20818SWIGINTERN PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20819 PyObject *resultobj = 0;
20820 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20821 wxEvent *arg2 = 0 ;
20822 void *argp1 = 0 ;
20823 int res1 = 0 ;
20824 void *argp2 = 0 ;
20825 int res2 = 0 ;
20826 PyObject * obj0 = 0 ;
20827 PyObject * obj1 = 0 ;
20828 char * kwnames[] = {
20829 (char *) "self",(char *) "event", NULL
20830 };
20831
20832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
20833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20834 if (!SWIG_IsOK(res1)) {
20835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_AddPendingEvent" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20836 }
20837 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20838 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxEvent, 0 );
20839 if (!SWIG_IsOK(res2)) {
20840 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EvtHandler_AddPendingEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
20841 }
20842 if (!argp2) {
20843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "EvtHandler_AddPendingEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
20844 }
20845 arg2 = reinterpret_cast< wxEvent * >(argp2);
20846 {
20847 PyThreadState* __tstate = wxPyBeginAllowThreads();
20848 (arg1)->AddPendingEvent(*arg2);
20849 wxPyEndAllowThreads(__tstate);
20850 if (PyErr_Occurred()) SWIG_fail;
20851 }
20852 resultobj = SWIG_Py_Void();
20853 return resultobj;
20854fail:
20855 return NULL;
943e8dfd
RD
20856}
20857
20858
1bd55598
RD
20859SWIGINTERN PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20860 PyObject *resultobj = 0;
20861 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20862 void *argp1 = 0 ;
20863 int res1 = 0 ;
20864 PyObject *swig_obj[1] ;
20865
20866 if (!args) SWIG_fail;
20867 swig_obj[0] = args;
20868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20869 if (!SWIG_IsOK(res1)) {
20870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_ProcessPendingEvents" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20871 }
20872 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20873 {
20874 PyThreadState* __tstate = wxPyBeginAllowThreads();
20875 (arg1)->ProcessPendingEvents();
20876 wxPyEndAllowThreads(__tstate);
20877 if (PyErr_Occurred()) SWIG_fail;
20878 }
20879 resultobj = SWIG_Py_Void();
20880 return resultobj;
20881fail:
20882 return NULL;
20883}
20884
20885
20886SWIGINTERN PyObject *_wrap_EvtHandler_Connect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20887 PyObject *resultobj = 0;
20888 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20889 int arg2 ;
20890 int arg3 ;
20891 int arg4 ;
20892 PyObject *arg5 = (PyObject *) 0 ;
20893 void *argp1 = 0 ;
20894 int res1 = 0 ;
20895 int val2 ;
20896 int ecode2 = 0 ;
20897 int val3 ;
20898 int ecode3 = 0 ;
20899 int val4 ;
20900 int ecode4 = 0 ;
20901 PyObject * obj0 = 0 ;
20902 PyObject * obj1 = 0 ;
20903 PyObject * obj2 = 0 ;
20904 PyObject * obj3 = 0 ;
20905 PyObject * obj4 = 0 ;
20906 char * kwnames[] = {
20907 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL
20908 };
20909
20910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20912 if (!SWIG_IsOK(res1)) {
20913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_Connect" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20914 }
20915 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20916 ecode2 = SWIG_AsVal_int(obj1, &val2);
20917 if (!SWIG_IsOK(ecode2)) {
20918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EvtHandler_Connect" "', expected argument " "2"" of type '" "int""'");
20919 }
20920 arg2 = static_cast< int >(val2);
20921 ecode3 = SWIG_AsVal_int(obj2, &val3);
20922 if (!SWIG_IsOK(ecode3)) {
20923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EvtHandler_Connect" "', expected argument " "3"" of type '" "int""'");
20924 }
20925 arg3 = static_cast< int >(val3);
20926 ecode4 = SWIG_AsVal_int(obj3, &val4);
20927 if (!SWIG_IsOK(ecode4)) {
20928 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EvtHandler_Connect" "', expected argument " "4"" of type '" "int""'");
20929 }
20930 arg4 = static_cast< int >(val4);
20931 arg5 = obj4;
20932 {
20933 PyThreadState* __tstate = wxPyBeginAllowThreads();
20934 wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5);
20935 wxPyEndAllowThreads(__tstate);
20936 if (PyErr_Occurred()) SWIG_fail;
20937 }
20938 resultobj = SWIG_Py_Void();
20939 return resultobj;
20940fail:
20941 return NULL;
20942}
20943
20944
20945SWIGINTERN PyObject *_wrap_EvtHandler_Disconnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20946 PyObject *resultobj = 0;
20947 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20948 int arg2 ;
20949 int arg3 = (int) -1 ;
20950 wxEventType arg4 = (wxEventType) wxEVT_NULL ;
20951 bool result;
20952 void *argp1 = 0 ;
20953 int res1 = 0 ;
20954 int val2 ;
20955 int ecode2 = 0 ;
20956 int val3 ;
20957 int ecode3 = 0 ;
20958 int val4 ;
20959 int ecode4 = 0 ;
20960 PyObject * obj0 = 0 ;
20961 PyObject * obj1 = 0 ;
20962 PyObject * obj2 = 0 ;
20963 PyObject * obj3 = 0 ;
20964 char * kwnames[] = {
20965 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL
20966 };
20967
20968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20970 if (!SWIG_IsOK(res1)) {
20971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_Disconnect" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20972 }
20973 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20974 ecode2 = SWIG_AsVal_int(obj1, &val2);
20975 if (!SWIG_IsOK(ecode2)) {
20976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EvtHandler_Disconnect" "', expected argument " "2"" of type '" "int""'");
20977 }
20978 arg2 = static_cast< int >(val2);
20979 if (obj2) {
20980 ecode3 = SWIG_AsVal_int(obj2, &val3);
20981 if (!SWIG_IsOK(ecode3)) {
20982 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EvtHandler_Disconnect" "', expected argument " "3"" of type '" "int""'");
20983 }
20984 arg3 = static_cast< int >(val3);
20985 }
20986 if (obj3) {
20987 ecode4 = SWIG_AsVal_int(obj3, &val4);
20988 if (!SWIG_IsOK(ecode4)) {
20989 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EvtHandler_Disconnect" "', expected argument " "4"" of type '" "wxEventType""'");
20990 }
20991 arg4 = static_cast< wxEventType >(val4);
20992 }
20993 {
20994 PyThreadState* __tstate = wxPyBeginAllowThreads();
20995 result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4);
20996 wxPyEndAllowThreads(__tstate);
20997 if (PyErr_Occurred()) SWIG_fail;
20998 }
20999 {
21000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21001 }
21002 return resultobj;
21003fail:
21004 return NULL;
21005}
21006
21007
21008SWIGINTERN PyObject *_wrap_EvtHandler__setOORInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21009 PyObject *resultobj = 0;
21010 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
21011 PyObject *arg2 = (PyObject *) 0 ;
21012 bool arg3 = (bool) true ;
21013 void *argp1 = 0 ;
21014 int res1 = 0 ;
21015 bool val3 ;
21016 int ecode3 = 0 ;
21017 PyObject * obj0 = 0 ;
21018 PyObject * obj1 = 0 ;
21019 PyObject * obj2 = 0 ;
21020 char * kwnames[] = {
21021 (char *) "self",(char *) "_self",(char *) "incref", NULL
21022 };
21023
21024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:EvtHandler__setOORInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
21026 if (!SWIG_IsOK(res1)) {
21027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler__setOORInfo" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
21028 }
21029 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
21030 arg2 = obj1;
21031 if (obj2) {
21032 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21033 if (!SWIG_IsOK(ecode3)) {
21034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EvtHandler__setOORInfo" "', expected argument " "3"" of type '" "bool""'");
21035 }
21036 arg3 = static_cast< bool >(val3);
21037 }
21038 {
21039 PyThreadState* __tstate = wxPyBeginAllowThreads();
21040 wxEvtHandler__setOORInfo(arg1,arg2,arg3);
21041 wxPyEndAllowThreads(__tstate);
21042 if (PyErr_Occurred()) SWIG_fail;
21043 }
21044 resultobj = SWIG_Py_Void();
21045 return resultobj;
21046fail:
21047 return NULL;
943e8dfd
RD
21048}
21049
21050
1bd55598
RD
21051SWIGINTERN PyObject *EvtHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21052 PyObject *obj;
21053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21054 SWIG_TypeNewClientData(SWIGTYPE_p_wxEvtHandler, SWIG_NewClientData(obj));
21055 return SWIG_Py_Void();
d55e5bfc
RD
21056}
21057
1bd55598
RD
21058SWIGINTERN PyObject *EvtHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21059 return SWIG_Python_InitShadowInstance(args);
21060}
d55e5bfc 21061
1bd55598
RD
21062SWIGINTERN PyObject *_wrap_NewEventType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21063 PyObject *resultobj = 0;
21064 wxEventType result;
21065
21066 if (!SWIG_Python_UnpackTuple(args,"NewEventType",0,0,0)) SWIG_fail;
21067 {
21068 PyThreadState* __tstate = wxPyBeginAllowThreads();
21069 result = (wxEventType)wxNewEventType();
21070 wxPyEndAllowThreads(__tstate);
21071 if (PyErr_Occurred()) SWIG_fail;
21072 }
21073 resultobj = SWIG_From_int(static_cast< int >(result));
21074 return resultobj;
21075fail:
21076 return NULL;
d55e5bfc
RD
21077}
21078
21079
1bd55598
RD
21080SWIGINTERN PyObject *_wrap_delete_Event(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21081 PyObject *resultobj = 0;
21082 wxEvent *arg1 = (wxEvent *) 0 ;
21083 void *argp1 = 0 ;
21084 int res1 = 0 ;
21085 PyObject *swig_obj[1] ;
21086
21087 if (!args) SWIG_fail;
21088 swig_obj[0] = args;
21089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, SWIG_POINTER_DISOWN | 0 );
21090 if (!SWIG_IsOK(res1)) {
21091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Event" "', expected argument " "1"" of type '" "wxEvent *""'");
21092 }
21093 arg1 = reinterpret_cast< wxEvent * >(argp1);
21094 {
21095 PyThreadState* __tstate = wxPyBeginAllowThreads();
21096 delete arg1;
d55e5bfc 21097
1bd55598
RD
21098 wxPyEndAllowThreads(__tstate);
21099 if (PyErr_Occurred()) SWIG_fail;
21100 }
21101 resultobj = SWIG_Py_Void();
21102 return resultobj;
21103fail:
21104 return NULL;
21105}
21106
21107
21108SWIGINTERN PyObject *_wrap_Event_SetEventType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21109 PyObject *resultobj = 0;
21110 wxEvent *arg1 = (wxEvent *) 0 ;
21111 wxEventType arg2 ;
21112 void *argp1 = 0 ;
21113 int res1 = 0 ;
21114 int val2 ;
21115 int ecode2 = 0 ;
21116 PyObject * obj0 = 0 ;
21117 PyObject * obj1 = 0 ;
21118 char * kwnames[] = {
21119 (char *) "self",(char *) "typ", NULL
21120 };
21121
21122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) SWIG_fail;
21123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21124 if (!SWIG_IsOK(res1)) {
21125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_SetEventType" "', expected argument " "1"" of type '" "wxEvent *""'");
21126 }
21127 arg1 = reinterpret_cast< wxEvent * >(argp1);
21128 ecode2 = SWIG_AsVal_int(obj1, &val2);
21129 if (!SWIG_IsOK(ecode2)) {
21130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Event_SetEventType" "', expected argument " "2"" of type '" "wxEventType""'");
21131 }
21132 arg2 = static_cast< wxEventType >(val2);
21133 {
21134 PyThreadState* __tstate = wxPyBeginAllowThreads();
21135 (arg1)->SetEventType(arg2);
21136 wxPyEndAllowThreads(__tstate);
21137 if (PyErr_Occurred()) SWIG_fail;
21138 }
21139 resultobj = SWIG_Py_Void();
21140 return resultobj;
21141fail:
21142 return NULL;
d55e5bfc
RD
21143}
21144
21145
1bd55598
RD
21146SWIGINTERN PyObject *_wrap_Event_GetEventType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21147 PyObject *resultobj = 0;
21148 wxEvent *arg1 = (wxEvent *) 0 ;
21149 wxEventType result;
21150 void *argp1 = 0 ;
21151 int res1 = 0 ;
21152 PyObject *swig_obj[1] ;
21153
21154 if (!args) SWIG_fail;
21155 swig_obj[0] = args;
21156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21157 if (!SWIG_IsOK(res1)) {
21158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_GetEventType" "', expected argument " "1"" of type '" "wxEvent const *""'");
21159 }
21160 arg1 = reinterpret_cast< wxEvent * >(argp1);
21161 {
21162 PyThreadState* __tstate = wxPyBeginAllowThreads();
21163 result = (wxEventType)((wxEvent const *)arg1)->GetEventType();
21164 wxPyEndAllowThreads(__tstate);
21165 if (PyErr_Occurred()) SWIG_fail;
21166 }
21167 resultobj = SWIG_From_int(static_cast< int >(result));
21168 return resultobj;
21169fail:
21170 return NULL;
d55e5bfc
RD
21171}
21172
21173
1bd55598
RD
21174SWIGINTERN PyObject *_wrap_Event_GetEventObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21175 PyObject *resultobj = 0;
21176 wxEvent *arg1 = (wxEvent *) 0 ;
21177 wxObject *result = 0 ;
21178 void *argp1 = 0 ;
21179 int res1 = 0 ;
21180 PyObject *swig_obj[1] ;
21181
21182 if (!args) SWIG_fail;
21183 swig_obj[0] = args;
21184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21185 if (!SWIG_IsOK(res1)) {
21186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_GetEventObject" "', expected argument " "1"" of type '" "wxEvent const *""'");
21187 }
21188 arg1 = reinterpret_cast< wxEvent * >(argp1);
21189 {
21190 PyThreadState* __tstate = wxPyBeginAllowThreads();
21191 result = (wxObject *)((wxEvent const *)arg1)->GetEventObject();
21192 wxPyEndAllowThreads(__tstate);
21193 if (PyErr_Occurred()) SWIG_fail;
21194 }
21195 {
21196 resultobj = wxPyMake_wxObject(result, (bool)0);
21197 }
21198 return resultobj;
21199fail:
21200 return NULL;
21201}
21202
21203
21204SWIGINTERN PyObject *_wrap_Event_SetEventObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21205 PyObject *resultobj = 0;
21206 wxEvent *arg1 = (wxEvent *) 0 ;
21207 wxObject *arg2 = (wxObject *) 0 ;
21208 void *argp1 = 0 ;
21209 int res1 = 0 ;
21210 void *argp2 = 0 ;
21211 int res2 = 0 ;
21212 PyObject * obj0 = 0 ;
21213 PyObject * obj1 = 0 ;
21214 char * kwnames[] = {
21215 (char *) "self",(char *) "obj", NULL
21216 };
21217
21218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) SWIG_fail;
21219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21220 if (!SWIG_IsOK(res1)) {
21221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_SetEventObject" "', expected argument " "1"" of type '" "wxEvent *""'");
21222 }
21223 arg1 = reinterpret_cast< wxEvent * >(argp1);
21224 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
21225 if (!SWIG_IsOK(res2)) {
21226 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_SetEventObject" "', expected argument " "2"" of type '" "wxObject *""'");
21227 }
21228 arg2 = reinterpret_cast< wxObject * >(argp2);
21229 {
21230 PyThreadState* __tstate = wxPyBeginAllowThreads();
21231 (arg1)->SetEventObject(arg2);
21232 wxPyEndAllowThreads(__tstate);
21233 if (PyErr_Occurred()) SWIG_fail;
21234 }
21235 resultobj = SWIG_Py_Void();
21236 return resultobj;
21237fail:
21238 return NULL;
d55e5bfc
RD
21239}
21240
21241
1bd55598
RD
21242SWIGINTERN PyObject *_wrap_Event_GetTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21243 PyObject *resultobj = 0;
21244 wxEvent *arg1 = (wxEvent *) 0 ;
21245 long result;
21246 void *argp1 = 0 ;
21247 int res1 = 0 ;
21248 PyObject *swig_obj[1] ;
21249
21250 if (!args) SWIG_fail;
21251 swig_obj[0] = args;
21252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21253 if (!SWIG_IsOK(res1)) {
21254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_GetTimestamp" "', expected argument " "1"" of type '" "wxEvent const *""'");
21255 }
21256 arg1 = reinterpret_cast< wxEvent * >(argp1);
21257 {
21258 PyThreadState* __tstate = wxPyBeginAllowThreads();
21259 result = (long)((wxEvent const *)arg1)->GetTimestamp();
21260 wxPyEndAllowThreads(__tstate);
21261 if (PyErr_Occurred()) SWIG_fail;
21262 }
21263 resultobj = SWIG_From_long(static_cast< long >(result));
21264 return resultobj;
21265fail:
21266 return NULL;
21267}
21268
21269
21270SWIGINTERN PyObject *_wrap_Event_SetTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21271 PyObject *resultobj = 0;
21272 wxEvent *arg1 = (wxEvent *) 0 ;
21273 long arg2 = (long) 0 ;
21274 void *argp1 = 0 ;
21275 int res1 = 0 ;
21276 long val2 ;
21277 int ecode2 = 0 ;
21278 PyObject * obj0 = 0 ;
21279 PyObject * obj1 = 0 ;
21280 char * kwnames[] = {
21281 (char *) "self",(char *) "ts", NULL
21282 };
21283
21284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) SWIG_fail;
21285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21286 if (!SWIG_IsOK(res1)) {
21287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_SetTimestamp" "', expected argument " "1"" of type '" "wxEvent *""'");
21288 }
21289 arg1 = reinterpret_cast< wxEvent * >(argp1);
21290 if (obj1) {
21291 ecode2 = SWIG_AsVal_long(obj1, &val2);
21292 if (!SWIG_IsOK(ecode2)) {
21293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Event_SetTimestamp" "', expected argument " "2"" of type '" "long""'");
21294 }
21295 arg2 = static_cast< long >(val2);
21296 }
21297 {
21298 PyThreadState* __tstate = wxPyBeginAllowThreads();
21299 (arg1)->SetTimestamp(arg2);
21300 wxPyEndAllowThreads(__tstate);
21301 if (PyErr_Occurred()) SWIG_fail;
21302 }
21303 resultobj = SWIG_Py_Void();
21304 return resultobj;
21305fail:
21306 return NULL;
d55e5bfc
RD
21307}
21308
21309
1bd55598
RD
21310SWIGINTERN PyObject *_wrap_Event_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21311 PyObject *resultobj = 0;
21312 wxEvent *arg1 = (wxEvent *) 0 ;
21313 int result;
21314 void *argp1 = 0 ;
21315 int res1 = 0 ;
21316 PyObject *swig_obj[1] ;
21317
21318 if (!args) SWIG_fail;
21319 swig_obj[0] = args;
21320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21321 if (!SWIG_IsOK(res1)) {
21322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_GetId" "', expected argument " "1"" of type '" "wxEvent const *""'");
21323 }
21324 arg1 = reinterpret_cast< wxEvent * >(argp1);
21325 {
21326 PyThreadState* __tstate = wxPyBeginAllowThreads();
21327 result = (int)((wxEvent const *)arg1)->GetId();
21328 wxPyEndAllowThreads(__tstate);
21329 if (PyErr_Occurred()) SWIG_fail;
21330 }
21331 resultobj = SWIG_From_int(static_cast< int >(result));
21332 return resultobj;
21333fail:
21334 return NULL;
21335}
21336
21337
21338SWIGINTERN PyObject *_wrap_Event_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21339 PyObject *resultobj = 0;
21340 wxEvent *arg1 = (wxEvent *) 0 ;
21341 int arg2 ;
21342 void *argp1 = 0 ;
21343 int res1 = 0 ;
21344 int val2 ;
21345 int ecode2 = 0 ;
21346 PyObject * obj0 = 0 ;
21347 PyObject * obj1 = 0 ;
21348 char * kwnames[] = {
21349 (char *) "self",(char *) "Id", NULL
21350 };
21351
21352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
21353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21354 if (!SWIG_IsOK(res1)) {
21355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_SetId" "', expected argument " "1"" of type '" "wxEvent *""'");
21356 }
21357 arg1 = reinterpret_cast< wxEvent * >(argp1);
21358 ecode2 = SWIG_AsVal_int(obj1, &val2);
21359 if (!SWIG_IsOK(ecode2)) {
21360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Event_SetId" "', expected argument " "2"" of type '" "int""'");
21361 }
21362 arg2 = static_cast< int >(val2);
21363 {
21364 PyThreadState* __tstate = wxPyBeginAllowThreads();
21365 (arg1)->SetId(arg2);
21366 wxPyEndAllowThreads(__tstate);
21367 if (PyErr_Occurred()) SWIG_fail;
21368 }
21369 resultobj = SWIG_Py_Void();
21370 return resultobj;
21371fail:
21372 return NULL;
d55e5bfc
RD
21373}
21374
21375
1bd55598
RD
21376SWIGINTERN PyObject *_wrap_Event_IsCommandEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21377 PyObject *resultobj = 0;
21378 wxEvent *arg1 = (wxEvent *) 0 ;
21379 bool result;
21380 void *argp1 = 0 ;
21381 int res1 = 0 ;
21382 PyObject *swig_obj[1] ;
21383
21384 if (!args) SWIG_fail;
21385 swig_obj[0] = args;
21386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21387 if (!SWIG_IsOK(res1)) {
21388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_IsCommandEvent" "', expected argument " "1"" of type '" "wxEvent const *""'");
21389 }
21390 arg1 = reinterpret_cast< wxEvent * >(argp1);
21391 {
21392 PyThreadState* __tstate = wxPyBeginAllowThreads();
21393 result = (bool)((wxEvent const *)arg1)->IsCommandEvent();
21394 wxPyEndAllowThreads(__tstate);
21395 if (PyErr_Occurred()) SWIG_fail;
21396 }
21397 {
21398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21399 }
21400 return resultobj;
21401fail:
21402 return NULL;
21403}
21404
21405
21406SWIGINTERN PyObject *_wrap_Event_Skip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21407 PyObject *resultobj = 0;
21408 wxEvent *arg1 = (wxEvent *) 0 ;
21409 bool arg2 = (bool) true ;
21410 void *argp1 = 0 ;
21411 int res1 = 0 ;
21412 bool val2 ;
21413 int ecode2 = 0 ;
21414 PyObject * obj0 = 0 ;
21415 PyObject * obj1 = 0 ;
21416 char * kwnames[] = {
21417 (char *) "self",(char *) "skip", NULL
21418 };
21419
21420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) SWIG_fail;
21421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21422 if (!SWIG_IsOK(res1)) {
21423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_Skip" "', expected argument " "1"" of type '" "wxEvent *""'");
21424 }
21425 arg1 = reinterpret_cast< wxEvent * >(argp1);
21426 if (obj1) {
21427 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21428 if (!SWIG_IsOK(ecode2)) {
21429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Event_Skip" "', expected argument " "2"" of type '" "bool""'");
21430 }
21431 arg2 = static_cast< bool >(val2);
21432 }
21433 {
21434 PyThreadState* __tstate = wxPyBeginAllowThreads();
21435 (arg1)->Skip(arg2);
21436 wxPyEndAllowThreads(__tstate);
21437 if (PyErr_Occurred()) SWIG_fail;
21438 }
21439 resultobj = SWIG_Py_Void();
21440 return resultobj;
21441fail:
21442 return NULL;
d55e5bfc
RD
21443}
21444
21445
1bd55598
RD
21446SWIGINTERN PyObject *_wrap_Event_GetSkipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21447 PyObject *resultobj = 0;
21448 wxEvent *arg1 = (wxEvent *) 0 ;
21449 bool result;
21450 void *argp1 = 0 ;
21451 int res1 = 0 ;
21452 PyObject *swig_obj[1] ;
21453
21454 if (!args) SWIG_fail;
21455 swig_obj[0] = args;
21456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21457 if (!SWIG_IsOK(res1)) {
21458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_GetSkipped" "', expected argument " "1"" of type '" "wxEvent const *""'");
21459 }
21460 arg1 = reinterpret_cast< wxEvent * >(argp1);
21461 {
21462 PyThreadState* __tstate = wxPyBeginAllowThreads();
21463 result = (bool)((wxEvent const *)arg1)->GetSkipped();
21464 wxPyEndAllowThreads(__tstate);
21465 if (PyErr_Occurred()) SWIG_fail;
21466 }
21467 {
21468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21469 }
21470 return resultobj;
21471fail:
21472 return NULL;
03e46024
RD
21473}
21474
21475
1bd55598
RD
21476SWIGINTERN PyObject *_wrap_Event_ShouldPropagate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21477 PyObject *resultobj = 0;
21478 wxEvent *arg1 = (wxEvent *) 0 ;
21479 bool result;
21480 void *argp1 = 0 ;
21481 int res1 = 0 ;
21482 PyObject *swig_obj[1] ;
21483
21484 if (!args) SWIG_fail;
21485 swig_obj[0] = args;
21486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21487 if (!SWIG_IsOK(res1)) {
21488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_ShouldPropagate" "', expected argument " "1"" of type '" "wxEvent const *""'");
21489 }
21490 arg1 = reinterpret_cast< wxEvent * >(argp1);
21491 {
21492 PyThreadState* __tstate = wxPyBeginAllowThreads();
21493 result = (bool)((wxEvent const *)arg1)->ShouldPropagate();
21494 wxPyEndAllowThreads(__tstate);
21495 if (PyErr_Occurred()) SWIG_fail;
21496 }
21497 {
21498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21499 }
21500 return resultobj;
21501fail:
21502 return NULL;
d55e5bfc
RD
21503}
21504
21505
1bd55598
RD
21506SWIGINTERN PyObject *_wrap_Event_StopPropagation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21507 PyObject *resultobj = 0;
21508 wxEvent *arg1 = (wxEvent *) 0 ;
21509 int result;
21510 void *argp1 = 0 ;
21511 int res1 = 0 ;
21512 PyObject *swig_obj[1] ;
21513
21514 if (!args) SWIG_fail;
21515 swig_obj[0] = args;
21516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21517 if (!SWIG_IsOK(res1)) {
21518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_StopPropagation" "', expected argument " "1"" of type '" "wxEvent *""'");
21519 }
21520 arg1 = reinterpret_cast< wxEvent * >(argp1);
21521 {
21522 PyThreadState* __tstate = wxPyBeginAllowThreads();
21523 result = (int)(arg1)->StopPropagation();
21524 wxPyEndAllowThreads(__tstate);
21525 if (PyErr_Occurred()) SWIG_fail;
21526 }
21527 resultobj = SWIG_From_int(static_cast< int >(result));
21528 return resultobj;
21529fail:
21530 return NULL;
21531}
21532
21533
21534SWIGINTERN PyObject *_wrap_Event_ResumePropagation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21535 PyObject *resultobj = 0;
21536 wxEvent *arg1 = (wxEvent *) 0 ;
21537 int arg2 ;
21538 void *argp1 = 0 ;
21539 int res1 = 0 ;
21540 int val2 ;
21541 int ecode2 = 0 ;
21542 PyObject * obj0 = 0 ;
21543 PyObject * obj1 = 0 ;
21544 char * kwnames[] = {
21545 (char *) "self",(char *) "propagationLevel", NULL
21546 };
21547
21548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) SWIG_fail;
21549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21550 if (!SWIG_IsOK(res1)) {
21551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_ResumePropagation" "', expected argument " "1"" of type '" "wxEvent *""'");
21552 }
21553 arg1 = reinterpret_cast< wxEvent * >(argp1);
21554 ecode2 = SWIG_AsVal_int(obj1, &val2);
21555 if (!SWIG_IsOK(ecode2)) {
21556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Event_ResumePropagation" "', expected argument " "2"" of type '" "int""'");
21557 }
21558 arg2 = static_cast< int >(val2);
21559 {
21560 PyThreadState* __tstate = wxPyBeginAllowThreads();
21561 (arg1)->ResumePropagation(arg2);
21562 wxPyEndAllowThreads(__tstate);
21563 if (PyErr_Occurred()) SWIG_fail;
21564 }
21565 resultobj = SWIG_Py_Void();
21566 return resultobj;
21567fail:
21568 return NULL;
d55e5bfc
RD
21569}
21570
21571
1bd55598
RD
21572SWIGINTERN PyObject *_wrap_Event_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21573 PyObject *resultobj = 0;
21574 wxEvent *arg1 = (wxEvent *) 0 ;
21575 wxEvent *result = 0 ;
21576 void *argp1 = 0 ;
21577 int res1 = 0 ;
21578 PyObject *swig_obj[1] ;
21579
21580 if (!args) SWIG_fail;
21581 swig_obj[0] = args;
21582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21583 if (!SWIG_IsOK(res1)) {
21584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_Clone" "', expected argument " "1"" of type '" "wxEvent *""'");
21585 }
21586 arg1 = reinterpret_cast< wxEvent * >(argp1);
21587 {
21588 PyThreadState* __tstate = wxPyBeginAllowThreads();
21589 result = (wxEvent *)(arg1)->Clone();
21590 wxPyEndAllowThreads(__tstate);
21591 if (PyErr_Occurred()) SWIG_fail;
21592 }
21593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEvent, 0 | 0 );
21594 return resultobj;
21595fail:
21596 return NULL;
d55e5bfc
RD
21597}
21598
21599
1bd55598
RD
21600SWIGINTERN PyObject *Event_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21601 PyObject *obj;
21602 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21603 SWIG_TypeNewClientData(SWIGTYPE_p_wxEvent, SWIG_NewClientData(obj));
21604 return SWIG_Py_Void();
d55e5bfc
RD
21605}
21606
1bd55598
RD
21607SWIGINTERN PyObject *_wrap_new_PropagationDisabler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21608 PyObject *resultobj = 0;
21609 wxEvent *arg1 = 0 ;
21610 wxPropagationDisabler *result = 0 ;
21611 void *argp1 = 0 ;
21612 int res1 = 0 ;
21613 PyObject * obj0 = 0 ;
21614 char * kwnames[] = {
21615 (char *) "event", NULL
21616 };
21617
21618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) SWIG_fail;
21619 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxEvent, 0 );
21620 if (!SWIG_IsOK(res1)) {
21621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PropagationDisabler" "', expected argument " "1"" of type '" "wxEvent &""'");
21622 }
21623 if (!argp1) {
21624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PropagationDisabler" "', expected argument " "1"" of type '" "wxEvent &""'");
21625 }
21626 arg1 = reinterpret_cast< wxEvent * >(argp1);
21627 {
21628 PyThreadState* __tstate = wxPyBeginAllowThreads();
21629 result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1);
21630 wxPyEndAllowThreads(__tstate);
21631 if (PyErr_Occurred()) SWIG_fail;
21632 }
21633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPropagationDisabler, SWIG_POINTER_NEW | 0 );
21634 return resultobj;
21635fail:
21636 return NULL;
d55e5bfc
RD
21637}
21638
21639
1bd55598
RD
21640SWIGINTERN PyObject *_wrap_delete_PropagationDisabler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21641 PyObject *resultobj = 0;
21642 wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ;
21643 void *argp1 = 0 ;
21644 int res1 = 0 ;
21645 PyObject *swig_obj[1] ;
21646
21647 if (!args) SWIG_fail;
21648 swig_obj[0] = args;
21649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPropagationDisabler, SWIG_POINTER_DISOWN | 0 );
21650 if (!SWIG_IsOK(res1)) {
21651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PropagationDisabler" "', expected argument " "1"" of type '" "wxPropagationDisabler *""'");
21652 }
21653 arg1 = reinterpret_cast< wxPropagationDisabler * >(argp1);
21654 {
21655 PyThreadState* __tstate = wxPyBeginAllowThreads();
21656 delete arg1;
aff4cc5c 21657
1bd55598
RD
21658 wxPyEndAllowThreads(__tstate);
21659 if (PyErr_Occurred()) SWIG_fail;
21660 }
21661 resultobj = SWIG_Py_Void();
21662 return resultobj;
21663fail:
21664 return NULL;
aff4cc5c
RD
21665}
21666
21667
1bd55598
RD
21668SWIGINTERN PyObject *PropagationDisabler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21669 PyObject *obj;
21670 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21671 SWIG_TypeNewClientData(SWIGTYPE_p_wxPropagationDisabler, SWIG_NewClientData(obj));
21672 return SWIG_Py_Void();
d55e5bfc
RD
21673}
21674
1bd55598
RD
21675SWIGINTERN PyObject *PropagationDisabler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21676 return SWIG_Python_InitShadowInstance(args);
21677}
d55e5bfc 21678
1bd55598
RD
21679SWIGINTERN PyObject *_wrap_new_PropagateOnce(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21680 PyObject *resultobj = 0;
21681 wxEvent *arg1 = 0 ;
21682 wxPropagateOnce *result = 0 ;
21683 void *argp1 = 0 ;
21684 int res1 = 0 ;
21685 PyObject * obj0 = 0 ;
21686 char * kwnames[] = {
21687 (char *) "event", NULL
21688 };
21689
21690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) SWIG_fail;
21691 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxEvent, 0 );
21692 if (!SWIG_IsOK(res1)) {
21693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PropagateOnce" "', expected argument " "1"" of type '" "wxEvent &""'");
21694 }
21695 if (!argp1) {
21696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PropagateOnce" "', expected argument " "1"" of type '" "wxEvent &""'");
21697 }
21698 arg1 = reinterpret_cast< wxEvent * >(argp1);
21699 {
21700 PyThreadState* __tstate = wxPyBeginAllowThreads();
21701 result = (wxPropagateOnce *)new wxPropagateOnce(*arg1);
21702 wxPyEndAllowThreads(__tstate);
21703 if (PyErr_Occurred()) SWIG_fail;
21704 }
21705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPropagateOnce, SWIG_POINTER_NEW | 0 );
21706 return resultobj;
21707fail:
21708 return NULL;
aff4cc5c
RD
21709}
21710
21711
1bd55598
RD
21712SWIGINTERN PyObject *_wrap_delete_PropagateOnce(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21713 PyObject *resultobj = 0;
21714 wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ;
21715 void *argp1 = 0 ;
21716 int res1 = 0 ;
21717 PyObject *swig_obj[1] ;
21718
21719 if (!args) SWIG_fail;
21720 swig_obj[0] = args;
21721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPropagateOnce, SWIG_POINTER_DISOWN | 0 );
21722 if (!SWIG_IsOK(res1)) {
21723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PropagateOnce" "', expected argument " "1"" of type '" "wxPropagateOnce *""'");
21724 }
21725 arg1 = reinterpret_cast< wxPropagateOnce * >(argp1);
21726 {
21727 PyThreadState* __tstate = wxPyBeginAllowThreads();
21728 delete arg1;
d55e5bfc 21729
1bd55598
RD
21730 wxPyEndAllowThreads(__tstate);
21731 if (PyErr_Occurred()) SWIG_fail;
21732 }
21733 resultobj = SWIG_Py_Void();
21734 return resultobj;
21735fail:
21736 return NULL;
d55e5bfc
RD
21737}
21738
21739
1bd55598
RD
21740SWIGINTERN PyObject *PropagateOnce_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21741 PyObject *obj;
21742 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21743 SWIG_TypeNewClientData(SWIGTYPE_p_wxPropagateOnce, SWIG_NewClientData(obj));
21744 return SWIG_Py_Void();
d55e5bfc
RD
21745}
21746
1bd55598
RD
21747SWIGINTERN PyObject *PropagateOnce_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21748 return SWIG_Python_InitShadowInstance(args);
21749}
d55e5bfc 21750
1bd55598
RD
21751SWIGINTERN PyObject *_wrap_new_CommandEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21752 PyObject *resultobj = 0;
21753 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21754 int arg2 = (int) 0 ;
21755 wxCommandEvent *result = 0 ;
21756 int val1 ;
21757 int ecode1 = 0 ;
21758 int val2 ;
21759 int ecode2 = 0 ;
21760 PyObject * obj0 = 0 ;
21761 PyObject * obj1 = 0 ;
21762 char * kwnames[] = {
21763 (char *) "commandType",(char *) "winid", NULL
21764 };
21765
21766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) SWIG_fail;
21767 if (obj0) {
21768 ecode1 = SWIG_AsVal_int(obj0, &val1);
21769 if (!SWIG_IsOK(ecode1)) {
21770 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CommandEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21771 }
21772 arg1 = static_cast< wxEventType >(val1);
21773 }
21774 if (obj1) {
21775 ecode2 = SWIG_AsVal_int(obj1, &val2);
21776 if (!SWIG_IsOK(ecode2)) {
21777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CommandEvent" "', expected argument " "2"" of type '" "int""'");
21778 }
21779 arg2 = static_cast< int >(val2);
21780 }
21781 {
21782 PyThreadState* __tstate = wxPyBeginAllowThreads();
21783 result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2);
21784 wxPyEndAllowThreads(__tstate);
21785 if (PyErr_Occurred()) SWIG_fail;
21786 }
21787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_NEW | 0 );
21788 return resultobj;
21789fail:
21790 return NULL;
d55e5bfc
RD
21791}
21792
21793
1bd55598
RD
21794SWIGINTERN PyObject *_wrap_CommandEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21795 PyObject *resultobj = 0;
21796 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
21797 int result;
21798 void *argp1 = 0 ;
21799 int res1 = 0 ;
21800 PyObject *swig_obj[1] ;
21801
21802 if (!args) SWIG_fail;
21803 swig_obj[0] = args;
21804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
21805 if (!SWIG_IsOK(res1)) {
21806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_GetSelection" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
21807 }
21808 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
21809 {
21810 PyThreadState* __tstate = wxPyBeginAllowThreads();
21811 result = (int)((wxCommandEvent const *)arg1)->GetSelection();
21812 wxPyEndAllowThreads(__tstate);
21813 if (PyErr_Occurred()) SWIG_fail;
21814 }
21815 resultobj = SWIG_From_int(static_cast< int >(result));
21816 return resultobj;
21817fail:
21818 return NULL;
21819}
21820
21821
21822SWIGINTERN PyObject *_wrap_CommandEvent_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21823 PyObject *resultobj = 0;
21824 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
21825 wxString *arg2 = 0 ;
21826 void *argp1 = 0 ;
21827 int res1 = 0 ;
21828 bool temp2 = false ;
21829 PyObject * obj0 = 0 ;
21830 PyObject * obj1 = 0 ;
21831 char * kwnames[] = {
21832 (char *) "self",(char *) "s", NULL
21833 };
21834
21835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) SWIG_fail;
21836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
21837 if (!SWIG_IsOK(res1)) {
21838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_SetString" "', expected argument " "1"" of type '" "wxCommandEvent *""'");
21839 }
21840 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
21841 {
21842 arg2 = wxString_in_helper(obj1);
21843 if (arg2 == NULL) SWIG_fail;
21844 temp2 = true;
21845 }
21846 {
21847 PyThreadState* __tstate = wxPyBeginAllowThreads();
21848 (arg1)->SetString((wxString const &)*arg2);
21849 wxPyEndAllowThreads(__tstate);
21850 if (PyErr_Occurred()) SWIG_fail;
21851 }
21852 resultobj = SWIG_Py_Void();
21853 {
21854 if (temp2)
21855 delete arg2;
21856 }
21857 return resultobj;
21858fail:
21859 {
21860 if (temp2)
21861 delete arg2;
21862 }
21863 return NULL;
d55e5bfc
RD
21864}
21865
21866
1bd55598
RD
21867SWIGINTERN PyObject *_wrap_CommandEvent_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21868 PyObject *resultobj = 0;
21869 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
21870 wxString result;
21871 void *argp1 = 0 ;
21872 int res1 = 0 ;
21873 PyObject *swig_obj[1] ;
21874
21875 if (!args) SWIG_fail;
21876 swig_obj[0] = args;
21877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
21878 if (!SWIG_IsOK(res1)) {
21879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_GetString" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
21880 }
21881 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
21882 {
21883 PyThreadState* __tstate = wxPyBeginAllowThreads();
21884 result = ((wxCommandEvent const *)arg1)->GetString();
21885 wxPyEndAllowThreads(__tstate);
21886 if (PyErr_Occurred()) SWIG_fail;
21887 }
21888 {
21889#if wxUSE_UNICODE
21890 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21891#else
21892 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21893#endif
21894 }
21895 return resultobj;
21896fail:
21897 return NULL;
d55e5bfc
RD
21898}
21899
21900
1bd55598
RD
21901SWIGINTERN PyObject *_wrap_CommandEvent_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21902 PyObject *resultobj = 0;
21903 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
21904 bool result;
21905 void *argp1 = 0 ;
21906 int res1 = 0 ;
21907 PyObject *swig_obj[1] ;
21908
21909 if (!args) SWIG_fail;
21910 swig_obj[0] = args;
21911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
21912 if (!SWIG_IsOK(res1)) {
21913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_IsChecked" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
21914 }
21915 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
21916 {
21917 PyThreadState* __tstate = wxPyBeginAllowThreads();
21918 result = (bool)((wxCommandEvent const *)arg1)->IsChecked();
21919 wxPyEndAllowThreads(__tstate);
21920 if (PyErr_Occurred()) SWIG_fail;
21921 }
21922 {
21923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21924 }
21925 return resultobj;
21926fail:
21927 return NULL;
d55e5bfc
RD
21928}
21929
21930
1bd55598
RD
21931SWIGINTERN PyObject *_wrap_CommandEvent_IsSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21932 PyObject *resultobj = 0;
21933 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
21934 bool result;
21935 void *argp1 = 0 ;
21936 int res1 = 0 ;
21937 PyObject *swig_obj[1] ;
21938
21939 if (!args) SWIG_fail;
21940 swig_obj[0] = args;
21941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
21942 if (!SWIG_IsOK(res1)) {
21943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_IsSelection" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
21944 }
21945 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
21946 {
21947 PyThreadState* __tstate = wxPyBeginAllowThreads();
21948 result = (bool)((wxCommandEvent const *)arg1)->IsSelection();
21949 wxPyEndAllowThreads(__tstate);
21950 if (PyErr_Occurred()) SWIG_fail;
21951 }
21952 {
21953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21954 }
21955 return resultobj;
21956fail:
21957 return NULL;
21958}
21959
21960
21961SWIGINTERN PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21962 PyObject *resultobj = 0;
21963 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
21964 long arg2 ;
21965 void *argp1 = 0 ;
21966 int res1 = 0 ;
21967 long val2 ;
21968 int ecode2 = 0 ;
21969 PyObject * obj0 = 0 ;
21970 PyObject * obj1 = 0 ;
21971 char * kwnames[] = {
21972 (char *) "self",(char *) "extraLong", NULL
21973 };
21974
21975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) SWIG_fail;
21976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
21977 if (!SWIG_IsOK(res1)) {
21978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_SetExtraLong" "', expected argument " "1"" of type '" "wxCommandEvent *""'");
21979 }
21980 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
21981 ecode2 = SWIG_AsVal_long(obj1, &val2);
21982 if (!SWIG_IsOK(ecode2)) {
21983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CommandEvent_SetExtraLong" "', expected argument " "2"" of type '" "long""'");
21984 }
21985 arg2 = static_cast< long >(val2);
21986 {
21987 PyThreadState* __tstate = wxPyBeginAllowThreads();
21988 (arg1)->SetExtraLong(arg2);
21989 wxPyEndAllowThreads(__tstate);
21990 if (PyErr_Occurred()) SWIG_fail;
21991 }
21992 resultobj = SWIG_Py_Void();
21993 return resultobj;
21994fail:
21995 return NULL;
68350608
RD
21996}
21997
21998
1bd55598
RD
21999SWIGINTERN PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22000 PyObject *resultobj = 0;
22001 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
22002 long result;
22003 void *argp1 = 0 ;
22004 int res1 = 0 ;
22005 PyObject *swig_obj[1] ;
22006
22007 if (!args) SWIG_fail;
22008 swig_obj[0] = args;
22009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
22010 if (!SWIG_IsOK(res1)) {
22011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_GetExtraLong" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
22012 }
22013 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
22014 {
22015 PyThreadState* __tstate = wxPyBeginAllowThreads();
22016 result = (long)((wxCommandEvent const *)arg1)->GetExtraLong();
22017 wxPyEndAllowThreads(__tstate);
22018 if (PyErr_Occurred()) SWIG_fail;
22019 }
22020 resultobj = SWIG_From_long(static_cast< long >(result));
22021 return resultobj;
22022fail:
22023 return NULL;
22024}
22025
22026
22027SWIGINTERN PyObject *_wrap_CommandEvent_SetInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22028 PyObject *resultobj = 0;
22029 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
22030 int arg2 ;
22031 void *argp1 = 0 ;
22032 int res1 = 0 ;
22033 int val2 ;
22034 int ecode2 = 0 ;
22035 PyObject * obj0 = 0 ;
22036 PyObject * obj1 = 0 ;
22037 char * kwnames[] = {
22038 (char *) "self",(char *) "i", NULL
22039 };
22040
22041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) SWIG_fail;
22042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
22043 if (!SWIG_IsOK(res1)) {
22044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_SetInt" "', expected argument " "1"" of type '" "wxCommandEvent *""'");
22045 }
22046 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
22047 ecode2 = SWIG_AsVal_int(obj1, &val2);
22048 if (!SWIG_IsOK(ecode2)) {
22049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CommandEvent_SetInt" "', expected argument " "2"" of type '" "int""'");
22050 }
22051 arg2 = static_cast< int >(val2);
22052 {
22053 PyThreadState* __tstate = wxPyBeginAllowThreads();
22054 (arg1)->SetInt(arg2);
22055 wxPyEndAllowThreads(__tstate);
22056 if (PyErr_Occurred()) SWIG_fail;
22057 }
22058 resultobj = SWIG_Py_Void();
22059 return resultobj;
22060fail:
22061 return NULL;
5b5c9bc7
RD
22062}
22063
22064
1bd55598
RD
22065SWIGINTERN PyObject *_wrap_CommandEvent_GetInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22066 PyObject *resultobj = 0;
22067 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
2131d850 22068 int result;
1bd55598
RD
22069 void *argp1 = 0 ;
22070 int res1 = 0 ;
22071 PyObject *swig_obj[1] ;
22072
22073 if (!args) SWIG_fail;
22074 swig_obj[0] = args;
22075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
22076 if (!SWIG_IsOK(res1)) {
22077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_GetInt" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
22078 }
22079 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
22080 {
22081 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 22082 result = (int)((wxCommandEvent const *)arg1)->GetInt();
1bd55598
RD
22083 wxPyEndAllowThreads(__tstate);
22084 if (PyErr_Occurred()) SWIG_fail;
22085 }
2131d850 22086 resultobj = SWIG_From_int(static_cast< int >(result));
1bd55598
RD
22087 return resultobj;
22088fail:
22089 return NULL;
d55e5bfc
RD
22090}
22091
22092
1bd55598
RD
22093SWIGINTERN PyObject *_wrap_CommandEvent_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22094 PyObject *resultobj = 0;
22095 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
22096 PyObject *result = 0 ;
22097 void *argp1 = 0 ;
22098 int res1 = 0 ;
22099 PyObject *swig_obj[1] ;
22100
22101 if (!args) SWIG_fail;
22102 swig_obj[0] = args;
22103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
22104 if (!SWIG_IsOK(res1)) {
22105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_GetClientData" "', expected argument " "1"" of type '" "wxCommandEvent *""'");
22106 }
22107 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
22108 {
22109 PyThreadState* __tstate = wxPyBeginAllowThreads();
22110 result = (PyObject *)wxCommandEvent_GetClientData(arg1);
22111 wxPyEndAllowThreads(__tstate);
22112 if (PyErr_Occurred()) SWIG_fail;
22113 }
22114 resultobj = result;
22115 return resultobj;
22116fail:
22117 return NULL;
22118}
22119
22120
22121SWIGINTERN PyObject *_wrap_CommandEvent_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22122 PyObject *resultobj = 0;
22123 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
22124 PyObject *arg2 = (PyObject *) 0 ;
22125 void *argp1 = 0 ;
22126 int res1 = 0 ;
22127 PyObject * obj0 = 0 ;
22128 PyObject * obj1 = 0 ;
22129 char * kwnames[] = {
22130 (char *) "self",(char *) "clientData", NULL
22131 };
22132
22133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
22134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
22135 if (!SWIG_IsOK(res1)) {
22136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_SetClientData" "', expected argument " "1"" of type '" "wxCommandEvent *""'");
22137 }
22138 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
22139 arg2 = obj1;
22140 {
22141 PyThreadState* __tstate = wxPyBeginAllowThreads();
22142 wxCommandEvent_SetClientData(arg1,arg2);
22143 wxPyEndAllowThreads(__tstate);
22144 if (PyErr_Occurred()) SWIG_fail;
22145 }
22146 resultobj = SWIG_Py_Void();
22147 return resultobj;
22148fail:
22149 return NULL;
4cf4100f
RD
22150}
22151
22152
1bd55598
RD
22153SWIGINTERN PyObject *_wrap_CommandEvent_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22154 PyObject *resultobj = 0;
22155 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
22156 wxEvent *result = 0 ;
22157 void *argp1 = 0 ;
22158 int res1 = 0 ;
22159 PyObject *swig_obj[1] ;
22160
22161 if (!args) SWIG_fail;
22162 swig_obj[0] = args;
22163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
22164 if (!SWIG_IsOK(res1)) {
22165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_Clone" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
22166 }
22167 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
22168 {
22169 PyThreadState* __tstate = wxPyBeginAllowThreads();
22170 result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone();
22171 wxPyEndAllowThreads(__tstate);
22172 if (PyErr_Occurred()) SWIG_fail;
22173 }
22174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEvent, 0 | 0 );
22175 return resultobj;
22176fail:
22177 return NULL;
8fb0e70a
RD
22178}
22179
22180
1bd55598
RD
22181SWIGINTERN PyObject *CommandEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22182 PyObject *obj;
22183 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22184 SWIG_TypeNewClientData(SWIGTYPE_p_wxCommandEvent, SWIG_NewClientData(obj));
22185 return SWIG_Py_Void();
d55e5bfc
RD
22186}
22187
1bd55598
RD
22188SWIGINTERN PyObject *CommandEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22189 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
22190}
22191
1bd55598
RD
22192SWIGINTERN PyObject *_wrap_new_NotifyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22193 PyObject *resultobj = 0;
22194 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22195 int arg2 = (int) 0 ;
22196 wxNotifyEvent *result = 0 ;
22197 int val1 ;
22198 int ecode1 = 0 ;
22199 int val2 ;
22200 int ecode2 = 0 ;
22201 PyObject * obj0 = 0 ;
22202 PyObject * obj1 = 0 ;
22203 char * kwnames[] = {
22204 (char *) "commandType",(char *) "winid", NULL
22205 };
22206
22207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
22208 if (obj0) {
22209 ecode1 = SWIG_AsVal_int(obj0, &val1);
22210 if (!SWIG_IsOK(ecode1)) {
22211 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotifyEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22212 }
22213 arg1 = static_cast< wxEventType >(val1);
22214 }
22215 if (obj1) {
22216 ecode2 = SWIG_AsVal_int(obj1, &val2);
22217 if (!SWIG_IsOK(ecode2)) {
22218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotifyEvent" "', expected argument " "2"" of type '" "int""'");
22219 }
22220 arg2 = static_cast< int >(val2);
22221 }
22222 {
22223 PyThreadState* __tstate = wxPyBeginAllowThreads();
22224 result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2);
22225 wxPyEndAllowThreads(__tstate);
22226 if (PyErr_Occurred()) SWIG_fail;
22227 }
22228 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotifyEvent, SWIG_POINTER_NEW | 0 );
22229 return resultobj;
22230fail:
22231 return NULL;
d55e5bfc
RD
22232}
22233
22234
1bd55598
RD
22235SWIGINTERN PyObject *_wrap_NotifyEvent_Veto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22236 PyObject *resultobj = 0;
22237 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
22238 void *argp1 = 0 ;
22239 int res1 = 0 ;
22240 PyObject *swig_obj[1] ;
22241
22242 if (!args) SWIG_fail;
22243 swig_obj[0] = args;
22244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotifyEvent, 0 | 0 );
22245 if (!SWIG_IsOK(res1)) {
22246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NotifyEvent_Veto" "', expected argument " "1"" of type '" "wxNotifyEvent *""'");
22247 }
22248 arg1 = reinterpret_cast< wxNotifyEvent * >(argp1);
22249 {
22250 PyThreadState* __tstate = wxPyBeginAllowThreads();
22251 (arg1)->Veto();
22252 wxPyEndAllowThreads(__tstate);
22253 if (PyErr_Occurred()) SWIG_fail;
22254 }
22255 resultobj = SWIG_Py_Void();
22256 return resultobj;
22257fail:
22258 return NULL;
d55e5bfc
RD
22259}
22260
22261
1bd55598
RD
22262SWIGINTERN PyObject *_wrap_NotifyEvent_Allow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22263 PyObject *resultobj = 0;
22264 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
22265 void *argp1 = 0 ;
22266 int res1 = 0 ;
22267 PyObject *swig_obj[1] ;
22268
22269 if (!args) SWIG_fail;
22270 swig_obj[0] = args;
22271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotifyEvent, 0 | 0 );
22272 if (!SWIG_IsOK(res1)) {
22273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NotifyEvent_Allow" "', expected argument " "1"" of type '" "wxNotifyEvent *""'");
22274 }
22275 arg1 = reinterpret_cast< wxNotifyEvent * >(argp1);
22276 {
22277 PyThreadState* __tstate = wxPyBeginAllowThreads();
22278 (arg1)->Allow();
22279 wxPyEndAllowThreads(__tstate);
22280 if (PyErr_Occurred()) SWIG_fail;
22281 }
22282 resultobj = SWIG_Py_Void();
22283 return resultobj;
22284fail:
22285 return NULL;
d55e5bfc
RD
22286}
22287
22288
1bd55598
RD
22289SWIGINTERN PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22290 PyObject *resultobj = 0;
22291 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
22292 bool result;
22293 void *argp1 = 0 ;
22294 int res1 = 0 ;
22295 PyObject *swig_obj[1] ;
22296
22297 if (!args) SWIG_fail;
22298 swig_obj[0] = args;
22299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotifyEvent, 0 | 0 );
22300 if (!SWIG_IsOK(res1)) {
22301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NotifyEvent_IsAllowed" "', expected argument " "1"" of type '" "wxNotifyEvent *""'");
22302 }
22303 arg1 = reinterpret_cast< wxNotifyEvent * >(argp1);
22304 {
22305 PyThreadState* __tstate = wxPyBeginAllowThreads();
22306 result = (bool)(arg1)->IsAllowed();
22307 wxPyEndAllowThreads(__tstate);
22308 if (PyErr_Occurred()) SWIG_fail;
22309 }
22310 {
22311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22312 }
22313 return resultobj;
22314fail:
22315 return NULL;
22316}
22317
22318
22319SWIGINTERN PyObject *NotifyEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22320 PyObject *obj;
22321 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22322 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotifyEvent, SWIG_NewClientData(obj));
22323 return SWIG_Py_Void();
22324}
22325
22326SWIGINTERN PyObject *NotifyEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22327 return SWIG_Python_InitShadowInstance(args);
22328}
22329
22330SWIGINTERN PyObject *_wrap_new_ScrollEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22331 PyObject *resultobj = 0;
22332 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22333 int arg2 = (int) 0 ;
22334 int arg3 = (int) 0 ;
22335 int arg4 = (int) 0 ;
22336 wxScrollEvent *result = 0 ;
22337 int val1 ;
22338 int ecode1 = 0 ;
22339 int val2 ;
22340 int ecode2 = 0 ;
22341 int val3 ;
22342 int ecode3 = 0 ;
22343 int val4 ;
22344 int ecode4 = 0 ;
22345 PyObject * obj0 = 0 ;
22346 PyObject * obj1 = 0 ;
22347 PyObject * obj2 = 0 ;
22348 PyObject * obj3 = 0 ;
22349 char * kwnames[] = {
22350 (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL
22351 };
22352
22353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22354 if (obj0) {
22355 ecode1 = SWIG_AsVal_int(obj0, &val1);
22356 if (!SWIG_IsOK(ecode1)) {
22357 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ScrollEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22358 }
22359 arg1 = static_cast< wxEventType >(val1);
22360 }
22361 if (obj1) {
22362 ecode2 = SWIG_AsVal_int(obj1, &val2);
22363 if (!SWIG_IsOK(ecode2)) {
22364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollEvent" "', expected argument " "2"" of type '" "int""'");
22365 }
22366 arg2 = static_cast< int >(val2);
22367 }
22368 if (obj2) {
22369 ecode3 = SWIG_AsVal_int(obj2, &val3);
22370 if (!SWIG_IsOK(ecode3)) {
22371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ScrollEvent" "', expected argument " "3"" of type '" "int""'");
22372 }
22373 arg3 = static_cast< int >(val3);
22374 }
22375 if (obj3) {
22376 ecode4 = SWIG_AsVal_int(obj3, &val4);
22377 if (!SWIG_IsOK(ecode4)) {
22378 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ScrollEvent" "', expected argument " "4"" of type '" "int""'");
22379 }
22380 arg4 = static_cast< int >(val4);
22381 }
22382 {
22383 PyThreadState* __tstate = wxPyBeginAllowThreads();
22384 result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4);
22385 wxPyEndAllowThreads(__tstate);
22386 if (PyErr_Occurred()) SWIG_fail;
22387 }
22388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_NEW | 0 );
22389 return resultobj;
22390fail:
22391 return NULL;
d55e5bfc
RD
22392}
22393
22394
1bd55598
RD
22395SWIGINTERN PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22396 PyObject *resultobj = 0;
22397 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
22398 int result;
22399 void *argp1 = 0 ;
22400 int res1 = 0 ;
22401 PyObject *swig_obj[1] ;
22402
22403 if (!args) SWIG_fail;
22404 swig_obj[0] = args;
22405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollEvent, 0 | 0 );
22406 if (!SWIG_IsOK(res1)) {
22407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollEvent_GetOrientation" "', expected argument " "1"" of type '" "wxScrollEvent const *""'");
22408 }
22409 arg1 = reinterpret_cast< wxScrollEvent * >(argp1);
22410 {
22411 PyThreadState* __tstate = wxPyBeginAllowThreads();
22412 result = (int)((wxScrollEvent const *)arg1)->GetOrientation();
22413 wxPyEndAllowThreads(__tstate);
22414 if (PyErr_Occurred()) SWIG_fail;
22415 }
22416 resultobj = SWIG_From_int(static_cast< int >(result));
22417 return resultobj;
22418fail:
22419 return NULL;
d55e5bfc
RD
22420}
22421
22422
1bd55598
RD
22423SWIGINTERN PyObject *_wrap_ScrollEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22424 PyObject *resultobj = 0;
22425 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
22426 int result;
22427 void *argp1 = 0 ;
22428 int res1 = 0 ;
22429 PyObject *swig_obj[1] ;
22430
22431 if (!args) SWIG_fail;
22432 swig_obj[0] = args;
22433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollEvent, 0 | 0 );
22434 if (!SWIG_IsOK(res1)) {
22435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollEvent_GetPosition" "', expected argument " "1"" of type '" "wxScrollEvent const *""'");
22436 }
22437 arg1 = reinterpret_cast< wxScrollEvent * >(argp1);
22438 {
22439 PyThreadState* __tstate = wxPyBeginAllowThreads();
22440 result = (int)((wxScrollEvent const *)arg1)->GetPosition();
22441 wxPyEndAllowThreads(__tstate);
22442 if (PyErr_Occurred()) SWIG_fail;
22443 }
22444 resultobj = SWIG_From_int(static_cast< int >(result));
22445 return resultobj;
22446fail:
22447 return NULL;
22448}
22449
22450
22451SWIGINTERN PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22452 PyObject *resultobj = 0;
22453 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
22454 int arg2 ;
22455 void *argp1 = 0 ;
22456 int res1 = 0 ;
22457 int val2 ;
22458 int ecode2 = 0 ;
22459 PyObject * obj0 = 0 ;
22460 PyObject * obj1 = 0 ;
22461 char * kwnames[] = {
22462 (char *) "self",(char *) "orient", NULL
22463 };
22464
22465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail;
22466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollEvent, 0 | 0 );
22467 if (!SWIG_IsOK(res1)) {
22468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollEvent_SetOrientation" "', expected argument " "1"" of type '" "wxScrollEvent *""'");
22469 }
22470 arg1 = reinterpret_cast< wxScrollEvent * >(argp1);
22471 ecode2 = SWIG_AsVal_int(obj1, &val2);
22472 if (!SWIG_IsOK(ecode2)) {
22473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollEvent_SetOrientation" "', expected argument " "2"" of type '" "int""'");
22474 }
22475 arg2 = static_cast< int >(val2);
22476 {
22477 PyThreadState* __tstate = wxPyBeginAllowThreads();
22478 (arg1)->SetOrientation(arg2);
22479 wxPyEndAllowThreads(__tstate);
22480 if (PyErr_Occurred()) SWIG_fail;
22481 }
22482 resultobj = SWIG_Py_Void();
22483 return resultobj;
22484fail:
22485 return NULL;
22486}
22487
22488
22489SWIGINTERN PyObject *_wrap_ScrollEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22490 PyObject *resultobj = 0;
22491 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
22492 int arg2 ;
22493 void *argp1 = 0 ;
22494 int res1 = 0 ;
22495 int val2 ;
22496 int ecode2 = 0 ;
22497 PyObject * obj0 = 0 ;
22498 PyObject * obj1 = 0 ;
22499 char * kwnames[] = {
22500 (char *) "self",(char *) "pos", NULL
22501 };
22502
22503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
22504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollEvent, 0 | 0 );
22505 if (!SWIG_IsOK(res1)) {
22506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollEvent_SetPosition" "', expected argument " "1"" of type '" "wxScrollEvent *""'");
22507 }
22508 arg1 = reinterpret_cast< wxScrollEvent * >(argp1);
22509 ecode2 = SWIG_AsVal_int(obj1, &val2);
22510 if (!SWIG_IsOK(ecode2)) {
22511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
22512 }
22513 arg2 = static_cast< int >(val2);
22514 {
22515 PyThreadState* __tstate = wxPyBeginAllowThreads();
22516 (arg1)->SetPosition(arg2);
22517 wxPyEndAllowThreads(__tstate);
22518 if (PyErr_Occurred()) SWIG_fail;
22519 }
22520 resultobj = SWIG_Py_Void();
22521 return resultobj;
22522fail:
22523 return NULL;
22524}
22525
22526
22527SWIGINTERN PyObject *ScrollEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22528 PyObject *obj;
22529 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22530 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollEvent, SWIG_NewClientData(obj));
22531 return SWIG_Py_Void();
22532}
22533
22534SWIGINTERN PyObject *ScrollEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22535 return SWIG_Python_InitShadowInstance(args);
22536}
22537
22538SWIGINTERN PyObject *_wrap_new_ScrollWinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22539 PyObject *resultobj = 0;
22540 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22541 int arg2 = (int) 0 ;
22542 int arg3 = (int) 0 ;
22543 wxScrollWinEvent *result = 0 ;
22544 int val1 ;
22545 int ecode1 = 0 ;
22546 int val2 ;
22547 int ecode2 = 0 ;
22548 int val3 ;
22549 int ecode3 = 0 ;
22550 PyObject * obj0 = 0 ;
22551 PyObject * obj1 = 0 ;
22552 PyObject * obj2 = 0 ;
22553 char * kwnames[] = {
22554 (char *) "commandType",(char *) "pos",(char *) "orient", NULL
22555 };
22556
22557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22558 if (obj0) {
22559 ecode1 = SWIG_AsVal_int(obj0, &val1);
22560 if (!SWIG_IsOK(ecode1)) {
22561 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ScrollWinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22562 }
22563 arg1 = static_cast< wxEventType >(val1);
22564 }
22565 if (obj1) {
22566 ecode2 = SWIG_AsVal_int(obj1, &val2);
22567 if (!SWIG_IsOK(ecode2)) {
22568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollWinEvent" "', expected argument " "2"" of type '" "int""'");
22569 }
22570 arg2 = static_cast< int >(val2);
22571 }
22572 if (obj2) {
22573 ecode3 = SWIG_AsVal_int(obj2, &val3);
22574 if (!SWIG_IsOK(ecode3)) {
22575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ScrollWinEvent" "', expected argument " "3"" of type '" "int""'");
22576 }
22577 arg3 = static_cast< int >(val3);
22578 }
22579 {
22580 PyThreadState* __tstate = wxPyBeginAllowThreads();
22581 result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3);
22582 wxPyEndAllowThreads(__tstate);
22583 if (PyErr_Occurred()) SWIG_fail;
22584 }
22585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_NEW | 0 );
22586 return resultobj;
22587fail:
22588 return NULL;
d55e5bfc
RD
22589}
22590
22591
1bd55598
RD
22592SWIGINTERN PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22593 PyObject *resultobj = 0;
22594 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
22595 int result;
22596 void *argp1 = 0 ;
22597 int res1 = 0 ;
22598 PyObject *swig_obj[1] ;
22599
22600 if (!args) SWIG_fail;
22601 swig_obj[0] = args;
22602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollWinEvent, 0 | 0 );
22603 if (!SWIG_IsOK(res1)) {
22604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollWinEvent_GetOrientation" "', expected argument " "1"" of type '" "wxScrollWinEvent const *""'");
22605 }
22606 arg1 = reinterpret_cast< wxScrollWinEvent * >(argp1);
22607 {
22608 PyThreadState* __tstate = wxPyBeginAllowThreads();
22609 result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation();
22610 wxPyEndAllowThreads(__tstate);
22611 if (PyErr_Occurred()) SWIG_fail;
22612 }
22613 resultobj = SWIG_From_int(static_cast< int >(result));
22614 return resultobj;
22615fail:
22616 return NULL;
d55e5bfc
RD
22617}
22618
22619
1bd55598
RD
22620SWIGINTERN PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22621 PyObject *resultobj = 0;
22622 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
22623 int result;
22624 void *argp1 = 0 ;
22625 int res1 = 0 ;
22626 PyObject *swig_obj[1] ;
22627
22628 if (!args) SWIG_fail;
22629 swig_obj[0] = args;
22630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollWinEvent, 0 | 0 );
22631 if (!SWIG_IsOK(res1)) {
22632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollWinEvent_GetPosition" "', expected argument " "1"" of type '" "wxScrollWinEvent const *""'");
22633 }
22634 arg1 = reinterpret_cast< wxScrollWinEvent * >(argp1);
22635 {
22636 PyThreadState* __tstate = wxPyBeginAllowThreads();
22637 result = (int)((wxScrollWinEvent const *)arg1)->GetPosition();
22638 wxPyEndAllowThreads(__tstate);
22639 if (PyErr_Occurred()) SWIG_fail;
22640 }
22641 resultobj = SWIG_From_int(static_cast< int >(result));
22642 return resultobj;
22643fail:
22644 return NULL;
22645}
22646
22647
22648SWIGINTERN PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22649 PyObject *resultobj = 0;
22650 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
22651 int arg2 ;
22652 void *argp1 = 0 ;
22653 int res1 = 0 ;
22654 int val2 ;
22655 int ecode2 = 0 ;
22656 PyObject * obj0 = 0 ;
22657 PyObject * obj1 = 0 ;
22658 char * kwnames[] = {
22659 (char *) "self",(char *) "orient", NULL
22660 };
22661
22662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail;
22663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollWinEvent, 0 | 0 );
22664 if (!SWIG_IsOK(res1)) {
22665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollWinEvent_SetOrientation" "', expected argument " "1"" of type '" "wxScrollWinEvent *""'");
22666 }
22667 arg1 = reinterpret_cast< wxScrollWinEvent * >(argp1);
22668 ecode2 = SWIG_AsVal_int(obj1, &val2);
22669 if (!SWIG_IsOK(ecode2)) {
22670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollWinEvent_SetOrientation" "', expected argument " "2"" of type '" "int""'");
22671 }
22672 arg2 = static_cast< int >(val2);
22673 {
22674 PyThreadState* __tstate = wxPyBeginAllowThreads();
22675 (arg1)->SetOrientation(arg2);
22676 wxPyEndAllowThreads(__tstate);
22677 if (PyErr_Occurred()) SWIG_fail;
22678 }
22679 resultobj = SWIG_Py_Void();
22680 return resultobj;
22681fail:
22682 return NULL;
22683}
22684
22685
22686SWIGINTERN PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22687 PyObject *resultobj = 0;
22688 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
22689 int arg2 ;
22690 void *argp1 = 0 ;
22691 int res1 = 0 ;
22692 int val2 ;
22693 int ecode2 = 0 ;
22694 PyObject * obj0 = 0 ;
22695 PyObject * obj1 = 0 ;
22696 char * kwnames[] = {
22697 (char *) "self",(char *) "pos", NULL
22698 };
22699
22700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
22701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollWinEvent, 0 | 0 );
22702 if (!SWIG_IsOK(res1)) {
22703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollWinEvent_SetPosition" "', expected argument " "1"" of type '" "wxScrollWinEvent *""'");
22704 }
22705 arg1 = reinterpret_cast< wxScrollWinEvent * >(argp1);
22706 ecode2 = SWIG_AsVal_int(obj1, &val2);
22707 if (!SWIG_IsOK(ecode2)) {
22708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollWinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
22709 }
22710 arg2 = static_cast< int >(val2);
22711 {
22712 PyThreadState* __tstate = wxPyBeginAllowThreads();
22713 (arg1)->SetPosition(arg2);
22714 wxPyEndAllowThreads(__tstate);
22715 if (PyErr_Occurred()) SWIG_fail;
22716 }
22717 resultobj = SWIG_Py_Void();
22718 return resultobj;
22719fail:
22720 return NULL;
d55e5bfc
RD
22721}
22722
22723
1bd55598
RD
22724SWIGINTERN PyObject *ScrollWinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22725 PyObject *obj;
22726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22727 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollWinEvent, SWIG_NewClientData(obj));
22728 return SWIG_Py_Void();
d55e5bfc
RD
22729}
22730
1bd55598
RD
22731SWIGINTERN PyObject *ScrollWinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22732 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
22733}
22734
1bd55598
RD
22735SWIGINTERN PyObject *_wrap_new_MouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22736 PyObject *resultobj = 0;
22737 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22738 wxMouseEvent *result = 0 ;
22739 int val1 ;
22740 int ecode1 = 0 ;
22741 PyObject * obj0 = 0 ;
22742 char * kwnames[] = {
22743 (char *) "mouseType", NULL
22744 };
22745
22746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) SWIG_fail;
22747 if (obj0) {
22748 ecode1 = SWIG_AsVal_int(obj0, &val1);
22749 if (!SWIG_IsOK(ecode1)) {
22750 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MouseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22751 }
22752 arg1 = static_cast< wxEventType >(val1);
22753 }
22754 {
22755 PyThreadState* __tstate = wxPyBeginAllowThreads();
22756 result = (wxMouseEvent *)new wxMouseEvent(arg1);
22757 wxPyEndAllowThreads(__tstate);
22758 if (PyErr_Occurred()) SWIG_fail;
22759 }
3ecece7e 22760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_NEW | 0 );
1bd55598
RD
22761 return resultobj;
22762fail:
22763 return NULL;
d55e5bfc
RD
22764}
22765
22766
1bd55598
RD
22767SWIGINTERN PyObject *_wrap_MouseEvent_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22768 PyObject *resultobj = 0;
22769 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
22770 bool result;
22771 void *argp1 = 0 ;
22772 int res1 = 0 ;
22773 PyObject *swig_obj[1] ;
22774
22775 if (!args) SWIG_fail;
22776 swig_obj[0] = args;
22777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
22778 if (!SWIG_IsOK(res1)) {
22779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_IsButton" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
22780 }
22781 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
22782 {
22783 PyThreadState* __tstate = wxPyBeginAllowThreads();
22784 result = (bool)((wxMouseEvent const *)arg1)->IsButton();
22785 wxPyEndAllowThreads(__tstate);
22786 if (PyErr_Occurred()) SWIG_fail;
22787 }
22788 {
22789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22790 }
22791 return resultobj;
22792fail:
22793 return NULL;
22794}
22795
22796
22797SWIGINTERN PyObject *_wrap_MouseEvent_ButtonDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22798 PyObject *resultobj = 0;
22799 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
22800 int arg2 = (int) wxMOUSE_BTN_ANY ;
22801 bool result;
22802 void *argp1 = 0 ;
22803 int res1 = 0 ;
22804 int val2 ;
22805 int ecode2 = 0 ;
22806 PyObject * obj0 = 0 ;
22807 PyObject * obj1 = 0 ;
22808 char * kwnames[] = {
22809 (char *) "self",(char *) "but", NULL
22810 };
22811
22812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) SWIG_fail;
22813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
22814 if (!SWIG_IsOK(res1)) {
22815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ButtonDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
22816 }
22817 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
22818 if (obj1) {
22819 ecode2 = SWIG_AsVal_int(obj1, &val2);
22820 if (!SWIG_IsOK(ecode2)) {
22821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_ButtonDown" "', expected argument " "2"" of type '" "int""'");
22822 }
22823 arg2 = static_cast< int >(val2);
22824 }
22825 {
22826 PyThreadState* __tstate = wxPyBeginAllowThreads();
22827 result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2);
22828 wxPyEndAllowThreads(__tstate);
22829 if (PyErr_Occurred()) SWIG_fail;
22830 }
22831 {
22832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22833 }
22834 return resultobj;
22835fail:
22836 return NULL;
22837}
22838
22839
22840SWIGINTERN PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22841 PyObject *resultobj = 0;
22842 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
22843 int arg2 = (int) wxMOUSE_BTN_ANY ;
22844 bool result;
22845 void *argp1 = 0 ;
22846 int res1 = 0 ;
22847 int val2 ;
22848 int ecode2 = 0 ;
22849 PyObject * obj0 = 0 ;
22850 PyObject * obj1 = 0 ;
22851 char * kwnames[] = {
22852 (char *) "self",(char *) "but", NULL
22853 };
22854
22855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) SWIG_fail;
22856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
22857 if (!SWIG_IsOK(res1)) {
22858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ButtonDClick" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
22859 }
22860 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
22861 if (obj1) {
22862 ecode2 = SWIG_AsVal_int(obj1, &val2);
22863 if (!SWIG_IsOK(ecode2)) {
22864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_ButtonDClick" "', expected argument " "2"" of type '" "int""'");
22865 }
22866 arg2 = static_cast< int >(val2);
22867 }
22868 {
22869 PyThreadState* __tstate = wxPyBeginAllowThreads();
22870 result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2);
22871 wxPyEndAllowThreads(__tstate);
22872 if (PyErr_Occurred()) SWIG_fail;
22873 }
22874 {
22875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22876 }
22877 return resultobj;
22878fail:
22879 return NULL;
22880}
22881
22882
22883SWIGINTERN PyObject *_wrap_MouseEvent_ButtonUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22884 PyObject *resultobj = 0;
22885 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
22886 int arg2 = (int) wxMOUSE_BTN_ANY ;
22887 bool result;
22888 void *argp1 = 0 ;
22889 int res1 = 0 ;
22890 int val2 ;
22891 int ecode2 = 0 ;
22892 PyObject * obj0 = 0 ;
22893 PyObject * obj1 = 0 ;
22894 char * kwnames[] = {
22895 (char *) "self",(char *) "but", NULL
22896 };
22897
22898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) SWIG_fail;
22899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
22900 if (!SWIG_IsOK(res1)) {
22901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ButtonUp" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
22902 }
22903 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
22904 if (obj1) {
22905 ecode2 = SWIG_AsVal_int(obj1, &val2);
22906 if (!SWIG_IsOK(ecode2)) {
22907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_ButtonUp" "', expected argument " "2"" of type '" "int""'");
22908 }
22909 arg2 = static_cast< int >(val2);
22910 }
22911 {
22912 PyThreadState* __tstate = wxPyBeginAllowThreads();
22913 result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2);
22914 wxPyEndAllowThreads(__tstate);
22915 if (PyErr_Occurred()) SWIG_fail;
22916 }
22917 {
22918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22919 }
22920 return resultobj;
22921fail:
22922 return NULL;
22923}
22924
22925
22926SWIGINTERN PyObject *_wrap_MouseEvent_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22927 PyObject *resultobj = 0;
22928 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
22929 int arg2 ;
22930 bool result;
22931 void *argp1 = 0 ;
22932 int res1 = 0 ;
22933 int val2 ;
22934 int ecode2 = 0 ;
22935 PyObject * obj0 = 0 ;
22936 PyObject * obj1 = 0 ;
22937 char * kwnames[] = {
22938 (char *) "self",(char *) "button", NULL
22939 };
22940
22941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) SWIG_fail;
22942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
22943 if (!SWIG_IsOK(res1)) {
22944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_Button" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
22945 }
22946 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
22947 ecode2 = SWIG_AsVal_int(obj1, &val2);
22948 if (!SWIG_IsOK(ecode2)) {
22949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_Button" "', expected argument " "2"" of type '" "int""'");
22950 }
22951 arg2 = static_cast< int >(val2);
22952 {
22953 PyThreadState* __tstate = wxPyBeginAllowThreads();
22954 result = (bool)((wxMouseEvent const *)arg1)->Button(arg2);
22955 wxPyEndAllowThreads(__tstate);
22956 if (PyErr_Occurred()) SWIG_fail;
22957 }
22958 {
22959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22960 }
22961 return resultobj;
22962fail:
22963 return NULL;
22964}
22965
22966
22967SWIGINTERN PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22968 PyObject *resultobj = 0;
22969 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
22970 int arg2 ;
22971 bool result;
22972 void *argp1 = 0 ;
22973 int res1 = 0 ;
22974 int val2 ;
22975 int ecode2 = 0 ;
22976 PyObject * obj0 = 0 ;
22977 PyObject * obj1 = 0 ;
22978 char * kwnames[] = {
22979 (char *) "self",(char *) "but", NULL
22980 };
22981
22982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) SWIG_fail;
22983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
22984 if (!SWIG_IsOK(res1)) {
22985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ButtonIsDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
22986 }
22987 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
22988 ecode2 = SWIG_AsVal_int(obj1, &val2);
22989 if (!SWIG_IsOK(ecode2)) {
22990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_ButtonIsDown" "', expected argument " "2"" of type '" "int""'");
22991 }
22992 arg2 = static_cast< int >(val2);
22993 {
22994 PyThreadState* __tstate = wxPyBeginAllowThreads();
22995 result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2);
22996 wxPyEndAllowThreads(__tstate);
22997 if (PyErr_Occurred()) SWIG_fail;
22998 }
22999 {
23000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23001 }
23002 return resultobj;
23003fail:
23004 return NULL;
d55e5bfc
RD
23005}
23006
23007
1bd55598
RD
23008SWIGINTERN PyObject *_wrap_MouseEvent_GetButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23009 PyObject *resultobj = 0;
23010 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23011 int result;
23012 void *argp1 = 0 ;
23013 int res1 = 0 ;
23014 PyObject *swig_obj[1] ;
23015
23016 if (!args) SWIG_fail;
23017 swig_obj[0] = args;
23018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23019 if (!SWIG_IsOK(res1)) {
23020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetButton" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23021 }
23022 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23023 {
23024 PyThreadState* __tstate = wxPyBeginAllowThreads();
23025 result = (int)((wxMouseEvent const *)arg1)->GetButton();
23026 wxPyEndAllowThreads(__tstate);
23027 if (PyErr_Occurred()) SWIG_fail;
23028 }
23029 resultobj = SWIG_From_int(static_cast< int >(result));
23030 return resultobj;
23031fail:
23032 return NULL;
d55e5bfc
RD
23033}
23034
23035
1bd55598
RD
23036SWIGINTERN PyObject *_wrap_MouseEvent_ControlDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23037 PyObject *resultobj = 0;
23038 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23039 bool result;
23040 void *argp1 = 0 ;
23041 int res1 = 0 ;
23042 PyObject *swig_obj[1] ;
23043
23044 if (!args) SWIG_fail;
23045 swig_obj[0] = args;
23046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23047 if (!SWIG_IsOK(res1)) {
23048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ControlDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23049 }
23050 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23051 {
23052 PyThreadState* __tstate = wxPyBeginAllowThreads();
23053 result = (bool)((wxMouseEvent const *)arg1)->ControlDown();
23054 wxPyEndAllowThreads(__tstate);
23055 if (PyErr_Occurred()) SWIG_fail;
23056 }
23057 {
23058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23059 }
23060 return resultobj;
23061fail:
23062 return NULL;
aff4cc5c
RD
23063}
23064
23065
1bd55598
RD
23066SWIGINTERN PyObject *_wrap_MouseEvent_MetaDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23067 PyObject *resultobj = 0;
23068 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23069 bool result;
23070 void *argp1 = 0 ;
23071 int res1 = 0 ;
23072 PyObject *swig_obj[1] ;
23073
23074 if (!args) SWIG_fail;
23075 swig_obj[0] = args;
23076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23077 if (!SWIG_IsOK(res1)) {
23078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_MetaDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23079 }
23080 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23081 {
23082 PyThreadState* __tstate = wxPyBeginAllowThreads();
23083 result = (bool)((wxMouseEvent const *)arg1)->MetaDown();
23084 wxPyEndAllowThreads(__tstate);
23085 if (PyErr_Occurred()) SWIG_fail;
23086 }
23087 {
23088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23089 }
23090 return resultobj;
23091fail:
23092 return NULL;
d55e5bfc
RD
23093}
23094
23095
1bd55598
RD
23096SWIGINTERN PyObject *_wrap_MouseEvent_AltDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23097 PyObject *resultobj = 0;
23098 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23099 bool result;
23100 void *argp1 = 0 ;
23101 int res1 = 0 ;
23102 PyObject *swig_obj[1] ;
23103
23104 if (!args) SWIG_fail;
23105 swig_obj[0] = args;
23106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23107 if (!SWIG_IsOK(res1)) {
23108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_AltDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23109 }
23110 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23111 {
23112 PyThreadState* __tstate = wxPyBeginAllowThreads();
23113 result = (bool)((wxMouseEvent const *)arg1)->AltDown();
23114 wxPyEndAllowThreads(__tstate);
23115 if (PyErr_Occurred()) SWIG_fail;
23116 }
23117 {
23118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23119 }
23120 return resultobj;
23121fail:
23122 return NULL;
d55e5bfc
RD
23123}
23124
23125
1bd55598
RD
23126SWIGINTERN PyObject *_wrap_MouseEvent_ShiftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23127 PyObject *resultobj = 0;
23128 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23129 bool result;
23130 void *argp1 = 0 ;
23131 int res1 = 0 ;
23132 PyObject *swig_obj[1] ;
23133
23134 if (!args) SWIG_fail;
23135 swig_obj[0] = args;
23136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23137 if (!SWIG_IsOK(res1)) {
23138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ShiftDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23139 }
23140 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23141 {
23142 PyThreadState* __tstate = wxPyBeginAllowThreads();
23143 result = (bool)((wxMouseEvent const *)arg1)->ShiftDown();
23144 wxPyEndAllowThreads(__tstate);
23145 if (PyErr_Occurred()) SWIG_fail;
23146 }
23147 {
23148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23149 }
23150 return resultobj;
23151fail:
23152 return NULL;
d55e5bfc
RD
23153}
23154
23155
1bd55598
RD
23156SWIGINTERN PyObject *_wrap_MouseEvent_CmdDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23157 PyObject *resultobj = 0;
23158 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23159 bool result;
23160 void *argp1 = 0 ;
23161 int res1 = 0 ;
23162 PyObject *swig_obj[1] ;
23163
23164 if (!args) SWIG_fail;
23165 swig_obj[0] = args;
23166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23167 if (!SWIG_IsOK(res1)) {
23168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_CmdDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23169 }
23170 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23171 {
23172 PyThreadState* __tstate = wxPyBeginAllowThreads();
23173 result = (bool)((wxMouseEvent const *)arg1)->CmdDown();
23174 wxPyEndAllowThreads(__tstate);
23175 if (PyErr_Occurred()) SWIG_fail;
23176 }
23177 {
23178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23179 }
23180 return resultobj;
23181fail:
23182 return NULL;
d55e5bfc
RD
23183}
23184
23185
1bd55598
RD
23186SWIGINTERN PyObject *_wrap_MouseEvent_LeftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23187 PyObject *resultobj = 0;
23188 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23189 bool result;
23190 void *argp1 = 0 ;
23191 int res1 = 0 ;
23192 PyObject *swig_obj[1] ;
23193
23194 if (!args) SWIG_fail;
23195 swig_obj[0] = args;
23196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23197 if (!SWIG_IsOK(res1)) {
23198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_LeftDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23199 }
23200 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23201 {
23202 PyThreadState* __tstate = wxPyBeginAllowThreads();
23203 result = (bool)((wxMouseEvent const *)arg1)->LeftDown();
23204 wxPyEndAllowThreads(__tstate);
23205 if (PyErr_Occurred()) SWIG_fail;
23206 }
23207 {
23208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23209 }
23210 return resultobj;
23211fail:
23212 return NULL;
d55e5bfc
RD
23213}
23214
23215
1bd55598
RD
23216SWIGINTERN PyObject *_wrap_MouseEvent_MiddleDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23217 PyObject *resultobj = 0;
23218 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23219 bool result;
23220 void *argp1 = 0 ;
23221 int res1 = 0 ;
23222 PyObject *swig_obj[1] ;
23223
23224 if (!args) SWIG_fail;
23225 swig_obj[0] = args;
23226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23227 if (!SWIG_IsOK(res1)) {
23228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_MiddleDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23229 }
23230 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23231 {
23232 PyThreadState* __tstate = wxPyBeginAllowThreads();
23233 result = (bool)((wxMouseEvent const *)arg1)->MiddleDown();
23234 wxPyEndAllowThreads(__tstate);
23235 if (PyErr_Occurred()) SWIG_fail;
23236 }
23237 {
23238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23239 }
23240 return resultobj;
23241fail:
23242 return NULL;
d55e5bfc
RD
23243}
23244
23245
1bd55598
RD
23246SWIGINTERN PyObject *_wrap_MouseEvent_RightDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23247 PyObject *resultobj = 0;
23248 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23249 bool result;
23250 void *argp1 = 0 ;
23251 int res1 = 0 ;
23252 PyObject *swig_obj[1] ;
23253
23254 if (!args) SWIG_fail;
23255 swig_obj[0] = args;
23256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23257 if (!SWIG_IsOK(res1)) {
23258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_RightDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23259 }
23260 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23261 {
23262 PyThreadState* __tstate = wxPyBeginAllowThreads();
23263 result = (bool)((wxMouseEvent const *)arg1)->RightDown();
23264 wxPyEndAllowThreads(__tstate);
23265 if (PyErr_Occurred()) SWIG_fail;
23266 }
23267 {
23268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23269 }
23270 return resultobj;
23271fail:
23272 return NULL;
d55e5bfc
RD
23273}
23274
23275
1bd55598
RD
23276SWIGINTERN PyObject *_wrap_MouseEvent_LeftUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23277 PyObject *resultobj = 0;
23278 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23279 bool result;
23280 void *argp1 = 0 ;
23281 int res1 = 0 ;
23282 PyObject *swig_obj[1] ;
23283
23284 if (!args) SWIG_fail;
23285 swig_obj[0] = args;
23286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23287 if (!SWIG_IsOK(res1)) {
23288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_LeftUp" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23289 }
23290 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23291 {
23292 PyThreadState* __tstate = wxPyBeginAllowThreads();
23293 result = (bool)((wxMouseEvent const *)arg1)->LeftUp();
23294 wxPyEndAllowThreads(__tstate);
23295 if (PyErr_Occurred()) SWIG_fail;
23296 }
23297 {
23298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23299 }
23300 return resultobj;
23301fail:
23302 return NULL;
d55e5bfc
RD
23303}
23304
23305
1bd55598
RD
23306SWIGINTERN PyObject *_wrap_MouseEvent_MiddleUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23307 PyObject *resultobj = 0;
23308 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23309 bool result;
23310 void *argp1 = 0 ;
23311 int res1 = 0 ;
23312 PyObject *swig_obj[1] ;
23313
23314 if (!args) SWIG_fail;
23315 swig_obj[0] = args;
23316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23317 if (!SWIG_IsOK(res1)) {
23318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_MiddleUp" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23319 }
23320 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23321 {
23322 PyThreadState* __tstate = wxPyBeginAllowThreads();
23323 result = (bool)((wxMouseEvent const *)arg1)->MiddleUp();
23324 wxPyEndAllowThreads(__tstate);
23325 if (PyErr_Occurred()) SWIG_fail;
23326 }
23327 {
23328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23329 }
23330 return resultobj;
23331fail:
23332 return NULL;
d55e5bfc
RD
23333}
23334
23335
1bd55598
RD
23336SWIGINTERN PyObject *_wrap_MouseEvent_RightUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23337 PyObject *resultobj = 0;
23338 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23339 bool result;
23340 void *argp1 = 0 ;
23341 int res1 = 0 ;
23342 PyObject *swig_obj[1] ;
23343
23344 if (!args) SWIG_fail;
23345 swig_obj[0] = args;
23346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23347 if (!SWIG_IsOK(res1)) {
23348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_RightUp" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23349 }
23350 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23351 {
23352 PyThreadState* __tstate = wxPyBeginAllowThreads();
23353 result = (bool)((wxMouseEvent const *)arg1)->RightUp();
23354 wxPyEndAllowThreads(__tstate);
23355 if (PyErr_Occurred()) SWIG_fail;
23356 }
23357 {
23358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23359 }
23360 return resultobj;
23361fail:
23362 return NULL;
d55e5bfc
RD
23363}
23364
23365
1bd55598
RD
23366SWIGINTERN PyObject *_wrap_MouseEvent_LeftDClick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23367 PyObject *resultobj = 0;
23368 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23369 bool result;
23370 void *argp1 = 0 ;
23371 int res1 = 0 ;
23372 PyObject *swig_obj[1] ;
23373
23374 if (!args) SWIG_fail;
23375 swig_obj[0] = args;
23376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23377 if (!SWIG_IsOK(res1)) {
23378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_LeftDClick" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23379 }
23380 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23381 {
23382 PyThreadState* __tstate = wxPyBeginAllowThreads();
23383 result = (bool)((wxMouseEvent const *)arg1)->LeftDClick();
23384 wxPyEndAllowThreads(__tstate);
23385 if (PyErr_Occurred()) SWIG_fail;
23386 }
23387 {
23388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23389 }
23390 return resultobj;
23391fail:
23392 return NULL;
d55e5bfc
RD
23393}
23394
23395
1bd55598
RD
23396SWIGINTERN PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23397 PyObject *resultobj = 0;
23398 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23399 bool result;
23400 void *argp1 = 0 ;
23401 int res1 = 0 ;
23402 PyObject *swig_obj[1] ;
23403
23404 if (!args) SWIG_fail;
23405 swig_obj[0] = args;
23406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23407 if (!SWIG_IsOK(res1)) {
23408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_MiddleDClick" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23409 }
23410 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23411 {
23412 PyThreadState* __tstate = wxPyBeginAllowThreads();
23413 result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick();
23414 wxPyEndAllowThreads(__tstate);
23415 if (PyErr_Occurred()) SWIG_fail;
23416 }
23417 {
23418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23419 }
23420 return resultobj;
23421fail:
23422 return NULL;
aff4cc5c
RD
23423}
23424
23425
1bd55598
RD
23426SWIGINTERN PyObject *_wrap_MouseEvent_RightDClick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23427 PyObject *resultobj = 0;
23428 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23429 bool result;
23430 void *argp1 = 0 ;
23431 int res1 = 0 ;
23432 PyObject *swig_obj[1] ;
23433
23434 if (!args) SWIG_fail;
23435 swig_obj[0] = args;
23436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23437 if (!SWIG_IsOK(res1)) {
23438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_RightDClick" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23439 }
23440 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23441 {
23442 PyThreadState* __tstate = wxPyBeginAllowThreads();
23443 result = (bool)((wxMouseEvent const *)arg1)->RightDClick();
23444 wxPyEndAllowThreads(__tstate);
23445 if (PyErr_Occurred()) SWIG_fail;
23446 }
23447 {
23448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23449 }
23450 return resultobj;
23451fail:
23452 return NULL;
d55e5bfc
RD
23453}
23454
23455
1bd55598
RD
23456SWIGINTERN PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23457 PyObject *resultobj = 0;
23458 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23459 bool result;
23460 void *argp1 = 0 ;
23461 int res1 = 0 ;
23462 PyObject *swig_obj[1] ;
23463
23464 if (!args) SWIG_fail;
23465 swig_obj[0] = args;
23466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23467 if (!SWIG_IsOK(res1)) {
23468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_LeftIsDown" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
23469 }
23470 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23471 {
23472 PyThreadState* __tstate = wxPyBeginAllowThreads();
23473 result = (bool)(arg1)->LeftIsDown();
23474 wxPyEndAllowThreads(__tstate);
23475 if (PyErr_Occurred()) SWIG_fail;
23476 }
23477 {
23478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23479 }
23480 return resultobj;
23481fail:
23482 return NULL;
d55e5bfc
RD
23483}
23484
23485
1bd55598
RD
23486SWIGINTERN PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23487 PyObject *resultobj = 0;
23488 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23489 bool result;
23490 void *argp1 = 0 ;
23491 int res1 = 0 ;
23492 PyObject *swig_obj[1] ;
23493
23494 if (!args) SWIG_fail;
23495 swig_obj[0] = args;
23496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23497 if (!SWIG_IsOK(res1)) {
23498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_MiddleIsDown" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
23499 }
23500 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23501 {
23502 PyThreadState* __tstate = wxPyBeginAllowThreads();
23503 result = (bool)(arg1)->MiddleIsDown();
23504 wxPyEndAllowThreads(__tstate);
23505 if (PyErr_Occurred()) SWIG_fail;
23506 }
23507 {
23508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23509 }
23510 return resultobj;
23511fail:
23512 return NULL;
d55e5bfc
RD
23513}
23514
23515
1bd55598
RD
23516SWIGINTERN PyObject *_wrap_MouseEvent_RightIsDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23517 PyObject *resultobj = 0;
23518 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23519 bool result;
23520 void *argp1 = 0 ;
23521 int res1 = 0 ;
23522 PyObject *swig_obj[1] ;
23523
23524 if (!args) SWIG_fail;
23525 swig_obj[0] = args;
23526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23527 if (!SWIG_IsOK(res1)) {
23528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_RightIsDown" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
23529 }
23530 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23531 {
23532 PyThreadState* __tstate = wxPyBeginAllowThreads();
23533 result = (bool)(arg1)->RightIsDown();
23534 wxPyEndAllowThreads(__tstate);
23535 if (PyErr_Occurred()) SWIG_fail;
23536 }
23537 {
23538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23539 }
23540 return resultobj;
23541fail:
23542 return NULL;
d55e5bfc
RD
23543}
23544
23545
1bd55598
RD
23546SWIGINTERN PyObject *_wrap_MouseEvent_Dragging(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23547 PyObject *resultobj = 0;
23548 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23549 bool result;
23550 void *argp1 = 0 ;
23551 int res1 = 0 ;
23552 PyObject *swig_obj[1] ;
23553
23554 if (!args) SWIG_fail;
23555 swig_obj[0] = args;
23556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23557 if (!SWIG_IsOK(res1)) {
23558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_Dragging" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23559 }
23560 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23561 {
23562 PyThreadState* __tstate = wxPyBeginAllowThreads();
23563 result = (bool)((wxMouseEvent const *)arg1)->Dragging();
23564 wxPyEndAllowThreads(__tstate);
23565 if (PyErr_Occurred()) SWIG_fail;
23566 }
23567 {
23568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23569 }
23570 return resultobj;
23571fail:
23572 return NULL;
d55e5bfc
RD
23573}
23574
23575
1bd55598
RD
23576SWIGINTERN PyObject *_wrap_MouseEvent_Moving(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23577 PyObject *resultobj = 0;
23578 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23579 bool result;
23580 void *argp1 = 0 ;
23581 int res1 = 0 ;
23582 PyObject *swig_obj[1] ;
23583
23584 if (!args) SWIG_fail;
23585 swig_obj[0] = args;
23586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23587 if (!SWIG_IsOK(res1)) {
23588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_Moving" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23589 }
23590 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23591 {
23592 PyThreadState* __tstate = wxPyBeginAllowThreads();
23593 result = (bool)((wxMouseEvent const *)arg1)->Moving();
23594 wxPyEndAllowThreads(__tstate);
23595 if (PyErr_Occurred()) SWIG_fail;
23596 }
23597 {
23598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23599 }
23600 return resultobj;
23601fail:
23602 return NULL;
d55e5bfc
RD
23603}
23604
23605
1bd55598
RD
23606SWIGINTERN PyObject *_wrap_MouseEvent_Entering(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23607 PyObject *resultobj = 0;
23608 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23609 bool result;
23610 void *argp1 = 0 ;
23611 int res1 = 0 ;
23612 PyObject *swig_obj[1] ;
23613
23614 if (!args) SWIG_fail;
23615 swig_obj[0] = args;
23616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23617 if (!SWIG_IsOK(res1)) {
23618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_Entering" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23619 }
23620 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23621 {
23622 PyThreadState* __tstate = wxPyBeginAllowThreads();
23623 result = (bool)((wxMouseEvent const *)arg1)->Entering();
23624 wxPyEndAllowThreads(__tstate);
23625 if (PyErr_Occurred()) SWIG_fail;
23626 }
23627 {
23628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23629 }
23630 return resultobj;
23631fail:
23632 return NULL;
d55e5bfc
RD
23633}
23634
23635
1bd55598
RD
23636SWIGINTERN PyObject *_wrap_MouseEvent_Leaving(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23637 PyObject *resultobj = 0;
23638 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23639 bool result;
23640 void *argp1 = 0 ;
23641 int res1 = 0 ;
23642 PyObject *swig_obj[1] ;
23643
23644 if (!args) SWIG_fail;
23645 swig_obj[0] = args;
23646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23647 if (!SWIG_IsOK(res1)) {
23648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_Leaving" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23649 }
23650 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23651 {
23652 PyThreadState* __tstate = wxPyBeginAllowThreads();
23653 result = (bool)((wxMouseEvent const *)arg1)->Leaving();
23654 wxPyEndAllowThreads(__tstate);
23655 if (PyErr_Occurred()) SWIG_fail;
23656 }
23657 {
23658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23659 }
23660 return resultobj;
23661fail:
23662 return NULL;
d55e5bfc
RD
23663}
23664
23665
1bd55598
RD
23666SWIGINTERN PyObject *_wrap_MouseEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23667 PyObject *resultobj = 0;
23668 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23669 wxPoint result;
23670 void *argp1 = 0 ;
23671 int res1 = 0 ;
23672 PyObject *swig_obj[1] ;
23673
23674 if (!args) SWIG_fail;
23675 swig_obj[0] = args;
23676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23677 if (!SWIG_IsOK(res1)) {
23678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetPosition" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
23679 }
23680 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23681 {
23682 PyThreadState* __tstate = wxPyBeginAllowThreads();
23683 result = (arg1)->GetPosition();
23684 wxPyEndAllowThreads(__tstate);
23685 if (PyErr_Occurred()) SWIG_fail;
23686 }
23687 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23688 return resultobj;
23689fail:
23690 return NULL;
23691}
23692
23693
23694SWIGINTERN PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23695 PyObject *resultobj = 0;
23696 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23697 long *arg2 = (long *) 0 ;
23698 long *arg3 = (long *) 0 ;
23699 void *argp1 = 0 ;
23700 int res1 = 0 ;
23701 long temp2 ;
23702 int res2 = SWIG_TMPOBJ ;
23703 long temp3 ;
23704 int res3 = SWIG_TMPOBJ ;
23705 PyObject *swig_obj[1] ;
23706
23707 arg2 = &temp2;
23708 arg3 = &temp3;
23709 if (!args) SWIG_fail;
23710 swig_obj[0] = args;
23711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23712 if (!SWIG_IsOK(res1)) {
23713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetPositionTuple" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
23714 }
23715 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23716 {
23717 PyThreadState* __tstate = wxPyBeginAllowThreads();
23718 (arg1)->GetPosition(arg2,arg3);
23719 wxPyEndAllowThreads(__tstate);
23720 if (PyErr_Occurred()) SWIG_fail;
23721 }
23722 resultobj = SWIG_Py_Void();
23723 if (SWIG_IsTmpObj(res2)) {
23724 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
23725 } else {
23726 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23727 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
23728 }
23729 if (SWIG_IsTmpObj(res3)) {
23730 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
23731 } else {
23732 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23733 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
23734 }
23735 return resultobj;
23736fail:
23737 return NULL;
23738}
23739
23740
23741SWIGINTERN PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23742 PyObject *resultobj = 0;
23743 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23744 wxDC *arg2 = 0 ;
23745 wxPoint result;
23746 void *argp1 = 0 ;
23747 int res1 = 0 ;
23748 void *argp2 = 0 ;
23749 int res2 = 0 ;
23750 PyObject * obj0 = 0 ;
23751 PyObject * obj1 = 0 ;
23752 char * kwnames[] = {
23753 (char *) "self",(char *) "dc", NULL
23754 };
23755
23756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) SWIG_fail;
23757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23758 if (!SWIG_IsOK(res1)) {
23759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetLogicalPosition" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23760 }
23761 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23762 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 | 0);
23763 if (!SWIG_IsOK(res2)) {
23764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MouseEvent_GetLogicalPosition" "', expected argument " "2"" of type '" "wxDC const &""'");
23765 }
23766 if (!argp2) {
23767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MouseEvent_GetLogicalPosition" "', expected argument " "2"" of type '" "wxDC const &""'");
23768 }
23769 arg2 = reinterpret_cast< wxDC * >(argp2);
23770 {
23771 PyThreadState* __tstate = wxPyBeginAllowThreads();
23772 result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2);
23773 wxPyEndAllowThreads(__tstate);
23774 if (PyErr_Occurred()) SWIG_fail;
23775 }
23776 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23777 return resultobj;
23778fail:
23779 return NULL;
d55e5bfc
RD
23780}
23781
23782
1bd55598
RD
23783SWIGINTERN PyObject *_wrap_MouseEvent_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23784 PyObject *resultobj = 0;
23785 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23786 int result;
23787 void *argp1 = 0 ;
23788 int res1 = 0 ;
23789 PyObject *swig_obj[1] ;
23790
23791 if (!args) SWIG_fail;
23792 swig_obj[0] = args;
23793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23794 if (!SWIG_IsOK(res1)) {
23795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetX" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23796 }
23797 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23798 {
23799 PyThreadState* __tstate = wxPyBeginAllowThreads();
23800 result = (int)((wxMouseEvent const *)arg1)->GetX();
23801 wxPyEndAllowThreads(__tstate);
23802 if (PyErr_Occurred()) SWIG_fail;
23803 }
23804 resultobj = SWIG_From_int(static_cast< int >(result));
23805 return resultobj;
23806fail:
23807 return NULL;
32fe5131
RD
23808}
23809
23810
1bd55598
RD
23811SWIGINTERN PyObject *_wrap_MouseEvent_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23812 PyObject *resultobj = 0;
23813 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23814 int result;
23815 void *argp1 = 0 ;
23816 int res1 = 0 ;
23817 PyObject *swig_obj[1] ;
23818
23819 if (!args) SWIG_fail;
23820 swig_obj[0] = args;
23821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23822 if (!SWIG_IsOK(res1)) {
23823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetY" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23824 }
23825 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23826 {
23827 PyThreadState* __tstate = wxPyBeginAllowThreads();
23828 result = (int)((wxMouseEvent const *)arg1)->GetY();
23829 wxPyEndAllowThreads(__tstate);
23830 if (PyErr_Occurred()) SWIG_fail;
23831 }
23832 resultobj = SWIG_From_int(static_cast< int >(result));
23833 return resultobj;
23834fail:
23835 return NULL;
d55e5bfc
RD
23836}
23837
23838
1bd55598
RD
23839SWIGINTERN PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23840 PyObject *resultobj = 0;
23841 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23842 int result;
23843 void *argp1 = 0 ;
23844 int res1 = 0 ;
23845 PyObject *swig_obj[1] ;
23846
23847 if (!args) SWIG_fail;
23848 swig_obj[0] = args;
23849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23850 if (!SWIG_IsOK(res1)) {
23851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetWheelRotation" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23852 }
23853 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23854 {
23855 PyThreadState* __tstate = wxPyBeginAllowThreads();
23856 result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation();
23857 wxPyEndAllowThreads(__tstate);
23858 if (PyErr_Occurred()) SWIG_fail;
23859 }
23860 resultobj = SWIG_From_int(static_cast< int >(result));
23861 return resultobj;
23862fail:
23863 return NULL;
d55e5bfc
RD
23864}
23865
23866
1bd55598
RD
23867SWIGINTERN PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23868 PyObject *resultobj = 0;
23869 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23870 int result;
23871 void *argp1 = 0 ;
23872 int res1 = 0 ;
23873 PyObject *swig_obj[1] ;
23874
23875 if (!args) SWIG_fail;
23876 swig_obj[0] = args;
23877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23878 if (!SWIG_IsOK(res1)) {
23879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetWheelDelta" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23880 }
23881 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23882 {
23883 PyThreadState* __tstate = wxPyBeginAllowThreads();
23884 result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta();
23885 wxPyEndAllowThreads(__tstate);
23886 if (PyErr_Occurred()) SWIG_fail;
23887 }
23888 resultobj = SWIG_From_int(static_cast< int >(result));
23889 return resultobj;
23890fail:
23891 return NULL;
d55e5bfc
RD
23892}
23893
23894
1bd55598
RD
23895SWIGINTERN PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23896 PyObject *resultobj = 0;
23897 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23898 int result;
23899 void *argp1 = 0 ;
23900 int res1 = 0 ;
23901 PyObject *swig_obj[1] ;
23902
23903 if (!args) SWIG_fail;
23904 swig_obj[0] = args;
23905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23906 if (!SWIG_IsOK(res1)) {
23907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetLinesPerAction" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23908 }
23909 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23910 {
23911 PyThreadState* __tstate = wxPyBeginAllowThreads();
23912 result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction();
23913 wxPyEndAllowThreads(__tstate);
23914 if (PyErr_Occurred()) SWIG_fail;
23915 }
23916 resultobj = SWIG_From_int(static_cast< int >(result));
23917 return resultobj;
23918fail:
23919 return NULL;
d55e5bfc
RD
23920}
23921
23922
1bd55598
RD
23923SWIGINTERN PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23924 PyObject *resultobj = 0;
23925 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23926 bool result;
23927 void *argp1 = 0 ;
23928 int res1 = 0 ;
23929 PyObject *swig_obj[1] ;
23930
23931 if (!args) SWIG_fail;
23932 swig_obj[0] = args;
23933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23934 if (!SWIG_IsOK(res1)) {
23935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_IsPageScroll" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23936 }
23937 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23938 {
23939 PyThreadState* __tstate = wxPyBeginAllowThreads();
23940 result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll();
23941 wxPyEndAllowThreads(__tstate);
23942 if (PyErr_Occurred()) SWIG_fail;
23943 }
23944 {
23945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23946 }
23947 return resultobj;
23948fail:
23949 return NULL;
d55e5bfc
RD
23950}
23951
23952
1bd55598
RD
23953SWIGINTERN PyObject *_wrap_MouseEvent_m_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23954 PyObject *resultobj = 0;
23955 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23956 int arg2 ;
23957 void *argp1 = 0 ;
23958 int res1 = 0 ;
23959 int val2 ;
23960 int ecode2 = 0 ;
23961 PyObject *swig_obj[2] ;
23962
23963 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_x_set",2,2,swig_obj)) SWIG_fail;
23964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23965 if (!SWIG_IsOK(res1)) {
23966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_x_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
23967 }
23968 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23969 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23970 if (!SWIG_IsOK(ecode2)) {
23971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_x_set" "', expected argument " "2"" of type '" "int""'");
23972 }
23973 arg2 = static_cast< int >(val2);
23974 if (arg1) (arg1)->m_x = arg2;
23975
23976 resultobj = SWIG_Py_Void();
23977 return resultobj;
23978fail:
23979 return NULL;
d55e5bfc
RD
23980}
23981
23982
1bd55598
RD
23983SWIGINTERN PyObject *_wrap_MouseEvent_m_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23984 PyObject *resultobj = 0;
23985 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23986 int result;
23987 void *argp1 = 0 ;
23988 int res1 = 0 ;
23989 PyObject *swig_obj[1] ;
23990
23991 if (!args) SWIG_fail;
23992 swig_obj[0] = args;
23993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23994 if (!SWIG_IsOK(res1)) {
23995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_x_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
23996 }
23997 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23998 result = (int) ((arg1)->m_x);
23999 resultobj = SWIG_From_int(static_cast< int >(result));
24000 return resultobj;
24001fail:
24002 return NULL;
24003}
24004
24005
24006SWIGINTERN PyObject *_wrap_MouseEvent_m_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24007 PyObject *resultobj = 0;
24008 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24009 int arg2 ;
24010 void *argp1 = 0 ;
24011 int res1 = 0 ;
24012 int val2 ;
24013 int ecode2 = 0 ;
24014 PyObject *swig_obj[2] ;
24015
24016 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_y_set",2,2,swig_obj)) SWIG_fail;
24017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24018 if (!SWIG_IsOK(res1)) {
24019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_y_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24020 }
24021 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24022 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24023 if (!SWIG_IsOK(ecode2)) {
24024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_y_set" "', expected argument " "2"" of type '" "int""'");
24025 }
24026 arg2 = static_cast< int >(val2);
24027 if (arg1) (arg1)->m_y = arg2;
24028
24029 resultobj = SWIG_Py_Void();
24030 return resultobj;
24031fail:
24032 return NULL;
d55e5bfc
RD
24033}
24034
24035
1bd55598
RD
24036SWIGINTERN PyObject *_wrap_MouseEvent_m_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24037 PyObject *resultobj = 0;
24038 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24039 int result;
24040 void *argp1 = 0 ;
24041 int res1 = 0 ;
24042 PyObject *swig_obj[1] ;
24043
24044 if (!args) SWIG_fail;
24045 swig_obj[0] = args;
24046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24047 if (!SWIG_IsOK(res1)) {
24048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_y_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24049 }
24050 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24051 result = (int) ((arg1)->m_y);
24052 resultobj = SWIG_From_int(static_cast< int >(result));
24053 return resultobj;
24054fail:
24055 return NULL;
24056}
24057
24058
24059SWIGINTERN PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24060 PyObject *resultobj = 0;
24061 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24062 bool arg2 ;
24063 void *argp1 = 0 ;
24064 int res1 = 0 ;
24065 bool val2 ;
24066 int ecode2 = 0 ;
24067 PyObject *swig_obj[2] ;
24068
24069 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_leftDown_set",2,2,swig_obj)) SWIG_fail;
24070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24071 if (!SWIG_IsOK(res1)) {
24072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_leftDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24073 }
24074 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24075 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
24076 if (!SWIG_IsOK(ecode2)) {
24077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_leftDown_set" "', expected argument " "2"" of type '" "bool""'");
24078 }
24079 arg2 = static_cast< bool >(val2);
24080 if (arg1) (arg1)->m_leftDown = arg2;
24081
24082 resultobj = SWIG_Py_Void();
24083 return resultobj;
24084fail:
24085 return NULL;
d55e5bfc
RD
24086}
24087
24088
1bd55598
RD
24089SWIGINTERN PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24090 PyObject *resultobj = 0;
24091 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24092 bool result;
24093 void *argp1 = 0 ;
24094 int res1 = 0 ;
24095 PyObject *swig_obj[1] ;
24096
24097 if (!args) SWIG_fail;
24098 swig_obj[0] = args;
24099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24100 if (!SWIG_IsOK(res1)) {
24101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_leftDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24102 }
24103 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24104 result = (bool) ((arg1)->m_leftDown);
24105 {
24106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24107 }
24108 return resultobj;
24109fail:
24110 return NULL;
d55e5bfc
RD
24111}
24112
24113
1bd55598
RD
24114SWIGINTERN PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24115 PyObject *resultobj = 0;
24116 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24117 bool arg2 ;
24118 void *argp1 = 0 ;
24119 int res1 = 0 ;
24120 bool val2 ;
24121 int ecode2 = 0 ;
24122 PyObject *swig_obj[2] ;
24123
24124 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_middleDown_set",2,2,swig_obj)) SWIG_fail;
24125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24126 if (!SWIG_IsOK(res1)) {
24127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_middleDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24128 }
24129 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24130 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
24131 if (!SWIG_IsOK(ecode2)) {
24132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_middleDown_set" "', expected argument " "2"" of type '" "bool""'");
24133 }
24134 arg2 = static_cast< bool >(val2);
24135 if (arg1) (arg1)->m_middleDown = arg2;
24136
24137 resultobj = SWIG_Py_Void();
24138 return resultobj;
24139fail:
24140 return NULL;
d55e5bfc
RD
24141}
24142
24143
1bd55598
RD
24144SWIGINTERN PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24145 PyObject *resultobj = 0;
24146 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24147 bool result;
24148 void *argp1 = 0 ;
24149 int res1 = 0 ;
24150 PyObject *swig_obj[1] ;
24151
24152 if (!args) SWIG_fail;
24153 swig_obj[0] = args;
24154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24155 if (!SWIG_IsOK(res1)) {
24156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_middleDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24157 }
24158 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24159 result = (bool) ((arg1)->m_middleDown);
24160 {
24161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24162 }
24163 return resultobj;
24164fail:
24165 return NULL;
d55e5bfc
RD
24166}
24167
24168
1bd55598
RD
24169SWIGINTERN PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24170 PyObject *resultobj = 0;
24171 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24172 bool arg2 ;
24173 void *argp1 = 0 ;
24174 int res1 = 0 ;
24175 bool val2 ;
24176 int ecode2 = 0 ;
24177 PyObject *swig_obj[2] ;
24178
24179 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_rightDown_set",2,2,swig_obj)) SWIG_fail;
24180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24181 if (!SWIG_IsOK(res1)) {
24182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_rightDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24183 }
24184 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24185 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
24186 if (!SWIG_IsOK(ecode2)) {
24187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_rightDown_set" "', expected argument " "2"" of type '" "bool""'");
24188 }
24189 arg2 = static_cast< bool >(val2);
24190 if (arg1) (arg1)->m_rightDown = arg2;
24191
24192 resultobj = SWIG_Py_Void();
24193 return resultobj;
24194fail:
24195 return NULL;
d55e5bfc
RD
24196}
24197
24198
1bd55598
RD
24199SWIGINTERN PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24200 PyObject *resultobj = 0;
24201 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24202 bool result;
24203 void *argp1 = 0 ;
24204 int res1 = 0 ;
24205 PyObject *swig_obj[1] ;
24206
24207 if (!args) SWIG_fail;
24208 swig_obj[0] = args;
24209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24210 if (!SWIG_IsOK(res1)) {
24211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_rightDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24212 }
24213 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24214 result = (bool) ((arg1)->m_rightDown);
24215 {
24216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24217 }
24218 return resultobj;
24219fail:
24220 return NULL;
d55e5bfc
RD
24221}
24222
24223
1bd55598
RD
24224SWIGINTERN PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24225 PyObject *resultobj = 0;
24226 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24227 bool arg2 ;
24228 void *argp1 = 0 ;
24229 int res1 = 0 ;
24230 bool val2 ;
24231 int ecode2 = 0 ;
24232 PyObject *swig_obj[2] ;
24233
24234 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_controlDown_set",2,2,swig_obj)) SWIG_fail;
24235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24236 if (!SWIG_IsOK(res1)) {
24237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_controlDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24238 }
24239 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24240 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
24241 if (!SWIG_IsOK(ecode2)) {
24242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_controlDown_set" "', expected argument " "2"" of type '" "bool""'");
24243 }
24244 arg2 = static_cast< bool >(val2);
24245 if (arg1) (arg1)->m_controlDown = arg2;
24246
24247 resultobj = SWIG_Py_Void();
24248 return resultobj;
24249fail:
24250 return NULL;
d55e5bfc
RD
24251}
24252
24253
1bd55598
RD
24254SWIGINTERN PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24255 PyObject *resultobj = 0;
24256 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24257 bool result;
24258 void *argp1 = 0 ;
24259 int res1 = 0 ;
24260 PyObject *swig_obj[1] ;
24261
24262 if (!args) SWIG_fail;
24263 swig_obj[0] = args;
24264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24265 if (!SWIG_IsOK(res1)) {
24266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_controlDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24267 }
24268 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24269 result = (bool) ((arg1)->m_controlDown);
24270 {
24271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24272 }
24273 return resultobj;
24274fail:
24275 return NULL;
943e8dfd
RD
24276}
24277
24278
1bd55598
RD
24279SWIGINTERN PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24280 PyObject *resultobj = 0;
24281 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24282 bool arg2 ;
24283 void *argp1 = 0 ;
24284 int res1 = 0 ;
24285 bool val2 ;
24286 int ecode2 = 0 ;
24287 PyObject *swig_obj[2] ;
24288
24289 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_shiftDown_set",2,2,swig_obj)) SWIG_fail;
24290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24291 if (!SWIG_IsOK(res1)) {
24292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_shiftDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24293 }
24294 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24295 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
24296 if (!SWIG_IsOK(ecode2)) {
24297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_shiftDown_set" "', expected argument " "2"" of type '" "bool""'");
24298 }
24299 arg2 = static_cast< bool >(val2);
24300 if (arg1) (arg1)->m_shiftDown = arg2;
24301
24302 resultobj = SWIG_Py_Void();
24303 return resultobj;
24304fail:
24305 return NULL;
943e8dfd
RD
24306}
24307
24308
1bd55598
RD
24309SWIGINTERN PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24310 PyObject *resultobj = 0;
24311 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24312 bool result;
24313 void *argp1 = 0 ;
24314 int res1 = 0 ;
24315 PyObject *swig_obj[1] ;
24316
24317 if (!args) SWIG_fail;
24318 swig_obj[0] = args;
24319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24320 if (!SWIG_IsOK(res1)) {
24321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_shiftDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24322 }
24323 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24324 result = (bool) ((arg1)->m_shiftDown);
24325 {
24326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24327 }
24328 return resultobj;
24329fail:
24330 return NULL;
943e8dfd
RD
24331}
24332
24333
1bd55598
RD
24334SWIGINTERN PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24335 PyObject *resultobj = 0;
24336 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24337 bool arg2 ;
24338 void *argp1 = 0 ;
24339 int res1 = 0 ;
24340 bool val2 ;
24341 int ecode2 = 0 ;
24342 PyObject *swig_obj[2] ;
24343
24344 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_altDown_set",2,2,swig_obj)) SWIG_fail;
24345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24346 if (!SWIG_IsOK(res1)) {
24347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_altDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24348 }
24349 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24350 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
24351 if (!SWIG_IsOK(ecode2)) {
24352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_altDown_set" "', expected argument " "2"" of type '" "bool""'");
24353 }
24354 arg2 = static_cast< bool >(val2);
24355 if (arg1) (arg1)->m_altDown = arg2;
24356
24357 resultobj = SWIG_Py_Void();
24358 return resultobj;
24359fail:
24360 return NULL;
d55e5bfc
RD
24361}
24362
24363
1bd55598
RD
24364SWIGINTERN PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24365 PyObject *resultobj = 0;
24366 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24367 bool result;
24368 void *argp1 = 0 ;
24369 int res1 = 0 ;
24370 PyObject *swig_obj[1] ;
24371
24372 if (!args) SWIG_fail;
24373 swig_obj[0] = args;
24374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24375 if (!SWIG_IsOK(res1)) {
24376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_altDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24377 }
24378 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24379 result = (bool) ((arg1)->m_altDown);
24380 {
24381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24382 }
24383 return resultobj;
24384fail:
24385 return NULL;
d55e5bfc
RD
24386}
24387
24388
1bd55598
RD
24389SWIGINTERN PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24390 PyObject *resultobj = 0;
24391 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24392 bool arg2 ;
24393 void *argp1 = 0 ;
24394 int res1 = 0 ;
24395 bool val2 ;
24396 int ecode2 = 0 ;
24397 PyObject *swig_obj[2] ;
24398
24399 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_metaDown_set",2,2,swig_obj)) SWIG_fail;
24400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24401 if (!SWIG_IsOK(res1)) {
24402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_metaDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24403 }
24404 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24405 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
24406 if (!SWIG_IsOK(ecode2)) {
24407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_metaDown_set" "', expected argument " "2"" of type '" "bool""'");
24408 }
24409 arg2 = static_cast< bool >(val2);
24410 if (arg1) (arg1)->m_metaDown = arg2;
24411
24412 resultobj = SWIG_Py_Void();
24413 return resultobj;
24414fail:
24415 return NULL;
68350608
RD
24416}
24417
24418
1bd55598
RD
24419SWIGINTERN PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24420 PyObject *resultobj = 0;
24421 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24422 bool result;
24423 void *argp1 = 0 ;
24424 int res1 = 0 ;
24425 PyObject *swig_obj[1] ;
24426
24427 if (!args) SWIG_fail;
24428 swig_obj[0] = args;
24429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24430 if (!SWIG_IsOK(res1)) {
24431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_metaDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24432 }
24433 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24434 result = (bool) ((arg1)->m_metaDown);
24435 {
24436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24437 }
24438 return resultobj;
24439fail:
24440 return NULL;
68350608
RD
24441}
24442
24443
1bd55598
RD
24444SWIGINTERN PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24445 PyObject *resultobj = 0;
24446 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24447 int arg2 ;
24448 void *argp1 = 0 ;
24449 int res1 = 0 ;
24450 int val2 ;
24451 int ecode2 = 0 ;
24452 PyObject *swig_obj[2] ;
24453
24454 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_wheelRotation_set",2,2,swig_obj)) SWIG_fail;
24455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24456 if (!SWIG_IsOK(res1)) {
24457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_wheelRotation_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24458 }
24459 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24460 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24461 if (!SWIG_IsOK(ecode2)) {
24462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_wheelRotation_set" "', expected argument " "2"" of type '" "int""'");
24463 }
24464 arg2 = static_cast< int >(val2);
24465 if (arg1) (arg1)->m_wheelRotation = arg2;
24466
24467 resultobj = SWIG_Py_Void();
24468 return resultobj;
24469fail:
24470 return NULL;
d55e5bfc
RD
24471}
24472
24473
1bd55598
RD
24474SWIGINTERN PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24475 PyObject *resultobj = 0;
24476 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24477 int result;
24478 void *argp1 = 0 ;
24479 int res1 = 0 ;
24480 PyObject *swig_obj[1] ;
24481
24482 if (!args) SWIG_fail;
24483 swig_obj[0] = args;
24484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24485 if (!SWIG_IsOK(res1)) {
24486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_wheelRotation_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24487 }
24488 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24489 result = (int) ((arg1)->m_wheelRotation);
24490 resultobj = SWIG_From_int(static_cast< int >(result));
24491 return resultobj;
24492fail:
24493 return NULL;
24494}
24495
24496
24497SWIGINTERN PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24498 PyObject *resultobj = 0;
24499 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24500 int arg2 ;
24501 void *argp1 = 0 ;
24502 int res1 = 0 ;
24503 int val2 ;
24504 int ecode2 = 0 ;
24505 PyObject *swig_obj[2] ;
24506
24507 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_wheelDelta_set",2,2,swig_obj)) SWIG_fail;
24508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24509 if (!SWIG_IsOK(res1)) {
24510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_wheelDelta_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24511 }
24512 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24513 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24514 if (!SWIG_IsOK(ecode2)) {
24515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_wheelDelta_set" "', expected argument " "2"" of type '" "int""'");
24516 }
24517 arg2 = static_cast< int >(val2);
24518 if (arg1) (arg1)->m_wheelDelta = arg2;
24519
24520 resultobj = SWIG_Py_Void();
24521 return resultobj;
24522fail:
24523 return NULL;
d55e5bfc
RD
24524}
24525
24526
1bd55598
RD
24527SWIGINTERN PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24528 PyObject *resultobj = 0;
24529 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24530 int result;
24531 void *argp1 = 0 ;
24532 int res1 = 0 ;
24533 PyObject *swig_obj[1] ;
24534
24535 if (!args) SWIG_fail;
24536 swig_obj[0] = args;
24537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24538 if (!SWIG_IsOK(res1)) {
24539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_wheelDelta_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24540 }
24541 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24542 result = (int) ((arg1)->m_wheelDelta);
24543 resultobj = SWIG_From_int(static_cast< int >(result));
24544 return resultobj;
24545fail:
24546 return NULL;
24547}
24548
24549
24550SWIGINTERN PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24551 PyObject *resultobj = 0;
24552 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24553 int arg2 ;
24554 void *argp1 = 0 ;
24555 int res1 = 0 ;
24556 int val2 ;
24557 int ecode2 = 0 ;
24558 PyObject *swig_obj[2] ;
24559
24560 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_linesPerAction_set",2,2,swig_obj)) SWIG_fail;
24561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24562 if (!SWIG_IsOK(res1)) {
24563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_linesPerAction_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24564 }
24565 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24566 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24567 if (!SWIG_IsOK(ecode2)) {
24568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_linesPerAction_set" "', expected argument " "2"" of type '" "int""'");
24569 }
24570 arg2 = static_cast< int >(val2);
24571 if (arg1) (arg1)->m_linesPerAction = arg2;
24572
24573 resultobj = SWIG_Py_Void();
24574 return resultobj;
24575fail:
24576 return NULL;
d55e5bfc
RD
24577}
24578
24579
1bd55598
RD
24580SWIGINTERN PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24581 PyObject *resultobj = 0;
24582 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24583 int result;
24584 void *argp1 = 0 ;
24585 int res1 = 0 ;
24586 PyObject *swig_obj[1] ;
24587
24588 if (!args) SWIG_fail;
24589 swig_obj[0] = args;
24590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24591 if (!SWIG_IsOK(res1)) {
24592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_linesPerAction_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24593 }
24594 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24595 result = (int) ((arg1)->m_linesPerAction);
24596 resultobj = SWIG_From_int(static_cast< int >(result));
24597 return resultobj;
24598fail:
24599 return NULL;
24600}
24601
24602
24603SWIGINTERN PyObject *MouseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24604 PyObject *obj;
24605 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24606 SWIG_TypeNewClientData(SWIGTYPE_p_wxMouseEvent, SWIG_NewClientData(obj));
24607 return SWIG_Py_Void();
24608}
24609
24610SWIGINTERN PyObject *MouseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24611 return SWIG_Python_InitShadowInstance(args);
24612}
24613
24614SWIGINTERN PyObject *_wrap_new_SetCursorEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24615 PyObject *resultobj = 0;
24616 int arg1 = (int) 0 ;
24617 int arg2 = (int) 0 ;
24618 wxSetCursorEvent *result = 0 ;
24619 int val1 ;
24620 int ecode1 = 0 ;
24621 int val2 ;
24622 int ecode2 = 0 ;
24623 PyObject * obj0 = 0 ;
24624 PyObject * obj1 = 0 ;
24625 char * kwnames[] = {
24626 (char *) "x",(char *) "y", NULL
24627 };
24628
24629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) SWIG_fail;
24630 if (obj0) {
24631 ecode1 = SWIG_AsVal_int(obj0, &val1);
24632 if (!SWIG_IsOK(ecode1)) {
24633 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SetCursorEvent" "', expected argument " "1"" of type '" "int""'");
24634 }
24635 arg1 = static_cast< int >(val1);
24636 }
24637 if (obj1) {
24638 ecode2 = SWIG_AsVal_int(obj1, &val2);
24639 if (!SWIG_IsOK(ecode2)) {
24640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SetCursorEvent" "', expected argument " "2"" of type '" "int""'");
24641 }
24642 arg2 = static_cast< int >(val2);
24643 }
24644 {
24645 PyThreadState* __tstate = wxPyBeginAllowThreads();
24646 result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2);
24647 wxPyEndAllowThreads(__tstate);
24648 if (PyErr_Occurred()) SWIG_fail;
24649 }
24650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_NEW | 0 );
24651 return resultobj;
24652fail:
24653 return NULL;
d55e5bfc
RD
24654}
24655
24656
1bd55598
RD
24657SWIGINTERN PyObject *_wrap_SetCursorEvent_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24658 PyObject *resultobj = 0;
24659 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
24660 int result;
24661 void *argp1 = 0 ;
24662 int res1 = 0 ;
24663 PyObject *swig_obj[1] ;
24664
24665 if (!args) SWIG_fail;
24666 swig_obj[0] = args;
24667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSetCursorEvent, 0 | 0 );
24668 if (!SWIG_IsOK(res1)) {
24669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursorEvent_GetX" "', expected argument " "1"" of type '" "wxSetCursorEvent const *""'");
24670 }
24671 arg1 = reinterpret_cast< wxSetCursorEvent * >(argp1);
24672 {
24673 PyThreadState* __tstate = wxPyBeginAllowThreads();
24674 result = (int)((wxSetCursorEvent const *)arg1)->GetX();
24675 wxPyEndAllowThreads(__tstate);
24676 if (PyErr_Occurred()) SWIG_fail;
24677 }
24678 resultobj = SWIG_From_int(static_cast< int >(result));
24679 return resultobj;
24680fail:
24681 return NULL;
d55e5bfc
RD
24682}
24683
24684
1bd55598
RD
24685SWIGINTERN PyObject *_wrap_SetCursorEvent_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24686 PyObject *resultobj = 0;
24687 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
24688 int result;
24689 void *argp1 = 0 ;
24690 int res1 = 0 ;
24691 PyObject *swig_obj[1] ;
24692
24693 if (!args) SWIG_fail;
24694 swig_obj[0] = args;
24695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSetCursorEvent, 0 | 0 );
24696 if (!SWIG_IsOK(res1)) {
24697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursorEvent_GetY" "', expected argument " "1"" of type '" "wxSetCursorEvent const *""'");
24698 }
24699 arg1 = reinterpret_cast< wxSetCursorEvent * >(argp1);
24700 {
24701 PyThreadState* __tstate = wxPyBeginAllowThreads();
24702 result = (int)((wxSetCursorEvent const *)arg1)->GetY();
24703 wxPyEndAllowThreads(__tstate);
24704 if (PyErr_Occurred()) SWIG_fail;
24705 }
24706 resultobj = SWIG_From_int(static_cast< int >(result));
24707 return resultobj;
24708fail:
24709 return NULL;
24710}
24711
24712
24713SWIGINTERN PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24714 PyObject *resultobj = 0;
24715 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
24716 wxCursor *arg2 = 0 ;
24717 void *argp1 = 0 ;
24718 int res1 = 0 ;
24719 void *argp2 = 0 ;
24720 int res2 = 0 ;
24721 PyObject * obj0 = 0 ;
24722 PyObject * obj1 = 0 ;
24723 char * kwnames[] = {
24724 (char *) "self",(char *) "cursor", NULL
24725 };
24726
24727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) SWIG_fail;
24728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSetCursorEvent, 0 | 0 );
24729 if (!SWIG_IsOK(res1)) {
24730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursorEvent_SetCursor" "', expected argument " "1"" of type '" "wxSetCursorEvent *""'");
24731 }
24732 arg1 = reinterpret_cast< wxSetCursorEvent * >(argp1);
24733 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
24734 if (!SWIG_IsOK(res2)) {
24735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SetCursorEvent_SetCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
24736 }
24737 if (!argp2) {
24738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SetCursorEvent_SetCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
24739 }
24740 arg2 = reinterpret_cast< wxCursor * >(argp2);
24741 {
24742 PyThreadState* __tstate = wxPyBeginAllowThreads();
24743 (arg1)->SetCursor((wxCursor const &)*arg2);
24744 wxPyEndAllowThreads(__tstate);
24745 if (PyErr_Occurred()) SWIG_fail;
24746 }
24747 resultobj = SWIG_Py_Void();
24748 return resultobj;
24749fail:
24750 return NULL;
d55e5bfc
RD
24751}
24752
24753
1bd55598
RD
24754SWIGINTERN PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24755 PyObject *resultobj = 0;
24756 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
24757 wxCursor *result = 0 ;
24758 void *argp1 = 0 ;
24759 int res1 = 0 ;
24760 PyObject *swig_obj[1] ;
24761
24762 if (!args) SWIG_fail;
24763 swig_obj[0] = args;
24764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSetCursorEvent, 0 | 0 );
24765 if (!SWIG_IsOK(res1)) {
24766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursorEvent_GetCursor" "', expected argument " "1"" of type '" "wxSetCursorEvent const *""'");
24767 }
24768 arg1 = reinterpret_cast< wxSetCursorEvent * >(argp1);
24769 {
24770 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 24771 {
1bd55598
RD
24772 wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor();
24773 result = (wxCursor *) &_result_ref;
d55e5bfc 24774 }
1bd55598
RD
24775 wxPyEndAllowThreads(__tstate);
24776 if (PyErr_Occurred()) SWIG_fail;
24777 }
24778 {
24779 wxCursor* resultptr = new wxCursor(*result);
24780 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1);
24781 }
24782 return resultobj;
24783fail:
24784 return NULL;
d55e5bfc
RD
24785}
24786
24787
1bd55598
RD
24788SWIGINTERN PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24789 PyObject *resultobj = 0;
24790 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
24791 bool result;
24792 void *argp1 = 0 ;
24793 int res1 = 0 ;
24794 PyObject *swig_obj[1] ;
24795
24796 if (!args) SWIG_fail;
24797 swig_obj[0] = args;
24798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSetCursorEvent, 0 | 0 );
24799 if (!SWIG_IsOK(res1)) {
24800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursorEvent_HasCursor" "', expected argument " "1"" of type '" "wxSetCursorEvent const *""'");
24801 }
24802 arg1 = reinterpret_cast< wxSetCursorEvent * >(argp1);
24803 {
24804 PyThreadState* __tstate = wxPyBeginAllowThreads();
24805 result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor();
24806 wxPyEndAllowThreads(__tstate);
24807 if (PyErr_Occurred()) SWIG_fail;
24808 }
24809 {
24810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24811 }
24812 return resultobj;
24813fail:
24814 return NULL;
68350608
RD
24815}
24816
24817
1bd55598
RD
24818SWIGINTERN PyObject *SetCursorEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24819 PyObject *obj;
24820 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24821 SWIG_TypeNewClientData(SWIGTYPE_p_wxSetCursorEvent, SWIG_NewClientData(obj));
24822 return SWIG_Py_Void();
68350608
RD
24823}
24824
1bd55598
RD
24825SWIGINTERN PyObject *SetCursorEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24826 return SWIG_Python_InitShadowInstance(args);
24827}
68350608 24828
1bd55598
RD
24829SWIGINTERN PyObject *_wrap_new_KeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24830 PyObject *resultobj = 0;
24831 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
24832 wxKeyEvent *result = 0 ;
24833 int val1 ;
24834 int ecode1 = 0 ;
24835 PyObject * obj0 = 0 ;
24836 char * kwnames[] = {
24837 (char *) "eventType", NULL
24838 };
24839
24840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) SWIG_fail;
24841 if (obj0) {
24842 ecode1 = SWIG_AsVal_int(obj0, &val1);
24843 if (!SWIG_IsOK(ecode1)) {
24844 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_KeyEvent" "', expected argument " "1"" of type '" "wxEventType""'");
24845 }
24846 arg1 = static_cast< wxEventType >(val1);
24847 }
24848 {
24849 PyThreadState* __tstate = wxPyBeginAllowThreads();
24850 result = (wxKeyEvent *)new wxKeyEvent(arg1);
24851 wxPyEndAllowThreads(__tstate);
24852 if (PyErr_Occurred()) SWIG_fail;
24853 }
24854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_NEW | 0 );
24855 return resultobj;
24856fail:
24857 return NULL;
68350608
RD
24858}
24859
24860
1bd55598
RD
24861SWIGINTERN PyObject *_wrap_KeyEvent_GetModifiers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24862 PyObject *resultobj = 0;
24863 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
24864 int result;
24865 void *argp1 = 0 ;
24866 int res1 = 0 ;
24867 PyObject *swig_obj[1] ;
24868
24869 if (!args) SWIG_fail;
24870 swig_obj[0] = args;
24871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
24872 if (!SWIG_IsOK(res1)) {
24873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetModifiers" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
24874 }
24875 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
24876 {
24877 PyThreadState* __tstate = wxPyBeginAllowThreads();
24878 result = (int)((wxKeyEvent const *)arg1)->GetModifiers();
24879 wxPyEndAllowThreads(__tstate);
24880 if (PyErr_Occurred()) SWIG_fail;
24881 }
24882 resultobj = SWIG_From_int(static_cast< int >(result));
24883 return resultobj;
24884fail:
24885 return NULL;
68350608
RD
24886}
24887
24888
1bd55598
RD
24889SWIGINTERN PyObject *_wrap_KeyEvent_ControlDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24890 PyObject *resultobj = 0;
24891 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
24892 bool result;
24893 void *argp1 = 0 ;
24894 int res1 = 0 ;
24895 PyObject *swig_obj[1] ;
24896
24897 if (!args) SWIG_fail;
24898 swig_obj[0] = args;
24899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
24900 if (!SWIG_IsOK(res1)) {
24901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_ControlDown" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
24902 }
24903 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
24904 {
24905 PyThreadState* __tstate = wxPyBeginAllowThreads();
24906 result = (bool)((wxKeyEvent const *)arg1)->ControlDown();
24907 wxPyEndAllowThreads(__tstate);
24908 if (PyErr_Occurred()) SWIG_fail;
24909 }
24910 {
24911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24912 }
24913 return resultobj;
24914fail:
24915 return NULL;
d55e5bfc
RD
24916}
24917
24918
1bd55598
RD
24919SWIGINTERN PyObject *_wrap_KeyEvent_MetaDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24920 PyObject *resultobj = 0;
24921 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
24922 bool result;
24923 void *argp1 = 0 ;
24924 int res1 = 0 ;
24925 PyObject *swig_obj[1] ;
24926
24927 if (!args) SWIG_fail;
24928 swig_obj[0] = args;
24929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
24930 if (!SWIG_IsOK(res1)) {
24931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_MetaDown" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
24932 }
24933 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
24934 {
24935 PyThreadState* __tstate = wxPyBeginAllowThreads();
24936 result = (bool)((wxKeyEvent const *)arg1)->MetaDown();
24937 wxPyEndAllowThreads(__tstate);
24938 if (PyErr_Occurred()) SWIG_fail;
24939 }
24940 {
24941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24942 }
24943 return resultobj;
24944fail:
24945 return NULL;
d55e5bfc
RD
24946}
24947
24948
1bd55598
RD
24949SWIGINTERN PyObject *_wrap_KeyEvent_AltDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24950 PyObject *resultobj = 0;
24951 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
24952 bool result;
24953 void *argp1 = 0 ;
24954 int res1 = 0 ;
24955 PyObject *swig_obj[1] ;
24956
24957 if (!args) SWIG_fail;
24958 swig_obj[0] = args;
24959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
24960 if (!SWIG_IsOK(res1)) {
24961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_AltDown" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
24962 }
24963 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
24964 {
24965 PyThreadState* __tstate = wxPyBeginAllowThreads();
24966 result = (bool)((wxKeyEvent const *)arg1)->AltDown();
24967 wxPyEndAllowThreads(__tstate);
24968 if (PyErr_Occurred()) SWIG_fail;
24969 }
24970 {
24971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24972 }
24973 return resultobj;
24974fail:
24975 return NULL;
24d7cbea
RD
24976}
24977
24978
1bd55598
RD
24979SWIGINTERN PyObject *_wrap_KeyEvent_ShiftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24980 PyObject *resultobj = 0;
24981 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
24982 bool result;
24983 void *argp1 = 0 ;
24984 int res1 = 0 ;
24985 PyObject *swig_obj[1] ;
24986
24987 if (!args) SWIG_fail;
24988 swig_obj[0] = args;
24989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
24990 if (!SWIG_IsOK(res1)) {
24991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_ShiftDown" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
24992 }
24993 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
24994 {
24995 PyThreadState* __tstate = wxPyBeginAllowThreads();
24996 result = (bool)((wxKeyEvent const *)arg1)->ShiftDown();
24997 wxPyEndAllowThreads(__tstate);
24998 if (PyErr_Occurred()) SWIG_fail;
24999 }
25000 {
25001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25002 }
25003 return resultobj;
25004fail:
25005 return NULL;
24d7cbea
RD
25006}
25007
25008
1bd55598
RD
25009SWIGINTERN PyObject *_wrap_KeyEvent_CmdDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25010 PyObject *resultobj = 0;
25011 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25012 bool result;
25013 void *argp1 = 0 ;
25014 int res1 = 0 ;
25015 PyObject *swig_obj[1] ;
25016
25017 if (!args) SWIG_fail;
25018 swig_obj[0] = args;
25019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25020 if (!SWIG_IsOK(res1)) {
25021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_CmdDown" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
25022 }
25023 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25024 {
25025 PyThreadState* __tstate = wxPyBeginAllowThreads();
25026 result = (bool)((wxKeyEvent const *)arg1)->CmdDown();
25027 wxPyEndAllowThreads(__tstate);
25028 if (PyErr_Occurred()) SWIG_fail;
25029 }
25030 {
25031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25032 }
25033 return resultobj;
25034fail:
25035 return NULL;
68350608
RD
25036}
25037
25038
1bd55598
RD
25039SWIGINTERN PyObject *_wrap_KeyEvent_HasModifiers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25040 PyObject *resultobj = 0;
25041 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25042 bool result;
25043 void *argp1 = 0 ;
25044 int res1 = 0 ;
25045 PyObject *swig_obj[1] ;
25046
25047 if (!args) SWIG_fail;
25048 swig_obj[0] = args;
25049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25050 if (!SWIG_IsOK(res1)) {
25051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_HasModifiers" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
25052 }
25053 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25054 {
25055 PyThreadState* __tstate = wxPyBeginAllowThreads();
25056 result = (bool)((wxKeyEvent const *)arg1)->HasModifiers();
25057 wxPyEndAllowThreads(__tstate);
25058 if (PyErr_Occurred()) SWIG_fail;
25059 }
25060 {
25061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25062 }
25063 return resultobj;
25064fail:
25065 return NULL;
68350608
RD
25066}
25067
25068
1bd55598
RD
25069SWIGINTERN PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25070 PyObject *resultobj = 0;
25071 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25072 int result;
25073 void *argp1 = 0 ;
25074 int res1 = 0 ;
25075 PyObject *swig_obj[1] ;
25076
25077 if (!args) SWIG_fail;
25078 swig_obj[0] = args;
25079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25080 if (!SWIG_IsOK(res1)) {
25081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
25082 }
25083 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25084 {
25085 PyThreadState* __tstate = wxPyBeginAllowThreads();
25086 result = (int)((wxKeyEvent const *)arg1)->GetKeyCode();
25087 wxPyEndAllowThreads(__tstate);
25088 if (PyErr_Occurred()) SWIG_fail;
25089 }
25090 resultobj = SWIG_From_int(static_cast< int >(result));
25091 return resultobj;
25092fail:
25093 return NULL;
68350608
RD
25094}
25095
25096
1bd55598
RD
25097SWIGINTERN PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25098 PyObject *resultobj = 0;
25099 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25100 int result;
25101 void *argp1 = 0 ;
25102 int res1 = 0 ;
25103 PyObject *swig_obj[1] ;
25104
25105 if (!args) SWIG_fail;
25106 swig_obj[0] = args;
25107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25108 if (!SWIG_IsOK(res1)) {
25109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetUnicodeKey" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25110 }
25111 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25112 {
25113 PyThreadState* __tstate = wxPyBeginAllowThreads();
25114 result = (int)wxKeyEvent_GetUnicodeKey(arg1);
25115 wxPyEndAllowThreads(__tstate);
25116 if (PyErr_Occurred()) SWIG_fail;
25117 }
25118 resultobj = SWIG_From_int(static_cast< int >(result));
25119 return resultobj;
25120fail:
25121 return NULL;
68350608
RD
25122}
25123
25124
b850e7f3
RD
25125SWIGINTERN PyObject *_wrap_KeyEvent_SetUnicodeKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25126 PyObject *resultobj = 0;
25127 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25128 int arg2 ;
25129 void *argp1 = 0 ;
25130 int res1 = 0 ;
25131 int val2 ;
25132 int ecode2 = 0 ;
25133 PyObject * obj0 = 0 ;
25134 PyObject * obj1 = 0 ;
25135 char * kwnames[] = {
25136 (char *) "self",(char *) "uniChar", NULL
25137 };
25138
25139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_SetUnicodeKey",kwnames,&obj0,&obj1)) SWIG_fail;
25140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25141 if (!SWIG_IsOK(res1)) {
25142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_SetUnicodeKey" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25143 }
25144 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25145 ecode2 = SWIG_AsVal_int(obj1, &val2);
25146 if (!SWIG_IsOK(ecode2)) {
25147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_SetUnicodeKey" "', expected argument " "2"" of type '" "int""'");
25148 }
25149 arg2 = static_cast< int >(val2);
25150 {
25151 PyThreadState* __tstate = wxPyBeginAllowThreads();
25152 wxKeyEvent_SetUnicodeKey(arg1,arg2);
25153 wxPyEndAllowThreads(__tstate);
25154 if (PyErr_Occurred()) SWIG_fail;
25155 }
25156 resultobj = SWIG_Py_Void();
25157 return resultobj;
25158fail:
25159 return NULL;
25160}
25161
25162
1bd55598
RD
25163SWIGINTERN PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25164 PyObject *resultobj = 0;
25165 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25166 unsigned int result;
25167 void *argp1 = 0 ;
25168 int res1 = 0 ;
25169 PyObject *swig_obj[1] ;
25170
25171 if (!args) SWIG_fail;
25172 swig_obj[0] = args;
25173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25174 if (!SWIG_IsOK(res1)) {
25175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetRawKeyCode" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
25176 }
25177 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25178 {
25179 PyThreadState* __tstate = wxPyBeginAllowThreads();
25180 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode();
25181 wxPyEndAllowThreads(__tstate);
25182 if (PyErr_Occurred()) SWIG_fail;
25183 }
25184 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25185 return resultobj;
25186fail:
25187 return NULL;
68350608
RD
25188}
25189
25190
1bd55598
RD
25191SWIGINTERN PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25192 PyObject *resultobj = 0;
25193 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25194 unsigned int result;
25195 void *argp1 = 0 ;
25196 int res1 = 0 ;
25197 PyObject *swig_obj[1] ;
25198
25199 if (!args) SWIG_fail;
25200 swig_obj[0] = args;
25201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25202 if (!SWIG_IsOK(res1)) {
25203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetRawKeyFlags" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
25204 }
25205 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25206 {
25207 PyThreadState* __tstate = wxPyBeginAllowThreads();
25208 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags();
25209 wxPyEndAllowThreads(__tstate);
25210 if (PyErr_Occurred()) SWIG_fail;
25211 }
25212 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25213 return resultobj;
25214fail:
25215 return NULL;
68350608
RD
25216}
25217
25218
1bd55598
RD
25219SWIGINTERN PyObject *_wrap_KeyEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25220 PyObject *resultobj = 0;
25221 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25222 wxPoint result;
25223 void *argp1 = 0 ;
25224 int res1 = 0 ;
25225 PyObject *swig_obj[1] ;
25226
25227 if (!args) SWIG_fail;
25228 swig_obj[0] = args;
25229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25230 if (!SWIG_IsOK(res1)) {
25231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetPosition" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25232 }
25233 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25234 {
25235 PyThreadState* __tstate = wxPyBeginAllowThreads();
25236 result = (arg1)->GetPosition();
25237 wxPyEndAllowThreads(__tstate);
25238 if (PyErr_Occurred()) SWIG_fail;
25239 }
25240 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
25241 return resultobj;
25242fail:
25243 return NULL;
25244}
25245
25246
25247SWIGINTERN PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25248 PyObject *resultobj = 0;
25249 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25250 long *arg2 = (long *) 0 ;
25251 long *arg3 = (long *) 0 ;
25252 void *argp1 = 0 ;
25253 int res1 = 0 ;
25254 long temp2 ;
25255 int res2 = SWIG_TMPOBJ ;
25256 long temp3 ;
25257 int res3 = SWIG_TMPOBJ ;
25258 PyObject *swig_obj[1] ;
25259
25260 arg2 = &temp2;
25261 arg3 = &temp3;
25262 if (!args) SWIG_fail;
25263 swig_obj[0] = args;
25264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25265 if (!SWIG_IsOK(res1)) {
25266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetPositionTuple" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25267 }
25268 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25269 {
25270 PyThreadState* __tstate = wxPyBeginAllowThreads();
25271 (arg1)->GetPosition(arg2,arg3);
25272 wxPyEndAllowThreads(__tstate);
25273 if (PyErr_Occurred()) SWIG_fail;
25274 }
25275 resultobj = SWIG_Py_Void();
25276 if (SWIG_IsTmpObj(res2)) {
25277 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
25278 } else {
25279 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25280 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
25281 }
25282 if (SWIG_IsTmpObj(res3)) {
25283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
25284 } else {
25285 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
25287 }
25288 return resultobj;
25289fail:
25290 return NULL;
68350608
RD
25291}
25292
25293
1bd55598
RD
25294SWIGINTERN PyObject *_wrap_KeyEvent_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25295 PyObject *resultobj = 0;
25296 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25297 int result;
25298 void *argp1 = 0 ;
25299 int res1 = 0 ;
25300 PyObject *swig_obj[1] ;
25301
25302 if (!args) SWIG_fail;
25303 swig_obj[0] = args;
25304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25305 if (!SWIG_IsOK(res1)) {
25306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetX" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
25307 }
25308 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25309 {
25310 PyThreadState* __tstate = wxPyBeginAllowThreads();
25311 result = (int)((wxKeyEvent const *)arg1)->GetX();
25312 wxPyEndAllowThreads(__tstate);
25313 if (PyErr_Occurred()) SWIG_fail;
25314 }
25315 resultobj = SWIG_From_int(static_cast< int >(result));
25316 return resultobj;
25317fail:
25318 return NULL;
68350608
RD
25319}
25320
25321
1bd55598
RD
25322SWIGINTERN PyObject *_wrap_KeyEvent_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25323 PyObject *resultobj = 0;
25324 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25325 int result;
25326 void *argp1 = 0 ;
25327 int res1 = 0 ;
25328 PyObject *swig_obj[1] ;
25329
25330 if (!args) SWIG_fail;
25331 swig_obj[0] = args;
25332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25333 if (!SWIG_IsOK(res1)) {
25334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetY" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
25335 }
25336 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25337 {
25338 PyThreadState* __tstate = wxPyBeginAllowThreads();
25339 result = (int)((wxKeyEvent const *)arg1)->GetY();
25340 wxPyEndAllowThreads(__tstate);
25341 if (PyErr_Occurred()) SWIG_fail;
25342 }
25343 resultobj = SWIG_From_int(static_cast< int >(result));
25344 return resultobj;
25345fail:
25346 return NULL;
25347}
25348
25349
25350SWIGINTERN PyObject *_wrap_KeyEvent_m_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25351 PyObject *resultobj = 0;
25352 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25353 int arg2 ;
25354 void *argp1 = 0 ;
25355 int res1 = 0 ;
25356 int val2 ;
25357 int ecode2 = 0 ;
25358 PyObject *swig_obj[2] ;
25359
25360 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_x_set",2,2,swig_obj)) SWIG_fail;
25361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25362 if (!SWIG_IsOK(res1)) {
25363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_x_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25364 }
25365 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25366 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
25367 if (!SWIG_IsOK(ecode2)) {
25368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_x_set" "', expected argument " "2"" of type '" "int""'");
25369 }
25370 arg2 = static_cast< int >(val2);
25371 if (arg1) (arg1)->m_x = arg2;
25372
25373 resultobj = SWIG_Py_Void();
25374 return resultobj;
25375fail:
25376 return NULL;
7fbf8399
RD
25377}
25378
25379
1bd55598
RD
25380SWIGINTERN PyObject *_wrap_KeyEvent_m_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25381 PyObject *resultobj = 0;
25382 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25383 int result;
25384 void *argp1 = 0 ;
25385 int res1 = 0 ;
25386 PyObject *swig_obj[1] ;
25387
25388 if (!args) SWIG_fail;
25389 swig_obj[0] = args;
25390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25391 if (!SWIG_IsOK(res1)) {
25392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_x_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25393 }
25394 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25395 result = (int) ((arg1)->m_x);
25396 resultobj = SWIG_From_int(static_cast< int >(result));
25397 return resultobj;
25398fail:
25399 return NULL;
25400}
25401
25402
25403SWIGINTERN PyObject *_wrap_KeyEvent_m_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25404 PyObject *resultobj = 0;
25405 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25406 int arg2 ;
25407 void *argp1 = 0 ;
25408 int res1 = 0 ;
25409 int val2 ;
25410 int ecode2 = 0 ;
25411 PyObject *swig_obj[2] ;
25412
25413 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_y_set",2,2,swig_obj)) SWIG_fail;
25414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25415 if (!SWIG_IsOK(res1)) {
25416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_y_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25417 }
25418 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25419 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
25420 if (!SWIG_IsOK(ecode2)) {
25421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_y_set" "', expected argument " "2"" of type '" "int""'");
25422 }
25423 arg2 = static_cast< int >(val2);
25424 if (arg1) (arg1)->m_y = arg2;
25425
25426 resultobj = SWIG_Py_Void();
25427 return resultobj;
25428fail:
25429 return NULL;
7fbf8399
RD
25430}
25431
25432
1bd55598
RD
25433SWIGINTERN PyObject *_wrap_KeyEvent_m_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25434 PyObject *resultobj = 0;
25435 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25436 int result;
25437 void *argp1 = 0 ;
25438 int res1 = 0 ;
25439 PyObject *swig_obj[1] ;
25440
25441 if (!args) SWIG_fail;
25442 swig_obj[0] = args;
25443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25444 if (!SWIG_IsOK(res1)) {
25445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_y_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25446 }
25447 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25448 result = (int) ((arg1)->m_y);
25449 resultobj = SWIG_From_int(static_cast< int >(result));
25450 return resultobj;
25451fail:
25452 return NULL;
25453}
25454
25455
25456SWIGINTERN PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25457 PyObject *resultobj = 0;
25458 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25459 long arg2 ;
25460 void *argp1 = 0 ;
25461 int res1 = 0 ;
25462 long val2 ;
25463 int ecode2 = 0 ;
25464 PyObject *swig_obj[2] ;
25465
25466 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_keyCode_set",2,2,swig_obj)) SWIG_fail;
25467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25468 if (!SWIG_IsOK(res1)) {
25469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_keyCode_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25470 }
25471 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25472 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
25473 if (!SWIG_IsOK(ecode2)) {
25474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_keyCode_set" "', expected argument " "2"" of type '" "long""'");
25475 }
25476 arg2 = static_cast< long >(val2);
25477 if (arg1) (arg1)->m_keyCode = arg2;
25478
25479 resultobj = SWIG_Py_Void();
25480 return resultobj;
25481fail:
25482 return NULL;
7fbf8399
RD
25483}
25484
25485
1bd55598
RD
25486SWIGINTERN PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25487 PyObject *resultobj = 0;
25488 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25489 long result;
25490 void *argp1 = 0 ;
25491 int res1 = 0 ;
25492 PyObject *swig_obj[1] ;
25493
25494 if (!args) SWIG_fail;
25495 swig_obj[0] = args;
25496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25497 if (!SWIG_IsOK(res1)) {
25498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_keyCode_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25499 }
25500 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25501 result = (long) ((arg1)->m_keyCode);
25502 resultobj = SWIG_From_long(static_cast< long >(result));
25503 return resultobj;
25504fail:
25505 return NULL;
25506}
25507
25508
25509SWIGINTERN PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25510 PyObject *resultobj = 0;
25511 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25512 bool arg2 ;
25513 void *argp1 = 0 ;
25514 int res1 = 0 ;
25515 bool val2 ;
25516 int ecode2 = 0 ;
25517 PyObject *swig_obj[2] ;
25518
25519 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_controlDown_set",2,2,swig_obj)) SWIG_fail;
25520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25521 if (!SWIG_IsOK(res1)) {
25522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_controlDown_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25523 }
25524 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25525 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
25526 if (!SWIG_IsOK(ecode2)) {
25527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_controlDown_set" "', expected argument " "2"" of type '" "bool""'");
25528 }
25529 arg2 = static_cast< bool >(val2);
25530 if (arg1) (arg1)->m_controlDown = arg2;
25531
25532 resultobj = SWIG_Py_Void();
25533 return resultobj;
25534fail:
25535 return NULL;
7fbf8399
RD
25536}
25537
25538
1bd55598
RD
25539SWIGINTERN PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25540 PyObject *resultobj = 0;
25541 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25542 bool result;
25543 void *argp1 = 0 ;
25544 int res1 = 0 ;
25545 PyObject *swig_obj[1] ;
25546
25547 if (!args) SWIG_fail;
25548 swig_obj[0] = args;
25549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25550 if (!SWIG_IsOK(res1)) {
25551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_controlDown_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25552 }
25553 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25554 result = (bool) ((arg1)->m_controlDown);
25555 {
25556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25557 }
25558 return resultobj;
25559fail:
25560 return NULL;
d55e5bfc
RD
25561}
25562
25563
1bd55598
RD
25564SWIGINTERN PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25565 PyObject *resultobj = 0;
25566 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25567 bool arg2 ;
25568 void *argp1 = 0 ;
25569 int res1 = 0 ;
25570 bool val2 ;
25571 int ecode2 = 0 ;
25572 PyObject *swig_obj[2] ;
25573
25574 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_shiftDown_set",2,2,swig_obj)) SWIG_fail;
25575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25576 if (!SWIG_IsOK(res1)) {
25577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_shiftDown_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25578 }
25579 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25580 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
25581 if (!SWIG_IsOK(ecode2)) {
25582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_shiftDown_set" "', expected argument " "2"" of type '" "bool""'");
25583 }
25584 arg2 = static_cast< bool >(val2);
25585 if (arg1) (arg1)->m_shiftDown = arg2;
25586
25587 resultobj = SWIG_Py_Void();
25588 return resultobj;
25589fail:
25590 return NULL;
d55e5bfc
RD
25591}
25592
25593
1bd55598
RD
25594SWIGINTERN PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25595 PyObject *resultobj = 0;
25596 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25597 bool result;
25598 void *argp1 = 0 ;
25599 int res1 = 0 ;
25600 PyObject *swig_obj[1] ;
25601
25602 if (!args) SWIG_fail;
25603 swig_obj[0] = args;
25604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25605 if (!SWIG_IsOK(res1)) {
25606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_shiftDown_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25607 }
25608 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25609 result = (bool) ((arg1)->m_shiftDown);
25610 {
25611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25612 }
25613 return resultobj;
25614fail:
25615 return NULL;
d55e5bfc
RD
25616}
25617
25618
1bd55598
RD
25619SWIGINTERN PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25620 PyObject *resultobj = 0;
25621 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25622 bool arg2 ;
25623 void *argp1 = 0 ;
25624 int res1 = 0 ;
25625 bool val2 ;
25626 int ecode2 = 0 ;
25627 PyObject *swig_obj[2] ;
25628
25629 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_altDown_set",2,2,swig_obj)) SWIG_fail;
25630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25631 if (!SWIG_IsOK(res1)) {
25632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_altDown_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25633 }
25634 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25635 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
25636 if (!SWIG_IsOK(ecode2)) {
25637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_altDown_set" "', expected argument " "2"" of type '" "bool""'");
25638 }
25639 arg2 = static_cast< bool >(val2);
25640 if (arg1) (arg1)->m_altDown = arg2;
25641
25642 resultobj = SWIG_Py_Void();
25643 return resultobj;
25644fail:
25645 return NULL;
d55e5bfc
RD
25646}
25647
25648
1bd55598
RD
25649SWIGINTERN PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25650 PyObject *resultobj = 0;
25651 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25652 bool result;
25653 void *argp1 = 0 ;
25654 int res1 = 0 ;
25655 PyObject *swig_obj[1] ;
25656
25657 if (!args) SWIG_fail;
25658 swig_obj[0] = args;
25659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25660 if (!SWIG_IsOK(res1)) {
25661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_altDown_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25662 }
25663 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25664 result = (bool) ((arg1)->m_altDown);
25665 {
25666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25667 }
25668 return resultobj;
25669fail:
25670 return NULL;
d55e5bfc
RD
25671}
25672
25673
1bd55598
RD
25674SWIGINTERN PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25675 PyObject *resultobj = 0;
25676 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25677 bool arg2 ;
25678 void *argp1 = 0 ;
25679 int res1 = 0 ;
25680 bool val2 ;
25681 int ecode2 = 0 ;
25682 PyObject *swig_obj[2] ;
25683
25684 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_metaDown_set",2,2,swig_obj)) SWIG_fail;
25685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25686 if (!SWIG_IsOK(res1)) {
25687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_metaDown_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25688 }
25689 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25690 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
25691 if (!SWIG_IsOK(ecode2)) {
25692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_metaDown_set" "', expected argument " "2"" of type '" "bool""'");
25693 }
25694 arg2 = static_cast< bool >(val2);
25695 if (arg1) (arg1)->m_metaDown = arg2;
25696
25697 resultobj = SWIG_Py_Void();
25698 return resultobj;
25699fail:
25700 return NULL;
d55e5bfc
RD
25701}
25702
25703
1bd55598
RD
25704SWIGINTERN PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25705 PyObject *resultobj = 0;
25706 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25707 bool result;
25708 void *argp1 = 0 ;
25709 int res1 = 0 ;
25710 PyObject *swig_obj[1] ;
25711
25712 if (!args) SWIG_fail;
25713 swig_obj[0] = args;
25714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25715 if (!SWIG_IsOK(res1)) {
25716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_metaDown_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25717 }
25718 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25719 result = (bool) ((arg1)->m_metaDown);
25720 {
25721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25722 }
25723 return resultobj;
25724fail:
25725 return NULL;
d55e5bfc
RD
25726}
25727
25728
1bd55598
RD
25729SWIGINTERN PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25730 PyObject *resultobj = 0;
25731 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25732 bool arg2 ;
25733 void *argp1 = 0 ;
25734 int res1 = 0 ;
25735 bool val2 ;
25736 int ecode2 = 0 ;
25737 PyObject *swig_obj[2] ;
25738
25739 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_scanCode_set",2,2,swig_obj)) SWIG_fail;
25740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25741 if (!SWIG_IsOK(res1)) {
25742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_scanCode_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25743 }
25744 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25745 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
25746 if (!SWIG_IsOK(ecode2)) {
25747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_scanCode_set" "', expected argument " "2"" of type '" "bool""'");
25748 }
25749 arg2 = static_cast< bool >(val2);
25750 if (arg1) (arg1)->m_scanCode = arg2;
25751
25752 resultobj = SWIG_Py_Void();
25753 return resultobj;
25754fail:
25755 return NULL;
d55e5bfc
RD
25756}
25757
25758
1bd55598
RD
25759SWIGINTERN PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25760 PyObject *resultobj = 0;
25761 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25762 bool result;
25763 void *argp1 = 0 ;
25764 int res1 = 0 ;
25765 PyObject *swig_obj[1] ;
25766
25767 if (!args) SWIG_fail;
25768 swig_obj[0] = args;
25769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25770 if (!SWIG_IsOK(res1)) {
25771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_scanCode_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25772 }
25773 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25774 result = (bool) ((arg1)->m_scanCode);
25775 {
25776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25777 }
25778 return resultobj;
25779fail:
25780 return NULL;
d55e5bfc
RD
25781}
25782
25783
1bd55598
RD
25784SWIGINTERN PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25785 PyObject *resultobj = 0;
25786 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25787 unsigned int arg2 ;
25788 void *argp1 = 0 ;
25789 int res1 = 0 ;
25790 unsigned int val2 ;
25791 int ecode2 = 0 ;
25792 PyObject *swig_obj[2] ;
25793
25794 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_rawCode_set",2,2,swig_obj)) SWIG_fail;
25795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25796 if (!SWIG_IsOK(res1)) {
25797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_rawCode_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25798 }
25799 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25800 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
25801 if (!SWIG_IsOK(ecode2)) {
25802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_rawCode_set" "', expected argument " "2"" of type '" "unsigned int""'");
25803 }
25804 arg2 = static_cast< unsigned int >(val2);
25805 if (arg1) (arg1)->m_rawCode = arg2;
25806
25807 resultobj = SWIG_Py_Void();
25808 return resultobj;
25809fail:
25810 return NULL;
d55e5bfc
RD
25811}
25812
25813
1bd55598
RD
25814SWIGINTERN PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25815 PyObject *resultobj = 0;
25816 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25817 unsigned int result;
25818 void *argp1 = 0 ;
25819 int res1 = 0 ;
25820 PyObject *swig_obj[1] ;
25821
25822 if (!args) SWIG_fail;
25823 swig_obj[0] = args;
25824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25825 if (!SWIG_IsOK(res1)) {
25826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_rawCode_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25827 }
25828 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25829 result = (unsigned int) ((arg1)->m_rawCode);
25830 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25831 return resultobj;
25832fail:
25833 return NULL;
25834}
25835
25836
25837SWIGINTERN PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25838 PyObject *resultobj = 0;
25839 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25840 unsigned int arg2 ;
25841 void *argp1 = 0 ;
25842 int res1 = 0 ;
25843 unsigned int val2 ;
25844 int ecode2 = 0 ;
25845 PyObject *swig_obj[2] ;
25846
25847 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_rawFlags_set",2,2,swig_obj)) SWIG_fail;
25848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25849 if (!SWIG_IsOK(res1)) {
25850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_rawFlags_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25851 }
25852 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25853 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
25854 if (!SWIG_IsOK(ecode2)) {
25855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_rawFlags_set" "', expected argument " "2"" of type '" "unsigned int""'");
25856 }
25857 arg2 = static_cast< unsigned int >(val2);
25858 if (arg1) (arg1)->m_rawFlags = arg2;
25859
25860 resultobj = SWIG_Py_Void();
25861 return resultobj;
25862fail:
25863 return NULL;
d55e5bfc
RD
25864}
25865
25866
1bd55598
RD
25867SWIGINTERN PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25868 PyObject *resultobj = 0;
25869 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25870 unsigned int result;
25871 void *argp1 = 0 ;
25872 int res1 = 0 ;
25873 PyObject *swig_obj[1] ;
25874
25875 if (!args) SWIG_fail;
25876 swig_obj[0] = args;
25877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25878 if (!SWIG_IsOK(res1)) {
25879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_rawFlags_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25880 }
25881 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25882 result = (unsigned int) ((arg1)->m_rawFlags);
25883 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25884 return resultobj;
25885fail:
25886 return NULL;
25887}
25888
25889
25890SWIGINTERN PyObject *KeyEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25891 PyObject *obj;
25892 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25893 SWIG_TypeNewClientData(SWIGTYPE_p_wxKeyEvent, SWIG_NewClientData(obj));
25894 return SWIG_Py_Void();
25895}
25896
25897SWIGINTERN PyObject *KeyEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25898 return SWIG_Python_InitShadowInstance(args);
25899}
25900
25901SWIGINTERN PyObject *_wrap_new_SizeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25902 PyObject *resultobj = 0;
25903 wxSize const &arg1_defvalue = wxDefaultSize ;
25904 wxSize *arg1 = (wxSize *) &arg1_defvalue ;
25905 int arg2 = (int) 0 ;
25906 wxSizeEvent *result = 0 ;
25907 wxSize temp1 ;
25908 int val2 ;
25909 int ecode2 = 0 ;
25910 PyObject * obj0 = 0 ;
25911 PyObject * obj1 = 0 ;
25912 char * kwnames[] = {
25913 (char *) "sz",(char *) "winid", NULL
25914 };
25915
25916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
25917 if (obj0) {
c0de73ae 25918 {
1bd55598
RD
25919 arg1 = &temp1;
25920 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
c0de73ae 25921 }
1bd55598
RD
25922 }
25923 if (obj1) {
25924 ecode2 = SWIG_AsVal_int(obj1, &val2);
25925 if (!SWIG_IsOK(ecode2)) {
25926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SizeEvent" "', expected argument " "2"" of type '" "int""'");
25927 }
25928 arg2 = static_cast< int >(val2);
25929 }
25930 {
25931 PyThreadState* __tstate = wxPyBeginAllowThreads();
25932 result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2);
25933 wxPyEndAllowThreads(__tstate);
25934 if (PyErr_Occurred()) SWIG_fail;
25935 }
25936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_NEW | 0 );
25937 return resultobj;
25938fail:
25939 return NULL;
c0de73ae
RD
25940}
25941
25942
1bd55598
RD
25943SWIGINTERN PyObject *_wrap_SizeEvent_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25944 PyObject *resultobj = 0;
25945 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
25946 wxSize result;
25947 void *argp1 = 0 ;
25948 int res1 = 0 ;
25949 PyObject *swig_obj[1] ;
25950
25951 if (!args) SWIG_fail;
25952 swig_obj[0] = args;
25953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
25954 if (!SWIG_IsOK(res1)) {
25955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_GetSize" "', expected argument " "1"" of type '" "wxSizeEvent const *""'");
25956 }
25957 arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
25958 {
25959 PyThreadState* __tstate = wxPyBeginAllowThreads();
25960 result = ((wxSizeEvent const *)arg1)->GetSize();
25961 wxPyEndAllowThreads(__tstate);
25962 if (PyErr_Occurred()) SWIG_fail;
25963 }
25964 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25965 return resultobj;
25966fail:
25967 return NULL;
d55e5bfc
RD
25968}
25969
25970
1bd55598
RD
25971SWIGINTERN PyObject *_wrap_SizeEvent_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25972 PyObject *resultobj = 0;
25973 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
25974 wxRect result;
25975 void *argp1 = 0 ;
25976 int res1 = 0 ;
25977 PyObject *swig_obj[1] ;
25978
25979 if (!args) SWIG_fail;
25980 swig_obj[0] = args;
25981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
25982 if (!SWIG_IsOK(res1)) {
25983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_GetRect" "', expected argument " "1"" of type '" "wxSizeEvent const *""'");
25984 }
25985 arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
25986 {
25987 PyThreadState* __tstate = wxPyBeginAllowThreads();
25988 result = ((wxSizeEvent const *)arg1)->GetRect();
25989 wxPyEndAllowThreads(__tstate);
25990 if (PyErr_Occurred()) SWIG_fail;
25991 }
25992 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
25993 return resultobj;
25994fail:
25995 return NULL;
25996}
25997
25998
25999SWIGINTERN PyObject *_wrap_SizeEvent_SetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26000 PyObject *resultobj = 0;
26001 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
26002 wxRect arg2 ;
26003 void *argp1 = 0 ;
26004 int res1 = 0 ;
26005 void *argp2 ;
26006 int res2 = 0 ;
26007 PyObject * obj0 = 0 ;
26008 PyObject * obj1 = 0 ;
26009 char * kwnames[] = {
26010 (char *) "self",(char *) "rect", NULL
26011 };
26012
26013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) SWIG_fail;
26014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
26015 if (!SWIG_IsOK(res1)) {
26016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_SetRect" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
26017 }
26018 arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
26019 {
26020 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRect, 0 | 0);
26021 if (!SWIG_IsOK(res2)) {
26022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizeEvent_SetRect" "', expected argument " "2"" of type '" "wxRect""'");
26023 }
26024 if (!argp2) {
26025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SizeEvent_SetRect" "', expected argument " "2"" of type '" "wxRect""'");
26026 } else {
26027 wxRect * temp = reinterpret_cast< wxRect * >(argp2);
26028 arg2 = *temp;
26029 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 26030 }
1bd55598
RD
26031 }
26032 {
26033 PyThreadState* __tstate = wxPyBeginAllowThreads();
26034 (arg1)->SetRect(arg2);
26035 wxPyEndAllowThreads(__tstate);
26036 if (PyErr_Occurred()) SWIG_fail;
26037 }
26038 resultobj = SWIG_Py_Void();
26039 return resultobj;
26040fail:
26041 return NULL;
26042}
26043
26044
26045SWIGINTERN PyObject *_wrap_SizeEvent_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26046 PyObject *resultobj = 0;
26047 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
26048 wxSize arg2 ;
26049 void *argp1 = 0 ;
26050 int res1 = 0 ;
26051 void *argp2 ;
26052 int res2 = 0 ;
26053 PyObject * obj0 = 0 ;
26054 PyObject * obj1 = 0 ;
26055 char * kwnames[] = {
26056 (char *) "self",(char *) "size", NULL
26057 };
26058
26059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
26060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
26061 if (!SWIG_IsOK(res1)) {
26062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_SetSize" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
26063 }
26064 arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
26065 {
26066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxSize, 0 | 0);
26067 if (!SWIG_IsOK(res2)) {
26068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizeEvent_SetSize" "', expected argument " "2"" of type '" "wxSize""'");
26069 }
26070 if (!argp2) {
26071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SizeEvent_SetSize" "', expected argument " "2"" of type '" "wxSize""'");
26072 } else {
26073 wxSize * temp = reinterpret_cast< wxSize * >(argp2);
26074 arg2 = *temp;
26075 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 26076 }
1bd55598
RD
26077 }
26078 {
26079 PyThreadState* __tstate = wxPyBeginAllowThreads();
26080 wxSizeEvent_SetSize(arg1,arg2);
26081 wxPyEndAllowThreads(__tstate);
26082 if (PyErr_Occurred()) SWIG_fail;
26083 }
26084 resultobj = SWIG_Py_Void();
26085 return resultobj;
26086fail:
26087 return NULL;
26088}
26089
26090
26091SWIGINTERN PyObject *_wrap_SizeEvent_m_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26092 PyObject *resultobj = 0;
26093 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
26094 wxSize *arg2 = (wxSize *) 0 ;
26095 void *argp1 = 0 ;
26096 int res1 = 0 ;
26097 void *argp2 = 0 ;
26098 int res2 = 0 ;
26099 PyObject *swig_obj[2] ;
26100
26101 if (!SWIG_Python_UnpackTuple(args,"SizeEvent_m_size_set",2,2,swig_obj)) SWIG_fail;
26102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
26103 if (!SWIG_IsOK(res1)) {
26104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_m_size_set" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
26105 }
26106 arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
26107 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSize, 0 | 0 );
26108 if (!SWIG_IsOK(res2)) {
26109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizeEvent_m_size_set" "', expected argument " "2"" of type '" "wxSize *""'");
26110 }
26111 arg2 = reinterpret_cast< wxSize * >(argp2);
26112 if (arg1) (arg1)->m_size = *arg2;
26113
26114 resultobj = SWIG_Py_Void();
26115 return resultobj;
26116fail:
26117 return NULL;
d55e5bfc
RD
26118}
26119
26120
1bd55598
RD
26121SWIGINTERN PyObject *_wrap_SizeEvent_m_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26122 PyObject *resultobj = 0;
26123 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
26124 wxSize *result = 0 ;
26125 void *argp1 = 0 ;
26126 int res1 = 0 ;
26127 PyObject *swig_obj[1] ;
26128
26129 if (!args) SWIG_fail;
26130 swig_obj[0] = args;
26131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
26132 if (!SWIG_IsOK(res1)) {
26133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_m_size_get" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
26134 }
26135 arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
26136 result = (wxSize *)& ((arg1)->m_size);
26137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSize, 0 | 0 );
26138 return resultobj;
26139fail:
26140 return NULL;
26141}
26142
26143
26144SWIGINTERN PyObject *_wrap_SizeEvent_m_rect_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26145 PyObject *resultobj = 0;
26146 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
26147 wxRect *arg2 = (wxRect *) 0 ;
26148 void *argp1 = 0 ;
26149 int res1 = 0 ;
26150 void *argp2 = 0 ;
26151 int res2 = 0 ;
26152 PyObject *swig_obj[2] ;
26153
26154 if (!SWIG_Python_UnpackTuple(args,"SizeEvent_m_rect_set",2,2,swig_obj)) SWIG_fail;
26155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
26156 if (!SWIG_IsOK(res1)) {
26157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_m_rect_set" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
26158 }
26159 arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
26160 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
26161 if (!SWIG_IsOK(res2)) {
26162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizeEvent_m_rect_set" "', expected argument " "2"" of type '" "wxRect *""'");
26163 }
26164 arg2 = reinterpret_cast< wxRect * >(argp2);
26165 if (arg1) (arg1)->m_rect = *arg2;
26166
26167 resultobj = SWIG_Py_Void();
26168 return resultobj;
26169fail:
26170 return NULL;
d55e5bfc
RD
26171}
26172
26173
1bd55598
RD
26174SWIGINTERN PyObject *_wrap_SizeEvent_m_rect_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26175 PyObject *resultobj = 0;
26176 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
26177 wxRect *result = 0 ;
26178 void *argp1 = 0 ;
26179 int res1 = 0 ;
26180 PyObject *swig_obj[1] ;
26181
26182 if (!args) SWIG_fail;
26183 swig_obj[0] = args;
26184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
26185 if (!SWIG_IsOK(res1)) {
26186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_m_rect_get" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
26187 }
26188 arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
26189 result = (wxRect *)& ((arg1)->m_rect);
26190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, 0 | 0 );
26191 return resultobj;
26192fail:
26193 return NULL;
26194}
26195
26196
26197SWIGINTERN PyObject *SizeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26198 PyObject *obj;
26199 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26200 SWIG_TypeNewClientData(SWIGTYPE_p_wxSizeEvent, SWIG_NewClientData(obj));
26201 return SWIG_Py_Void();
26202}
26203
26204SWIGINTERN PyObject *SizeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26205 return SWIG_Python_InitShadowInstance(args);
26206}
26207
26208SWIGINTERN PyObject *_wrap_new_MoveEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26209 PyObject *resultobj = 0;
26210 wxPoint const &arg1_defvalue = wxDefaultPosition ;
26211 wxPoint *arg1 = (wxPoint *) &arg1_defvalue ;
26212 int arg2 = (int) 0 ;
26213 wxMoveEvent *result = 0 ;
26214 wxPoint temp1 ;
26215 int val2 ;
26216 int ecode2 = 0 ;
26217 PyObject * obj0 = 0 ;
26218 PyObject * obj1 = 0 ;
26219 char * kwnames[] = {
26220 (char *) "pos",(char *) "winid", NULL
26221 };
26222
26223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) SWIG_fail;
26224 if (obj0) {
d55e5bfc 26225 {
1bd55598
RD
26226 arg1 = &temp1;
26227 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 26228 }
1bd55598
RD
26229 }
26230 if (obj1) {
26231 ecode2 = SWIG_AsVal_int(obj1, &val2);
26232 if (!SWIG_IsOK(ecode2)) {
26233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MoveEvent" "', expected argument " "2"" of type '" "int""'");
26234 }
26235 arg2 = static_cast< int >(val2);
26236 }
26237 {
26238 PyThreadState* __tstate = wxPyBeginAllowThreads();
26239 result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2);
26240 wxPyEndAllowThreads(__tstate);
26241 if (PyErr_Occurred()) SWIG_fail;
26242 }
26243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_NEW | 0 );
26244 return resultobj;
26245fail:
26246 return NULL;
d55e5bfc
RD
26247}
26248
26249
1bd55598
RD
26250SWIGINTERN PyObject *_wrap_MoveEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26251 PyObject *resultobj = 0;
26252 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
26253 wxPoint result;
26254 void *argp1 = 0 ;
26255 int res1 = 0 ;
26256 PyObject *swig_obj[1] ;
26257
26258 if (!args) SWIG_fail;
26259 swig_obj[0] = args;
26260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMoveEvent, 0 | 0 );
26261 if (!SWIG_IsOK(res1)) {
26262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveEvent_GetPosition" "', expected argument " "1"" of type '" "wxMoveEvent const *""'");
26263 }
26264 arg1 = reinterpret_cast< wxMoveEvent * >(argp1);
26265 {
26266 PyThreadState* __tstate = wxPyBeginAllowThreads();
26267 result = ((wxMoveEvent const *)arg1)->GetPosition();
26268 wxPyEndAllowThreads(__tstate);
26269 if (PyErr_Occurred()) SWIG_fail;
26270 }
26271 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
26272 return resultobj;
26273fail:
26274 return NULL;
d55e5bfc
RD
26275}
26276
26277
1bd55598
RD
26278SWIGINTERN PyObject *_wrap_MoveEvent_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26279 PyObject *resultobj = 0;
26280 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
26281 wxRect result;
26282 void *argp1 = 0 ;
26283 int res1 = 0 ;
26284 PyObject *swig_obj[1] ;
26285
26286 if (!args) SWIG_fail;
26287 swig_obj[0] = args;
26288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMoveEvent, 0 | 0 );
26289 if (!SWIG_IsOK(res1)) {
26290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveEvent_GetRect" "', expected argument " "1"" of type '" "wxMoveEvent const *""'");
26291 }
26292 arg1 = reinterpret_cast< wxMoveEvent * >(argp1);
26293 {
26294 PyThreadState* __tstate = wxPyBeginAllowThreads();
26295 result = ((wxMoveEvent const *)arg1)->GetRect();
26296 wxPyEndAllowThreads(__tstate);
26297 if (PyErr_Occurred()) SWIG_fail;
26298 }
26299 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
26300 return resultobj;
26301fail:
26302 return NULL;
26303}
26304
26305
26306SWIGINTERN PyObject *_wrap_MoveEvent_SetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26307 PyObject *resultobj = 0;
26308 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
26309 wxRect *arg2 = 0 ;
26310 void *argp1 = 0 ;
26311 int res1 = 0 ;
26312 wxRect temp2 ;
26313 PyObject * obj0 = 0 ;
26314 PyObject * obj1 = 0 ;
26315 char * kwnames[] = {
26316 (char *) "self",(char *) "rect", NULL
26317 };
26318
26319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) SWIG_fail;
26320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMoveEvent, 0 | 0 );
26321 if (!SWIG_IsOK(res1)) {
26322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveEvent_SetRect" "', expected argument " "1"" of type '" "wxMoveEvent *""'");
26323 }
26324 arg1 = reinterpret_cast< wxMoveEvent * >(argp1);
26325 {
26326 arg2 = &temp2;
26327 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26328 }
26329 {
26330 PyThreadState* __tstate = wxPyBeginAllowThreads();
26331 (arg1)->SetRect((wxRect const &)*arg2);
26332 wxPyEndAllowThreads(__tstate);
26333 if (PyErr_Occurred()) SWIG_fail;
26334 }
26335 resultobj = SWIG_Py_Void();
26336 return resultobj;
26337fail:
26338 return NULL;
26339}
26340
26341
26342SWIGINTERN PyObject *_wrap_MoveEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26343 PyObject *resultobj = 0;
26344 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
26345 wxPoint *arg2 = 0 ;
26346 void *argp1 = 0 ;
26347 int res1 = 0 ;
26348 wxPoint temp2 ;
26349 PyObject * obj0 = 0 ;
26350 PyObject * obj1 = 0 ;
26351 char * kwnames[] = {
26352 (char *) "self",(char *) "pos", NULL
26353 };
26354
26355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
26356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMoveEvent, 0 | 0 );
26357 if (!SWIG_IsOK(res1)) {
26358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveEvent_SetPosition" "', expected argument " "1"" of type '" "wxMoveEvent *""'");
26359 }
26360 arg1 = reinterpret_cast< wxMoveEvent * >(argp1);
26361 {
26362 arg2 = &temp2;
26363 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26364 }
26365 {
26366 PyThreadState* __tstate = wxPyBeginAllowThreads();
26367 (arg1)->SetPosition((wxPoint const &)*arg2);
26368 wxPyEndAllowThreads(__tstate);
26369 if (PyErr_Occurred()) SWIG_fail;
26370 }
26371 resultobj = SWIG_Py_Void();
26372 return resultobj;
26373fail:
26374 return NULL;
d55e5bfc
RD
26375}
26376
26377
1bd55598
RD
26378SWIGINTERN PyObject *MoveEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26379 PyObject *obj;
26380 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26381 SWIG_TypeNewClientData(SWIGTYPE_p_wxMoveEvent, SWIG_NewClientData(obj));
26382 return SWIG_Py_Void();
d55e5bfc
RD
26383}
26384
1bd55598
RD
26385SWIGINTERN PyObject *MoveEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26386 return SWIG_Python_InitShadowInstance(args);
26387}
d55e5bfc 26388
1bd55598
RD
26389SWIGINTERN PyObject *_wrap_new_PaintEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26390 PyObject *resultobj = 0;
26391 int arg1 = (int) 0 ;
26392 wxPaintEvent *result = 0 ;
26393 int val1 ;
26394 int ecode1 = 0 ;
26395 PyObject * obj0 = 0 ;
26396 char * kwnames[] = {
26397 (char *) "Id", NULL
26398 };
26399
26400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) SWIG_fail;
26401 if (obj0) {
26402 ecode1 = SWIG_AsVal_int(obj0, &val1);
26403 if (!SWIG_IsOK(ecode1)) {
26404 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PaintEvent" "', expected argument " "1"" of type '" "int""'");
26405 }
26406 arg1 = static_cast< int >(val1);
26407 }
26408 {
26409 PyThreadState* __tstate = wxPyBeginAllowThreads();
26410 result = (wxPaintEvent *)new wxPaintEvent(arg1);
26411 wxPyEndAllowThreads(__tstate);
26412 if (PyErr_Occurred()) SWIG_fail;
26413 }
26414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintEvent, SWIG_POINTER_NEW | 0 );
26415 return resultobj;
26416fail:
26417 return NULL;
d55e5bfc
RD
26418}
26419
26420
1bd55598
RD
26421SWIGINTERN PyObject *PaintEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26422 PyObject *obj;
26423 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26424 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintEvent, SWIG_NewClientData(obj));
26425 return SWIG_Py_Void();
d55e5bfc
RD
26426}
26427
1bd55598
RD
26428SWIGINTERN PyObject *PaintEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26429 return SWIG_Python_InitShadowInstance(args);
26430}
d55e5bfc 26431
1bd55598
RD
26432SWIGINTERN PyObject *_wrap_new_NcPaintEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26433 PyObject *resultobj = 0;
26434 int arg1 = (int) 0 ;
26435 wxNcPaintEvent *result = 0 ;
26436 int val1 ;
26437 int ecode1 = 0 ;
26438 PyObject * obj0 = 0 ;
26439 char * kwnames[] = {
26440 (char *) "winid", NULL
26441 };
26442
26443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) SWIG_fail;
26444 if (obj0) {
26445 ecode1 = SWIG_AsVal_int(obj0, &val1);
26446 if (!SWIG_IsOK(ecode1)) {
26447 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NcPaintEvent" "', expected argument " "1"" of type '" "int""'");
26448 }
26449 arg1 = static_cast< int >(val1);
26450 }
26451 {
26452 PyThreadState* __tstate = wxPyBeginAllowThreads();
26453 result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1);
26454 wxPyEndAllowThreads(__tstate);
26455 if (PyErr_Occurred()) SWIG_fail;
26456 }
26457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNcPaintEvent, SWIG_POINTER_NEW | 0 );
26458 return resultobj;
26459fail:
26460 return NULL;
d55e5bfc
RD
26461}
26462
26463
1bd55598
RD
26464SWIGINTERN PyObject *NcPaintEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26465 PyObject *obj;
26466 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26467 SWIG_TypeNewClientData(SWIGTYPE_p_wxNcPaintEvent, SWIG_NewClientData(obj));
26468 return SWIG_Py_Void();
d55e5bfc
RD
26469}
26470
1bd55598
RD
26471SWIGINTERN PyObject *NcPaintEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26472 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
26473}
26474
1bd55598
RD
26475SWIGINTERN PyObject *_wrap_new_EraseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26476 PyObject *resultobj = 0;
26477 int arg1 = (int) 0 ;
26478 wxDC *arg2 = (wxDC *) NULL ;
26479 wxEraseEvent *result = 0 ;
26480 int val1 ;
26481 int ecode1 = 0 ;
26482 void *argp2 = 0 ;
26483 int res2 = 0 ;
26484 PyObject * obj0 = 0 ;
26485 PyObject * obj1 = 0 ;
26486 char * kwnames[] = {
26487 (char *) "Id",(char *) "dc", NULL
26488 };
26489
26490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) SWIG_fail;
26491 if (obj0) {
26492 ecode1 = SWIG_AsVal_int(obj0, &val1);
26493 if (!SWIG_IsOK(ecode1)) {
26494 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EraseEvent" "', expected argument " "1"" of type '" "int""'");
26495 }
26496 arg1 = static_cast< int >(val1);
26497 }
26498 if (obj1) {
26499 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
26500 if (!SWIG_IsOK(res2)) {
26501 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EraseEvent" "', expected argument " "2"" of type '" "wxDC *""'");
d55e5bfc 26502 }
1bd55598
RD
26503 arg2 = reinterpret_cast< wxDC * >(argp2);
26504 }
26505 {
26506 PyThreadState* __tstate = wxPyBeginAllowThreads();
26507 result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2);
26508 wxPyEndAllowThreads(__tstate);
26509 if (PyErr_Occurred()) SWIG_fail;
26510 }
26511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEraseEvent, SWIG_POINTER_NEW | 0 );
26512 return resultobj;
26513fail:
26514 return NULL;
d55e5bfc
RD
26515}
26516
26517
1bd55598
RD
26518SWIGINTERN PyObject *_wrap_EraseEvent_GetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26519 PyObject *resultobj = 0;
26520 wxEraseEvent *arg1 = (wxEraseEvent *) 0 ;
26521 wxDC *result = 0 ;
26522 void *argp1 = 0 ;
26523 int res1 = 0 ;
26524 PyObject *swig_obj[1] ;
26525
26526 if (!args) SWIG_fail;
26527 swig_obj[0] = args;
26528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEraseEvent, 0 | 0 );
26529 if (!SWIG_IsOK(res1)) {
26530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EraseEvent_GetDC" "', expected argument " "1"" of type '" "wxEraseEvent const *""'");
26531 }
26532 arg1 = reinterpret_cast< wxEraseEvent * >(argp1);
26533 {
26534 PyThreadState* __tstate = wxPyBeginAllowThreads();
26535 result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC();
26536 wxPyEndAllowThreads(__tstate);
26537 if (PyErr_Occurred()) SWIG_fail;
26538 }
26539 {
26540 resultobj = wxPyMake_wxObject(result, (bool)0);
26541 }
26542 return resultobj;
26543fail:
26544 return NULL;
d55e5bfc
RD
26545}
26546
26547
1bd55598
RD
26548SWIGINTERN PyObject *EraseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26549 PyObject *obj;
26550 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26551 SWIG_TypeNewClientData(SWIGTYPE_p_wxEraseEvent, SWIG_NewClientData(obj));
26552 return SWIG_Py_Void();
d55e5bfc
RD
26553}
26554
1bd55598
RD
26555SWIGINTERN PyObject *EraseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26556 return SWIG_Python_InitShadowInstance(args);
26557}
d55e5bfc 26558
1bd55598
RD
26559SWIGINTERN PyObject *_wrap_new_FocusEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26560 PyObject *resultobj = 0;
26561 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
26562 int arg2 = (int) 0 ;
26563 wxFocusEvent *result = 0 ;
26564 int val1 ;
26565 int ecode1 = 0 ;
26566 int val2 ;
26567 int ecode2 = 0 ;
26568 PyObject * obj0 = 0 ;
26569 PyObject * obj1 = 0 ;
26570 char * kwnames[] = {
26571 (char *) "type",(char *) "winid", NULL
26572 };
26573
26574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) SWIG_fail;
26575 if (obj0) {
26576 ecode1 = SWIG_AsVal_int(obj0, &val1);
26577 if (!SWIG_IsOK(ecode1)) {
26578 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FocusEvent" "', expected argument " "1"" of type '" "wxEventType""'");
26579 }
26580 arg1 = static_cast< wxEventType >(val1);
26581 }
26582 if (obj1) {
26583 ecode2 = SWIG_AsVal_int(obj1, &val2);
26584 if (!SWIG_IsOK(ecode2)) {
26585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FocusEvent" "', expected argument " "2"" of type '" "int""'");
26586 }
26587 arg2 = static_cast< int >(val2);
26588 }
26589 {
26590 PyThreadState* __tstate = wxPyBeginAllowThreads();
26591 result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2);
26592 wxPyEndAllowThreads(__tstate);
26593 if (PyErr_Occurred()) SWIG_fail;
26594 }
26595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFocusEvent, SWIG_POINTER_NEW | 0 );
26596 return resultobj;
26597fail:
26598 return NULL;
d55e5bfc
RD
26599}
26600
26601
1bd55598
RD
26602SWIGINTERN PyObject *_wrap_FocusEvent_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26603 PyObject *resultobj = 0;
26604 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
26605 wxWindow *result = 0 ;
26606 void *argp1 = 0 ;
26607 int res1 = 0 ;
26608 PyObject *swig_obj[1] ;
26609
26610 if (!args) SWIG_fail;
26611 swig_obj[0] = args;
26612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFocusEvent, 0 | 0 );
26613 if (!SWIG_IsOK(res1)) {
26614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FocusEvent_GetWindow" "', expected argument " "1"" of type '" "wxFocusEvent const *""'");
26615 }
26616 arg1 = reinterpret_cast< wxFocusEvent * >(argp1);
26617 {
26618 PyThreadState* __tstate = wxPyBeginAllowThreads();
26619 result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow();
26620 wxPyEndAllowThreads(__tstate);
26621 if (PyErr_Occurred()) SWIG_fail;
26622 }
26623 {
26624 resultobj = wxPyMake_wxObject(result, (bool)0);
26625 }
26626 return resultobj;
26627fail:
26628 return NULL;
26629}
26630
26631
26632SWIGINTERN PyObject *_wrap_FocusEvent_SetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26633 PyObject *resultobj = 0;
26634 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
26635 wxWindow *arg2 = (wxWindow *) 0 ;
26636 void *argp1 = 0 ;
26637 int res1 = 0 ;
26638 void *argp2 = 0 ;
26639 int res2 = 0 ;
26640 PyObject * obj0 = 0 ;
26641 PyObject * obj1 = 0 ;
26642 char * kwnames[] = {
26643 (char *) "self",(char *) "win", NULL
26644 };
26645
26646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) SWIG_fail;
26647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFocusEvent, 0 | 0 );
26648 if (!SWIG_IsOK(res1)) {
26649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FocusEvent_SetWindow" "', expected argument " "1"" of type '" "wxFocusEvent *""'");
26650 }
26651 arg1 = reinterpret_cast< wxFocusEvent * >(argp1);
26652 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26653 if (!SWIG_IsOK(res2)) {
26654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FocusEvent_SetWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
26655 }
26656 arg2 = reinterpret_cast< wxWindow * >(argp2);
26657 {
26658 PyThreadState* __tstate = wxPyBeginAllowThreads();
26659 (arg1)->SetWindow(arg2);
26660 wxPyEndAllowThreads(__tstate);
26661 if (PyErr_Occurred()) SWIG_fail;
26662 }
26663 resultobj = SWIG_Py_Void();
26664 return resultobj;
26665fail:
26666 return NULL;
d55e5bfc
RD
26667}
26668
26669
1bd55598
RD
26670SWIGINTERN PyObject *FocusEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26671 PyObject *obj;
26672 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26673 SWIG_TypeNewClientData(SWIGTYPE_p_wxFocusEvent, SWIG_NewClientData(obj));
26674 return SWIG_Py_Void();
d55e5bfc
RD
26675}
26676
1bd55598
RD
26677SWIGINTERN PyObject *FocusEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26678 return SWIG_Python_InitShadowInstance(args);
26679}
d55e5bfc 26680
1bd55598
RD
26681SWIGINTERN PyObject *_wrap_new_ChildFocusEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26682 PyObject *resultobj = 0;
26683 wxWindow *arg1 = (wxWindow *) NULL ;
26684 wxChildFocusEvent *result = 0 ;
26685 void *argp1 = 0 ;
26686 int res1 = 0 ;
26687 PyObject * obj0 = 0 ;
26688 char * kwnames[] = {
26689 (char *) "win", NULL
26690 };
26691
26692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) SWIG_fail;
26693 if (obj0) {
26694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
26695 if (!SWIG_IsOK(res1)) {
26696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ChildFocusEvent" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 26697 }
1bd55598
RD
26698 arg1 = reinterpret_cast< wxWindow * >(argp1);
26699 }
26700 {
26701 PyThreadState* __tstate = wxPyBeginAllowThreads();
26702 result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1);
26703 wxPyEndAllowThreads(__tstate);
26704 if (PyErr_Occurred()) SWIG_fail;
26705 }
26706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChildFocusEvent, SWIG_POINTER_NEW | 0 );
26707 return resultobj;
26708fail:
26709 return NULL;
d55e5bfc
RD
26710}
26711
26712
1bd55598
RD
26713SWIGINTERN PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26714 PyObject *resultobj = 0;
26715 wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ;
26716 wxWindow *result = 0 ;
26717 void *argp1 = 0 ;
26718 int res1 = 0 ;
26719 PyObject *swig_obj[1] ;
26720
26721 if (!args) SWIG_fail;
26722 swig_obj[0] = args;
26723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChildFocusEvent, 0 | 0 );
26724 if (!SWIG_IsOK(res1)) {
26725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChildFocusEvent_GetWindow" "', expected argument " "1"" of type '" "wxChildFocusEvent const *""'");
26726 }
26727 arg1 = reinterpret_cast< wxChildFocusEvent * >(argp1);
26728 {
26729 PyThreadState* __tstate = wxPyBeginAllowThreads();
26730 result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow();
26731 wxPyEndAllowThreads(__tstate);
26732 if (PyErr_Occurred()) SWIG_fail;
26733 }
26734 {
26735 resultobj = wxPyMake_wxObject(result, (bool)0);
26736 }
26737 return resultobj;
26738fail:
26739 return NULL;
26740}
26741
26742
26743SWIGINTERN PyObject *ChildFocusEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26744 PyObject *obj;
26745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26746 SWIG_TypeNewClientData(SWIGTYPE_p_wxChildFocusEvent, SWIG_NewClientData(obj));
26747 return SWIG_Py_Void();
26748}
26749
26750SWIGINTERN PyObject *ChildFocusEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26751 return SWIG_Python_InitShadowInstance(args);
26752}
26753
26754SWIGINTERN PyObject *_wrap_new_ActivateEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26755 PyObject *resultobj = 0;
26756 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
26757 bool arg2 = (bool) true ;
26758 int arg3 = (int) 0 ;
26759 wxActivateEvent *result = 0 ;
26760 int val1 ;
26761 int ecode1 = 0 ;
26762 bool val2 ;
26763 int ecode2 = 0 ;
26764 int val3 ;
26765 int ecode3 = 0 ;
26766 PyObject * obj0 = 0 ;
26767 PyObject * obj1 = 0 ;
26768 PyObject * obj2 = 0 ;
26769 char * kwnames[] = {
26770 (char *) "type",(char *) "active",(char *) "Id", NULL
26771 };
26772
26773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26774 if (obj0) {
26775 ecode1 = SWIG_AsVal_int(obj0, &val1);
26776 if (!SWIG_IsOK(ecode1)) {
26777 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ActivateEvent" "', expected argument " "1"" of type '" "wxEventType""'");
26778 }
26779 arg1 = static_cast< wxEventType >(val1);
26780 }
26781 if (obj1) {
26782 ecode2 = SWIG_AsVal_bool(obj1, &val2);
26783 if (!SWIG_IsOK(ecode2)) {
26784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ActivateEvent" "', expected argument " "2"" of type '" "bool""'");
26785 }
26786 arg2 = static_cast< bool >(val2);
26787 }
26788 if (obj2) {
26789 ecode3 = SWIG_AsVal_int(obj2, &val3);
26790 if (!SWIG_IsOK(ecode3)) {
26791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ActivateEvent" "', expected argument " "3"" of type '" "int""'");
26792 }
26793 arg3 = static_cast< int >(val3);
26794 }
26795 {
26796 PyThreadState* __tstate = wxPyBeginAllowThreads();
26797 result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3);
26798 wxPyEndAllowThreads(__tstate);
26799 if (PyErr_Occurred()) SWIG_fail;
26800 }
26801 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxActivateEvent, SWIG_POINTER_NEW | 0 );
26802 return resultobj;
26803fail:
26804 return NULL;
d55e5bfc
RD
26805}
26806
26807
1bd55598
RD
26808SWIGINTERN PyObject *_wrap_ActivateEvent_GetActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26809 PyObject *resultobj = 0;
26810 wxActivateEvent *arg1 = (wxActivateEvent *) 0 ;
26811 bool result;
26812 void *argp1 = 0 ;
26813 int res1 = 0 ;
26814 PyObject *swig_obj[1] ;
26815
26816 if (!args) SWIG_fail;
26817 swig_obj[0] = args;
26818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxActivateEvent, 0 | 0 );
26819 if (!SWIG_IsOK(res1)) {
26820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ActivateEvent_GetActive" "', expected argument " "1"" of type '" "wxActivateEvent const *""'");
26821 }
26822 arg1 = reinterpret_cast< wxActivateEvent * >(argp1);
26823 {
26824 PyThreadState* __tstate = wxPyBeginAllowThreads();
26825 result = (bool)((wxActivateEvent const *)arg1)->GetActive();
26826 wxPyEndAllowThreads(__tstate);
26827 if (PyErr_Occurred()) SWIG_fail;
26828 }
26829 {
26830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26831 }
26832 return resultobj;
26833fail:
26834 return NULL;
d55e5bfc
RD
26835}
26836
26837
1bd55598
RD
26838SWIGINTERN PyObject *ActivateEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26839 PyObject *obj;
26840 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26841 SWIG_TypeNewClientData(SWIGTYPE_p_wxActivateEvent, SWIG_NewClientData(obj));
26842 return SWIG_Py_Void();
d55e5bfc
RD
26843}
26844
1bd55598
RD
26845SWIGINTERN PyObject *ActivateEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26846 return SWIG_Python_InitShadowInstance(args);
26847}
d55e5bfc 26848
1bd55598
RD
26849SWIGINTERN PyObject *_wrap_new_InitDialogEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26850 PyObject *resultobj = 0;
26851 int arg1 = (int) 0 ;
26852 wxInitDialogEvent *result = 0 ;
26853 int val1 ;
26854 int ecode1 = 0 ;
26855 PyObject * obj0 = 0 ;
26856 char * kwnames[] = {
26857 (char *) "Id", NULL
26858 };
26859
26860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) SWIG_fail;
26861 if (obj0) {
26862 ecode1 = SWIG_AsVal_int(obj0, &val1);
26863 if (!SWIG_IsOK(ecode1)) {
26864 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InitDialogEvent" "', expected argument " "1"" of type '" "int""'");
26865 }
26866 arg1 = static_cast< int >(val1);
26867 }
26868 {
26869 PyThreadState* __tstate = wxPyBeginAllowThreads();
26870 result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1);
26871 wxPyEndAllowThreads(__tstate);
26872 if (PyErr_Occurred()) SWIG_fail;
26873 }
26874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxInitDialogEvent, SWIG_POINTER_NEW | 0 );
26875 return resultobj;
26876fail:
26877 return NULL;
26878}
26879
26880
26881SWIGINTERN PyObject *InitDialogEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26882 PyObject *obj;
26883 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26884 SWIG_TypeNewClientData(SWIGTYPE_p_wxInitDialogEvent, SWIG_NewClientData(obj));
26885 return SWIG_Py_Void();
26886}
26887
26888SWIGINTERN PyObject *InitDialogEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26889 return SWIG_Python_InitShadowInstance(args);
26890}
26891
26892SWIGINTERN PyObject *_wrap_new_MenuEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26893 PyObject *resultobj = 0;
26894 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
26895 int arg2 = (int) 0 ;
26896 wxMenu *arg3 = (wxMenu *) NULL ;
26897 wxMenuEvent *result = 0 ;
26898 int val1 ;
26899 int ecode1 = 0 ;
26900 int val2 ;
26901 int ecode2 = 0 ;
26902 void *argp3 = 0 ;
26903 int res3 = 0 ;
26904 PyObject * obj0 = 0 ;
26905 PyObject * obj1 = 0 ;
26906 PyObject * obj2 = 0 ;
26907 char * kwnames[] = {
26908 (char *) "type",(char *) "winid",(char *) "menu", NULL
26909 };
26910
26911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26912 if (obj0) {
26913 ecode1 = SWIG_AsVal_int(obj0, &val1);
26914 if (!SWIG_IsOK(ecode1)) {
26915 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MenuEvent" "', expected argument " "1"" of type '" "wxEventType""'");
26916 }
26917 arg1 = static_cast< wxEventType >(val1);
26918 }
26919 if (obj1) {
26920 ecode2 = SWIG_AsVal_int(obj1, &val2);
26921 if (!SWIG_IsOK(ecode2)) {
26922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MenuEvent" "', expected argument " "2"" of type '" "int""'");
26923 }
26924 arg2 = static_cast< int >(val2);
26925 }
26926 if (obj2) {
26927 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxMenu, 0 | 0 );
26928 if (!SWIG_IsOK(res3)) {
26929 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MenuEvent" "', expected argument " "3"" of type '" "wxMenu *""'");
d55e5bfc 26930 }
1bd55598
RD
26931 arg3 = reinterpret_cast< wxMenu * >(argp3);
26932 }
26933 {
26934 PyThreadState* __tstate = wxPyBeginAllowThreads();
26935 result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3);
26936 wxPyEndAllowThreads(__tstate);
26937 if (PyErr_Occurred()) SWIG_fail;
26938 }
26939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMenuEvent, SWIG_POINTER_NEW | 0 );
26940 return resultobj;
26941fail:
26942 return NULL;
d55e5bfc
RD
26943}
26944
26945
1bd55598
RD
26946SWIGINTERN PyObject *_wrap_MenuEvent_GetMenuId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26947 PyObject *resultobj = 0;
26948 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
26949 int result;
26950 void *argp1 = 0 ;
26951 int res1 = 0 ;
26952 PyObject *swig_obj[1] ;
26953
26954 if (!args) SWIG_fail;
26955 swig_obj[0] = args;
26956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuEvent, 0 | 0 );
26957 if (!SWIG_IsOK(res1)) {
26958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuEvent_GetMenuId" "', expected argument " "1"" of type '" "wxMenuEvent const *""'");
26959 }
26960 arg1 = reinterpret_cast< wxMenuEvent * >(argp1);
26961 {
26962 PyThreadState* __tstate = wxPyBeginAllowThreads();
26963 result = (int)((wxMenuEvent const *)arg1)->GetMenuId();
26964 wxPyEndAllowThreads(__tstate);
26965 if (PyErr_Occurred()) SWIG_fail;
26966 }
26967 resultobj = SWIG_From_int(static_cast< int >(result));
26968 return resultobj;
26969fail:
26970 return NULL;
d55e5bfc
RD
26971}
26972
26973
1bd55598
RD
26974SWIGINTERN PyObject *_wrap_MenuEvent_IsPopup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26975 PyObject *resultobj = 0;
26976 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
26977 bool result;
26978 void *argp1 = 0 ;
26979 int res1 = 0 ;
26980 PyObject *swig_obj[1] ;
26981
26982 if (!args) SWIG_fail;
26983 swig_obj[0] = args;
26984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuEvent, 0 | 0 );
26985 if (!SWIG_IsOK(res1)) {
26986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuEvent_IsPopup" "', expected argument " "1"" of type '" "wxMenuEvent const *""'");
26987 }
26988 arg1 = reinterpret_cast< wxMenuEvent * >(argp1);
26989 {
26990 PyThreadState* __tstate = wxPyBeginAllowThreads();
26991 result = (bool)((wxMenuEvent const *)arg1)->IsPopup();
26992 wxPyEndAllowThreads(__tstate);
26993 if (PyErr_Occurred()) SWIG_fail;
26994 }
26995 {
26996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26997 }
26998 return resultobj;
26999fail:
27000 return NULL;
d55e5bfc
RD
27001}
27002
27003
1bd55598
RD
27004SWIGINTERN PyObject *_wrap_MenuEvent_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27005 PyObject *resultobj = 0;
27006 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
27007 wxMenu *result = 0 ;
27008 void *argp1 = 0 ;
27009 int res1 = 0 ;
27010 PyObject *swig_obj[1] ;
27011
27012 if (!args) SWIG_fail;
27013 swig_obj[0] = args;
27014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuEvent, 0 | 0 );
27015 if (!SWIG_IsOK(res1)) {
27016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuEvent_GetMenu" "', expected argument " "1"" of type '" "wxMenuEvent const *""'");
27017 }
27018 arg1 = reinterpret_cast< wxMenuEvent * >(argp1);
27019 {
27020 PyThreadState* __tstate = wxPyBeginAllowThreads();
27021 result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu();
27022 wxPyEndAllowThreads(__tstate);
27023 if (PyErr_Occurred()) SWIG_fail;
27024 }
27025 {
27026 resultobj = wxPyMake_wxObject(result, (bool)0);
27027 }
27028 return resultobj;
27029fail:
27030 return NULL;
d55e5bfc
RD
27031}
27032
27033
1bd55598
RD
27034SWIGINTERN PyObject *MenuEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27035 PyObject *obj;
27036 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27037 SWIG_TypeNewClientData(SWIGTYPE_p_wxMenuEvent, SWIG_NewClientData(obj));
27038 return SWIG_Py_Void();
d55e5bfc
RD
27039}
27040
1bd55598
RD
27041SWIGINTERN PyObject *MenuEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27042 return SWIG_Python_InitShadowInstance(args);
27043}
d55e5bfc 27044
1bd55598
RD
27045SWIGINTERN PyObject *_wrap_new_CloseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27046 PyObject *resultobj = 0;
27047 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27048 int arg2 = (int) 0 ;
27049 wxCloseEvent *result = 0 ;
27050 int val1 ;
27051 int ecode1 = 0 ;
27052 int val2 ;
27053 int ecode2 = 0 ;
27054 PyObject * obj0 = 0 ;
27055 PyObject * obj1 = 0 ;
27056 char * kwnames[] = {
27057 (char *) "type",(char *) "winid", NULL
27058 };
27059
27060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27061 if (obj0) {
27062 ecode1 = SWIG_AsVal_int(obj0, &val1);
27063 if (!SWIG_IsOK(ecode1)) {
27064 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CloseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27065 }
27066 arg1 = static_cast< wxEventType >(val1);
27067 }
27068 if (obj1) {
27069 ecode2 = SWIG_AsVal_int(obj1, &val2);
27070 if (!SWIG_IsOK(ecode2)) {
27071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CloseEvent" "', expected argument " "2"" of type '" "int""'");
27072 }
27073 arg2 = static_cast< int >(val2);
27074 }
27075 {
27076 PyThreadState* __tstate = wxPyBeginAllowThreads();
27077 result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2);
27078 wxPyEndAllowThreads(__tstate);
27079 if (PyErr_Occurred()) SWIG_fail;
27080 }
27081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_NEW | 0 );
27082 return resultobj;
27083fail:
27084 return NULL;
27085}
27086
27087
27088SWIGINTERN PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27089 PyObject *resultobj = 0;
27090 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
27091 bool arg2 ;
27092 void *argp1 = 0 ;
27093 int res1 = 0 ;
27094 bool val2 ;
27095 int ecode2 = 0 ;
27096 PyObject * obj0 = 0 ;
27097 PyObject * obj1 = 0 ;
27098 char * kwnames[] = {
27099 (char *) "self",(char *) "logOff", NULL
27100 };
27101
27102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) SWIG_fail;
27103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
27104 if (!SWIG_IsOK(res1)) {
27105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_SetLoggingOff" "', expected argument " "1"" of type '" "wxCloseEvent *""'");
27106 }
27107 arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
27108 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27109 if (!SWIG_IsOK(ecode2)) {
27110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CloseEvent_SetLoggingOff" "', expected argument " "2"" of type '" "bool""'");
27111 }
27112 arg2 = static_cast< bool >(val2);
27113 {
27114 PyThreadState* __tstate = wxPyBeginAllowThreads();
27115 (arg1)->SetLoggingOff(arg2);
27116 wxPyEndAllowThreads(__tstate);
27117 if (PyErr_Occurred()) SWIG_fail;
27118 }
27119 resultobj = SWIG_Py_Void();
27120 return resultobj;
27121fail:
27122 return NULL;
d55e5bfc
RD
27123}
27124
27125
1bd55598
RD
27126SWIGINTERN PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27127 PyObject *resultobj = 0;
27128 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
27129 bool result;
27130 void *argp1 = 0 ;
27131 int res1 = 0 ;
27132 PyObject *swig_obj[1] ;
27133
27134 if (!args) SWIG_fail;
27135 swig_obj[0] = args;
27136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
27137 if (!SWIG_IsOK(res1)) {
27138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_GetLoggingOff" "', expected argument " "1"" of type '" "wxCloseEvent const *""'");
27139 }
27140 arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
27141 {
27142 PyThreadState* __tstate = wxPyBeginAllowThreads();
27143 result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff();
27144 wxPyEndAllowThreads(__tstate);
27145 if (PyErr_Occurred()) SWIG_fail;
27146 }
27147 {
27148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27149 }
27150 return resultobj;
27151fail:
27152 return NULL;
27153}
27154
27155
27156SWIGINTERN PyObject *_wrap_CloseEvent_Veto(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27157 PyObject *resultobj = 0;
27158 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
27159 bool arg2 = (bool) true ;
27160 void *argp1 = 0 ;
27161 int res1 = 0 ;
27162 bool val2 ;
27163 int ecode2 = 0 ;
27164 PyObject * obj0 = 0 ;
27165 PyObject * obj1 = 0 ;
27166 char * kwnames[] = {
27167 (char *) "self",(char *) "veto", NULL
27168 };
27169
27170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) SWIG_fail;
27171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
27172 if (!SWIG_IsOK(res1)) {
27173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_Veto" "', expected argument " "1"" of type '" "wxCloseEvent *""'");
27174 }
27175 arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
27176 if (obj1) {
27177 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27178 if (!SWIG_IsOK(ecode2)) {
27179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CloseEvent_Veto" "', expected argument " "2"" of type '" "bool""'");
27180 }
27181 arg2 = static_cast< bool >(val2);
27182 }
27183 {
27184 PyThreadState* __tstate = wxPyBeginAllowThreads();
27185 (arg1)->Veto(arg2);
27186 wxPyEndAllowThreads(__tstate);
27187 if (PyErr_Occurred()) SWIG_fail;
27188 }
27189 resultobj = SWIG_Py_Void();
27190 return resultobj;
27191fail:
27192 return NULL;
d55e5bfc
RD
27193}
27194
27195
1bd55598
RD
27196SWIGINTERN PyObject *_wrap_CloseEvent_GetVeto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27197 PyObject *resultobj = 0;
27198 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
27199 bool result;
27200 void *argp1 = 0 ;
27201 int res1 = 0 ;
27202 PyObject *swig_obj[1] ;
27203
27204 if (!args) SWIG_fail;
27205 swig_obj[0] = args;
27206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
27207 if (!SWIG_IsOK(res1)) {
27208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_GetVeto" "', expected argument " "1"" of type '" "wxCloseEvent const *""'");
27209 }
27210 arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
27211 {
27212 PyThreadState* __tstate = wxPyBeginAllowThreads();
27213 result = (bool)((wxCloseEvent const *)arg1)->GetVeto();
27214 wxPyEndAllowThreads(__tstate);
27215 if (PyErr_Occurred()) SWIG_fail;
27216 }
27217 {
27218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27219 }
27220 return resultobj;
27221fail:
27222 return NULL;
27223}
27224
27225
27226SWIGINTERN PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27227 PyObject *resultobj = 0;
27228 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
27229 bool arg2 ;
27230 void *argp1 = 0 ;
27231 int res1 = 0 ;
27232 bool val2 ;
27233 int ecode2 = 0 ;
27234 PyObject * obj0 = 0 ;
27235 PyObject * obj1 = 0 ;
27236 char * kwnames[] = {
27237 (char *) "self",(char *) "canVeto", NULL
27238 };
27239
27240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) SWIG_fail;
27241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
27242 if (!SWIG_IsOK(res1)) {
27243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_SetCanVeto" "', expected argument " "1"" of type '" "wxCloseEvent *""'");
27244 }
27245 arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
27246 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27247 if (!SWIG_IsOK(ecode2)) {
27248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CloseEvent_SetCanVeto" "', expected argument " "2"" of type '" "bool""'");
27249 }
27250 arg2 = static_cast< bool >(val2);
27251 {
27252 PyThreadState* __tstate = wxPyBeginAllowThreads();
27253 (arg1)->SetCanVeto(arg2);
27254 wxPyEndAllowThreads(__tstate);
27255 if (PyErr_Occurred()) SWIG_fail;
27256 }
27257 resultobj = SWIG_Py_Void();
27258 return resultobj;
27259fail:
27260 return NULL;
d55e5bfc
RD
27261}
27262
27263
1bd55598
RD
27264SWIGINTERN PyObject *_wrap_CloseEvent_CanVeto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27265 PyObject *resultobj = 0;
27266 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
27267 bool result;
27268 void *argp1 = 0 ;
27269 int res1 = 0 ;
27270 PyObject *swig_obj[1] ;
27271
27272 if (!args) SWIG_fail;
27273 swig_obj[0] = args;
27274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
27275 if (!SWIG_IsOK(res1)) {
27276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_CanVeto" "', expected argument " "1"" of type '" "wxCloseEvent const *""'");
27277 }
27278 arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
27279 {
27280 PyThreadState* __tstate = wxPyBeginAllowThreads();
27281 result = (bool)((wxCloseEvent const *)arg1)->CanVeto();
27282 wxPyEndAllowThreads(__tstate);
27283 if (PyErr_Occurred()) SWIG_fail;
27284 }
27285 {
27286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27287 }
27288 return resultobj;
27289fail:
27290 return NULL;
d55e5bfc
RD
27291}
27292
27293
1bd55598
RD
27294SWIGINTERN PyObject *CloseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27295 PyObject *obj;
27296 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27297 SWIG_TypeNewClientData(SWIGTYPE_p_wxCloseEvent, SWIG_NewClientData(obj));
27298 return SWIG_Py_Void();
d55e5bfc
RD
27299}
27300
1bd55598
RD
27301SWIGINTERN PyObject *CloseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27302 return SWIG_Python_InitShadowInstance(args);
d55e5bfc 27303}
1bd55598
RD
27304
27305SWIGINTERN PyObject *_wrap_new_ShowEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27306 PyObject *resultobj = 0;
27307 int arg1 = (int) 0 ;
27308 bool arg2 = (bool) false ;
27309 wxShowEvent *result = 0 ;
27310 int val1 ;
27311 int ecode1 = 0 ;
27312 bool val2 ;
27313 int ecode2 = 0 ;
27314 PyObject * obj0 = 0 ;
27315 PyObject * obj1 = 0 ;
27316 char * kwnames[] = {
27317 (char *) "winid",(char *) "show", NULL
27318 };
27319
27320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27321 if (obj0) {
27322 ecode1 = SWIG_AsVal_int(obj0, &val1);
27323 if (!SWIG_IsOK(ecode1)) {
27324 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ShowEvent" "', expected argument " "1"" of type '" "int""'");
27325 }
27326 arg1 = static_cast< int >(val1);
27327 }
27328 if (obj1) {
27329 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27330 if (!SWIG_IsOK(ecode2)) {
27331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ShowEvent" "', expected argument " "2"" of type '" "bool""'");
27332 }
27333 arg2 = static_cast< bool >(val2);
27334 }
27335 {
27336 PyThreadState* __tstate = wxPyBeginAllowThreads();
27337 result = (wxShowEvent *)new wxShowEvent(arg1,arg2);
27338 wxPyEndAllowThreads(__tstate);
27339 if (PyErr_Occurred()) SWIG_fail;
27340 }
27341 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxShowEvent, SWIG_POINTER_NEW | 0 );
27342 return resultobj;
27343fail:
27344 return NULL;
27345}
27346
27347
27348SWIGINTERN PyObject *_wrap_ShowEvent_SetShow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27349 PyObject *resultobj = 0;
27350 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
27351 bool arg2 ;
27352 void *argp1 = 0 ;
27353 int res1 = 0 ;
27354 bool val2 ;
27355 int ecode2 = 0 ;
27356 PyObject * obj0 = 0 ;
27357 PyObject * obj1 = 0 ;
27358 char * kwnames[] = {
27359 (char *) "self",(char *) "show", NULL
27360 };
27361
27362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) SWIG_fail;
27363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxShowEvent, 0 | 0 );
27364 if (!SWIG_IsOK(res1)) {
27365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShowEvent_SetShow" "', expected argument " "1"" of type '" "wxShowEvent *""'");
27366 }
27367 arg1 = reinterpret_cast< wxShowEvent * >(argp1);
27368 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27369 if (!SWIG_IsOK(ecode2)) {
27370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ShowEvent_SetShow" "', expected argument " "2"" of type '" "bool""'");
27371 }
27372 arg2 = static_cast< bool >(val2);
27373 {
27374 PyThreadState* __tstate = wxPyBeginAllowThreads();
27375 (arg1)->SetShow(arg2);
27376 wxPyEndAllowThreads(__tstate);
27377 if (PyErr_Occurred()) SWIG_fail;
27378 }
27379 resultobj = SWIG_Py_Void();
27380 return resultobj;
27381fail:
27382 return NULL;
d55e5bfc
RD
27383}
27384
27385
1bd55598
RD
27386SWIGINTERN PyObject *_wrap_ShowEvent_GetShow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27387 PyObject *resultobj = 0;
27388 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
27389 bool result;
27390 void *argp1 = 0 ;
27391 int res1 = 0 ;
27392 PyObject *swig_obj[1] ;
27393
27394 if (!args) SWIG_fail;
27395 swig_obj[0] = args;
27396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxShowEvent, 0 | 0 );
27397 if (!SWIG_IsOK(res1)) {
27398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShowEvent_GetShow" "', expected argument " "1"" of type '" "wxShowEvent const *""'");
27399 }
27400 arg1 = reinterpret_cast< wxShowEvent * >(argp1);
27401 {
27402 PyThreadState* __tstate = wxPyBeginAllowThreads();
27403 result = (bool)((wxShowEvent const *)arg1)->GetShow();
27404 wxPyEndAllowThreads(__tstate);
27405 if (PyErr_Occurred()) SWIG_fail;
27406 }
27407 {
27408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27409 }
27410 return resultobj;
27411fail:
27412 return NULL;
d55e5bfc
RD
27413}
27414
27415
1bd55598
RD
27416SWIGINTERN PyObject *ShowEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27417 PyObject *obj;
27418 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27419 SWIG_TypeNewClientData(SWIGTYPE_p_wxShowEvent, SWIG_NewClientData(obj));
27420 return SWIG_Py_Void();
d55e5bfc
RD
27421}
27422
1bd55598
RD
27423SWIGINTERN PyObject *ShowEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27424 return SWIG_Python_InitShadowInstance(args);
27425}
d55e5bfc 27426
1bd55598
RD
27427SWIGINTERN PyObject *_wrap_new_IconizeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27428 PyObject *resultobj = 0;
27429 int arg1 = (int) 0 ;
27430 bool arg2 = (bool) true ;
27431 wxIconizeEvent *result = 0 ;
27432 int val1 ;
27433 int ecode1 = 0 ;
27434 bool val2 ;
27435 int ecode2 = 0 ;
27436 PyObject * obj0 = 0 ;
27437 PyObject * obj1 = 0 ;
27438 char * kwnames[] = {
27439 (char *) "id",(char *) "iconized", NULL
27440 };
27441
27442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27443 if (obj0) {
27444 ecode1 = SWIG_AsVal_int(obj0, &val1);
27445 if (!SWIG_IsOK(ecode1)) {
27446 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IconizeEvent" "', expected argument " "1"" of type '" "int""'");
27447 }
27448 arg1 = static_cast< int >(val1);
27449 }
27450 if (obj1) {
27451 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27452 if (!SWIG_IsOK(ecode2)) {
27453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconizeEvent" "', expected argument " "2"" of type '" "bool""'");
27454 }
27455 arg2 = static_cast< bool >(val2);
27456 }
27457 {
27458 PyThreadState* __tstate = wxPyBeginAllowThreads();
27459 result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2);
27460 wxPyEndAllowThreads(__tstate);
27461 if (PyErr_Occurred()) SWIG_fail;
27462 }
27463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconizeEvent, SWIG_POINTER_NEW | 0 );
27464 return resultobj;
27465fail:
27466 return NULL;
d55e5bfc
RD
27467}
27468
27469
1bd55598
RD
27470SWIGINTERN PyObject *_wrap_IconizeEvent_Iconized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27471 PyObject *resultobj = 0;
27472 wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ;
27473 bool result;
27474 void *argp1 = 0 ;
27475 int res1 = 0 ;
27476 PyObject *swig_obj[1] ;
27477
27478 if (!args) SWIG_fail;
27479 swig_obj[0] = args;
27480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconizeEvent, 0 | 0 );
27481 if (!SWIG_IsOK(res1)) {
27482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconizeEvent_Iconized" "', expected argument " "1"" of type '" "wxIconizeEvent *""'");
27483 }
27484 arg1 = reinterpret_cast< wxIconizeEvent * >(argp1);
27485 {
27486 PyThreadState* __tstate = wxPyBeginAllowThreads();
27487 result = (bool)(arg1)->Iconized();
27488 wxPyEndAllowThreads(__tstate);
27489 if (PyErr_Occurred()) SWIG_fail;
27490 }
27491 {
27492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27493 }
27494 return resultobj;
27495fail:
27496 return NULL;
d55e5bfc
RD
27497}
27498
27499
1bd55598
RD
27500SWIGINTERN PyObject *IconizeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27501 PyObject *obj;
27502 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27503 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconizeEvent, SWIG_NewClientData(obj));
27504 return SWIG_Py_Void();
d55e5bfc
RD
27505}
27506
1bd55598
RD
27507SWIGINTERN PyObject *IconizeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27508 return SWIG_Python_InitShadowInstance(args);
27509}
d55e5bfc 27510
1bd55598
RD
27511SWIGINTERN PyObject *_wrap_new_MaximizeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27512 PyObject *resultobj = 0;
27513 int arg1 = (int) 0 ;
27514 wxMaximizeEvent *result = 0 ;
27515 int val1 ;
27516 int ecode1 = 0 ;
27517 PyObject * obj0 = 0 ;
27518 char * kwnames[] = {
27519 (char *) "id", NULL
27520 };
27521
27522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) SWIG_fail;
27523 if (obj0) {
27524 ecode1 = SWIG_AsVal_int(obj0, &val1);
27525 if (!SWIG_IsOK(ecode1)) {
27526 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MaximizeEvent" "', expected argument " "1"" of type '" "int""'");
27527 }
27528 arg1 = static_cast< int >(val1);
27529 }
27530 {
27531 PyThreadState* __tstate = wxPyBeginAllowThreads();
27532 result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1);
27533 wxPyEndAllowThreads(__tstate);
27534 if (PyErr_Occurred()) SWIG_fail;
27535 }
27536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMaximizeEvent, SWIG_POINTER_NEW | 0 );
27537 return resultobj;
27538fail:
27539 return NULL;
d55e5bfc
RD
27540}
27541
27542
1bd55598
RD
27543SWIGINTERN PyObject *MaximizeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27544 PyObject *obj;
27545 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27546 SWIG_TypeNewClientData(SWIGTYPE_p_wxMaximizeEvent, SWIG_NewClientData(obj));
27547 return SWIG_Py_Void();
d55e5bfc
RD
27548}
27549
1bd55598
RD
27550SWIGINTERN PyObject *MaximizeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27551 return SWIG_Python_InitShadowInstance(args);
27552}
d55e5bfc 27553
1bd55598
RD
27554SWIGINTERN PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27555 PyObject *resultobj = 0;
27556 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
27557 wxPoint result;
27558 void *argp1 = 0 ;
27559 int res1 = 0 ;
27560 PyObject *swig_obj[1] ;
27561
27562 if (!args) SWIG_fail;
27563 swig_obj[0] = args;
27564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDropFilesEvent, 0 | 0 );
27565 if (!SWIG_IsOK(res1)) {
27566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropFilesEvent_GetPosition" "', expected argument " "1"" of type '" "wxDropFilesEvent *""'");
27567 }
27568 arg1 = reinterpret_cast< wxDropFilesEvent * >(argp1);
27569 {
27570 PyThreadState* __tstate = wxPyBeginAllowThreads();
27571 result = (arg1)->GetPosition();
27572 wxPyEndAllowThreads(__tstate);
27573 if (PyErr_Occurred()) SWIG_fail;
27574 }
27575 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
27576 return resultobj;
27577fail:
27578 return NULL;
d55e5bfc
RD
27579}
27580
27581
1bd55598
RD
27582SWIGINTERN PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27583 PyObject *resultobj = 0;
27584 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
27585 int result;
27586 void *argp1 = 0 ;
27587 int res1 = 0 ;
27588 PyObject *swig_obj[1] ;
27589
27590 if (!args) SWIG_fail;
27591 swig_obj[0] = args;
27592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDropFilesEvent, 0 | 0 );
27593 if (!SWIG_IsOK(res1)) {
27594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropFilesEvent_GetNumberOfFiles" "', expected argument " "1"" of type '" "wxDropFilesEvent *""'");
27595 }
27596 arg1 = reinterpret_cast< wxDropFilesEvent * >(argp1);
27597 {
27598 PyThreadState* __tstate = wxPyBeginAllowThreads();
27599 result = (int)(arg1)->GetNumberOfFiles();
27600 wxPyEndAllowThreads(__tstate);
27601 if (PyErr_Occurred()) SWIG_fail;
27602 }
27603 resultobj = SWIG_From_int(static_cast< int >(result));
27604 return resultobj;
27605fail:
27606 return NULL;
d55e5bfc
RD
27607}
27608
27609
1bd55598
RD
27610SWIGINTERN PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27611 PyObject *resultobj = 0;
27612 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
27613 PyObject *result = 0 ;
27614 void *argp1 = 0 ;
27615 int res1 = 0 ;
27616 PyObject *swig_obj[1] ;
27617
27618 if (!args) SWIG_fail;
27619 swig_obj[0] = args;
27620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDropFilesEvent, 0 | 0 );
27621 if (!SWIG_IsOK(res1)) {
27622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropFilesEvent_GetFiles" "', expected argument " "1"" of type '" "wxDropFilesEvent *""'");
27623 }
27624 arg1 = reinterpret_cast< wxDropFilesEvent * >(argp1);
27625 {
27626 PyThreadState* __tstate = wxPyBeginAllowThreads();
27627 result = (PyObject *)wxDropFilesEvent_GetFiles(arg1);
27628 wxPyEndAllowThreads(__tstate);
27629 if (PyErr_Occurred()) SWIG_fail;
27630 }
27631 resultobj = result;
27632 return resultobj;
27633fail:
27634 return NULL;
d55e5bfc
RD
27635}
27636
27637
1bd55598
RD
27638SWIGINTERN PyObject *DropFilesEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27639 PyObject *obj;
27640 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27641 SWIG_TypeNewClientData(SWIGTYPE_p_wxDropFilesEvent, SWIG_NewClientData(obj));
27642 return SWIG_Py_Void();
d55e5bfc
RD
27643}
27644
1bd55598
RD
27645SWIGINTERN PyObject *_wrap_new_UpdateUIEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27646 PyObject *resultobj = 0;
27647 int arg1 = (int) 0 ;
27648 wxUpdateUIEvent *result = 0 ;
27649 int val1 ;
27650 int ecode1 = 0 ;
27651 PyObject * obj0 = 0 ;
27652 char * kwnames[] = {
27653 (char *) "commandId", NULL
27654 };
27655
27656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) SWIG_fail;
27657 if (obj0) {
27658 ecode1 = SWIG_AsVal_int(obj0, &val1);
27659 if (!SWIG_IsOK(ecode1)) {
27660 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UpdateUIEvent" "', expected argument " "1"" of type '" "int""'");
27661 }
27662 arg1 = static_cast< int >(val1);
27663 }
27664 {
27665 PyThreadState* __tstate = wxPyBeginAllowThreads();
27666 result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1);
27667 wxPyEndAllowThreads(__tstate);
27668 if (PyErr_Occurred()) SWIG_fail;
27669 }
27670 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_NEW | 0 );
27671 return resultobj;
27672fail:
27673 return NULL;
27674}
d55e5bfc 27675
1bd55598
RD
27676
27677SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27678 PyObject *resultobj = 0;
27679 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27680 bool result;
27681 void *argp1 = 0 ;
27682 int res1 = 0 ;
27683 PyObject *swig_obj[1] ;
27684
27685 if (!args) SWIG_fail;
27686 swig_obj[0] = args;
27687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27688 if (!SWIG_IsOK(res1)) {
27689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetChecked" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
27690 }
27691 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27692 {
27693 PyThreadState* __tstate = wxPyBeginAllowThreads();
27694 result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked();
27695 wxPyEndAllowThreads(__tstate);
27696 if (PyErr_Occurred()) SWIG_fail;
27697 }
27698 {
27699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27700 }
27701 return resultobj;
27702fail:
27703 return NULL;
d55e5bfc
RD
27704}
27705
27706
1bd55598
RD
27707SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27708 PyObject *resultobj = 0;
27709 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27710 bool result;
27711 void *argp1 = 0 ;
27712 int res1 = 0 ;
27713 PyObject *swig_obj[1] ;
27714
27715 if (!args) SWIG_fail;
27716 swig_obj[0] = args;
27717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27718 if (!SWIG_IsOK(res1)) {
27719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetEnabled" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
27720 }
27721 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27722 {
27723 PyThreadState* __tstate = wxPyBeginAllowThreads();
27724 result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled();
27725 wxPyEndAllowThreads(__tstate);
27726 if (PyErr_Occurred()) SWIG_fail;
27727 }
27728 {
27729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27730 }
27731 return resultobj;
27732fail:
27733 return NULL;
d55e5bfc
RD
27734}
27735
27736
1bd55598
RD
27737SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27738 PyObject *resultobj = 0;
27739 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27740 bool result;
27741 void *argp1 = 0 ;
27742 int res1 = 0 ;
27743 PyObject *swig_obj[1] ;
27744
27745 if (!args) SWIG_fail;
27746 swig_obj[0] = args;
27747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27748 if (!SWIG_IsOK(res1)) {
27749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetShown" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
27750 }
27751 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27752 {
27753 PyThreadState* __tstate = wxPyBeginAllowThreads();
27754 result = (bool)((wxUpdateUIEvent const *)arg1)->GetShown();
27755 wxPyEndAllowThreads(__tstate);
27756 if (PyErr_Occurred()) SWIG_fail;
27757 }
27758 {
27759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27760 }
27761 return resultobj;
27762fail:
27763 return NULL;
d55e5bfc
RD
27764}
27765
27766
1bd55598
RD
27767SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27768 PyObject *resultobj = 0;
27769 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27770 wxString result;
27771 void *argp1 = 0 ;
27772 int res1 = 0 ;
27773 PyObject *swig_obj[1] ;
27774
27775 if (!args) SWIG_fail;
27776 swig_obj[0] = args;
27777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27778 if (!SWIG_IsOK(res1)) {
27779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetText" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
27780 }
27781 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27782 {
27783 PyThreadState* __tstate = wxPyBeginAllowThreads();
27784 result = ((wxUpdateUIEvent const *)arg1)->GetText();
27785 wxPyEndAllowThreads(__tstate);
27786 if (PyErr_Occurred()) SWIG_fail;
27787 }
27788 {
27789#if wxUSE_UNICODE
27790 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27791#else
27792 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27793#endif
27794 }
27795 return resultobj;
27796fail:
27797 return NULL;
d55e5bfc
RD
27798}
27799
27800
1bd55598
RD
27801SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27802 PyObject *resultobj = 0;
27803 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27804 bool result;
27805 void *argp1 = 0 ;
27806 int res1 = 0 ;
27807 PyObject *swig_obj[1] ;
27808
27809 if (!args) SWIG_fail;
27810 swig_obj[0] = args;
27811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27812 if (!SWIG_IsOK(res1)) {
27813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetSetText" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
27814 }
27815 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27816 {
27817 PyThreadState* __tstate = wxPyBeginAllowThreads();
27818 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText();
27819 wxPyEndAllowThreads(__tstate);
27820 if (PyErr_Occurred()) SWIG_fail;
27821 }
27822 {
27823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27824 }
27825 return resultobj;
27826fail:
27827 return NULL;
d55e5bfc
RD
27828}
27829
27830
1bd55598
RD
27831SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27832 PyObject *resultobj = 0;
27833 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27834 bool result;
27835 void *argp1 = 0 ;
27836 int res1 = 0 ;
27837 PyObject *swig_obj[1] ;
27838
27839 if (!args) SWIG_fail;
27840 swig_obj[0] = args;
27841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27842 if (!SWIG_IsOK(res1)) {
27843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetSetChecked" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
27844 }
27845 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27846 {
27847 PyThreadState* __tstate = wxPyBeginAllowThreads();
27848 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked();
27849 wxPyEndAllowThreads(__tstate);
27850 if (PyErr_Occurred()) SWIG_fail;
27851 }
27852 {
27853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27854 }
27855 return resultobj;
27856fail:
27857 return NULL;
d55e5bfc
RD
27858}
27859
27860
1bd55598
RD
27861SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27862 PyObject *resultobj = 0;
27863 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27864 bool result;
27865 void *argp1 = 0 ;
27866 int res1 = 0 ;
27867 PyObject *swig_obj[1] ;
27868
27869 if (!args) SWIG_fail;
27870 swig_obj[0] = args;
27871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27872 if (!SWIG_IsOK(res1)) {
27873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetSetEnabled" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
27874 }
27875 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27876 {
27877 PyThreadState* __tstate = wxPyBeginAllowThreads();
27878 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled();
27879 wxPyEndAllowThreads(__tstate);
27880 if (PyErr_Occurred()) SWIG_fail;
27881 }
27882 {
27883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27884 }
27885 return resultobj;
27886fail:
27887 return NULL;
d55e5bfc
RD
27888}
27889
27890
1bd55598
RD
27891SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetSetShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27892 PyObject *resultobj = 0;
27893 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27894 bool result;
27895 void *argp1 = 0 ;
27896 int res1 = 0 ;
27897 PyObject *swig_obj[1] ;
27898
27899 if (!args) SWIG_fail;
27900 swig_obj[0] = args;
27901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27902 if (!SWIG_IsOK(res1)) {
27903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetSetShown" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
27904 }
27905 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27906 {
27907 PyThreadState* __tstate = wxPyBeginAllowThreads();
27908 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetShown();
27909 wxPyEndAllowThreads(__tstate);
27910 if (PyErr_Occurred()) SWIG_fail;
27911 }
27912 {
27913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27914 }
27915 return resultobj;
27916fail:
27917 return NULL;
27918}
27919
27920
27921SWIGINTERN PyObject *_wrap_UpdateUIEvent_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27922 PyObject *resultobj = 0;
27923 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27924 bool arg2 ;
27925 void *argp1 = 0 ;
27926 int res1 = 0 ;
27927 bool val2 ;
27928 int ecode2 = 0 ;
27929 PyObject * obj0 = 0 ;
27930 PyObject * obj1 = 0 ;
27931 char * kwnames[] = {
27932 (char *) "self",(char *) "check", NULL
27933 };
27934
27935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) SWIG_fail;
27936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27937 if (!SWIG_IsOK(res1)) {
27938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_Check" "', expected argument " "1"" of type '" "wxUpdateUIEvent *""'");
27939 }
27940 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27941 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27942 if (!SWIG_IsOK(ecode2)) {
27943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UpdateUIEvent_Check" "', expected argument " "2"" of type '" "bool""'");
27944 }
27945 arg2 = static_cast< bool >(val2);
27946 {
27947 PyThreadState* __tstate = wxPyBeginAllowThreads();
27948 (arg1)->Check(arg2);
27949 wxPyEndAllowThreads(__tstate);
27950 if (PyErr_Occurred()) SWIG_fail;
27951 }
27952 resultobj = SWIG_Py_Void();
27953 return resultobj;
27954fail:
27955 return NULL;
27956}
27957
27958
27959SWIGINTERN PyObject *_wrap_UpdateUIEvent_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27960 PyObject *resultobj = 0;
27961 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27962 bool arg2 ;
27963 void *argp1 = 0 ;
27964 int res1 = 0 ;
27965 bool val2 ;
27966 int ecode2 = 0 ;
27967 PyObject * obj0 = 0 ;
27968 PyObject * obj1 = 0 ;
27969 char * kwnames[] = {
27970 (char *) "self",(char *) "enable", NULL
27971 };
27972
27973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
27974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27975 if (!SWIG_IsOK(res1)) {
27976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_Enable" "', expected argument " "1"" of type '" "wxUpdateUIEvent *""'");
27977 }
27978 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27979 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27980 if (!SWIG_IsOK(ecode2)) {
27981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UpdateUIEvent_Enable" "', expected argument " "2"" of type '" "bool""'");
27982 }
27983 arg2 = static_cast< bool >(val2);
27984 {
27985 PyThreadState* __tstate = wxPyBeginAllowThreads();
27986 (arg1)->Enable(arg2);
27987 wxPyEndAllowThreads(__tstate);
27988 if (PyErr_Occurred()) SWIG_fail;
27989 }
27990 resultobj = SWIG_Py_Void();
27991 return resultobj;
27992fail:
27993 return NULL;
27994}
27995
27996
27997SWIGINTERN PyObject *_wrap_UpdateUIEvent_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27998 PyObject *resultobj = 0;
27999 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
28000 bool arg2 ;
28001 void *argp1 = 0 ;
28002 int res1 = 0 ;
28003 bool val2 ;
28004 int ecode2 = 0 ;
28005 PyObject * obj0 = 0 ;
28006 PyObject * obj1 = 0 ;
28007 char * kwnames[] = {
28008 (char *) "self",(char *) "show", NULL
28009 };
28010
28011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Show",kwnames,&obj0,&obj1)) SWIG_fail;
28012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
28013 if (!SWIG_IsOK(res1)) {
28014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_Show" "', expected argument " "1"" of type '" "wxUpdateUIEvent *""'");
28015 }
28016 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
28017 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28018 if (!SWIG_IsOK(ecode2)) {
28019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UpdateUIEvent_Show" "', expected argument " "2"" of type '" "bool""'");
28020 }
28021 arg2 = static_cast< bool >(val2);
28022 {
28023 PyThreadState* __tstate = wxPyBeginAllowThreads();
28024 (arg1)->Show(arg2);
28025 wxPyEndAllowThreads(__tstate);
28026 if (PyErr_Occurred()) SWIG_fail;
28027 }
28028 resultobj = SWIG_Py_Void();
28029 return resultobj;
28030fail:
28031 return NULL;
28032}
28033
28034
28035SWIGINTERN PyObject *_wrap_UpdateUIEvent_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28036 PyObject *resultobj = 0;
28037 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
28038 wxString *arg2 = 0 ;
28039 void *argp1 = 0 ;
28040 int res1 = 0 ;
28041 bool temp2 = false ;
28042 PyObject * obj0 = 0 ;
28043 PyObject * obj1 = 0 ;
28044 char * kwnames[] = {
28045 (char *) "self",(char *) "text", NULL
28046 };
28047
28048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
28049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
28050 if (!SWIG_IsOK(res1)) {
28051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_SetText" "', expected argument " "1"" of type '" "wxUpdateUIEvent *""'");
28052 }
28053 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
28054 {
28055 arg2 = wxString_in_helper(obj1);
28056 if (arg2 == NULL) SWIG_fail;
28057 temp2 = true;
28058 }
28059 {
28060 PyThreadState* __tstate = wxPyBeginAllowThreads();
28061 (arg1)->SetText((wxString const &)*arg2);
28062 wxPyEndAllowThreads(__tstate);
28063 if (PyErr_Occurred()) SWIG_fail;
28064 }
28065 resultobj = SWIG_Py_Void();
28066 {
28067 if (temp2)
28068 delete arg2;
28069 }
28070 return resultobj;
28071fail:
28072 {
28073 if (temp2)
28074 delete arg2;
28075 }
28076 return NULL;
d55e5bfc
RD
28077}
28078
28079
1bd55598
RD
28080SWIGINTERN PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28081 PyObject *resultobj = 0;
28082 long arg1 ;
28083 long val1 ;
28084 int ecode1 = 0 ;
28085 PyObject * obj0 = 0 ;
28086 char * kwnames[] = {
28087 (char *) "updateInterval", NULL
28088 };
28089
28090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) SWIG_fail;
28091 ecode1 = SWIG_AsVal_long(obj0, &val1);
28092 if (!SWIG_IsOK(ecode1)) {
28093 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "UpdateUIEvent_SetUpdateInterval" "', expected argument " "1"" of type '" "long""'");
28094 }
28095 arg1 = static_cast< long >(val1);
28096 {
28097 PyThreadState* __tstate = wxPyBeginAllowThreads();
28098 wxUpdateUIEvent::SetUpdateInterval(arg1);
28099 wxPyEndAllowThreads(__tstate);
28100 if (PyErr_Occurred()) SWIG_fail;
28101 }
28102 resultobj = SWIG_Py_Void();
28103 return resultobj;
28104fail:
28105 return NULL;
d55e5bfc
RD
28106}
28107
28108
1bd55598
RD
28109SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28110 PyObject *resultobj = 0;
28111 long result;
28112
28113 if (!SWIG_Python_UnpackTuple(args,"UpdateUIEvent_GetUpdateInterval",0,0,0)) SWIG_fail;
28114 {
28115 PyThreadState* __tstate = wxPyBeginAllowThreads();
28116 result = (long)wxUpdateUIEvent::GetUpdateInterval();
28117 wxPyEndAllowThreads(__tstate);
28118 if (PyErr_Occurred()) SWIG_fail;
28119 }
28120 resultobj = SWIG_From_long(static_cast< long >(result));
28121 return resultobj;
28122fail:
28123 return NULL;
28124}
28125
28126
28127SWIGINTERN PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28128 PyObject *resultobj = 0;
28129 wxWindow *arg1 = (wxWindow *) 0 ;
28130 bool result;
28131 void *argp1 = 0 ;
28132 int res1 = 0 ;
28133 PyObject * obj0 = 0 ;
28134 char * kwnames[] = {
28135 (char *) "win", NULL
28136 };
28137
28138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) SWIG_fail;
28139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28140 if (!SWIG_IsOK(res1)) {
28141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_CanUpdate" "', expected argument " "1"" of type '" "wxWindow *""'");
28142 }
28143 arg1 = reinterpret_cast< wxWindow * >(argp1);
28144 {
28145 PyThreadState* __tstate = wxPyBeginAllowThreads();
28146 result = (bool)wxUpdateUIEvent::CanUpdate(arg1);
28147 wxPyEndAllowThreads(__tstate);
28148 if (PyErr_Occurred()) SWIG_fail;
28149 }
28150 {
28151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28152 }
28153 return resultobj;
28154fail:
28155 return NULL;
d55e5bfc
RD
28156}
28157
28158
1bd55598
RD
28159SWIGINTERN PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28160 PyObject *resultobj = 0;
28161
28162 if (!SWIG_Python_UnpackTuple(args,"UpdateUIEvent_ResetUpdateTime",0,0,0)) SWIG_fail;
28163 {
28164 PyThreadState* __tstate = wxPyBeginAllowThreads();
28165 wxUpdateUIEvent::ResetUpdateTime();
28166 wxPyEndAllowThreads(__tstate);
28167 if (PyErr_Occurred()) SWIG_fail;
28168 }
28169 resultobj = SWIG_Py_Void();
28170 return resultobj;
28171fail:
28172 return NULL;
d55e5bfc
RD
28173}
28174
28175
1bd55598
RD
28176SWIGINTERN PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28177 PyObject *resultobj = 0;
28178 wxUpdateUIMode arg1 ;
28179 int val1 ;
28180 int ecode1 = 0 ;
28181 PyObject * obj0 = 0 ;
28182 char * kwnames[] = {
28183 (char *) "mode", NULL
28184 };
28185
28186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) SWIG_fail;
28187 ecode1 = SWIG_AsVal_int(obj0, &val1);
28188 if (!SWIG_IsOK(ecode1)) {
28189 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "UpdateUIEvent_SetMode" "', expected argument " "1"" of type '" "wxUpdateUIMode""'");
28190 }
28191 arg1 = static_cast< wxUpdateUIMode >(val1);
28192 {
28193 PyThreadState* __tstate = wxPyBeginAllowThreads();
28194 wxUpdateUIEvent::SetMode(arg1);
28195 wxPyEndAllowThreads(__tstate);
28196 if (PyErr_Occurred()) SWIG_fail;
28197 }
28198 resultobj = SWIG_Py_Void();
28199 return resultobj;
28200fail:
28201 return NULL;
d55e5bfc
RD
28202}
28203
28204
1bd55598
RD
28205SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28206 PyObject *resultobj = 0;
28207 wxUpdateUIMode result;
28208
28209 if (!SWIG_Python_UnpackTuple(args,"UpdateUIEvent_GetMode",0,0,0)) SWIG_fail;
28210 {
28211 PyThreadState* __tstate = wxPyBeginAllowThreads();
28212 result = (wxUpdateUIMode)wxUpdateUIEvent::GetMode();
28213 wxPyEndAllowThreads(__tstate);
28214 if (PyErr_Occurred()) SWIG_fail;
28215 }
28216 resultobj = SWIG_From_int(static_cast< int >(result));
28217 return resultobj;
28218fail:
28219 return NULL;
d55e5bfc
RD
28220}
28221
28222
1bd55598
RD
28223SWIGINTERN PyObject *UpdateUIEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28224 PyObject *obj;
28225 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28226 SWIG_TypeNewClientData(SWIGTYPE_p_wxUpdateUIEvent, SWIG_NewClientData(obj));
28227 return SWIG_Py_Void();
d55e5bfc
RD
28228}
28229
1bd55598
RD
28230SWIGINTERN PyObject *UpdateUIEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28231 return SWIG_Python_InitShadowInstance(args);
28232}
d55e5bfc 28233
1bd55598
RD
28234SWIGINTERN PyObject *_wrap_new_SysColourChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28235 PyObject *resultobj = 0;
28236 wxSysColourChangedEvent *result = 0 ;
28237
28238 if (!SWIG_Python_UnpackTuple(args,"new_SysColourChangedEvent",0,0,0)) SWIG_fail;
28239 {
28240 PyThreadState* __tstate = wxPyBeginAllowThreads();
28241 result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent();
28242 wxPyEndAllowThreads(__tstate);
28243 if (PyErr_Occurred()) SWIG_fail;
28244 }
28245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSysColourChangedEvent, SWIG_POINTER_NEW | 0 );
28246 return resultobj;
28247fail:
28248 return NULL;
d55e5bfc
RD
28249}
28250
28251
1bd55598
RD
28252SWIGINTERN PyObject *SysColourChangedEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28253 PyObject *obj;
28254 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28255 SWIG_TypeNewClientData(SWIGTYPE_p_wxSysColourChangedEvent, SWIG_NewClientData(obj));
28256 return SWIG_Py_Void();
d55e5bfc
RD
28257}
28258
1bd55598
RD
28259SWIGINTERN PyObject *SysColourChangedEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28260 return SWIG_Python_InitShadowInstance(args);
28261}
d55e5bfc 28262
1bd55598
RD
28263SWIGINTERN PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28264 PyObject *resultobj = 0;
28265 int arg1 = (int) 0 ;
28266 wxWindow *arg2 = (wxWindow *) NULL ;
28267 wxMouseCaptureChangedEvent *result = 0 ;
28268 int val1 ;
28269 int ecode1 = 0 ;
28270 void *argp2 = 0 ;
28271 int res2 = 0 ;
28272 PyObject * obj0 = 0 ;
28273 PyObject * obj1 = 0 ;
28274 char * kwnames[] = {
28275 (char *) "winid",(char *) "gainedCapture", NULL
28276 };
28277
28278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28279 if (obj0) {
28280 ecode1 = SWIG_AsVal_int(obj0, &val1);
28281 if (!SWIG_IsOK(ecode1)) {
28282 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MouseCaptureChangedEvent" "', expected argument " "1"" of type '" "int""'");
28283 }
28284 arg1 = static_cast< int >(val1);
28285 }
28286 if (obj1) {
28287 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28288 if (!SWIG_IsOK(res2)) {
28289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MouseCaptureChangedEvent" "', expected argument " "2"" of type '" "wxWindow *""'");
d55e5bfc 28290 }
1bd55598
RD
28291 arg2 = reinterpret_cast< wxWindow * >(argp2);
28292 }
28293 {
28294 PyThreadState* __tstate = wxPyBeginAllowThreads();
28295 result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2);
28296 wxPyEndAllowThreads(__tstate);
28297 if (PyErr_Occurred()) SWIG_fail;
28298 }
28299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, SWIG_POINTER_NEW | 0 );
28300 return resultobj;
28301fail:
28302 return NULL;
d55e5bfc
RD
28303}
28304
28305
1bd55598
RD
28306SWIGINTERN PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28307 PyObject *resultobj = 0;
28308 wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ;
28309 wxWindow *result = 0 ;
28310 void *argp1 = 0 ;
28311 int res1 = 0 ;
28312 PyObject *swig_obj[1] ;
28313
28314 if (!args) SWIG_fail;
28315 swig_obj[0] = args;
28316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseCaptureChangedEvent, 0 | 0 );
28317 if (!SWIG_IsOK(res1)) {
28318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseCaptureChangedEvent_GetCapturedWindow" "', expected argument " "1"" of type '" "wxMouseCaptureChangedEvent const *""'");
28319 }
28320 arg1 = reinterpret_cast< wxMouseCaptureChangedEvent * >(argp1);
28321 {
28322 PyThreadState* __tstate = wxPyBeginAllowThreads();
28323 result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow();
28324 wxPyEndAllowThreads(__tstate);
28325 if (PyErr_Occurred()) SWIG_fail;
28326 }
28327 {
28328 resultobj = wxPyMake_wxObject(result, (bool)0);
28329 }
28330 return resultobj;
28331fail:
28332 return NULL;
d55e5bfc
RD
28333}
28334
28335
1bd55598
RD
28336SWIGINTERN PyObject *MouseCaptureChangedEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28337 PyObject *obj;
28338 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28339 SWIG_TypeNewClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, SWIG_NewClientData(obj));
28340 return SWIG_Py_Void();
d55e5bfc
RD
28341}
28342
1bd55598
RD
28343SWIGINTERN PyObject *MouseCaptureChangedEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28344 return SWIG_Python_InitShadowInstance(args);
28345}
d55e5bfc 28346
34e0a3bb
RD
28347SWIGINTERN PyObject *_wrap_new_MouseCaptureLostEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28348 PyObject *resultobj = 0;
28349 int arg1 = (int) 0 ;
28350 wxMouseCaptureLostEvent *result = 0 ;
28351 int val1 ;
28352 int ecode1 = 0 ;
28353 PyObject * obj0 = 0 ;
28354 char * kwnames[] = {
28355 (char *) "winid", NULL
28356 };
28357
28358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseCaptureLostEvent",kwnames,&obj0)) SWIG_fail;
28359 if (obj0) {
28360 ecode1 = SWIG_AsVal_int(obj0, &val1);
28361 if (!SWIG_IsOK(ecode1)) {
28362 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MouseCaptureLostEvent" "', expected argument " "1"" of type '" "int""'");
28363 }
28364 arg1 = static_cast< int >(val1);
28365 }
28366 {
28367 PyThreadState* __tstate = wxPyBeginAllowThreads();
28368 result = (wxMouseCaptureLostEvent *)new wxMouseCaptureLostEvent(arg1);
28369 wxPyEndAllowThreads(__tstate);
28370 if (PyErr_Occurred()) SWIG_fail;
28371 }
28372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseCaptureLostEvent, SWIG_POINTER_NEW | 0 );
28373 return resultobj;
28374fail:
28375 return NULL;
28376}
28377
28378
28379SWIGINTERN PyObject *MouseCaptureLostEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28380 PyObject *obj;
28381 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28382 SWIG_TypeNewClientData(SWIGTYPE_p_wxMouseCaptureLostEvent, SWIG_NewClientData(obj));
28383 return SWIG_Py_Void();
28384}
28385
28386SWIGINTERN PyObject *MouseCaptureLostEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28387 return SWIG_Python_InitShadowInstance(args);
28388}
28389
1bd55598
RD
28390SWIGINTERN PyObject *_wrap_new_DisplayChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28391 PyObject *resultobj = 0;
28392 wxDisplayChangedEvent *result = 0 ;
28393
28394 if (!SWIG_Python_UnpackTuple(args,"new_DisplayChangedEvent",0,0,0)) SWIG_fail;
28395 {
28396 PyThreadState* __tstate = wxPyBeginAllowThreads();
28397 result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent();
28398 wxPyEndAllowThreads(__tstate);
28399 if (PyErr_Occurred()) SWIG_fail;
28400 }
28401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDisplayChangedEvent, SWIG_POINTER_NEW | 0 );
28402 return resultobj;
28403fail:
28404 return NULL;
d55e5bfc
RD
28405}
28406
28407
1bd55598
RD
28408SWIGINTERN PyObject *DisplayChangedEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28409 PyObject *obj;
28410 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28411 SWIG_TypeNewClientData(SWIGTYPE_p_wxDisplayChangedEvent, SWIG_NewClientData(obj));
28412 return SWIG_Py_Void();
d55e5bfc
RD
28413}
28414
1bd55598
RD
28415SWIGINTERN PyObject *DisplayChangedEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28416 return SWIG_Python_InitShadowInstance(args);
28417}
d55e5bfc 28418
1bd55598
RD
28419SWIGINTERN PyObject *_wrap_new_PaletteChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28420 PyObject *resultobj = 0;
28421 int arg1 = (int) 0 ;
28422 wxPaletteChangedEvent *result = 0 ;
28423 int val1 ;
28424 int ecode1 = 0 ;
28425 PyObject * obj0 = 0 ;
28426 char * kwnames[] = {
28427 (char *) "id", NULL
28428 };
28429
28430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) SWIG_fail;
28431 if (obj0) {
28432 ecode1 = SWIG_AsVal_int(obj0, &val1);
28433 if (!SWIG_IsOK(ecode1)) {
28434 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PaletteChangedEvent" "', expected argument " "1"" of type '" "int""'");
28435 }
28436 arg1 = static_cast< int >(val1);
28437 }
28438 {
28439 PyThreadState* __tstate = wxPyBeginAllowThreads();
28440 result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1);
28441 wxPyEndAllowThreads(__tstate);
28442 if (PyErr_Occurred()) SWIG_fail;
28443 }
28444 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaletteChangedEvent, SWIG_POINTER_NEW | 0 );
28445 return resultobj;
28446fail:
28447 return NULL;
28448}
28449
28450
28451SWIGINTERN PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28452 PyObject *resultobj = 0;
28453 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
28454 wxWindow *arg2 = (wxWindow *) 0 ;
28455 void *argp1 = 0 ;
28456 int res1 = 0 ;
28457 void *argp2 = 0 ;
28458 int res2 = 0 ;
28459 PyObject * obj0 = 0 ;
28460 PyObject * obj1 = 0 ;
28461 char * kwnames[] = {
28462 (char *) "self",(char *) "win", NULL
28463 };
28464
28465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) SWIG_fail;
28466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPaletteChangedEvent, 0 | 0 );
28467 if (!SWIG_IsOK(res1)) {
28468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PaletteChangedEvent_SetChangedWindow" "', expected argument " "1"" of type '" "wxPaletteChangedEvent *""'");
28469 }
28470 arg1 = reinterpret_cast< wxPaletteChangedEvent * >(argp1);
28471 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28472 if (!SWIG_IsOK(res2)) {
28473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PaletteChangedEvent_SetChangedWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
28474 }
28475 arg2 = reinterpret_cast< wxWindow * >(argp2);
28476 {
28477 PyThreadState* __tstate = wxPyBeginAllowThreads();
28478 (arg1)->SetChangedWindow(arg2);
28479 wxPyEndAllowThreads(__tstate);
28480 if (PyErr_Occurred()) SWIG_fail;
28481 }
28482 resultobj = SWIG_Py_Void();
28483 return resultobj;
28484fail:
28485 return NULL;
d55e5bfc
RD
28486}
28487
28488
1bd55598
RD
28489SWIGINTERN PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28490 PyObject *resultobj = 0;
28491 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
28492 wxWindow *result = 0 ;
28493 void *argp1 = 0 ;
28494 int res1 = 0 ;
28495 PyObject *swig_obj[1] ;
28496
28497 if (!args) SWIG_fail;
28498 swig_obj[0] = args;
28499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPaletteChangedEvent, 0 | 0 );
28500 if (!SWIG_IsOK(res1)) {
28501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PaletteChangedEvent_GetChangedWindow" "', expected argument " "1"" of type '" "wxPaletteChangedEvent *""'");
28502 }
28503 arg1 = reinterpret_cast< wxPaletteChangedEvent * >(argp1);
28504 {
28505 PyThreadState* __tstate = wxPyBeginAllowThreads();
28506 result = (wxWindow *)(arg1)->GetChangedWindow();
28507 wxPyEndAllowThreads(__tstate);
28508 if (PyErr_Occurred()) SWIG_fail;
28509 }
28510 {
28511 resultobj = wxPyMake_wxObject(result, (bool)0);
28512 }
28513 return resultobj;
28514fail:
28515 return NULL;
d55e5bfc
RD
28516}
28517
28518
1bd55598
RD
28519SWIGINTERN PyObject *PaletteChangedEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28520 PyObject *obj;
28521 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28522 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaletteChangedEvent, SWIG_NewClientData(obj));
28523 return SWIG_Py_Void();
d55e5bfc
RD
28524}
28525
1bd55598
RD
28526SWIGINTERN PyObject *PaletteChangedEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28527 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
28528}
28529
1bd55598
RD
28530SWIGINTERN PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28531 PyObject *resultobj = 0;
28532 int arg1 = (int) 0 ;
28533 wxQueryNewPaletteEvent *result = 0 ;
28534 int val1 ;
28535 int ecode1 = 0 ;
28536 PyObject * obj0 = 0 ;
28537 char * kwnames[] = {
28538 (char *) "winid", NULL
28539 };
28540
28541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) SWIG_fail;
28542 if (obj0) {
28543 ecode1 = SWIG_AsVal_int(obj0, &val1);
28544 if (!SWIG_IsOK(ecode1)) {
28545 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QueryNewPaletteEvent" "', expected argument " "1"" of type '" "int""'");
28546 }
28547 arg1 = static_cast< int >(val1);
28548 }
28549 {
28550 PyThreadState* __tstate = wxPyBeginAllowThreads();
28551 result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1);
28552 wxPyEndAllowThreads(__tstate);
28553 if (PyErr_Occurred()) SWIG_fail;
28554 }
28555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxQueryNewPaletteEvent, SWIG_POINTER_NEW | 0 );
28556 return resultobj;
28557fail:
28558 return NULL;
28559}
28560
28561
28562SWIGINTERN PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28563 PyObject *resultobj = 0;
28564 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
28565 bool arg2 ;
28566 void *argp1 = 0 ;
28567 int res1 = 0 ;
28568 bool val2 ;
28569 int ecode2 = 0 ;
28570 PyObject * obj0 = 0 ;
28571 PyObject * obj1 = 0 ;
28572 char * kwnames[] = {
28573 (char *) "self",(char *) "realized", NULL
28574 };
28575
28576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) SWIG_fail;
28577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryNewPaletteEvent, 0 | 0 );
28578 if (!SWIG_IsOK(res1)) {
28579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryNewPaletteEvent_SetPaletteRealized" "', expected argument " "1"" of type '" "wxQueryNewPaletteEvent *""'");
28580 }
28581 arg1 = reinterpret_cast< wxQueryNewPaletteEvent * >(argp1);
28582 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28583 if (!SWIG_IsOK(ecode2)) {
28584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryNewPaletteEvent_SetPaletteRealized" "', expected argument " "2"" of type '" "bool""'");
28585 }
28586 arg2 = static_cast< bool >(val2);
28587 {
28588 PyThreadState* __tstate = wxPyBeginAllowThreads();
28589 (arg1)->SetPaletteRealized(arg2);
28590 wxPyEndAllowThreads(__tstate);
28591 if (PyErr_Occurred()) SWIG_fail;
28592 }
28593 resultobj = SWIG_Py_Void();
28594 return resultobj;
28595fail:
28596 return NULL;
d55e5bfc
RD
28597}
28598
28599
1bd55598
RD
28600SWIGINTERN PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28601 PyObject *resultobj = 0;
28602 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
28603 bool result;
28604 void *argp1 = 0 ;
28605 int res1 = 0 ;
28606 PyObject *swig_obj[1] ;
28607
28608 if (!args) SWIG_fail;
28609 swig_obj[0] = args;
28610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryNewPaletteEvent, 0 | 0 );
28611 if (!SWIG_IsOK(res1)) {
28612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryNewPaletteEvent_GetPaletteRealized" "', expected argument " "1"" of type '" "wxQueryNewPaletteEvent const *""'");
28613 }
28614 arg1 = reinterpret_cast< wxQueryNewPaletteEvent * >(argp1);
28615 {
28616 PyThreadState* __tstate = wxPyBeginAllowThreads();
28617 result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized();
28618 wxPyEndAllowThreads(__tstate);
28619 if (PyErr_Occurred()) SWIG_fail;
28620 }
28621 {
28622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28623 }
28624 return resultobj;
28625fail:
28626 return NULL;
d55e5bfc
RD
28627}
28628
28629
1bd55598
RD
28630SWIGINTERN PyObject *QueryNewPaletteEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28631 PyObject *obj;
28632 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28633 SWIG_TypeNewClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, SWIG_NewClientData(obj));
28634 return SWIG_Py_Void();
412d302d
RD
28635}
28636
1bd55598
RD
28637SWIGINTERN PyObject *QueryNewPaletteEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28638 return SWIG_Python_InitShadowInstance(args);
28639}
412d302d 28640
1bd55598
RD
28641SWIGINTERN PyObject *_wrap_new_NavigationKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28642 PyObject *resultobj = 0;
28643 wxNavigationKeyEvent *result = 0 ;
28644
28645 if (!SWIG_Python_UnpackTuple(args,"new_NavigationKeyEvent",0,0,0)) SWIG_fail;
28646 {
28647 PyThreadState* __tstate = wxPyBeginAllowThreads();
28648 result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent();
28649 wxPyEndAllowThreads(__tstate);
28650 if (PyErr_Occurred()) SWIG_fail;
28651 }
28652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_NEW | 0 );
28653 return resultobj;
28654fail:
28655 return NULL;
d55e5bfc
RD
28656}
28657
28658
1bd55598
RD
28659SWIGINTERN PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28660 PyObject *resultobj = 0;
28661 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28662 bool result;
28663 void *argp1 = 0 ;
28664 int res1 = 0 ;
28665 PyObject *swig_obj[1] ;
28666
28667 if (!args) SWIG_fail;
28668 swig_obj[0] = args;
28669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28670 if (!SWIG_IsOK(res1)) {
28671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_GetDirection" "', expected argument " "1"" of type '" "wxNavigationKeyEvent const *""'");
28672 }
28673 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28674 {
28675 PyThreadState* __tstate = wxPyBeginAllowThreads();
28676 result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection();
28677 wxPyEndAllowThreads(__tstate);
28678 if (PyErr_Occurred()) SWIG_fail;
28679 }
28680 {
28681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28682 }
28683 return resultobj;
28684fail:
28685 return NULL;
28686}
28687
28688
28689SWIGINTERN PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28690 PyObject *resultobj = 0;
28691 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28692 bool arg2 ;
28693 void *argp1 = 0 ;
28694 int res1 = 0 ;
28695 bool val2 ;
28696 int ecode2 = 0 ;
28697 PyObject * obj0 = 0 ;
28698 PyObject * obj1 = 0 ;
28699 char * kwnames[] = {
28700 (char *) "self",(char *) "forward", NULL
28701 };
28702
28703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) SWIG_fail;
28704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28705 if (!SWIG_IsOK(res1)) {
28706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_SetDirection" "', expected argument " "1"" of type '" "wxNavigationKeyEvent *""'");
28707 }
28708 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28709 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28710 if (!SWIG_IsOK(ecode2)) {
28711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NavigationKeyEvent_SetDirection" "', expected argument " "2"" of type '" "bool""'");
28712 }
28713 arg2 = static_cast< bool >(val2);
28714 {
28715 PyThreadState* __tstate = wxPyBeginAllowThreads();
28716 (arg1)->SetDirection(arg2);
28717 wxPyEndAllowThreads(__tstate);
28718 if (PyErr_Occurred()) SWIG_fail;
28719 }
28720 resultobj = SWIG_Py_Void();
28721 return resultobj;
28722fail:
28723 return NULL;
d55e5bfc
RD
28724}
28725
28726
1bd55598
RD
28727SWIGINTERN PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28728 PyObject *resultobj = 0;
28729 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28730 bool result;
28731 void *argp1 = 0 ;
28732 int res1 = 0 ;
28733 PyObject *swig_obj[1] ;
28734
28735 if (!args) SWIG_fail;
28736 swig_obj[0] = args;
28737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28738 if (!SWIG_IsOK(res1)) {
28739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_IsWindowChange" "', expected argument " "1"" of type '" "wxNavigationKeyEvent const *""'");
28740 }
28741 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28742 {
28743 PyThreadState* __tstate = wxPyBeginAllowThreads();
28744 result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange();
28745 wxPyEndAllowThreads(__tstate);
28746 if (PyErr_Occurred()) SWIG_fail;
28747 }
28748 {
28749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28750 }
28751 return resultobj;
28752fail:
28753 return NULL;
28754}
28755
28756
28757SWIGINTERN PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28758 PyObject *resultobj = 0;
28759 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28760 bool arg2 ;
28761 void *argp1 = 0 ;
28762 int res1 = 0 ;
28763 bool val2 ;
28764 int ecode2 = 0 ;
28765 PyObject * obj0 = 0 ;
28766 PyObject * obj1 = 0 ;
28767 char * kwnames[] = {
28768 (char *) "self",(char *) "ischange", NULL
28769 };
28770
28771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) SWIG_fail;
28772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28773 if (!SWIG_IsOK(res1)) {
28774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_SetWindowChange" "', expected argument " "1"" of type '" "wxNavigationKeyEvent *""'");
28775 }
28776 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28777 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28778 if (!SWIG_IsOK(ecode2)) {
28779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NavigationKeyEvent_SetWindowChange" "', expected argument " "2"" of type '" "bool""'");
28780 }
28781 arg2 = static_cast< bool >(val2);
28782 {
28783 PyThreadState* __tstate = wxPyBeginAllowThreads();
28784 (arg1)->SetWindowChange(arg2);
28785 wxPyEndAllowThreads(__tstate);
28786 if (PyErr_Occurred()) SWIG_fail;
28787 }
28788 resultobj = SWIG_Py_Void();
28789 return resultobj;
28790fail:
28791 return NULL;
d55e5bfc
RD
28792}
28793
28794
1bd55598
RD
28795SWIGINTERN PyObject *_wrap_NavigationKeyEvent_IsFromTab(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28796 PyObject *resultobj = 0;
28797 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28798 bool result;
28799 void *argp1 = 0 ;
28800 int res1 = 0 ;
28801 PyObject *swig_obj[1] ;
28802
28803 if (!args) SWIG_fail;
28804 swig_obj[0] = args;
28805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28806 if (!SWIG_IsOK(res1)) {
28807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_IsFromTab" "', expected argument " "1"" of type '" "wxNavigationKeyEvent const *""'");
28808 }
28809 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28810 {
28811 PyThreadState* __tstate = wxPyBeginAllowThreads();
28812 result = (bool)((wxNavigationKeyEvent const *)arg1)->IsFromTab();
28813 wxPyEndAllowThreads(__tstate);
28814 if (PyErr_Occurred()) SWIG_fail;
28815 }
28816 {
28817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28818 }
28819 return resultobj;
28820fail:
28821 return NULL;
28822}
28823
28824
28825SWIGINTERN PyObject *_wrap_NavigationKeyEvent_SetFromTab(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28826 PyObject *resultobj = 0;
28827 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28828 bool arg2 ;
28829 void *argp1 = 0 ;
28830 int res1 = 0 ;
28831 bool val2 ;
28832 int ecode2 = 0 ;
28833 PyObject * obj0 = 0 ;
28834 PyObject * obj1 = 0 ;
28835 char * kwnames[] = {
28836 (char *) "self",(char *) "bIs", NULL
28837 };
28838
28839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFromTab",kwnames,&obj0,&obj1)) SWIG_fail;
28840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28841 if (!SWIG_IsOK(res1)) {
28842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_SetFromTab" "', expected argument " "1"" of type '" "wxNavigationKeyEvent *""'");
28843 }
28844 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28845 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28846 if (!SWIG_IsOK(ecode2)) {
28847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NavigationKeyEvent_SetFromTab" "', expected argument " "2"" of type '" "bool""'");
28848 }
28849 arg2 = static_cast< bool >(val2);
28850 {
28851 PyThreadState* __tstate = wxPyBeginAllowThreads();
28852 (arg1)->SetFromTab(arg2);
28853 wxPyEndAllowThreads(__tstate);
28854 if (PyErr_Occurred()) SWIG_fail;
28855 }
28856 resultobj = SWIG_Py_Void();
28857 return resultobj;
28858fail:
28859 return NULL;
28860}
28861
28862
28863SWIGINTERN PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28864 PyObject *resultobj = 0;
28865 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28866 long arg2 ;
28867 void *argp1 = 0 ;
28868 int res1 = 0 ;
28869 long val2 ;
28870 int ecode2 = 0 ;
28871 PyObject * obj0 = 0 ;
28872 PyObject * obj1 = 0 ;
28873 char * kwnames[] = {
28874 (char *) "self",(char *) "flags", NULL
28875 };
28876
28877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
28878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28879 if (!SWIG_IsOK(res1)) {
28880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_SetFlags" "', expected argument " "1"" of type '" "wxNavigationKeyEvent *""'");
28881 }
28882 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28883 ecode2 = SWIG_AsVal_long(obj1, &val2);
28884 if (!SWIG_IsOK(ecode2)) {
28885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NavigationKeyEvent_SetFlags" "', expected argument " "2"" of type '" "long""'");
28886 }
28887 arg2 = static_cast< long >(val2);
28888 {
28889 PyThreadState* __tstate = wxPyBeginAllowThreads();
28890 (arg1)->SetFlags(arg2);
28891 wxPyEndAllowThreads(__tstate);
28892 if (PyErr_Occurred()) SWIG_fail;
28893 }
28894 resultobj = SWIG_Py_Void();
28895 return resultobj;
28896fail:
28897 return NULL;
d55e5bfc
RD
28898}
28899
28900
1bd55598
RD
28901SWIGINTERN PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28902 PyObject *resultobj = 0;
28903 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28904 wxWindow *result = 0 ;
28905 void *argp1 = 0 ;
28906 int res1 = 0 ;
28907 PyObject *swig_obj[1] ;
28908
28909 if (!args) SWIG_fail;
28910 swig_obj[0] = args;
28911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28912 if (!SWIG_IsOK(res1)) {
28913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_GetCurrentFocus" "', expected argument " "1"" of type '" "wxNavigationKeyEvent const *""'");
28914 }
28915 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28916 {
28917 PyThreadState* __tstate = wxPyBeginAllowThreads();
28918 result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus();
28919 wxPyEndAllowThreads(__tstate);
28920 if (PyErr_Occurred()) SWIG_fail;
28921 }
28922 {
28923 resultobj = wxPyMake_wxObject(result, (bool)0);
28924 }
28925 return resultobj;
28926fail:
28927 return NULL;
28928}
28929
28930
28931SWIGINTERN PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28932 PyObject *resultobj = 0;
28933 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28934 wxWindow *arg2 = (wxWindow *) 0 ;
28935 void *argp1 = 0 ;
28936 int res1 = 0 ;
28937 void *argp2 = 0 ;
28938 int res2 = 0 ;
28939 PyObject * obj0 = 0 ;
28940 PyObject * obj1 = 0 ;
28941 char * kwnames[] = {
28942 (char *) "self",(char *) "win", NULL
28943 };
28944
28945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) SWIG_fail;
28946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28947 if (!SWIG_IsOK(res1)) {
28948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_SetCurrentFocus" "', expected argument " "1"" of type '" "wxNavigationKeyEvent *""'");
28949 }
28950 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28951 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28952 if (!SWIG_IsOK(res2)) {
28953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NavigationKeyEvent_SetCurrentFocus" "', expected argument " "2"" of type '" "wxWindow *""'");
28954 }
28955 arg2 = reinterpret_cast< wxWindow * >(argp2);
28956 {
28957 PyThreadState* __tstate = wxPyBeginAllowThreads();
28958 (arg1)->SetCurrentFocus(arg2);
28959 wxPyEndAllowThreads(__tstate);
28960 if (PyErr_Occurred()) SWIG_fail;
28961 }
28962 resultobj = SWIG_Py_Void();
28963 return resultobj;
28964fail:
28965 return NULL;
d55e5bfc
RD
28966}
28967
28968
1bd55598
RD
28969SWIGINTERN PyObject *NavigationKeyEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28970 PyObject *obj;
28971 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28972 SWIG_TypeNewClientData(SWIGTYPE_p_wxNavigationKeyEvent, SWIG_NewClientData(obj));
28973 return SWIG_Py_Void();
d55e5bfc
RD
28974}
28975
1bd55598
RD
28976SWIGINTERN PyObject *NavigationKeyEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28977 return SWIG_Python_InitShadowInstance(args);
28978}
d55e5bfc 28979
1bd55598
RD
28980SWIGINTERN PyObject *_wrap_new_WindowCreateEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28981 PyObject *resultobj = 0;
28982 wxWindow *arg1 = (wxWindow *) NULL ;
28983 wxWindowCreateEvent *result = 0 ;
28984 void *argp1 = 0 ;
28985 int res1 = 0 ;
28986 PyObject * obj0 = 0 ;
28987 char * kwnames[] = {
28988 (char *) "win", NULL
28989 };
28990
28991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) SWIG_fail;
28992 if (obj0) {
28993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28994 if (!SWIG_IsOK(res1)) {
28995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowCreateEvent" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 28996 }
1bd55598
RD
28997 arg1 = reinterpret_cast< wxWindow * >(argp1);
28998 }
28999 {
29000 PyThreadState* __tstate = wxPyBeginAllowThreads();
29001 result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1);
29002 wxPyEndAllowThreads(__tstate);
29003 if (PyErr_Occurred()) SWIG_fail;
29004 }
29005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowCreateEvent, SWIG_POINTER_NEW | 0 );
29006 return resultobj;
29007fail:
29008 return NULL;
d55e5bfc
RD
29009}
29010
29011
1bd55598
RD
29012SWIGINTERN PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29013 PyObject *resultobj = 0;
29014 wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ;
29015 wxWindow *result = 0 ;
29016 void *argp1 = 0 ;
29017 int res1 = 0 ;
29018 PyObject *swig_obj[1] ;
29019
29020 if (!args) SWIG_fail;
29021 swig_obj[0] = args;
29022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindowCreateEvent, 0 | 0 );
29023 if (!SWIG_IsOK(res1)) {
29024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WindowCreateEvent_GetWindow" "', expected argument " "1"" of type '" "wxWindowCreateEvent const *""'");
29025 }
29026 arg1 = reinterpret_cast< wxWindowCreateEvent * >(argp1);
29027 {
29028 PyThreadState* __tstate = wxPyBeginAllowThreads();
29029 result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow();
29030 wxPyEndAllowThreads(__tstate);
29031 if (PyErr_Occurred()) SWIG_fail;
29032 }
29033 {
29034 resultobj = wxPyMake_wxObject(result, (bool)0);
29035 }
29036 return resultobj;
29037fail:
29038 return NULL;
d55e5bfc
RD
29039}
29040
29041
1bd55598
RD
29042SWIGINTERN PyObject *WindowCreateEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29043 PyObject *obj;
29044 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29045 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowCreateEvent, SWIG_NewClientData(obj));
29046 return SWIG_Py_Void();
d55e5bfc
RD
29047}
29048
1bd55598
RD
29049SWIGINTERN PyObject *WindowCreateEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29050 return SWIG_Python_InitShadowInstance(args);
29051}
d55e5bfc 29052
1bd55598
RD
29053SWIGINTERN PyObject *_wrap_new_WindowDestroyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29054 PyObject *resultobj = 0;
29055 wxWindow *arg1 = (wxWindow *) NULL ;
29056 wxWindowDestroyEvent *result = 0 ;
29057 void *argp1 = 0 ;
29058 int res1 = 0 ;
29059 PyObject * obj0 = 0 ;
29060 char * kwnames[] = {
29061 (char *) "win", NULL
29062 };
29063
29064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) SWIG_fail;
29065 if (obj0) {
29066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
29067 if (!SWIG_IsOK(res1)) {
29068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDestroyEvent" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 29069 }
1bd55598
RD
29070 arg1 = reinterpret_cast< wxWindow * >(argp1);
29071 }
29072 {
29073 PyThreadState* __tstate = wxPyBeginAllowThreads();
29074 result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1);
29075 wxPyEndAllowThreads(__tstate);
29076 if (PyErr_Occurred()) SWIG_fail;
29077 }
29078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDestroyEvent, SWIG_POINTER_NEW | 0 );
29079 return resultobj;
29080fail:
29081 return NULL;
d55e5bfc
RD
29082}
29083
29084
1bd55598
RD
29085SWIGINTERN PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29086 PyObject *resultobj = 0;
29087 wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ;
29088 wxWindow *result = 0 ;
29089 void *argp1 = 0 ;
29090 int res1 = 0 ;
29091 PyObject *swig_obj[1] ;
29092
29093 if (!args) SWIG_fail;
29094 swig_obj[0] = args;
29095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindowDestroyEvent, 0 | 0 );
29096 if (!SWIG_IsOK(res1)) {
29097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WindowDestroyEvent_GetWindow" "', expected argument " "1"" of type '" "wxWindowDestroyEvent const *""'");
29098 }
29099 arg1 = reinterpret_cast< wxWindowDestroyEvent * >(argp1);
29100 {
29101 PyThreadState* __tstate = wxPyBeginAllowThreads();
29102 result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow();
29103 wxPyEndAllowThreads(__tstate);
29104 if (PyErr_Occurred()) SWIG_fail;
29105 }
29106 {
29107 resultobj = wxPyMake_wxObject(result, (bool)0);
29108 }
29109 return resultobj;
29110fail:
29111 return NULL;
29112}
29113
29114
29115SWIGINTERN PyObject *WindowDestroyEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29116 PyObject *obj;
29117 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29118 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDestroyEvent, SWIG_NewClientData(obj));
29119 return SWIG_Py_Void();
29120}
29121
29122SWIGINTERN PyObject *WindowDestroyEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29123 return SWIG_Python_InitShadowInstance(args);
29124}
29125
29126SWIGINTERN PyObject *_wrap_new_ContextMenuEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29127 PyObject *resultobj = 0;
29128 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
29129 int arg2 = (int) 0 ;
29130 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29131 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29132 wxContextMenuEvent *result = 0 ;
29133 int val1 ;
29134 int ecode1 = 0 ;
29135 int val2 ;
29136 int ecode2 = 0 ;
29137 wxPoint temp3 ;
29138 PyObject * obj0 = 0 ;
29139 PyObject * obj1 = 0 ;
29140 PyObject * obj2 = 0 ;
29141 char * kwnames[] = {
29142 (char *) "type",(char *) "winid",(char *) "pt", NULL
29143 };
29144
29145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29146 if (obj0) {
29147 ecode1 = SWIG_AsVal_int(obj0, &val1);
29148 if (!SWIG_IsOK(ecode1)) {
29149 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ContextMenuEvent" "', expected argument " "1"" of type '" "wxEventType""'");
29150 }
29151 arg1 = static_cast< wxEventType >(val1);
29152 }
29153 if (obj1) {
29154 ecode2 = SWIG_AsVal_int(obj1, &val2);
29155 if (!SWIG_IsOK(ecode2)) {
29156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextMenuEvent" "', expected argument " "2"" of type '" "int""'");
29157 }
29158 arg2 = static_cast< int >(val2);
29159 }
29160 if (obj2) {
d55e5bfc 29161 {
1bd55598
RD
29162 arg3 = &temp3;
29163 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 29164 }
1bd55598
RD
29165 }
29166 {
29167 PyThreadState* __tstate = wxPyBeginAllowThreads();
29168 result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3);
29169 wxPyEndAllowThreads(__tstate);
29170 if (PyErr_Occurred()) SWIG_fail;
29171 }
29172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextMenuEvent, SWIG_POINTER_NEW | 0 );
29173 return resultobj;
29174fail:
29175 return NULL;
d55e5bfc
RD
29176}
29177
29178
1bd55598
RD
29179SWIGINTERN PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29180 PyObject *resultobj = 0;
29181 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
29182 wxPoint *result = 0 ;
29183 void *argp1 = 0 ;
29184 int res1 = 0 ;
29185 PyObject *swig_obj[1] ;
29186
29187 if (!args) SWIG_fail;
29188 swig_obj[0] = args;
29189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextMenuEvent, 0 | 0 );
29190 if (!SWIG_IsOK(res1)) {
29191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextMenuEvent_GetPosition" "', expected argument " "1"" of type '" "wxContextMenuEvent const *""'");
29192 }
29193 arg1 = reinterpret_cast< wxContextMenuEvent * >(argp1);
29194 {
29195 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 29196 {
1bd55598
RD
29197 wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition();
29198 result = (wxPoint *) &_result_ref;
d55e5bfc 29199 }
1bd55598
RD
29200 wxPyEndAllowThreads(__tstate);
29201 if (PyErr_Occurred()) SWIG_fail;
29202 }
29203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
29204 return resultobj;
29205fail:
29206 return NULL;
29207}
29208
29209
29210SWIGINTERN PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29211 PyObject *resultobj = 0;
29212 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
29213 wxPoint *arg2 = 0 ;
29214 void *argp1 = 0 ;
29215 int res1 = 0 ;
29216 wxPoint temp2 ;
29217 PyObject * obj0 = 0 ;
29218 PyObject * obj1 = 0 ;
29219 char * kwnames[] = {
29220 (char *) "self",(char *) "pos", NULL
29221 };
29222
29223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextMenuEvent, 0 | 0 );
29225 if (!SWIG_IsOK(res1)) {
29226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextMenuEvent_SetPosition" "', expected argument " "1"" of type '" "wxContextMenuEvent *""'");
29227 }
29228 arg1 = reinterpret_cast< wxContextMenuEvent * >(argp1);
29229 {
29230 arg2 = &temp2;
29231 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29232 }
29233 {
29234 PyThreadState* __tstate = wxPyBeginAllowThreads();
29235 (arg1)->SetPosition((wxPoint const &)*arg2);
29236 wxPyEndAllowThreads(__tstate);
29237 if (PyErr_Occurred()) SWIG_fail;
29238 }
29239 resultobj = SWIG_Py_Void();
29240 return resultobj;
29241fail:
29242 return NULL;
d55e5bfc
RD
29243}
29244
29245
1bd55598
RD
29246SWIGINTERN PyObject *ContextMenuEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29247 PyObject *obj;
29248 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29249 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextMenuEvent, SWIG_NewClientData(obj));
29250 return SWIG_Py_Void();
d55e5bfc
RD
29251}
29252
1bd55598
RD
29253SWIGINTERN PyObject *ContextMenuEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29254 return SWIG_Python_InitShadowInstance(args);
29255}
d55e5bfc 29256
1bd55598
RD
29257SWIGINTERN PyObject *_wrap_new_IdleEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29258 PyObject *resultobj = 0;
29259 wxIdleEvent *result = 0 ;
29260
29261 if (!SWIG_Python_UnpackTuple(args,"new_IdleEvent",0,0,0)) SWIG_fail;
29262 {
29263 PyThreadState* __tstate = wxPyBeginAllowThreads();
29264 result = (wxIdleEvent *)new wxIdleEvent();
29265 wxPyEndAllowThreads(__tstate);
29266 if (PyErr_Occurred()) SWIG_fail;
29267 }
29268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIdleEvent, SWIG_POINTER_NEW | 0 );
29269 return resultobj;
29270fail:
29271 return NULL;
29272}
29273
29274
29275SWIGINTERN PyObject *_wrap_IdleEvent_RequestMore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29276 PyObject *resultobj = 0;
29277 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
29278 bool arg2 = (bool) true ;
29279 void *argp1 = 0 ;
29280 int res1 = 0 ;
29281 bool val2 ;
29282 int ecode2 = 0 ;
29283 PyObject * obj0 = 0 ;
29284 PyObject * obj1 = 0 ;
29285 char * kwnames[] = {
29286 (char *) "self",(char *) "needMore", NULL
29287 };
29288
29289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) SWIG_fail;
29290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIdleEvent, 0 | 0 );
29291 if (!SWIG_IsOK(res1)) {
29292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IdleEvent_RequestMore" "', expected argument " "1"" of type '" "wxIdleEvent *""'");
29293 }
29294 arg1 = reinterpret_cast< wxIdleEvent * >(argp1);
29295 if (obj1) {
29296 ecode2 = SWIG_AsVal_bool(obj1, &val2);
29297 if (!SWIG_IsOK(ecode2)) {
29298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IdleEvent_RequestMore" "', expected argument " "2"" of type '" "bool""'");
29299 }
29300 arg2 = static_cast< bool >(val2);
29301 }
29302 {
29303 PyThreadState* __tstate = wxPyBeginAllowThreads();
29304 (arg1)->RequestMore(arg2);
29305 wxPyEndAllowThreads(__tstate);
29306 if (PyErr_Occurred()) SWIG_fail;
29307 }
29308 resultobj = SWIG_Py_Void();
29309 return resultobj;
29310fail:
29311 return NULL;
d55e5bfc
RD
29312}
29313
29314
1bd55598
RD
29315SWIGINTERN PyObject *_wrap_IdleEvent_MoreRequested(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29316 PyObject *resultobj = 0;
29317 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
29318 bool result;
29319 void *argp1 = 0 ;
29320 int res1 = 0 ;
29321 PyObject *swig_obj[1] ;
29322
29323 if (!args) SWIG_fail;
29324 swig_obj[0] = args;
29325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIdleEvent, 0 | 0 );
29326 if (!SWIG_IsOK(res1)) {
29327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IdleEvent_MoreRequested" "', expected argument " "1"" of type '" "wxIdleEvent const *""'");
29328 }
29329 arg1 = reinterpret_cast< wxIdleEvent * >(argp1);
29330 {
29331 PyThreadState* __tstate = wxPyBeginAllowThreads();
29332 result = (bool)((wxIdleEvent const *)arg1)->MoreRequested();
29333 wxPyEndAllowThreads(__tstate);
29334 if (PyErr_Occurred()) SWIG_fail;
29335 }
29336 {
29337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29338 }
29339 return resultobj;
29340fail:
29341 return NULL;
d55e5bfc
RD
29342}
29343
29344
1bd55598
RD
29345SWIGINTERN PyObject *_wrap_IdleEvent_SetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29346 PyObject *resultobj = 0;
29347 wxIdleMode arg1 ;
29348 int val1 ;
29349 int ecode1 = 0 ;
29350 PyObject * obj0 = 0 ;
29351 char * kwnames[] = {
29352 (char *) "mode", NULL
29353 };
29354
29355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) SWIG_fail;
29356 ecode1 = SWIG_AsVal_int(obj0, &val1);
29357 if (!SWIG_IsOK(ecode1)) {
29358 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "IdleEvent_SetMode" "', expected argument " "1"" of type '" "wxIdleMode""'");
29359 }
29360 arg1 = static_cast< wxIdleMode >(val1);
29361 {
29362 PyThreadState* __tstate = wxPyBeginAllowThreads();
29363 wxIdleEvent::SetMode(arg1);
29364 wxPyEndAllowThreads(__tstate);
29365 if (PyErr_Occurred()) SWIG_fail;
29366 }
29367 resultobj = SWIG_Py_Void();
29368 return resultobj;
29369fail:
29370 return NULL;
d55e5bfc
RD
29371}
29372
29373
1bd55598
RD
29374SWIGINTERN PyObject *_wrap_IdleEvent_GetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29375 PyObject *resultobj = 0;
29376 wxIdleMode result;
29377
29378 if (!SWIG_Python_UnpackTuple(args,"IdleEvent_GetMode",0,0,0)) SWIG_fail;
29379 {
29380 PyThreadState* __tstate = wxPyBeginAllowThreads();
29381 result = (wxIdleMode)wxIdleEvent::GetMode();
29382 wxPyEndAllowThreads(__tstate);
29383 if (PyErr_Occurred()) SWIG_fail;
29384 }
29385 resultobj = SWIG_From_int(static_cast< int >(result));
29386 return resultobj;
29387fail:
29388 return NULL;
29389}
29390
29391
29392SWIGINTERN PyObject *_wrap_IdleEvent_CanSend(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29393 PyObject *resultobj = 0;
29394 wxWindow *arg1 = (wxWindow *) 0 ;
29395 bool result;
29396 void *argp1 = 0 ;
29397 int res1 = 0 ;
29398 PyObject * obj0 = 0 ;
29399 char * kwnames[] = {
29400 (char *) "win", NULL
29401 };
29402
29403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) SWIG_fail;
29404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
29405 if (!SWIG_IsOK(res1)) {
29406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IdleEvent_CanSend" "', expected argument " "1"" of type '" "wxWindow *""'");
29407 }
29408 arg1 = reinterpret_cast< wxWindow * >(argp1);
29409 {
29410 PyThreadState* __tstate = wxPyBeginAllowThreads();
29411 result = (bool)wxIdleEvent::CanSend(arg1);
29412 wxPyEndAllowThreads(__tstate);
29413 if (PyErr_Occurred()) SWIG_fail;
29414 }
29415 {
29416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29417 }
29418 return resultobj;
29419fail:
29420 return NULL;
d55e5bfc
RD
29421}
29422
29423
1bd55598
RD
29424SWIGINTERN PyObject *IdleEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29425 PyObject *obj;
29426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29427 SWIG_TypeNewClientData(SWIGTYPE_p_wxIdleEvent, SWIG_NewClientData(obj));
29428 return SWIG_Py_Void();
d55e5bfc
RD
29429}
29430
1bd55598
RD
29431SWIGINTERN PyObject *IdleEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29432 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
29433}
29434
2131d850
RD
29435SWIGINTERN PyObject *_wrap_new_ClipboardTextEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29436 PyObject *resultobj = 0;
29437 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
29438 int arg2 = (int) 0 ;
29439 wxClipboardTextEvent *result = 0 ;
29440 int val1 ;
29441 int ecode1 = 0 ;
29442 int val2 ;
29443 int ecode2 = 0 ;
29444 PyObject * obj0 = 0 ;
29445 PyObject * obj1 = 0 ;
29446 char * kwnames[] = {
29447 (char *) "type",(char *) "winid", NULL
29448 };
29449
29450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ClipboardTextEvent",kwnames,&obj0,&obj1)) SWIG_fail;
29451 if (obj0) {
29452 ecode1 = SWIG_AsVal_int(obj0, &val1);
29453 if (!SWIG_IsOK(ecode1)) {
29454 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ClipboardTextEvent" "', expected argument " "1"" of type '" "wxEventType""'");
29455 }
29456 arg1 = static_cast< wxEventType >(val1);
29457 }
29458 if (obj1) {
29459 ecode2 = SWIG_AsVal_int(obj1, &val2);
29460 if (!SWIG_IsOK(ecode2)) {
29461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ClipboardTextEvent" "', expected argument " "2"" of type '" "int""'");
29462 }
29463 arg2 = static_cast< int >(val2);
29464 }
29465 {
29466 PyThreadState* __tstate = wxPyBeginAllowThreads();
29467 result = (wxClipboardTextEvent *)new wxClipboardTextEvent(arg1,arg2);
29468 wxPyEndAllowThreads(__tstate);
29469 if (PyErr_Occurred()) SWIG_fail;
29470 }
29471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClipboardTextEvent, SWIG_POINTER_NEW | 0 );
29472 return resultobj;
29473fail:
29474 return NULL;
29475}
29476
29477
29478SWIGINTERN PyObject *ClipboardTextEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29479 PyObject *obj;
29480 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29481 SWIG_TypeNewClientData(SWIGTYPE_p_wxClipboardTextEvent, SWIG_NewClientData(obj));
29482 return SWIG_Py_Void();
29483}
29484
29485SWIGINTERN PyObject *ClipboardTextEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29486 return SWIG_Python_InitShadowInstance(args);
29487}
29488
1bd55598
RD
29489SWIGINTERN PyObject *_wrap_new_PyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29490 PyObject *resultobj = 0;
29491 int arg1 = (int) 0 ;
29492 wxEventType arg2 = (wxEventType) wxEVT_NULL ;
29493 wxPyEvent *result = 0 ;
29494 int val1 ;
29495 int ecode1 = 0 ;
29496 int val2 ;
29497 int ecode2 = 0 ;
29498 PyObject * obj0 = 0 ;
29499 PyObject * obj1 = 0 ;
29500 char * kwnames[] = {
29501 (char *) "winid",(char *) "eventType", NULL
29502 };
29503
29504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
29505 if (obj0) {
29506 ecode1 = SWIG_AsVal_int(obj0, &val1);
29507 if (!SWIG_IsOK(ecode1)) {
29508 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyEvent" "', expected argument " "1"" of type '" "int""'");
29509 }
29510 arg1 = static_cast< int >(val1);
29511 }
29512 if (obj1) {
29513 ecode2 = SWIG_AsVal_int(obj1, &val2);
29514 if (!SWIG_IsOK(ecode2)) {
29515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyEvent" "', expected argument " "2"" of type '" "wxEventType""'");
29516 }
29517 arg2 = static_cast< wxEventType >(val2);
29518 }
29519 {
29520 PyThreadState* __tstate = wxPyBeginAllowThreads();
29521 result = (wxPyEvent *)new wxPyEvent(arg1,arg2);
29522 wxPyEndAllowThreads(__tstate);
29523 if (PyErr_Occurred()) SWIG_fail;
29524 }
29525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyEvent, SWIG_POINTER_NEW | 0 );
29526 return resultobj;
29527fail:
29528 return NULL;
d55e5bfc
RD
29529}
29530
29531
1bd55598
RD
29532SWIGINTERN PyObject *_wrap_delete_PyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29533 PyObject *resultobj = 0;
29534 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
29535 void *argp1 = 0 ;
29536 int res1 = 0 ;
29537 PyObject *swig_obj[1] ;
29538
29539 if (!args) SWIG_fail;
29540 swig_obj[0] = args;
29541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyEvent, SWIG_POINTER_DISOWN | 0 );
29542 if (!SWIG_IsOK(res1)) {
29543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyEvent" "', expected argument " "1"" of type '" "wxPyEvent *""'");
29544 }
29545 arg1 = reinterpret_cast< wxPyEvent * >(argp1);
29546 {
29547 PyThreadState* __tstate = wxPyBeginAllowThreads();
29548 delete arg1;
d55e5bfc 29549
1bd55598
RD
29550 wxPyEndAllowThreads(__tstate);
29551 if (PyErr_Occurred()) SWIG_fail;
29552 }
29553 resultobj = SWIG_Py_Void();
29554 return resultobj;
29555fail:
29556 return NULL;
29557}
29558
29559
29560SWIGINTERN PyObject *_wrap_PyEvent__SetSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29561 PyObject *resultobj = 0;
29562 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
29563 PyObject *arg2 = (PyObject *) 0 ;
29564 void *argp1 = 0 ;
29565 int res1 = 0 ;
29566 PyObject * obj0 = 0 ;
29567 PyObject * obj1 = 0 ;
29568 char * kwnames[] = {
29569 (char *) "self",(char *) "self", NULL
29570 };
29571
29572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent__SetSelf",kwnames,&obj0,&obj1)) SWIG_fail;
29573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyEvent, 0 | 0 );
29574 if (!SWIG_IsOK(res1)) {
29575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyEvent__SetSelf" "', expected argument " "1"" of type '" "wxPyEvent *""'");
29576 }
29577 arg1 = reinterpret_cast< wxPyEvent * >(argp1);
29578 arg2 = obj1;
29579 {
29580 PyThreadState* __tstate = wxPyBeginAllowThreads();
29581 (arg1)->SetSelf(arg2);
29582 wxPyEndAllowThreads(__tstate);
29583 if (PyErr_Occurred()) SWIG_fail;
29584 }
29585 resultobj = SWIG_Py_Void();
29586 return resultobj;
29587fail:
29588 return NULL;
d55e5bfc
RD
29589}
29590
29591
1bd55598
RD
29592SWIGINTERN PyObject *_wrap_PyEvent__GetSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29593 PyObject *resultobj = 0;
29594 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
29595 PyObject *result = 0 ;
29596 void *argp1 = 0 ;
29597 int res1 = 0 ;
29598 PyObject *swig_obj[1] ;
29599
29600 if (!args) SWIG_fail;
29601 swig_obj[0] = args;
29602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyEvent, 0 | 0 );
29603 if (!SWIG_IsOK(res1)) {
29604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyEvent__GetSelf" "', expected argument " "1"" of type '" "wxPyEvent *""'");
29605 }
29606 arg1 = reinterpret_cast< wxPyEvent * >(argp1);
29607 {
29608 PyThreadState* __tstate = wxPyBeginAllowThreads();
29609 result = (PyObject *)(arg1)->GetSelf();
29610 wxPyEndAllowThreads(__tstate);
29611 if (PyErr_Occurred()) SWIG_fail;
29612 }
29613 resultobj = result;
29614 return resultobj;
29615fail:
29616 return NULL;
d55e5bfc
RD
29617}
29618
29619
1bd55598
RD
29620SWIGINTERN PyObject *PyEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29621 PyObject *obj;
29622 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29623 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyEvent, SWIG_NewClientData(obj));
29624 return SWIG_Py_Void();
d55e5bfc
RD
29625}
29626
1bd55598
RD
29627SWIGINTERN PyObject *PyEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29628 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
29629}
29630
1bd55598
RD
29631SWIGINTERN PyObject *_wrap_new_PyCommandEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29632 PyObject *resultobj = 0;
29633 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
29634 int arg2 = (int) 0 ;
29635 wxPyCommandEvent *result = 0 ;
29636 int val1 ;
29637 int ecode1 = 0 ;
29638 int val2 ;
29639 int ecode2 = 0 ;
29640 PyObject * obj0 = 0 ;
29641 PyObject * obj1 = 0 ;
29642 char * kwnames[] = {
29643 (char *) "eventType",(char *) "id", NULL
29644 };
29645
29646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) SWIG_fail;
29647 if (obj0) {
29648 ecode1 = SWIG_AsVal_int(obj0, &val1);
29649 if (!SWIG_IsOK(ecode1)) {
29650 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyCommandEvent" "', expected argument " "1"" of type '" "wxEventType""'");
29651 }
29652 arg1 = static_cast< wxEventType >(val1);
29653 }
29654 if (obj1) {
29655 ecode2 = SWIG_AsVal_int(obj1, &val2);
29656 if (!SWIG_IsOK(ecode2)) {
29657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyCommandEvent" "', expected argument " "2"" of type '" "int""'");
29658 }
29659 arg2 = static_cast< int >(val2);
29660 }
29661 {
29662 PyThreadState* __tstate = wxPyBeginAllowThreads();
29663 result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2);
29664 wxPyEndAllowThreads(__tstate);
29665 if (PyErr_Occurred()) SWIG_fail;
29666 }
29667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_NEW | 0 );
29668 return resultobj;
29669fail:
29670 return NULL;
d55e5bfc
RD
29671}
29672
29673
1bd55598
RD
29674SWIGINTERN PyObject *_wrap_delete_PyCommandEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29675 PyObject *resultobj = 0;
29676 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
29677 void *argp1 = 0 ;
29678 int res1 = 0 ;
29679 PyObject *swig_obj[1] ;
29680
29681 if (!args) SWIG_fail;
29682 swig_obj[0] = args;
29683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_DISOWN | 0 );
29684 if (!SWIG_IsOK(res1)) {
29685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyCommandEvent" "', expected argument " "1"" of type '" "wxPyCommandEvent *""'");
29686 }
29687 arg1 = reinterpret_cast< wxPyCommandEvent * >(argp1);
29688 {
29689 PyThreadState* __tstate = wxPyBeginAllowThreads();
29690 delete arg1;
d55e5bfc 29691
1bd55598
RD
29692 wxPyEndAllowThreads(__tstate);
29693 if (PyErr_Occurred()) SWIG_fail;
29694 }
29695 resultobj = SWIG_Py_Void();
29696 return resultobj;
29697fail:
29698 return NULL;
29699}
29700
29701
29702SWIGINTERN PyObject *_wrap_PyCommandEvent__SetSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29703 PyObject *resultobj = 0;
29704 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
29705 PyObject *arg2 = (PyObject *) 0 ;
29706 void *argp1 = 0 ;
29707 int res1 = 0 ;
29708 PyObject * obj0 = 0 ;
29709 PyObject * obj1 = 0 ;
29710 char * kwnames[] = {
29711 (char *) "self",(char *) "self", NULL
29712 };
29713
29714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent__SetSelf",kwnames,&obj0,&obj1)) SWIG_fail;
29715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyCommandEvent, 0 | 0 );
29716 if (!SWIG_IsOK(res1)) {
29717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyCommandEvent__SetSelf" "', expected argument " "1"" of type '" "wxPyCommandEvent *""'");
29718 }
29719 arg1 = reinterpret_cast< wxPyCommandEvent * >(argp1);
29720 arg2 = obj1;
29721 {
29722 PyThreadState* __tstate = wxPyBeginAllowThreads();
29723 (arg1)->SetSelf(arg2);
29724 wxPyEndAllowThreads(__tstate);
29725 if (PyErr_Occurred()) SWIG_fail;
29726 }
29727 resultobj = SWIG_Py_Void();
29728 return resultobj;
29729fail:
29730 return NULL;
d55e5bfc
RD
29731}
29732
29733
1bd55598
RD
29734SWIGINTERN PyObject *_wrap_PyCommandEvent__GetSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29735 PyObject *resultobj = 0;
29736 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
29737 PyObject *result = 0 ;
29738 void *argp1 = 0 ;
29739 int res1 = 0 ;
29740 PyObject *swig_obj[1] ;
29741
29742 if (!args) SWIG_fail;
29743 swig_obj[0] = args;
29744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyCommandEvent, 0 | 0 );
29745 if (!SWIG_IsOK(res1)) {
29746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyCommandEvent__GetSelf" "', expected argument " "1"" of type '" "wxPyCommandEvent *""'");
29747 }
29748 arg1 = reinterpret_cast< wxPyCommandEvent * >(argp1);
29749 {
29750 PyThreadState* __tstate = wxPyBeginAllowThreads();
29751 result = (PyObject *)(arg1)->GetSelf();
29752 wxPyEndAllowThreads(__tstate);
29753 if (PyErr_Occurred()) SWIG_fail;
29754 }
29755 resultobj = result;
29756 return resultobj;
29757fail:
29758 return NULL;
29759}
29760
29761
29762SWIGINTERN PyObject *PyCommandEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29763 PyObject *obj;
29764 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29765 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyCommandEvent, SWIG_NewClientData(obj));
29766 return SWIG_Py_Void();
29767}
29768
29769SWIGINTERN PyObject *PyCommandEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29770 return SWIG_Python_InitShadowInstance(args);
29771}
29772
29773SWIGINTERN PyObject *_wrap_new_DateEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29774 PyObject *resultobj = 0;
29775 wxWindow *arg1 = (wxWindow *) 0 ;
29776 wxDateTime *arg2 = 0 ;
29777 wxEventType arg3 ;
29778 wxDateEvent *result = 0 ;
29779 void *argp1 = 0 ;
29780 int res1 = 0 ;
29781 void *argp2 = 0 ;
29782 int res2 = 0 ;
29783 int val3 ;
29784 int ecode3 = 0 ;
29785 PyObject * obj0 = 0 ;
29786 PyObject * obj1 = 0 ;
29787 PyObject * obj2 = 0 ;
29788 char * kwnames[] = {
29789 (char *) "win",(char *) "dt",(char *) "type", NULL
29790 };
29791
29792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_DateEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
29794 if (!SWIG_IsOK(res1)) {
29795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DateEvent" "', expected argument " "1"" of type '" "wxWindow *""'");
29796 }
29797 arg1 = reinterpret_cast< wxWindow * >(argp1);
29798 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
29799 if (!SWIG_IsOK(res2)) {
29800 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateEvent" "', expected argument " "2"" of type '" "wxDateTime const &""'");
29801 }
29802 if (!argp2) {
29803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateEvent" "', expected argument " "2"" of type '" "wxDateTime const &""'");
29804 }
29805 arg2 = reinterpret_cast< wxDateTime * >(argp2);
29806 ecode3 = SWIG_AsVal_int(obj2, &val3);
29807 if (!SWIG_IsOK(ecode3)) {
29808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateEvent" "', expected argument " "3"" of type '" "wxEventType""'");
29809 }
29810 arg3 = static_cast< wxEventType >(val3);
29811 {
29812 PyThreadState* __tstate = wxPyBeginAllowThreads();
29813 result = (wxDateEvent *)new wxDateEvent(arg1,(wxDateTime const &)*arg2,arg3);
29814 wxPyEndAllowThreads(__tstate);
29815 if (PyErr_Occurred()) SWIG_fail;
29816 }
29817 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateEvent, SWIG_POINTER_NEW | 0 );
29818 return resultobj;
29819fail:
29820 return NULL;
d55e5bfc
RD
29821}
29822
29823
1bd55598
RD
29824SWIGINTERN PyObject *_wrap_DateEvent_GetDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29825 PyObject *resultobj = 0;
29826 wxDateEvent *arg1 = (wxDateEvent *) 0 ;
29827 wxDateTime *result = 0 ;
29828 void *argp1 = 0 ;
29829 int res1 = 0 ;
29830 PyObject *swig_obj[1] ;
29831
29832 if (!args) SWIG_fail;
29833 swig_obj[0] = args;
29834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateEvent, 0 | 0 );
29835 if (!SWIG_IsOK(res1)) {
29836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateEvent_GetDate" "', expected argument " "1"" of type '" "wxDateEvent const *""'");
29837 }
29838 arg1 = reinterpret_cast< wxDateEvent * >(argp1);
29839 {
29840 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 29841 {
1bd55598
RD
29842 wxDateTime const &_result_ref = ((wxDateEvent const *)arg1)->GetDate();
29843 result = (wxDateTime *) &_result_ref;
36ed4f51 29844 }
1bd55598
RD
29845 wxPyEndAllowThreads(__tstate);
29846 if (PyErr_Occurred()) SWIG_fail;
29847 }
29848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
29849 return resultobj;
29850fail:
29851 return NULL;
29852}
29853
29854
29855SWIGINTERN PyObject *_wrap_DateEvent_SetDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29856 PyObject *resultobj = 0;
29857 wxDateEvent *arg1 = (wxDateEvent *) 0 ;
29858 wxDateTime *arg2 = 0 ;
29859 void *argp1 = 0 ;
29860 int res1 = 0 ;
29861 void *argp2 = 0 ;
29862 int res2 = 0 ;
29863 PyObject * obj0 = 0 ;
29864 PyObject * obj1 = 0 ;
29865 char * kwnames[] = {
29866 (char *) "self",(char *) "date", NULL
29867 };
29868
29869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateEvent_SetDate",kwnames,&obj0,&obj1)) SWIG_fail;
29870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateEvent, 0 | 0 );
29871 if (!SWIG_IsOK(res1)) {
29872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateEvent_SetDate" "', expected argument " "1"" of type '" "wxDateEvent *""'");
29873 }
29874 arg1 = reinterpret_cast< wxDateEvent * >(argp1);
29875 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
29876 if (!SWIG_IsOK(res2)) {
29877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateEvent_SetDate" "', expected argument " "2"" of type '" "wxDateTime const &""'");
29878 }
29879 if (!argp2) {
29880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateEvent_SetDate" "', expected argument " "2"" of type '" "wxDateTime const &""'");
29881 }
29882 arg2 = reinterpret_cast< wxDateTime * >(argp2);
29883 {
29884 PyThreadState* __tstate = wxPyBeginAllowThreads();
29885 (arg1)->SetDate((wxDateTime const &)*arg2);
29886 wxPyEndAllowThreads(__tstate);
29887 if (PyErr_Occurred()) SWIG_fail;
29888 }
29889 resultobj = SWIG_Py_Void();
29890 return resultobj;
29891fail:
29892 return NULL;
d55e5bfc
RD
29893}
29894
29895
1bd55598
RD
29896SWIGINTERN PyObject *DateEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29897 PyObject *obj;
29898 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29899 SWIG_TypeNewClientData(SWIGTYPE_p_wxDateEvent, SWIG_NewClientData(obj));
29900 return SWIG_Py_Void();
d55e5bfc
RD
29901}
29902
1bd55598
RD
29903SWIGINTERN PyObject *DateEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29904 return SWIG_Python_InitShadowInstance(args);
29905}
d55e5bfc 29906
1bd55598
RD
29907SWIGINTERN PyObject *_wrap_new_PyApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29908 PyObject *resultobj = 0;
29909 wxPyApp *result = 0 ;
29910
29911 if (!SWIG_Python_UnpackTuple(args,"new_PyApp",0,0,0)) SWIG_fail;
29912 {
29913 PyThreadState* __tstate = wxPyBeginAllowThreads();
29914 result = (wxPyApp *)new_wxPyApp();
29915 wxPyEndAllowThreads(__tstate);
29916 if (PyErr_Occurred()) SWIG_fail;
29917 }
29918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyApp, SWIG_POINTER_NEW | 0 );
29919 return resultobj;
29920fail:
29921 return NULL;
d55e5bfc
RD
29922}
29923
29924
1bd55598
RD
29925SWIGINTERN PyObject *_wrap_delete_PyApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29926 PyObject *resultobj = 0;
29927 wxPyApp *arg1 = (wxPyApp *) 0 ;
29928 void *argp1 = 0 ;
29929 int res1 = 0 ;
29930 PyObject *swig_obj[1] ;
29931
29932 if (!args) SWIG_fail;
29933 swig_obj[0] = args;
29934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, SWIG_POINTER_DISOWN | 0 );
29935 if (!SWIG_IsOK(res1)) {
29936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyApp" "', expected argument " "1"" of type '" "wxPyApp *""'");
29937 }
29938 arg1 = reinterpret_cast< wxPyApp * >(argp1);
29939 {
29940 PyThreadState* __tstate = wxPyBeginAllowThreads();
29941 delete arg1;
d55e5bfc 29942
1bd55598
RD
29943 wxPyEndAllowThreads(__tstate);
29944 if (PyErr_Occurred()) SWIG_fail;
29945 }
29946 resultobj = SWIG_Py_Void();
29947 return resultobj;
29948fail:
29949 return NULL;
29950}
29951
29952
29953SWIGINTERN PyObject *_wrap_PyApp__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29954 PyObject *resultobj = 0;
29955 wxPyApp *arg1 = (wxPyApp *) 0 ;
29956 PyObject *arg2 = (PyObject *) 0 ;
29957 PyObject *arg3 = (PyObject *) 0 ;
c25f90f6 29958 bool arg4 = (bool) false ;
1bd55598
RD
29959 void *argp1 = 0 ;
29960 int res1 = 0 ;
29961 bool val4 ;
29962 int ecode4 = 0 ;
29963 PyObject * obj0 = 0 ;
29964 PyObject * obj1 = 0 ;
29965 PyObject * obj2 = 0 ;
29966 PyObject * obj3 = 0 ;
29967 char * kwnames[] = {
29968 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
29969 };
29970
c25f90f6 29971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
29972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
29973 if (!SWIG_IsOK(res1)) {
29974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyApp *""'");
29975 }
29976 arg1 = reinterpret_cast< wxPyApp * >(argp1);
29977 arg2 = obj1;
29978 arg3 = obj2;
c25f90f6
RD
29979 if (obj3) {
29980 ecode4 = SWIG_AsVal_bool(obj3, &val4);
29981 if (!SWIG_IsOK(ecode4)) {
29982 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyApp__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
29983 }
29984 arg4 = static_cast< bool >(val4);
29985 }
1bd55598
RD
29986 {
29987 PyThreadState* __tstate = wxPyBeginAllowThreads();
29988 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
29989 wxPyEndAllowThreads(__tstate);
29990 if (PyErr_Occurred()) SWIG_fail;
29991 }
29992 resultobj = SWIG_Py_Void();
29993 return resultobj;
29994fail:
29995 return NULL;
d55e5bfc
RD
29996}
29997
29998
1bd55598
RD
29999SWIGINTERN PyObject *_wrap_PyApp_GetAppName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30000 PyObject *resultobj = 0;
30001 wxPyApp *arg1 = (wxPyApp *) 0 ;
30002 wxString result;
30003 void *argp1 = 0 ;
30004 int res1 = 0 ;
30005 PyObject *swig_obj[1] ;
30006
30007 if (!args) SWIG_fail;
30008 swig_obj[0] = args;
30009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30010 if (!SWIG_IsOK(res1)) {
30011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetAppName" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30012 }
30013 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30014 {
30015 PyThreadState* __tstate = wxPyBeginAllowThreads();
30016 result = ((wxPyApp const *)arg1)->GetAppName();
30017 wxPyEndAllowThreads(__tstate);
30018 if (PyErr_Occurred()) SWIG_fail;
30019 }
30020 {
30021#if wxUSE_UNICODE
30022 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30023#else
30024 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30025#endif
30026 }
30027 return resultobj;
30028fail:
30029 return NULL;
30030}
30031
30032
30033SWIGINTERN PyObject *_wrap_PyApp_SetAppName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30034 PyObject *resultobj = 0;
30035 wxPyApp *arg1 = (wxPyApp *) 0 ;
30036 wxString *arg2 = 0 ;
30037 void *argp1 = 0 ;
30038 int res1 = 0 ;
30039 bool temp2 = false ;
30040 PyObject * obj0 = 0 ;
30041 PyObject * obj1 = 0 ;
30042 char * kwnames[] = {
30043 (char *) "self",(char *) "name", NULL
30044 };
30045
30046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) SWIG_fail;
30047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30048 if (!SWIG_IsOK(res1)) {
30049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetAppName" "', expected argument " "1"" of type '" "wxPyApp *""'");
30050 }
30051 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30052 {
30053 arg2 = wxString_in_helper(obj1);
30054 if (arg2 == NULL) SWIG_fail;
30055 temp2 = true;
30056 }
30057 {
30058 PyThreadState* __tstate = wxPyBeginAllowThreads();
30059 (arg1)->SetAppName((wxString const &)*arg2);
30060 wxPyEndAllowThreads(__tstate);
30061 if (PyErr_Occurred()) SWIG_fail;
30062 }
30063 resultobj = SWIG_Py_Void();
30064 {
30065 if (temp2)
30066 delete arg2;
30067 }
30068 return resultobj;
30069fail:
30070 {
30071 if (temp2)
30072 delete arg2;
30073 }
30074 return NULL;
d55e5bfc
RD
30075}
30076
30077
1bd55598
RD
30078SWIGINTERN PyObject *_wrap_PyApp_GetClassName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30079 PyObject *resultobj = 0;
30080 wxPyApp *arg1 = (wxPyApp *) 0 ;
30081 wxString result;
30082 void *argp1 = 0 ;
30083 int res1 = 0 ;
30084 PyObject *swig_obj[1] ;
30085
30086 if (!args) SWIG_fail;
30087 swig_obj[0] = args;
30088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30089 if (!SWIG_IsOK(res1)) {
30090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetClassName" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30091 }
30092 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30093 {
30094 PyThreadState* __tstate = wxPyBeginAllowThreads();
30095 result = ((wxPyApp const *)arg1)->GetClassName();
30096 wxPyEndAllowThreads(__tstate);
30097 if (PyErr_Occurred()) SWIG_fail;
30098 }
30099 {
30100#if wxUSE_UNICODE
30101 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30102#else
30103 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30104#endif
30105 }
30106 return resultobj;
30107fail:
30108 return NULL;
30109}
30110
30111
30112SWIGINTERN PyObject *_wrap_PyApp_SetClassName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30113 PyObject *resultobj = 0;
30114 wxPyApp *arg1 = (wxPyApp *) 0 ;
30115 wxString *arg2 = 0 ;
30116 void *argp1 = 0 ;
30117 int res1 = 0 ;
30118 bool temp2 = false ;
30119 PyObject * obj0 = 0 ;
30120 PyObject * obj1 = 0 ;
30121 char * kwnames[] = {
30122 (char *) "self",(char *) "name", NULL
30123 };
30124
30125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) SWIG_fail;
30126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30127 if (!SWIG_IsOK(res1)) {
30128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetClassName" "', expected argument " "1"" of type '" "wxPyApp *""'");
30129 }
30130 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30131 {
30132 arg2 = wxString_in_helper(obj1);
30133 if (arg2 == NULL) SWIG_fail;
30134 temp2 = true;
30135 }
30136 {
30137 PyThreadState* __tstate = wxPyBeginAllowThreads();
30138 (arg1)->SetClassName((wxString const &)*arg2);
30139 wxPyEndAllowThreads(__tstate);
30140 if (PyErr_Occurred()) SWIG_fail;
30141 }
30142 resultobj = SWIG_Py_Void();
30143 {
30144 if (temp2)
30145 delete arg2;
30146 }
30147 return resultobj;
30148fail:
30149 {
30150 if (temp2)
30151 delete arg2;
30152 }
30153 return NULL;
d55e5bfc
RD
30154}
30155
30156
1bd55598
RD
30157SWIGINTERN PyObject *_wrap_PyApp_GetVendorName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30158 PyObject *resultobj = 0;
30159 wxPyApp *arg1 = (wxPyApp *) 0 ;
30160 wxString *result = 0 ;
30161 void *argp1 = 0 ;
30162 int res1 = 0 ;
30163 PyObject *swig_obj[1] ;
30164
30165 if (!args) SWIG_fail;
30166 swig_obj[0] = args;
30167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30168 if (!SWIG_IsOK(res1)) {
30169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetVendorName" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30170 }
30171 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30172 {
30173 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 30174 {
1bd55598
RD
30175 wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName();
30176 result = (wxString *) &_result_ref;
36ed4f51 30177 }
1bd55598
RD
30178 wxPyEndAllowThreads(__tstate);
30179 if (PyErr_Occurred()) SWIG_fail;
30180 }
30181 {
30182#if wxUSE_UNICODE
30183 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30184#else
30185 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30186#endif
30187 }
30188 return resultobj;
30189fail:
30190 return NULL;
30191}
30192
30193
30194SWIGINTERN PyObject *_wrap_PyApp_SetVendorName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30195 PyObject *resultobj = 0;
30196 wxPyApp *arg1 = (wxPyApp *) 0 ;
30197 wxString *arg2 = 0 ;
30198 void *argp1 = 0 ;
30199 int res1 = 0 ;
30200 bool temp2 = false ;
30201 PyObject * obj0 = 0 ;
30202 PyObject * obj1 = 0 ;
30203 char * kwnames[] = {
30204 (char *) "self",(char *) "name", NULL
30205 };
30206
30207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) SWIG_fail;
30208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30209 if (!SWIG_IsOK(res1)) {
30210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetVendorName" "', expected argument " "1"" of type '" "wxPyApp *""'");
30211 }
30212 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30213 {
30214 arg2 = wxString_in_helper(obj1);
30215 if (arg2 == NULL) SWIG_fail;
30216 temp2 = true;
30217 }
30218 {
30219 PyThreadState* __tstate = wxPyBeginAllowThreads();
30220 (arg1)->SetVendorName((wxString const &)*arg2);
30221 wxPyEndAllowThreads(__tstate);
30222 if (PyErr_Occurred()) SWIG_fail;
30223 }
30224 resultobj = SWIG_Py_Void();
30225 {
30226 if (temp2)
30227 delete arg2;
30228 }
30229 return resultobj;
30230fail:
30231 {
30232 if (temp2)
30233 delete arg2;
30234 }
30235 return NULL;
30236}
d55e5bfc
RD
30237
30238
1bd55598
RD
30239SWIGINTERN PyObject *_wrap_PyApp_GetTraits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30240 PyObject *resultobj = 0;
30241 wxPyApp *arg1 = (wxPyApp *) 0 ;
30242 wxAppTraits *result = 0 ;
30243 void *argp1 = 0 ;
30244 int res1 = 0 ;
30245 PyObject *swig_obj[1] ;
30246
30247 if (!args) SWIG_fail;
30248 swig_obj[0] = args;
30249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30250 if (!SWIG_IsOK(res1)) {
30251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetTraits" "', expected argument " "1"" of type '" "wxPyApp *""'");
30252 }
30253 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30254 {
30255 PyThreadState* __tstate = wxPyBeginAllowThreads();
30256 result = (wxAppTraits *)(arg1)->GetTraits();
30257 wxPyEndAllowThreads(__tstate);
30258 if (PyErr_Occurred()) SWIG_fail;
30259 }
30260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAppTraits, 0 | 0 );
30261 return resultobj;
30262fail:
30263 return NULL;
d55e5bfc
RD
30264}
30265
30266
1bd55598
RD
30267SWIGINTERN PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30268 PyObject *resultobj = 0;
30269 wxPyApp *arg1 = (wxPyApp *) 0 ;
30270 void *argp1 = 0 ;
30271 int res1 = 0 ;
30272 PyObject *swig_obj[1] ;
30273
30274 if (!args) SWIG_fail;
30275 swig_obj[0] = args;
30276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30277 if (!SWIG_IsOK(res1)) {
30278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_ProcessPendingEvents" "', expected argument " "1"" of type '" "wxPyApp *""'");
30279 }
30280 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30281 {
30282 PyThreadState* __tstate = wxPyBeginAllowThreads();
30283 (arg1)->ProcessPendingEvents();
30284 wxPyEndAllowThreads(__tstate);
30285 if (PyErr_Occurred()) SWIG_fail;
30286 }
30287 resultobj = SWIG_Py_Void();
30288 return resultobj;
30289fail:
30290 return NULL;
30291}
30292
30293
30294SWIGINTERN PyObject *_wrap_PyApp_Yield(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30295 PyObject *resultobj = 0;
30296 wxPyApp *arg1 = (wxPyApp *) 0 ;
30297 bool arg2 = (bool) false ;
30298 bool result;
30299 void *argp1 = 0 ;
30300 int res1 = 0 ;
30301 bool val2 ;
30302 int ecode2 = 0 ;
30303 PyObject * obj0 = 0 ;
30304 PyObject * obj1 = 0 ;
30305 char * kwnames[] = {
30306 (char *) "self",(char *) "onlyIfNeeded", NULL
30307 };
30308
30309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) SWIG_fail;
30310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30311 if (!SWIG_IsOK(res1)) {
30312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_Yield" "', expected argument " "1"" of type '" "wxPyApp *""'");
30313 }
30314 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30315 if (obj1) {
30316 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30317 if (!SWIG_IsOK(ecode2)) {
30318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyApp_Yield" "', expected argument " "2"" of type '" "bool""'");
30319 }
30320 arg2 = static_cast< bool >(val2);
30321 }
30322 {
30323 PyThreadState* __tstate = wxPyBeginAllowThreads();
30324 result = (bool)(arg1)->Yield(arg2);
30325 wxPyEndAllowThreads(__tstate);
30326 if (PyErr_Occurred()) SWIG_fail;
30327 }
30328 {
30329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30330 }
30331 return resultobj;
30332fail:
30333 return NULL;
d55e5bfc
RD
30334}
30335
30336
1bd55598
RD
30337SWIGINTERN PyObject *_wrap_PyApp_WakeUpIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30338 PyObject *resultobj = 0;
30339 wxPyApp *arg1 = (wxPyApp *) 0 ;
30340 void *argp1 = 0 ;
30341 int res1 = 0 ;
30342 PyObject *swig_obj[1] ;
30343
30344 if (!args) SWIG_fail;
30345 swig_obj[0] = args;
30346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30347 if (!SWIG_IsOK(res1)) {
30348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_WakeUpIdle" "', expected argument " "1"" of type '" "wxPyApp *""'");
30349 }
30350 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30351 {
30352 PyThreadState* __tstate = wxPyBeginAllowThreads();
30353 (arg1)->WakeUpIdle();
30354 wxPyEndAllowThreads(__tstate);
30355 if (PyErr_Occurred()) SWIG_fail;
30356 }
30357 resultobj = SWIG_Py_Void();
30358 return resultobj;
30359fail:
30360 return NULL;
d55e5bfc
RD
30361}
30362
30363
1bd55598
RD
30364SWIGINTERN PyObject *_wrap_PyApp_IsMainLoopRunning(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30365 PyObject *resultobj = 0;
30366 bool result;
30367
30368 if (!SWIG_Python_UnpackTuple(args,"PyApp_IsMainLoopRunning",0,0,0)) SWIG_fail;
30369 {
30370 PyThreadState* __tstate = wxPyBeginAllowThreads();
30371 result = (bool)wxPyApp::IsMainLoopRunning();
30372 wxPyEndAllowThreads(__tstate);
30373 if (PyErr_Occurred()) SWIG_fail;
30374 }
30375 {
30376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30377 }
30378 return resultobj;
30379fail:
30380 return NULL;
d55e5bfc
RD
30381}
30382
30383
1bd55598
RD
30384SWIGINTERN PyObject *_wrap_PyApp_MainLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30385 PyObject *resultobj = 0;
30386 wxPyApp *arg1 = (wxPyApp *) 0 ;
30387 int result;
30388 void *argp1 = 0 ;
30389 int res1 = 0 ;
30390 PyObject *swig_obj[1] ;
30391
30392 if (!args) SWIG_fail;
30393 swig_obj[0] = args;
30394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30395 if (!SWIG_IsOK(res1)) {
30396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_MainLoop" "', expected argument " "1"" of type '" "wxPyApp *""'");
30397 }
30398 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30399 {
30400 PyThreadState* __tstate = wxPyBeginAllowThreads();
30401 result = (int)(arg1)->MainLoop();
30402 wxPyEndAllowThreads(__tstate);
30403 if (PyErr_Occurred()) SWIG_fail;
30404 }
30405 resultobj = SWIG_From_int(static_cast< int >(result));
30406 return resultobj;
30407fail:
30408 return NULL;
d55e5bfc
RD
30409}
30410
30411
1bd55598
RD
30412SWIGINTERN PyObject *_wrap_PyApp_Exit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30413 PyObject *resultobj = 0;
30414 wxPyApp *arg1 = (wxPyApp *) 0 ;
30415 void *argp1 = 0 ;
30416 int res1 = 0 ;
30417 PyObject *swig_obj[1] ;
30418
30419 if (!args) SWIG_fail;
30420 swig_obj[0] = args;
30421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30422 if (!SWIG_IsOK(res1)) {
30423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_Exit" "', expected argument " "1"" of type '" "wxPyApp *""'");
30424 }
30425 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30426 {
30427 PyThreadState* __tstate = wxPyBeginAllowThreads();
30428 (arg1)->Exit();
30429 wxPyEndAllowThreads(__tstate);
30430 if (PyErr_Occurred()) SWIG_fail;
30431 }
30432 resultobj = SWIG_Py_Void();
30433 return resultobj;
30434fail:
30435 return NULL;
d55e5bfc
RD
30436}
30437
30438
ac5d357a
RD
30439SWIGINTERN PyObject *_wrap_PyApp_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30440 PyObject *resultobj = 0;
30441 wxPyApp *arg1 = (wxPyApp *) 0 ;
30442 wxLayoutDirection result;
30443 void *argp1 = 0 ;
30444 int res1 = 0 ;
30445 PyObject *swig_obj[1] ;
30446
30447 if (!args) SWIG_fail;
30448 swig_obj[0] = args;
30449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30450 if (!SWIG_IsOK(res1)) {
30451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetLayoutDirection" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30452 }
30453 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30454 {
30455 PyThreadState* __tstate = wxPyBeginAllowThreads();
994453b8 30456 result = (wxLayoutDirection)((wxPyApp const *)arg1)->GetLayoutDirection();
ac5d357a
RD
30457 wxPyEndAllowThreads(__tstate);
30458 if (PyErr_Occurred()) SWIG_fail;
30459 }
994453b8 30460 resultobj = SWIG_From_int(static_cast< int >(result));
ac5d357a
RD
30461 return resultobj;
30462fail:
30463 return NULL;
30464}
30465
30466
1bd55598
RD
30467SWIGINTERN PyObject *_wrap_PyApp_ExitMainLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30468 PyObject *resultobj = 0;
30469 wxPyApp *arg1 = (wxPyApp *) 0 ;
30470 void *argp1 = 0 ;
30471 int res1 = 0 ;
30472 PyObject *swig_obj[1] ;
30473
30474 if (!args) SWIG_fail;
30475 swig_obj[0] = args;
30476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30477 if (!SWIG_IsOK(res1)) {
30478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_ExitMainLoop" "', expected argument " "1"" of type '" "wxPyApp *""'");
30479 }
30480 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30481 {
30482 PyThreadState* __tstate = wxPyBeginAllowThreads();
30483 (arg1)->ExitMainLoop();
30484 wxPyEndAllowThreads(__tstate);
30485 if (PyErr_Occurred()) SWIG_fail;
30486 }
30487 resultobj = SWIG_Py_Void();
30488 return resultobj;
30489fail:
30490 return NULL;
d55e5bfc
RD
30491}
30492
30493
1bd55598
RD
30494SWIGINTERN PyObject *_wrap_PyApp_Pending(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30495 PyObject *resultobj = 0;
30496 wxPyApp *arg1 = (wxPyApp *) 0 ;
30497 bool result;
30498 void *argp1 = 0 ;
30499 int res1 = 0 ;
30500 PyObject *swig_obj[1] ;
30501
30502 if (!args) SWIG_fail;
30503 swig_obj[0] = args;
30504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30505 if (!SWIG_IsOK(res1)) {
30506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_Pending" "', expected argument " "1"" of type '" "wxPyApp *""'");
30507 }
30508 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30509 {
30510 PyThreadState* __tstate = wxPyBeginAllowThreads();
30511 result = (bool)(arg1)->Pending();
30512 wxPyEndAllowThreads(__tstate);
30513 if (PyErr_Occurred()) SWIG_fail;
30514 }
30515 {
30516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30517 }
30518 return resultobj;
30519fail:
30520 return NULL;
d55e5bfc
RD
30521}
30522
30523
1bd55598
RD
30524SWIGINTERN PyObject *_wrap_PyApp_Dispatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30525 PyObject *resultobj = 0;
30526 wxPyApp *arg1 = (wxPyApp *) 0 ;
30527 bool result;
30528 void *argp1 = 0 ;
30529 int res1 = 0 ;
30530 PyObject *swig_obj[1] ;
30531
30532 if (!args) SWIG_fail;
30533 swig_obj[0] = args;
30534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30535 if (!SWIG_IsOK(res1)) {
30536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_Dispatch" "', expected argument " "1"" of type '" "wxPyApp *""'");
30537 }
30538 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30539 {
30540 PyThreadState* __tstate = wxPyBeginAllowThreads();
30541 result = (bool)(arg1)->Dispatch();
30542 wxPyEndAllowThreads(__tstate);
30543 if (PyErr_Occurred()) SWIG_fail;
30544 }
30545 {
30546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30547 }
30548 return resultobj;
30549fail:
30550 return NULL;
d55e5bfc
RD
30551}
30552
30553
1bd55598
RD
30554SWIGINTERN PyObject *_wrap_PyApp_ProcessIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30555 PyObject *resultobj = 0;
30556 wxPyApp *arg1 = (wxPyApp *) 0 ;
30557 bool result;
30558 void *argp1 = 0 ;
30559 int res1 = 0 ;
30560 PyObject *swig_obj[1] ;
30561
30562 if (!args) SWIG_fail;
30563 swig_obj[0] = args;
30564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30565 if (!SWIG_IsOK(res1)) {
30566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_ProcessIdle" "', expected argument " "1"" of type '" "wxPyApp *""'");
30567 }
30568 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30569 {
30570 PyThreadState* __tstate = wxPyBeginAllowThreads();
30571 result = (bool)(arg1)->ProcessIdle();
30572 wxPyEndAllowThreads(__tstate);
30573 if (PyErr_Occurred()) SWIG_fail;
30574 }
30575 {
30576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30577 }
30578 return resultobj;
30579fail:
30580 return NULL;
30581}
30582
30583
30584SWIGINTERN PyObject *_wrap_PyApp_SendIdleEvents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30585 PyObject *resultobj = 0;
30586 wxPyApp *arg1 = (wxPyApp *) 0 ;
30587 wxWindow *arg2 = (wxWindow *) 0 ;
30588 wxIdleEvent *arg3 = 0 ;
30589 bool result;
30590 void *argp1 = 0 ;
30591 int res1 = 0 ;
30592 void *argp2 = 0 ;
30593 int res2 = 0 ;
30594 void *argp3 = 0 ;
30595 int res3 = 0 ;
30596 PyObject * obj0 = 0 ;
30597 PyObject * obj1 = 0 ;
30598 PyObject * obj2 = 0 ;
30599 char * kwnames[] = {
30600 (char *) "self",(char *) "win",(char *) "event", NULL
30601 };
30602
30603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30605 if (!SWIG_IsOK(res1)) {
30606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SendIdleEvents" "', expected argument " "1"" of type '" "wxPyApp *""'");
30607 }
30608 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30609 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30610 if (!SWIG_IsOK(res2)) {
30611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyApp_SendIdleEvents" "', expected argument " "2"" of type '" "wxWindow *""'");
30612 }
30613 arg2 = reinterpret_cast< wxWindow * >(argp2);
30614 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxIdleEvent, 0 );
30615 if (!SWIG_IsOK(res3)) {
30616 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyApp_SendIdleEvents" "', expected argument " "3"" of type '" "wxIdleEvent &""'");
30617 }
30618 if (!argp3) {
30619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyApp_SendIdleEvents" "', expected argument " "3"" of type '" "wxIdleEvent &""'");
30620 }
30621 arg3 = reinterpret_cast< wxIdleEvent * >(argp3);
30622 {
30623 PyThreadState* __tstate = wxPyBeginAllowThreads();
30624 result = (bool)(arg1)->SendIdleEvents(arg2,*arg3);
30625 wxPyEndAllowThreads(__tstate);
30626 if (PyErr_Occurred()) SWIG_fail;
30627 }
30628 {
30629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30630 }
30631 return resultobj;
30632fail:
30633 return NULL;
d55e5bfc
RD
30634}
30635
30636
1bd55598
RD
30637SWIGINTERN PyObject *_wrap_PyApp_IsActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30638 PyObject *resultobj = 0;
30639 wxPyApp *arg1 = (wxPyApp *) 0 ;
30640 bool result;
30641 void *argp1 = 0 ;
30642 int res1 = 0 ;
30643 PyObject *swig_obj[1] ;
30644
30645 if (!args) SWIG_fail;
30646 swig_obj[0] = args;
30647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30648 if (!SWIG_IsOK(res1)) {
30649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_IsActive" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30650 }
30651 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30652 {
30653 PyThreadState* __tstate = wxPyBeginAllowThreads();
30654 result = (bool)((wxPyApp const *)arg1)->IsActive();
30655 wxPyEndAllowThreads(__tstate);
30656 if (PyErr_Occurred()) SWIG_fail;
30657 }
30658 {
30659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30660 }
30661 return resultobj;
30662fail:
30663 return NULL;
30664}
30665
30666
30667SWIGINTERN PyObject *_wrap_PyApp_SetTopWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30668 PyObject *resultobj = 0;
30669 wxPyApp *arg1 = (wxPyApp *) 0 ;
30670 wxWindow *arg2 = (wxWindow *) 0 ;
30671 void *argp1 = 0 ;
30672 int res1 = 0 ;
30673 void *argp2 = 0 ;
30674 int res2 = 0 ;
30675 PyObject * obj0 = 0 ;
30676 PyObject * obj1 = 0 ;
30677 char * kwnames[] = {
30678 (char *) "self",(char *) "win", NULL
30679 };
30680
30681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30683 if (!SWIG_IsOK(res1)) {
30684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetTopWindow" "', expected argument " "1"" of type '" "wxPyApp *""'");
30685 }
30686 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30687 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30688 if (!SWIG_IsOK(res2)) {
30689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyApp_SetTopWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
30690 }
30691 arg2 = reinterpret_cast< wxWindow * >(argp2);
30692 {
30693 PyThreadState* __tstate = wxPyBeginAllowThreads();
30694 (arg1)->SetTopWindow(arg2);
30695 wxPyEndAllowThreads(__tstate);
30696 if (PyErr_Occurred()) SWIG_fail;
30697 }
30698 resultobj = SWIG_Py_Void();
30699 return resultobj;
30700fail:
30701 return NULL;
d55e5bfc
RD
30702}
30703
30704
1bd55598
RD
30705SWIGINTERN PyObject *_wrap_PyApp_GetTopWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30706 PyObject *resultobj = 0;
30707 wxPyApp *arg1 = (wxPyApp *) 0 ;
30708 wxWindow *result = 0 ;
30709 void *argp1 = 0 ;
30710 int res1 = 0 ;
30711 PyObject *swig_obj[1] ;
30712
30713 if (!args) SWIG_fail;
30714 swig_obj[0] = args;
30715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30716 if (!SWIG_IsOK(res1)) {
30717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetTopWindow" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30718 }
30719 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30720 {
30721 PyThreadState* __tstate = wxPyBeginAllowThreads();
30722 result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow();
30723 wxPyEndAllowThreads(__tstate);
30724 if (PyErr_Occurred()) SWIG_fail;
30725 }
30726 {
30727 resultobj = wxPyMake_wxObject(result, (bool)0);
30728 }
30729 return resultobj;
30730fail:
30731 return NULL;
30732}
30733
30734
30735SWIGINTERN PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30736 PyObject *resultobj = 0;
30737 wxPyApp *arg1 = (wxPyApp *) 0 ;
30738 bool arg2 ;
30739 void *argp1 = 0 ;
30740 int res1 = 0 ;
30741 bool val2 ;
30742 int ecode2 = 0 ;
30743 PyObject * obj0 = 0 ;
30744 PyObject * obj1 = 0 ;
30745 char * kwnames[] = {
30746 (char *) "self",(char *) "flag", NULL
30747 };
30748
30749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) SWIG_fail;
30750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30751 if (!SWIG_IsOK(res1)) {
30752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetExitOnFrameDelete" "', expected argument " "1"" of type '" "wxPyApp *""'");
30753 }
30754 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30755 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30756 if (!SWIG_IsOK(ecode2)) {
30757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyApp_SetExitOnFrameDelete" "', expected argument " "2"" of type '" "bool""'");
30758 }
30759 arg2 = static_cast< bool >(val2);
30760 {
30761 PyThreadState* __tstate = wxPyBeginAllowThreads();
30762 (arg1)->SetExitOnFrameDelete(arg2);
30763 wxPyEndAllowThreads(__tstate);
30764 if (PyErr_Occurred()) SWIG_fail;
30765 }
30766 resultobj = SWIG_Py_Void();
30767 return resultobj;
30768fail:
30769 return NULL;
d55e5bfc
RD
30770}
30771
30772
1bd55598
RD
30773SWIGINTERN PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30774 PyObject *resultobj = 0;
30775 wxPyApp *arg1 = (wxPyApp *) 0 ;
30776 bool result;
30777 void *argp1 = 0 ;
30778 int res1 = 0 ;
30779 PyObject *swig_obj[1] ;
30780
30781 if (!args) SWIG_fail;
30782 swig_obj[0] = args;
30783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30784 if (!SWIG_IsOK(res1)) {
30785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetExitOnFrameDelete" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30786 }
30787 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30788 {
30789 PyThreadState* __tstate = wxPyBeginAllowThreads();
30790 result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete();
30791 wxPyEndAllowThreads(__tstate);
30792 if (PyErr_Occurred()) SWIG_fail;
30793 }
30794 {
30795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30796 }
30797 return resultobj;
30798fail:
30799 return NULL;
30800}
30801
30802
30803SWIGINTERN PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30804 PyObject *resultobj = 0;
30805 wxPyApp *arg1 = (wxPyApp *) 0 ;
30806 bool arg2 ;
30807 void *argp1 = 0 ;
30808 int res1 = 0 ;
30809 bool val2 ;
30810 int ecode2 = 0 ;
30811 PyObject * obj0 = 0 ;
30812 PyObject * obj1 = 0 ;
30813 char * kwnames[] = {
30814 (char *) "self",(char *) "flag", NULL
30815 };
30816
30817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) SWIG_fail;
30818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30819 if (!SWIG_IsOK(res1)) {
30820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetUseBestVisual" "', expected argument " "1"" of type '" "wxPyApp *""'");
30821 }
30822 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30823 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30824 if (!SWIG_IsOK(ecode2)) {
30825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyApp_SetUseBestVisual" "', expected argument " "2"" of type '" "bool""'");
30826 }
30827 arg2 = static_cast< bool >(val2);
30828 {
30829 PyThreadState* __tstate = wxPyBeginAllowThreads();
30830 (arg1)->SetUseBestVisual(arg2);
30831 wxPyEndAllowThreads(__tstate);
30832 if (PyErr_Occurred()) SWIG_fail;
30833 }
30834 resultobj = SWIG_Py_Void();
30835 return resultobj;
30836fail:
30837 return NULL;
d55e5bfc
RD
30838}
30839
30840
1bd55598
RD
30841SWIGINTERN PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30842 PyObject *resultobj = 0;
30843 wxPyApp *arg1 = (wxPyApp *) 0 ;
30844 bool result;
30845 void *argp1 = 0 ;
30846 int res1 = 0 ;
30847 PyObject *swig_obj[1] ;
30848
30849 if (!args) SWIG_fail;
30850 swig_obj[0] = args;
30851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30852 if (!SWIG_IsOK(res1)) {
30853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetUseBestVisual" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30854 }
30855 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30856 {
30857 PyThreadState* __tstate = wxPyBeginAllowThreads();
30858 result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual();
30859 wxPyEndAllowThreads(__tstate);
30860 if (PyErr_Occurred()) SWIG_fail;
30861 }
30862 {
30863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30864 }
30865 return resultobj;
30866fail:
30867 return NULL;
30868}
30869
30870
30871SWIGINTERN PyObject *_wrap_PyApp_SetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30872 PyObject *resultobj = 0;
30873 wxPyApp *arg1 = (wxPyApp *) 0 ;
30874 int arg2 ;
30875 void *argp1 = 0 ;
30876 int res1 = 0 ;
30877 int val2 ;
30878 int ecode2 = 0 ;
30879 PyObject * obj0 = 0 ;
30880 PyObject * obj1 = 0 ;
30881 char * kwnames[] = {
30882 (char *) "self",(char *) "mode", NULL
30883 };
30884
30885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) SWIG_fail;
30886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30887 if (!SWIG_IsOK(res1)) {
30888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetPrintMode" "', expected argument " "1"" of type '" "wxPyApp *""'");
30889 }
30890 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30891 ecode2 = SWIG_AsVal_int(obj1, &val2);
30892 if (!SWIG_IsOK(ecode2)) {
30893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyApp_SetPrintMode" "', expected argument " "2"" of type '" "int""'");
30894 }
30895 arg2 = static_cast< int >(val2);
30896 {
30897 PyThreadState* __tstate = wxPyBeginAllowThreads();
30898 (arg1)->SetPrintMode(arg2);
30899 wxPyEndAllowThreads(__tstate);
30900 if (PyErr_Occurred()) SWIG_fail;
30901 }
30902 resultobj = SWIG_Py_Void();
30903 return resultobj;
30904fail:
30905 return NULL;
d55e5bfc
RD
30906}
30907
30908
1bd55598
RD
30909SWIGINTERN PyObject *_wrap_PyApp_GetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30910 PyObject *resultobj = 0;
30911 wxPyApp *arg1 = (wxPyApp *) 0 ;
30912 int result;
30913 void *argp1 = 0 ;
30914 int res1 = 0 ;
30915 PyObject *swig_obj[1] ;
30916
30917 if (!args) SWIG_fail;
30918 swig_obj[0] = args;
30919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30920 if (!SWIG_IsOK(res1)) {
30921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetPrintMode" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30922 }
30923 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30924 {
30925 PyThreadState* __tstate = wxPyBeginAllowThreads();
30926 result = (int)((wxPyApp const *)arg1)->GetPrintMode();
30927 wxPyEndAllowThreads(__tstate);
30928 if (PyErr_Occurred()) SWIG_fail;
30929 }
30930 resultobj = SWIG_From_int(static_cast< int >(result));
30931 return resultobj;
30932fail:
30933 return NULL;
30934}
30935
30936
30937SWIGINTERN PyObject *_wrap_PyApp_SetAssertMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30938 PyObject *resultobj = 0;
30939 wxPyApp *arg1 = (wxPyApp *) 0 ;
30940 int arg2 ;
30941 void *argp1 = 0 ;
30942 int res1 = 0 ;
30943 int val2 ;
30944 int ecode2 = 0 ;
30945 PyObject * obj0 = 0 ;
30946 PyObject * obj1 = 0 ;
30947 char * kwnames[] = {
30948 (char *) "self",(char *) "mode", NULL
30949 };
30950
30951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) SWIG_fail;
30952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30953 if (!SWIG_IsOK(res1)) {
30954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetAssertMode" "', expected argument " "1"" of type '" "wxPyApp *""'");
30955 }
30956 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30957 ecode2 = SWIG_AsVal_int(obj1, &val2);
30958 if (!SWIG_IsOK(ecode2)) {
30959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyApp_SetAssertMode" "', expected argument " "2"" of type '" "int""'");
30960 }
30961 arg2 = static_cast< int >(val2);
30962 {
30963 PyThreadState* __tstate = wxPyBeginAllowThreads();
30964 (arg1)->SetAssertMode(arg2);
30965 wxPyEndAllowThreads(__tstate);
30966 if (PyErr_Occurred()) SWIG_fail;
30967 }
30968 resultobj = SWIG_Py_Void();
30969 return resultobj;
30970fail:
30971 return NULL;
d55e5bfc
RD
30972}
30973
30974
1bd55598
RD
30975SWIGINTERN PyObject *_wrap_PyApp_GetAssertMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30976 PyObject *resultobj = 0;
30977 wxPyApp *arg1 = (wxPyApp *) 0 ;
30978 int result;
30979 void *argp1 = 0 ;
30980 int res1 = 0 ;
30981 PyObject *swig_obj[1] ;
30982
30983 if (!args) SWIG_fail;
30984 swig_obj[0] = args;
30985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30986 if (!SWIG_IsOK(res1)) {
30987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetAssertMode" "', expected argument " "1"" of type '" "wxPyApp *""'");
30988 }
30989 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30990 {
30991 PyThreadState* __tstate = wxPyBeginAllowThreads();
30992 result = (int)(arg1)->GetAssertMode();
30993 wxPyEndAllowThreads(__tstate);
30994 if (PyErr_Occurred()) SWIG_fail;
30995 }
30996 resultobj = SWIG_From_int(static_cast< int >(result));
30997 return resultobj;
30998fail:
30999 return NULL;
d55e5bfc
RD
31000}
31001
31002
1bd55598
RD
31003SWIGINTERN PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31004 PyObject *resultobj = 0;
31005 bool result;
31006
31007 if (!SWIG_Python_UnpackTuple(args,"PyApp_GetMacSupportPCMenuShortcuts",0,0,0)) SWIG_fail;
31008 {
31009 PyThreadState* __tstate = wxPyBeginAllowThreads();
31010 result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts();
31011 wxPyEndAllowThreads(__tstate);
31012 if (PyErr_Occurred()) SWIG_fail;
31013 }
31014 {
31015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31016 }
31017 return resultobj;
31018fail:
31019 return NULL;
d55e5bfc
RD
31020}
31021
31022
1bd55598
RD
31023SWIGINTERN PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31024 PyObject *resultobj = 0;
31025 long result;
31026
31027 if (!SWIG_Python_UnpackTuple(args,"PyApp_GetMacAboutMenuItemId",0,0,0)) SWIG_fail;
31028 {
31029 PyThreadState* __tstate = wxPyBeginAllowThreads();
31030 result = (long)wxPyApp::GetMacAboutMenuItemId();
31031 wxPyEndAllowThreads(__tstate);
31032 if (PyErr_Occurred()) SWIG_fail;
31033 }
31034 resultobj = SWIG_From_long(static_cast< long >(result));
31035 return resultobj;
31036fail:
31037 return NULL;
d55e5bfc
RD
31038}
31039
31040
1bd55598
RD
31041SWIGINTERN PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31042 PyObject *resultobj = 0;
31043 long result;
31044
31045 if (!SWIG_Python_UnpackTuple(args,"PyApp_GetMacPreferencesMenuItemId",0,0,0)) SWIG_fail;
31046 {
31047 PyThreadState* __tstate = wxPyBeginAllowThreads();
31048 result = (long)wxPyApp::GetMacPreferencesMenuItemId();
31049 wxPyEndAllowThreads(__tstate);
31050 if (PyErr_Occurred()) SWIG_fail;
31051 }
31052 resultobj = SWIG_From_long(static_cast< long >(result));
31053 return resultobj;
31054fail:
31055 return NULL;
d55e5bfc
RD
31056}
31057
31058
1bd55598
RD
31059SWIGINTERN PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31060 PyObject *resultobj = 0;
31061 long result;
31062
31063 if (!SWIG_Python_UnpackTuple(args,"PyApp_GetMacExitMenuItemId",0,0,0)) SWIG_fail;
31064 {
31065 PyThreadState* __tstate = wxPyBeginAllowThreads();
31066 result = (long)wxPyApp::GetMacExitMenuItemId();
31067 wxPyEndAllowThreads(__tstate);
31068 if (PyErr_Occurred()) SWIG_fail;
31069 }
31070 resultobj = SWIG_From_long(static_cast< long >(result));
31071 return resultobj;
31072fail:
31073 return NULL;
d55e5bfc
RD
31074}
31075
31076
1bd55598
RD
31077SWIGINTERN PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31078 PyObject *resultobj = 0;
31079 wxString result;
31080
31081 if (!SWIG_Python_UnpackTuple(args,"PyApp_GetMacHelpMenuTitleName",0,0,0)) SWIG_fail;
31082 {
31083 PyThreadState* __tstate = wxPyBeginAllowThreads();
31084 result = wxPyApp::GetMacHelpMenuTitleName();
31085 wxPyEndAllowThreads(__tstate);
31086 if (PyErr_Occurred()) SWIG_fail;
31087 }
31088 {
31089#if wxUSE_UNICODE
31090 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31091#else
31092 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31093#endif
31094 }
31095 return resultobj;
31096fail:
31097 return NULL;
d55e5bfc
RD
31098}
31099
31100
1bd55598
RD
31101SWIGINTERN PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31102 PyObject *resultobj = 0;
31103 bool arg1 ;
31104 bool val1 ;
31105 int ecode1 = 0 ;
31106 PyObject * obj0 = 0 ;
31107 char * kwnames[] = {
31108 (char *) "val", NULL
31109 };
31110
31111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) SWIG_fail;
31112 ecode1 = SWIG_AsVal_bool(obj0, &val1);
31113 if (!SWIG_IsOK(ecode1)) {
31114 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PyApp_SetMacSupportPCMenuShortcuts" "', expected argument " "1"" of type '" "bool""'");
31115 }
31116 arg1 = static_cast< bool >(val1);
31117 {
31118 PyThreadState* __tstate = wxPyBeginAllowThreads();
31119 wxPyApp::SetMacSupportPCMenuShortcuts(arg1);
31120 wxPyEndAllowThreads(__tstate);
31121 if (PyErr_Occurred()) SWIG_fail;
31122 }
31123 resultobj = SWIG_Py_Void();
31124 return resultobj;
31125fail:
31126 return NULL;
d55e5bfc
RD
31127}
31128
31129
1bd55598
RD
31130SWIGINTERN PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31131 PyObject *resultobj = 0;
31132 long arg1 ;
31133 long val1 ;
31134 int ecode1 = 0 ;
31135 PyObject * obj0 = 0 ;
31136 char * kwnames[] = {
31137 (char *) "val", NULL
31138 };
31139
31140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) SWIG_fail;
31141 ecode1 = SWIG_AsVal_long(obj0, &val1);
31142 if (!SWIG_IsOK(ecode1)) {
31143 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PyApp_SetMacAboutMenuItemId" "', expected argument " "1"" of type '" "long""'");
31144 }
31145 arg1 = static_cast< long >(val1);
31146 {
31147 PyThreadState* __tstate = wxPyBeginAllowThreads();
31148 wxPyApp::SetMacAboutMenuItemId(arg1);
31149 wxPyEndAllowThreads(__tstate);
31150 if (PyErr_Occurred()) SWIG_fail;
31151 }
31152 resultobj = SWIG_Py_Void();
31153 return resultobj;
31154fail:
31155 return NULL;
b1fcee84
RD
31156}
31157
31158
1bd55598
RD
31159SWIGINTERN PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31160 PyObject *resultobj = 0;
31161 long arg1 ;
31162 long val1 ;
31163 int ecode1 = 0 ;
31164 PyObject * obj0 = 0 ;
31165 char * kwnames[] = {
31166 (char *) "val", NULL
31167 };
31168
31169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) SWIG_fail;
31170 ecode1 = SWIG_AsVal_long(obj0, &val1);
31171 if (!SWIG_IsOK(ecode1)) {
31172 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PyApp_SetMacPreferencesMenuItemId" "', expected argument " "1"" of type '" "long""'");
31173 }
31174 arg1 = static_cast< long >(val1);
31175 {
31176 PyThreadState* __tstate = wxPyBeginAllowThreads();
31177 wxPyApp::SetMacPreferencesMenuItemId(arg1);
31178 wxPyEndAllowThreads(__tstate);
31179 if (PyErr_Occurred()) SWIG_fail;
31180 }
31181 resultobj = SWIG_Py_Void();
31182 return resultobj;
31183fail:
31184 return NULL;
d55e5bfc
RD
31185}
31186
31187
1bd55598
RD
31188SWIGINTERN PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31189 PyObject *resultobj = 0;
31190 long arg1 ;
31191 long val1 ;
31192 int ecode1 = 0 ;
31193 PyObject * obj0 = 0 ;
31194 char * kwnames[] = {
31195 (char *) "val", NULL
31196 };
31197
31198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) SWIG_fail;
31199 ecode1 = SWIG_AsVal_long(obj0, &val1);
31200 if (!SWIG_IsOK(ecode1)) {
31201 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PyApp_SetMacExitMenuItemId" "', expected argument " "1"" of type '" "long""'");
31202 }
31203 arg1 = static_cast< long >(val1);
31204 {
31205 PyThreadState* __tstate = wxPyBeginAllowThreads();
31206 wxPyApp::SetMacExitMenuItemId(arg1);
31207 wxPyEndAllowThreads(__tstate);
31208 if (PyErr_Occurred()) SWIG_fail;
31209 }
31210 resultobj = SWIG_Py_Void();
31211 return resultobj;
31212fail:
31213 return NULL;
d55e5bfc
RD
31214}
31215
31216
1bd55598
RD
31217SWIGINTERN PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31218 PyObject *resultobj = 0;
31219 wxString *arg1 = 0 ;
31220 bool temp1 = false ;
31221 PyObject * obj0 = 0 ;
31222 char * kwnames[] = {
31223 (char *) "val", NULL
31224 };
31225
31226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) SWIG_fail;
31227 {
31228 arg1 = wxString_in_helper(obj0);
31229 if (arg1 == NULL) SWIG_fail;
31230 temp1 = true;
31231 }
31232 {
31233 PyThreadState* __tstate = wxPyBeginAllowThreads();
31234 wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1);
31235 wxPyEndAllowThreads(__tstate);
31236 if (PyErr_Occurred()) SWIG_fail;
31237 }
31238 resultobj = SWIG_Py_Void();
31239 {
31240 if (temp1)
31241 delete arg1;
31242 }
31243 return resultobj;
31244fail:
31245 {
31246 if (temp1)
31247 delete arg1;
31248 }
31249 return NULL;
d55e5bfc
RD
31250}
31251
31252
1bd55598
RD
31253SWIGINTERN PyObject *_wrap_PyApp__BootstrapApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31254 PyObject *resultobj = 0;
31255 wxPyApp *arg1 = (wxPyApp *) 0 ;
31256 void *argp1 = 0 ;
31257 int res1 = 0 ;
31258 PyObject *swig_obj[1] ;
31259
31260 if (!args) SWIG_fail;
31261 swig_obj[0] = args;
31262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
31263 if (!SWIG_IsOK(res1)) {
31264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp__BootstrapApp" "', expected argument " "1"" of type '" "wxPyApp *""'");
31265 }
31266 arg1 = reinterpret_cast< wxPyApp * >(argp1);
31267 {
31268 PyThreadState* __tstate = wxPyBeginAllowThreads();
31269 (arg1)->_BootstrapApp();
31270 wxPyEndAllowThreads(__tstate);
31271 if (PyErr_Occurred()) SWIG_fail;
31272 }
31273 resultobj = SWIG_Py_Void();
31274 return resultobj;
31275fail:
31276 return NULL;
d55e5bfc
RD
31277}
31278
31279
1bd55598
RD
31280SWIGINTERN PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31281 PyObject *resultobj = 0;
31282 int result;
31283
31284 if (!SWIG_Python_UnpackTuple(args,"PyApp_GetComCtl32Version",0,0,0)) SWIG_fail;
31285 {
31286 PyThreadState* __tstate = wxPyBeginAllowThreads();
31287 result = (int)wxPyApp_GetComCtl32Version();
31288 wxPyEndAllowThreads(__tstate);
31289 if (PyErr_Occurred()) SWIG_fail;
31290 }
31291 resultobj = SWIG_From_int(static_cast< int >(result));
31292 return resultobj;
31293fail:
31294 return NULL;
412d302d
RD
31295}
31296
31297
33d6fd3b 31298SWIGINTERN PyObject *_wrap_PyApp_IsDisplayAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
fc46b7f3
RD
31299 PyObject *resultobj = 0;
31300 bool result;
31301
33d6fd3b 31302 if (!SWIG_Python_UnpackTuple(args,"PyApp_IsDisplayAvailable",0,0,0)) SWIG_fail;
fc46b7f3
RD
31303 {
31304 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 31305 result = (bool)wxPyApp_IsDisplayAvailable();
fc46b7f3
RD
31306 wxPyEndAllowThreads(__tstate);
31307 if (PyErr_Occurred()) SWIG_fail;
31308 }
31309 {
31310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31311 }
31312 return resultobj;
31313fail:
31314 return NULL;
31315}
31316
31317
1bd55598
RD
31318SWIGINTERN PyObject *PyApp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31319 PyObject *obj;
31320 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31321 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyApp, SWIG_NewClientData(obj));
31322 return SWIG_Py_Void();
d55e5bfc
RD
31323}
31324
1bd55598
RD
31325SWIGINTERN PyObject *PyApp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31326 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
31327}
31328
1bd55598
RD
31329SWIGINTERN PyObject *_wrap_Exit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31330 PyObject *resultobj = 0;
31331
31332 if (!SWIG_Python_UnpackTuple(args,"Exit",0,0,0)) SWIG_fail;
31333 {
31334 PyThreadState* __tstate = wxPyBeginAllowThreads();
31335 wxExit();
31336 wxPyEndAllowThreads(__tstate);
31337 if (PyErr_Occurred()) SWIG_fail;
31338 }
31339 resultobj = SWIG_Py_Void();
31340 return resultobj;
31341fail:
31342 return NULL;
d55e5bfc
RD
31343}
31344
31345
1bd55598
RD
31346SWIGINTERN PyObject *_wrap_Yield(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31347 PyObject *resultobj = 0;
31348 bool result;
31349
31350 if (!SWIG_Python_UnpackTuple(args,"Yield",0,0,0)) SWIG_fail;
31351 {
31352 PyThreadState* __tstate = wxPyBeginAllowThreads();
31353 result = (bool)wxYield();
31354 wxPyEndAllowThreads(__tstate);
31355 if (PyErr_Occurred()) SWIG_fail;
31356 }
31357 {
31358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31359 }
31360 return resultobj;
31361fail:
31362 return NULL;
d55e5bfc
RD
31363}
31364
31365
1bd55598
RD
31366SWIGINTERN PyObject *_wrap_YieldIfNeeded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31367 PyObject *resultobj = 0;
31368 bool result;
31369
31370 if (!SWIG_Python_UnpackTuple(args,"YieldIfNeeded",0,0,0)) SWIG_fail;
31371 {
31372 PyThreadState* __tstate = wxPyBeginAllowThreads();
31373 result = (bool)wxYieldIfNeeded();
31374 wxPyEndAllowThreads(__tstate);
31375 if (PyErr_Occurred()) SWIG_fail;
31376 }
31377 {
31378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31379 }
31380 return resultobj;
31381fail:
31382 return NULL;
31383}
31384
31385
31386SWIGINTERN PyObject *_wrap_SafeYield(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31387 PyObject *resultobj = 0;
31388 wxWindow *arg1 = (wxWindow *) NULL ;
31389 bool arg2 = (bool) false ;
31390 bool result;
31391 void *argp1 = 0 ;
31392 int res1 = 0 ;
31393 bool val2 ;
31394 int ecode2 = 0 ;
31395 PyObject * obj0 = 0 ;
31396 PyObject * obj1 = 0 ;
31397 char * kwnames[] = {
31398 (char *) "win",(char *) "onlyIfNeeded", NULL
31399 };
31400
31401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) SWIG_fail;
31402 if (obj0) {
31403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31404 if (!SWIG_IsOK(res1)) {
31405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeYield" "', expected argument " "1"" of type '" "wxWindow *""'");
36ed4f51 31406 }
1bd55598
RD
31407 arg1 = reinterpret_cast< wxWindow * >(argp1);
31408 }
31409 if (obj1) {
31410 ecode2 = SWIG_AsVal_bool(obj1, &val2);
31411 if (!SWIG_IsOK(ecode2)) {
31412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SafeYield" "', expected argument " "2"" of type '" "bool""'");
31413 }
31414 arg2 = static_cast< bool >(val2);
31415 }
31416 {
31417 PyThreadState* __tstate = wxPyBeginAllowThreads();
31418 result = (bool)wxSafeYield(arg1,arg2);
31419 wxPyEndAllowThreads(__tstate);
31420 if (PyErr_Occurred()) SWIG_fail;
31421 }
31422 {
31423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31424 }
31425 return resultobj;
31426fail:
31427 return NULL;
d55e5bfc
RD
31428}
31429
31430
1bd55598
RD
31431SWIGINTERN PyObject *_wrap_WakeUpIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31432 PyObject *resultobj = 0;
31433
31434 if (!SWIG_Python_UnpackTuple(args,"WakeUpIdle",0,0,0)) SWIG_fail;
31435 {
31436 PyThreadState* __tstate = wxPyBeginAllowThreads();
31437 wxWakeUpIdle();
31438 wxPyEndAllowThreads(__tstate);
31439 if (PyErr_Occurred()) SWIG_fail;
31440 }
31441 resultobj = SWIG_Py_Void();
31442 return resultobj;
31443fail:
31444 return NULL;
31445}
31446
31447
31448SWIGINTERN PyObject *_wrap_PostEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31449 PyObject *resultobj = 0;
31450 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
31451 wxEvent *arg2 = 0 ;
31452 void *argp1 = 0 ;
31453 int res1 = 0 ;
31454 void *argp2 = 0 ;
31455 int res2 = 0 ;
31456 PyObject * obj0 = 0 ;
31457 PyObject * obj1 = 0 ;
31458 char * kwnames[] = {
31459 (char *) "dest",(char *) "event", NULL
31460 };
31461
31462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) SWIG_fail;
31463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
31464 if (!SWIG_IsOK(res1)) {
31465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostEvent" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
31466 }
31467 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
31468 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxEvent, 0 );
31469 if (!SWIG_IsOK(res2)) {
31470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
31471 }
31472 if (!argp2) {
31473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
31474 }
31475 arg2 = reinterpret_cast< wxEvent * >(argp2);
31476 {
31477 PyThreadState* __tstate = wxPyBeginAllowThreads();
31478 wxPostEvent(arg1,*arg2);
31479 wxPyEndAllowThreads(__tstate);
31480 if (PyErr_Occurred()) SWIG_fail;
31481 }
31482 resultobj = SWIG_Py_Void();
31483 return resultobj;
31484fail:
31485 return NULL;
d55e5bfc
RD
31486}
31487
31488
1bd55598
RD
31489SWIGINTERN PyObject *_wrap_App_CleanUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31490 PyObject *resultobj = 0;
31491
31492 if (!SWIG_Python_UnpackTuple(args,"App_CleanUp",0,0,0)) SWIG_fail;
31493 {
31494 PyThreadState* __tstate = wxPyBeginAllowThreads();
31495 wxApp_CleanUp();
31496 wxPyEndAllowThreads(__tstate);
31497 if (PyErr_Occurred()) SWIG_fail;
31498 }
31499 resultobj = SWIG_Py_Void();
31500 return resultobj;
31501fail:
31502 return NULL;
d55e5bfc
RD
31503}
31504
31505
1bd55598
RD
31506SWIGINTERN PyObject *_wrap_GetApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31507 PyObject *resultobj = 0;
31508 wxPyApp *result = 0 ;
31509
31510 if (!SWIG_Python_UnpackTuple(args,"GetApp",0,0,0)) SWIG_fail;
31511 {
31512 PyThreadState* __tstate = wxPyBeginAllowThreads();
31513 result = (wxPyApp *)wxPyGetApp();
31514 wxPyEndAllowThreads(__tstate);
31515 if (PyErr_Occurred()) SWIG_fail;
31516 }
31517 {
31518 resultobj = wxPyMake_wxObject(result, 0);
31519 }
31520 return resultobj;
31521fail:
31522 return NULL;
d55e5bfc
RD
31523}
31524
31525
1bd55598
RD
31526SWIGINTERN PyObject *_wrap_SetDefaultPyEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31527 PyObject *resultobj = 0;
31528 char *arg1 = (char *) 0 ;
31529 int res1 ;
31530 char *buf1 = 0 ;
31531 int alloc1 = 0 ;
31532 PyObject * obj0 = 0 ;
31533 char * kwnames[] = {
31534 (char *) "encoding", NULL
31535 };
31536
31537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetDefaultPyEncoding",kwnames,&obj0)) SWIG_fail;
31538 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
31539 if (!SWIG_IsOK(res1)) {
31540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetDefaultPyEncoding" "', expected argument " "1"" of type '" "char const *""'");
31541 }
31542 arg1 = buf1;
31543 {
31544 PyThreadState* __tstate = wxPyBeginAllowThreads();
31545 wxSetDefaultPyEncoding((char const *)arg1);
31546 wxPyEndAllowThreads(__tstate);
31547 if (PyErr_Occurred()) SWIG_fail;
31548 }
31549 resultobj = SWIG_Py_Void();
31550 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
31551 return resultobj;
31552fail:
31553 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
31554 return NULL;
d55e5bfc
RD
31555}
31556
31557
1bd55598
RD
31558SWIGINTERN PyObject *_wrap_GetDefaultPyEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31559 PyObject *resultobj = 0;
31560 char *result = 0 ;
31561
31562 if (!SWIG_Python_UnpackTuple(args,"GetDefaultPyEncoding",0,0,0)) SWIG_fail;
31563 {
31564 PyThreadState* __tstate = wxPyBeginAllowThreads();
31565 result = (char *)wxGetDefaultPyEncoding();
31566 wxPyEndAllowThreads(__tstate);
31567 if (PyErr_Occurred()) SWIG_fail;
31568 }
31569 resultobj = SWIG_FromCharPtr(result);
31570 return resultobj;
31571fail:
31572 return NULL;
d55e5bfc
RD
31573}
31574
31575
1bd55598
RD
31576SWIGINTERN PyObject *_wrap_new_EventLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31577 PyObject *resultobj = 0;
31578 wxEventLoop *result = 0 ;
31579
31580 if (!SWIG_Python_UnpackTuple(args,"new_EventLoop",0,0,0)) SWIG_fail;
31581 {
31582 PyThreadState* __tstate = wxPyBeginAllowThreads();
31583 result = (wxEventLoop *)new wxEventLoop();
31584 wxPyEndAllowThreads(__tstate);
31585 if (PyErr_Occurred()) SWIG_fail;
31586 }
31587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEventLoop, SWIG_POINTER_NEW | 0 );
31588 return resultobj;
31589fail:
31590 return NULL;
d55e5bfc
RD
31591}
31592
31593
1bd55598
RD
31594SWIGINTERN PyObject *_wrap_delete_EventLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31595 PyObject *resultobj = 0;
31596 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
31597 void *argp1 = 0 ;
31598 int res1 = 0 ;
31599 PyObject *swig_obj[1] ;
31600
31601 if (!args) SWIG_fail;
31602 swig_obj[0] = args;
31603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoop, SWIG_POINTER_DISOWN | 0 );
31604 if (!SWIG_IsOK(res1)) {
31605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EventLoop" "', expected argument " "1"" of type '" "wxEventLoop *""'");
31606 }
31607 arg1 = reinterpret_cast< wxEventLoop * >(argp1);
31608 {
31609 PyThreadState* __tstate = wxPyBeginAllowThreads();
31610 delete arg1;
d55e5bfc 31611
1bd55598
RD
31612 wxPyEndAllowThreads(__tstate);
31613 if (PyErr_Occurred()) SWIG_fail;
31614 }
31615 resultobj = SWIG_Py_Void();
31616 return resultobj;
31617fail:
31618 return NULL;
d55e5bfc
RD
31619}
31620
31621
1bd55598
RD
31622SWIGINTERN PyObject *_wrap_EventLoop_Run(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31623 PyObject *resultobj = 0;
31624 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
31625 int result;
31626 void *argp1 = 0 ;
31627 int res1 = 0 ;
31628 PyObject *swig_obj[1] ;
31629
31630 if (!args) SWIG_fail;
31631 swig_obj[0] = args;
31632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
31633 if (!SWIG_IsOK(res1)) {
31634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_Run" "', expected argument " "1"" of type '" "wxEventLoop *""'");
31635 }
31636 arg1 = reinterpret_cast< wxEventLoop * >(argp1);
31637 {
31638 PyThreadState* __tstate = wxPyBeginAllowThreads();
31639 result = (int)(arg1)->Run();
31640 wxPyEndAllowThreads(__tstate);
31641 if (PyErr_Occurred()) SWIG_fail;
31642 }
31643 resultobj = SWIG_From_int(static_cast< int >(result));
31644 return resultobj;
31645fail:
31646 return NULL;
31647}
31648
31649
31650SWIGINTERN PyObject *_wrap_EventLoop_Exit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31651 PyObject *resultobj = 0;
31652 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
31653 int arg2 = (int) 0 ;
31654 void *argp1 = 0 ;
31655 int res1 = 0 ;
31656 int val2 ;
31657 int ecode2 = 0 ;
31658 PyObject * obj0 = 0 ;
31659 PyObject * obj1 = 0 ;
31660 char * kwnames[] = {
31661 (char *) "self",(char *) "rc", NULL
31662 };
31663
31664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) SWIG_fail;
31665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
31666 if (!SWIG_IsOK(res1)) {
31667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_Exit" "', expected argument " "1"" of type '" "wxEventLoop *""'");
31668 }
31669 arg1 = reinterpret_cast< wxEventLoop * >(argp1);
31670 if (obj1) {
31671 ecode2 = SWIG_AsVal_int(obj1, &val2);
31672 if (!SWIG_IsOK(ecode2)) {
31673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EventLoop_Exit" "', expected argument " "2"" of type '" "int""'");
31674 }
31675 arg2 = static_cast< int >(val2);
31676 }
31677 {
31678 PyThreadState* __tstate = wxPyBeginAllowThreads();
31679 (arg1)->Exit(arg2);
31680 wxPyEndAllowThreads(__tstate);
31681 if (PyErr_Occurred()) SWIG_fail;
31682 }
31683 resultobj = SWIG_Py_Void();
31684 return resultobj;
31685fail:
31686 return NULL;
d55e5bfc
RD
31687}
31688
31689
1bd55598
RD
31690SWIGINTERN PyObject *_wrap_EventLoop_Pending(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31691 PyObject *resultobj = 0;
31692 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
31693 bool result;
31694 void *argp1 = 0 ;
31695 int res1 = 0 ;
31696 PyObject *swig_obj[1] ;
31697
31698 if (!args) SWIG_fail;
31699 swig_obj[0] = args;
31700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
31701 if (!SWIG_IsOK(res1)) {
31702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_Pending" "', expected argument " "1"" of type '" "wxEventLoop const *""'");
31703 }
31704 arg1 = reinterpret_cast< wxEventLoop * >(argp1);
31705 {
31706 PyThreadState* __tstate = wxPyBeginAllowThreads();
31707 result = (bool)((wxEventLoop const *)arg1)->Pending();
31708 wxPyEndAllowThreads(__tstate);
31709 if (PyErr_Occurred()) SWIG_fail;
31710 }
31711 {
31712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31713 }
31714 return resultobj;
31715fail:
31716 return NULL;
d55e5bfc
RD
31717}
31718
31719
1bd55598
RD
31720SWIGINTERN PyObject *_wrap_EventLoop_Dispatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31721 PyObject *resultobj = 0;
31722 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
31723 bool result;
31724 void *argp1 = 0 ;
31725 int res1 = 0 ;
31726 PyObject *swig_obj[1] ;
31727
31728 if (!args) SWIG_fail;
31729 swig_obj[0] = args;
31730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
31731 if (!SWIG_IsOK(res1)) {
31732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_Dispatch" "', expected argument " "1"" of type '" "wxEventLoop *""'");
31733 }
31734 arg1 = reinterpret_cast< wxEventLoop * >(argp1);
31735 {
31736 PyThreadState* __tstate = wxPyBeginAllowThreads();
31737 result = (bool)(arg1)->Dispatch();
31738 wxPyEndAllowThreads(__tstate);
31739 if (PyErr_Occurred()) SWIG_fail;
31740 }
31741 {
31742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31743 }
31744 return resultobj;
31745fail:
31746 return NULL;
d55e5bfc
RD
31747}
31748
31749
1bd55598
RD
31750SWIGINTERN PyObject *_wrap_EventLoop_IsRunning(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31751 PyObject *resultobj = 0;
31752 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
31753 bool result;
31754 void *argp1 = 0 ;
31755 int res1 = 0 ;
31756 PyObject *swig_obj[1] ;
31757
31758 if (!args) SWIG_fail;
31759 swig_obj[0] = args;
31760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
31761 if (!SWIG_IsOK(res1)) {
31762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_IsRunning" "', expected argument " "1"" of type '" "wxEventLoop const *""'");
31763 }
31764 arg1 = reinterpret_cast< wxEventLoop * >(argp1);
31765 {
31766 PyThreadState* __tstate = wxPyBeginAllowThreads();
31767 result = (bool)((wxEventLoop const *)arg1)->IsRunning();
31768 wxPyEndAllowThreads(__tstate);
31769 if (PyErr_Occurred()) SWIG_fail;
31770 }
31771 {
31772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31773 }
31774 return resultobj;
31775fail:
31776 return NULL;
d55e5bfc
RD
31777}
31778
31779
1bd55598
RD
31780SWIGINTERN PyObject *_wrap_EventLoop_GetActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31781 PyObject *resultobj = 0;
31782 wxEventLoop *result = 0 ;
31783
31784 if (!SWIG_Python_UnpackTuple(args,"EventLoop_GetActive",0,0,0)) SWIG_fail;
31785 {
31786 PyThreadState* __tstate = wxPyBeginAllowThreads();
31787 result = (wxEventLoop *)wxEventLoop::GetActive();
31788 wxPyEndAllowThreads(__tstate);
31789 if (PyErr_Occurred()) SWIG_fail;
31790 }
31791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEventLoop, 0 | 0 );
31792 return resultobj;
31793fail:
31794 return NULL;
d55e5bfc
RD
31795}
31796
31797
1bd55598
RD
31798SWIGINTERN PyObject *_wrap_EventLoop_SetActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31799 PyObject *resultobj = 0;
31800 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
31801 void *argp1 = 0 ;
31802 int res1 = 0 ;
31803 PyObject * obj0 = 0 ;
31804 char * kwnames[] = {
31805 (char *) "loop", NULL
31806 };
31807
31808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) SWIG_fail;
31809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
31810 if (!SWIG_IsOK(res1)) {
31811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_SetActive" "', expected argument " "1"" of type '" "wxEventLoop *""'");
31812 }
31813 arg1 = reinterpret_cast< wxEventLoop * >(argp1);
31814 {
31815 PyThreadState* __tstate = wxPyBeginAllowThreads();
31816 wxEventLoop::SetActive(arg1);
31817 wxPyEndAllowThreads(__tstate);
31818 if (PyErr_Occurred()) SWIG_fail;
31819 }
31820 resultobj = SWIG_Py_Void();
31821 return resultobj;
31822fail:
31823 return NULL;
d55e5bfc
RD
31824}
31825
31826
1bd55598
RD
31827SWIGINTERN PyObject *EventLoop_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31828 PyObject *obj;
31829 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31830 SWIG_TypeNewClientData(SWIGTYPE_p_wxEventLoop, SWIG_NewClientData(obj));
31831 return SWIG_Py_Void();
d55e5bfc
RD
31832}
31833
1bd55598
RD
31834SWIGINTERN PyObject *EventLoop_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31835 return SWIG_Python_InitShadowInstance(args);
31836}
d55e5bfc 31837
1bd55598
RD
31838SWIGINTERN PyObject *_wrap_new_EventLoopActivator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31839 PyObject *resultobj = 0;
31840 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
31841 wxEventLoopActivator *result = 0 ;
31842 void *argp1 = 0 ;
31843 int res1 = 0 ;
31844 PyObject * obj0 = 0 ;
31845 char * kwnames[] = {
31846 (char *) "evtLoop", NULL
31847 };
31848
31849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_EventLoopActivator",kwnames,&obj0)) SWIG_fail;
31850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
31851 if (!SWIG_IsOK(res1)) {
31852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EventLoopActivator" "', expected argument " "1"" of type '" "wxEventLoop *""'");
31853 }
31854 arg1 = reinterpret_cast< wxEventLoop * >(argp1);
31855 {
31856 PyThreadState* __tstate = wxPyBeginAllowThreads();
31857 result = (wxEventLoopActivator *)new wxEventLoopActivator(arg1);
31858 wxPyEndAllowThreads(__tstate);
31859 if (PyErr_Occurred()) SWIG_fail;
31860 }
31861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEventLoopActivator, SWIG_POINTER_NEW | 0 );
31862 return resultobj;
31863fail:
31864 return NULL;
d55e5bfc
RD
31865}
31866
31867
1bd55598
RD
31868SWIGINTERN PyObject *_wrap_delete_EventLoopActivator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31869 PyObject *resultobj = 0;
31870 wxEventLoopActivator *arg1 = (wxEventLoopActivator *) 0 ;
31871 void *argp1 = 0 ;
31872 int res1 = 0 ;
31873 PyObject *swig_obj[1] ;
31874
31875 if (!args) SWIG_fail;
31876 swig_obj[0] = args;
31877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoopActivator, SWIG_POINTER_DISOWN | 0 );
31878 if (!SWIG_IsOK(res1)) {
31879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EventLoopActivator" "', expected argument " "1"" of type '" "wxEventLoopActivator *""'");
31880 }
31881 arg1 = reinterpret_cast< wxEventLoopActivator * >(argp1);
31882 {
31883 PyThreadState* __tstate = wxPyBeginAllowThreads();
31884 delete arg1;
d55e5bfc 31885
1bd55598
RD
31886 wxPyEndAllowThreads(__tstate);
31887 if (PyErr_Occurred()) SWIG_fail;
31888 }
31889 resultobj = SWIG_Py_Void();
31890 return resultobj;
31891fail:
31892 return NULL;
31893}
31894
31895
31896SWIGINTERN PyObject *EventLoopActivator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31897 PyObject *obj;
31898 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31899 SWIG_TypeNewClientData(SWIGTYPE_p_wxEventLoopActivator, SWIG_NewClientData(obj));
31900 return SWIG_Py_Void();
31901}
31902
31903SWIGINTERN PyObject *EventLoopActivator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31904 return SWIG_Python_InitShadowInstance(args);
31905}
31906
31907SWIGINTERN PyObject *_wrap_new_AcceleratorEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31908 PyObject *resultobj = 0;
31909 int arg1 = (int) 0 ;
31910 int arg2 = (int) 0 ;
31911 int arg3 = (int) 0 ;
31912 wxAcceleratorEntry *result = 0 ;
31913 int val1 ;
31914 int ecode1 = 0 ;
31915 int val2 ;
31916 int ecode2 = 0 ;
31917 int val3 ;
31918 int ecode3 = 0 ;
31919 PyObject * obj0 = 0 ;
31920 PyObject * obj1 = 0 ;
31921 PyObject * obj2 = 0 ;
31922 char * kwnames[] = {
31923 (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL
31924 };
31925
31926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31927 if (obj0) {
31928 ecode1 = SWIG_AsVal_int(obj0, &val1);
31929 if (!SWIG_IsOK(ecode1)) {
31930 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_AcceleratorEntry" "', expected argument " "1"" of type '" "int""'");
31931 }
31932 arg1 = static_cast< int >(val1);
31933 }
31934 if (obj1) {
31935 ecode2 = SWIG_AsVal_int(obj1, &val2);
31936 if (!SWIG_IsOK(ecode2)) {
31937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AcceleratorEntry" "', expected argument " "2"" of type '" "int""'");
31938 }
31939 arg2 = static_cast< int >(val2);
31940 }
31941 if (obj2) {
31942 ecode3 = SWIG_AsVal_int(obj2, &val3);
31943 if (!SWIG_IsOK(ecode3)) {
31944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_AcceleratorEntry" "', expected argument " "3"" of type '" "int""'");
31945 }
31946 arg3 = static_cast< int >(val3);
31947 }
31948 {
31949 PyThreadState* __tstate = wxPyBeginAllowThreads();
31950 result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3);
31951 wxPyEndAllowThreads(__tstate);
31952 if (PyErr_Occurred()) SWIG_fail;
31953 }
31954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_NEW | 0 );
31955 return resultobj;
31956fail:
31957 return NULL;
d55e5bfc
RD
31958}
31959
31960
1bd55598
RD
31961SWIGINTERN PyObject *_wrap_delete_AcceleratorEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31962 PyObject *resultobj = 0;
31963 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
31964 void *argp1 = 0 ;
31965 int res1 = 0 ;
31966 PyObject *swig_obj[1] ;
31967
31968 if (!args) SWIG_fail;
31969 swig_obj[0] = args;
31970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_DISOWN | 0 );
31971 if (!SWIG_IsOK(res1)) {
31972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AcceleratorEntry" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
31973 }
31974 arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
31975 {
31976 PyThreadState* __tstate = wxPyBeginAllowThreads();
31977 delete arg1;
d55e5bfc 31978
1bd55598
RD
31979 wxPyEndAllowThreads(__tstate);
31980 if (PyErr_Occurred()) SWIG_fail;
31981 }
31982 resultobj = SWIG_Py_Void();
31983 return resultobj;
31984fail:
31985 return NULL;
31986}
31987
31988
31989SWIGINTERN PyObject *_wrap_AcceleratorEntry_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31990 PyObject *resultobj = 0;
31991 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
31992 int arg2 ;
31993 int arg3 ;
31994 int arg4 ;
31995 void *argp1 = 0 ;
31996 int res1 = 0 ;
31997 int val2 ;
31998 int ecode2 = 0 ;
31999 int val3 ;
32000 int ecode3 = 0 ;
32001 int val4 ;
32002 int ecode4 = 0 ;
32003 PyObject * obj0 = 0 ;
32004 PyObject * obj1 = 0 ;
32005 PyObject * obj2 = 0 ;
32006 PyObject * obj3 = 0 ;
32007 char * kwnames[] = {
32008 (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL
32009 };
32010
32011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
32013 if (!SWIG_IsOK(res1)) {
32014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_Set" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
32015 }
32016 arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
32017 ecode2 = SWIG_AsVal_int(obj1, &val2);
32018 if (!SWIG_IsOK(ecode2)) {
32019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AcceleratorEntry_Set" "', expected argument " "2"" of type '" "int""'");
32020 }
32021 arg2 = static_cast< int >(val2);
32022 ecode3 = SWIG_AsVal_int(obj2, &val3);
32023 if (!SWIG_IsOK(ecode3)) {
32024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AcceleratorEntry_Set" "', expected argument " "3"" of type '" "int""'");
32025 }
32026 arg3 = static_cast< int >(val3);
32027 ecode4 = SWIG_AsVal_int(obj3, &val4);
32028 if (!SWIG_IsOK(ecode4)) {
32029 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AcceleratorEntry_Set" "', expected argument " "4"" of type '" "int""'");
32030 }
32031 arg4 = static_cast< int >(val4);
32032 {
32033 PyThreadState* __tstate = wxPyBeginAllowThreads();
32034 (arg1)->Set(arg2,arg3,arg4);
32035 wxPyEndAllowThreads(__tstate);
32036 if (PyErr_Occurred()) SWIG_fail;
32037 }
32038 resultobj = SWIG_Py_Void();
32039 return resultobj;
32040fail:
32041 return NULL;
d55e5bfc
RD
32042}
32043
32044
ac5d357a
RD
32045SWIGINTERN PyObject *_wrap_AcceleratorEntry_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32046 PyObject *resultobj = 0;
32047 wxString *arg1 = 0 ;
32048 wxAcceleratorEntry *result = 0 ;
32049 bool temp1 = false ;
32050 PyObject * obj0 = 0 ;
32051 char * kwnames[] = {
32052 (char *) "str", NULL
32053 };
32054
32055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_Create",kwnames,&obj0)) SWIG_fail;
32056 {
32057 arg1 = wxString_in_helper(obj0);
32058 if (arg1 == NULL) SWIG_fail;
32059 temp1 = true;
32060 }
32061 {
32062 PyThreadState* __tstate = wxPyBeginAllowThreads();
32063 result = (wxAcceleratorEntry *)wxAcceleratorEntry::Create((wxString const &)*arg1);
32064 wxPyEndAllowThreads(__tstate);
32065 if (PyErr_Occurred()) SWIG_fail;
32066 }
32067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_OWN | 0 );
32068 {
32069 if (temp1)
32070 delete arg1;
32071 }
32072 return resultobj;
32073fail:
32074 {
32075 if (temp1)
32076 delete arg1;
32077 }
32078 return NULL;
32079}
32080
32081
1bd55598
RD
32082SWIGINTERN PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32083 PyObject *resultobj = 0;
32084 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
32085 int result;
32086 void *argp1 = 0 ;
32087 int res1 = 0 ;
32088 PyObject *swig_obj[1] ;
32089
32090 if (!args) SWIG_fail;
32091 swig_obj[0] = args;
32092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
32093 if (!SWIG_IsOK(res1)) {
32094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_GetFlags" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
32095 }
32096 arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
32097 {
32098 PyThreadState* __tstate = wxPyBeginAllowThreads();
32099 result = (int)(arg1)->GetFlags();
32100 wxPyEndAllowThreads(__tstate);
32101 if (PyErr_Occurred()) SWIG_fail;
32102 }
32103 resultobj = SWIG_From_int(static_cast< int >(result));
32104 return resultobj;
32105fail:
32106 return NULL;
d55e5bfc
RD
32107}
32108
32109
1bd55598
RD
32110SWIGINTERN PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32111 PyObject *resultobj = 0;
32112 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
32113 int result;
32114 void *argp1 = 0 ;
32115 int res1 = 0 ;
32116 PyObject *swig_obj[1] ;
32117
32118 if (!args) SWIG_fail;
32119 swig_obj[0] = args;
32120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
32121 if (!SWIG_IsOK(res1)) {
32122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_GetKeyCode" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
32123 }
32124 arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
32125 {
32126 PyThreadState* __tstate = wxPyBeginAllowThreads();
32127 result = (int)(arg1)->GetKeyCode();
32128 wxPyEndAllowThreads(__tstate);
32129 if (PyErr_Occurred()) SWIG_fail;
32130 }
32131 resultobj = SWIG_From_int(static_cast< int >(result));
32132 return resultobj;
32133fail:
32134 return NULL;
d55e5bfc
RD
32135}
32136
32137
1bd55598
RD
32138SWIGINTERN PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32139 PyObject *resultobj = 0;
32140 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
32141 int result;
32142 void *argp1 = 0 ;
32143 int res1 = 0 ;
32144 PyObject *swig_obj[1] ;
32145
32146 if (!args) SWIG_fail;
32147 swig_obj[0] = args;
32148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
32149 if (!SWIG_IsOK(res1)) {
32150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_GetCommand" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
32151 }
32152 arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
32153 {
32154 PyThreadState* __tstate = wxPyBeginAllowThreads();
32155 result = (int)(arg1)->GetCommand();
32156 wxPyEndAllowThreads(__tstate);
32157 if (PyErr_Occurred()) SWIG_fail;
32158 }
32159 resultobj = SWIG_From_int(static_cast< int >(result));
32160 return resultobj;
32161fail:
32162 return NULL;
d55e5bfc
RD
32163}
32164
32165
ac5d357a
RD
32166SWIGINTERN PyObject *_wrap_AcceleratorEntry_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32167 PyObject *resultobj = 0;
32168 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
32169 bool result;
32170 void *argp1 = 0 ;
32171 int res1 = 0 ;
32172 PyObject *swig_obj[1] ;
32173
32174 if (!args) SWIG_fail;
32175 swig_obj[0] = args;
32176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
32177 if (!SWIG_IsOK(res1)) {
32178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_IsOk" "', expected argument " "1"" of type '" "wxAcceleratorEntry const *""'");
32179 }
32180 arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
32181 {
32182 PyThreadState* __tstate = wxPyBeginAllowThreads();
32183 result = (bool)((wxAcceleratorEntry const *)arg1)->IsOk();
32184 wxPyEndAllowThreads(__tstate);
32185 if (PyErr_Occurred()) SWIG_fail;
32186 }
32187 {
32188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32189 }
32190 return resultobj;
32191fail:
32192 return NULL;
32193}
32194
32195
32196SWIGINTERN PyObject *_wrap_AcceleratorEntry_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32197 PyObject *resultobj = 0;
32198 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
32199 wxString result;
32200 void *argp1 = 0 ;
32201 int res1 = 0 ;
32202 PyObject *swig_obj[1] ;
32203
32204 if (!args) SWIG_fail;
32205 swig_obj[0] = args;
32206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
32207 if (!SWIG_IsOK(res1)) {
32208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_ToString" "', expected argument " "1"" of type '" "wxAcceleratorEntry const *""'");
32209 }
32210 arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
32211 {
32212 PyThreadState* __tstate = wxPyBeginAllowThreads();
32213 result = ((wxAcceleratorEntry const *)arg1)->ToString();
32214 wxPyEndAllowThreads(__tstate);
32215 if (PyErr_Occurred()) SWIG_fail;
32216 }
32217 {
32218#if wxUSE_UNICODE
32219 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32220#else
32221 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32222#endif
32223 }
32224 return resultobj;
32225fail:
32226 return NULL;
32227}
32228
32229
32230SWIGINTERN PyObject *_wrap_AcceleratorEntry_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32231 PyObject *resultobj = 0;
32232 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
32233 wxString *arg2 = 0 ;
32234 bool result;
32235 void *argp1 = 0 ;
32236 int res1 = 0 ;
32237 bool temp2 = false ;
32238 PyObject * obj0 = 0 ;
32239 PyObject * obj1 = 0 ;
32240 char * kwnames[] = {
32241 (char *) "self",(char *) "str", NULL
32242 };
32243
32244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
32245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
32246 if (!SWIG_IsOK(res1)) {
32247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_FromString" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
32248 }
32249 arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
32250 {
32251 arg2 = wxString_in_helper(obj1);
32252 if (arg2 == NULL) SWIG_fail;
32253 temp2 = true;
32254 }
32255 {
32256 PyThreadState* __tstate = wxPyBeginAllowThreads();
32257 result = (bool)(arg1)->FromString((wxString const &)*arg2);
32258 wxPyEndAllowThreads(__tstate);
32259 if (PyErr_Occurred()) SWIG_fail;
32260 }
32261 {
32262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32263 }
32264 {
32265 if (temp2)
32266 delete arg2;
32267 }
32268 return resultobj;
32269fail:
32270 {
32271 if (temp2)
32272 delete arg2;
32273 }
32274 return NULL;
32275}
32276
32277
1bd55598
RD
32278SWIGINTERN PyObject *AcceleratorEntry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32279 PyObject *obj;
32280 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32281 SWIG_TypeNewClientData(SWIGTYPE_p_wxAcceleratorEntry, SWIG_NewClientData(obj));
32282 return SWIG_Py_Void();
d55e5bfc
RD
32283}
32284
1bd55598
RD
32285SWIGINTERN PyObject *AcceleratorEntry_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32286 return SWIG_Python_InitShadowInstance(args);
32287}
d55e5bfc 32288
1bd55598
RD
32289SWIGINTERN PyObject *_wrap_new_AcceleratorTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32290 PyObject *resultobj = 0;
32291 int arg1 ;
32292 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
32293 wxAcceleratorTable *result = 0 ;
32294 PyObject * obj0 = 0 ;
32295 char * kwnames[] = {
32296 (char *) "n", NULL
32297 };
32298
32299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) SWIG_fail;
32300 {
32301 arg2 = wxAcceleratorEntry_LIST_helper(obj0);
32302 if (arg2) arg1 = PyList_Size(obj0);
32303 else arg1 = 0;
32304 }
32305 {
32306 PyThreadState* __tstate = wxPyBeginAllowThreads();
32307 result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2);
32308 wxPyEndAllowThreads(__tstate);
32309 if (PyErr_Occurred()) SWIG_fail;
32310 }
32311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_NEW | 0 );
32312 return resultobj;
32313fail:
32314 return NULL;
d55e5bfc
RD
32315}
32316
32317
1bd55598
RD
32318SWIGINTERN PyObject *_wrap_delete_AcceleratorTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32319 PyObject *resultobj = 0;
32320 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
32321 void *argp1 = 0 ;
32322 int res1 = 0 ;
32323 PyObject *swig_obj[1] ;
32324
32325 if (!args) SWIG_fail;
32326 swig_obj[0] = args;
32327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_DISOWN | 0 );
32328 if (!SWIG_IsOK(res1)) {
32329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AcceleratorTable" "', expected argument " "1"" of type '" "wxAcceleratorTable *""'");
32330 }
32331 arg1 = reinterpret_cast< wxAcceleratorTable * >(argp1);
32332 {
32333 PyThreadState* __tstate = wxPyBeginAllowThreads();
32334 delete arg1;
d55e5bfc 32335
1bd55598
RD
32336 wxPyEndAllowThreads(__tstate);
32337 if (PyErr_Occurred()) SWIG_fail;
32338 }
32339 resultobj = SWIG_Py_Void();
32340 return resultobj;
32341fail:
32342 return NULL;
d55e5bfc
RD
32343}
32344
32345
b39fe951 32346SWIGINTERN PyObject *_wrap_AcceleratorTable_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
32347 PyObject *resultobj = 0;
32348 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
32349 bool result;
32350 void *argp1 = 0 ;
32351 int res1 = 0 ;
32352 PyObject *swig_obj[1] ;
32353
32354 if (!args) SWIG_fail;
32355 swig_obj[0] = args;
32356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorTable, 0 | 0 );
32357 if (!SWIG_IsOK(res1)) {
b39fe951 32358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorTable_IsOk" "', expected argument " "1"" of type '" "wxAcceleratorTable const *""'");
1bd55598
RD
32359 }
32360 arg1 = reinterpret_cast< wxAcceleratorTable * >(argp1);
32361 {
32362 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 32363 result = (bool)((wxAcceleratorTable const *)arg1)->IsOk();
1bd55598
RD
32364 wxPyEndAllowThreads(__tstate);
32365 if (PyErr_Occurred()) SWIG_fail;
32366 }
32367 {
32368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32369 }
32370 return resultobj;
32371fail:
32372 return NULL;
d55e5bfc
RD
32373}
32374
32375
1bd55598
RD
32376SWIGINTERN PyObject *AcceleratorTable_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32377 PyObject *obj;
32378 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32379 SWIG_TypeNewClientData(SWIGTYPE_p_wxAcceleratorTable, SWIG_NewClientData(obj));
32380 return SWIG_Py_Void();
d55e5bfc
RD
32381}
32382
1bd55598
RD
32383SWIGINTERN PyObject *AcceleratorTable_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32384 return SWIG_Python_InitShadowInstance(args);
32385}
d55e5bfc 32386
1bd55598
RD
32387SWIGINTERN int NullAcceleratorTable_set(PyObject *) {
32388 SWIG_Error(SWIG_AttributeError,"Variable NullAcceleratorTable is read-only.");
32389 return 1;
d55e5bfc
RD
32390}
32391
32392
1bd55598
RD
32393SWIGINTERN PyObject *NullAcceleratorTable_get(void) {
32394 PyObject *pyobj = 0;
32395
32396 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0 );
32397 return pyobj;
d55e5bfc
RD
32398}
32399
32400
1bd55598
RD
32401SWIGINTERN PyObject *_wrap_GetAccelFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32402 PyObject *resultobj = 0;
32403 wxString *arg1 = 0 ;
32404 wxAcceleratorEntry *result = 0 ;
32405 bool temp1 = false ;
32406 PyObject * obj0 = 0 ;
32407 char * kwnames[] = {
32408 (char *) "label", NULL
32409 };
32410
32411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) SWIG_fail;
32412 {
32413 arg1 = wxString_in_helper(obj0);
32414 if (arg1 == NULL) SWIG_fail;
32415 temp1 = true;
32416 }
32417 {
32418 PyThreadState* __tstate = wxPyBeginAllowThreads();
32419 result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1);
32420 wxPyEndAllowThreads(__tstate);
32421 if (PyErr_Occurred()) SWIG_fail;
32422 }
32423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
32424 {
32425 if (temp1)
32426 delete arg1;
32427 }
32428 return resultobj;
32429fail:
32430 {
32431 if (temp1)
32432 delete arg1;
32433 }
32434 return NULL;
d55e5bfc
RD
32435}
32436
32437
1bd55598
RD
32438SWIGINTERN int PanelNameStr_set(PyObject *) {
32439 SWIG_Error(SWIG_AttributeError,"Variable PanelNameStr is read-only.");
32440 return 1;
d55e5bfc
RD
32441}
32442
32443
1bd55598
RD
32444SWIGINTERN PyObject *PanelNameStr_get(void) {
32445 PyObject *pyobj = 0;
32446
32447 {
32448#if wxUSE_UNICODE
32449 pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
32450#else
32451 pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
32452#endif
32453 }
32454 return pyobj;
d55e5bfc
RD
32455}
32456
32457
1bd55598
RD
32458SWIGINTERN PyObject *_wrap_new_VisualAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32459 PyObject *resultobj = 0;
32460 wxVisualAttributes *result = 0 ;
32461
32462 if (!SWIG_Python_UnpackTuple(args,"new_VisualAttributes",0,0,0)) SWIG_fail;
32463 {
32464 PyThreadState* __tstate = wxPyBeginAllowThreads();
32465 result = (wxVisualAttributes *)new_wxVisualAttributes();
32466 wxPyEndAllowThreads(__tstate);
32467 if (PyErr_Occurred()) SWIG_fail;
32468 }
32469 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_NEW | 0 );
32470 return resultobj;
32471fail:
32472 return NULL;
d55e5bfc
RD
32473}
32474
32475
1bd55598
RD
32476SWIGINTERN PyObject *_wrap_delete_VisualAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32477 PyObject *resultobj = 0;
32478 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
32479 void *argp1 = 0 ;
32480 int res1 = 0 ;
32481 PyObject *swig_obj[1] ;
32482
32483 if (!args) SWIG_fail;
32484 swig_obj[0] = args;
32485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_DISOWN | 0 );
32486 if (!SWIG_IsOK(res1)) {
32487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VisualAttributes" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
32488 }
32489 arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
32490 {
32491 PyThreadState* __tstate = wxPyBeginAllowThreads();
32492 delete_wxVisualAttributes(arg1);
d55e5bfc 32493
1bd55598
RD
32494 wxPyEndAllowThreads(__tstate);
32495 if (PyErr_Occurred()) SWIG_fail;
32496 }
32497 resultobj = SWIG_Py_Void();
32498 return resultobj;
32499fail:
32500 return NULL;
32501}
32502
32503
32504SWIGINTERN PyObject *_wrap_VisualAttributes_font_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32505 PyObject *resultobj = 0;
32506 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
32507 wxFont *arg2 = (wxFont *) 0 ;
32508 void *argp1 = 0 ;
32509 int res1 = 0 ;
32510 void *argp2 = 0 ;
32511 int res2 = 0 ;
32512 PyObject *swig_obj[2] ;
32513
32514 if (!SWIG_Python_UnpackTuple(args,"VisualAttributes_font_set",2,2,swig_obj)) SWIG_fail;
32515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, 0 | 0 );
32516 if (!SWIG_IsOK(res1)) {
32517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VisualAttributes_font_set" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
32518 }
32519 arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
32520 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32521 if (!SWIG_IsOK(res2)) {
32522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VisualAttributes_font_set" "', expected argument " "2"" of type '" "wxFont *""'");
32523 }
32524 arg2 = reinterpret_cast< wxFont * >(argp2);
32525 if (arg1) (arg1)->font = *arg2;
32526
32527 resultobj = SWIG_Py_Void();
32528 return resultobj;
32529fail:
32530 return NULL;
d55e5bfc
RD
32531}
32532
32533
1bd55598
RD
32534SWIGINTERN PyObject *_wrap_VisualAttributes_font_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32535 PyObject *resultobj = 0;
32536 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
32537 wxFont *result = 0 ;
32538 void *argp1 = 0 ;
32539 int res1 = 0 ;
32540 PyObject *swig_obj[1] ;
32541
32542 if (!args) SWIG_fail;
32543 swig_obj[0] = args;
32544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, 0 | 0 );
32545 if (!SWIG_IsOK(res1)) {
32546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VisualAttributes_font_get" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
32547 }
32548 arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
32549 result = (wxFont *)& ((arg1)->font);
32550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32551 return resultobj;
32552fail:
32553 return NULL;
32554}
32555
32556
32557SWIGINTERN PyObject *_wrap_VisualAttributes_colFg_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32558 PyObject *resultobj = 0;
32559 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
32560 wxColour *arg2 = (wxColour *) 0 ;
32561 void *argp1 = 0 ;
32562 int res1 = 0 ;
32563 void *argp2 = 0 ;
32564 int res2 = 0 ;
32565 PyObject *swig_obj[2] ;
32566
32567 if (!SWIG_Python_UnpackTuple(args,"VisualAttributes_colFg_set",2,2,swig_obj)) SWIG_fail;
32568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, 0 | 0 );
32569 if (!SWIG_IsOK(res1)) {
32570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VisualAttributes_colFg_set" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
32571 }
32572 arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
32573 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxColour, 0 | 0 );
32574 if (!SWIG_IsOK(res2)) {
32575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VisualAttributes_colFg_set" "', expected argument " "2"" of type '" "wxColour *""'");
32576 }
32577 arg2 = reinterpret_cast< wxColour * >(argp2);
32578 if (arg1) (arg1)->colFg = *arg2;
32579
32580 resultobj = SWIG_Py_Void();
32581 return resultobj;
32582fail:
32583 return NULL;
d55e5bfc
RD
32584}
32585
32586
1bd55598
RD
32587SWIGINTERN PyObject *_wrap_VisualAttributes_colFg_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32588 PyObject *resultobj = 0;
32589 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
32590 wxColour *result = 0 ;
32591 void *argp1 = 0 ;
32592 int res1 = 0 ;
32593 PyObject *swig_obj[1] ;
32594
32595 if (!args) SWIG_fail;
32596 swig_obj[0] = args;
32597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, 0 | 0 );
32598 if (!SWIG_IsOK(res1)) {
32599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VisualAttributes_colFg_get" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
32600 }
32601 arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
32602 result = (wxColour *)& ((arg1)->colFg);
32603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32604 return resultobj;
32605fail:
32606 return NULL;
32607}
32608
32609
32610SWIGINTERN PyObject *_wrap_VisualAttributes_colBg_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32611 PyObject *resultobj = 0;
32612 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
32613 wxColour *arg2 = (wxColour *) 0 ;
32614 void *argp1 = 0 ;
32615 int res1 = 0 ;
32616 void *argp2 = 0 ;
32617 int res2 = 0 ;
32618 PyObject *swig_obj[2] ;
32619
32620 if (!SWIG_Python_UnpackTuple(args,"VisualAttributes_colBg_set",2,2,swig_obj)) SWIG_fail;
32621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, 0 | 0 );
32622 if (!SWIG_IsOK(res1)) {
32623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VisualAttributes_colBg_set" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
32624 }
32625 arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
32626 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxColour, 0 | 0 );
32627 if (!SWIG_IsOK(res2)) {
32628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VisualAttributes_colBg_set" "', expected argument " "2"" of type '" "wxColour *""'");
32629 }
32630 arg2 = reinterpret_cast< wxColour * >(argp2);
32631 if (arg1) (arg1)->colBg = *arg2;
32632
32633 resultobj = SWIG_Py_Void();
32634 return resultobj;
32635fail:
32636 return NULL;
d55e5bfc
RD
32637}
32638
32639
1bd55598
RD
32640SWIGINTERN PyObject *_wrap_VisualAttributes_colBg_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32641 PyObject *resultobj = 0;
32642 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
32643 wxColour *result = 0 ;
32644 void *argp1 = 0 ;
32645 int res1 = 0 ;
32646 PyObject *swig_obj[1] ;
32647
32648 if (!args) SWIG_fail;
32649 swig_obj[0] = args;
32650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, 0 | 0 );
32651 if (!SWIG_IsOK(res1)) {
32652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VisualAttributes_colBg_get" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
32653 }
32654 arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
32655 result = (wxColour *)& ((arg1)->colBg);
32656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32657 return resultobj;
32658fail:
32659 return NULL;
32660}
32661
32662
32663SWIGINTERN PyObject *VisualAttributes_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32664 PyObject *obj;
32665 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32666 SWIG_TypeNewClientData(SWIGTYPE_p_wxVisualAttributes, SWIG_NewClientData(obj));
32667 return SWIG_Py_Void();
32668}
32669
32670SWIGINTERN PyObject *VisualAttributes_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32671 return SWIG_Python_InitShadowInstance(args);
32672}
32673
32674SWIGINTERN PyObject *_wrap_new_Window(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32675 PyObject *resultobj = 0;
32676 wxWindow *arg1 = (wxWindow *) 0 ;
32677 int arg2 = (int) (int)-1 ;
32678 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32679 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32680 wxSize const &arg4_defvalue = wxDefaultSize ;
32681 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32682 long arg5 = (long) 0 ;
32683 wxString const &arg6_defvalue = wxPyPanelNameStr ;
32684 wxString *arg6 = (wxString *) &arg6_defvalue ;
32685 wxWindow *result = 0 ;
32686 void *argp1 = 0 ;
32687 int res1 = 0 ;
32688 int val2 ;
32689 int ecode2 = 0 ;
32690 wxPoint temp3 ;
32691 wxSize temp4 ;
32692 long val5 ;
32693 int ecode5 = 0 ;
32694 bool temp6 = false ;
32695 PyObject * obj0 = 0 ;
32696 PyObject * obj1 = 0 ;
32697 PyObject * obj2 = 0 ;
32698 PyObject * obj3 = 0 ;
32699 PyObject * obj4 = 0 ;
32700 PyObject * obj5 = 0 ;
32701 char * kwnames[] = {
32702 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
32703 };
32704
32705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32707 if (!SWIG_IsOK(res1)) {
32708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Window" "', expected argument " "1"" of type '" "wxWindow *""'");
32709 }
32710 arg1 = reinterpret_cast< wxWindow * >(argp1);
32711 if (obj1) {
32712 ecode2 = SWIG_AsVal_int(obj1, &val2);
32713 if (!SWIG_IsOK(ecode2)) {
32714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Window" "', expected argument " "2"" of type '" "int""'");
32715 }
32716 arg2 = static_cast< int >(val2);
32717 }
32718 if (obj2) {
d55e5bfc 32719 {
1bd55598
RD
32720 arg3 = &temp3;
32721 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 32722 }
1bd55598
RD
32723 }
32724 if (obj3) {
d55e5bfc 32725 {
1bd55598
RD
32726 arg4 = &temp4;
32727 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 32728 }
1bd55598
RD
32729 }
32730 if (obj4) {
32731 ecode5 = SWIG_AsVal_long(obj4, &val5);
32732 if (!SWIG_IsOK(ecode5)) {
32733 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Window" "', expected argument " "5"" of type '" "long""'");
32734 }
32735 arg5 = static_cast< long >(val5);
32736 }
32737 if (obj5) {
d55e5bfc 32738 {
1bd55598
RD
32739 arg6 = wxString_in_helper(obj5);
32740 if (arg6 == NULL) SWIG_fail;
32741 temp6 = true;
d55e5bfc 32742 }
1bd55598
RD
32743 }
32744 {
32745 if (!wxPyCheckForApp()) SWIG_fail;
32746 PyThreadState* __tstate = wxPyBeginAllowThreads();
32747 result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
32748 wxPyEndAllowThreads(__tstate);
32749 if (PyErr_Occurred()) SWIG_fail;
32750 }
32751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindow, SWIG_POINTER_NEW | 0 );
32752 {
32753 if (temp6)
32754 delete arg6;
32755 }
32756 return resultobj;
32757fail:
32758 {
32759 if (temp6)
32760 delete arg6;
32761 }
32762 return NULL;
d55e5bfc
RD
32763}
32764
32765
1bd55598
RD
32766SWIGINTERN PyObject *_wrap_new_PreWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32767 PyObject *resultobj = 0;
32768 wxWindow *result = 0 ;
32769
32770 if (!SWIG_Python_UnpackTuple(args,"new_PreWindow",0,0,0)) SWIG_fail;
32771 {
32772 if (!wxPyCheckForApp()) SWIG_fail;
32773 PyThreadState* __tstate = wxPyBeginAllowThreads();
32774 result = (wxWindow *)new wxWindow();
32775 wxPyEndAllowThreads(__tstate);
32776 if (PyErr_Occurred()) SWIG_fail;
32777 }
32778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindow, SWIG_POINTER_OWN | 0 );
32779 return resultobj;
32780fail:
32781 return NULL;
32782}
32783
32784
32785SWIGINTERN PyObject *_wrap_Window_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32786 PyObject *resultobj = 0;
32787 wxWindow *arg1 = (wxWindow *) 0 ;
32788 wxWindow *arg2 = (wxWindow *) 0 ;
32789 int arg3 = (int) (int)-1 ;
32790 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32791 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32792 wxSize const &arg5_defvalue = wxDefaultSize ;
32793 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32794 long arg6 = (long) 0 ;
32795 wxString const &arg7_defvalue = wxPyPanelNameStr ;
32796 wxString *arg7 = (wxString *) &arg7_defvalue ;
32797 bool result;
32798 void *argp1 = 0 ;
32799 int res1 = 0 ;
32800 void *argp2 = 0 ;
32801 int res2 = 0 ;
32802 int val3 ;
32803 int ecode3 = 0 ;
32804 wxPoint temp4 ;
32805 wxSize temp5 ;
32806 long val6 ;
32807 int ecode6 = 0 ;
32808 bool temp7 = false ;
32809 PyObject * obj0 = 0 ;
32810 PyObject * obj1 = 0 ;
32811 PyObject * obj2 = 0 ;
32812 PyObject * obj3 = 0 ;
32813 PyObject * obj4 = 0 ;
32814 PyObject * obj5 = 0 ;
32815 PyObject * obj6 = 0 ;
32816 char * kwnames[] = {
32817 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
32818 };
32819
32820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32822 if (!SWIG_IsOK(res1)) {
32823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
32824 }
32825 arg1 = reinterpret_cast< wxWindow * >(argp1);
32826 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32827 if (!SWIG_IsOK(res2)) {
32828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32829 }
32830 arg2 = reinterpret_cast< wxWindow * >(argp2);
32831 if (obj2) {
32832 ecode3 = SWIG_AsVal_int(obj2, &val3);
32833 if (!SWIG_IsOK(ecode3)) {
32834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_Create" "', expected argument " "3"" of type '" "int""'");
32835 }
32836 arg3 = static_cast< int >(val3);
32837 }
32838 if (obj3) {
d55e5bfc 32839 {
1bd55598
RD
32840 arg4 = &temp4;
32841 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 32842 }
1bd55598
RD
32843 }
32844 if (obj4) {
d55e5bfc 32845 {
1bd55598
RD
32846 arg5 = &temp5;
32847 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 32848 }
1bd55598
RD
32849 }
32850 if (obj5) {
32851 ecode6 = SWIG_AsVal_long(obj5, &val6);
32852 if (!SWIG_IsOK(ecode6)) {
32853 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Window_Create" "', expected argument " "6"" of type '" "long""'");
32854 }
32855 arg6 = static_cast< long >(val6);
32856 }
32857 if (obj6) {
d55e5bfc 32858 {
1bd55598
RD
32859 arg7 = wxString_in_helper(obj6);
32860 if (arg7 == NULL) SWIG_fail;
32861 temp7 = true;
d55e5bfc 32862 }
1bd55598
RD
32863 }
32864 {
32865 PyThreadState* __tstate = wxPyBeginAllowThreads();
32866 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
32867 wxPyEndAllowThreads(__tstate);
32868 if (PyErr_Occurred()) SWIG_fail;
32869 }
32870 {
32871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32872 }
32873 {
32874 if (temp7)
32875 delete arg7;
32876 }
32877 return resultobj;
32878fail:
32879 {
32880 if (temp7)
32881 delete arg7;
32882 }
32883 return NULL;
32884}
32885
32886
32887SWIGINTERN PyObject *_wrap_Window_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32888 PyObject *resultobj = 0;
32889 wxWindow *arg1 = (wxWindow *) 0 ;
32890 bool arg2 = (bool) false ;
32891 bool result;
32892 void *argp1 = 0 ;
32893 int res1 = 0 ;
32894 bool val2 ;
32895 int ecode2 = 0 ;
32896 PyObject * obj0 = 0 ;
32897 PyObject * obj1 = 0 ;
32898 char * kwnames[] = {
32899 (char *) "self",(char *) "force", NULL
32900 };
32901
32902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) SWIG_fail;
32903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32904 if (!SWIG_IsOK(res1)) {
32905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Close" "', expected argument " "1"" of type '" "wxWindow *""'");
32906 }
32907 arg1 = reinterpret_cast< wxWindow * >(argp1);
32908 if (obj1) {
32909 ecode2 = SWIG_AsVal_bool(obj1, &val2);
32910 if (!SWIG_IsOK(ecode2)) {
32911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Close" "', expected argument " "2"" of type '" "bool""'");
32912 }
32913 arg2 = static_cast< bool >(val2);
32914 }
32915 {
32916 PyThreadState* __tstate = wxPyBeginAllowThreads();
32917 result = (bool)(arg1)->Close(arg2);
32918 wxPyEndAllowThreads(__tstate);
32919 if (PyErr_Occurred()) SWIG_fail;
32920 }
32921 {
32922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32923 }
32924 return resultobj;
32925fail:
32926 return NULL;
d55e5bfc
RD
32927}
32928
32929
1bd55598
RD
32930SWIGINTERN PyObject *_wrap_Window_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32931 PyObject *resultobj = 0;
32932 wxWindow *arg1 = (wxWindow *) 0 ;
32933 bool result;
32934 void *argp1 = 0 ;
32935 int res1 = 0 ;
32936 PyObject *swig_obj[1] ;
32937
32938 if (!args) SWIG_fail;
32939 swig_obj[0] = args;
32940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32941 if (!SWIG_IsOK(res1)) {
32942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Destroy" "', expected argument " "1"" of type '" "wxWindow *""'");
32943 }
32944 arg1 = reinterpret_cast< wxWindow * >(argp1);
32945 {
32946 PyThreadState* __tstate = wxPyBeginAllowThreads();
32947 result = (bool)(arg1)->Destroy();
32948 wxPyEndAllowThreads(__tstate);
32949 if (PyErr_Occurred()) SWIG_fail;
32950 }
32951 {
32952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32953 }
32954 return resultobj;
32955fail:
32956 return NULL;
d55e5bfc
RD
32957}
32958
32959
1bd55598
RD
32960SWIGINTERN PyObject *_wrap_Window_DestroyChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32961 PyObject *resultobj = 0;
32962 wxWindow *arg1 = (wxWindow *) 0 ;
32963 bool result;
32964 void *argp1 = 0 ;
32965 int res1 = 0 ;
32966 PyObject *swig_obj[1] ;
32967
32968 if (!args) SWIG_fail;
32969 swig_obj[0] = args;
32970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32971 if (!SWIG_IsOK(res1)) {
32972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_DestroyChildren" "', expected argument " "1"" of type '" "wxWindow *""'");
32973 }
32974 arg1 = reinterpret_cast< wxWindow * >(argp1);
32975 {
32976 PyThreadState* __tstate = wxPyBeginAllowThreads();
32977 result = (bool)(arg1)->DestroyChildren();
32978 wxPyEndAllowThreads(__tstate);
32979 if (PyErr_Occurred()) SWIG_fail;
32980 }
32981 {
32982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32983 }
32984 return resultobj;
32985fail:
32986 return NULL;
d55e5bfc
RD
32987}
32988
32989
1bd55598
RD
32990SWIGINTERN PyObject *_wrap_Window_IsBeingDeleted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32991 PyObject *resultobj = 0;
32992 wxWindow *arg1 = (wxWindow *) 0 ;
32993 bool result;
32994 void *argp1 = 0 ;
32995 int res1 = 0 ;
32996 PyObject *swig_obj[1] ;
32997
32998 if (!args) SWIG_fail;
32999 swig_obj[0] = args;
33000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33001 if (!SWIG_IsOK(res1)) {
33002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsBeingDeleted" "', expected argument " "1"" of type '" "wxWindow const *""'");
33003 }
33004 arg1 = reinterpret_cast< wxWindow * >(argp1);
33005 {
33006 PyThreadState* __tstate = wxPyBeginAllowThreads();
33007 result = (bool)((wxWindow const *)arg1)->IsBeingDeleted();
33008 wxPyEndAllowThreads(__tstate);
33009 if (PyErr_Occurred()) SWIG_fail;
33010 }
33011 {
33012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33013 }
33014 return resultobj;
33015fail:
33016 return NULL;
33017}
33018
33019
33020SWIGINTERN PyObject *_wrap_Window_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33021 PyObject *resultobj = 0;
33022 wxWindow *arg1 = (wxWindow *) 0 ;
33023 wxString *arg2 = 0 ;
33024 void *argp1 = 0 ;
33025 int res1 = 0 ;
33026 bool temp2 = false ;
33027 PyObject * obj0 = 0 ;
33028 PyObject * obj1 = 0 ;
33029 char * kwnames[] = {
33030 (char *) "self",(char *) "label", NULL
33031 };
33032
33033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33035 if (!SWIG_IsOK(res1)) {
33036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetLabel" "', expected argument " "1"" of type '" "wxWindow *""'");
33037 }
33038 arg1 = reinterpret_cast< wxWindow * >(argp1);
33039 {
33040 arg2 = wxString_in_helper(obj1);
33041 if (arg2 == NULL) SWIG_fail;
33042 temp2 = true;
33043 }
33044 {
33045 PyThreadState* __tstate = wxPyBeginAllowThreads();
33046 (arg1)->SetLabel((wxString const &)*arg2);
33047 wxPyEndAllowThreads(__tstate);
33048 if (PyErr_Occurred()) SWIG_fail;
33049 }
33050 resultobj = SWIG_Py_Void();
33051 {
33052 if (temp2)
33053 delete arg2;
33054 }
33055 return resultobj;
33056fail:
33057 {
33058 if (temp2)
33059 delete arg2;
33060 }
33061 return NULL;
d55e5bfc
RD
33062}
33063
33064
1bd55598
RD
33065SWIGINTERN PyObject *_wrap_Window_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33066 PyObject *resultobj = 0;
33067 wxWindow *arg1 = (wxWindow *) 0 ;
33068 wxString result;
33069 void *argp1 = 0 ;
33070 int res1 = 0 ;
33071 PyObject *swig_obj[1] ;
33072
33073 if (!args) SWIG_fail;
33074 swig_obj[0] = args;
33075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33076 if (!SWIG_IsOK(res1)) {
33077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetLabel" "', expected argument " "1"" of type '" "wxWindow const *""'");
33078 }
33079 arg1 = reinterpret_cast< wxWindow * >(argp1);
33080 {
33081 PyThreadState* __tstate = wxPyBeginAllowThreads();
33082 result = ((wxWindow const *)arg1)->GetLabel();
33083 wxPyEndAllowThreads(__tstate);
33084 if (PyErr_Occurred()) SWIG_fail;
33085 }
33086 {
33087#if wxUSE_UNICODE
33088 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33089#else
33090 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33091#endif
33092 }
33093 return resultobj;
33094fail:
33095 return NULL;
33096}
33097
33098
33099SWIGINTERN PyObject *_wrap_Window_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33100 PyObject *resultobj = 0;
33101 wxWindow *arg1 = (wxWindow *) 0 ;
33102 wxString *arg2 = 0 ;
33103 void *argp1 = 0 ;
33104 int res1 = 0 ;
33105 bool temp2 = false ;
33106 PyObject * obj0 = 0 ;
33107 PyObject * obj1 = 0 ;
33108 char * kwnames[] = {
33109 (char *) "self",(char *) "name", NULL
33110 };
33111
33112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) SWIG_fail;
33113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33114 if (!SWIG_IsOK(res1)) {
33115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetName" "', expected argument " "1"" of type '" "wxWindow *""'");
33116 }
33117 arg1 = reinterpret_cast< wxWindow * >(argp1);
33118 {
33119 arg2 = wxString_in_helper(obj1);
33120 if (arg2 == NULL) SWIG_fail;
33121 temp2 = true;
33122 }
33123 {
33124 PyThreadState* __tstate = wxPyBeginAllowThreads();
33125 (arg1)->SetName((wxString const &)*arg2);
33126 wxPyEndAllowThreads(__tstate);
33127 if (PyErr_Occurred()) SWIG_fail;
33128 }
33129 resultobj = SWIG_Py_Void();
33130 {
33131 if (temp2)
33132 delete arg2;
33133 }
33134 return resultobj;
33135fail:
33136 {
33137 if (temp2)
33138 delete arg2;
33139 }
33140 return NULL;
d55e5bfc
RD
33141}
33142
33143
1bd55598
RD
33144SWIGINTERN PyObject *_wrap_Window_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33145 PyObject *resultobj = 0;
33146 wxWindow *arg1 = (wxWindow *) 0 ;
33147 wxString result;
33148 void *argp1 = 0 ;
33149 int res1 = 0 ;
33150 PyObject *swig_obj[1] ;
33151
33152 if (!args) SWIG_fail;
33153 swig_obj[0] = args;
33154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33155 if (!SWIG_IsOK(res1)) {
33156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetName" "', expected argument " "1"" of type '" "wxWindow const *""'");
33157 }
33158 arg1 = reinterpret_cast< wxWindow * >(argp1);
33159 {
33160 PyThreadState* __tstate = wxPyBeginAllowThreads();
33161 result = ((wxWindow const *)arg1)->GetName();
33162 wxPyEndAllowThreads(__tstate);
33163 if (PyErr_Occurred()) SWIG_fail;
33164 }
33165 {
33166#if wxUSE_UNICODE
33167 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33168#else
33169 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33170#endif
33171 }
33172 return resultobj;
33173fail:
33174 return NULL;
33175}
33176
33177
33178SWIGINTERN PyObject *_wrap_Window_SetWindowVariant(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33179 PyObject *resultobj = 0;
33180 wxWindow *arg1 = (wxWindow *) 0 ;
33181 wxWindowVariant arg2 ;
33182 void *argp1 = 0 ;
33183 int res1 = 0 ;
33184 int val2 ;
33185 int ecode2 = 0 ;
33186 PyObject * obj0 = 0 ;
33187 PyObject * obj1 = 0 ;
33188 char * kwnames[] = {
33189 (char *) "self",(char *) "variant", NULL
33190 };
33191
33192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) SWIG_fail;
33193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33194 if (!SWIG_IsOK(res1)) {
33195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetWindowVariant" "', expected argument " "1"" of type '" "wxWindow *""'");
33196 }
33197 arg1 = reinterpret_cast< wxWindow * >(argp1);
33198 ecode2 = SWIG_AsVal_int(obj1, &val2);
33199 if (!SWIG_IsOK(ecode2)) {
33200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetWindowVariant" "', expected argument " "2"" of type '" "wxWindowVariant""'");
33201 }
33202 arg2 = static_cast< wxWindowVariant >(val2);
33203 {
33204 PyThreadState* __tstate = wxPyBeginAllowThreads();
33205 (arg1)->SetWindowVariant(arg2);
33206 wxPyEndAllowThreads(__tstate);
33207 if (PyErr_Occurred()) SWIG_fail;
33208 }
33209 resultobj = SWIG_Py_Void();
33210 return resultobj;
33211fail:
33212 return NULL;
d55e5bfc
RD
33213}
33214
33215
1bd55598
RD
33216SWIGINTERN PyObject *_wrap_Window_GetWindowVariant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33217 PyObject *resultobj = 0;
33218 wxWindow *arg1 = (wxWindow *) 0 ;
33219 wxWindowVariant result;
33220 void *argp1 = 0 ;
33221 int res1 = 0 ;
33222 PyObject *swig_obj[1] ;
33223
33224 if (!args) SWIG_fail;
33225 swig_obj[0] = args;
33226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33227 if (!SWIG_IsOK(res1)) {
33228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetWindowVariant" "', expected argument " "1"" of type '" "wxWindow const *""'");
33229 }
33230 arg1 = reinterpret_cast< wxWindow * >(argp1);
33231 {
33232 PyThreadState* __tstate = wxPyBeginAllowThreads();
33233 result = (wxWindowVariant)((wxWindow const *)arg1)->GetWindowVariant();
33234 wxPyEndAllowThreads(__tstate);
33235 if (PyErr_Occurred()) SWIG_fail;
33236 }
33237 resultobj = SWIG_From_int(static_cast< int >(result));
33238 return resultobj;
33239fail:
33240 return NULL;
33241}
33242
33243
33244SWIGINTERN PyObject *_wrap_Window_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33245 PyObject *resultobj = 0;
33246 wxWindow *arg1 = (wxWindow *) 0 ;
33247 int arg2 ;
33248 void *argp1 = 0 ;
33249 int res1 = 0 ;
33250 int val2 ;
33251 int ecode2 = 0 ;
33252 PyObject * obj0 = 0 ;
33253 PyObject * obj1 = 0 ;
33254 char * kwnames[] = {
33255 (char *) "self",(char *) "winid", NULL
33256 };
33257
33258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33260 if (!SWIG_IsOK(res1)) {
33261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetId" "', expected argument " "1"" of type '" "wxWindow *""'");
33262 }
33263 arg1 = reinterpret_cast< wxWindow * >(argp1);
33264 ecode2 = SWIG_AsVal_int(obj1, &val2);
33265 if (!SWIG_IsOK(ecode2)) {
33266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetId" "', expected argument " "2"" of type '" "int""'");
33267 }
33268 arg2 = static_cast< int >(val2);
33269 {
33270 PyThreadState* __tstate = wxPyBeginAllowThreads();
33271 (arg1)->SetId(arg2);
33272 wxPyEndAllowThreads(__tstate);
33273 if (PyErr_Occurred()) SWIG_fail;
33274 }
33275 resultobj = SWIG_Py_Void();
33276 return resultobj;
33277fail:
33278 return NULL;
d55e5bfc
RD
33279}
33280
33281
1bd55598
RD
33282SWIGINTERN PyObject *_wrap_Window_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33283 PyObject *resultobj = 0;
33284 wxWindow *arg1 = (wxWindow *) 0 ;
33285 int result;
33286 void *argp1 = 0 ;
33287 int res1 = 0 ;
33288 PyObject *swig_obj[1] ;
33289
33290 if (!args) SWIG_fail;
33291 swig_obj[0] = args;
33292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33293 if (!SWIG_IsOK(res1)) {
33294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetId" "', expected argument " "1"" of type '" "wxWindow const *""'");
33295 }
33296 arg1 = reinterpret_cast< wxWindow * >(argp1);
33297 {
33298 PyThreadState* __tstate = wxPyBeginAllowThreads();
33299 result = (int)((wxWindow const *)arg1)->GetId();
33300 wxPyEndAllowThreads(__tstate);
33301 if (PyErr_Occurred()) SWIG_fail;
33302 }
33303 resultobj = SWIG_From_int(static_cast< int >(result));
33304 return resultobj;
33305fail:
33306 return NULL;
d55e5bfc
RD
33307}
33308
33309
1bd55598
RD
33310SWIGINTERN PyObject *_wrap_Window_NewControlId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33311 PyObject *resultobj = 0;
33312 int result;
33313
33314 if (!SWIG_Python_UnpackTuple(args,"Window_NewControlId",0,0,0)) SWIG_fail;
33315 {
33316 PyThreadState* __tstate = wxPyBeginAllowThreads();
33317 result = (int)wxWindow::NewControlId();
33318 wxPyEndAllowThreads(__tstate);
33319 if (PyErr_Occurred()) SWIG_fail;
33320 }
33321 resultobj = SWIG_From_int(static_cast< int >(result));
33322 return resultobj;
33323fail:
33324 return NULL;
33325}
33326
33327
33328SWIGINTERN PyObject *_wrap_Window_NextControlId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33329 PyObject *resultobj = 0;
33330 int arg1 ;
33331 int result;
33332 int val1 ;
33333 int ecode1 = 0 ;
33334 PyObject * obj0 = 0 ;
33335 char * kwnames[] = {
33336 (char *) "winid", NULL
33337 };
33338
33339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) SWIG_fail;
33340 ecode1 = SWIG_AsVal_int(obj0, &val1);
33341 if (!SWIG_IsOK(ecode1)) {
33342 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Window_NextControlId" "', expected argument " "1"" of type '" "int""'");
33343 }
33344 arg1 = static_cast< int >(val1);
33345 {
33346 PyThreadState* __tstate = wxPyBeginAllowThreads();
33347 result = (int)wxWindow::NextControlId(arg1);
33348 wxPyEndAllowThreads(__tstate);
33349 if (PyErr_Occurred()) SWIG_fail;
33350 }
33351 resultobj = SWIG_From_int(static_cast< int >(result));
33352 return resultobj;
33353fail:
33354 return NULL;
33355}
33356
33357
33358SWIGINTERN PyObject *_wrap_Window_PrevControlId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33359 PyObject *resultobj = 0;
33360 int arg1 ;
33361 int result;
33362 int val1 ;
33363 int ecode1 = 0 ;
33364 PyObject * obj0 = 0 ;
33365 char * kwnames[] = {
33366 (char *) "winid", NULL
33367 };
33368
33369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) SWIG_fail;
33370 ecode1 = SWIG_AsVal_int(obj0, &val1);
33371 if (!SWIG_IsOK(ecode1)) {
33372 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Window_PrevControlId" "', expected argument " "1"" of type '" "int""'");
33373 }
33374 arg1 = static_cast< int >(val1);
33375 {
33376 PyThreadState* __tstate = wxPyBeginAllowThreads();
33377 result = (int)wxWindow::PrevControlId(arg1);
33378 wxPyEndAllowThreads(__tstate);
33379 if (PyErr_Occurred()) SWIG_fail;
33380 }
33381 resultobj = SWIG_From_int(static_cast< int >(result));
33382 return resultobj;
33383fail:
33384 return NULL;
33385}
33386
33387
ac5d357a
RD
33388SWIGINTERN PyObject *_wrap_Window_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33389 PyObject *resultobj = 0;
33390 wxWindow *arg1 = (wxWindow *) 0 ;
33391 wxLayoutDirection result;
33392 void *argp1 = 0 ;
33393 int res1 = 0 ;
33394 PyObject *swig_obj[1] ;
33395
33396 if (!args) SWIG_fail;
33397 swig_obj[0] = args;
33398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33399 if (!SWIG_IsOK(res1)) {
33400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetLayoutDirection" "', expected argument " "1"" of type '" "wxWindow const *""'");
33401 }
33402 arg1 = reinterpret_cast< wxWindow * >(argp1);
33403 {
33404 PyThreadState* __tstate = wxPyBeginAllowThreads();
994453b8 33405 result = (wxLayoutDirection)((wxWindow const *)arg1)->GetLayoutDirection();
ac5d357a
RD
33406 wxPyEndAllowThreads(__tstate);
33407 if (PyErr_Occurred()) SWIG_fail;
33408 }
994453b8 33409 resultobj = SWIG_From_int(static_cast< int >(result));
ac5d357a
RD
33410 return resultobj;
33411fail:
33412 return NULL;
33413}
33414
33415
33416SWIGINTERN PyObject *_wrap_Window_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33417 PyObject *resultobj = 0;
33418 wxWindow *arg1 = (wxWindow *) 0 ;
33419 wxLayoutDirection arg2 ;
33420 void *argp1 = 0 ;
33421 int res1 = 0 ;
994453b8
RD
33422 int val2 ;
33423 int ecode2 = 0 ;
ac5d357a
RD
33424 PyObject * obj0 = 0 ;
33425 PyObject * obj1 = 0 ;
33426 char * kwnames[] = {
33427 (char *) "self",(char *) "dir", NULL
33428 };
33429
33430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
33431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33432 if (!SWIG_IsOK(res1)) {
33433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetLayoutDirection" "', expected argument " "1"" of type '" "wxWindow *""'");
33434 }
33435 arg1 = reinterpret_cast< wxWindow * >(argp1);
994453b8
RD
33436 ecode2 = SWIG_AsVal_int(obj1, &val2);
33437 if (!SWIG_IsOK(ecode2)) {
33438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
33439 }
33440 arg2 = static_cast< wxLayoutDirection >(val2);
ac5d357a
RD
33441 {
33442 PyThreadState* __tstate = wxPyBeginAllowThreads();
33443 (arg1)->SetLayoutDirection(arg2);
33444 wxPyEndAllowThreads(__tstate);
33445 if (PyErr_Occurred()) SWIG_fail;
33446 }
33447 resultobj = SWIG_Py_Void();
33448 return resultobj;
33449fail:
33450 return NULL;
33451}
33452
33453
33454SWIGINTERN PyObject *_wrap_Window_AdjustForLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33455 PyObject *resultobj = 0;
33456 wxWindow *arg1 = (wxWindow *) 0 ;
33457 int arg2 ;
33458 int arg3 ;
33459 int arg4 ;
33460 int result;
33461 void *argp1 = 0 ;
33462 int res1 = 0 ;
33463 int val2 ;
33464 int ecode2 = 0 ;
33465 int val3 ;
33466 int ecode3 = 0 ;
33467 int val4 ;
33468 int ecode4 = 0 ;
33469 PyObject * obj0 = 0 ;
33470 PyObject * obj1 = 0 ;
33471 PyObject * obj2 = 0 ;
33472 PyObject * obj3 = 0 ;
33473 char * kwnames[] = {
33474 (char *) "self",(char *) "x",(char *) "width",(char *) "widthTotal", NULL
33475 };
33476
33477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_AdjustForLayoutDirection",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33479 if (!SWIG_IsOK(res1)) {
33480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_AdjustForLayoutDirection" "', expected argument " "1"" of type '" "wxWindow const *""'");
33481 }
33482 arg1 = reinterpret_cast< wxWindow * >(argp1);
33483 ecode2 = SWIG_AsVal_int(obj1, &val2);
33484 if (!SWIG_IsOK(ecode2)) {
33485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_AdjustForLayoutDirection" "', expected argument " "2"" of type '" "int""'");
33486 }
33487 arg2 = static_cast< int >(val2);
33488 ecode3 = SWIG_AsVal_int(obj2, &val3);
33489 if (!SWIG_IsOK(ecode3)) {
33490 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_AdjustForLayoutDirection" "', expected argument " "3"" of type '" "int""'");
33491 }
33492 arg3 = static_cast< int >(val3);
33493 ecode4 = SWIG_AsVal_int(obj3, &val4);
33494 if (!SWIG_IsOK(ecode4)) {
33495 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_AdjustForLayoutDirection" "', expected argument " "4"" of type '" "int""'");
33496 }
33497 arg4 = static_cast< int >(val4);
33498 {
33499 PyThreadState* __tstate = wxPyBeginAllowThreads();
33500 result = (int)((wxWindow const *)arg1)->AdjustForLayoutDirection(arg2,arg3,arg4);
33501 wxPyEndAllowThreads(__tstate);
33502 if (PyErr_Occurred()) SWIG_fail;
33503 }
33504 resultobj = SWIG_From_int(static_cast< int >(result));
33505 return resultobj;
33506fail:
33507 return NULL;
33508}
33509
33510
1bd55598
RD
33511SWIGINTERN PyObject *_wrap_Window_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33512 PyObject *resultobj = 0;
33513 wxWindow *arg1 = (wxWindow *) 0 ;
33514 wxSize *arg2 = 0 ;
33515 void *argp1 = 0 ;
33516 int res1 = 0 ;
33517 wxSize temp2 ;
33518 PyObject * obj0 = 0 ;
33519 PyObject * obj1 = 0 ;
33520 char * kwnames[] = {
33521 (char *) "self",(char *) "size", NULL
33522 };
33523
33524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
33525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33526 if (!SWIG_IsOK(res1)) {
33527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSize" "', expected argument " "1"" of type '" "wxWindow *""'");
33528 }
33529 arg1 = reinterpret_cast< wxWindow * >(argp1);
33530 {
33531 arg2 = &temp2;
33532 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
33533 }
33534 {
33535 PyThreadState* __tstate = wxPyBeginAllowThreads();
33536 (arg1)->SetSize((wxSize const &)*arg2);
33537 wxPyEndAllowThreads(__tstate);
33538 if (PyErr_Occurred()) SWIG_fail;
33539 }
33540 resultobj = SWIG_Py_Void();
33541 return resultobj;
33542fail:
33543 return NULL;
33544}
33545
33546
33547SWIGINTERN PyObject *_wrap_Window_SetDimensions(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33548 PyObject *resultobj = 0;
33549 wxWindow *arg1 = (wxWindow *) 0 ;
33550 int arg2 ;
33551 int arg3 ;
33552 int arg4 ;
33553 int arg5 ;
33554 int arg6 = (int) wxSIZE_AUTO ;
33555 void *argp1 = 0 ;
33556 int res1 = 0 ;
33557 int val2 ;
33558 int ecode2 = 0 ;
33559 int val3 ;
33560 int ecode3 = 0 ;
33561 int val4 ;
33562 int ecode4 = 0 ;
33563 int val5 ;
33564 int ecode5 = 0 ;
33565 int val6 ;
33566 int ecode6 = 0 ;
33567 PyObject * obj0 = 0 ;
33568 PyObject * obj1 = 0 ;
33569 PyObject * obj2 = 0 ;
33570 PyObject * obj3 = 0 ;
33571 PyObject * obj4 = 0 ;
33572 PyObject * obj5 = 0 ;
33573 char * kwnames[] = {
33574 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
33575 };
33576
33577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33579 if (!SWIG_IsOK(res1)) {
33580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetDimensions" "', expected argument " "1"" of type '" "wxWindow *""'");
33581 }
33582 arg1 = reinterpret_cast< wxWindow * >(argp1);
33583 ecode2 = SWIG_AsVal_int(obj1, &val2);
33584 if (!SWIG_IsOK(ecode2)) {
33585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetDimensions" "', expected argument " "2"" of type '" "int""'");
33586 }
33587 arg2 = static_cast< int >(val2);
33588 ecode3 = SWIG_AsVal_int(obj2, &val3);
33589 if (!SWIG_IsOK(ecode3)) {
33590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetDimensions" "', expected argument " "3"" of type '" "int""'");
33591 }
33592 arg3 = static_cast< int >(val3);
33593 ecode4 = SWIG_AsVal_int(obj3, &val4);
33594 if (!SWIG_IsOK(ecode4)) {
33595 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_SetDimensions" "', expected argument " "4"" of type '" "int""'");
33596 }
33597 arg4 = static_cast< int >(val4);
33598 ecode5 = SWIG_AsVal_int(obj4, &val5);
33599 if (!SWIG_IsOK(ecode5)) {
33600 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Window_SetDimensions" "', expected argument " "5"" of type '" "int""'");
33601 }
33602 arg5 = static_cast< int >(val5);
33603 if (obj5) {
33604 ecode6 = SWIG_AsVal_int(obj5, &val6);
33605 if (!SWIG_IsOK(ecode6)) {
33606 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Window_SetDimensions" "', expected argument " "6"" of type '" "int""'");
33607 }
33608 arg6 = static_cast< int >(val6);
33609 }
33610 {
33611 PyThreadState* __tstate = wxPyBeginAllowThreads();
33612 (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6);
33613 wxPyEndAllowThreads(__tstate);
33614 if (PyErr_Occurred()) SWIG_fail;
33615 }
33616 resultobj = SWIG_Py_Void();
33617 return resultobj;
33618fail:
33619 return NULL;
33620}
33621
33622
33623SWIGINTERN PyObject *_wrap_Window_SetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33624 PyObject *resultobj = 0;
33625 wxWindow *arg1 = (wxWindow *) 0 ;
33626 wxRect *arg2 = 0 ;
33627 int arg3 = (int) wxSIZE_AUTO ;
33628 void *argp1 = 0 ;
33629 int res1 = 0 ;
33630 wxRect temp2 ;
33631 int val3 ;
33632 int ecode3 = 0 ;
33633 PyObject * obj0 = 0 ;
33634 PyObject * obj1 = 0 ;
33635 PyObject * obj2 = 0 ;
33636 char * kwnames[] = {
33637 (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL
33638 };
33639
33640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33642 if (!SWIG_IsOK(res1)) {
33643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetRect" "', expected argument " "1"" of type '" "wxWindow *""'");
33644 }
33645 arg1 = reinterpret_cast< wxWindow * >(argp1);
33646 {
33647 arg2 = &temp2;
33648 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33649 }
33650 if (obj2) {
33651 ecode3 = SWIG_AsVal_int(obj2, &val3);
33652 if (!SWIG_IsOK(ecode3)) {
33653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetRect" "', expected argument " "3"" of type '" "int""'");
33654 }
33655 arg3 = static_cast< int >(val3);
33656 }
33657 {
33658 PyThreadState* __tstate = wxPyBeginAllowThreads();
33659 (arg1)->SetSize((wxRect const &)*arg2,arg3);
33660 wxPyEndAllowThreads(__tstate);
33661 if (PyErr_Occurred()) SWIG_fail;
33662 }
33663 resultobj = SWIG_Py_Void();
33664 return resultobj;
33665fail:
33666 return NULL;
33667}
33668
33669
33670SWIGINTERN PyObject *_wrap_Window_SetSizeWH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33671 PyObject *resultobj = 0;
33672 wxWindow *arg1 = (wxWindow *) 0 ;
33673 int arg2 ;
33674 int arg3 ;
33675 void *argp1 = 0 ;
33676 int res1 = 0 ;
33677 int val2 ;
33678 int ecode2 = 0 ;
33679 int val3 ;
33680 int ecode3 = 0 ;
33681 PyObject * obj0 = 0 ;
33682 PyObject * obj1 = 0 ;
33683 PyObject * obj2 = 0 ;
33684 char * kwnames[] = {
33685 (char *) "self",(char *) "width",(char *) "height", NULL
33686 };
33687
33688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33690 if (!SWIG_IsOK(res1)) {
33691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSizeWH" "', expected argument " "1"" of type '" "wxWindow *""'");
33692 }
33693 arg1 = reinterpret_cast< wxWindow * >(argp1);
33694 ecode2 = SWIG_AsVal_int(obj1, &val2);
33695 if (!SWIG_IsOK(ecode2)) {
33696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetSizeWH" "', expected argument " "2"" of type '" "int""'");
33697 }
33698 arg2 = static_cast< int >(val2);
33699 ecode3 = SWIG_AsVal_int(obj2, &val3);
33700 if (!SWIG_IsOK(ecode3)) {
33701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetSizeWH" "', expected argument " "3"" of type '" "int""'");
33702 }
33703 arg3 = static_cast< int >(val3);
33704 {
33705 PyThreadState* __tstate = wxPyBeginAllowThreads();
33706 (arg1)->SetSize(arg2,arg3);
33707 wxPyEndAllowThreads(__tstate);
33708 if (PyErr_Occurred()) SWIG_fail;
33709 }
33710 resultobj = SWIG_Py_Void();
33711 return resultobj;
33712fail:
33713 return NULL;
33714}
33715
33716
33717SWIGINTERN PyObject *_wrap_Window_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33718 PyObject *resultobj = 0;
33719 wxWindow *arg1 = (wxWindow *) 0 ;
33720 wxPoint *arg2 = 0 ;
33721 int arg3 = (int) wxSIZE_USE_EXISTING ;
33722 void *argp1 = 0 ;
33723 int res1 = 0 ;
33724 wxPoint temp2 ;
33725 int val3 ;
33726 int ecode3 = 0 ;
33727 PyObject * obj0 = 0 ;
33728 PyObject * obj1 = 0 ;
33729 PyObject * obj2 = 0 ;
33730 char * kwnames[] = {
33731 (char *) "self",(char *) "pt",(char *) "flags", NULL
33732 };
33733
33734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33736 if (!SWIG_IsOK(res1)) {
33737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Move" "', expected argument " "1"" of type '" "wxWindow *""'");
33738 }
33739 arg1 = reinterpret_cast< wxWindow * >(argp1);
33740 {
33741 arg2 = &temp2;
33742 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33743 }
33744 if (obj2) {
33745 ecode3 = SWIG_AsVal_int(obj2, &val3);
33746 if (!SWIG_IsOK(ecode3)) {
33747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_Move" "', expected argument " "3"" of type '" "int""'");
33748 }
33749 arg3 = static_cast< int >(val3);
33750 }
33751 {
33752 PyThreadState* __tstate = wxPyBeginAllowThreads();
33753 (arg1)->Move((wxPoint const &)*arg2,arg3);
33754 wxPyEndAllowThreads(__tstate);
33755 if (PyErr_Occurred()) SWIG_fail;
33756 }
33757 resultobj = SWIG_Py_Void();
33758 return resultobj;
33759fail:
33760 return NULL;
33761}
33762
33763
33764SWIGINTERN PyObject *_wrap_Window_MoveXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33765 PyObject *resultobj = 0;
33766 wxWindow *arg1 = (wxWindow *) 0 ;
33767 int arg2 ;
33768 int arg3 ;
33769 int arg4 = (int) wxSIZE_USE_EXISTING ;
33770 void *argp1 = 0 ;
33771 int res1 = 0 ;
33772 int val2 ;
33773 int ecode2 = 0 ;
33774 int val3 ;
33775 int ecode3 = 0 ;
33776 int val4 ;
33777 int ecode4 = 0 ;
33778 PyObject * obj0 = 0 ;
33779 PyObject * obj1 = 0 ;
33780 PyObject * obj2 = 0 ;
33781 PyObject * obj3 = 0 ;
33782 char * kwnames[] = {
33783 (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL
33784 };
33785
33786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33788 if (!SWIG_IsOK(res1)) {
33789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_MoveXY" "', expected argument " "1"" of type '" "wxWindow *""'");
33790 }
33791 arg1 = reinterpret_cast< wxWindow * >(argp1);
33792 ecode2 = SWIG_AsVal_int(obj1, &val2);
33793 if (!SWIG_IsOK(ecode2)) {
33794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_MoveXY" "', expected argument " "2"" of type '" "int""'");
33795 }
33796 arg2 = static_cast< int >(val2);
33797 ecode3 = SWIG_AsVal_int(obj2, &val3);
33798 if (!SWIG_IsOK(ecode3)) {
33799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_MoveXY" "', expected argument " "3"" of type '" "int""'");
33800 }
33801 arg3 = static_cast< int >(val3);
33802 if (obj3) {
33803 ecode4 = SWIG_AsVal_int(obj3, &val4);
33804 if (!SWIG_IsOK(ecode4)) {
33805 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_MoveXY" "', expected argument " "4"" of type '" "int""'");
33806 }
33807 arg4 = static_cast< int >(val4);
33808 }
33809 {
33810 PyThreadState* __tstate = wxPyBeginAllowThreads();
33811 (arg1)->Move(arg2,arg3,arg4);
33812 wxPyEndAllowThreads(__tstate);
33813 if (PyErr_Occurred()) SWIG_fail;
33814 }
33815 resultobj = SWIG_Py_Void();
33816 return resultobj;
33817fail:
33818 return NULL;
33819}
33820
33821
580080c5 33822SWIGINTERN PyObject *_wrap_Window_SetInitialSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
33823 PyObject *resultobj = 0;
33824 wxWindow *arg1 = (wxWindow *) 0 ;
33825 wxSize const &arg2_defvalue = wxDefaultSize ;
33826 wxSize *arg2 = (wxSize *) &arg2_defvalue ;
33827 void *argp1 = 0 ;
33828 int res1 = 0 ;
33829 wxSize temp2 ;
33830 PyObject * obj0 = 0 ;
33831 PyObject * obj1 = 0 ;
33832 char * kwnames[] = {
33833 (char *) "self",(char *) "size", NULL
33834 };
33835
580080c5 33836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetInitialSize",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
33837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33838 if (!SWIG_IsOK(res1)) {
580080c5 33839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetInitialSize" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
33840 }
33841 arg1 = reinterpret_cast< wxWindow * >(argp1);
33842 if (obj1) {
d55e5bfc 33843 {
1bd55598
RD
33844 arg2 = &temp2;
33845 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 33846 }
1bd55598
RD
33847 }
33848 {
33849 PyThreadState* __tstate = wxPyBeginAllowThreads();
580080c5 33850 (arg1)->SetInitialSize((wxSize const &)*arg2);
1bd55598
RD
33851 wxPyEndAllowThreads(__tstate);
33852 if (PyErr_Occurred()) SWIG_fail;
33853 }
33854 resultobj = SWIG_Py_Void();
33855 return resultobj;
33856fail:
33857 return NULL;
d55e5bfc
RD
33858}
33859
33860
1bd55598
RD
33861SWIGINTERN PyObject *_wrap_Window_Raise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33862 PyObject *resultobj = 0;
33863 wxWindow *arg1 = (wxWindow *) 0 ;
33864 void *argp1 = 0 ;
33865 int res1 = 0 ;
33866 PyObject *swig_obj[1] ;
33867
33868 if (!args) SWIG_fail;
33869 swig_obj[0] = args;
33870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33871 if (!SWIG_IsOK(res1)) {
33872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Raise" "', expected argument " "1"" of type '" "wxWindow *""'");
33873 }
33874 arg1 = reinterpret_cast< wxWindow * >(argp1);
33875 {
33876 PyThreadState* __tstate = wxPyBeginAllowThreads();
33877 (arg1)->Raise();
33878 wxPyEndAllowThreads(__tstate);
33879 if (PyErr_Occurred()) SWIG_fail;
33880 }
33881 resultobj = SWIG_Py_Void();
33882 return resultobj;
33883fail:
33884 return NULL;
d55e5bfc
RD
33885}
33886
33887
1bd55598
RD
33888SWIGINTERN PyObject *_wrap_Window_Lower(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33889 PyObject *resultobj = 0;
33890 wxWindow *arg1 = (wxWindow *) 0 ;
33891 void *argp1 = 0 ;
33892 int res1 = 0 ;
33893 PyObject *swig_obj[1] ;
33894
33895 if (!args) SWIG_fail;
33896 swig_obj[0] = args;
33897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33898 if (!SWIG_IsOK(res1)) {
33899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Lower" "', expected argument " "1"" of type '" "wxWindow *""'");
33900 }
33901 arg1 = reinterpret_cast< wxWindow * >(argp1);
33902 {
33903 PyThreadState* __tstate = wxPyBeginAllowThreads();
33904 (arg1)->Lower();
33905 wxPyEndAllowThreads(__tstate);
33906 if (PyErr_Occurred()) SWIG_fail;
33907 }
33908 resultobj = SWIG_Py_Void();
33909 return resultobj;
33910fail:
33911 return NULL;
33912}
33913
33914
33915SWIGINTERN PyObject *_wrap_Window_SetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33916 PyObject *resultobj = 0;
33917 wxWindow *arg1 = (wxWindow *) 0 ;
33918 wxSize *arg2 = 0 ;
33919 void *argp1 = 0 ;
33920 int res1 = 0 ;
33921 wxSize temp2 ;
33922 PyObject * obj0 = 0 ;
33923 PyObject * obj1 = 0 ;
33924 char * kwnames[] = {
33925 (char *) "self",(char *) "size", NULL
33926 };
33927
33928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) SWIG_fail;
33929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33930 if (!SWIG_IsOK(res1)) {
33931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetClientSize" "', expected argument " "1"" of type '" "wxWindow *""'");
33932 }
33933 arg1 = reinterpret_cast< wxWindow * >(argp1);
33934 {
33935 arg2 = &temp2;
33936 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
33937 }
33938 {
33939 PyThreadState* __tstate = wxPyBeginAllowThreads();
33940 (arg1)->SetClientSize((wxSize const &)*arg2);
33941 wxPyEndAllowThreads(__tstate);
33942 if (PyErr_Occurred()) SWIG_fail;
33943 }
33944 resultobj = SWIG_Py_Void();
33945 return resultobj;
33946fail:
33947 return NULL;
33948}
33949
33950
33951SWIGINTERN PyObject *_wrap_Window_SetClientSizeWH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33952 PyObject *resultobj = 0;
33953 wxWindow *arg1 = (wxWindow *) 0 ;
33954 int arg2 ;
33955 int arg3 ;
33956 void *argp1 = 0 ;
33957 int res1 = 0 ;
33958 int val2 ;
33959 int ecode2 = 0 ;
33960 int val3 ;
33961 int ecode3 = 0 ;
33962 PyObject * obj0 = 0 ;
33963 PyObject * obj1 = 0 ;
33964 PyObject * obj2 = 0 ;
33965 char * kwnames[] = {
33966 (char *) "self",(char *) "width",(char *) "height", NULL
33967 };
33968
33969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33971 if (!SWIG_IsOK(res1)) {
33972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetClientSizeWH" "', expected argument " "1"" of type '" "wxWindow *""'");
33973 }
33974 arg1 = reinterpret_cast< wxWindow * >(argp1);
33975 ecode2 = SWIG_AsVal_int(obj1, &val2);
33976 if (!SWIG_IsOK(ecode2)) {
33977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetClientSizeWH" "', expected argument " "2"" of type '" "int""'");
33978 }
33979 arg2 = static_cast< int >(val2);
33980 ecode3 = SWIG_AsVal_int(obj2, &val3);
33981 if (!SWIG_IsOK(ecode3)) {
33982 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetClientSizeWH" "', expected argument " "3"" of type '" "int""'");
33983 }
33984 arg3 = static_cast< int >(val3);
33985 {
33986 PyThreadState* __tstate = wxPyBeginAllowThreads();
33987 (arg1)->SetClientSize(arg2,arg3);
33988 wxPyEndAllowThreads(__tstate);
33989 if (PyErr_Occurred()) SWIG_fail;
33990 }
33991 resultobj = SWIG_Py_Void();
33992 return resultobj;
33993fail:
33994 return NULL;
33995}
33996
33997
33998SWIGINTERN PyObject *_wrap_Window_SetClientRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33999 PyObject *resultobj = 0;
34000 wxWindow *arg1 = (wxWindow *) 0 ;
34001 wxRect *arg2 = 0 ;
34002 void *argp1 = 0 ;
34003 int res1 = 0 ;
34004 wxRect temp2 ;
34005 PyObject * obj0 = 0 ;
34006 PyObject * obj1 = 0 ;
34007 char * kwnames[] = {
34008 (char *) "self",(char *) "rect", NULL
34009 };
34010
34011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) SWIG_fail;
34012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34013 if (!SWIG_IsOK(res1)) {
34014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetClientRect" "', expected argument " "1"" of type '" "wxWindow *""'");
34015 }
34016 arg1 = reinterpret_cast< wxWindow * >(argp1);
34017 {
34018 arg2 = &temp2;
34019 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
34020 }
34021 {
34022 PyThreadState* __tstate = wxPyBeginAllowThreads();
34023 (arg1)->SetClientSize((wxRect const &)*arg2);
34024 wxPyEndAllowThreads(__tstate);
34025 if (PyErr_Occurred()) SWIG_fail;
34026 }
34027 resultobj = SWIG_Py_Void();
34028 return resultobj;
34029fail:
34030 return NULL;
d55e5bfc
RD
34031}
34032
34033
1bd55598
RD
34034SWIGINTERN PyObject *_wrap_Window_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34035 PyObject *resultobj = 0;
34036 wxWindow *arg1 = (wxWindow *) 0 ;
34037 wxPoint result;
34038 void *argp1 = 0 ;
34039 int res1 = 0 ;
34040 PyObject *swig_obj[1] ;
34041
34042 if (!args) SWIG_fail;
34043 swig_obj[0] = args;
34044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34045 if (!SWIG_IsOK(res1)) {
1c71765a 34046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetPosition" "', expected argument " "1"" of type '" "wxWindow const *""'");
1bd55598
RD
34047 }
34048 arg1 = reinterpret_cast< wxWindow * >(argp1);
34049 {
34050 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a 34051 result = ((wxWindow const *)arg1)->GetPosition();
1bd55598
RD
34052 wxPyEndAllowThreads(__tstate);
34053 if (PyErr_Occurred()) SWIG_fail;
34054 }
34055 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
34056 return resultobj;
34057fail:
34058 return NULL;
34059}
34060
34061
34062SWIGINTERN PyObject *_wrap_Window_GetPositionTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34063 PyObject *resultobj = 0;
34064 wxWindow *arg1 = (wxWindow *) 0 ;
34065 int *arg2 = (int *) 0 ;
34066 int *arg3 = (int *) 0 ;
34067 void *argp1 = 0 ;
34068 int res1 = 0 ;
34069 int temp2 ;
34070 int res2 = SWIG_TMPOBJ ;
34071 int temp3 ;
34072 int res3 = SWIG_TMPOBJ ;
34073 PyObject *swig_obj[1] ;
34074
34075 arg2 = &temp2;
34076 arg3 = &temp3;
34077 if (!args) SWIG_fail;
34078 swig_obj[0] = args;
34079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34080 if (!SWIG_IsOK(res1)) {
1c71765a 34081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetPositionTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
1bd55598
RD
34082 }
34083 arg1 = reinterpret_cast< wxWindow * >(argp1);
34084 {
34085 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a
RD
34086 ((wxWindow const *)arg1)->GetPosition(arg2,arg3);
34087 wxPyEndAllowThreads(__tstate);
34088 if (PyErr_Occurred()) SWIG_fail;
34089 }
34090 resultobj = SWIG_Py_Void();
34091 if (SWIG_IsTmpObj(res2)) {
34092 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
34093 } else {
34094 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34095 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
34096 }
34097 if (SWIG_IsTmpObj(res3)) {
34098 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
34099 } else {
34100 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34101 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
34102 }
34103 return resultobj;
34104fail:
34105 return NULL;
34106}
34107
34108
34109SWIGINTERN PyObject *_wrap_Window_GetScreenPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34110 PyObject *resultobj = 0;
34111 wxWindow *arg1 = (wxWindow *) 0 ;
34112 wxPoint result;
34113 void *argp1 = 0 ;
34114 int res1 = 0 ;
34115 PyObject *swig_obj[1] ;
34116
34117 if (!args) SWIG_fail;
34118 swig_obj[0] = args;
34119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34120 if (!SWIG_IsOK(res1)) {
34121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScreenPosition" "', expected argument " "1"" of type '" "wxWindow const *""'");
34122 }
34123 arg1 = reinterpret_cast< wxWindow * >(argp1);
34124 {
34125 PyThreadState* __tstate = wxPyBeginAllowThreads();
34126 result = ((wxWindow const *)arg1)->GetScreenPosition();
34127 wxPyEndAllowThreads(__tstate);
34128 if (PyErr_Occurred()) SWIG_fail;
34129 }
34130 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
34131 return resultobj;
34132fail:
34133 return NULL;
34134}
34135
34136
34137SWIGINTERN PyObject *_wrap_Window_GetScreenPositionTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34138 PyObject *resultobj = 0;
34139 wxWindow *arg1 = (wxWindow *) 0 ;
34140 int *arg2 = (int *) 0 ;
34141 int *arg3 = (int *) 0 ;
34142 void *argp1 = 0 ;
34143 int res1 = 0 ;
34144 int temp2 ;
34145 int res2 = SWIG_TMPOBJ ;
34146 int temp3 ;
34147 int res3 = SWIG_TMPOBJ ;
34148 PyObject *swig_obj[1] ;
34149
34150 arg2 = &temp2;
34151 arg3 = &temp3;
34152 if (!args) SWIG_fail;
34153 swig_obj[0] = args;
34154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34155 if (!SWIG_IsOK(res1)) {
34156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScreenPositionTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
34157 }
34158 arg1 = reinterpret_cast< wxWindow * >(argp1);
34159 {
34160 PyThreadState* __tstate = wxPyBeginAllowThreads();
34161 ((wxWindow const *)arg1)->GetScreenPosition(arg2,arg3);
1bd55598
RD
34162 wxPyEndAllowThreads(__tstate);
34163 if (PyErr_Occurred()) SWIG_fail;
34164 }
34165 resultobj = SWIG_Py_Void();
34166 if (SWIG_IsTmpObj(res2)) {
34167 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
34168 } else {
34169 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34170 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
34171 }
34172 if (SWIG_IsTmpObj(res3)) {
34173 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
34174 } else {
34175 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34176 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
34177 }
34178 return resultobj;
34179fail:
34180 return NULL;
d55e5bfc
RD
34181}
34182
34183
1c71765a
RD
34184SWIGINTERN PyObject *_wrap_Window_GetScreenRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34185 PyObject *resultobj = 0;
34186 wxWindow *arg1 = (wxWindow *) 0 ;
34187 wxRect result;
34188 void *argp1 = 0 ;
34189 int res1 = 0 ;
34190 PyObject *swig_obj[1] ;
34191
34192 if (!args) SWIG_fail;
34193 swig_obj[0] = args;
34194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34195 if (!SWIG_IsOK(res1)) {
34196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScreenRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
34197 }
34198 arg1 = reinterpret_cast< wxWindow * >(argp1);
34199 {
34200 PyThreadState* __tstate = wxPyBeginAllowThreads();
34201 result = ((wxWindow const *)arg1)->GetScreenRect();
34202 wxPyEndAllowThreads(__tstate);
34203 if (PyErr_Occurred()) SWIG_fail;
34204 }
34205 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
34206 return resultobj;
34207fail:
34208 return NULL;
34209}
34210
34211
1bd55598
RD
34212SWIGINTERN PyObject *_wrap_Window_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34213 PyObject *resultobj = 0;
34214 wxWindow *arg1 = (wxWindow *) 0 ;
34215 wxSize result;
34216 void *argp1 = 0 ;
34217 int res1 = 0 ;
34218 PyObject *swig_obj[1] ;
34219
34220 if (!args) SWIG_fail;
34221 swig_obj[0] = args;
34222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34223 if (!SWIG_IsOK(res1)) {
34224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
34225 }
34226 arg1 = reinterpret_cast< wxWindow * >(argp1);
34227 {
34228 PyThreadState* __tstate = wxPyBeginAllowThreads();
34229 result = ((wxWindow const *)arg1)->GetSize();
34230 wxPyEndAllowThreads(__tstate);
34231 if (PyErr_Occurred()) SWIG_fail;
34232 }
34233 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
34234 return resultobj;
34235fail:
34236 return NULL;
34237}
34238
34239
34240SWIGINTERN PyObject *_wrap_Window_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34241 PyObject *resultobj = 0;
34242 wxWindow *arg1 = (wxWindow *) 0 ;
34243 int *arg2 = (int *) 0 ;
34244 int *arg3 = (int *) 0 ;
34245 void *argp1 = 0 ;
34246 int res1 = 0 ;
34247 int temp2 ;
34248 int res2 = SWIG_TMPOBJ ;
34249 int temp3 ;
34250 int res3 = SWIG_TMPOBJ ;
34251 PyObject *swig_obj[1] ;
34252
34253 arg2 = &temp2;
34254 arg3 = &temp3;
34255 if (!args) SWIG_fail;
34256 swig_obj[0] = args;
34257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34258 if (!SWIG_IsOK(res1)) {
34259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetSizeTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
34260 }
34261 arg1 = reinterpret_cast< wxWindow * >(argp1);
34262 {
34263 PyThreadState* __tstate = wxPyBeginAllowThreads();
34264 ((wxWindow const *)arg1)->GetSize(arg2,arg3);
34265 wxPyEndAllowThreads(__tstate);
34266 if (PyErr_Occurred()) SWIG_fail;
34267 }
34268 resultobj = SWIG_Py_Void();
34269 if (SWIG_IsTmpObj(res2)) {
34270 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
34271 } else {
34272 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34273 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
34274 }
34275 if (SWIG_IsTmpObj(res3)) {
34276 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
34277 } else {
34278 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34279 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
34280 }
34281 return resultobj;
34282fail:
34283 return NULL;
d55e5bfc
RD
34284}
34285
34286
1bd55598
RD
34287SWIGINTERN PyObject *_wrap_Window_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34288 PyObject *resultobj = 0;
34289 wxWindow *arg1 = (wxWindow *) 0 ;
34290 wxRect result;
34291 void *argp1 = 0 ;
34292 int res1 = 0 ;
34293 PyObject *swig_obj[1] ;
34294
34295 if (!args) SWIG_fail;
34296 swig_obj[0] = args;
34297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34298 if (!SWIG_IsOK(res1)) {
34299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
34300 }
34301 arg1 = reinterpret_cast< wxWindow * >(argp1);
34302 {
34303 PyThreadState* __tstate = wxPyBeginAllowThreads();
34304 result = ((wxWindow const *)arg1)->GetRect();
34305 wxPyEndAllowThreads(__tstate);
34306 if (PyErr_Occurred()) SWIG_fail;
34307 }
34308 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
34309 return resultobj;
34310fail:
34311 return NULL;
d55e5bfc
RD
34312}
34313
34314
1bd55598
RD
34315SWIGINTERN PyObject *_wrap_Window_GetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34316 PyObject *resultobj = 0;
34317 wxWindow *arg1 = (wxWindow *) 0 ;
34318 wxSize result;
34319 void *argp1 = 0 ;
34320 int res1 = 0 ;
34321 PyObject *swig_obj[1] ;
34322
34323 if (!args) SWIG_fail;
34324 swig_obj[0] = args;
34325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34326 if (!SWIG_IsOK(res1)) {
34327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetClientSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
34328 }
34329 arg1 = reinterpret_cast< wxWindow * >(argp1);
34330 {
34331 PyThreadState* __tstate = wxPyBeginAllowThreads();
34332 result = ((wxWindow const *)arg1)->GetClientSize();
34333 wxPyEndAllowThreads(__tstate);
34334 if (PyErr_Occurred()) SWIG_fail;
34335 }
34336 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
34337 return resultobj;
34338fail:
34339 return NULL;
34340}
34341
34342
34343SWIGINTERN PyObject *_wrap_Window_GetClientSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34344 PyObject *resultobj = 0;
34345 wxWindow *arg1 = (wxWindow *) 0 ;
34346 int *arg2 = (int *) 0 ;
34347 int *arg3 = (int *) 0 ;
34348 void *argp1 = 0 ;
34349 int res1 = 0 ;
34350 int temp2 ;
34351 int res2 = SWIG_TMPOBJ ;
34352 int temp3 ;
34353 int res3 = SWIG_TMPOBJ ;
34354 PyObject *swig_obj[1] ;
34355
34356 arg2 = &temp2;
34357 arg3 = &temp3;
34358 if (!args) SWIG_fail;
34359 swig_obj[0] = args;
34360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34361 if (!SWIG_IsOK(res1)) {
34362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetClientSizeTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
34363 }
34364 arg1 = reinterpret_cast< wxWindow * >(argp1);
34365 {
34366 PyThreadState* __tstate = wxPyBeginAllowThreads();
34367 ((wxWindow const *)arg1)->GetClientSize(arg2,arg3);
34368 wxPyEndAllowThreads(__tstate);
34369 if (PyErr_Occurred()) SWIG_fail;
34370 }
34371 resultobj = SWIG_Py_Void();
34372 if (SWIG_IsTmpObj(res2)) {
34373 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
34374 } else {
34375 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34376 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
34377 }
34378 if (SWIG_IsTmpObj(res3)) {
34379 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
34380 } else {
34381 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34382 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
34383 }
34384 return resultobj;
34385fail:
34386 return NULL;
d55e5bfc
RD
34387}
34388
34389
1bd55598
RD
34390SWIGINTERN PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34391 PyObject *resultobj = 0;
34392 wxWindow *arg1 = (wxWindow *) 0 ;
34393 wxPoint result;
34394 void *argp1 = 0 ;
34395 int res1 = 0 ;
34396 PyObject *swig_obj[1] ;
34397
34398 if (!args) SWIG_fail;
34399 swig_obj[0] = args;
34400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34401 if (!SWIG_IsOK(res1)) {
34402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetClientAreaOrigin" "', expected argument " "1"" of type '" "wxWindow const *""'");
34403 }
34404 arg1 = reinterpret_cast< wxWindow * >(argp1);
34405 {
34406 PyThreadState* __tstate = wxPyBeginAllowThreads();
34407 result = ((wxWindow const *)arg1)->GetClientAreaOrigin();
34408 wxPyEndAllowThreads(__tstate);
34409 if (PyErr_Occurred()) SWIG_fail;
34410 }
34411 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
34412 return resultobj;
34413fail:
34414 return NULL;
d55e5bfc
RD
34415}
34416
34417
1bd55598
RD
34418SWIGINTERN PyObject *_wrap_Window_GetClientRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34419 PyObject *resultobj = 0;
34420 wxWindow *arg1 = (wxWindow *) 0 ;
34421 wxRect result;
34422 void *argp1 = 0 ;
34423 int res1 = 0 ;
34424 PyObject *swig_obj[1] ;
34425
34426 if (!args) SWIG_fail;
34427 swig_obj[0] = args;
34428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34429 if (!SWIG_IsOK(res1)) {
34430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetClientRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
34431 }
34432 arg1 = reinterpret_cast< wxWindow * >(argp1);
34433 {
34434 PyThreadState* __tstate = wxPyBeginAllowThreads();
34435 result = ((wxWindow const *)arg1)->GetClientRect();
34436 wxPyEndAllowThreads(__tstate);
34437 if (PyErr_Occurred()) SWIG_fail;
34438 }
34439 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
34440 return resultobj;
34441fail:
34442 return NULL;
d55e5bfc
RD
34443}
34444
34445
1bd55598
RD
34446SWIGINTERN PyObject *_wrap_Window_GetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34447 PyObject *resultobj = 0;
34448 wxWindow *arg1 = (wxWindow *) 0 ;
34449 wxSize result;
34450 void *argp1 = 0 ;
34451 int res1 = 0 ;
34452 PyObject *swig_obj[1] ;
34453
34454 if (!args) SWIG_fail;
34455 swig_obj[0] = args;
34456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34457 if (!SWIG_IsOK(res1)) {
34458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBestSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
34459 }
34460 arg1 = reinterpret_cast< wxWindow * >(argp1);
34461 {
34462 PyThreadState* __tstate = wxPyBeginAllowThreads();
34463 result = ((wxWindow const *)arg1)->GetBestSize();
34464 wxPyEndAllowThreads(__tstate);
34465 if (PyErr_Occurred()) SWIG_fail;
34466 }
34467 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
34468 return resultobj;
34469fail:
34470 return NULL;
34471}
34472
34473
34474SWIGINTERN PyObject *_wrap_Window_GetBestSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34475 PyObject *resultobj = 0;
34476 wxWindow *arg1 = (wxWindow *) 0 ;
34477 int *arg2 = (int *) 0 ;
34478 int *arg3 = (int *) 0 ;
34479 void *argp1 = 0 ;
34480 int res1 = 0 ;
34481 int temp2 ;
34482 int res2 = SWIG_TMPOBJ ;
34483 int temp3 ;
34484 int res3 = SWIG_TMPOBJ ;
34485 PyObject *swig_obj[1] ;
34486
34487 arg2 = &temp2;
34488 arg3 = &temp3;
34489 if (!args) SWIG_fail;
34490 swig_obj[0] = args;
34491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34492 if (!SWIG_IsOK(res1)) {
34493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBestSizeTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
34494 }
34495 arg1 = reinterpret_cast< wxWindow * >(argp1);
34496 {
34497 PyThreadState* __tstate = wxPyBeginAllowThreads();
34498 ((wxWindow const *)arg1)->GetBestSize(arg2,arg3);
34499 wxPyEndAllowThreads(__tstate);
34500 if (PyErr_Occurred()) SWIG_fail;
34501 }
34502 resultobj = SWIG_Py_Void();
34503 if (SWIG_IsTmpObj(res2)) {
34504 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
34505 } else {
34506 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34507 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
34508 }
34509 if (SWIG_IsTmpObj(res3)) {
34510 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
34511 } else {
34512 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34513 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
34514 }
34515 return resultobj;
34516fail:
34517 return NULL;
d55e5bfc
RD
34518}
34519
34520
1bd55598
RD
34521SWIGINTERN PyObject *_wrap_Window_InvalidateBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34522 PyObject *resultobj = 0;
34523 wxWindow *arg1 = (wxWindow *) 0 ;
34524 void *argp1 = 0 ;
34525 int res1 = 0 ;
34526 PyObject *swig_obj[1] ;
34527
34528 if (!args) SWIG_fail;
34529 swig_obj[0] = args;
34530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34531 if (!SWIG_IsOK(res1)) {
34532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_InvalidateBestSize" "', expected argument " "1"" of type '" "wxWindow *""'");
34533 }
34534 arg1 = reinterpret_cast< wxWindow * >(argp1);
34535 {
34536 PyThreadState* __tstate = wxPyBeginAllowThreads();
34537 (arg1)->InvalidateBestSize();
34538 wxPyEndAllowThreads(__tstate);
34539 if (PyErr_Occurred()) SWIG_fail;
34540 }
34541 resultobj = SWIG_Py_Void();
34542 return resultobj;
34543fail:
34544 return NULL;
34545}
34546
34547
34548SWIGINTERN PyObject *_wrap_Window_CacheBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34549 PyObject *resultobj = 0;
34550 wxWindow *arg1 = (wxWindow *) 0 ;
34551 wxSize *arg2 = 0 ;
34552 void *argp1 = 0 ;
34553 int res1 = 0 ;
34554 wxSize temp2 ;
34555 PyObject * obj0 = 0 ;
34556 PyObject * obj1 = 0 ;
34557 char * kwnames[] = {
34558 (char *) "self",(char *) "size", NULL
34559 };
34560
34561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_CacheBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
34562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34563 if (!SWIG_IsOK(res1)) {
34564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_CacheBestSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
34565 }
34566 arg1 = reinterpret_cast< wxWindow * >(argp1);
34567 {
34568 arg2 = &temp2;
34569 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
34570 }
34571 {
34572 PyThreadState* __tstate = wxPyBeginAllowThreads();
34573 ((wxWindow const *)arg1)->CacheBestSize((wxSize const &)*arg2);
34574 wxPyEndAllowThreads(__tstate);
34575 if (PyErr_Occurred()) SWIG_fail;
34576 }
34577 resultobj = SWIG_Py_Void();
34578 return resultobj;
34579fail:
34580 return NULL;
d55e5bfc
RD
34581}
34582
34583
580080c5 34584SWIGINTERN PyObject *_wrap_Window_GetEffectiveMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
34585 PyObject *resultobj = 0;
34586 wxWindow *arg1 = (wxWindow *) 0 ;
34587 wxSize result;
34588 void *argp1 = 0 ;
34589 int res1 = 0 ;
34590 PyObject *swig_obj[1] ;
34591
34592 if (!args) SWIG_fail;
34593 swig_obj[0] = args;
34594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34595 if (!SWIG_IsOK(res1)) {
580080c5 34596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetEffectiveMinSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
1bd55598
RD
34597 }
34598 arg1 = reinterpret_cast< wxWindow * >(argp1);
34599 {
34600 PyThreadState* __tstate = wxPyBeginAllowThreads();
580080c5 34601 result = ((wxWindow const *)arg1)->GetEffectiveMinSize();
1bd55598
RD
34602 wxPyEndAllowThreads(__tstate);
34603 if (PyErr_Occurred()) SWIG_fail;
34604 }
34605 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
34606 return resultobj;
34607fail:
34608 return NULL;
d55e5bfc
RD
34609}
34610
34611
1bd55598
RD
34612SWIGINTERN PyObject *_wrap_Window_Center(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34613 PyObject *resultobj = 0;
34614 wxWindow *arg1 = (wxWindow *) 0 ;
34615 int arg2 = (int) wxBOTH ;
34616 void *argp1 = 0 ;
34617 int res1 = 0 ;
34618 int val2 ;
34619 int ecode2 = 0 ;
34620 PyObject * obj0 = 0 ;
34621 PyObject * obj1 = 0 ;
34622 char * kwnames[] = {
34623 (char *) "self",(char *) "direction", NULL
34624 };
34625
34626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) SWIG_fail;
34627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34628 if (!SWIG_IsOK(res1)) {
34629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Center" "', expected argument " "1"" of type '" "wxWindow *""'");
34630 }
34631 arg1 = reinterpret_cast< wxWindow * >(argp1);
34632 if (obj1) {
34633 ecode2 = SWIG_AsVal_int(obj1, &val2);
34634 if (!SWIG_IsOK(ecode2)) {
34635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Center" "', expected argument " "2"" of type '" "int""'");
34636 }
34637 arg2 = static_cast< int >(val2);
34638 }
34639 {
34640 PyThreadState* __tstate = wxPyBeginAllowThreads();
34641 (arg1)->Center(arg2);
34642 wxPyEndAllowThreads(__tstate);
34643 if (PyErr_Occurred()) SWIG_fail;
34644 }
34645 resultobj = SWIG_Py_Void();
34646 return resultobj;
34647fail:
34648 return NULL;
34649}
34650
34651
34652SWIGINTERN PyObject *_wrap_Window_CenterOnParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34653 PyObject *resultobj = 0;
34654 wxWindow *arg1 = (wxWindow *) 0 ;
34655 int arg2 = (int) wxBOTH ;
34656 void *argp1 = 0 ;
34657 int res1 = 0 ;
34658 int val2 ;
34659 int ecode2 = 0 ;
34660 PyObject * obj0 = 0 ;
34661 PyObject * obj1 = 0 ;
34662 char * kwnames[] = {
34663 (char *) "self",(char *) "dir", NULL
34664 };
34665
34666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) SWIG_fail;
34667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34668 if (!SWIG_IsOK(res1)) {
34669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_CenterOnParent" "', expected argument " "1"" of type '" "wxWindow *""'");
34670 }
34671 arg1 = reinterpret_cast< wxWindow * >(argp1);
34672 if (obj1) {
34673 ecode2 = SWIG_AsVal_int(obj1, &val2);
34674 if (!SWIG_IsOK(ecode2)) {
34675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_CenterOnParent" "', expected argument " "2"" of type '" "int""'");
34676 }
34677 arg2 = static_cast< int >(val2);
34678 }
34679 {
34680 PyThreadState* __tstate = wxPyBeginAllowThreads();
34681 (arg1)->CenterOnParent(arg2);
34682 wxPyEndAllowThreads(__tstate);
34683 if (PyErr_Occurred()) SWIG_fail;
34684 }
34685 resultobj = SWIG_Py_Void();
34686 return resultobj;
34687fail:
34688 return NULL;
d55e5bfc
RD
34689}
34690
34691
1bd55598
RD
34692SWIGINTERN PyObject *_wrap_Window_Fit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34693 PyObject *resultobj = 0;
34694 wxWindow *arg1 = (wxWindow *) 0 ;
34695 void *argp1 = 0 ;
34696 int res1 = 0 ;
34697 PyObject *swig_obj[1] ;
34698
34699 if (!args) SWIG_fail;
34700 swig_obj[0] = args;
34701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34702 if (!SWIG_IsOK(res1)) {
34703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Fit" "', expected argument " "1"" of type '" "wxWindow *""'");
34704 }
34705 arg1 = reinterpret_cast< wxWindow * >(argp1);
34706 {
34707 PyThreadState* __tstate = wxPyBeginAllowThreads();
34708 (arg1)->Fit();
34709 wxPyEndAllowThreads(__tstate);
34710 if (PyErr_Occurred()) SWIG_fail;
34711 }
34712 resultobj = SWIG_Py_Void();
34713 return resultobj;
34714fail:
34715 return NULL;
d55e5bfc
RD
34716}
34717
34718
1bd55598
RD
34719SWIGINTERN PyObject *_wrap_Window_FitInside(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34720 PyObject *resultobj = 0;
34721 wxWindow *arg1 = (wxWindow *) 0 ;
34722 void *argp1 = 0 ;
34723 int res1 = 0 ;
34724 PyObject *swig_obj[1] ;
34725
34726 if (!args) SWIG_fail;
34727 swig_obj[0] = args;
34728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34729 if (!SWIG_IsOK(res1)) {
34730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_FitInside" "', expected argument " "1"" of type '" "wxWindow *""'");
34731 }
34732 arg1 = reinterpret_cast< wxWindow * >(argp1);
34733 {
34734 PyThreadState* __tstate = wxPyBeginAllowThreads();
34735 (arg1)->FitInside();
34736 wxPyEndAllowThreads(__tstate);
34737 if (PyErr_Occurred()) SWIG_fail;
34738 }
34739 resultobj = SWIG_Py_Void();
34740 return resultobj;
34741fail:
34742 return NULL;
34743}
34744
34745
34746SWIGINTERN PyObject *_wrap_Window_SetSizeHints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34747 PyObject *resultobj = 0;
34748 wxWindow *arg1 = (wxWindow *) 0 ;
34749 int arg2 ;
34750 int arg3 ;
34751 int arg4 = (int) -1 ;
34752 int arg5 = (int) -1 ;
34753 int arg6 = (int) -1 ;
34754 int arg7 = (int) -1 ;
34755 void *argp1 = 0 ;
34756 int res1 = 0 ;
34757 int val2 ;
34758 int ecode2 = 0 ;
34759 int val3 ;
34760 int ecode3 = 0 ;
34761 int val4 ;
34762 int ecode4 = 0 ;
34763 int val5 ;
34764 int ecode5 = 0 ;
34765 int val6 ;
34766 int ecode6 = 0 ;
34767 int val7 ;
34768 int ecode7 = 0 ;
34769 PyObject * obj0 = 0 ;
34770 PyObject * obj1 = 0 ;
34771 PyObject * obj2 = 0 ;
34772 PyObject * obj3 = 0 ;
34773 PyObject * obj4 = 0 ;
34774 PyObject * obj5 = 0 ;
34775 PyObject * obj6 = 0 ;
34776 char * kwnames[] = {
34777 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL
34778 };
34779
34780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34782 if (!SWIG_IsOK(res1)) {
34783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSizeHints" "', expected argument " "1"" of type '" "wxWindow *""'");
34784 }
34785 arg1 = reinterpret_cast< wxWindow * >(argp1);
34786 ecode2 = SWIG_AsVal_int(obj1, &val2);
34787 if (!SWIG_IsOK(ecode2)) {
34788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetSizeHints" "', expected argument " "2"" of type '" "int""'");
34789 }
34790 arg2 = static_cast< int >(val2);
34791 ecode3 = SWIG_AsVal_int(obj2, &val3);
34792 if (!SWIG_IsOK(ecode3)) {
34793 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetSizeHints" "', expected argument " "3"" of type '" "int""'");
34794 }
34795 arg3 = static_cast< int >(val3);
34796 if (obj3) {
34797 ecode4 = SWIG_AsVal_int(obj3, &val4);
34798 if (!SWIG_IsOK(ecode4)) {
34799 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_SetSizeHints" "', expected argument " "4"" of type '" "int""'");
34800 }
34801 arg4 = static_cast< int >(val4);
34802 }
34803 if (obj4) {
34804 ecode5 = SWIG_AsVal_int(obj4, &val5);
34805 if (!SWIG_IsOK(ecode5)) {
34806 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Window_SetSizeHints" "', expected argument " "5"" of type '" "int""'");
34807 }
34808 arg5 = static_cast< int >(val5);
34809 }
34810 if (obj5) {
34811 ecode6 = SWIG_AsVal_int(obj5, &val6);
34812 if (!SWIG_IsOK(ecode6)) {
34813 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Window_SetSizeHints" "', expected argument " "6"" of type '" "int""'");
34814 }
34815 arg6 = static_cast< int >(val6);
34816 }
34817 if (obj6) {
34818 ecode7 = SWIG_AsVal_int(obj6, &val7);
34819 if (!SWIG_IsOK(ecode7)) {
34820 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Window_SetSizeHints" "', expected argument " "7"" of type '" "int""'");
34821 }
34822 arg7 = static_cast< int >(val7);
34823 }
34824 {
34825 PyThreadState* __tstate = wxPyBeginAllowThreads();
34826 (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7);
34827 wxPyEndAllowThreads(__tstate);
34828 if (PyErr_Occurred()) SWIG_fail;
34829 }
34830 resultobj = SWIG_Py_Void();
34831 return resultobj;
34832fail:
34833 return NULL;
34834}
34835
34836
34837SWIGINTERN PyObject *_wrap_Window_SetSizeHintsSz(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34838 PyObject *resultobj = 0;
34839 wxWindow *arg1 = (wxWindow *) 0 ;
34840 wxSize *arg2 = 0 ;
34841 wxSize const &arg3_defvalue = wxDefaultSize ;
34842 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
34843 wxSize const &arg4_defvalue = wxDefaultSize ;
34844 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
34845 void *argp1 = 0 ;
34846 int res1 = 0 ;
34847 wxSize temp2 ;
34848 wxSize temp3 ;
34849 wxSize temp4 ;
34850 PyObject * obj0 = 0 ;
34851 PyObject * obj1 = 0 ;
34852 PyObject * obj2 = 0 ;
34853 PyObject * obj3 = 0 ;
34854 char * kwnames[] = {
34855 (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL
34856 };
34857
34858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34860 if (!SWIG_IsOK(res1)) {
34861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSizeHintsSz" "', expected argument " "1"" of type '" "wxWindow *""'");
34862 }
34863 arg1 = reinterpret_cast< wxWindow * >(argp1);
34864 {
34865 arg2 = &temp2;
34866 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
34867 }
34868 if (obj2) {
d55e5bfc 34869 {
1bd55598
RD
34870 arg3 = &temp3;
34871 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 34872 }
1bd55598
RD
34873 }
34874 if (obj3) {
d55e5bfc 34875 {
1bd55598
RD
34876 arg4 = &temp4;
34877 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 34878 }
1bd55598
RD
34879 }
34880 {
34881 PyThreadState* __tstate = wxPyBeginAllowThreads();
34882 (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4);
34883 wxPyEndAllowThreads(__tstate);
34884 if (PyErr_Occurred()) SWIG_fail;
34885 }
34886 resultobj = SWIG_Py_Void();
34887 return resultobj;
34888fail:
34889 return NULL;
34890}
34891
34892
34893SWIGINTERN PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34894 PyObject *resultobj = 0;
34895 wxWindow *arg1 = (wxWindow *) 0 ;
34896 int arg2 ;
34897 int arg3 ;
34898 int arg4 = (int) -1 ;
34899 int arg5 = (int) -1 ;
34900 void *argp1 = 0 ;
34901 int res1 = 0 ;
34902 int val2 ;
34903 int ecode2 = 0 ;
34904 int val3 ;
34905 int ecode3 = 0 ;
34906 int val4 ;
34907 int ecode4 = 0 ;
34908 int val5 ;
34909 int ecode5 = 0 ;
34910 PyObject * obj0 = 0 ;
34911 PyObject * obj1 = 0 ;
34912 PyObject * obj2 = 0 ;
34913 PyObject * obj3 = 0 ;
34914 PyObject * obj4 = 0 ;
34915 char * kwnames[] = {
34916 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL
34917 };
34918
34919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34921 if (!SWIG_IsOK(res1)) {
34922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetVirtualSizeHints" "', expected argument " "1"" of type '" "wxWindow *""'");
34923 }
34924 arg1 = reinterpret_cast< wxWindow * >(argp1);
34925 ecode2 = SWIG_AsVal_int(obj1, &val2);
34926 if (!SWIG_IsOK(ecode2)) {
34927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetVirtualSizeHints" "', expected argument " "2"" of type '" "int""'");
34928 }
34929 arg2 = static_cast< int >(val2);
34930 ecode3 = SWIG_AsVal_int(obj2, &val3);
34931 if (!SWIG_IsOK(ecode3)) {
34932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetVirtualSizeHints" "', expected argument " "3"" of type '" "int""'");
34933 }
34934 arg3 = static_cast< int >(val3);
34935 if (obj3) {
34936 ecode4 = SWIG_AsVal_int(obj3, &val4);
34937 if (!SWIG_IsOK(ecode4)) {
34938 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_SetVirtualSizeHints" "', expected argument " "4"" of type '" "int""'");
34939 }
34940 arg4 = static_cast< int >(val4);
34941 }
34942 if (obj4) {
34943 ecode5 = SWIG_AsVal_int(obj4, &val5);
34944 if (!SWIG_IsOK(ecode5)) {
34945 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Window_SetVirtualSizeHints" "', expected argument " "5"" of type '" "int""'");
34946 }
34947 arg5 = static_cast< int >(val5);
34948 }
34949 {
34950 PyThreadState* __tstate = wxPyBeginAllowThreads();
34951 (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5);
34952 wxPyEndAllowThreads(__tstate);
34953 if (PyErr_Occurred()) SWIG_fail;
34954 }
34955 resultobj = SWIG_Py_Void();
34956 return resultobj;
34957fail:
34958 return NULL;
34959}
34960
34961
34962SWIGINTERN PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34963 PyObject *resultobj = 0;
34964 wxWindow *arg1 = (wxWindow *) 0 ;
34965 wxSize *arg2 = 0 ;
34966 wxSize const &arg3_defvalue = wxDefaultSize ;
34967 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
34968 void *argp1 = 0 ;
34969 int res1 = 0 ;
34970 wxSize temp2 ;
34971 wxSize temp3 ;
34972 PyObject * obj0 = 0 ;
34973 PyObject * obj1 = 0 ;
34974 PyObject * obj2 = 0 ;
34975 char * kwnames[] = {
34976 (char *) "self",(char *) "minSize",(char *) "maxSize", NULL
34977 };
34978
34979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34981 if (!SWIG_IsOK(res1)) {
34982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetVirtualSizeHintsSz" "', expected argument " "1"" of type '" "wxWindow *""'");
34983 }
34984 arg1 = reinterpret_cast< wxWindow * >(argp1);
34985 {
34986 arg2 = &temp2;
34987 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
34988 }
34989 if (obj2) {
d55e5bfc 34990 {
1bd55598
RD
34991 arg3 = &temp3;
34992 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 34993 }
1bd55598
RD
34994 }
34995 {
34996 PyThreadState* __tstate = wxPyBeginAllowThreads();
34997 (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3);
34998 wxPyEndAllowThreads(__tstate);
34999 if (PyErr_Occurred()) SWIG_fail;
35000 }
35001 resultobj = SWIG_Py_Void();
35002 return resultobj;
35003fail:
35004 return NULL;
d55e5bfc
RD
35005}
35006
35007
1bd55598
RD
35008SWIGINTERN PyObject *_wrap_Window_GetMaxSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35009 PyObject *resultobj = 0;
35010 wxWindow *arg1 = (wxWindow *) 0 ;
35011 wxSize result;
35012 void *argp1 = 0 ;
35013 int res1 = 0 ;
35014 PyObject *swig_obj[1] ;
35015
35016 if (!args) SWIG_fail;
35017 swig_obj[0] = args;
35018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35019 if (!SWIG_IsOK(res1)) {
35020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMaxSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
35021 }
35022 arg1 = reinterpret_cast< wxWindow * >(argp1);
35023 {
35024 PyThreadState* __tstate = wxPyBeginAllowThreads();
35025 result = ((wxWindow const *)arg1)->GetMaxSize();
35026 wxPyEndAllowThreads(__tstate);
35027 if (PyErr_Occurred()) SWIG_fail;
35028 }
35029 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
35030 return resultobj;
35031fail:
35032 return NULL;
d55e5bfc
RD
35033}
35034
35035
1bd55598
RD
35036SWIGINTERN PyObject *_wrap_Window_GetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35037 PyObject *resultobj = 0;
35038 wxWindow *arg1 = (wxWindow *) 0 ;
35039 wxSize result;
35040 void *argp1 = 0 ;
35041 int res1 = 0 ;
35042 PyObject *swig_obj[1] ;
35043
35044 if (!args) SWIG_fail;
35045 swig_obj[0] = args;
35046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35047 if (!SWIG_IsOK(res1)) {
35048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMinSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
35049 }
35050 arg1 = reinterpret_cast< wxWindow * >(argp1);
35051 {
35052 PyThreadState* __tstate = wxPyBeginAllowThreads();
35053 result = ((wxWindow const *)arg1)->GetMinSize();
35054 wxPyEndAllowThreads(__tstate);
35055 if (PyErr_Occurred()) SWIG_fail;
35056 }
35057 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
35058 return resultobj;
35059fail:
35060 return NULL;
35061}
35062
35063
35064SWIGINTERN PyObject *_wrap_Window_SetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35065 PyObject *resultobj = 0;
35066 wxWindow *arg1 = (wxWindow *) 0 ;
35067 wxSize *arg2 = 0 ;
35068 void *argp1 = 0 ;
35069 int res1 = 0 ;
35070 wxSize temp2 ;
35071 PyObject * obj0 = 0 ;
35072 PyObject * obj1 = 0 ;
35073 char * kwnames[] = {
35074 (char *) "self",(char *) "minSize", NULL
35075 };
35076
35077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) SWIG_fail;
35078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35079 if (!SWIG_IsOK(res1)) {
35080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetMinSize" "', expected argument " "1"" of type '" "wxWindow *""'");
35081 }
35082 arg1 = reinterpret_cast< wxWindow * >(argp1);
35083 {
35084 arg2 = &temp2;
35085 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
35086 }
35087 {
35088 PyThreadState* __tstate = wxPyBeginAllowThreads();
35089 (arg1)->SetMinSize((wxSize const &)*arg2);
35090 wxPyEndAllowThreads(__tstate);
35091 if (PyErr_Occurred()) SWIG_fail;
35092 }
35093 resultobj = SWIG_Py_Void();
35094 return resultobj;
35095fail:
35096 return NULL;
35097}
35098
35099
35100SWIGINTERN PyObject *_wrap_Window_SetMaxSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35101 PyObject *resultobj = 0;
35102 wxWindow *arg1 = (wxWindow *) 0 ;
35103 wxSize *arg2 = 0 ;
35104 void *argp1 = 0 ;
35105 int res1 = 0 ;
35106 wxSize temp2 ;
35107 PyObject * obj0 = 0 ;
35108 PyObject * obj1 = 0 ;
35109 char * kwnames[] = {
35110 (char *) "self",(char *) "maxSize", NULL
35111 };
35112
35113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) SWIG_fail;
35114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35115 if (!SWIG_IsOK(res1)) {
35116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetMaxSize" "', expected argument " "1"" of type '" "wxWindow *""'");
35117 }
35118 arg1 = reinterpret_cast< wxWindow * >(argp1);
35119 {
35120 arg2 = &temp2;
35121 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
35122 }
35123 {
35124 PyThreadState* __tstate = wxPyBeginAllowThreads();
35125 (arg1)->SetMaxSize((wxSize const &)*arg2);
35126 wxPyEndAllowThreads(__tstate);
35127 if (PyErr_Occurred()) SWIG_fail;
35128 }
35129 resultobj = SWIG_Py_Void();
35130 return resultobj;
35131fail:
35132 return NULL;
d55e5bfc
RD
35133}
35134
35135
1bd55598
RD
35136SWIGINTERN PyObject *_wrap_Window_GetMinWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35137 PyObject *resultobj = 0;
35138 wxWindow *arg1 = (wxWindow *) 0 ;
35139 int result;
35140 void *argp1 = 0 ;
35141 int res1 = 0 ;
35142 PyObject *swig_obj[1] ;
35143
35144 if (!args) SWIG_fail;
35145 swig_obj[0] = args;
35146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35147 if (!SWIG_IsOK(res1)) {
35148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMinWidth" "', expected argument " "1"" of type '" "wxWindow const *""'");
35149 }
35150 arg1 = reinterpret_cast< wxWindow * >(argp1);
35151 {
35152 PyThreadState* __tstate = wxPyBeginAllowThreads();
35153 result = (int)((wxWindow const *)arg1)->GetMinWidth();
35154 wxPyEndAllowThreads(__tstate);
35155 if (PyErr_Occurred()) SWIG_fail;
35156 }
35157 resultobj = SWIG_From_int(static_cast< int >(result));
35158 return resultobj;
35159fail:
35160 return NULL;
d55e5bfc
RD
35161}
35162
35163
1bd55598
RD
35164SWIGINTERN PyObject *_wrap_Window_GetMinHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35165 PyObject *resultobj = 0;
35166 wxWindow *arg1 = (wxWindow *) 0 ;
35167 int result;
35168 void *argp1 = 0 ;
35169 int res1 = 0 ;
35170 PyObject *swig_obj[1] ;
35171
35172 if (!args) SWIG_fail;
35173 swig_obj[0] = args;
35174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35175 if (!SWIG_IsOK(res1)) {
35176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMinHeight" "', expected argument " "1"" of type '" "wxWindow const *""'");
35177 }
35178 arg1 = reinterpret_cast< wxWindow * >(argp1);
35179 {
35180 PyThreadState* __tstate = wxPyBeginAllowThreads();
35181 result = (int)((wxWindow const *)arg1)->GetMinHeight();
35182 wxPyEndAllowThreads(__tstate);
35183 if (PyErr_Occurred()) SWIG_fail;
35184 }
35185 resultobj = SWIG_From_int(static_cast< int >(result));
35186 return resultobj;
35187fail:
35188 return NULL;
d55e5bfc
RD
35189}
35190
35191
1bd55598
RD
35192SWIGINTERN PyObject *_wrap_Window_GetMaxWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35193 PyObject *resultobj = 0;
35194 wxWindow *arg1 = (wxWindow *) 0 ;
35195 int result;
35196 void *argp1 = 0 ;
35197 int res1 = 0 ;
35198 PyObject *swig_obj[1] ;
35199
35200 if (!args) SWIG_fail;
35201 swig_obj[0] = args;
35202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35203 if (!SWIG_IsOK(res1)) {
35204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMaxWidth" "', expected argument " "1"" of type '" "wxWindow const *""'");
35205 }
35206 arg1 = reinterpret_cast< wxWindow * >(argp1);
35207 {
35208 PyThreadState* __tstate = wxPyBeginAllowThreads();
35209 result = (int)((wxWindow const *)arg1)->GetMaxWidth();
35210 wxPyEndAllowThreads(__tstate);
35211 if (PyErr_Occurred()) SWIG_fail;
35212 }
35213 resultobj = SWIG_From_int(static_cast< int >(result));
35214 return resultobj;
35215fail:
35216 return NULL;
d55e5bfc 35217}
1bd55598
RD
35218
35219
35220SWIGINTERN PyObject *_wrap_Window_GetMaxHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35221 PyObject *resultobj = 0;
35222 wxWindow *arg1 = (wxWindow *) 0 ;
35223 int result;
35224 void *argp1 = 0 ;
35225 int res1 = 0 ;
35226 PyObject *swig_obj[1] ;
35227
35228 if (!args) SWIG_fail;
35229 swig_obj[0] = args;
35230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35231 if (!SWIG_IsOK(res1)) {
35232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMaxHeight" "', expected argument " "1"" of type '" "wxWindow const *""'");
35233 }
35234 arg1 = reinterpret_cast< wxWindow * >(argp1);
35235 {
35236 PyThreadState* __tstate = wxPyBeginAllowThreads();
35237 result = (int)((wxWindow const *)arg1)->GetMaxHeight();
35238 wxPyEndAllowThreads(__tstate);
35239 if (PyErr_Occurred()) SWIG_fail;
35240 }
35241 resultobj = SWIG_From_int(static_cast< int >(result));
35242 return resultobj;
35243fail:
35244 return NULL;
35245}
35246
35247
35248SWIGINTERN PyObject *_wrap_Window_SetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35249 PyObject *resultobj = 0;
35250 wxWindow *arg1 = (wxWindow *) 0 ;
35251 wxSize *arg2 = 0 ;
35252 void *argp1 = 0 ;
35253 int res1 = 0 ;
35254 wxSize temp2 ;
35255 PyObject * obj0 = 0 ;
35256 PyObject * obj1 = 0 ;
35257 char * kwnames[] = {
35258 (char *) "self",(char *) "size", NULL
35259 };
35260
35261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) SWIG_fail;
35262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35263 if (!SWIG_IsOK(res1)) {
35264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetVirtualSize" "', expected argument " "1"" of type '" "wxWindow *""'");
35265 }
35266 arg1 = reinterpret_cast< wxWindow * >(argp1);
35267 {
35268 arg2 = &temp2;
35269 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
35270 }
35271 {
35272 PyThreadState* __tstate = wxPyBeginAllowThreads();
35273 (arg1)->SetVirtualSize((wxSize const &)*arg2);
35274 wxPyEndAllowThreads(__tstate);
35275 if (PyErr_Occurred()) SWIG_fail;
35276 }
35277 resultobj = SWIG_Py_Void();
35278 return resultobj;
35279fail:
35280 return NULL;
35281}
35282
35283
35284SWIGINTERN PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35285 PyObject *resultobj = 0;
35286 wxWindow *arg1 = (wxWindow *) 0 ;
35287 int arg2 ;
35288 int arg3 ;
35289 void *argp1 = 0 ;
35290 int res1 = 0 ;
35291 int val2 ;
35292 int ecode2 = 0 ;
35293 int val3 ;
35294 int ecode3 = 0 ;
35295 PyObject * obj0 = 0 ;
35296 PyObject * obj1 = 0 ;
35297 PyObject * obj2 = 0 ;
35298 char * kwnames[] = {
35299 (char *) "self",(char *) "w",(char *) "h", NULL
35300 };
35301
35302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35304 if (!SWIG_IsOK(res1)) {
35305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetVirtualSizeWH" "', expected argument " "1"" of type '" "wxWindow *""'");
35306 }
35307 arg1 = reinterpret_cast< wxWindow * >(argp1);
35308 ecode2 = SWIG_AsVal_int(obj1, &val2);
35309 if (!SWIG_IsOK(ecode2)) {
35310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetVirtualSizeWH" "', expected argument " "2"" of type '" "int""'");
35311 }
35312 arg2 = static_cast< int >(val2);
35313 ecode3 = SWIG_AsVal_int(obj2, &val3);
35314 if (!SWIG_IsOK(ecode3)) {
35315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetVirtualSizeWH" "', expected argument " "3"" of type '" "int""'");
35316 }
35317 arg3 = static_cast< int >(val3);
35318 {
35319 PyThreadState* __tstate = wxPyBeginAllowThreads();
35320 (arg1)->SetVirtualSize(arg2,arg3);
35321 wxPyEndAllowThreads(__tstate);
35322 if (PyErr_Occurred()) SWIG_fail;
35323 }
35324 resultobj = SWIG_Py_Void();
35325 return resultobj;
35326fail:
35327 return NULL;
d55e5bfc
RD
35328}
35329
35330
1bd55598
RD
35331SWIGINTERN PyObject *_wrap_Window_GetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35332 PyObject *resultobj = 0;
35333 wxWindow *arg1 = (wxWindow *) 0 ;
35334 wxSize result;
35335 void *argp1 = 0 ;
35336 int res1 = 0 ;
35337 PyObject *swig_obj[1] ;
35338
35339 if (!args) SWIG_fail;
35340 swig_obj[0] = args;
35341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35342 if (!SWIG_IsOK(res1)) {
35343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetVirtualSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
35344 }
35345 arg1 = reinterpret_cast< wxWindow * >(argp1);
35346 {
35347 PyThreadState* __tstate = wxPyBeginAllowThreads();
35348 result = ((wxWindow const *)arg1)->GetVirtualSize();
35349 wxPyEndAllowThreads(__tstate);
35350 if (PyErr_Occurred()) SWIG_fail;
35351 }
35352 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
35353 return resultobj;
35354fail:
35355 return NULL;
35356}
35357
35358
35359SWIGINTERN PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35360 PyObject *resultobj = 0;
35361 wxWindow *arg1 = (wxWindow *) 0 ;
35362 int *arg2 = (int *) 0 ;
35363 int *arg3 = (int *) 0 ;
35364 void *argp1 = 0 ;
35365 int res1 = 0 ;
35366 int temp2 ;
35367 int res2 = SWIG_TMPOBJ ;
35368 int temp3 ;
35369 int res3 = SWIG_TMPOBJ ;
35370 PyObject *swig_obj[1] ;
35371
35372 arg2 = &temp2;
35373 arg3 = &temp3;
35374 if (!args) SWIG_fail;
35375 swig_obj[0] = args;
35376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35377 if (!SWIG_IsOK(res1)) {
35378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetVirtualSizeTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
35379 }
35380 arg1 = reinterpret_cast< wxWindow * >(argp1);
35381 {
35382 PyThreadState* __tstate = wxPyBeginAllowThreads();
35383 ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3);
35384 wxPyEndAllowThreads(__tstate);
35385 if (PyErr_Occurred()) SWIG_fail;
35386 }
35387 resultobj = SWIG_Py_Void();
35388 if (SWIG_IsTmpObj(res2)) {
35389 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
35390 } else {
35391 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
35392 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
35393 }
35394 if (SWIG_IsTmpObj(res3)) {
35395 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
35396 } else {
35397 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
35398 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
35399 }
35400 return resultobj;
35401fail:
35402 return NULL;
d55e5bfc
RD
35403}
35404
35405
1bd55598
RD
35406SWIGINTERN PyObject *_wrap_Window_GetBestVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35407 PyObject *resultobj = 0;
35408 wxWindow *arg1 = (wxWindow *) 0 ;
35409 wxSize result;
35410 void *argp1 = 0 ;
35411 int res1 = 0 ;
35412 PyObject *swig_obj[1] ;
35413
35414 if (!args) SWIG_fail;
35415 swig_obj[0] = args;
35416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35417 if (!SWIG_IsOK(res1)) {
35418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBestVirtualSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
35419 }
35420 arg1 = reinterpret_cast< wxWindow * >(argp1);
35421 {
35422 PyThreadState* __tstate = wxPyBeginAllowThreads();
35423 result = ((wxWindow const *)arg1)->GetBestVirtualSize();
35424 wxPyEndAllowThreads(__tstate);
35425 if (PyErr_Occurred()) SWIG_fail;
35426 }
35427 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
35428 return resultobj;
35429fail:
35430 return NULL;
35431}
35432
35433
35434SWIGINTERN PyObject *_wrap_Window_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35435 PyObject *resultobj = 0;
35436 wxWindow *arg1 = (wxWindow *) 0 ;
35437 bool arg2 = (bool) true ;
35438 bool result;
35439 void *argp1 = 0 ;
35440 int res1 = 0 ;
35441 bool val2 ;
35442 int ecode2 = 0 ;
35443 PyObject * obj0 = 0 ;
35444 PyObject * obj1 = 0 ;
35445 char * kwnames[] = {
35446 (char *) "self",(char *) "show", NULL
35447 };
35448
35449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) SWIG_fail;
35450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35451 if (!SWIG_IsOK(res1)) {
35452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Show" "', expected argument " "1"" of type '" "wxWindow *""'");
35453 }
35454 arg1 = reinterpret_cast< wxWindow * >(argp1);
35455 if (obj1) {
35456 ecode2 = SWIG_AsVal_bool(obj1, &val2);
35457 if (!SWIG_IsOK(ecode2)) {
35458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Show" "', expected argument " "2"" of type '" "bool""'");
35459 }
35460 arg2 = static_cast< bool >(val2);
35461 }
35462 {
35463 PyThreadState* __tstate = wxPyBeginAllowThreads();
35464 result = (bool)(arg1)->Show(arg2);
35465 wxPyEndAllowThreads(__tstate);
35466 if (PyErr_Occurred()) SWIG_fail;
35467 }
35468 {
35469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35470 }
35471 return resultobj;
35472fail:
35473 return NULL;
d55e5bfc
RD
35474}
35475
35476
1bd55598
RD
35477SWIGINTERN PyObject *_wrap_Window_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35478 PyObject *resultobj = 0;
35479 wxWindow *arg1 = (wxWindow *) 0 ;
35480 bool result;
35481 void *argp1 = 0 ;
35482 int res1 = 0 ;
35483 PyObject *swig_obj[1] ;
35484
35485 if (!args) SWIG_fail;
35486 swig_obj[0] = args;
35487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35488 if (!SWIG_IsOK(res1)) {
35489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Hide" "', expected argument " "1"" of type '" "wxWindow *""'");
35490 }
35491 arg1 = reinterpret_cast< wxWindow * >(argp1);
35492 {
35493 PyThreadState* __tstate = wxPyBeginAllowThreads();
35494 result = (bool)(arg1)->Hide();
35495 wxPyEndAllowThreads(__tstate);
35496 if (PyErr_Occurred()) SWIG_fail;
35497 }
35498 {
35499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35500 }
35501 return resultobj;
35502fail:
35503 return NULL;
35504}
35505
35506
35507SWIGINTERN PyObject *_wrap_Window_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35508 PyObject *resultobj = 0;
35509 wxWindow *arg1 = (wxWindow *) 0 ;
35510 bool arg2 = (bool) true ;
35511 bool result;
35512 void *argp1 = 0 ;
35513 int res1 = 0 ;
35514 bool val2 ;
35515 int ecode2 = 0 ;
35516 PyObject * obj0 = 0 ;
35517 PyObject * obj1 = 0 ;
35518 char * kwnames[] = {
35519 (char *) "self",(char *) "enable", NULL
35520 };
35521
35522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
35523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35524 if (!SWIG_IsOK(res1)) {
35525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Enable" "', expected argument " "1"" of type '" "wxWindow *""'");
35526 }
35527 arg1 = reinterpret_cast< wxWindow * >(argp1);
35528 if (obj1) {
35529 ecode2 = SWIG_AsVal_bool(obj1, &val2);
35530 if (!SWIG_IsOK(ecode2)) {
35531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Enable" "', expected argument " "2"" of type '" "bool""'");
35532 }
35533 arg2 = static_cast< bool >(val2);
35534 }
35535 {
35536 PyThreadState* __tstate = wxPyBeginAllowThreads();
35537 result = (bool)(arg1)->Enable(arg2);
35538 wxPyEndAllowThreads(__tstate);
35539 if (PyErr_Occurred()) SWIG_fail;
35540 }
35541 {
35542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35543 }
35544 return resultobj;
35545fail:
35546 return NULL;
b1fcee84
RD
35547}
35548
35549
1bd55598
RD
35550SWIGINTERN PyObject *_wrap_Window_Disable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35551 PyObject *resultobj = 0;
35552 wxWindow *arg1 = (wxWindow *) 0 ;
35553 bool result;
35554 void *argp1 = 0 ;
35555 int res1 = 0 ;
35556 PyObject *swig_obj[1] ;
35557
35558 if (!args) SWIG_fail;
35559 swig_obj[0] = args;
35560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35561 if (!SWIG_IsOK(res1)) {
35562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Disable" "', expected argument " "1"" of type '" "wxWindow *""'");
35563 }
35564 arg1 = reinterpret_cast< wxWindow * >(argp1);
35565 {
35566 PyThreadState* __tstate = wxPyBeginAllowThreads();
35567 result = (bool)(arg1)->Disable();
35568 wxPyEndAllowThreads(__tstate);
35569 if (PyErr_Occurred()) SWIG_fail;
35570 }
35571 {
35572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35573 }
35574 return resultobj;
35575fail:
35576 return NULL;
d55e5bfc
RD
35577}
35578
35579
1bd55598
RD
35580SWIGINTERN PyObject *_wrap_Window_IsShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35581 PyObject *resultobj = 0;
35582 wxWindow *arg1 = (wxWindow *) 0 ;
35583 bool result;
35584 void *argp1 = 0 ;
35585 int res1 = 0 ;
35586 PyObject *swig_obj[1] ;
35587
35588 if (!args) SWIG_fail;
35589 swig_obj[0] = args;
35590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35591 if (!SWIG_IsOK(res1)) {
35592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsShown" "', expected argument " "1"" of type '" "wxWindow const *""'");
35593 }
35594 arg1 = reinterpret_cast< wxWindow * >(argp1);
35595 {
35596 PyThreadState* __tstate = wxPyBeginAllowThreads();
35597 result = (bool)((wxWindow const *)arg1)->IsShown();
35598 wxPyEndAllowThreads(__tstate);
35599 if (PyErr_Occurred()) SWIG_fail;
35600 }
35601 {
35602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35603 }
35604 return resultobj;
35605fail:
35606 return NULL;
d55e5bfc
RD
35607}
35608
35609
1bd55598
RD
35610SWIGINTERN PyObject *_wrap_Window_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35611 PyObject *resultobj = 0;
35612 wxWindow *arg1 = (wxWindow *) 0 ;
35613 bool result;
35614 void *argp1 = 0 ;
35615 int res1 = 0 ;
35616 PyObject *swig_obj[1] ;
35617
35618 if (!args) SWIG_fail;
35619 swig_obj[0] = args;
35620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35621 if (!SWIG_IsOK(res1)) {
35622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsEnabled" "', expected argument " "1"" of type '" "wxWindow const *""'");
35623 }
35624 arg1 = reinterpret_cast< wxWindow * >(argp1);
35625 {
35626 PyThreadState* __tstate = wxPyBeginAllowThreads();
35627 result = (bool)((wxWindow const *)arg1)->IsEnabled();
35628 wxPyEndAllowThreads(__tstate);
35629 if (PyErr_Occurred()) SWIG_fail;
35630 }
35631 {
35632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35633 }
35634 return resultobj;
35635fail:
35636 return NULL;
35637}
35638
35639
33d6fd3b
RD
35640SWIGINTERN PyObject *_wrap_Window_IsShownOnScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35641 PyObject *resultobj = 0;
35642 wxWindow *arg1 = (wxWindow *) 0 ;
35643 bool result;
35644 void *argp1 = 0 ;
35645 int res1 = 0 ;
35646 PyObject *swig_obj[1] ;
35647
35648 if (!args) SWIG_fail;
35649 swig_obj[0] = args;
35650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35651 if (!SWIG_IsOK(res1)) {
35652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsShownOnScreen" "', expected argument " "1"" of type '" "wxWindow const *""'");
35653 }
35654 arg1 = reinterpret_cast< wxWindow * >(argp1);
35655 {
35656 PyThreadState* __tstate = wxPyBeginAllowThreads();
35657 result = (bool)((wxWindow const *)arg1)->IsShownOnScreen();
35658 wxPyEndAllowThreads(__tstate);
35659 if (PyErr_Occurred()) SWIG_fail;
35660 }
35661 {
35662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35663 }
35664 return resultobj;
35665fail:
35666 return NULL;
35667}
35668
35669
1bd55598
RD
35670SWIGINTERN PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35671 PyObject *resultobj = 0;
35672 wxWindow *arg1 = (wxWindow *) 0 ;
35673 long arg2 ;
35674 void *argp1 = 0 ;
35675 int res1 = 0 ;
35676 long val2 ;
35677 int ecode2 = 0 ;
35678 PyObject * obj0 = 0 ;
35679 PyObject * obj1 = 0 ;
35680 char * kwnames[] = {
35681 (char *) "self",(char *) "style", NULL
35682 };
35683
35684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) SWIG_fail;
35685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35686 if (!SWIG_IsOK(res1)) {
35687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetWindowStyleFlag" "', expected argument " "1"" of type '" "wxWindow *""'");
35688 }
35689 arg1 = reinterpret_cast< wxWindow * >(argp1);
35690 ecode2 = SWIG_AsVal_long(obj1, &val2);
35691 if (!SWIG_IsOK(ecode2)) {
35692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetWindowStyleFlag" "', expected argument " "2"" of type '" "long""'");
35693 }
35694 arg2 = static_cast< long >(val2);
35695 {
35696 PyThreadState* __tstate = wxPyBeginAllowThreads();
35697 (arg1)->SetWindowStyleFlag(arg2);
35698 wxPyEndAllowThreads(__tstate);
35699 if (PyErr_Occurred()) SWIG_fail;
35700 }
35701 resultobj = SWIG_Py_Void();
35702 return resultobj;
35703fail:
35704 return NULL;
d55e5bfc
RD
35705}
35706
35707
1bd55598
RD
35708SWIGINTERN PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35709 PyObject *resultobj = 0;
35710 wxWindow *arg1 = (wxWindow *) 0 ;
35711 long result;
35712 void *argp1 = 0 ;
35713 int res1 = 0 ;
35714 PyObject *swig_obj[1] ;
35715
35716 if (!args) SWIG_fail;
35717 swig_obj[0] = args;
35718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35719 if (!SWIG_IsOK(res1)) {
35720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetWindowStyleFlag" "', expected argument " "1"" of type '" "wxWindow const *""'");
35721 }
35722 arg1 = reinterpret_cast< wxWindow * >(argp1);
35723 {
35724 PyThreadState* __tstate = wxPyBeginAllowThreads();
35725 result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag();
35726 wxPyEndAllowThreads(__tstate);
35727 if (PyErr_Occurred()) SWIG_fail;
35728 }
35729 resultobj = SWIG_From_long(static_cast< long >(result));
35730 return resultobj;
35731fail:
35732 return NULL;
35733}
35734
35735
35736SWIGINTERN PyObject *_wrap_Window_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35737 PyObject *resultobj = 0;
35738 wxWindow *arg1 = (wxWindow *) 0 ;
35739 int arg2 ;
35740 bool result;
35741 void *argp1 = 0 ;
35742 int res1 = 0 ;
35743 int val2 ;
35744 int ecode2 = 0 ;
35745 PyObject * obj0 = 0 ;
35746 PyObject * obj1 = 0 ;
35747 char * kwnames[] = {
35748 (char *) "self",(char *) "flag", NULL
35749 };
35750
35751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
35752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35753 if (!SWIG_IsOK(res1)) {
35754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HasFlag" "', expected argument " "1"" of type '" "wxWindow const *""'");
35755 }
35756 arg1 = reinterpret_cast< wxWindow * >(argp1);
35757 ecode2 = SWIG_AsVal_int(obj1, &val2);
35758 if (!SWIG_IsOK(ecode2)) {
35759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_HasFlag" "', expected argument " "2"" of type '" "int""'");
35760 }
35761 arg2 = static_cast< int >(val2);
35762 {
35763 PyThreadState* __tstate = wxPyBeginAllowThreads();
35764 result = (bool)((wxWindow const *)arg1)->HasFlag(arg2);
35765 wxPyEndAllowThreads(__tstate);
35766 if (PyErr_Occurred()) SWIG_fail;
35767 }
35768 {
35769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35770 }
35771 return resultobj;
35772fail:
35773 return NULL;
d55e5bfc
RD
35774}
35775
35776
1bd55598
RD
35777SWIGINTERN PyObject *_wrap_Window_IsRetained(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35778 PyObject *resultobj = 0;
35779 wxWindow *arg1 = (wxWindow *) 0 ;
35780 bool result;
35781 void *argp1 = 0 ;
35782 int res1 = 0 ;
35783 PyObject *swig_obj[1] ;
35784
35785 if (!args) SWIG_fail;
35786 swig_obj[0] = args;
35787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35788 if (!SWIG_IsOK(res1)) {
35789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsRetained" "', expected argument " "1"" of type '" "wxWindow const *""'");
35790 }
35791 arg1 = reinterpret_cast< wxWindow * >(argp1);
35792 {
35793 PyThreadState* __tstate = wxPyBeginAllowThreads();
35794 result = (bool)((wxWindow const *)arg1)->IsRetained();
35795 wxPyEndAllowThreads(__tstate);
35796 if (PyErr_Occurred()) SWIG_fail;
35797 }
35798 {
35799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35800 }
35801 return resultobj;
35802fail:
35803 return NULL;
35804}
35805
35806
35807SWIGINTERN PyObject *_wrap_Window_SetExtraStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35808 PyObject *resultobj = 0;
35809 wxWindow *arg1 = (wxWindow *) 0 ;
35810 long arg2 ;
35811 void *argp1 = 0 ;
35812 int res1 = 0 ;
35813 long val2 ;
35814 int ecode2 = 0 ;
35815 PyObject * obj0 = 0 ;
35816 PyObject * obj1 = 0 ;
35817 char * kwnames[] = {
35818 (char *) "self",(char *) "exStyle", NULL
35819 };
35820
35821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) SWIG_fail;
35822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35823 if (!SWIG_IsOK(res1)) {
35824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetExtraStyle" "', expected argument " "1"" of type '" "wxWindow *""'");
35825 }
35826 arg1 = reinterpret_cast< wxWindow * >(argp1);
35827 ecode2 = SWIG_AsVal_long(obj1, &val2);
35828 if (!SWIG_IsOK(ecode2)) {
35829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetExtraStyle" "', expected argument " "2"" of type '" "long""'");
35830 }
35831 arg2 = static_cast< long >(val2);
35832 {
35833 PyThreadState* __tstate = wxPyBeginAllowThreads();
35834 (arg1)->SetExtraStyle(arg2);
35835 wxPyEndAllowThreads(__tstate);
35836 if (PyErr_Occurred()) SWIG_fail;
35837 }
35838 resultobj = SWIG_Py_Void();
35839 return resultobj;
35840fail:
35841 return NULL;
b1fcee84
RD
35842}
35843
35844
1bd55598
RD
35845SWIGINTERN PyObject *_wrap_Window_GetExtraStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35846 PyObject *resultobj = 0;
35847 wxWindow *arg1 = (wxWindow *) 0 ;
35848 long result;
35849 void *argp1 = 0 ;
35850 int res1 = 0 ;
35851 PyObject *swig_obj[1] ;
35852
35853 if (!args) SWIG_fail;
35854 swig_obj[0] = args;
35855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35856 if (!SWIG_IsOK(res1)) {
35857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetExtraStyle" "', expected argument " "1"" of type '" "wxWindow const *""'");
35858 }
35859 arg1 = reinterpret_cast< wxWindow * >(argp1);
35860 {
35861 PyThreadState* __tstate = wxPyBeginAllowThreads();
35862 result = (long)((wxWindow const *)arg1)->GetExtraStyle();
35863 wxPyEndAllowThreads(__tstate);
35864 if (PyErr_Occurred()) SWIG_fail;
35865 }
35866 resultobj = SWIG_From_long(static_cast< long >(result));
35867 return resultobj;
35868fail:
35869 return NULL;
35870}
35871
35872
35873SWIGINTERN PyObject *_wrap_Window_MakeModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35874 PyObject *resultobj = 0;
35875 wxWindow *arg1 = (wxWindow *) 0 ;
35876 bool arg2 = (bool) true ;
35877 void *argp1 = 0 ;
35878 int res1 = 0 ;
35879 bool val2 ;
35880 int ecode2 = 0 ;
35881 PyObject * obj0 = 0 ;
35882 PyObject * obj1 = 0 ;
35883 char * kwnames[] = {
35884 (char *) "self",(char *) "modal", NULL
35885 };
35886
35887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) SWIG_fail;
35888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35889 if (!SWIG_IsOK(res1)) {
35890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_MakeModal" "', expected argument " "1"" of type '" "wxWindow *""'");
35891 }
35892 arg1 = reinterpret_cast< wxWindow * >(argp1);
35893 if (obj1) {
35894 ecode2 = SWIG_AsVal_bool(obj1, &val2);
35895 if (!SWIG_IsOK(ecode2)) {
35896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_MakeModal" "', expected argument " "2"" of type '" "bool""'");
35897 }
35898 arg2 = static_cast< bool >(val2);
35899 }
35900 {
35901 PyThreadState* __tstate = wxPyBeginAllowThreads();
35902 (arg1)->MakeModal(arg2);
35903 wxPyEndAllowThreads(__tstate);
35904 if (PyErr_Occurred()) SWIG_fail;
35905 }
35906 resultobj = SWIG_Py_Void();
35907 return resultobj;
35908fail:
35909 return NULL;
35910}
35911
35912
35913SWIGINTERN PyObject *_wrap_Window_SetThemeEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35914 PyObject *resultobj = 0;
35915 wxWindow *arg1 = (wxWindow *) 0 ;
35916 bool arg2 ;
35917 void *argp1 = 0 ;
35918 int res1 = 0 ;
35919 bool val2 ;
35920 int ecode2 = 0 ;
35921 PyObject * obj0 = 0 ;
35922 PyObject * obj1 = 0 ;
35923 char * kwnames[] = {
35924 (char *) "self",(char *) "enableTheme", NULL
35925 };
35926
35927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
35928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35929 if (!SWIG_IsOK(res1)) {
35930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetThemeEnabled" "', expected argument " "1"" of type '" "wxWindow *""'");
35931 }
35932 arg1 = reinterpret_cast< wxWindow * >(argp1);
35933 ecode2 = SWIG_AsVal_bool(obj1, &val2);
35934 if (!SWIG_IsOK(ecode2)) {
35935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetThemeEnabled" "', expected argument " "2"" of type '" "bool""'");
35936 }
35937 arg2 = static_cast< bool >(val2);
35938 {
35939 PyThreadState* __tstate = wxPyBeginAllowThreads();
35940 (arg1)->SetThemeEnabled(arg2);
35941 wxPyEndAllowThreads(__tstate);
35942 if (PyErr_Occurred()) SWIG_fail;
35943 }
35944 resultobj = SWIG_Py_Void();
35945 return resultobj;
35946fail:
35947 return NULL;
d55e5bfc
RD
35948}
35949
35950
1bd55598
RD
35951SWIGINTERN PyObject *_wrap_Window_GetThemeEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35952 PyObject *resultobj = 0;
35953 wxWindow *arg1 = (wxWindow *) 0 ;
35954 bool result;
35955 void *argp1 = 0 ;
35956 int res1 = 0 ;
35957 PyObject *swig_obj[1] ;
35958
35959 if (!args) SWIG_fail;
35960 swig_obj[0] = args;
35961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35962 if (!SWIG_IsOK(res1)) {
35963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetThemeEnabled" "', expected argument " "1"" of type '" "wxWindow const *""'");
35964 }
35965 arg1 = reinterpret_cast< wxWindow * >(argp1);
35966 {
35967 PyThreadState* __tstate = wxPyBeginAllowThreads();
35968 result = (bool)((wxWindow const *)arg1)->GetThemeEnabled();
35969 wxPyEndAllowThreads(__tstate);
35970 if (PyErr_Occurred()) SWIG_fail;
35971 }
35972 {
35973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35974 }
35975 return resultobj;
35976fail:
35977 return NULL;
d55e5bfc
RD
35978}
35979
35980
1bd55598
RD
35981SWIGINTERN PyObject *_wrap_Window_SetFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35982 PyObject *resultobj = 0;
35983 wxWindow *arg1 = (wxWindow *) 0 ;
35984 void *argp1 = 0 ;
35985 int res1 = 0 ;
35986 PyObject *swig_obj[1] ;
35987
35988 if (!args) SWIG_fail;
35989 swig_obj[0] = args;
35990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35991 if (!SWIG_IsOK(res1)) {
35992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetFocus" "', expected argument " "1"" of type '" "wxWindow *""'");
35993 }
35994 arg1 = reinterpret_cast< wxWindow * >(argp1);
35995 {
35996 PyThreadState* __tstate = wxPyBeginAllowThreads();
35997 (arg1)->SetFocus();
35998 wxPyEndAllowThreads(__tstate);
35999 if (PyErr_Occurred()) SWIG_fail;
36000 }
36001 resultobj = SWIG_Py_Void();
36002 return resultobj;
36003fail:
36004 return NULL;
b1fcee84
RD
36005}
36006
36007
1bd55598
RD
36008SWIGINTERN PyObject *_wrap_Window_SetFocusFromKbd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36009 PyObject *resultobj = 0;
36010 wxWindow *arg1 = (wxWindow *) 0 ;
36011 void *argp1 = 0 ;
36012 int res1 = 0 ;
36013 PyObject *swig_obj[1] ;
36014
36015 if (!args) SWIG_fail;
36016 swig_obj[0] = args;
36017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36018 if (!SWIG_IsOK(res1)) {
36019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetFocusFromKbd" "', expected argument " "1"" of type '" "wxWindow *""'");
36020 }
36021 arg1 = reinterpret_cast< wxWindow * >(argp1);
36022 {
36023 PyThreadState* __tstate = wxPyBeginAllowThreads();
36024 (arg1)->SetFocusFromKbd();
36025 wxPyEndAllowThreads(__tstate);
36026 if (PyErr_Occurred()) SWIG_fail;
36027 }
36028 resultobj = SWIG_Py_Void();
36029 return resultobj;
36030fail:
36031 return NULL;
d55e5bfc
RD
36032}
36033
36034
1bd55598
RD
36035SWIGINTERN PyObject *_wrap_Window_FindFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36036 PyObject *resultobj = 0;
36037 wxWindow *result = 0 ;
36038
36039 if (!SWIG_Python_UnpackTuple(args,"Window_FindFocus",0,0,0)) SWIG_fail;
36040 {
36041 if (!wxPyCheckForApp()) SWIG_fail;
36042 PyThreadState* __tstate = wxPyBeginAllowThreads();
36043 result = (wxWindow *)wxWindow::FindFocus();
36044 wxPyEndAllowThreads(__tstate);
36045 if (PyErr_Occurred()) SWIG_fail;
36046 }
36047 {
36048 resultobj = wxPyMake_wxObject(result, 0);
36049 }
36050 return resultobj;
36051fail:
36052 return NULL;
d55e5bfc
RD
36053}
36054
36055
1bd55598
RD
36056SWIGINTERN PyObject *_wrap_Window_AcceptsFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36057 PyObject *resultobj = 0;
36058 wxWindow *arg1 = (wxWindow *) 0 ;
36059 bool result;
36060 void *argp1 = 0 ;
36061 int res1 = 0 ;
36062 PyObject *swig_obj[1] ;
36063
36064 if (!args) SWIG_fail;
36065 swig_obj[0] = args;
36066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36067 if (!SWIG_IsOK(res1)) {
36068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_AcceptsFocus" "', expected argument " "1"" of type '" "wxWindow const *""'");
36069 }
36070 arg1 = reinterpret_cast< wxWindow * >(argp1);
36071 {
36072 PyThreadState* __tstate = wxPyBeginAllowThreads();
36073 result = (bool)((wxWindow const *)arg1)->AcceptsFocus();
36074 wxPyEndAllowThreads(__tstate);
36075 if (PyErr_Occurred()) SWIG_fail;
36076 }
36077 {
36078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36079 }
36080 return resultobj;
36081fail:
36082 return NULL;
d55e5bfc
RD
36083}
36084
36085
1bd55598
RD
36086SWIGINTERN PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36087 PyObject *resultobj = 0;
36088 wxWindow *arg1 = (wxWindow *) 0 ;
36089 bool result;
36090 void *argp1 = 0 ;
36091 int res1 = 0 ;
36092 PyObject *swig_obj[1] ;
36093
36094 if (!args) SWIG_fail;
36095 swig_obj[0] = args;
36096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36097 if (!SWIG_IsOK(res1)) {
36098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_AcceptsFocusFromKeyboard" "', expected argument " "1"" of type '" "wxWindow const *""'");
36099 }
36100 arg1 = reinterpret_cast< wxWindow * >(argp1);
36101 {
36102 PyThreadState* __tstate = wxPyBeginAllowThreads();
36103 result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard();
36104 wxPyEndAllowThreads(__tstate);
36105 if (PyErr_Occurred()) SWIG_fail;
36106 }
36107 {
36108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36109 }
36110 return resultobj;
36111fail:
36112 return NULL;
d55e5bfc
RD
36113}
36114
36115
1bd55598
RD
36116SWIGINTERN PyObject *_wrap_Window_Navigate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36117 PyObject *resultobj = 0;
36118 wxWindow *arg1 = (wxWindow *) 0 ;
36119 int arg2 = (int) wxNavigationKeyEvent::IsForward ;
36120 bool result;
36121 void *argp1 = 0 ;
36122 int res1 = 0 ;
36123 int val2 ;
36124 int ecode2 = 0 ;
36125 PyObject * obj0 = 0 ;
36126 PyObject * obj1 = 0 ;
36127 char * kwnames[] = {
36128 (char *) "self",(char *) "flags", NULL
36129 };
36130
36131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) SWIG_fail;
36132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36133 if (!SWIG_IsOK(res1)) {
36134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Navigate" "', expected argument " "1"" of type '" "wxWindow *""'");
36135 }
36136 arg1 = reinterpret_cast< wxWindow * >(argp1);
36137 if (obj1) {
36138 ecode2 = SWIG_AsVal_int(obj1, &val2);
36139 if (!SWIG_IsOK(ecode2)) {
36140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Navigate" "', expected argument " "2"" of type '" "int""'");
36141 }
36142 arg2 = static_cast< int >(val2);
36143 }
36144 {
36145 PyThreadState* __tstate = wxPyBeginAllowThreads();
36146 result = (bool)(arg1)->Navigate(arg2);
36147 wxPyEndAllowThreads(__tstate);
36148 if (PyErr_Occurred()) SWIG_fail;
36149 }
36150 {
36151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36152 }
36153 return resultobj;
36154fail:
36155 return NULL;
36156}
36157
36158
36159SWIGINTERN PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36160 PyObject *resultobj = 0;
36161 wxWindow *arg1 = (wxWindow *) 0 ;
36162 wxWindow *arg2 = (wxWindow *) 0 ;
36163 void *argp1 = 0 ;
36164 int res1 = 0 ;
36165 void *argp2 = 0 ;
36166 int res2 = 0 ;
36167 PyObject * obj0 = 0 ;
36168 PyObject * obj1 = 0 ;
36169 char * kwnames[] = {
36170 (char *) "self",(char *) "win", NULL
36171 };
36172
36173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) SWIG_fail;
36174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36175 if (!SWIG_IsOK(res1)) {
36176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_MoveAfterInTabOrder" "', expected argument " "1"" of type '" "wxWindow *""'");
36177 }
36178 arg1 = reinterpret_cast< wxWindow * >(argp1);
36179 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36180 if (!SWIG_IsOK(res2)) {
36181 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_MoveAfterInTabOrder" "', expected argument " "2"" of type '" "wxWindow *""'");
36182 }
36183 arg2 = reinterpret_cast< wxWindow * >(argp2);
36184 {
36185 PyThreadState* __tstate = wxPyBeginAllowThreads();
36186 (arg1)->MoveAfterInTabOrder(arg2);
36187 wxPyEndAllowThreads(__tstate);
36188 if (PyErr_Occurred()) SWIG_fail;
36189 }
36190 resultobj = SWIG_Py_Void();
36191 return resultobj;
36192fail:
36193 return NULL;
36194}
36195
36196
36197SWIGINTERN PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36198 PyObject *resultobj = 0;
36199 wxWindow *arg1 = (wxWindow *) 0 ;
36200 wxWindow *arg2 = (wxWindow *) 0 ;
36201 void *argp1 = 0 ;
36202 int res1 = 0 ;
36203 void *argp2 = 0 ;
36204 int res2 = 0 ;
36205 PyObject * obj0 = 0 ;
36206 PyObject * obj1 = 0 ;
36207 char * kwnames[] = {
36208 (char *) "self",(char *) "win", NULL
36209 };
36210
36211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) SWIG_fail;
36212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36213 if (!SWIG_IsOK(res1)) {
36214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_MoveBeforeInTabOrder" "', expected argument " "1"" of type '" "wxWindow *""'");
36215 }
36216 arg1 = reinterpret_cast< wxWindow * >(argp1);
36217 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36218 if (!SWIG_IsOK(res2)) {
36219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_MoveBeforeInTabOrder" "', expected argument " "2"" of type '" "wxWindow *""'");
36220 }
36221 arg2 = reinterpret_cast< wxWindow * >(argp2);
36222 {
36223 PyThreadState* __tstate = wxPyBeginAllowThreads();
36224 (arg1)->MoveBeforeInTabOrder(arg2);
36225 wxPyEndAllowThreads(__tstate);
36226 if (PyErr_Occurred()) SWIG_fail;
36227 }
36228 resultobj = SWIG_Py_Void();
36229 return resultobj;
36230fail:
36231 return NULL;
d55e5bfc
RD
36232}
36233
36234
1bd55598
RD
36235SWIGINTERN PyObject *_wrap_Window_GetChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36236 PyObject *resultobj = 0;
36237 wxWindow *arg1 = (wxWindow *) 0 ;
36238 PyObject *result = 0 ;
36239 void *argp1 = 0 ;
36240 int res1 = 0 ;
36241 PyObject *swig_obj[1] ;
36242
36243 if (!args) SWIG_fail;
36244 swig_obj[0] = args;
36245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36246 if (!SWIG_IsOK(res1)) {
36247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetChildren" "', expected argument " "1"" of type '" "wxWindow *""'");
36248 }
36249 arg1 = reinterpret_cast< wxWindow * >(argp1);
36250 {
36251 PyThreadState* __tstate = wxPyBeginAllowThreads();
36252 result = (PyObject *)wxWindow_GetChildren(arg1);
36253 wxPyEndAllowThreads(__tstate);
36254 if (PyErr_Occurred()) SWIG_fail;
36255 }
36256 resultobj = result;
36257 return resultobj;
36258fail:
36259 return NULL;
d55e5bfc
RD
36260}
36261
36262
1bd55598
RD
36263SWIGINTERN PyObject *_wrap_Window_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36264 PyObject *resultobj = 0;
36265 wxWindow *arg1 = (wxWindow *) 0 ;
36266 wxWindow *result = 0 ;
36267 void *argp1 = 0 ;
36268 int res1 = 0 ;
36269 PyObject *swig_obj[1] ;
36270
36271 if (!args) SWIG_fail;
36272 swig_obj[0] = args;
36273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36274 if (!SWIG_IsOK(res1)) {
36275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetParent" "', expected argument " "1"" of type '" "wxWindow const *""'");
36276 }
36277 arg1 = reinterpret_cast< wxWindow * >(argp1);
36278 {
36279 PyThreadState* __tstate = wxPyBeginAllowThreads();
36280 result = (wxWindow *)((wxWindow const *)arg1)->GetParent();
36281 wxPyEndAllowThreads(__tstate);
36282 if (PyErr_Occurred()) SWIG_fail;
36283 }
36284 {
36285 resultobj = wxPyMake_wxObject(result, 0);
36286 }
36287 return resultobj;
36288fail:
36289 return NULL;
d55e5bfc
RD
36290}
36291
36292
1bd55598
RD
36293SWIGINTERN PyObject *_wrap_Window_GetGrandParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36294 PyObject *resultobj = 0;
36295 wxWindow *arg1 = (wxWindow *) 0 ;
36296 wxWindow *result = 0 ;
36297 void *argp1 = 0 ;
36298 int res1 = 0 ;
36299 PyObject *swig_obj[1] ;
36300
36301 if (!args) SWIG_fail;
36302 swig_obj[0] = args;
36303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36304 if (!SWIG_IsOK(res1)) {
36305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetGrandParent" "', expected argument " "1"" of type '" "wxWindow const *""'");
36306 }
36307 arg1 = reinterpret_cast< wxWindow * >(argp1);
36308 {
36309 PyThreadState* __tstate = wxPyBeginAllowThreads();
36310 result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent();
36311 wxPyEndAllowThreads(__tstate);
36312 if (PyErr_Occurred()) SWIG_fail;
36313 }
36314 {
36315 resultobj = wxPyMake_wxObject(result, 0);
36316 }
36317 return resultobj;
36318fail:
36319 return NULL;
d55e5bfc
RD
36320}
36321
36322
1bd55598
RD
36323SWIGINTERN PyObject *_wrap_Window_IsTopLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36324 PyObject *resultobj = 0;
36325 wxWindow *arg1 = (wxWindow *) 0 ;
36326 bool result;
36327 void *argp1 = 0 ;
36328 int res1 = 0 ;
36329 PyObject *swig_obj[1] ;
36330
36331 if (!args) SWIG_fail;
36332 swig_obj[0] = args;
36333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36334 if (!SWIG_IsOK(res1)) {
36335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsTopLevel" "', expected argument " "1"" of type '" "wxWindow const *""'");
36336 }
36337 arg1 = reinterpret_cast< wxWindow * >(argp1);
36338 {
36339 PyThreadState* __tstate = wxPyBeginAllowThreads();
36340 result = (bool)((wxWindow const *)arg1)->IsTopLevel();
36341 wxPyEndAllowThreads(__tstate);
36342 if (PyErr_Occurred()) SWIG_fail;
36343 }
36344 {
36345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36346 }
36347 return resultobj;
36348fail:
36349 return NULL;
36350}
36351
36352
36353SWIGINTERN PyObject *_wrap_Window_Reparent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36354 PyObject *resultobj = 0;
36355 wxWindow *arg1 = (wxWindow *) 0 ;
36356 wxWindow *arg2 = (wxWindow *) 0 ;
36357 bool result;
36358 void *argp1 = 0 ;
36359 int res1 = 0 ;
36360 void *argp2 = 0 ;
36361 int res2 = 0 ;
36362 PyObject * obj0 = 0 ;
36363 PyObject * obj1 = 0 ;
36364 char * kwnames[] = {
36365 (char *) "self",(char *) "newParent", NULL
36366 };
36367
36368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) SWIG_fail;
36369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36370 if (!SWIG_IsOK(res1)) {
36371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Reparent" "', expected argument " "1"" of type '" "wxWindow *""'");
36372 }
36373 arg1 = reinterpret_cast< wxWindow * >(argp1);
36374 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36375 if (!SWIG_IsOK(res2)) {
36376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_Reparent" "', expected argument " "2"" of type '" "wxWindow *""'");
36377 }
36378 arg2 = reinterpret_cast< wxWindow * >(argp2);
36379 {
36380 PyThreadState* __tstate = wxPyBeginAllowThreads();
36381 result = (bool)(arg1)->Reparent(arg2);
36382 wxPyEndAllowThreads(__tstate);
36383 if (PyErr_Occurred()) SWIG_fail;
36384 }
36385 {
36386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36387 }
36388 return resultobj;
36389fail:
36390 return NULL;
36391}
36392
36393
36394SWIGINTERN PyObject *_wrap_Window_AddChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36395 PyObject *resultobj = 0;
36396 wxWindow *arg1 = (wxWindow *) 0 ;
36397 wxWindow *arg2 = (wxWindow *) 0 ;
36398 void *argp1 = 0 ;
36399 int res1 = 0 ;
36400 void *argp2 = 0 ;
36401 int res2 = 0 ;
36402 PyObject * obj0 = 0 ;
36403 PyObject * obj1 = 0 ;
36404 char * kwnames[] = {
36405 (char *) "self",(char *) "child", NULL
36406 };
36407
36408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) SWIG_fail;
36409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36410 if (!SWIG_IsOK(res1)) {
36411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_AddChild" "', expected argument " "1"" of type '" "wxWindow *""'");
36412 }
36413 arg1 = reinterpret_cast< wxWindow * >(argp1);
36414 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36415 if (!SWIG_IsOK(res2)) {
36416 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_AddChild" "', expected argument " "2"" of type '" "wxWindow *""'");
36417 }
36418 arg2 = reinterpret_cast< wxWindow * >(argp2);
36419 {
36420 PyThreadState* __tstate = wxPyBeginAllowThreads();
36421 (arg1)->AddChild(arg2);
36422 wxPyEndAllowThreads(__tstate);
36423 if (PyErr_Occurred()) SWIG_fail;
36424 }
36425 resultobj = SWIG_Py_Void();
36426 return resultobj;
36427fail:
36428 return NULL;
36429}
36430
36431
36432SWIGINTERN PyObject *_wrap_Window_RemoveChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36433 PyObject *resultobj = 0;
36434 wxWindow *arg1 = (wxWindow *) 0 ;
36435 wxWindow *arg2 = (wxWindow *) 0 ;
36436 void *argp1 = 0 ;
36437 int res1 = 0 ;
36438 void *argp2 = 0 ;
36439 int res2 = 0 ;
36440 PyObject * obj0 = 0 ;
36441 PyObject * obj1 = 0 ;
36442 char * kwnames[] = {
36443 (char *) "self",(char *) "child", NULL
36444 };
36445
36446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) SWIG_fail;
36447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36448 if (!SWIG_IsOK(res1)) {
36449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_RemoveChild" "', expected argument " "1"" of type '" "wxWindow *""'");
36450 }
36451 arg1 = reinterpret_cast< wxWindow * >(argp1);
36452 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36453 if (!SWIG_IsOK(res2)) {
36454 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_RemoveChild" "', expected argument " "2"" of type '" "wxWindow *""'");
36455 }
36456 arg2 = reinterpret_cast< wxWindow * >(argp2);
36457 {
36458 PyThreadState* __tstate = wxPyBeginAllowThreads();
36459 (arg1)->RemoveChild(arg2);
36460 wxPyEndAllowThreads(__tstate);
36461 if (PyErr_Occurred()) SWIG_fail;
36462 }
36463 resultobj = SWIG_Py_Void();
36464 return resultobj;
36465fail:
36466 return NULL;
36467}
36468
36469
704eda0c
RD
36470SWIGINTERN PyObject *_wrap_Window_SetDoubleBuffered(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36471 PyObject *resultobj = 0;
36472 wxWindow *arg1 = (wxWindow *) 0 ;
36473 bool arg2 ;
36474 void *argp1 = 0 ;
36475 int res1 = 0 ;
36476 bool val2 ;
36477 int ecode2 = 0 ;
36478 PyObject * obj0 = 0 ;
36479 PyObject * obj1 = 0 ;
36480 char * kwnames[] = {
36481 (char *) "self",(char *) "on", NULL
36482 };
36483
36484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDoubleBuffered",kwnames,&obj0,&obj1)) SWIG_fail;
36485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36486 if (!SWIG_IsOK(res1)) {
36487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetDoubleBuffered" "', expected argument " "1"" of type '" "wxWindow *""'");
36488 }
36489 arg1 = reinterpret_cast< wxWindow * >(argp1);
36490 ecode2 = SWIG_AsVal_bool(obj1, &val2);
36491 if (!SWIG_IsOK(ecode2)) {
36492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetDoubleBuffered" "', expected argument " "2"" of type '" "bool""'");
36493 }
36494 arg2 = static_cast< bool >(val2);
36495 {
36496 PyThreadState* __tstate = wxPyBeginAllowThreads();
36497 wxWindow_SetDoubleBuffered(arg1,arg2);
36498 wxPyEndAllowThreads(__tstate);
36499 if (PyErr_Occurred()) SWIG_fail;
36500 }
36501 resultobj = SWIG_Py_Void();
36502 return resultobj;
36503fail:
36504 return NULL;
36505}
36506
36507
1bd55598
RD
36508SWIGINTERN PyObject *_wrap_Window_FindWindowById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36509 PyObject *resultobj = 0;
36510 wxWindow *arg1 = (wxWindow *) 0 ;
36511 long arg2 ;
36512 wxWindow *result = 0 ;
36513 void *argp1 = 0 ;
36514 int res1 = 0 ;
36515 long val2 ;
36516 int ecode2 = 0 ;
36517 PyObject * obj0 = 0 ;
36518 PyObject * obj1 = 0 ;
36519 char * kwnames[] = {
36520 (char *) "self",(char *) "winid", NULL
36521 };
36522
36523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) SWIG_fail;
36524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36525 if (!SWIG_IsOK(res1)) {
36526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_FindWindowById" "', expected argument " "1"" of type '" "wxWindow *""'");
36527 }
36528 arg1 = reinterpret_cast< wxWindow * >(argp1);
36529 ecode2 = SWIG_AsVal_long(obj1, &val2);
36530 if (!SWIG_IsOK(ecode2)) {
36531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_FindWindowById" "', expected argument " "2"" of type '" "long""'");
36532 }
36533 arg2 = static_cast< long >(val2);
36534 {
36535 PyThreadState* __tstate = wxPyBeginAllowThreads();
36536 result = (wxWindow *)(arg1)->FindWindow(arg2);
36537 wxPyEndAllowThreads(__tstate);
36538 if (PyErr_Occurred()) SWIG_fail;
36539 }
36540 {
36541 resultobj = wxPyMake_wxObject(result, 0);
36542 }
36543 return resultobj;
36544fail:
36545 return NULL;
36546}
36547
36548
36549SWIGINTERN PyObject *_wrap_Window_FindWindowByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36550 PyObject *resultobj = 0;
36551 wxWindow *arg1 = (wxWindow *) 0 ;
36552 wxString *arg2 = 0 ;
36553 wxWindow *result = 0 ;
36554 void *argp1 = 0 ;
36555 int res1 = 0 ;
36556 bool temp2 = false ;
36557 PyObject * obj0 = 0 ;
36558 PyObject * obj1 = 0 ;
36559 char * kwnames[] = {
36560 (char *) "self",(char *) "name", NULL
36561 };
36562
36563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) SWIG_fail;
36564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36565 if (!SWIG_IsOK(res1)) {
36566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_FindWindowByName" "', expected argument " "1"" of type '" "wxWindow *""'");
36567 }
36568 arg1 = reinterpret_cast< wxWindow * >(argp1);
36569 {
36570 arg2 = wxString_in_helper(obj1);
36571 if (arg2 == NULL) SWIG_fail;
36572 temp2 = true;
36573 }
36574 {
36575 PyThreadState* __tstate = wxPyBeginAllowThreads();
36576 result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2);
36577 wxPyEndAllowThreads(__tstate);
36578 if (PyErr_Occurred()) SWIG_fail;
36579 }
36580 {
36581 resultobj = wxPyMake_wxObject(result, 0);
36582 }
36583 {
36584 if (temp2)
36585 delete arg2;
36586 }
36587 return resultobj;
36588fail:
36589 {
36590 if (temp2)
36591 delete arg2;
36592 }
36593 return NULL;
d55e5bfc
RD
36594}
36595
36596
1bd55598
RD
36597SWIGINTERN PyObject *_wrap_Window_GetEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36598 PyObject *resultobj = 0;
36599 wxWindow *arg1 = (wxWindow *) 0 ;
36600 wxEvtHandler *result = 0 ;
36601 void *argp1 = 0 ;
36602 int res1 = 0 ;
36603 PyObject *swig_obj[1] ;
36604
36605 if (!args) SWIG_fail;
36606 swig_obj[0] = args;
36607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36608 if (!SWIG_IsOK(res1)) {
36609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetEventHandler" "', expected argument " "1"" of type '" "wxWindow const *""'");
36610 }
36611 arg1 = reinterpret_cast< wxWindow * >(argp1);
36612 {
36613 PyThreadState* __tstate = wxPyBeginAllowThreads();
36614 result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler();
36615 wxPyEndAllowThreads(__tstate);
36616 if (PyErr_Occurred()) SWIG_fail;
36617 }
36618 {
36619 resultobj = wxPyMake_wxObject(result, 0);
36620 }
36621 return resultobj;
36622fail:
36623 return NULL;
36624}
36625
36626
36627SWIGINTERN PyObject *_wrap_Window_SetEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36628 PyObject *resultobj = 0;
36629 wxWindow *arg1 = (wxWindow *) 0 ;
36630 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
36631 void *argp1 = 0 ;
36632 int res1 = 0 ;
36633 void *argp2 = 0 ;
36634 int res2 = 0 ;
36635 PyObject * obj0 = 0 ;
36636 PyObject * obj1 = 0 ;
36637 char * kwnames[] = {
36638 (char *) "self",(char *) "handler", NULL
36639 };
36640
36641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) SWIG_fail;
36642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36643 if (!SWIG_IsOK(res1)) {
36644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetEventHandler" "', expected argument " "1"" of type '" "wxWindow *""'");
36645 }
36646 arg1 = reinterpret_cast< wxWindow * >(argp1);
36647 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
36648 if (!SWIG_IsOK(res2)) {
36649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetEventHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
36650 }
36651 arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
36652 {
36653 PyThreadState* __tstate = wxPyBeginAllowThreads();
36654 (arg1)->SetEventHandler(arg2);
36655 wxPyEndAllowThreads(__tstate);
36656 if (PyErr_Occurred()) SWIG_fail;
36657 }
36658 resultobj = SWIG_Py_Void();
36659 return resultobj;
36660fail:
36661 return NULL;
36662}
36663
36664
36665SWIGINTERN PyObject *_wrap_Window_PushEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36666 PyObject *resultobj = 0;
36667 wxWindow *arg1 = (wxWindow *) 0 ;
36668 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
36669 void *argp1 = 0 ;
36670 int res1 = 0 ;
36671 void *argp2 = 0 ;
36672 int res2 = 0 ;
36673 PyObject * obj0 = 0 ;
36674 PyObject * obj1 = 0 ;
36675 char * kwnames[] = {
36676 (char *) "self",(char *) "handler", NULL
36677 };
36678
36679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) SWIG_fail;
36680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36681 if (!SWIG_IsOK(res1)) {
36682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PushEventHandler" "', expected argument " "1"" of type '" "wxWindow *""'");
36683 }
36684 arg1 = reinterpret_cast< wxWindow * >(argp1);
36685 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
36686 if (!SWIG_IsOK(res2)) {
36687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_PushEventHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
36688 }
36689 arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
36690 {
36691 PyThreadState* __tstate = wxPyBeginAllowThreads();
36692 (arg1)->PushEventHandler(arg2);
36693 wxPyEndAllowThreads(__tstate);
36694 if (PyErr_Occurred()) SWIG_fail;
36695 }
36696 resultobj = SWIG_Py_Void();
36697 return resultobj;
36698fail:
36699 return NULL;
36700}
36701
36702
36703SWIGINTERN PyObject *_wrap_Window_PopEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36704 PyObject *resultobj = 0;
36705 wxWindow *arg1 = (wxWindow *) 0 ;
36706 bool arg2 = (bool) false ;
36707 wxEvtHandler *result = 0 ;
36708 void *argp1 = 0 ;
36709 int res1 = 0 ;
36710 bool val2 ;
36711 int ecode2 = 0 ;
36712 PyObject * obj0 = 0 ;
36713 PyObject * obj1 = 0 ;
36714 char * kwnames[] = {
36715 (char *) "self",(char *) "deleteHandler", NULL
36716 };
36717
36718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) SWIG_fail;
36719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36720 if (!SWIG_IsOK(res1)) {
36721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PopEventHandler" "', expected argument " "1"" of type '" "wxWindow *""'");
36722 }
36723 arg1 = reinterpret_cast< wxWindow * >(argp1);
36724 if (obj1) {
36725 ecode2 = SWIG_AsVal_bool(obj1, &val2);
36726 if (!SWIG_IsOK(ecode2)) {
36727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_PopEventHandler" "', expected argument " "2"" of type '" "bool""'");
36728 }
36729 arg2 = static_cast< bool >(val2);
36730 }
36731 {
36732 PyThreadState* __tstate = wxPyBeginAllowThreads();
36733 result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2);
36734 wxPyEndAllowThreads(__tstate);
36735 if (PyErr_Occurred()) SWIG_fail;
36736 }
36737 {
36738 resultobj = wxPyMake_wxObject(result, 0);
36739 }
36740 return resultobj;
36741fail:
36742 return NULL;
36743}
36744
36745
36746SWIGINTERN PyObject *_wrap_Window_RemoveEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36747 PyObject *resultobj = 0;
36748 wxWindow *arg1 = (wxWindow *) 0 ;
36749 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
36750 bool result;
36751 void *argp1 = 0 ;
36752 int res1 = 0 ;
36753 void *argp2 = 0 ;
36754 int res2 = 0 ;
36755 PyObject * obj0 = 0 ;
36756 PyObject * obj1 = 0 ;
36757 char * kwnames[] = {
36758 (char *) "self",(char *) "handler", NULL
36759 };
36760
36761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) SWIG_fail;
36762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36763 if (!SWIG_IsOK(res1)) {
36764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_RemoveEventHandler" "', expected argument " "1"" of type '" "wxWindow *""'");
36765 }
36766 arg1 = reinterpret_cast< wxWindow * >(argp1);
36767 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
36768 if (!SWIG_IsOK(res2)) {
36769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_RemoveEventHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
36770 }
36771 arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
36772 {
36773 PyThreadState* __tstate = wxPyBeginAllowThreads();
36774 result = (bool)(arg1)->RemoveEventHandler(arg2);
36775 wxPyEndAllowThreads(__tstate);
36776 if (PyErr_Occurred()) SWIG_fail;
36777 }
36778 {
36779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36780 }
36781 return resultobj;
36782fail:
36783 return NULL;
36784}
36785
36786
36787SWIGINTERN PyObject *_wrap_Window_SetValidator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36788 PyObject *resultobj = 0;
36789 wxWindow *arg1 = (wxWindow *) 0 ;
36790 wxValidator *arg2 = 0 ;
36791 void *argp1 = 0 ;
36792 int res1 = 0 ;
36793 void *argp2 = 0 ;
36794 int res2 = 0 ;
36795 PyObject * obj0 = 0 ;
36796 PyObject * obj1 = 0 ;
36797 char * kwnames[] = {
36798 (char *) "self",(char *) "validator", NULL
36799 };
36800
36801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) SWIG_fail;
36802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36803 if (!SWIG_IsOK(res1)) {
36804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetValidator" "', expected argument " "1"" of type '" "wxWindow *""'");
36805 }
36806 arg1 = reinterpret_cast< wxWindow * >(argp1);
36807 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxValidator, 0 | 0);
36808 if (!SWIG_IsOK(res2)) {
36809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetValidator" "', expected argument " "2"" of type '" "wxValidator const &""'");
36810 }
36811 if (!argp2) {
36812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_SetValidator" "', expected argument " "2"" of type '" "wxValidator const &""'");
36813 }
36814 arg2 = reinterpret_cast< wxValidator * >(argp2);
36815 {
36816 PyThreadState* __tstate = wxPyBeginAllowThreads();
36817 (arg1)->SetValidator((wxValidator const &)*arg2);
36818 wxPyEndAllowThreads(__tstate);
36819 if (PyErr_Occurred()) SWIG_fail;
36820 }
36821 resultobj = SWIG_Py_Void();
36822 return resultobj;
36823fail:
36824 return NULL;
d55e5bfc
RD
36825}
36826
36827
1bd55598
RD
36828SWIGINTERN PyObject *_wrap_Window_GetValidator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36829 PyObject *resultobj = 0;
36830 wxWindow *arg1 = (wxWindow *) 0 ;
36831 wxValidator *result = 0 ;
36832 void *argp1 = 0 ;
36833 int res1 = 0 ;
36834 PyObject *swig_obj[1] ;
36835
36836 if (!args) SWIG_fail;
36837 swig_obj[0] = args;
36838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36839 if (!SWIG_IsOK(res1)) {
36840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetValidator" "', expected argument " "1"" of type '" "wxWindow *""'");
36841 }
36842 arg1 = reinterpret_cast< wxWindow * >(argp1);
36843 {
36844 PyThreadState* __tstate = wxPyBeginAllowThreads();
36845 result = (wxValidator *)(arg1)->GetValidator();
36846 wxPyEndAllowThreads(__tstate);
36847 if (PyErr_Occurred()) SWIG_fail;
36848 }
36849 {
36850 resultobj = wxPyMake_wxObject(result, (bool)0);
36851 }
36852 return resultobj;
36853fail:
36854 return NULL;
d55e5bfc
RD
36855}
36856
36857
1bd55598
RD
36858SWIGINTERN PyObject *_wrap_Window_Validate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36859 PyObject *resultobj = 0;
36860 wxWindow *arg1 = (wxWindow *) 0 ;
36861 bool result;
36862 void *argp1 = 0 ;
36863 int res1 = 0 ;
36864 PyObject *swig_obj[1] ;
36865
36866 if (!args) SWIG_fail;
36867 swig_obj[0] = args;
36868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36869 if (!SWIG_IsOK(res1)) {
36870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Validate" "', expected argument " "1"" of type '" "wxWindow *""'");
36871 }
36872 arg1 = reinterpret_cast< wxWindow * >(argp1);
36873 {
36874 PyThreadState* __tstate = wxPyBeginAllowThreads();
36875 result = (bool)(arg1)->Validate();
36876 wxPyEndAllowThreads(__tstate);
36877 if (PyErr_Occurred()) SWIG_fail;
36878 }
36879 {
36880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36881 }
36882 return resultobj;
36883fail:
36884 return NULL;
d55e5bfc
RD
36885}
36886
36887
1bd55598
RD
36888SWIGINTERN PyObject *_wrap_Window_TransferDataToWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36889 PyObject *resultobj = 0;
36890 wxWindow *arg1 = (wxWindow *) 0 ;
36891 bool result;
36892 void *argp1 = 0 ;
36893 int res1 = 0 ;
36894 PyObject *swig_obj[1] ;
36895
36896 if (!args) SWIG_fail;
36897 swig_obj[0] = args;
36898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36899 if (!SWIG_IsOK(res1)) {
36900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_TransferDataToWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
36901 }
36902 arg1 = reinterpret_cast< wxWindow * >(argp1);
36903 {
36904 PyThreadState* __tstate = wxPyBeginAllowThreads();
36905 result = (bool)(arg1)->TransferDataToWindow();
36906 wxPyEndAllowThreads(__tstate);
36907 if (PyErr_Occurred()) SWIG_fail;
36908 }
36909 {
36910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36911 }
36912 return resultobj;
36913fail:
36914 return NULL;
d55e5bfc
RD
36915}
36916
36917
1bd55598
RD
36918SWIGINTERN PyObject *_wrap_Window_TransferDataFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36919 PyObject *resultobj = 0;
36920 wxWindow *arg1 = (wxWindow *) 0 ;
36921 bool result;
36922 void *argp1 = 0 ;
36923 int res1 = 0 ;
36924 PyObject *swig_obj[1] ;
36925
36926 if (!args) SWIG_fail;
36927 swig_obj[0] = args;
36928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36929 if (!SWIG_IsOK(res1)) {
36930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_TransferDataFromWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
36931 }
36932 arg1 = reinterpret_cast< wxWindow * >(argp1);
36933 {
36934 PyThreadState* __tstate = wxPyBeginAllowThreads();
36935 result = (bool)(arg1)->TransferDataFromWindow();
36936 wxPyEndAllowThreads(__tstate);
36937 if (PyErr_Occurred()) SWIG_fail;
36938 }
36939 {
36940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36941 }
36942 return resultobj;
36943fail:
36944 return NULL;
d55e5bfc
RD
36945}
36946
36947
1bd55598
RD
36948SWIGINTERN PyObject *_wrap_Window_InitDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36949 PyObject *resultobj = 0;
36950 wxWindow *arg1 = (wxWindow *) 0 ;
36951 void *argp1 = 0 ;
36952 int res1 = 0 ;
36953 PyObject *swig_obj[1] ;
36954
36955 if (!args) SWIG_fail;
36956 swig_obj[0] = args;
36957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36958 if (!SWIG_IsOK(res1)) {
36959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_InitDialog" "', expected argument " "1"" of type '" "wxWindow *""'");
36960 }
36961 arg1 = reinterpret_cast< wxWindow * >(argp1);
36962 {
36963 PyThreadState* __tstate = wxPyBeginAllowThreads();
36964 (arg1)->InitDialog();
36965 wxPyEndAllowThreads(__tstate);
36966 if (PyErr_Occurred()) SWIG_fail;
36967 }
36968 resultobj = SWIG_Py_Void();
36969 return resultobj;
36970fail:
36971 return NULL;
36972}
36973
36974
36975SWIGINTERN PyObject *_wrap_Window_SetAcceleratorTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36976 PyObject *resultobj = 0;
36977 wxWindow *arg1 = (wxWindow *) 0 ;
36978 wxAcceleratorTable *arg2 = 0 ;
36979 void *argp1 = 0 ;
36980 int res1 = 0 ;
36981 void *argp2 = 0 ;
36982 int res2 = 0 ;
36983 PyObject * obj0 = 0 ;
36984 PyObject * obj1 = 0 ;
36985 char * kwnames[] = {
36986 (char *) "self",(char *) "accel", NULL
36987 };
36988
36989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) SWIG_fail;
36990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36991 if (!SWIG_IsOK(res1)) {
36992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetAcceleratorTable" "', expected argument " "1"" of type '" "wxWindow *""'");
36993 }
36994 arg1 = reinterpret_cast< wxWindow * >(argp1);
36995 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAcceleratorTable, 0 | 0);
36996 if (!SWIG_IsOK(res2)) {
36997 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetAcceleratorTable" "', expected argument " "2"" of type '" "wxAcceleratorTable const &""'");
36998 }
36999 if (!argp2) {
37000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_SetAcceleratorTable" "', expected argument " "2"" of type '" "wxAcceleratorTable const &""'");
37001 }
37002 arg2 = reinterpret_cast< wxAcceleratorTable * >(argp2);
37003 {
37004 PyThreadState* __tstate = wxPyBeginAllowThreads();
37005 (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2);
37006 wxPyEndAllowThreads(__tstate);
37007 if (PyErr_Occurred()) SWIG_fail;
37008 }
37009 resultobj = SWIG_Py_Void();
37010 return resultobj;
37011fail:
37012 return NULL;
d55e5bfc
RD
37013}
37014
37015
1bd55598
RD
37016SWIGINTERN PyObject *_wrap_Window_GetAcceleratorTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37017 PyObject *resultobj = 0;
37018 wxWindow *arg1 = (wxWindow *) 0 ;
37019 wxAcceleratorTable *result = 0 ;
37020 void *argp1 = 0 ;
37021 int res1 = 0 ;
37022 PyObject *swig_obj[1] ;
37023
37024 if (!args) SWIG_fail;
37025 swig_obj[0] = args;
37026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37027 if (!SWIG_IsOK(res1)) {
37028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetAcceleratorTable" "', expected argument " "1"" of type '" "wxWindow *""'");
37029 }
37030 arg1 = reinterpret_cast< wxWindow * >(argp1);
37031 {
37032 PyThreadState* __tstate = wxPyBeginAllowThreads();
37033 result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable();
37034 wxPyEndAllowThreads(__tstate);
37035 if (PyErr_Occurred()) SWIG_fail;
37036 }
37037 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorTable, 0 | 0 );
37038 return resultobj;
37039fail:
37040 return NULL;
37041}
37042
37043
37044SWIGINTERN PyObject *_wrap_Window_RegisterHotKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37045 PyObject *resultobj = 0;
37046 wxWindow *arg1 = (wxWindow *) 0 ;
37047 int arg2 ;
37048 int arg3 ;
37049 int arg4 ;
37050 bool result;
37051 void *argp1 = 0 ;
37052 int res1 = 0 ;
37053 int val2 ;
37054 int ecode2 = 0 ;
37055 int val3 ;
37056 int ecode3 = 0 ;
37057 int val4 ;
37058 int ecode4 = 0 ;
37059 PyObject * obj0 = 0 ;
37060 PyObject * obj1 = 0 ;
37061 PyObject * obj2 = 0 ;
37062 PyObject * obj3 = 0 ;
37063 char * kwnames[] = {
37064 (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL
37065 };
37066
37067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37069 if (!SWIG_IsOK(res1)) {
37070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_RegisterHotKey" "', expected argument " "1"" of type '" "wxWindow *""'");
37071 }
37072 arg1 = reinterpret_cast< wxWindow * >(argp1);
37073 ecode2 = SWIG_AsVal_int(obj1, &val2);
37074 if (!SWIG_IsOK(ecode2)) {
37075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_RegisterHotKey" "', expected argument " "2"" of type '" "int""'");
37076 }
37077 arg2 = static_cast< int >(val2);
37078 ecode3 = SWIG_AsVal_int(obj2, &val3);
37079 if (!SWIG_IsOK(ecode3)) {
37080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_RegisterHotKey" "', expected argument " "3"" of type '" "int""'");
37081 }
37082 arg3 = static_cast< int >(val3);
37083 ecode4 = SWIG_AsVal_int(obj3, &val4);
37084 if (!SWIG_IsOK(ecode4)) {
37085 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_RegisterHotKey" "', expected argument " "4"" of type '" "int""'");
37086 }
37087 arg4 = static_cast< int >(val4);
37088 {
37089 PyThreadState* __tstate = wxPyBeginAllowThreads();
37090 result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4);
37091 wxPyEndAllowThreads(__tstate);
37092 if (PyErr_Occurred()) SWIG_fail;
37093 }
37094 {
37095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37096 }
37097 return resultobj;
37098fail:
37099 return NULL;
37100}
37101
37102
37103SWIGINTERN PyObject *_wrap_Window_UnregisterHotKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37104 PyObject *resultobj = 0;
37105 wxWindow *arg1 = (wxWindow *) 0 ;
37106 int arg2 ;
37107 bool result;
37108 void *argp1 = 0 ;
37109 int res1 = 0 ;
37110 int val2 ;
37111 int ecode2 = 0 ;
37112 PyObject * obj0 = 0 ;
37113 PyObject * obj1 = 0 ;
37114 char * kwnames[] = {
37115 (char *) "self",(char *) "hotkeyId", NULL
37116 };
37117
37118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) SWIG_fail;
37119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37120 if (!SWIG_IsOK(res1)) {
37121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_UnregisterHotKey" "', expected argument " "1"" of type '" "wxWindow *""'");
37122 }
37123 arg1 = reinterpret_cast< wxWindow * >(argp1);
37124 ecode2 = SWIG_AsVal_int(obj1, &val2);
37125 if (!SWIG_IsOK(ecode2)) {
37126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_UnregisterHotKey" "', expected argument " "2"" of type '" "int""'");
37127 }
37128 arg2 = static_cast< int >(val2);
37129 {
37130 PyThreadState* __tstate = wxPyBeginAllowThreads();
37131 result = (bool)wxWindow_UnregisterHotKey(arg1,arg2);
37132 wxPyEndAllowThreads(__tstate);
37133 if (PyErr_Occurred()) SWIG_fail;
37134 }
37135 {
37136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37137 }
37138 return resultobj;
37139fail:
37140 return NULL;
37141}
37142
37143
37144SWIGINTERN PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37145 PyObject *resultobj = 0;
37146 wxWindow *arg1 = (wxWindow *) 0 ;
37147 wxPoint *arg2 = 0 ;
37148 wxPoint result;
37149 void *argp1 = 0 ;
37150 int res1 = 0 ;
37151 wxPoint temp2 ;
37152 PyObject * obj0 = 0 ;
37153 PyObject * obj1 = 0 ;
37154 char * kwnames[] = {
37155 (char *) "self",(char *) "pt", NULL
37156 };
37157
37158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) SWIG_fail;
37159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37160 if (!SWIG_IsOK(res1)) {
37161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ConvertDialogPointToPixels" "', expected argument " "1"" of type '" "wxWindow *""'");
37162 }
37163 arg1 = reinterpret_cast< wxWindow * >(argp1);
37164 {
37165 arg2 = &temp2;
37166 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37167 }
37168 {
37169 PyThreadState* __tstate = wxPyBeginAllowThreads();
37170 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
37171 wxPyEndAllowThreads(__tstate);
37172 if (PyErr_Occurred()) SWIG_fail;
37173 }
37174 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
37175 return resultobj;
37176fail:
37177 return NULL;
37178}
37179
37180
37181SWIGINTERN PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37182 PyObject *resultobj = 0;
37183 wxWindow *arg1 = (wxWindow *) 0 ;
37184 wxSize *arg2 = 0 ;
37185 wxSize result;
37186 void *argp1 = 0 ;
37187 int res1 = 0 ;
37188 wxSize temp2 ;
37189 PyObject * obj0 = 0 ;
37190 PyObject * obj1 = 0 ;
37191 char * kwnames[] = {
37192 (char *) "self",(char *) "sz", NULL
37193 };
37194
37195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) SWIG_fail;
37196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37197 if (!SWIG_IsOK(res1)) {
37198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ConvertDialogSizeToPixels" "', expected argument " "1"" of type '" "wxWindow *""'");
37199 }
37200 arg1 = reinterpret_cast< wxWindow * >(argp1);
37201 {
37202 arg2 = &temp2;
37203 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
37204 }
37205 {
37206 PyThreadState* __tstate = wxPyBeginAllowThreads();
37207 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
37208 wxPyEndAllowThreads(__tstate);
37209 if (PyErr_Occurred()) SWIG_fail;
37210 }
37211 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
37212 return resultobj;
37213fail:
37214 return NULL;
37215}
37216
37217
37218SWIGINTERN PyObject *_wrap_Window_DLG_PNT(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37219 PyObject *resultobj = 0;
37220 wxWindow *arg1 = (wxWindow *) 0 ;
37221 wxPoint *arg2 = 0 ;
37222 wxPoint result;
37223 void *argp1 = 0 ;
37224 int res1 = 0 ;
37225 wxPoint temp2 ;
37226 PyObject * obj0 = 0 ;
37227 PyObject * obj1 = 0 ;
37228 char * kwnames[] = {
37229 (char *) "self",(char *) "pt", NULL
37230 };
37231
37232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) SWIG_fail;
37233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37234 if (!SWIG_IsOK(res1)) {
37235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_DLG_PNT" "', expected argument " "1"" of type '" "wxWindow *""'");
37236 }
37237 arg1 = reinterpret_cast< wxWindow * >(argp1);
37238 {
37239 arg2 = &temp2;
37240 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37241 }
37242 {
37243 PyThreadState* __tstate = wxPyBeginAllowThreads();
37244 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
37245 wxPyEndAllowThreads(__tstate);
37246 if (PyErr_Occurred()) SWIG_fail;
37247 }
37248 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
37249 return resultobj;
37250fail:
37251 return NULL;
37252}
37253
37254
37255SWIGINTERN PyObject *_wrap_Window_DLG_SZE(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37256 PyObject *resultobj = 0;
37257 wxWindow *arg1 = (wxWindow *) 0 ;
37258 wxSize *arg2 = 0 ;
37259 wxSize result;
37260 void *argp1 = 0 ;
37261 int res1 = 0 ;
37262 wxSize temp2 ;
37263 PyObject * obj0 = 0 ;
37264 PyObject * obj1 = 0 ;
37265 char * kwnames[] = {
37266 (char *) "self",(char *) "sz", NULL
37267 };
37268
37269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) SWIG_fail;
37270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37271 if (!SWIG_IsOK(res1)) {
37272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_DLG_SZE" "', expected argument " "1"" of type '" "wxWindow *""'");
37273 }
37274 arg1 = reinterpret_cast< wxWindow * >(argp1);
37275 {
37276 arg2 = &temp2;
37277 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
37278 }
37279 {
37280 PyThreadState* __tstate = wxPyBeginAllowThreads();
37281 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
37282 wxPyEndAllowThreads(__tstate);
37283 if (PyErr_Occurred()) SWIG_fail;
37284 }
37285 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
37286 return resultobj;
37287fail:
37288 return NULL;
37289}
37290
37291
37292SWIGINTERN PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37293 PyObject *resultobj = 0;
37294 wxWindow *arg1 = (wxWindow *) 0 ;
37295 wxPoint *arg2 = 0 ;
37296 wxPoint result;
37297 void *argp1 = 0 ;
37298 int res1 = 0 ;
37299 wxPoint temp2 ;
37300 PyObject * obj0 = 0 ;
37301 PyObject * obj1 = 0 ;
37302 char * kwnames[] = {
37303 (char *) "self",(char *) "pt", NULL
37304 };
37305
37306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) SWIG_fail;
37307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37308 if (!SWIG_IsOK(res1)) {
37309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ConvertPixelPointToDialog" "', expected argument " "1"" of type '" "wxWindow *""'");
37310 }
37311 arg1 = reinterpret_cast< wxWindow * >(argp1);
37312 {
37313 arg2 = &temp2;
37314 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37315 }
37316 {
37317 PyThreadState* __tstate = wxPyBeginAllowThreads();
37318 result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2);
37319 wxPyEndAllowThreads(__tstate);
37320 if (PyErr_Occurred()) SWIG_fail;
37321 }
37322 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
37323 return resultobj;
37324fail:
37325 return NULL;
37326}
37327
37328
37329SWIGINTERN PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37330 PyObject *resultobj = 0;
37331 wxWindow *arg1 = (wxWindow *) 0 ;
37332 wxSize *arg2 = 0 ;
37333 wxSize result;
37334 void *argp1 = 0 ;
37335 int res1 = 0 ;
37336 wxSize temp2 ;
37337 PyObject * obj0 = 0 ;
37338 PyObject * obj1 = 0 ;
37339 char * kwnames[] = {
37340 (char *) "self",(char *) "sz", NULL
37341 };
37342
37343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) SWIG_fail;
37344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37345 if (!SWIG_IsOK(res1)) {
37346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ConvertPixelSizeToDialog" "', expected argument " "1"" of type '" "wxWindow *""'");
37347 }
37348 arg1 = reinterpret_cast< wxWindow * >(argp1);
37349 {
37350 arg2 = &temp2;
37351 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
37352 }
37353 {
37354 PyThreadState* __tstate = wxPyBeginAllowThreads();
37355 result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2);
37356 wxPyEndAllowThreads(__tstate);
37357 if (PyErr_Occurred()) SWIG_fail;
37358 }
37359 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
37360 return resultobj;
37361fail:
37362 return NULL;
37363}
37364
37365
37366SWIGINTERN PyObject *_wrap_Window_WarpPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37367 PyObject *resultobj = 0;
37368 wxWindow *arg1 = (wxWindow *) 0 ;
37369 int arg2 ;
37370 int arg3 ;
37371 void *argp1 = 0 ;
37372 int res1 = 0 ;
37373 int val2 ;
37374 int ecode2 = 0 ;
37375 int val3 ;
37376 int ecode3 = 0 ;
37377 PyObject * obj0 = 0 ;
37378 PyObject * obj1 = 0 ;
37379 PyObject * obj2 = 0 ;
37380 char * kwnames[] = {
37381 (char *) "self",(char *) "x",(char *) "y", NULL
37382 };
37383
37384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37386 if (!SWIG_IsOK(res1)) {
37387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_WarpPointer" "', expected argument " "1"" of type '" "wxWindow *""'");
37388 }
37389 arg1 = reinterpret_cast< wxWindow * >(argp1);
37390 ecode2 = SWIG_AsVal_int(obj1, &val2);
37391 if (!SWIG_IsOK(ecode2)) {
37392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_WarpPointer" "', expected argument " "2"" of type '" "int""'");
37393 }
37394 arg2 = static_cast< int >(val2);
37395 ecode3 = SWIG_AsVal_int(obj2, &val3);
37396 if (!SWIG_IsOK(ecode3)) {
37397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_WarpPointer" "', expected argument " "3"" of type '" "int""'");
37398 }
37399 arg3 = static_cast< int >(val3);
37400 {
37401 PyThreadState* __tstate = wxPyBeginAllowThreads();
37402 (arg1)->WarpPointer(arg2,arg3);
37403 wxPyEndAllowThreads(__tstate);
37404 if (PyErr_Occurred()) SWIG_fail;
37405 }
37406 resultobj = SWIG_Py_Void();
37407 return resultobj;
37408fail:
37409 return NULL;
d55e5bfc
RD
37410}
37411
37412
1bd55598
RD
37413SWIGINTERN PyObject *_wrap_Window_CaptureMouse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37414 PyObject *resultobj = 0;
37415 wxWindow *arg1 = (wxWindow *) 0 ;
37416 void *argp1 = 0 ;
37417 int res1 = 0 ;
37418 PyObject *swig_obj[1] ;
37419
37420 if (!args) SWIG_fail;
37421 swig_obj[0] = args;
37422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37423 if (!SWIG_IsOK(res1)) {
37424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_CaptureMouse" "', expected argument " "1"" of type '" "wxWindow *""'");
37425 }
37426 arg1 = reinterpret_cast< wxWindow * >(argp1);
37427 {
37428 PyThreadState* __tstate = wxPyBeginAllowThreads();
37429 (arg1)->CaptureMouse();
37430 wxPyEndAllowThreads(__tstate);
37431 if (PyErr_Occurred()) SWIG_fail;
37432 }
37433 resultobj = SWIG_Py_Void();
37434 return resultobj;
37435fail:
37436 return NULL;
d55e5bfc
RD
37437}
37438
37439
1bd55598
RD
37440SWIGINTERN PyObject *_wrap_Window_ReleaseMouse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37441 PyObject *resultobj = 0;
37442 wxWindow *arg1 = (wxWindow *) 0 ;
37443 void *argp1 = 0 ;
37444 int res1 = 0 ;
37445 PyObject *swig_obj[1] ;
37446
37447 if (!args) SWIG_fail;
37448 swig_obj[0] = args;
37449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37450 if (!SWIG_IsOK(res1)) {
37451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ReleaseMouse" "', expected argument " "1"" of type '" "wxWindow *""'");
37452 }
37453 arg1 = reinterpret_cast< wxWindow * >(argp1);
37454 {
37455 PyThreadState* __tstate = wxPyBeginAllowThreads();
37456 (arg1)->ReleaseMouse();
37457 wxPyEndAllowThreads(__tstate);
37458 if (PyErr_Occurred()) SWIG_fail;
37459 }
37460 resultobj = SWIG_Py_Void();
37461 return resultobj;
37462fail:
37463 return NULL;
d55e5bfc
RD
37464}
37465
37466
1bd55598
RD
37467SWIGINTERN PyObject *_wrap_Window_GetCapture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37468 PyObject *resultobj = 0;
37469 wxWindow *result = 0 ;
37470
37471 if (!SWIG_Python_UnpackTuple(args,"Window_GetCapture",0,0,0)) SWIG_fail;
37472 {
37473 if (!wxPyCheckForApp()) SWIG_fail;
37474 PyThreadState* __tstate = wxPyBeginAllowThreads();
37475 result = (wxWindow *)wxWindow::GetCapture();
37476 wxPyEndAllowThreads(__tstate);
37477 if (PyErr_Occurred()) SWIG_fail;
37478 }
37479 {
37480 resultobj = wxPyMake_wxObject(result, 0);
37481 }
37482 return resultobj;
37483fail:
37484 return NULL;
d55e5bfc
RD
37485}
37486
37487
1bd55598
RD
37488SWIGINTERN PyObject *_wrap_Window_HasCapture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37489 PyObject *resultobj = 0;
37490 wxWindow *arg1 = (wxWindow *) 0 ;
37491 bool result;
37492 void *argp1 = 0 ;
37493 int res1 = 0 ;
37494 PyObject *swig_obj[1] ;
37495
37496 if (!args) SWIG_fail;
37497 swig_obj[0] = args;
37498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37499 if (!SWIG_IsOK(res1)) {
37500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HasCapture" "', expected argument " "1"" of type '" "wxWindow const *""'");
37501 }
37502 arg1 = reinterpret_cast< wxWindow * >(argp1);
37503 {
37504 PyThreadState* __tstate = wxPyBeginAllowThreads();
37505 result = (bool)((wxWindow const *)arg1)->HasCapture();
37506 wxPyEndAllowThreads(__tstate);
37507 if (PyErr_Occurred()) SWIG_fail;
37508 }
37509 {
37510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37511 }
37512 return resultobj;
37513fail:
37514 return NULL;
37515}
37516
37517
37518SWIGINTERN PyObject *_wrap_Window_Refresh(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37519 PyObject *resultobj = 0;
37520 wxWindow *arg1 = (wxWindow *) 0 ;
37521 bool arg2 = (bool) true ;
37522 wxRect *arg3 = (wxRect *) NULL ;
37523 void *argp1 = 0 ;
37524 int res1 = 0 ;
37525 bool val2 ;
37526 int ecode2 = 0 ;
37527 void *argp3 = 0 ;
37528 int res3 = 0 ;
37529 PyObject * obj0 = 0 ;
37530 PyObject * obj1 = 0 ;
37531 PyObject * obj2 = 0 ;
37532 char * kwnames[] = {
37533 (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL
37534 };
37535
37536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37538 if (!SWIG_IsOK(res1)) {
37539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Refresh" "', expected argument " "1"" of type '" "wxWindow *""'");
37540 }
37541 arg1 = reinterpret_cast< wxWindow * >(argp1);
37542 if (obj1) {
37543 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37544 if (!SWIG_IsOK(ecode2)) {
37545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Refresh" "', expected argument " "2"" of type '" "bool""'");
37546 }
37547 arg2 = static_cast< bool >(val2);
37548 }
37549 if (obj2) {
37550 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxRect, 0 | 0 );
37551 if (!SWIG_IsOK(res3)) {
37552 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Window_Refresh" "', expected argument " "3"" of type '" "wxRect const *""'");
d55e5bfc 37553 }
1bd55598
RD
37554 arg3 = reinterpret_cast< wxRect * >(argp3);
37555 }
37556 {
37557 PyThreadState* __tstate = wxPyBeginAllowThreads();
37558 (arg1)->Refresh(arg2,(wxRect const *)arg3);
37559 wxPyEndAllowThreads(__tstate);
37560 if (PyErr_Occurred()) SWIG_fail;
37561 }
37562 resultobj = SWIG_Py_Void();
37563 return resultobj;
37564fail:
37565 return NULL;
37566}
37567
37568
37569SWIGINTERN PyObject *_wrap_Window_RefreshRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37570 PyObject *resultobj = 0;
37571 wxWindow *arg1 = (wxWindow *) 0 ;
37572 wxRect *arg2 = 0 ;
37573 bool arg3 = (bool) true ;
37574 void *argp1 = 0 ;
37575 int res1 = 0 ;
37576 wxRect temp2 ;
37577 bool val3 ;
37578 int ecode3 = 0 ;
37579 PyObject * obj0 = 0 ;
37580 PyObject * obj1 = 0 ;
37581 PyObject * obj2 = 0 ;
37582 char * kwnames[] = {
37583 (char *) "self",(char *) "rect",(char *) "eraseBackground", NULL
37584 };
37585
37586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_RefreshRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37588 if (!SWIG_IsOK(res1)) {
37589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_RefreshRect" "', expected argument " "1"" of type '" "wxWindow *""'");
37590 }
37591 arg1 = reinterpret_cast< wxWindow * >(argp1);
37592 {
37593 arg2 = &temp2;
37594 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37595 }
37596 if (obj2) {
37597 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37598 if (!SWIG_IsOK(ecode3)) {
37599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_RefreshRect" "', expected argument " "3"" of type '" "bool""'");
37600 }
37601 arg3 = static_cast< bool >(val3);
37602 }
37603 {
37604 PyThreadState* __tstate = wxPyBeginAllowThreads();
37605 (arg1)->RefreshRect((wxRect const &)*arg2,arg3);
37606 wxPyEndAllowThreads(__tstate);
37607 if (PyErr_Occurred()) SWIG_fail;
37608 }
37609 resultobj = SWIG_Py_Void();
37610 return resultobj;
37611fail:
37612 return NULL;
d55e5bfc
RD
37613}
37614
37615
1bd55598
RD
37616SWIGINTERN PyObject *_wrap_Window_Update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37617 PyObject *resultobj = 0;
37618 wxWindow *arg1 = (wxWindow *) 0 ;
37619 void *argp1 = 0 ;
37620 int res1 = 0 ;
37621 PyObject *swig_obj[1] ;
37622
37623 if (!args) SWIG_fail;
37624 swig_obj[0] = args;
37625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37626 if (!SWIG_IsOK(res1)) {
37627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Update" "', expected argument " "1"" of type '" "wxWindow *""'");
37628 }
37629 arg1 = reinterpret_cast< wxWindow * >(argp1);
37630 {
37631 PyThreadState* __tstate = wxPyBeginAllowThreads();
37632 (arg1)->Update();
37633 wxPyEndAllowThreads(__tstate);
37634 if (PyErr_Occurred()) SWIG_fail;
37635 }
37636 resultobj = SWIG_Py_Void();
37637 return resultobj;
37638fail:
37639 return NULL;
d55e5bfc
RD
37640}
37641
37642
1bd55598
RD
37643SWIGINTERN PyObject *_wrap_Window_ClearBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37644 PyObject *resultobj = 0;
37645 wxWindow *arg1 = (wxWindow *) 0 ;
37646 void *argp1 = 0 ;
37647 int res1 = 0 ;
37648 PyObject *swig_obj[1] ;
37649
37650 if (!args) SWIG_fail;
37651 swig_obj[0] = args;
37652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37653 if (!SWIG_IsOK(res1)) {
37654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ClearBackground" "', expected argument " "1"" of type '" "wxWindow *""'");
37655 }
37656 arg1 = reinterpret_cast< wxWindow * >(argp1);
37657 {
37658 PyThreadState* __tstate = wxPyBeginAllowThreads();
37659 (arg1)->ClearBackground();
37660 wxPyEndAllowThreads(__tstate);
37661 if (PyErr_Occurred()) SWIG_fail;
37662 }
37663 resultobj = SWIG_Py_Void();
37664 return resultobj;
37665fail:
37666 return NULL;
d55e5bfc
RD
37667}
37668
37669
1bd55598
RD
37670SWIGINTERN PyObject *_wrap_Window_Freeze(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37671 PyObject *resultobj = 0;
37672 wxWindow *arg1 = (wxWindow *) 0 ;
37673 void *argp1 = 0 ;
37674 int res1 = 0 ;
37675 PyObject *swig_obj[1] ;
37676
37677 if (!args) SWIG_fail;
37678 swig_obj[0] = args;
37679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37680 if (!SWIG_IsOK(res1)) {
37681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Freeze" "', expected argument " "1"" of type '" "wxWindow *""'");
37682 }
37683 arg1 = reinterpret_cast< wxWindow * >(argp1);
37684 {
37685 PyThreadState* __tstate = wxPyBeginAllowThreads();
37686 (arg1)->Freeze();
37687 wxPyEndAllowThreads(__tstate);
37688 if (PyErr_Occurred()) SWIG_fail;
37689 }
37690 resultobj = SWIG_Py_Void();
37691 return resultobj;
37692fail:
37693 return NULL;
68350608
RD
37694}
37695
37696
33d6fd3b
RD
37697SWIGINTERN PyObject *_wrap_Window_IsFrozen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37698 PyObject *resultobj = 0;
37699 wxWindow *arg1 = (wxWindow *) 0 ;
37700 bool result;
37701 void *argp1 = 0 ;
37702 int res1 = 0 ;
37703 PyObject *swig_obj[1] ;
37704
37705 if (!args) SWIG_fail;
37706 swig_obj[0] = args;
37707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37708 if (!SWIG_IsOK(res1)) {
37709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsFrozen" "', expected argument " "1"" of type '" "wxWindow const *""'");
37710 }
37711 arg1 = reinterpret_cast< wxWindow * >(argp1);
37712 {
37713 PyThreadState* __tstate = wxPyBeginAllowThreads();
37714 result = (bool)((wxWindow const *)arg1)->IsFrozen();
37715 wxPyEndAllowThreads(__tstate);
37716 if (PyErr_Occurred()) SWIG_fail;
37717 }
37718 {
37719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37720 }
37721 return resultobj;
37722fail:
37723 return NULL;
37724}
37725
37726
1bd55598
RD
37727SWIGINTERN PyObject *_wrap_Window_Thaw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37728 PyObject *resultobj = 0;
37729 wxWindow *arg1 = (wxWindow *) 0 ;
37730 void *argp1 = 0 ;
37731 int res1 = 0 ;
37732 PyObject *swig_obj[1] ;
37733
37734 if (!args) SWIG_fail;
37735 swig_obj[0] = args;
37736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37737 if (!SWIG_IsOK(res1)) {
37738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Thaw" "', expected argument " "1"" of type '" "wxWindow *""'");
37739 }
37740 arg1 = reinterpret_cast< wxWindow * >(argp1);
37741 {
37742 PyThreadState* __tstate = wxPyBeginAllowThreads();
37743 (arg1)->Thaw();
37744 wxPyEndAllowThreads(__tstate);
37745 if (PyErr_Occurred()) SWIG_fail;
37746 }
37747 resultobj = SWIG_Py_Void();
37748 return resultobj;
37749fail:
37750 return NULL;
37751}
37752
37753
37754SWIGINTERN PyObject *_wrap_Window_PrepareDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37755 PyObject *resultobj = 0;
37756 wxWindow *arg1 = (wxWindow *) 0 ;
37757 wxDC *arg2 = 0 ;
37758 void *argp1 = 0 ;
37759 int res1 = 0 ;
37760 void *argp2 = 0 ;
37761 int res2 = 0 ;
37762 PyObject * obj0 = 0 ;
37763 PyObject * obj1 = 0 ;
37764 char * kwnames[] = {
37765 (char *) "self",(char *) "dc", NULL
37766 };
37767
37768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) SWIG_fail;
37769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37770 if (!SWIG_IsOK(res1)) {
37771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PrepareDC" "', expected argument " "1"" of type '" "wxWindow *""'");
37772 }
37773 arg1 = reinterpret_cast< wxWindow * >(argp1);
37774 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
37775 if (!SWIG_IsOK(res2)) {
37776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_PrepareDC" "', expected argument " "2"" of type '" "wxDC &""'");
37777 }
37778 if (!argp2) {
37779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_PrepareDC" "', expected argument " "2"" of type '" "wxDC &""'");
37780 }
37781 arg2 = reinterpret_cast< wxDC * >(argp2);
37782 {
37783 PyThreadState* __tstate = wxPyBeginAllowThreads();
37784 (arg1)->PrepareDC(*arg2);
37785 wxPyEndAllowThreads(__tstate);
37786 if (PyErr_Occurred()) SWIG_fail;
37787 }
37788 resultobj = SWIG_Py_Void();
37789 return resultobj;
37790fail:
37791 return NULL;
68350608
RD
37792}
37793
37794
b39fe951
RD
37795SWIGINTERN PyObject *_wrap_Window_IsDoubleBuffered(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37796 PyObject *resultobj = 0;
37797 wxWindow *arg1 = (wxWindow *) 0 ;
37798 bool result;
37799 void *argp1 = 0 ;
37800 int res1 = 0 ;
37801 PyObject *swig_obj[1] ;
37802
37803 if (!args) SWIG_fail;
37804 swig_obj[0] = args;
37805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37806 if (!SWIG_IsOK(res1)) {
37807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsDoubleBuffered" "', expected argument " "1"" of type '" "wxWindow const *""'");
37808 }
37809 arg1 = reinterpret_cast< wxWindow * >(argp1);
37810 {
37811 PyThreadState* __tstate = wxPyBeginAllowThreads();
37812 result = (bool)((wxWindow const *)arg1)->IsDoubleBuffered();
37813 wxPyEndAllowThreads(__tstate);
37814 if (PyErr_Occurred()) SWIG_fail;
37815 }
37816 {
37817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37818 }
37819 return resultobj;
37820fail:
37821 return NULL;
37822}
37823
37824
1bd55598
RD
37825SWIGINTERN PyObject *_wrap_Window_GetUpdateRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37826 PyObject *resultobj = 0;
37827 wxWindow *arg1 = (wxWindow *) 0 ;
37828 wxRegion *result = 0 ;
37829 void *argp1 = 0 ;
37830 int res1 = 0 ;
37831 PyObject *swig_obj[1] ;
37832
37833 if (!args) SWIG_fail;
37834 swig_obj[0] = args;
37835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37836 if (!SWIG_IsOK(res1)) {
37837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetUpdateRegion" "', expected argument " "1"" of type '" "wxWindow *""'");
37838 }
37839 arg1 = reinterpret_cast< wxWindow * >(argp1);
37840 {
37841 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 37842 {
1bd55598
RD
37843 wxRegion &_result_ref = (arg1)->GetUpdateRegion();
37844 result = (wxRegion *) &_result_ref;
908b74cd 37845 }
1bd55598
RD
37846 wxPyEndAllowThreads(__tstate);
37847 if (PyErr_Occurred()) SWIG_fail;
37848 }
37849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, 0 | 0 );
37850 return resultobj;
37851fail:
37852 return NULL;
908b74cd
RD
37853}
37854
37855
1bd55598
RD
37856SWIGINTERN PyObject *_wrap_Window_GetUpdateClientRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37857 PyObject *resultobj = 0;
37858 wxWindow *arg1 = (wxWindow *) 0 ;
37859 wxRect result;
37860 void *argp1 = 0 ;
37861 int res1 = 0 ;
37862 PyObject *swig_obj[1] ;
37863
37864 if (!args) SWIG_fail;
37865 swig_obj[0] = args;
37866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37867 if (!SWIG_IsOK(res1)) {
37868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetUpdateClientRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
37869 }
37870 arg1 = reinterpret_cast< wxWindow * >(argp1);
37871 {
37872 PyThreadState* __tstate = wxPyBeginAllowThreads();
37873 result = ((wxWindow const *)arg1)->GetUpdateClientRect();
37874 wxPyEndAllowThreads(__tstate);
37875 if (PyErr_Occurred()) SWIG_fail;
37876 }
37877 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
37878 return resultobj;
37879fail:
37880 return NULL;
37881}
37882
37883
37884SWIGINTERN PyObject *_wrap_Window_IsExposed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37885 PyObject *resultobj = 0;
37886 wxWindow *arg1 = (wxWindow *) 0 ;
37887 int arg2 ;
37888 int arg3 ;
37889 int arg4 = (int) 1 ;
37890 int arg5 = (int) 1 ;
37891 bool result;
37892 void *argp1 = 0 ;
37893 int res1 = 0 ;
37894 int val2 ;
37895 int ecode2 = 0 ;
37896 int val3 ;
37897 int ecode3 = 0 ;
37898 int val4 ;
37899 int ecode4 = 0 ;
37900 int val5 ;
37901 int ecode5 = 0 ;
37902 PyObject * obj0 = 0 ;
37903 PyObject * obj1 = 0 ;
37904 PyObject * obj2 = 0 ;
37905 PyObject * obj3 = 0 ;
37906 PyObject * obj4 = 0 ;
37907 char * kwnames[] = {
37908 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
37909 };
37910
37911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37913 if (!SWIG_IsOK(res1)) {
37914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsExposed" "', expected argument " "1"" of type '" "wxWindow const *""'");
37915 }
37916 arg1 = reinterpret_cast< wxWindow * >(argp1);
37917 ecode2 = SWIG_AsVal_int(obj1, &val2);
37918 if (!SWIG_IsOK(ecode2)) {
37919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_IsExposed" "', expected argument " "2"" of type '" "int""'");
37920 }
37921 arg2 = static_cast< int >(val2);
37922 ecode3 = SWIG_AsVal_int(obj2, &val3);
37923 if (!SWIG_IsOK(ecode3)) {
37924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_IsExposed" "', expected argument " "3"" of type '" "int""'");
37925 }
37926 arg3 = static_cast< int >(val3);
37927 if (obj3) {
37928 ecode4 = SWIG_AsVal_int(obj3, &val4);
37929 if (!SWIG_IsOK(ecode4)) {
37930 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_IsExposed" "', expected argument " "4"" of type '" "int""'");
37931 }
37932 arg4 = static_cast< int >(val4);
37933 }
37934 if (obj4) {
37935 ecode5 = SWIG_AsVal_int(obj4, &val5);
37936 if (!SWIG_IsOK(ecode5)) {
37937 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Window_IsExposed" "', expected argument " "5"" of type '" "int""'");
37938 }
37939 arg5 = static_cast< int >(val5);
37940 }
37941 {
37942 PyThreadState* __tstate = wxPyBeginAllowThreads();
37943 result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5);
37944 wxPyEndAllowThreads(__tstate);
37945 if (PyErr_Occurred()) SWIG_fail;
37946 }
37947 {
37948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37949 }
37950 return resultobj;
37951fail:
37952 return NULL;
37953}
37954
37955
37956SWIGINTERN PyObject *_wrap_Window_IsExposedPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37957 PyObject *resultobj = 0;
37958 wxWindow *arg1 = (wxWindow *) 0 ;
37959 wxPoint *arg2 = 0 ;
37960 bool result;
37961 void *argp1 = 0 ;
37962 int res1 = 0 ;
37963 wxPoint temp2 ;
37964 PyObject * obj0 = 0 ;
37965 PyObject * obj1 = 0 ;
37966 char * kwnames[] = {
37967 (char *) "self",(char *) "pt", NULL
37968 };
37969
37970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37972 if (!SWIG_IsOK(res1)) {
37973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsExposedPoint" "', expected argument " "1"" of type '" "wxWindow const *""'");
37974 }
37975 arg1 = reinterpret_cast< wxWindow * >(argp1);
37976 {
37977 arg2 = &temp2;
37978 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37979 }
37980 {
37981 PyThreadState* __tstate = wxPyBeginAllowThreads();
37982 result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2);
37983 wxPyEndAllowThreads(__tstate);
37984 if (PyErr_Occurred()) SWIG_fail;
37985 }
37986 {
37987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37988 }
37989 return resultobj;
37990fail:
37991 return NULL;
37992}
37993
37994
37995SWIGINTERN PyObject *_wrap_Window_IsExposedRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37996 PyObject *resultobj = 0;
37997 wxWindow *arg1 = (wxWindow *) 0 ;
37998 wxRect *arg2 = 0 ;
37999 bool result;
38000 void *argp1 = 0 ;
38001 int res1 = 0 ;
38002 wxRect temp2 ;
38003 PyObject * obj0 = 0 ;
38004 PyObject * obj1 = 0 ;
38005 char * kwnames[] = {
38006 (char *) "self",(char *) "rect", NULL
38007 };
38008
38009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) SWIG_fail;
38010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38011 if (!SWIG_IsOK(res1)) {
38012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsExposedRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
38013 }
38014 arg1 = reinterpret_cast< wxWindow * >(argp1);
38015 {
38016 arg2 = &temp2;
38017 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
38018 }
38019 {
38020 PyThreadState* __tstate = wxPyBeginAllowThreads();
38021 result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2);
38022 wxPyEndAllowThreads(__tstate);
38023 if (PyErr_Occurred()) SWIG_fail;
38024 }
38025 {
38026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38027 }
38028 return resultobj;
38029fail:
38030 return NULL;
d55e5bfc
RD
38031}
38032
38033
1bd55598
RD
38034SWIGINTERN PyObject *_wrap_Window_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38035 PyObject *resultobj = 0;
38036 wxWindow *arg1 = (wxWindow *) 0 ;
38037 SwigValueWrapper<wxVisualAttributes > result;
38038 void *argp1 = 0 ;
38039 int res1 = 0 ;
38040 PyObject *swig_obj[1] ;
38041
38042 if (!args) SWIG_fail;
38043 swig_obj[0] = args;
38044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38045 if (!SWIG_IsOK(res1)) {
38046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxWindow const *""'");
38047 }
38048 arg1 = reinterpret_cast< wxWindow * >(argp1);
38049 {
38050 PyThreadState* __tstate = wxPyBeginAllowThreads();
38051 result = ((wxWindow const *)arg1)->GetDefaultAttributes();
38052 wxPyEndAllowThreads(__tstate);
38053 if (PyErr_Occurred()) SWIG_fail;
38054 }
38055 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38056 return resultobj;
38057fail:
38058 return NULL;
38059}
38060
38061
38062SWIGINTERN PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38063 PyObject *resultobj = 0;
38064 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
38065 SwigValueWrapper<wxVisualAttributes > result;
38066 int val1 ;
38067 int ecode1 = 0 ;
38068 PyObject * obj0 = 0 ;
38069 char * kwnames[] = {
38070 (char *) "variant", NULL
38071 };
38072
38073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
38074 if (obj0) {
38075 ecode1 = SWIG_AsVal_int(obj0, &val1);
38076 if (!SWIG_IsOK(ecode1)) {
38077 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Window_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
38078 }
38079 arg1 = static_cast< wxWindowVariant >(val1);
38080 }
38081 {
38082 if (!wxPyCheckForApp()) SWIG_fail;
38083 PyThreadState* __tstate = wxPyBeginAllowThreads();
38084 result = wxWindow::GetClassDefaultAttributes(arg1);
38085 wxPyEndAllowThreads(__tstate);
38086 if (PyErr_Occurred()) SWIG_fail;
38087 }
38088 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38089 return resultobj;
38090fail:
38091 return NULL;
38092}
38093
38094
38095SWIGINTERN PyObject *_wrap_Window_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38096 PyObject *resultobj = 0;
38097 wxWindow *arg1 = (wxWindow *) 0 ;
38098 wxColour *arg2 = 0 ;
38099 bool result;
38100 void *argp1 = 0 ;
38101 int res1 = 0 ;
38102 wxColour temp2 ;
38103 PyObject * obj0 = 0 ;
38104 PyObject * obj1 = 0 ;
38105 char * kwnames[] = {
38106 (char *) "self",(char *) "colour", NULL
38107 };
38108
38109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
38110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38111 if (!SWIG_IsOK(res1)) {
38112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetBackgroundColour" "', expected argument " "1"" of type '" "wxWindow *""'");
38113 }
38114 arg1 = reinterpret_cast< wxWindow * >(argp1);
38115 {
38116 arg2 = &temp2;
38117 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38118 }
38119 {
38120 PyThreadState* __tstate = wxPyBeginAllowThreads();
38121 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
38122 wxPyEndAllowThreads(__tstate);
38123 if (PyErr_Occurred()) SWIG_fail;
38124 }
38125 {
38126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38127 }
38128 return resultobj;
38129fail:
38130 return NULL;
38131}
38132
38133
38134SWIGINTERN PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38135 PyObject *resultobj = 0;
38136 wxWindow *arg1 = (wxWindow *) 0 ;
38137 wxColour *arg2 = 0 ;
38138 void *argp1 = 0 ;
38139 int res1 = 0 ;
38140 wxColour temp2 ;
38141 PyObject * obj0 = 0 ;
38142 PyObject * obj1 = 0 ;
38143 char * kwnames[] = {
38144 (char *) "self",(char *) "colour", NULL
38145 };
38146
38147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
38148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38149 if (!SWIG_IsOK(res1)) {
38150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetOwnBackgroundColour" "', expected argument " "1"" of type '" "wxWindow *""'");
38151 }
38152 arg1 = reinterpret_cast< wxWindow * >(argp1);
38153 {
38154 arg2 = &temp2;
38155 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38156 }
38157 {
38158 PyThreadState* __tstate = wxPyBeginAllowThreads();
38159 (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2);
38160 wxPyEndAllowThreads(__tstate);
38161 if (PyErr_Occurred()) SWIG_fail;
38162 }
38163 resultobj = SWIG_Py_Void();
38164 return resultobj;
38165fail:
38166 return NULL;
38167}
38168
38169
38170SWIGINTERN PyObject *_wrap_Window_SetForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38171 PyObject *resultobj = 0;
38172 wxWindow *arg1 = (wxWindow *) 0 ;
38173 wxColour *arg2 = 0 ;
38174 bool result;
38175 void *argp1 = 0 ;
38176 int res1 = 0 ;
38177 wxColour temp2 ;
38178 PyObject * obj0 = 0 ;
38179 PyObject * obj1 = 0 ;
38180 char * kwnames[] = {
38181 (char *) "self",(char *) "colour", NULL
38182 };
38183
38184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
38185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38186 if (!SWIG_IsOK(res1)) {
38187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetForegroundColour" "', expected argument " "1"" of type '" "wxWindow *""'");
38188 }
38189 arg1 = reinterpret_cast< wxWindow * >(argp1);
38190 {
38191 arg2 = &temp2;
38192 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38193 }
38194 {
38195 PyThreadState* __tstate = wxPyBeginAllowThreads();
38196 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
38197 wxPyEndAllowThreads(__tstate);
38198 if (PyErr_Occurred()) SWIG_fail;
38199 }
38200 {
38201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38202 }
38203 return resultobj;
38204fail:
38205 return NULL;
38206}
38207
38208
38209SWIGINTERN PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38210 PyObject *resultobj = 0;
38211 wxWindow *arg1 = (wxWindow *) 0 ;
38212 wxColour *arg2 = 0 ;
38213 void *argp1 = 0 ;
38214 int res1 = 0 ;
38215 wxColour temp2 ;
38216 PyObject * obj0 = 0 ;
38217 PyObject * obj1 = 0 ;
38218 char * kwnames[] = {
38219 (char *) "self",(char *) "colour", NULL
38220 };
38221
38222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
38223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38224 if (!SWIG_IsOK(res1)) {
38225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetOwnForegroundColour" "', expected argument " "1"" of type '" "wxWindow *""'");
38226 }
38227 arg1 = reinterpret_cast< wxWindow * >(argp1);
38228 {
38229 arg2 = &temp2;
38230 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38231 }
38232 {
38233 PyThreadState* __tstate = wxPyBeginAllowThreads();
38234 (arg1)->SetOwnForegroundColour((wxColour const &)*arg2);
38235 wxPyEndAllowThreads(__tstate);
38236 if (PyErr_Occurred()) SWIG_fail;
38237 }
38238 resultobj = SWIG_Py_Void();
38239 return resultobj;
38240fail:
38241 return NULL;
d55e5bfc
RD
38242}
38243
38244
1bd55598
RD
38245SWIGINTERN PyObject *_wrap_Window_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38246 PyObject *resultobj = 0;
38247 wxWindow *arg1 = (wxWindow *) 0 ;
38248 wxColour result;
38249 void *argp1 = 0 ;
38250 int res1 = 0 ;
38251 PyObject *swig_obj[1] ;
38252
38253 if (!args) SWIG_fail;
38254 swig_obj[0] = args;
38255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38256 if (!SWIG_IsOK(res1)) {
38257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBackgroundColour" "', expected argument " "1"" of type '" "wxWindow const *""'");
38258 }
38259 arg1 = reinterpret_cast< wxWindow * >(argp1);
38260 {
38261 PyThreadState* __tstate = wxPyBeginAllowThreads();
38262 result = ((wxWindow const *)arg1)->GetBackgroundColour();
38263 wxPyEndAllowThreads(__tstate);
38264 if (PyErr_Occurred()) SWIG_fail;
38265 }
38266 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
38267 return resultobj;
38268fail:
38269 return NULL;
d55e5bfc
RD
38270}
38271
38272
1bd55598
RD
38273SWIGINTERN PyObject *_wrap_Window_GetForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38274 PyObject *resultobj = 0;
38275 wxWindow *arg1 = (wxWindow *) 0 ;
38276 wxColour result;
38277 void *argp1 = 0 ;
38278 int res1 = 0 ;
38279 PyObject *swig_obj[1] ;
38280
38281 if (!args) SWIG_fail;
38282 swig_obj[0] = args;
38283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38284 if (!SWIG_IsOK(res1)) {
38285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetForegroundColour" "', expected argument " "1"" of type '" "wxWindow const *""'");
38286 }
38287 arg1 = reinterpret_cast< wxWindow * >(argp1);
38288 {
38289 PyThreadState* __tstate = wxPyBeginAllowThreads();
38290 result = ((wxWindow const *)arg1)->GetForegroundColour();
38291 wxPyEndAllowThreads(__tstate);
38292 if (PyErr_Occurred()) SWIG_fail;
38293 }
38294 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
38295 return resultobj;
38296fail:
38297 return NULL;
d55e5bfc
RD
38298}
38299
38300
1bd55598
RD
38301SWIGINTERN PyObject *_wrap_Window_InheritsBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38302 PyObject *resultobj = 0;
38303 wxWindow *arg1 = (wxWindow *) 0 ;
38304 bool result;
38305 void *argp1 = 0 ;
38306 int res1 = 0 ;
38307 PyObject *swig_obj[1] ;
38308
38309 if (!args) SWIG_fail;
38310 swig_obj[0] = args;
38311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38312 if (!SWIG_IsOK(res1)) {
38313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_InheritsBackgroundColour" "', expected argument " "1"" of type '" "wxWindow const *""'");
38314 }
38315 arg1 = reinterpret_cast< wxWindow * >(argp1);
38316 {
38317 PyThreadState* __tstate = wxPyBeginAllowThreads();
38318 result = (bool)((wxWindow const *)arg1)->InheritsBackgroundColour();
38319 wxPyEndAllowThreads(__tstate);
38320 if (PyErr_Occurred()) SWIG_fail;
38321 }
38322 {
38323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38324 }
38325 return resultobj;
38326fail:
38327 return NULL;
d55e5bfc 38328}
1bd55598
RD
38329
38330
38331SWIGINTERN PyObject *_wrap_Window_UseBgCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38332 PyObject *resultobj = 0;
38333 wxWindow *arg1 = (wxWindow *) 0 ;
38334 bool result;
38335 void *argp1 = 0 ;
38336 int res1 = 0 ;
38337 PyObject *swig_obj[1] ;
38338
38339 if (!args) SWIG_fail;
38340 swig_obj[0] = args;
38341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38342 if (!SWIG_IsOK(res1)) {
38343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_UseBgCol" "', expected argument " "1"" of type '" "wxWindow const *""'");
38344 }
38345 arg1 = reinterpret_cast< wxWindow * >(argp1);
38346 {
38347 PyThreadState* __tstate = wxPyBeginAllowThreads();
38348 result = (bool)((wxWindow const *)arg1)->UseBgCol();
38349 wxPyEndAllowThreads(__tstate);
38350 if (PyErr_Occurred()) SWIG_fail;
38351 }
38352 {
38353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38354 }
38355 return resultobj;
38356fail:
38357 return NULL;
38358}
38359
38360
38361SWIGINTERN PyObject *_wrap_Window_SetBackgroundStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38362 PyObject *resultobj = 0;
38363 wxWindow *arg1 = (wxWindow *) 0 ;
38364 wxBackgroundStyle arg2 ;
38365 bool result;
38366 void *argp1 = 0 ;
38367 int res1 = 0 ;
38368 int val2 ;
38369 int ecode2 = 0 ;
38370 PyObject * obj0 = 0 ;
38371 PyObject * obj1 = 0 ;
38372 char * kwnames[] = {
38373 (char *) "self",(char *) "style", NULL
38374 };
38375
38376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) SWIG_fail;
38377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38378 if (!SWIG_IsOK(res1)) {
38379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetBackgroundStyle" "', expected argument " "1"" of type '" "wxWindow *""'");
38380 }
38381 arg1 = reinterpret_cast< wxWindow * >(argp1);
38382 ecode2 = SWIG_AsVal_int(obj1, &val2);
38383 if (!SWIG_IsOK(ecode2)) {
38384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetBackgroundStyle" "', expected argument " "2"" of type '" "wxBackgroundStyle""'");
38385 }
38386 arg2 = static_cast< wxBackgroundStyle >(val2);
38387 {
38388 PyThreadState* __tstate = wxPyBeginAllowThreads();
38389 result = (bool)(arg1)->SetBackgroundStyle(arg2);
38390 wxPyEndAllowThreads(__tstate);
38391 if (PyErr_Occurred()) SWIG_fail;
38392 }
38393 {
38394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38395 }
38396 return resultobj;
38397fail:
38398 return NULL;
d55e5bfc
RD
38399}
38400
38401
1bd55598
RD
38402SWIGINTERN PyObject *_wrap_Window_GetBackgroundStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38403 PyObject *resultobj = 0;
38404 wxWindow *arg1 = (wxWindow *) 0 ;
38405 wxBackgroundStyle result;
38406 void *argp1 = 0 ;
38407 int res1 = 0 ;
38408 PyObject *swig_obj[1] ;
38409
38410 if (!args) SWIG_fail;
38411 swig_obj[0] = args;
38412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38413 if (!SWIG_IsOK(res1)) {
38414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBackgroundStyle" "', expected argument " "1"" of type '" "wxWindow const *""'");
38415 }
38416 arg1 = reinterpret_cast< wxWindow * >(argp1);
38417 {
38418 PyThreadState* __tstate = wxPyBeginAllowThreads();
38419 result = (wxBackgroundStyle)((wxWindow const *)arg1)->GetBackgroundStyle();
38420 wxPyEndAllowThreads(__tstate);
38421 if (PyErr_Occurred()) SWIG_fail;
38422 }
38423 resultobj = SWIG_From_int(static_cast< int >(result));
38424 return resultobj;
38425fail:
38426 return NULL;
d55e5bfc
RD
38427}
38428
38429
1bd55598
RD
38430SWIGINTERN PyObject *_wrap_Window_HasTransparentBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38431 PyObject *resultobj = 0;
38432 wxWindow *arg1 = (wxWindow *) 0 ;
38433 bool result;
38434 void *argp1 = 0 ;
38435 int res1 = 0 ;
38436 PyObject *swig_obj[1] ;
38437
38438 if (!args) SWIG_fail;
38439 swig_obj[0] = args;
38440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38441 if (!SWIG_IsOK(res1)) {
38442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HasTransparentBackground" "', expected argument " "1"" of type '" "wxWindow *""'");
38443 }
38444 arg1 = reinterpret_cast< wxWindow * >(argp1);
38445 {
38446 PyThreadState* __tstate = wxPyBeginAllowThreads();
38447 result = (bool)(arg1)->HasTransparentBackground();
38448 wxPyEndAllowThreads(__tstate);
38449 if (PyErr_Occurred()) SWIG_fail;
38450 }
38451 {
38452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38453 }
38454 return resultobj;
38455fail:
38456 return NULL;
38457}
38458
38459
38460SWIGINTERN PyObject *_wrap_Window_SetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38461 PyObject *resultobj = 0;
38462 wxWindow *arg1 = (wxWindow *) 0 ;
38463 wxCursor *arg2 = 0 ;
38464 bool result;
38465 void *argp1 = 0 ;
38466 int res1 = 0 ;
38467 void *argp2 = 0 ;
38468 int res2 = 0 ;
38469 PyObject * obj0 = 0 ;
38470 PyObject * obj1 = 0 ;
38471 char * kwnames[] = {
38472 (char *) "self",(char *) "cursor", NULL
38473 };
38474
38475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) SWIG_fail;
38476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38477 if (!SWIG_IsOK(res1)) {
38478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetCursor" "', expected argument " "1"" of type '" "wxWindow *""'");
38479 }
38480 arg1 = reinterpret_cast< wxWindow * >(argp1);
38481 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
38482 if (!SWIG_IsOK(res2)) {
38483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
38484 }
38485 if (!argp2) {
38486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_SetCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
38487 }
38488 arg2 = reinterpret_cast< wxCursor * >(argp2);
38489 {
38490 PyThreadState* __tstate = wxPyBeginAllowThreads();
38491 result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2);
38492 wxPyEndAllowThreads(__tstate);
38493 if (PyErr_Occurred()) SWIG_fail;
38494 }
38495 {
38496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38497 }
38498 return resultobj;
38499fail:
38500 return NULL;
d55e5bfc
RD
38501}
38502
38503
1bd55598
RD
38504SWIGINTERN PyObject *_wrap_Window_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38505 PyObject *resultobj = 0;
38506 wxWindow *arg1 = (wxWindow *) 0 ;
38507 wxCursor result;
38508 void *argp1 = 0 ;
38509 int res1 = 0 ;
38510 PyObject *swig_obj[1] ;
38511
38512 if (!args) SWIG_fail;
38513 swig_obj[0] = args;
38514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38515 if (!SWIG_IsOK(res1)) {
38516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetCursor" "', expected argument " "1"" of type '" "wxWindow *""'");
38517 }
38518 arg1 = reinterpret_cast< wxWindow * >(argp1);
38519 {
38520 PyThreadState* __tstate = wxPyBeginAllowThreads();
38521 result = (arg1)->GetCursor();
38522 wxPyEndAllowThreads(__tstate);
38523 if (PyErr_Occurred()) SWIG_fail;
38524 }
38525 resultobj = SWIG_NewPointerObj((new wxCursor(static_cast< const wxCursor& >(result))), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
38526 return resultobj;
38527fail:
38528 return NULL;
38529}
38530
38531
38532SWIGINTERN PyObject *_wrap_Window_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38533 PyObject *resultobj = 0;
38534 wxWindow *arg1 = (wxWindow *) 0 ;
38535 wxFont *arg2 = 0 ;
38536 bool result;
38537 void *argp1 = 0 ;
38538 int res1 = 0 ;
38539 void *argp2 = 0 ;
38540 int res2 = 0 ;
38541 PyObject * obj0 = 0 ;
38542 PyObject * obj1 = 0 ;
38543 char * kwnames[] = {
38544 (char *) "self",(char *) "font", NULL
38545 };
38546
38547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38549 if (!SWIG_IsOK(res1)) {
38550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetFont" "', expected argument " "1"" of type '" "wxWindow *""'");
38551 }
38552 arg1 = reinterpret_cast< wxWindow * >(argp1);
38553 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38554 if (!SWIG_IsOK(res2)) {
38555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38556 }
38557 if (!argp2) {
38558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38559 }
38560 arg2 = reinterpret_cast< wxFont * >(argp2);
38561 {
38562 PyThreadState* __tstate = wxPyBeginAllowThreads();
38563 result = (bool)(arg1)->SetFont((wxFont const &)*arg2);
38564 wxPyEndAllowThreads(__tstate);
38565 if (PyErr_Occurred()) SWIG_fail;
38566 }
38567 {
38568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38569 }
38570 return resultobj;
38571fail:
38572 return NULL;
38573}
38574
38575
38576SWIGINTERN PyObject *_wrap_Window_SetOwnFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38577 PyObject *resultobj = 0;
38578 wxWindow *arg1 = (wxWindow *) 0 ;
38579 wxFont *arg2 = 0 ;
38580 void *argp1 = 0 ;
38581 int res1 = 0 ;
38582 void *argp2 = 0 ;
38583 int res2 = 0 ;
38584 PyObject * obj0 = 0 ;
38585 PyObject * obj1 = 0 ;
38586 char * kwnames[] = {
38587 (char *) "self",(char *) "font", NULL
38588 };
38589
38590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) SWIG_fail;
38591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38592 if (!SWIG_IsOK(res1)) {
38593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetOwnFont" "', expected argument " "1"" of type '" "wxWindow *""'");
38594 }
38595 arg1 = reinterpret_cast< wxWindow * >(argp1);
38596 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38597 if (!SWIG_IsOK(res2)) {
38598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetOwnFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38599 }
38600 if (!argp2) {
38601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_SetOwnFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38602 }
38603 arg2 = reinterpret_cast< wxFont * >(argp2);
38604 {
38605 PyThreadState* __tstate = wxPyBeginAllowThreads();
38606 (arg1)->SetOwnFont((wxFont const &)*arg2);
38607 wxPyEndAllowThreads(__tstate);
38608 if (PyErr_Occurred()) SWIG_fail;
38609 }
38610 resultobj = SWIG_Py_Void();
38611 return resultobj;
38612fail:
38613 return NULL;
d55e5bfc
RD
38614}
38615
38616
1bd55598
RD
38617SWIGINTERN PyObject *_wrap_Window_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38618 PyObject *resultobj = 0;
38619 wxWindow *arg1 = (wxWindow *) 0 ;
38620 wxFont result;
38621 void *argp1 = 0 ;
38622 int res1 = 0 ;
38623 PyObject *swig_obj[1] ;
38624
38625 if (!args) SWIG_fail;
38626 swig_obj[0] = args;
38627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38628 if (!SWIG_IsOK(res1)) {
38629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetFont" "', expected argument " "1"" of type '" "wxWindow *""'");
38630 }
38631 arg1 = reinterpret_cast< wxWindow * >(argp1);
38632 {
38633 PyThreadState* __tstate = wxPyBeginAllowThreads();
38634 result = (arg1)->GetFont();
38635 wxPyEndAllowThreads(__tstate);
38636 if (PyErr_Occurred()) SWIG_fail;
38637 }
38638 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
38639 return resultobj;
38640fail:
38641 return NULL;
38642}
38643
38644
38645SWIGINTERN PyObject *_wrap_Window_SetCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38646 PyObject *resultobj = 0;
38647 wxWindow *arg1 = (wxWindow *) 0 ;
38648 wxCaret *arg2 = (wxCaret *) 0 ;
38649 void *argp1 = 0 ;
38650 int res1 = 0 ;
38651 int res2 = 0 ;
38652 PyObject * obj0 = 0 ;
38653 PyObject * obj1 = 0 ;
38654 char * kwnames[] = {
38655 (char *) "self",(char *) "caret", NULL
38656 };
38657
38658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) SWIG_fail;
38659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38660 if (!SWIG_IsOK(res1)) {
38661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetCaret" "', expected argument " "1"" of type '" "wxWindow *""'");
38662 }
38663 arg1 = reinterpret_cast< wxWindow * >(argp1);
38664 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxCaret, SWIG_POINTER_DISOWN | 0 );
38665 if (!SWIG_IsOK(res2)) {
38666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetCaret" "', expected argument " "2"" of type '" "wxCaret *""'");
38667 }
38668 {
38669 PyThreadState* __tstate = wxPyBeginAllowThreads();
38670 (arg1)->SetCaret(arg2);
38671 wxPyEndAllowThreads(__tstate);
38672 if (PyErr_Occurred()) SWIG_fail;
38673 }
38674 resultobj = SWIG_Py_Void();
38675 return resultobj;
38676fail:
38677 return NULL;
d55e5bfc
RD
38678}
38679
38680
1bd55598
RD
38681SWIGINTERN PyObject *_wrap_Window_GetCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38682 PyObject *resultobj = 0;
38683 wxWindow *arg1 = (wxWindow *) 0 ;
38684 wxCaret *result = 0 ;
38685 void *argp1 = 0 ;
38686 int res1 = 0 ;
38687 PyObject *swig_obj[1] ;
38688
38689 if (!args) SWIG_fail;
38690 swig_obj[0] = args;
38691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38692 if (!SWIG_IsOK(res1)) {
38693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetCaret" "', expected argument " "1"" of type '" "wxWindow const *""'");
38694 }
38695 arg1 = reinterpret_cast< wxWindow * >(argp1);
38696 {
38697 PyThreadState* __tstate = wxPyBeginAllowThreads();
38698 result = (wxCaret *)((wxWindow const *)arg1)->GetCaret();
38699 wxPyEndAllowThreads(__tstate);
38700 if (PyErr_Occurred()) SWIG_fail;
38701 }
38702 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCaret, 0 | 0 );
38703 return resultobj;
38704fail:
38705 return NULL;
d55e5bfc 38706}
1bd55598
RD
38707
38708
38709SWIGINTERN PyObject *_wrap_Window_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38710 PyObject *resultobj = 0;
38711 wxWindow *arg1 = (wxWindow *) 0 ;
38712 int result;
38713 void *argp1 = 0 ;
38714 int res1 = 0 ;
38715 PyObject *swig_obj[1] ;
38716
38717 if (!args) SWIG_fail;
38718 swig_obj[0] = args;
38719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38720 if (!SWIG_IsOK(res1)) {
38721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetCharHeight" "', expected argument " "1"" of type '" "wxWindow const *""'");
38722 }
38723 arg1 = reinterpret_cast< wxWindow * >(argp1);
38724 {
38725 PyThreadState* __tstate = wxPyBeginAllowThreads();
38726 result = (int)((wxWindow const *)arg1)->GetCharHeight();
38727 wxPyEndAllowThreads(__tstate);
38728 if (PyErr_Occurred()) SWIG_fail;
38729 }
38730 resultobj = SWIG_From_int(static_cast< int >(result));
38731 return resultobj;
38732fail:
38733 return NULL;
d55e5bfc
RD
38734}
38735
38736
1bd55598
RD
38737SWIGINTERN PyObject *_wrap_Window_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38738 PyObject *resultobj = 0;
38739 wxWindow *arg1 = (wxWindow *) 0 ;
38740 int result;
38741 void *argp1 = 0 ;
38742 int res1 = 0 ;
38743 PyObject *swig_obj[1] ;
38744
38745 if (!args) SWIG_fail;
38746 swig_obj[0] = args;
38747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38748 if (!SWIG_IsOK(res1)) {
38749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetCharWidth" "', expected argument " "1"" of type '" "wxWindow const *""'");
38750 }
38751 arg1 = reinterpret_cast< wxWindow * >(argp1);
38752 {
38753 PyThreadState* __tstate = wxPyBeginAllowThreads();
38754 result = (int)((wxWindow const *)arg1)->GetCharWidth();
38755 wxPyEndAllowThreads(__tstate);
38756 if (PyErr_Occurred()) SWIG_fail;
38757 }
38758 resultobj = SWIG_From_int(static_cast< int >(result));
38759 return resultobj;
38760fail:
38761 return NULL;
38762}
38763
38764
38765SWIGINTERN PyObject *_wrap_Window_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38766 PyObject *resultobj = 0;
38767 wxWindow *arg1 = (wxWindow *) 0 ;
38768 wxString *arg2 = 0 ;
38769 int *arg3 = (int *) 0 ;
38770 int *arg4 = (int *) 0 ;
38771 void *argp1 = 0 ;
38772 int res1 = 0 ;
38773 bool temp2 = false ;
38774 int temp3 ;
38775 int res3 = SWIG_TMPOBJ ;
38776 int temp4 ;
38777 int res4 = SWIG_TMPOBJ ;
38778 PyObject * obj0 = 0 ;
38779 PyObject * obj1 = 0 ;
38780 char * kwnames[] = {
38781 (char *) "self",(char *) "string", NULL
38782 };
38783
38784 arg3 = &temp3;
38785 arg4 = &temp4;
38786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
38787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38788 if (!SWIG_IsOK(res1)) {
38789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetTextExtent" "', expected argument " "1"" of type '" "wxWindow *""'");
38790 }
38791 arg1 = reinterpret_cast< wxWindow * >(argp1);
38792 {
38793 arg2 = wxString_in_helper(obj1);
38794 if (arg2 == NULL) SWIG_fail;
38795 temp2 = true;
38796 }
38797 {
38798 PyThreadState* __tstate = wxPyBeginAllowThreads();
38799 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
38800 wxPyEndAllowThreads(__tstate);
38801 if (PyErr_Occurred()) SWIG_fail;
38802 }
38803 resultobj = SWIG_Py_Void();
38804 if (SWIG_IsTmpObj(res3)) {
38805 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38806 } else {
38807 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38808 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38809 }
38810 if (SWIG_IsTmpObj(res4)) {
38811 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
38812 } else {
38813 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38814 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
38815 }
38816 {
38817 if (temp2)
38818 delete arg2;
38819 }
38820 return resultobj;
38821fail:
38822 {
38823 if (temp2)
38824 delete arg2;
38825 }
38826 return NULL;
38827}
38828
38829
38830SWIGINTERN PyObject *_wrap_Window_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38831 PyObject *resultobj = 0;
38832 wxWindow *arg1 = (wxWindow *) 0 ;
38833 wxString *arg2 = 0 ;
38834 int *arg3 = (int *) 0 ;
38835 int *arg4 = (int *) 0 ;
38836 int *arg5 = (int *) 0 ;
38837 int *arg6 = (int *) 0 ;
38838 wxFont *arg7 = (wxFont *) NULL ;
38839 void *argp1 = 0 ;
38840 int res1 = 0 ;
38841 bool temp2 = false ;
38842 int temp3 ;
38843 int res3 = SWIG_TMPOBJ ;
38844 int temp4 ;
38845 int res4 = SWIG_TMPOBJ ;
38846 int temp5 ;
38847 int res5 = SWIG_TMPOBJ ;
38848 int temp6 ;
38849 int res6 = SWIG_TMPOBJ ;
38850 void *argp7 = 0 ;
38851 int res7 = 0 ;
38852 PyObject * obj0 = 0 ;
38853 PyObject * obj1 = 0 ;
38854 PyObject * obj2 = 0 ;
38855 char * kwnames[] = {
38856 (char *) "self",(char *) "string",(char *) "font", NULL
38857 };
38858
38859 arg3 = &temp3;
38860 arg4 = &temp4;
38861 arg5 = &temp5;
38862 arg6 = &temp6;
38863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38865 if (!SWIG_IsOK(res1)) {
38866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetFullTextExtent" "', expected argument " "1"" of type '" "wxWindow *""'");
38867 }
38868 arg1 = reinterpret_cast< wxWindow * >(argp1);
38869 {
38870 arg2 = wxString_in_helper(obj1);
38871 if (arg2 == NULL) SWIG_fail;
38872 temp2 = true;
38873 }
38874 if (obj2) {
38875 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
38876 if (!SWIG_IsOK(res7)) {
38877 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Window_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont const *""'");
d55e5bfc 38878 }
1bd55598
RD
38879 arg7 = reinterpret_cast< wxFont * >(argp7);
38880 }
38881 {
38882 PyThreadState* __tstate = wxPyBeginAllowThreads();
38883 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7);
38884 wxPyEndAllowThreads(__tstate);
38885 if (PyErr_Occurred()) SWIG_fail;
38886 }
38887 resultobj = SWIG_Py_Void();
38888 if (SWIG_IsTmpObj(res3)) {
38889 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38890 } else {
38891 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38892 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38893 }
38894 if (SWIG_IsTmpObj(res4)) {
38895 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
38896 } else {
38897 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38898 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
38899 }
38900 if (SWIG_IsTmpObj(res5)) {
38901 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
38902 } else {
38903 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38904 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
38905 }
38906 if (SWIG_IsTmpObj(res6)) {
38907 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
38908 } else {
38909 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38910 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
38911 }
38912 {
38913 if (temp2)
38914 delete arg2;
38915 }
38916 return resultobj;
38917fail:
38918 {
38919 if (temp2)
38920 delete arg2;
38921 }
38922 return NULL;
38923}
38924
38925
38926SWIGINTERN PyObject *_wrap_Window_ClientToScreenXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38927 PyObject *resultobj = 0;
38928 wxWindow *arg1 = (wxWindow *) 0 ;
38929 int *arg2 = (int *) 0 ;
38930 int *arg3 = (int *) 0 ;
38931 void *argp1 = 0 ;
38932 int res1 = 0 ;
38933 int temp2 ;
38934 int res2 = 0 ;
38935 int temp3 ;
38936 int res3 = 0 ;
38937 PyObject * obj0 = 0 ;
38938 PyObject * obj1 = 0 ;
38939 PyObject * obj2 = 0 ;
38940 char * kwnames[] = {
38941 (char *) "self",(char *) "x",(char *) "y", NULL
38942 };
38943
38944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38946 if (!SWIG_IsOK(res1)) {
38947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ClientToScreenXY" "', expected argument " "1"" of type '" "wxWindow const *""'");
38948 }
38949 arg1 = reinterpret_cast< wxWindow * >(argp1);
38950 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_int,0))))) {
38951 int val;
38952 int ecode = SWIG_AsVal_int(obj1, &val);
38953 if (!SWIG_IsOK(ecode)) {
38954 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "Window_ClientToScreenXY" "', expected argument " "2"" of type '" "int""'");
38955 }
38956 temp2 = static_cast< int >(val);
38957 arg2 = &temp2;
38958 res2 = SWIG_AddTmpMask(ecode);
38959 }
38960 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_int,0))))) {
38961 int val;
38962 int ecode = SWIG_AsVal_int(obj2, &val);
38963 if (!SWIG_IsOK(ecode)) {
38964 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "Window_ClientToScreenXY" "', expected argument " "3"" of type '" "int""'");
38965 }
38966 temp3 = static_cast< int >(val);
38967 arg3 = &temp3;
38968 res3 = SWIG_AddTmpMask(ecode);
38969 }
38970 {
38971 PyThreadState* __tstate = wxPyBeginAllowThreads();
38972 ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3);
38973 wxPyEndAllowThreads(__tstate);
38974 if (PyErr_Occurred()) SWIG_fail;
38975 }
38976 resultobj = SWIG_Py_Void();
38977 if (SWIG_IsTmpObj(res2)) {
38978 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38979 } else {
38980 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38981 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38982 }
38983 if (SWIG_IsTmpObj(res3)) {
38984 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38985 } else {
38986 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38987 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38988 }
38989 return resultobj;
38990fail:
38991 return NULL;
38992}
38993
38994
38995SWIGINTERN PyObject *_wrap_Window_ScreenToClientXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38996 PyObject *resultobj = 0;
38997 wxWindow *arg1 = (wxWindow *) 0 ;
38998 int *arg2 = (int *) 0 ;
38999 int *arg3 = (int *) 0 ;
39000 void *argp1 = 0 ;
39001 int res1 = 0 ;
39002 int temp2 ;
39003 int res2 = 0 ;
39004 int temp3 ;
39005 int res3 = 0 ;
39006 PyObject * obj0 = 0 ;
39007 PyObject * obj1 = 0 ;
39008 PyObject * obj2 = 0 ;
39009 char * kwnames[] = {
39010 (char *) "self",(char *) "x",(char *) "y", NULL
39011 };
39012
39013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39015 if (!SWIG_IsOK(res1)) {
39016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ScreenToClientXY" "', expected argument " "1"" of type '" "wxWindow const *""'");
39017 }
39018 arg1 = reinterpret_cast< wxWindow * >(argp1);
39019 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_int,0))))) {
39020 int val;
39021 int ecode = SWIG_AsVal_int(obj1, &val);
39022 if (!SWIG_IsOK(ecode)) {
39023 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "Window_ScreenToClientXY" "', expected argument " "2"" of type '" "int""'");
39024 }
39025 temp2 = static_cast< int >(val);
39026 arg2 = &temp2;
39027 res2 = SWIG_AddTmpMask(ecode);
39028 }
39029 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_int,0))))) {
39030 int val;
39031 int ecode = SWIG_AsVal_int(obj2, &val);
39032 if (!SWIG_IsOK(ecode)) {
39033 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "Window_ScreenToClientXY" "', expected argument " "3"" of type '" "int""'");
39034 }
39035 temp3 = static_cast< int >(val);
39036 arg3 = &temp3;
39037 res3 = SWIG_AddTmpMask(ecode);
39038 }
39039 {
39040 PyThreadState* __tstate = wxPyBeginAllowThreads();
39041 ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3);
39042 wxPyEndAllowThreads(__tstate);
39043 if (PyErr_Occurred()) SWIG_fail;
39044 }
39045 resultobj = SWIG_Py_Void();
39046 if (SWIG_IsTmpObj(res2)) {
39047 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39048 } else {
39049 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39050 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39051 }
39052 if (SWIG_IsTmpObj(res3)) {
39053 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39054 } else {
39055 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39056 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39057 }
39058 return resultobj;
39059fail:
39060 return NULL;
39061}
39062
39063
39064SWIGINTERN PyObject *_wrap_Window_ClientToScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39065 PyObject *resultobj = 0;
39066 wxWindow *arg1 = (wxWindow *) 0 ;
39067 wxPoint *arg2 = 0 ;
39068 wxPoint result;
39069 void *argp1 = 0 ;
39070 int res1 = 0 ;
39071 wxPoint temp2 ;
39072 PyObject * obj0 = 0 ;
39073 PyObject * obj1 = 0 ;
39074 char * kwnames[] = {
39075 (char *) "self",(char *) "pt", NULL
39076 };
39077
39078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) SWIG_fail;
39079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39080 if (!SWIG_IsOK(res1)) {
39081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ClientToScreen" "', expected argument " "1"" of type '" "wxWindow const *""'");
39082 }
39083 arg1 = reinterpret_cast< wxWindow * >(argp1);
39084 {
39085 arg2 = &temp2;
39086 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39087 }
39088 {
39089 PyThreadState* __tstate = wxPyBeginAllowThreads();
39090 result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2);
39091 wxPyEndAllowThreads(__tstate);
39092 if (PyErr_Occurred()) SWIG_fail;
39093 }
39094 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39095 return resultobj;
39096fail:
39097 return NULL;
39098}
39099
39100
39101SWIGINTERN PyObject *_wrap_Window_ScreenToClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39102 PyObject *resultobj = 0;
39103 wxWindow *arg1 = (wxWindow *) 0 ;
39104 wxPoint *arg2 = 0 ;
39105 wxPoint result;
39106 void *argp1 = 0 ;
39107 int res1 = 0 ;
39108 wxPoint temp2 ;
39109 PyObject * obj0 = 0 ;
39110 PyObject * obj1 = 0 ;
39111 char * kwnames[] = {
39112 (char *) "self",(char *) "pt", NULL
39113 };
39114
39115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) SWIG_fail;
39116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39117 if (!SWIG_IsOK(res1)) {
39118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ScreenToClient" "', expected argument " "1"" of type '" "wxWindow const *""'");
39119 }
39120 arg1 = reinterpret_cast< wxWindow * >(argp1);
39121 {
39122 arg2 = &temp2;
39123 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39124 }
39125 {
39126 PyThreadState* __tstate = wxPyBeginAllowThreads();
39127 result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2);
39128 wxPyEndAllowThreads(__tstate);
39129 if (PyErr_Occurred()) SWIG_fail;
39130 }
39131 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39132 return resultobj;
39133fail:
39134 return NULL;
39135}
39136
39137
39138SWIGINTERN PyObject *_wrap_Window_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39139 PyObject *resultobj = 0;
39140 wxWindow *arg1 = (wxWindow *) 0 ;
39141 int arg2 ;
39142 int arg3 ;
39143 wxHitTest result;
39144 void *argp1 = 0 ;
39145 int res1 = 0 ;
39146 int val2 ;
39147 int ecode2 = 0 ;
39148 int val3 ;
39149 int ecode3 = 0 ;
39150 PyObject * obj0 = 0 ;
39151 PyObject * obj1 = 0 ;
39152 PyObject * obj2 = 0 ;
39153 char * kwnames[] = {
39154 (char *) "self",(char *) "x",(char *) "y", NULL
39155 };
39156
39157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39159 if (!SWIG_IsOK(res1)) {
39160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HitTestXY" "', expected argument " "1"" of type '" "wxWindow const *""'");
39161 }
39162 arg1 = reinterpret_cast< wxWindow * >(argp1);
39163 ecode2 = SWIG_AsVal_int(obj1, &val2);
39164 if (!SWIG_IsOK(ecode2)) {
39165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_HitTestXY" "', expected argument " "2"" of type '" "int""'");
39166 }
39167 arg2 = static_cast< int >(val2);
39168 ecode3 = SWIG_AsVal_int(obj2, &val3);
39169 if (!SWIG_IsOK(ecode3)) {
39170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_HitTestXY" "', expected argument " "3"" of type '" "int""'");
39171 }
39172 arg3 = static_cast< int >(val3);
39173 {
39174 PyThreadState* __tstate = wxPyBeginAllowThreads();
39175 result = (wxHitTest)((wxWindow const *)arg1)->HitTest(arg2,arg3);
39176 wxPyEndAllowThreads(__tstate);
39177 if (PyErr_Occurred()) SWIG_fail;
39178 }
39179 resultobj = SWIG_From_int(static_cast< int >(result));
39180 return resultobj;
39181fail:
39182 return NULL;
39183}
39184
39185
39186SWIGINTERN PyObject *_wrap_Window_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39187 PyObject *resultobj = 0;
39188 wxWindow *arg1 = (wxWindow *) 0 ;
39189 wxPoint *arg2 = 0 ;
39190 wxHitTest result;
39191 void *argp1 = 0 ;
39192 int res1 = 0 ;
39193 wxPoint temp2 ;
39194 PyObject * obj0 = 0 ;
39195 PyObject * obj1 = 0 ;
39196 char * kwnames[] = {
39197 (char *) "self",(char *) "pt", NULL
39198 };
39199
39200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
39201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39202 if (!SWIG_IsOK(res1)) {
39203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HitTest" "', expected argument " "1"" of type '" "wxWindow const *""'");
39204 }
39205 arg1 = reinterpret_cast< wxWindow * >(argp1);
39206 {
39207 arg2 = &temp2;
39208 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39209 }
39210 {
39211 PyThreadState* __tstate = wxPyBeginAllowThreads();
39212 result = (wxHitTest)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2);
39213 wxPyEndAllowThreads(__tstate);
39214 if (PyErr_Occurred()) SWIG_fail;
39215 }
39216 resultobj = SWIG_From_int(static_cast< int >(result));
39217 return resultobj;
39218fail:
39219 return NULL;
39220}
39221
39222
39223SWIGINTERN PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
39224 PyObject *resultobj = 0;
39225 wxWindow *arg1 = (wxWindow *) 0 ;
39226 long arg2 ;
39227 wxBorder result;
39228 void *argp1 = 0 ;
39229 int res1 = 0 ;
39230 long val2 ;
39231 int ecode2 = 0 ;
39232
39233 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
39234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39235 if (!SWIG_IsOK(res1)) {
39236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBorder" "', expected argument " "1"" of type '" "wxWindow const *""'");
39237 }
39238 arg1 = reinterpret_cast< wxWindow * >(argp1);
39239 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
39240 if (!SWIG_IsOK(ecode2)) {
39241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_GetBorder" "', expected argument " "2"" of type '" "long""'");
39242 }
39243 arg2 = static_cast< long >(val2);
39244 {
39245 PyThreadState* __tstate = wxPyBeginAllowThreads();
39246 result = (wxBorder)((wxWindow const *)arg1)->GetBorder(arg2);
39247 wxPyEndAllowThreads(__tstate);
39248 if (PyErr_Occurred()) SWIG_fail;
39249 }
39250 resultobj = SWIG_From_int(static_cast< int >(result));
39251 return resultobj;
39252fail:
39253 return NULL;
d55e5bfc
RD
39254}
39255
39256
1bd55598
RD
39257SWIGINTERN PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
39258 PyObject *resultobj = 0;
39259 wxWindow *arg1 = (wxWindow *) 0 ;
39260 wxBorder result;
39261 void *argp1 = 0 ;
39262 int res1 = 0 ;
39263
39264 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
39265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39266 if (!SWIG_IsOK(res1)) {
39267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBorder" "', expected argument " "1"" of type '" "wxWindow const *""'");
39268 }
39269 arg1 = reinterpret_cast< wxWindow * >(argp1);
39270 {
39271 PyThreadState* __tstate = wxPyBeginAllowThreads();
39272 result = (wxBorder)((wxWindow const *)arg1)->GetBorder();
39273 wxPyEndAllowThreads(__tstate);
39274 if (PyErr_Occurred()) SWIG_fail;
39275 }
39276 resultobj = SWIG_From_int(static_cast< int >(result));
39277 return resultobj;
39278fail:
39279 return NULL;
d55e5bfc
RD
39280}
39281
39282
1bd55598
RD
39283SWIGINTERN PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) {
39284 int argc;
39285 PyObject *argv[3];
39286
39287 if (!(argc = SWIG_Python_UnpackTuple(args,"Window_GetBorder",0,2,argv))) SWIG_fail;
39288 --argc;
39289 if (argc == 1) {
39290 return _wrap_Window_GetBorder__SWIG_1(self, argc, argv);
39291 }
39292 if (argc == 2) {
39293 return _wrap_Window_GetBorder__SWIG_0(self, argc, argv);
39294 }
39295
39296fail:
39297 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'Window_GetBorder'");
39298 return NULL;
39299}
39300
39301
39302SWIGINTERN PyObject *_wrap_Window_UpdateWindowUI(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39303 PyObject *resultobj = 0;
39304 wxWindow *arg1 = (wxWindow *) 0 ;
39305 long arg2 = (long) wxUPDATE_UI_NONE ;
39306 void *argp1 = 0 ;
39307 int res1 = 0 ;
39308 long val2 ;
39309 int ecode2 = 0 ;
39310 PyObject * obj0 = 0 ;
39311 PyObject * obj1 = 0 ;
39312 char * kwnames[] = {
39313 (char *) "self",(char *) "flags", NULL
39314 };
39315
39316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) SWIG_fail;
39317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39318 if (!SWIG_IsOK(res1)) {
39319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_UpdateWindowUI" "', expected argument " "1"" of type '" "wxWindow *""'");
39320 }
39321 arg1 = reinterpret_cast< wxWindow * >(argp1);
39322 if (obj1) {
39323 ecode2 = SWIG_AsVal_long(obj1, &val2);
39324 if (!SWIG_IsOK(ecode2)) {
39325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_UpdateWindowUI" "', expected argument " "2"" of type '" "long""'");
39326 }
39327 arg2 = static_cast< long >(val2);
39328 }
39329 {
39330 PyThreadState* __tstate = wxPyBeginAllowThreads();
39331 (arg1)->UpdateWindowUI(arg2);
39332 wxPyEndAllowThreads(__tstate);
39333 if (PyErr_Occurred()) SWIG_fail;
39334 }
39335 resultobj = SWIG_Py_Void();
39336 return resultobj;
39337fail:
39338 return NULL;
39339}
39340
39341
39342SWIGINTERN PyObject *_wrap_Window_PopupMenuXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39343 PyObject *resultobj = 0;
39344 wxWindow *arg1 = (wxWindow *) 0 ;
39345 wxMenu *arg2 = (wxMenu *) 0 ;
39346 int arg3 = (int) -1 ;
39347 int arg4 = (int) -1 ;
39348 bool result;
39349 void *argp1 = 0 ;
39350 int res1 = 0 ;
39351 void *argp2 = 0 ;
39352 int res2 = 0 ;
39353 int val3 ;
39354 int ecode3 = 0 ;
39355 int val4 ;
39356 int ecode4 = 0 ;
39357 PyObject * obj0 = 0 ;
39358 PyObject * obj1 = 0 ;
39359 PyObject * obj2 = 0 ;
39360 PyObject * obj3 = 0 ;
39361 char * kwnames[] = {
39362 (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL
39363 };
39364
39365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39367 if (!SWIG_IsOK(res1)) {
39368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PopupMenuXY" "', expected argument " "1"" of type '" "wxWindow *""'");
39369 }
39370 arg1 = reinterpret_cast< wxWindow * >(argp1);
39371 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
39372 if (!SWIG_IsOK(res2)) {
39373 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_PopupMenuXY" "', expected argument " "2"" of type '" "wxMenu *""'");
39374 }
39375 arg2 = reinterpret_cast< wxMenu * >(argp2);
39376 if (obj2) {
39377 ecode3 = SWIG_AsVal_int(obj2, &val3);
39378 if (!SWIG_IsOK(ecode3)) {
39379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_PopupMenuXY" "', expected argument " "3"" of type '" "int""'");
39380 }
39381 arg3 = static_cast< int >(val3);
39382 }
39383 if (obj3) {
39384 ecode4 = SWIG_AsVal_int(obj3, &val4);
39385 if (!SWIG_IsOK(ecode4)) {
39386 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_PopupMenuXY" "', expected argument " "4"" of type '" "int""'");
39387 }
39388 arg4 = static_cast< int >(val4);
39389 }
39390 {
39391 PyThreadState* __tstate = wxPyBeginAllowThreads();
39392 result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4);
39393 wxPyEndAllowThreads(__tstate);
39394 if (PyErr_Occurred()) SWIG_fail;
39395 }
39396 {
39397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39398 }
39399 return resultobj;
39400fail:
39401 return NULL;
39402}
39403
39404
39405SWIGINTERN PyObject *_wrap_Window_PopupMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39406 PyObject *resultobj = 0;
39407 wxWindow *arg1 = (wxWindow *) 0 ;
39408 wxMenu *arg2 = (wxMenu *) 0 ;
39409 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39410 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39411 bool result;
39412 void *argp1 = 0 ;
39413 int res1 = 0 ;
39414 void *argp2 = 0 ;
39415 int res2 = 0 ;
39416 wxPoint temp3 ;
39417 PyObject * obj0 = 0 ;
39418 PyObject * obj1 = 0 ;
39419 PyObject * obj2 = 0 ;
39420 char * kwnames[] = {
39421 (char *) "self",(char *) "menu",(char *) "pos", NULL
39422 };
39423
39424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39426 if (!SWIG_IsOK(res1)) {
39427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PopupMenu" "', expected argument " "1"" of type '" "wxWindow *""'");
39428 }
39429 arg1 = reinterpret_cast< wxWindow * >(argp1);
39430 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
39431 if (!SWIG_IsOK(res2)) {
39432 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_PopupMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
39433 }
39434 arg2 = reinterpret_cast< wxMenu * >(argp2);
39435 if (obj2) {
d55e5bfc 39436 {
1bd55598
RD
39437 arg3 = &temp3;
39438 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39439 }
1bd55598
RD
39440 }
39441 {
39442 PyThreadState* __tstate = wxPyBeginAllowThreads();
39443 result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3);
39444 wxPyEndAllowThreads(__tstate);
39445 if (PyErr_Occurred()) SWIG_fail;
39446 }
39447 {
39448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39449 }
39450 return resultobj;
39451fail:
39452 return NULL;
d55e5bfc
RD
39453}
39454
39455
1eeb270e
RD
39456SWIGINTERN PyObject *_wrap_Window_HasMultiplePages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39457 PyObject *resultobj = 0;
39458 wxWindow *arg1 = (wxWindow *) 0 ;
39459 bool result;
39460 void *argp1 = 0 ;
39461 int res1 = 0 ;
39462 PyObject *swig_obj[1] ;
39463
39464 if (!args) SWIG_fail;
39465 swig_obj[0] = args;
39466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39467 if (!SWIG_IsOK(res1)) {
39468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HasMultiplePages" "', expected argument " "1"" of type '" "wxWindow const *""'");
39469 }
39470 arg1 = reinterpret_cast< wxWindow * >(argp1);
39471 {
39472 PyThreadState* __tstate = wxPyBeginAllowThreads();
39473 result = (bool)((wxWindow const *)arg1)->HasMultiplePages();
39474 wxPyEndAllowThreads(__tstate);
39475 if (PyErr_Occurred()) SWIG_fail;
39476 }
39477 {
39478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39479 }
39480 return resultobj;
39481fail:
39482 return NULL;
39483}
39484
39485
1bd55598
RD
39486SWIGINTERN PyObject *_wrap_Window_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39487 PyObject *resultobj = 0;
39488 wxWindow *arg1 = (wxWindow *) 0 ;
39489 long result;
39490 void *argp1 = 0 ;
39491 int res1 = 0 ;
39492 PyObject *swig_obj[1] ;
39493
39494 if (!args) SWIG_fail;
39495 swig_obj[0] = args;
39496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39497 if (!SWIG_IsOK(res1)) {
39498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetHandle" "', expected argument " "1"" of type '" "wxWindow *""'");
39499 }
39500 arg1 = reinterpret_cast< wxWindow * >(argp1);
39501 {
39502 PyThreadState* __tstate = wxPyBeginAllowThreads();
39503 result = (long)wxWindow_GetHandle(arg1);
39504 wxPyEndAllowThreads(__tstate);
39505 if (PyErr_Occurred()) SWIG_fail;
39506 }
39507 resultobj = SWIG_From_long(static_cast< long >(result));
39508 return resultobj;
39509fail:
39510 return NULL;
39511}
39512
39513
39514SWIGINTERN PyObject *_wrap_Window_AssociateHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39515 PyObject *resultobj = 0;
39516 wxWindow *arg1 = (wxWindow *) 0 ;
39517 long arg2 ;
39518 void *argp1 = 0 ;
39519 int res1 = 0 ;
39520 long val2 ;
39521 int ecode2 = 0 ;
39522 PyObject * obj0 = 0 ;
39523 PyObject * obj1 = 0 ;
39524 char * kwnames[] = {
39525 (char *) "self",(char *) "handle", NULL
39526 };
39527
39528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) SWIG_fail;
39529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39530 if (!SWIG_IsOK(res1)) {
39531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_AssociateHandle" "', expected argument " "1"" of type '" "wxWindow *""'");
39532 }
39533 arg1 = reinterpret_cast< wxWindow * >(argp1);
39534 ecode2 = SWIG_AsVal_long(obj1, &val2);
39535 if (!SWIG_IsOK(ecode2)) {
39536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_AssociateHandle" "', expected argument " "2"" of type '" "long""'");
39537 }
39538 arg2 = static_cast< long >(val2);
39539 {
39540 PyThreadState* __tstate = wxPyBeginAllowThreads();
39541 wxWindow_AssociateHandle(arg1,arg2);
39542 wxPyEndAllowThreads(__tstate);
39543 if (PyErr_Occurred()) SWIG_fail;
39544 }
39545 resultobj = SWIG_Py_Void();
39546 return resultobj;
39547fail:
39548 return NULL;
d55e5bfc
RD
39549}
39550
39551
1bd55598
RD
39552SWIGINTERN PyObject *_wrap_Window_DissociateHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39553 PyObject *resultobj = 0;
39554 wxWindow *arg1 = (wxWindow *) 0 ;
39555 void *argp1 = 0 ;
39556 int res1 = 0 ;
39557 PyObject *swig_obj[1] ;
39558
39559 if (!args) SWIG_fail;
39560 swig_obj[0] = args;
39561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39562 if (!SWIG_IsOK(res1)) {
39563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_DissociateHandle" "', expected argument " "1"" of type '" "wxWindow *""'");
39564 }
39565 arg1 = reinterpret_cast< wxWindow * >(argp1);
39566 {
39567 PyThreadState* __tstate = wxPyBeginAllowThreads();
39568 (arg1)->DissociateHandle();
39569 wxPyEndAllowThreads(__tstate);
39570 if (PyErr_Occurred()) SWIG_fail;
39571 }
39572 resultobj = SWIG_Py_Void();
39573 return resultobj;
39574fail:
39575 return NULL;
39576}
39577
39578
39579SWIGINTERN PyObject *_wrap_Window_HasScrollbar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39580 PyObject *resultobj = 0;
39581 wxWindow *arg1 = (wxWindow *) 0 ;
39582 int arg2 ;
39583 bool result;
39584 void *argp1 = 0 ;
39585 int res1 = 0 ;
39586 int val2 ;
39587 int ecode2 = 0 ;
39588 PyObject * obj0 = 0 ;
39589 PyObject * obj1 = 0 ;
39590 char * kwnames[] = {
39591 (char *) "self",(char *) "orient", NULL
39592 };
39593
39594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) SWIG_fail;
39595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39596 if (!SWIG_IsOK(res1)) {
39597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HasScrollbar" "', expected argument " "1"" of type '" "wxWindow const *""'");
39598 }
39599 arg1 = reinterpret_cast< wxWindow * >(argp1);
39600 ecode2 = SWIG_AsVal_int(obj1, &val2);
39601 if (!SWIG_IsOK(ecode2)) {
39602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_HasScrollbar" "', expected argument " "2"" of type '" "int""'");
39603 }
39604 arg2 = static_cast< int >(val2);
39605 {
39606 PyThreadState* __tstate = wxPyBeginAllowThreads();
39607 result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2);
39608 wxPyEndAllowThreads(__tstate);
39609 if (PyErr_Occurred()) SWIG_fail;
39610 }
39611 {
39612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39613 }
39614 return resultobj;
39615fail:
39616 return NULL;
39617}
39618
39619
39620SWIGINTERN PyObject *_wrap_Window_SetScrollbar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39621 PyObject *resultobj = 0;
39622 wxWindow *arg1 = (wxWindow *) 0 ;
39623 int arg2 ;
39624 int arg3 ;
39625 int arg4 ;
39626 int arg5 ;
39627 bool arg6 = (bool) true ;
39628 void *argp1 = 0 ;
39629 int res1 = 0 ;
39630 int val2 ;
39631 int ecode2 = 0 ;
39632 int val3 ;
39633 int ecode3 = 0 ;
39634 int val4 ;
39635 int ecode4 = 0 ;
39636 int val5 ;
39637 int ecode5 = 0 ;
39638 bool val6 ;
39639 int ecode6 = 0 ;
39640 PyObject * obj0 = 0 ;
39641 PyObject * obj1 = 0 ;
39642 PyObject * obj2 = 0 ;
39643 PyObject * obj3 = 0 ;
39644 PyObject * obj4 = 0 ;
39645 PyObject * obj5 = 0 ;
39646 char * kwnames[] = {
39647 (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL
39648 };
39649
39650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39652 if (!SWIG_IsOK(res1)) {
39653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetScrollbar" "', expected argument " "1"" of type '" "wxWindow *""'");
39654 }
39655 arg1 = reinterpret_cast< wxWindow * >(argp1);
39656 ecode2 = SWIG_AsVal_int(obj1, &val2);
39657 if (!SWIG_IsOK(ecode2)) {
39658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetScrollbar" "', expected argument " "2"" of type '" "int""'");
39659 }
39660 arg2 = static_cast< int >(val2);
39661 ecode3 = SWIG_AsVal_int(obj2, &val3);
39662 if (!SWIG_IsOK(ecode3)) {
39663 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetScrollbar" "', expected argument " "3"" of type '" "int""'");
39664 }
39665 arg3 = static_cast< int >(val3);
39666 ecode4 = SWIG_AsVal_int(obj3, &val4);
39667 if (!SWIG_IsOK(ecode4)) {
39668 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_SetScrollbar" "', expected argument " "4"" of type '" "int""'");
39669 }
39670 arg4 = static_cast< int >(val4);
39671 ecode5 = SWIG_AsVal_int(obj4, &val5);
39672 if (!SWIG_IsOK(ecode5)) {
39673 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Window_SetScrollbar" "', expected argument " "5"" of type '" "int""'");
39674 }
39675 arg5 = static_cast< int >(val5);
39676 if (obj5) {
39677 ecode6 = SWIG_AsVal_bool(obj5, &val6);
39678 if (!SWIG_IsOK(ecode6)) {
39679 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Window_SetScrollbar" "', expected argument " "6"" of type '" "bool""'");
39680 }
39681 arg6 = static_cast< bool >(val6);
39682 }
39683 {
39684 PyThreadState* __tstate = wxPyBeginAllowThreads();
39685 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
39686 wxPyEndAllowThreads(__tstate);
39687 if (PyErr_Occurred()) SWIG_fail;
39688 }
39689 resultobj = SWIG_Py_Void();
39690 return resultobj;
39691fail:
39692 return NULL;
39693}
39694
39695
39696SWIGINTERN PyObject *_wrap_Window_SetScrollPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39697 PyObject *resultobj = 0;
39698 wxWindow *arg1 = (wxWindow *) 0 ;
39699 int arg2 ;
39700 int arg3 ;
39701 bool arg4 = (bool) true ;
39702 void *argp1 = 0 ;
39703 int res1 = 0 ;
39704 int val2 ;
39705 int ecode2 = 0 ;
39706 int val3 ;
39707 int ecode3 = 0 ;
39708 bool val4 ;
39709 int ecode4 = 0 ;
39710 PyObject * obj0 = 0 ;
39711 PyObject * obj1 = 0 ;
39712 PyObject * obj2 = 0 ;
39713 PyObject * obj3 = 0 ;
39714 char * kwnames[] = {
39715 (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL
39716 };
39717
39718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39720 if (!SWIG_IsOK(res1)) {
39721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetScrollPos" "', expected argument " "1"" of type '" "wxWindow *""'");
39722 }
39723 arg1 = reinterpret_cast< wxWindow * >(argp1);
39724 ecode2 = SWIG_AsVal_int(obj1, &val2);
39725 if (!SWIG_IsOK(ecode2)) {
39726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetScrollPos" "', expected argument " "2"" of type '" "int""'");
39727 }
39728 arg2 = static_cast< int >(val2);
39729 ecode3 = SWIG_AsVal_int(obj2, &val3);
39730 if (!SWIG_IsOK(ecode3)) {
39731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetScrollPos" "', expected argument " "3"" of type '" "int""'");
39732 }
39733 arg3 = static_cast< int >(val3);
39734 if (obj3) {
39735 ecode4 = SWIG_AsVal_bool(obj3, &val4);
39736 if (!SWIG_IsOK(ecode4)) {
39737 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_SetScrollPos" "', expected argument " "4"" of type '" "bool""'");
39738 }
39739 arg4 = static_cast< bool >(val4);
39740 }
39741 {
39742 PyThreadState* __tstate = wxPyBeginAllowThreads();
39743 (arg1)->SetScrollPos(arg2,arg3,arg4);
39744 wxPyEndAllowThreads(__tstate);
39745 if (PyErr_Occurred()) SWIG_fail;
39746 }
39747 resultobj = SWIG_Py_Void();
39748 return resultobj;
39749fail:
39750 return NULL;
39751}
39752
39753
39754SWIGINTERN PyObject *_wrap_Window_GetScrollPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39755 PyObject *resultobj = 0;
39756 wxWindow *arg1 = (wxWindow *) 0 ;
39757 int arg2 ;
39758 int result;
39759 void *argp1 = 0 ;
39760 int res1 = 0 ;
39761 int val2 ;
39762 int ecode2 = 0 ;
39763 PyObject * obj0 = 0 ;
39764 PyObject * obj1 = 0 ;
39765 char * kwnames[] = {
39766 (char *) "self",(char *) "orientation", NULL
39767 };
39768
39769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) SWIG_fail;
39770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39771 if (!SWIG_IsOK(res1)) {
39772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScrollPos" "', expected argument " "1"" of type '" "wxWindow const *""'");
39773 }
39774 arg1 = reinterpret_cast< wxWindow * >(argp1);
39775 ecode2 = SWIG_AsVal_int(obj1, &val2);
39776 if (!SWIG_IsOK(ecode2)) {
39777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_GetScrollPos" "', expected argument " "2"" of type '" "int""'");
39778 }
39779 arg2 = static_cast< int >(val2);
39780 {
39781 PyThreadState* __tstate = wxPyBeginAllowThreads();
39782 result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2);
39783 wxPyEndAllowThreads(__tstate);
39784 if (PyErr_Occurred()) SWIG_fail;
39785 }
39786 resultobj = SWIG_From_int(static_cast< int >(result));
39787 return resultobj;
39788fail:
39789 return NULL;
39790}
39791
39792
39793SWIGINTERN PyObject *_wrap_Window_GetScrollThumb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39794 PyObject *resultobj = 0;
39795 wxWindow *arg1 = (wxWindow *) 0 ;
39796 int arg2 ;
39797 int result;
39798 void *argp1 = 0 ;
39799 int res1 = 0 ;
39800 int val2 ;
39801 int ecode2 = 0 ;
39802 PyObject * obj0 = 0 ;
39803 PyObject * obj1 = 0 ;
39804 char * kwnames[] = {
39805 (char *) "self",(char *) "orientation", NULL
39806 };
39807
39808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) SWIG_fail;
39809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39810 if (!SWIG_IsOK(res1)) {
39811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScrollThumb" "', expected argument " "1"" of type '" "wxWindow const *""'");
39812 }
39813 arg1 = reinterpret_cast< wxWindow * >(argp1);
39814 ecode2 = SWIG_AsVal_int(obj1, &val2);
39815 if (!SWIG_IsOK(ecode2)) {
39816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_GetScrollThumb" "', expected argument " "2"" of type '" "int""'");
39817 }
39818 arg2 = static_cast< int >(val2);
39819 {
39820 PyThreadState* __tstate = wxPyBeginAllowThreads();
39821 result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2);
39822 wxPyEndAllowThreads(__tstate);
39823 if (PyErr_Occurred()) SWIG_fail;
39824 }
39825 resultobj = SWIG_From_int(static_cast< int >(result));
39826 return resultobj;
39827fail:
39828 return NULL;
39829}
39830
39831
39832SWIGINTERN PyObject *_wrap_Window_GetScrollRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39833 PyObject *resultobj = 0;
39834 wxWindow *arg1 = (wxWindow *) 0 ;
39835 int arg2 ;
39836 int result;
39837 void *argp1 = 0 ;
39838 int res1 = 0 ;
39839 int val2 ;
39840 int ecode2 = 0 ;
39841 PyObject * obj0 = 0 ;
39842 PyObject * obj1 = 0 ;
39843 char * kwnames[] = {
39844 (char *) "self",(char *) "orientation", NULL
39845 };
39846
39847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) SWIG_fail;
39848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39849 if (!SWIG_IsOK(res1)) {
39850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScrollRange" "', expected argument " "1"" of type '" "wxWindow const *""'");
39851 }
39852 arg1 = reinterpret_cast< wxWindow * >(argp1);
39853 ecode2 = SWIG_AsVal_int(obj1, &val2);
39854 if (!SWIG_IsOK(ecode2)) {
39855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_GetScrollRange" "', expected argument " "2"" of type '" "int""'");
39856 }
39857 arg2 = static_cast< int >(val2);
39858 {
39859 PyThreadState* __tstate = wxPyBeginAllowThreads();
39860 result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2);
39861 wxPyEndAllowThreads(__tstate);
39862 if (PyErr_Occurred()) SWIG_fail;
39863 }
39864 resultobj = SWIG_From_int(static_cast< int >(result));
39865 return resultobj;
39866fail:
39867 return NULL;
39868}
39869
39870
39871SWIGINTERN PyObject *_wrap_Window_ScrollWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39872 PyObject *resultobj = 0;
39873 wxWindow *arg1 = (wxWindow *) 0 ;
39874 int arg2 ;
39875 int arg3 ;
39876 wxRect *arg4 = (wxRect *) NULL ;
39877 void *argp1 = 0 ;
39878 int res1 = 0 ;
39879 int val2 ;
39880 int ecode2 = 0 ;
39881 int val3 ;
39882 int ecode3 = 0 ;
39883 void *argp4 = 0 ;
39884 int res4 = 0 ;
39885 PyObject * obj0 = 0 ;
39886 PyObject * obj1 = 0 ;
39887 PyObject * obj2 = 0 ;
39888 PyObject * obj3 = 0 ;
39889 char * kwnames[] = {
39890 (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL
39891 };
39892
39893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39895 if (!SWIG_IsOK(res1)) {
39896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ScrollWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
39897 }
39898 arg1 = reinterpret_cast< wxWindow * >(argp1);
39899 ecode2 = SWIG_AsVal_int(obj1, &val2);
39900 if (!SWIG_IsOK(ecode2)) {
39901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_ScrollWindow" "', expected argument " "2"" of type '" "int""'");
39902 }
39903 arg2 = static_cast< int >(val2);
39904 ecode3 = SWIG_AsVal_int(obj2, &val3);
39905 if (!SWIG_IsOK(ecode3)) {
39906 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_ScrollWindow" "', expected argument " "3"" of type '" "int""'");
39907 }
39908 arg3 = static_cast< int >(val3);
39909 if (obj3) {
39910 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxRect, 0 | 0 );
39911 if (!SWIG_IsOK(res4)) {
39912 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Window_ScrollWindow" "', expected argument " "4"" of type '" "wxRect const *""'");
d55e5bfc 39913 }
1bd55598
RD
39914 arg4 = reinterpret_cast< wxRect * >(argp4);
39915 }
39916 {
39917 PyThreadState* __tstate = wxPyBeginAllowThreads();
39918 (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4);
39919 wxPyEndAllowThreads(__tstate);
39920 if (PyErr_Occurred()) SWIG_fail;
39921 }
39922 resultobj = SWIG_Py_Void();
39923 return resultobj;
39924fail:
39925 return NULL;
39926}
39927
39928
39929SWIGINTERN PyObject *_wrap_Window_ScrollLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39930 PyObject *resultobj = 0;
39931 wxWindow *arg1 = (wxWindow *) 0 ;
39932 int arg2 ;
39933 bool result;
39934 void *argp1 = 0 ;
39935 int res1 = 0 ;
39936 int val2 ;
39937 int ecode2 = 0 ;
39938 PyObject * obj0 = 0 ;
39939 PyObject * obj1 = 0 ;
39940 char * kwnames[] = {
39941 (char *) "self",(char *) "lines", NULL
39942 };
39943
39944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) SWIG_fail;
39945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39946 if (!SWIG_IsOK(res1)) {
39947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ScrollLines" "', expected argument " "1"" of type '" "wxWindow *""'");
39948 }
39949 arg1 = reinterpret_cast< wxWindow * >(argp1);
39950 ecode2 = SWIG_AsVal_int(obj1, &val2);
39951 if (!SWIG_IsOK(ecode2)) {
39952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_ScrollLines" "', expected argument " "2"" of type '" "int""'");
39953 }
39954 arg2 = static_cast< int >(val2);
39955 {
39956 PyThreadState* __tstate = wxPyBeginAllowThreads();
39957 result = (bool)(arg1)->ScrollLines(arg2);
39958 wxPyEndAllowThreads(__tstate);
39959 if (PyErr_Occurred()) SWIG_fail;
39960 }
39961 {
39962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39963 }
39964 return resultobj;
39965fail:
39966 return NULL;
39967}
39968
39969
39970SWIGINTERN PyObject *_wrap_Window_ScrollPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39971 PyObject *resultobj = 0;
39972 wxWindow *arg1 = (wxWindow *) 0 ;
39973 int arg2 ;
39974 bool result;
39975 void *argp1 = 0 ;
39976 int res1 = 0 ;
39977 int val2 ;
39978 int ecode2 = 0 ;
39979 PyObject * obj0 = 0 ;
39980 PyObject * obj1 = 0 ;
39981 char * kwnames[] = {
39982 (char *) "self",(char *) "pages", NULL
39983 };
39984
39985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) SWIG_fail;
39986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39987 if (!SWIG_IsOK(res1)) {
39988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ScrollPages" "', expected argument " "1"" of type '" "wxWindow *""'");
39989 }
39990 arg1 = reinterpret_cast< wxWindow * >(argp1);
39991 ecode2 = SWIG_AsVal_int(obj1, &val2);
39992 if (!SWIG_IsOK(ecode2)) {
39993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_ScrollPages" "', expected argument " "2"" of type '" "int""'");
39994 }
39995 arg2 = static_cast< int >(val2);
39996 {
39997 PyThreadState* __tstate = wxPyBeginAllowThreads();
39998 result = (bool)(arg1)->ScrollPages(arg2);
39999 wxPyEndAllowThreads(__tstate);
40000 if (PyErr_Occurred()) SWIG_fail;
40001 }
40002 {
40003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40004 }
40005 return resultobj;
40006fail:
40007 return NULL;
d55e5bfc
RD
40008}
40009
40010
1bd55598
RD
40011SWIGINTERN PyObject *_wrap_Window_LineUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40012 PyObject *resultobj = 0;
40013 wxWindow *arg1 = (wxWindow *) 0 ;
40014 bool result;
40015 void *argp1 = 0 ;
40016 int res1 = 0 ;
40017 PyObject *swig_obj[1] ;
40018
40019 if (!args) SWIG_fail;
40020 swig_obj[0] = args;
40021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40022 if (!SWIG_IsOK(res1)) {
40023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_LineUp" "', expected argument " "1"" of type '" "wxWindow *""'");
40024 }
40025 arg1 = reinterpret_cast< wxWindow * >(argp1);
40026 {
40027 PyThreadState* __tstate = wxPyBeginAllowThreads();
40028 result = (bool)(arg1)->LineUp();
40029 wxPyEndAllowThreads(__tstate);
40030 if (PyErr_Occurred()) SWIG_fail;
40031 }
40032 {
40033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40034 }
40035 return resultobj;
40036fail:
40037 return NULL;
d55e5bfc
RD
40038}
40039
40040
1bd55598
RD
40041SWIGINTERN PyObject *_wrap_Window_LineDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40042 PyObject *resultobj = 0;
40043 wxWindow *arg1 = (wxWindow *) 0 ;
40044 bool result;
40045 void *argp1 = 0 ;
40046 int res1 = 0 ;
40047 PyObject *swig_obj[1] ;
40048
40049 if (!args) SWIG_fail;
40050 swig_obj[0] = args;
40051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40052 if (!SWIG_IsOK(res1)) {
40053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_LineDown" "', expected argument " "1"" of type '" "wxWindow *""'");
40054 }
40055 arg1 = reinterpret_cast< wxWindow * >(argp1);
40056 {
40057 PyThreadState* __tstate = wxPyBeginAllowThreads();
40058 result = (bool)(arg1)->LineDown();
40059 wxPyEndAllowThreads(__tstate);
40060 if (PyErr_Occurred()) SWIG_fail;
40061 }
40062 {
40063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40064 }
40065 return resultobj;
40066fail:
40067 return NULL;
d55e5bfc
RD
40068}
40069
40070
1bd55598
RD
40071SWIGINTERN PyObject *_wrap_Window_PageUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40072 PyObject *resultobj = 0;
40073 wxWindow *arg1 = (wxWindow *) 0 ;
40074 bool result;
40075 void *argp1 = 0 ;
40076 int res1 = 0 ;
40077 PyObject *swig_obj[1] ;
40078
40079 if (!args) SWIG_fail;
40080 swig_obj[0] = args;
40081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40082 if (!SWIG_IsOK(res1)) {
40083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PageUp" "', expected argument " "1"" of type '" "wxWindow *""'");
40084 }
40085 arg1 = reinterpret_cast< wxWindow * >(argp1);
40086 {
40087 PyThreadState* __tstate = wxPyBeginAllowThreads();
40088 result = (bool)(arg1)->PageUp();
40089 wxPyEndAllowThreads(__tstate);
40090 if (PyErr_Occurred()) SWIG_fail;
40091 }
40092 {
40093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40094 }
40095 return resultobj;
40096fail:
40097 return NULL;
d55e5bfc
RD
40098}
40099
40100
1bd55598
RD
40101SWIGINTERN PyObject *_wrap_Window_PageDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40102 PyObject *resultobj = 0;
40103 wxWindow *arg1 = (wxWindow *) 0 ;
40104 bool result;
40105 void *argp1 = 0 ;
40106 int res1 = 0 ;
40107 PyObject *swig_obj[1] ;
40108
40109 if (!args) SWIG_fail;
40110 swig_obj[0] = args;
40111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40112 if (!SWIG_IsOK(res1)) {
40113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PageDown" "', expected argument " "1"" of type '" "wxWindow *""'");
40114 }
40115 arg1 = reinterpret_cast< wxWindow * >(argp1);
40116 {
40117 PyThreadState* __tstate = wxPyBeginAllowThreads();
40118 result = (bool)(arg1)->PageDown();
40119 wxPyEndAllowThreads(__tstate);
40120 if (PyErr_Occurred()) SWIG_fail;
40121 }
40122 {
40123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40124 }
40125 return resultobj;
40126fail:
40127 return NULL;
40128}
40129
40130
40131SWIGINTERN PyObject *_wrap_Window_SetHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40132 PyObject *resultobj = 0;
40133 wxWindow *arg1 = (wxWindow *) 0 ;
40134 wxString *arg2 = 0 ;
40135 void *argp1 = 0 ;
40136 int res1 = 0 ;
40137 bool temp2 = false ;
40138 PyObject * obj0 = 0 ;
40139 PyObject * obj1 = 0 ;
40140 char * kwnames[] = {
40141 (char *) "self",(char *) "text", NULL
40142 };
40143
40144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
40145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40146 if (!SWIG_IsOK(res1)) {
40147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetHelpText" "', expected argument " "1"" of type '" "wxWindow *""'");
40148 }
40149 arg1 = reinterpret_cast< wxWindow * >(argp1);
40150 {
40151 arg2 = wxString_in_helper(obj1);
40152 if (arg2 == NULL) SWIG_fail;
40153 temp2 = true;
40154 }
40155 {
40156 PyThreadState* __tstate = wxPyBeginAllowThreads();
40157 (arg1)->SetHelpText((wxString const &)*arg2);
40158 wxPyEndAllowThreads(__tstate);
40159 if (PyErr_Occurred()) SWIG_fail;
40160 }
40161 resultobj = SWIG_Py_Void();
40162 {
40163 if (temp2)
40164 delete arg2;
40165 }
40166 return resultobj;
40167fail:
40168 {
40169 if (temp2)
40170 delete arg2;
40171 }
40172 return NULL;
d55e5bfc
RD
40173}
40174
40175
1bd55598
RD
40176SWIGINTERN PyObject *_wrap_Window_SetHelpTextForId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40177 PyObject *resultobj = 0;
40178 wxWindow *arg1 = (wxWindow *) 0 ;
40179 wxString *arg2 = 0 ;
40180 void *argp1 = 0 ;
40181 int res1 = 0 ;
40182 bool temp2 = false ;
40183 PyObject * obj0 = 0 ;
40184 PyObject * obj1 = 0 ;
40185 char * kwnames[] = {
40186 (char *) "self",(char *) "text", NULL
40187 };
40188
40189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) SWIG_fail;
40190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40191 if (!SWIG_IsOK(res1)) {
40192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetHelpTextForId" "', expected argument " "1"" of type '" "wxWindow *""'");
40193 }
40194 arg1 = reinterpret_cast< wxWindow * >(argp1);
40195 {
40196 arg2 = wxString_in_helper(obj1);
40197 if (arg2 == NULL) SWIG_fail;
40198 temp2 = true;
40199 }
40200 {
40201 PyThreadState* __tstate = wxPyBeginAllowThreads();
40202 (arg1)->SetHelpTextForId((wxString const &)*arg2);
40203 wxPyEndAllowThreads(__tstate);
40204 if (PyErr_Occurred()) SWIG_fail;
40205 }
40206 resultobj = SWIG_Py_Void();
40207 {
40208 if (temp2)
40209 delete arg2;
40210 }
40211 return resultobj;
40212fail:
40213 {
40214 if (temp2)
40215 delete arg2;
40216 }
40217 return NULL;
d55e5bfc
RD
40218}
40219
40220
b850e7f3
RD
40221SWIGINTERN PyObject *_wrap_Window_GetHelpTextAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40222 PyObject *resultobj = 0;
40223 wxWindow *arg1 = (wxWindow *) 0 ;
40224 wxPoint *arg2 = 0 ;
40225 wxHelpEvent::Origin arg3 ;
40226 wxString result;
40227 void *argp1 = 0 ;
40228 int res1 = 0 ;
40229 wxPoint temp2 ;
40230 void *argp3 ;
40231 int res3 = 0 ;
40232 PyObject * obj0 = 0 ;
40233 PyObject * obj1 = 0 ;
40234 PyObject * obj2 = 0 ;
40235 char * kwnames[] = {
40236 (char *) "self",(char *) "pt",(char *) "origin", NULL
40237 };
40238
40239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_GetHelpTextAtPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40241 if (!SWIG_IsOK(res1)) {
40242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "1"" of type '" "wxWindow const *""'");
40243 }
40244 arg1 = reinterpret_cast< wxWindow * >(argp1);
40245 {
40246 arg2 = &temp2;
40247 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40248 }
40249 {
40250 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxHelpEvent__Origin, 0 | 0);
40251 if (!SWIG_IsOK(res3)) {
40252 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "3"" of type '" "wxHelpEvent::Origin""'");
40253 }
40254 if (!argp3) {
40255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "3"" of type '" "wxHelpEvent::Origin""'");
40256 } else {
40257 wxHelpEvent::Origin * temp = reinterpret_cast< wxHelpEvent::Origin * >(argp3);
40258 arg3 = *temp;
40259 if (SWIG_IsNewObj(res3)) delete temp;
40260 }
40261 }
40262 {
40263 PyThreadState* __tstate = wxPyBeginAllowThreads();
40264 result = ((wxWindow const *)arg1)->GetHelpTextAtPoint((wxPoint const &)*arg2,arg3);
40265 wxPyEndAllowThreads(__tstate);
40266 if (PyErr_Occurred()) SWIG_fail;
40267 }
40268 {
40269#if wxUSE_UNICODE
40270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40271#else
40272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40273#endif
40274 }
40275 return resultobj;
40276fail:
40277 return NULL;
40278}
40279
40280
1bd55598
RD
40281SWIGINTERN PyObject *_wrap_Window_GetHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40282 PyObject *resultobj = 0;
40283 wxWindow *arg1 = (wxWindow *) 0 ;
40284 wxString result;
40285 void *argp1 = 0 ;
40286 int res1 = 0 ;
40287 PyObject *swig_obj[1] ;
40288
40289 if (!args) SWIG_fail;
40290 swig_obj[0] = args;
40291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40292 if (!SWIG_IsOK(res1)) {
40293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetHelpText" "', expected argument " "1"" of type '" "wxWindow const *""'");
40294 }
40295 arg1 = reinterpret_cast< wxWindow * >(argp1);
40296 {
40297 PyThreadState* __tstate = wxPyBeginAllowThreads();
40298 result = ((wxWindow const *)arg1)->GetHelpText();
40299 wxPyEndAllowThreads(__tstate);
40300 if (PyErr_Occurred()) SWIG_fail;
40301 }
40302 {
40303#if wxUSE_UNICODE
40304 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40305#else
40306 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40307#endif
40308 }
40309 return resultobj;
40310fail:
40311 return NULL;
40312}
40313
40314
40315SWIGINTERN PyObject *_wrap_Window_SetToolTipString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40316 PyObject *resultobj = 0;
40317 wxWindow *arg1 = (wxWindow *) 0 ;
40318 wxString *arg2 = 0 ;
40319 void *argp1 = 0 ;
40320 int res1 = 0 ;
40321 bool temp2 = false ;
40322 PyObject * obj0 = 0 ;
40323 PyObject * obj1 = 0 ;
40324 char * kwnames[] = {
40325 (char *) "self",(char *) "tip", NULL
40326 };
40327
40328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) SWIG_fail;
40329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40330 if (!SWIG_IsOK(res1)) {
40331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetToolTipString" "', expected argument " "1"" of type '" "wxWindow *""'");
40332 }
40333 arg1 = reinterpret_cast< wxWindow * >(argp1);
40334 {
40335 arg2 = wxString_in_helper(obj1);
40336 if (arg2 == NULL) SWIG_fail;
40337 temp2 = true;
40338 }
40339 {
40340 PyThreadState* __tstate = wxPyBeginAllowThreads();
40341 (arg1)->SetToolTip((wxString const &)*arg2);
40342 wxPyEndAllowThreads(__tstate);
40343 if (PyErr_Occurred()) SWIG_fail;
40344 }
40345 resultobj = SWIG_Py_Void();
40346 {
40347 if (temp2)
40348 delete arg2;
40349 }
40350 return resultobj;
40351fail:
40352 {
40353 if (temp2)
40354 delete arg2;
40355 }
40356 return NULL;
d55e5bfc
RD
40357}
40358
40359
1bd55598
RD
40360SWIGINTERN PyObject *_wrap_Window_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40361 PyObject *resultobj = 0;
40362 wxWindow *arg1 = (wxWindow *) 0 ;
40363 wxToolTip *arg2 = (wxToolTip *) 0 ;
40364 void *argp1 = 0 ;
40365 int res1 = 0 ;
40366 int res2 = 0 ;
40367 PyObject * obj0 = 0 ;
40368 PyObject * obj1 = 0 ;
40369 char * kwnames[] = {
40370 (char *) "self",(char *) "tip", NULL
40371 };
40372
40373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
40374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40375 if (!SWIG_IsOK(res1)) {
40376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetToolTip" "', expected argument " "1"" of type '" "wxWindow *""'");
40377 }
40378 arg1 = reinterpret_cast< wxWindow * >(argp1);
40379 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxToolTip, SWIG_POINTER_DISOWN | 0 );
40380 if (!SWIG_IsOK(res2)) {
40381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetToolTip" "', expected argument " "2"" of type '" "wxToolTip *""'");
40382 }
40383 {
40384 PyThreadState* __tstate = wxPyBeginAllowThreads();
40385 (arg1)->SetToolTip(arg2);
40386 wxPyEndAllowThreads(__tstate);
40387 if (PyErr_Occurred()) SWIG_fail;
40388 }
40389 resultobj = SWIG_Py_Void();
40390 return resultobj;
40391fail:
40392 return NULL;
d55e5bfc
RD
40393}
40394
40395
1bd55598
RD
40396SWIGINTERN PyObject *_wrap_Window_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40397 PyObject *resultobj = 0;
40398 wxWindow *arg1 = (wxWindow *) 0 ;
40399 wxToolTip *result = 0 ;
40400 void *argp1 = 0 ;
40401 int res1 = 0 ;
40402 PyObject *swig_obj[1] ;
40403
40404 if (!args) SWIG_fail;
40405 swig_obj[0] = args;
40406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40407 if (!SWIG_IsOK(res1)) {
40408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetToolTip" "', expected argument " "1"" of type '" "wxWindow const *""'");
40409 }
40410 arg1 = reinterpret_cast< wxWindow * >(argp1);
40411 {
40412 PyThreadState* __tstate = wxPyBeginAllowThreads();
40413 result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip();
40414 wxPyEndAllowThreads(__tstate);
40415 if (PyErr_Occurred()) SWIG_fail;
40416 }
40417 {
40418 resultobj = wxPyMake_wxObject(result, (bool)0);
40419 }
40420 return resultobj;
40421fail:
40422 return NULL;
40423}
40424
40425
40426SWIGINTERN PyObject *_wrap_Window_SetDropTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40427 PyObject *resultobj = 0;
40428 wxWindow *arg1 = (wxWindow *) 0 ;
40429 wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ;
40430 void *argp1 = 0 ;
40431 int res1 = 0 ;
40432 int res2 = 0 ;
40433 PyObject * obj0 = 0 ;
40434 PyObject * obj1 = 0 ;
40435 char * kwnames[] = {
40436 (char *) "self",(char *) "dropTarget", NULL
40437 };
40438
40439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) SWIG_fail;
40440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40441 if (!SWIG_IsOK(res1)) {
40442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetDropTarget" "', expected argument " "1"" of type '" "wxWindow *""'");
40443 }
40444 arg1 = reinterpret_cast< wxWindow * >(argp1);
40445 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_DISOWN | 0 );
40446 if (!SWIG_IsOK(res2)) {
40447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetDropTarget" "', expected argument " "2"" of type '" "wxPyDropTarget *""'");
40448 }
40449 {
40450 PyThreadState* __tstate = wxPyBeginAllowThreads();
40451 (arg1)->SetDropTarget(arg2);
40452 wxPyEndAllowThreads(__tstate);
40453 if (PyErr_Occurred()) SWIG_fail;
40454 }
40455 resultobj = SWIG_Py_Void();
40456 return resultobj;
40457fail:
40458 return NULL;
d55e5bfc
RD
40459}
40460
40461
1bd55598
RD
40462SWIGINTERN PyObject *_wrap_Window_GetDropTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40463 PyObject *resultobj = 0;
40464 wxWindow *arg1 = (wxWindow *) 0 ;
40465 wxPyDropTarget *result = 0 ;
40466 void *argp1 = 0 ;
40467 int res1 = 0 ;
40468 PyObject *swig_obj[1] ;
40469
40470 if (!args) SWIG_fail;
40471 swig_obj[0] = args;
40472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40473 if (!SWIG_IsOK(res1)) {
40474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetDropTarget" "', expected argument " "1"" of type '" "wxWindow const *""'");
40475 }
40476 arg1 = reinterpret_cast< wxWindow * >(argp1);
40477 {
40478 PyThreadState* __tstate = wxPyBeginAllowThreads();
40479 result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget();
40480 wxPyEndAllowThreads(__tstate);
40481 if (PyErr_Occurred()) SWIG_fail;
40482 }
40483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
40484 return resultobj;
40485fail:
40486 return NULL;
40487}
40488
40489
40490SWIGINTERN PyObject *_wrap_Window_DragAcceptFiles(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40491 PyObject *resultobj = 0;
40492 wxWindow *arg1 = (wxWindow *) 0 ;
40493 bool arg2 ;
40494 void *argp1 = 0 ;
40495 int res1 = 0 ;
40496 bool val2 ;
40497 int ecode2 = 0 ;
40498 PyObject * obj0 = 0 ;
40499 PyObject * obj1 = 0 ;
40500 char * kwnames[] = {
40501 (char *) "self",(char *) "accept", NULL
40502 };
40503
40504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) SWIG_fail;
40505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40506 if (!SWIG_IsOK(res1)) {
40507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_DragAcceptFiles" "', expected argument " "1"" of type '" "wxWindow *""'");
40508 }
40509 arg1 = reinterpret_cast< wxWindow * >(argp1);
40510 ecode2 = SWIG_AsVal_bool(obj1, &val2);
40511 if (!SWIG_IsOK(ecode2)) {
40512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_DragAcceptFiles" "', expected argument " "2"" of type '" "bool""'");
40513 }
40514 arg2 = static_cast< bool >(val2);
40515 {
40516 PyThreadState* __tstate = wxPyBeginAllowThreads();
40517 wxWindow_DragAcceptFiles(arg1,arg2);
40518 wxPyEndAllowThreads(__tstate);
40519 if (PyErr_Occurred()) SWIG_fail;
40520 }
40521 resultobj = SWIG_Py_Void();
40522 return resultobj;
40523fail:
40524 return NULL;
40525}
40526
40527
40528SWIGINTERN PyObject *_wrap_Window_SetConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40529 PyObject *resultobj = 0;
40530 wxWindow *arg1 = (wxWindow *) 0 ;
40531 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
40532 void *argp1 = 0 ;
40533 int res1 = 0 ;
40534 int res2 = 0 ;
40535 PyObject * obj0 = 0 ;
40536 PyObject * obj1 = 0 ;
40537 char * kwnames[] = {
40538 (char *) "self",(char *) "constraints", NULL
40539 };
40540
40541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) SWIG_fail;
40542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40543 if (!SWIG_IsOK(res1)) {
40544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetConstraints" "', expected argument " "1"" of type '" "wxWindow *""'");
40545 }
40546 arg1 = reinterpret_cast< wxWindow * >(argp1);
40547 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_DISOWN | 0 );
40548 if (!SWIG_IsOK(res2)) {
40549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetConstraints" "', expected argument " "2"" of type '" "wxLayoutConstraints *""'");
40550 }
40551 {
40552 PyThreadState* __tstate = wxPyBeginAllowThreads();
40553 (arg1)->SetConstraints(arg2);
40554 wxPyEndAllowThreads(__tstate);
40555 if (PyErr_Occurred()) SWIG_fail;
40556 }
40557 resultobj = SWIG_Py_Void();
40558 return resultobj;
40559fail:
40560 return NULL;
53aa7709
RD
40561}
40562
40563
1bd55598
RD
40564SWIGINTERN PyObject *_wrap_Window_GetConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40565 PyObject *resultobj = 0;
40566 wxWindow *arg1 = (wxWindow *) 0 ;
40567 wxLayoutConstraints *result = 0 ;
40568 void *argp1 = 0 ;
40569 int res1 = 0 ;
40570 PyObject *swig_obj[1] ;
40571
40572 if (!args) SWIG_fail;
40573 swig_obj[0] = args;
40574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40575 if (!SWIG_IsOK(res1)) {
40576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetConstraints" "', expected argument " "1"" of type '" "wxWindow const *""'");
40577 }
40578 arg1 = reinterpret_cast< wxWindow * >(argp1);
40579 {
40580 PyThreadState* __tstate = wxPyBeginAllowThreads();
40581 result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints();
40582 wxPyEndAllowThreads(__tstate);
40583 if (PyErr_Occurred()) SWIG_fail;
40584 }
40585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
40586 return resultobj;
40587fail:
40588 return NULL;
40589}
40590
40591
40592SWIGINTERN PyObject *_wrap_Window_SetAutoLayout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40593 PyObject *resultobj = 0;
40594 wxWindow *arg1 = (wxWindow *) 0 ;
40595 bool arg2 ;
40596 void *argp1 = 0 ;
40597 int res1 = 0 ;
40598 bool val2 ;
40599 int ecode2 = 0 ;
40600 PyObject * obj0 = 0 ;
40601 PyObject * obj1 = 0 ;
40602 char * kwnames[] = {
40603 (char *) "self",(char *) "autoLayout", NULL
40604 };
40605
40606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) SWIG_fail;
40607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40608 if (!SWIG_IsOK(res1)) {
40609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetAutoLayout" "', expected argument " "1"" of type '" "wxWindow *""'");
40610 }
40611 arg1 = reinterpret_cast< wxWindow * >(argp1);
40612 ecode2 = SWIG_AsVal_bool(obj1, &val2);
40613 if (!SWIG_IsOK(ecode2)) {
40614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetAutoLayout" "', expected argument " "2"" of type '" "bool""'");
40615 }
40616 arg2 = static_cast< bool >(val2);
40617 {
40618 PyThreadState* __tstate = wxPyBeginAllowThreads();
40619 (arg1)->SetAutoLayout(arg2);
40620 wxPyEndAllowThreads(__tstate);
40621 if (PyErr_Occurred()) SWIG_fail;
40622 }
40623 resultobj = SWIG_Py_Void();
40624 return resultobj;
40625fail:
40626 return NULL;
53aa7709
RD
40627}
40628
40629
1bd55598
RD
40630SWIGINTERN PyObject *_wrap_Window_GetAutoLayout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40631 PyObject *resultobj = 0;
40632 wxWindow *arg1 = (wxWindow *) 0 ;
40633 bool result;
40634 void *argp1 = 0 ;
40635 int res1 = 0 ;
40636 PyObject *swig_obj[1] ;
40637
40638 if (!args) SWIG_fail;
40639 swig_obj[0] = args;
40640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40641 if (!SWIG_IsOK(res1)) {
40642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetAutoLayout" "', expected argument " "1"" of type '" "wxWindow const *""'");
40643 }
40644 arg1 = reinterpret_cast< wxWindow * >(argp1);
40645 {
40646 PyThreadState* __tstate = wxPyBeginAllowThreads();
40647 result = (bool)((wxWindow const *)arg1)->GetAutoLayout();
40648 wxPyEndAllowThreads(__tstate);
40649 if (PyErr_Occurred()) SWIG_fail;
40650 }
40651 {
40652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40653 }
40654 return resultobj;
40655fail:
40656 return NULL;
53aa7709
RD
40657}
40658
40659
1bd55598
RD
40660SWIGINTERN PyObject *_wrap_Window_Layout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40661 PyObject *resultobj = 0;
40662 wxWindow *arg1 = (wxWindow *) 0 ;
40663 bool result;
40664 void *argp1 = 0 ;
40665 int res1 = 0 ;
40666 PyObject *swig_obj[1] ;
40667
40668 if (!args) SWIG_fail;
40669 swig_obj[0] = args;
40670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40671 if (!SWIG_IsOK(res1)) {
40672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Layout" "', expected argument " "1"" of type '" "wxWindow *""'");
40673 }
40674 arg1 = reinterpret_cast< wxWindow * >(argp1);
40675 {
40676 PyThreadState* __tstate = wxPyBeginAllowThreads();
40677 result = (bool)(arg1)->Layout();
40678 wxPyEndAllowThreads(__tstate);
40679 if (PyErr_Occurred()) SWIG_fail;
40680 }
40681 {
40682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40683 }
40684 return resultobj;
40685fail:
40686 return NULL;
40687}
40688
40689
40690SWIGINTERN PyObject *_wrap_Window_SetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40691 PyObject *resultobj = 0;
40692 wxWindow *arg1 = (wxWindow *) 0 ;
40693 wxSizer *arg2 = (wxSizer *) 0 ;
40694 bool arg3 = (bool) true ;
40695 void *argp1 = 0 ;
40696 int res1 = 0 ;
40697 int res2 = 0 ;
40698 bool val3 ;
40699 int ecode3 = 0 ;
40700 PyObject * obj0 = 0 ;
40701 PyObject * obj1 = 0 ;
40702 PyObject * obj2 = 0 ;
40703 char * kwnames[] = {
40704 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
40705 };
40706
40707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40709 if (!SWIG_IsOK(res1)) {
40710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSizer" "', expected argument " "1"" of type '" "wxWindow *""'");
40711 }
40712 arg1 = reinterpret_cast< wxWindow * >(argp1);
40713 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
40714 if (!SWIG_IsOK(res2)) {
40715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetSizer" "', expected argument " "2"" of type '" "wxSizer *""'");
40716 }
40717 if (obj2) {
40718 ecode3 = SWIG_AsVal_bool(obj2, &val3);
40719 if (!SWIG_IsOK(ecode3)) {
40720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetSizer" "', expected argument " "3"" of type '" "bool""'");
40721 }
40722 arg3 = static_cast< bool >(val3);
40723 }
40724 {
40725 PyThreadState* __tstate = wxPyBeginAllowThreads();
40726 (arg1)->SetSizer(arg2,arg3);
40727 wxPyEndAllowThreads(__tstate);
40728 if (PyErr_Occurred()) SWIG_fail;
40729 }
40730 resultobj = SWIG_Py_Void();
40731 return resultobj;
40732fail:
40733 return NULL;
40734}
40735
40736
40737SWIGINTERN PyObject *_wrap_Window_SetSizerAndFit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40738 PyObject *resultobj = 0;
40739 wxWindow *arg1 = (wxWindow *) 0 ;
40740 wxSizer *arg2 = (wxSizer *) 0 ;
40741 bool arg3 = (bool) true ;
40742 void *argp1 = 0 ;
40743 int res1 = 0 ;
40744 int res2 = 0 ;
40745 bool val3 ;
40746 int ecode3 = 0 ;
40747 PyObject * obj0 = 0 ;
40748 PyObject * obj1 = 0 ;
40749 PyObject * obj2 = 0 ;
40750 char * kwnames[] = {
40751 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
40752 };
40753
40754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40756 if (!SWIG_IsOK(res1)) {
40757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSizerAndFit" "', expected argument " "1"" of type '" "wxWindow *""'");
40758 }
40759 arg1 = reinterpret_cast< wxWindow * >(argp1);
40760 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
40761 if (!SWIG_IsOK(res2)) {
40762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetSizerAndFit" "', expected argument " "2"" of type '" "wxSizer *""'");
40763 }
40764 if (obj2) {
40765 ecode3 = SWIG_AsVal_bool(obj2, &val3);
40766 if (!SWIG_IsOK(ecode3)) {
40767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetSizerAndFit" "', expected argument " "3"" of type '" "bool""'");
40768 }
40769 arg3 = static_cast< bool >(val3);
40770 }
40771 {
40772 PyThreadState* __tstate = wxPyBeginAllowThreads();
40773 (arg1)->SetSizerAndFit(arg2,arg3);
40774 wxPyEndAllowThreads(__tstate);
40775 if (PyErr_Occurred()) SWIG_fail;
40776 }
40777 resultobj = SWIG_Py_Void();
40778 return resultobj;
40779fail:
40780 return NULL;
d55e5bfc
RD
40781}
40782
40783
1bd55598
RD
40784SWIGINTERN PyObject *_wrap_Window_GetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40785 PyObject *resultobj = 0;
40786 wxWindow *arg1 = (wxWindow *) 0 ;
40787 wxSizer *result = 0 ;
40788 void *argp1 = 0 ;
40789 int res1 = 0 ;
40790 PyObject *swig_obj[1] ;
40791
40792 if (!args) SWIG_fail;
40793 swig_obj[0] = args;
40794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40795 if (!SWIG_IsOK(res1)) {
40796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetSizer" "', expected argument " "1"" of type '" "wxWindow const *""'");
40797 }
40798 arg1 = reinterpret_cast< wxWindow * >(argp1);
40799 {
40800 PyThreadState* __tstate = wxPyBeginAllowThreads();
40801 result = (wxSizer *)((wxWindow const *)arg1)->GetSizer();
40802 wxPyEndAllowThreads(__tstate);
40803 if (PyErr_Occurred()) SWIG_fail;
40804 }
40805 {
40806 resultobj = wxPyMake_wxObject(result, (bool)0);
40807 }
40808 return resultobj;
40809fail:
40810 return NULL;
40811}
40812
40813
40814SWIGINTERN PyObject *_wrap_Window_SetContainingSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40815 PyObject *resultobj = 0;
40816 wxWindow *arg1 = (wxWindow *) 0 ;
40817 wxSizer *arg2 = (wxSizer *) 0 ;
40818 void *argp1 = 0 ;
40819 int res1 = 0 ;
40820 void *argp2 = 0 ;
40821 int res2 = 0 ;
40822 PyObject * obj0 = 0 ;
40823 PyObject * obj1 = 0 ;
40824 char * kwnames[] = {
40825 (char *) "self",(char *) "sizer", NULL
40826 };
40827
40828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) SWIG_fail;
40829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40830 if (!SWIG_IsOK(res1)) {
40831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetContainingSizer" "', expected argument " "1"" of type '" "wxWindow *""'");
40832 }
40833 arg1 = reinterpret_cast< wxWindow * >(argp1);
40834 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
40835 if (!SWIG_IsOK(res2)) {
40836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetContainingSizer" "', expected argument " "2"" of type '" "wxSizer *""'");
40837 }
40838 arg2 = reinterpret_cast< wxSizer * >(argp2);
40839 {
40840 PyThreadState* __tstate = wxPyBeginAllowThreads();
40841 (arg1)->SetContainingSizer(arg2);
40842 wxPyEndAllowThreads(__tstate);
40843 if (PyErr_Occurred()) SWIG_fail;
40844 }
40845 resultobj = SWIG_Py_Void();
40846 return resultobj;
40847fail:
40848 return NULL;
d55e5bfc
RD
40849}
40850
40851
1bd55598
RD
40852SWIGINTERN PyObject *_wrap_Window_GetContainingSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40853 PyObject *resultobj = 0;
40854 wxWindow *arg1 = (wxWindow *) 0 ;
40855 wxSizer *result = 0 ;
40856 void *argp1 = 0 ;
40857 int res1 = 0 ;
40858 PyObject *swig_obj[1] ;
40859
40860 if (!args) SWIG_fail;
40861 swig_obj[0] = args;
40862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40863 if (!SWIG_IsOK(res1)) {
40864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetContainingSizer" "', expected argument " "1"" of type '" "wxWindow const *""'");
40865 }
40866 arg1 = reinterpret_cast< wxWindow * >(argp1);
40867 {
40868 PyThreadState* __tstate = wxPyBeginAllowThreads();
40869 result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer();
40870 wxPyEndAllowThreads(__tstate);
40871 if (PyErr_Occurred()) SWIG_fail;
40872 }
40873 {
40874 resultobj = wxPyMake_wxObject(result, (bool)0);
40875 }
40876 return resultobj;
40877fail:
40878 return NULL;
d55e5bfc
RD
40879}
40880
40881
1bd55598
RD
40882SWIGINTERN PyObject *_wrap_Window_InheritAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40883 PyObject *resultobj = 0;
40884 wxWindow *arg1 = (wxWindow *) 0 ;
40885 void *argp1 = 0 ;
40886 int res1 = 0 ;
40887 PyObject *swig_obj[1] ;
40888
40889 if (!args) SWIG_fail;
40890 swig_obj[0] = args;
40891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40892 if (!SWIG_IsOK(res1)) {
40893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_InheritAttributes" "', expected argument " "1"" of type '" "wxWindow *""'");
40894 }
40895 arg1 = reinterpret_cast< wxWindow * >(argp1);
40896 {
40897 PyThreadState* __tstate = wxPyBeginAllowThreads();
40898 (arg1)->InheritAttributes();
40899 wxPyEndAllowThreads(__tstate);
40900 if (PyErr_Occurred()) SWIG_fail;
40901 }
40902 resultobj = SWIG_Py_Void();
40903 return resultobj;
40904fail:
40905 return NULL;
d55e5bfc
RD
40906}
40907
40908
1bd55598
RD
40909SWIGINTERN PyObject *_wrap_Window_ShouldInheritColours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40910 PyObject *resultobj = 0;
40911 wxWindow *arg1 = (wxWindow *) 0 ;
40912 bool result;
40913 void *argp1 = 0 ;
40914 int res1 = 0 ;
40915 PyObject *swig_obj[1] ;
40916
40917 if (!args) SWIG_fail;
40918 swig_obj[0] = args;
40919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40920 if (!SWIG_IsOK(res1)) {
40921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ShouldInheritColours" "', expected argument " "1"" of type '" "wxWindow const *""'");
40922 }
40923 arg1 = reinterpret_cast< wxWindow * >(argp1);
40924 {
40925 PyThreadState* __tstate = wxPyBeginAllowThreads();
40926 result = (bool)((wxWindow const *)arg1)->ShouldInheritColours();
40927 wxPyEndAllowThreads(__tstate);
40928 if (PyErr_Occurred()) SWIG_fail;
40929 }
40930 {
40931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40932 }
40933 return resultobj;
40934fail:
40935 return NULL;
d55e5bfc
RD
40936}
40937
40938
fc46b7f3
RD
40939SWIGINTERN PyObject *_wrap_Window_CanSetTransparent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40940 PyObject *resultobj = 0;
40941 wxWindow *arg1 = (wxWindow *) 0 ;
40942 bool result;
40943 void *argp1 = 0 ;
40944 int res1 = 0 ;
40945 PyObject *swig_obj[1] ;
40946
40947 if (!args) SWIG_fail;
40948 swig_obj[0] = args;
40949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40950 if (!SWIG_IsOK(res1)) {
40951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_CanSetTransparent" "', expected argument " "1"" of type '" "wxWindow *""'");
40952 }
40953 arg1 = reinterpret_cast< wxWindow * >(argp1);
40954 {
40955 PyThreadState* __tstate = wxPyBeginAllowThreads();
40956 result = (bool)(arg1)->CanSetTransparent();
40957 wxPyEndAllowThreads(__tstate);
40958 if (PyErr_Occurred()) SWIG_fail;
40959 }
40960 {
40961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40962 }
40963 return resultobj;
40964fail:
40965 return NULL;
40966}
40967
40968
40969SWIGINTERN PyObject *_wrap_Window_SetTransparent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40970 PyObject *resultobj = 0;
40971 wxWindow *arg1 = (wxWindow *) 0 ;
40972 byte arg2 ;
40973 bool result;
40974 void *argp1 = 0 ;
40975 int res1 = 0 ;
40976 unsigned char val2 ;
40977 int ecode2 = 0 ;
40978 PyObject * obj0 = 0 ;
40979 PyObject * obj1 = 0 ;
40980 char * kwnames[] = {
40981 (char *) "self",(char *) "alpha", NULL
40982 };
40983
40984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTransparent",kwnames,&obj0,&obj1)) SWIG_fail;
40985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40986 if (!SWIG_IsOK(res1)) {
40987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetTransparent" "', expected argument " "1"" of type '" "wxWindow *""'");
40988 }
40989 arg1 = reinterpret_cast< wxWindow * >(argp1);
40990 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
40991 if (!SWIG_IsOK(ecode2)) {
40992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetTransparent" "', expected argument " "2"" of type '" "byte""'");
40993 }
40994 arg2 = static_cast< byte >(val2);
40995 {
40996 PyThreadState* __tstate = wxPyBeginAllowThreads();
40997 result = (bool)(arg1)->SetTransparent(arg2);
40998 wxPyEndAllowThreads(__tstate);
40999 if (PyErr_Occurred()) SWIG_fail;
41000 }
41001 {
41002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41003 }
41004 return resultobj;
41005fail:
41006 return NULL;
41007}
41008
41009
1bd55598
RD
41010SWIGINTERN PyObject *Window_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41011 PyObject *obj;
41012 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41013 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindow, SWIG_NewClientData(obj));
41014 return SWIG_Py_Void();
d55e5bfc
RD
41015}
41016
1bd55598
RD
41017SWIGINTERN PyObject *Window_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41018 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41019}
41020
1bd55598
RD
41021SWIGINTERN PyObject *_wrap_FindWindowById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41022 PyObject *resultobj = 0;
41023 long arg1 ;
41024 wxWindow *arg2 = (wxWindow *) NULL ;
41025 wxWindow *result = 0 ;
41026 long val1 ;
41027 int ecode1 = 0 ;
41028 void *argp2 = 0 ;
41029 int res2 = 0 ;
41030 PyObject * obj0 = 0 ;
41031 PyObject * obj1 = 0 ;
41032 char * kwnames[] = {
41033 (char *) "id",(char *) "parent", NULL
41034 };
41035
41036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) SWIG_fail;
41037 ecode1 = SWIG_AsVal_long(obj0, &val1);
41038 if (!SWIG_IsOK(ecode1)) {
41039 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FindWindowById" "', expected argument " "1"" of type '" "long""'");
41040 }
41041 arg1 = static_cast< long >(val1);
41042 if (obj1) {
41043 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41044 if (!SWIG_IsOK(res2)) {
41045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindWindowById" "', expected argument " "2"" of type '" "wxWindow const *""'");
d55e5bfc 41046 }
1bd55598
RD
41047 arg2 = reinterpret_cast< wxWindow * >(argp2);
41048 }
41049 {
41050 if (!wxPyCheckForApp()) SWIG_fail;
41051 PyThreadState* __tstate = wxPyBeginAllowThreads();
41052 result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2);
41053 wxPyEndAllowThreads(__tstate);
41054 if (PyErr_Occurred()) SWIG_fail;
41055 }
41056 {
41057 resultobj = wxPyMake_wxObject(result, 0);
41058 }
41059 return resultobj;
41060fail:
41061 return NULL;
41062}
41063
41064
41065SWIGINTERN PyObject *_wrap_FindWindowByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41066 PyObject *resultobj = 0;
41067 wxString *arg1 = 0 ;
41068 wxWindow *arg2 = (wxWindow *) NULL ;
41069 wxWindow *result = 0 ;
41070 bool temp1 = false ;
41071 void *argp2 = 0 ;
41072 int res2 = 0 ;
41073 PyObject * obj0 = 0 ;
41074 PyObject * obj1 = 0 ;
41075 char * kwnames[] = {
41076 (char *) "name",(char *) "parent", NULL
41077 };
41078
41079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) SWIG_fail;
41080 {
41081 arg1 = wxString_in_helper(obj0);
41082 if (arg1 == NULL) SWIG_fail;
41083 temp1 = true;
41084 }
41085 if (obj1) {
41086 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41087 if (!SWIG_IsOK(res2)) {
41088 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindWindowByName" "', expected argument " "2"" of type '" "wxWindow const *""'");
d55e5bfc 41089 }
1bd55598
RD
41090 arg2 = reinterpret_cast< wxWindow * >(argp2);
41091 }
41092 {
41093 if (!wxPyCheckForApp()) SWIG_fail;
41094 PyThreadState* __tstate = wxPyBeginAllowThreads();
41095 result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2);
41096 wxPyEndAllowThreads(__tstate);
41097 if (PyErr_Occurred()) SWIG_fail;
41098 }
41099 {
41100 resultobj = wxPyMake_wxObject(result, 0);
41101 }
41102 {
41103 if (temp1)
41104 delete arg1;
41105 }
41106 return resultobj;
41107fail:
41108 {
41109 if (temp1)
41110 delete arg1;
41111 }
41112 return NULL;
41113}
41114
41115
41116SWIGINTERN PyObject *_wrap_FindWindowByLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41117 PyObject *resultobj = 0;
41118 wxString *arg1 = 0 ;
41119 wxWindow *arg2 = (wxWindow *) NULL ;
41120 wxWindow *result = 0 ;
41121 bool temp1 = false ;
41122 void *argp2 = 0 ;
41123 int res2 = 0 ;
41124 PyObject * obj0 = 0 ;
41125 PyObject * obj1 = 0 ;
41126 char * kwnames[] = {
41127 (char *) "label",(char *) "parent", NULL
41128 };
41129
41130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) SWIG_fail;
41131 {
41132 arg1 = wxString_in_helper(obj0);
41133 if (arg1 == NULL) SWIG_fail;
41134 temp1 = true;
41135 }
41136 if (obj1) {
41137 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41138 if (!SWIG_IsOK(res2)) {
41139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindWindowByLabel" "', expected argument " "2"" of type '" "wxWindow const *""'");
41140 }
41141 arg2 = reinterpret_cast< wxWindow * >(argp2);
41142 }
41143 {
41144 if (!wxPyCheckForApp()) SWIG_fail;
41145 PyThreadState* __tstate = wxPyBeginAllowThreads();
41146 result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2);
41147 wxPyEndAllowThreads(__tstate);
41148 if (PyErr_Occurred()) SWIG_fail;
41149 }
41150 {
41151 resultobj = wxPyMake_wxObject(result, 0);
41152 }
41153 {
41154 if (temp1)
41155 delete arg1;
41156 }
41157 return resultobj;
41158fail:
41159 {
41160 if (temp1)
41161 delete arg1;
41162 }
41163 return NULL;
41164}
41165
41166
41167SWIGINTERN PyObject *_wrap_Window_FromHWND(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41168 PyObject *resultobj = 0;
41169 wxWindow *arg1 = (wxWindow *) 0 ;
41170 unsigned long arg2 ;
41171 wxWindow *result = 0 ;
41172 void *argp1 = 0 ;
41173 int res1 = 0 ;
41174 unsigned long val2 ;
41175 int ecode2 = 0 ;
41176 PyObject * obj0 = 0 ;
41177 PyObject * obj1 = 0 ;
41178 char * kwnames[] = {
41179 (char *) "parent",(char *) "_hWnd", NULL
41180 };
41181
41182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) SWIG_fail;
41183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41184 if (!SWIG_IsOK(res1)) {
41185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_FromHWND" "', expected argument " "1"" of type '" "wxWindow *""'");
41186 }
41187 arg1 = reinterpret_cast< wxWindow * >(argp1);
41188 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
41189 if (!SWIG_IsOK(ecode2)) {
41190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_FromHWND" "', expected argument " "2"" of type '" "unsigned long""'");
41191 }
41192 arg2 = static_cast< unsigned long >(val2);
41193 {
41194 PyThreadState* __tstate = wxPyBeginAllowThreads();
41195 result = (wxWindow *)wxWindow_FromHWND(arg1,arg2);
41196 wxPyEndAllowThreads(__tstate);
41197 if (PyErr_Occurred()) SWIG_fail;
41198 }
41199 {
41200 resultobj = wxPyMake_wxObject(result, 0);
41201 }
41202 return resultobj;
41203fail:
41204 return NULL;
d55e5bfc
RD
41205}
41206
41207
1bd55598
RD
41208SWIGINTERN PyObject *_wrap_GetTopLevelWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41209 PyObject *resultobj = 0;
41210 PyObject *result = 0 ;
41211
41212 if (!SWIG_Python_UnpackTuple(args,"GetTopLevelWindows",0,0,0)) SWIG_fail;
41213 {
41214 PyThreadState* __tstate = wxPyBeginAllowThreads();
41215 result = (PyObject *)GetTopLevelWindows();
41216 wxPyEndAllowThreads(__tstate);
41217 if (PyErr_Occurred()) SWIG_fail;
41218 }
41219 resultobj = result;
41220 return resultobj;
41221fail:
41222 return NULL;
d55e5bfc
RD
41223}
41224
41225
1bd55598
RD
41226SWIGINTERN PyObject *_wrap_new_Validator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41227 PyObject *resultobj = 0;
41228 wxValidator *result = 0 ;
41229
41230 if (!SWIG_Python_UnpackTuple(args,"new_Validator",0,0,0)) SWIG_fail;
41231 {
41232 PyThreadState* __tstate = wxPyBeginAllowThreads();
41233 result = (wxValidator *)new wxValidator();
41234 wxPyEndAllowThreads(__tstate);
41235 if (PyErr_Occurred()) SWIG_fail;
41236 }
41237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxValidator, SWIG_POINTER_NEW | 0 );
41238 return resultobj;
41239fail:
41240 return NULL;
d55e5bfc
RD
41241}
41242
41243
1bd55598
RD
41244SWIGINTERN PyObject *_wrap_Validator_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41245 PyObject *resultobj = 0;
41246 wxValidator *arg1 = (wxValidator *) 0 ;
41247 wxValidator *result = 0 ;
41248 void *argp1 = 0 ;
41249 int res1 = 0 ;
41250 PyObject *swig_obj[1] ;
41251
41252 if (!args) SWIG_fail;
41253 swig_obj[0] = args;
41254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
41255 if (!SWIG_IsOK(res1)) {
41256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_Clone" "', expected argument " "1"" of type '" "wxValidator *""'");
41257 }
41258 arg1 = reinterpret_cast< wxValidator * >(argp1);
41259 {
41260 PyThreadState* __tstate = wxPyBeginAllowThreads();
41261 result = (wxValidator *)(arg1)->Clone();
41262 wxPyEndAllowThreads(__tstate);
41263 if (PyErr_Occurred()) SWIG_fail;
41264 }
41265 {
41266 resultobj = wxPyMake_wxObject(result, 0);
41267 }
41268 return resultobj;
41269fail:
41270 return NULL;
41271}
41272
41273
41274SWIGINTERN PyObject *_wrap_Validator_Validate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41275 PyObject *resultobj = 0;
41276 wxValidator *arg1 = (wxValidator *) 0 ;
41277 wxWindow *arg2 = (wxWindow *) 0 ;
41278 bool result;
41279 void *argp1 = 0 ;
41280 int res1 = 0 ;
41281 void *argp2 = 0 ;
41282 int res2 = 0 ;
41283 PyObject * obj0 = 0 ;
41284 PyObject * obj1 = 0 ;
41285 char * kwnames[] = {
41286 (char *) "self",(char *) "parent", NULL
41287 };
41288
41289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) SWIG_fail;
41290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
41291 if (!SWIG_IsOK(res1)) {
41292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_Validate" "', expected argument " "1"" of type '" "wxValidator *""'");
41293 }
41294 arg1 = reinterpret_cast< wxValidator * >(argp1);
41295 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41296 if (!SWIG_IsOK(res2)) {
41297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Validator_Validate" "', expected argument " "2"" of type '" "wxWindow *""'");
41298 }
41299 arg2 = reinterpret_cast< wxWindow * >(argp2);
41300 {
41301 PyThreadState* __tstate = wxPyBeginAllowThreads();
41302 result = (bool)(arg1)->Validate(arg2);
41303 wxPyEndAllowThreads(__tstate);
41304 if (PyErr_Occurred()) SWIG_fail;
41305 }
41306 {
41307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41308 }
41309 return resultobj;
41310fail:
41311 return NULL;
d55e5bfc
RD
41312}
41313
41314
1bd55598
RD
41315SWIGINTERN PyObject *_wrap_Validator_TransferToWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41316 PyObject *resultobj = 0;
41317 wxValidator *arg1 = (wxValidator *) 0 ;
41318 bool result;
41319 void *argp1 = 0 ;
41320 int res1 = 0 ;
41321 PyObject *swig_obj[1] ;
41322
41323 if (!args) SWIG_fail;
41324 swig_obj[0] = args;
41325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
41326 if (!SWIG_IsOK(res1)) {
41327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_TransferToWindow" "', expected argument " "1"" of type '" "wxValidator *""'");
41328 }
41329 arg1 = reinterpret_cast< wxValidator * >(argp1);
41330 {
41331 PyThreadState* __tstate = wxPyBeginAllowThreads();
41332 result = (bool)(arg1)->TransferToWindow();
41333 wxPyEndAllowThreads(__tstate);
41334 if (PyErr_Occurred()) SWIG_fail;
41335 }
41336 {
41337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41338 }
41339 return resultobj;
41340fail:
41341 return NULL;
d55e5bfc
RD
41342}
41343
41344
1bd55598
RD
41345SWIGINTERN PyObject *_wrap_Validator_TransferFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41346 PyObject *resultobj = 0;
41347 wxValidator *arg1 = (wxValidator *) 0 ;
41348 bool result;
41349 void *argp1 = 0 ;
41350 int res1 = 0 ;
41351 PyObject *swig_obj[1] ;
41352
41353 if (!args) SWIG_fail;
41354 swig_obj[0] = args;
41355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
41356 if (!SWIG_IsOK(res1)) {
41357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_TransferFromWindow" "', expected argument " "1"" of type '" "wxValidator *""'");
41358 }
41359 arg1 = reinterpret_cast< wxValidator * >(argp1);
41360 {
41361 PyThreadState* __tstate = wxPyBeginAllowThreads();
41362 result = (bool)(arg1)->TransferFromWindow();
41363 wxPyEndAllowThreads(__tstate);
41364 if (PyErr_Occurred()) SWIG_fail;
41365 }
41366 {
41367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41368 }
41369 return resultobj;
41370fail:
41371 return NULL;
d55e5bfc
RD
41372}
41373
41374
1bd55598
RD
41375SWIGINTERN PyObject *_wrap_Validator_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41376 PyObject *resultobj = 0;
41377 wxValidator *arg1 = (wxValidator *) 0 ;
41378 wxWindow *result = 0 ;
41379 void *argp1 = 0 ;
41380 int res1 = 0 ;
41381 PyObject *swig_obj[1] ;
41382
41383 if (!args) SWIG_fail;
41384 swig_obj[0] = args;
41385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
41386 if (!SWIG_IsOK(res1)) {
41387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_GetWindow" "', expected argument " "1"" of type '" "wxValidator *""'");
41388 }
41389 arg1 = reinterpret_cast< wxValidator * >(argp1);
41390 {
41391 PyThreadState* __tstate = wxPyBeginAllowThreads();
41392 result = (wxWindow *)(arg1)->GetWindow();
41393 wxPyEndAllowThreads(__tstate);
41394 if (PyErr_Occurred()) SWIG_fail;
41395 }
41396 {
41397 resultobj = wxPyMake_wxObject(result, 0);
41398 }
41399 return resultobj;
41400fail:
41401 return NULL;
41402}
41403
41404
41405SWIGINTERN PyObject *_wrap_Validator_SetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41406 PyObject *resultobj = 0;
41407 wxValidator *arg1 = (wxValidator *) 0 ;
41408 wxWindow *arg2 = (wxWindow *) 0 ;
41409 void *argp1 = 0 ;
41410 int res1 = 0 ;
41411 void *argp2 = 0 ;
41412 int res2 = 0 ;
41413 PyObject * obj0 = 0 ;
41414 PyObject * obj1 = 0 ;
41415 char * kwnames[] = {
41416 (char *) "self",(char *) "window", NULL
41417 };
41418
41419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) SWIG_fail;
41420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
41421 if (!SWIG_IsOK(res1)) {
41422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_SetWindow" "', expected argument " "1"" of type '" "wxValidator *""'");
41423 }
41424 arg1 = reinterpret_cast< wxValidator * >(argp1);
41425 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41426 if (!SWIG_IsOK(res2)) {
41427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Validator_SetWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
41428 }
41429 arg2 = reinterpret_cast< wxWindow * >(argp2);
41430 {
41431 PyThreadState* __tstate = wxPyBeginAllowThreads();
41432 (arg1)->SetWindow(arg2);
41433 wxPyEndAllowThreads(__tstate);
41434 if (PyErr_Occurred()) SWIG_fail;
41435 }
41436 resultobj = SWIG_Py_Void();
41437 return resultobj;
41438fail:
41439 return NULL;
84f85550
RD
41440}
41441
41442
1bd55598
RD
41443SWIGINTERN PyObject *_wrap_Validator_IsSilent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41444 PyObject *resultobj = 0;
41445 bool result;
41446
41447 if (!SWIG_Python_UnpackTuple(args,"Validator_IsSilent",0,0,0)) SWIG_fail;
41448 {
41449 PyThreadState* __tstate = wxPyBeginAllowThreads();
41450 result = (bool)wxValidator::IsSilent();
41451 wxPyEndAllowThreads(__tstate);
41452 if (PyErr_Occurred()) SWIG_fail;
41453 }
41454 {
41455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41456 }
41457 return resultobj;
41458fail:
41459 return NULL;
d55e5bfc
RD
41460}
41461
41462
1bd55598
RD
41463SWIGINTERN PyObject *_wrap_Validator_SetBellOnError(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41464 PyObject *resultobj = 0;
41465 int arg1 = (int) true ;
41466 int val1 ;
41467 int ecode1 = 0 ;
41468 PyObject * obj0 = 0 ;
41469 char * kwnames[] = {
41470 (char *) "doIt", NULL
41471 };
41472
41473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) SWIG_fail;
41474 if (obj0) {
41475 ecode1 = SWIG_AsVal_int(obj0, &val1);
41476 if (!SWIG_IsOK(ecode1)) {
41477 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Validator_SetBellOnError" "', expected argument " "1"" of type '" "int""'");
41478 }
41479 arg1 = static_cast< int >(val1);
41480 }
41481 {
41482 PyThreadState* __tstate = wxPyBeginAllowThreads();
41483 wxValidator::SetBellOnError(arg1);
41484 wxPyEndAllowThreads(__tstate);
41485 if (PyErr_Occurred()) SWIG_fail;
41486 }
41487 resultobj = SWIG_Py_Void();
41488 return resultobj;
41489fail:
41490 return NULL;
d55e5bfc
RD
41491}
41492
41493
1bd55598
RD
41494SWIGINTERN PyObject *Validator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41495 PyObject *obj;
41496 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41497 SWIG_TypeNewClientData(SWIGTYPE_p_wxValidator, SWIG_NewClientData(obj));
41498 return SWIG_Py_Void();
d55e5bfc
RD
41499}
41500
1bd55598
RD
41501SWIGINTERN PyObject *Validator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41502 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41503}
41504
1bd55598
RD
41505SWIGINTERN PyObject *_wrap_new_PyValidator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41506 PyObject *resultobj = 0;
41507 wxPyValidator *result = 0 ;
41508
41509 if (!SWIG_Python_UnpackTuple(args,"new_PyValidator",0,0,0)) SWIG_fail;
41510 {
41511 PyThreadState* __tstate = wxPyBeginAllowThreads();
41512 result = (wxPyValidator *)new wxPyValidator();
41513 wxPyEndAllowThreads(__tstate);
41514 if (PyErr_Occurred()) SWIG_fail;
41515 }
41516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyValidator, SWIG_POINTER_NEW | 0 );
41517 return resultobj;
41518fail:
41519 return NULL;
41520}
41521
41522
41523SWIGINTERN PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41524 PyObject *resultobj = 0;
41525 wxPyValidator *arg1 = (wxPyValidator *) 0 ;
41526 PyObject *arg2 = (PyObject *) 0 ;
41527 PyObject *arg3 = (PyObject *) 0 ;
c25f90f6 41528 int arg4 = (int) 1 ;
1bd55598
RD
41529 void *argp1 = 0 ;
41530 int res1 = 0 ;
41531 int val4 ;
41532 int ecode4 = 0 ;
41533 PyObject * obj0 = 0 ;
41534 PyObject * obj1 = 0 ;
41535 PyObject * obj2 = 0 ;
41536 PyObject * obj3 = 0 ;
41537 char * kwnames[] = {
41538 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
41539 };
41540
41541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyValidator, 0 | 0 );
41543 if (!SWIG_IsOK(res1)) {
41544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyValidator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyValidator *""'");
41545 }
41546 arg1 = reinterpret_cast< wxPyValidator * >(argp1);
41547 arg2 = obj1;
41548 arg3 = obj2;
41549 if (obj3) {
41550 ecode4 = SWIG_AsVal_int(obj3, &val4);
41551 if (!SWIG_IsOK(ecode4)) {
41552 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyValidator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
41553 }
41554 arg4 = static_cast< int >(val4);
41555 }
41556 {
41557 PyThreadState* __tstate = wxPyBeginAllowThreads();
41558 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
41559 wxPyEndAllowThreads(__tstate);
41560 if (PyErr_Occurred()) SWIG_fail;
41561 }
41562 resultobj = SWIG_Py_Void();
41563 return resultobj;
41564fail:
41565 return NULL;
d55e5bfc
RD
41566}
41567
41568
1bd55598
RD
41569SWIGINTERN PyObject *PyValidator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41570 PyObject *obj;
41571 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41572 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyValidator, SWIG_NewClientData(obj));
41573 return SWIG_Py_Void();
d55e5bfc
RD
41574}
41575
1bd55598
RD
41576SWIGINTERN PyObject *PyValidator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41577 return SWIG_Python_InitShadowInstance(args);
41578}
d55e5bfc 41579
1bd55598
RD
41580SWIGINTERN int DefaultValidator_set(PyObject *) {
41581 SWIG_Error(SWIG_AttributeError,"Variable DefaultValidator is read-only.");
41582 return 1;
d55e5bfc
RD
41583}
41584
41585
1bd55598
RD
41586SWIGINTERN PyObject *DefaultValidator_get(void) {
41587 PyObject *pyobj = 0;
41588
41589 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0 );
41590 return pyobj;
41591}
41592
41593
41594SWIGINTERN PyObject *_wrap_new_Menu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41595 PyObject *resultobj = 0;
41596 wxString const &arg1_defvalue = wxPyEmptyString ;
41597 wxString *arg1 = (wxString *) &arg1_defvalue ;
41598 long arg2 = (long) 0 ;
41599 wxMenu *result = 0 ;
41600 bool temp1 = false ;
41601 long val2 ;
41602 int ecode2 = 0 ;
41603 PyObject * obj0 = 0 ;
41604 PyObject * obj1 = 0 ;
41605 char * kwnames[] = {
41606 (char *) "title",(char *) "style", NULL
41607 };
41608
41609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) SWIG_fail;
41610 if (obj0) {
d55e5bfc 41611 {
1bd55598
RD
41612 arg1 = wxString_in_helper(obj0);
41613 if (arg1 == NULL) SWIG_fail;
41614 temp1 = true;
d55e5bfc 41615 }
1bd55598
RD
41616 }
41617 if (obj1) {
41618 ecode2 = SWIG_AsVal_long(obj1, &val2);
41619 if (!SWIG_IsOK(ecode2)) {
41620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Menu" "', expected argument " "2"" of type '" "long""'");
41621 }
41622 arg2 = static_cast< long >(val2);
41623 }
41624 {
41625 if (!wxPyCheckForApp()) SWIG_fail;
41626 PyThreadState* __tstate = wxPyBeginAllowThreads();
41627 result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2);
41628 wxPyEndAllowThreads(__tstate);
41629 if (PyErr_Occurred()) SWIG_fail;
41630 }
41631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMenu, SWIG_POINTER_NEW | 0 );
41632 {
41633 if (temp1)
41634 delete arg1;
41635 }
41636 return resultobj;
41637fail:
41638 {
41639 if (temp1)
41640 delete arg1;
41641 }
41642 return NULL;
41643}
41644
41645
41646SWIGINTERN PyObject *_wrap_Menu_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41647 PyObject *resultobj = 0;
41648 wxMenu *arg1 = (wxMenu *) 0 ;
41649 int arg2 ;
ac5d357a
RD
41650 wxString const &arg3_defvalue = wxPyEmptyString ;
41651 wxString *arg3 = (wxString *) &arg3_defvalue ;
1bd55598
RD
41652 wxString const &arg4_defvalue = wxPyEmptyString ;
41653 wxString *arg4 = (wxString *) &arg4_defvalue ;
41654 wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ;
41655 wxMenuItem *result = 0 ;
41656 void *argp1 = 0 ;
41657 int res1 = 0 ;
41658 int val2 ;
41659 int ecode2 = 0 ;
41660 bool temp3 = false ;
41661 bool temp4 = false ;
41662 int val5 ;
41663 int ecode5 = 0 ;
41664 PyObject * obj0 = 0 ;
41665 PyObject * obj1 = 0 ;
41666 PyObject * obj2 = 0 ;
41667 PyObject * obj3 = 0 ;
41668 PyObject * obj4 = 0 ;
41669 char * kwnames[] = {
41670 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
41671 };
41672
ac5d357a 41673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
41674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
41675 if (!SWIG_IsOK(res1)) {
41676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Append" "', expected argument " "1"" of type '" "wxMenu *""'");
41677 }
41678 arg1 = reinterpret_cast< wxMenu * >(argp1);
41679 ecode2 = SWIG_AsVal_int(obj1, &val2);
41680 if (!SWIG_IsOK(ecode2)) {
41681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Append" "', expected argument " "2"" of type '" "int""'");
41682 }
41683 arg2 = static_cast< int >(val2);
ac5d357a
RD
41684 if (obj2) {
41685 {
41686 arg3 = wxString_in_helper(obj2);
41687 if (arg3 == NULL) SWIG_fail;
41688 temp3 = true;
41689 }
1bd55598
RD
41690 }
41691 if (obj3) {
d55e5bfc 41692 {
1bd55598
RD
41693 arg4 = wxString_in_helper(obj3);
41694 if (arg4 == NULL) SWIG_fail;
41695 temp4 = true;
d55e5bfc 41696 }
1bd55598
RD
41697 }
41698 if (obj4) {
41699 ecode5 = SWIG_AsVal_int(obj4, &val5);
41700 if (!SWIG_IsOK(ecode5)) {
41701 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Menu_Append" "', expected argument " "5"" of type '" "wxItemKind""'");
41702 }
41703 arg5 = static_cast< wxItemKind >(val5);
41704 }
41705 {
41706 PyThreadState* __tstate = wxPyBeginAllowThreads();
41707 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
41708 wxPyEndAllowThreads(__tstate);
41709 if (PyErr_Occurred()) SWIG_fail;
41710 }
41711 {
41712 resultobj = wxPyMake_wxObject(result, (bool)0);
41713 }
41714 {
41715 if (temp3)
41716 delete arg3;
41717 }
41718 {
41719 if (temp4)
41720 delete arg4;
41721 }
41722 return resultobj;
41723fail:
41724 {
41725 if (temp3)
41726 delete arg3;
41727 }
41728 {
41729 if (temp4)
41730 delete arg4;
41731 }
41732 return NULL;
d55e5bfc
RD
41733}
41734
41735
1bd55598
RD
41736SWIGINTERN PyObject *_wrap_Menu_AppendSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41737 PyObject *resultobj = 0;
41738 wxMenu *arg1 = (wxMenu *) 0 ;
41739 wxMenuItem *result = 0 ;
41740 void *argp1 = 0 ;
41741 int res1 = 0 ;
41742 PyObject *swig_obj[1] ;
41743
41744 if (!args) SWIG_fail;
41745 swig_obj[0] = args;
41746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
41747 if (!SWIG_IsOK(res1)) {
41748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendSeparator" "', expected argument " "1"" of type '" "wxMenu *""'");
41749 }
41750 arg1 = reinterpret_cast< wxMenu * >(argp1);
41751 {
41752 PyThreadState* __tstate = wxPyBeginAllowThreads();
41753 result = (wxMenuItem *)(arg1)->AppendSeparator();
41754 wxPyEndAllowThreads(__tstate);
41755 if (PyErr_Occurred()) SWIG_fail;
41756 }
41757 {
41758 resultobj = wxPyMake_wxObject(result, (bool)0);
41759 }
41760 return resultobj;
41761fail:
41762 return NULL;
41763}
41764
41765
41766SWIGINTERN PyObject *_wrap_Menu_AppendCheckItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41767 PyObject *resultobj = 0;
41768 wxMenu *arg1 = (wxMenu *) 0 ;
41769 int arg2 ;
41770 wxString *arg3 = 0 ;
41771 wxString const &arg4_defvalue = wxPyEmptyString ;
41772 wxString *arg4 = (wxString *) &arg4_defvalue ;
41773 wxMenuItem *result = 0 ;
41774 void *argp1 = 0 ;
41775 int res1 = 0 ;
41776 int val2 ;
41777 int ecode2 = 0 ;
41778 bool temp3 = false ;
41779 bool temp4 = false ;
41780 PyObject * obj0 = 0 ;
41781 PyObject * obj1 = 0 ;
41782 PyObject * obj2 = 0 ;
41783 PyObject * obj3 = 0 ;
41784 char * kwnames[] = {
41785 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
41786 };
41787
41788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
41790 if (!SWIG_IsOK(res1)) {
41791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendCheckItem" "', expected argument " "1"" of type '" "wxMenu *""'");
41792 }
41793 arg1 = reinterpret_cast< wxMenu * >(argp1);
41794 ecode2 = SWIG_AsVal_int(obj1, &val2);
41795 if (!SWIG_IsOK(ecode2)) {
41796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_AppendCheckItem" "', expected argument " "2"" of type '" "int""'");
41797 }
41798 arg2 = static_cast< int >(val2);
41799 {
41800 arg3 = wxString_in_helper(obj2);
41801 if (arg3 == NULL) SWIG_fail;
41802 temp3 = true;
41803 }
41804 if (obj3) {
d55e5bfc 41805 {
1bd55598
RD
41806 arg4 = wxString_in_helper(obj3);
41807 if (arg4 == NULL) SWIG_fail;
41808 temp4 = true;
d55e5bfc 41809 }
1bd55598
RD
41810 }
41811 {
41812 PyThreadState* __tstate = wxPyBeginAllowThreads();
41813 result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
41814 wxPyEndAllowThreads(__tstate);
41815 if (PyErr_Occurred()) SWIG_fail;
41816 }
41817 {
41818 resultobj = wxPyMake_wxObject(result, (bool)0);
41819 }
41820 {
41821 if (temp3)
41822 delete arg3;
41823 }
41824 {
41825 if (temp4)
41826 delete arg4;
41827 }
41828 return resultobj;
41829fail:
41830 {
41831 if (temp3)
41832 delete arg3;
41833 }
41834 {
41835 if (temp4)
41836 delete arg4;
41837 }
41838 return NULL;
41839}
41840
41841
41842SWIGINTERN PyObject *_wrap_Menu_AppendRadioItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41843 PyObject *resultobj = 0;
41844 wxMenu *arg1 = (wxMenu *) 0 ;
41845 int arg2 ;
41846 wxString *arg3 = 0 ;
41847 wxString const &arg4_defvalue = wxPyEmptyString ;
41848 wxString *arg4 = (wxString *) &arg4_defvalue ;
41849 wxMenuItem *result = 0 ;
41850 void *argp1 = 0 ;
41851 int res1 = 0 ;
41852 int val2 ;
41853 int ecode2 = 0 ;
41854 bool temp3 = false ;
41855 bool temp4 = false ;
41856 PyObject * obj0 = 0 ;
41857 PyObject * obj1 = 0 ;
41858 PyObject * obj2 = 0 ;
41859 PyObject * obj3 = 0 ;
41860 char * kwnames[] = {
41861 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
41862 };
41863
41864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
41866 if (!SWIG_IsOK(res1)) {
41867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendRadioItem" "', expected argument " "1"" of type '" "wxMenu *""'");
41868 }
41869 arg1 = reinterpret_cast< wxMenu * >(argp1);
41870 ecode2 = SWIG_AsVal_int(obj1, &val2);
41871 if (!SWIG_IsOK(ecode2)) {
41872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_AppendRadioItem" "', expected argument " "2"" of type '" "int""'");
41873 }
41874 arg2 = static_cast< int >(val2);
41875 {
41876 arg3 = wxString_in_helper(obj2);
41877 if (arg3 == NULL) SWIG_fail;
41878 temp3 = true;
41879 }
41880 if (obj3) {
36ed4f51 41881 {
1bd55598
RD
41882 arg4 = wxString_in_helper(obj3);
41883 if (arg4 == NULL) SWIG_fail;
41884 temp4 = true;
36ed4f51 41885 }
1bd55598
RD
41886 }
41887 {
41888 PyThreadState* __tstate = wxPyBeginAllowThreads();
41889 result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
41890 wxPyEndAllowThreads(__tstate);
41891 if (PyErr_Occurred()) SWIG_fail;
41892 }
41893 {
41894 resultobj = wxPyMake_wxObject(result, (bool)0);
41895 }
41896 {
41897 if (temp3)
41898 delete arg3;
41899 }
41900 {
41901 if (temp4)
41902 delete arg4;
41903 }
41904 return resultobj;
41905fail:
41906 {
41907 if (temp3)
41908 delete arg3;
41909 }
41910 {
41911 if (temp4)
41912 delete arg4;
41913 }
41914 return NULL;
41915}
41916
41917
41918SWIGINTERN PyObject *_wrap_Menu_AppendMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41919 PyObject *resultobj = 0;
41920 wxMenu *arg1 = (wxMenu *) 0 ;
41921 int arg2 ;
41922 wxString *arg3 = 0 ;
41923 wxMenu *arg4 = (wxMenu *) 0 ;
41924 wxString const &arg5_defvalue = wxPyEmptyString ;
41925 wxString *arg5 = (wxString *) &arg5_defvalue ;
41926 wxMenuItem *result = 0 ;
41927 void *argp1 = 0 ;
41928 int res1 = 0 ;
41929 int val2 ;
41930 int ecode2 = 0 ;
41931 bool temp3 = false ;
41932 void *argp4 = 0 ;
41933 int res4 = 0 ;
41934 bool temp5 = false ;
41935 PyObject * obj0 = 0 ;
41936 PyObject * obj1 = 0 ;
41937 PyObject * obj2 = 0 ;
41938 PyObject * obj3 = 0 ;
41939 PyObject * obj4 = 0 ;
41940 char * kwnames[] = {
41941 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
41942 };
41943
41944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
41946 if (!SWIG_IsOK(res1)) {
41947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendMenu" "', expected argument " "1"" of type '" "wxMenu *""'");
41948 }
41949 arg1 = reinterpret_cast< wxMenu * >(argp1);
41950 ecode2 = SWIG_AsVal_int(obj1, &val2);
41951 if (!SWIG_IsOK(ecode2)) {
41952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_AppendMenu" "', expected argument " "2"" of type '" "int""'");
41953 }
41954 arg2 = static_cast< int >(val2);
41955 {
41956 arg3 = wxString_in_helper(obj2);
41957 if (arg3 == NULL) SWIG_fail;
41958 temp3 = true;
41959 }
41960 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxMenu, 0 | 0 );
41961 if (!SWIG_IsOK(res4)) {
41962 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Menu_AppendMenu" "', expected argument " "4"" of type '" "wxMenu *""'");
41963 }
41964 arg4 = reinterpret_cast< wxMenu * >(argp4);
41965 if (obj4) {
d55e5bfc 41966 {
1bd55598
RD
41967 arg5 = wxString_in_helper(obj4);
41968 if (arg5 == NULL) SWIG_fail;
41969 temp5 = true;
d55e5bfc 41970 }
1bd55598
RD
41971 }
41972 {
41973 PyThreadState* __tstate = wxPyBeginAllowThreads();
41974 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
41975 wxPyEndAllowThreads(__tstate);
41976 if (PyErr_Occurred()) SWIG_fail;
41977 }
41978 {
41979 resultobj = wxPyMake_wxObject(result, (bool)0);
41980 }
41981 {
41982 if (temp3)
41983 delete arg3;
41984 }
41985 {
41986 if (temp5)
41987 delete arg5;
41988 }
41989 return resultobj;
41990fail:
41991 {
41992 if (temp3)
41993 delete arg3;
41994 }
41995 {
41996 if (temp5)
41997 delete arg5;
41998 }
41999 return NULL;
42000}
42001
42002
da91cb0f
RD
42003SWIGINTERN PyObject *_wrap_Menu_AppendSubMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42004 PyObject *resultobj = 0;
42005 wxMenu *arg1 = (wxMenu *) 0 ;
42006 wxMenu *arg2 = (wxMenu *) 0 ;
42007 wxString *arg3 = 0 ;
42008 wxString const &arg4_defvalue = wxPyEmptyString ;
42009 wxString *arg4 = (wxString *) &arg4_defvalue ;
42010 wxMenuItem *result = 0 ;
42011 void *argp1 = 0 ;
42012 int res1 = 0 ;
42013 void *argp2 = 0 ;
42014 int res2 = 0 ;
42015 bool temp3 = false ;
42016 bool temp4 = false ;
42017 PyObject * obj0 = 0 ;
42018 PyObject * obj1 = 0 ;
42019 PyObject * obj2 = 0 ;
42020 PyObject * obj3 = 0 ;
42021 char * kwnames[] = {
42022 (char *) "self",(char *) "submenu",(char *) "text",(char *) "help", NULL
42023 };
42024
42025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendSubMenu",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
42026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42027 if (!SWIG_IsOK(res1)) {
42028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendSubMenu" "', expected argument " "1"" of type '" "wxMenu *""'");
42029 }
42030 arg1 = reinterpret_cast< wxMenu * >(argp1);
42031 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
42032 if (!SWIG_IsOK(res2)) {
42033 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_AppendSubMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
42034 }
42035 arg2 = reinterpret_cast< wxMenu * >(argp2);
42036 {
42037 arg3 = wxString_in_helper(obj2);
42038 if (arg3 == NULL) SWIG_fail;
42039 temp3 = true;
42040 }
42041 if (obj3) {
42042 {
42043 arg4 = wxString_in_helper(obj3);
42044 if (arg4 == NULL) SWIG_fail;
42045 temp4 = true;
42046 }
42047 }
42048 {
42049 PyThreadState* __tstate = wxPyBeginAllowThreads();
42050 result = (wxMenuItem *)(arg1)->AppendSubMenu(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
42051 wxPyEndAllowThreads(__tstate);
42052 if (PyErr_Occurred()) SWIG_fail;
42053 }
42054 {
42055 resultobj = wxPyMake_wxObject(result, (bool)0);
42056 }
42057 {
42058 if (temp3)
42059 delete arg3;
42060 }
42061 {
42062 if (temp4)
42063 delete arg4;
42064 }
42065 return resultobj;
42066fail:
42067 {
42068 if (temp3)
42069 delete arg3;
42070 }
42071 {
42072 if (temp4)
42073 delete arg4;
42074 }
42075 return NULL;
42076}
42077
42078
1bd55598
RD
42079SWIGINTERN PyObject *_wrap_Menu_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42080 PyObject *resultobj = 0;
42081 wxMenu *arg1 = (wxMenu *) 0 ;
42082 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
42083 wxMenuItem *result = 0 ;
42084 void *argp1 = 0 ;
42085 int res1 = 0 ;
42086 int res2 = 0 ;
42087 PyObject * obj0 = 0 ;
42088 PyObject * obj1 = 0 ;
42089 char * kwnames[] = {
42090 (char *) "self",(char *) "item", NULL
42091 };
42092
42093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) SWIG_fail;
42094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42095 if (!SWIG_IsOK(res1)) {
42096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendItem" "', expected argument " "1"" of type '" "wxMenu *""'");
42097 }
42098 arg1 = reinterpret_cast< wxMenu * >(argp1);
42099 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMenuItem, SWIG_POINTER_DISOWN | 0 );
42100 if (!SWIG_IsOK(res2)) {
42101 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_AppendItem" "', expected argument " "2"" of type '" "wxMenuItem *""'");
42102 }
42103 {
42104 PyThreadState* __tstate = wxPyBeginAllowThreads();
42105 result = (wxMenuItem *)(arg1)->Append(arg2);
42106 wxPyEndAllowThreads(__tstate);
42107 if (PyErr_Occurred()) SWIG_fail;
42108 }
42109 {
42110 resultobj = wxPyMake_wxObject(result, (bool)0);
42111 }
42112 return resultobj;
42113fail:
42114 return NULL;
42115}
42116
42117
42118SWIGINTERN PyObject *_wrap_Menu_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42119 PyObject *resultobj = 0;
42120 wxMenu *arg1 = (wxMenu *) 0 ;
42121 size_t arg2 ;
42122 wxMenuItem *arg3 = (wxMenuItem *) 0 ;
42123 wxMenuItem *result = 0 ;
42124 void *argp1 = 0 ;
42125 int res1 = 0 ;
42126 size_t val2 ;
42127 int ecode2 = 0 ;
42128 int res3 = 0 ;
42129 PyObject * obj0 = 0 ;
42130 PyObject * obj1 = 0 ;
42131 PyObject * obj2 = 0 ;
42132 char * kwnames[] = {
42133 (char *) "self",(char *) "pos",(char *) "item", NULL
42134 };
42135
42136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42138 if (!SWIG_IsOK(res1)) {
42139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_InsertItem" "', expected argument " "1"" of type '" "wxMenu *""'");
42140 }
42141 arg1 = reinterpret_cast< wxMenu * >(argp1);
42142 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
42143 if (!SWIG_IsOK(ecode2)) {
42144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_InsertItem" "', expected argument " "2"" of type '" "size_t""'");
42145 }
42146 arg2 = static_cast< size_t >(val2);
42147 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxMenuItem, SWIG_POINTER_DISOWN | 0 );
42148 if (!SWIG_IsOK(res3)) {
42149 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Menu_InsertItem" "', expected argument " "3"" of type '" "wxMenuItem *""'");
42150 }
42151 {
42152 PyThreadState* __tstate = wxPyBeginAllowThreads();
42153 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3);
42154 wxPyEndAllowThreads(__tstate);
42155 if (PyErr_Occurred()) SWIG_fail;
42156 }
42157 {
42158 resultobj = wxPyMake_wxObject(result, (bool)0);
42159 }
42160 return resultobj;
42161fail:
42162 return NULL;
42163}
42164
42165
42166SWIGINTERN PyObject *_wrap_Menu_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42167 PyObject *resultobj = 0;
42168 wxMenu *arg1 = (wxMenu *) 0 ;
42169 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
42170 wxMenuItem *result = 0 ;
42171 void *argp1 = 0 ;
42172 int res1 = 0 ;
42173 int res2 = 0 ;
42174 PyObject * obj0 = 0 ;
42175 PyObject * obj1 = 0 ;
42176 char * kwnames[] = {
42177 (char *) "self",(char *) "item", NULL
42178 };
42179
42180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) SWIG_fail;
42181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42182 if (!SWIG_IsOK(res1)) {
42183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_PrependItem" "', expected argument " "1"" of type '" "wxMenu *""'");
42184 }
42185 arg1 = reinterpret_cast< wxMenu * >(argp1);
42186 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMenuItem, SWIG_POINTER_DISOWN | 0 );
42187 if (!SWIG_IsOK(res2)) {
42188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_PrependItem" "', expected argument " "2"" of type '" "wxMenuItem *""'");
42189 }
42190 {
42191 PyThreadState* __tstate = wxPyBeginAllowThreads();
42192 result = (wxMenuItem *)(arg1)->Prepend(arg2);
42193 wxPyEndAllowThreads(__tstate);
42194 if (PyErr_Occurred()) SWIG_fail;
42195 }
42196 {
42197 resultobj = wxPyMake_wxObject(result, (bool)0);
42198 }
42199 return resultobj;
42200fail:
42201 return NULL;
d55e5bfc
RD
42202}
42203
42204
1bd55598
RD
42205SWIGINTERN PyObject *_wrap_Menu_Break(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42206 PyObject *resultobj = 0;
42207 wxMenu *arg1 = (wxMenu *) 0 ;
42208 void *argp1 = 0 ;
42209 int res1 = 0 ;
42210 PyObject *swig_obj[1] ;
42211
42212 if (!args) SWIG_fail;
42213 swig_obj[0] = args;
42214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42215 if (!SWIG_IsOK(res1)) {
42216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Break" "', expected argument " "1"" of type '" "wxMenu *""'");
42217 }
42218 arg1 = reinterpret_cast< wxMenu * >(argp1);
42219 {
42220 PyThreadState* __tstate = wxPyBeginAllowThreads();
42221 (arg1)->Break();
42222 wxPyEndAllowThreads(__tstate);
42223 if (PyErr_Occurred()) SWIG_fail;
42224 }
42225 resultobj = SWIG_Py_Void();
42226 return resultobj;
42227fail:
42228 return NULL;
42229}
42230
42231
42232SWIGINTERN PyObject *_wrap_Menu_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42233 PyObject *resultobj = 0;
42234 wxMenu *arg1 = (wxMenu *) 0 ;
42235 size_t arg2 ;
42236 int arg3 ;
ac5d357a
RD
42237 wxString const &arg4_defvalue = wxPyEmptyString ;
42238 wxString *arg4 = (wxString *) &arg4_defvalue ;
1bd55598
RD
42239 wxString const &arg5_defvalue = wxPyEmptyString ;
42240 wxString *arg5 = (wxString *) &arg5_defvalue ;
42241 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
42242 wxMenuItem *result = 0 ;
42243 void *argp1 = 0 ;
42244 int res1 = 0 ;
42245 size_t val2 ;
42246 int ecode2 = 0 ;
42247 int val3 ;
42248 int ecode3 = 0 ;
42249 bool temp4 = false ;
42250 bool temp5 = false ;
42251 int val6 ;
42252 int ecode6 = 0 ;
42253 PyObject * obj0 = 0 ;
42254 PyObject * obj1 = 0 ;
42255 PyObject * obj2 = 0 ;
42256 PyObject * obj3 = 0 ;
42257 PyObject * obj4 = 0 ;
42258 PyObject * obj5 = 0 ;
42259 char * kwnames[] = {
42260 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
42261 };
42262
ac5d357a 42263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
1bd55598
RD
42264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42265 if (!SWIG_IsOK(res1)) {
42266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Insert" "', expected argument " "1"" of type '" "wxMenu *""'");
42267 }
42268 arg1 = reinterpret_cast< wxMenu * >(argp1);
42269 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
42270 if (!SWIG_IsOK(ecode2)) {
42271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Insert" "', expected argument " "2"" of type '" "size_t""'");
42272 }
42273 arg2 = static_cast< size_t >(val2);
42274 ecode3 = SWIG_AsVal_int(obj2, &val3);
42275 if (!SWIG_IsOK(ecode3)) {
42276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_Insert" "', expected argument " "3"" of type '" "int""'");
42277 }
42278 arg3 = static_cast< int >(val3);
ac5d357a
RD
42279 if (obj3) {
42280 {
42281 arg4 = wxString_in_helper(obj3);
42282 if (arg4 == NULL) SWIG_fail;
42283 temp4 = true;
42284 }
1bd55598
RD
42285 }
42286 if (obj4) {
d55e5bfc 42287 {
1bd55598
RD
42288 arg5 = wxString_in_helper(obj4);
42289 if (arg5 == NULL) SWIG_fail;
42290 temp5 = true;
d55e5bfc 42291 }
1bd55598
RD
42292 }
42293 if (obj5) {
42294 ecode6 = SWIG_AsVal_int(obj5, &val6);
42295 if (!SWIG_IsOK(ecode6)) {
42296 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Menu_Insert" "', expected argument " "6"" of type '" "wxItemKind""'");
42297 }
42298 arg6 = static_cast< wxItemKind >(val6);
42299 }
42300 {
42301 PyThreadState* __tstate = wxPyBeginAllowThreads();
42302 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6);
42303 wxPyEndAllowThreads(__tstate);
42304 if (PyErr_Occurred()) SWIG_fail;
42305 }
42306 {
42307 resultobj = wxPyMake_wxObject(result, (bool)0);
42308 }
42309 {
42310 if (temp4)
42311 delete arg4;
42312 }
42313 {
42314 if (temp5)
42315 delete arg5;
42316 }
42317 return resultobj;
42318fail:
42319 {
42320 if (temp4)
42321 delete arg4;
42322 }
42323 {
42324 if (temp5)
42325 delete arg5;
42326 }
42327 return NULL;
42328}
42329
42330
42331SWIGINTERN PyObject *_wrap_Menu_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42332 PyObject *resultobj = 0;
42333 wxMenu *arg1 = (wxMenu *) 0 ;
42334 size_t arg2 ;
42335 wxMenuItem *result = 0 ;
42336 void *argp1 = 0 ;
42337 int res1 = 0 ;
42338 size_t val2 ;
42339 int ecode2 = 0 ;
42340 PyObject * obj0 = 0 ;
42341 PyObject * obj1 = 0 ;
42342 char * kwnames[] = {
42343 (char *) "self",(char *) "pos", NULL
42344 };
42345
42346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
42347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42348 if (!SWIG_IsOK(res1)) {
42349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_InsertSeparator" "', expected argument " "1"" of type '" "wxMenu *""'");
42350 }
42351 arg1 = reinterpret_cast< wxMenu * >(argp1);
42352 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
42353 if (!SWIG_IsOK(ecode2)) {
42354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
42355 }
42356 arg2 = static_cast< size_t >(val2);
42357 {
42358 PyThreadState* __tstate = wxPyBeginAllowThreads();
42359 result = (wxMenuItem *)(arg1)->InsertSeparator(arg2);
42360 wxPyEndAllowThreads(__tstate);
42361 if (PyErr_Occurred()) SWIG_fail;
42362 }
42363 {
42364 resultobj = wxPyMake_wxObject(result, (bool)0);
42365 }
42366 return resultobj;
42367fail:
42368 return NULL;
42369}
42370
42371
42372SWIGINTERN PyObject *_wrap_Menu_InsertCheckItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42373 PyObject *resultobj = 0;
42374 wxMenu *arg1 = (wxMenu *) 0 ;
42375 size_t arg2 ;
42376 int arg3 ;
42377 wxString *arg4 = 0 ;
42378 wxString const &arg5_defvalue = wxPyEmptyString ;
42379 wxString *arg5 = (wxString *) &arg5_defvalue ;
42380 wxMenuItem *result = 0 ;
42381 void *argp1 = 0 ;
42382 int res1 = 0 ;
42383 size_t val2 ;
42384 int ecode2 = 0 ;
42385 int val3 ;
42386 int ecode3 = 0 ;
42387 bool temp4 = false ;
42388 bool temp5 = false ;
42389 PyObject * obj0 = 0 ;
42390 PyObject * obj1 = 0 ;
42391 PyObject * obj2 = 0 ;
42392 PyObject * obj3 = 0 ;
42393 PyObject * obj4 = 0 ;
42394 char * kwnames[] = {
42395 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
42396 };
42397
42398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
42399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42400 if (!SWIG_IsOK(res1)) {
42401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_InsertCheckItem" "', expected argument " "1"" of type '" "wxMenu *""'");
42402 }
42403 arg1 = reinterpret_cast< wxMenu * >(argp1);
42404 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
42405 if (!SWIG_IsOK(ecode2)) {
42406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_InsertCheckItem" "', expected argument " "2"" of type '" "size_t""'");
42407 }
42408 arg2 = static_cast< size_t >(val2);
42409 ecode3 = SWIG_AsVal_int(obj2, &val3);
42410 if (!SWIG_IsOK(ecode3)) {
42411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_InsertCheckItem" "', expected argument " "3"" of type '" "int""'");
42412 }
42413 arg3 = static_cast< int >(val3);
42414 {
42415 arg4 = wxString_in_helper(obj3);
42416 if (arg4 == NULL) SWIG_fail;
42417 temp4 = true;
42418 }
42419 if (obj4) {
d55e5bfc 42420 {
1bd55598
RD
42421 arg5 = wxString_in_helper(obj4);
42422 if (arg5 == NULL) SWIG_fail;
42423 temp5 = true;
36ed4f51 42424 }
1bd55598
RD
42425 }
42426 {
42427 PyThreadState* __tstate = wxPyBeginAllowThreads();
42428 result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
42429 wxPyEndAllowThreads(__tstate);
42430 if (PyErr_Occurred()) SWIG_fail;
42431 }
42432 {
42433 resultobj = wxPyMake_wxObject(result, (bool)0);
42434 }
42435 {
42436 if (temp4)
42437 delete arg4;
42438 }
42439 {
42440 if (temp5)
42441 delete arg5;
42442 }
42443 return resultobj;
42444fail:
42445 {
42446 if (temp4)
42447 delete arg4;
42448 }
42449 {
42450 if (temp5)
42451 delete arg5;
42452 }
42453 return NULL;
42454}
42455
42456
42457SWIGINTERN PyObject *_wrap_Menu_InsertRadioItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42458 PyObject *resultobj = 0;
42459 wxMenu *arg1 = (wxMenu *) 0 ;
42460 size_t arg2 ;
42461 int arg3 ;
42462 wxString *arg4 = 0 ;
42463 wxString const &arg5_defvalue = wxPyEmptyString ;
42464 wxString *arg5 = (wxString *) &arg5_defvalue ;
42465 wxMenuItem *result = 0 ;
42466 void *argp1 = 0 ;
42467 int res1 = 0 ;
42468 size_t val2 ;
42469 int ecode2 = 0 ;
42470 int val3 ;
42471 int ecode3 = 0 ;
42472 bool temp4 = false ;
42473 bool temp5 = false ;
42474 PyObject * obj0 = 0 ;
42475 PyObject * obj1 = 0 ;
42476 PyObject * obj2 = 0 ;
42477 PyObject * obj3 = 0 ;
42478 PyObject * obj4 = 0 ;
42479 char * kwnames[] = {
42480 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
42481 };
42482
42483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
42484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42485 if (!SWIG_IsOK(res1)) {
42486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_InsertRadioItem" "', expected argument " "1"" of type '" "wxMenu *""'");
42487 }
42488 arg1 = reinterpret_cast< wxMenu * >(argp1);
42489 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
42490 if (!SWIG_IsOK(ecode2)) {
42491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_InsertRadioItem" "', expected argument " "2"" of type '" "size_t""'");
42492 }
42493 arg2 = static_cast< size_t >(val2);
42494 ecode3 = SWIG_AsVal_int(obj2, &val3);
42495 if (!SWIG_IsOK(ecode3)) {
42496 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_InsertRadioItem" "', expected argument " "3"" of type '" "int""'");
42497 }
42498 arg3 = static_cast< int >(val3);
42499 {
42500 arg4 = wxString_in_helper(obj3);
42501 if (arg4 == NULL) SWIG_fail;
42502 temp4 = true;
42503 }
42504 if (obj4) {
d55e5bfc 42505 {
1bd55598
RD
42506 arg5 = wxString_in_helper(obj4);
42507 if (arg5 == NULL) SWIG_fail;
42508 temp5 = true;
d55e5bfc 42509 }
1bd55598
RD
42510 }
42511 {
42512 PyThreadState* __tstate = wxPyBeginAllowThreads();
42513 result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
42514 wxPyEndAllowThreads(__tstate);
42515 if (PyErr_Occurred()) SWIG_fail;
42516 }
42517 {
42518 resultobj = wxPyMake_wxObject(result, (bool)0);
42519 }
42520 {
42521 if (temp4)
42522 delete arg4;
42523 }
42524 {
42525 if (temp5)
42526 delete arg5;
42527 }
42528 return resultobj;
42529fail:
42530 {
42531 if (temp4)
42532 delete arg4;
42533 }
42534 {
42535 if (temp5)
42536 delete arg5;
42537 }
42538 return NULL;
42539}
42540
42541
42542SWIGINTERN PyObject *_wrap_Menu_InsertMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42543 PyObject *resultobj = 0;
42544 wxMenu *arg1 = (wxMenu *) 0 ;
42545 size_t arg2 ;
42546 int arg3 ;
42547 wxString *arg4 = 0 ;
42548 wxMenu *arg5 = (wxMenu *) 0 ;
42549 wxString const &arg6_defvalue = wxPyEmptyString ;
42550 wxString *arg6 = (wxString *) &arg6_defvalue ;
42551 wxMenuItem *result = 0 ;
42552 void *argp1 = 0 ;
42553 int res1 = 0 ;
42554 size_t val2 ;
42555 int ecode2 = 0 ;
42556 int val3 ;
42557 int ecode3 = 0 ;
42558 bool temp4 = false ;
42559 void *argp5 = 0 ;
42560 int res5 = 0 ;
42561 bool temp6 = false ;
42562 PyObject * obj0 = 0 ;
42563 PyObject * obj1 = 0 ;
42564 PyObject * obj2 = 0 ;
42565 PyObject * obj3 = 0 ;
42566 PyObject * obj4 = 0 ;
42567 PyObject * obj5 = 0 ;
42568 char * kwnames[] = {
42569 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
42570 };
42571
42572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
42573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42574 if (!SWIG_IsOK(res1)) {
42575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_InsertMenu" "', expected argument " "1"" of type '" "wxMenu *""'");
42576 }
42577 arg1 = reinterpret_cast< wxMenu * >(argp1);
42578 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
42579 if (!SWIG_IsOK(ecode2)) {
42580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_InsertMenu" "', expected argument " "2"" of type '" "size_t""'");
42581 }
42582 arg2 = static_cast< size_t >(val2);
42583 ecode3 = SWIG_AsVal_int(obj2, &val3);
42584 if (!SWIG_IsOK(ecode3)) {
42585 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_InsertMenu" "', expected argument " "3"" of type '" "int""'");
42586 }
42587 arg3 = static_cast< int >(val3);
42588 {
42589 arg4 = wxString_in_helper(obj3);
42590 if (arg4 == NULL) SWIG_fail;
42591 temp4 = true;
42592 }
42593 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxMenu, 0 | 0 );
42594 if (!SWIG_IsOK(res5)) {
42595 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Menu_InsertMenu" "', expected argument " "5"" of type '" "wxMenu *""'");
42596 }
42597 arg5 = reinterpret_cast< wxMenu * >(argp5);
42598 if (obj5) {
d55e5bfc 42599 {
1bd55598
RD
42600 arg6 = wxString_in_helper(obj5);
42601 if (arg6 == NULL) SWIG_fail;
42602 temp6 = true;
d55e5bfc 42603 }
1bd55598
RD
42604 }
42605 {
42606 PyThreadState* __tstate = wxPyBeginAllowThreads();
42607 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6);
42608 wxPyEndAllowThreads(__tstate);
42609 if (PyErr_Occurred()) SWIG_fail;
42610 }
42611 {
42612 resultobj = wxPyMake_wxObject(result, (bool)0);
42613 }
42614 {
42615 if (temp4)
42616 delete arg4;
42617 }
42618 {
42619 if (temp6)
42620 delete arg6;
42621 }
42622 return resultobj;
42623fail:
42624 {
42625 if (temp4)
42626 delete arg4;
42627 }
42628 {
42629 if (temp6)
42630 delete arg6;
42631 }
42632 return NULL;
42633}
42634
42635
42636SWIGINTERN PyObject *_wrap_Menu_Prepend(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42637 PyObject *resultobj = 0;
42638 wxMenu *arg1 = (wxMenu *) 0 ;
42639 int arg2 ;
ac5d357a
RD
42640 wxString const &arg3_defvalue = wxPyEmptyString ;
42641 wxString *arg3 = (wxString *) &arg3_defvalue ;
1bd55598
RD
42642 wxString const &arg4_defvalue = wxPyEmptyString ;
42643 wxString *arg4 = (wxString *) &arg4_defvalue ;
42644 wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ;
42645 wxMenuItem *result = 0 ;
42646 void *argp1 = 0 ;
42647 int res1 = 0 ;
42648 int val2 ;
42649 int ecode2 = 0 ;
42650 bool temp3 = false ;
42651 bool temp4 = false ;
42652 int val5 ;
42653 int ecode5 = 0 ;
42654 PyObject * obj0 = 0 ;
42655 PyObject * obj1 = 0 ;
42656 PyObject * obj2 = 0 ;
42657 PyObject * obj3 = 0 ;
42658 PyObject * obj4 = 0 ;
42659 char * kwnames[] = {
42660 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
42661 };
42662
ac5d357a 42663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
42664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42665 if (!SWIG_IsOK(res1)) {
42666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Prepend" "', expected argument " "1"" of type '" "wxMenu *""'");
42667 }
42668 arg1 = reinterpret_cast< wxMenu * >(argp1);
42669 ecode2 = SWIG_AsVal_int(obj1, &val2);
42670 if (!SWIG_IsOK(ecode2)) {
42671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Prepend" "', expected argument " "2"" of type '" "int""'");
42672 }
42673 arg2 = static_cast< int >(val2);
ac5d357a
RD
42674 if (obj2) {
42675 {
42676 arg3 = wxString_in_helper(obj2);
42677 if (arg3 == NULL) SWIG_fail;
42678 temp3 = true;
42679 }
1bd55598
RD
42680 }
42681 if (obj3) {
36ed4f51 42682 {
1bd55598
RD
42683 arg4 = wxString_in_helper(obj3);
42684 if (arg4 == NULL) SWIG_fail;
42685 temp4 = true;
36ed4f51 42686 }
1bd55598
RD
42687 }
42688 if (obj4) {
42689 ecode5 = SWIG_AsVal_int(obj4, &val5);
42690 if (!SWIG_IsOK(ecode5)) {
42691 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Menu_Prepend" "', expected argument " "5"" of type '" "wxItemKind""'");
42692 }
42693 arg5 = static_cast< wxItemKind >(val5);
42694 }
42695 {
42696 PyThreadState* __tstate = wxPyBeginAllowThreads();
42697 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
42698 wxPyEndAllowThreads(__tstate);
42699 if (PyErr_Occurred()) SWIG_fail;
42700 }
42701 {
42702 resultobj = wxPyMake_wxObject(result, (bool)0);
42703 }
42704 {
42705 if (temp3)
42706 delete arg3;
42707 }
42708 {
42709 if (temp4)
42710 delete arg4;
42711 }
42712 return resultobj;
42713fail:
42714 {
42715 if (temp3)
42716 delete arg3;
42717 }
42718 {
42719 if (temp4)
42720 delete arg4;
42721 }
42722 return NULL;
d55e5bfc
RD
42723}
42724
42725
1bd55598
RD
42726SWIGINTERN PyObject *_wrap_Menu_PrependSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42727 PyObject *resultobj = 0;
42728 wxMenu *arg1 = (wxMenu *) 0 ;
42729 wxMenuItem *result = 0 ;
42730 void *argp1 = 0 ;
42731 int res1 = 0 ;
42732 PyObject *swig_obj[1] ;
42733
42734 if (!args) SWIG_fail;
42735 swig_obj[0] = args;
42736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42737 if (!SWIG_IsOK(res1)) {
42738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_PrependSeparator" "', expected argument " "1"" of type '" "wxMenu *""'");
42739 }
42740 arg1 = reinterpret_cast< wxMenu * >(argp1);
42741 {
42742 PyThreadState* __tstate = wxPyBeginAllowThreads();
42743 result = (wxMenuItem *)(arg1)->PrependSeparator();
42744 wxPyEndAllowThreads(__tstate);
42745 if (PyErr_Occurred()) SWIG_fail;
42746 }
42747 {
42748 resultobj = wxPyMake_wxObject(result, (bool)0);
42749 }
42750 return resultobj;
42751fail:
42752 return NULL;
42753}
42754
42755
42756SWIGINTERN PyObject *_wrap_Menu_PrependCheckItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42757 PyObject *resultobj = 0;
42758 wxMenu *arg1 = (wxMenu *) 0 ;
42759 int arg2 ;
42760 wxString *arg3 = 0 ;
42761 wxString const &arg4_defvalue = wxPyEmptyString ;
42762 wxString *arg4 = (wxString *) &arg4_defvalue ;
42763 wxMenuItem *result = 0 ;
42764 void *argp1 = 0 ;
42765 int res1 = 0 ;
42766 int val2 ;
42767 int ecode2 = 0 ;
42768 bool temp3 = false ;
42769 bool temp4 = false ;
42770 PyObject * obj0 = 0 ;
42771 PyObject * obj1 = 0 ;
42772 PyObject * obj2 = 0 ;
42773 PyObject * obj3 = 0 ;
42774 char * kwnames[] = {
42775 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
42776 };
42777
42778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
42779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42780 if (!SWIG_IsOK(res1)) {
42781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_PrependCheckItem" "', expected argument " "1"" of type '" "wxMenu *""'");
42782 }
42783 arg1 = reinterpret_cast< wxMenu * >(argp1);
42784 ecode2 = SWIG_AsVal_int(obj1, &val2);
42785 if (!SWIG_IsOK(ecode2)) {
42786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_PrependCheckItem" "', expected argument " "2"" of type '" "int""'");
42787 }
42788 arg2 = static_cast< int >(val2);
42789 {
42790 arg3 = wxString_in_helper(obj2);
42791 if (arg3 == NULL) SWIG_fail;
42792 temp3 = true;
42793 }
42794 if (obj3) {
d55e5bfc 42795 {
1bd55598
RD
42796 arg4 = wxString_in_helper(obj3);
42797 if (arg4 == NULL) SWIG_fail;
42798 temp4 = true;
d55e5bfc 42799 }
1bd55598
RD
42800 }
42801 {
42802 PyThreadState* __tstate = wxPyBeginAllowThreads();
42803 result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
42804 wxPyEndAllowThreads(__tstate);
42805 if (PyErr_Occurred()) SWIG_fail;
42806 }
42807 {
42808 resultobj = wxPyMake_wxObject(result, (bool)0);
42809 }
42810 {
42811 if (temp3)
42812 delete arg3;
42813 }
42814 {
42815 if (temp4)
42816 delete arg4;
42817 }
42818 return resultobj;
42819fail:
42820 {
42821 if (temp3)
42822 delete arg3;
42823 }
42824 {
42825 if (temp4)
42826 delete arg4;
42827 }
42828 return NULL;
42829}
42830
42831
42832SWIGINTERN PyObject *_wrap_Menu_PrependRadioItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42833 PyObject *resultobj = 0;
42834 wxMenu *arg1 = (wxMenu *) 0 ;
42835 int arg2 ;
42836 wxString *arg3 = 0 ;
42837 wxString const &arg4_defvalue = wxPyEmptyString ;
42838 wxString *arg4 = (wxString *) &arg4_defvalue ;
42839 wxMenuItem *result = 0 ;
42840 void *argp1 = 0 ;
42841 int res1 = 0 ;
42842 int val2 ;
42843 int ecode2 = 0 ;
42844 bool temp3 = false ;
42845 bool temp4 = false ;
42846 PyObject * obj0 = 0 ;
42847 PyObject * obj1 = 0 ;
42848 PyObject * obj2 = 0 ;
42849 PyObject * obj3 = 0 ;
42850 char * kwnames[] = {
42851 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
42852 };
42853
42854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
42855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42856 if (!SWIG_IsOK(res1)) {
42857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_PrependRadioItem" "', expected argument " "1"" of type '" "wxMenu *""'");
42858 }
42859 arg1 = reinterpret_cast< wxMenu * >(argp1);
42860 ecode2 = SWIG_AsVal_int(obj1, &val2);
42861 if (!SWIG_IsOK(ecode2)) {
42862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_PrependRadioItem" "', expected argument " "2"" of type '" "int""'");
42863 }
42864 arg2 = static_cast< int >(val2);
42865 {
42866 arg3 = wxString_in_helper(obj2);
42867 if (arg3 == NULL) SWIG_fail;
42868 temp3 = true;
42869 }
42870 if (obj3) {
d55e5bfc 42871 {
1bd55598
RD
42872 arg4 = wxString_in_helper(obj3);
42873 if (arg4 == NULL) SWIG_fail;
42874 temp4 = true;
d55e5bfc 42875 }
1bd55598
RD
42876 }
42877 {
42878 PyThreadState* __tstate = wxPyBeginAllowThreads();
42879 result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
42880 wxPyEndAllowThreads(__tstate);
42881 if (PyErr_Occurred()) SWIG_fail;
42882 }
42883 {
42884 resultobj = wxPyMake_wxObject(result, (bool)0);
42885 }
42886 {
42887 if (temp3)
42888 delete arg3;
42889 }
42890 {
42891 if (temp4)
42892 delete arg4;
42893 }
42894 return resultobj;
42895fail:
42896 {
42897 if (temp3)
42898 delete arg3;
42899 }
42900 {
42901 if (temp4)
42902 delete arg4;
42903 }
42904 return NULL;
42905}
42906
42907
42908SWIGINTERN PyObject *_wrap_Menu_PrependMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42909 PyObject *resultobj = 0;
42910 wxMenu *arg1 = (wxMenu *) 0 ;
42911 int arg2 ;
42912 wxString *arg3 = 0 ;
42913 wxMenu *arg4 = (wxMenu *) 0 ;
42914 wxString const &arg5_defvalue = wxPyEmptyString ;
42915 wxString *arg5 = (wxString *) &arg5_defvalue ;
42916 wxMenuItem *result = 0 ;
42917 void *argp1 = 0 ;
42918 int res1 = 0 ;
42919 int val2 ;
42920 int ecode2 = 0 ;
42921 bool temp3 = false ;
42922 void *argp4 = 0 ;
42923 int res4 = 0 ;
42924 bool temp5 = false ;
42925 PyObject * obj0 = 0 ;
42926 PyObject * obj1 = 0 ;
42927 PyObject * obj2 = 0 ;
42928 PyObject * obj3 = 0 ;
42929 PyObject * obj4 = 0 ;
42930 char * kwnames[] = {
42931 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
42932 };
42933
42934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
42935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42936 if (!SWIG_IsOK(res1)) {
42937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_PrependMenu" "', expected argument " "1"" of type '" "wxMenu *""'");
42938 }
42939 arg1 = reinterpret_cast< wxMenu * >(argp1);
42940 ecode2 = SWIG_AsVal_int(obj1, &val2);
42941 if (!SWIG_IsOK(ecode2)) {
42942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_PrependMenu" "', expected argument " "2"" of type '" "int""'");
42943 }
42944 arg2 = static_cast< int >(val2);
42945 {
42946 arg3 = wxString_in_helper(obj2);
42947 if (arg3 == NULL) SWIG_fail;
42948 temp3 = true;
42949 }
42950 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxMenu, 0 | 0 );
42951 if (!SWIG_IsOK(res4)) {
42952 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Menu_PrependMenu" "', expected argument " "4"" of type '" "wxMenu *""'");
42953 }
42954 arg4 = reinterpret_cast< wxMenu * >(argp4);
42955 if (obj4) {
36ed4f51 42956 {
1bd55598
RD
42957 arg5 = wxString_in_helper(obj4);
42958 if (arg5 == NULL) SWIG_fail;
42959 temp5 = true;
36ed4f51 42960 }
1bd55598
RD
42961 }
42962 {
42963 PyThreadState* __tstate = wxPyBeginAllowThreads();
42964 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
42965 wxPyEndAllowThreads(__tstate);
42966 if (PyErr_Occurred()) SWIG_fail;
42967 }
42968 {
42969 resultobj = wxPyMake_wxObject(result, (bool)0);
42970 }
42971 {
42972 if (temp3)
42973 delete arg3;
42974 }
42975 {
42976 if (temp5)
42977 delete arg5;
42978 }
42979 return resultobj;
42980fail:
42981 {
42982 if (temp3)
42983 delete arg3;
42984 }
42985 {
42986 if (temp5)
42987 delete arg5;
42988 }
42989 return NULL;
42990}
42991
42992
42993SWIGINTERN PyObject *_wrap_Menu_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42994 PyObject *resultobj = 0;
42995 wxMenu *arg1 = (wxMenu *) 0 ;
42996 int arg2 ;
42997 wxMenuItem *result = 0 ;
42998 void *argp1 = 0 ;
42999 int res1 = 0 ;
43000 int val2 ;
43001 int ecode2 = 0 ;
43002 PyObject * obj0 = 0 ;
43003 PyObject * obj1 = 0 ;
43004 char * kwnames[] = {
43005 (char *) "self",(char *) "id", NULL
43006 };
43007
43008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
43009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43010 if (!SWIG_IsOK(res1)) {
43011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Remove" "', expected argument " "1"" of type '" "wxMenu *""'");
43012 }
43013 arg1 = reinterpret_cast< wxMenu * >(argp1);
43014 ecode2 = SWIG_AsVal_int(obj1, &val2);
43015 if (!SWIG_IsOK(ecode2)) {
43016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Remove" "', expected argument " "2"" of type '" "int""'");
43017 }
43018 arg2 = static_cast< int >(val2);
43019 {
43020 PyThreadState* __tstate = wxPyBeginAllowThreads();
43021 result = (wxMenuItem *)(arg1)->Remove(arg2);
43022 wxPyEndAllowThreads(__tstate);
43023 if (PyErr_Occurred()) SWIG_fail;
43024 }
43025 {
43026 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
43027 }
43028 return resultobj;
43029fail:
43030 return NULL;
43031}
43032
43033
43034SWIGINTERN PyObject *_wrap_Menu_RemoveItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43035 PyObject *resultobj = 0;
43036 wxMenu *arg1 = (wxMenu *) 0 ;
43037 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
43038 wxMenuItem *result = 0 ;
43039 void *argp1 = 0 ;
43040 int res1 = 0 ;
43041 void *argp2 = 0 ;
43042 int res2 = 0 ;
43043 PyObject * obj0 = 0 ;
43044 PyObject * obj1 = 0 ;
43045 char * kwnames[] = {
43046 (char *) "self",(char *) "item", NULL
43047 };
43048
43049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) SWIG_fail;
43050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43051 if (!SWIG_IsOK(res1)) {
43052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_RemoveItem" "', expected argument " "1"" of type '" "wxMenu *""'");
43053 }
43054 arg1 = reinterpret_cast< wxMenu * >(argp1);
43055 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuItem, 0 | 0 );
43056 if (!SWIG_IsOK(res2)) {
43057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_RemoveItem" "', expected argument " "2"" of type '" "wxMenuItem *""'");
43058 }
43059 arg2 = reinterpret_cast< wxMenuItem * >(argp2);
43060 {
43061 PyThreadState* __tstate = wxPyBeginAllowThreads();
43062 result = (wxMenuItem *)(arg1)->Remove(arg2);
43063 wxPyEndAllowThreads(__tstate);
43064 if (PyErr_Occurred()) SWIG_fail;
43065 }
43066 {
43067 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
43068 }
43069 return resultobj;
43070fail:
43071 return NULL;
43072}
43073
43074
43075SWIGINTERN PyObject *_wrap_Menu_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43076 PyObject *resultobj = 0;
43077 wxMenu *arg1 = (wxMenu *) 0 ;
43078 int arg2 ;
43079 bool result;
43080 void *argp1 = 0 ;
43081 int res1 = 0 ;
43082 int val2 ;
43083 int ecode2 = 0 ;
43084 PyObject * obj0 = 0 ;
43085 PyObject * obj1 = 0 ;
43086 char * kwnames[] = {
43087 (char *) "self",(char *) "id", NULL
43088 };
43089
43090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
43091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43092 if (!SWIG_IsOK(res1)) {
43093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Delete" "', expected argument " "1"" of type '" "wxMenu *""'");
43094 }
43095 arg1 = reinterpret_cast< wxMenu * >(argp1);
43096 ecode2 = SWIG_AsVal_int(obj1, &val2);
43097 if (!SWIG_IsOK(ecode2)) {
43098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Delete" "', expected argument " "2"" of type '" "int""'");
43099 }
43100 arg2 = static_cast< int >(val2);
43101 {
43102 PyThreadState* __tstate = wxPyBeginAllowThreads();
43103 result = (bool)(arg1)->Delete(arg2);
43104 wxPyEndAllowThreads(__tstate);
43105 if (PyErr_Occurred()) SWIG_fail;
43106 }
43107 {
43108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43109 }
43110 return resultobj;
43111fail:
43112 return NULL;
43113}
43114
43115
43116SWIGINTERN PyObject *_wrap_Menu_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43117 PyObject *resultobj = 0;
43118 wxMenu *arg1 = (wxMenu *) 0 ;
43119 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
43120 bool result;
43121 void *argp1 = 0 ;
43122 int res1 = 0 ;
43123 void *argp2 = 0 ;
43124 int res2 = 0 ;
43125 PyObject * obj0 = 0 ;
43126 PyObject * obj1 = 0 ;
43127 char * kwnames[] = {
43128 (char *) "self",(char *) "item", NULL
43129 };
43130
43131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
43132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43133 if (!SWIG_IsOK(res1)) {
43134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_DeleteItem" "', expected argument " "1"" of type '" "wxMenu *""'");
43135 }
43136 arg1 = reinterpret_cast< wxMenu * >(argp1);
43137 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuItem, 0 | 0 );
43138 if (!SWIG_IsOK(res2)) {
43139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_DeleteItem" "', expected argument " "2"" of type '" "wxMenuItem *""'");
43140 }
43141 arg2 = reinterpret_cast< wxMenuItem * >(argp2);
43142 {
43143 PyThreadState* __tstate = wxPyBeginAllowThreads();
43144 result = (bool)(arg1)->Delete(arg2);
43145 wxPyEndAllowThreads(__tstate);
43146 if (PyErr_Occurred()) SWIG_fail;
43147 }
43148 {
43149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43150 }
43151 return resultobj;
43152fail:
43153 return NULL;
d55e5bfc
RD
43154}
43155
43156
1bd55598
RD
43157SWIGINTERN PyObject *_wrap_Menu_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43158 PyObject *resultobj = 0;
43159 wxMenu *arg1 = (wxMenu *) 0 ;
43160 void *argp1 = 0 ;
43161 int res1 = 0 ;
43162 PyObject *swig_obj[1] ;
43163
43164 if (!args) SWIG_fail;
43165 swig_obj[0] = args;
43166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43167 if (!SWIG_IsOK(res1)) {
43168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Destroy" "', expected argument " "1"" of type '" "wxMenu *""'");
43169 }
43170 arg1 = reinterpret_cast< wxMenu * >(argp1);
43171 {
43172 PyThreadState* __tstate = wxPyBeginAllowThreads();
43173 wxMenu_Destroy(arg1);
43174 wxPyEndAllowThreads(__tstate);
43175 if (PyErr_Occurred()) SWIG_fail;
43176 }
43177 resultobj = SWIG_Py_Void();
43178 return resultobj;
43179fail:
43180 return NULL;
43181}
43182
43183
43184SWIGINTERN PyObject *_wrap_Menu_DestroyId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43185 PyObject *resultobj = 0;
43186 wxMenu *arg1 = (wxMenu *) 0 ;
43187 int arg2 ;
43188 bool result;
43189 void *argp1 = 0 ;
43190 int res1 = 0 ;
43191 int val2 ;
43192 int ecode2 = 0 ;
43193 PyObject * obj0 = 0 ;
43194 PyObject * obj1 = 0 ;
43195 char * kwnames[] = {
43196 (char *) "self",(char *) "id", NULL
43197 };
43198
43199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) SWIG_fail;
43200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43201 if (!SWIG_IsOK(res1)) {
43202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_DestroyId" "', expected argument " "1"" of type '" "wxMenu *""'");
43203 }
43204 arg1 = reinterpret_cast< wxMenu * >(argp1);
43205 ecode2 = SWIG_AsVal_int(obj1, &val2);
43206 if (!SWIG_IsOK(ecode2)) {
43207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_DestroyId" "', expected argument " "2"" of type '" "int""'");
43208 }
43209 arg2 = static_cast< int >(val2);
43210 {
43211 PyThreadState* __tstate = wxPyBeginAllowThreads();
43212 result = (bool)(arg1)->Destroy(arg2);
43213 wxPyEndAllowThreads(__tstate);
43214 if (PyErr_Occurred()) SWIG_fail;
43215 }
43216 {
43217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43218 }
43219 return resultobj;
43220fail:
43221 return NULL;
43222}
43223
43224
43225SWIGINTERN PyObject *_wrap_Menu_DestroyItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43226 PyObject *resultobj = 0;
43227 wxMenu *arg1 = (wxMenu *) 0 ;
43228 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
43229 bool result;
43230 void *argp1 = 0 ;
43231 int res1 = 0 ;
43232 void *argp2 = 0 ;
43233 int res2 = 0 ;
43234 PyObject * obj0 = 0 ;
43235 PyObject * obj1 = 0 ;
43236 char * kwnames[] = {
43237 (char *) "self",(char *) "item", NULL
43238 };
43239
43240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) SWIG_fail;
43241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43242 if (!SWIG_IsOK(res1)) {
43243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_DestroyItem" "', expected argument " "1"" of type '" "wxMenu *""'");
43244 }
43245 arg1 = reinterpret_cast< wxMenu * >(argp1);
43246 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuItem, 0 | 0 );
43247 if (!SWIG_IsOK(res2)) {
43248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_DestroyItem" "', expected argument " "2"" of type '" "wxMenuItem *""'");
43249 }
43250 arg2 = reinterpret_cast< wxMenuItem * >(argp2);
43251 {
43252 PyThreadState* __tstate = wxPyBeginAllowThreads();
43253 result = (bool)(arg1)->Destroy(arg2);
43254 wxPyEndAllowThreads(__tstate);
43255 if (PyErr_Occurred()) SWIG_fail;
43256 }
43257 {
43258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43259 }
43260 return resultobj;
43261fail:
43262 return NULL;
d55e5bfc
RD
43263}
43264
43265
1bd55598
RD
43266SWIGINTERN PyObject *_wrap_Menu_GetMenuItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43267 PyObject *resultobj = 0;
43268 wxMenu *arg1 = (wxMenu *) 0 ;
43269 size_t result;
43270 void *argp1 = 0 ;
43271 int res1 = 0 ;
43272 PyObject *swig_obj[1] ;
43273
43274 if (!args) SWIG_fail;
43275 swig_obj[0] = args;
43276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43277 if (!SWIG_IsOK(res1)) {
43278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetMenuItemCount" "', expected argument " "1"" of type '" "wxMenu const *""'");
43279 }
43280 arg1 = reinterpret_cast< wxMenu * >(argp1);
43281 {
43282 PyThreadState* __tstate = wxPyBeginAllowThreads();
43283 result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount();
43284 wxPyEndAllowThreads(__tstate);
43285 if (PyErr_Occurred()) SWIG_fail;
43286 }
43287 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
43288 return resultobj;
43289fail:
43290 return NULL;
d55e5bfc
RD
43291}
43292
43293
1bd55598
RD
43294SWIGINTERN PyObject *_wrap_Menu_GetMenuItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43295 PyObject *resultobj = 0;
43296 wxMenu *arg1 = (wxMenu *) 0 ;
43297 PyObject *result = 0 ;
43298 void *argp1 = 0 ;
43299 int res1 = 0 ;
43300 PyObject *swig_obj[1] ;
43301
43302 if (!args) SWIG_fail;
43303 swig_obj[0] = args;
43304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43305 if (!SWIG_IsOK(res1)) {
43306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetMenuItems" "', expected argument " "1"" of type '" "wxMenu *""'");
43307 }
43308 arg1 = reinterpret_cast< wxMenu * >(argp1);
43309 {
43310 PyThreadState* __tstate = wxPyBeginAllowThreads();
43311 result = (PyObject *)wxMenu_GetMenuItems(arg1);
43312 wxPyEndAllowThreads(__tstate);
43313 if (PyErr_Occurred()) SWIG_fail;
43314 }
43315 resultobj = result;
43316 return resultobj;
43317fail:
43318 return NULL;
43319}
43320
43321
43322SWIGINTERN PyObject *_wrap_Menu_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43323 PyObject *resultobj = 0;
43324 wxMenu *arg1 = (wxMenu *) 0 ;
43325 wxString *arg2 = 0 ;
43326 int result;
43327 void *argp1 = 0 ;
43328 int res1 = 0 ;
43329 bool temp2 = false ;
43330 PyObject * obj0 = 0 ;
43331 PyObject * obj1 = 0 ;
43332 char * kwnames[] = {
43333 (char *) "self",(char *) "item", NULL
43334 };
43335
43336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) SWIG_fail;
43337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43338 if (!SWIG_IsOK(res1)) {
43339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_FindItem" "', expected argument " "1"" of type '" "wxMenu const *""'");
43340 }
43341 arg1 = reinterpret_cast< wxMenu * >(argp1);
43342 {
43343 arg2 = wxString_in_helper(obj1);
43344 if (arg2 == NULL) SWIG_fail;
43345 temp2 = true;
43346 }
43347 {
43348 PyThreadState* __tstate = wxPyBeginAllowThreads();
43349 result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2);
43350 wxPyEndAllowThreads(__tstate);
43351 if (PyErr_Occurred()) SWIG_fail;
43352 }
43353 resultobj = SWIG_From_int(static_cast< int >(result));
43354 {
43355 if (temp2)
43356 delete arg2;
43357 }
43358 return resultobj;
43359fail:
43360 {
43361 if (temp2)
43362 delete arg2;
43363 }
43364 return NULL;
43365}
43366
43367
43368SWIGINTERN PyObject *_wrap_Menu_FindItemById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43369 PyObject *resultobj = 0;
43370 wxMenu *arg1 = (wxMenu *) 0 ;
43371 int arg2 ;
43372 wxMenuItem *result = 0 ;
43373 void *argp1 = 0 ;
43374 int res1 = 0 ;
43375 int val2 ;
43376 int ecode2 = 0 ;
43377 PyObject * obj0 = 0 ;
43378 PyObject * obj1 = 0 ;
43379 char * kwnames[] = {
43380 (char *) "self",(char *) "id", NULL
43381 };
43382
43383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) SWIG_fail;
43384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43385 if (!SWIG_IsOK(res1)) {
43386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_FindItemById" "', expected argument " "1"" of type '" "wxMenu const *""'");
43387 }
43388 arg1 = reinterpret_cast< wxMenu * >(argp1);
43389 ecode2 = SWIG_AsVal_int(obj1, &val2);
43390 if (!SWIG_IsOK(ecode2)) {
43391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_FindItemById" "', expected argument " "2"" of type '" "int""'");
43392 }
43393 arg2 = static_cast< int >(val2);
43394 {
43395 PyThreadState* __tstate = wxPyBeginAllowThreads();
43396 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2);
43397 wxPyEndAllowThreads(__tstate);
43398 if (PyErr_Occurred()) SWIG_fail;
43399 }
43400 {
43401 resultobj = wxPyMake_wxObject(result, (bool)0);
43402 }
43403 return resultobj;
43404fail:
43405 return NULL;
43406}
43407
43408
43409SWIGINTERN PyObject *_wrap_Menu_FindItemByPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43410 PyObject *resultobj = 0;
43411 wxMenu *arg1 = (wxMenu *) 0 ;
43412 size_t arg2 ;
43413 wxMenuItem *result = 0 ;
43414 void *argp1 = 0 ;
43415 int res1 = 0 ;
43416 size_t val2 ;
43417 int ecode2 = 0 ;
43418 PyObject * obj0 = 0 ;
43419 PyObject * obj1 = 0 ;
43420 char * kwnames[] = {
43421 (char *) "self",(char *) "position", NULL
43422 };
43423
43424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) SWIG_fail;
43425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43426 if (!SWIG_IsOK(res1)) {
43427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_FindItemByPosition" "', expected argument " "1"" of type '" "wxMenu const *""'");
43428 }
43429 arg1 = reinterpret_cast< wxMenu * >(argp1);
43430 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
43431 if (!SWIG_IsOK(ecode2)) {
43432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_FindItemByPosition" "', expected argument " "2"" of type '" "size_t""'");
43433 }
43434 arg2 = static_cast< size_t >(val2);
43435 {
43436 PyThreadState* __tstate = wxPyBeginAllowThreads();
43437 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2);
43438 wxPyEndAllowThreads(__tstate);
43439 if (PyErr_Occurred()) SWIG_fail;
43440 }
43441 {
43442 resultobj = wxPyMake_wxObject(result, (bool)0);
43443 }
43444 return resultobj;
43445fail:
43446 return NULL;
43447}
43448
43449
43450SWIGINTERN PyObject *_wrap_Menu_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43451 PyObject *resultobj = 0;
43452 wxMenu *arg1 = (wxMenu *) 0 ;
43453 int arg2 ;
43454 bool arg3 ;
43455 void *argp1 = 0 ;
43456 int res1 = 0 ;
43457 int val2 ;
43458 int ecode2 = 0 ;
43459 bool val3 ;
43460 int ecode3 = 0 ;
43461 PyObject * obj0 = 0 ;
43462 PyObject * obj1 = 0 ;
43463 PyObject * obj2 = 0 ;
43464 char * kwnames[] = {
43465 (char *) "self",(char *) "id",(char *) "enable", NULL
43466 };
43467
43468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43470 if (!SWIG_IsOK(res1)) {
43471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Enable" "', expected argument " "1"" of type '" "wxMenu *""'");
43472 }
43473 arg1 = reinterpret_cast< wxMenu * >(argp1);
43474 ecode2 = SWIG_AsVal_int(obj1, &val2);
43475 if (!SWIG_IsOK(ecode2)) {
43476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Enable" "', expected argument " "2"" of type '" "int""'");
43477 }
43478 arg2 = static_cast< int >(val2);
43479 ecode3 = SWIG_AsVal_bool(obj2, &val3);
43480 if (!SWIG_IsOK(ecode3)) {
43481 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_Enable" "', expected argument " "3"" of type '" "bool""'");
43482 }
43483 arg3 = static_cast< bool >(val3);
43484 {
43485 PyThreadState* __tstate = wxPyBeginAllowThreads();
43486 (arg1)->Enable(arg2,arg3);
43487 wxPyEndAllowThreads(__tstate);
43488 if (PyErr_Occurred()) SWIG_fail;
43489 }
43490 resultobj = SWIG_Py_Void();
43491 return resultobj;
43492fail:
43493 return NULL;
43494}
43495
43496
43497SWIGINTERN PyObject *_wrap_Menu_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43498 PyObject *resultobj = 0;
43499 wxMenu *arg1 = (wxMenu *) 0 ;
43500 int arg2 ;
43501 bool result;
43502 void *argp1 = 0 ;
43503 int res1 = 0 ;
43504 int val2 ;
43505 int ecode2 = 0 ;
43506 PyObject * obj0 = 0 ;
43507 PyObject * obj1 = 0 ;
43508 char * kwnames[] = {
43509 (char *) "self",(char *) "id", NULL
43510 };
43511
43512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
43513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43514 if (!SWIG_IsOK(res1)) {
43515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_IsEnabled" "', expected argument " "1"" of type '" "wxMenu const *""'");
43516 }
43517 arg1 = reinterpret_cast< wxMenu * >(argp1);
43518 ecode2 = SWIG_AsVal_int(obj1, &val2);
43519 if (!SWIG_IsOK(ecode2)) {
43520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_IsEnabled" "', expected argument " "2"" of type '" "int""'");
43521 }
43522 arg2 = static_cast< int >(val2);
43523 {
43524 PyThreadState* __tstate = wxPyBeginAllowThreads();
43525 result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2);
43526 wxPyEndAllowThreads(__tstate);
43527 if (PyErr_Occurred()) SWIG_fail;
43528 }
43529 {
43530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43531 }
43532 return resultobj;
43533fail:
43534 return NULL;
43535}
43536
43537
43538SWIGINTERN PyObject *_wrap_Menu_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43539 PyObject *resultobj = 0;
43540 wxMenu *arg1 = (wxMenu *) 0 ;
43541 int arg2 ;
43542 bool arg3 ;
43543 void *argp1 = 0 ;
43544 int res1 = 0 ;
43545 int val2 ;
43546 int ecode2 = 0 ;
43547 bool val3 ;
43548 int ecode3 = 0 ;
43549 PyObject * obj0 = 0 ;
43550 PyObject * obj1 = 0 ;
43551 PyObject * obj2 = 0 ;
43552 char * kwnames[] = {
43553 (char *) "self",(char *) "id",(char *) "check", NULL
43554 };
43555
43556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43558 if (!SWIG_IsOK(res1)) {
43559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Check" "', expected argument " "1"" of type '" "wxMenu *""'");
43560 }
43561 arg1 = reinterpret_cast< wxMenu * >(argp1);
43562 ecode2 = SWIG_AsVal_int(obj1, &val2);
43563 if (!SWIG_IsOK(ecode2)) {
43564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Check" "', expected argument " "2"" of type '" "int""'");
43565 }
43566 arg2 = static_cast< int >(val2);
43567 ecode3 = SWIG_AsVal_bool(obj2, &val3);
43568 if (!SWIG_IsOK(ecode3)) {
43569 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_Check" "', expected argument " "3"" of type '" "bool""'");
43570 }
43571 arg3 = static_cast< bool >(val3);
43572 {
43573 PyThreadState* __tstate = wxPyBeginAllowThreads();
43574 (arg1)->Check(arg2,arg3);
43575 wxPyEndAllowThreads(__tstate);
43576 if (PyErr_Occurred()) SWIG_fail;
43577 }
43578 resultobj = SWIG_Py_Void();
43579 return resultobj;
43580fail:
43581 return NULL;
43582}
43583
43584
43585SWIGINTERN PyObject *_wrap_Menu_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43586 PyObject *resultobj = 0;
43587 wxMenu *arg1 = (wxMenu *) 0 ;
43588 int arg2 ;
43589 bool result;
43590 void *argp1 = 0 ;
43591 int res1 = 0 ;
43592 int val2 ;
43593 int ecode2 = 0 ;
43594 PyObject * obj0 = 0 ;
43595 PyObject * obj1 = 0 ;
43596 char * kwnames[] = {
43597 (char *) "self",(char *) "id", NULL
43598 };
43599
43600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
43601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43602 if (!SWIG_IsOK(res1)) {
43603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_IsChecked" "', expected argument " "1"" of type '" "wxMenu const *""'");
43604 }
43605 arg1 = reinterpret_cast< wxMenu * >(argp1);
43606 ecode2 = SWIG_AsVal_int(obj1, &val2);
43607 if (!SWIG_IsOK(ecode2)) {
43608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_IsChecked" "', expected argument " "2"" of type '" "int""'");
43609 }
43610 arg2 = static_cast< int >(val2);
43611 {
43612 PyThreadState* __tstate = wxPyBeginAllowThreads();
43613 result = (bool)((wxMenu const *)arg1)->IsChecked(arg2);
43614 wxPyEndAllowThreads(__tstate);
43615 if (PyErr_Occurred()) SWIG_fail;
43616 }
43617 {
43618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43619 }
43620 return resultobj;
43621fail:
43622 return NULL;
43623}
43624
43625
43626SWIGINTERN PyObject *_wrap_Menu_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43627 PyObject *resultobj = 0;
43628 wxMenu *arg1 = (wxMenu *) 0 ;
43629 int arg2 ;
43630 wxString *arg3 = 0 ;
43631 void *argp1 = 0 ;
43632 int res1 = 0 ;
43633 int val2 ;
43634 int ecode2 = 0 ;
43635 bool temp3 = false ;
43636 PyObject * obj0 = 0 ;
43637 PyObject * obj1 = 0 ;
43638 PyObject * obj2 = 0 ;
43639 char * kwnames[] = {
43640 (char *) "self",(char *) "id",(char *) "label", NULL
43641 };
43642
43643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43645 if (!SWIG_IsOK(res1)) {
43646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetLabel" "', expected argument " "1"" of type '" "wxMenu *""'");
43647 }
43648 arg1 = reinterpret_cast< wxMenu * >(argp1);
43649 ecode2 = SWIG_AsVal_int(obj1, &val2);
43650 if (!SWIG_IsOK(ecode2)) {
43651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_SetLabel" "', expected argument " "2"" of type '" "int""'");
43652 }
43653 arg2 = static_cast< int >(val2);
43654 {
43655 arg3 = wxString_in_helper(obj2);
43656 if (arg3 == NULL) SWIG_fail;
43657 temp3 = true;
43658 }
43659 {
43660 PyThreadState* __tstate = wxPyBeginAllowThreads();
43661 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
43662 wxPyEndAllowThreads(__tstate);
43663 if (PyErr_Occurred()) SWIG_fail;
43664 }
43665 resultobj = SWIG_Py_Void();
43666 {
43667 if (temp3)
43668 delete arg3;
43669 }
43670 return resultobj;
43671fail:
43672 {
43673 if (temp3)
43674 delete arg3;
43675 }
43676 return NULL;
43677}
43678
43679
43680SWIGINTERN PyObject *_wrap_Menu_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43681 PyObject *resultobj = 0;
43682 wxMenu *arg1 = (wxMenu *) 0 ;
43683 int arg2 ;
43684 wxString result;
43685 void *argp1 = 0 ;
43686 int res1 = 0 ;
43687 int val2 ;
43688 int ecode2 = 0 ;
43689 PyObject * obj0 = 0 ;
43690 PyObject * obj1 = 0 ;
43691 char * kwnames[] = {
43692 (char *) "self",(char *) "id", NULL
43693 };
43694
43695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
43696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43697 if (!SWIG_IsOK(res1)) {
43698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetLabel" "', expected argument " "1"" of type '" "wxMenu const *""'");
43699 }
43700 arg1 = reinterpret_cast< wxMenu * >(argp1);
43701 ecode2 = SWIG_AsVal_int(obj1, &val2);
43702 if (!SWIG_IsOK(ecode2)) {
43703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_GetLabel" "', expected argument " "2"" of type '" "int""'");
43704 }
43705 arg2 = static_cast< int >(val2);
43706 {
43707 PyThreadState* __tstate = wxPyBeginAllowThreads();
43708 result = ((wxMenu const *)arg1)->GetLabel(arg2);
43709 wxPyEndAllowThreads(__tstate);
43710 if (PyErr_Occurred()) SWIG_fail;
43711 }
43712 {
43713#if wxUSE_UNICODE
43714 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43715#else
43716 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43717#endif
43718 }
43719 return resultobj;
43720fail:
43721 return NULL;
43722}
43723
43724
43725SWIGINTERN PyObject *_wrap_Menu_SetHelpString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43726 PyObject *resultobj = 0;
43727 wxMenu *arg1 = (wxMenu *) 0 ;
43728 int arg2 ;
43729 wxString *arg3 = 0 ;
43730 void *argp1 = 0 ;
43731 int res1 = 0 ;
43732 int val2 ;
43733 int ecode2 = 0 ;
43734 bool temp3 = false ;
43735 PyObject * obj0 = 0 ;
43736 PyObject * obj1 = 0 ;
43737 PyObject * obj2 = 0 ;
43738 char * kwnames[] = {
43739 (char *) "self",(char *) "id",(char *) "helpString", NULL
43740 };
43741
43742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43744 if (!SWIG_IsOK(res1)) {
43745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetHelpString" "', expected argument " "1"" of type '" "wxMenu *""'");
43746 }
43747 arg1 = reinterpret_cast< wxMenu * >(argp1);
43748 ecode2 = SWIG_AsVal_int(obj1, &val2);
43749 if (!SWIG_IsOK(ecode2)) {
43750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_SetHelpString" "', expected argument " "2"" of type '" "int""'");
43751 }
43752 arg2 = static_cast< int >(val2);
43753 {
43754 arg3 = wxString_in_helper(obj2);
43755 if (arg3 == NULL) SWIG_fail;
43756 temp3 = true;
43757 }
43758 {
43759 PyThreadState* __tstate = wxPyBeginAllowThreads();
43760 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
43761 wxPyEndAllowThreads(__tstate);
43762 if (PyErr_Occurred()) SWIG_fail;
43763 }
43764 resultobj = SWIG_Py_Void();
43765 {
43766 if (temp3)
43767 delete arg3;
43768 }
43769 return resultobj;
43770fail:
43771 {
43772 if (temp3)
43773 delete arg3;
43774 }
43775 return NULL;
43776}
43777
43778
43779SWIGINTERN PyObject *_wrap_Menu_GetHelpString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43780 PyObject *resultobj = 0;
43781 wxMenu *arg1 = (wxMenu *) 0 ;
43782 int arg2 ;
43783 wxString result;
43784 void *argp1 = 0 ;
43785 int res1 = 0 ;
43786 int val2 ;
43787 int ecode2 = 0 ;
43788 PyObject * obj0 = 0 ;
43789 PyObject * obj1 = 0 ;
43790 char * kwnames[] = {
43791 (char *) "self",(char *) "id", NULL
43792 };
43793
43794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) SWIG_fail;
43795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43796 if (!SWIG_IsOK(res1)) {
43797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetHelpString" "', expected argument " "1"" of type '" "wxMenu const *""'");
43798 }
43799 arg1 = reinterpret_cast< wxMenu * >(argp1);
43800 ecode2 = SWIG_AsVal_int(obj1, &val2);
43801 if (!SWIG_IsOK(ecode2)) {
43802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_GetHelpString" "', expected argument " "2"" of type '" "int""'");
43803 }
43804 arg2 = static_cast< int >(val2);
43805 {
43806 PyThreadState* __tstate = wxPyBeginAllowThreads();
43807 result = ((wxMenu const *)arg1)->GetHelpString(arg2);
43808 wxPyEndAllowThreads(__tstate);
43809 if (PyErr_Occurred()) SWIG_fail;
43810 }
43811 {
43812#if wxUSE_UNICODE
43813 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43814#else
43815 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43816#endif
43817 }
43818 return resultobj;
43819fail:
43820 return NULL;
43821}
43822
43823
43824SWIGINTERN PyObject *_wrap_Menu_SetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43825 PyObject *resultobj = 0;
43826 wxMenu *arg1 = (wxMenu *) 0 ;
43827 wxString *arg2 = 0 ;
43828 void *argp1 = 0 ;
43829 int res1 = 0 ;
43830 bool temp2 = false ;
43831 PyObject * obj0 = 0 ;
43832 PyObject * obj1 = 0 ;
43833 char * kwnames[] = {
43834 (char *) "self",(char *) "title", NULL
43835 };
43836
43837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) SWIG_fail;
43838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43839 if (!SWIG_IsOK(res1)) {
43840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetTitle" "', expected argument " "1"" of type '" "wxMenu *""'");
43841 }
43842 arg1 = reinterpret_cast< wxMenu * >(argp1);
43843 {
43844 arg2 = wxString_in_helper(obj1);
43845 if (arg2 == NULL) SWIG_fail;
43846 temp2 = true;
43847 }
43848 {
43849 PyThreadState* __tstate = wxPyBeginAllowThreads();
43850 (arg1)->SetTitle((wxString const &)*arg2);
43851 wxPyEndAllowThreads(__tstate);
43852 if (PyErr_Occurred()) SWIG_fail;
43853 }
43854 resultobj = SWIG_Py_Void();
43855 {
43856 if (temp2)
43857 delete arg2;
43858 }
43859 return resultobj;
43860fail:
43861 {
43862 if (temp2)
43863 delete arg2;
43864 }
43865 return NULL;
d55e5bfc
RD
43866}
43867
43868
1bd55598
RD
43869SWIGINTERN PyObject *_wrap_Menu_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43870 PyObject *resultobj = 0;
43871 wxMenu *arg1 = (wxMenu *) 0 ;
43872 wxString result;
43873 void *argp1 = 0 ;
43874 int res1 = 0 ;
43875 PyObject *swig_obj[1] ;
43876
43877 if (!args) SWIG_fail;
43878 swig_obj[0] = args;
43879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43880 if (!SWIG_IsOK(res1)) {
43881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetTitle" "', expected argument " "1"" of type '" "wxMenu const *""'");
43882 }
43883 arg1 = reinterpret_cast< wxMenu * >(argp1);
43884 {
43885 PyThreadState* __tstate = wxPyBeginAllowThreads();
43886 result = ((wxMenu const *)arg1)->GetTitle();
43887 wxPyEndAllowThreads(__tstate);
43888 if (PyErr_Occurred()) SWIG_fail;
43889 }
43890 {
d55e5bfc 43891#if wxUSE_UNICODE
1bd55598 43892 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 43893#else
1bd55598 43894 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 43895#endif
1bd55598
RD
43896 }
43897 return resultobj;
43898fail:
43899 return NULL;
43900}
43901
43902
43903SWIGINTERN PyObject *_wrap_Menu_SetEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43904 PyObject *resultobj = 0;
43905 wxMenu *arg1 = (wxMenu *) 0 ;
43906 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
43907 void *argp1 = 0 ;
43908 int res1 = 0 ;
43909 void *argp2 = 0 ;
43910 int res2 = 0 ;
43911 PyObject * obj0 = 0 ;
43912 PyObject * obj1 = 0 ;
43913 char * kwnames[] = {
43914 (char *) "self",(char *) "handler", NULL
43915 };
43916
43917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) SWIG_fail;
43918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43919 if (!SWIG_IsOK(res1)) {
43920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetEventHandler" "', expected argument " "1"" of type '" "wxMenu *""'");
43921 }
43922 arg1 = reinterpret_cast< wxMenu * >(argp1);
43923 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
43924 if (!SWIG_IsOK(res2)) {
43925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_SetEventHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
43926 }
43927 arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
43928 {
43929 PyThreadState* __tstate = wxPyBeginAllowThreads();
43930 (arg1)->SetEventHandler(arg2);
43931 wxPyEndAllowThreads(__tstate);
43932 if (PyErr_Occurred()) SWIG_fail;
43933 }
43934 resultobj = SWIG_Py_Void();
43935 return resultobj;
43936fail:
43937 return NULL;
d55e5bfc
RD
43938}
43939
43940
1bd55598
RD
43941SWIGINTERN PyObject *_wrap_Menu_GetEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43942 PyObject *resultobj = 0;
43943 wxMenu *arg1 = (wxMenu *) 0 ;
43944 wxEvtHandler *result = 0 ;
43945 void *argp1 = 0 ;
43946 int res1 = 0 ;
43947 PyObject *swig_obj[1] ;
43948
43949 if (!args) SWIG_fail;
43950 swig_obj[0] = args;
43951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43952 if (!SWIG_IsOK(res1)) {
43953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetEventHandler" "', expected argument " "1"" of type '" "wxMenu const *""'");
43954 }
43955 arg1 = reinterpret_cast< wxMenu * >(argp1);
43956 {
43957 PyThreadState* __tstate = wxPyBeginAllowThreads();
43958 result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler();
43959 wxPyEndAllowThreads(__tstate);
43960 if (PyErr_Occurred()) SWIG_fail;
43961 }
43962 {
43963 resultobj = wxPyMake_wxObject(result, 0);
43964 }
43965 return resultobj;
43966fail:
43967 return NULL;
43968}
43969
43970
43971SWIGINTERN PyObject *_wrap_Menu_SetInvokingWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43972 PyObject *resultobj = 0;
43973 wxMenu *arg1 = (wxMenu *) 0 ;
43974 wxWindow *arg2 = (wxWindow *) 0 ;
43975 void *argp1 = 0 ;
43976 int res1 = 0 ;
43977 void *argp2 = 0 ;
43978 int res2 = 0 ;
43979 PyObject * obj0 = 0 ;
43980 PyObject * obj1 = 0 ;
43981 char * kwnames[] = {
43982 (char *) "self",(char *) "win", NULL
43983 };
43984
43985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) SWIG_fail;
43986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43987 if (!SWIG_IsOK(res1)) {
43988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetInvokingWindow" "', expected argument " "1"" of type '" "wxMenu *""'");
43989 }
43990 arg1 = reinterpret_cast< wxMenu * >(argp1);
43991 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43992 if (!SWIG_IsOK(res2)) {
43993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_SetInvokingWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
43994 }
43995 arg2 = reinterpret_cast< wxWindow * >(argp2);
43996 {
43997 PyThreadState* __tstate = wxPyBeginAllowThreads();
43998 (arg1)->SetInvokingWindow(arg2);
43999 wxPyEndAllowThreads(__tstate);
44000 if (PyErr_Occurred()) SWIG_fail;
44001 }
44002 resultobj = SWIG_Py_Void();
44003 return resultobj;
44004fail:
44005 return NULL;
d55e5bfc
RD
44006}
44007
44008
1bd55598
RD
44009SWIGINTERN PyObject *_wrap_Menu_GetInvokingWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44010 PyObject *resultobj = 0;
44011 wxMenu *arg1 = (wxMenu *) 0 ;
44012 wxWindow *result = 0 ;
44013 void *argp1 = 0 ;
44014 int res1 = 0 ;
44015 PyObject *swig_obj[1] ;
44016
44017 if (!args) SWIG_fail;
44018 swig_obj[0] = args;
44019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44020 if (!SWIG_IsOK(res1)) {
44021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetInvokingWindow" "', expected argument " "1"" of type '" "wxMenu const *""'");
44022 }
44023 arg1 = reinterpret_cast< wxMenu * >(argp1);
44024 {
44025 PyThreadState* __tstate = wxPyBeginAllowThreads();
44026 result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow();
44027 wxPyEndAllowThreads(__tstate);
44028 if (PyErr_Occurred()) SWIG_fail;
44029 }
44030 {
44031 resultobj = wxPyMake_wxObject(result, 0);
44032 }
44033 return resultobj;
44034fail:
44035 return NULL;
d55e5bfc
RD
44036}
44037
44038
1bd55598
RD
44039SWIGINTERN PyObject *_wrap_Menu_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44040 PyObject *resultobj = 0;
44041 wxMenu *arg1 = (wxMenu *) 0 ;
44042 long result;
44043 void *argp1 = 0 ;
44044 int res1 = 0 ;
44045 PyObject *swig_obj[1] ;
44046
44047 if (!args) SWIG_fail;
44048 swig_obj[0] = args;
44049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44050 if (!SWIG_IsOK(res1)) {
44051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetStyle" "', expected argument " "1"" of type '" "wxMenu const *""'");
44052 }
44053 arg1 = reinterpret_cast< wxMenu * >(argp1);
44054 {
44055 PyThreadState* __tstate = wxPyBeginAllowThreads();
44056 result = (long)((wxMenu const *)arg1)->GetStyle();
44057 wxPyEndAllowThreads(__tstate);
44058 if (PyErr_Occurred()) SWIG_fail;
44059 }
44060 resultobj = SWIG_From_long(static_cast< long >(result));
44061 return resultobj;
44062fail:
44063 return NULL;
44064}
44065
44066
44067SWIGINTERN PyObject *_wrap_Menu_UpdateUI(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44068 PyObject *resultobj = 0;
44069 wxMenu *arg1 = (wxMenu *) 0 ;
44070 wxEvtHandler *arg2 = (wxEvtHandler *) NULL ;
44071 void *argp1 = 0 ;
44072 int res1 = 0 ;
44073 void *argp2 = 0 ;
44074 int res2 = 0 ;
44075 PyObject * obj0 = 0 ;
44076 PyObject * obj1 = 0 ;
44077 char * kwnames[] = {
44078 (char *) "self",(char *) "source", NULL
44079 };
44080
44081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) SWIG_fail;
44082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44083 if (!SWIG_IsOK(res1)) {
44084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_UpdateUI" "', expected argument " "1"" of type '" "wxMenu *""'");
44085 }
44086 arg1 = reinterpret_cast< wxMenu * >(argp1);
44087 if (obj1) {
44088 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
44089 if (!SWIG_IsOK(res2)) {
44090 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_UpdateUI" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
d55e5bfc 44091 }
1bd55598
RD
44092 arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
44093 }
44094 {
44095 PyThreadState* __tstate = wxPyBeginAllowThreads();
44096 (arg1)->UpdateUI(arg2);
44097 wxPyEndAllowThreads(__tstate);
44098 if (PyErr_Occurred()) SWIG_fail;
44099 }
44100 resultobj = SWIG_Py_Void();
44101 return resultobj;
44102fail:
44103 return NULL;
d55e5bfc
RD
44104}
44105
44106
1bd55598
RD
44107SWIGINTERN PyObject *_wrap_Menu_GetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44108 PyObject *resultobj = 0;
44109 wxMenu *arg1 = (wxMenu *) 0 ;
44110 wxMenuBar *result = 0 ;
44111 void *argp1 = 0 ;
44112 int res1 = 0 ;
44113 PyObject *swig_obj[1] ;
44114
44115 if (!args) SWIG_fail;
44116 swig_obj[0] = args;
44117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44118 if (!SWIG_IsOK(res1)) {
44119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetMenuBar" "', expected argument " "1"" of type '" "wxMenu const *""'");
44120 }
44121 arg1 = reinterpret_cast< wxMenu * >(argp1);
44122 {
44123 PyThreadState* __tstate = wxPyBeginAllowThreads();
44124 result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar();
44125 wxPyEndAllowThreads(__tstate);
44126 if (PyErr_Occurred()) SWIG_fail;
44127 }
44128 {
44129 resultobj = wxPyMake_wxObject(result, (bool)0);
44130 }
44131 return resultobj;
44132fail:
44133 return NULL;
44134}
44135
44136
44137SWIGINTERN PyObject *_wrap_Menu_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44138 PyObject *resultobj = 0;
44139 wxMenu *arg1 = (wxMenu *) 0 ;
44140 wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ;
44141 void *argp1 = 0 ;
44142 int res1 = 0 ;
44143 void *argp2 = 0 ;
44144 int res2 = 0 ;
44145 PyObject * obj0 = 0 ;
44146 PyObject * obj1 = 0 ;
44147 char * kwnames[] = {
44148 (char *) "self",(char *) "menubar", NULL
44149 };
44150
44151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
44152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44153 if (!SWIG_IsOK(res1)) {
44154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Attach" "', expected argument " "1"" of type '" "wxMenu *""'");
44155 }
44156 arg1 = reinterpret_cast< wxMenu * >(argp1);
44157 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuBarBase, 0 | 0 );
44158 if (!SWIG_IsOK(res2)) {
44159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_Attach" "', expected argument " "2"" of type '" "wxMenuBarBase *""'");
44160 }
44161 arg2 = reinterpret_cast< wxMenuBarBase * >(argp2);
44162 {
44163 PyThreadState* __tstate = wxPyBeginAllowThreads();
44164 (arg1)->Attach(arg2);
44165 wxPyEndAllowThreads(__tstate);
44166 if (PyErr_Occurred()) SWIG_fail;
44167 }
44168 resultobj = SWIG_Py_Void();
44169 return resultobj;
44170fail:
44171 return NULL;
d55e5bfc
RD
44172}
44173
44174
1bd55598
RD
44175SWIGINTERN PyObject *_wrap_Menu_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44176 PyObject *resultobj = 0;
44177 wxMenu *arg1 = (wxMenu *) 0 ;
44178 void *argp1 = 0 ;
44179 int res1 = 0 ;
44180 PyObject *swig_obj[1] ;
44181
44182 if (!args) SWIG_fail;
44183 swig_obj[0] = args;
44184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44185 if (!SWIG_IsOK(res1)) {
44186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Detach" "', expected argument " "1"" of type '" "wxMenu *""'");
44187 }
44188 arg1 = reinterpret_cast< wxMenu * >(argp1);
44189 {
44190 PyThreadState* __tstate = wxPyBeginAllowThreads();
44191 (arg1)->Detach();
44192 wxPyEndAllowThreads(__tstate);
44193 if (PyErr_Occurred()) SWIG_fail;
44194 }
44195 resultobj = SWIG_Py_Void();
44196 return resultobj;
44197fail:
44198 return NULL;
d55e5bfc
RD
44199}
44200
44201
1bd55598
RD
44202SWIGINTERN PyObject *_wrap_Menu_IsAttached(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44203 PyObject *resultobj = 0;
44204 wxMenu *arg1 = (wxMenu *) 0 ;
44205 bool result;
44206 void *argp1 = 0 ;
44207 int res1 = 0 ;
44208 PyObject *swig_obj[1] ;
44209
44210 if (!args) SWIG_fail;
44211 swig_obj[0] = args;
44212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44213 if (!SWIG_IsOK(res1)) {
44214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_IsAttached" "', expected argument " "1"" of type '" "wxMenu const *""'");
44215 }
44216 arg1 = reinterpret_cast< wxMenu * >(argp1);
44217 {
44218 PyThreadState* __tstate = wxPyBeginAllowThreads();
44219 result = (bool)((wxMenu const *)arg1)->IsAttached();
44220 wxPyEndAllowThreads(__tstate);
44221 if (PyErr_Occurred()) SWIG_fail;
44222 }
44223 {
44224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44225 }
44226 return resultobj;
44227fail:
44228 return NULL;
44229}
44230
44231
44232SWIGINTERN PyObject *_wrap_Menu_SetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44233 PyObject *resultobj = 0;
44234 wxMenu *arg1 = (wxMenu *) 0 ;
44235 wxMenu *arg2 = (wxMenu *) 0 ;
44236 void *argp1 = 0 ;
44237 int res1 = 0 ;
44238 void *argp2 = 0 ;
44239 int res2 = 0 ;
44240 PyObject * obj0 = 0 ;
44241 PyObject * obj1 = 0 ;
44242 char * kwnames[] = {
44243 (char *) "self",(char *) "parent", NULL
44244 };
44245
44246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) SWIG_fail;
44247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44248 if (!SWIG_IsOK(res1)) {
44249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetParent" "', expected argument " "1"" of type '" "wxMenu *""'");
44250 }
44251 arg1 = reinterpret_cast< wxMenu * >(argp1);
44252 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
44253 if (!SWIG_IsOK(res2)) {
44254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_SetParent" "', expected argument " "2"" of type '" "wxMenu *""'");
44255 }
44256 arg2 = reinterpret_cast< wxMenu * >(argp2);
44257 {
44258 PyThreadState* __tstate = wxPyBeginAllowThreads();
44259 (arg1)->SetParent(arg2);
44260 wxPyEndAllowThreads(__tstate);
44261 if (PyErr_Occurred()) SWIG_fail;
44262 }
44263 resultobj = SWIG_Py_Void();
44264 return resultobj;
44265fail:
44266 return NULL;
d55e5bfc
RD
44267}
44268
44269
1bd55598
RD
44270SWIGINTERN PyObject *_wrap_Menu_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44271 PyObject *resultobj = 0;
44272 wxMenu *arg1 = (wxMenu *) 0 ;
44273 wxMenu *result = 0 ;
44274 void *argp1 = 0 ;
44275 int res1 = 0 ;
44276 PyObject *swig_obj[1] ;
44277
44278 if (!args) SWIG_fail;
44279 swig_obj[0] = args;
44280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44281 if (!SWIG_IsOK(res1)) {
44282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetParent" "', expected argument " "1"" of type '" "wxMenu const *""'");
44283 }
44284 arg1 = reinterpret_cast< wxMenu * >(argp1);
44285 {
44286 PyThreadState* __tstate = wxPyBeginAllowThreads();
44287 result = (wxMenu *)((wxMenu const *)arg1)->GetParent();
44288 wxPyEndAllowThreads(__tstate);
44289 if (PyErr_Occurred()) SWIG_fail;
44290 }
44291 {
44292 resultobj = wxPyMake_wxObject(result, 0);
44293 }
44294 return resultobj;
44295fail:
44296 return NULL;
d55e5bfc
RD
44297}
44298
44299
1bd55598
RD
44300SWIGINTERN PyObject *Menu_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44301 PyObject *obj;
44302 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44303 SWIG_TypeNewClientData(SWIGTYPE_p_wxMenu, SWIG_NewClientData(obj));
44304 return SWIG_Py_Void();
d55e5bfc 44305}
1bd55598
RD
44306
44307SWIGINTERN PyObject *Menu_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44308 return SWIG_Python_InitShadowInstance(args);
44309}
44310
44311SWIGINTERN PyObject *_wrap_new_MenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44312 PyObject *resultobj = 0;
44313 long arg1 = (long) 0 ;
44314 wxMenuBar *result = 0 ;
44315 long val1 ;
44316 int ecode1 = 0 ;
44317 PyObject * obj0 = 0 ;
44318 char * kwnames[] = {
44319 (char *) "style", NULL
44320 };
44321
44322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) SWIG_fail;
44323 if (obj0) {
44324 ecode1 = SWIG_AsVal_long(obj0, &val1);
44325 if (!SWIG_IsOK(ecode1)) {
44326 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MenuBar" "', expected argument " "1"" of type '" "long""'");
44327 }
44328 arg1 = static_cast< long >(val1);
44329 }
44330 {
44331 if (!wxPyCheckForApp()) SWIG_fail;
44332 PyThreadState* __tstate = wxPyBeginAllowThreads();
44333 result = (wxMenuBar *)new wxMenuBar(arg1);
44334 wxPyEndAllowThreads(__tstate);
44335 if (PyErr_Occurred()) SWIG_fail;
44336 }
44337 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMenuBar, SWIG_POINTER_NEW | 0 );
44338 return resultobj;
44339fail:
44340 return NULL;
44341}
44342
44343
44344SWIGINTERN PyObject *_wrap_MenuBar_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44345 PyObject *resultobj = 0;
44346 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44347 wxMenu *arg2 = (wxMenu *) 0 ;
44348 wxString *arg3 = 0 ;
44349 bool result;
44350 void *argp1 = 0 ;
44351 int res1 = 0 ;
44352 void *argp2 = 0 ;
44353 int res2 = 0 ;
44354 bool temp3 = false ;
44355 PyObject * obj0 = 0 ;
44356 PyObject * obj1 = 0 ;
44357 PyObject * obj2 = 0 ;
44358 char * kwnames[] = {
44359 (char *) "self",(char *) "menu",(char *) "title", NULL
44360 };
44361
44362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
44363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44364 if (!SWIG_IsOK(res1)) {
44365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Append" "', expected argument " "1"" of type '" "wxMenuBar *""'");
44366 }
44367 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44368 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
44369 if (!SWIG_IsOK(res2)) {
44370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuBar_Append" "', expected argument " "2"" of type '" "wxMenu *""'");
44371 }
44372 arg2 = reinterpret_cast< wxMenu * >(argp2);
44373 {
44374 arg3 = wxString_in_helper(obj2);
44375 if (arg3 == NULL) SWIG_fail;
44376 temp3 = true;
44377 }
44378 {
44379 PyThreadState* __tstate = wxPyBeginAllowThreads();
44380 result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3);
44381 wxPyEndAllowThreads(__tstate);
44382 if (PyErr_Occurred()) SWIG_fail;
44383 }
44384 {
44385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44386 }
44387 {
44388 if (temp3)
44389 delete arg3;
44390 }
44391 return resultobj;
44392fail:
44393 {
44394 if (temp3)
44395 delete arg3;
44396 }
44397 return NULL;
44398}
44399
44400
44401SWIGINTERN PyObject *_wrap_MenuBar_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44402 PyObject *resultobj = 0;
44403 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44404 size_t arg2 ;
44405 wxMenu *arg3 = (wxMenu *) 0 ;
44406 wxString *arg4 = 0 ;
44407 bool result;
44408 void *argp1 = 0 ;
44409 int res1 = 0 ;
44410 size_t val2 ;
44411 int ecode2 = 0 ;
44412 void *argp3 = 0 ;
44413 int res3 = 0 ;
44414 bool temp4 = false ;
44415 PyObject * obj0 = 0 ;
44416 PyObject * obj1 = 0 ;
44417 PyObject * obj2 = 0 ;
44418 PyObject * obj3 = 0 ;
44419 char * kwnames[] = {
44420 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
44421 };
44422
44423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44425 if (!SWIG_IsOK(res1)) {
44426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Insert" "', expected argument " "1"" of type '" "wxMenuBar *""'");
44427 }
44428 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44429 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44430 if (!SWIG_IsOK(ecode2)) {
44431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_Insert" "', expected argument " "2"" of type '" "size_t""'");
44432 }
44433 arg2 = static_cast< size_t >(val2);
44434 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxMenu, 0 | 0 );
44435 if (!SWIG_IsOK(res3)) {
44436 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MenuBar_Insert" "', expected argument " "3"" of type '" "wxMenu *""'");
44437 }
44438 arg3 = reinterpret_cast< wxMenu * >(argp3);
44439 {
44440 arg4 = wxString_in_helper(obj3);
44441 if (arg4 == NULL) SWIG_fail;
44442 temp4 = true;
44443 }
44444 {
44445 PyThreadState* __tstate = wxPyBeginAllowThreads();
44446 result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4);
44447 wxPyEndAllowThreads(__tstate);
44448 if (PyErr_Occurred()) SWIG_fail;
44449 }
44450 {
44451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44452 }
44453 {
44454 if (temp4)
44455 delete arg4;
44456 }
44457 return resultobj;
44458fail:
44459 {
44460 if (temp4)
44461 delete arg4;
44462 }
44463 return NULL;
d55e5bfc
RD
44464}
44465
44466
1bd55598
RD
44467SWIGINTERN PyObject *_wrap_MenuBar_GetMenuCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44468 PyObject *resultobj = 0;
44469 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44470 size_t result;
44471 void *argp1 = 0 ;
44472 int res1 = 0 ;
44473 PyObject *swig_obj[1] ;
44474
44475 if (!args) SWIG_fail;
44476 swig_obj[0] = args;
44477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44478 if (!SWIG_IsOK(res1)) {
44479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetMenuCount" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
44480 }
44481 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44482 {
44483 PyThreadState* __tstate = wxPyBeginAllowThreads();
44484 result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount();
44485 wxPyEndAllowThreads(__tstate);
44486 if (PyErr_Occurred()) SWIG_fail;
44487 }
44488 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
44489 return resultobj;
44490fail:
44491 return NULL;
44492}
44493
44494
44495SWIGINTERN PyObject *_wrap_MenuBar_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44496 PyObject *resultobj = 0;
44497 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44498 size_t arg2 ;
44499 wxMenu *result = 0 ;
44500 void *argp1 = 0 ;
44501 int res1 = 0 ;
44502 size_t val2 ;
44503 int ecode2 = 0 ;
44504 PyObject * obj0 = 0 ;
44505 PyObject * obj1 = 0 ;
44506 char * kwnames[] = {
44507 (char *) "self",(char *) "pos", NULL
44508 };
44509
44510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
44511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44512 if (!SWIG_IsOK(res1)) {
44513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetMenu" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
44514 }
44515 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44516 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44517 if (!SWIG_IsOK(ecode2)) {
44518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_GetMenu" "', expected argument " "2"" of type '" "size_t""'");
44519 }
44520 arg2 = static_cast< size_t >(val2);
44521 {
44522 PyThreadState* __tstate = wxPyBeginAllowThreads();
44523 result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2);
44524 wxPyEndAllowThreads(__tstate);
44525 if (PyErr_Occurred()) SWIG_fail;
44526 }
44527 {
44528 resultobj = wxPyMake_wxObject(result, 0);
44529 }
44530 return resultobj;
44531fail:
44532 return NULL;
44533}
44534
44535
44536SWIGINTERN PyObject *_wrap_MenuBar_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44537 PyObject *resultobj = 0;
44538 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44539 size_t arg2 ;
44540 wxMenu *arg3 = (wxMenu *) 0 ;
44541 wxString *arg4 = 0 ;
44542 wxMenu *result = 0 ;
44543 void *argp1 = 0 ;
44544 int res1 = 0 ;
44545 size_t val2 ;
44546 int ecode2 = 0 ;
44547 void *argp3 = 0 ;
44548 int res3 = 0 ;
44549 bool temp4 = false ;
44550 PyObject * obj0 = 0 ;
44551 PyObject * obj1 = 0 ;
44552 PyObject * obj2 = 0 ;
44553 PyObject * obj3 = 0 ;
44554 char * kwnames[] = {
44555 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
44556 };
44557
44558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44560 if (!SWIG_IsOK(res1)) {
44561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Replace" "', expected argument " "1"" of type '" "wxMenuBar *""'");
44562 }
44563 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44564 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44565 if (!SWIG_IsOK(ecode2)) {
44566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_Replace" "', expected argument " "2"" of type '" "size_t""'");
44567 }
44568 arg2 = static_cast< size_t >(val2);
44569 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxMenu, 0 | 0 );
44570 if (!SWIG_IsOK(res3)) {
44571 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MenuBar_Replace" "', expected argument " "3"" of type '" "wxMenu *""'");
44572 }
44573 arg3 = reinterpret_cast< wxMenu * >(argp3);
44574 {
44575 arg4 = wxString_in_helper(obj3);
44576 if (arg4 == NULL) SWIG_fail;
44577 temp4 = true;
44578 }
44579 {
44580 PyThreadState* __tstate = wxPyBeginAllowThreads();
44581 result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
44582 wxPyEndAllowThreads(__tstate);
44583 if (PyErr_Occurred()) SWIG_fail;
44584 }
44585 {
44586 resultobj = wxPyMake_wxObject(result, 0);
44587 }
44588 {
44589 if (temp4)
44590 delete arg4;
44591 }
44592 return resultobj;
44593fail:
44594 {
44595 if (temp4)
44596 delete arg4;
44597 }
44598 return NULL;
44599}
44600
44601
44602SWIGINTERN PyObject *_wrap_MenuBar_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44603 PyObject *resultobj = 0;
44604 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44605 size_t arg2 ;
44606 wxMenu *result = 0 ;
44607 void *argp1 = 0 ;
44608 int res1 = 0 ;
44609 size_t val2 ;
44610 int ecode2 = 0 ;
44611 PyObject * obj0 = 0 ;
44612 PyObject * obj1 = 0 ;
44613 char * kwnames[] = {
44614 (char *) "self",(char *) "pos", NULL
44615 };
44616
44617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
44618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44619 if (!SWIG_IsOK(res1)) {
44620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Remove" "', expected argument " "1"" of type '" "wxMenuBar *""'");
44621 }
44622 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44623 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44624 if (!SWIG_IsOK(ecode2)) {
44625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_Remove" "', expected argument " "2"" of type '" "size_t""'");
44626 }
44627 arg2 = static_cast< size_t >(val2);
44628 {
44629 PyThreadState* __tstate = wxPyBeginAllowThreads();
44630 result = (wxMenu *)(arg1)->Remove(arg2);
44631 wxPyEndAllowThreads(__tstate);
44632 if (PyErr_Occurred()) SWIG_fail;
44633 }
44634 {
44635 resultobj = wxPyMake_wxObject(result, 0);
44636 }
44637 return resultobj;
44638fail:
44639 return NULL;
44640}
44641
44642
44643SWIGINTERN PyObject *_wrap_MenuBar_EnableTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44644 PyObject *resultobj = 0;
44645 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44646 size_t arg2 ;
44647 bool arg3 ;
44648 void *argp1 = 0 ;
44649 int res1 = 0 ;
44650 size_t val2 ;
44651 int ecode2 = 0 ;
44652 bool val3 ;
44653 int ecode3 = 0 ;
44654 PyObject * obj0 = 0 ;
44655 PyObject * obj1 = 0 ;
44656 PyObject * obj2 = 0 ;
44657 char * kwnames[] = {
44658 (char *) "self",(char *) "pos",(char *) "enable", NULL
44659 };
44660
44661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
44662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44663 if (!SWIG_IsOK(res1)) {
44664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_EnableTop" "', expected argument " "1"" of type '" "wxMenuBar *""'");
44665 }
44666 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44667 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44668 if (!SWIG_IsOK(ecode2)) {
44669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_EnableTop" "', expected argument " "2"" of type '" "size_t""'");
44670 }
44671 arg2 = static_cast< size_t >(val2);
44672 ecode3 = SWIG_AsVal_bool(obj2, &val3);
44673 if (!SWIG_IsOK(ecode3)) {
44674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MenuBar_EnableTop" "', expected argument " "3"" of type '" "bool""'");
44675 }
44676 arg3 = static_cast< bool >(val3);
44677 {
44678 PyThreadState* __tstate = wxPyBeginAllowThreads();
44679 (arg1)->EnableTop(arg2,arg3);
44680 wxPyEndAllowThreads(__tstate);
44681 if (PyErr_Occurred()) SWIG_fail;
44682 }
44683 resultobj = SWIG_Py_Void();
44684 return resultobj;
44685fail:
44686 return NULL;
44687}
44688
44689
44690SWIGINTERN PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44691 PyObject *resultobj = 0;
44692 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44693 size_t arg2 ;
44694 bool result;
44695 void *argp1 = 0 ;
44696 int res1 = 0 ;
44697 size_t val2 ;
44698 int ecode2 = 0 ;
44699 PyObject * obj0 = 0 ;
44700 PyObject * obj1 = 0 ;
44701 char * kwnames[] = {
44702 (char *) "self",(char *) "pos", NULL
44703 };
44704
44705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) SWIG_fail;
44706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44707 if (!SWIG_IsOK(res1)) {
44708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_IsEnabledTop" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
44709 }
44710 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44711 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44712 if (!SWIG_IsOK(ecode2)) {
44713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_IsEnabledTop" "', expected argument " "2"" of type '" "size_t""'");
44714 }
44715 arg2 = static_cast< size_t >(val2);
44716 {
44717 PyThreadState* __tstate = wxPyBeginAllowThreads();
44718 result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2);
44719 wxPyEndAllowThreads(__tstate);
44720 if (PyErr_Occurred()) SWIG_fail;
44721 }
44722 {
44723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44724 }
44725 return resultobj;
44726fail:
44727 return NULL;
44728}
44729
44730
44731SWIGINTERN PyObject *_wrap_MenuBar_SetLabelTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44732 PyObject *resultobj = 0;
44733 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44734 size_t arg2 ;
44735 wxString *arg3 = 0 ;
44736 void *argp1 = 0 ;
44737 int res1 = 0 ;
44738 size_t val2 ;
44739 int ecode2 = 0 ;
44740 bool temp3 = false ;
44741 PyObject * obj0 = 0 ;
44742 PyObject * obj1 = 0 ;
44743 PyObject * obj2 = 0 ;
44744 char * kwnames[] = {
44745 (char *) "self",(char *) "pos",(char *) "label", NULL
44746 };
44747
44748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
44749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44750 if (!SWIG_IsOK(res1)) {
44751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_SetLabelTop" "', expected argument " "1"" of type '" "wxMenuBar *""'");
44752 }
44753 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44754 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44755 if (!SWIG_IsOK(ecode2)) {
44756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_SetLabelTop" "', expected argument " "2"" of type '" "size_t""'");
44757 }
44758 arg2 = static_cast< size_t >(val2);
44759 {
44760 arg3 = wxString_in_helper(obj2);
44761 if (arg3 == NULL) SWIG_fail;
44762 temp3 = true;
44763 }
44764 {
44765 PyThreadState* __tstate = wxPyBeginAllowThreads();
44766 (arg1)->SetLabelTop(arg2,(wxString const &)*arg3);
44767 wxPyEndAllowThreads(__tstate);
44768 if (PyErr_Occurred()) SWIG_fail;
44769 }
44770 resultobj = SWIG_Py_Void();
44771 {
44772 if (temp3)
44773 delete arg3;
44774 }
44775 return resultobj;
44776fail:
44777 {
44778 if (temp3)
44779 delete arg3;
44780 }
44781 return NULL;
44782}
44783
44784
44785SWIGINTERN PyObject *_wrap_MenuBar_GetLabelTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44786 PyObject *resultobj = 0;
44787 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44788 size_t arg2 ;
44789 wxString result;
44790 void *argp1 = 0 ;
44791 int res1 = 0 ;
44792 size_t val2 ;
44793 int ecode2 = 0 ;
44794 PyObject * obj0 = 0 ;
44795 PyObject * obj1 = 0 ;
44796 char * kwnames[] = {
44797 (char *) "self",(char *) "pos", NULL
44798 };
44799
44800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) SWIG_fail;
44801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44802 if (!SWIG_IsOK(res1)) {
44803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetLabelTop" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
44804 }
44805 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44806 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44807 if (!SWIG_IsOK(ecode2)) {
44808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_GetLabelTop" "', expected argument " "2"" of type '" "size_t""'");
44809 }
44810 arg2 = static_cast< size_t >(val2);
44811 {
44812 PyThreadState* __tstate = wxPyBeginAllowThreads();
44813 result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2);
44814 wxPyEndAllowThreads(__tstate);
44815 if (PyErr_Occurred()) SWIG_fail;
44816 }
44817 {
44818#if wxUSE_UNICODE
44819 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44820#else
44821 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44822#endif
44823 }
44824 return resultobj;
44825fail:
44826 return NULL;
44827}
44828
44829
44830SWIGINTERN PyObject *_wrap_MenuBar_FindMenuItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44831 PyObject *resultobj = 0;
44832 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44833 wxString *arg2 = 0 ;
44834 wxString *arg3 = 0 ;
44835 int result;
44836 void *argp1 = 0 ;
44837 int res1 = 0 ;
44838 bool temp2 = false ;
44839 bool temp3 = false ;
44840 PyObject * obj0 = 0 ;
44841 PyObject * obj1 = 0 ;
44842 PyObject * obj2 = 0 ;
44843 char * kwnames[] = {
44844 (char *) "self",(char *) "menu",(char *) "item", NULL
44845 };
44846
44847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
44848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44849 if (!SWIG_IsOK(res1)) {
44850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_FindMenuItem" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
44851 }
44852 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44853 {
44854 arg2 = wxString_in_helper(obj1);
44855 if (arg2 == NULL) SWIG_fail;
44856 temp2 = true;
44857 }
44858 {
44859 arg3 = wxString_in_helper(obj2);
44860 if (arg3 == NULL) SWIG_fail;
44861 temp3 = true;
44862 }
44863 {
44864 PyThreadState* __tstate = wxPyBeginAllowThreads();
44865 result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3);
44866 wxPyEndAllowThreads(__tstate);
44867 if (PyErr_Occurred()) SWIG_fail;
44868 }
44869 resultobj = SWIG_From_int(static_cast< int >(result));
44870 {
44871 if (temp2)
44872 delete arg2;
44873 }
44874 {
44875 if (temp3)
44876 delete arg3;
44877 }
44878 return resultobj;
44879fail:
44880 {
44881 if (temp2)
44882 delete arg2;
44883 }
44884 {
44885 if (temp3)
44886 delete arg3;
44887 }
44888 return NULL;
44889}
44890
44891
44892SWIGINTERN PyObject *_wrap_MenuBar_FindItemById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44893 PyObject *resultobj = 0;
44894 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44895 int arg2 ;
44896 wxMenuItem *result = 0 ;
44897 void *argp1 = 0 ;
44898 int res1 = 0 ;
44899 int val2 ;
44900 int ecode2 = 0 ;
44901 PyObject * obj0 = 0 ;
44902 PyObject * obj1 = 0 ;
44903 char * kwnames[] = {
44904 (char *) "self",(char *) "id", NULL
44905 };
44906
44907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) SWIG_fail;
44908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44909 if (!SWIG_IsOK(res1)) {
44910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_FindItemById" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
44911 }
44912 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44913 ecode2 = SWIG_AsVal_int(obj1, &val2);
44914 if (!SWIG_IsOK(ecode2)) {
44915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_FindItemById" "', expected argument " "2"" of type '" "int""'");
44916 }
44917 arg2 = static_cast< int >(val2);
44918 {
44919 PyThreadState* __tstate = wxPyBeginAllowThreads();
44920 result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2);
44921 wxPyEndAllowThreads(__tstate);
44922 if (PyErr_Occurred()) SWIG_fail;
44923 }
44924 {
44925 resultobj = wxPyMake_wxObject(result, (bool)0);
44926 }
44927 return resultobj;
44928fail:
44929 return NULL;
44930}
44931
44932
44933SWIGINTERN PyObject *_wrap_MenuBar_FindMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44934 PyObject *resultobj = 0;
44935 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44936 wxString *arg2 = 0 ;
44937 int result;
44938 void *argp1 = 0 ;
44939 int res1 = 0 ;
44940 bool temp2 = false ;
44941 PyObject * obj0 = 0 ;
44942 PyObject * obj1 = 0 ;
44943 char * kwnames[] = {
44944 (char *) "self",(char *) "title", NULL
44945 };
44946
44947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) SWIG_fail;
44948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44949 if (!SWIG_IsOK(res1)) {
44950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_FindMenu" "', expected argument " "1"" of type '" "wxMenuBar *""'");
44951 }
44952 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44953 {
44954 arg2 = wxString_in_helper(obj1);
44955 if (arg2 == NULL) SWIG_fail;
44956 temp2 = true;
44957 }
44958 {
44959 PyThreadState* __tstate = wxPyBeginAllowThreads();
44960 result = (int)(arg1)->FindMenu((wxString const &)*arg2);
44961 wxPyEndAllowThreads(__tstate);
44962 if (PyErr_Occurred()) SWIG_fail;
44963 }
44964 resultobj = SWIG_From_int(static_cast< int >(result));
44965 {
44966 if (temp2)
44967 delete arg2;
44968 }
44969 return resultobj;
44970fail:
44971 {
44972 if (temp2)
44973 delete arg2;
44974 }
44975 return NULL;
44976}
44977
44978
44979SWIGINTERN PyObject *_wrap_MenuBar_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44980 PyObject *resultobj = 0;
44981 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44982 int arg2 ;
44983 bool arg3 ;
44984 void *argp1 = 0 ;
44985 int res1 = 0 ;
44986 int val2 ;
44987 int ecode2 = 0 ;
44988 bool val3 ;
44989 int ecode3 = 0 ;
44990 PyObject * obj0 = 0 ;
44991 PyObject * obj1 = 0 ;
44992 PyObject * obj2 = 0 ;
44993 char * kwnames[] = {
44994 (char *) "self",(char *) "id",(char *) "enable", NULL
44995 };
44996
44997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
44998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44999 if (!SWIG_IsOK(res1)) {
45000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Enable" "', expected argument " "1"" of type '" "wxMenuBar *""'");
45001 }
45002 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45003 ecode2 = SWIG_AsVal_int(obj1, &val2);
45004 if (!SWIG_IsOK(ecode2)) {
45005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_Enable" "', expected argument " "2"" of type '" "int""'");
45006 }
45007 arg2 = static_cast< int >(val2);
45008 ecode3 = SWIG_AsVal_bool(obj2, &val3);
45009 if (!SWIG_IsOK(ecode3)) {
45010 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MenuBar_Enable" "', expected argument " "3"" of type '" "bool""'");
45011 }
45012 arg3 = static_cast< bool >(val3);
45013 {
45014 PyThreadState* __tstate = wxPyBeginAllowThreads();
45015 (arg1)->Enable(arg2,arg3);
45016 wxPyEndAllowThreads(__tstate);
45017 if (PyErr_Occurred()) SWIG_fail;
45018 }
45019 resultobj = SWIG_Py_Void();
45020 return resultobj;
45021fail:
45022 return NULL;
45023}
45024
45025
45026SWIGINTERN PyObject *_wrap_MenuBar_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45027 PyObject *resultobj = 0;
45028 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45029 int arg2 ;
45030 bool arg3 ;
45031 void *argp1 = 0 ;
45032 int res1 = 0 ;
45033 int val2 ;
45034 int ecode2 = 0 ;
45035 bool val3 ;
45036 int ecode3 = 0 ;
45037 PyObject * obj0 = 0 ;
45038 PyObject * obj1 = 0 ;
45039 PyObject * obj2 = 0 ;
45040 char * kwnames[] = {
45041 (char *) "self",(char *) "id",(char *) "check", NULL
45042 };
45043
45044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45046 if (!SWIG_IsOK(res1)) {
45047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Check" "', expected argument " "1"" of type '" "wxMenuBar *""'");
45048 }
45049 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45050 ecode2 = SWIG_AsVal_int(obj1, &val2);
45051 if (!SWIG_IsOK(ecode2)) {
45052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_Check" "', expected argument " "2"" of type '" "int""'");
45053 }
45054 arg2 = static_cast< int >(val2);
45055 ecode3 = SWIG_AsVal_bool(obj2, &val3);
45056 if (!SWIG_IsOK(ecode3)) {
45057 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MenuBar_Check" "', expected argument " "3"" of type '" "bool""'");
45058 }
45059 arg3 = static_cast< bool >(val3);
45060 {
45061 PyThreadState* __tstate = wxPyBeginAllowThreads();
45062 (arg1)->Check(arg2,arg3);
45063 wxPyEndAllowThreads(__tstate);
45064 if (PyErr_Occurred()) SWIG_fail;
45065 }
45066 resultobj = SWIG_Py_Void();
45067 return resultobj;
45068fail:
45069 return NULL;
45070}
45071
45072
45073SWIGINTERN PyObject *_wrap_MenuBar_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45074 PyObject *resultobj = 0;
45075 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45076 int arg2 ;
45077 bool result;
45078 void *argp1 = 0 ;
45079 int res1 = 0 ;
45080 int val2 ;
45081 int ecode2 = 0 ;
45082 PyObject * obj0 = 0 ;
45083 PyObject * obj1 = 0 ;
45084 char * kwnames[] = {
45085 (char *) "self",(char *) "id", NULL
45086 };
45087
45088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
45089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45090 if (!SWIG_IsOK(res1)) {
45091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_IsChecked" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
45092 }
45093 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45094 ecode2 = SWIG_AsVal_int(obj1, &val2);
45095 if (!SWIG_IsOK(ecode2)) {
45096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_IsChecked" "', expected argument " "2"" of type '" "int""'");
45097 }
45098 arg2 = static_cast< int >(val2);
45099 {
45100 PyThreadState* __tstate = wxPyBeginAllowThreads();
45101 result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2);
45102 wxPyEndAllowThreads(__tstate);
45103 if (PyErr_Occurred()) SWIG_fail;
45104 }
45105 {
45106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45107 }
45108 return resultobj;
45109fail:
45110 return NULL;
45111}
45112
45113
45114SWIGINTERN PyObject *_wrap_MenuBar_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45115 PyObject *resultobj = 0;
45116 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45117 int arg2 ;
45118 bool result;
45119 void *argp1 = 0 ;
45120 int res1 = 0 ;
45121 int val2 ;
45122 int ecode2 = 0 ;
45123 PyObject * obj0 = 0 ;
45124 PyObject * obj1 = 0 ;
45125 char * kwnames[] = {
45126 (char *) "self",(char *) "id", NULL
45127 };
45128
45129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
45130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45131 if (!SWIG_IsOK(res1)) {
45132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_IsEnabled" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
45133 }
45134 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45135 ecode2 = SWIG_AsVal_int(obj1, &val2);
45136 if (!SWIG_IsOK(ecode2)) {
45137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_IsEnabled" "', expected argument " "2"" of type '" "int""'");
45138 }
45139 arg2 = static_cast< int >(val2);
45140 {
45141 PyThreadState* __tstate = wxPyBeginAllowThreads();
45142 result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2);
45143 wxPyEndAllowThreads(__tstate);
45144 if (PyErr_Occurred()) SWIG_fail;
45145 }
45146 {
45147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45148 }
45149 return resultobj;
45150fail:
45151 return NULL;
45152}
45153
45154
45155SWIGINTERN PyObject *_wrap_MenuBar_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45156 PyObject *resultobj = 0;
45157 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45158 int arg2 ;
45159 wxString *arg3 = 0 ;
45160 void *argp1 = 0 ;
45161 int res1 = 0 ;
45162 int val2 ;
45163 int ecode2 = 0 ;
45164 bool temp3 = false ;
45165 PyObject * obj0 = 0 ;
45166 PyObject * obj1 = 0 ;
45167 PyObject * obj2 = 0 ;
45168 char * kwnames[] = {
45169 (char *) "self",(char *) "id",(char *) "label", NULL
45170 };
45171
45172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45174 if (!SWIG_IsOK(res1)) {
45175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_SetLabel" "', expected argument " "1"" of type '" "wxMenuBar *""'");
45176 }
45177 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45178 ecode2 = SWIG_AsVal_int(obj1, &val2);
45179 if (!SWIG_IsOK(ecode2)) {
45180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_SetLabel" "', expected argument " "2"" of type '" "int""'");
45181 }
45182 arg2 = static_cast< int >(val2);
45183 {
45184 arg3 = wxString_in_helper(obj2);
45185 if (arg3 == NULL) SWIG_fail;
45186 temp3 = true;
45187 }
45188 {
45189 PyThreadState* __tstate = wxPyBeginAllowThreads();
45190 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
45191 wxPyEndAllowThreads(__tstate);
45192 if (PyErr_Occurred()) SWIG_fail;
45193 }
45194 resultobj = SWIG_Py_Void();
45195 {
45196 if (temp3)
45197 delete arg3;
45198 }
45199 return resultobj;
45200fail:
45201 {
45202 if (temp3)
45203 delete arg3;
45204 }
45205 return NULL;
45206}
45207
45208
45209SWIGINTERN PyObject *_wrap_MenuBar_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45210 PyObject *resultobj = 0;
45211 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45212 int arg2 ;
45213 wxString result;
45214 void *argp1 = 0 ;
45215 int res1 = 0 ;
45216 int val2 ;
45217 int ecode2 = 0 ;
45218 PyObject * obj0 = 0 ;
45219 PyObject * obj1 = 0 ;
45220 char * kwnames[] = {
45221 (char *) "self",(char *) "id", NULL
45222 };
45223
45224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
45225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45226 if (!SWIG_IsOK(res1)) {
45227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetLabel" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
45228 }
45229 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45230 ecode2 = SWIG_AsVal_int(obj1, &val2);
45231 if (!SWIG_IsOK(ecode2)) {
45232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_GetLabel" "', expected argument " "2"" of type '" "int""'");
45233 }
45234 arg2 = static_cast< int >(val2);
45235 {
45236 PyThreadState* __tstate = wxPyBeginAllowThreads();
45237 result = ((wxMenuBar const *)arg1)->GetLabel(arg2);
45238 wxPyEndAllowThreads(__tstate);
45239 if (PyErr_Occurred()) SWIG_fail;
45240 }
45241 {
45242#if wxUSE_UNICODE
45243 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45244#else
45245 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45246#endif
45247 }
45248 return resultobj;
45249fail:
45250 return NULL;
45251}
45252
45253
45254SWIGINTERN PyObject *_wrap_MenuBar_SetHelpString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45255 PyObject *resultobj = 0;
45256 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45257 int arg2 ;
45258 wxString *arg3 = 0 ;
45259 void *argp1 = 0 ;
45260 int res1 = 0 ;
45261 int val2 ;
45262 int ecode2 = 0 ;
45263 bool temp3 = false ;
45264 PyObject * obj0 = 0 ;
45265 PyObject * obj1 = 0 ;
45266 PyObject * obj2 = 0 ;
45267 char * kwnames[] = {
45268 (char *) "self",(char *) "id",(char *) "helpString", NULL
45269 };
45270
45271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45273 if (!SWIG_IsOK(res1)) {
45274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_SetHelpString" "', expected argument " "1"" of type '" "wxMenuBar *""'");
45275 }
45276 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45277 ecode2 = SWIG_AsVal_int(obj1, &val2);
45278 if (!SWIG_IsOK(ecode2)) {
45279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_SetHelpString" "', expected argument " "2"" of type '" "int""'");
45280 }
45281 arg2 = static_cast< int >(val2);
45282 {
45283 arg3 = wxString_in_helper(obj2);
45284 if (arg3 == NULL) SWIG_fail;
45285 temp3 = true;
45286 }
45287 {
45288 PyThreadState* __tstate = wxPyBeginAllowThreads();
45289 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
45290 wxPyEndAllowThreads(__tstate);
45291 if (PyErr_Occurred()) SWIG_fail;
45292 }
45293 resultobj = SWIG_Py_Void();
45294 {
45295 if (temp3)
45296 delete arg3;
45297 }
45298 return resultobj;
45299fail:
45300 {
45301 if (temp3)
45302 delete arg3;
45303 }
45304 return NULL;
45305}
45306
45307
45308SWIGINTERN PyObject *_wrap_MenuBar_GetHelpString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45309 PyObject *resultobj = 0;
45310 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45311 int arg2 ;
45312 wxString result;
45313 void *argp1 = 0 ;
45314 int res1 = 0 ;
45315 int val2 ;
45316 int ecode2 = 0 ;
45317 PyObject * obj0 = 0 ;
45318 PyObject * obj1 = 0 ;
45319 char * kwnames[] = {
45320 (char *) "self",(char *) "id", NULL
45321 };
45322
45323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) SWIG_fail;
45324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45325 if (!SWIG_IsOK(res1)) {
45326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetHelpString" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
45327 }
45328 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45329 ecode2 = SWIG_AsVal_int(obj1, &val2);
45330 if (!SWIG_IsOK(ecode2)) {
45331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_GetHelpString" "', expected argument " "2"" of type '" "int""'");
45332 }
45333 arg2 = static_cast< int >(val2);
45334 {
45335 PyThreadState* __tstate = wxPyBeginAllowThreads();
45336 result = ((wxMenuBar const *)arg1)->GetHelpString(arg2);
45337 wxPyEndAllowThreads(__tstate);
45338 if (PyErr_Occurred()) SWIG_fail;
45339 }
45340 {
45341#if wxUSE_UNICODE
45342 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45343#else
45344 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45345#endif
45346 }
45347 return resultobj;
45348fail:
45349 return NULL;
d55e5bfc
RD
45350}
45351
45352
1bd55598
RD
45353SWIGINTERN PyObject *_wrap_MenuBar_GetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45354 PyObject *resultobj = 0;
45355 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45356 wxFrame *result = 0 ;
45357 void *argp1 = 0 ;
45358 int res1 = 0 ;
45359 PyObject *swig_obj[1] ;
45360
45361 if (!args) SWIG_fail;
45362 swig_obj[0] = args;
45363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45364 if (!SWIG_IsOK(res1)) {
45365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetFrame" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
45366 }
45367 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45368 {
45369 PyThreadState* __tstate = wxPyBeginAllowThreads();
45370 result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame();
45371 wxPyEndAllowThreads(__tstate);
45372 if (PyErr_Occurred()) SWIG_fail;
45373 }
45374 {
45375 resultobj = wxPyMake_wxObject(result, (bool)0);
45376 }
45377 return resultobj;
45378fail:
45379 return NULL;
d55e5bfc
RD
45380}
45381
45382
1bd55598
RD
45383SWIGINTERN PyObject *_wrap_MenuBar_IsAttached(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45384 PyObject *resultobj = 0;
45385 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45386 bool result;
45387 void *argp1 = 0 ;
45388 int res1 = 0 ;
45389 PyObject *swig_obj[1] ;
45390
45391 if (!args) SWIG_fail;
45392 swig_obj[0] = args;
45393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45394 if (!SWIG_IsOK(res1)) {
45395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_IsAttached" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
45396 }
45397 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45398 {
45399 PyThreadState* __tstate = wxPyBeginAllowThreads();
45400 result = (bool)((wxMenuBar const *)arg1)->IsAttached();
45401 wxPyEndAllowThreads(__tstate);
45402 if (PyErr_Occurred()) SWIG_fail;
45403 }
45404 {
45405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45406 }
45407 return resultobj;
45408fail:
45409 return NULL;
45410}
45411
45412
45413SWIGINTERN PyObject *_wrap_MenuBar_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45414 PyObject *resultobj = 0;
45415 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45416 wxFrame *arg2 = (wxFrame *) 0 ;
45417 void *argp1 = 0 ;
45418 int res1 = 0 ;
45419 void *argp2 = 0 ;
45420 int res2 = 0 ;
45421 PyObject * obj0 = 0 ;
45422 PyObject * obj1 = 0 ;
45423 char * kwnames[] = {
45424 (char *) "self",(char *) "frame", NULL
45425 };
45426
45427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
45428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45429 if (!SWIG_IsOK(res1)) {
45430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Attach" "', expected argument " "1"" of type '" "wxMenuBar *""'");
45431 }
45432 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45433 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 );
45434 if (!SWIG_IsOK(res2)) {
45435 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuBar_Attach" "', expected argument " "2"" of type '" "wxFrame *""'");
45436 }
45437 arg2 = reinterpret_cast< wxFrame * >(argp2);
45438 {
45439 PyThreadState* __tstate = wxPyBeginAllowThreads();
45440 (arg1)->Attach(arg2);
45441 wxPyEndAllowThreads(__tstate);
45442 if (PyErr_Occurred()) SWIG_fail;
45443 }
45444 resultobj = SWIG_Py_Void();
45445 return resultobj;
45446fail:
45447 return NULL;
d55e5bfc
RD
45448}
45449
45450
1bd55598
RD
45451SWIGINTERN PyObject *_wrap_MenuBar_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45452 PyObject *resultobj = 0;
45453 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45454 void *argp1 = 0 ;
45455 int res1 = 0 ;
45456 PyObject *swig_obj[1] ;
45457
45458 if (!args) SWIG_fail;
45459 swig_obj[0] = args;
45460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45461 if (!SWIG_IsOK(res1)) {
45462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Detach" "', expected argument " "1"" of type '" "wxMenuBar *""'");
45463 }
45464 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45465 {
45466 PyThreadState* __tstate = wxPyBeginAllowThreads();
45467 (arg1)->Detach();
45468 wxPyEndAllowThreads(__tstate);
45469 if (PyErr_Occurred()) SWIG_fail;
45470 }
45471 resultobj = SWIG_Py_Void();
45472 return resultobj;
45473fail:
45474 return NULL;
d55e5bfc
RD
45475}
45476
45477
587d0f36
RD
45478SWIGINTERN PyObject *_wrap_MenuBar_UpdateMenus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45479 PyObject *resultobj = 0;
45480 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45481 void *argp1 = 0 ;
45482 int res1 = 0 ;
45483 PyObject *swig_obj[1] ;
45484
45485 if (!args) SWIG_fail;
45486 swig_obj[0] = args;
45487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45488 if (!SWIG_IsOK(res1)) {
45489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_UpdateMenus" "', expected argument " "1"" of type '" "wxMenuBar *""'");
45490 }
45491 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45492 {
45493 PyThreadState* __tstate = wxPyBeginAllowThreads();
45494 (arg1)->UpdateMenus();
45495 wxPyEndAllowThreads(__tstate);
45496 if (PyErr_Occurred()) SWIG_fail;
45497 }
45498 resultobj = SWIG_Py_Void();
45499 return resultobj;
45500fail:
45501 return NULL;
45502}
45503
45504
1bd55598
RD
45505SWIGINTERN PyObject *_wrap_MenuBar_SetAutoWindowMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45506 PyObject *resultobj = 0;
45507 bool arg1 ;
45508 bool val1 ;
45509 int ecode1 = 0 ;
45510 PyObject * obj0 = 0 ;
45511 char * kwnames[] = {
45512 (char *) "enable", NULL
45513 };
45514
45515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_SetAutoWindowMenu",kwnames,&obj0)) SWIG_fail;
45516 ecode1 = SWIG_AsVal_bool(obj0, &val1);
45517 if (!SWIG_IsOK(ecode1)) {
45518 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MenuBar_SetAutoWindowMenu" "', expected argument " "1"" of type '" "bool""'");
45519 }
45520 arg1 = static_cast< bool >(val1);
45521 {
45522 PyThreadState* __tstate = wxPyBeginAllowThreads();
45523 wxMenuBar::SetAutoWindowMenu(arg1);
45524 wxPyEndAllowThreads(__tstate);
45525 if (PyErr_Occurred()) SWIG_fail;
45526 }
45527 resultobj = SWIG_Py_Void();
45528 return resultobj;
45529fail:
45530 return NULL;
d55e5bfc
RD
45531}
45532
45533
1bd55598
RD
45534SWIGINTERN PyObject *_wrap_MenuBar_GetAutoWindowMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45535 PyObject *resultobj = 0;
45536 bool result;
45537
45538 if (!SWIG_Python_UnpackTuple(args,"MenuBar_GetAutoWindowMenu",0,0,0)) SWIG_fail;
45539 {
45540 PyThreadState* __tstate = wxPyBeginAllowThreads();
45541 result = (bool)wxMenuBar::GetAutoWindowMenu();
45542 wxPyEndAllowThreads(__tstate);
45543 if (PyErr_Occurred()) SWIG_fail;
45544 }
45545 {
45546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45547 }
45548 return resultobj;
45549fail:
45550 return NULL;
45551}
45552
45553
45554SWIGINTERN PyObject *MenuBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45555 PyObject *obj;
45556 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45557 SWIG_TypeNewClientData(SWIGTYPE_p_wxMenuBar, SWIG_NewClientData(obj));
45558 return SWIG_Py_Void();
45559}
45560
45561SWIGINTERN PyObject *MenuBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45562 return SWIG_Python_InitShadowInstance(args);
45563}
45564
45565SWIGINTERN PyObject *_wrap_new_MenuItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45566 PyObject *resultobj = 0;
45567 wxMenu *arg1 = (wxMenu *) NULL ;
45568 int arg2 = (int) wxID_ANY ;
45569 wxString const &arg3_defvalue = wxPyEmptyString ;
45570 wxString *arg3 = (wxString *) &arg3_defvalue ;
45571 wxString const &arg4_defvalue = wxPyEmptyString ;
45572 wxString *arg4 = (wxString *) &arg4_defvalue ;
45573 wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ;
45574 wxMenu *arg6 = (wxMenu *) NULL ;
45575 wxMenuItem *result = 0 ;
45576 void *argp1 = 0 ;
45577 int res1 = 0 ;
45578 int val2 ;
45579 int ecode2 = 0 ;
45580 bool temp3 = false ;
45581 bool temp4 = false ;
45582 int val5 ;
45583 int ecode5 = 0 ;
45584 void *argp6 = 0 ;
45585 int res6 = 0 ;
45586 PyObject * obj0 = 0 ;
45587 PyObject * obj1 = 0 ;
45588 PyObject * obj2 = 0 ;
45589 PyObject * obj3 = 0 ;
45590 PyObject * obj4 = 0 ;
45591 PyObject * obj5 = 0 ;
45592 char * kwnames[] = {
45593 (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL
45594 };
45595
45596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
45597 if (obj0) {
45598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
45599 if (!SWIG_IsOK(res1)) {
45600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MenuItem" "', expected argument " "1"" of type '" "wxMenu *""'");
d55e5bfc 45601 }
1bd55598
RD
45602 arg1 = reinterpret_cast< wxMenu * >(argp1);
45603 }
45604 if (obj1) {
45605 ecode2 = SWIG_AsVal_int(obj1, &val2);
45606 if (!SWIG_IsOK(ecode2)) {
45607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MenuItem" "', expected argument " "2"" of type '" "int""'");
45608 }
45609 arg2 = static_cast< int >(val2);
45610 }
45611 if (obj2) {
d55e5bfc 45612 {
1bd55598
RD
45613 arg3 = wxString_in_helper(obj2);
45614 if (arg3 == NULL) SWIG_fail;
45615 temp3 = true;
d55e5bfc 45616 }
1bd55598
RD
45617 }
45618 if (obj3) {
d55e5bfc 45619 {
1bd55598
RD
45620 arg4 = wxString_in_helper(obj3);
45621 if (arg4 == NULL) SWIG_fail;
45622 temp4 = true;
36ed4f51 45623 }
1bd55598
RD
45624 }
45625 if (obj4) {
45626 ecode5 = SWIG_AsVal_int(obj4, &val5);
45627 if (!SWIG_IsOK(ecode5)) {
45628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_MenuItem" "', expected argument " "5"" of type '" "wxItemKind""'");
45629 }
45630 arg5 = static_cast< wxItemKind >(val5);
45631 }
45632 if (obj5) {
45633 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxMenu, 0 | 0 );
45634 if (!SWIG_IsOK(res6)) {
45635 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_MenuItem" "', expected argument " "6"" of type '" "wxMenu *""'");
5cbf236d 45636 }
1bd55598
RD
45637 arg6 = reinterpret_cast< wxMenu * >(argp6);
45638 }
45639 {
45640 PyThreadState* __tstate = wxPyBeginAllowThreads();
45641 result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
45642 wxPyEndAllowThreads(__tstate);
45643 if (PyErr_Occurred()) SWIG_fail;
45644 }
3ecece7e 45645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMenuItem, SWIG_POINTER_NEW | 0 );
1bd55598
RD
45646 {
45647 if (temp3)
45648 delete arg3;
45649 }
45650 {
45651 if (temp4)
45652 delete arg4;
45653 }
45654 return resultobj;
45655fail:
45656 {
45657 if (temp3)
45658 delete arg3;
45659 }
45660 {
45661 if (temp4)
45662 delete arg4;
45663 }
45664 return NULL;
5cbf236d
RD
45665}
45666
45667
1bd55598
RD
45668SWIGINTERN PyObject *_wrap_delete_MenuItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45669 PyObject *resultobj = 0;
45670 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45671 void *argp1 = 0 ;
45672 int res1 = 0 ;
45673 PyObject *swig_obj[1] ;
45674
45675 if (!args) SWIG_fail;
45676 swig_obj[0] = args;
45677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, SWIG_POINTER_DISOWN | 0 );
45678 if (!SWIG_IsOK(res1)) {
45679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MenuItem" "', expected argument " "1"" of type '" "wxMenuItem *""'");
45680 }
45681 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45682 {
45683 PyThreadState* __tstate = wxPyBeginAllowThreads();
45684 delete arg1;
5cbf236d 45685
1bd55598
RD
45686 wxPyEndAllowThreads(__tstate);
45687 if (PyErr_Occurred()) SWIG_fail;
45688 }
45689 resultobj = SWIG_Py_Void();
45690 return resultobj;
45691fail:
45692 return NULL;
5cbf236d
RD
45693}
45694
45695
1bd55598
RD
45696SWIGINTERN PyObject *_wrap_MenuItem_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45697 PyObject *resultobj = 0;
45698 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45699 wxMenu *result = 0 ;
45700 void *argp1 = 0 ;
45701 int res1 = 0 ;
45702 PyObject *swig_obj[1] ;
45703
45704 if (!args) SWIG_fail;
45705 swig_obj[0] = args;
45706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
45707 if (!SWIG_IsOK(res1)) {
45708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetMenu" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
45709 }
45710 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45711 {
45712 PyThreadState* __tstate = wxPyBeginAllowThreads();
45713 result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu();
45714 wxPyEndAllowThreads(__tstate);
45715 if (PyErr_Occurred()) SWIG_fail;
45716 }
45717 {
45718 resultobj = wxPyMake_wxObject(result, 0);
45719 }
45720 return resultobj;
45721fail:
45722 return NULL;
45723}
45724
45725
45726SWIGINTERN PyObject *_wrap_MenuItem_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45727 PyObject *resultobj = 0;
45728 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45729 wxMenu *arg2 = (wxMenu *) 0 ;
45730 void *argp1 = 0 ;
45731 int res1 = 0 ;
45732 void *argp2 = 0 ;
45733 int res2 = 0 ;
45734 PyObject * obj0 = 0 ;
45735 PyObject * obj1 = 0 ;
45736 char * kwnames[] = {
45737 (char *) "self",(char *) "menu", NULL
45738 };
45739
45740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
45741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
45742 if (!SWIG_IsOK(res1)) {
45743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetMenu" "', expected argument " "1"" of type '" "wxMenuItem *""'");
45744 }
45745 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45746 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
45747 if (!SWIG_IsOK(res2)) {
45748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
45749 }
45750 arg2 = reinterpret_cast< wxMenu * >(argp2);
45751 {
45752 PyThreadState* __tstate = wxPyBeginAllowThreads();
45753 (arg1)->SetMenu(arg2);
45754 wxPyEndAllowThreads(__tstate);
45755 if (PyErr_Occurred()) SWIG_fail;
45756 }
45757 resultobj = SWIG_Py_Void();
45758 return resultobj;
45759fail:
45760 return NULL;
45761}
45762
45763
45764SWIGINTERN PyObject *_wrap_MenuItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45765 PyObject *resultobj = 0;
45766 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45767 int arg2 ;
45768 void *argp1 = 0 ;
45769 int res1 = 0 ;
45770 int val2 ;
45771 int ecode2 = 0 ;
45772 PyObject * obj0 = 0 ;
45773 PyObject * obj1 = 0 ;
45774 char * kwnames[] = {
45775 (char *) "self",(char *) "id", NULL
45776 };
45777
45778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
45779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
45780 if (!SWIG_IsOK(res1)) {
45781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetId" "', expected argument " "1"" of type '" "wxMenuItem *""'");
45782 }
45783 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45784 ecode2 = SWIG_AsVal_int(obj1, &val2);
45785 if (!SWIG_IsOK(ecode2)) {
45786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_SetId" "', expected argument " "2"" of type '" "int""'");
45787 }
45788 arg2 = static_cast< int >(val2);
45789 {
45790 PyThreadState* __tstate = wxPyBeginAllowThreads();
45791 (arg1)->SetId(arg2);
45792 wxPyEndAllowThreads(__tstate);
45793 if (PyErr_Occurred()) SWIG_fail;
45794 }
45795 resultobj = SWIG_Py_Void();
45796 return resultobj;
45797fail:
45798 return NULL;
b411df4a
RD
45799}
45800
45801
1bd55598
RD
45802SWIGINTERN PyObject *_wrap_MenuItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45803 PyObject *resultobj = 0;
45804 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45805 int result;
45806 void *argp1 = 0 ;
45807 int res1 = 0 ;
45808 PyObject *swig_obj[1] ;
45809
45810 if (!args) SWIG_fail;
45811 swig_obj[0] = args;
45812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
45813 if (!SWIG_IsOK(res1)) {
45814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetId" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
45815 }
45816 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45817 {
45818 PyThreadState* __tstate = wxPyBeginAllowThreads();
45819 result = (int)((wxMenuItem const *)arg1)->GetId();
45820 wxPyEndAllowThreads(__tstate);
45821 if (PyErr_Occurred()) SWIG_fail;
45822 }
45823 resultobj = SWIG_From_int(static_cast< int >(result));
45824 return resultobj;
45825fail:
45826 return NULL;
b411df4a
RD
45827}
45828
45829
1bd55598
RD
45830SWIGINTERN PyObject *_wrap_MenuItem_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45831 PyObject *resultobj = 0;
45832 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45833 bool result;
45834 void *argp1 = 0 ;
45835 int res1 = 0 ;
45836 PyObject *swig_obj[1] ;
45837
45838 if (!args) SWIG_fail;
45839 swig_obj[0] = args;
45840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
45841 if (!SWIG_IsOK(res1)) {
45842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsSeparator" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
45843 }
45844 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45845 {
45846 PyThreadState* __tstate = wxPyBeginAllowThreads();
45847 result = (bool)((wxMenuItem const *)arg1)->IsSeparator();
45848 wxPyEndAllowThreads(__tstate);
45849 if (PyErr_Occurred()) SWIG_fail;
45850 }
45851 {
45852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45853 }
45854 return resultobj;
45855fail:
45856 return NULL;
45857}
45858
45859
45860SWIGINTERN PyObject *_wrap_MenuItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45861 PyObject *resultobj = 0;
45862 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45863 wxString *arg2 = 0 ;
45864 void *argp1 = 0 ;
45865 int res1 = 0 ;
45866 bool temp2 = false ;
45867 PyObject * obj0 = 0 ;
45868 PyObject * obj1 = 0 ;
45869 char * kwnames[] = {
45870 (char *) "self",(char *) "str", NULL
45871 };
45872
45873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
45874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
45875 if (!SWIG_IsOK(res1)) {
45876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetText" "', expected argument " "1"" of type '" "wxMenuItem *""'");
45877 }
45878 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45879 {
45880 arg2 = wxString_in_helper(obj1);
45881 if (arg2 == NULL) SWIG_fail;
45882 temp2 = true;
45883 }
45884 {
45885 PyThreadState* __tstate = wxPyBeginAllowThreads();
45886 (arg1)->SetText((wxString const &)*arg2);
45887 wxPyEndAllowThreads(__tstate);
45888 if (PyErr_Occurred()) SWIG_fail;
45889 }
45890 resultobj = SWIG_Py_Void();
45891 {
45892 if (temp2)
45893 delete arg2;
45894 }
45895 return resultobj;
45896fail:
45897 {
45898 if (temp2)
45899 delete arg2;
45900 }
45901 return NULL;
b411df4a
RD
45902}
45903
45904
1bd55598
RD
45905SWIGINTERN PyObject *_wrap_MenuItem_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45906 PyObject *resultobj = 0;
45907 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45908 wxString result;
45909 void *argp1 = 0 ;
45910 int res1 = 0 ;
45911 PyObject *swig_obj[1] ;
45912
45913 if (!args) SWIG_fail;
45914 swig_obj[0] = args;
45915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
45916 if (!SWIG_IsOK(res1)) {
45917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetLabel" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
45918 }
45919 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45920 {
45921 PyThreadState* __tstate = wxPyBeginAllowThreads();
45922 result = ((wxMenuItem const *)arg1)->GetLabel();
45923 wxPyEndAllowThreads(__tstate);
45924 if (PyErr_Occurred()) SWIG_fail;
45925 }
45926 {
45927#if wxUSE_UNICODE
45928 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45929#else
45930 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45931#endif
45932 }
45933 return resultobj;
45934fail:
45935 return NULL;
b411df4a
RD
45936}
45937
45938
1bd55598
RD
45939SWIGINTERN PyObject *_wrap_MenuItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45940 PyObject *resultobj = 0;
45941 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45942 wxString *result = 0 ;
45943 void *argp1 = 0 ;
45944 int res1 = 0 ;
45945 PyObject *swig_obj[1] ;
45946
45947 if (!args) SWIG_fail;
45948 swig_obj[0] = args;
45949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
45950 if (!SWIG_IsOK(res1)) {
45951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetText" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
45952 }
45953 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45954 {
45955 PyThreadState* __tstate = wxPyBeginAllowThreads();
b411df4a 45956 {
1bd55598
RD
45957 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText();
45958 result = (wxString *) &_result_ref;
b411df4a 45959 }
1bd55598
RD
45960 wxPyEndAllowThreads(__tstate);
45961 if (PyErr_Occurred()) SWIG_fail;
45962 }
45963 {
45964#if wxUSE_UNICODE
45965 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
45966#else
45967 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
45968#endif
45969 }
45970 return resultobj;
45971fail:
45972 return NULL;
b411df4a
RD
45973}
45974
45975
1bd55598
RD
45976SWIGINTERN PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45977 PyObject *resultobj = 0;
45978 wxString *arg1 = 0 ;
45979 wxString result;
45980 bool temp1 = false ;
45981 PyObject * obj0 = 0 ;
45982 char * kwnames[] = {
45983 (char *) "text", NULL
45984 };
45985
45986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) SWIG_fail;
45987 {
45988 arg1 = wxString_in_helper(obj0);
45989 if (arg1 == NULL) SWIG_fail;
45990 temp1 = true;
45991 }
45992 {
45993 PyThreadState* __tstate = wxPyBeginAllowThreads();
45994 result = wxMenuItem::GetLabelFromText((wxString const &)*arg1);
45995 wxPyEndAllowThreads(__tstate);
45996 if (PyErr_Occurred()) SWIG_fail;
45997 }
45998 {
45999#if wxUSE_UNICODE
46000 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
46001#else
46002 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
46003#endif
46004 }
46005 {
46006 if (temp1)
46007 delete arg1;
46008 }
46009 return resultobj;
46010fail:
46011 {
46012 if (temp1)
46013 delete arg1;
46014 }
46015 return NULL;
b411df4a
RD
46016}
46017
46018
1bd55598
RD
46019SWIGINTERN PyObject *_wrap_MenuItem_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46020 PyObject *resultobj = 0;
46021 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46022 wxItemKind result;
46023 void *argp1 = 0 ;
46024 int res1 = 0 ;
46025 PyObject *swig_obj[1] ;
46026
46027 if (!args) SWIG_fail;
46028 swig_obj[0] = args;
46029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46030 if (!SWIG_IsOK(res1)) {
46031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetKind" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46032 }
46033 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46034 {
46035 PyThreadState* __tstate = wxPyBeginAllowThreads();
46036 result = (wxItemKind)((wxMenuItem const *)arg1)->GetKind();
46037 wxPyEndAllowThreads(__tstate);
46038 if (PyErr_Occurred()) SWIG_fail;
46039 }
46040 resultobj = SWIG_From_int(static_cast< int >(result));
46041 return resultobj;
46042fail:
46043 return NULL;
46044}
46045
46046
46047SWIGINTERN PyObject *_wrap_MenuItem_SetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46048 PyObject *resultobj = 0;
46049 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46050 wxItemKind arg2 ;
46051 void *argp1 = 0 ;
46052 int res1 = 0 ;
46053 int val2 ;
46054 int ecode2 = 0 ;
46055 PyObject * obj0 = 0 ;
46056 PyObject * obj1 = 0 ;
46057 char * kwnames[] = {
46058 (char *) "self",(char *) "kind", NULL
46059 };
46060
46061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) SWIG_fail;
46062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46063 if (!SWIG_IsOK(res1)) {
46064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetKind" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46065 }
46066 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46067 ecode2 = SWIG_AsVal_int(obj1, &val2);
46068 if (!SWIG_IsOK(ecode2)) {
46069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_SetKind" "', expected argument " "2"" of type '" "wxItemKind""'");
46070 }
46071 arg2 = static_cast< wxItemKind >(val2);
46072 {
46073 PyThreadState* __tstate = wxPyBeginAllowThreads();
46074 (arg1)->SetKind(arg2);
46075 wxPyEndAllowThreads(__tstate);
46076 if (PyErr_Occurred()) SWIG_fail;
46077 }
46078 resultobj = SWIG_Py_Void();
46079 return resultobj;
46080fail:
46081 return NULL;
46082}
46083
46084
46085SWIGINTERN PyObject *_wrap_MenuItem_SetCheckable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46086 PyObject *resultobj = 0;
46087 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46088 bool arg2 ;
46089 void *argp1 = 0 ;
46090 int res1 = 0 ;
46091 bool val2 ;
46092 int ecode2 = 0 ;
46093 PyObject * obj0 = 0 ;
46094 PyObject * obj1 = 0 ;
46095 char * kwnames[] = {
46096 (char *) "self",(char *) "checkable", NULL
46097 };
46098
46099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) SWIG_fail;
46100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46101 if (!SWIG_IsOK(res1)) {
46102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetCheckable" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46103 }
46104 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46105 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46106 if (!SWIG_IsOK(ecode2)) {
46107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_SetCheckable" "', expected argument " "2"" of type '" "bool""'");
46108 }
46109 arg2 = static_cast< bool >(val2);
46110 {
46111 PyThreadState* __tstate = wxPyBeginAllowThreads();
46112 (arg1)->SetCheckable(arg2);
46113 wxPyEndAllowThreads(__tstate);
46114 if (PyErr_Occurred()) SWIG_fail;
46115 }
46116 resultobj = SWIG_Py_Void();
46117 return resultobj;
46118fail:
46119 return NULL;
b411df4a
RD
46120}
46121
46122
1bd55598
RD
46123SWIGINTERN PyObject *_wrap_MenuItem_IsCheckable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46124 PyObject *resultobj = 0;
46125 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46126 bool result;
46127 void *argp1 = 0 ;
46128 int res1 = 0 ;
46129 PyObject *swig_obj[1] ;
46130
46131 if (!args) SWIG_fail;
46132 swig_obj[0] = args;
46133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46134 if (!SWIG_IsOK(res1)) {
46135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsCheckable" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46136 }
46137 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46138 {
46139 PyThreadState* __tstate = wxPyBeginAllowThreads();
46140 result = (bool)((wxMenuItem const *)arg1)->IsCheckable();
46141 wxPyEndAllowThreads(__tstate);
46142 if (PyErr_Occurred()) SWIG_fail;
46143 }
46144 {
46145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46146 }
46147 return resultobj;
46148fail:
46149 return NULL;
b411df4a
RD
46150}
46151
46152
1bd55598
RD
46153SWIGINTERN PyObject *_wrap_MenuItem_IsSubMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46154 PyObject *resultobj = 0;
46155 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46156 bool result;
46157 void *argp1 = 0 ;
46158 int res1 = 0 ;
46159 PyObject *swig_obj[1] ;
46160
46161 if (!args) SWIG_fail;
46162 swig_obj[0] = args;
46163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46164 if (!SWIG_IsOK(res1)) {
46165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsSubMenu" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46166 }
46167 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46168 {
46169 PyThreadState* __tstate = wxPyBeginAllowThreads();
46170 result = (bool)((wxMenuItem const *)arg1)->IsSubMenu();
46171 wxPyEndAllowThreads(__tstate);
46172 if (PyErr_Occurred()) SWIG_fail;
46173 }
46174 {
46175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46176 }
46177 return resultobj;
46178fail:
46179 return NULL;
46180}
46181
46182
46183SWIGINTERN PyObject *_wrap_MenuItem_SetSubMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46184 PyObject *resultobj = 0;
46185 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46186 wxMenu *arg2 = (wxMenu *) 0 ;
46187 void *argp1 = 0 ;
46188 int res1 = 0 ;
46189 void *argp2 = 0 ;
46190 int res2 = 0 ;
46191 PyObject * obj0 = 0 ;
46192 PyObject * obj1 = 0 ;
46193 char * kwnames[] = {
46194 (char *) "self",(char *) "menu", NULL
46195 };
46196
46197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) SWIG_fail;
46198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46199 if (!SWIG_IsOK(res1)) {
46200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetSubMenu" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46201 }
46202 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46203 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
46204 if (!SWIG_IsOK(res2)) {
46205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetSubMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
46206 }
46207 arg2 = reinterpret_cast< wxMenu * >(argp2);
46208 {
46209 PyThreadState* __tstate = wxPyBeginAllowThreads();
46210 (arg1)->SetSubMenu(arg2);
46211 wxPyEndAllowThreads(__tstate);
46212 if (PyErr_Occurred()) SWIG_fail;
46213 }
46214 resultobj = SWIG_Py_Void();
46215 return resultobj;
46216fail:
46217 return NULL;
b411df4a
RD
46218}
46219
46220
1bd55598
RD
46221SWIGINTERN PyObject *_wrap_MenuItem_GetSubMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46222 PyObject *resultobj = 0;
46223 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46224 wxMenu *result = 0 ;
46225 void *argp1 = 0 ;
46226 int res1 = 0 ;
46227 PyObject *swig_obj[1] ;
46228
46229 if (!args) SWIG_fail;
46230 swig_obj[0] = args;
46231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46232 if (!SWIG_IsOK(res1)) {
46233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetSubMenu" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46234 }
46235 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46236 {
46237 PyThreadState* __tstate = wxPyBeginAllowThreads();
46238 result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu();
46239 wxPyEndAllowThreads(__tstate);
46240 if (PyErr_Occurred()) SWIG_fail;
46241 }
46242 {
46243 resultobj = wxPyMake_wxObject(result, 0);
46244 }
46245 return resultobj;
46246fail:
46247 return NULL;
46248}
46249
46250
46251SWIGINTERN PyObject *_wrap_MenuItem_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46252 PyObject *resultobj = 0;
46253 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46254 bool arg2 = (bool) true ;
46255 void *argp1 = 0 ;
46256 int res1 = 0 ;
46257 bool val2 ;
46258 int ecode2 = 0 ;
46259 PyObject * obj0 = 0 ;
46260 PyObject * obj1 = 0 ;
46261 char * kwnames[] = {
46262 (char *) "self",(char *) "enable", NULL
46263 };
46264
46265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
46266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46267 if (!SWIG_IsOK(res1)) {
46268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_Enable" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46269 }
46270 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46271 if (obj1) {
46272 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46273 if (!SWIG_IsOK(ecode2)) {
46274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_Enable" "', expected argument " "2"" of type '" "bool""'");
46275 }
46276 arg2 = static_cast< bool >(val2);
46277 }
46278 {
46279 PyThreadState* __tstate = wxPyBeginAllowThreads();
46280 (arg1)->Enable(arg2);
46281 wxPyEndAllowThreads(__tstate);
46282 if (PyErr_Occurred()) SWIG_fail;
46283 }
46284 resultobj = SWIG_Py_Void();
46285 return resultobj;
46286fail:
46287 return NULL;
32fe5131
RD
46288}
46289
46290
1bd55598
RD
46291SWIGINTERN PyObject *_wrap_MenuItem_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46292 PyObject *resultobj = 0;
46293 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46294 bool result;
46295 void *argp1 = 0 ;
46296 int res1 = 0 ;
46297 PyObject *swig_obj[1] ;
46298
46299 if (!args) SWIG_fail;
46300 swig_obj[0] = args;
46301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46302 if (!SWIG_IsOK(res1)) {
46303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsEnabled" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46304 }
46305 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46306 {
46307 PyThreadState* __tstate = wxPyBeginAllowThreads();
46308 result = (bool)((wxMenuItem const *)arg1)->IsEnabled();
46309 wxPyEndAllowThreads(__tstate);
46310 if (PyErr_Occurred()) SWIG_fail;
46311 }
46312 {
46313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46314 }
46315 return resultobj;
46316fail:
46317 return NULL;
46318}
46319
46320
46321SWIGINTERN PyObject *_wrap_MenuItem_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46322 PyObject *resultobj = 0;
46323 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46324 bool arg2 = (bool) true ;
46325 void *argp1 = 0 ;
46326 int res1 = 0 ;
46327 bool val2 ;
46328 int ecode2 = 0 ;
46329 PyObject * obj0 = 0 ;
46330 PyObject * obj1 = 0 ;
46331 char * kwnames[] = {
46332 (char *) "self",(char *) "check", NULL
46333 };
46334
46335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) SWIG_fail;
46336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46337 if (!SWIG_IsOK(res1)) {
46338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_Check" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46339 }
46340 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46341 if (obj1) {
46342 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46343 if (!SWIG_IsOK(ecode2)) {
46344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_Check" "', expected argument " "2"" of type '" "bool""'");
46345 }
46346 arg2 = static_cast< bool >(val2);
46347 }
46348 {
46349 PyThreadState* __tstate = wxPyBeginAllowThreads();
46350 (arg1)->Check(arg2);
46351 wxPyEndAllowThreads(__tstate);
46352 if (PyErr_Occurred()) SWIG_fail;
46353 }
46354 resultobj = SWIG_Py_Void();
46355 return resultobj;
46356fail:
46357 return NULL;
32fe5131
RD
46358}
46359
46360
1bd55598
RD
46361SWIGINTERN PyObject *_wrap_MenuItem_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46362 PyObject *resultobj = 0;
46363 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46364 bool result;
46365 void *argp1 = 0 ;
46366 int res1 = 0 ;
46367 PyObject *swig_obj[1] ;
46368
46369 if (!args) SWIG_fail;
46370 swig_obj[0] = args;
46371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46372 if (!SWIG_IsOK(res1)) {
46373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsChecked" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46374 }
46375 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46376 {
46377 PyThreadState* __tstate = wxPyBeginAllowThreads();
46378 result = (bool)((wxMenuItem const *)arg1)->IsChecked();
46379 wxPyEndAllowThreads(__tstate);
46380 if (PyErr_Occurred()) SWIG_fail;
46381 }
46382 {
46383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46384 }
46385 return resultobj;
46386fail:
46387 return NULL;
d55e5bfc
RD
46388}
46389
46390
1bd55598
RD
46391SWIGINTERN PyObject *_wrap_MenuItem_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46392 PyObject *resultobj = 0;
46393 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46394 void *argp1 = 0 ;
46395 int res1 = 0 ;
46396 PyObject *swig_obj[1] ;
46397
46398 if (!args) SWIG_fail;
46399 swig_obj[0] = args;
46400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46401 if (!SWIG_IsOK(res1)) {
46402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_Toggle" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46403 }
46404 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46405 {
46406 PyThreadState* __tstate = wxPyBeginAllowThreads();
46407 (arg1)->Toggle();
46408 wxPyEndAllowThreads(__tstate);
46409 if (PyErr_Occurred()) SWIG_fail;
46410 }
46411 resultobj = SWIG_Py_Void();
46412 return resultobj;
46413fail:
46414 return NULL;
46415}
46416
46417
46418SWIGINTERN PyObject *_wrap_MenuItem_SetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46419 PyObject *resultobj = 0;
46420 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46421 wxString *arg2 = 0 ;
46422 void *argp1 = 0 ;
46423 int res1 = 0 ;
46424 bool temp2 = false ;
46425 PyObject * obj0 = 0 ;
46426 PyObject * obj1 = 0 ;
46427 char * kwnames[] = {
46428 (char *) "self",(char *) "str", NULL
46429 };
46430
46431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
46432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46433 if (!SWIG_IsOK(res1)) {
46434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetHelp" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46435 }
46436 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46437 {
46438 arg2 = wxString_in_helper(obj1);
46439 if (arg2 == NULL) SWIG_fail;
46440 temp2 = true;
46441 }
46442 {
46443 PyThreadState* __tstate = wxPyBeginAllowThreads();
46444 (arg1)->SetHelp((wxString const &)*arg2);
46445 wxPyEndAllowThreads(__tstate);
46446 if (PyErr_Occurred()) SWIG_fail;
46447 }
46448 resultobj = SWIG_Py_Void();
46449 {
46450 if (temp2)
46451 delete arg2;
46452 }
46453 return resultobj;
46454fail:
46455 {
46456 if (temp2)
46457 delete arg2;
46458 }
46459 return NULL;
d55e5bfc
RD
46460}
46461
46462
1bd55598
RD
46463SWIGINTERN PyObject *_wrap_MenuItem_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46464 PyObject *resultobj = 0;
46465 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46466 wxString *result = 0 ;
46467 void *argp1 = 0 ;
46468 int res1 = 0 ;
46469 PyObject *swig_obj[1] ;
46470
46471 if (!args) SWIG_fail;
46472 swig_obj[0] = args;
46473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46474 if (!SWIG_IsOK(res1)) {
46475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetHelp" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46476 }
46477 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46478 {
46479 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 46480 {
1bd55598
RD
46481 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp();
46482 result = (wxString *) &_result_ref;
d55e5bfc 46483 }
1bd55598
RD
46484 wxPyEndAllowThreads(__tstate);
46485 if (PyErr_Occurred()) SWIG_fail;
46486 }
46487 {
46488#if wxUSE_UNICODE
46489 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
46490#else
46491 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
46492#endif
46493 }
46494 return resultobj;
46495fail:
46496 return NULL;
d55e5bfc
RD
46497}
46498
46499
1bd55598
RD
46500SWIGINTERN PyObject *_wrap_MenuItem_GetAccel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46501 PyObject *resultobj = 0;
46502 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46503 wxAcceleratorEntry *result = 0 ;
46504 void *argp1 = 0 ;
46505 int res1 = 0 ;
46506 PyObject *swig_obj[1] ;
46507
46508 if (!args) SWIG_fail;
46509 swig_obj[0] = args;
46510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46511 if (!SWIG_IsOK(res1)) {
46512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetAccel" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46513 }
46514 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46515 {
46516 PyThreadState* __tstate = wxPyBeginAllowThreads();
46517 result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel();
46518 wxPyEndAllowThreads(__tstate);
46519 if (PyErr_Occurred()) SWIG_fail;
46520 }
46521 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
46522 return resultobj;
46523fail:
46524 return NULL;
46525}
46526
46527
46528SWIGINTERN PyObject *_wrap_MenuItem_SetAccel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46529 PyObject *resultobj = 0;
46530 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46531 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
46532 void *argp1 = 0 ;
46533 int res1 = 0 ;
46534 void *argp2 = 0 ;
46535 int res2 = 0 ;
46536 PyObject * obj0 = 0 ;
46537 PyObject * obj1 = 0 ;
46538 char * kwnames[] = {
46539 (char *) "self",(char *) "accel", NULL
46540 };
46541
46542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) SWIG_fail;
46543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46544 if (!SWIG_IsOK(res1)) {
46545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetAccel" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46546 }
46547 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46548 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
46549 if (!SWIG_IsOK(res2)) {
46550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetAccel" "', expected argument " "2"" of type '" "wxAcceleratorEntry *""'");
46551 }
46552 arg2 = reinterpret_cast< wxAcceleratorEntry * >(argp2);
46553 {
46554 PyThreadState* __tstate = wxPyBeginAllowThreads();
46555 (arg1)->SetAccel(arg2);
46556 wxPyEndAllowThreads(__tstate);
46557 if (PyErr_Occurred()) SWIG_fail;
46558 }
46559 resultobj = SWIG_Py_Void();
46560 return resultobj;
46561fail:
46562 return NULL;
46563}
46564
46565
46566SWIGINTERN PyObject *_wrap_MenuItem_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46567 PyObject *resultobj = 0;
46568 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46569 wxBitmap *arg2 = 0 ;
46570 void *argp1 = 0 ;
46571 int res1 = 0 ;
46572 void *argp2 = 0 ;
46573 int res2 = 0 ;
46574 PyObject * obj0 = 0 ;
46575 PyObject * obj1 = 0 ;
46576 char * kwnames[] = {
46577 (char *) "self",(char *) "bitmap", NULL
46578 };
46579
46580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46582 if (!SWIG_IsOK(res1)) {
46583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetBitmap" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46584 }
46585 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46586 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46587 if (!SWIG_IsOK(res2)) {
46588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46589 }
46590 if (!argp2) {
46591 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MenuItem_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46592 }
46593 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46594 {
46595 PyThreadState* __tstate = wxPyBeginAllowThreads();
46596 (arg1)->SetBitmap((wxBitmap const &)*arg2);
46597 wxPyEndAllowThreads(__tstate);
46598 if (PyErr_Occurred()) SWIG_fail;
46599 }
46600 resultobj = SWIG_Py_Void();
46601 return resultobj;
46602fail:
46603 return NULL;
d55e5bfc
RD
46604}
46605
46606
1bd55598
RD
46607SWIGINTERN PyObject *_wrap_MenuItem_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46608 PyObject *resultobj = 0;
46609 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46610 wxBitmap *result = 0 ;
46611 void *argp1 = 0 ;
46612 int res1 = 0 ;
46613 PyObject *swig_obj[1] ;
46614
46615 if (!args) SWIG_fail;
46616 swig_obj[0] = args;
46617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46618 if (!SWIG_IsOK(res1)) {
46619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetBitmap" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46620 }
46621 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46622 {
46623 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 46624 {
1bd55598
RD
46625 wxBitmap const &_result_ref = (arg1)->GetBitmap();
46626 result = (wxBitmap *) &_result_ref;
36ed4f51 46627 }
1bd55598
RD
46628 wxPyEndAllowThreads(__tstate);
46629 if (PyErr_Occurred()) SWIG_fail;
46630 }
46631 {
46632 wxBitmap* resultptr = new wxBitmap(*result);
46633 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
46634 }
46635 return resultobj;
46636fail:
46637 return NULL;
46638}
46639
46640
46641SWIGINTERN PyObject *_wrap_MenuItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46642 PyObject *resultobj = 0;
46643 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46644 wxFont *arg2 = 0 ;
46645 void *argp1 = 0 ;
46646 int res1 = 0 ;
46647 void *argp2 = 0 ;
46648 int res2 = 0 ;
46649 PyObject * obj0 = 0 ;
46650 PyObject * obj1 = 0 ;
46651 char * kwnames[] = {
46652 (char *) "self",(char *) "font", NULL
46653 };
46654
46655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
46656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46657 if (!SWIG_IsOK(res1)) {
46658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetFont" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46659 }
46660 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46661 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
46662 if (!SWIG_IsOK(res2)) {
46663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
46664 }
46665 if (!argp2) {
46666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MenuItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
46667 }
46668 arg2 = reinterpret_cast< wxFont * >(argp2);
46669 {
46670 PyThreadState* __tstate = wxPyBeginAllowThreads();
46671 wxMenuItem_SetFont(arg1,(wxFont const &)*arg2);
46672 wxPyEndAllowThreads(__tstate);
46673 if (PyErr_Occurred()) SWIG_fail;
46674 }
46675 resultobj = SWIG_Py_Void();
46676 return resultobj;
46677fail:
46678 return NULL;
d55e5bfc
RD
46679}
46680
46681
1bd55598
RD
46682SWIGINTERN PyObject *_wrap_MenuItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46683 PyObject *resultobj = 0;
46684 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46685 wxFont result;
46686 void *argp1 = 0 ;
46687 int res1 = 0 ;
46688 PyObject *swig_obj[1] ;
46689
46690 if (!args) SWIG_fail;
46691 swig_obj[0] = args;
46692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46693 if (!SWIG_IsOK(res1)) {
46694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetFont" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46695 }
46696 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46697 {
46698 PyThreadState* __tstate = wxPyBeginAllowThreads();
46699 result = wxMenuItem_GetFont(arg1);
46700 wxPyEndAllowThreads(__tstate);
46701 if (PyErr_Occurred()) SWIG_fail;
46702 }
46703 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
46704 return resultobj;
46705fail:
46706 return NULL;
46707}
46708
46709
46710SWIGINTERN PyObject *_wrap_MenuItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46711 PyObject *resultobj = 0;
46712 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46713 wxColour *arg2 = 0 ;
46714 void *argp1 = 0 ;
46715 int res1 = 0 ;
46716 wxColour temp2 ;
46717 PyObject * obj0 = 0 ;
46718 PyObject * obj1 = 0 ;
46719 char * kwnames[] = {
46720 (char *) "self",(char *) "colText", NULL
46721 };
46722
46723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
46724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46725 if (!SWIG_IsOK(res1)) {
46726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetTextColour" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46727 }
46728 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46729 {
46730 arg2 = &temp2;
46731 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
46732 }
46733 {
46734 PyThreadState* __tstate = wxPyBeginAllowThreads();
46735 wxMenuItem_SetTextColour(arg1,(wxColour const &)*arg2);
46736 wxPyEndAllowThreads(__tstate);
46737 if (PyErr_Occurred()) SWIG_fail;
46738 }
46739 resultobj = SWIG_Py_Void();
46740 return resultobj;
46741fail:
46742 return NULL;
d55e5bfc
RD
46743}
46744
46745
1bd55598
RD
46746SWIGINTERN PyObject *_wrap_MenuItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46747 PyObject *resultobj = 0;
46748 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46749 wxColour result;
46750 void *argp1 = 0 ;
46751 int res1 = 0 ;
46752 PyObject *swig_obj[1] ;
46753
46754 if (!args) SWIG_fail;
46755 swig_obj[0] = args;
46756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46757 if (!SWIG_IsOK(res1)) {
46758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetTextColour" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46759 }
46760 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46761 {
46762 PyThreadState* __tstate = wxPyBeginAllowThreads();
46763 result = wxMenuItem_GetTextColour(arg1);
46764 wxPyEndAllowThreads(__tstate);
46765 if (PyErr_Occurred()) SWIG_fail;
46766 }
46767 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
46768 return resultobj;
46769fail:
46770 return NULL;
46771}
46772
46773
46774SWIGINTERN PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46775 PyObject *resultobj = 0;
46776 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46777 wxColour *arg2 = 0 ;
46778 void *argp1 = 0 ;
46779 int res1 = 0 ;
46780 wxColour temp2 ;
46781 PyObject * obj0 = 0 ;
46782 PyObject * obj1 = 0 ;
46783 char * kwnames[] = {
46784 (char *) "self",(char *) "colBack", NULL
46785 };
46786
46787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
46788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46789 if (!SWIG_IsOK(res1)) {
46790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46791 }
46792 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46793 {
46794 arg2 = &temp2;
46795 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
46796 }
46797 {
46798 PyThreadState* __tstate = wxPyBeginAllowThreads();
46799 wxMenuItem_SetBackgroundColour(arg1,(wxColour const &)*arg2);
46800 wxPyEndAllowThreads(__tstate);
46801 if (PyErr_Occurred()) SWIG_fail;
46802 }
46803 resultobj = SWIG_Py_Void();
46804 return resultobj;
46805fail:
46806 return NULL;
d55e5bfc 46807}
1bd55598
RD
46808
46809
46810SWIGINTERN PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46811 PyObject *resultobj = 0;
46812 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46813 wxColour result;
46814 void *argp1 = 0 ;
46815 int res1 = 0 ;
46816 PyObject *swig_obj[1] ;
46817
46818 if (!args) SWIG_fail;
46819 swig_obj[0] = args;
46820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46821 if (!SWIG_IsOK(res1)) {
46822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46823 }
46824 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46825 {
46826 PyThreadState* __tstate = wxPyBeginAllowThreads();
46827 result = wxMenuItem_GetBackgroundColour(arg1);
46828 wxPyEndAllowThreads(__tstate);
46829 if (PyErr_Occurred()) SWIG_fail;
46830 }
46831 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
46832 return resultobj;
46833fail:
46834 return NULL;
46835}
46836
46837
46838SWIGINTERN PyObject *_wrap_MenuItem_SetBitmaps(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46839 PyObject *resultobj = 0;
46840 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46841 wxBitmap *arg2 = 0 ;
46842 wxBitmap const &arg3_defvalue = wxNullBitmap ;
46843 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
46844 void *argp1 = 0 ;
46845 int res1 = 0 ;
46846 void *argp2 = 0 ;
46847 int res2 = 0 ;
46848 void *argp3 = 0 ;
46849 int res3 = 0 ;
46850 PyObject * obj0 = 0 ;
46851 PyObject * obj1 = 0 ;
46852 PyObject * obj2 = 0 ;
46853 char * kwnames[] = {
46854 (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL
46855 };
46856
46857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
46858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46859 if (!SWIG_IsOK(res1)) {
46860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetBitmaps" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46861 }
46862 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46863 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46864 if (!SWIG_IsOK(res2)) {
46865 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetBitmaps" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46866 }
46867 if (!argp2) {
46868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MenuItem_SetBitmaps" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46869 }
46870 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46871 if (obj2) {
46872 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
46873 if (!SWIG_IsOK(res3)) {
46874 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MenuItem_SetBitmaps" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 46875 }
1bd55598
RD
46876 if (!argp3) {
46877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MenuItem_SetBitmaps" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 46878 }
1bd55598
RD
46879 arg3 = reinterpret_cast< wxBitmap * >(argp3);
46880 }
46881 {
46882 PyThreadState* __tstate = wxPyBeginAllowThreads();
46883 wxMenuItem_SetBitmaps(arg1,(wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
46884 wxPyEndAllowThreads(__tstate);
46885 if (PyErr_Occurred()) SWIG_fail;
46886 }
46887 resultobj = SWIG_Py_Void();
46888 return resultobj;
46889fail:
46890 return NULL;
46891}
46892
46893
46894SWIGINTERN PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46895 PyObject *resultobj = 0;
46896 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46897 wxBitmap *arg2 = 0 ;
46898 void *argp1 = 0 ;
46899 int res1 = 0 ;
46900 void *argp2 = 0 ;
46901 int res2 = 0 ;
46902 PyObject * obj0 = 0 ;
46903 PyObject * obj1 = 0 ;
46904 char * kwnames[] = {
46905 (char *) "self",(char *) "bmpDisabled", NULL
46906 };
46907
46908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46910 if (!SWIG_IsOK(res1)) {
46911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46912 }
46913 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46914 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46915 if (!SWIG_IsOK(res2)) {
46916 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46917 }
46918 if (!argp2) {
46919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MenuItem_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46920 }
46921 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46922 {
46923 PyThreadState* __tstate = wxPyBeginAllowThreads();
46924 wxMenuItem_SetDisabledBitmap(arg1,(wxBitmap const &)*arg2);
46925 wxPyEndAllowThreads(__tstate);
46926 if (PyErr_Occurred()) SWIG_fail;
46927 }
46928 resultobj = SWIG_Py_Void();
46929 return resultobj;
46930fail:
46931 return NULL;
d55e5bfc
RD
46932}
46933
46934
1bd55598
RD
46935SWIGINTERN PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46936 PyObject *resultobj = 0;
46937 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46938 wxBitmap *result = 0 ;
46939 void *argp1 = 0 ;
46940 int res1 = 0 ;
46941 PyObject *swig_obj[1] ;
46942
46943 if (!args) SWIG_fail;
46944 swig_obj[0] = args;
46945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46946 if (!SWIG_IsOK(res1)) {
46947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46948 }
46949 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46950 {
46951 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 46952 {
1bd55598
RD
46953 wxBitmap const &_result_ref = wxMenuItem_GetDisabledBitmap((wxMenuItem const *)arg1);
46954 result = (wxBitmap *) &_result_ref;
d55e5bfc 46955 }
1bd55598
RD
46956 wxPyEndAllowThreads(__tstate);
46957 if (PyErr_Occurred()) SWIG_fail;
46958 }
46959 {
46960 wxBitmap* resultptr = new wxBitmap(*result);
46961 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
46962 }
46963 return resultobj;
46964fail:
46965 return NULL;
46966}
46967
46968
46969SWIGINTERN PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46970 PyObject *resultobj = 0;
46971 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46972 int arg2 ;
46973 void *argp1 = 0 ;
46974 int res1 = 0 ;
46975 int val2 ;
46976 int ecode2 = 0 ;
46977 PyObject * obj0 = 0 ;
46978 PyObject * obj1 = 0 ;
46979 char * kwnames[] = {
46980 (char *) "self",(char *) "nWidth", NULL
46981 };
46982
46983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) SWIG_fail;
46984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46985 if (!SWIG_IsOK(res1)) {
46986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetMarginWidth" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46987 }
46988 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46989 ecode2 = SWIG_AsVal_int(obj1, &val2);
46990 if (!SWIG_IsOK(ecode2)) {
46991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_SetMarginWidth" "', expected argument " "2"" of type '" "int""'");
46992 }
46993 arg2 = static_cast< int >(val2);
46994 {
46995 PyThreadState* __tstate = wxPyBeginAllowThreads();
46996 wxMenuItem_SetMarginWidth(arg1,arg2);
46997 wxPyEndAllowThreads(__tstate);
46998 if (PyErr_Occurred()) SWIG_fail;
46999 }
47000 resultobj = SWIG_Py_Void();
47001 return resultobj;
47002fail:
47003 return NULL;
d55e5bfc
RD
47004}
47005
47006
1bd55598
RD
47007SWIGINTERN PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47008 PyObject *resultobj = 0;
47009 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
47010 int result;
47011 void *argp1 = 0 ;
47012 int res1 = 0 ;
47013 PyObject *swig_obj[1] ;
47014
47015 if (!args) SWIG_fail;
47016 swig_obj[0] = args;
47017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
47018 if (!SWIG_IsOK(res1)) {
47019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetMarginWidth" "', expected argument " "1"" of type '" "wxMenuItem *""'");
47020 }
47021 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
47022 {
47023 PyThreadState* __tstate = wxPyBeginAllowThreads();
47024 result = (int)wxMenuItem_GetMarginWidth(arg1);
47025 wxPyEndAllowThreads(__tstate);
47026 if (PyErr_Occurred()) SWIG_fail;
47027 }
47028 resultobj = SWIG_From_int(static_cast< int >(result));
47029 return resultobj;
47030fail:
47031 return NULL;
d55e5bfc
RD
47032}
47033
47034
1bd55598
RD
47035SWIGINTERN PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47036 PyObject *resultobj = 0;
47037 int result;
47038
47039 if (!SWIG_Python_UnpackTuple(args,"MenuItem_GetDefaultMarginWidth",0,0,0)) SWIG_fail;
47040 {
47041 PyThreadState* __tstate = wxPyBeginAllowThreads();
47042 result = (int)wxMenuItem_GetDefaultMarginWidth();
47043 wxPyEndAllowThreads(__tstate);
47044 if (PyErr_Occurred()) SWIG_fail;
47045 }
47046 resultobj = SWIG_From_int(static_cast< int >(result));
47047 return resultobj;
47048fail:
47049 return NULL;
d55e5bfc 47050}
1bd55598
RD
47051
47052
47053SWIGINTERN PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47054 PyObject *resultobj = 0;
47055 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
47056 bool result;
47057 void *argp1 = 0 ;
47058 int res1 = 0 ;
47059 PyObject *swig_obj[1] ;
47060
47061 if (!args) SWIG_fail;
47062 swig_obj[0] = args;
47063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
47064 if (!SWIG_IsOK(res1)) {
47065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsOwnerDrawn" "', expected argument " "1"" of type '" "wxMenuItem *""'");
47066 }
47067 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
47068 {
47069 PyThreadState* __tstate = wxPyBeginAllowThreads();
47070 result = (bool)wxMenuItem_IsOwnerDrawn(arg1);
47071 wxPyEndAllowThreads(__tstate);
47072 if (PyErr_Occurred()) SWIG_fail;
47073 }
47074 {
47075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
47076 }
47077 return resultobj;
47078fail:
47079 return NULL;
47080}
47081
47082
47083SWIGINTERN PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47084 PyObject *resultobj = 0;
47085 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
47086 bool arg2 = (bool) true ;
47087 void *argp1 = 0 ;
47088 int res1 = 0 ;
47089 bool val2 ;
47090 int ecode2 = 0 ;
47091 PyObject * obj0 = 0 ;
47092 PyObject * obj1 = 0 ;
47093 char * kwnames[] = {
47094 (char *) "self",(char *) "ownerDrawn", NULL
47095 };
47096
47097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) SWIG_fail;
47098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
47099 if (!SWIG_IsOK(res1)) {
47100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetOwnerDrawn" "', expected argument " "1"" of type '" "wxMenuItem *""'");
47101 }
47102 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
47103 if (obj1) {
47104 ecode2 = SWIG_AsVal_bool(obj1, &val2);
47105 if (!SWIG_IsOK(ecode2)) {
47106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_SetOwnerDrawn" "', expected argument " "2"" of type '" "bool""'");
47107 }
47108 arg2 = static_cast< bool >(val2);
47109 }
47110 {
47111 PyThreadState* __tstate = wxPyBeginAllowThreads();
47112 wxMenuItem_SetOwnerDrawn(arg1,arg2);
47113 wxPyEndAllowThreads(__tstate);
47114 if (PyErr_Occurred()) SWIG_fail;
47115 }
47116 resultobj = SWIG_Py_Void();
47117 return resultobj;
47118fail:
47119 return NULL;
d55e5bfc
RD
47120}
47121
47122
1bd55598
RD
47123SWIGINTERN PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47124 PyObject *resultobj = 0;
47125 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
47126 void *argp1 = 0 ;
47127 int res1 = 0 ;
47128 PyObject *swig_obj[1] ;
47129
47130 if (!args) SWIG_fail;
47131 swig_obj[0] = args;
47132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
47133 if (!SWIG_IsOK(res1)) {
47134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_ResetOwnerDrawn" "', expected argument " "1"" of type '" "wxMenuItem *""'");
47135 }
47136 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
47137 {
47138 PyThreadState* __tstate = wxPyBeginAllowThreads();
47139 wxMenuItem_ResetOwnerDrawn(arg1);
47140 wxPyEndAllowThreads(__tstate);
47141 if (PyErr_Occurred()) SWIG_fail;
47142 }
47143 resultobj = SWIG_Py_Void();
47144 return resultobj;
47145fail:
47146 return NULL;
d55e5bfc
RD
47147}
47148
47149
1bd55598
RD
47150SWIGINTERN PyObject *MenuItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47151 PyObject *obj;
47152 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
47153 SWIG_TypeNewClientData(SWIGTYPE_p_wxMenuItem, SWIG_NewClientData(obj));
47154 return SWIG_Py_Void();
d55e5bfc
RD
47155}
47156
1bd55598
RD
47157SWIGINTERN PyObject *MenuItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47158 return SWIG_Python_InitShadowInstance(args);
47159}
d55e5bfc 47160
1bd55598
RD
47161SWIGINTERN int ControlNameStr_set(PyObject *) {
47162 SWIG_Error(SWIG_AttributeError,"Variable ControlNameStr is read-only.");
47163 return 1;
d55e5bfc
RD
47164}
47165
47166
1bd55598
RD
47167SWIGINTERN PyObject *ControlNameStr_get(void) {
47168 PyObject *pyobj = 0;
47169
47170 {
d55e5bfc 47171#if wxUSE_UNICODE
1bd55598 47172 pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
d55e5bfc 47173#else
1bd55598 47174 pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
d55e5bfc 47175#endif
1bd55598
RD
47176 }
47177 return pyobj;
47178}
47179
47180
47181SWIGINTERN PyObject *_wrap_new_Control(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47182 PyObject *resultobj = 0;
47183 wxWindow *arg1 = (wxWindow *) 0 ;
47184 int arg2 = (int) -1 ;
47185 wxPoint const &arg3_defvalue = wxDefaultPosition ;
47186 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
47187 wxSize const &arg4_defvalue = wxDefaultSize ;
47188 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
47189 long arg5 = (long) 0 ;
47190 wxValidator const &arg6_defvalue = wxDefaultValidator ;
47191 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
47192 wxString const &arg7_defvalue = wxPyControlNameStr ;
47193 wxString *arg7 = (wxString *) &arg7_defvalue ;
47194 wxControl *result = 0 ;
47195 void *argp1 = 0 ;
47196 int res1 = 0 ;
47197 int val2 ;
47198 int ecode2 = 0 ;
47199 wxPoint temp3 ;
47200 wxSize temp4 ;
47201 long val5 ;
47202 int ecode5 = 0 ;
47203 void *argp6 = 0 ;
47204 int res6 = 0 ;
47205 bool temp7 = false ;
47206 PyObject * obj0 = 0 ;
47207 PyObject * obj1 = 0 ;
47208 PyObject * obj2 = 0 ;
47209 PyObject * obj3 = 0 ;
47210 PyObject * obj4 = 0 ;
47211 PyObject * obj5 = 0 ;
47212 PyObject * obj6 = 0 ;
47213 char * kwnames[] = {
47214 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
47215 };
47216
47217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
47218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
47219 if (!SWIG_IsOK(res1)) {
47220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Control" "', expected argument " "1"" of type '" "wxWindow *""'");
47221 }
47222 arg1 = reinterpret_cast< wxWindow * >(argp1);
47223 if (obj1) {
47224 ecode2 = SWIG_AsVal_int(obj1, &val2);
47225 if (!SWIG_IsOK(ecode2)) {
47226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Control" "', expected argument " "2"" of type '" "int""'");
47227 }
47228 arg2 = static_cast< int >(val2);
47229 }
47230 if (obj2) {
d55e5bfc 47231 {
1bd55598
RD
47232 arg3 = &temp3;
47233 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 47234 }
1bd55598
RD
47235 }
47236 if (obj3) {
d55e5bfc 47237 {
1bd55598
RD
47238 arg4 = &temp4;
47239 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 47240 }
1bd55598
RD
47241 }
47242 if (obj4) {
47243 ecode5 = SWIG_AsVal_long(obj4, &val5);
47244 if (!SWIG_IsOK(ecode5)) {
47245 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Control" "', expected argument " "5"" of type '" "long""'");
47246 }
47247 arg5 = static_cast< long >(val5);
47248 }
47249 if (obj5) {
47250 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
47251 if (!SWIG_IsOK(res6)) {
47252 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_Control" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 47253 }
1bd55598
RD
47254 if (!argp6) {
47255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Control" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 47256 }
1bd55598
RD
47257 arg6 = reinterpret_cast< wxValidator * >(argp6);
47258 }
47259 if (obj6) {
d55e5bfc 47260 {
1bd55598
RD
47261 arg7 = wxString_in_helper(obj6);
47262 if (arg7 == NULL) SWIG_fail;
47263 temp7 = true;
d55e5bfc 47264 }
1bd55598
RD
47265 }
47266 {
47267 if (!wxPyCheckForApp()) SWIG_fail;
47268 PyThreadState* __tstate = wxPyBeginAllowThreads();
47269 result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
47270 wxPyEndAllowThreads(__tstate);
47271 if (PyErr_Occurred()) SWIG_fail;
47272 }
47273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxControl, SWIG_POINTER_NEW | 0 );
47274 {
47275 if (temp7)
47276 delete arg7;
47277 }
47278 return resultobj;
47279fail:
47280 {
47281 if (temp7)
47282 delete arg7;
47283 }
47284 return NULL;
d55e5bfc
RD
47285}
47286
47287
1bd55598
RD
47288SWIGINTERN PyObject *_wrap_new_PreControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47289 PyObject *resultobj = 0;
47290 wxControl *result = 0 ;
47291
47292 if (!SWIG_Python_UnpackTuple(args,"new_PreControl",0,0,0)) SWIG_fail;
47293 {
47294 if (!wxPyCheckForApp()) SWIG_fail;
47295 PyThreadState* __tstate = wxPyBeginAllowThreads();
47296 result = (wxControl *)new wxControl();
47297 wxPyEndAllowThreads(__tstate);
47298 if (PyErr_Occurred()) SWIG_fail;
47299 }
47300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxControl, SWIG_POINTER_OWN | 0 );
47301 return resultobj;
47302fail:
47303 return NULL;
47304}
47305
47306
47307SWIGINTERN PyObject *_wrap_Control_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47308 PyObject *resultobj = 0;
47309 wxControl *arg1 = (wxControl *) 0 ;
47310 wxWindow *arg2 = (wxWindow *) 0 ;
47311 int arg3 = (int) -1 ;
47312 wxPoint const &arg4_defvalue = wxDefaultPosition ;
47313 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
47314 wxSize const &arg5_defvalue = wxDefaultSize ;
47315 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
47316 long arg6 = (long) 0 ;
47317 wxValidator const &arg7_defvalue = wxDefaultValidator ;
47318 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
47319 wxString const &arg8_defvalue = wxPyControlNameStr ;
47320 wxString *arg8 = (wxString *) &arg8_defvalue ;
47321 bool result;
47322 void *argp1 = 0 ;
47323 int res1 = 0 ;
47324 void *argp2 = 0 ;
47325 int res2 = 0 ;
47326 int val3 ;
47327 int ecode3 = 0 ;
47328 wxPoint temp4 ;
47329 wxSize temp5 ;
47330 long val6 ;
47331 int ecode6 = 0 ;
47332 void *argp7 = 0 ;
47333 int res7 = 0 ;
47334 bool temp8 = false ;
47335 PyObject * obj0 = 0 ;
47336 PyObject * obj1 = 0 ;
47337 PyObject * obj2 = 0 ;
47338 PyObject * obj3 = 0 ;
47339 PyObject * obj4 = 0 ;
47340 PyObject * obj5 = 0 ;
47341 PyObject * obj6 = 0 ;
47342 PyObject * obj7 = 0 ;
47343 char * kwnames[] = {
47344 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
47345 };
47346
47347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
47348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxControl, 0 | 0 );
47349 if (!SWIG_IsOK(res1)) {
47350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Control_Create" "', expected argument " "1"" of type '" "wxControl *""'");
47351 }
47352 arg1 = reinterpret_cast< wxControl * >(argp1);
47353 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
47354 if (!SWIG_IsOK(res2)) {
47355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Control_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
47356 }
47357 arg2 = reinterpret_cast< wxWindow * >(argp2);
47358 if (obj2) {
47359 ecode3 = SWIG_AsVal_int(obj2, &val3);
47360 if (!SWIG_IsOK(ecode3)) {
47361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Control_Create" "', expected argument " "3"" of type '" "int""'");
47362 }
47363 arg3 = static_cast< int >(val3);
47364 }
47365 if (obj3) {
d55e5bfc 47366 {
1bd55598
RD
47367 arg4 = &temp4;
47368 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 47369 }
1bd55598
RD
47370 }
47371 if (obj4) {
d55e5bfc 47372 {
1bd55598
RD
47373 arg5 = &temp5;
47374 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 47375 }
1bd55598
RD
47376 }
47377 if (obj5) {
47378 ecode6 = SWIG_AsVal_long(obj5, &val6);
47379 if (!SWIG_IsOK(ecode6)) {
47380 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Control_Create" "', expected argument " "6"" of type '" "long""'");
47381 }
47382 arg6 = static_cast< long >(val6);
47383 }
47384 if (obj6) {
47385 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
47386 if (!SWIG_IsOK(res7)) {
47387 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Control_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 47388 }
1bd55598
RD
47389 if (!argp7) {
47390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Control_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 47391 }
1bd55598
RD
47392 arg7 = reinterpret_cast< wxValidator * >(argp7);
47393 }
47394 if (obj7) {
d55e5bfc 47395 {
1bd55598
RD
47396 arg8 = wxString_in_helper(obj7);
47397 if (arg8 == NULL) SWIG_fail;
47398 temp8 = true;
d55e5bfc 47399 }
1bd55598
RD
47400 }
47401 {
47402 PyThreadState* __tstate = wxPyBeginAllowThreads();
47403 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
47404 wxPyEndAllowThreads(__tstate);
47405 if (PyErr_Occurred()) SWIG_fail;
47406 }
47407 {
47408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
47409 }
47410 {
47411 if (temp8)
47412 delete arg8;
47413 }
47414 return resultobj;
47415fail:
47416 {
47417 if (temp8)
47418 delete arg8;
47419 }
47420 return NULL;
47421}
47422
47423
1eeb270e
RD
47424SWIGINTERN PyObject *_wrap_Control_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47425 PyObject *resultobj = 0;
47426 wxControl *arg1 = (wxControl *) 0 ;
47427 int result;
47428 void *argp1 = 0 ;
47429 int res1 = 0 ;
47430 PyObject *swig_obj[1] ;
47431
47432 if (!args) SWIG_fail;
47433 swig_obj[0] = args;
47434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxControl, 0 | 0 );
47435 if (!SWIG_IsOK(res1)) {
47436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Control_GetAlignment" "', expected argument " "1"" of type '" "wxControl const *""'");
47437 }
47438 arg1 = reinterpret_cast< wxControl * >(argp1);
47439 {
47440 PyThreadState* __tstate = wxPyBeginAllowThreads();
47441 result = (int)((wxControl const *)arg1)->GetAlignment();
47442 wxPyEndAllowThreads(__tstate);
47443 if (PyErr_Occurred()) SWIG_fail;
47444 }
47445 resultobj = SWIG_From_int(static_cast< int >(result));
47446 return resultobj;
47447fail:
47448 return NULL;
47449}
47450
47451
34e0a3bb 47452SWIGINTERN PyObject *_wrap_Control_GetLabelText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1eeb270e
RD
47453 PyObject *resultobj = 0;
47454 wxControl *arg1 = (wxControl *) 0 ;
47455 wxString result;
47456 void *argp1 = 0 ;
47457 int res1 = 0 ;
34e0a3bb 47458 PyObject *swig_obj[1] ;
1eeb270e 47459
34e0a3bb
RD
47460 if (!args) SWIG_fail;
47461 swig_obj[0] = args;
1eeb270e
RD
47462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxControl, 0 | 0 );
47463 if (!SWIG_IsOK(res1)) {
47464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Control_GetLabelText" "', expected argument " "1"" of type '" "wxControl const *""'");
47465 }
47466 arg1 = reinterpret_cast< wxControl * >(argp1);
47467 {
47468 PyThreadState* __tstate = wxPyBeginAllowThreads();
47469 result = ((wxControl const *)arg1)->GetLabelText();
47470 wxPyEndAllowThreads(__tstate);
47471 if (PyErr_Occurred()) SWIG_fail;
47472 }
47473 {
47474#if wxUSE_UNICODE
47475 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
47476#else
47477 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
47478#endif
47479 }
47480 return resultobj;
47481fail:
47482 return NULL;
47483}
47484
47485
1bd55598
RD
47486SWIGINTERN PyObject *_wrap_Control_Command(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47487 PyObject *resultobj = 0;
47488 wxControl *arg1 = (wxControl *) 0 ;
47489 wxCommandEvent *arg2 = 0 ;
47490 void *argp1 = 0 ;
47491 int res1 = 0 ;
47492 void *argp2 = 0 ;
47493 int res2 = 0 ;
47494 PyObject * obj0 = 0 ;
47495 PyObject * obj1 = 0 ;
47496 char * kwnames[] = {
47497 (char *) "self",(char *) "event", NULL
47498 };
47499
47500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) SWIG_fail;
47501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxControl, 0 | 0 );
47502 if (!SWIG_IsOK(res1)) {
47503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Control_Command" "', expected argument " "1"" of type '" "wxControl *""'");
47504 }
47505 arg1 = reinterpret_cast< wxControl * >(argp1);
47506 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCommandEvent, 0 );
47507 if (!SWIG_IsOK(res2)) {
47508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Control_Command" "', expected argument " "2"" of type '" "wxCommandEvent &""'");
47509 }
47510 if (!argp2) {
47511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Control_Command" "', expected argument " "2"" of type '" "wxCommandEvent &""'");
47512 }
47513 arg2 = reinterpret_cast< wxCommandEvent * >(argp2);
47514 {
47515 PyThreadState* __tstate = wxPyBeginAllowThreads();
47516 (arg1)->Command(*arg2);
47517 wxPyEndAllowThreads(__tstate);
47518 if (PyErr_Occurred()) SWIG_fail;
47519 }
47520 resultobj = SWIG_Py_Void();
47521 return resultobj;
47522fail:
47523 return NULL;
d55e5bfc
RD
47524}
47525
47526
1bd55598
RD
47527SWIGINTERN PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47528 PyObject *resultobj = 0;
47529 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
47530 SwigValueWrapper<wxVisualAttributes > result;
47531 int val1 ;
47532 int ecode1 = 0 ;
47533 PyObject * obj0 = 0 ;
47534 char * kwnames[] = {
47535 (char *) "variant", NULL
47536 };
47537
47538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
47539 if (obj0) {
47540 ecode1 = SWIG_AsVal_int(obj0, &val1);
47541 if (!SWIG_IsOK(ecode1)) {
47542 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Control_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
47543 }
47544 arg1 = static_cast< wxWindowVariant >(val1);
47545 }
47546 {
47547 if (!wxPyCheckForApp()) SWIG_fail;
47548 PyThreadState* __tstate = wxPyBeginAllowThreads();
47549 result = wxControl::GetClassDefaultAttributes(arg1);
47550 wxPyEndAllowThreads(__tstate);
47551 if (PyErr_Occurred()) SWIG_fail;
47552 }
47553 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
47554 return resultobj;
47555fail:
47556 return NULL;
47557}
47558
47559
47560SWIGINTERN PyObject *Control_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47561 PyObject *obj;
47562 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
47563 SWIG_TypeNewClientData(SWIGTYPE_p_wxControl, SWIG_NewClientData(obj));
47564 return SWIG_Py_Void();
47565}
47566
47567SWIGINTERN PyObject *Control_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47568 return SWIG_Python_InitShadowInstance(args);
47569}
47570
47571SWIGINTERN PyObject *_wrap_ItemContainer_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47572 PyObject *resultobj = 0;
47573 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
47574 wxString *arg2 = 0 ;
47575 PyObject *arg3 = (PyObject *) NULL ;
47576 int result;
47577 void *argp1 = 0 ;
47578 int res1 = 0 ;
47579 bool temp2 = false ;
47580 PyObject * obj0 = 0 ;
47581 PyObject * obj1 = 0 ;
47582 PyObject * obj2 = 0 ;
47583 char * kwnames[] = {
47584 (char *) "self",(char *) "item",(char *) "clientData", NULL
47585 };
47586
47587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
47588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47589 if (!SWIG_IsOK(res1)) {
47590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_Append" "', expected argument " "1"" of type '" "wxItemContainer *""'");
47591 }
47592 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
47593 {
47594 arg2 = wxString_in_helper(obj1);
47595 if (arg2 == NULL) SWIG_fail;
47596 temp2 = true;
47597 }
47598 if (obj2) {
47599 arg3 = obj2;
47600 }
47601 {
47602 PyThreadState* __tstate = wxPyBeginAllowThreads();
47603 result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3);
47604 wxPyEndAllowThreads(__tstate);
47605 if (PyErr_Occurred()) SWIG_fail;
47606 }
47607 resultobj = SWIG_From_int(static_cast< int >(result));
47608 {
47609 if (temp2)
47610 delete arg2;
47611 }
47612 return resultobj;
47613fail:
47614 {
47615 if (temp2)
47616 delete arg2;
47617 }
47618 return NULL;
d55e5bfc
RD
47619}
47620
47621
1bd55598
RD
47622SWIGINTERN PyObject *_wrap_ItemContainer_AppendItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47623 PyObject *resultobj = 0;
47624 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
47625 wxArrayString *arg2 = 0 ;
47626 void *argp1 = 0 ;
47627 int res1 = 0 ;
47628 bool temp2 = false ;
47629 PyObject * obj0 = 0 ;
47630 PyObject * obj1 = 0 ;
47631 char * kwnames[] = {
47632 (char *) "self",(char *) "strings", NULL
47633 };
47634
47635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) SWIG_fail;
47636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47637 if (!SWIG_IsOK(res1)) {
47638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_AppendItems" "', expected argument " "1"" of type '" "wxItemContainer *""'");
47639 }
47640 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
47641 {
47642 if (! PySequence_Check(obj1)) {
47643 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
47644 SWIG_fail;
47645 }
47646 arg2 = new wxArrayString;
47647 temp2 = true;
47648 int i, len=PySequence_Length(obj1);
47649 for (i=0; i<len; i++) {
47650 PyObject* item = PySequence_GetItem(obj1, i);
47651 wxString* s = wxString_in_helper(item);
47652 if (PyErr_Occurred()) SWIG_fail;
47653 arg2->Add(*s);
47654 delete s;
47655 Py_DECREF(item);
d55e5bfc 47656 }
1bd55598
RD
47657 }
47658 {
47659 PyThreadState* __tstate = wxPyBeginAllowThreads();
47660 (arg1)->Append((wxArrayString const &)*arg2);
47661 wxPyEndAllowThreads(__tstate);
47662 if (PyErr_Occurred()) SWIG_fail;
47663 }
47664 resultobj = SWIG_Py_Void();
47665 {
47666 if (temp2) delete arg2;
47667 }
47668 return resultobj;
47669fail:
47670 {
47671 if (temp2) delete arg2;
47672 }
47673 return NULL;
47674}
47675
47676
47677SWIGINTERN PyObject *_wrap_ItemContainer_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47678 PyObject *resultobj = 0;
47679 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
47680 wxString *arg2 = 0 ;
50f151d7 47681 unsigned int arg3 ;
1bd55598
RD
47682 PyObject *arg4 = (PyObject *) NULL ;
47683 int result;
47684 void *argp1 = 0 ;
47685 int res1 = 0 ;
47686 bool temp2 = false ;
50f151d7 47687 unsigned int val3 ;
1bd55598
RD
47688 int ecode3 = 0 ;
47689 PyObject * obj0 = 0 ;
47690 PyObject * obj1 = 0 ;
47691 PyObject * obj2 = 0 ;
47692 PyObject * obj3 = 0 ;
47693 char * kwnames[] = {
47694 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
47695 };
47696
47697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
47698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47699 if (!SWIG_IsOK(res1)) {
47700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_Insert" "', expected argument " "1"" of type '" "wxItemContainer *""'");
47701 }
47702 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
47703 {
47704 arg2 = wxString_in_helper(obj1);
47705 if (arg2 == NULL) SWIG_fail;
47706 temp2 = true;
47707 }
50f151d7 47708 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
1bd55598 47709 if (!SWIG_IsOK(ecode3)) {
50f151d7 47710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ItemContainer_Insert" "', expected argument " "3"" of type '" "unsigned int""'");
1bd55598 47711 }
50f151d7 47712 arg3 = static_cast< unsigned int >(val3);
1bd55598
RD
47713 if (obj3) {
47714 arg4 = obj3;
47715 }
47716 {
47717 PyThreadState* __tstate = wxPyBeginAllowThreads();
47718 result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
47719 wxPyEndAllowThreads(__tstate);
47720 if (PyErr_Occurred()) SWIG_fail;
47721 }
47722 resultobj = SWIG_From_int(static_cast< int >(result));
47723 {
47724 if (temp2)
47725 delete arg2;
47726 }
47727 return resultobj;
47728fail:
47729 {
47730 if (temp2)
47731 delete arg2;
47732 }
47733 return NULL;
d55e5bfc
RD
47734}
47735
47736
1bd55598
RD
47737SWIGINTERN PyObject *_wrap_ItemContainer_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47738 PyObject *resultobj = 0;
47739 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
47740 void *argp1 = 0 ;
47741 int res1 = 0 ;
47742 PyObject *swig_obj[1] ;
47743
47744 if (!args) SWIG_fail;
47745 swig_obj[0] = args;
47746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47747 if (!SWIG_IsOK(res1)) {
47748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_Clear" "', expected argument " "1"" of type '" "wxItemContainer *""'");
47749 }
47750 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
47751 {
47752 PyThreadState* __tstate = wxPyBeginAllowThreads();
47753 (arg1)->Clear();
47754 wxPyEndAllowThreads(__tstate);
47755 if (PyErr_Occurred()) SWIG_fail;
47756 }
47757 resultobj = SWIG_Py_Void();
47758 return resultobj;
47759fail:
47760 return NULL;
47761}
47762
47763
47764SWIGINTERN PyObject *_wrap_ItemContainer_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47765 PyObject *resultobj = 0;
47766 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
50f151d7 47767 unsigned int arg2 ;
1bd55598
RD
47768 void *argp1 = 0 ;
47769 int res1 = 0 ;
50f151d7 47770 unsigned int val2 ;
1bd55598
RD
47771 int ecode2 = 0 ;
47772 PyObject * obj0 = 0 ;
47773 PyObject * obj1 = 0 ;
47774 char * kwnames[] = {
47775 (char *) "self",(char *) "n", NULL
47776 };
47777
47778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
47779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47780 if (!SWIG_IsOK(res1)) {
47781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_Delete" "', expected argument " "1"" of type '" "wxItemContainer *""'");
47782 }
47783 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
50f151d7 47784 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 47785 if (!SWIG_IsOK(ecode2)) {
50f151d7 47786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_Delete" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 47787 }
50f151d7 47788 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
47789 {
47790 PyThreadState* __tstate = wxPyBeginAllowThreads();
47791 (arg1)->Delete(arg2);
47792 wxPyEndAllowThreads(__tstate);
47793 if (PyErr_Occurred()) SWIG_fail;
47794 }
47795 resultobj = SWIG_Py_Void();
47796 return resultobj;
47797fail:
47798 return NULL;
47799}
47800
47801
47802SWIGINTERN PyObject *_wrap_ItemContainer_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47803 PyObject *resultobj = 0;
47804 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
50f151d7 47805 unsigned int arg2 ;
1bd55598
RD
47806 PyObject *result = 0 ;
47807 void *argp1 = 0 ;
47808 int res1 = 0 ;
50f151d7 47809 unsigned int val2 ;
1bd55598
RD
47810 int ecode2 = 0 ;
47811 PyObject * obj0 = 0 ;
47812 PyObject * obj1 = 0 ;
47813 char * kwnames[] = {
47814 (char *) "self",(char *) "n", NULL
47815 };
47816
47817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
47818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47819 if (!SWIG_IsOK(res1)) {
47820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetClientData" "', expected argument " "1"" of type '" "wxItemContainer *""'");
47821 }
47822 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
50f151d7 47823 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 47824 if (!SWIG_IsOK(ecode2)) {
50f151d7 47825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_GetClientData" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 47826 }
50f151d7 47827 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
47828 {
47829 PyThreadState* __tstate = wxPyBeginAllowThreads();
47830 result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2);
47831 wxPyEndAllowThreads(__tstate);
47832 if (PyErr_Occurred()) SWIG_fail;
47833 }
47834 resultobj = result;
47835 return resultobj;
47836fail:
47837 return NULL;
47838}
47839
47840
47841SWIGINTERN PyObject *_wrap_ItemContainer_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47842 PyObject *resultobj = 0;
47843 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
50f151d7 47844 unsigned int arg2 ;
1bd55598
RD
47845 PyObject *arg3 = (PyObject *) 0 ;
47846 void *argp1 = 0 ;
47847 int res1 = 0 ;
50f151d7 47848 unsigned int val2 ;
1bd55598
RD
47849 int ecode2 = 0 ;
47850 PyObject * obj0 = 0 ;
47851 PyObject * obj1 = 0 ;
47852 PyObject * obj2 = 0 ;
47853 char * kwnames[] = {
47854 (char *) "self",(char *) "n",(char *) "clientData", NULL
47855 };
47856
47857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
47858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47859 if (!SWIG_IsOK(res1)) {
47860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_SetClientData" "', expected argument " "1"" of type '" "wxItemContainer *""'");
47861 }
47862 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
50f151d7 47863 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 47864 if (!SWIG_IsOK(ecode2)) {
50f151d7 47865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_SetClientData" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 47866 }
50f151d7 47867 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
47868 arg3 = obj2;
47869 {
47870 PyThreadState* __tstate = wxPyBeginAllowThreads();
47871 wxItemContainer_SetClientData(arg1,arg2,arg3);
47872 wxPyEndAllowThreads(__tstate);
47873 if (PyErr_Occurred()) SWIG_fail;
47874 }
47875 resultobj = SWIG_Py_Void();
47876 return resultobj;
47877fail:
47878 return NULL;
d55e5bfc
RD
47879}
47880
47881
1bd55598
RD
47882SWIGINTERN PyObject *_wrap_ItemContainer_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47883 PyObject *resultobj = 0;
47884 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
50f151d7 47885 unsigned int result;
1bd55598
RD
47886 void *argp1 = 0 ;
47887 int res1 = 0 ;
47888 PyObject *swig_obj[1] ;
47889
47890 if (!args) SWIG_fail;
47891 swig_obj[0] = args;
47892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47893 if (!SWIG_IsOK(res1)) {
47894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetCount" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
47895 }
47896 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
47897 {
47898 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 47899 result = (unsigned int)((wxItemContainer const *)arg1)->GetCount();
1bd55598
RD
47900 wxPyEndAllowThreads(__tstate);
47901 if (PyErr_Occurred()) SWIG_fail;
47902 }
50f151d7 47903 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
47904 return resultobj;
47905fail:
47906 return NULL;
d55e5bfc
RD
47907}
47908
47909
1bd55598
RD
47910SWIGINTERN PyObject *_wrap_ItemContainer_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47911 PyObject *resultobj = 0;
47912 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
47913 bool result;
47914 void *argp1 = 0 ;
47915 int res1 = 0 ;
47916 PyObject *swig_obj[1] ;
47917
47918 if (!args) SWIG_fail;
47919 swig_obj[0] = args;
47920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47921 if (!SWIG_IsOK(res1)) {
47922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_IsEmpty" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
47923 }
47924 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
47925 {
47926 PyThreadState* __tstate = wxPyBeginAllowThreads();
47927 result = (bool)((wxItemContainer const *)arg1)->IsEmpty();
47928 wxPyEndAllowThreads(__tstate);
47929 if (PyErr_Occurred()) SWIG_fail;
47930 }
47931 {
47932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
47933 }
47934 return resultobj;
47935fail:
47936 return NULL;
47937}
47938
47939
47940SWIGINTERN PyObject *_wrap_ItemContainer_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47941 PyObject *resultobj = 0;
47942 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
50f151d7 47943 unsigned int arg2 ;
1bd55598
RD
47944 wxString result;
47945 void *argp1 = 0 ;
47946 int res1 = 0 ;
50f151d7 47947 unsigned int val2 ;
1bd55598
RD
47948 int ecode2 = 0 ;
47949 PyObject * obj0 = 0 ;
47950 PyObject * obj1 = 0 ;
47951 char * kwnames[] = {
47952 (char *) "self",(char *) "n", NULL
47953 };
47954
47955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
47956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47957 if (!SWIG_IsOK(res1)) {
47958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetString" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
47959 }
47960 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
50f151d7 47961 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 47962 if (!SWIG_IsOK(ecode2)) {
50f151d7 47963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_GetString" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 47964 }
50f151d7 47965 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
47966 {
47967 PyThreadState* __tstate = wxPyBeginAllowThreads();
47968 result = ((wxItemContainer const *)arg1)->GetString(arg2);
47969 wxPyEndAllowThreads(__tstate);
47970 if (PyErr_Occurred()) SWIG_fail;
47971 }
47972 {
47973#if wxUSE_UNICODE
47974 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
47975#else
47976 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
47977#endif
47978 }
47979 return resultobj;
47980fail:
47981 return NULL;
d55e5bfc
RD
47982}
47983
47984
1bd55598
RD
47985SWIGINTERN PyObject *_wrap_ItemContainer_GetStrings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47986 PyObject *resultobj = 0;
47987 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
47988 wxArrayString result;
47989 void *argp1 = 0 ;
47990 int res1 = 0 ;
47991 PyObject *swig_obj[1] ;
47992
47993 if (!args) SWIG_fail;
47994 swig_obj[0] = args;
47995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47996 if (!SWIG_IsOK(res1)) {
47997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetStrings" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
47998 }
47999 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
48000 {
48001 PyThreadState* __tstate = wxPyBeginAllowThreads();
48002 result = ((wxItemContainer const *)arg1)->GetStrings();
48003 wxPyEndAllowThreads(__tstate);
48004 if (PyErr_Occurred()) SWIG_fail;
48005 }
48006 {
48007 resultobj = wxArrayString2PyList_helper(result);
48008 }
48009 return resultobj;
48010fail:
48011 return NULL;
48012}
48013
48014
48015SWIGINTERN PyObject *_wrap_ItemContainer_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48016 PyObject *resultobj = 0;
48017 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
50f151d7 48018 unsigned int arg2 ;
1bd55598
RD
48019 wxString *arg3 = 0 ;
48020 void *argp1 = 0 ;
48021 int res1 = 0 ;
50f151d7 48022 unsigned int val2 ;
1bd55598
RD
48023 int ecode2 = 0 ;
48024 bool temp3 = false ;
48025 PyObject * obj0 = 0 ;
48026 PyObject * obj1 = 0 ;
48027 PyObject * obj2 = 0 ;
48028 char * kwnames[] = {
48029 (char *) "self",(char *) "n",(char *) "s", NULL
48030 };
48031
48032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
48033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
48034 if (!SWIG_IsOK(res1)) {
48035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_SetString" "', expected argument " "1"" of type '" "wxItemContainer *""'");
48036 }
48037 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
50f151d7 48038 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 48039 if (!SWIG_IsOK(ecode2)) {
50f151d7 48040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_SetString" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 48041 }
50f151d7 48042 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
48043 {
48044 arg3 = wxString_in_helper(obj2);
48045 if (arg3 == NULL) SWIG_fail;
48046 temp3 = true;
48047 }
48048 {
48049 PyThreadState* __tstate = wxPyBeginAllowThreads();
48050 (arg1)->SetString(arg2,(wxString const &)*arg3);
48051 wxPyEndAllowThreads(__tstate);
48052 if (PyErr_Occurred()) SWIG_fail;
48053 }
48054 resultobj = SWIG_Py_Void();
48055 {
48056 if (temp3)
48057 delete arg3;
48058 }
48059 return resultobj;
48060fail:
48061 {
48062 if (temp3)
48063 delete arg3;
48064 }
48065 return NULL;
48066}
48067
48068
48069SWIGINTERN PyObject *_wrap_ItemContainer_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48070 PyObject *resultobj = 0;
48071 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
48072 wxString *arg2 = 0 ;
48073 int result;
48074 void *argp1 = 0 ;
48075 int res1 = 0 ;
48076 bool temp2 = false ;
48077 PyObject * obj0 = 0 ;
48078 PyObject * obj1 = 0 ;
48079 char * kwnames[] = {
48080 (char *) "self",(char *) "s", NULL
48081 };
48082
48083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
48084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
48085 if (!SWIG_IsOK(res1)) {
48086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_FindString" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
48087 }
48088 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
48089 {
48090 arg2 = wxString_in_helper(obj1);
48091 if (arg2 == NULL) SWIG_fail;
48092 temp2 = true;
48093 }
48094 {
48095 PyThreadState* __tstate = wxPyBeginAllowThreads();
48096 result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2);
48097 wxPyEndAllowThreads(__tstate);
48098 if (PyErr_Occurred()) SWIG_fail;
48099 }
48100 resultobj = SWIG_From_int(static_cast< int >(result));
48101 {
48102 if (temp2)
48103 delete arg2;
48104 }
48105 return resultobj;
48106fail:
48107 {
48108 if (temp2)
48109 delete arg2;
48110 }
48111 return NULL;
48112}
48113
48114
48115SWIGINTERN PyObject *_wrap_ItemContainer_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48116 PyObject *resultobj = 0;
48117 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
48118 int arg2 ;
48119 void *argp1 = 0 ;
48120 int res1 = 0 ;
48121 int val2 ;
48122 int ecode2 = 0 ;
48123 PyObject * obj0 = 0 ;
48124 PyObject * obj1 = 0 ;
48125 char * kwnames[] = {
48126 (char *) "self",(char *) "n", NULL
48127 };
48128
48129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
48130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
48131 if (!SWIG_IsOK(res1)) {
48132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_SetSelection" "', expected argument " "1"" of type '" "wxItemContainer *""'");
48133 }
48134 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
48135 ecode2 = SWIG_AsVal_int(obj1, &val2);
48136 if (!SWIG_IsOK(ecode2)) {
48137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_SetSelection" "', expected argument " "2"" of type '" "int""'");
48138 }
48139 arg2 = static_cast< int >(val2);
48140 {
48141 PyThreadState* __tstate = wxPyBeginAllowThreads();
48142 (arg1)->SetSelection(arg2);
48143 wxPyEndAllowThreads(__tstate);
48144 if (PyErr_Occurred()) SWIG_fail;
48145 }
48146 resultobj = SWIG_Py_Void();
48147 return resultobj;
48148fail:
48149 return NULL;
d55e5bfc
RD
48150}
48151
48152
1bd55598
RD
48153SWIGINTERN PyObject *_wrap_ItemContainer_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48154 PyObject *resultobj = 0;
48155 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
48156 int result;
48157 void *argp1 = 0 ;
48158 int res1 = 0 ;
48159 PyObject *swig_obj[1] ;
48160
48161 if (!args) SWIG_fail;
48162 swig_obj[0] = args;
48163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
48164 if (!SWIG_IsOK(res1)) {
48165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetSelection" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
48166 }
48167 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
48168 {
48169 PyThreadState* __tstate = wxPyBeginAllowThreads();
48170 result = (int)((wxItemContainer const *)arg1)->GetSelection();
48171 wxPyEndAllowThreads(__tstate);
48172 if (PyErr_Occurred()) SWIG_fail;
48173 }
48174 resultobj = SWIG_From_int(static_cast< int >(result));
48175 return resultobj;
48176fail:
48177 return NULL;
48178}
48179
48180
48181SWIGINTERN PyObject *_wrap_ItemContainer_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48182 PyObject *resultobj = 0;
48183 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
48184 wxString *arg2 = 0 ;
48185 bool result;
48186 void *argp1 = 0 ;
48187 int res1 = 0 ;
48188 bool temp2 = false ;
48189 PyObject * obj0 = 0 ;
48190 PyObject * obj1 = 0 ;
48191 char * kwnames[] = {
48192 (char *) "self",(char *) "s", NULL
48193 };
48194
48195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
48196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
48197 if (!SWIG_IsOK(res1)) {
48198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_SetStringSelection" "', expected argument " "1"" of type '" "wxItemContainer *""'");
48199 }
48200 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
48201 {
48202 arg2 = wxString_in_helper(obj1);
48203 if (arg2 == NULL) SWIG_fail;
48204 temp2 = true;
48205 }
48206 {
48207 PyThreadState* __tstate = wxPyBeginAllowThreads();
48208 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
48209 wxPyEndAllowThreads(__tstate);
48210 if (PyErr_Occurred()) SWIG_fail;
48211 }
48212 {
48213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
48214 }
48215 {
48216 if (temp2)
48217 delete arg2;
48218 }
48219 return resultobj;
48220fail:
48221 {
48222 if (temp2)
48223 delete arg2;
48224 }
48225 return NULL;
d55e5bfc
RD
48226}
48227
48228
1bd55598
RD
48229SWIGINTERN PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48230 PyObject *resultobj = 0;
48231 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
48232 wxString result;
48233 void *argp1 = 0 ;
48234 int res1 = 0 ;
48235 PyObject *swig_obj[1] ;
48236
48237 if (!args) SWIG_fail;
48238 swig_obj[0] = args;
48239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
48240 if (!SWIG_IsOK(res1)) {
48241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetStringSelection" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
48242 }
48243 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
48244 {
48245 PyThreadState* __tstate = wxPyBeginAllowThreads();
48246 result = ((wxItemContainer const *)arg1)->GetStringSelection();
48247 wxPyEndAllowThreads(__tstate);
48248 if (PyErr_Occurred()) SWIG_fail;
48249 }
48250 {
48251#if wxUSE_UNICODE
48252 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
48253#else
48254 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
48255#endif
48256 }
48257 return resultobj;
48258fail:
48259 return NULL;
48260}
48261
48262
48263SWIGINTERN PyObject *_wrap_ItemContainer_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48264 PyObject *resultobj = 0;
48265 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
48266 int arg2 ;
48267 void *argp1 = 0 ;
48268 int res1 = 0 ;
48269 int val2 ;
48270 int ecode2 = 0 ;
48271 PyObject * obj0 = 0 ;
48272 PyObject * obj1 = 0 ;
48273 char * kwnames[] = {
48274 (char *) "self",(char *) "n", NULL
48275 };
48276
48277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) SWIG_fail;
48278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
48279 if (!SWIG_IsOK(res1)) {
48280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_Select" "', expected argument " "1"" of type '" "wxItemContainer *""'");
48281 }
48282 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
48283 ecode2 = SWIG_AsVal_int(obj1, &val2);
48284 if (!SWIG_IsOK(ecode2)) {
48285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_Select" "', expected argument " "2"" of type '" "int""'");
48286 }
48287 arg2 = static_cast< int >(val2);
48288 {
48289 PyThreadState* __tstate = wxPyBeginAllowThreads();
48290 (arg1)->Select(arg2);
48291 wxPyEndAllowThreads(__tstate);
48292 if (PyErr_Occurred()) SWIG_fail;
48293 }
48294 resultobj = SWIG_Py_Void();
48295 return resultobj;
48296fail:
48297 return NULL;
d55e5bfc
RD
48298}
48299
48300
1bd55598
RD
48301SWIGINTERN PyObject *ItemContainer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48302 PyObject *obj;
48303 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
48304 SWIG_TypeNewClientData(SWIGTYPE_p_wxItemContainer, SWIG_NewClientData(obj));
48305 return SWIG_Py_Void();
d55e5bfc
RD
48306}
48307
1bd55598
RD
48308SWIGINTERN PyObject *ControlWithItems_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48309 PyObject *obj;
48310 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
48311 SWIG_TypeNewClientData(SWIGTYPE_p_wxControlWithItems, SWIG_NewClientData(obj));
48312 return SWIG_Py_Void();
d55e5bfc
RD
48313}
48314
1bd55598
RD
48315SWIGINTERN PyObject *_wrap_new_SizerItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48316 PyObject *resultobj = 0;
48317 wxSizerItem *result = 0 ;
48318
48319 if (!SWIG_Python_UnpackTuple(args,"new_SizerItem",0,0,0)) SWIG_fail;
48320 {
48321 PyThreadState* __tstate = wxPyBeginAllowThreads();
48322 result = (wxSizerItem *)new wxSizerItem();
48323 wxPyEndAllowThreads(__tstate);
48324 if (PyErr_Occurred()) SWIG_fail;
48325 }
48326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_NEW | 0 );
48327 return resultobj;
48328fail:
48329 return NULL;
d55e5bfc
RD
48330}
48331
48332
1bd55598
RD
48333SWIGINTERN PyObject *_wrap_delete_SizerItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48334 PyObject *resultobj = 0;
48335 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48336 void *argp1 = 0 ;
48337 int res1 = 0 ;
48338 PyObject *swig_obj[1] ;
48339
48340 if (!args) SWIG_fail;
48341 swig_obj[0] = args;
48342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, SWIG_POINTER_DISOWN | 0 );
48343 if (!SWIG_IsOK(res1)) {
48344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SizerItem" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48345 }
48346 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48347 {
48348 PyThreadState* __tstate = wxPyBeginAllowThreads();
48349 delete arg1;
d55e5bfc 48350
1bd55598
RD
48351 wxPyEndAllowThreads(__tstate);
48352 if (PyErr_Occurred()) SWIG_fail;
48353 }
48354 resultobj = SWIG_Py_Void();
48355 return resultobj;
48356fail:
48357 return NULL;
48358}
48359
48360
48361SWIGINTERN PyObject *_wrap_new_SizerItemWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48362 PyObject *resultobj = 0;
48363 wxWindow *arg1 = (wxWindow *) 0 ;
48364 int arg2 ;
48365 int arg3 ;
48366 int arg4 ;
48367 PyObject *arg5 = (PyObject *) NULL ;
48368 wxSizerItem *result = 0 ;
48369 void *argp1 = 0 ;
48370 int res1 = 0 ;
48371 int val2 ;
48372 int ecode2 = 0 ;
48373 int val3 ;
48374 int ecode3 = 0 ;
48375 int val4 ;
48376 int ecode4 = 0 ;
48377 PyObject * obj0 = 0 ;
48378 PyObject * obj1 = 0 ;
48379 PyObject * obj2 = 0 ;
48380 PyObject * obj3 = 0 ;
48381 PyObject * obj4 = 0 ;
48382 char * kwnames[] = {
48383 (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
48384 };
48385
48386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
48387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
48388 if (!SWIG_IsOK(res1)) {
48389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SizerItemWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
48390 }
48391 arg1 = reinterpret_cast< wxWindow * >(argp1);
48392 ecode2 = SWIG_AsVal_int(obj1, &val2);
48393 if (!SWIG_IsOK(ecode2)) {
48394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SizerItemWindow" "', expected argument " "2"" of type '" "int""'");
48395 }
48396 arg2 = static_cast< int >(val2);
48397 ecode3 = SWIG_AsVal_int(obj2, &val3);
48398 if (!SWIG_IsOK(ecode3)) {
48399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SizerItemWindow" "', expected argument " "3"" of type '" "int""'");
48400 }
48401 arg3 = static_cast< int >(val3);
48402 ecode4 = SWIG_AsVal_int(obj3, &val4);
48403 if (!SWIG_IsOK(ecode4)) {
48404 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SizerItemWindow" "', expected argument " "4"" of type '" "int""'");
48405 }
48406 arg4 = static_cast< int >(val4);
48407 if (obj4) {
48408 arg5 = obj4;
48409 }
48410 {
48411 PyThreadState* __tstate = wxPyBeginAllowThreads();
48412 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
48413 wxPyEndAllowThreads(__tstate);
48414 if (PyErr_Occurred()) SWIG_fail;
48415 }
48416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_OWN | 0 );
48417 return resultobj;
48418fail:
48419 return NULL;
48420}
48421
48422
48423SWIGINTERN PyObject *_wrap_new_SizerItemSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48424 PyObject *resultobj = 0;
48425 int arg1 ;
48426 int arg2 ;
48427 int arg3 ;
48428 int arg4 ;
48429 int arg5 ;
48430 PyObject *arg6 = (PyObject *) NULL ;
48431 wxSizerItem *result = 0 ;
48432 int val1 ;
48433 int ecode1 = 0 ;
48434 int val2 ;
48435 int ecode2 = 0 ;
48436 int val3 ;
48437 int ecode3 = 0 ;
48438 int val4 ;
48439 int ecode4 = 0 ;
48440 int val5 ;
48441 int ecode5 = 0 ;
48442 PyObject * obj0 = 0 ;
48443 PyObject * obj1 = 0 ;
48444 PyObject * obj2 = 0 ;
48445 PyObject * obj3 = 0 ;
48446 PyObject * obj4 = 0 ;
48447 PyObject * obj5 = 0 ;
48448 char * kwnames[] = {
48449 (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
48450 };
48451
48452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
48453 ecode1 = SWIG_AsVal_int(obj0, &val1);
48454 if (!SWIG_IsOK(ecode1)) {
48455 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SizerItemSpacer" "', expected argument " "1"" of type '" "int""'");
48456 }
48457 arg1 = static_cast< int >(val1);
48458 ecode2 = SWIG_AsVal_int(obj1, &val2);
48459 if (!SWIG_IsOK(ecode2)) {
48460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SizerItemSpacer" "', expected argument " "2"" of type '" "int""'");
48461 }
48462 arg2 = static_cast< int >(val2);
48463 ecode3 = SWIG_AsVal_int(obj2, &val3);
48464 if (!SWIG_IsOK(ecode3)) {
48465 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SizerItemSpacer" "', expected argument " "3"" of type '" "int""'");
48466 }
48467 arg3 = static_cast< int >(val3);
48468 ecode4 = SWIG_AsVal_int(obj3, &val4);
48469 if (!SWIG_IsOK(ecode4)) {
48470 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SizerItemSpacer" "', expected argument " "4"" of type '" "int""'");
48471 }
48472 arg4 = static_cast< int >(val4);
48473 ecode5 = SWIG_AsVal_int(obj4, &val5);
48474 if (!SWIG_IsOK(ecode5)) {
48475 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SizerItemSpacer" "', expected argument " "5"" of type '" "int""'");
48476 }
48477 arg5 = static_cast< int >(val5);
48478 if (obj5) {
48479 arg6 = obj5;
48480 }
48481 {
48482 PyThreadState* __tstate = wxPyBeginAllowThreads();
48483 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6);
48484 wxPyEndAllowThreads(__tstate);
48485 if (PyErr_Occurred()) SWIG_fail;
48486 }
48487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_OWN | 0 );
48488 return resultobj;
48489fail:
48490 return NULL;
48491}
48492
48493
48494SWIGINTERN PyObject *_wrap_new_SizerItemSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48495 PyObject *resultobj = 0;
48496 wxSizer *arg1 = (wxSizer *) 0 ;
48497 int arg2 ;
48498 int arg3 ;
48499 int arg4 ;
48500 PyObject *arg5 = (PyObject *) NULL ;
48501 wxSizerItem *result = 0 ;
48502 int res1 = 0 ;
48503 int val2 ;
48504 int ecode2 = 0 ;
48505 int val3 ;
48506 int ecode3 = 0 ;
48507 int val4 ;
48508 int ecode4 = 0 ;
48509 PyObject * obj0 = 0 ;
48510 PyObject * obj1 = 0 ;
48511 PyObject * obj2 = 0 ;
48512 PyObject * obj3 = 0 ;
48513 PyObject * obj4 = 0 ;
48514 char * kwnames[] = {
48515 (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
48516 };
48517
48518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
48519 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
48520 if (!SWIG_IsOK(res1)) {
48521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SizerItemSizer" "', expected argument " "1"" of type '" "wxSizer *""'");
48522 }
48523 ecode2 = SWIG_AsVal_int(obj1, &val2);
48524 if (!SWIG_IsOK(ecode2)) {
48525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SizerItemSizer" "', expected argument " "2"" of type '" "int""'");
48526 }
48527 arg2 = static_cast< int >(val2);
48528 ecode3 = SWIG_AsVal_int(obj2, &val3);
48529 if (!SWIG_IsOK(ecode3)) {
48530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SizerItemSizer" "', expected argument " "3"" of type '" "int""'");
48531 }
48532 arg3 = static_cast< int >(val3);
48533 ecode4 = SWIG_AsVal_int(obj3, &val4);
48534 if (!SWIG_IsOK(ecode4)) {
48535 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SizerItemSizer" "', expected argument " "4"" of type '" "int""'");
48536 }
48537 arg4 = static_cast< int >(val4);
48538 if (obj4) {
48539 arg5 = obj4;
48540 }
48541 {
48542 PyThreadState* __tstate = wxPyBeginAllowThreads();
48543 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
48544 wxPyEndAllowThreads(__tstate);
48545 if (PyErr_Occurred()) SWIG_fail;
48546 }
48547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_OWN | 0 );
48548 return resultobj;
48549fail:
48550 return NULL;
d55e5bfc
RD
48551}
48552
48553
1bd55598
RD
48554SWIGINTERN PyObject *_wrap_SizerItem_DeleteWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48555 PyObject *resultobj = 0;
48556 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48557 void *argp1 = 0 ;
48558 int res1 = 0 ;
48559 PyObject *swig_obj[1] ;
48560
48561 if (!args) SWIG_fail;
48562 swig_obj[0] = args;
48563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48564 if (!SWIG_IsOK(res1)) {
48565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_DeleteWindows" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48566 }
48567 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48568 {
48569 PyThreadState* __tstate = wxPyBeginAllowThreads();
48570 (arg1)->DeleteWindows();
48571 wxPyEndAllowThreads(__tstate);
48572 if (PyErr_Occurred()) SWIG_fail;
48573 }
48574 resultobj = SWIG_Py_Void();
48575 return resultobj;
48576fail:
48577 return NULL;
d55e5bfc
RD
48578}
48579
48580
1bd55598
RD
48581SWIGINTERN PyObject *_wrap_SizerItem_DetachSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48582 PyObject *resultobj = 0;
48583 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48584 void *argp1 = 0 ;
48585 int res1 = 0 ;
48586 PyObject *swig_obj[1] ;
48587
48588 if (!args) SWIG_fail;
48589 swig_obj[0] = args;
48590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48591 if (!SWIG_IsOK(res1)) {
48592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_DetachSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48593 }
48594 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48595 {
48596 PyThreadState* __tstate = wxPyBeginAllowThreads();
48597 (arg1)->DetachSizer();
48598 wxPyEndAllowThreads(__tstate);
48599 if (PyErr_Occurred()) SWIG_fail;
48600 }
48601 resultobj = SWIG_Py_Void();
48602 return resultobj;
48603fail:
48604 return NULL;
d55e5bfc
RD
48605}
48606
48607
1bd55598
RD
48608SWIGINTERN PyObject *_wrap_SizerItem_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48609 PyObject *resultobj = 0;
48610 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48611 wxSize result;
48612 void *argp1 = 0 ;
48613 int res1 = 0 ;
48614 PyObject *swig_obj[1] ;
48615
48616 if (!args) SWIG_fail;
48617 swig_obj[0] = args;
48618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48619 if (!SWIG_IsOK(res1)) {
48620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSize" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48621 }
48622 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48623 {
48624 PyThreadState* __tstate = wxPyBeginAllowThreads();
48625 result = (arg1)->GetSize();
48626 wxPyEndAllowThreads(__tstate);
48627 if (PyErr_Occurred()) SWIG_fail;
48628 }
48629 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
48630 return resultobj;
48631fail:
48632 return NULL;
d55e5bfc
RD
48633}
48634
48635
1bd55598
RD
48636SWIGINTERN PyObject *_wrap_SizerItem_CalcMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48637 PyObject *resultobj = 0;
48638 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48639 wxSize result;
48640 void *argp1 = 0 ;
48641 int res1 = 0 ;
48642 PyObject *swig_obj[1] ;
48643
48644 if (!args) SWIG_fail;
48645 swig_obj[0] = args;
48646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48647 if (!SWIG_IsOK(res1)) {
48648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_CalcMin" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48649 }
48650 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48651 {
48652 PyThreadState* __tstate = wxPyBeginAllowThreads();
48653 result = (arg1)->CalcMin();
48654 wxPyEndAllowThreads(__tstate);
48655 if (PyErr_Occurred()) SWIG_fail;
48656 }
48657 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
48658 return resultobj;
48659fail:
48660 return NULL;
48661}
48662
48663
48664SWIGINTERN PyObject *_wrap_SizerItem_SetDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48665 PyObject *resultobj = 0;
48666 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48667 wxPoint *arg2 = 0 ;
48668 wxSize *arg3 = 0 ;
48669 void *argp1 = 0 ;
48670 int res1 = 0 ;
48671 wxPoint temp2 ;
48672 wxSize temp3 ;
48673 PyObject * obj0 = 0 ;
48674 PyObject * obj1 = 0 ;
48675 PyObject * obj2 = 0 ;
48676 char * kwnames[] = {
48677 (char *) "self",(char *) "pos",(char *) "size", NULL
48678 };
48679
48680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
48681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48682 if (!SWIG_IsOK(res1)) {
48683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetDimension" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48684 }
48685 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48686 {
48687 arg2 = &temp2;
48688 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
48689 }
48690 {
48691 arg3 = &temp3;
48692 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
48693 }
48694 {
48695 PyThreadState* __tstate = wxPyBeginAllowThreads();
48696 (arg1)->SetDimension((wxPoint const &)*arg2,(wxSize const &)*arg3);
48697 wxPyEndAllowThreads(__tstate);
48698 if (PyErr_Occurred()) SWIG_fail;
48699 }
48700 resultobj = SWIG_Py_Void();
48701 return resultobj;
48702fail:
48703 return NULL;
d55e5bfc
RD
48704}
48705
48706
1bd55598
RD
48707SWIGINTERN PyObject *_wrap_SizerItem_GetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48708 PyObject *resultobj = 0;
48709 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48710 wxSize result;
48711 void *argp1 = 0 ;
48712 int res1 = 0 ;
48713 PyObject *swig_obj[1] ;
48714
48715 if (!args) SWIG_fail;
48716 swig_obj[0] = args;
48717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48718 if (!SWIG_IsOK(res1)) {
48719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetMinSize" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48720 }
48721 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48722 {
48723 PyThreadState* __tstate = wxPyBeginAllowThreads();
48724 result = (arg1)->GetMinSize();
48725 wxPyEndAllowThreads(__tstate);
48726 if (PyErr_Occurred()) SWIG_fail;
48727 }
48728 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
48729 return resultobj;
48730fail:
48731 return NULL;
d55e5bfc
RD
48732}
48733
48734
1bd55598
RD
48735SWIGINTERN PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48736 PyObject *resultobj = 0;
48737 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48738 wxSize result;
48739 void *argp1 = 0 ;
48740 int res1 = 0 ;
48741 PyObject *swig_obj[1] ;
48742
48743 if (!args) SWIG_fail;
48744 swig_obj[0] = args;
48745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48746 if (!SWIG_IsOK(res1)) {
48747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetMinSizeWithBorder" "', expected argument " "1"" of type '" "wxSizerItem const *""'");
48748 }
48749 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48750 {
48751 PyThreadState* __tstate = wxPyBeginAllowThreads();
48752 result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder();
48753 wxPyEndAllowThreads(__tstate);
48754 if (PyErr_Occurred()) SWIG_fail;
48755 }
48756 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
48757 return resultobj;
48758fail:
48759 return NULL;
48760}
48761
48762
48763SWIGINTERN PyObject *_wrap_SizerItem_SetInitSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48764 PyObject *resultobj = 0;
48765 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48766 int arg2 ;
48767 int arg3 ;
48768 void *argp1 = 0 ;
48769 int res1 = 0 ;
48770 int val2 ;
48771 int ecode2 = 0 ;
48772 int val3 ;
48773 int ecode3 = 0 ;
48774 PyObject * obj0 = 0 ;
48775 PyObject * obj1 = 0 ;
48776 PyObject * obj2 = 0 ;
48777 char * kwnames[] = {
48778 (char *) "self",(char *) "x",(char *) "y", NULL
48779 };
48780
48781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
48782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48783 if (!SWIG_IsOK(res1)) {
48784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetInitSize" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48785 }
48786 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48787 ecode2 = SWIG_AsVal_int(obj1, &val2);
48788 if (!SWIG_IsOK(ecode2)) {
48789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetInitSize" "', expected argument " "2"" of type '" "int""'");
48790 }
48791 arg2 = static_cast< int >(val2);
48792 ecode3 = SWIG_AsVal_int(obj2, &val3);
48793 if (!SWIG_IsOK(ecode3)) {
48794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SizerItem_SetInitSize" "', expected argument " "3"" of type '" "int""'");
48795 }
48796 arg3 = static_cast< int >(val3);
48797 {
48798 PyThreadState* __tstate = wxPyBeginAllowThreads();
48799 (arg1)->SetInitSize(arg2,arg3);
48800 wxPyEndAllowThreads(__tstate);
48801 if (PyErr_Occurred()) SWIG_fail;
48802 }
48803 resultobj = SWIG_Py_Void();
48804 return resultobj;
48805fail:
48806 return NULL;
48807}
48808
48809
48810SWIGINTERN PyObject *_wrap_SizerItem_SetRatioWH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48811 PyObject *resultobj = 0;
48812 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48813 int arg2 ;
48814 int arg3 ;
48815 void *argp1 = 0 ;
48816 int res1 = 0 ;
48817 int val2 ;
48818 int ecode2 = 0 ;
48819 int val3 ;
48820 int ecode3 = 0 ;
48821 PyObject * obj0 = 0 ;
48822 PyObject * obj1 = 0 ;
48823 PyObject * obj2 = 0 ;
48824 char * kwnames[] = {
48825 (char *) "self",(char *) "width",(char *) "height", NULL
48826 };
48827
48828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
48829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48830 if (!SWIG_IsOK(res1)) {
48831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetRatioWH" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48832 }
48833 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48834 ecode2 = SWIG_AsVal_int(obj1, &val2);
48835 if (!SWIG_IsOK(ecode2)) {
48836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetRatioWH" "', expected argument " "2"" of type '" "int""'");
48837 }
48838 arg2 = static_cast< int >(val2);
48839 ecode3 = SWIG_AsVal_int(obj2, &val3);
48840 if (!SWIG_IsOK(ecode3)) {
48841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SizerItem_SetRatioWH" "', expected argument " "3"" of type '" "int""'");
48842 }
48843 arg3 = static_cast< int >(val3);
48844 {
48845 PyThreadState* __tstate = wxPyBeginAllowThreads();
48846 (arg1)->SetRatio(arg2,arg3);
48847 wxPyEndAllowThreads(__tstate);
48848 if (PyErr_Occurred()) SWIG_fail;
48849 }
48850 resultobj = SWIG_Py_Void();
48851 return resultobj;
48852fail:
48853 return NULL;
48854}
48855
48856
48857SWIGINTERN PyObject *_wrap_SizerItem_SetRatioSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48858 PyObject *resultobj = 0;
48859 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48860 wxSize *arg2 = 0 ;
48861 void *argp1 = 0 ;
48862 int res1 = 0 ;
48863 wxSize temp2 ;
48864 PyObject * obj0 = 0 ;
48865 PyObject * obj1 = 0 ;
48866 char * kwnames[] = {
48867 (char *) "self",(char *) "size", NULL
48868 };
48869
48870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) SWIG_fail;
48871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48872 if (!SWIG_IsOK(res1)) {
48873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetRatioSize" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48874 }
48875 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48876 {
48877 arg2 = &temp2;
48878 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
48879 }
48880 {
48881 PyThreadState* __tstate = wxPyBeginAllowThreads();
48882 (arg1)->SetRatio((wxSize const &)*arg2);
48883 wxPyEndAllowThreads(__tstate);
48884 if (PyErr_Occurred()) SWIG_fail;
48885 }
48886 resultobj = SWIG_Py_Void();
48887 return resultobj;
48888fail:
48889 return NULL;
48890}
48891
48892
48893SWIGINTERN PyObject *_wrap_SizerItem_SetRatio(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48894 PyObject *resultobj = 0;
48895 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48896 float arg2 ;
48897 void *argp1 = 0 ;
48898 int res1 = 0 ;
48899 float val2 ;
48900 int ecode2 = 0 ;
48901 PyObject * obj0 = 0 ;
48902 PyObject * obj1 = 0 ;
48903 char * kwnames[] = {
48904 (char *) "self",(char *) "ratio", NULL
48905 };
48906
48907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) SWIG_fail;
48908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48909 if (!SWIG_IsOK(res1)) {
48910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetRatio" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48911 }
48912 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48913 ecode2 = SWIG_AsVal_float(obj1, &val2);
48914 if (!SWIG_IsOK(ecode2)) {
48915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetRatio" "', expected argument " "2"" of type '" "float""'");
48916 }
48917 arg2 = static_cast< float >(val2);
48918 {
48919 PyThreadState* __tstate = wxPyBeginAllowThreads();
48920 (arg1)->SetRatio(arg2);
48921 wxPyEndAllowThreads(__tstate);
48922 if (PyErr_Occurred()) SWIG_fail;
48923 }
48924 resultobj = SWIG_Py_Void();
48925 return resultobj;
48926fail:
48927 return NULL;
d55e5bfc
RD
48928}
48929
48930
1bd55598
RD
48931SWIGINTERN PyObject *_wrap_SizerItem_GetRatio(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48932 PyObject *resultobj = 0;
48933 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48934 float result;
48935 void *argp1 = 0 ;
48936 int res1 = 0 ;
48937 PyObject *swig_obj[1] ;
48938
48939 if (!args) SWIG_fail;
48940 swig_obj[0] = args;
48941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48942 if (!SWIG_IsOK(res1)) {
48943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetRatio" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48944 }
48945 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48946 {
48947 PyThreadState* __tstate = wxPyBeginAllowThreads();
48948 result = (float)(arg1)->GetRatio();
48949 wxPyEndAllowThreads(__tstate);
48950 if (PyErr_Occurred()) SWIG_fail;
48951 }
48952 resultobj = SWIG_From_float(static_cast< float >(result));
48953 return resultobj;
48954fail:
48955 return NULL;
d55e5bfc
RD
48956}
48957
48958
1bd55598
RD
48959SWIGINTERN PyObject *_wrap_SizerItem_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48960 PyObject *resultobj = 0;
48961 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48962 wxRect result;
48963 void *argp1 = 0 ;
48964 int res1 = 0 ;
48965 PyObject *swig_obj[1] ;
48966
48967 if (!args) SWIG_fail;
48968 swig_obj[0] = args;
48969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48970 if (!SWIG_IsOK(res1)) {
48971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetRect" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48972 }
48973 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48974 {
48975 PyThreadState* __tstate = wxPyBeginAllowThreads();
48976 result = (arg1)->GetRect();
48977 wxPyEndAllowThreads(__tstate);
48978 if (PyErr_Occurred()) SWIG_fail;
48979 }
48980 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
48981 return resultobj;
48982fail:
48983 return NULL;
d55e5bfc
RD
48984}
48985
48986
1bd55598
RD
48987SWIGINTERN PyObject *_wrap_SizerItem_IsWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48988 PyObject *resultobj = 0;
48989 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48990 bool result;
48991 void *argp1 = 0 ;
48992 int res1 = 0 ;
48993 PyObject *swig_obj[1] ;
48994
48995 if (!args) SWIG_fail;
48996 swig_obj[0] = args;
48997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48998 if (!SWIG_IsOK(res1)) {
48999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_IsWindow" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49000 }
49001 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49002 {
49003 PyThreadState* __tstate = wxPyBeginAllowThreads();
49004 result = (bool)(arg1)->IsWindow();
49005 wxPyEndAllowThreads(__tstate);
49006 if (PyErr_Occurred()) SWIG_fail;
49007 }
49008 {
49009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
49010 }
49011 return resultobj;
49012fail:
49013 return NULL;
f8167d6e
RD
49014}
49015
49016
1bd55598
RD
49017SWIGINTERN PyObject *_wrap_SizerItem_IsSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49018 PyObject *resultobj = 0;
49019 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49020 bool result;
49021 void *argp1 = 0 ;
49022 int res1 = 0 ;
49023 PyObject *swig_obj[1] ;
49024
49025 if (!args) SWIG_fail;
49026 swig_obj[0] = args;
49027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49028 if (!SWIG_IsOK(res1)) {
49029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_IsSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49030 }
49031 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49032 {
49033 PyThreadState* __tstate = wxPyBeginAllowThreads();
49034 result = (bool)(arg1)->IsSizer();
49035 wxPyEndAllowThreads(__tstate);
49036 if (PyErr_Occurred()) SWIG_fail;
49037 }
49038 {
49039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
49040 }
49041 return resultobj;
49042fail:
49043 return NULL;
d55e5bfc
RD
49044}
49045
49046
1bd55598
RD
49047SWIGINTERN PyObject *_wrap_SizerItem_IsSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49048 PyObject *resultobj = 0;
49049 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49050 bool result;
49051 void *argp1 = 0 ;
49052 int res1 = 0 ;
49053 PyObject *swig_obj[1] ;
49054
49055 if (!args) SWIG_fail;
49056 swig_obj[0] = args;
49057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49058 if (!SWIG_IsOK(res1)) {
49059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_IsSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49060 }
49061 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49062 {
49063 PyThreadState* __tstate = wxPyBeginAllowThreads();
49064 result = (bool)(arg1)->IsSpacer();
49065 wxPyEndAllowThreads(__tstate);
49066 if (PyErr_Occurred()) SWIG_fail;
49067 }
49068 {
49069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
49070 }
49071 return resultobj;
49072fail:
49073 return NULL;
49074}
49075
49076
49077SWIGINTERN PyObject *_wrap_SizerItem_SetProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49078 PyObject *resultobj = 0;
49079 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49080 int arg2 ;
49081 void *argp1 = 0 ;
49082 int res1 = 0 ;
49083 int val2 ;
49084 int ecode2 = 0 ;
49085 PyObject * obj0 = 0 ;
49086 PyObject * obj1 = 0 ;
49087 char * kwnames[] = {
49088 (char *) "self",(char *) "proportion", NULL
49089 };
49090
49091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) SWIG_fail;
49092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49093 if (!SWIG_IsOK(res1)) {
49094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetProportion" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49095 }
49096 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49097 ecode2 = SWIG_AsVal_int(obj1, &val2);
49098 if (!SWIG_IsOK(ecode2)) {
49099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetProportion" "', expected argument " "2"" of type '" "int""'");
49100 }
49101 arg2 = static_cast< int >(val2);
49102 {
49103 PyThreadState* __tstate = wxPyBeginAllowThreads();
49104 (arg1)->SetProportion(arg2);
49105 wxPyEndAllowThreads(__tstate);
49106 if (PyErr_Occurred()) SWIG_fail;
49107 }
49108 resultobj = SWIG_Py_Void();
49109 return resultobj;
49110fail:
49111 return NULL;
d55e5bfc
RD
49112}
49113
49114
1bd55598
RD
49115SWIGINTERN PyObject *_wrap_SizerItem_GetProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49116 PyObject *resultobj = 0;
49117 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49118 int result;
49119 void *argp1 = 0 ;
49120 int res1 = 0 ;
49121 PyObject *swig_obj[1] ;
49122
49123 if (!args) SWIG_fail;
49124 swig_obj[0] = args;
49125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49126 if (!SWIG_IsOK(res1)) {
49127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetProportion" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49128 }
49129 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49130 {
49131 PyThreadState* __tstate = wxPyBeginAllowThreads();
49132 result = (int)(arg1)->GetProportion();
49133 wxPyEndAllowThreads(__tstate);
49134 if (PyErr_Occurred()) SWIG_fail;
49135 }
49136 resultobj = SWIG_From_int(static_cast< int >(result));
49137 return resultobj;
49138fail:
49139 return NULL;
49140}
49141
49142
49143SWIGINTERN PyObject *_wrap_SizerItem_SetFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49144 PyObject *resultobj = 0;
49145 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49146 int arg2 ;
49147 void *argp1 = 0 ;
49148 int res1 = 0 ;
49149 int val2 ;
49150 int ecode2 = 0 ;
49151 PyObject * obj0 = 0 ;
49152 PyObject * obj1 = 0 ;
49153 char * kwnames[] = {
49154 (char *) "self",(char *) "flag", NULL
49155 };
49156
49157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) SWIG_fail;
49158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49159 if (!SWIG_IsOK(res1)) {
49160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetFlag" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49161 }
49162 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49163 ecode2 = SWIG_AsVal_int(obj1, &val2);
49164 if (!SWIG_IsOK(ecode2)) {
49165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetFlag" "', expected argument " "2"" of type '" "int""'");
49166 }
49167 arg2 = static_cast< int >(val2);
49168 {
49169 PyThreadState* __tstate = wxPyBeginAllowThreads();
49170 (arg1)->SetFlag(arg2);
49171 wxPyEndAllowThreads(__tstate);
49172 if (PyErr_Occurred()) SWIG_fail;
49173 }
49174 resultobj = SWIG_Py_Void();
49175 return resultobj;
49176fail:
49177 return NULL;
d55e5bfc
RD
49178}
49179
49180
1bd55598
RD
49181SWIGINTERN PyObject *_wrap_SizerItem_GetFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49182 PyObject *resultobj = 0;
49183 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49184 int result;
49185 void *argp1 = 0 ;
49186 int res1 = 0 ;
49187 PyObject *swig_obj[1] ;
49188
49189 if (!args) SWIG_fail;
49190 swig_obj[0] = args;
49191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49192 if (!SWIG_IsOK(res1)) {
49193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetFlag" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49194 }
49195 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49196 {
49197 PyThreadState* __tstate = wxPyBeginAllowThreads();
49198 result = (int)(arg1)->GetFlag();
49199 wxPyEndAllowThreads(__tstate);
49200 if (PyErr_Occurred()) SWIG_fail;
49201 }
49202 resultobj = SWIG_From_int(static_cast< int >(result));
49203 return resultobj;
49204fail:
49205 return NULL;
49206}
49207
49208
49209SWIGINTERN PyObject *_wrap_SizerItem_SetBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49210 PyObject *resultobj = 0;
49211 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49212 int arg2 ;
49213 void *argp1 = 0 ;
49214 int res1 = 0 ;
49215 int val2 ;
49216 int ecode2 = 0 ;
49217 PyObject * obj0 = 0 ;
49218 PyObject * obj1 = 0 ;
49219 char * kwnames[] = {
49220 (char *) "self",(char *) "border", NULL
49221 };
49222
49223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) SWIG_fail;
49224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49225 if (!SWIG_IsOK(res1)) {
49226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetBorder" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49227 }
49228 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49229 ecode2 = SWIG_AsVal_int(obj1, &val2);
49230 if (!SWIG_IsOK(ecode2)) {
49231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetBorder" "', expected argument " "2"" of type '" "int""'");
49232 }
49233 arg2 = static_cast< int >(val2);
49234 {
49235 PyThreadState* __tstate = wxPyBeginAllowThreads();
49236 (arg1)->SetBorder(arg2);
49237 wxPyEndAllowThreads(__tstate);
49238 if (PyErr_Occurred()) SWIG_fail;
49239 }
49240 resultobj = SWIG_Py_Void();
49241 return resultobj;
49242fail:
49243 return NULL;
d55e5bfc
RD
49244}
49245
49246
1bd55598
RD
49247SWIGINTERN PyObject *_wrap_SizerItem_GetBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49248 PyObject *resultobj = 0;
49249 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49250 int result;
49251 void *argp1 = 0 ;
49252 int res1 = 0 ;
49253 PyObject *swig_obj[1] ;
49254
49255 if (!args) SWIG_fail;
49256 swig_obj[0] = args;
49257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49258 if (!SWIG_IsOK(res1)) {
49259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetBorder" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49260 }
49261 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49262 {
49263 PyThreadState* __tstate = wxPyBeginAllowThreads();
49264 result = (int)(arg1)->GetBorder();
49265 wxPyEndAllowThreads(__tstate);
49266 if (PyErr_Occurred()) SWIG_fail;
49267 }
49268 resultobj = SWIG_From_int(static_cast< int >(result));
49269 return resultobj;
49270fail:
49271 return NULL;
d55e5bfc
RD
49272}
49273
49274
1bd55598
RD
49275SWIGINTERN PyObject *_wrap_SizerItem_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49276 PyObject *resultobj = 0;
49277 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49278 wxWindow *result = 0 ;
49279 void *argp1 = 0 ;
49280 int res1 = 0 ;
49281 PyObject *swig_obj[1] ;
49282
49283 if (!args) SWIG_fail;
49284 swig_obj[0] = args;
49285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49286 if (!SWIG_IsOK(res1)) {
49287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetWindow" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49288 }
49289 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49290 {
49291 PyThreadState* __tstate = wxPyBeginAllowThreads();
49292 result = (wxWindow *)(arg1)->GetWindow();
49293 wxPyEndAllowThreads(__tstate);
49294 if (PyErr_Occurred()) SWIG_fail;
49295 }
49296 {
49297 resultobj = wxPyMake_wxObject(result, 0);
49298 }
49299 return resultobj;
49300fail:
49301 return NULL;
49302}
49303
49304
49305SWIGINTERN PyObject *_wrap_SizerItem_SetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49306 PyObject *resultobj = 0;
49307 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49308 wxWindow *arg2 = (wxWindow *) 0 ;
49309 void *argp1 = 0 ;
49310 int res1 = 0 ;
49311 void *argp2 = 0 ;
49312 int res2 = 0 ;
49313 PyObject * obj0 = 0 ;
49314 PyObject * obj1 = 0 ;
49315 char * kwnames[] = {
49316 (char *) "self",(char *) "window", NULL
49317 };
49318
49319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) SWIG_fail;
49320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49321 if (!SWIG_IsOK(res1)) {
49322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetWindow" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49323 }
49324 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49325 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
49326 if (!SWIG_IsOK(res2)) {
49327 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizerItem_SetWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
49328 }
49329 arg2 = reinterpret_cast< wxWindow * >(argp2);
49330 {
49331 PyThreadState* __tstate = wxPyBeginAllowThreads();
49332 (arg1)->SetWindow(arg2);
49333 wxPyEndAllowThreads(__tstate);
49334 if (PyErr_Occurred()) SWIG_fail;
49335 }
49336 resultobj = SWIG_Py_Void();
49337 return resultobj;
49338fail:
49339 return NULL;
d55e5bfc
RD
49340}
49341
49342
1bd55598
RD
49343SWIGINTERN PyObject *_wrap_SizerItem_GetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49344 PyObject *resultobj = 0;
49345 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49346 wxSizer *result = 0 ;
49347 void *argp1 = 0 ;
49348 int res1 = 0 ;
49349 PyObject *swig_obj[1] ;
49350
49351 if (!args) SWIG_fail;
49352 swig_obj[0] = args;
49353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49354 if (!SWIG_IsOK(res1)) {
49355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49356 }
49357 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49358 {
49359 PyThreadState* __tstate = wxPyBeginAllowThreads();
49360 result = (wxSizer *)(arg1)->GetSizer();
49361 wxPyEndAllowThreads(__tstate);
49362 if (PyErr_Occurred()) SWIG_fail;
49363 }
49364 {
49365 resultobj = wxPyMake_wxObject(result, (bool)0);
49366 }
49367 return resultobj;
49368fail:
49369 return NULL;
49370}
49371
49372
49373SWIGINTERN PyObject *_wrap_SizerItem_SetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49374 PyObject *resultobj = 0;
49375 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49376 wxSizer *arg2 = (wxSizer *) 0 ;
49377 void *argp1 = 0 ;
49378 int res1 = 0 ;
49379 int res2 = 0 ;
49380 PyObject * obj0 = 0 ;
49381 PyObject * obj1 = 0 ;
49382 char * kwnames[] = {
49383 (char *) "self",(char *) "sizer", NULL
49384 };
49385
49386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) SWIG_fail;
49387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49388 if (!SWIG_IsOK(res1)) {
49389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49390 }
49391 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49392 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
49393 if (!SWIG_IsOK(res2)) {
49394 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizerItem_SetSizer" "', expected argument " "2"" of type '" "wxSizer *""'");
49395 }
49396 {
49397 PyThreadState* __tstate = wxPyBeginAllowThreads();
49398 (arg1)->SetSizer(arg2);
49399 wxPyEndAllowThreads(__tstate);
49400 if (PyErr_Occurred()) SWIG_fail;
49401 }
49402 resultobj = SWIG_Py_Void();
49403 return resultobj;
49404fail:
49405 return NULL;
d55e5bfc
RD
49406}
49407
49408
1bd55598
RD
49409SWIGINTERN PyObject *_wrap_SizerItem_GetSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49410 PyObject *resultobj = 0;
49411 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
7753ca6b 49412 wxSize result;
1bd55598
RD
49413 void *argp1 = 0 ;
49414 int res1 = 0 ;
49415 PyObject *swig_obj[1] ;
49416
49417 if (!args) SWIG_fail;
49418 swig_obj[0] = args;
49419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49420 if (!SWIG_IsOK(res1)) {
49421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49422 }
49423 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49424 {
49425 PyThreadState* __tstate = wxPyBeginAllowThreads();
7753ca6b 49426 result = (arg1)->GetSpacer();
1bd55598
RD
49427 wxPyEndAllowThreads(__tstate);
49428 if (PyErr_Occurred()) SWIG_fail;
49429 }
7753ca6b 49430 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
1bd55598
RD
49431 return resultobj;
49432fail:
49433 return NULL;
49434}
49435
49436
49437SWIGINTERN PyObject *_wrap_SizerItem_SetSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49438 PyObject *resultobj = 0;
49439 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49440 wxSize *arg2 = 0 ;
49441 void *argp1 = 0 ;
49442 int res1 = 0 ;
49443 wxSize temp2 ;
49444 PyObject * obj0 = 0 ;
49445 PyObject * obj1 = 0 ;
49446 char * kwnames[] = {
49447 (char *) "self",(char *) "size", NULL
49448 };
49449
49450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) SWIG_fail;
49451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49452 if (!SWIG_IsOK(res1)) {
49453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49454 }
49455 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49456 {
49457 arg2 = &temp2;
49458 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
49459 }
49460 {
49461 PyThreadState* __tstate = wxPyBeginAllowThreads();
49462 (arg1)->SetSpacer((wxSize const &)*arg2);
49463 wxPyEndAllowThreads(__tstate);
49464 if (PyErr_Occurred()) SWIG_fail;
49465 }
49466 resultobj = SWIG_Py_Void();
49467 return resultobj;
49468fail:
49469 return NULL;
49470}
49471
49472
49473SWIGINTERN PyObject *_wrap_SizerItem_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49474 PyObject *resultobj = 0;
49475 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49476 bool arg2 ;
49477 void *argp1 = 0 ;
49478 int res1 = 0 ;
49479 bool val2 ;
49480 int ecode2 = 0 ;
49481 PyObject * obj0 = 0 ;
49482 PyObject * obj1 = 0 ;
49483 char * kwnames[] = {
49484 (char *) "self",(char *) "show", NULL
49485 };
49486
49487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) SWIG_fail;
49488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49489 if (!SWIG_IsOK(res1)) {
49490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_Show" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49491 }
49492 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49493 ecode2 = SWIG_AsVal_bool(obj1, &val2);
49494 if (!SWIG_IsOK(ecode2)) {
49495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_Show" "', expected argument " "2"" of type '" "bool""'");
49496 }
49497 arg2 = static_cast< bool >(val2);
49498 {
49499 PyThreadState* __tstate = wxPyBeginAllowThreads();
49500 (arg1)->Show(arg2);
49501 wxPyEndAllowThreads(__tstate);
49502 if (PyErr_Occurred()) SWIG_fail;
49503 }
49504 resultobj = SWIG_Py_Void();
49505 return resultobj;
49506fail:
49507 return NULL;
d55e5bfc
RD
49508}
49509
49510
1bd55598
RD
49511SWIGINTERN PyObject *_wrap_SizerItem_IsShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49512 PyObject *resultobj = 0;
49513 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49514 bool result;
49515 void *argp1 = 0 ;
49516 int res1 = 0 ;
49517 PyObject *swig_obj[1] ;
49518
49519 if (!args) SWIG_fail;
49520 swig_obj[0] = args;
49521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49522 if (!SWIG_IsOK(res1)) {
49523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_IsShown" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49524 }
49525 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49526 {
49527 PyThreadState* __tstate = wxPyBeginAllowThreads();
49528 result = (bool)(arg1)->IsShown();
49529 wxPyEndAllowThreads(__tstate);
49530 if (PyErr_Occurred()) SWIG_fail;
49531 }
49532 {
49533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
49534 }
49535 return resultobj;
49536fail:
49537 return NULL;
d55e5bfc
RD
49538}
49539
49540
1bd55598
RD
49541SWIGINTERN PyObject *_wrap_SizerItem_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49542 PyObject *resultobj = 0;
49543 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49544 wxPoint result;
49545 void *argp1 = 0 ;
49546 int res1 = 0 ;
49547 PyObject *swig_obj[1] ;
49548
49549 if (!args) SWIG_fail;
49550 swig_obj[0] = args;
49551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49552 if (!SWIG_IsOK(res1)) {
49553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetPosition" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49554 }
49555 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49556 {
49557 PyThreadState* __tstate = wxPyBeginAllowThreads();
49558 result = (arg1)->GetPosition();
49559 wxPyEndAllowThreads(__tstate);
49560 if (PyErr_Occurred()) SWIG_fail;
49561 }
49562 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
49563 return resultobj;
49564fail:
49565 return NULL;
d55e5bfc
RD
49566}
49567
49568
1bd55598
RD
49569SWIGINTERN PyObject *_wrap_SizerItem_GetUserData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49570 PyObject *resultobj = 0;
49571 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49572 PyObject *result = 0 ;
49573 void *argp1 = 0 ;
49574 int res1 = 0 ;
49575 PyObject *swig_obj[1] ;
49576
49577 if (!args) SWIG_fail;
49578 swig_obj[0] = args;
49579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49580 if (!SWIG_IsOK(res1)) {
49581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetUserData" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49582 }
49583 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49584 {
49585 PyThreadState* __tstate = wxPyBeginAllowThreads();
49586 result = (PyObject *)wxSizerItem_GetUserData(arg1);
49587 wxPyEndAllowThreads(__tstate);
49588 if (PyErr_Occurred()) SWIG_fail;
49589 }
49590 resultobj = result;
49591 return resultobj;
49592fail:
49593 return NULL;
49594}
49595
49596
49597SWIGINTERN PyObject *_wrap_SizerItem_SetUserData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49598 PyObject *resultobj = 0;
49599 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49600 PyObject *arg2 = (PyObject *) 0 ;
49601 void *argp1 = 0 ;
49602 int res1 = 0 ;
49603 PyObject * obj0 = 0 ;
49604 PyObject * obj1 = 0 ;
49605 char * kwnames[] = {
49606 (char *) "self",(char *) "userData", NULL
49607 };
49608
49609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetUserData",kwnames,&obj0,&obj1)) SWIG_fail;
49610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49611 if (!SWIG_IsOK(res1)) {
49612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetUserData" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49613 }
49614 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49615 arg2 = obj1;
49616 {
49617 PyThreadState* __tstate = wxPyBeginAllowThreads();
49618 wxSizerItem_SetUserData(arg1,arg2);
49619 wxPyEndAllowThreads(__tstate);
49620 if (PyErr_Occurred()) SWIG_fail;
49621 }
49622 resultobj = SWIG_Py_Void();
49623 return resultobj;
49624fail:
49625 return NULL;
d55e5bfc
RD
49626}
49627
49628
1bd55598
RD
49629SWIGINTERN PyObject *SizerItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49630 PyObject *obj;
49631 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
49632 SWIG_TypeNewClientData(SWIGTYPE_p_wxSizerItem, SWIG_NewClientData(obj));
49633 return SWIG_Py_Void();
d55e5bfc
RD
49634}
49635
1bd55598
RD
49636SWIGINTERN PyObject *SizerItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49637 return SWIG_Python_InitShadowInstance(args);
49638}
d55e5bfc 49639
1bd55598
RD
49640SWIGINTERN PyObject *_wrap_delete_Sizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49641 PyObject *resultobj = 0;
49642 wxSizer *arg1 = (wxSizer *) 0 ;
49643 void *argp1 = 0 ;
49644 int res1 = 0 ;
49645 PyObject *swig_obj[1] ;
49646
49647 if (!args) SWIG_fail;
49648 swig_obj[0] = args;
49649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
49650 if (!SWIG_IsOK(res1)) {
49651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Sizer" "', expected argument " "1"" of type '" "wxSizer *""'");
49652 }
49653 arg1 = reinterpret_cast< wxSizer * >(argp1);
49654 {
49655 PyThreadState* __tstate = wxPyBeginAllowThreads();
49656 delete arg1;
d55e5bfc 49657
1bd55598
RD
49658 wxPyEndAllowThreads(__tstate);
49659 if (PyErr_Occurred()) SWIG_fail;
49660 }
49661 resultobj = SWIG_Py_Void();
49662 return resultobj;
49663fail:
49664 return NULL;
49665}
49666
49667
49668SWIGINTERN PyObject *_wrap_Sizer__setOORInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49669 PyObject *resultobj = 0;
49670 wxSizer *arg1 = (wxSizer *) 0 ;
49671 PyObject *arg2 = (PyObject *) 0 ;
49672 void *argp1 = 0 ;
49673 int res1 = 0 ;
49674 PyObject * obj0 = 0 ;
49675 PyObject * obj1 = 0 ;
49676 char * kwnames[] = {
49677 (char *) "self",(char *) "_self", NULL
49678 };
49679
49680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) SWIG_fail;
49681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
49682 if (!SWIG_IsOK(res1)) {
49683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer__setOORInfo" "', expected argument " "1"" of type '" "wxSizer *""'");
49684 }
49685 arg1 = reinterpret_cast< wxSizer * >(argp1);
49686 arg2 = obj1;
49687 {
49688 PyThreadState* __tstate = wxPyBeginAllowThreads();
49689 wxSizer__setOORInfo(arg1,arg2);
49690 wxPyEndAllowThreads(__tstate);
49691 if (PyErr_Occurred()) SWIG_fail;
49692 }
49693 resultobj = SWIG_Py_Void();
49694 return resultobj;
49695fail:
49696 return NULL;
49697}
49698
49699
49700SWIGINTERN PyObject *_wrap_Sizer_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49701 PyObject *resultobj = 0;
49702 wxSizer *arg1 = (wxSizer *) 0 ;
49703 PyObject *arg2 = (PyObject *) 0 ;
49704 int arg3 = (int) 0 ;
49705 int arg4 = (int) 0 ;
49706 int arg5 = (int) 0 ;
49707 PyObject *arg6 = (PyObject *) NULL ;
49708 wxSizerItem *result = 0 ;
49709 void *argp1 = 0 ;
49710 int res1 = 0 ;
49711 int val3 ;
49712 int ecode3 = 0 ;
49713 int val4 ;
49714 int ecode4 = 0 ;
49715 int val5 ;
49716 int ecode5 = 0 ;
49717 PyObject * obj0 = 0 ;
49718 PyObject * obj1 = 0 ;
49719 PyObject * obj2 = 0 ;
49720 PyObject * obj3 = 0 ;
49721 PyObject * obj4 = 0 ;
49722 PyObject * obj5 = 0 ;
49723 char * kwnames[] = {
49724 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
49725 };
49726
49727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
49728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
49729 if (!SWIG_IsOK(res1)) {
49730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Add" "', expected argument " "1"" of type '" "wxSizer *""'");
49731 }
49732 arg1 = reinterpret_cast< wxSizer * >(argp1);
49733 arg2 = obj1;
49734 if (obj2) {
49735 ecode3 = SWIG_AsVal_int(obj2, &val3);
49736 if (!SWIG_IsOK(ecode3)) {
49737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Sizer_Add" "', expected argument " "3"" of type '" "int""'");
49738 }
49739 arg3 = static_cast< int >(val3);
49740 }
49741 if (obj3) {
49742 ecode4 = SWIG_AsVal_int(obj3, &val4);
49743 if (!SWIG_IsOK(ecode4)) {
49744 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer_Add" "', expected argument " "4"" of type '" "int""'");
49745 }
49746 arg4 = static_cast< int >(val4);
49747 }
49748 if (obj4) {
49749 ecode5 = SWIG_AsVal_int(obj4, &val5);
49750 if (!SWIG_IsOK(ecode5)) {
49751 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Sizer_Add" "', expected argument " "5"" of type '" "int""'");
49752 }
49753 arg5 = static_cast< int >(val5);
49754 }
49755 if (obj5) {
49756 arg6 = obj5;
49757 }
49758 {
49759 PyThreadState* __tstate = wxPyBeginAllowThreads();
49760 result = (wxSizerItem *)wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6);
49761 wxPyEndAllowThreads(__tstate);
49762 if (PyErr_Occurred()) SWIG_fail;
49763 }
49764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
49765 return resultobj;
49766fail:
49767 return NULL;
49768}
49769
49770
49771SWIGINTERN PyObject *_wrap_Sizer_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49772 PyObject *resultobj = 0;
49773 wxSizer *arg1 = (wxSizer *) 0 ;
49774 int arg2 ;
49775 PyObject *arg3 = (PyObject *) 0 ;
49776 int arg4 = (int) 0 ;
49777 int arg5 = (int) 0 ;
49778 int arg6 = (int) 0 ;
49779 PyObject *arg7 = (PyObject *) NULL ;
49780 wxSizerItem *result = 0 ;
49781 void *argp1 = 0 ;
49782 int res1 = 0 ;
49783 int val2 ;
49784 int ecode2 = 0 ;
49785 int val4 ;
49786 int ecode4 = 0 ;
49787 int val5 ;
49788 int ecode5 = 0 ;
49789 int val6 ;
49790 int ecode6 = 0 ;
49791 PyObject * obj0 = 0 ;
49792 PyObject * obj1 = 0 ;
49793 PyObject * obj2 = 0 ;
49794 PyObject * obj3 = 0 ;
49795 PyObject * obj4 = 0 ;
49796 PyObject * obj5 = 0 ;
49797 PyObject * obj6 = 0 ;
49798 char * kwnames[] = {
49799 (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
49800 };
49801
49802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
49803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
49804 if (!SWIG_IsOK(res1)) {
49805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Insert" "', expected argument " "1"" of type '" "wxSizer *""'");
49806 }
49807 arg1 = reinterpret_cast< wxSizer * >(argp1);
49808 ecode2 = SWIG_AsVal_int(obj1, &val2);
49809 if (!SWIG_IsOK(ecode2)) {
49810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer_Insert" "', expected argument " "2"" of type '" "int""'");
49811 }
49812 arg2 = static_cast< int >(val2);
49813 arg3 = obj2;
49814 if (obj3) {
49815 ecode4 = SWIG_AsVal_int(obj3, &val4);
49816 if (!SWIG_IsOK(ecode4)) {
49817 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer_Insert" "', expected argument " "4"" of type '" "int""'");
49818 }
49819 arg4 = static_cast< int >(val4);
49820 }
49821 if (obj4) {
49822 ecode5 = SWIG_AsVal_int(obj4, &val5);
49823 if (!SWIG_IsOK(ecode5)) {
49824 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Sizer_Insert" "', expected argument " "5"" of type '" "int""'");
49825 }
49826 arg5 = static_cast< int >(val5);
49827 }
49828 if (obj5) {
49829 ecode6 = SWIG_AsVal_int(obj5, &val6);
49830 if (!SWIG_IsOK(ecode6)) {
49831 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Sizer_Insert" "', expected argument " "6"" of type '" "int""'");
49832 }
49833 arg6 = static_cast< int >(val6);
49834 }
49835 if (obj6) {
49836 arg7 = obj6;
49837 }
49838 {
49839 PyThreadState* __tstate = wxPyBeginAllowThreads();
49840 result = (wxSizerItem *)wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
49841 wxPyEndAllowThreads(__tstate);
49842 if (PyErr_Occurred()) SWIG_fail;
49843 }
49844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
49845 return resultobj;
49846fail:
49847 return NULL;
49848}
49849
49850
49851SWIGINTERN PyObject *_wrap_Sizer_Prepend(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49852 PyObject *resultobj = 0;
49853 wxSizer *arg1 = (wxSizer *) 0 ;
49854 PyObject *arg2 = (PyObject *) 0 ;
49855 int arg3 = (int) 0 ;
49856 int arg4 = (int) 0 ;
49857 int arg5 = (int) 0 ;
49858 PyObject *arg6 = (PyObject *) NULL ;
49859 wxSizerItem *result = 0 ;
49860 void *argp1 = 0 ;
49861 int res1 = 0 ;
49862 int val3 ;
49863 int ecode3 = 0 ;
49864 int val4 ;
49865 int ecode4 = 0 ;
49866 int val5 ;
49867 int ecode5 = 0 ;
49868 PyObject * obj0 = 0 ;
49869 PyObject * obj1 = 0 ;
49870 PyObject * obj2 = 0 ;
49871 PyObject * obj3 = 0 ;
49872 PyObject * obj4 = 0 ;
49873 PyObject * obj5 = 0 ;
49874 char * kwnames[] = {
49875 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
49876 };
49877
49878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
49879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
49880 if (!SWIG_IsOK(res1)) {
49881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Prepend" "', expected argument " "1"" of type '" "wxSizer *""'");
49882 }
49883 arg1 = reinterpret_cast< wxSizer * >(argp1);
49884 arg2 = obj1;
49885 if (obj2) {
49886 ecode3 = SWIG_AsVal_int(obj2, &val3);
49887 if (!SWIG_IsOK(ecode3)) {
49888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Sizer_Prepend" "', expected argument " "3"" of type '" "int""'");
49889 }
49890 arg3 = static_cast< int >(val3);
49891 }
49892 if (obj3) {
49893 ecode4 = SWIG_AsVal_int(obj3, &val4);
49894 if (!SWIG_IsOK(ecode4)) {
49895 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer_Prepend" "', expected argument " "4"" of type '" "int""'");
49896 }
49897 arg4 = static_cast< int >(val4);
49898 }
49899 if (obj4) {
49900 ecode5 = SWIG_AsVal_int(obj4, &val5);
49901 if (!SWIG_IsOK(ecode5)) {
49902 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Sizer_Prepend" "', expected argument " "5"" of type '" "int""'");
49903 }
49904 arg5 = static_cast< int >(val5);
49905 }
49906 if (obj5) {
49907 arg6 = obj5;
49908 }
49909 {
49910 PyThreadState* __tstate = wxPyBeginAllowThreads();
49911 result = (wxSizerItem *)wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6);
49912 wxPyEndAllowThreads(__tstate);
49913 if (PyErr_Occurred()) SWIG_fail;
49914 }
49915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
49916 return resultobj;
49917fail:
49918 return NULL;
49919}
49920
49921
49922SWIGINTERN PyObject *_wrap_Sizer_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49923 PyObject *resultobj = 0;
49924 wxSizer *arg1 = (wxSizer *) 0 ;
49925 PyObject *arg2 = (PyObject *) 0 ;
49926 bool result;
49927 void *argp1 = 0 ;
49928 int res1 = 0 ;
49929 PyObject * obj0 = 0 ;
49930 PyObject * obj1 = 0 ;
49931 char * kwnames[] = {
49932 (char *) "self",(char *) "item", NULL
49933 };
49934
49935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
49936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
49937 if (!SWIG_IsOK(res1)) {
49938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Remove" "', expected argument " "1"" of type '" "wxSizer *""'");
49939 }
49940 arg1 = reinterpret_cast< wxSizer * >(argp1);
49941 arg2 = obj1;
49942 {
49943 PyThreadState* __tstate = wxPyBeginAllowThreads();
49944 result = (bool)wxSizer_Remove(arg1,arg2);
49945 wxPyEndAllowThreads(__tstate);
49946 if (PyErr_Occurred()) SWIG_fail;
49947 }
49948 {
49949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
49950 }
49951 return resultobj;
49952fail:
49953 return NULL;
49954}
49955
49956
49957SWIGINTERN PyObject *_wrap_Sizer_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49958 PyObject *resultobj = 0;
49959 wxSizer *arg1 = (wxSizer *) 0 ;
49960 PyObject *arg2 = (PyObject *) 0 ;
49961 bool result;
49962 void *argp1 = 0 ;
49963 int res1 = 0 ;
49964 PyObject * obj0 = 0 ;
49965 PyObject * obj1 = 0 ;
49966 char * kwnames[] = {
49967 (char *) "self",(char *) "item", NULL
49968 };
49969
49970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) SWIG_fail;
49971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
49972 if (!SWIG_IsOK(res1)) {
49973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Detach" "', expected argument " "1"" of type '" "wxSizer *""'");
49974 }
49975 arg1 = reinterpret_cast< wxSizer * >(argp1);
49976 arg2 = obj1;
49977 {
49978 PyThreadState* __tstate = wxPyBeginAllowThreads();
49979 result = (bool)wxSizer_Detach(arg1,arg2);
49980 wxPyEndAllowThreads(__tstate);
49981 if (PyErr_Occurred()) SWIG_fail;
49982 }
49983 {
49984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
49985 }
49986 return resultobj;
49987fail:
49988 return NULL;
49989}
49990
49991
49992SWIGINTERN PyObject *_wrap_Sizer_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49993 PyObject *resultobj = 0;
49994 wxSizer *arg1 = (wxSizer *) 0 ;
49995 PyObject *arg2 = (PyObject *) 0 ;
49996 wxSizerItem *result = 0 ;
49997 void *argp1 = 0 ;
49998 int res1 = 0 ;
49999 PyObject * obj0 = 0 ;
50000 PyObject * obj1 = 0 ;
50001 char * kwnames[] = {
50002 (char *) "self",(char *) "item", NULL
50003 };
50004
50005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_GetItem",kwnames,&obj0,&obj1)) SWIG_fail;
50006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50007 if (!SWIG_IsOK(res1)) {
50008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetItem" "', expected argument " "1"" of type '" "wxSizer *""'");
50009 }
50010 arg1 = reinterpret_cast< wxSizer * >(argp1);
50011 arg2 = obj1;
50012 {
50013 PyThreadState* __tstate = wxPyBeginAllowThreads();
50014 result = (wxSizerItem *)wxSizer_GetItem(arg1,arg2);
50015 wxPyEndAllowThreads(__tstate);
50016 if (PyErr_Occurred()) SWIG_fail;
50017 }
50018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
50019 return resultobj;
50020fail:
50021 return NULL;
50022}
50023
50024
50025SWIGINTERN PyObject *_wrap_Sizer__SetItemMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50026 PyObject *resultobj = 0;
50027 wxSizer *arg1 = (wxSizer *) 0 ;
50028 PyObject *arg2 = (PyObject *) 0 ;
50029 wxSize *arg3 = 0 ;
50030 void *argp1 = 0 ;
50031 int res1 = 0 ;
50032 wxSize temp3 ;
50033 PyObject * obj0 = 0 ;
50034 PyObject * obj1 = 0 ;
50035 PyObject * obj2 = 0 ;
50036 char * kwnames[] = {
50037 (char *) "self",(char *) "item",(char *) "size", NULL
50038 };
50039
50040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
50041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50042 if (!SWIG_IsOK(res1)) {
50043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer__SetItemMinSize" "', expected argument " "1"" of type '" "wxSizer *""'");
50044 }
50045 arg1 = reinterpret_cast< wxSizer * >(argp1);
50046 arg2 = obj1;
50047 {
50048 arg3 = &temp3;
50049 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
50050 }
50051 {
50052 PyThreadState* __tstate = wxPyBeginAllowThreads();
50053 wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3);
50054 wxPyEndAllowThreads(__tstate);
50055 if (PyErr_Occurred()) SWIG_fail;
50056 }
50057 resultobj = SWIG_Py_Void();
50058 return resultobj;
50059fail:
50060 return NULL;
50061}
50062
50063
ac5d357a
RD
50064SWIGINTERN PyObject *_wrap_Sizer__ReplaceWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50065 PyObject *resultobj = 0;
50066 wxSizer *arg1 = (wxSizer *) 0 ;
50067 wxWindow *arg2 = (wxWindow *) 0 ;
50068 wxWindow *arg3 = (wxWindow *) 0 ;
50069 bool arg4 = (bool) false ;
50070 bool result;
50071 void *argp1 = 0 ;
50072 int res1 = 0 ;
50073 void *argp2 = 0 ;
50074 int res2 = 0 ;
50075 void *argp3 = 0 ;
50076 int res3 = 0 ;
50077 bool val4 ;
50078 int ecode4 = 0 ;
50079 PyObject * obj0 = 0 ;
50080 PyObject * obj1 = 0 ;
50081 PyObject * obj2 = 0 ;
50082 PyObject * obj3 = 0 ;
50083 char * kwnames[] = {
50084 (char *) "self",(char *) "oldwin",(char *) "newwin",(char *) "recursive", NULL
50085 };
50086
50087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Sizer__ReplaceWin",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
50088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50089 if (!SWIG_IsOK(res1)) {
50090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer__ReplaceWin" "', expected argument " "1"" of type '" "wxSizer *""'");
50091 }
50092 arg1 = reinterpret_cast< wxSizer * >(argp1);
50093 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
50094 if (!SWIG_IsOK(res2)) {
50095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer__ReplaceWin" "', expected argument " "2"" of type '" "wxWindow *""'");
50096 }
50097 arg2 = reinterpret_cast< wxWindow * >(argp2);
50098 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
50099 if (!SWIG_IsOK(res3)) {
50100 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Sizer__ReplaceWin" "', expected argument " "3"" of type '" "wxWindow *""'");
50101 }
50102 arg3 = reinterpret_cast< wxWindow * >(argp3);
50103 if (obj3) {
50104 ecode4 = SWIG_AsVal_bool(obj3, &val4);
50105 if (!SWIG_IsOK(ecode4)) {
50106 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer__ReplaceWin" "', expected argument " "4"" of type '" "bool""'");
50107 }
50108 arg4 = static_cast< bool >(val4);
50109 }
50110 {
50111 PyThreadState* __tstate = wxPyBeginAllowThreads();
50112 result = (bool)(arg1)->Replace(arg2,arg3,arg4);
50113 wxPyEndAllowThreads(__tstate);
50114 if (PyErr_Occurred()) SWIG_fail;
50115 }
50116 {
50117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
50118 }
50119 return resultobj;
50120fail:
50121 return NULL;
50122}
50123
50124
50125SWIGINTERN PyObject *_wrap_Sizer__ReplaceSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50126 PyObject *resultobj = 0;
50127 wxSizer *arg1 = (wxSizer *) 0 ;
50128 wxSizer *arg2 = (wxSizer *) 0 ;
50129 wxSizer *arg3 = (wxSizer *) 0 ;
50130 bool arg4 = (bool) false ;
50131 bool result;
50132 void *argp1 = 0 ;
50133 int res1 = 0 ;
50134 void *argp2 = 0 ;
50135 int res2 = 0 ;
50136 void *argp3 = 0 ;
50137 int res3 = 0 ;
50138 bool val4 ;
50139 int ecode4 = 0 ;
50140 PyObject * obj0 = 0 ;
50141 PyObject * obj1 = 0 ;
50142 PyObject * obj2 = 0 ;
50143 PyObject * obj3 = 0 ;
50144 char * kwnames[] = {
50145 (char *) "self",(char *) "oldsz",(char *) "newsz",(char *) "recursive", NULL
50146 };
50147
50148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Sizer__ReplaceSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
50149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50150 if (!SWIG_IsOK(res1)) {
50151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer__ReplaceSizer" "', expected argument " "1"" of type '" "wxSizer *""'");
50152 }
50153 arg1 = reinterpret_cast< wxSizer * >(argp1);
50154 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
50155 if (!SWIG_IsOK(res2)) {
50156 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer__ReplaceSizer" "', expected argument " "2"" of type '" "wxSizer *""'");
50157 }
50158 arg2 = reinterpret_cast< wxSizer * >(argp2);
50159 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxSizer, 0 | 0 );
50160 if (!SWIG_IsOK(res3)) {
50161 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Sizer__ReplaceSizer" "', expected argument " "3"" of type '" "wxSizer *""'");
50162 }
50163 arg3 = reinterpret_cast< wxSizer * >(argp3);
50164 if (obj3) {
50165 ecode4 = SWIG_AsVal_bool(obj3, &val4);
50166 if (!SWIG_IsOK(ecode4)) {
50167 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer__ReplaceSizer" "', expected argument " "4"" of type '" "bool""'");
50168 }
50169 arg4 = static_cast< bool >(val4);
50170 }
50171 {
50172 PyThreadState* __tstate = wxPyBeginAllowThreads();
50173 result = (bool)(arg1)->Replace(arg2,arg3,arg4);
50174 wxPyEndAllowThreads(__tstate);
50175 if (PyErr_Occurred()) SWIG_fail;
50176 }
50177 {
50178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
50179 }
50180 return resultobj;
50181fail:
50182 return NULL;
50183}
50184
50185
50186SWIGINTERN PyObject *_wrap_Sizer__ReplaceItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50187 PyObject *resultobj = 0;
50188 wxSizer *arg1 = (wxSizer *) 0 ;
50189 size_t arg2 ;
50190 wxSizerItem *arg3 = (wxSizerItem *) 0 ;
50191 bool result;
50192 void *argp1 = 0 ;
50193 int res1 = 0 ;
50194 size_t val2 ;
50195 int ecode2 = 0 ;
50196 void *argp3 = 0 ;
50197 int res3 = 0 ;
50198 PyObject * obj0 = 0 ;
50199 PyObject * obj1 = 0 ;
50200 PyObject * obj2 = 0 ;
50201 char * kwnames[] = {
50202 (char *) "self",(char *) "index",(char *) "newitem", NULL
50203 };
50204
50205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__ReplaceItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
50206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50207 if (!SWIG_IsOK(res1)) {
50208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer__ReplaceItem" "', expected argument " "1"" of type '" "wxSizer *""'");
50209 }
50210 arg1 = reinterpret_cast< wxSizer * >(argp1);
50211 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
50212 if (!SWIG_IsOK(ecode2)) {
50213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer__ReplaceItem" "', expected argument " "2"" of type '" "size_t""'");
50214 }
50215 arg2 = static_cast< size_t >(val2);
50216 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxSizerItem, 0 | 0 );
50217 if (!SWIG_IsOK(res3)) {
50218 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Sizer__ReplaceItem" "', expected argument " "3"" of type '" "wxSizerItem *""'");
50219 }
50220 arg3 = reinterpret_cast< wxSizerItem * >(argp3);
50221 {
50222 PyThreadState* __tstate = wxPyBeginAllowThreads();
50223 result = (bool)(arg1)->Replace(arg2,arg3);
50224 wxPyEndAllowThreads(__tstate);
50225 if (PyErr_Occurred()) SWIG_fail;
50226 }
50227 {
50228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
50229 }
50230 return resultobj;
50231fail:
50232 return NULL;
50233}
50234
50235
50236SWIGINTERN PyObject *_wrap_Sizer_SetContainingWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50237 PyObject *resultobj = 0;
50238 wxSizer *arg1 = (wxSizer *) 0 ;
50239 wxWindow *arg2 = (wxWindow *) 0 ;
50240 void *argp1 = 0 ;
50241 int res1 = 0 ;
50242 void *argp2 = 0 ;
50243 int res2 = 0 ;
50244 PyObject * obj0 = 0 ;
50245 PyObject * obj1 = 0 ;
50246 char * kwnames[] = {
50247 (char *) "self",(char *) "window", NULL
50248 };
50249
50250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetContainingWindow",kwnames,&obj0,&obj1)) SWIG_fail;
50251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50252 if (!SWIG_IsOK(res1)) {
50253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_SetContainingWindow" "', expected argument " "1"" of type '" "wxSizer *""'");
50254 }
50255 arg1 = reinterpret_cast< wxSizer * >(argp1);
50256 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
50257 if (!SWIG_IsOK(res2)) {
50258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_SetContainingWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
50259 }
50260 arg2 = reinterpret_cast< wxWindow * >(argp2);
50261 {
50262 PyThreadState* __tstate = wxPyBeginAllowThreads();
50263 (arg1)->SetContainingWindow(arg2);
50264 wxPyEndAllowThreads(__tstate);
50265 if (PyErr_Occurred()) SWIG_fail;
50266 }
50267 resultobj = SWIG_Py_Void();
50268 return resultobj;
50269fail:
50270 return NULL;
50271}
50272
50273
50274SWIGINTERN PyObject *_wrap_Sizer_GetContainingWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50275 PyObject *resultobj = 0;
50276 wxSizer *arg1 = (wxSizer *) 0 ;
50277 wxWindow *result = 0 ;
50278 void *argp1 = 0 ;
50279 int res1 = 0 ;
50280 PyObject *swig_obj[1] ;
50281
50282 if (!args) SWIG_fail;
50283 swig_obj[0] = args;
50284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50285 if (!SWIG_IsOK(res1)) {
50286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetContainingWindow" "', expected argument " "1"" of type '" "wxSizer const *""'");
50287 }
50288 arg1 = reinterpret_cast< wxSizer * >(argp1);
50289 {
50290 PyThreadState* __tstate = wxPyBeginAllowThreads();
50291 result = (wxWindow *)((wxSizer const *)arg1)->GetContainingWindow();
50292 wxPyEndAllowThreads(__tstate);
50293 if (PyErr_Occurred()) SWIG_fail;
50294 }
50295 {
50296 resultobj = wxPyMake_wxObject(result, 0);
50297 }
50298 return resultobj;
50299fail:
50300 return NULL;
50301}
50302
50303
1bd55598
RD
50304SWIGINTERN PyObject *_wrap_Sizer_AddItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50305 PyObject *resultobj = 0;
50306 wxSizer *arg1 = (wxSizer *) 0 ;
50307 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
50308 wxSizerItem *result = 0 ;
50309 void *argp1 = 0 ;
50310 int res1 = 0 ;
50311 int res2 = 0 ;
50312 PyObject * obj0 = 0 ;
50313 PyObject * obj1 = 0 ;
50314 char * kwnames[] = {
50315 (char *) "self",(char *) "item", NULL
50316 };
50317
50318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) SWIG_fail;
50319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50320 if (!SWIG_IsOK(res1)) {
50321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_AddItem" "', expected argument " "1"" of type '" "wxSizer *""'");
50322 }
50323 arg1 = reinterpret_cast< wxSizer * >(argp1);
50324 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_DISOWN | 0 );
50325 if (!SWIG_IsOK(res2)) {
50326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_AddItem" "', expected argument " "2"" of type '" "wxSizerItem *""'");
50327 }
50328 {
50329 PyThreadState* __tstate = wxPyBeginAllowThreads();
50330 result = (wxSizerItem *)(arg1)->Add(arg2);
50331 wxPyEndAllowThreads(__tstate);
50332 if (PyErr_Occurred()) SWIG_fail;
50333 }
50334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
50335 return resultobj;
50336fail:
50337 return NULL;
50338}
50339
50340
50341SWIGINTERN PyObject *_wrap_Sizer_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50342 PyObject *resultobj = 0;
50343 wxSizer *arg1 = (wxSizer *) 0 ;
50344 size_t arg2 ;
50345 wxSizerItem *arg3 = (wxSizerItem *) 0 ;
50346 wxSizerItem *result = 0 ;
50347 void *argp1 = 0 ;
50348 int res1 = 0 ;
50349 size_t val2 ;
50350 int ecode2 = 0 ;
50351 int res3 = 0 ;
50352 PyObject * obj0 = 0 ;
50353 PyObject * obj1 = 0 ;
50354 PyObject * obj2 = 0 ;
50355 char * kwnames[] = {
50356 (char *) "self",(char *) "index",(char *) "item", NULL
50357 };
50358
50359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
50360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50361 if (!SWIG_IsOK(res1)) {
50362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_InsertItem" "', expected argument " "1"" of type '" "wxSizer *""'");
50363 }
50364 arg1 = reinterpret_cast< wxSizer * >(argp1);
50365 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
50366 if (!SWIG_IsOK(ecode2)) {
50367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer_InsertItem" "', expected argument " "2"" of type '" "size_t""'");
50368 }
50369 arg2 = static_cast< size_t >(val2);
50370 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_DISOWN | 0 );
50371 if (!SWIG_IsOK(res3)) {
50372 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Sizer_InsertItem" "', expected argument " "3"" of type '" "wxSizerItem *""'");
50373 }
50374 {
50375 PyThreadState* __tstate = wxPyBeginAllowThreads();
50376 result = (wxSizerItem *)(arg1)->Insert(arg2,arg3);
50377 wxPyEndAllowThreads(__tstate);
50378 if (PyErr_Occurred()) SWIG_fail;
50379 }
50380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
50381 return resultobj;
50382fail:
50383 return NULL;
50384}
50385
50386
50387SWIGINTERN PyObject *_wrap_Sizer_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50388 PyObject *resultobj = 0;
50389 wxSizer *arg1 = (wxSizer *) 0 ;
50390 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
50391 wxSizerItem *result = 0 ;
50392 void *argp1 = 0 ;
50393 int res1 = 0 ;
50394 int res2 = 0 ;
50395 PyObject * obj0 = 0 ;
50396 PyObject * obj1 = 0 ;
50397 char * kwnames[] = {
50398 (char *) "self",(char *) "item", NULL
50399 };
50400
50401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) SWIG_fail;
50402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50403 if (!SWIG_IsOK(res1)) {
50404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_PrependItem" "', expected argument " "1"" of type '" "wxSizer *""'");
50405 }
50406 arg1 = reinterpret_cast< wxSizer * >(argp1);
50407 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_DISOWN | 0 );
50408 if (!SWIG_IsOK(res2)) {
50409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_PrependItem" "', expected argument " "2"" of type '" "wxSizerItem *""'");
50410 }
50411 {
50412 PyThreadState* __tstate = wxPyBeginAllowThreads();
50413 result = (wxSizerItem *)(arg1)->Prepend(arg2);
50414 wxPyEndAllowThreads(__tstate);
50415 if (PyErr_Occurred()) SWIG_fail;
50416 }
50417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
50418 return resultobj;
50419fail:
50420 return NULL;
50421}
50422
50423
50424SWIGINTERN PyObject *_wrap_Sizer_SetDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50425 PyObject *resultobj = 0;
50426 wxSizer *arg1 = (wxSizer *) 0 ;
50427 int arg2 ;
50428 int arg3 ;
50429 int arg4 ;
50430 int arg5 ;
50431 void *argp1 = 0 ;
50432 int res1 = 0 ;
50433 int val2 ;
50434 int ecode2 = 0 ;
50435 int val3 ;
50436 int ecode3 = 0 ;
50437 int val4 ;
50438 int ecode4 = 0 ;
50439 int val5 ;
50440 int ecode5 = 0 ;
50441 PyObject * obj0 = 0 ;
50442 PyObject * obj1 = 0 ;
50443 PyObject * obj2 = 0 ;
50444 PyObject * obj3 = 0 ;
50445 PyObject * obj4 = 0 ;
50446 char * kwnames[] = {
50447 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
50448 };
50449
50450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50452 if (!SWIG_IsOK(res1)) {
50453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_SetDimension" "', expected argument " "1"" of type '" "wxSizer *""'");
50454 }
50455 arg1 = reinterpret_cast< wxSizer * >(argp1);
50456 ecode2 = SWIG_AsVal_int(obj1, &val2);
50457 if (!SWIG_IsOK(ecode2)) {
50458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer_SetDimension" "', expected argument " "2"" of type '" "int""'");
50459 }
50460 arg2 = static_cast< int >(val2);
50461 ecode3 = SWIG_AsVal_int(obj2, &val3);
50462 if (!SWIG_IsOK(ecode3)) {
50463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Sizer_SetDimension" "', expected argument " "3"" of type '" "int""'");
50464 }
50465 arg3 = static_cast< int >(val3);
50466 ecode4 = SWIG_AsVal_int(obj3, &val4);
50467 if (!SWIG_IsOK(ecode4)) {
50468 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer_SetDimension" "', expected argument " "4"" of type '" "int""'");
50469 }
50470 arg4 = static_cast< int >(val4);
50471 ecode5 = SWIG_AsVal_int(obj4, &val5);
50472 if (!SWIG_IsOK(ecode5)) {
50473 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Sizer_SetDimension" "', expected argument " "5"" of type '" "int""'");
50474 }
50475 arg5 = static_cast< int >(val5);
50476 {
50477 PyThreadState* __tstate = wxPyBeginAllowThreads();
50478 (arg1)->SetDimension(arg2,arg3,arg4,arg5);
50479 wxPyEndAllowThreads(__tstate);
50480 if (PyErr_Occurred()) SWIG_fail;
50481 }
50482 resultobj = SWIG_Py_Void();
50483 return resultobj;
50484fail:
50485 return NULL;
50486}
50487
50488
50489SWIGINTERN PyObject *_wrap_Sizer_SetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50490 PyObject *resultobj = 0;
50491 wxSizer *arg1 = (wxSizer *) 0 ;
50492 wxSize *arg2 = 0 ;
50493 void *argp1 = 0 ;
50494 int res1 = 0 ;
50495 wxSize temp2 ;
50496 PyObject * obj0 = 0 ;
50497 PyObject * obj1 = 0 ;
50498 char * kwnames[] = {
50499 (char *) "self",(char *) "size", NULL
50500 };
50501
50502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) SWIG_fail;
50503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50504 if (!SWIG_IsOK(res1)) {
50505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_SetMinSize" "', expected argument " "1"" of type '" "wxSizer *""'");
50506 }
50507 arg1 = reinterpret_cast< wxSizer * >(argp1);
50508 {
50509 arg2 = &temp2;
50510 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
50511 }
50512 {
50513 PyThreadState* __tstate = wxPyBeginAllowThreads();
50514 (arg1)->SetMinSize((wxSize const &)*arg2);
50515 wxPyEndAllowThreads(__tstate);
50516 if (PyErr_Occurred()) SWIG_fail;
50517 }
50518 resultobj = SWIG_Py_Void();
50519 return resultobj;
50520fail:
50521 return NULL;
d55e5bfc
RD
50522}
50523
50524
1bd55598
RD
50525SWIGINTERN PyObject *_wrap_Sizer_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50526 PyObject *resultobj = 0;
50527 wxSizer *arg1 = (wxSizer *) 0 ;
50528 wxSize result;
50529 void *argp1 = 0 ;
50530 int res1 = 0 ;
50531 PyObject *swig_obj[1] ;
50532
50533 if (!args) SWIG_fail;
50534 swig_obj[0] = args;
50535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50536 if (!SWIG_IsOK(res1)) {
50537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetSize" "', expected argument " "1"" of type '" "wxSizer *""'");
50538 }
50539 arg1 = reinterpret_cast< wxSizer * >(argp1);
50540 {
50541 PyThreadState* __tstate = wxPyBeginAllowThreads();
50542 result = (arg1)->GetSize();
50543 wxPyEndAllowThreads(__tstate);
50544 if (PyErr_Occurred()) SWIG_fail;
50545 }
50546 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
50547 return resultobj;
50548fail:
50549 return NULL;
d55e5bfc
RD
50550}
50551
50552
1bd55598
RD
50553SWIGINTERN PyObject *_wrap_Sizer_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50554 PyObject *resultobj = 0;
50555 wxSizer *arg1 = (wxSizer *) 0 ;
50556 wxPoint result;
50557 void *argp1 = 0 ;
50558 int res1 = 0 ;
50559 PyObject *swig_obj[1] ;
50560
50561 if (!args) SWIG_fail;
50562 swig_obj[0] = args;
50563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50564 if (!SWIG_IsOK(res1)) {
50565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetPosition" "', expected argument " "1"" of type '" "wxSizer *""'");
50566 }
50567 arg1 = reinterpret_cast< wxSizer * >(argp1);
50568 {
50569 PyThreadState* __tstate = wxPyBeginAllowThreads();
50570 result = (arg1)->GetPosition();
50571 wxPyEndAllowThreads(__tstate);
50572 if (PyErr_Occurred()) SWIG_fail;
50573 }
50574 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
50575 return resultobj;
50576fail:
50577 return NULL;
d55e5bfc
RD
50578}
50579
50580
1bd55598
RD
50581SWIGINTERN PyObject *_wrap_Sizer_GetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50582 PyObject *resultobj = 0;
50583 wxSizer *arg1 = (wxSizer *) 0 ;
50584 wxSize result;
50585 void *argp1 = 0 ;
50586 int res1 = 0 ;
50587 PyObject *swig_obj[1] ;
50588
50589 if (!args) SWIG_fail;
50590 swig_obj[0] = args;
50591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50592 if (!SWIG_IsOK(res1)) {
50593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetMinSize" "', expected argument " "1"" of type '" "wxSizer *""'");
50594 }
50595 arg1 = reinterpret_cast< wxSizer * >(argp1);
50596 {
50597 PyThreadState* __tstate = wxPyBeginAllowThreads();
50598 result = (arg1)->GetMinSize();
50599 wxPyEndAllowThreads(__tstate);
50600 if (PyErr_Occurred()) SWIG_fail;
50601 }
50602 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
50603 return resultobj;
50604fail:
50605 return NULL;
d55e5bfc
RD
50606}
50607
50608
1bd55598
RD
50609SWIGINTERN PyObject *_wrap_Sizer_RecalcSizes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50610 PyObject *resultobj = 0;
50611 wxSizer *arg1 = (wxSizer *) 0 ;
50612 void *argp1 = 0 ;
50613 int res1 = 0 ;
50614 PyObject *swig_obj[1] ;
50615
50616 if (!args) SWIG_fail;
50617 swig_obj[0] = args;
50618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50619 if (!SWIG_IsOK(res1)) {
50620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_RecalcSizes" "', expected argument " "1"" of type '" "wxSizer *""'");
50621 }
50622 arg1 = reinterpret_cast< wxSizer * >(argp1);
50623 {
50624 PyThreadState* __tstate = wxPyBeginAllowThreads();
50625 (arg1)->RecalcSizes();
50626 wxPyEndAllowThreads(__tstate);
50627 if (PyErr_Occurred()) SWIG_fail;
50628 }
50629 resultobj = SWIG_Py_Void();
50630 return resultobj;
50631fail:
50632 return NULL;
a001823c
RD
50633}
50634
50635
1bd55598
RD
50636SWIGINTERN PyObject *_wrap_Sizer_CalcMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50637 PyObject *resultobj = 0;
50638 wxSizer *arg1 = (wxSizer *) 0 ;
50639 wxSize result;
50640 void *argp1 = 0 ;
50641 int res1 = 0 ;
50642 PyObject *swig_obj[1] ;
50643
50644 if (!args) SWIG_fail;
50645 swig_obj[0] = args;
50646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50647 if (!SWIG_IsOK(res1)) {
50648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_CalcMin" "', expected argument " "1"" of type '" "wxSizer *""'");
50649 }
50650 arg1 = reinterpret_cast< wxSizer * >(argp1);
50651 {
50652 PyThreadState* __tstate = wxPyBeginAllowThreads();
50653 result = (arg1)->CalcMin();
50654 wxPyEndAllowThreads(__tstate);
50655 if (PyErr_Occurred()) SWIG_fail;
50656 }
50657 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
50658 return resultobj;
50659fail:
50660 return NULL;
e2813725
RD
50661}
50662
50663
1bd55598
RD
50664SWIGINTERN PyObject *_wrap_Sizer_Layout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50665 PyObject *resultobj = 0;
50666 wxSizer *arg1 = (wxSizer *) 0 ;
50667 void *argp1 = 0 ;
50668 int res1 = 0 ;
50669 PyObject *swig_obj[1] ;
50670
50671 if (!args) SWIG_fail;
50672 swig_obj[0] = args;
50673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50674 if (!SWIG_IsOK(res1)) {
50675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Layout" "', expected argument " "1"" of type '" "wxSizer *""'");
50676 }
50677 arg1 = reinterpret_cast< wxSizer * >(argp1);
50678 {
50679 PyThreadState* __tstate = wxPyBeginAllowThreads();
50680 (arg1)->Layout();
50681 wxPyEndAllowThreads(__tstate);
50682 if (PyErr_Occurred()) SWIG_fail;
50683 }
50684 resultobj = SWIG_Py_Void();
50685 return resultobj;
50686fail:
50687 return NULL;
50688}
50689
50690
50691SWIGINTERN PyObject *_wrap_Sizer_Fit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50692 PyObject *resultobj = 0;
50693 wxSizer *arg1 = (wxSizer *) 0 ;
50694 wxWindow *arg2 = (wxWindow *) 0 ;
50695 wxSize result;
50696 void *argp1 = 0 ;
50697 int res1 = 0 ;
50698 void *argp2 = 0 ;
50699 int res2 = 0 ;
50700 PyObject * obj0 = 0 ;
50701 PyObject * obj1 = 0 ;
50702 char * kwnames[] = {
50703 (char *) "self",(char *) "window", NULL
50704 };
50705
50706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) SWIG_fail;
50707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50708 if (!SWIG_IsOK(res1)) {
50709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Fit" "', expected argument " "1"" of type '" "wxSizer *""'");
50710 }
50711 arg1 = reinterpret_cast< wxSizer * >(argp1);
50712 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
50713 if (!SWIG_IsOK(res2)) {
50714 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_Fit" "', expected argument " "2"" of type '" "wxWindow *""'");
50715 }
50716 arg2 = reinterpret_cast< wxWindow * >(argp2);
50717 {
50718 PyThreadState* __tstate = wxPyBeginAllowThreads();
50719 result = (arg1)->Fit(arg2);
50720 wxPyEndAllowThreads(__tstate);
50721 if (PyErr_Occurred()) SWIG_fail;
50722 }
50723 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
50724 return resultobj;
50725fail:
50726 return NULL;
50727}
50728
50729
50730SWIGINTERN PyObject *_wrap_Sizer_FitInside(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50731 PyObject *resultobj = 0;
50732 wxSizer *arg1 = (wxSizer *) 0 ;
50733 wxWindow *arg2 = (wxWindow *) 0 ;
50734 void *argp1 = 0 ;
50735 int res1 = 0 ;
50736 void *argp2 = 0 ;
50737 int res2 = 0 ;
50738 PyObject * obj0 = 0 ;
50739 PyObject * obj1 = 0 ;
50740 char * kwnames[] = {
50741 (char *) "self",(char *) "window", NULL
50742 };
50743
50744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) SWIG_fail;
50745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50746 if (!SWIG_IsOK(res1)) {
50747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_FitInside" "', expected argument " "1"" of type '" "wxSizer *""'");
50748 }
50749 arg1 = reinterpret_cast< wxSizer * >(argp1);
50750 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
50751 if (!SWIG_IsOK(res2)) {
50752 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_FitInside" "', expected argument " "2"" of type '" "wxWindow *""'");
50753 }
50754 arg2 = reinterpret_cast< wxWindow * >(argp2);
50755 {
50756 PyThreadState* __tstate = wxPyBeginAllowThreads();
50757 (arg1)->FitInside(arg2);
50758 wxPyEndAllowThreads(__tstate);
50759 if (PyErr_Occurred()) SWIG_fail;
50760 }
50761 resultobj = SWIG_Py_Void();
50762 return resultobj;
50763fail:
50764 return NULL;
50765}
50766
50767
50768SWIGINTERN PyObject *_wrap_Sizer_SetSizeHints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50769 PyObject *resultobj = 0;
50770 wxSizer *arg1 = (wxSizer *) 0 ;
50771 wxWindow *arg2 = (wxWindow *) 0 ;
50772 void *argp1 = 0 ;
50773 int res1 = 0 ;
50774 void *argp2 = 0 ;
50775 int res2 = 0 ;
50776 PyObject * obj0 = 0 ;
50777 PyObject * obj1 = 0 ;
50778 char * kwnames[] = {
50779 (char *) "self",(char *) "window", NULL
50780 };
50781
50782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) SWIG_fail;
50783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50784 if (!SWIG_IsOK(res1)) {
50785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_SetSizeHints" "', expected argument " "1"" of type '" "wxSizer *""'");
50786 }
50787 arg1 = reinterpret_cast< wxSizer * >(argp1);
50788 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
50789 if (!SWIG_IsOK(res2)) {
50790 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_SetSizeHints" "', expected argument " "2"" of type '" "wxWindow *""'");
50791 }
50792 arg2 = reinterpret_cast< wxWindow * >(argp2);
50793 {
50794 PyThreadState* __tstate = wxPyBeginAllowThreads();
50795 (arg1)->SetSizeHints(arg2);
50796 wxPyEndAllowThreads(__tstate);
50797 if (PyErr_Occurred()) SWIG_fail;
50798 }
50799 resultobj = SWIG_Py_Void();
50800 return resultobj;
50801fail:
50802 return NULL;
50803}
50804
50805
50806SWIGINTERN PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50807 PyObject *resultobj = 0;
50808 wxSizer *arg1 = (wxSizer *) 0 ;
50809 wxWindow *arg2 = (wxWindow *) 0 ;
50810 void *argp1 = 0 ;
50811 int res1 = 0 ;
50812 void *argp2 = 0 ;
50813 int res2 = 0 ;
50814 PyObject * obj0 = 0 ;
50815 PyObject * obj1 = 0 ;
50816 char * kwnames[] = {
50817 (char *) "self",(char *) "window", NULL
50818 };
50819
50820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) SWIG_fail;
50821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50822 if (!SWIG_IsOK(res1)) {
50823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_SetVirtualSizeHints" "', expected argument " "1"" of type '" "wxSizer *""'");
50824 }
50825 arg1 = reinterpret_cast< wxSizer * >(argp1);
50826 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
50827 if (!SWIG_IsOK(res2)) {
50828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_SetVirtualSizeHints" "', expected argument " "2"" of type '" "wxWindow *""'");
50829 }
50830 arg2 = reinterpret_cast< wxWindow * >(argp2);
50831 {
50832 PyThreadState* __tstate = wxPyBeginAllowThreads();
50833 (arg1)->SetVirtualSizeHints(arg2);
50834 wxPyEndAllowThreads(__tstate);
50835 if (PyErr_Occurred()) SWIG_fail;
50836 }
50837 resultobj = SWIG_Py_Void();
50838 return resultobj;
50839fail:
50840 return NULL;
50841}
50842
50843
50844SWIGINTERN PyObject *_wrap_Sizer_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50845 PyObject *resultobj = 0;
50846 wxSizer *arg1 = (wxSizer *) 0 ;
50847 bool arg2 = (bool) false ;
50848 void *argp1 = 0 ;
50849 int res1 = 0 ;
50850 bool val2 ;
50851 int ecode2 = 0 ;
50852 PyObject * obj0 = 0 ;
50853 PyObject * obj1 = 0 ;
50854 char * kwnames[] = {
50855 (char *) "self",(char *) "deleteWindows", NULL
50856 };
50857
50858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) SWIG_fail;
50859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50860 if (!SWIG_IsOK(res1)) {
50861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Clear" "', expected argument " "1"" of type '" "wxSizer *""'");
50862 }
50863 arg1 = reinterpret_cast< wxSizer * >(argp1);
50864 if (obj1) {
50865 ecode2 = SWIG_AsVal_bool(obj1, &val2);
50866 if (!SWIG_IsOK(ecode2)) {
50867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer_Clear" "', expected argument " "2"" of type '" "bool""'");
50868 }
50869 arg2 = static_cast< bool >(val2);
50870 }
50871 {
50872 PyThreadState* __tstate = wxPyBeginAllowThreads();
50873 (arg1)->Clear(arg2);
50874 wxPyEndAllowThreads(__tstate);
50875 if (PyErr_Occurred()) SWIG_fail;
50876 }
50877 resultobj = SWIG_Py_Void();
50878 return resultobj;
50879fail:
50880 return NULL;
a001823c
RD
50881}
50882
50883
1bd55598
RD
50884SWIGINTERN PyObject *_wrap_Sizer_DeleteWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50885 PyObject *resultobj = 0;
50886 wxSizer *arg1 = (wxSizer *) 0 ;
50887 void *argp1 = 0 ;
50888 int res1 = 0 ;
50889 PyObject *swig_obj[1] ;
50890
50891 if (!args) SWIG_fail;
50892 swig_obj[0] = args;
50893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50894 if (!SWIG_IsOK(res1)) {
50895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_DeleteWindows" "', expected argument " "1"" of type '" "wxSizer *""'");
50896 }
50897 arg1 = reinterpret_cast< wxSizer * >(argp1);
50898 {
50899 PyThreadState* __tstate = wxPyBeginAllowThreads();
50900 (arg1)->DeleteWindows();
50901 wxPyEndAllowThreads(__tstate);
50902 if (PyErr_Occurred()) SWIG_fail;
50903 }
50904 resultobj = SWIG_Py_Void();
50905 return resultobj;
50906fail:
50907 return NULL;
d55e5bfc
RD
50908}
50909
50910
1bd55598
RD
50911SWIGINTERN PyObject *_wrap_Sizer_GetChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50912 PyObject *resultobj = 0;
50913 wxSizer *arg1 = (wxSizer *) 0 ;
50914 PyObject *result = 0 ;
50915 void *argp1 = 0 ;
50916 int res1 = 0 ;
50917 PyObject *swig_obj[1] ;
50918
50919 if (!args) SWIG_fail;
50920 swig_obj[0] = args;
50921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50922 if (!SWIG_IsOK(res1)) {
50923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetChildren" "', expected argument " "1"" of type '" "wxSizer *""'");
50924 }
50925 arg1 = reinterpret_cast< wxSizer * >(argp1);
50926 {
50927 PyThreadState* __tstate = wxPyBeginAllowThreads();
50928 result = (PyObject *)wxSizer_GetChildren(arg1);
50929 wxPyEndAllowThreads(__tstate);
50930 if (PyErr_Occurred()) SWIG_fail;
50931 }
50932 resultobj = result;
50933 return resultobj;
50934fail:
50935 return NULL;
50936}
50937
50938
50939SWIGINTERN PyObject *_wrap_Sizer_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50940 PyObject *resultobj = 0;
50941 wxSizer *arg1 = (wxSizer *) 0 ;
50942 PyObject *arg2 = (PyObject *) 0 ;
50943 bool arg3 = (bool) true ;
50944 bool arg4 = (bool) false ;
50945 bool result;
50946 void *argp1 = 0 ;
50947 int res1 = 0 ;
50948 bool val3 ;
50949 int ecode3 = 0 ;
50950 bool val4 ;
50951 int ecode4 = 0 ;
50952 PyObject * obj0 = 0 ;
50953 PyObject * obj1 = 0 ;
50954 PyObject * obj2 = 0 ;
50955 PyObject * obj3 = 0 ;
50956 char * kwnames[] = {
50957 (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL
50958 };
50959
50960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
50961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50962 if (!SWIG_IsOK(res1)) {
50963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Show" "', expected argument " "1"" of type '" "wxSizer *""'");
50964 }
50965 arg1 = reinterpret_cast< wxSizer * >(argp1);
50966 arg2 = obj1;
50967 if (obj2) {
50968 ecode3 = SWIG_AsVal_bool(obj2, &val3);
50969 if (!SWIG_IsOK(ecode3)) {
50970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Sizer_Show" "', expected argument " "3"" of type '" "bool""'");
50971 }
50972 arg3 = static_cast< bool >(val3);
50973 }
50974 if (obj3) {
50975 ecode4 = SWIG_AsVal_bool(obj3, &val4);
50976 if (!SWIG_IsOK(ecode4)) {
50977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer_Show" "', expected argument " "4"" of type '" "bool""'");
50978 }
50979 arg4 = static_cast< bool >(val4);
50980 }
50981 {
50982 PyThreadState* __tstate = wxPyBeginAllowThreads();
50983 result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4);
50984 wxPyEndAllowThreads(__tstate);
50985 if (PyErr_Occurred()) SWIG_fail;
50986 }
50987 {
50988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
50989 }
50990 return resultobj;
50991fail:
50992 return NULL;
50993}
50994
50995
50996SWIGINTERN PyObject *_wrap_Sizer_IsShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50997 PyObject *resultobj = 0;
50998 wxSizer *arg1 = (wxSizer *) 0 ;
50999 PyObject *arg2 = (PyObject *) 0 ;
51000 bool result;
51001 void *argp1 = 0 ;
51002 int res1 = 0 ;
51003 PyObject * obj0 = 0 ;
51004 PyObject * obj1 = 0 ;
51005 char * kwnames[] = {
51006 (char *) "self",(char *) "item", NULL
51007 };
51008
51009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) SWIG_fail;
51010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
51011 if (!SWIG_IsOK(res1)) {
51012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_IsShown" "', expected argument " "1"" of type '" "wxSizer *""'");
51013 }
51014 arg1 = reinterpret_cast< wxSizer * >(argp1);
51015 arg2 = obj1;
51016 {
51017 PyThreadState* __tstate = wxPyBeginAllowThreads();
51018 result = (bool)wxSizer_IsShown(arg1,arg2);
51019 wxPyEndAllowThreads(__tstate);
51020 if (PyErr_Occurred()) SWIG_fail;
51021 }
51022 {
51023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
51024 }
51025 return resultobj;
51026fail:
51027 return NULL;
51028}
51029
51030
51031SWIGINTERN PyObject *_wrap_Sizer_ShowItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51032 PyObject *resultobj = 0;
51033 wxSizer *arg1 = (wxSizer *) 0 ;
51034 bool arg2 ;
51035 void *argp1 = 0 ;
51036 int res1 = 0 ;
51037 bool val2 ;
51038 int ecode2 = 0 ;
51039 PyObject * obj0 = 0 ;
51040 PyObject * obj1 = 0 ;
51041 char * kwnames[] = {
51042 (char *) "self",(char *) "show", NULL
51043 };
51044
51045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) SWIG_fail;
51046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
51047 if (!SWIG_IsOK(res1)) {
51048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_ShowItems" "', expected argument " "1"" of type '" "wxSizer *""'");
51049 }
51050 arg1 = reinterpret_cast< wxSizer * >(argp1);
51051 ecode2 = SWIG_AsVal_bool(obj1, &val2);
51052 if (!SWIG_IsOK(ecode2)) {
51053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer_ShowItems" "', expected argument " "2"" of type '" "bool""'");
51054 }
51055 arg2 = static_cast< bool >(val2);
51056 {
51057 PyThreadState* __tstate = wxPyBeginAllowThreads();
51058 (arg1)->ShowItems(arg2);
51059 wxPyEndAllowThreads(__tstate);
51060 if (PyErr_Occurred()) SWIG_fail;
51061 }
51062 resultobj = SWIG_Py_Void();
51063 return resultobj;
51064fail:
51065 return NULL;
d55e5bfc
RD
51066}
51067
51068
1bd55598
RD
51069SWIGINTERN PyObject *Sizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51070 PyObject *obj;
51071 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
51072 SWIG_TypeNewClientData(SWIGTYPE_p_wxSizer, SWIG_NewClientData(obj));
51073 return SWIG_Py_Void();
d55e5bfc
RD
51074}
51075
1bd55598
RD
51076SWIGINTERN PyObject *_wrap_new_PySizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51077 PyObject *resultobj = 0;
51078 wxPySizer *result = 0 ;
51079
51080 if (!SWIG_Python_UnpackTuple(args,"new_PySizer",0,0,0)) SWIG_fail;
51081 {
51082 PyThreadState* __tstate = wxPyBeginAllowThreads();
51083 result = (wxPySizer *)new wxPySizer();
51084 wxPyEndAllowThreads(__tstate);
51085 if (PyErr_Occurred()) SWIG_fail;
51086 }
51087 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPySizer, SWIG_POINTER_NEW | 0 );
51088 return resultobj;
51089fail:
51090 return NULL;
51091}
51092
51093
51094SWIGINTERN PyObject *_wrap_PySizer__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51095 PyObject *resultobj = 0;
51096 wxPySizer *arg1 = (wxPySizer *) 0 ;
51097 PyObject *arg2 = (PyObject *) 0 ;
51098 PyObject *arg3 = (PyObject *) 0 ;
51099 void *argp1 = 0 ;
51100 int res1 = 0 ;
51101 PyObject * obj0 = 0 ;
51102 PyObject * obj1 = 0 ;
51103 PyObject * obj2 = 0 ;
51104 char * kwnames[] = {
51105 (char *) "self",(char *) "self",(char *) "_class", NULL
51106 };
51107
51108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
51109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPySizer, 0 | 0 );
51110 if (!SWIG_IsOK(res1)) {
51111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySizer__setCallbackInfo" "', expected argument " "1"" of type '" "wxPySizer *""'");
51112 }
51113 arg1 = reinterpret_cast< wxPySizer * >(argp1);
51114 arg2 = obj1;
51115 arg3 = obj2;
51116 {
51117 PyThreadState* __tstate = wxPyBeginAllowThreads();
51118 (arg1)->_setCallbackInfo(arg2,arg3);
51119 wxPyEndAllowThreads(__tstate);
51120 if (PyErr_Occurred()) SWIG_fail;
51121 }
51122 resultobj = SWIG_Py_Void();
51123 return resultobj;
51124fail:
51125 return NULL;
51126}
d55e5bfc 51127
1bd55598
RD
51128
51129SWIGINTERN PyObject *PySizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51130 PyObject *obj;
51131 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
51132 SWIG_TypeNewClientData(SWIGTYPE_p_wxPySizer, SWIG_NewClientData(obj));
51133 return SWIG_Py_Void();
d55e5bfc
RD
51134}
51135
1bd55598
RD
51136SWIGINTERN PyObject *PySizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51137 return SWIG_Python_InitShadowInstance(args);
51138}
d55e5bfc 51139
1bd55598
RD
51140SWIGINTERN PyObject *_wrap_new_BoxSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51141 PyObject *resultobj = 0;
51142 int arg1 = (int) wxHORIZONTAL ;
51143 wxBoxSizer *result = 0 ;
51144 int val1 ;
51145 int ecode1 = 0 ;
51146 PyObject * obj0 = 0 ;
51147 char * kwnames[] = {
51148 (char *) "orient", NULL
51149 };
51150
51151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) SWIG_fail;
51152 if (obj0) {
51153 ecode1 = SWIG_AsVal_int(obj0, &val1);
51154 if (!SWIG_IsOK(ecode1)) {
51155 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BoxSizer" "', expected argument " "1"" of type '" "int""'");
51156 }
51157 arg1 = static_cast< int >(val1);
51158 }
51159 {
51160 PyThreadState* __tstate = wxPyBeginAllowThreads();
51161 result = (wxBoxSizer *)new wxBoxSizer(arg1);
51162 wxPyEndAllowThreads(__tstate);
51163 if (PyErr_Occurred()) SWIG_fail;
51164 }
51165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBoxSizer, SWIG_POINTER_NEW | 0 );
51166 return resultobj;
51167fail:
51168 return NULL;
d55e5bfc
RD
51169}
51170
51171
1bd55598
RD
51172SWIGINTERN PyObject *_wrap_BoxSizer_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51173 PyObject *resultobj = 0;
51174 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
51175 int result;
51176 void *argp1 = 0 ;
51177 int res1 = 0 ;
51178 PyObject *swig_obj[1] ;
51179
51180 if (!args) SWIG_fail;
51181 swig_obj[0] = args;
51182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBoxSizer, 0 | 0 );
51183 if (!SWIG_IsOK(res1)) {
51184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoxSizer_GetOrientation" "', expected argument " "1"" of type '" "wxBoxSizer *""'");
51185 }
51186 arg1 = reinterpret_cast< wxBoxSizer * >(argp1);
51187 {
51188 PyThreadState* __tstate = wxPyBeginAllowThreads();
51189 result = (int)(arg1)->GetOrientation();
51190 wxPyEndAllowThreads(__tstate);
51191 if (PyErr_Occurred()) SWIG_fail;
51192 }
51193 resultobj = SWIG_From_int(static_cast< int >(result));
51194 return resultobj;
51195fail:
51196 return NULL;
51197}
51198
51199
51200SWIGINTERN PyObject *_wrap_BoxSizer_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51201 PyObject *resultobj = 0;
51202 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
51203 int arg2 ;
51204 void *argp1 = 0 ;
51205 int res1 = 0 ;
51206 int val2 ;
51207 int ecode2 = 0 ;
51208 PyObject * obj0 = 0 ;
51209 PyObject * obj1 = 0 ;
51210 char * kwnames[] = {
51211 (char *) "self",(char *) "orient", NULL
51212 };
51213
51214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail;
51215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBoxSizer, 0 | 0 );
51216 if (!SWIG_IsOK(res1)) {
51217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoxSizer_SetOrientation" "', expected argument " "1"" of type '" "wxBoxSizer *""'");
51218 }
51219 arg1 = reinterpret_cast< wxBoxSizer * >(argp1);
51220 ecode2 = SWIG_AsVal_int(obj1, &val2);
51221 if (!SWIG_IsOK(ecode2)) {
51222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoxSizer_SetOrientation" "', expected argument " "2"" of type '" "int""'");
51223 }
51224 arg2 = static_cast< int >(val2);
51225 {
51226 PyThreadState* __tstate = wxPyBeginAllowThreads();
51227 (arg1)->SetOrientation(arg2);
51228 wxPyEndAllowThreads(__tstate);
51229 if (PyErr_Occurred()) SWIG_fail;
51230 }
51231 resultobj = SWIG_Py_Void();
51232 return resultobj;
51233fail:
51234 return NULL;
d55e5bfc
RD
51235}
51236
51237
1bd55598
RD
51238SWIGINTERN PyObject *BoxSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51239 PyObject *obj;
51240 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
51241 SWIG_TypeNewClientData(SWIGTYPE_p_wxBoxSizer, SWIG_NewClientData(obj));
51242 return SWIG_Py_Void();
d55e5bfc
RD
51243}
51244
1bd55598
RD
51245SWIGINTERN PyObject *BoxSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51246 return SWIG_Python_InitShadowInstance(args);
51247}
d55e5bfc 51248
1bd55598
RD
51249SWIGINTERN PyObject *_wrap_new_StaticBoxSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51250 PyObject *resultobj = 0;
51251 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
51252 int arg2 = (int) wxHORIZONTAL ;
51253 wxStaticBoxSizer *result = 0 ;
51254 void *argp1 = 0 ;
51255 int res1 = 0 ;
51256 int val2 ;
51257 int ecode2 = 0 ;
51258 PyObject * obj0 = 0 ;
51259 PyObject * obj1 = 0 ;
51260 char * kwnames[] = {
51261 (char *) "box",(char *) "orient", NULL
51262 };
51263
51264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) SWIG_fail;
51265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
51266 if (!SWIG_IsOK(res1)) {
51267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBoxSizer" "', expected argument " "1"" of type '" "wxStaticBox *""'");
51268 }
51269 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
51270 if (obj1) {
51271 ecode2 = SWIG_AsVal_int(obj1, &val2);
51272 if (!SWIG_IsOK(ecode2)) {
51273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBoxSizer" "', expected argument " "2"" of type '" "int""'");
51274 }
51275 arg2 = static_cast< int >(val2);
51276 }
51277 {
51278 PyThreadState* __tstate = wxPyBeginAllowThreads();
51279 result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2);
51280 wxPyEndAllowThreads(__tstate);
51281 if (PyErr_Occurred()) SWIG_fail;
51282 }
51283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBoxSizer, SWIG_POINTER_NEW | 0 );
51284 return resultobj;
51285fail:
51286 return NULL;
d55e5bfc
RD
51287}
51288
51289
1bd55598
RD
51290SWIGINTERN PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51291 PyObject *resultobj = 0;
51292 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
51293 wxStaticBox *result = 0 ;
51294 void *argp1 = 0 ;
51295 int res1 = 0 ;
51296 PyObject *swig_obj[1] ;
51297
51298 if (!args) SWIG_fail;
51299 swig_obj[0] = args;
51300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBoxSizer, 0 | 0 );
51301 if (!SWIG_IsOK(res1)) {
51302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBoxSizer_GetStaticBox" "', expected argument " "1"" of type '" "wxStaticBoxSizer *""'");
51303 }
51304 arg1 = reinterpret_cast< wxStaticBoxSizer * >(argp1);
51305 {
51306 PyThreadState* __tstate = wxPyBeginAllowThreads();
51307 result = (wxStaticBox *)(arg1)->GetStaticBox();
51308 wxPyEndAllowThreads(__tstate);
51309 if (PyErr_Occurred()) SWIG_fail;
51310 }
51311 {
51312 resultobj = wxPyMake_wxObject(result, (bool)0);
51313 }
51314 return resultobj;
51315fail:
51316 return NULL;
51317}
51318
51319
51320SWIGINTERN PyObject *StaticBoxSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51321 PyObject *obj;
51322 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
51323 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBoxSizer, SWIG_NewClientData(obj));
51324 return SWIG_Py_Void();
51325}
51326
51327SWIGINTERN PyObject *StaticBoxSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51328 return SWIG_Python_InitShadowInstance(args);
51329}
51330
51331SWIGINTERN PyObject *_wrap_new_GridSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51332 PyObject *resultobj = 0;
51333 int arg1 = (int) 1 ;
51334 int arg2 = (int) 0 ;
51335 int arg3 = (int) 0 ;
51336 int arg4 = (int) 0 ;
51337 wxGridSizer *result = 0 ;
51338 int val1 ;
51339 int ecode1 = 0 ;
51340 int val2 ;
51341 int ecode2 = 0 ;
51342 int val3 ;
51343 int ecode3 = 0 ;
51344 int val4 ;
51345 int ecode4 = 0 ;
51346 PyObject * obj0 = 0 ;
51347 PyObject * obj1 = 0 ;
51348 PyObject * obj2 = 0 ;
51349 PyObject * obj3 = 0 ;
51350 char * kwnames[] = {
51351 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
51352 };
51353
51354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
51355 if (obj0) {
51356 ecode1 = SWIG_AsVal_int(obj0, &val1);
51357 if (!SWIG_IsOK(ecode1)) {
51358 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GridSizer" "', expected argument " "1"" of type '" "int""'");
51359 }
51360 arg1 = static_cast< int >(val1);
51361 }
51362 if (obj1) {
51363 ecode2 = SWIG_AsVal_int(obj1, &val2);
51364 if (!SWIG_IsOK(ecode2)) {
51365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GridSizer" "', expected argument " "2"" of type '" "int""'");
51366 }
51367 arg2 = static_cast< int >(val2);
51368 }
51369 if (obj2) {
51370 ecode3 = SWIG_AsVal_int(obj2, &val3);
51371 if (!SWIG_IsOK(ecode3)) {
51372 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GridSizer" "', expected argument " "3"" of type '" "int""'");
51373 }
51374 arg3 = static_cast< int >(val3);
51375 }
51376 if (obj3) {
51377 ecode4 = SWIG_AsVal_int(obj3, &val4);
51378 if (!SWIG_IsOK(ecode4)) {
51379 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GridSizer" "', expected argument " "4"" of type '" "int""'");
51380 }
51381 arg4 = static_cast< int >(val4);
51382 }
51383 {
51384 PyThreadState* __tstate = wxPyBeginAllowThreads();
51385 result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4);
51386 wxPyEndAllowThreads(__tstate);
51387 if (PyErr_Occurred()) SWIG_fail;
51388 }
51389 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGridSizer, SWIG_POINTER_NEW | 0 );
51390 return resultobj;
51391fail:
51392 return NULL;
51393}
51394
51395
51396SWIGINTERN PyObject *_wrap_GridSizer_SetCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51397 PyObject *resultobj = 0;
51398 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
51399 int arg2 ;
51400 void *argp1 = 0 ;
51401 int res1 = 0 ;
51402 int val2 ;
51403 int ecode2 = 0 ;
51404 PyObject * obj0 = 0 ;
51405 PyObject * obj1 = 0 ;
51406 char * kwnames[] = {
51407 (char *) "self",(char *) "cols", NULL
51408 };
51409
51410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) SWIG_fail;
51411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
51412 if (!SWIG_IsOK(res1)) {
51413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_SetCols" "', expected argument " "1"" of type '" "wxGridSizer *""'");
51414 }
51415 arg1 = reinterpret_cast< wxGridSizer * >(argp1);
51416 ecode2 = SWIG_AsVal_int(obj1, &val2);
51417 if (!SWIG_IsOK(ecode2)) {
51418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridSizer_SetCols" "', expected argument " "2"" of type '" "int""'");
51419 }
51420 arg2 = static_cast< int >(val2);
51421 {
51422 PyThreadState* __tstate = wxPyBeginAllowThreads();
51423 (arg1)->SetCols(arg2);
51424 wxPyEndAllowThreads(__tstate);
51425 if (PyErr_Occurred()) SWIG_fail;
51426 }
51427 resultobj = SWIG_Py_Void();
51428 return resultobj;
51429fail:
51430 return NULL;
51431}
51432
51433
51434SWIGINTERN PyObject *_wrap_GridSizer_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51435 PyObject *resultobj = 0;
51436 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
51437 int arg2 ;
51438 void *argp1 = 0 ;
51439 int res1 = 0 ;
51440 int val2 ;
51441 int ecode2 = 0 ;
51442 PyObject * obj0 = 0 ;
51443 PyObject * obj1 = 0 ;
51444 char * kwnames[] = {
51445 (char *) "self",(char *) "rows", NULL
51446 };
51447
51448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
51449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
51450 if (!SWIG_IsOK(res1)) {
51451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_SetRows" "', expected argument " "1"" of type '" "wxGridSizer *""'");
51452 }
51453 arg1 = reinterpret_cast< wxGridSizer * >(argp1);
51454 ecode2 = SWIG_AsVal_int(obj1, &val2);
51455 if (!SWIG_IsOK(ecode2)) {
51456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridSizer_SetRows" "', expected argument " "2"" of type '" "int""'");
51457 }
51458 arg2 = static_cast< int >(val2);
51459 {
51460 PyThreadState* __tstate = wxPyBeginAllowThreads();
51461 (arg1)->SetRows(arg2);
51462 wxPyEndAllowThreads(__tstate);
51463 if (PyErr_Occurred()) SWIG_fail;
51464 }
51465 resultobj = SWIG_Py_Void();
51466 return resultobj;
51467fail:
51468 return NULL;
51469}
51470
51471
51472SWIGINTERN PyObject *_wrap_GridSizer_SetVGap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51473 PyObject *resultobj = 0;
51474 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
51475 int arg2 ;
51476 void *argp1 = 0 ;
51477 int res1 = 0 ;
51478 int val2 ;
51479 int ecode2 = 0 ;
51480 PyObject * obj0 = 0 ;
51481 PyObject * obj1 = 0 ;
51482 char * kwnames[] = {
51483 (char *) "self",(char *) "gap", NULL
51484 };
51485
51486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) SWIG_fail;
51487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
51488 if (!SWIG_IsOK(res1)) {
51489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_SetVGap" "', expected argument " "1"" of type '" "wxGridSizer *""'");
51490 }
51491 arg1 = reinterpret_cast< wxGridSizer * >(argp1);
51492 ecode2 = SWIG_AsVal_int(obj1, &val2);
51493 if (!SWIG_IsOK(ecode2)) {
51494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridSizer_SetVGap" "', expected argument " "2"" of type '" "int""'");
51495 }
51496 arg2 = static_cast< int >(val2);
51497 {
51498 PyThreadState* __tstate = wxPyBeginAllowThreads();
51499 (arg1)->SetVGap(arg2);
51500 wxPyEndAllowThreads(__tstate);
51501 if (PyErr_Occurred()) SWIG_fail;
51502 }
51503 resultobj = SWIG_Py_Void();
51504 return resultobj;
51505fail:
51506 return NULL;
51507}
51508
51509
51510SWIGINTERN PyObject *_wrap_GridSizer_SetHGap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51511 PyObject *resultobj = 0;
51512 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
51513 int arg2 ;
51514 void *argp1 = 0 ;
51515 int res1 = 0 ;
51516 int val2 ;
51517 int ecode2 = 0 ;
51518 PyObject * obj0 = 0 ;
51519 PyObject * obj1 = 0 ;
51520 char * kwnames[] = {
51521 (char *) "self",(char *) "gap", NULL
51522 };
51523
51524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) SWIG_fail;
51525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
51526 if (!SWIG_IsOK(res1)) {
51527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_SetHGap" "', expected argument " "1"" of type '" "wxGridSizer *""'");
51528 }
51529 arg1 = reinterpret_cast< wxGridSizer * >(argp1);
51530 ecode2 = SWIG_AsVal_int(obj1, &val2);
51531 if (!SWIG_IsOK(ecode2)) {
51532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridSizer_SetHGap" "', expected argument " "2"" of type '" "int""'");
51533 }
51534 arg2 = static_cast< int >(val2);
51535 {
51536 PyThreadState* __tstate = wxPyBeginAllowThreads();
51537 (arg1)->SetHGap(arg2);
51538 wxPyEndAllowThreads(__tstate);
51539 if (PyErr_Occurred()) SWIG_fail;
51540 }
51541 resultobj = SWIG_Py_Void();
51542 return resultobj;
51543fail:
51544 return NULL;
d55e5bfc
RD
51545}
51546
51547
1bd55598
RD
51548SWIGINTERN PyObject *_wrap_GridSizer_GetCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51549 PyObject *resultobj = 0;
51550 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
51551 int result;
51552 void *argp1 = 0 ;
51553 int res1 = 0 ;
51554 PyObject *swig_obj[1] ;
51555
51556 if (!args) SWIG_fail;
51557 swig_obj[0] = args;
51558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
51559 if (!SWIG_IsOK(res1)) {
51560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_GetCols" "', expected argument " "1"" of type '" "wxGridSizer *""'");
51561 }
51562 arg1 = reinterpret_cast< wxGridSizer * >(argp1);
51563 {
51564 PyThreadState* __tstate = wxPyBeginAllowThreads();
51565 result = (int)(arg1)->GetCols();
51566 wxPyEndAllowThreads(__tstate);
51567 if (PyErr_Occurred()) SWIG_fail;
51568 }
51569 resultobj = SWIG_From_int(static_cast< int >(result));
51570 return resultobj;
51571fail:
51572 return NULL;
d55e5bfc
RD
51573}
51574
51575
1bd55598
RD
51576SWIGINTERN PyObject *_wrap_GridSizer_GetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51577 PyObject *resultobj = 0;
51578 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
51579 int result;
51580 void *argp1 = 0 ;
51581 int res1 = 0 ;
51582 PyObject *swig_obj[1] ;
51583
51584 if (!args) SWIG_fail;
51585 swig_obj[0] = args;
51586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
51587 if (!SWIG_IsOK(res1)) {
51588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_GetRows" "', expected argument " "1"" of type '" "wxGridSizer *""'");
51589 }
51590 arg1 = reinterpret_cast< wxGridSizer * >(argp1);
51591 {
51592 PyThreadState* __tstate = wxPyBeginAllowThreads();
51593 result = (int)(arg1)->GetRows();
51594 wxPyEndAllowThreads(__tstate);
51595 if (PyErr_Occurred()) SWIG_fail;
51596 }
51597 resultobj = SWIG_From_int(static_cast< int >(result));
51598 return resultobj;
51599fail:
51600 return NULL;
d55e5bfc
RD
51601}
51602
51603
1bd55598
RD
51604SWIGINTERN PyObject *_wrap_GridSizer_GetVGap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51605 PyObject *resultobj = 0;
51606 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
51607 int result;
51608 void *argp1 = 0 ;
51609 int res1 = 0 ;
51610 PyObject *swig_obj[1] ;
51611
51612 if (!args) SWIG_fail;
51613 swig_obj[0] = args;
51614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
51615 if (!SWIG_IsOK(res1)) {
51616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_GetVGap" "', expected argument " "1"" of type '" "wxGridSizer *""'");
51617 }
51618 arg1 = reinterpret_cast< wxGridSizer * >(argp1);
51619 {
51620 PyThreadState* __tstate = wxPyBeginAllowThreads();
51621 result = (int)(arg1)->GetVGap();
51622 wxPyEndAllowThreads(__tstate);
51623 if (PyErr_Occurred()) SWIG_fail;
51624 }
51625 resultobj = SWIG_From_int(static_cast< int >(result));
51626 return resultobj;
51627fail:
51628 return NULL;
908b74cd
RD
51629}
51630
51631
1bd55598
RD
51632SWIGINTERN PyObject *_wrap_GridSizer_GetHGap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51633 PyObject *resultobj = 0;
51634 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
51635 int result;
51636 void *argp1 = 0 ;
51637 int res1 = 0 ;
51638 PyObject *swig_obj[1] ;
51639
51640 if (!args) SWIG_fail;
51641 swig_obj[0] = args;
51642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
51643 if (!SWIG_IsOK(res1)) {
51644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_GetHGap" "', expected argument " "1"" of type '" "wxGridSizer *""'");
51645 }
51646 arg1 = reinterpret_cast< wxGridSizer * >(argp1);
51647 {
51648 PyThreadState* __tstate = wxPyBeginAllowThreads();
51649 result = (int)(arg1)->GetHGap();
51650 wxPyEndAllowThreads(__tstate);
51651 if (PyErr_Occurred()) SWIG_fail;
51652 }
51653 resultobj = SWIG_From_int(static_cast< int >(result));
51654 return resultobj;
51655fail:
51656 return NULL;
51657}
51658
51659
51660SWIGINTERN PyObject *GridSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51661 PyObject *obj;
51662 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
51663 SWIG_TypeNewClientData(SWIGTYPE_p_wxGridSizer, SWIG_NewClientData(obj));
51664 return SWIG_Py_Void();
51665}
51666
51667SWIGINTERN PyObject *GridSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51668 return SWIG_Python_InitShadowInstance(args);
51669}
51670
51671SWIGINTERN PyObject *_wrap_new_FlexGridSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51672 PyObject *resultobj = 0;
51673 int arg1 = (int) 1 ;
51674 int arg2 = (int) 0 ;
51675 int arg3 = (int) 0 ;
51676 int arg4 = (int) 0 ;
51677 wxFlexGridSizer *result = 0 ;
51678 int val1 ;
51679 int ecode1 = 0 ;
51680 int val2 ;
51681 int ecode2 = 0 ;
51682 int val3 ;
51683 int ecode3 = 0 ;
51684 int val4 ;
51685 int ecode4 = 0 ;
51686 PyObject * obj0 = 0 ;
51687 PyObject * obj1 = 0 ;
51688 PyObject * obj2 = 0 ;
51689 PyObject * obj3 = 0 ;
51690 char * kwnames[] = {
51691 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
51692 };
51693
51694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
51695 if (obj0) {
51696 ecode1 = SWIG_AsVal_int(obj0, &val1);
51697 if (!SWIG_IsOK(ecode1)) {
51698 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FlexGridSizer" "', expected argument " "1"" of type '" "int""'");
51699 }
51700 arg1 = static_cast< int >(val1);
51701 }
51702 if (obj1) {
51703 ecode2 = SWIG_AsVal_int(obj1, &val2);
51704 if (!SWIG_IsOK(ecode2)) {
51705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FlexGridSizer" "', expected argument " "2"" of type '" "int""'");
51706 }
51707 arg2 = static_cast< int >(val2);
51708 }
51709 if (obj2) {
51710 ecode3 = SWIG_AsVal_int(obj2, &val3);
51711 if (!SWIG_IsOK(ecode3)) {
51712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FlexGridSizer" "', expected argument " "3"" of type '" "int""'");
51713 }
51714 arg3 = static_cast< int >(val3);
51715 }
51716 if (obj3) {
51717 ecode4 = SWIG_AsVal_int(obj3, &val4);
51718 if (!SWIG_IsOK(ecode4)) {
51719 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FlexGridSizer" "', expected argument " "4"" of type '" "int""'");
51720 }
51721 arg4 = static_cast< int >(val4);
51722 }
51723 {
51724 PyThreadState* __tstate = wxPyBeginAllowThreads();
51725 result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4);
51726 wxPyEndAllowThreads(__tstate);
51727 if (PyErr_Occurred()) SWIG_fail;
51728 }
51729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_NEW | 0 );
51730 return resultobj;
51731fail:
51732 return NULL;
51733}
51734
51735
51736SWIGINTERN PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51737 PyObject *resultobj = 0;
51738 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
51739 size_t arg2 ;
51740 int arg3 = (int) 0 ;
51741 void *argp1 = 0 ;
51742 int res1 = 0 ;
51743 size_t val2 ;
51744 int ecode2 = 0 ;
51745 int val3 ;
51746 int ecode3 = 0 ;
51747 PyObject * obj0 = 0 ;
51748 PyObject * obj1 = 0 ;
51749 PyObject * obj2 = 0 ;
51750 char * kwnames[] = {
51751 (char *) "self",(char *) "idx",(char *) "proportion", NULL
51752 };
51753
51754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
51755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
51756 if (!SWIG_IsOK(res1)) {
51757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_AddGrowableRow" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
51758 }
51759 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
51760 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51761 if (!SWIG_IsOK(ecode2)) {
51762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_AddGrowableRow" "', expected argument " "2"" of type '" "size_t""'");
51763 }
51764 arg2 = static_cast< size_t >(val2);
51765 if (obj2) {
51766 ecode3 = SWIG_AsVal_int(obj2, &val3);
51767 if (!SWIG_IsOK(ecode3)) {
51768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FlexGridSizer_AddGrowableRow" "', expected argument " "3"" of type '" "int""'");
51769 }
51770 arg3 = static_cast< int >(val3);
51771 }
51772 {
51773 PyThreadState* __tstate = wxPyBeginAllowThreads();
51774 (arg1)->AddGrowableRow(arg2,arg3);
51775 wxPyEndAllowThreads(__tstate);
51776 if (PyErr_Occurred()) SWIG_fail;
51777 }
51778 resultobj = SWIG_Py_Void();
51779 return resultobj;
51780fail:
51781 return NULL;
51782}
51783
51784
51785SWIGINTERN PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51786 PyObject *resultobj = 0;
51787 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
51788 size_t arg2 ;
51789 void *argp1 = 0 ;
51790 int res1 = 0 ;
51791 size_t val2 ;
51792 int ecode2 = 0 ;
51793 PyObject * obj0 = 0 ;
51794 PyObject * obj1 = 0 ;
51795 char * kwnames[] = {
51796 (char *) "self",(char *) "idx", NULL
51797 };
51798
51799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) SWIG_fail;
51800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
51801 if (!SWIG_IsOK(res1)) {
51802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_RemoveGrowableRow" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
51803 }
51804 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
51805 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51806 if (!SWIG_IsOK(ecode2)) {
51807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_RemoveGrowableRow" "', expected argument " "2"" of type '" "size_t""'");
51808 }
51809 arg2 = static_cast< size_t >(val2);
51810 {
51811 PyThreadState* __tstate = wxPyBeginAllowThreads();
51812 (arg1)->RemoveGrowableRow(arg2);
51813 wxPyEndAllowThreads(__tstate);
51814 if (PyErr_Occurred()) SWIG_fail;
51815 }
51816 resultobj = SWIG_Py_Void();
51817 return resultobj;
51818fail:
51819 return NULL;
51820}
51821
51822
51823SWIGINTERN PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51824 PyObject *resultobj = 0;
51825 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
51826 size_t arg2 ;
51827 int arg3 = (int) 0 ;
51828 void *argp1 = 0 ;
51829 int res1 = 0 ;
51830 size_t val2 ;
51831 int ecode2 = 0 ;
51832 int val3 ;
51833 int ecode3 = 0 ;
51834 PyObject * obj0 = 0 ;
51835 PyObject * obj1 = 0 ;
51836 PyObject * obj2 = 0 ;
51837 char * kwnames[] = {
51838 (char *) "self",(char *) "idx",(char *) "proportion", NULL
51839 };
51840
51841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
51842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
51843 if (!SWIG_IsOK(res1)) {
51844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_AddGrowableCol" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
51845 }
51846 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
51847 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51848 if (!SWIG_IsOK(ecode2)) {
51849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_AddGrowableCol" "', expected argument " "2"" of type '" "size_t""'");
51850 }
51851 arg2 = static_cast< size_t >(val2);
51852 if (obj2) {
51853 ecode3 = SWIG_AsVal_int(obj2, &val3);
51854 if (!SWIG_IsOK(ecode3)) {
51855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FlexGridSizer_AddGrowableCol" "', expected argument " "3"" of type '" "int""'");
51856 }
51857 arg3 = static_cast< int >(val3);
51858 }
51859 {
51860 PyThreadState* __tstate = wxPyBeginAllowThreads();
51861 (arg1)->AddGrowableCol(arg2,arg3);
51862 wxPyEndAllowThreads(__tstate);
51863 if (PyErr_Occurred()) SWIG_fail;
51864 }
51865 resultobj = SWIG_Py_Void();
51866 return resultobj;
51867fail:
51868 return NULL;
51869}
51870
51871
51872SWIGINTERN PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51873 PyObject *resultobj = 0;
51874 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
51875 size_t arg2 ;
51876 void *argp1 = 0 ;
51877 int res1 = 0 ;
51878 size_t val2 ;
51879 int ecode2 = 0 ;
51880 PyObject * obj0 = 0 ;
51881 PyObject * obj1 = 0 ;
51882 char * kwnames[] = {
51883 (char *) "self",(char *) "idx", NULL
51884 };
51885
51886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) SWIG_fail;
51887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
51888 if (!SWIG_IsOK(res1)) {
51889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_RemoveGrowableCol" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
51890 }
51891 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
51892 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51893 if (!SWIG_IsOK(ecode2)) {
51894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_RemoveGrowableCol" "', expected argument " "2"" of type '" "size_t""'");
51895 }
51896 arg2 = static_cast< size_t >(val2);
51897 {
51898 PyThreadState* __tstate = wxPyBeginAllowThreads();
51899 (arg1)->RemoveGrowableCol(arg2);
51900 wxPyEndAllowThreads(__tstate);
51901 if (PyErr_Occurred()) SWIG_fail;
51902 }
51903 resultobj = SWIG_Py_Void();
51904 return resultobj;
51905fail:
51906 return NULL;
51907}
51908
51909
51910SWIGINTERN PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51911 PyObject *resultobj = 0;
51912 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
51913 int arg2 ;
51914 void *argp1 = 0 ;
51915 int res1 = 0 ;
51916 int val2 ;
51917 int ecode2 = 0 ;
51918 PyObject * obj0 = 0 ;
51919 PyObject * obj1 = 0 ;
51920 char * kwnames[] = {
51921 (char *) "self",(char *) "direction", NULL
51922 };
51923
51924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) SWIG_fail;
51925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
51926 if (!SWIG_IsOK(res1)) {
51927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_SetFlexibleDirection" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
51928 }
51929 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
51930 ecode2 = SWIG_AsVal_int(obj1, &val2);
51931 if (!SWIG_IsOK(ecode2)) {
51932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_SetFlexibleDirection" "', expected argument " "2"" of type '" "int""'");
51933 }
51934 arg2 = static_cast< int >(val2);
51935 {
51936 PyThreadState* __tstate = wxPyBeginAllowThreads();
51937 (arg1)->SetFlexibleDirection(arg2);
51938 wxPyEndAllowThreads(__tstate);
51939 if (PyErr_Occurred()) SWIG_fail;
51940 }
51941 resultobj = SWIG_Py_Void();
51942 return resultobj;
51943fail:
51944 return NULL;
908b74cd
RD
51945}
51946
51947
1bd55598
RD
51948SWIGINTERN PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51949 PyObject *resultobj = 0;
51950 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
51951 int result;
51952 void *argp1 = 0 ;
51953 int res1 = 0 ;
51954 PyObject *swig_obj[1] ;
51955
51956 if (!args) SWIG_fail;
51957 swig_obj[0] = args;
51958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
51959 if (!SWIG_IsOK(res1)) {
51960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_GetFlexibleDirection" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
51961 }
51962 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
51963 {
51964 PyThreadState* __tstate = wxPyBeginAllowThreads();
51965 result = (int)(arg1)->GetFlexibleDirection();
51966 wxPyEndAllowThreads(__tstate);
51967 if (PyErr_Occurred()) SWIG_fail;
51968 }
51969 resultobj = SWIG_From_int(static_cast< int >(result));
51970 return resultobj;
51971fail:
51972 return NULL;
51973}
51974
51975
51976SWIGINTERN PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51977 PyObject *resultobj = 0;
51978 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
51979 wxFlexSizerGrowMode arg2 ;
51980 void *argp1 = 0 ;
51981 int res1 = 0 ;
51982 int val2 ;
51983 int ecode2 = 0 ;
51984 PyObject * obj0 = 0 ;
51985 PyObject * obj1 = 0 ;
51986 char * kwnames[] = {
51987 (char *) "self",(char *) "mode", NULL
51988 };
51989
51990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) SWIG_fail;
51991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
51992 if (!SWIG_IsOK(res1)) {
51993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_SetNonFlexibleGrowMode" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
51994 }
51995 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
51996 ecode2 = SWIG_AsVal_int(obj1, &val2);
51997 if (!SWIG_IsOK(ecode2)) {
51998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_SetNonFlexibleGrowMode" "', expected argument " "2"" of type '" "wxFlexSizerGrowMode""'");
51999 }
52000 arg2 = static_cast< wxFlexSizerGrowMode >(val2);
52001 {
52002 PyThreadState* __tstate = wxPyBeginAllowThreads();
52003 (arg1)->SetNonFlexibleGrowMode(arg2);
52004 wxPyEndAllowThreads(__tstate);
52005 if (PyErr_Occurred()) SWIG_fail;
52006 }
52007 resultobj = SWIG_Py_Void();
52008 return resultobj;
52009fail:
52010 return NULL;
d55e5bfc
RD
52011}
52012
52013
1bd55598
RD
52014SWIGINTERN PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52015 PyObject *resultobj = 0;
52016 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
52017 wxFlexSizerGrowMode result;
52018 void *argp1 = 0 ;
52019 int res1 = 0 ;
52020 PyObject *swig_obj[1] ;
52021
52022 if (!args) SWIG_fail;
52023 swig_obj[0] = args;
52024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
52025 if (!SWIG_IsOK(res1)) {
52026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_GetNonFlexibleGrowMode" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
52027 }
52028 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
52029 {
52030 PyThreadState* __tstate = wxPyBeginAllowThreads();
52031 result = (wxFlexSizerGrowMode)(arg1)->GetNonFlexibleGrowMode();
52032 wxPyEndAllowThreads(__tstate);
52033 if (PyErr_Occurred()) SWIG_fail;
52034 }
52035 resultobj = SWIG_From_int(static_cast< int >(result));
52036 return resultobj;
52037fail:
52038 return NULL;
d55e5bfc
RD
52039}
52040
52041
1bd55598
RD
52042SWIGINTERN PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52043 PyObject *resultobj = 0;
52044 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
52045 wxArrayInt *result = 0 ;
52046 void *argp1 = 0 ;
52047 int res1 = 0 ;
52048 PyObject *swig_obj[1] ;
52049
52050 if (!args) SWIG_fail;
52051 swig_obj[0] = args;
52052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
52053 if (!SWIG_IsOK(res1)) {
52054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_GetRowHeights" "', expected argument " "1"" of type '" "wxFlexGridSizer const *""'");
52055 }
52056 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
52057 {
52058 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 52059 {
1bd55598
RD
52060 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights();
52061 result = (wxArrayInt *) &_result_ref;
d55e5bfc 52062 }
1bd55598
RD
52063 wxPyEndAllowThreads(__tstate);
52064 if (PyErr_Occurred()) SWIG_fail;
52065 }
52066 {
b39fe951 52067 resultobj = wxArrayInt2PyList_helper(*result);
1bd55598
RD
52068 }
52069 return resultobj;
52070fail:
52071 return NULL;
d55e5bfc
RD
52072}
52073
52074
1bd55598
RD
52075SWIGINTERN PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52076 PyObject *resultobj = 0;
52077 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
52078 wxArrayInt *result = 0 ;
52079 void *argp1 = 0 ;
52080 int res1 = 0 ;
52081 PyObject *swig_obj[1] ;
52082
52083 if (!args) SWIG_fail;
52084 swig_obj[0] = args;
52085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
52086 if (!SWIG_IsOK(res1)) {
52087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_GetColWidths" "', expected argument " "1"" of type '" "wxFlexGridSizer const *""'");
52088 }
52089 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
52090 {
52091 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 52092 {
1bd55598
RD
52093 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths();
52094 result = (wxArrayInt *) &_result_ref;
d55e5bfc 52095 }
1bd55598
RD
52096 wxPyEndAllowThreads(__tstate);
52097 if (PyErr_Occurred()) SWIG_fail;
52098 }
52099 {
b39fe951 52100 resultobj = wxArrayInt2PyList_helper(*result);
1bd55598
RD
52101 }
52102 return resultobj;
52103fail:
52104 return NULL;
d55e5bfc
RD
52105}
52106
52107
1bd55598
RD
52108SWIGINTERN PyObject *FlexGridSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52109 PyObject *obj;
52110 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
52111 SWIG_TypeNewClientData(SWIGTYPE_p_wxFlexGridSizer, SWIG_NewClientData(obj));
52112 return SWIG_Py_Void();
d55e5bfc
RD
52113}
52114
1bd55598
RD
52115SWIGINTERN PyObject *FlexGridSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52116 return SWIG_Python_InitShadowInstance(args);
52117}
d55e5bfc 52118
1bd55598
RD
52119SWIGINTERN PyObject *_wrap_new_StdDialogButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52120 PyObject *resultobj = 0;
52121 wxStdDialogButtonSizer *result = 0 ;
52122
52123 if (!SWIG_Python_UnpackTuple(args,"new_StdDialogButtonSizer",0,0,0)) SWIG_fail;
52124 {
52125 PyThreadState* __tstate = wxPyBeginAllowThreads();
52126 result = (wxStdDialogButtonSizer *)new wxStdDialogButtonSizer();
52127 wxPyEndAllowThreads(__tstate);
52128 if (PyErr_Occurred()) SWIG_fail;
52129 }
52130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_NEW | 0 );
52131 return resultobj;
52132fail:
52133 return NULL;
52134}
52135
52136
52137SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_AddButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52138 PyObject *resultobj = 0;
52139 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52140 wxButton *arg2 = (wxButton *) 0 ;
52141 void *argp1 = 0 ;
52142 int res1 = 0 ;
52143 void *argp2 = 0 ;
52144 int res2 = 0 ;
52145 PyObject * obj0 = 0 ;
52146 PyObject * obj1 = 0 ;
52147 char * kwnames[] = {
52148 (char *) "self",(char *) "button", NULL
52149 };
52150
52151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_AddButton",kwnames,&obj0,&obj1)) SWIG_fail;
52152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52153 if (!SWIG_IsOK(res1)) {
52154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_AddButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer *""'");
52155 }
52156 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52157 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxButton, 0 | 0 );
52158 if (!SWIG_IsOK(res2)) {
52159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StdDialogButtonSizer_AddButton" "', expected argument " "2"" of type '" "wxButton *""'");
52160 }
52161 arg2 = reinterpret_cast< wxButton * >(argp2);
52162 {
52163 PyThreadState* __tstate = wxPyBeginAllowThreads();
52164 (arg1)->AddButton(arg2);
52165 wxPyEndAllowThreads(__tstate);
52166 if (PyErr_Occurred()) SWIG_fail;
52167 }
52168 resultobj = SWIG_Py_Void();
52169 return resultobj;
52170fail:
52171 return NULL;
d55e5bfc
RD
52172}
52173
52174
1bd55598
RD
52175SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52176 PyObject *resultobj = 0;
52177 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52178 void *argp1 = 0 ;
52179 int res1 = 0 ;
52180 PyObject *swig_obj[1] ;
52181
52182 if (!args) SWIG_fail;
52183 swig_obj[0] = args;
52184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52185 if (!SWIG_IsOK(res1)) {
52186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_Realize" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer *""'");
52187 }
52188 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52189 {
52190 PyThreadState* __tstate = wxPyBeginAllowThreads();
52191 (arg1)->Realize();
52192 wxPyEndAllowThreads(__tstate);
52193 if (PyErr_Occurred()) SWIG_fail;
52194 }
52195 resultobj = SWIG_Py_Void();
52196 return resultobj;
52197fail:
52198 return NULL;
52199}
52200
52201
52202SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_SetAffirmativeButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52203 PyObject *resultobj = 0;
52204 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52205 wxButton *arg2 = (wxButton *) 0 ;
52206 void *argp1 = 0 ;
52207 int res1 = 0 ;
52208 void *argp2 = 0 ;
52209 int res2 = 0 ;
52210 PyObject * obj0 = 0 ;
52211 PyObject * obj1 = 0 ;
52212 char * kwnames[] = {
52213 (char *) "self",(char *) "button", NULL
52214 };
52215
52216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetAffirmativeButton",kwnames,&obj0,&obj1)) SWIG_fail;
52217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52218 if (!SWIG_IsOK(res1)) {
52219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_SetAffirmativeButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer *""'");
52220 }
52221 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52222 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxButton, 0 | 0 );
52223 if (!SWIG_IsOK(res2)) {
52224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StdDialogButtonSizer_SetAffirmativeButton" "', expected argument " "2"" of type '" "wxButton *""'");
52225 }
52226 arg2 = reinterpret_cast< wxButton * >(argp2);
52227 {
52228 PyThreadState* __tstate = wxPyBeginAllowThreads();
52229 (arg1)->SetAffirmativeButton(arg2);
52230 wxPyEndAllowThreads(__tstate);
52231 if (PyErr_Occurred()) SWIG_fail;
52232 }
52233 resultobj = SWIG_Py_Void();
52234 return resultobj;
52235fail:
52236 return NULL;
52237}
52238
52239
52240SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_SetNegativeButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52241 PyObject *resultobj = 0;
52242 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52243 wxButton *arg2 = (wxButton *) 0 ;
52244 void *argp1 = 0 ;
52245 int res1 = 0 ;
52246 void *argp2 = 0 ;
52247 int res2 = 0 ;
52248 PyObject * obj0 = 0 ;
52249 PyObject * obj1 = 0 ;
52250 char * kwnames[] = {
52251 (char *) "self",(char *) "button", NULL
52252 };
52253
52254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetNegativeButton",kwnames,&obj0,&obj1)) SWIG_fail;
52255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52256 if (!SWIG_IsOK(res1)) {
52257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_SetNegativeButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer *""'");
52258 }
52259 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52260 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxButton, 0 | 0 );
52261 if (!SWIG_IsOK(res2)) {
52262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StdDialogButtonSizer_SetNegativeButton" "', expected argument " "2"" of type '" "wxButton *""'");
52263 }
52264 arg2 = reinterpret_cast< wxButton * >(argp2);
52265 {
52266 PyThreadState* __tstate = wxPyBeginAllowThreads();
52267 (arg1)->SetNegativeButton(arg2);
52268 wxPyEndAllowThreads(__tstate);
52269 if (PyErr_Occurred()) SWIG_fail;
52270 }
52271 resultobj = SWIG_Py_Void();
52272 return resultobj;
52273fail:
52274 return NULL;
52275}
52276
52277
52278SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_SetCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52279 PyObject *resultobj = 0;
52280 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52281 wxButton *arg2 = (wxButton *) 0 ;
52282 void *argp1 = 0 ;
52283 int res1 = 0 ;
52284 void *argp2 = 0 ;
52285 int res2 = 0 ;
52286 PyObject * obj0 = 0 ;
52287 PyObject * obj1 = 0 ;
52288 char * kwnames[] = {
52289 (char *) "self",(char *) "button", NULL
52290 };
52291
52292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetCancelButton",kwnames,&obj0,&obj1)) SWIG_fail;
52293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52294 if (!SWIG_IsOK(res1)) {
52295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_SetCancelButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer *""'");
52296 }
52297 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52298 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxButton, 0 | 0 );
52299 if (!SWIG_IsOK(res2)) {
52300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StdDialogButtonSizer_SetCancelButton" "', expected argument " "2"" of type '" "wxButton *""'");
52301 }
52302 arg2 = reinterpret_cast< wxButton * >(argp2);
52303 {
52304 PyThreadState* __tstate = wxPyBeginAllowThreads();
52305 (arg1)->SetCancelButton(arg2);
52306 wxPyEndAllowThreads(__tstate);
52307 if (PyErr_Occurred()) SWIG_fail;
52308 }
52309 resultobj = SWIG_Py_Void();
52310 return resultobj;
52311fail:
52312 return NULL;
d55e5bfc
RD
52313}
52314
52315
1bd55598
RD
52316SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_GetAffirmativeButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52317 PyObject *resultobj = 0;
52318 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52319 wxButton *result = 0 ;
52320 void *argp1 = 0 ;
52321 int res1 = 0 ;
52322 PyObject *swig_obj[1] ;
52323
52324 if (!args) SWIG_fail;
52325 swig_obj[0] = args;
52326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52327 if (!SWIG_IsOK(res1)) {
52328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_GetAffirmativeButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer const *""'");
52329 }
52330 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52331 {
52332 PyThreadState* __tstate = wxPyBeginAllowThreads();
52333 result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetAffirmativeButton();
52334 wxPyEndAllowThreads(__tstate);
52335 if (PyErr_Occurred()) SWIG_fail;
52336 }
52337 {
52338 resultobj = wxPyMake_wxObject(result, (bool)0);
52339 }
52340 return resultobj;
52341fail:
52342 return NULL;
d55e5bfc
RD
52343}
52344
52345
1bd55598
RD
52346SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_GetApplyButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52347 PyObject *resultobj = 0;
52348 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52349 wxButton *result = 0 ;
52350 void *argp1 = 0 ;
52351 int res1 = 0 ;
52352 PyObject *swig_obj[1] ;
52353
52354 if (!args) SWIG_fail;
52355 swig_obj[0] = args;
52356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52357 if (!SWIG_IsOK(res1)) {
52358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_GetApplyButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer const *""'");
52359 }
52360 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52361 {
52362 PyThreadState* __tstate = wxPyBeginAllowThreads();
52363 result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetApplyButton();
52364 wxPyEndAllowThreads(__tstate);
52365 if (PyErr_Occurred()) SWIG_fail;
52366 }
52367 {
52368 resultobj = wxPyMake_wxObject(result, (bool)0);
52369 }
52370 return resultobj;
52371fail:
52372 return NULL;
d55e5bfc
RD
52373}
52374
52375
1bd55598
RD
52376SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_GetNegativeButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52377 PyObject *resultobj = 0;
52378 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52379 wxButton *result = 0 ;
52380 void *argp1 = 0 ;
52381 int res1 = 0 ;
52382 PyObject *swig_obj[1] ;
52383
52384 if (!args) SWIG_fail;
52385 swig_obj[0] = args;
52386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52387 if (!SWIG_IsOK(res1)) {
52388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_GetNegativeButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer const *""'");
52389 }
52390 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52391 {
52392 PyThreadState* __tstate = wxPyBeginAllowThreads();
52393 result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetNegativeButton();
52394 wxPyEndAllowThreads(__tstate);
52395 if (PyErr_Occurred()) SWIG_fail;
52396 }
52397 {
52398 resultobj = wxPyMake_wxObject(result, (bool)0);
52399 }
52400 return resultobj;
52401fail:
52402 return NULL;
d55e5bfc
RD
52403}
52404
52405
1bd55598
RD
52406SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_GetCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52407 PyObject *resultobj = 0;
52408 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52409 wxButton *result = 0 ;
52410 void *argp1 = 0 ;
52411 int res1 = 0 ;
52412 PyObject *swig_obj[1] ;
52413
52414 if (!args) SWIG_fail;
52415 swig_obj[0] = args;
52416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52417 if (!SWIG_IsOK(res1)) {
52418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_GetCancelButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer const *""'");
52419 }
52420 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52421 {
52422 PyThreadState* __tstate = wxPyBeginAllowThreads();
52423 result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetCancelButton();
52424 wxPyEndAllowThreads(__tstate);
52425 if (PyErr_Occurred()) SWIG_fail;
52426 }
52427 {
52428 resultobj = wxPyMake_wxObject(result, (bool)0);
52429 }
52430 return resultobj;
52431fail:
52432 return NULL;
d55e5bfc
RD
52433}
52434
52435
1bd55598
RD
52436SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_GetHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52437 PyObject *resultobj = 0;
52438 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52439 wxButton *result = 0 ;
52440 void *argp1 = 0 ;
52441 int res1 = 0 ;
52442 PyObject *swig_obj[1] ;
52443
52444 if (!args) SWIG_fail;
52445 swig_obj[0] = args;
52446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52447 if (!SWIG_IsOK(res1)) {
52448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_GetHelpButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer const *""'");
52449 }
52450 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52451 {
52452 PyThreadState* __tstate = wxPyBeginAllowThreads();
52453 result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetHelpButton();
52454 wxPyEndAllowThreads(__tstate);
52455 if (PyErr_Occurred()) SWIG_fail;
52456 }
52457 {
52458 resultobj = wxPyMake_wxObject(result, (bool)0);
52459 }
52460 return resultobj;
52461fail:
52462 return NULL;
d55e5bfc
RD
52463}
52464
52465
1bd55598
RD
52466SWIGINTERN PyObject *StdDialogButtonSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52467 PyObject *obj;
52468 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
52469 SWIG_TypeNewClientData(SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_NewClientData(obj));
52470 return SWIG_Py_Void();
d55e5bfc
RD
52471}
52472
1bd55598
RD
52473SWIGINTERN PyObject *StdDialogButtonSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52474 return SWIG_Python_InitShadowInstance(args);
52475}
d55e5bfc 52476
1bd55598
RD
52477SWIGINTERN PyObject *_wrap_new_GBPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52478 PyObject *resultobj = 0;
52479 int arg1 = (int) 0 ;
52480 int arg2 = (int) 0 ;
52481 wxGBPosition *result = 0 ;
52482 int val1 ;
52483 int ecode1 = 0 ;
52484 int val2 ;
52485 int ecode2 = 0 ;
52486 PyObject * obj0 = 0 ;
52487 PyObject * obj1 = 0 ;
52488 char * kwnames[] = {
52489 (char *) "row",(char *) "col", NULL
52490 };
52491
52492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) SWIG_fail;
52493 if (obj0) {
52494 ecode1 = SWIG_AsVal_int(obj0, &val1);
52495 if (!SWIG_IsOK(ecode1)) {
52496 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GBPosition" "', expected argument " "1"" of type '" "int""'");
52497 }
52498 arg1 = static_cast< int >(val1);
52499 }
52500 if (obj1) {
52501 ecode2 = SWIG_AsVal_int(obj1, &val2);
52502 if (!SWIG_IsOK(ecode2)) {
52503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GBPosition" "', expected argument " "2"" of type '" "int""'");
52504 }
52505 arg2 = static_cast< int >(val2);
52506 }
52507 {
52508 PyThreadState* __tstate = wxPyBeginAllowThreads();
52509 result = (wxGBPosition *)new wxGBPosition(arg1,arg2);
52510 wxPyEndAllowThreads(__tstate);
52511 if (PyErr_Occurred()) SWIG_fail;
52512 }
52513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_NEW | 0 );
52514 return resultobj;
52515fail:
52516 return NULL;
d55e5bfc
RD
52517}
52518
52519
1bd55598
RD
52520SWIGINTERN PyObject *_wrap_delete_GBPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52521 PyObject *resultobj = 0;
52522 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
52523 void *argp1 = 0 ;
52524 int res1 = 0 ;
52525 PyObject *swig_obj[1] ;
52526
52527 if (!args) SWIG_fail;
52528 swig_obj[0] = args;
52529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBPosition, SWIG_POINTER_DISOWN | 0 );
52530 if (!SWIG_IsOK(res1)) {
52531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GBPosition" "', expected argument " "1"" of type '" "wxGBPosition *""'");
52532 }
52533 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
52534 {
52535 PyThreadState* __tstate = wxPyBeginAllowThreads();
52536 delete arg1;
d55e5bfc 52537
1bd55598
RD
52538 wxPyEndAllowThreads(__tstate);
52539 if (PyErr_Occurred()) SWIG_fail;
52540 }
52541 resultobj = SWIG_Py_Void();
52542 return resultobj;
52543fail:
52544 return NULL;
d55e5bfc
RD
52545}
52546
52547
1bd55598
RD
52548SWIGINTERN PyObject *_wrap_GBPosition_GetRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52549 PyObject *resultobj = 0;
52550 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
52551 int result;
52552 void *argp1 = 0 ;
52553 int res1 = 0 ;
52554 PyObject *swig_obj[1] ;
52555
52556 if (!args) SWIG_fail;
52557 swig_obj[0] = args;
52558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
52559 if (!SWIG_IsOK(res1)) {
52560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_GetRow" "', expected argument " "1"" of type '" "wxGBPosition const *""'");
52561 }
52562 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
52563 {
52564 PyThreadState* __tstate = wxPyBeginAllowThreads();
52565 result = (int)((wxGBPosition const *)arg1)->GetRow();
52566 wxPyEndAllowThreads(__tstate);
52567 if (PyErr_Occurred()) SWIG_fail;
52568 }
52569 resultobj = SWIG_From_int(static_cast< int >(result));
52570 return resultobj;
52571fail:
52572 return NULL;
d55e5bfc
RD
52573}
52574
52575
1bd55598
RD
52576SWIGINTERN PyObject *_wrap_GBPosition_GetCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52577 PyObject *resultobj = 0;
52578 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
52579 int result;
52580 void *argp1 = 0 ;
52581 int res1 = 0 ;
52582 PyObject *swig_obj[1] ;
52583
52584 if (!args) SWIG_fail;
52585 swig_obj[0] = args;
52586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
52587 if (!SWIG_IsOK(res1)) {
52588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_GetCol" "', expected argument " "1"" of type '" "wxGBPosition const *""'");
52589 }
52590 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
52591 {
52592 PyThreadState* __tstate = wxPyBeginAllowThreads();
52593 result = (int)((wxGBPosition const *)arg1)->GetCol();
52594 wxPyEndAllowThreads(__tstate);
52595 if (PyErr_Occurred()) SWIG_fail;
52596 }
52597 resultobj = SWIG_From_int(static_cast< int >(result));
52598 return resultobj;
52599fail:
52600 return NULL;
52601}
52602
52603
52604SWIGINTERN PyObject *_wrap_GBPosition_SetRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52605 PyObject *resultobj = 0;
52606 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
52607 int arg2 ;
52608 void *argp1 = 0 ;
52609 int res1 = 0 ;
52610 int val2 ;
52611 int ecode2 = 0 ;
52612 PyObject * obj0 = 0 ;
52613 PyObject * obj1 = 0 ;
52614 char * kwnames[] = {
52615 (char *) "self",(char *) "row", NULL
52616 };
52617
52618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) SWIG_fail;
52619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
52620 if (!SWIG_IsOK(res1)) {
52621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_SetRow" "', expected argument " "1"" of type '" "wxGBPosition *""'");
52622 }
52623 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
52624 ecode2 = SWIG_AsVal_int(obj1, &val2);
52625 if (!SWIG_IsOK(ecode2)) {
52626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBPosition_SetRow" "', expected argument " "2"" of type '" "int""'");
52627 }
52628 arg2 = static_cast< int >(val2);
52629 {
52630 PyThreadState* __tstate = wxPyBeginAllowThreads();
52631 (arg1)->SetRow(arg2);
52632 wxPyEndAllowThreads(__tstate);
52633 if (PyErr_Occurred()) SWIG_fail;
52634 }
52635 resultobj = SWIG_Py_Void();
52636 return resultobj;
52637fail:
52638 return NULL;
52639}
52640
52641
52642SWIGINTERN PyObject *_wrap_GBPosition_SetCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52643 PyObject *resultobj = 0;
52644 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
52645 int arg2 ;
52646 void *argp1 = 0 ;
52647 int res1 = 0 ;
52648 int val2 ;
52649 int ecode2 = 0 ;
52650 PyObject * obj0 = 0 ;
52651 PyObject * obj1 = 0 ;
52652 char * kwnames[] = {
52653 (char *) "self",(char *) "col", NULL
52654 };
52655
52656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) SWIG_fail;
52657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
52658 if (!SWIG_IsOK(res1)) {
52659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_SetCol" "', expected argument " "1"" of type '" "wxGBPosition *""'");
52660 }
52661 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
52662 ecode2 = SWIG_AsVal_int(obj1, &val2);
52663 if (!SWIG_IsOK(ecode2)) {
52664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBPosition_SetCol" "', expected argument " "2"" of type '" "int""'");
52665 }
52666 arg2 = static_cast< int >(val2);
52667 {
52668 PyThreadState* __tstate = wxPyBeginAllowThreads();
52669 (arg1)->SetCol(arg2);
52670 wxPyEndAllowThreads(__tstate);
52671 if (PyErr_Occurred()) SWIG_fail;
52672 }
52673 resultobj = SWIG_Py_Void();
52674 return resultobj;
52675fail:
52676 return NULL;
52677}
52678
52679
52680SWIGINTERN PyObject *_wrap_GBPosition___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52681 PyObject *resultobj = 0;
52682 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
e9d6f3a4 52683 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
52684 bool result;
52685 void *argp1 = 0 ;
52686 int res1 = 0 ;
1bd55598
RD
52687 PyObject * obj0 = 0 ;
52688 PyObject * obj1 = 0 ;
52689 char * kwnames[] = {
52690 (char *) "self",(char *) "other", NULL
52691 };
52692
52693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
52694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
52695 if (!SWIG_IsOK(res1)) {
52696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition___eq__" "', expected argument " "1"" of type '" "wxGBPosition *""'");
52697 }
52698 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
e9d6f3a4 52699 arg2 = obj1;
1bd55598 52700 {
e9d6f3a4 52701 result = (bool)wxGBPosition___eq__(arg1,arg2);
1bd55598
RD
52702 if (PyErr_Occurred()) SWIG_fail;
52703 }
52704 {
52705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
52706 }
52707 return resultobj;
52708fail:
52709 return NULL;
52710}
52711
52712
52713SWIGINTERN PyObject *_wrap_GBPosition___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52714 PyObject *resultobj = 0;
52715 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
e9d6f3a4 52716 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
52717 bool result;
52718 void *argp1 = 0 ;
52719 int res1 = 0 ;
1bd55598
RD
52720 PyObject * obj0 = 0 ;
52721 PyObject * obj1 = 0 ;
52722 char * kwnames[] = {
52723 (char *) "self",(char *) "other", NULL
52724 };
52725
52726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
52727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
52728 if (!SWIG_IsOK(res1)) {
52729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition___ne__" "', expected argument " "1"" of type '" "wxGBPosition *""'");
52730 }
52731 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
e9d6f3a4 52732 arg2 = obj1;
1bd55598 52733 {
e9d6f3a4 52734 result = (bool)wxGBPosition___ne__(arg1,arg2);
1bd55598
RD
52735 if (PyErr_Occurred()) SWIG_fail;
52736 }
52737 {
52738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
52739 }
52740 return resultobj;
52741fail:
52742 return NULL;
52743}
52744
52745
52746SWIGINTERN PyObject *_wrap_GBPosition_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52747 PyObject *resultobj = 0;
52748 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
52749 int arg2 = (int) 0 ;
52750 int arg3 = (int) 0 ;
52751 void *argp1 = 0 ;
52752 int res1 = 0 ;
52753 int val2 ;
52754 int ecode2 = 0 ;
52755 int val3 ;
52756 int ecode3 = 0 ;
52757 PyObject * obj0 = 0 ;
52758 PyObject * obj1 = 0 ;
52759 PyObject * obj2 = 0 ;
52760 char * kwnames[] = {
52761 (char *) "self",(char *) "row",(char *) "col", NULL
52762 };
52763
52764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
52765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
52766 if (!SWIG_IsOK(res1)) {
52767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_Set" "', expected argument " "1"" of type '" "wxGBPosition *""'");
52768 }
52769 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
52770 if (obj1) {
52771 ecode2 = SWIG_AsVal_int(obj1, &val2);
52772 if (!SWIG_IsOK(ecode2)) {
52773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBPosition_Set" "', expected argument " "2"" of type '" "int""'");
52774 }
52775 arg2 = static_cast< int >(val2);
52776 }
52777 if (obj2) {
52778 ecode3 = SWIG_AsVal_int(obj2, &val3);
52779 if (!SWIG_IsOK(ecode3)) {
52780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GBPosition_Set" "', expected argument " "3"" of type '" "int""'");
52781 }
52782 arg3 = static_cast< int >(val3);
52783 }
52784 {
52785 PyThreadState* __tstate = wxPyBeginAllowThreads();
52786 wxGBPosition_Set(arg1,arg2,arg3);
52787 wxPyEndAllowThreads(__tstate);
52788 if (PyErr_Occurred()) SWIG_fail;
52789 }
52790 resultobj = SWIG_Py_Void();
52791 return resultobj;
52792fail:
52793 return NULL;
d55e5bfc
RD
52794}
52795
52796
1bd55598
RD
52797SWIGINTERN PyObject *_wrap_GBPosition_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52798 PyObject *resultobj = 0;
52799 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
52800 PyObject *result = 0 ;
52801 void *argp1 = 0 ;
52802 int res1 = 0 ;
52803 PyObject *swig_obj[1] ;
52804
52805 if (!args) SWIG_fail;
52806 swig_obj[0] = args;
52807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
52808 if (!SWIG_IsOK(res1)) {
52809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_Get" "', expected argument " "1"" of type '" "wxGBPosition *""'");
52810 }
52811 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
52812 {
52813 PyThreadState* __tstate = wxPyBeginAllowThreads();
52814 result = (PyObject *)wxGBPosition_Get(arg1);
52815 wxPyEndAllowThreads(__tstate);
52816 if (PyErr_Occurred()) SWIG_fail;
52817 }
52818 resultobj = result;
52819 return resultobj;
52820fail:
52821 return NULL;
d55e5bfc
RD
52822}
52823
52824
1bd55598
RD
52825SWIGINTERN PyObject *GBPosition_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52826 PyObject *obj;
52827 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
52828 SWIG_TypeNewClientData(SWIGTYPE_p_wxGBPosition, SWIG_NewClientData(obj));
52829 return SWIG_Py_Void();
d55e5bfc
RD
52830}
52831
1bd55598
RD
52832SWIGINTERN PyObject *GBPosition_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52833 return SWIG_Python_InitShadowInstance(args);
52834}
d55e5bfc 52835
1bd55598
RD
52836SWIGINTERN PyObject *_wrap_new_GBSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52837 PyObject *resultobj = 0;
52838 int arg1 = (int) 1 ;
52839 int arg2 = (int) 1 ;
52840 wxGBSpan *result = 0 ;
52841 int val1 ;
52842 int ecode1 = 0 ;
52843 int val2 ;
52844 int ecode2 = 0 ;
52845 PyObject * obj0 = 0 ;
52846 PyObject * obj1 = 0 ;
52847 char * kwnames[] = {
52848 (char *) "rowspan",(char *) "colspan", NULL
52849 };
52850
52851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) SWIG_fail;
52852 if (obj0) {
52853 ecode1 = SWIG_AsVal_int(obj0, &val1);
52854 if (!SWIG_IsOK(ecode1)) {
52855 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GBSpan" "', expected argument " "1"" of type '" "int""'");
52856 }
52857 arg1 = static_cast< int >(val1);
52858 }
52859 if (obj1) {
52860 ecode2 = SWIG_AsVal_int(obj1, &val2);
52861 if (!SWIG_IsOK(ecode2)) {
52862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GBSpan" "', expected argument " "2"" of type '" "int""'");
52863 }
52864 arg2 = static_cast< int >(val2);
52865 }
52866 {
52867 PyThreadState* __tstate = wxPyBeginAllowThreads();
52868 result = (wxGBSpan *)new wxGBSpan(arg1,arg2);
52869 wxPyEndAllowThreads(__tstate);
52870 if (PyErr_Occurred()) SWIG_fail;
52871 }
52872 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSpan, SWIG_POINTER_NEW | 0 );
52873 return resultobj;
52874fail:
52875 return NULL;
d55e5bfc
RD
52876}
52877
52878
1bd55598
RD
52879SWIGINTERN PyObject *_wrap_delete_GBSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52880 PyObject *resultobj = 0;
52881 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
52882 void *argp1 = 0 ;
52883 int res1 = 0 ;
52884 PyObject *swig_obj[1] ;
52885
52886 if (!args) SWIG_fail;
52887 swig_obj[0] = args;
52888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSpan, SWIG_POINTER_DISOWN | 0 );
52889 if (!SWIG_IsOK(res1)) {
52890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GBSpan" "', expected argument " "1"" of type '" "wxGBSpan *""'");
52891 }
52892 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
52893 {
52894 PyThreadState* __tstate = wxPyBeginAllowThreads();
52895 delete arg1;
d55e5bfc 52896
1bd55598
RD
52897 wxPyEndAllowThreads(__tstate);
52898 if (PyErr_Occurred()) SWIG_fail;
52899 }
52900 resultobj = SWIG_Py_Void();
52901 return resultobj;
52902fail:
52903 return NULL;
d55e5bfc
RD
52904}
52905
52906
1bd55598
RD
52907SWIGINTERN PyObject *_wrap_GBSpan_GetRowspan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52908 PyObject *resultobj = 0;
52909 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
52910 int result;
52911 void *argp1 = 0 ;
52912 int res1 = 0 ;
52913 PyObject *swig_obj[1] ;
52914
52915 if (!args) SWIG_fail;
52916 swig_obj[0] = args;
52917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
52918 if (!SWIG_IsOK(res1)) {
52919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_GetRowspan" "', expected argument " "1"" of type '" "wxGBSpan const *""'");
52920 }
52921 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
52922 {
52923 PyThreadState* __tstate = wxPyBeginAllowThreads();
52924 result = (int)((wxGBSpan const *)arg1)->GetRowspan();
52925 wxPyEndAllowThreads(__tstate);
52926 if (PyErr_Occurred()) SWIG_fail;
52927 }
52928 resultobj = SWIG_From_int(static_cast< int >(result));
52929 return resultobj;
52930fail:
52931 return NULL;
d55e5bfc
RD
52932}
52933
52934
1bd55598
RD
52935SWIGINTERN PyObject *_wrap_GBSpan_GetColspan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52936 PyObject *resultobj = 0;
52937 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
52938 int result;
52939 void *argp1 = 0 ;
52940 int res1 = 0 ;
52941 PyObject *swig_obj[1] ;
52942
52943 if (!args) SWIG_fail;
52944 swig_obj[0] = args;
52945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
52946 if (!SWIG_IsOK(res1)) {
52947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_GetColspan" "', expected argument " "1"" of type '" "wxGBSpan const *""'");
52948 }
52949 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
52950 {
52951 PyThreadState* __tstate = wxPyBeginAllowThreads();
52952 result = (int)((wxGBSpan const *)arg1)->GetColspan();
52953 wxPyEndAllowThreads(__tstate);
52954 if (PyErr_Occurred()) SWIG_fail;
52955 }
52956 resultobj = SWIG_From_int(static_cast< int >(result));
52957 return resultobj;
52958fail:
52959 return NULL;
52960}
52961
52962
52963SWIGINTERN PyObject *_wrap_GBSpan_SetRowspan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52964 PyObject *resultobj = 0;
52965 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
52966 int arg2 ;
52967 void *argp1 = 0 ;
52968 int res1 = 0 ;
52969 int val2 ;
52970 int ecode2 = 0 ;
52971 PyObject * obj0 = 0 ;
52972 PyObject * obj1 = 0 ;
52973 char * kwnames[] = {
52974 (char *) "self",(char *) "rowspan", NULL
52975 };
52976
52977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) SWIG_fail;
52978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
52979 if (!SWIG_IsOK(res1)) {
52980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_SetRowspan" "', expected argument " "1"" of type '" "wxGBSpan *""'");
52981 }
52982 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
52983 ecode2 = SWIG_AsVal_int(obj1, &val2);
52984 if (!SWIG_IsOK(ecode2)) {
52985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBSpan_SetRowspan" "', expected argument " "2"" of type '" "int""'");
52986 }
52987 arg2 = static_cast< int >(val2);
52988 {
52989 PyThreadState* __tstate = wxPyBeginAllowThreads();
52990 (arg1)->SetRowspan(arg2);
52991 wxPyEndAllowThreads(__tstate);
52992 if (PyErr_Occurred()) SWIG_fail;
52993 }
52994 resultobj = SWIG_Py_Void();
52995 return resultobj;
52996fail:
52997 return NULL;
52998}
52999
53000
53001SWIGINTERN PyObject *_wrap_GBSpan_SetColspan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53002 PyObject *resultobj = 0;
53003 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
53004 int arg2 ;
53005 void *argp1 = 0 ;
53006 int res1 = 0 ;
53007 int val2 ;
53008 int ecode2 = 0 ;
53009 PyObject * obj0 = 0 ;
53010 PyObject * obj1 = 0 ;
53011 char * kwnames[] = {
53012 (char *) "self",(char *) "colspan", NULL
53013 };
53014
53015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) SWIG_fail;
53016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
53017 if (!SWIG_IsOK(res1)) {
53018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_SetColspan" "', expected argument " "1"" of type '" "wxGBSpan *""'");
53019 }
53020 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
53021 ecode2 = SWIG_AsVal_int(obj1, &val2);
53022 if (!SWIG_IsOK(ecode2)) {
53023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBSpan_SetColspan" "', expected argument " "2"" of type '" "int""'");
53024 }
53025 arg2 = static_cast< int >(val2);
53026 {
53027 PyThreadState* __tstate = wxPyBeginAllowThreads();
53028 (arg1)->SetColspan(arg2);
53029 wxPyEndAllowThreads(__tstate);
53030 if (PyErr_Occurred()) SWIG_fail;
53031 }
53032 resultobj = SWIG_Py_Void();
53033 return resultobj;
53034fail:
53035 return NULL;
53036}
53037
53038
53039SWIGINTERN PyObject *_wrap_GBSpan___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53040 PyObject *resultobj = 0;
53041 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
e9d6f3a4 53042 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
53043 bool result;
53044 void *argp1 = 0 ;
53045 int res1 = 0 ;
1bd55598
RD
53046 PyObject * obj0 = 0 ;
53047 PyObject * obj1 = 0 ;
53048 char * kwnames[] = {
53049 (char *) "self",(char *) "other", NULL
53050 };
53051
53052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
53053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
53054 if (!SWIG_IsOK(res1)) {
53055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan___eq__" "', expected argument " "1"" of type '" "wxGBSpan *""'");
53056 }
53057 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
e9d6f3a4 53058 arg2 = obj1;
1bd55598 53059 {
e9d6f3a4 53060 result = (bool)wxGBSpan___eq__(arg1,arg2);
1bd55598
RD
53061 if (PyErr_Occurred()) SWIG_fail;
53062 }
53063 {
53064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
53065 }
53066 return resultobj;
53067fail:
53068 return NULL;
53069}
53070
53071
53072SWIGINTERN PyObject *_wrap_GBSpan___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53073 PyObject *resultobj = 0;
53074 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
e9d6f3a4 53075 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
53076 bool result;
53077 void *argp1 = 0 ;
53078 int res1 = 0 ;
1bd55598
RD
53079 PyObject * obj0 = 0 ;
53080 PyObject * obj1 = 0 ;
53081 char * kwnames[] = {
53082 (char *) "self",(char *) "other", NULL
53083 };
53084
53085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
53086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
53087 if (!SWIG_IsOK(res1)) {
53088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan___ne__" "', expected argument " "1"" of type '" "wxGBSpan *""'");
53089 }
53090 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
e9d6f3a4 53091 arg2 = obj1;
1bd55598 53092 {
e9d6f3a4 53093 result = (bool)wxGBSpan___ne__(arg1,arg2);
1bd55598
RD
53094 if (PyErr_Occurred()) SWIG_fail;
53095 }
53096 {
53097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
53098 }
53099 return resultobj;
53100fail:
53101 return NULL;
53102}
53103
53104
53105SWIGINTERN PyObject *_wrap_GBSpan_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53106 PyObject *resultobj = 0;
53107 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
53108 int arg2 = (int) 1 ;
53109 int arg3 = (int) 1 ;
53110 void *argp1 = 0 ;
53111 int res1 = 0 ;
53112 int val2 ;
53113 int ecode2 = 0 ;
53114 int val3 ;
53115 int ecode3 = 0 ;
53116 PyObject * obj0 = 0 ;
53117 PyObject * obj1 = 0 ;
53118 PyObject * obj2 = 0 ;
53119 char * kwnames[] = {
53120 (char *) "self",(char *) "rowspan",(char *) "colspan", NULL
53121 };
53122
53123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
53124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
53125 if (!SWIG_IsOK(res1)) {
53126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_Set" "', expected argument " "1"" of type '" "wxGBSpan *""'");
53127 }
53128 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
53129 if (obj1) {
53130 ecode2 = SWIG_AsVal_int(obj1, &val2);
53131 if (!SWIG_IsOK(ecode2)) {
53132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBSpan_Set" "', expected argument " "2"" of type '" "int""'");
53133 }
53134 arg2 = static_cast< int >(val2);
53135 }
53136 if (obj2) {
53137 ecode3 = SWIG_AsVal_int(obj2, &val3);
53138 if (!SWIG_IsOK(ecode3)) {
53139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GBSpan_Set" "', expected argument " "3"" of type '" "int""'");
53140 }
53141 arg3 = static_cast< int >(val3);
53142 }
53143 {
53144 PyThreadState* __tstate = wxPyBeginAllowThreads();
53145 wxGBSpan_Set(arg1,arg2,arg3);
53146 wxPyEndAllowThreads(__tstate);
53147 if (PyErr_Occurred()) SWIG_fail;
53148 }
53149 resultobj = SWIG_Py_Void();
53150 return resultobj;
53151fail:
53152 return NULL;
d55e5bfc
RD
53153}
53154
53155
1bd55598
RD
53156SWIGINTERN PyObject *_wrap_GBSpan_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53157 PyObject *resultobj = 0;
53158 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
53159 PyObject *result = 0 ;
53160 void *argp1 = 0 ;
53161 int res1 = 0 ;
53162 PyObject *swig_obj[1] ;
53163
53164 if (!args) SWIG_fail;
53165 swig_obj[0] = args;
53166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
53167 if (!SWIG_IsOK(res1)) {
53168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_Get" "', expected argument " "1"" of type '" "wxGBSpan *""'");
53169 }
53170 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
53171 {
53172 PyThreadState* __tstate = wxPyBeginAllowThreads();
53173 result = (PyObject *)wxGBSpan_Get(arg1);
53174 wxPyEndAllowThreads(__tstate);
53175 if (PyErr_Occurred()) SWIG_fail;
53176 }
53177 resultobj = result;
53178 return resultobj;
53179fail:
53180 return NULL;
d55e5bfc
RD
53181}
53182
53183
1bd55598
RD
53184SWIGINTERN PyObject *GBSpan_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53185 PyObject *obj;
53186 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
53187 SWIG_TypeNewClientData(SWIGTYPE_p_wxGBSpan, SWIG_NewClientData(obj));
53188 return SWIG_Py_Void();
d55e5bfc
RD
53189}
53190
1bd55598
RD
53191SWIGINTERN PyObject *GBSpan_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53192 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
53193}
53194
1bd55598
RD
53195SWIGINTERN int DefaultSpan_set(PyObject *) {
53196 SWIG_Error(SWIG_AttributeError,"Variable DefaultSpan is read-only.");
53197 return 1;
d55e5bfc
RD
53198}
53199
53200
1bd55598
RD
53201SWIGINTERN PyObject *DefaultSpan_get(void) {
53202 PyObject *pyobj = 0;
53203
53204 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0 );
53205 return pyobj;
d55e5bfc
RD
53206}
53207
53208
1bd55598
RD
53209SWIGINTERN PyObject *_wrap_new_GBSizerItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53210 PyObject *resultobj = 0;
53211 wxGBSizerItem *result = 0 ;
53212
53213 if (!SWIG_Python_UnpackTuple(args,"new_GBSizerItem",0,0,0)) SWIG_fail;
53214 {
53215 PyThreadState* __tstate = wxPyBeginAllowThreads();
53216 result = (wxGBSizerItem *)new wxGBSizerItem();
53217 wxPyEndAllowThreads(__tstate);
53218 if (PyErr_Occurred()) SWIG_fail;
53219 }
53220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_NEW | 0 );
53221 return resultobj;
53222fail:
53223 return NULL;
d55e5bfc
RD
53224}
53225
53226
1bd55598
RD
53227SWIGINTERN PyObject *_wrap_delete_GBSizerItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53228 PyObject *resultobj = 0;
53229 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53230 void *argp1 = 0 ;
53231 int res1 = 0 ;
53232 PyObject *swig_obj[1] ;
53233
53234 if (!args) SWIG_fail;
53235 swig_obj[0] = args;
53236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_DISOWN | 0 );
53237 if (!SWIG_IsOK(res1)) {
53238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GBSizerItem" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
53239 }
53240 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53241 {
53242 PyThreadState* __tstate = wxPyBeginAllowThreads();
53243 delete arg1;
d55e5bfc 53244
1bd55598
RD
53245 wxPyEndAllowThreads(__tstate);
53246 if (PyErr_Occurred()) SWIG_fail;
53247 }
53248 resultobj = SWIG_Py_Void();
53249 return resultobj;
53250fail:
53251 return NULL;
53252}
53253
53254
53255SWIGINTERN PyObject *_wrap_new_GBSizerItemWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53256 PyObject *resultobj = 0;
53257 wxWindow *arg1 = (wxWindow *) 0 ;
53258 wxGBPosition *arg2 = 0 ;
53259 wxGBSpan *arg3 = 0 ;
53260 int arg4 ;
53261 int arg5 ;
53262 PyObject *arg6 = (PyObject *) NULL ;
53263 wxGBSizerItem *result = 0 ;
53264 void *argp1 = 0 ;
53265 int res1 = 0 ;
53266 wxGBPosition temp2 ;
53267 wxGBSpan temp3 ;
53268 int val4 ;
53269 int ecode4 = 0 ;
53270 int val5 ;
53271 int ecode5 = 0 ;
53272 PyObject * obj0 = 0 ;
53273 PyObject * obj1 = 0 ;
53274 PyObject * obj2 = 0 ;
53275 PyObject * obj3 = 0 ;
53276 PyObject * obj4 = 0 ;
53277 PyObject * obj5 = 0 ;
53278 char * kwnames[] = {
53279 (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
53280 };
53281
53282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
53283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
53284 if (!SWIG_IsOK(res1)) {
53285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GBSizerItemWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
53286 }
53287 arg1 = reinterpret_cast< wxWindow * >(argp1);
53288 {
53289 arg2 = &temp2;
53290 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
53291 }
53292 {
53293 arg3 = &temp3;
53294 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
53295 }
53296 ecode4 = SWIG_AsVal_int(obj3, &val4);
53297 if (!SWIG_IsOK(ecode4)) {
53298 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GBSizerItemWindow" "', expected argument " "4"" of type '" "int""'");
53299 }
53300 arg4 = static_cast< int >(val4);
53301 ecode5 = SWIG_AsVal_int(obj4, &val5);
53302 if (!SWIG_IsOK(ecode5)) {
53303 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GBSizerItemWindow" "', expected argument " "5"" of type '" "int""'");
53304 }
53305 arg5 = static_cast< int >(val5);
53306 if (obj5) {
53307 arg6 = obj5;
53308 }
53309 {
53310 PyThreadState* __tstate = wxPyBeginAllowThreads();
53311 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
53312 wxPyEndAllowThreads(__tstate);
53313 if (PyErr_Occurred()) SWIG_fail;
53314 }
53315 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_OWN | 0 );
53316 return resultobj;
53317fail:
53318 return NULL;
53319}
53320
53321
53322SWIGINTERN PyObject *_wrap_new_GBSizerItemSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53323 PyObject *resultobj = 0;
53324 wxSizer *arg1 = (wxSizer *) 0 ;
53325 wxGBPosition *arg2 = 0 ;
53326 wxGBSpan *arg3 = 0 ;
53327 int arg4 ;
53328 int arg5 ;
53329 PyObject *arg6 = (PyObject *) NULL ;
53330 wxGBSizerItem *result = 0 ;
53331 int res1 = 0 ;
53332 wxGBPosition temp2 ;
53333 wxGBSpan temp3 ;
53334 int val4 ;
53335 int ecode4 = 0 ;
53336 int val5 ;
53337 int ecode5 = 0 ;
53338 PyObject * obj0 = 0 ;
53339 PyObject * obj1 = 0 ;
53340 PyObject * obj2 = 0 ;
53341 PyObject * obj3 = 0 ;
53342 PyObject * obj4 = 0 ;
53343 PyObject * obj5 = 0 ;
53344 char * kwnames[] = {
53345 (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
53346 };
53347
53348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
53349 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
53350 if (!SWIG_IsOK(res1)) {
53351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GBSizerItemSizer" "', expected argument " "1"" of type '" "wxSizer *""'");
53352 }
53353 {
53354 arg2 = &temp2;
53355 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
53356 }
53357 {
53358 arg3 = &temp3;
53359 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
53360 }
53361 ecode4 = SWIG_AsVal_int(obj3, &val4);
53362 if (!SWIG_IsOK(ecode4)) {
53363 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GBSizerItemSizer" "', expected argument " "4"" of type '" "int""'");
53364 }
53365 arg4 = static_cast< int >(val4);
53366 ecode5 = SWIG_AsVal_int(obj4, &val5);
53367 if (!SWIG_IsOK(ecode5)) {
53368 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GBSizerItemSizer" "', expected argument " "5"" of type '" "int""'");
53369 }
53370 arg5 = static_cast< int >(val5);
53371 if (obj5) {
53372 arg6 = obj5;
53373 }
53374 {
53375 PyThreadState* __tstate = wxPyBeginAllowThreads();
53376 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
53377 wxPyEndAllowThreads(__tstate);
53378 if (PyErr_Occurred()) SWIG_fail;
53379 }
53380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_OWN | 0 );
53381 return resultobj;
53382fail:
53383 return NULL;
53384}
53385
53386
53387SWIGINTERN PyObject *_wrap_new_GBSizerItemSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53388 PyObject *resultobj = 0;
53389 int arg1 ;
53390 int arg2 ;
53391 wxGBPosition *arg3 = 0 ;
53392 wxGBSpan *arg4 = 0 ;
53393 int arg5 ;
53394 int arg6 ;
53395 PyObject *arg7 = (PyObject *) NULL ;
53396 wxGBSizerItem *result = 0 ;
53397 int val1 ;
53398 int ecode1 = 0 ;
53399 int val2 ;
53400 int ecode2 = 0 ;
53401 wxGBPosition temp3 ;
53402 wxGBSpan temp4 ;
53403 int val5 ;
53404 int ecode5 = 0 ;
53405 int val6 ;
53406 int ecode6 = 0 ;
53407 PyObject * obj0 = 0 ;
53408 PyObject * obj1 = 0 ;
53409 PyObject * obj2 = 0 ;
53410 PyObject * obj3 = 0 ;
53411 PyObject * obj4 = 0 ;
53412 PyObject * obj5 = 0 ;
53413 PyObject * obj6 = 0 ;
53414 char * kwnames[] = {
53415 (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
53416 };
53417
53418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
53419 ecode1 = SWIG_AsVal_int(obj0, &val1);
53420 if (!SWIG_IsOK(ecode1)) {
53421 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GBSizerItemSpacer" "', expected argument " "1"" of type '" "int""'");
53422 }
53423 arg1 = static_cast< int >(val1);
53424 ecode2 = SWIG_AsVal_int(obj1, &val2);
53425 if (!SWIG_IsOK(ecode2)) {
53426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GBSizerItemSpacer" "', expected argument " "2"" of type '" "int""'");
53427 }
53428 arg2 = static_cast< int >(val2);
53429 {
53430 arg3 = &temp3;
53431 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
53432 }
53433 {
53434 arg4 = &temp4;
53435 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
53436 }
53437 ecode5 = SWIG_AsVal_int(obj4, &val5);
53438 if (!SWIG_IsOK(ecode5)) {
53439 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GBSizerItemSpacer" "', expected argument " "5"" of type '" "int""'");
53440 }
53441 arg5 = static_cast< int >(val5);
53442 ecode6 = SWIG_AsVal_int(obj5, &val6);
53443 if (!SWIG_IsOK(ecode6)) {
53444 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GBSizerItemSpacer" "', expected argument " "6"" of type '" "int""'");
53445 }
53446 arg6 = static_cast< int >(val6);
53447 if (obj6) {
53448 arg7 = obj6;
53449 }
53450 {
53451 PyThreadState* __tstate = wxPyBeginAllowThreads();
53452 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
53453 wxPyEndAllowThreads(__tstate);
53454 if (PyErr_Occurred()) SWIG_fail;
53455 }
53456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_OWN | 0 );
53457 return resultobj;
53458fail:
53459 return NULL;
d55e5bfc
RD
53460}
53461
53462
1bd55598
RD
53463SWIGINTERN PyObject *_wrap_GBSizerItem_GetPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53464 PyObject *resultobj = 0;
53465 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53466 wxGBPosition result;
53467 void *argp1 = 0 ;
53468 int res1 = 0 ;
53469 PyObject *swig_obj[1] ;
53470
53471 if (!args) SWIG_fail;
53472 swig_obj[0] = args;
53473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53474 if (!SWIG_IsOK(res1)) {
53475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_GetPos" "', expected argument " "1"" of type '" "wxGBSizerItem const *""'");
53476 }
53477 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53478 {
53479 PyThreadState* __tstate = wxPyBeginAllowThreads();
53480 result = ((wxGBSizerItem const *)arg1)->GetPos();
53481 wxPyEndAllowThreads(__tstate);
53482 if (PyErr_Occurred()) SWIG_fail;
53483 }
53484 resultobj = SWIG_NewPointerObj((new wxGBPosition(static_cast< const wxGBPosition& >(result))), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_OWN | 0 );
53485 return resultobj;
53486fail:
53487 return NULL;
d55e5bfc
RD
53488}
53489
53490
1bd55598
RD
53491SWIGINTERN PyObject *_wrap_GBSizerItem_GetSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53492 PyObject *resultobj = 0;
53493 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53494 wxGBSpan result;
53495 void *argp1 = 0 ;
53496 int res1 = 0 ;
53497 PyObject *swig_obj[1] ;
53498
53499 if (!args) SWIG_fail;
53500 swig_obj[0] = args;
53501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53502 if (!SWIG_IsOK(res1)) {
53503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_GetSpan" "', expected argument " "1"" of type '" "wxGBSizerItem const *""'");
53504 }
53505 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53506 {
53507 PyThreadState* __tstate = wxPyBeginAllowThreads();
53508 result = ((wxGBSizerItem const *)arg1)->GetSpan();
53509 wxPyEndAllowThreads(__tstate);
53510 if (PyErr_Occurred()) SWIG_fail;
53511 }
53512 resultobj = SWIG_NewPointerObj((new wxGBSpan(static_cast< const wxGBSpan& >(result))), SWIGTYPE_p_wxGBSpan, SWIG_POINTER_OWN | 0 );
53513 return resultobj;
53514fail:
53515 return NULL;
53516}
53517
53518
53519SWIGINTERN PyObject *_wrap_GBSizerItem_SetPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53520 PyObject *resultobj = 0;
53521 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53522 wxGBPosition *arg2 = 0 ;
53523 bool result;
53524 void *argp1 = 0 ;
53525 int res1 = 0 ;
53526 wxGBPosition temp2 ;
53527 PyObject * obj0 = 0 ;
53528 PyObject * obj1 = 0 ;
53529 char * kwnames[] = {
53530 (char *) "self",(char *) "pos", NULL
53531 };
53532
53533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) SWIG_fail;
53534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53535 if (!SWIG_IsOK(res1)) {
53536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_SetPos" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
53537 }
53538 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53539 {
53540 arg2 = &temp2;
53541 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
53542 }
53543 {
53544 PyThreadState* __tstate = wxPyBeginAllowThreads();
53545 result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2);
53546 wxPyEndAllowThreads(__tstate);
53547 if (PyErr_Occurred()) SWIG_fail;
53548 }
53549 {
53550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
53551 }
53552 return resultobj;
53553fail:
53554 return NULL;
53555}
53556
53557
53558SWIGINTERN PyObject *_wrap_GBSizerItem_SetSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53559 PyObject *resultobj = 0;
53560 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53561 wxGBSpan *arg2 = 0 ;
53562 bool result;
53563 void *argp1 = 0 ;
53564 int res1 = 0 ;
53565 wxGBSpan temp2 ;
53566 PyObject * obj0 = 0 ;
53567 PyObject * obj1 = 0 ;
53568 char * kwnames[] = {
53569 (char *) "self",(char *) "span", NULL
53570 };
53571
53572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) SWIG_fail;
53573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53574 if (!SWIG_IsOK(res1)) {
53575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_SetSpan" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
53576 }
53577 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53578 {
53579 arg2 = &temp2;
53580 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
53581 }
53582 {
53583 PyThreadState* __tstate = wxPyBeginAllowThreads();
53584 result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2);
53585 wxPyEndAllowThreads(__tstate);
53586 if (PyErr_Occurred()) SWIG_fail;
53587 }
53588 {
53589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
53590 }
53591 return resultobj;
53592fail:
53593 return NULL;
53594}
53595
53596
53597SWIGINTERN PyObject *_wrap_GBSizerItem_Intersects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53598 PyObject *resultobj = 0;
53599 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53600 wxGBSizerItem *arg2 = 0 ;
53601 bool result;
53602 void *argp1 = 0 ;
53603 int res1 = 0 ;
53604 void *argp2 = 0 ;
53605 int res2 = 0 ;
53606 PyObject * obj0 = 0 ;
53607 PyObject * obj1 = 0 ;
53608 char * kwnames[] = {
53609 (char *) "self",(char *) "other", NULL
53610 };
53611
53612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) SWIG_fail;
53613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53614 if (!SWIG_IsOK(res1)) {
53615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_Intersects" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
53616 }
53617 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGBSizerItem, 0 | 0);
53619 if (!SWIG_IsOK(res2)) {
53620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GBSizerItem_Intersects" "', expected argument " "2"" of type '" "wxGBSizerItem const &""'");
53621 }
53622 if (!argp2) {
53623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GBSizerItem_Intersects" "', expected argument " "2"" of type '" "wxGBSizerItem const &""'");
53624 }
53625 arg2 = reinterpret_cast< wxGBSizerItem * >(argp2);
53626 {
53627 PyThreadState* __tstate = wxPyBeginAllowThreads();
53628 result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2);
53629 wxPyEndAllowThreads(__tstate);
53630 if (PyErr_Occurred()) SWIG_fail;
53631 }
53632 {
53633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
53634 }
53635 return resultobj;
53636fail:
53637 return NULL;
53638}
53639
53640
53641SWIGINTERN PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53642 PyObject *resultobj = 0;
53643 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53644 wxGBPosition *arg2 = 0 ;
53645 wxGBSpan *arg3 = 0 ;
53646 bool result;
53647 void *argp1 = 0 ;
53648 int res1 = 0 ;
53649 wxGBPosition temp2 ;
53650 wxGBSpan temp3 ;
53651 PyObject * obj0 = 0 ;
53652 PyObject * obj1 = 0 ;
53653 PyObject * obj2 = 0 ;
53654 char * kwnames[] = {
53655 (char *) "self",(char *) "pos",(char *) "span", NULL
53656 };
53657
53658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
53659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53660 if (!SWIG_IsOK(res1)) {
53661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_IntersectsPos" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
53662 }
53663 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53664 {
53665 arg2 = &temp2;
53666 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
53667 }
53668 {
53669 arg3 = &temp3;
53670 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
53671 }
53672 {
53673 PyThreadState* __tstate = wxPyBeginAllowThreads();
53674 result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3);
53675 wxPyEndAllowThreads(__tstate);
53676 if (PyErr_Occurred()) SWIG_fail;
53677 }
53678 {
53679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
53680 }
53681 return resultobj;
53682fail:
53683 return NULL;
d55e5bfc
RD
53684}
53685
53686
1bd55598
RD
53687SWIGINTERN PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53688 PyObject *resultobj = 0;
53689 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53690 wxGBPosition result;
53691 void *argp1 = 0 ;
53692 int res1 = 0 ;
53693 PyObject *swig_obj[1] ;
53694
53695 if (!args) SWIG_fail;
53696 swig_obj[0] = args;
53697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53698 if (!SWIG_IsOK(res1)) {
53699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_GetEndPos" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
53700 }
53701 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53702 {
53703 PyThreadState* __tstate = wxPyBeginAllowThreads();
53704 result = wxGBSizerItem_GetEndPos(arg1);
53705 wxPyEndAllowThreads(__tstate);
53706 if (PyErr_Occurred()) SWIG_fail;
53707 }
53708 resultobj = SWIG_NewPointerObj((new wxGBPosition(static_cast< const wxGBPosition& >(result))), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_OWN | 0 );
53709 return resultobj;
53710fail:
53711 return NULL;
908b74cd
RD
53712}
53713
53714
1bd55598
RD
53715SWIGINTERN PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53716 PyObject *resultobj = 0;
53717 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53718 wxGridBagSizer *result = 0 ;
53719 void *argp1 = 0 ;
53720 int res1 = 0 ;
53721 PyObject *swig_obj[1] ;
53722
53723 if (!args) SWIG_fail;
53724 swig_obj[0] = args;
53725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53726 if (!SWIG_IsOK(res1)) {
53727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_GetGBSizer" "', expected argument " "1"" of type '" "wxGBSizerItem const *""'");
53728 }
53729 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53730 {
53731 PyThreadState* __tstate = wxPyBeginAllowThreads();
53732 result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer();
53733 wxPyEndAllowThreads(__tstate);
53734 if (PyErr_Occurred()) SWIG_fail;
53735 }
53736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
53737 return resultobj;
53738fail:
53739 return NULL;
53740}
53741
53742
53743SWIGINTERN PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53744 PyObject *resultobj = 0;
53745 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53746 wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ;
53747 void *argp1 = 0 ;
53748 int res1 = 0 ;
53749 void *argp2 = 0 ;
53750 int res2 = 0 ;
53751 PyObject * obj0 = 0 ;
53752 PyObject * obj1 = 0 ;
53753 char * kwnames[] = {
53754 (char *) "self",(char *) "sizer", NULL
53755 };
53756
53757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) SWIG_fail;
53758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53759 if (!SWIG_IsOK(res1)) {
53760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_SetGBSizer" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
53761 }
53762 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53763 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
53764 if (!SWIG_IsOK(res2)) {
53765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GBSizerItem_SetGBSizer" "', expected argument " "2"" of type '" "wxGridBagSizer *""'");
53766 }
53767 arg2 = reinterpret_cast< wxGridBagSizer * >(argp2);
53768 {
53769 PyThreadState* __tstate = wxPyBeginAllowThreads();
53770 (arg1)->SetGBSizer(arg2);
53771 wxPyEndAllowThreads(__tstate);
53772 if (PyErr_Occurred()) SWIG_fail;
53773 }
53774 resultobj = SWIG_Py_Void();
53775 return resultobj;
53776fail:
53777 return NULL;
bf26d883
RD
53778}
53779
53780
1bd55598
RD
53781SWIGINTERN PyObject *GBSizerItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53782 PyObject *obj;
53783 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
53784 SWIG_TypeNewClientData(SWIGTYPE_p_wxGBSizerItem, SWIG_NewClientData(obj));
53785 return SWIG_Py_Void();
bf26d883
RD
53786}
53787
1bd55598
RD
53788SWIGINTERN PyObject *GBSizerItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53789 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
53790}
53791
1bd55598
RD
53792SWIGINTERN PyObject *_wrap_new_GridBagSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53793 PyObject *resultobj = 0;
53794 int arg1 = (int) 0 ;
53795 int arg2 = (int) 0 ;
53796 wxGridBagSizer *result = 0 ;
53797 int val1 ;
53798 int ecode1 = 0 ;
53799 int val2 ;
53800 int ecode2 = 0 ;
53801 PyObject * obj0 = 0 ;
53802 PyObject * obj1 = 0 ;
53803 char * kwnames[] = {
53804 (char *) "vgap",(char *) "hgap", NULL
53805 };
53806
53807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) SWIG_fail;
53808 if (obj0) {
53809 ecode1 = SWIG_AsVal_int(obj0, &val1);
53810 if (!SWIG_IsOK(ecode1)) {
53811 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GridBagSizer" "', expected argument " "1"" of type '" "int""'");
53812 }
53813 arg1 = static_cast< int >(val1);
53814 }
53815 if (obj1) {
53816 ecode2 = SWIG_AsVal_int(obj1, &val2);
53817 if (!SWIG_IsOK(ecode2)) {
53818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GridBagSizer" "', expected argument " "2"" of type '" "int""'");
53819 }
53820 arg2 = static_cast< int >(val2);
53821 }
53822 {
53823 PyThreadState* __tstate = wxPyBeginAllowThreads();
53824 result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2);
53825 wxPyEndAllowThreads(__tstate);
53826 if (PyErr_Occurred()) SWIG_fail;
53827 }
53828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_NEW | 0 );
53829 return resultobj;
53830fail:
53831 return NULL;
53832}
53833
53834
53835SWIGINTERN PyObject *_wrap_GridBagSizer_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53836 PyObject *resultobj = 0;
53837 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
53838 PyObject *arg2 = (PyObject *) 0 ;
53839 wxGBPosition *arg3 = 0 ;
53840 wxGBSpan const &arg4_defvalue = wxDefaultSpan ;
53841 wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ;
53842 int arg5 = (int) 0 ;
53843 int arg6 = (int) 0 ;
53844 PyObject *arg7 = (PyObject *) NULL ;
53845 wxGBSizerItem *result = 0 ;
53846 void *argp1 = 0 ;
53847 int res1 = 0 ;
53848 wxGBPosition temp3 ;
53849 wxGBSpan temp4 ;
53850 int val5 ;
53851 int ecode5 = 0 ;
53852 int val6 ;
53853 int ecode6 = 0 ;
53854 PyObject * obj0 = 0 ;
53855 PyObject * obj1 = 0 ;
53856 PyObject * obj2 = 0 ;
53857 PyObject * obj3 = 0 ;
53858 PyObject * obj4 = 0 ;
53859 PyObject * obj5 = 0 ;
53860 PyObject * obj6 = 0 ;
53861 char * kwnames[] = {
53862 (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
53863 };
53864
53865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
53866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
53867 if (!SWIG_IsOK(res1)) {
53868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_Add" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
53869 }
53870 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
53871 arg2 = obj1;
53872 {
53873 arg3 = &temp3;
53874 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
53875 }
53876 if (obj3) {
d55e5bfc 53877 {
1bd55598
RD
53878 arg4 = &temp4;
53879 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 53880 }
1bd55598
RD
53881 }
53882 if (obj4) {
53883 ecode5 = SWIG_AsVal_int(obj4, &val5);
53884 if (!SWIG_IsOK(ecode5)) {
53885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GridBagSizer_Add" "', expected argument " "5"" of type '" "int""'");
53886 }
53887 arg5 = static_cast< int >(val5);
53888 }
53889 if (obj5) {
53890 ecode6 = SWIG_AsVal_int(obj5, &val6);
53891 if (!SWIG_IsOK(ecode6)) {
53892 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GridBagSizer_Add" "', expected argument " "6"" of type '" "int""'");
53893 }
53894 arg6 = static_cast< int >(val6);
53895 }
53896 if (obj6) {
53897 arg7 = obj6;
53898 }
53899 {
53900 PyThreadState* __tstate = wxPyBeginAllowThreads();
53901 result = (wxGBSizerItem *)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
53902 wxPyEndAllowThreads(__tstate);
53903 if (PyErr_Occurred()) SWIG_fail;
53904 }
53905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53906 return resultobj;
53907fail:
53908 return NULL;
53909}
53910
53911
53912SWIGINTERN PyObject *_wrap_GridBagSizer_AddItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53913 PyObject *resultobj = 0;
53914 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
53915 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
53916 wxGBSizerItem *result = 0 ;
53917 void *argp1 = 0 ;
53918 int res1 = 0 ;
53919 int res2 = 0 ;
53920 PyObject * obj0 = 0 ;
53921 PyObject * obj1 = 0 ;
53922 char * kwnames[] = {
53923 (char *) "self",(char *) "item", NULL
53924 };
53925
53926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) SWIG_fail;
53927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
53928 if (!SWIG_IsOK(res1)) {
53929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_AddItem" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
53930 }
53931 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
53932 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_DISOWN | 0 );
53933 if (!SWIG_IsOK(res2)) {
53934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_AddItem" "', expected argument " "2"" of type '" "wxGBSizerItem *""'");
53935 }
53936 {
53937 PyThreadState* __tstate = wxPyBeginAllowThreads();
53938 result = (wxGBSizerItem *)(arg1)->Add(arg2);
53939 wxPyEndAllowThreads(__tstate);
53940 if (PyErr_Occurred()) SWIG_fail;
53941 }
53942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53943 return resultobj;
53944fail:
53945 return NULL;
53946}
53947
53948
53949SWIGINTERN PyObject *_wrap_GridBagSizer_GetCellSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53950 PyObject *resultobj = 0;
53951 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
53952 int arg2 ;
53953 int arg3 ;
53954 wxSize result;
53955 void *argp1 = 0 ;
53956 int res1 = 0 ;
53957 int val2 ;
53958 int ecode2 = 0 ;
53959 int val3 ;
53960 int ecode3 = 0 ;
53961 PyObject * obj0 = 0 ;
53962 PyObject * obj1 = 0 ;
53963 PyObject * obj2 = 0 ;
53964 char * kwnames[] = {
53965 (char *) "self",(char *) "row",(char *) "col", NULL
53966 };
53967
53968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridBagSizer_GetCellSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
53969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
53970 if (!SWIG_IsOK(res1)) {
53971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetCellSize" "', expected argument " "1"" of type '" "wxGridBagSizer const *""'");
53972 }
53973 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
53974 ecode2 = SWIG_AsVal_int(obj1, &val2);
53975 if (!SWIG_IsOK(ecode2)) {
53976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridBagSizer_GetCellSize" "', expected argument " "2"" of type '" "int""'");
53977 }
53978 arg2 = static_cast< int >(val2);
53979 ecode3 = SWIG_AsVal_int(obj2, &val3);
53980 if (!SWIG_IsOK(ecode3)) {
53981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GridBagSizer_GetCellSize" "', expected argument " "3"" of type '" "int""'");
53982 }
53983 arg3 = static_cast< int >(val3);
53984 {
53985 PyThreadState* __tstate = wxPyBeginAllowThreads();
53986 result = ((wxGridBagSizer const *)arg1)->GetCellSize(arg2,arg3);
53987 wxPyEndAllowThreads(__tstate);
53988 if (PyErr_Occurred()) SWIG_fail;
53989 }
53990 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
53991 return resultobj;
53992fail:
53993 return NULL;
d55e5bfc
RD
53994}
53995
53996
1bd55598
RD
53997SWIGINTERN PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53998 PyObject *resultobj = 0;
53999 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54000 wxSize result;
54001 void *argp1 = 0 ;
54002 int res1 = 0 ;
54003 PyObject *swig_obj[1] ;
54004
54005 if (!args) SWIG_fail;
54006 swig_obj[0] = args;
54007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54008 if (!SWIG_IsOK(res1)) {
54009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetEmptyCellSize" "', expected argument " "1"" of type '" "wxGridBagSizer const *""'");
54010 }
54011 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54012 {
54013 PyThreadState* __tstate = wxPyBeginAllowThreads();
54014 result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize();
54015 wxPyEndAllowThreads(__tstate);
54016 if (PyErr_Occurred()) SWIG_fail;
54017 }
54018 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
54019 return resultobj;
54020fail:
54021 return NULL;
54022}
54023
54024
54025SWIGINTERN PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
54026 PyObject *resultobj = 0;
54027 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54028 wxSize *arg2 = 0 ;
54029 void *argp1 = 0 ;
54030 int res1 = 0 ;
54031 wxSize temp2 ;
54032 PyObject * obj0 = 0 ;
54033 PyObject * obj1 = 0 ;
54034 char * kwnames[] = {
54035 (char *) "self",(char *) "sz", NULL
54036 };
54037
54038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) SWIG_fail;
54039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54040 if (!SWIG_IsOK(res1)) {
54041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetEmptyCellSize" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54042 }
54043 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54044 {
54045 arg2 = &temp2;
54046 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
54047 }
54048 {
54049 PyThreadState* __tstate = wxPyBeginAllowThreads();
54050 (arg1)->SetEmptyCellSize((wxSize const &)*arg2);
54051 wxPyEndAllowThreads(__tstate);
54052 if (PyErr_Occurred()) SWIG_fail;
54053 }
54054 resultobj = SWIG_Py_Void();
54055 return resultobj;
54056fail:
54057 return NULL;
54058}
54059
54060
54061SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54062 PyObject *resultobj = 0;
54063 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54064 wxWindow *arg2 = (wxWindow *) 0 ;
54065 wxGBPosition result;
54066 void *argp1 = 0 ;
54067 int res1 = 0 ;
54068 void *argp2 = 0 ;
54069 int res2 = 0 ;
54070
54071 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54073 if (!SWIG_IsOK(res1)) {
54074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54075 }
54076 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54077 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
54078 if (!SWIG_IsOK(res2)) {
54079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "2"" of type '" "wxWindow *""'");
54080 }
54081 arg2 = reinterpret_cast< wxWindow * >(argp2);
54082 {
54083 PyThreadState* __tstate = wxPyBeginAllowThreads();
54084 result = (arg1)->GetItemPosition(arg2);
54085 wxPyEndAllowThreads(__tstate);
54086 if (PyErr_Occurred()) SWIG_fail;
54087 }
54088 resultobj = SWIG_NewPointerObj((new wxGBPosition(static_cast< const wxGBPosition& >(result))), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_OWN | 0 );
54089 return resultobj;
54090fail:
54091 return NULL;
54092}
54093
54094
54095SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54096 PyObject *resultobj = 0;
54097 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54098 wxSizer *arg2 = (wxSizer *) 0 ;
54099 wxGBPosition result;
54100 void *argp1 = 0 ;
54101 int res1 = 0 ;
54102 void *argp2 = 0 ;
54103 int res2 = 0 ;
54104
54105 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54107 if (!SWIG_IsOK(res1)) {
54108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54109 }
54110 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54111 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
54112 if (!SWIG_IsOK(res2)) {
54113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "2"" of type '" "wxSizer *""'");
54114 }
54115 arg2 = reinterpret_cast< wxSizer * >(argp2);
54116 {
54117 PyThreadState* __tstate = wxPyBeginAllowThreads();
54118 result = (arg1)->GetItemPosition(arg2);
54119 wxPyEndAllowThreads(__tstate);
54120 if (PyErr_Occurred()) SWIG_fail;
54121 }
54122 resultobj = SWIG_NewPointerObj((new wxGBPosition(static_cast< const wxGBPosition& >(result))), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_OWN | 0 );
54123 return resultobj;
54124fail:
54125 return NULL;
54126}
54127
54128
54129SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54130 PyObject *resultobj = 0;
54131 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54132 size_t arg2 ;
54133 wxGBPosition result;
54134 void *argp1 = 0 ;
54135 int res1 = 0 ;
54136 size_t val2 ;
54137 int ecode2 = 0 ;
54138
54139 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54141 if (!SWIG_IsOK(res1)) {
54142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54143 }
54144 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54145 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
54146 if (!SWIG_IsOK(ecode2)) {
54147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "2"" of type '" "size_t""'");
54148 }
54149 arg2 = static_cast< size_t >(val2);
54150 {
54151 PyThreadState* __tstate = wxPyBeginAllowThreads();
54152 result = (arg1)->GetItemPosition(arg2);
54153 wxPyEndAllowThreads(__tstate);
54154 if (PyErr_Occurred()) SWIG_fail;
54155 }
54156 resultobj = SWIG_NewPointerObj((new wxGBPosition(static_cast< const wxGBPosition& >(result))), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_OWN | 0 );
54157 return resultobj;
54158fail:
54159 return NULL;
d55e5bfc
RD
54160}
54161
54162
1bd55598
RD
54163SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) {
54164 int argc;
54165 PyObject *argv[3];
54166
54167 if (!(argc = SWIG_Python_UnpackTuple(args,"GridBagSizer_GetItemPosition",0,2,argv))) SWIG_fail;
54168 --argc;
54169 if (argc == 2) {
54170 int _v = 0;
d55e5bfc 54171 {
1bd55598
RD
54172 void *vptr = 0;
54173 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxWindow, 0);
54174 _v = SWIG_CheckState(res);
d55e5bfc 54175 }
1bd55598
RD
54176 if (!_v) goto check_1;
54177 return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self, argc, argv);
54178 }
54179check_1:
54180
54181 if (argc == 2) {
54182 int _v = 0;
d55e5bfc 54183 {
1bd55598
RD
54184 void *vptr = 0;
54185 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxSizer, 0);
54186 _v = SWIG_CheckState(res);
d55e5bfc 54187 }
1bd55598
RD
54188 if (!_v) goto check_2;
54189 return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self, argc, argv);
54190 }
54191check_2:
54192
54193 if (argc == 2) {
54194 return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self, argc, argv);
54195 }
54196
54197fail:
54198 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'");
54199 return NULL;
54200}
54201
54202
54203SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54204 PyObject *resultobj = 0;
54205 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54206 wxWindow *arg2 = (wxWindow *) 0 ;
54207 wxGBPosition *arg3 = 0 ;
54208 bool result;
54209 void *argp1 = 0 ;
54210 int res1 = 0 ;
54211 void *argp2 = 0 ;
54212 int res2 = 0 ;
54213 wxGBPosition temp3 ;
54214
54215 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
54216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54217 if (!SWIG_IsOK(res1)) {
54218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54219 }
54220 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54221 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
54222 if (!SWIG_IsOK(res2)) {
54223 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "2"" of type '" "wxWindow *""'");
54224 }
54225 arg2 = reinterpret_cast< wxWindow * >(argp2);
54226 {
54227 arg3 = &temp3;
54228 if ( ! wxGBPosition_helper(swig_obj[2], &arg3)) SWIG_fail;
54229 }
54230 {
54231 PyThreadState* __tstate = wxPyBeginAllowThreads();
54232 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
54233 wxPyEndAllowThreads(__tstate);
54234 if (PyErr_Occurred()) SWIG_fail;
54235 }
54236 {
54237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
54238 }
54239 return resultobj;
54240fail:
54241 return NULL;
54242}
54243
54244
54245SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54246 PyObject *resultobj = 0;
54247 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54248 wxSizer *arg2 = (wxSizer *) 0 ;
54249 wxGBPosition *arg3 = 0 ;
54250 bool result;
54251 void *argp1 = 0 ;
54252 int res1 = 0 ;
54253 void *argp2 = 0 ;
54254 int res2 = 0 ;
54255 wxGBPosition temp3 ;
54256
54257 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
54258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54259 if (!SWIG_IsOK(res1)) {
54260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54261 }
54262 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54263 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
54264 if (!SWIG_IsOK(res2)) {
54265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "2"" of type '" "wxSizer *""'");
54266 }
54267 arg2 = reinterpret_cast< wxSizer * >(argp2);
54268 {
54269 arg3 = &temp3;
54270 if ( ! wxGBPosition_helper(swig_obj[2], &arg3)) SWIG_fail;
54271 }
54272 {
54273 PyThreadState* __tstate = wxPyBeginAllowThreads();
54274 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
54275 wxPyEndAllowThreads(__tstate);
54276 if (PyErr_Occurred()) SWIG_fail;
54277 }
54278 {
54279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
54280 }
54281 return resultobj;
54282fail:
54283 return NULL;
54284}
54285
54286
54287SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54288 PyObject *resultobj = 0;
54289 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54290 size_t arg2 ;
54291 wxGBPosition *arg3 = 0 ;
54292 bool result;
54293 void *argp1 = 0 ;
54294 int res1 = 0 ;
54295 size_t val2 ;
54296 int ecode2 = 0 ;
54297 wxGBPosition temp3 ;
54298
54299 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
54300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54301 if (!SWIG_IsOK(res1)) {
54302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54303 }
54304 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54305 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
54306 if (!SWIG_IsOK(ecode2)) {
54307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "2"" of type '" "size_t""'");
54308 }
54309 arg2 = static_cast< size_t >(val2);
54310 {
54311 arg3 = &temp3;
54312 if ( ! wxGBPosition_helper(swig_obj[2], &arg3)) SWIG_fail;
54313 }
54314 {
54315 PyThreadState* __tstate = wxPyBeginAllowThreads();
54316 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
54317 wxPyEndAllowThreads(__tstate);
54318 if (PyErr_Occurred()) SWIG_fail;
54319 }
54320 {
54321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
54322 }
54323 return resultobj;
54324fail:
54325 return NULL;
d55e5bfc
RD
54326}
54327
54328
1bd55598
RD
54329SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) {
54330 int argc;
54331 PyObject *argv[4];
54332
54333 if (!(argc = SWIG_Python_UnpackTuple(args,"GridBagSizer_SetItemPosition",0,3,argv))) SWIG_fail;
54334 --argc;
54335 if (argc == 3) {
54336 int _v = 0;
d55e5bfc 54337 {
1bd55598
RD
54338 void *vptr = 0;
54339 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxWindow, 0);
54340 _v = SWIG_CheckState(res);
d55e5bfc 54341 }
1bd55598
RD
54342 if (!_v) goto check_1;
54343 return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self, argc, argv);
54344 }
54345check_1:
54346
54347 if (argc == 3) {
54348 int _v = 0;
d55e5bfc 54349 {
1bd55598
RD
54350 void *vptr = 0;
54351 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxSizer, 0);
54352 _v = SWIG_CheckState(res);
d55e5bfc 54353 }
1bd55598
RD
54354 if (!_v) goto check_2;
54355 return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self, argc, argv);
54356 }
54357check_2:
54358
54359 if (argc == 3) {
54360 return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self, argc, argv);
54361 }
54362
54363fail:
54364 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'");
54365 return NULL;
d55e5bfc
RD
54366}
54367
54368
1bd55598
RD
54369SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54370 PyObject *resultobj = 0;
54371 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54372 wxWindow *arg2 = (wxWindow *) 0 ;
54373 wxGBSpan result;
54374 void *argp1 = 0 ;
54375 int res1 = 0 ;
54376 void *argp2 = 0 ;
54377 int res2 = 0 ;
54378
54379 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54381 if (!SWIG_IsOK(res1)) {
54382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54383 }
54384 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54385 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
54386 if (!SWIG_IsOK(res2)) {
54387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "2"" of type '" "wxWindow *""'");
54388 }
54389 arg2 = reinterpret_cast< wxWindow * >(argp2);
54390 {
54391 PyThreadState* __tstate = wxPyBeginAllowThreads();
54392 result = (arg1)->GetItemSpan(arg2);
54393 wxPyEndAllowThreads(__tstate);
54394 if (PyErr_Occurred()) SWIG_fail;
54395 }
54396 resultobj = SWIG_NewPointerObj((new wxGBSpan(static_cast< const wxGBSpan& >(result))), SWIGTYPE_p_wxGBSpan, SWIG_POINTER_OWN | 0 );
54397 return resultobj;
54398fail:
54399 return NULL;
54400}
54401
54402
54403SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54404 PyObject *resultobj = 0;
54405 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54406 wxSizer *arg2 = (wxSizer *) 0 ;
54407 wxGBSpan result;
54408 void *argp1 = 0 ;
54409 int res1 = 0 ;
54410 void *argp2 = 0 ;
54411 int res2 = 0 ;
54412
54413 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54415 if (!SWIG_IsOK(res1)) {
54416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54417 }
54418 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54419 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
54420 if (!SWIG_IsOK(res2)) {
54421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "2"" of type '" "wxSizer *""'");
54422 }
54423 arg2 = reinterpret_cast< wxSizer * >(argp2);
54424 {
54425 PyThreadState* __tstate = wxPyBeginAllowThreads();
54426 result = (arg1)->GetItemSpan(arg2);
54427 wxPyEndAllowThreads(__tstate);
54428 if (PyErr_Occurred()) SWIG_fail;
54429 }
54430 resultobj = SWIG_NewPointerObj((new wxGBSpan(static_cast< const wxGBSpan& >(result))), SWIGTYPE_p_wxGBSpan, SWIG_POINTER_OWN | 0 );
54431 return resultobj;
54432fail:
54433 return NULL;
54434}
54435
54436
54437SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54438 PyObject *resultobj = 0;
54439 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54440 size_t arg2 ;
54441 wxGBSpan result;
54442 void *argp1 = 0 ;
54443 int res1 = 0 ;
54444 size_t val2 ;
54445 int ecode2 = 0 ;
54446
54447 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54449 if (!SWIG_IsOK(res1)) {
54450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54451 }
54452 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54453 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
54454 if (!SWIG_IsOK(ecode2)) {
54455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "2"" of type '" "size_t""'");
54456 }
54457 arg2 = static_cast< size_t >(val2);
54458 {
54459 PyThreadState* __tstate = wxPyBeginAllowThreads();
54460 result = (arg1)->GetItemSpan(arg2);
54461 wxPyEndAllowThreads(__tstate);
54462 if (PyErr_Occurred()) SWIG_fail;
54463 }
54464 resultobj = SWIG_NewPointerObj((new wxGBSpan(static_cast< const wxGBSpan& >(result))), SWIGTYPE_p_wxGBSpan, SWIG_POINTER_OWN | 0 );
54465 return resultobj;
54466fail:
54467 return NULL;
d55e5bfc
RD
54468}
54469
54470
1bd55598
RD
54471SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) {
54472 int argc;
54473 PyObject *argv[3];
54474
54475 if (!(argc = SWIG_Python_UnpackTuple(args,"GridBagSizer_GetItemSpan",0,2,argv))) SWIG_fail;
54476 --argc;
54477 if (argc == 2) {
54478 int _v = 0;
d55e5bfc 54479 {
1bd55598
RD
54480 void *vptr = 0;
54481 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxWindow, 0);
54482 _v = SWIG_CheckState(res);
d55e5bfc 54483 }
1bd55598
RD
54484 if (!_v) goto check_1;
54485 return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self, argc, argv);
54486 }
54487check_1:
54488
54489 if (argc == 2) {
54490 int _v = 0;
d55e5bfc 54491 {
1bd55598
RD
54492 void *vptr = 0;
54493 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxSizer, 0);
54494 _v = SWIG_CheckState(res);
d55e5bfc 54495 }
1bd55598
RD
54496 if (!_v) goto check_2;
54497 return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self, argc, argv);
54498 }
54499check_2:
54500
54501 if (argc == 2) {
54502 return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self, argc, argv);
54503 }
54504
54505fail:
54506 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'");
54507 return NULL;
54508}
54509
54510
54511SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54512 PyObject *resultobj = 0;
54513 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54514 wxWindow *arg2 = (wxWindow *) 0 ;
54515 wxGBSpan *arg3 = 0 ;
54516 bool result;
54517 void *argp1 = 0 ;
54518 int res1 = 0 ;
54519 void *argp2 = 0 ;
54520 int res2 = 0 ;
54521 wxGBSpan temp3 ;
54522
54523 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
54524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54525 if (!SWIG_IsOK(res1)) {
54526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54527 }
54528 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54529 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
54530 if (!SWIG_IsOK(res2)) {
54531 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "2"" of type '" "wxWindow *""'");
54532 }
54533 arg2 = reinterpret_cast< wxWindow * >(argp2);
54534 {
54535 arg3 = &temp3;
54536 if ( ! wxGBSpan_helper(swig_obj[2], &arg3)) SWIG_fail;
54537 }
54538 {
54539 PyThreadState* __tstate = wxPyBeginAllowThreads();
54540 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
54541 wxPyEndAllowThreads(__tstate);
54542 if (PyErr_Occurred()) SWIG_fail;
54543 }
54544 {
54545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
54546 }
54547 return resultobj;
54548fail:
54549 return NULL;
54550}
54551
54552
54553SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54554 PyObject *resultobj = 0;
54555 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54556 wxSizer *arg2 = (wxSizer *) 0 ;
54557 wxGBSpan *arg3 = 0 ;
54558 bool result;
54559 void *argp1 = 0 ;
54560 int res1 = 0 ;
54561 void *argp2 = 0 ;
54562 int res2 = 0 ;
54563 wxGBSpan temp3 ;
54564
54565 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
54566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54567 if (!SWIG_IsOK(res1)) {
54568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54569 }
54570 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54571 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
54572 if (!SWIG_IsOK(res2)) {
54573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "2"" of type '" "wxSizer *""'");
54574 }
54575 arg2 = reinterpret_cast< wxSizer * >(argp2);
54576 {
54577 arg3 = &temp3;
54578 if ( ! wxGBSpan_helper(swig_obj[2], &arg3)) SWIG_fail;
54579 }
54580 {
54581 PyThreadState* __tstate = wxPyBeginAllowThreads();
54582 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
54583 wxPyEndAllowThreads(__tstate);
54584 if (PyErr_Occurred()) SWIG_fail;
54585 }
54586 {
54587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
54588 }
54589 return resultobj;
54590fail:
54591 return NULL;
54592}
54593
54594
54595SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54596 PyObject *resultobj = 0;
54597 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54598 size_t arg2 ;
54599 wxGBSpan *arg3 = 0 ;
54600 bool result;
54601 void *argp1 = 0 ;
54602 int res1 = 0 ;
54603 size_t val2 ;
54604 int ecode2 = 0 ;
54605 wxGBSpan temp3 ;
54606
54607 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
54608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54609 if (!SWIG_IsOK(res1)) {
54610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54611 }
54612 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54613 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
54614 if (!SWIG_IsOK(ecode2)) {
54615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "2"" of type '" "size_t""'");
54616 }
54617 arg2 = static_cast< size_t >(val2);
54618 {
54619 arg3 = &temp3;
54620 if ( ! wxGBSpan_helper(swig_obj[2], &arg3)) SWIG_fail;
54621 }
54622 {
54623 PyThreadState* __tstate = wxPyBeginAllowThreads();
54624 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
54625 wxPyEndAllowThreads(__tstate);
54626 if (PyErr_Occurred()) SWIG_fail;
54627 }
54628 {
54629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
54630 }
54631 return resultobj;
54632fail:
54633 return NULL;
d55e5bfc
RD
54634}
54635
54636
1bd55598
RD
54637SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) {
54638 int argc;
54639 PyObject *argv[4];
54640
54641 if (!(argc = SWIG_Python_UnpackTuple(args,"GridBagSizer_SetItemSpan",0,3,argv))) SWIG_fail;
54642 --argc;
54643 if (argc == 3) {
54644 int _v = 0;
d55e5bfc 54645 {
1bd55598
RD
54646 void *vptr = 0;
54647 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxWindow, 0);
54648 _v = SWIG_CheckState(res);
d55e5bfc 54649 }
1bd55598
RD
54650 if (!_v) goto check_1;
54651 return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self, argc, argv);
54652 }
54653check_1:
54654
54655 if (argc == 3) {
54656 int _v = 0;
d55e5bfc 54657 {
1bd55598
RD
54658 void *vptr = 0;
54659 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxSizer, 0);
54660 _v = SWIG_CheckState(res);
d55e5bfc 54661 }
1bd55598
RD
54662 if (!_v) goto check_2;
54663 return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self, argc, argv);
54664 }
54665check_2:
54666
54667 if (argc == 3) {
54668 return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self, argc, argv);
54669 }
54670
54671fail:
54672 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'");
54673 return NULL;
d55e5bfc
RD
54674}
54675
54676
1bd55598
RD
54677SWIGINTERN PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54678 PyObject *resultobj = 0;
54679 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54680 wxWindow *arg2 = (wxWindow *) 0 ;
54681 wxGBSizerItem *result = 0 ;
54682 void *argp1 = 0 ;
54683 int res1 = 0 ;
54684 void *argp2 = 0 ;
54685 int res2 = 0 ;
54686
54687 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54689 if (!SWIG_IsOK(res1)) {
54690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_FindItem" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54691 }
54692 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54693 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
54694 if (!SWIG_IsOK(res2)) {
54695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_FindItem" "', expected argument " "2"" of type '" "wxWindow *""'");
54696 }
54697 arg2 = reinterpret_cast< wxWindow * >(argp2);
54698 {
54699 PyThreadState* __tstate = wxPyBeginAllowThreads();
54700 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
54701 wxPyEndAllowThreads(__tstate);
54702 if (PyErr_Occurred()) SWIG_fail;
54703 }
54704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
54705 return resultobj;
54706fail:
54707 return NULL;
54708}
54709
54710
54711SWIGINTERN PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54712 PyObject *resultobj = 0;
54713 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54714 wxSizer *arg2 = (wxSizer *) 0 ;
54715 wxGBSizerItem *result = 0 ;
54716 void *argp1 = 0 ;
54717 int res1 = 0 ;
54718 void *argp2 = 0 ;
54719 int res2 = 0 ;
54720
54721 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54723 if (!SWIG_IsOK(res1)) {
54724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_FindItem" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54725 }
54726 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54727 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
54728 if (!SWIG_IsOK(res2)) {
54729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_FindItem" "', expected argument " "2"" of type '" "wxSizer *""'");
54730 }
54731 arg2 = reinterpret_cast< wxSizer * >(argp2);
54732 {
54733 PyThreadState* __tstate = wxPyBeginAllowThreads();
54734 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
54735 wxPyEndAllowThreads(__tstate);
54736 if (PyErr_Occurred()) SWIG_fail;
54737 }
54738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
54739 return resultobj;
54740fail:
54741 return NULL;
d55e5bfc
RD
54742}
54743
54744
1bd55598
RD
54745SWIGINTERN PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) {
54746 int argc;
54747 PyObject *argv[3];
54748
54749 if (!(argc = SWIG_Python_UnpackTuple(args,"GridBagSizer_FindItem",0,2,argv))) SWIG_fail;
54750 --argc;
54751 if (argc == 2) {
54752 int _v = 0;
d55e5bfc 54753 {
1bd55598
RD
54754 void *vptr = 0;
54755 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxWindow, 0);
54756 _v = SWIG_CheckState(res);
d55e5bfc 54757 }
1bd55598
RD
54758 if (!_v) goto check_1;
54759 return _wrap_GridBagSizer_FindItem__SWIG_0(self, argc, argv);
54760 }
54761check_1:
54762
54763 if (argc == 2) {
54764 return _wrap_GridBagSizer_FindItem__SWIG_1(self, argc, argv);
54765 }
54766
54767fail:
54768 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_FindItem'");
54769 return NULL;
54770}
54771
54772
54773SWIGINTERN PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
54774 PyObject *resultobj = 0;
54775 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54776 wxGBPosition *arg2 = 0 ;
54777 wxGBSizerItem *result = 0 ;
54778 void *argp1 = 0 ;
54779 int res1 = 0 ;
54780 wxGBPosition temp2 ;
54781 PyObject * obj0 = 0 ;
54782 PyObject * obj1 = 0 ;
54783 char * kwnames[] = {
54784 (char *) "self",(char *) "pos", NULL
54785 };
54786
54787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) SWIG_fail;
54788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54789 if (!SWIG_IsOK(res1)) {
54790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_FindItemAtPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54791 }
54792 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54793 {
54794 arg2 = &temp2;
54795 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
54796 }
54797 {
54798 PyThreadState* __tstate = wxPyBeginAllowThreads();
54799 result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2);
54800 wxPyEndAllowThreads(__tstate);
54801 if (PyErr_Occurred()) SWIG_fail;
54802 }
54803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
54804 return resultobj;
54805fail:
54806 return NULL;
54807}
54808
54809
54810SWIGINTERN PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
54811 PyObject *resultobj = 0;
54812 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54813 wxPoint *arg2 = 0 ;
54814 wxGBSizerItem *result = 0 ;
54815 void *argp1 = 0 ;
54816 int res1 = 0 ;
54817 wxPoint temp2 ;
54818 PyObject * obj0 = 0 ;
54819 PyObject * obj1 = 0 ;
54820 char * kwnames[] = {
54821 (char *) "self",(char *) "pt", NULL
54822 };
54823
54824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) SWIG_fail;
54825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54826 if (!SWIG_IsOK(res1)) {
54827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_FindItemAtPoint" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54828 }
54829 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54830 {
54831 arg2 = &temp2;
54832 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
54833 }
54834 {
54835 PyThreadState* __tstate = wxPyBeginAllowThreads();
54836 result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2);
54837 wxPyEndAllowThreads(__tstate);
54838 if (PyErr_Occurred()) SWIG_fail;
54839 }
54840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
54841 return resultobj;
54842fail:
54843 return NULL;
54844}
54845
54846
54847SWIGINTERN PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
54848 PyObject *resultobj = 0;
54849 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54850 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
54851 wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ;
54852 bool result;
54853 void *argp1 = 0 ;
54854 int res1 = 0 ;
54855 void *argp2 = 0 ;
54856 int res2 = 0 ;
54857 void *argp3 = 0 ;
54858 int res3 = 0 ;
54859 PyObject * obj0 = 0 ;
54860 PyObject * obj1 = 0 ;
54861 PyObject * obj2 = 0 ;
54862 char * kwnames[] = {
54863 (char *) "self",(char *) "item",(char *) "excludeItem", NULL
54864 };
54865
54866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
54867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54868 if (!SWIG_IsOK(res1)) {
54869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_CheckForIntersection" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54870 }
54871 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54872 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
54873 if (!SWIG_IsOK(res2)) {
54874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_CheckForIntersection" "', expected argument " "2"" of type '" "wxGBSizerItem *""'");
54875 }
54876 arg2 = reinterpret_cast< wxGBSizerItem * >(argp2);
54877 if (obj2) {
54878 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
54879 if (!SWIG_IsOK(res3)) {
54880 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GridBagSizer_CheckForIntersection" "', expected argument " "3"" of type '" "wxGBSizerItem *""'");
d55e5bfc 54881 }
1bd55598
RD
54882 arg3 = reinterpret_cast< wxGBSizerItem * >(argp3);
54883 }
54884 {
54885 PyThreadState* __tstate = wxPyBeginAllowThreads();
54886 result = (bool)(arg1)->CheckForIntersection(arg2,arg3);
54887 wxPyEndAllowThreads(__tstate);
54888 if (PyErr_Occurred()) SWIG_fail;
54889 }
54890 {
54891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
54892 }
54893 return resultobj;
54894fail:
54895 return NULL;
54896}
54897
54898
54899SWIGINTERN PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
54900 PyObject *resultobj = 0;
54901 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54902 wxGBPosition *arg2 = 0 ;
54903 wxGBSpan *arg3 = 0 ;
54904 wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ;
54905 bool result;
54906 void *argp1 = 0 ;
54907 int res1 = 0 ;
54908 wxGBPosition temp2 ;
54909 wxGBSpan temp3 ;
54910 void *argp4 = 0 ;
54911 int res4 = 0 ;
54912 PyObject * obj0 = 0 ;
54913 PyObject * obj1 = 0 ;
54914 PyObject * obj2 = 0 ;
54915 PyObject * obj3 = 0 ;
54916 char * kwnames[] = {
54917 (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL
54918 };
54919
54920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
54921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54922 if (!SWIG_IsOK(res1)) {
54923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_CheckForIntersectionPos" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54924 }
54925 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54926 {
54927 arg2 = &temp2;
54928 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
54929 }
54930 {
54931 arg3 = &temp3;
54932 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
54933 }
54934 if (obj3) {
54935 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
54936 if (!SWIG_IsOK(res4)) {
54937 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GridBagSizer_CheckForIntersectionPos" "', expected argument " "4"" of type '" "wxGBSizerItem *""'");
54938 }
54939 arg4 = reinterpret_cast< wxGBSizerItem * >(argp4);
54940 }
54941 {
54942 PyThreadState* __tstate = wxPyBeginAllowThreads();
54943 result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4);
54944 wxPyEndAllowThreads(__tstate);
54945 if (PyErr_Occurred()) SWIG_fail;
54946 }
54947 {
54948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
54949 }
54950 return resultobj;
54951fail:
54952 return NULL;
54953}
54954
54955
54956SWIGINTERN PyObject *GridBagSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54957 PyObject *obj;
54958 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
54959 SWIG_TypeNewClientData(SWIGTYPE_p_wxGridBagSizer, SWIG_NewClientData(obj));
54960 return SWIG_Py_Void();
54961}
54962
54963SWIGINTERN PyObject *GridBagSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54964 return SWIG_Python_InitShadowInstance(args);
54965}
54966
54967SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
54968 PyObject *resultobj = 0;
54969 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
54970 wxRelationship arg2 ;
54971 wxWindow *arg3 = (wxWindow *) 0 ;
54972 wxEdge arg4 ;
54973 int arg5 = (int) 0 ;
54974 int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ;
54975 void *argp1 = 0 ;
54976 int res1 = 0 ;
54977 int val2 ;
54978 int ecode2 = 0 ;
54979 void *argp3 = 0 ;
54980 int res3 = 0 ;
54981 int val4 ;
54982 int ecode4 = 0 ;
54983 int val5 ;
54984 int ecode5 = 0 ;
54985 int val6 ;
54986 int ecode6 = 0 ;
54987 PyObject * obj0 = 0 ;
54988 PyObject * obj1 = 0 ;
54989 PyObject * obj2 = 0 ;
54990 PyObject * obj3 = 0 ;
54991 PyObject * obj4 = 0 ;
54992 PyObject * obj5 = 0 ;
54993 char * kwnames[] = {
54994 (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL
54995 };
54996
54997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
54998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
54999 if (!SWIG_IsOK(res1)) {
55000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55001 }
55002 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55003 ecode2 = SWIG_AsVal_int(obj1, &val2);
55004 if (!SWIG_IsOK(ecode2)) {
55005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "2"" of type '" "wxRelationship""'");
55006 }
55007 arg2 = static_cast< wxRelationship >(val2);
55008 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
55009 if (!SWIG_IsOK(res3)) {
55010 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "3"" of type '" "wxWindow *""'");
55011 }
55012 arg3 = reinterpret_cast< wxWindow * >(argp3);
55013 ecode4 = SWIG_AsVal_int(obj3, &val4);
55014 if (!SWIG_IsOK(ecode4)) {
55015 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "4"" of type '" "wxEdge""'");
55016 }
55017 arg4 = static_cast< wxEdge >(val4);
55018 if (obj4) {
55019 ecode5 = SWIG_AsVal_int(obj4, &val5);
55020 if (!SWIG_IsOK(ecode5)) {
55021 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "5"" of type '" "int""'");
55022 }
55023 arg5 = static_cast< int >(val5);
55024 }
55025 if (obj5) {
55026 ecode6 = SWIG_AsVal_int(obj5, &val6);
55027 if (!SWIG_IsOK(ecode6)) {
55028 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "6"" of type '" "int""'");
55029 }
55030 arg6 = static_cast< int >(val6);
55031 }
55032 {
55033 PyThreadState* __tstate = wxPyBeginAllowThreads();
55034 (arg1)->Set(arg2,arg3,arg4,arg5,arg6);
55035 wxPyEndAllowThreads(__tstate);
55036 if (PyErr_Occurred()) SWIG_fail;
55037 }
55038 resultobj = SWIG_Py_Void();
55039 return resultobj;
55040fail:
55041 return NULL;
55042}
55043
55044
55045SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55046 PyObject *resultobj = 0;
55047 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55048 wxWindow *arg2 = (wxWindow *) 0 ;
55049 int arg3 = (int) 0 ;
55050 void *argp1 = 0 ;
55051 int res1 = 0 ;
55052 void *argp2 = 0 ;
55053 int res2 = 0 ;
55054 int val3 ;
55055 int ecode3 = 0 ;
55056 PyObject * obj0 = 0 ;
55057 PyObject * obj1 = 0 ;
55058 PyObject * obj2 = 0 ;
55059 char * kwnames[] = {
55060 (char *) "self",(char *) "sibling",(char *) "marg", NULL
55061 };
55062
55063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
55064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55065 if (!SWIG_IsOK(res1)) {
55066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_LeftOf" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55067 }
55068 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55069 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
55070 if (!SWIG_IsOK(res2)) {
55071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_LeftOf" "', expected argument " "2"" of type '" "wxWindow *""'");
55072 }
55073 arg2 = reinterpret_cast< wxWindow * >(argp2);
55074 if (obj2) {
55075 ecode3 = SWIG_AsVal_int(obj2, &val3);
55076 if (!SWIG_IsOK(ecode3)) {
55077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IndividualLayoutConstraint_LeftOf" "', expected argument " "3"" of type '" "int""'");
55078 }
55079 arg3 = static_cast< int >(val3);
55080 }
55081 {
55082 PyThreadState* __tstate = wxPyBeginAllowThreads();
55083 (arg1)->LeftOf(arg2,arg3);
55084 wxPyEndAllowThreads(__tstate);
55085 if (PyErr_Occurred()) SWIG_fail;
55086 }
55087 resultobj = SWIG_Py_Void();
55088 return resultobj;
55089fail:
55090 return NULL;
55091}
55092
55093
55094SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55095 PyObject *resultobj = 0;
55096 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55097 wxWindow *arg2 = (wxWindow *) 0 ;
55098 int arg3 = (int) 0 ;
55099 void *argp1 = 0 ;
55100 int res1 = 0 ;
55101 void *argp2 = 0 ;
55102 int res2 = 0 ;
55103 int val3 ;
55104 int ecode3 = 0 ;
55105 PyObject * obj0 = 0 ;
55106 PyObject * obj1 = 0 ;
55107 PyObject * obj2 = 0 ;
55108 char * kwnames[] = {
55109 (char *) "self",(char *) "sibling",(char *) "marg", NULL
55110 };
55111
55112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
55113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55114 if (!SWIG_IsOK(res1)) {
55115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_RightOf" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55116 }
55117 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55118 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
55119 if (!SWIG_IsOK(res2)) {
55120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_RightOf" "', expected argument " "2"" of type '" "wxWindow *""'");
55121 }
55122 arg2 = reinterpret_cast< wxWindow * >(argp2);
55123 if (obj2) {
55124 ecode3 = SWIG_AsVal_int(obj2, &val3);
55125 if (!SWIG_IsOK(ecode3)) {
55126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IndividualLayoutConstraint_RightOf" "', expected argument " "3"" of type '" "int""'");
55127 }
55128 arg3 = static_cast< int >(val3);
55129 }
55130 {
55131 PyThreadState* __tstate = wxPyBeginAllowThreads();
55132 (arg1)->RightOf(arg2,arg3);
55133 wxPyEndAllowThreads(__tstate);
55134 if (PyErr_Occurred()) SWIG_fail;
55135 }
55136 resultobj = SWIG_Py_Void();
55137 return resultobj;
55138fail:
55139 return NULL;
55140}
55141
55142
55143SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55144 PyObject *resultobj = 0;
55145 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55146 wxWindow *arg2 = (wxWindow *) 0 ;
55147 int arg3 = (int) 0 ;
55148 void *argp1 = 0 ;
55149 int res1 = 0 ;
55150 void *argp2 = 0 ;
55151 int res2 = 0 ;
55152 int val3 ;
55153 int ecode3 = 0 ;
55154 PyObject * obj0 = 0 ;
55155 PyObject * obj1 = 0 ;
55156 PyObject * obj2 = 0 ;
55157 char * kwnames[] = {
55158 (char *) "self",(char *) "sibling",(char *) "marg", NULL
55159 };
55160
55161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
55162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55163 if (!SWIG_IsOK(res1)) {
55164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_Above" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55165 }
55166 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55167 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
55168 if (!SWIG_IsOK(res2)) {
55169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_Above" "', expected argument " "2"" of type '" "wxWindow *""'");
55170 }
55171 arg2 = reinterpret_cast< wxWindow * >(argp2);
55172 if (obj2) {
55173 ecode3 = SWIG_AsVal_int(obj2, &val3);
55174 if (!SWIG_IsOK(ecode3)) {
55175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IndividualLayoutConstraint_Above" "', expected argument " "3"" of type '" "int""'");
55176 }
55177 arg3 = static_cast< int >(val3);
55178 }
55179 {
55180 PyThreadState* __tstate = wxPyBeginAllowThreads();
55181 (arg1)->Above(arg2,arg3);
55182 wxPyEndAllowThreads(__tstate);
55183 if (PyErr_Occurred()) SWIG_fail;
55184 }
55185 resultobj = SWIG_Py_Void();
55186 return resultobj;
55187fail:
55188 return NULL;
55189}
55190
55191
55192SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55193 PyObject *resultobj = 0;
55194 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55195 wxWindow *arg2 = (wxWindow *) 0 ;
55196 int arg3 = (int) 0 ;
55197 void *argp1 = 0 ;
55198 int res1 = 0 ;
55199 void *argp2 = 0 ;
55200 int res2 = 0 ;
55201 int val3 ;
55202 int ecode3 = 0 ;
55203 PyObject * obj0 = 0 ;
55204 PyObject * obj1 = 0 ;
55205 PyObject * obj2 = 0 ;
55206 char * kwnames[] = {
55207 (char *) "self",(char *) "sibling",(char *) "marg", NULL
55208 };
55209
55210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
55211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55212 if (!SWIG_IsOK(res1)) {
55213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_Below" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55214 }
55215 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55216 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
55217 if (!SWIG_IsOK(res2)) {
55218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_Below" "', expected argument " "2"" of type '" "wxWindow *""'");
55219 }
55220 arg2 = reinterpret_cast< wxWindow * >(argp2);
55221 if (obj2) {
55222 ecode3 = SWIG_AsVal_int(obj2, &val3);
55223 if (!SWIG_IsOK(ecode3)) {
55224 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IndividualLayoutConstraint_Below" "', expected argument " "3"" of type '" "int""'");
55225 }
55226 arg3 = static_cast< int >(val3);
55227 }
55228 {
55229 PyThreadState* __tstate = wxPyBeginAllowThreads();
55230 (arg1)->Below(arg2,arg3);
55231 wxPyEndAllowThreads(__tstate);
55232 if (PyErr_Occurred()) SWIG_fail;
55233 }
55234 resultobj = SWIG_Py_Void();
55235 return resultobj;
55236fail:
55237 return NULL;
55238}
55239
55240
55241SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55242 PyObject *resultobj = 0;
55243 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55244 wxWindow *arg2 = (wxWindow *) 0 ;
55245 wxEdge arg3 ;
55246 int arg4 = (int) 0 ;
55247 void *argp1 = 0 ;
55248 int res1 = 0 ;
55249 void *argp2 = 0 ;
55250 int res2 = 0 ;
55251 int val3 ;
55252 int ecode3 = 0 ;
55253 int val4 ;
55254 int ecode4 = 0 ;
55255 PyObject * obj0 = 0 ;
55256 PyObject * obj1 = 0 ;
55257 PyObject * obj2 = 0 ;
55258 PyObject * obj3 = 0 ;
55259 char * kwnames[] = {
55260 (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL
55261 };
55262
55263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
55264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55265 if (!SWIG_IsOK(res1)) {
55266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SameAs" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55267 }
55268 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55269 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
55270 if (!SWIG_IsOK(res2)) {
55271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_SameAs" "', expected argument " "2"" of type '" "wxWindow *""'");
55272 }
55273 arg2 = reinterpret_cast< wxWindow * >(argp2);
55274 ecode3 = SWIG_AsVal_int(obj2, &val3);
55275 if (!SWIG_IsOK(ecode3)) {
55276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IndividualLayoutConstraint_SameAs" "', expected argument " "3"" of type '" "wxEdge""'");
55277 }
55278 arg3 = static_cast< wxEdge >(val3);
55279 if (obj3) {
55280 ecode4 = SWIG_AsVal_int(obj3, &val4);
55281 if (!SWIG_IsOK(ecode4)) {
55282 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IndividualLayoutConstraint_SameAs" "', expected argument " "4"" of type '" "int""'");
55283 }
55284 arg4 = static_cast< int >(val4);
55285 }
55286 {
55287 PyThreadState* __tstate = wxPyBeginAllowThreads();
55288 (arg1)->SameAs(arg2,arg3,arg4);
55289 wxPyEndAllowThreads(__tstate);
55290 if (PyErr_Occurred()) SWIG_fail;
55291 }
55292 resultobj = SWIG_Py_Void();
55293 return resultobj;
55294fail:
55295 return NULL;
55296}
55297
55298
55299SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55300 PyObject *resultobj = 0;
55301 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55302 wxWindow *arg2 = (wxWindow *) 0 ;
55303 wxEdge arg3 ;
55304 int arg4 ;
55305 void *argp1 = 0 ;
55306 int res1 = 0 ;
55307 void *argp2 = 0 ;
55308 int res2 = 0 ;
55309 int val3 ;
55310 int ecode3 = 0 ;
55311 int val4 ;
55312 int ecode4 = 0 ;
55313 PyObject * obj0 = 0 ;
55314 PyObject * obj1 = 0 ;
55315 PyObject * obj2 = 0 ;
55316 PyObject * obj3 = 0 ;
55317 char * kwnames[] = {
55318 (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL
55319 };
55320
55321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
55322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55323 if (!SWIG_IsOK(res1)) {
55324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_PercentOf" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55325 }
55326 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55327 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
55328 if (!SWIG_IsOK(res2)) {
55329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_PercentOf" "', expected argument " "2"" of type '" "wxWindow *""'");
55330 }
55331 arg2 = reinterpret_cast< wxWindow * >(argp2);
55332 ecode3 = SWIG_AsVal_int(obj2, &val3);
55333 if (!SWIG_IsOK(ecode3)) {
55334 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IndividualLayoutConstraint_PercentOf" "', expected argument " "3"" of type '" "wxEdge""'");
55335 }
55336 arg3 = static_cast< wxEdge >(val3);
55337 ecode4 = SWIG_AsVal_int(obj3, &val4);
55338 if (!SWIG_IsOK(ecode4)) {
55339 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IndividualLayoutConstraint_PercentOf" "', expected argument " "4"" of type '" "int""'");
55340 }
55341 arg4 = static_cast< int >(val4);
55342 {
55343 PyThreadState* __tstate = wxPyBeginAllowThreads();
55344 (arg1)->PercentOf(arg2,arg3,arg4);
55345 wxPyEndAllowThreads(__tstate);
55346 if (PyErr_Occurred()) SWIG_fail;
55347 }
55348 resultobj = SWIG_Py_Void();
55349 return resultobj;
55350fail:
55351 return NULL;
55352}
55353
55354
55355SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55356 PyObject *resultobj = 0;
55357 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55358 int arg2 ;
55359 void *argp1 = 0 ;
55360 int res1 = 0 ;
55361 int val2 ;
55362 int ecode2 = 0 ;
55363 PyObject * obj0 = 0 ;
55364 PyObject * obj1 = 0 ;
55365 char * kwnames[] = {
55366 (char *) "self",(char *) "val", NULL
55367 };
55368
55369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) SWIG_fail;
55370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55371 if (!SWIG_IsOK(res1)) {
55372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_Absolute" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55373 }
55374 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55375 ecode2 = SWIG_AsVal_int(obj1, &val2);
55376 if (!SWIG_IsOK(ecode2)) {
55377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_Absolute" "', expected argument " "2"" of type '" "int""'");
55378 }
55379 arg2 = static_cast< int >(val2);
55380 {
55381 PyThreadState* __tstate = wxPyBeginAllowThreads();
55382 (arg1)->Absolute(arg2);
55383 wxPyEndAllowThreads(__tstate);
55384 if (PyErr_Occurred()) SWIG_fail;
55385 }
55386 resultobj = SWIG_Py_Void();
55387 return resultobj;
55388fail:
55389 return NULL;
55390}
d55e5bfc
RD
55391
55392
1bd55598
RD
55393SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55394 PyObject *resultobj = 0;
55395 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55396 void *argp1 = 0 ;
55397 int res1 = 0 ;
55398 PyObject *swig_obj[1] ;
55399
55400 if (!args) SWIG_fail;
55401 swig_obj[0] = args;
55402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55403 if (!SWIG_IsOK(res1)) {
55404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_Unconstrained" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55405 }
55406 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55407 {
55408 PyThreadState* __tstate = wxPyBeginAllowThreads();
55409 (arg1)->Unconstrained();
55410 wxPyEndAllowThreads(__tstate);
55411 if (PyErr_Occurred()) SWIG_fail;
55412 }
55413 resultobj = SWIG_Py_Void();
55414 return resultobj;
55415fail:
55416 return NULL;
d55e5bfc
RD
55417}
55418
55419
1bd55598
RD
55420SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55421 PyObject *resultobj = 0;
55422 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55423 void *argp1 = 0 ;
55424 int res1 = 0 ;
55425 PyObject *swig_obj[1] ;
55426
55427 if (!args) SWIG_fail;
55428 swig_obj[0] = args;
55429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55430 if (!SWIG_IsOK(res1)) {
55431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_AsIs" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55432 }
55433 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55434 {
55435 PyThreadState* __tstate = wxPyBeginAllowThreads();
55436 (arg1)->AsIs();
55437 wxPyEndAllowThreads(__tstate);
55438 if (PyErr_Occurred()) SWIG_fail;
55439 }
55440 resultobj = SWIG_Py_Void();
55441 return resultobj;
55442fail:
55443 return NULL;
d55e5bfc
RD
55444}
55445
55446
1bd55598
RD
55447SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55448 PyObject *resultobj = 0;
55449 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55450 wxWindow *result = 0 ;
55451 void *argp1 = 0 ;
55452 int res1 = 0 ;
55453 PyObject *swig_obj[1] ;
55454
55455 if (!args) SWIG_fail;
55456 swig_obj[0] = args;
55457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55458 if (!SWIG_IsOK(res1)) {
55459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetOtherWindow" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55460 }
55461 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55462 {
55463 PyThreadState* __tstate = wxPyBeginAllowThreads();
55464 result = (wxWindow *)(arg1)->GetOtherWindow();
55465 wxPyEndAllowThreads(__tstate);
55466 if (PyErr_Occurred()) SWIG_fail;
55467 }
55468 {
55469 resultobj = wxPyMake_wxObject(result, 0);
55470 }
55471 return resultobj;
55472fail:
55473 return NULL;
d55e5bfc
RD
55474}
55475
55476
1bd55598
RD
55477SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55478 PyObject *resultobj = 0;
55479 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55480 wxEdge result;
55481 void *argp1 = 0 ;
55482 int res1 = 0 ;
55483 PyObject *swig_obj[1] ;
55484
55485 if (!args) SWIG_fail;
55486 swig_obj[0] = args;
55487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55488 if (!SWIG_IsOK(res1)) {
55489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetMyEdge" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
55490 }
55491 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55492 {
55493 PyThreadState* __tstate = wxPyBeginAllowThreads();
55494 result = (wxEdge)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge();
55495 wxPyEndAllowThreads(__tstate);
55496 if (PyErr_Occurred()) SWIG_fail;
55497 }
55498 resultobj = SWIG_From_int(static_cast< int >(result));
55499 return resultobj;
55500fail:
55501 return NULL;
55502}
55503
55504
55505SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55506 PyObject *resultobj = 0;
55507 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55508 wxEdge arg2 ;
55509 void *argp1 = 0 ;
55510 int res1 = 0 ;
55511 int val2 ;
55512 int ecode2 = 0 ;
55513 PyObject * obj0 = 0 ;
55514 PyObject * obj1 = 0 ;
55515 char * kwnames[] = {
55516 (char *) "self",(char *) "which", NULL
55517 };
55518
55519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) SWIG_fail;
55520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55521 if (!SWIG_IsOK(res1)) {
55522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SetEdge" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55523 }
55524 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55525 ecode2 = SWIG_AsVal_int(obj1, &val2);
55526 if (!SWIG_IsOK(ecode2)) {
55527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_SetEdge" "', expected argument " "2"" of type '" "wxEdge""'");
55528 }
55529 arg2 = static_cast< wxEdge >(val2);
55530 {
55531 PyThreadState* __tstate = wxPyBeginAllowThreads();
55532 (arg1)->SetEdge(arg2);
55533 wxPyEndAllowThreads(__tstate);
55534 if (PyErr_Occurred()) SWIG_fail;
55535 }
55536 resultobj = SWIG_Py_Void();
55537 return resultobj;
55538fail:
55539 return NULL;
55540}
55541
55542
55543SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55544 PyObject *resultobj = 0;
55545 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55546 int arg2 ;
55547 void *argp1 = 0 ;
55548 int res1 = 0 ;
55549 int val2 ;
55550 int ecode2 = 0 ;
55551 PyObject * obj0 = 0 ;
55552 PyObject * obj1 = 0 ;
55553 char * kwnames[] = {
55554 (char *) "self",(char *) "v", NULL
55555 };
55556
55557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
55558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55559 if (!SWIG_IsOK(res1)) {
55560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SetValue" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55561 }
55562 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55563 ecode2 = SWIG_AsVal_int(obj1, &val2);
55564 if (!SWIG_IsOK(ecode2)) {
55565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_SetValue" "', expected argument " "2"" of type '" "int""'");
55566 }
55567 arg2 = static_cast< int >(val2);
55568 {
55569 PyThreadState* __tstate = wxPyBeginAllowThreads();
55570 (arg1)->SetValue(arg2);
55571 wxPyEndAllowThreads(__tstate);
55572 if (PyErr_Occurred()) SWIG_fail;
55573 }
55574 resultobj = SWIG_Py_Void();
55575 return resultobj;
55576fail:
55577 return NULL;
d55e5bfc
RD
55578}
55579
55580
1bd55598
RD
55581SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55582 PyObject *resultobj = 0;
55583 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55584 int result;
55585 void *argp1 = 0 ;
55586 int res1 = 0 ;
55587 PyObject *swig_obj[1] ;
55588
55589 if (!args) SWIG_fail;
55590 swig_obj[0] = args;
55591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55592 if (!SWIG_IsOK(res1)) {
55593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetMargin" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55594 }
55595 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55596 {
55597 PyThreadState* __tstate = wxPyBeginAllowThreads();
55598 result = (int)(arg1)->GetMargin();
55599 wxPyEndAllowThreads(__tstate);
55600 if (PyErr_Occurred()) SWIG_fail;
55601 }
55602 resultobj = SWIG_From_int(static_cast< int >(result));
55603 return resultobj;
55604fail:
55605 return NULL;
55606}
55607
55608
55609SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55610 PyObject *resultobj = 0;
55611 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55612 int arg2 ;
55613 void *argp1 = 0 ;
55614 int res1 = 0 ;
55615 int val2 ;
55616 int ecode2 = 0 ;
55617 PyObject * obj0 = 0 ;
55618 PyObject * obj1 = 0 ;
55619 char * kwnames[] = {
55620 (char *) "self",(char *) "m", NULL
55621 };
55622
55623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) SWIG_fail;
55624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55625 if (!SWIG_IsOK(res1)) {
55626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SetMargin" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55627 }
55628 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55629 ecode2 = SWIG_AsVal_int(obj1, &val2);
55630 if (!SWIG_IsOK(ecode2)) {
55631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_SetMargin" "', expected argument " "2"" of type '" "int""'");
55632 }
55633 arg2 = static_cast< int >(val2);
55634 {
55635 PyThreadState* __tstate = wxPyBeginAllowThreads();
55636 (arg1)->SetMargin(arg2);
55637 wxPyEndAllowThreads(__tstate);
55638 if (PyErr_Occurred()) SWIG_fail;
55639 }
55640 resultobj = SWIG_Py_Void();
55641 return resultobj;
55642fail:
55643 return NULL;
d55e5bfc
RD
55644}
55645
55646
1bd55598
RD
55647SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55648 PyObject *resultobj = 0;
55649 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55650 int result;
55651 void *argp1 = 0 ;
55652 int res1 = 0 ;
55653 PyObject *swig_obj[1] ;
55654
55655 if (!args) SWIG_fail;
55656 swig_obj[0] = args;
55657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55658 if (!SWIG_IsOK(res1)) {
55659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetValue" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
55660 }
55661 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55662 {
55663 PyThreadState* __tstate = wxPyBeginAllowThreads();
55664 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue();
55665 wxPyEndAllowThreads(__tstate);
55666 if (PyErr_Occurred()) SWIG_fail;
55667 }
55668 resultobj = SWIG_From_int(static_cast< int >(result));
55669 return resultobj;
55670fail:
55671 return NULL;
d55e5bfc
RD
55672}
55673
55674
1bd55598
RD
55675SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55676 PyObject *resultobj = 0;
55677 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55678 int result;
55679 void *argp1 = 0 ;
55680 int res1 = 0 ;
55681 PyObject *swig_obj[1] ;
55682
55683 if (!args) SWIG_fail;
55684 swig_obj[0] = args;
55685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55686 if (!SWIG_IsOK(res1)) {
55687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetPercent" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
55688 }
55689 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55690 {
55691 PyThreadState* __tstate = wxPyBeginAllowThreads();
55692 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent();
55693 wxPyEndAllowThreads(__tstate);
55694 if (PyErr_Occurred()) SWIG_fail;
55695 }
55696 resultobj = SWIG_From_int(static_cast< int >(result));
55697 return resultobj;
55698fail:
55699 return NULL;
d55e5bfc
RD
55700}
55701
55702
1bd55598
RD
55703SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55704 PyObject *resultobj = 0;
55705 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55706 int result;
55707 void *argp1 = 0 ;
55708 int res1 = 0 ;
55709 PyObject *swig_obj[1] ;
55710
55711 if (!args) SWIG_fail;
55712 swig_obj[0] = args;
55713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55714 if (!SWIG_IsOK(res1)) {
55715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetOtherEdge" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
55716 }
55717 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55718 {
55719 PyThreadState* __tstate = wxPyBeginAllowThreads();
55720 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge();
55721 wxPyEndAllowThreads(__tstate);
55722 if (PyErr_Occurred()) SWIG_fail;
55723 }
55724 resultobj = SWIG_From_int(static_cast< int >(result));
55725 return resultobj;
55726fail:
55727 return NULL;
d55e5bfc
RD
55728}
55729
55730
1bd55598
RD
55731SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55732 PyObject *resultobj = 0;
55733 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55734 bool result;
55735 void *argp1 = 0 ;
55736 int res1 = 0 ;
55737 PyObject *swig_obj[1] ;
55738
55739 if (!args) SWIG_fail;
55740 swig_obj[0] = args;
55741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55742 if (!SWIG_IsOK(res1)) {
55743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetDone" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
55744 }
55745 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55746 {
55747 PyThreadState* __tstate = wxPyBeginAllowThreads();
55748 result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone();
55749 wxPyEndAllowThreads(__tstate);
55750 if (PyErr_Occurred()) SWIG_fail;
55751 }
55752 {
55753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
55754 }
55755 return resultobj;
55756fail:
55757 return NULL;
55758}
55759
55760
55761SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55762 PyObject *resultobj = 0;
55763 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55764 bool arg2 ;
55765 void *argp1 = 0 ;
55766 int res1 = 0 ;
55767 bool val2 ;
55768 int ecode2 = 0 ;
55769 PyObject * obj0 = 0 ;
55770 PyObject * obj1 = 0 ;
55771 char * kwnames[] = {
55772 (char *) "self",(char *) "d", NULL
55773 };
55774
55775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) SWIG_fail;
55776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55777 if (!SWIG_IsOK(res1)) {
55778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SetDone" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55779 }
55780 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55781 ecode2 = SWIG_AsVal_bool(obj1, &val2);
55782 if (!SWIG_IsOK(ecode2)) {
55783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_SetDone" "', expected argument " "2"" of type '" "bool""'");
55784 }
55785 arg2 = static_cast< bool >(val2);
55786 {
55787 PyThreadState* __tstate = wxPyBeginAllowThreads();
55788 (arg1)->SetDone(arg2);
55789 wxPyEndAllowThreads(__tstate);
55790 if (PyErr_Occurred()) SWIG_fail;
55791 }
55792 resultobj = SWIG_Py_Void();
55793 return resultobj;
55794fail:
55795 return NULL;
d55e5bfc
RD
55796}
55797
55798
1bd55598
RD
55799SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55800 PyObject *resultobj = 0;
55801 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55802 wxRelationship result;
55803 void *argp1 = 0 ;
55804 int res1 = 0 ;
55805 PyObject *swig_obj[1] ;
55806
55807 if (!args) SWIG_fail;
55808 swig_obj[0] = args;
55809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55810 if (!SWIG_IsOK(res1)) {
55811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetRelationship" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55812 }
55813 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55814 {
55815 PyThreadState* __tstate = wxPyBeginAllowThreads();
55816 result = (wxRelationship)(arg1)->GetRelationship();
55817 wxPyEndAllowThreads(__tstate);
55818 if (PyErr_Occurred()) SWIG_fail;
55819 }
55820 resultobj = SWIG_From_int(static_cast< int >(result));
55821 return resultobj;
55822fail:
55823 return NULL;
55824}
55825
55826
55827SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55828 PyObject *resultobj = 0;
55829 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55830 wxRelationship arg2 ;
55831 void *argp1 = 0 ;
55832 int res1 = 0 ;
55833 int val2 ;
55834 int ecode2 = 0 ;
55835 PyObject * obj0 = 0 ;
55836 PyObject * obj1 = 0 ;
55837 char * kwnames[] = {
55838 (char *) "self",(char *) "r", NULL
55839 };
55840
55841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) SWIG_fail;
55842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55843 if (!SWIG_IsOK(res1)) {
55844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SetRelationship" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55845 }
55846 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55847 ecode2 = SWIG_AsVal_int(obj1, &val2);
55848 if (!SWIG_IsOK(ecode2)) {
55849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_SetRelationship" "', expected argument " "2"" of type '" "wxRelationship""'");
55850 }
55851 arg2 = static_cast< wxRelationship >(val2);
55852 {
55853 PyThreadState* __tstate = wxPyBeginAllowThreads();
55854 (arg1)->SetRelationship(arg2);
55855 wxPyEndAllowThreads(__tstate);
55856 if (PyErr_Occurred()) SWIG_fail;
55857 }
55858 resultobj = SWIG_Py_Void();
55859 return resultobj;
55860fail:
55861 return NULL;
55862}
55863
55864
55865SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55866 PyObject *resultobj = 0;
55867 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55868 wxWindow *arg2 = (wxWindow *) 0 ;
55869 bool result;
55870 void *argp1 = 0 ;
55871 int res1 = 0 ;
55872 void *argp2 = 0 ;
55873 int res2 = 0 ;
55874 PyObject * obj0 = 0 ;
55875 PyObject * obj1 = 0 ;
55876 char * kwnames[] = {
55877 (char *) "self",(char *) "otherW", NULL
55878 };
55879
55880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) SWIG_fail;
55881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55882 if (!SWIG_IsOK(res1)) {
55883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_ResetIfWin" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55884 }
55885 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55886 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
55887 if (!SWIG_IsOK(res2)) {
55888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_ResetIfWin" "', expected argument " "2"" of type '" "wxWindow *""'");
55889 }
55890 arg2 = reinterpret_cast< wxWindow * >(argp2);
55891 {
55892 PyThreadState* __tstate = wxPyBeginAllowThreads();
55893 result = (bool)(arg1)->ResetIfWin(arg2);
55894 wxPyEndAllowThreads(__tstate);
55895 if (PyErr_Occurred()) SWIG_fail;
55896 }
55897 {
55898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
55899 }
55900 return resultobj;
55901fail:
55902 return NULL;
55903}
55904
55905
55906SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55907 PyObject *resultobj = 0;
55908 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55909 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
55910 wxWindow *arg3 = (wxWindow *) 0 ;
55911 bool result;
55912 void *argp1 = 0 ;
55913 int res1 = 0 ;
55914 void *argp2 = 0 ;
55915 int res2 = 0 ;
55916 void *argp3 = 0 ;
55917 int res3 = 0 ;
55918 PyObject * obj0 = 0 ;
55919 PyObject * obj1 = 0 ;
55920 PyObject * obj2 = 0 ;
55921 char * kwnames[] = {
55922 (char *) "self",(char *) "constraints",(char *) "win", NULL
55923 };
55924
55925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
55926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55927 if (!SWIG_IsOK(res1)) {
55928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SatisfyConstraint" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55929 }
55930 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55931 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
55932 if (!SWIG_IsOK(res2)) {
55933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_SatisfyConstraint" "', expected argument " "2"" of type '" "wxLayoutConstraints *""'");
55934 }
55935 arg2 = reinterpret_cast< wxLayoutConstraints * >(argp2);
55936 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
55937 if (!SWIG_IsOK(res3)) {
55938 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IndividualLayoutConstraint_SatisfyConstraint" "', expected argument " "3"" of type '" "wxWindow *""'");
55939 }
55940 arg3 = reinterpret_cast< wxWindow * >(argp3);
55941 {
55942 PyThreadState* __tstate = wxPyBeginAllowThreads();
55943 result = (bool)(arg1)->SatisfyConstraint(arg2,arg3);
55944 wxPyEndAllowThreads(__tstate);
55945 if (PyErr_Occurred()) SWIG_fail;
55946 }
55947 {
55948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
55949 }
55950 return resultobj;
55951fail:
55952 return NULL;
55953}
55954
55955
55956SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55957 PyObject *resultobj = 0;
55958 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55959 wxEdge arg2 ;
55960 wxWindow *arg3 = (wxWindow *) 0 ;
55961 wxWindow *arg4 = (wxWindow *) 0 ;
55962 int result;
55963 void *argp1 = 0 ;
55964 int res1 = 0 ;
55965 int val2 ;
55966 int ecode2 = 0 ;
55967 void *argp3 = 0 ;
55968 int res3 = 0 ;
55969 void *argp4 = 0 ;
55970 int res4 = 0 ;
55971 PyObject * obj0 = 0 ;
55972 PyObject * obj1 = 0 ;
55973 PyObject * obj2 = 0 ;
55974 PyObject * obj3 = 0 ;
55975 char * kwnames[] = {
55976 (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL
55977 };
55978
55979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
55980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55981 if (!SWIG_IsOK(res1)) {
55982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetEdge" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
55983 }
55984 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55985 ecode2 = SWIG_AsVal_int(obj1, &val2);
55986 if (!SWIG_IsOK(ecode2)) {
55987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_GetEdge" "', expected argument " "2"" of type '" "wxEdge""'");
55988 }
55989 arg2 = static_cast< wxEdge >(val2);
55990 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
55991 if (!SWIG_IsOK(res3)) {
55992 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IndividualLayoutConstraint_GetEdge" "', expected argument " "3"" of type '" "wxWindow *""'");
55993 }
55994 arg3 = reinterpret_cast< wxWindow * >(argp3);
55995 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
55996 if (!SWIG_IsOK(res4)) {
55997 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IndividualLayoutConstraint_GetEdge" "', expected argument " "4"" of type '" "wxWindow *""'");
55998 }
55999 arg4 = reinterpret_cast< wxWindow * >(argp4);
56000 {
56001 PyThreadState* __tstate = wxPyBeginAllowThreads();
56002 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge(arg2,arg3,arg4);
56003 wxPyEndAllowThreads(__tstate);
56004 if (PyErr_Occurred()) SWIG_fail;
56005 }
56006 resultobj = SWIG_From_int(static_cast< int >(result));
56007 return resultobj;
56008fail:
56009 return NULL;
d55e5bfc
RD
56010}
56011
56012
1bd55598
RD
56013SWIGINTERN PyObject *IndividualLayoutConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56014 PyObject *obj;
56015 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
56016 SWIG_TypeNewClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_NewClientData(obj));
56017 return SWIG_Py_Void();
d55e5bfc
RD
56018}
56019
1bd55598
RD
56020SWIGINTERN PyObject *_wrap_LayoutConstraints_left_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56021 PyObject *resultobj = 0;
56022 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56023 wxIndividualLayoutConstraint *result = 0 ;
56024 void *argp1 = 0 ;
56025 int res1 = 0 ;
56026 PyObject *swig_obj[1] ;
56027
56028 if (!args) SWIG_fail;
56029 swig_obj[0] = args;
56030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56031 if (!SWIG_IsOK(res1)) {
56032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_left_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56033 }
56034 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56035 result = (wxIndividualLayoutConstraint *)& ((arg1)->left);
56036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56037 return resultobj;
56038fail:
56039 return NULL;
56040}
56041
56042
56043SWIGINTERN PyObject *_wrap_LayoutConstraints_top_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56044 PyObject *resultobj = 0;
56045 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56046 wxIndividualLayoutConstraint *result = 0 ;
56047 void *argp1 = 0 ;
56048 int res1 = 0 ;
56049 PyObject *swig_obj[1] ;
56050
56051 if (!args) SWIG_fail;
56052 swig_obj[0] = args;
56053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56054 if (!SWIG_IsOK(res1)) {
56055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_top_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56056 }
56057 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56058 result = (wxIndividualLayoutConstraint *)& ((arg1)->top);
56059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56060 return resultobj;
56061fail:
56062 return NULL;
56063}
56064
56065
56066SWIGINTERN PyObject *_wrap_LayoutConstraints_right_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56067 PyObject *resultobj = 0;
56068 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56069 wxIndividualLayoutConstraint *result = 0 ;
56070 void *argp1 = 0 ;
56071 int res1 = 0 ;
56072 PyObject *swig_obj[1] ;
56073
56074 if (!args) SWIG_fail;
56075 swig_obj[0] = args;
56076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56077 if (!SWIG_IsOK(res1)) {
56078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_right_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56079 }
56080 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56081 result = (wxIndividualLayoutConstraint *)& ((arg1)->right);
56082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56083 return resultobj;
56084fail:
56085 return NULL;
56086}
56087
56088
56089SWIGINTERN PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56090 PyObject *resultobj = 0;
56091 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56092 wxIndividualLayoutConstraint *result = 0 ;
56093 void *argp1 = 0 ;
56094 int res1 = 0 ;
56095 PyObject *swig_obj[1] ;
56096
56097 if (!args) SWIG_fail;
56098 swig_obj[0] = args;
56099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56100 if (!SWIG_IsOK(res1)) {
56101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_bottom_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56102 }
56103 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56104 result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom);
56105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56106 return resultobj;
56107fail:
56108 return NULL;
56109}
56110
56111
56112SWIGINTERN PyObject *_wrap_LayoutConstraints_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56113 PyObject *resultobj = 0;
56114 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56115 wxIndividualLayoutConstraint *result = 0 ;
56116 void *argp1 = 0 ;
56117 int res1 = 0 ;
56118 PyObject *swig_obj[1] ;
56119
56120 if (!args) SWIG_fail;
56121 swig_obj[0] = args;
56122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56123 if (!SWIG_IsOK(res1)) {
56124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_width_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56125 }
56126 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56127 result = (wxIndividualLayoutConstraint *)& ((arg1)->width);
56128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56129 return resultobj;
56130fail:
56131 return NULL;
56132}
56133
56134
56135SWIGINTERN PyObject *_wrap_LayoutConstraints_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56136 PyObject *resultobj = 0;
56137 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56138 wxIndividualLayoutConstraint *result = 0 ;
56139 void *argp1 = 0 ;
56140 int res1 = 0 ;
56141 PyObject *swig_obj[1] ;
56142
56143 if (!args) SWIG_fail;
56144 swig_obj[0] = args;
56145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56146 if (!SWIG_IsOK(res1)) {
56147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_height_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56148 }
56149 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56150 result = (wxIndividualLayoutConstraint *)& ((arg1)->height);
56151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56152 return resultobj;
56153fail:
56154 return NULL;
56155}
56156
56157
56158SWIGINTERN PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56159 PyObject *resultobj = 0;
56160 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56161 wxIndividualLayoutConstraint *result = 0 ;
56162 void *argp1 = 0 ;
56163 int res1 = 0 ;
56164 PyObject *swig_obj[1] ;
56165
56166 if (!args) SWIG_fail;
56167 swig_obj[0] = args;
56168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56169 if (!SWIG_IsOK(res1)) {
56170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_centreX_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56171 }
56172 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56173 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX);
56174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56175 return resultobj;
56176fail:
56177 return NULL;
56178}
56179
56180
56181SWIGINTERN PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56182 PyObject *resultobj = 0;
56183 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56184 wxIndividualLayoutConstraint *result = 0 ;
56185 void *argp1 = 0 ;
56186 int res1 = 0 ;
56187 PyObject *swig_obj[1] ;
56188
56189 if (!args) SWIG_fail;
56190 swig_obj[0] = args;
56191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56192 if (!SWIG_IsOK(res1)) {
56193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_centreY_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56194 }
56195 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56196 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY);
56197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56198 return resultobj;
56199fail:
56200 return NULL;
d55e5bfc
RD
56201}
56202
56203
1bd55598
RD
56204SWIGINTERN PyObject *_wrap_new_LayoutConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56205 PyObject *resultobj = 0;
56206 wxLayoutConstraints *result = 0 ;
56207
56208 if (!SWIG_Python_UnpackTuple(args,"new_LayoutConstraints",0,0,0)) SWIG_fail;
56209 {
56210 PyThreadState* __tstate = wxPyBeginAllowThreads();
56211 result = (wxLayoutConstraints *)new wxLayoutConstraints();
56212 wxPyEndAllowThreads(__tstate);
56213 if (PyErr_Occurred()) SWIG_fail;
56214 }
56215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_NEW | 0 );
56216 return resultobj;
56217fail:
56218 return NULL;
d55e5bfc
RD
56219}
56220
56221
1bd55598
RD
56222SWIGINTERN PyObject *_wrap_delete_LayoutConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56223 PyObject *resultobj = 0;
56224 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56225 void *argp1 = 0 ;
56226 int res1 = 0 ;
56227 PyObject *swig_obj[1] ;
56228
56229 if (!args) SWIG_fail;
56230 swig_obj[0] = args;
56231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_DISOWN | 0 );
56232 if (!SWIG_IsOK(res1)) {
56233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LayoutConstraints" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56234 }
56235 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56236 {
56237 PyThreadState* __tstate = wxPyBeginAllowThreads();
56238 delete arg1;
d55e5bfc 56239
1bd55598
RD
56240 wxPyEndAllowThreads(__tstate);
56241 if (PyErr_Occurred()) SWIG_fail;
56242 }
56243 resultobj = SWIG_Py_Void();
56244 return resultobj;
56245fail:
56246 return NULL;
56247}
56248
56249
56250SWIGINTERN PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
56251 PyObject *resultobj = 0;
56252 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56253 wxWindow *arg2 = (wxWindow *) 0 ;
56254 int *arg3 = (int *) 0 ;
56255 bool result;
56256 void *argp1 = 0 ;
56257 int res1 = 0 ;
56258 void *argp2 = 0 ;
56259 int res2 = 0 ;
56260 int temp3 ;
56261 int res3 = SWIG_TMPOBJ ;
56262 PyObject * obj0 = 0 ;
56263 PyObject * obj1 = 0 ;
56264 char * kwnames[] = {
56265 (char *) "self",(char *) "win", NULL
56266 };
56267
56268 arg3 = &temp3;
56269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) SWIG_fail;
56270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56271 if (!SWIG_IsOK(res1)) {
56272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_SatisfyConstraints" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56273 }
56274 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56275 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
56276 if (!SWIG_IsOK(res2)) {
56277 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutConstraints_SatisfyConstraints" "', expected argument " "2"" of type '" "wxWindow *""'");
56278 }
56279 arg2 = reinterpret_cast< wxWindow * >(argp2);
56280 {
56281 PyThreadState* __tstate = wxPyBeginAllowThreads();
56282 result = (bool)(arg1)->SatisfyConstraints(arg2,arg3);
56283 wxPyEndAllowThreads(__tstate);
56284 if (PyErr_Occurred()) SWIG_fail;
56285 }
56286 {
56287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
56288 }
56289 if (SWIG_IsTmpObj(res3)) {
56290 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
56291 } else {
56292 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
56293 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
56294 }
56295 return resultobj;
56296fail:
56297 return NULL;
d55e5bfc
RD
56298}
56299
56300
1bd55598
RD
56301SWIGINTERN PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56302 PyObject *resultobj = 0;
56303 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56304 bool result;
56305 void *argp1 = 0 ;
56306 int res1 = 0 ;
56307 PyObject *swig_obj[1] ;
56308
56309 if (!args) SWIG_fail;
56310 swig_obj[0] = args;
56311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56312 if (!SWIG_IsOK(res1)) {
56313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_AreSatisfied" "', expected argument " "1"" of type '" "wxLayoutConstraints const *""'");
56314 }
56315 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56316 {
56317 PyThreadState* __tstate = wxPyBeginAllowThreads();
56318 result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied();
56319 wxPyEndAllowThreads(__tstate);
56320 if (PyErr_Occurred()) SWIG_fail;
56321 }
56322 {
56323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
56324 }
56325 return resultobj;
56326fail:
56327 return NULL;
d55e5bfc
RD
56328}
56329
56330
1bd55598
RD
56331SWIGINTERN PyObject *LayoutConstraints_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56332 PyObject *obj;
56333 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
56334 SWIG_TypeNewClientData(SWIGTYPE_p_wxLayoutConstraints, SWIG_NewClientData(obj));
56335 return SWIG_Py_Void();
d55e5bfc
RD
56336}
56337
1bd55598
RD
56338SWIGINTERN PyObject *LayoutConstraints_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56339 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
56340}
56341
1bd55598
RD
56342static PyMethodDef SwigMethods[] = {
56343 { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL},
1bd55598
RD
56344 { (char *)"Object_GetClassName", (PyCFunction)_wrap_Object_GetClassName, METH_O, NULL},
56345 { (char *)"Object_Destroy", (PyCFunction)_wrap_Object_Destroy, METH_O, NULL},
8f514ab4 56346 { (char *)"Object_IsSameAs", (PyCFunction) _wrap_Object_IsSameAs, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
56347 { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL},
56348 { (char *)"Size_width_set", _wrap_Size_width_set, METH_VARARGS, NULL},
56349 { (char *)"Size_width_get", (PyCFunction)_wrap_Size_width_get, METH_O, NULL},
56350 { (char *)"Size_height_set", _wrap_Size_height_set, METH_VARARGS, NULL},
56351 { (char *)"Size_height_get", (PyCFunction)_wrap_Size_height_get, METH_O, NULL},
56352 { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL},
56353 { (char *)"delete_Size", (PyCFunction)_wrap_delete_Size, METH_O, NULL},
56354 { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
56355 { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
56356 { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL},
56357 { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
56358 { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL},
56359 { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL},
f5263701
RD
56360 { (char *)"Size_IncBy", (PyCFunction) _wrap_Size_IncBy, METH_VARARGS | METH_KEYWORDS, NULL},
56361 { (char *)"Size_DecBy", (PyCFunction) _wrap_Size_DecBy, METH_VARARGS | METH_KEYWORDS, NULL},
1eeb270e 56362 { (char *)"Size_Scale", (PyCFunction) _wrap_Size_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
56363 { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL},
56364 { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
56365 { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
56366 { (char *)"Size_GetWidth", (PyCFunction)_wrap_Size_GetWidth, METH_O, NULL},
56367 { (char *)"Size_GetHeight", (PyCFunction)_wrap_Size_GetHeight, METH_O, NULL},
56368 { (char *)"Size_IsFullySpecified", (PyCFunction)_wrap_Size_IsFullySpecified, METH_O, NULL},
56369 { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL},
56370 { (char *)"Size_Get", (PyCFunction)_wrap_Size_Get, METH_O, NULL},
56371 { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL},
56372 { (char *)"Size_swiginit", Size_swiginit, METH_VARARGS, NULL},
56373 { (char *)"RealPoint_x_set", _wrap_RealPoint_x_set, METH_VARARGS, NULL},
56374 { (char *)"RealPoint_x_get", (PyCFunction)_wrap_RealPoint_x_get, METH_O, NULL},
56375 { (char *)"RealPoint_y_set", _wrap_RealPoint_y_set, METH_VARARGS, NULL},
56376 { (char *)"RealPoint_y_get", (PyCFunction)_wrap_RealPoint_y_get, METH_O, NULL},
56377 { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL},
56378 { (char *)"delete_RealPoint", (PyCFunction)_wrap_delete_RealPoint, METH_O, NULL},
56379 { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
56380 { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
56381 { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL},
56382 { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
56383 { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL},
56384 { (char *)"RealPoint_Get", (PyCFunction)_wrap_RealPoint_Get, METH_O, NULL},
56385 { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL},
56386 { (char *)"RealPoint_swiginit", RealPoint_swiginit, METH_VARARGS, NULL},
56387 { (char *)"Point_x_set", _wrap_Point_x_set, METH_VARARGS, NULL},
56388 { (char *)"Point_x_get", (PyCFunction)_wrap_Point_x_get, METH_O, NULL},
56389 { (char *)"Point_y_set", _wrap_Point_y_set, METH_VARARGS, NULL},
56390 { (char *)"Point_y_get", (PyCFunction)_wrap_Point_y_get, METH_O, NULL},
56391 { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL},
56392 { (char *)"delete_Point", (PyCFunction)_wrap_delete_Point, METH_O, NULL},
56393 { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
56394 { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
56395 { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL},
56396 { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
56397 { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
56398 { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
56399 { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL},
56400 { (char *)"Point_Get", (PyCFunction)_wrap_Point_Get, METH_O, NULL},
56401 { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL},
56402 { (char *)"Point_swiginit", Point_swiginit, METH_VARARGS, NULL},
56403 { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL},
56404 { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL},
56405 { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL},
56406 { (char *)"new_RectS", (PyCFunction) _wrap_new_RectS, METH_VARARGS | METH_KEYWORDS, NULL},
56407 { (char *)"delete_Rect", (PyCFunction)_wrap_delete_Rect, METH_O, NULL},
56408 { (char *)"Rect_GetX", (PyCFunction)_wrap_Rect_GetX, METH_O, NULL},
56409 { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL},
56410 { (char *)"Rect_GetY", (PyCFunction)_wrap_Rect_GetY, METH_O, NULL},
56411 { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL},
56412 { (char *)"Rect_GetWidth", (PyCFunction)_wrap_Rect_GetWidth, METH_O, NULL},
56413 { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
56414 { (char *)"Rect_GetHeight", (PyCFunction)_wrap_Rect_GetHeight, METH_O, NULL},
56415 { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
56416 { (char *)"Rect_GetPosition", (PyCFunction)_wrap_Rect_GetPosition, METH_O, NULL},
56417 { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
56418 { (char *)"Rect_GetSize", (PyCFunction)_wrap_Rect_GetSize, METH_O, NULL},
56419 { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
56420 { (char *)"Rect_IsEmpty", (PyCFunction)_wrap_Rect_IsEmpty, METH_O, NULL},
56421 { (char *)"Rect_GetTopLeft", (PyCFunction)_wrap_Rect_GetTopLeft, METH_O, NULL},
56422 { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL},
56423 { (char *)"Rect_GetBottomRight", (PyCFunction)_wrap_Rect_GetBottomRight, METH_O, NULL},
56424 { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL},
5acb46e0
RD
56425 { (char *)"Rect_GetTopRight", (PyCFunction)_wrap_Rect_GetTopRight, METH_O, NULL},
56426 { (char *)"Rect_SetTopRight", (PyCFunction) _wrap_Rect_SetTopRight, METH_VARARGS | METH_KEYWORDS, NULL},
56427 { (char *)"Rect_GetBottomLeft", (PyCFunction)_wrap_Rect_GetBottomLeft, METH_O, NULL},
56428 { (char *)"Rect_SetBottomLeft", (PyCFunction) _wrap_Rect_SetBottomLeft, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
56429 { (char *)"Rect_GetLeft", (PyCFunction)_wrap_Rect_GetLeft, METH_O, NULL},
56430 { (char *)"Rect_GetTop", (PyCFunction)_wrap_Rect_GetTop, METH_O, NULL},
56431 { (char *)"Rect_GetBottom", (PyCFunction)_wrap_Rect_GetBottom, METH_O, NULL},
56432 { (char *)"Rect_GetRight", (PyCFunction)_wrap_Rect_GetRight, METH_O, NULL},
56433 { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL},
56434 { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL},
56435 { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL},
56436 { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL},
56437 { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL},
56438 { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL},
56439 { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL},
56440 { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
56441 { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
56442 { (char *)"Rect_Union", (PyCFunction) _wrap_Rect_Union, METH_VARARGS | METH_KEYWORDS, NULL},
56443 { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL},
56444 { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
56445 { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
56446 { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
56447 { (char *)"Rect_ContainsXY", (PyCFunction) _wrap_Rect_ContainsXY, METH_VARARGS | METH_KEYWORDS, NULL},
56448 { (char *)"Rect_Contains", (PyCFunction) _wrap_Rect_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
56449 { (char *)"Rect_ContainsRect", (PyCFunction) _wrap_Rect_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
56450 { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL},
56451 { (char *)"Rect_CenterIn", (PyCFunction) _wrap_Rect_CenterIn, METH_VARARGS | METH_KEYWORDS, NULL},
56452 { (char *)"Rect_x_set", _wrap_Rect_x_set, METH_VARARGS, NULL},
56453 { (char *)"Rect_x_get", (PyCFunction)_wrap_Rect_x_get, METH_O, NULL},
56454 { (char *)"Rect_y_set", _wrap_Rect_y_set, METH_VARARGS, NULL},
56455 { (char *)"Rect_y_get", (PyCFunction)_wrap_Rect_y_get, METH_O, NULL},
56456 { (char *)"Rect_width_set", _wrap_Rect_width_set, METH_VARARGS, NULL},
56457 { (char *)"Rect_width_get", (PyCFunction)_wrap_Rect_width_get, METH_O, NULL},
56458 { (char *)"Rect_height_set", _wrap_Rect_height_set, METH_VARARGS, NULL},
56459 { (char *)"Rect_height_get", (PyCFunction)_wrap_Rect_height_get, METH_O, NULL},
56460 { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL},
56461 { (char *)"Rect_Get", (PyCFunction)_wrap_Rect_Get, METH_O, NULL},
56462 { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL},
56463 { (char *)"Rect_swiginit", Rect_swiginit, METH_VARARGS, NULL},
56464 { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
56465 { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL},
56466 { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL},
56467 { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 56468 { (char *)"delete_Point2D", (PyCFunction)_wrap_delete_Point2D, METH_O, NULL},
1bd55598
RD
56469 { (char *)"Point2D_GetFloor", (PyCFunction)_wrap_Point2D_GetFloor, METH_O, NULL},
56470 { (char *)"Point2D_GetRounded", (PyCFunction)_wrap_Point2D_GetRounded, METH_O, NULL},
56471 { (char *)"Point2D_GetVectorLength", (PyCFunction)_wrap_Point2D_GetVectorLength, METH_O, NULL},
56472 { (char *)"Point2D_GetVectorAngle", (PyCFunction)_wrap_Point2D_GetVectorAngle, METH_O, NULL},
56473 { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL},
56474 { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL},
56475 { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL},
56476 { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL},
56477 { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL},
56478 { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL},
56479 { (char *)"Point2D___neg__", (PyCFunction)_wrap_Point2D___neg__, METH_O, NULL},
56480 { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
56481 { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
56482 { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL},
56483 { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL},
56484 { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
56485 { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
56486 { (char *)"Point2D_x_set", _wrap_Point2D_x_set, METH_VARARGS, NULL},
56487 { (char *)"Point2D_x_get", (PyCFunction)_wrap_Point2D_x_get, METH_O, NULL},
56488 { (char *)"Point2D_y_set", _wrap_Point2D_y_set, METH_VARARGS, NULL},
56489 { (char *)"Point2D_y_get", (PyCFunction)_wrap_Point2D_y_get, METH_O, NULL},
56490 { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL},
56491 { (char *)"Point2D_Get", (PyCFunction)_wrap_Point2D_Get, METH_O, NULL},
56492 { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL},
56493 { (char *)"Point2D_swiginit", Point2D_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
56494 { (char *)"new_Rect2D", (PyCFunction) _wrap_new_Rect2D, METH_VARARGS | METH_KEYWORDS, NULL},
56495 { (char *)"delete_Rect2D", (PyCFunction)_wrap_delete_Rect2D, METH_O, NULL},
56496 { (char *)"Rect2D_GetPosition", (PyCFunction)_wrap_Rect2D_GetPosition, METH_O, NULL},
56497 { (char *)"Rect2D_GetSize", (PyCFunction)_wrap_Rect2D_GetSize, METH_O, NULL},
56498 { (char *)"Rect2D_GetLeft", (PyCFunction)_wrap_Rect2D_GetLeft, METH_O, NULL},
56499 { (char *)"Rect2D_SetLeft", (PyCFunction) _wrap_Rect2D_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL},
56500 { (char *)"Rect2D_MoveLeftTo", (PyCFunction) _wrap_Rect2D_MoveLeftTo, METH_VARARGS | METH_KEYWORDS, NULL},
56501 { (char *)"Rect2D_GetTop", (PyCFunction)_wrap_Rect2D_GetTop, METH_O, NULL},
56502 { (char *)"Rect2D_SetTop", (PyCFunction) _wrap_Rect2D_SetTop, METH_VARARGS | METH_KEYWORDS, NULL},
56503 { (char *)"Rect2D_MoveTopTo", (PyCFunction) _wrap_Rect2D_MoveTopTo, METH_VARARGS | METH_KEYWORDS, NULL},
56504 { (char *)"Rect2D_GetBottom", (PyCFunction)_wrap_Rect2D_GetBottom, METH_O, NULL},
56505 { (char *)"Rect2D_SetBottom", (PyCFunction) _wrap_Rect2D_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL},
56506 { (char *)"Rect2D_MoveBottomTo", (PyCFunction) _wrap_Rect2D_MoveBottomTo, METH_VARARGS | METH_KEYWORDS, NULL},
56507 { (char *)"Rect2D_GetRight", (PyCFunction)_wrap_Rect2D_GetRight, METH_O, NULL},
56508 { (char *)"Rect2D_SetRight", (PyCFunction) _wrap_Rect2D_SetRight, METH_VARARGS | METH_KEYWORDS, NULL},
56509 { (char *)"Rect2D_MoveRightTo", (PyCFunction) _wrap_Rect2D_MoveRightTo, METH_VARARGS | METH_KEYWORDS, NULL},
56510 { (char *)"Rect2D_GetLeftTop", (PyCFunction)_wrap_Rect2D_GetLeftTop, METH_O, NULL},
56511 { (char *)"Rect2D_SetLeftTop", (PyCFunction) _wrap_Rect2D_SetLeftTop, METH_VARARGS | METH_KEYWORDS, NULL},
56512 { (char *)"Rect2D_MoveLeftTopTo", (PyCFunction) _wrap_Rect2D_MoveLeftTopTo, METH_VARARGS | METH_KEYWORDS, NULL},
56513 { (char *)"Rect2D_GetLeftBottom", (PyCFunction)_wrap_Rect2D_GetLeftBottom, METH_O, NULL},
56514 { (char *)"Rect2D_SetLeftBottom", (PyCFunction) _wrap_Rect2D_SetLeftBottom, METH_VARARGS | METH_KEYWORDS, NULL},
56515 { (char *)"Rect2D_MoveLeftBottomTo", (PyCFunction) _wrap_Rect2D_MoveLeftBottomTo, METH_VARARGS | METH_KEYWORDS, NULL},
56516 { (char *)"Rect2D_GetRightTop", (PyCFunction)_wrap_Rect2D_GetRightTop, METH_O, NULL},
56517 { (char *)"Rect2D_SetRightTop", (PyCFunction) _wrap_Rect2D_SetRightTop, METH_VARARGS | METH_KEYWORDS, NULL},
56518 { (char *)"Rect2D_MoveRightTopTo", (PyCFunction) _wrap_Rect2D_MoveRightTopTo, METH_VARARGS | METH_KEYWORDS, NULL},
56519 { (char *)"Rect2D_GetRightBottom", (PyCFunction)_wrap_Rect2D_GetRightBottom, METH_O, NULL},
56520 { (char *)"Rect2D_SetRightBottom", (PyCFunction) _wrap_Rect2D_SetRightBottom, METH_VARARGS | METH_KEYWORDS, NULL},
56521 { (char *)"Rect2D_MoveRightBottomTo", (PyCFunction) _wrap_Rect2D_MoveRightBottomTo, METH_VARARGS | METH_KEYWORDS, NULL},
56522 { (char *)"Rect2D_GetCentre", (PyCFunction)_wrap_Rect2D_GetCentre, METH_O, NULL},
56523 { (char *)"Rect2D_SetCentre", (PyCFunction) _wrap_Rect2D_SetCentre, METH_VARARGS | METH_KEYWORDS, NULL},
56524 { (char *)"Rect2D_MoveCentreTo", (PyCFunction) _wrap_Rect2D_MoveCentreTo, METH_VARARGS | METH_KEYWORDS, NULL},
56525 { (char *)"Rect2D_GetOutcode", (PyCFunction) _wrap_Rect2D_GetOutcode, METH_VARARGS | METH_KEYWORDS, NULL},
56526 { (char *)"Rect2D_Contains", (PyCFunction) _wrap_Rect2D_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
56527 { (char *)"Rect2D_ContainsRect", (PyCFunction) _wrap_Rect2D_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
56528 { (char *)"Rect2D_IsEmpty", (PyCFunction)_wrap_Rect2D_IsEmpty, METH_O, NULL},
56529 { (char *)"Rect2D_HaveEqualSize", (PyCFunction) _wrap_Rect2D_HaveEqualSize, METH_VARARGS | METH_KEYWORDS, NULL},
56530 { (char *)"Rect2D_Inset", _wrap_Rect2D_Inset, METH_VARARGS, NULL},
56531 { (char *)"Rect2D_Offset", (PyCFunction) _wrap_Rect2D_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
56532 { (char *)"Rect2D_ConstrainTo", (PyCFunction) _wrap_Rect2D_ConstrainTo, METH_VARARGS | METH_KEYWORDS, NULL},
56533 { (char *)"Rect2D_Interpolate", (PyCFunction) _wrap_Rect2D_Interpolate, METH_VARARGS | METH_KEYWORDS, NULL},
56534 { (char *)"Rect2D_Intersect", (PyCFunction) _wrap_Rect2D_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
56535 { (char *)"Rect2D_CreateIntersection", (PyCFunction) _wrap_Rect2D_CreateIntersection, METH_VARARGS | METH_KEYWORDS, NULL},
56536 { (char *)"Rect2D_Intersects", (PyCFunction) _wrap_Rect2D_Intersects, METH_VARARGS | METH_KEYWORDS, NULL},
56537 { (char *)"Rect2D_Union", (PyCFunction) _wrap_Rect2D_Union, METH_VARARGS | METH_KEYWORDS, NULL},
56538 { (char *)"Rect2D_CreateUnion", (PyCFunction) _wrap_Rect2D_CreateUnion, METH_VARARGS | METH_KEYWORDS, NULL},
56539 { (char *)"Rect2D_Scale", _wrap_Rect2D_Scale, METH_VARARGS, NULL},
56540 { (char *)"Rect2D___eq__", (PyCFunction) _wrap_Rect2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
56541 { (char *)"Rect2D___ne__", (PyCFunction) _wrap_Rect2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
56542 { (char *)"Rect2D_x_set", _wrap_Rect2D_x_set, METH_VARARGS, NULL},
56543 { (char *)"Rect2D_x_get", (PyCFunction)_wrap_Rect2D_x_get, METH_O, NULL},
56544 { (char *)"Rect2D_y_set", _wrap_Rect2D_y_set, METH_VARARGS, NULL},
56545 { (char *)"Rect2D_y_get", (PyCFunction)_wrap_Rect2D_y_get, METH_O, NULL},
56546 { (char *)"Rect2D_width_set", _wrap_Rect2D_width_set, METH_VARARGS, NULL},
56547 { (char *)"Rect2D_width_get", (PyCFunction)_wrap_Rect2D_width_get, METH_O, NULL},
56548 { (char *)"Rect2D_height_set", _wrap_Rect2D_height_set, METH_VARARGS, NULL},
56549 { (char *)"Rect2D_height_get", (PyCFunction)_wrap_Rect2D_height_get, METH_O, NULL},
56550 { (char *)"Rect2D_Set", (PyCFunction) _wrap_Rect2D_Set, METH_VARARGS | METH_KEYWORDS, NULL},
56551 { (char *)"Rect2D_Get", (PyCFunction)_wrap_Rect2D_Get, METH_O, NULL},
56552 { (char *)"Rect2D_swigregister", Rect2D_swigregister, METH_VARARGS, NULL},
56553 { (char *)"Rect2D_swiginit", Rect2D_swiginit, METH_VARARGS, NULL},
1bd55598
RD
56554 { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL},
56555 { (char *)"delete_InputStream", (PyCFunction)_wrap_delete_InputStream, METH_O, NULL},
56556 { (char *)"InputStream_close", (PyCFunction)_wrap_InputStream_close, METH_O, NULL},
56557 { (char *)"InputStream_flush", (PyCFunction)_wrap_InputStream_flush, METH_O, NULL},
56558 { (char *)"InputStream_eof", (PyCFunction)_wrap_InputStream_eof, METH_O, NULL},
56559 { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL},
56560 { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL},
56561 { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL},
56562 { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL},
56563 { (char *)"InputStream_tell", (PyCFunction)_wrap_InputStream_tell, METH_O, NULL},
56564 { (char *)"InputStream_Peek", (PyCFunction)_wrap_InputStream_Peek, METH_O, NULL},
56565 { (char *)"InputStream_GetC", (PyCFunction)_wrap_InputStream_GetC, METH_O, NULL},
56566 { (char *)"InputStream_LastRead", (PyCFunction)_wrap_InputStream_LastRead, METH_O, NULL},
56567 { (char *)"InputStream_CanRead", (PyCFunction)_wrap_InputStream_CanRead, METH_O, NULL},
56568 { (char *)"InputStream_Eof", (PyCFunction)_wrap_InputStream_Eof, METH_O, NULL},
56569 { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL},
56570 { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL},
56571 { (char *)"InputStream_TellI", (PyCFunction)_wrap_InputStream_TellI, METH_O, NULL},
56572 { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL},
56573 { (char *)"InputStream_swiginit", InputStream_swiginit, METH_VARARGS, NULL},
56574 { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL},
56575 { (char *)"OutputStream_LastWrite", (PyCFunction)_wrap_OutputStream_LastWrite, METH_O, NULL},
56576 { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL},
56577 { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL},
56578 { (char *)"delete_FSFile", (PyCFunction)_wrap_delete_FSFile, METH_O, NULL},
56579 { (char *)"FSFile_GetStream", (PyCFunction)_wrap_FSFile_GetStream, METH_O, NULL},
ac5d357a 56580 { (char *)"FSFile_DetachStream", (PyCFunction)_wrap_FSFile_DetachStream, METH_O, NULL},
1bd55598
RD
56581 { (char *)"FSFile_GetMimeType", (PyCFunction)_wrap_FSFile_GetMimeType, METH_O, NULL},
56582 { (char *)"FSFile_GetLocation", (PyCFunction)_wrap_FSFile_GetLocation, METH_O, NULL},
56583 { (char *)"FSFile_GetAnchor", (PyCFunction)_wrap_FSFile_GetAnchor, METH_O, NULL},
56584 { (char *)"FSFile_GetModificationTime", (PyCFunction)_wrap_FSFile_GetModificationTime, METH_O, NULL},
56585 { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL},
56586 { (char *)"FSFile_swiginit", FSFile_swiginit, METH_VARARGS, NULL},
50f151d7 56587 { (char *)"delete_CPPFileSystemHandler", (PyCFunction)_wrap_delete_CPPFileSystemHandler, METH_O, NULL},
1bd55598
RD
56588 { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL},
56589 { (char *)"new_FileSystemHandler", (PyCFunction)_wrap_new_FileSystemHandler, METH_NOARGS, NULL},
56590 { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
56591 { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL},
56592 { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
56593 { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL},
56594 { (char *)"FileSystemHandler_FindNext", (PyCFunction)_wrap_FileSystemHandler_FindNext, METH_O, NULL},
56595 { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL},
56596 { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL},
56597 { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL},
56598 { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL},
56599 { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL},
56600 { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL},
56601 { (char *)"FileSystemHandler_swiginit", FileSystemHandler_swiginit, METH_VARARGS, NULL},
56602 { (char *)"new_FileSystem", (PyCFunction)_wrap_new_FileSystem, METH_NOARGS, NULL},
56603 { (char *)"delete_FileSystem", (PyCFunction)_wrap_delete_FileSystem, METH_O, NULL},
56604 { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL},
56605 { (char *)"FileSystem_GetPath", (PyCFunction)_wrap_FileSystem_GetPath, METH_O, NULL},
56606 { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
56607 { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL},
56608 { (char *)"FileSystem_FindNext", (PyCFunction)_wrap_FileSystem_FindNext, METH_O, NULL},
56609 { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL},
ac5d357a 56610 { (char *)"FileSystem_RemoveHandler", (PyCFunction) _wrap_FileSystem_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
56611 { (char *)"FileSystem_CleanUpHandlers", (PyCFunction)_wrap_FileSystem_CleanUpHandlers, METH_NOARGS, NULL},
56612 { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL},
56613 { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL},
56614 { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL},
56615 { (char *)"FileSystem_swiginit", FileSystem_swiginit, METH_VARARGS, NULL},
56616 { (char *)"new_InternetFSHandler", (PyCFunction)_wrap_new_InternetFSHandler, METH_NOARGS, NULL},
56617 { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL},
56618 { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
56619 { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL},
56620 { (char *)"InternetFSHandler_swiginit", InternetFSHandler_swiginit, METH_VARARGS, NULL},
56621 { (char *)"new_ZipFSHandler", (PyCFunction)_wrap_new_ZipFSHandler, METH_NOARGS, NULL},
56622 { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL},
56623 { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
56624 { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL},
56625 { (char *)"ZipFSHandler_FindNext", (PyCFunction)_wrap_ZipFSHandler_FindNext, METH_O, NULL},
56626 { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL},
56627 { (char *)"ZipFSHandler_swiginit", ZipFSHandler_swiginit, METH_VARARGS, NULL},
56628 { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL},
56629 { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
56630 { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL},
56631 { (char *)"new_MemoryFSHandler", (PyCFunction)_wrap_new_MemoryFSHandler, METH_NOARGS, NULL},
56632 { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL},
56633 { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL},
56634 { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
56635 { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL},
56636 { (char *)"MemoryFSHandler_FindNext", (PyCFunction)_wrap_MemoryFSHandler_FindNext, METH_O, NULL},
56637 { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL},
56638 { (char *)"MemoryFSHandler_swiginit", MemoryFSHandler_swiginit, METH_VARARGS, NULL},
56639 { (char *)"ImageHandler_GetName", (PyCFunction)_wrap_ImageHandler_GetName, METH_O, NULL},
56640 { (char *)"ImageHandler_GetExtension", (PyCFunction)_wrap_ImageHandler_GetExtension, METH_O, NULL},
56641 { (char *)"ImageHandler_GetType", (PyCFunction)_wrap_ImageHandler_GetType, METH_O, NULL},
56642 { (char *)"ImageHandler_GetMimeType", (PyCFunction)_wrap_ImageHandler_GetMimeType, METH_O, NULL},
56643 { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8 56644 { (char *)"ImageHandler_CanReadStream", (PyCFunction) _wrap_ImageHandler_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
56645 { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL},
56646 { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL},
56647 { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL},
56648 { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
56649 { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL},
56650 { (char *)"new_PyImageHandler", (PyCFunction)_wrap_new_PyImageHandler, METH_NOARGS, NULL},
56651 { (char *)"PyImageHandler__SetSelf", (PyCFunction) _wrap_PyImageHandler__SetSelf, METH_VARARGS | METH_KEYWORDS, NULL},
56652 { (char *)"PyImageHandler_swigregister", PyImageHandler_swigregister, METH_VARARGS, NULL},
56653 { (char *)"PyImageHandler_swiginit", PyImageHandler_swiginit, METH_VARARGS, NULL},
56654 { (char *)"new_ImageHistogram", (PyCFunction)_wrap_new_ImageHistogram, METH_NOARGS, NULL},
56655 { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL},
56656 { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL},
56657 { (char *)"ImageHistogram_GetCount", (PyCFunction) _wrap_ImageHistogram_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
56658 { (char *)"ImageHistogram_GetCountRGB", (PyCFunction) _wrap_ImageHistogram_GetCountRGB, METH_VARARGS | METH_KEYWORDS, NULL},
56659 { (char *)"ImageHistogram_GetCountColour", (PyCFunction) _wrap_ImageHistogram_GetCountColour, METH_VARARGS | METH_KEYWORDS, NULL},
56660 { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL},
56661 { (char *)"ImageHistogram_swiginit", ImageHistogram_swiginit, METH_VARARGS, NULL},
56662 { (char *)"new_Image_RGBValue", (PyCFunction) _wrap_new_Image_RGBValue, METH_VARARGS | METH_KEYWORDS, NULL},
56663 { (char *)"Image_RGBValue_red_set", _wrap_Image_RGBValue_red_set, METH_VARARGS, NULL},
56664 { (char *)"Image_RGBValue_red_get", (PyCFunction)_wrap_Image_RGBValue_red_get, METH_O, NULL},
56665 { (char *)"Image_RGBValue_green_set", _wrap_Image_RGBValue_green_set, METH_VARARGS, NULL},
56666 { (char *)"Image_RGBValue_green_get", (PyCFunction)_wrap_Image_RGBValue_green_get, METH_O, NULL},
56667 { (char *)"Image_RGBValue_blue_set", _wrap_Image_RGBValue_blue_set, METH_VARARGS, NULL},
56668 { (char *)"Image_RGBValue_blue_get", (PyCFunction)_wrap_Image_RGBValue_blue_get, METH_O, NULL},
56669 { (char *)"Image_RGBValue_swigregister", Image_RGBValue_swigregister, METH_VARARGS, NULL},
56670 { (char *)"Image_RGBValue_swiginit", Image_RGBValue_swiginit, METH_VARARGS, NULL},
56671 { (char *)"new_Image_HSVValue", (PyCFunction) _wrap_new_Image_HSVValue, METH_VARARGS | METH_KEYWORDS, NULL},
56672 { (char *)"Image_HSVValue_hue_set", _wrap_Image_HSVValue_hue_set, METH_VARARGS, NULL},
56673 { (char *)"Image_HSVValue_hue_get", (PyCFunction)_wrap_Image_HSVValue_hue_get, METH_O, NULL},
56674 { (char *)"Image_HSVValue_saturation_set", _wrap_Image_HSVValue_saturation_set, METH_VARARGS, NULL},
56675 { (char *)"Image_HSVValue_saturation_get", (PyCFunction)_wrap_Image_HSVValue_saturation_get, METH_O, NULL},
56676 { (char *)"Image_HSVValue_value_set", _wrap_Image_HSVValue_value_set, METH_VARARGS, NULL},
56677 { (char *)"Image_HSVValue_value_get", (PyCFunction)_wrap_Image_HSVValue_value_get, METH_O, NULL},
56678 { (char *)"Image_HSVValue_swigregister", Image_HSVValue_swigregister, METH_VARARGS, NULL},
56679 { (char *)"Image_HSVValue_swiginit", Image_HSVValue_swiginit, METH_VARARGS, NULL},
56680 { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL},
56681 { (char *)"delete_Image", (PyCFunction)_wrap_delete_Image, METH_O, NULL},
56682 { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL},
56683 { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL},
56684 { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL},
56685 { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL},
56686 { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
56687 { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL},
56688 { (char *)"new_ImageFromDataWithAlpha", (PyCFunction) _wrap_new_ImageFromDataWithAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
56689 { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL},
56690 { (char *)"Image_Destroy", (PyCFunction)_wrap_Image_Destroy, METH_O, NULL},
56691 { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
f5263701
RD
56692 { (char *)"Image_ResampleBox", (PyCFunction) _wrap_Image_ResampleBox, METH_VARARGS | METH_KEYWORDS, NULL},
56693 { (char *)"Image_ResampleBicubic", (PyCFunction) _wrap_Image_ResampleBicubic, METH_VARARGS | METH_KEYWORDS, NULL},
56694 { (char *)"Image_Blur", (PyCFunction) _wrap_Image_Blur, METH_VARARGS | METH_KEYWORDS, NULL},
56695 { (char *)"Image_BlurHorizontal", (PyCFunction) _wrap_Image_BlurHorizontal, METH_VARARGS | METH_KEYWORDS, NULL},
56696 { (char *)"Image_BlurVertical", (PyCFunction) _wrap_Image_BlurVertical, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
56697 { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL},
56698 { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL},
56699 { (char *)"Image_Resize", (PyCFunction) _wrap_Image_Resize, METH_VARARGS | METH_KEYWORDS, NULL},
56700 { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
56701 { (char *)"Image_SetRGBRect", (PyCFunction) _wrap_Image_SetRGBRect, METH_VARARGS | METH_KEYWORDS, NULL},
56702 { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL},
56703 { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL},
56704 { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL},
56705 { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
56706 { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
56707 { (char *)"Image_HasAlpha", (PyCFunction)_wrap_Image_HasAlpha, METH_O, NULL},
56708 { (char *)"Image_InitAlpha", (PyCFunction)_wrap_Image_InitAlpha, METH_O, NULL},
56709 { (char *)"Image_IsTransparent", (PyCFunction) _wrap_Image_IsTransparent, METH_VARARGS | METH_KEYWORDS, NULL},
56710 { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL},
56711 { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL},
56712 { (char *)"Image_ConvertColourToAlpha", (PyCFunction) _wrap_Image_ConvertColourToAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
56713 { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
56714 { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL},
56715 { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL},
56716 { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
56717 { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL},
56718 { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
56719 { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL},
56720 { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL},
56721 { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL},
56722 { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 56723 { (char *)"Image_IsOk", (PyCFunction)_wrap_Image_IsOk, METH_O, NULL},
1bd55598
RD
56724 { (char *)"Image_GetWidth", (PyCFunction)_wrap_Image_GetWidth, METH_O, NULL},
56725 { (char *)"Image_GetHeight", (PyCFunction)_wrap_Image_GetHeight, METH_O, NULL},
56726 { (char *)"Image_GetSize", (PyCFunction)_wrap_Image_GetSize, METH_O, NULL},
56727 { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL},
56728 { (char *)"Image_Size", (PyCFunction) _wrap_Image_Size, METH_VARARGS | METH_KEYWORDS, NULL},
56729 { (char *)"Image_Copy", (PyCFunction)_wrap_Image_Copy, METH_O, NULL},
56730 { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL},
56731 { (char *)"Image_GetData", (PyCFunction)_wrap_Image_GetData, METH_O, NULL},
56732 { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
56733 { (char *)"Image_GetDataBuffer", (PyCFunction)_wrap_Image_GetDataBuffer, METH_O, NULL},
56734 { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
56735 { (char *)"Image_GetAlphaData", (PyCFunction)_wrap_Image_GetAlphaData, METH_O, NULL},
56736 { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL},
56737 { (char *)"Image_GetAlphaBuffer", (PyCFunction)_wrap_Image_GetAlphaBuffer, METH_O, NULL},
56738 { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
56739 { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
56740 { (char *)"Image_GetOrFindMaskColour", (PyCFunction)_wrap_Image_GetOrFindMaskColour, METH_O, NULL},
56741 { (char *)"Image_GetMaskRed", (PyCFunction)_wrap_Image_GetMaskRed, METH_O, NULL},
56742 { (char *)"Image_GetMaskGreen", (PyCFunction)_wrap_Image_GetMaskGreen, METH_O, NULL},
56743 { (char *)"Image_GetMaskBlue", (PyCFunction)_wrap_Image_GetMaskBlue, METH_O, NULL},
56744 { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
56745 { (char *)"Image_HasMask", (PyCFunction)_wrap_Image_HasMask, METH_O, NULL},
56746 { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
56747 { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL},
56748 { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL},
56749 { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
56750 { (char *)"Image_ConvertToGreyscale", (PyCFunction) _wrap_Image_ConvertToGreyscale, METH_VARARGS | METH_KEYWORDS, NULL},
56751 { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL},
56752 { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL},
56753 { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
56754 { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL},
56755 { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
56756 { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL},
56757 { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL},
56758 { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL},
56759 { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL},
56760 { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL},
56761 { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL},
56762 { (char *)"Image_GetHandlers", (PyCFunction)_wrap_Image_GetHandlers, METH_NOARGS, NULL},
56763 { (char *)"Image_GetImageExtWildcard", (PyCFunction)_wrap_Image_GetImageExtWildcard, METH_NOARGS, NULL},
56764 { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
56765 { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
56766 { (char *)"Image_RotateHue", (PyCFunction) _wrap_Image_RotateHue, METH_VARARGS | METH_KEYWORDS, NULL},
56767 { (char *)"Image_RGBtoHSV", (PyCFunction) _wrap_Image_RGBtoHSV, METH_VARARGS | METH_KEYWORDS, NULL},
56768 { (char *)"Image_HSVtoRGB", (PyCFunction) _wrap_Image_HSVtoRGB, METH_VARARGS | METH_KEYWORDS, NULL},
56769 { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL},
56770 { (char *)"Image_swiginit", Image_swiginit, METH_VARARGS, NULL},
fc46b7f3 56771 { (char *)"_ImageFromBuffer", (PyCFunction) _wrap__ImageFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
56772 { (char *)"new_BMPHandler", (PyCFunction)_wrap_new_BMPHandler, METH_NOARGS, NULL},
56773 { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL},
56774 { (char *)"BMPHandler_swiginit", BMPHandler_swiginit, METH_VARARGS, NULL},
56775 { (char *)"new_ICOHandler", (PyCFunction)_wrap_new_ICOHandler, METH_NOARGS, NULL},
56776 { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL},
56777 { (char *)"ICOHandler_swiginit", ICOHandler_swiginit, METH_VARARGS, NULL},
56778 { (char *)"new_CURHandler", (PyCFunction)_wrap_new_CURHandler, METH_NOARGS, NULL},
56779 { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL},
56780 { (char *)"CURHandler_swiginit", CURHandler_swiginit, METH_VARARGS, NULL},
56781 { (char *)"new_ANIHandler", (PyCFunction)_wrap_new_ANIHandler, METH_NOARGS, NULL},
56782 { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL},
56783 { (char *)"ANIHandler_swiginit", ANIHandler_swiginit, METH_VARARGS, NULL},
56784 { (char *)"new_PNGHandler", (PyCFunction)_wrap_new_PNGHandler, METH_NOARGS, NULL},
56785 { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL},
56786 { (char *)"PNGHandler_swiginit", PNGHandler_swiginit, METH_VARARGS, NULL},
56787 { (char *)"new_GIFHandler", (PyCFunction)_wrap_new_GIFHandler, METH_NOARGS, NULL},
56788 { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL},
56789 { (char *)"GIFHandler_swiginit", GIFHandler_swiginit, METH_VARARGS, NULL},
56790 { (char *)"new_PCXHandler", (PyCFunction)_wrap_new_PCXHandler, METH_NOARGS, NULL},
56791 { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL},
56792 { (char *)"PCXHandler_swiginit", PCXHandler_swiginit, METH_VARARGS, NULL},
56793 { (char *)"new_JPEGHandler", (PyCFunction)_wrap_new_JPEGHandler, METH_NOARGS, NULL},
56794 { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL},
56795 { (char *)"JPEGHandler_swiginit", JPEGHandler_swiginit, METH_VARARGS, NULL},
56796 { (char *)"new_PNMHandler", (PyCFunction)_wrap_new_PNMHandler, METH_NOARGS, NULL},
56797 { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL},
56798 { (char *)"PNMHandler_swiginit", PNMHandler_swiginit, METH_VARARGS, NULL},
56799 { (char *)"new_XPMHandler", (PyCFunction)_wrap_new_XPMHandler, METH_NOARGS, NULL},
56800 { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL},
56801 { (char *)"XPMHandler_swiginit", XPMHandler_swiginit, METH_VARARGS, NULL},
56802 { (char *)"new_TIFFHandler", (PyCFunction)_wrap_new_TIFFHandler, METH_NOARGS, NULL},
56803 { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL},
56804 { (char *)"TIFFHandler_swiginit", TIFFHandler_swiginit, METH_VARARGS, NULL},
580080c5
RD
56805 { (char *)"new_TGAHandler", (PyCFunction)_wrap_new_TGAHandler, METH_NOARGS, NULL},
56806 { (char *)"TGAHandler_swigregister", TGAHandler_swigregister, METH_VARARGS, NULL},
56807 { (char *)"TGAHandler_swiginit", TGAHandler_swiginit, METH_VARARGS, NULL},
1bd55598
RD
56808 { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL},
56809 { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL},
56810 { (char *)"new_EvtHandler", (PyCFunction)_wrap_new_EvtHandler, METH_NOARGS, NULL},
56811 { (char *)"EvtHandler_GetNextHandler", (PyCFunction)_wrap_EvtHandler_GetNextHandler, METH_O, NULL},
56812 { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction)_wrap_EvtHandler_GetPreviousHandler, METH_O, NULL},
56813 { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL},
56814 { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL},
56815 { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction)_wrap_EvtHandler_GetEvtHandlerEnabled, METH_O, NULL},
56816 { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
56817 { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56818 { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56819 { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction)_wrap_EvtHandler_ProcessPendingEvents, METH_O, NULL},
56820 { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL},
56821 { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL},
56822 { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL},
56823 { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL},
56824 { (char *)"EvtHandler_swiginit", EvtHandler_swiginit, METH_VARARGS, NULL},
56825 { (char *)"NewEventType", (PyCFunction)_wrap_NewEventType, METH_NOARGS, NULL},
56826 { (char *)"delete_Event", (PyCFunction)_wrap_delete_Event, METH_O, NULL},
56827 { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL},
56828 { (char *)"Event_GetEventType", (PyCFunction)_wrap_Event_GetEventType, METH_O, NULL},
56829 { (char *)"Event_GetEventObject", (PyCFunction)_wrap_Event_GetEventObject, METH_O, NULL},
56830 { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL},
56831 { (char *)"Event_GetTimestamp", (PyCFunction)_wrap_Event_GetTimestamp, METH_O, NULL},
56832 { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL},
56833 { (char *)"Event_GetId", (PyCFunction)_wrap_Event_GetId, METH_O, NULL},
56834 { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
56835 { (char *)"Event_IsCommandEvent", (PyCFunction)_wrap_Event_IsCommandEvent, METH_O, NULL},
56836 { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL},
56837 { (char *)"Event_GetSkipped", (PyCFunction)_wrap_Event_GetSkipped, METH_O, NULL},
56838 { (char *)"Event_ShouldPropagate", (PyCFunction)_wrap_Event_ShouldPropagate, METH_O, NULL},
56839 { (char *)"Event_StopPropagation", (PyCFunction)_wrap_Event_StopPropagation, METH_O, NULL},
56840 { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL},
56841 { (char *)"Event_Clone", (PyCFunction)_wrap_Event_Clone, METH_O, NULL},
56842 { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL},
56843 { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL},
56844 { (char *)"delete_PropagationDisabler", (PyCFunction)_wrap_delete_PropagationDisabler, METH_O, NULL},
56845 { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL},
56846 { (char *)"PropagationDisabler_swiginit", PropagationDisabler_swiginit, METH_VARARGS, NULL},
56847 { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL},
56848 { (char *)"delete_PropagateOnce", (PyCFunction)_wrap_delete_PropagateOnce, METH_O, NULL},
56849 { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL},
56850 { (char *)"PropagateOnce_swiginit", PropagateOnce_swiginit, METH_VARARGS, NULL},
56851 { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56852 { (char *)"CommandEvent_GetSelection", (PyCFunction)_wrap_CommandEvent_GetSelection, METH_O, NULL},
56853 { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
56854 { (char *)"CommandEvent_GetString", (PyCFunction)_wrap_CommandEvent_GetString, METH_O, NULL},
56855 { (char *)"CommandEvent_IsChecked", (PyCFunction)_wrap_CommandEvent_IsChecked, METH_O, NULL},
56856 { (char *)"CommandEvent_IsSelection", (PyCFunction)_wrap_CommandEvent_IsSelection, METH_O, NULL},
56857 { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL},
56858 { (char *)"CommandEvent_GetExtraLong", (PyCFunction)_wrap_CommandEvent_GetExtraLong, METH_O, NULL},
56859 { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL},
56860 { (char *)"CommandEvent_GetInt", (PyCFunction)_wrap_CommandEvent_GetInt, METH_O, NULL},
56861 { (char *)"CommandEvent_GetClientData", (PyCFunction)_wrap_CommandEvent_GetClientData, METH_O, NULL},
56862 { (char *)"CommandEvent_SetClientData", (PyCFunction) _wrap_CommandEvent_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
56863 { (char *)"CommandEvent_Clone", (PyCFunction)_wrap_CommandEvent_Clone, METH_O, NULL},
56864 { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL},
56865 { (char *)"CommandEvent_swiginit", CommandEvent_swiginit, METH_VARARGS, NULL},
56866 { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56867 { (char *)"NotifyEvent_Veto", (PyCFunction)_wrap_NotifyEvent_Veto, METH_O, NULL},
56868 { (char *)"NotifyEvent_Allow", (PyCFunction)_wrap_NotifyEvent_Allow, METH_O, NULL},
56869 { (char *)"NotifyEvent_IsAllowed", (PyCFunction)_wrap_NotifyEvent_IsAllowed, METH_O, NULL},
56870 { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL},
56871 { (char *)"NotifyEvent_swiginit", NotifyEvent_swiginit, METH_VARARGS, NULL},
56872 { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56873 { (char *)"ScrollEvent_GetOrientation", (PyCFunction)_wrap_ScrollEvent_GetOrientation, METH_O, NULL},
56874 { (char *)"ScrollEvent_GetPosition", (PyCFunction)_wrap_ScrollEvent_GetPosition, METH_O, NULL},
56875 { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
56876 { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
56877 { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL},
56878 { (char *)"ScrollEvent_swiginit", ScrollEvent_swiginit, METH_VARARGS, NULL},
56879 { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56880 { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction)_wrap_ScrollWinEvent_GetOrientation, METH_O, NULL},
56881 { (char *)"ScrollWinEvent_GetPosition", (PyCFunction)_wrap_ScrollWinEvent_GetPosition, METH_O, NULL},
56882 { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
56883 { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
56884 { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL},
56885 { (char *)"ScrollWinEvent_swiginit", ScrollWinEvent_swiginit, METH_VARARGS, NULL},
56886 { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56887 { (char *)"MouseEvent_IsButton", (PyCFunction)_wrap_MouseEvent_IsButton, METH_O, NULL},
56888 { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL},
56889 { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL},
56890 { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL},
56891 { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL},
56892 { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL},
56893 { (char *)"MouseEvent_GetButton", (PyCFunction)_wrap_MouseEvent_GetButton, METH_O, NULL},
56894 { (char *)"MouseEvent_ControlDown", (PyCFunction)_wrap_MouseEvent_ControlDown, METH_O, NULL},
56895 { (char *)"MouseEvent_MetaDown", (PyCFunction)_wrap_MouseEvent_MetaDown, METH_O, NULL},
56896 { (char *)"MouseEvent_AltDown", (PyCFunction)_wrap_MouseEvent_AltDown, METH_O, NULL},
56897 { (char *)"MouseEvent_ShiftDown", (PyCFunction)_wrap_MouseEvent_ShiftDown, METH_O, NULL},
56898 { (char *)"MouseEvent_CmdDown", (PyCFunction)_wrap_MouseEvent_CmdDown, METH_O, NULL},
56899 { (char *)"MouseEvent_LeftDown", (PyCFunction)_wrap_MouseEvent_LeftDown, METH_O, NULL},
56900 { (char *)"MouseEvent_MiddleDown", (PyCFunction)_wrap_MouseEvent_MiddleDown, METH_O, NULL},
56901 { (char *)"MouseEvent_RightDown", (PyCFunction)_wrap_MouseEvent_RightDown, METH_O, NULL},
56902 { (char *)"MouseEvent_LeftUp", (PyCFunction)_wrap_MouseEvent_LeftUp, METH_O, NULL},
56903 { (char *)"MouseEvent_MiddleUp", (PyCFunction)_wrap_MouseEvent_MiddleUp, METH_O, NULL},
56904 { (char *)"MouseEvent_RightUp", (PyCFunction)_wrap_MouseEvent_RightUp, METH_O, NULL},
56905 { (char *)"MouseEvent_LeftDClick", (PyCFunction)_wrap_MouseEvent_LeftDClick, METH_O, NULL},
56906 { (char *)"MouseEvent_MiddleDClick", (PyCFunction)_wrap_MouseEvent_MiddleDClick, METH_O, NULL},
56907 { (char *)"MouseEvent_RightDClick", (PyCFunction)_wrap_MouseEvent_RightDClick, METH_O, NULL},
56908 { (char *)"MouseEvent_LeftIsDown", (PyCFunction)_wrap_MouseEvent_LeftIsDown, METH_O, NULL},
56909 { (char *)"MouseEvent_MiddleIsDown", (PyCFunction)_wrap_MouseEvent_MiddleIsDown, METH_O, NULL},
56910 { (char *)"MouseEvent_RightIsDown", (PyCFunction)_wrap_MouseEvent_RightIsDown, METH_O, NULL},
56911 { (char *)"MouseEvent_Dragging", (PyCFunction)_wrap_MouseEvent_Dragging, METH_O, NULL},
56912 { (char *)"MouseEvent_Moving", (PyCFunction)_wrap_MouseEvent_Moving, METH_O, NULL},
56913 { (char *)"MouseEvent_Entering", (PyCFunction)_wrap_MouseEvent_Entering, METH_O, NULL},
56914 { (char *)"MouseEvent_Leaving", (PyCFunction)_wrap_MouseEvent_Leaving, METH_O, NULL},
56915 { (char *)"MouseEvent_GetPosition", (PyCFunction)_wrap_MouseEvent_GetPosition, METH_O, NULL},
56916 { (char *)"MouseEvent_GetPositionTuple", (PyCFunction)_wrap_MouseEvent_GetPositionTuple, METH_O, NULL},
56917 { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL},
56918 { (char *)"MouseEvent_GetX", (PyCFunction)_wrap_MouseEvent_GetX, METH_O, NULL},
56919 { (char *)"MouseEvent_GetY", (PyCFunction)_wrap_MouseEvent_GetY, METH_O, NULL},
56920 { (char *)"MouseEvent_GetWheelRotation", (PyCFunction)_wrap_MouseEvent_GetWheelRotation, METH_O, NULL},
56921 { (char *)"MouseEvent_GetWheelDelta", (PyCFunction)_wrap_MouseEvent_GetWheelDelta, METH_O, NULL},
56922 { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction)_wrap_MouseEvent_GetLinesPerAction, METH_O, NULL},
56923 { (char *)"MouseEvent_IsPageScroll", (PyCFunction)_wrap_MouseEvent_IsPageScroll, METH_O, NULL},
56924 { (char *)"MouseEvent_m_x_set", _wrap_MouseEvent_m_x_set, METH_VARARGS, NULL},
56925 { (char *)"MouseEvent_m_x_get", (PyCFunction)_wrap_MouseEvent_m_x_get, METH_O, NULL},
56926 { (char *)"MouseEvent_m_y_set", _wrap_MouseEvent_m_y_set, METH_VARARGS, NULL},
56927 { (char *)"MouseEvent_m_y_get", (PyCFunction)_wrap_MouseEvent_m_y_get, METH_O, NULL},
56928 { (char *)"MouseEvent_m_leftDown_set", _wrap_MouseEvent_m_leftDown_set, METH_VARARGS, NULL},
56929 { (char *)"MouseEvent_m_leftDown_get", (PyCFunction)_wrap_MouseEvent_m_leftDown_get, METH_O, NULL},
56930 { (char *)"MouseEvent_m_middleDown_set", _wrap_MouseEvent_m_middleDown_set, METH_VARARGS, NULL},
56931 { (char *)"MouseEvent_m_middleDown_get", (PyCFunction)_wrap_MouseEvent_m_middleDown_get, METH_O, NULL},
56932 { (char *)"MouseEvent_m_rightDown_set", _wrap_MouseEvent_m_rightDown_set, METH_VARARGS, NULL},
56933 { (char *)"MouseEvent_m_rightDown_get", (PyCFunction)_wrap_MouseEvent_m_rightDown_get, METH_O, NULL},
56934 { (char *)"MouseEvent_m_controlDown_set", _wrap_MouseEvent_m_controlDown_set, METH_VARARGS, NULL},
56935 { (char *)"MouseEvent_m_controlDown_get", (PyCFunction)_wrap_MouseEvent_m_controlDown_get, METH_O, NULL},
56936 { (char *)"MouseEvent_m_shiftDown_set", _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS, NULL},
56937 { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction)_wrap_MouseEvent_m_shiftDown_get, METH_O, NULL},
56938 { (char *)"MouseEvent_m_altDown_set", _wrap_MouseEvent_m_altDown_set, METH_VARARGS, NULL},
56939 { (char *)"MouseEvent_m_altDown_get", (PyCFunction)_wrap_MouseEvent_m_altDown_get, METH_O, NULL},
56940 { (char *)"MouseEvent_m_metaDown_set", _wrap_MouseEvent_m_metaDown_set, METH_VARARGS, NULL},
56941 { (char *)"MouseEvent_m_metaDown_get", (PyCFunction)_wrap_MouseEvent_m_metaDown_get, METH_O, NULL},
56942 { (char *)"MouseEvent_m_wheelRotation_set", _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS, NULL},
56943 { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction)_wrap_MouseEvent_m_wheelRotation_get, METH_O, NULL},
56944 { (char *)"MouseEvent_m_wheelDelta_set", _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS, NULL},
56945 { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction)_wrap_MouseEvent_m_wheelDelta_get, METH_O, NULL},
56946 { (char *)"MouseEvent_m_linesPerAction_set", _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS, NULL},
56947 { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction)_wrap_MouseEvent_m_linesPerAction_get, METH_O, NULL},
56948 { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL},
56949 { (char *)"MouseEvent_swiginit", MouseEvent_swiginit, METH_VARARGS, NULL},
56950 { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56951 { (char *)"SetCursorEvent_GetX", (PyCFunction)_wrap_SetCursorEvent_GetX, METH_O, NULL},
56952 { (char *)"SetCursorEvent_GetY", (PyCFunction)_wrap_SetCursorEvent_GetY, METH_O, NULL},
56953 { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
56954 { (char *)"SetCursorEvent_GetCursor", (PyCFunction)_wrap_SetCursorEvent_GetCursor, METH_O, NULL},
56955 { (char *)"SetCursorEvent_HasCursor", (PyCFunction)_wrap_SetCursorEvent_HasCursor, METH_O, NULL},
56956 { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL},
56957 { (char *)"SetCursorEvent_swiginit", SetCursorEvent_swiginit, METH_VARARGS, NULL},
56958 { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56959 { (char *)"KeyEvent_GetModifiers", (PyCFunction)_wrap_KeyEvent_GetModifiers, METH_O, NULL},
56960 { (char *)"KeyEvent_ControlDown", (PyCFunction)_wrap_KeyEvent_ControlDown, METH_O, NULL},
56961 { (char *)"KeyEvent_MetaDown", (PyCFunction)_wrap_KeyEvent_MetaDown, METH_O, NULL},
56962 { (char *)"KeyEvent_AltDown", (PyCFunction)_wrap_KeyEvent_AltDown, METH_O, NULL},
56963 { (char *)"KeyEvent_ShiftDown", (PyCFunction)_wrap_KeyEvent_ShiftDown, METH_O, NULL},
56964 { (char *)"KeyEvent_CmdDown", (PyCFunction)_wrap_KeyEvent_CmdDown, METH_O, NULL},
56965 { (char *)"KeyEvent_HasModifiers", (PyCFunction)_wrap_KeyEvent_HasModifiers, METH_O, NULL},
56966 { (char *)"KeyEvent_GetKeyCode", (PyCFunction)_wrap_KeyEvent_GetKeyCode, METH_O, NULL},
56967 { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction)_wrap_KeyEvent_GetUnicodeKey, METH_O, NULL},
b850e7f3 56968 { (char *)"KeyEvent_SetUnicodeKey", (PyCFunction) _wrap_KeyEvent_SetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
56969 { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction)_wrap_KeyEvent_GetRawKeyCode, METH_O, NULL},
56970 { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction)_wrap_KeyEvent_GetRawKeyFlags, METH_O, NULL},
56971 { (char *)"KeyEvent_GetPosition", (PyCFunction)_wrap_KeyEvent_GetPosition, METH_O, NULL},
56972 { (char *)"KeyEvent_GetPositionTuple", (PyCFunction)_wrap_KeyEvent_GetPositionTuple, METH_O, NULL},
56973 { (char *)"KeyEvent_GetX", (PyCFunction)_wrap_KeyEvent_GetX, METH_O, NULL},
56974 { (char *)"KeyEvent_GetY", (PyCFunction)_wrap_KeyEvent_GetY, METH_O, NULL},
56975 { (char *)"KeyEvent_m_x_set", _wrap_KeyEvent_m_x_set, METH_VARARGS, NULL},
56976 { (char *)"KeyEvent_m_x_get", (PyCFunction)_wrap_KeyEvent_m_x_get, METH_O, NULL},
56977 { (char *)"KeyEvent_m_y_set", _wrap_KeyEvent_m_y_set, METH_VARARGS, NULL},
56978 { (char *)"KeyEvent_m_y_get", (PyCFunction)_wrap_KeyEvent_m_y_get, METH_O, NULL},
56979 { (char *)"KeyEvent_m_keyCode_set", _wrap_KeyEvent_m_keyCode_set, METH_VARARGS, NULL},
56980 { (char *)"KeyEvent_m_keyCode_get", (PyCFunction)_wrap_KeyEvent_m_keyCode_get, METH_O, NULL},
56981 { (char *)"KeyEvent_m_controlDown_set", _wrap_KeyEvent_m_controlDown_set, METH_VARARGS, NULL},
56982 { (char *)"KeyEvent_m_controlDown_get", (PyCFunction)_wrap_KeyEvent_m_controlDown_get, METH_O, NULL},
56983 { (char *)"KeyEvent_m_shiftDown_set", _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS, NULL},
56984 { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction)_wrap_KeyEvent_m_shiftDown_get, METH_O, NULL},
56985 { (char *)"KeyEvent_m_altDown_set", _wrap_KeyEvent_m_altDown_set, METH_VARARGS, NULL},
56986 { (char *)"KeyEvent_m_altDown_get", (PyCFunction)_wrap_KeyEvent_m_altDown_get, METH_O, NULL},
56987 { (char *)"KeyEvent_m_metaDown_set", _wrap_KeyEvent_m_metaDown_set, METH_VARARGS, NULL},
56988 { (char *)"KeyEvent_m_metaDown_get", (PyCFunction)_wrap_KeyEvent_m_metaDown_get, METH_O, NULL},
56989 { (char *)"KeyEvent_m_scanCode_set", _wrap_KeyEvent_m_scanCode_set, METH_VARARGS, NULL},
56990 { (char *)"KeyEvent_m_scanCode_get", (PyCFunction)_wrap_KeyEvent_m_scanCode_get, METH_O, NULL},
56991 { (char *)"KeyEvent_m_rawCode_set", _wrap_KeyEvent_m_rawCode_set, METH_VARARGS, NULL},
56992 { (char *)"KeyEvent_m_rawCode_get", (PyCFunction)_wrap_KeyEvent_m_rawCode_get, METH_O, NULL},
56993 { (char *)"KeyEvent_m_rawFlags_set", _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS, NULL},
56994 { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction)_wrap_KeyEvent_m_rawFlags_get, METH_O, NULL},
56995 { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL},
56996 { (char *)"KeyEvent_swiginit", KeyEvent_swiginit, METH_VARARGS, NULL},
56997 { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56998 { (char *)"SizeEvent_GetSize", (PyCFunction)_wrap_SizeEvent_GetSize, METH_O, NULL},
56999 { (char *)"SizeEvent_GetRect", (PyCFunction)_wrap_SizeEvent_GetRect, METH_O, NULL},
57000 { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL},
57001 { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
57002 { (char *)"SizeEvent_m_size_set", _wrap_SizeEvent_m_size_set, METH_VARARGS, NULL},
57003 { (char *)"SizeEvent_m_size_get", (PyCFunction)_wrap_SizeEvent_m_size_get, METH_O, NULL},
57004 { (char *)"SizeEvent_m_rect_set", _wrap_SizeEvent_m_rect_set, METH_VARARGS, NULL},
57005 { (char *)"SizeEvent_m_rect_get", (PyCFunction)_wrap_SizeEvent_m_rect_get, METH_O, NULL},
57006 { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL},
57007 { (char *)"SizeEvent_swiginit", SizeEvent_swiginit, METH_VARARGS, NULL},
57008 { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57009 { (char *)"MoveEvent_GetPosition", (PyCFunction)_wrap_MoveEvent_GetPosition, METH_O, NULL},
57010 { (char *)"MoveEvent_GetRect", (PyCFunction)_wrap_MoveEvent_GetRect, METH_O, NULL},
57011 { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL},
57012 { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
57013 { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL},
57014 { (char *)"MoveEvent_swiginit", MoveEvent_swiginit, METH_VARARGS, NULL},
57015 { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57016 { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL},
57017 { (char *)"PaintEvent_swiginit", PaintEvent_swiginit, METH_VARARGS, NULL},
57018 { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57019 { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL},
57020 { (char *)"NcPaintEvent_swiginit", NcPaintEvent_swiginit, METH_VARARGS, NULL},
57021 { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57022 { (char *)"EraseEvent_GetDC", (PyCFunction)_wrap_EraseEvent_GetDC, METH_O, NULL},
57023 { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL},
57024 { (char *)"EraseEvent_swiginit", EraseEvent_swiginit, METH_VARARGS, NULL},
57025 { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57026 { (char *)"FocusEvent_GetWindow", (PyCFunction)_wrap_FocusEvent_GetWindow, METH_O, NULL},
57027 { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57028 { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL},
57029 { (char *)"FocusEvent_swiginit", FocusEvent_swiginit, METH_VARARGS, NULL},
57030 { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57031 { (char *)"ChildFocusEvent_GetWindow", (PyCFunction)_wrap_ChildFocusEvent_GetWindow, METH_O, NULL},
57032 { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL},
57033 { (char *)"ChildFocusEvent_swiginit", ChildFocusEvent_swiginit, METH_VARARGS, NULL},
57034 { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57035 { (char *)"ActivateEvent_GetActive", (PyCFunction)_wrap_ActivateEvent_GetActive, METH_O, NULL},
57036 { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL},
57037 { (char *)"ActivateEvent_swiginit", ActivateEvent_swiginit, METH_VARARGS, NULL},
57038 { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57039 { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL},
57040 { (char *)"InitDialogEvent_swiginit", InitDialogEvent_swiginit, METH_VARARGS, NULL},
57041 { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57042 { (char *)"MenuEvent_GetMenuId", (PyCFunction)_wrap_MenuEvent_GetMenuId, METH_O, NULL},
57043 { (char *)"MenuEvent_IsPopup", (PyCFunction)_wrap_MenuEvent_IsPopup, METH_O, NULL},
57044 { (char *)"MenuEvent_GetMenu", (PyCFunction)_wrap_MenuEvent_GetMenu, METH_O, NULL},
57045 { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL},
57046 { (char *)"MenuEvent_swiginit", MenuEvent_swiginit, METH_VARARGS, NULL},
57047 { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57048 { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL},
57049 { (char *)"CloseEvent_GetLoggingOff", (PyCFunction)_wrap_CloseEvent_GetLoggingOff, METH_O, NULL},
57050 { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL},
57051 { (char *)"CloseEvent_GetVeto", (PyCFunction)_wrap_CloseEvent_GetVeto, METH_O, NULL},
57052 { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL},
57053 { (char *)"CloseEvent_CanVeto", (PyCFunction)_wrap_CloseEvent_CanVeto, METH_O, NULL},
57054 { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL},
57055 { (char *)"CloseEvent_swiginit", CloseEvent_swiginit, METH_VARARGS, NULL},
57056 { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57057 { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL},
57058 { (char *)"ShowEvent_GetShow", (PyCFunction)_wrap_ShowEvent_GetShow, METH_O, NULL},
57059 { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL},
57060 { (char *)"ShowEvent_swiginit", ShowEvent_swiginit, METH_VARARGS, NULL},
57061 { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57062 { (char *)"IconizeEvent_Iconized", (PyCFunction)_wrap_IconizeEvent_Iconized, METH_O, NULL},
57063 { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL},
57064 { (char *)"IconizeEvent_swiginit", IconizeEvent_swiginit, METH_VARARGS, NULL},
57065 { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57066 { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL},
57067 { (char *)"MaximizeEvent_swiginit", MaximizeEvent_swiginit, METH_VARARGS, NULL},
57068 { (char *)"DropFilesEvent_GetPosition", (PyCFunction)_wrap_DropFilesEvent_GetPosition, METH_O, NULL},
57069 { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction)_wrap_DropFilesEvent_GetNumberOfFiles, METH_O, NULL},
57070 { (char *)"DropFilesEvent_GetFiles", (PyCFunction)_wrap_DropFilesEvent_GetFiles, METH_O, NULL},
57071 { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL},
57072 { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57073 { (char *)"UpdateUIEvent_GetChecked", (PyCFunction)_wrap_UpdateUIEvent_GetChecked, METH_O, NULL},
57074 { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction)_wrap_UpdateUIEvent_GetEnabled, METH_O, NULL},
57075 { (char *)"UpdateUIEvent_GetShown", (PyCFunction)_wrap_UpdateUIEvent_GetShown, METH_O, NULL},
57076 { (char *)"UpdateUIEvent_GetText", (PyCFunction)_wrap_UpdateUIEvent_GetText, METH_O, NULL},
57077 { (char *)"UpdateUIEvent_GetSetText", (PyCFunction)_wrap_UpdateUIEvent_GetSetText, METH_O, NULL},
57078 { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction)_wrap_UpdateUIEvent_GetSetChecked, METH_O, NULL},
57079 { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction)_wrap_UpdateUIEvent_GetSetEnabled, METH_O, NULL},
57080 { (char *)"UpdateUIEvent_GetSetShown", (PyCFunction)_wrap_UpdateUIEvent_GetSetShown, METH_O, NULL},
57081 { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL},
57082 { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
57083 { (char *)"UpdateUIEvent_Show", (PyCFunction) _wrap_UpdateUIEvent_Show, METH_VARARGS | METH_KEYWORDS, NULL},
57084 { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
57085 { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL},
57086 { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction)_wrap_UpdateUIEvent_GetUpdateInterval, METH_NOARGS, NULL},
57087 { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL},
57088 { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction)_wrap_UpdateUIEvent_ResetUpdateTime, METH_NOARGS, NULL},
57089 { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL},
57090 { (char *)"UpdateUIEvent_GetMode", (PyCFunction)_wrap_UpdateUIEvent_GetMode, METH_NOARGS, NULL},
57091 { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL},
57092 { (char *)"UpdateUIEvent_swiginit", UpdateUIEvent_swiginit, METH_VARARGS, NULL},
57093 { (char *)"new_SysColourChangedEvent", (PyCFunction)_wrap_new_SysColourChangedEvent, METH_NOARGS, NULL},
57094 { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL},
57095 { (char *)"SysColourChangedEvent_swiginit", SysColourChangedEvent_swiginit, METH_VARARGS, NULL},
57096 { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57097 { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction)_wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_O, NULL},
57098 { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL},
57099 { (char *)"MouseCaptureChangedEvent_swiginit", MouseCaptureChangedEvent_swiginit, METH_VARARGS, NULL},
34e0a3bb
RD
57100 { (char *)"new_MouseCaptureLostEvent", (PyCFunction) _wrap_new_MouseCaptureLostEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57101 { (char *)"MouseCaptureLostEvent_swigregister", MouseCaptureLostEvent_swigregister, METH_VARARGS, NULL},
57102 { (char *)"MouseCaptureLostEvent_swiginit", MouseCaptureLostEvent_swiginit, METH_VARARGS, NULL},
1bd55598
RD
57103 { (char *)"new_DisplayChangedEvent", (PyCFunction)_wrap_new_DisplayChangedEvent, METH_NOARGS, NULL},
57104 { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL},
57105 { (char *)"DisplayChangedEvent_swiginit", DisplayChangedEvent_swiginit, METH_VARARGS, NULL},
57106 { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57107 { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57108 { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction)_wrap_PaletteChangedEvent_GetChangedWindow, METH_O, NULL},
57109 { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL},
57110 { (char *)"PaletteChangedEvent_swiginit", PaletteChangedEvent_swiginit, METH_VARARGS, NULL},
57111 { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57112 { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL},
57113 { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction)_wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_O, NULL},
57114 { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL},
57115 { (char *)"QueryNewPaletteEvent_swiginit", QueryNewPaletteEvent_swiginit, METH_VARARGS, NULL},
57116 { (char *)"new_NavigationKeyEvent", (PyCFunction)_wrap_new_NavigationKeyEvent, METH_NOARGS, NULL},
57117 { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction)_wrap_NavigationKeyEvent_GetDirection, METH_O, NULL},
57118 { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL},
57119 { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction)_wrap_NavigationKeyEvent_IsWindowChange, METH_O, NULL},
57120 { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL},
57121 { (char *)"NavigationKeyEvent_IsFromTab", (PyCFunction)_wrap_NavigationKeyEvent_IsFromTab, METH_O, NULL},
57122 { (char *)"NavigationKeyEvent_SetFromTab", (PyCFunction) _wrap_NavigationKeyEvent_SetFromTab, METH_VARARGS | METH_KEYWORDS, NULL},
57123 { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
57124 { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction)_wrap_NavigationKeyEvent_GetCurrentFocus, METH_O, NULL},
57125 { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL},
57126 { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL},
57127 { (char *)"NavigationKeyEvent_swiginit", NavigationKeyEvent_swiginit, METH_VARARGS, NULL},
57128 { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57129 { (char *)"WindowCreateEvent_GetWindow", (PyCFunction)_wrap_WindowCreateEvent_GetWindow, METH_O, NULL},
57130 { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL},
57131 { (char *)"WindowCreateEvent_swiginit", WindowCreateEvent_swiginit, METH_VARARGS, NULL},
57132 { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57133 { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction)_wrap_WindowDestroyEvent_GetWindow, METH_O, NULL},
57134 { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL},
57135 { (char *)"WindowDestroyEvent_swiginit", WindowDestroyEvent_swiginit, METH_VARARGS, NULL},
57136 { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57137 { (char *)"ContextMenuEvent_GetPosition", (PyCFunction)_wrap_ContextMenuEvent_GetPosition, METH_O, NULL},
57138 { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
57139 { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL},
57140 { (char *)"ContextMenuEvent_swiginit", ContextMenuEvent_swiginit, METH_VARARGS, NULL},
57141 { (char *)"new_IdleEvent", (PyCFunction)_wrap_new_IdleEvent, METH_NOARGS, NULL},
57142 { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL},
57143 { (char *)"IdleEvent_MoreRequested", (PyCFunction)_wrap_IdleEvent_MoreRequested, METH_O, NULL},
57144 { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL},
57145 { (char *)"IdleEvent_GetMode", (PyCFunction)_wrap_IdleEvent_GetMode, METH_NOARGS, NULL},
57146 { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL},
57147 { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL},
57148 { (char *)"IdleEvent_swiginit", IdleEvent_swiginit, METH_VARARGS, NULL},
2131d850
RD
57149 { (char *)"new_ClipboardTextEvent", (PyCFunction) _wrap_new_ClipboardTextEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57150 { (char *)"ClipboardTextEvent_swigregister", ClipboardTextEvent_swigregister, METH_VARARGS, NULL},
57151 { (char *)"ClipboardTextEvent_swiginit", ClipboardTextEvent_swiginit, METH_VARARGS, NULL},
1bd55598
RD
57152 { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57153 { (char *)"delete_PyEvent", (PyCFunction)_wrap_delete_PyEvent, METH_O, NULL},
57154 { (char *)"PyEvent__SetSelf", (PyCFunction) _wrap_PyEvent__SetSelf, METH_VARARGS | METH_KEYWORDS, NULL},
57155 { (char *)"PyEvent__GetSelf", (PyCFunction)_wrap_PyEvent__GetSelf, METH_O, NULL},
57156 { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL},
57157 { (char *)"PyEvent_swiginit", PyEvent_swiginit, METH_VARARGS, NULL},
57158 { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57159 { (char *)"delete_PyCommandEvent", (PyCFunction)_wrap_delete_PyCommandEvent, METH_O, NULL},
57160 { (char *)"PyCommandEvent__SetSelf", (PyCFunction) _wrap_PyCommandEvent__SetSelf, METH_VARARGS | METH_KEYWORDS, NULL},
57161 { (char *)"PyCommandEvent__GetSelf", (PyCFunction)_wrap_PyCommandEvent__GetSelf, METH_O, NULL},
57162 { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL},
57163 { (char *)"PyCommandEvent_swiginit", PyCommandEvent_swiginit, METH_VARARGS, NULL},
57164 { (char *)"new_DateEvent", (PyCFunction) _wrap_new_DateEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57165 { (char *)"DateEvent_GetDate", (PyCFunction)_wrap_DateEvent_GetDate, METH_O, NULL},
57166 { (char *)"DateEvent_SetDate", (PyCFunction) _wrap_DateEvent_SetDate, METH_VARARGS | METH_KEYWORDS, NULL},
57167 { (char *)"DateEvent_swigregister", DateEvent_swigregister, METH_VARARGS, NULL},
57168 { (char *)"DateEvent_swiginit", DateEvent_swiginit, METH_VARARGS, NULL},
57169 { (char *)"new_PyApp", (PyCFunction)_wrap_new_PyApp, METH_NOARGS, NULL},
57170 { (char *)"delete_PyApp", (PyCFunction)_wrap_delete_PyApp, METH_O, NULL},
57171 { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
57172 { (char *)"PyApp_GetAppName", (PyCFunction)_wrap_PyApp_GetAppName, METH_O, NULL},
57173 { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL},
57174 { (char *)"PyApp_GetClassName", (PyCFunction)_wrap_PyApp_GetClassName, METH_O, NULL},
57175 { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL},
57176 { (char *)"PyApp_GetVendorName", (PyCFunction)_wrap_PyApp_GetVendorName, METH_O, NULL},
57177 { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL},
57178 { (char *)"PyApp_GetTraits", (PyCFunction)_wrap_PyApp_GetTraits, METH_O, NULL},
57179 { (char *)"PyApp_ProcessPendingEvents", (PyCFunction)_wrap_PyApp_ProcessPendingEvents, METH_O, NULL},
57180 { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL},
57181 { (char *)"PyApp_WakeUpIdle", (PyCFunction)_wrap_PyApp_WakeUpIdle, METH_O, NULL},
57182 { (char *)"PyApp_IsMainLoopRunning", (PyCFunction)_wrap_PyApp_IsMainLoopRunning, METH_NOARGS, NULL},
57183 { (char *)"PyApp_MainLoop", (PyCFunction)_wrap_PyApp_MainLoop, METH_O, NULL},
57184 { (char *)"PyApp_Exit", (PyCFunction)_wrap_PyApp_Exit, METH_O, NULL},
ac5d357a 57185 { (char *)"PyApp_GetLayoutDirection", (PyCFunction)_wrap_PyApp_GetLayoutDirection, METH_O, NULL},
1bd55598
RD
57186 { (char *)"PyApp_ExitMainLoop", (PyCFunction)_wrap_PyApp_ExitMainLoop, METH_O, NULL},
57187 { (char *)"PyApp_Pending", (PyCFunction)_wrap_PyApp_Pending, METH_O, NULL},
57188 { (char *)"PyApp_Dispatch", (PyCFunction)_wrap_PyApp_Dispatch, METH_O, NULL},
57189 { (char *)"PyApp_ProcessIdle", (PyCFunction)_wrap_PyApp_ProcessIdle, METH_O, NULL},
57190 { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL},
57191 { (char *)"PyApp_IsActive", (PyCFunction)_wrap_PyApp_IsActive, METH_O, NULL},
57192 { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57193 { (char *)"PyApp_GetTopWindow", (PyCFunction)_wrap_PyApp_GetTopWindow, METH_O, NULL},
57194 { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL},
57195 { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction)_wrap_PyApp_GetExitOnFrameDelete, METH_O, NULL},
57196 { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL},
57197 { (char *)"PyApp_GetUseBestVisual", (PyCFunction)_wrap_PyApp_GetUseBestVisual, METH_O, NULL},
57198 { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL},
57199 { (char *)"PyApp_GetPrintMode", (PyCFunction)_wrap_PyApp_GetPrintMode, METH_O, NULL},
57200 { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL},
57201 { (char *)"PyApp_GetAssertMode", (PyCFunction)_wrap_PyApp_GetAssertMode, METH_O, NULL},
57202 { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction)_wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_NOARGS, NULL},
57203 { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction)_wrap_PyApp_GetMacAboutMenuItemId, METH_NOARGS, NULL},
57204 { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction)_wrap_PyApp_GetMacPreferencesMenuItemId, METH_NOARGS, NULL},
57205 { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction)_wrap_PyApp_GetMacExitMenuItemId, METH_NOARGS, NULL},
57206 { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction)_wrap_PyApp_GetMacHelpMenuTitleName, METH_NOARGS, NULL},
57207 { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL},
57208 { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL},
57209 { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL},
57210 { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL},
57211 { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL},
57212 { (char *)"PyApp__BootstrapApp", (PyCFunction)_wrap_PyApp__BootstrapApp, METH_O, NULL},
57213 { (char *)"PyApp_GetComCtl32Version", (PyCFunction)_wrap_PyApp_GetComCtl32Version, METH_NOARGS, NULL},
33d6fd3b 57214 { (char *)"PyApp_IsDisplayAvailable", (PyCFunction)_wrap_PyApp_IsDisplayAvailable, METH_NOARGS, NULL},
1bd55598
RD
57215 { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL},
57216 { (char *)"PyApp_swiginit", PyApp_swiginit, METH_VARARGS, NULL},
57217 { (char *)"Exit", (PyCFunction)_wrap_Exit, METH_NOARGS, NULL},
57218 { (char *)"Yield", (PyCFunction)_wrap_Yield, METH_NOARGS, NULL},
57219 { (char *)"YieldIfNeeded", (PyCFunction)_wrap_YieldIfNeeded, METH_NOARGS, NULL},
57220 { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL},
57221 { (char *)"WakeUpIdle", (PyCFunction)_wrap_WakeUpIdle, METH_NOARGS, NULL},
57222 { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57223 { (char *)"App_CleanUp", (PyCFunction)_wrap_App_CleanUp, METH_NOARGS, NULL},
57224 { (char *)"GetApp", (PyCFunction)_wrap_GetApp, METH_NOARGS, NULL},
57225 { (char *)"SetDefaultPyEncoding", (PyCFunction) _wrap_SetDefaultPyEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
57226 { (char *)"GetDefaultPyEncoding", (PyCFunction)_wrap_GetDefaultPyEncoding, METH_NOARGS, NULL},
57227 { (char *)"new_EventLoop", (PyCFunction)_wrap_new_EventLoop, METH_NOARGS, NULL},
57228 { (char *)"delete_EventLoop", (PyCFunction)_wrap_delete_EventLoop, METH_O, NULL},
57229 { (char *)"EventLoop_Run", (PyCFunction)_wrap_EventLoop_Run, METH_O, NULL},
57230 { (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL},
57231 { (char *)"EventLoop_Pending", (PyCFunction)_wrap_EventLoop_Pending, METH_O, NULL},
57232 { (char *)"EventLoop_Dispatch", (PyCFunction)_wrap_EventLoop_Dispatch, METH_O, NULL},
57233 { (char *)"EventLoop_IsRunning", (PyCFunction)_wrap_EventLoop_IsRunning, METH_O, NULL},
57234 { (char *)"EventLoop_GetActive", (PyCFunction)_wrap_EventLoop_GetActive, METH_NOARGS, NULL},
57235 { (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL},
57236 { (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL},
57237 { (char *)"EventLoop_swiginit", EventLoop_swiginit, METH_VARARGS, NULL},
57238 { (char *)"new_EventLoopActivator", (PyCFunction) _wrap_new_EventLoopActivator, METH_VARARGS | METH_KEYWORDS, NULL},
57239 { (char *)"delete_EventLoopActivator", (PyCFunction)_wrap_delete_EventLoopActivator, METH_O, NULL},
57240 { (char *)"EventLoopActivator_swigregister", EventLoopActivator_swigregister, METH_VARARGS, NULL},
57241 { (char *)"EventLoopActivator_swiginit", EventLoopActivator_swiginit, METH_VARARGS, NULL},
57242 { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL},
57243 { (char *)"delete_AcceleratorEntry", (PyCFunction)_wrap_delete_AcceleratorEntry, METH_O, NULL},
57244 { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL},
ac5d357a 57245 { (char *)"AcceleratorEntry_Create", (PyCFunction) _wrap_AcceleratorEntry_Create, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57246 { (char *)"AcceleratorEntry_GetFlags", (PyCFunction)_wrap_AcceleratorEntry_GetFlags, METH_O, NULL},
57247 { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction)_wrap_AcceleratorEntry_GetKeyCode, METH_O, NULL},
57248 { (char *)"AcceleratorEntry_GetCommand", (PyCFunction)_wrap_AcceleratorEntry_GetCommand, METH_O, NULL},
ac5d357a
RD
57249 { (char *)"AcceleratorEntry_IsOk", (PyCFunction)_wrap_AcceleratorEntry_IsOk, METH_O, NULL},
57250 { (char *)"AcceleratorEntry_ToString", (PyCFunction)_wrap_AcceleratorEntry_ToString, METH_O, NULL},
57251 { (char *)"AcceleratorEntry_FromString", (PyCFunction) _wrap_AcceleratorEntry_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57252 { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL},
57253 { (char *)"AcceleratorEntry_swiginit", AcceleratorEntry_swiginit, METH_VARARGS, NULL},
57254 { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL},
57255 { (char *)"delete_AcceleratorTable", (PyCFunction)_wrap_delete_AcceleratorTable, METH_O, NULL},
b39fe951 57256 { (char *)"AcceleratorTable_IsOk", (PyCFunction)_wrap_AcceleratorTable_IsOk, METH_O, NULL},
1bd55598
RD
57257 { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL},
57258 { (char *)"AcceleratorTable_swiginit", AcceleratorTable_swiginit, METH_VARARGS, NULL},
57259 { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL},
57260 { (char *)"new_VisualAttributes", (PyCFunction)_wrap_new_VisualAttributes, METH_NOARGS, NULL},
57261 { (char *)"delete_VisualAttributes", (PyCFunction)_wrap_delete_VisualAttributes, METH_O, NULL},
57262 { (char *)"VisualAttributes_font_set", _wrap_VisualAttributes_font_set, METH_VARARGS, NULL},
57263 { (char *)"VisualAttributes_font_get", (PyCFunction)_wrap_VisualAttributes_font_get, METH_O, NULL},
57264 { (char *)"VisualAttributes_colFg_set", _wrap_VisualAttributes_colFg_set, METH_VARARGS, NULL},
57265 { (char *)"VisualAttributes_colFg_get", (PyCFunction)_wrap_VisualAttributes_colFg_get, METH_O, NULL},
57266 { (char *)"VisualAttributes_colBg_set", _wrap_VisualAttributes_colBg_set, METH_VARARGS, NULL},
57267 { (char *)"VisualAttributes_colBg_get", (PyCFunction)_wrap_VisualAttributes_colBg_get, METH_O, NULL},
57268 { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL},
57269 { (char *)"VisualAttributes_swiginit", VisualAttributes_swiginit, METH_VARARGS, NULL},
57270 { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL},
57271 { (char *)"new_PreWindow", (PyCFunction)_wrap_new_PreWindow, METH_NOARGS, NULL},
57272 { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL},
57273 { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL},
57274 { (char *)"Window_Destroy", (PyCFunction)_wrap_Window_Destroy, METH_O, NULL},
57275 { (char *)"Window_DestroyChildren", (PyCFunction)_wrap_Window_DestroyChildren, METH_O, NULL},
57276 { (char *)"Window_IsBeingDeleted", (PyCFunction)_wrap_Window_IsBeingDeleted, METH_O, NULL},
57277 { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
57278 { (char *)"Window_GetLabel", (PyCFunction)_wrap_Window_GetLabel, METH_O, NULL},
57279 { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL},
57280 { (char *)"Window_GetName", (PyCFunction)_wrap_Window_GetName, METH_O, NULL},
57281 { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL},
57282 { (char *)"Window_GetWindowVariant", (PyCFunction)_wrap_Window_GetWindowVariant, METH_O, NULL},
57283 { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
57284 { (char *)"Window_GetId", (PyCFunction)_wrap_Window_GetId, METH_O, NULL},
57285 { (char *)"Window_NewControlId", (PyCFunction)_wrap_Window_NewControlId, METH_NOARGS, NULL},
57286 { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL},
57287 { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL},
ac5d357a
RD
57288 { (char *)"Window_GetLayoutDirection", (PyCFunction)_wrap_Window_GetLayoutDirection, METH_O, NULL},
57289 { (char *)"Window_SetLayoutDirection", (PyCFunction) _wrap_Window_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
57290 { (char *)"Window_AdjustForLayoutDirection", (PyCFunction) _wrap_Window_AdjustForLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57291 { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
57292 { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL},
57293 { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL},
57294 { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
57295 { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL},
57296 { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL},
580080c5 57297 { (char *)"Window_SetInitialSize", (PyCFunction) _wrap_Window_SetInitialSize, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57298 { (char *)"Window_Raise", (PyCFunction)_wrap_Window_Raise, METH_O, NULL},
57299 { (char *)"Window_Lower", (PyCFunction)_wrap_Window_Lower, METH_O, NULL},
57300 { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
57301 { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
57302 { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL},
57303 { (char *)"Window_GetPosition", (PyCFunction)_wrap_Window_GetPosition, METH_O, NULL},
57304 { (char *)"Window_GetPositionTuple", (PyCFunction)_wrap_Window_GetPositionTuple, METH_O, NULL},
1c71765a
RD
57305 { (char *)"Window_GetScreenPosition", (PyCFunction)_wrap_Window_GetScreenPosition, METH_O, NULL},
57306 { (char *)"Window_GetScreenPositionTuple", (PyCFunction)_wrap_Window_GetScreenPositionTuple, METH_O, NULL},
57307 { (char *)"Window_GetScreenRect", (PyCFunction)_wrap_Window_GetScreenRect, METH_O, NULL},
1bd55598
RD
57308 { (char *)"Window_GetSize", (PyCFunction)_wrap_Window_GetSize, METH_O, NULL},
57309 { (char *)"Window_GetSizeTuple", (PyCFunction)_wrap_Window_GetSizeTuple, METH_O, NULL},
57310 { (char *)"Window_GetRect", (PyCFunction)_wrap_Window_GetRect, METH_O, NULL},
57311 { (char *)"Window_GetClientSize", (PyCFunction)_wrap_Window_GetClientSize, METH_O, NULL},
57312 { (char *)"Window_GetClientSizeTuple", (PyCFunction)_wrap_Window_GetClientSizeTuple, METH_O, NULL},
57313 { (char *)"Window_GetClientAreaOrigin", (PyCFunction)_wrap_Window_GetClientAreaOrigin, METH_O, NULL},
57314 { (char *)"Window_GetClientRect", (PyCFunction)_wrap_Window_GetClientRect, METH_O, NULL},
57315 { (char *)"Window_GetBestSize", (PyCFunction)_wrap_Window_GetBestSize, METH_O, NULL},
57316 { (char *)"Window_GetBestSizeTuple", (PyCFunction)_wrap_Window_GetBestSizeTuple, METH_O, NULL},
57317 { (char *)"Window_InvalidateBestSize", (PyCFunction)_wrap_Window_InvalidateBestSize, METH_O, NULL},
57318 { (char *)"Window_CacheBestSize", (PyCFunction) _wrap_Window_CacheBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
580080c5 57319 { (char *)"Window_GetEffectiveMinSize", (PyCFunction)_wrap_Window_GetEffectiveMinSize, METH_O, NULL},
1bd55598
RD
57320 { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL},
57321 { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL},
57322 { (char *)"Window_Fit", (PyCFunction)_wrap_Window_Fit, METH_O, NULL},
57323 { (char *)"Window_FitInside", (PyCFunction)_wrap_Window_FitInside, METH_O, NULL},
57324 { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL},
57325 { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL},
57326 { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL},
57327 { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL},
57328 { (char *)"Window_GetMaxSize", (PyCFunction)_wrap_Window_GetMaxSize, METH_O, NULL},
57329 { (char *)"Window_GetMinSize", (PyCFunction)_wrap_Window_GetMinSize, METH_O, NULL},
57330 { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL},
57331 { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL},
57332 { (char *)"Window_GetMinWidth", (PyCFunction)_wrap_Window_GetMinWidth, METH_O, NULL},
57333 { (char *)"Window_GetMinHeight", (PyCFunction)_wrap_Window_GetMinHeight, METH_O, NULL},
57334 { (char *)"Window_GetMaxWidth", (PyCFunction)_wrap_Window_GetMaxWidth, METH_O, NULL},
57335 { (char *)"Window_GetMaxHeight", (PyCFunction)_wrap_Window_GetMaxHeight, METH_O, NULL},
57336 { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
57337 { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
57338 { (char *)"Window_GetVirtualSize", (PyCFunction)_wrap_Window_GetVirtualSize, METH_O, NULL},
57339 { (char *)"Window_GetVirtualSizeTuple", (PyCFunction)_wrap_Window_GetVirtualSizeTuple, METH_O, NULL},
57340 { (char *)"Window_GetBestVirtualSize", (PyCFunction)_wrap_Window_GetBestVirtualSize, METH_O, NULL},
57341 { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL},
57342 { (char *)"Window_Hide", (PyCFunction)_wrap_Window_Hide, METH_O, NULL},
57343 { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
57344 { (char *)"Window_Disable", (PyCFunction)_wrap_Window_Disable, METH_O, NULL},
57345 { (char *)"Window_IsShown", (PyCFunction)_wrap_Window_IsShown, METH_O, NULL},
57346 { (char *)"Window_IsEnabled", (PyCFunction)_wrap_Window_IsEnabled, METH_O, NULL},
33d6fd3b 57347 { (char *)"Window_IsShownOnScreen", (PyCFunction)_wrap_Window_IsShownOnScreen, METH_O, NULL},
1bd55598
RD
57348 { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL},
57349 { (char *)"Window_GetWindowStyleFlag", (PyCFunction)_wrap_Window_GetWindowStyleFlag, METH_O, NULL},
57350 { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
57351 { (char *)"Window_IsRetained", (PyCFunction)_wrap_Window_IsRetained, METH_O, NULL},
57352 { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL},
57353 { (char *)"Window_GetExtraStyle", (PyCFunction)_wrap_Window_GetExtraStyle, METH_O, NULL},
57354 { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL},
57355 { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
57356 { (char *)"Window_GetThemeEnabled", (PyCFunction)_wrap_Window_GetThemeEnabled, METH_O, NULL},
57357 { (char *)"Window_SetFocus", (PyCFunction)_wrap_Window_SetFocus, METH_O, NULL},
57358 { (char *)"Window_SetFocusFromKbd", (PyCFunction)_wrap_Window_SetFocusFromKbd, METH_O, NULL},
57359 { (char *)"Window_FindFocus", (PyCFunction)_wrap_Window_FindFocus, METH_NOARGS, NULL},
57360 { (char *)"Window_AcceptsFocus", (PyCFunction)_wrap_Window_AcceptsFocus, METH_O, NULL},
57361 { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction)_wrap_Window_AcceptsFocusFromKeyboard, METH_O, NULL},
1bd55598
RD
57362 { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL},
57363 { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL},
57364 { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL},
57365 { (char *)"Window_GetChildren", (PyCFunction)_wrap_Window_GetChildren, METH_O, NULL},
57366 { (char *)"Window_GetParent", (PyCFunction)_wrap_Window_GetParent, METH_O, NULL},
57367 { (char *)"Window_GetGrandParent", (PyCFunction)_wrap_Window_GetGrandParent, METH_O, NULL},
57368 { (char *)"Window_IsTopLevel", (PyCFunction)_wrap_Window_IsTopLevel, METH_O, NULL},
57369 { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL},
57370 { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL},
57371 { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 57372 { (char *)"Window_SetDoubleBuffered", (PyCFunction) _wrap_Window_SetDoubleBuffered, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57373 { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL},
57374 { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL},
57375 { (char *)"Window_GetEventHandler", (PyCFunction)_wrap_Window_GetEventHandler, METH_O, NULL},
57376 { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
57377 { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
57378 { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
57379 { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
57380 { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL},
57381 { (char *)"Window_GetValidator", (PyCFunction)_wrap_Window_GetValidator, METH_O, NULL},
57382 { (char *)"Window_Validate", (PyCFunction)_wrap_Window_Validate, METH_O, NULL},
57383 { (char *)"Window_TransferDataToWindow", (PyCFunction)_wrap_Window_TransferDataToWindow, METH_O, NULL},
57384 { (char *)"Window_TransferDataFromWindow", (PyCFunction)_wrap_Window_TransferDataFromWindow, METH_O, NULL},
57385 { (char *)"Window_InitDialog", (PyCFunction)_wrap_Window_InitDialog, METH_O, NULL},
57386 { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL},
57387 { (char *)"Window_GetAcceleratorTable", (PyCFunction)_wrap_Window_GetAcceleratorTable, METH_O, NULL},
57388 { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL},
57389 { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL},
57390 { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL},
57391 { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL},
57392 { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL},
57393 { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL},
57394 { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL},
57395 { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL},
57396 { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL},
57397 { (char *)"Window_CaptureMouse", (PyCFunction)_wrap_Window_CaptureMouse, METH_O, NULL},
57398 { (char *)"Window_ReleaseMouse", (PyCFunction)_wrap_Window_ReleaseMouse, METH_O, NULL},
57399 { (char *)"Window_GetCapture", (PyCFunction)_wrap_Window_GetCapture, METH_NOARGS, NULL},
57400 { (char *)"Window_HasCapture", (PyCFunction)_wrap_Window_HasCapture, METH_O, NULL},
57401 { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL},
57402 { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL},
57403 { (char *)"Window_Update", (PyCFunction)_wrap_Window_Update, METH_O, NULL},
57404 { (char *)"Window_ClearBackground", (PyCFunction)_wrap_Window_ClearBackground, METH_O, NULL},
57405 { (char *)"Window_Freeze", (PyCFunction)_wrap_Window_Freeze, METH_O, NULL},
33d6fd3b 57406 { (char *)"Window_IsFrozen", (PyCFunction)_wrap_Window_IsFrozen, METH_O, NULL},
1bd55598
RD
57407 { (char *)"Window_Thaw", (PyCFunction)_wrap_Window_Thaw, METH_O, NULL},
57408 { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 57409 { (char *)"Window_IsDoubleBuffered", (PyCFunction)_wrap_Window_IsDoubleBuffered, METH_O, NULL},
1bd55598
RD
57410 { (char *)"Window_GetUpdateRegion", (PyCFunction)_wrap_Window_GetUpdateRegion, METH_O, NULL},
57411 { (char *)"Window_GetUpdateClientRect", (PyCFunction)_wrap_Window_GetUpdateClientRect, METH_O, NULL},
57412 { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL},
57413 { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL},
57414 { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL},
57415 { (char *)"Window_GetDefaultAttributes", (PyCFunction)_wrap_Window_GetDefaultAttributes, METH_O, NULL},
57416 { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
57417 { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
57418 { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
57419 { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
57420 { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
57421 { (char *)"Window_GetBackgroundColour", (PyCFunction)_wrap_Window_GetBackgroundColour, METH_O, NULL},
57422 { (char *)"Window_GetForegroundColour", (PyCFunction)_wrap_Window_GetForegroundColour, METH_O, NULL},
57423 { (char *)"Window_InheritsBackgroundColour", (PyCFunction)_wrap_Window_InheritsBackgroundColour, METH_O, NULL},
57424 { (char *)"Window_UseBgCol", (PyCFunction)_wrap_Window_UseBgCol, METH_O, NULL},
57425 { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL},
57426 { (char *)"Window_GetBackgroundStyle", (PyCFunction)_wrap_Window_GetBackgroundStyle, METH_O, NULL},
57427 { (char *)"Window_HasTransparentBackground", (PyCFunction)_wrap_Window_HasTransparentBackground, METH_O, NULL},
57428 { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
57429 { (char *)"Window_GetCursor", (PyCFunction)_wrap_Window_GetCursor, METH_O, NULL},
57430 { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
57431 { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL},
57432 { (char *)"Window_GetFont", (PyCFunction)_wrap_Window_GetFont, METH_O, NULL},
57433 { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL},
57434 { (char *)"Window_GetCaret", (PyCFunction)_wrap_Window_GetCaret, METH_O, NULL},
57435 { (char *)"Window_GetCharHeight", (PyCFunction)_wrap_Window_GetCharHeight, METH_O, NULL},
57436 { (char *)"Window_GetCharWidth", (PyCFunction)_wrap_Window_GetCharWidth, METH_O, NULL},
57437 { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
57438 { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
57439 { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL},
57440 { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL},
57441 { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL},
57442 { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL},
57443 { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL},
57444 { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
57445 { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL},
57446 { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL},
57447 { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL},
57448 { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL},
1eeb270e 57449 { (char *)"Window_HasMultiplePages", (PyCFunction)_wrap_Window_HasMultiplePages, METH_O, NULL},
1bd55598
RD
57450 { (char *)"Window_GetHandle", (PyCFunction)_wrap_Window_GetHandle, METH_O, NULL},
57451 { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL},
57452 { (char *)"Window_DissociateHandle", (PyCFunction)_wrap_Window_DissociateHandle, METH_O, NULL},
57453 { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL},
57454 { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL},
57455 { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL},
57456 { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL},
57457 { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL},
57458 { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL},
57459 { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57460 { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL},
57461 { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL},
57462 { (char *)"Window_LineUp", (PyCFunction)_wrap_Window_LineUp, METH_O, NULL},
57463 { (char *)"Window_LineDown", (PyCFunction)_wrap_Window_LineDown, METH_O, NULL},
57464 { (char *)"Window_PageUp", (PyCFunction)_wrap_Window_PageUp, METH_O, NULL},
57465 { (char *)"Window_PageDown", (PyCFunction)_wrap_Window_PageDown, METH_O, NULL},
57466 { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
57467 { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 57468 { (char *)"Window_GetHelpTextAtPoint", (PyCFunction) _wrap_Window_GetHelpTextAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57469 { (char *)"Window_GetHelpText", (PyCFunction)_wrap_Window_GetHelpText, METH_O, NULL},
57470 { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL},
57471 { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
57472 { (char *)"Window_GetToolTip", (PyCFunction)_wrap_Window_GetToolTip, METH_O, NULL},
57473 { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
57474 { (char *)"Window_GetDropTarget", (PyCFunction)_wrap_Window_GetDropTarget, METH_O, NULL},
57475 { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS, NULL},
57476 { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL},
57477 { (char *)"Window_GetConstraints", (PyCFunction)_wrap_Window_GetConstraints, METH_O, NULL},
57478 { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL},
57479 { (char *)"Window_GetAutoLayout", (PyCFunction)_wrap_Window_GetAutoLayout, METH_O, NULL},
57480 { (char *)"Window_Layout", (PyCFunction)_wrap_Window_Layout, METH_O, NULL},
57481 { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57482 { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL},
57483 { (char *)"Window_GetSizer", (PyCFunction)_wrap_Window_GetSizer, METH_O, NULL},
57484 { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57485 { (char *)"Window_GetContainingSizer", (PyCFunction)_wrap_Window_GetContainingSizer, METH_O, NULL},
57486 { (char *)"Window_InheritAttributes", (PyCFunction)_wrap_Window_InheritAttributes, METH_O, NULL},
57487 { (char *)"Window_ShouldInheritColours", (PyCFunction)_wrap_Window_ShouldInheritColours, METH_O, NULL},
fc46b7f3
RD
57488 { (char *)"Window_CanSetTransparent", (PyCFunction)_wrap_Window_CanSetTransparent, METH_O, NULL},
57489 { (char *)"Window_SetTransparent", (PyCFunction) _wrap_Window_SetTransparent, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57490 { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL},
57491 { (char *)"Window_swiginit", Window_swiginit, METH_VARARGS, NULL},
57492 { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL},
57493 { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL},
57494 { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL},
57495 { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL},
57496 { (char *)"GetTopLevelWindows", (PyCFunction)_wrap_GetTopLevelWindows, METH_NOARGS, NULL},
57497 { (char *)"new_Validator", (PyCFunction)_wrap_new_Validator, METH_NOARGS, NULL},
57498 { (char *)"Validator_Clone", (PyCFunction)_wrap_Validator_Clone, METH_O, NULL},
57499 { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL},
57500 { (char *)"Validator_TransferToWindow", (PyCFunction)_wrap_Validator_TransferToWindow, METH_O, NULL},
57501 { (char *)"Validator_TransferFromWindow", (PyCFunction)_wrap_Validator_TransferFromWindow, METH_O, NULL},
57502 { (char *)"Validator_GetWindow", (PyCFunction)_wrap_Validator_GetWindow, METH_O, NULL},
57503 { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57504 { (char *)"Validator_IsSilent", (PyCFunction)_wrap_Validator_IsSilent, METH_NOARGS, NULL},
57505 { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL},
57506 { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL},
57507 { (char *)"Validator_swiginit", Validator_swiginit, METH_VARARGS, NULL},
57508 { (char *)"new_PyValidator", (PyCFunction)_wrap_new_PyValidator, METH_NOARGS, NULL},
57509 { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
57510 { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL},
57511 { (char *)"PyValidator_swiginit", PyValidator_swiginit, METH_VARARGS, NULL},
57512 { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL},
57513 { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL},
57514 { (char *)"Menu_AppendSeparator", (PyCFunction)_wrap_Menu_AppendSeparator, METH_O, NULL},
57515 { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL},
57516 { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL},
57517 { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 57518 { (char *)"Menu_AppendSubMenu", (PyCFunction) _wrap_Menu_AppendSubMenu, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57519 { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
57520 { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
57521 { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
57522 { (char *)"Menu_Break", (PyCFunction)_wrap_Menu_Break, METH_O, NULL},
57523 { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
57524 { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
57525 { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL},
57526 { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL},
57527 { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL},
57528 { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL},
57529 { (char *)"Menu_PrependSeparator", (PyCFunction)_wrap_Menu_PrependSeparator, METH_O, NULL},
57530 { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL},
57531 { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL},
57532 { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL},
57533 { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
57534 { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL},
57535 { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
57536 { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
57537 { (char *)"Menu_Destroy", (PyCFunction)_wrap_Menu_Destroy, METH_O, NULL},
57538 { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL},
57539 { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL},
57540 { (char *)"Menu_GetMenuItemCount", (PyCFunction)_wrap_Menu_GetMenuItemCount, METH_O, NULL},
57541 { (char *)"Menu_GetMenuItems", (PyCFunction)_wrap_Menu_GetMenuItems, METH_O, NULL},
57542 { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
57543 { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL},
57544 { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL},
57545 { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
57546 { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
57547 { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL},
57548 { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
57549 { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
57550 { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
57551 { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
57552 { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
57553 { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL},
57554 { (char *)"Menu_GetTitle", (PyCFunction)_wrap_Menu_GetTitle, METH_O, NULL},
57555 { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
57556 { (char *)"Menu_GetEventHandler", (PyCFunction)_wrap_Menu_GetEventHandler, METH_O, NULL},
57557 { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57558 { (char *)"Menu_GetInvokingWindow", (PyCFunction)_wrap_Menu_GetInvokingWindow, METH_O, NULL},
57559 { (char *)"Menu_GetStyle", (PyCFunction)_wrap_Menu_GetStyle, METH_O, NULL},
57560 { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL},
57561 { (char *)"Menu_GetMenuBar", (PyCFunction)_wrap_Menu_GetMenuBar, METH_O, NULL},
57562 { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
57563 { (char *)"Menu_Detach", (PyCFunction)_wrap_Menu_Detach, METH_O, NULL},
57564 { (char *)"Menu_IsAttached", (PyCFunction)_wrap_Menu_IsAttached, METH_O, NULL},
57565 { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL},
57566 { (char *)"Menu_GetParent", (PyCFunction)_wrap_Menu_GetParent, METH_O, NULL},
57567 { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL},
57568 { (char *)"Menu_swiginit", Menu_swiginit, METH_VARARGS, NULL},
57569 { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL},
57570 { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL},
57571 { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
57572 { (char *)"MenuBar_GetMenuCount", (PyCFunction)_wrap_MenuBar_GetMenuCount, METH_O, NULL},
57573 { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
57574 { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
57575 { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
57576 { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL},
57577 { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL},
57578 { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL},
57579 { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL},
57580 { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL},
57581 { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL},
57582 { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL},
57583 { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
57584 { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL},
57585 { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
57586 { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
57587 { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
57588 { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
57589 { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
57590 { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
57591 { (char *)"MenuBar_GetFrame", (PyCFunction)_wrap_MenuBar_GetFrame, METH_O, NULL},
57592 { (char *)"MenuBar_IsAttached", (PyCFunction)_wrap_MenuBar_IsAttached, METH_O, NULL},
57593 { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
57594 { (char *)"MenuBar_Detach", (PyCFunction)_wrap_MenuBar_Detach, METH_O, NULL},
587d0f36 57595 { (char *)"MenuBar_UpdateMenus", (PyCFunction)_wrap_MenuBar_UpdateMenus, METH_O, NULL},
1bd55598
RD
57596 { (char *)"MenuBar_SetAutoWindowMenu", (PyCFunction) _wrap_MenuBar_SetAutoWindowMenu, METH_VARARGS | METH_KEYWORDS, NULL},
57597 { (char *)"MenuBar_GetAutoWindowMenu", (PyCFunction)_wrap_MenuBar_GetAutoWindowMenu, METH_NOARGS, NULL},
57598 { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL},
57599 { (char *)"MenuBar_swiginit", MenuBar_swiginit, METH_VARARGS, NULL},
57600 { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL},
57601 { (char *)"delete_MenuItem", (PyCFunction)_wrap_delete_MenuItem, METH_O, NULL},
57602 { (char *)"MenuItem_GetMenu", (PyCFunction)_wrap_MenuItem_GetMenu, METH_O, NULL},
57603 { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
57604 { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
57605 { (char *)"MenuItem_GetId", (PyCFunction)_wrap_MenuItem_GetId, METH_O, NULL},
57606 { (char *)"MenuItem_IsSeparator", (PyCFunction)_wrap_MenuItem_IsSeparator, METH_O, NULL},
57607 { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
57608 { (char *)"MenuItem_GetLabel", (PyCFunction)_wrap_MenuItem_GetLabel, METH_O, NULL},
57609 { (char *)"MenuItem_GetText", (PyCFunction)_wrap_MenuItem_GetText, METH_O, NULL},
57610 { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL},
57611 { (char *)"MenuItem_GetKind", (PyCFunction)_wrap_MenuItem_GetKind, METH_O, NULL},
57612 { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL},
57613 { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL},
57614 { (char *)"MenuItem_IsCheckable", (PyCFunction)_wrap_MenuItem_IsCheckable, METH_O, NULL},
57615 { (char *)"MenuItem_IsSubMenu", (PyCFunction)_wrap_MenuItem_IsSubMenu, METH_O, NULL},
57616 { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL},
57617 { (char *)"MenuItem_GetSubMenu", (PyCFunction)_wrap_MenuItem_GetSubMenu, METH_O, NULL},
57618 { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
57619 { (char *)"MenuItem_IsEnabled", (PyCFunction)_wrap_MenuItem_IsEnabled, METH_O, NULL},
57620 { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL},
57621 { (char *)"MenuItem_IsChecked", (PyCFunction)_wrap_MenuItem_IsChecked, METH_O, NULL},
57622 { (char *)"MenuItem_Toggle", (PyCFunction)_wrap_MenuItem_Toggle, METH_O, NULL},
57623 { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
57624 { (char *)"MenuItem_GetHelp", (PyCFunction)_wrap_MenuItem_GetHelp, METH_O, NULL},
57625 { (char *)"MenuItem_GetAccel", (PyCFunction)_wrap_MenuItem_GetAccel, METH_O, NULL},
57626 { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL},
57627 { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
57628 { (char *)"MenuItem_GetBitmap", (PyCFunction)_wrap_MenuItem_GetBitmap, METH_O, NULL},
57629 { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
57630 { (char *)"MenuItem_GetFont", (PyCFunction)_wrap_MenuItem_GetFont, METH_O, NULL},
57631 { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
57632 { (char *)"MenuItem_GetTextColour", (PyCFunction)_wrap_MenuItem_GetTextColour, METH_O, NULL},
57633 { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
57634 { (char *)"MenuItem_GetBackgroundColour", (PyCFunction)_wrap_MenuItem_GetBackgroundColour, METH_O, NULL},
57635 { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS, NULL},
57636 { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
57637 { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction)_wrap_MenuItem_GetDisabledBitmap, METH_O, NULL},
57638 { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL},
57639 { (char *)"MenuItem_GetMarginWidth", (PyCFunction)_wrap_MenuItem_GetMarginWidth, METH_O, NULL},
57640 { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction)_wrap_MenuItem_GetDefaultMarginWidth, METH_NOARGS, NULL},
57641 { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction)_wrap_MenuItem_IsOwnerDrawn, METH_O, NULL},
57642 { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL},
57643 { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction)_wrap_MenuItem_ResetOwnerDrawn, METH_O, NULL},
57644 { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL},
57645 { (char *)"MenuItem_swiginit", MenuItem_swiginit, METH_VARARGS, NULL},
57646 { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL},
57647 { (char *)"new_PreControl", (PyCFunction)_wrap_new_PreControl, METH_NOARGS, NULL},
57648 { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL},
1eeb270e 57649 { (char *)"Control_GetAlignment", (PyCFunction)_wrap_Control_GetAlignment, METH_O, NULL},
34e0a3bb 57650 { (char *)"Control_GetLabelText", (PyCFunction)_wrap_Control_GetLabelText, METH_O, NULL},
1bd55598 57651 { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57652 { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
57653 { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL},
57654 { (char *)"Control_swiginit", Control_swiginit, METH_VARARGS, NULL},
57655 { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL},
57656 { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL},
57657 { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
57658 { (char *)"ItemContainer_Clear", (PyCFunction)_wrap_ItemContainer_Clear, METH_O, NULL},
57659 { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
57660 { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
57661 { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
57662 { (char *)"ItemContainer_GetCount", (PyCFunction)_wrap_ItemContainer_GetCount, METH_O, NULL},
57663 { (char *)"ItemContainer_IsEmpty", (PyCFunction)_wrap_ItemContainer_IsEmpty, METH_O, NULL},
57664 { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
57665 { (char *)"ItemContainer_GetStrings", (PyCFunction)_wrap_ItemContainer_GetStrings, METH_O, NULL},
57666 { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
57667 { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
57668 { (char *)"ItemContainer_SetSelection", (PyCFunction) _wrap_ItemContainer_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
57669 { (char *)"ItemContainer_GetSelection", (PyCFunction)_wrap_ItemContainer_GetSelection, METH_O, NULL},
57670 { (char *)"ItemContainer_SetStringSelection", (PyCFunction) _wrap_ItemContainer_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
57671 { (char *)"ItemContainer_GetStringSelection", (PyCFunction)_wrap_ItemContainer_GetStringSelection, METH_O, NULL},
57672 { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL},
57673 { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL},
57674 { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL},
57675 { (char *)"new_SizerItem", (PyCFunction)_wrap_new_SizerItem, METH_NOARGS, NULL},
57676 { (char *)"delete_SizerItem", (PyCFunction)_wrap_delete_SizerItem, METH_O, NULL},
57677 { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57678 { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
57679 { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57680 { (char *)"SizerItem_DeleteWindows", (PyCFunction)_wrap_SizerItem_DeleteWindows, METH_O, NULL},
57681 { (char *)"SizerItem_DetachSizer", (PyCFunction)_wrap_SizerItem_DetachSizer, METH_O, NULL},
57682 { (char *)"SizerItem_GetSize", (PyCFunction)_wrap_SizerItem_GetSize, METH_O, NULL},
57683 { (char *)"SizerItem_CalcMin", (PyCFunction)_wrap_SizerItem_CalcMin, METH_O, NULL},
57684 { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL},
57685 { (char *)"SizerItem_GetMinSize", (PyCFunction)_wrap_SizerItem_GetMinSize, METH_O, NULL},
57686 { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction)_wrap_SizerItem_GetMinSizeWithBorder, METH_O, NULL},
57687 { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL},
57688 { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL},
57689 { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL},
57690 { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL},
57691 { (char *)"SizerItem_GetRatio", (PyCFunction)_wrap_SizerItem_GetRatio, METH_O, NULL},
57692 { (char *)"SizerItem_GetRect", (PyCFunction)_wrap_SizerItem_GetRect, METH_O, NULL},
57693 { (char *)"SizerItem_IsWindow", (PyCFunction)_wrap_SizerItem_IsWindow, METH_O, NULL},
57694 { (char *)"SizerItem_IsSizer", (PyCFunction)_wrap_SizerItem_IsSizer, METH_O, NULL},
57695 { (char *)"SizerItem_IsSpacer", (PyCFunction)_wrap_SizerItem_IsSpacer, METH_O, NULL},
57696 { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL},
57697 { (char *)"SizerItem_GetProportion", (PyCFunction)_wrap_SizerItem_GetProportion, METH_O, NULL},
57698 { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL},
57699 { (char *)"SizerItem_GetFlag", (PyCFunction)_wrap_SizerItem_GetFlag, METH_O, NULL},
57700 { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL},
57701 { (char *)"SizerItem_GetBorder", (PyCFunction)_wrap_SizerItem_GetBorder, METH_O, NULL},
57702 { (char *)"SizerItem_GetWindow", (PyCFunction)_wrap_SizerItem_GetWindow, METH_O, NULL},
57703 { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57704 { (char *)"SizerItem_GetSizer", (PyCFunction)_wrap_SizerItem_GetSizer, METH_O, NULL},
57705 { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57706 { (char *)"SizerItem_GetSpacer", (PyCFunction)_wrap_SizerItem_GetSpacer, METH_O, NULL},
57707 { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
57708 { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL},
57709 { (char *)"SizerItem_IsShown", (PyCFunction)_wrap_SizerItem_IsShown, METH_O, NULL},
57710 { (char *)"SizerItem_GetPosition", (PyCFunction)_wrap_SizerItem_GetPosition, METH_O, NULL},
57711 { (char *)"SizerItem_GetUserData", (PyCFunction)_wrap_SizerItem_GetUserData, METH_O, NULL},
57712 { (char *)"SizerItem_SetUserData", (PyCFunction) _wrap_SizerItem_SetUserData, METH_VARARGS | METH_KEYWORDS, NULL},
57713 { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL},
57714 { (char *)"SizerItem_swiginit", SizerItem_swiginit, METH_VARARGS, NULL},
57715 { (char *)"delete_Sizer", (PyCFunction)_wrap_delete_Sizer, METH_O, NULL},
57716 { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL},
57717 { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL},
57718 { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
57719 { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL},
57720 { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
57721 { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL},
57722 { (char *)"Sizer_GetItem", (PyCFunction) _wrap_Sizer_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
57723 { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL},
ac5d357a
RD
57724 { (char *)"Sizer__ReplaceWin", (PyCFunction) _wrap_Sizer__ReplaceWin, METH_VARARGS | METH_KEYWORDS, NULL},
57725 { (char *)"Sizer__ReplaceSizer", (PyCFunction) _wrap_Sizer__ReplaceSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57726 { (char *)"Sizer__ReplaceItem", (PyCFunction) _wrap_Sizer__ReplaceItem, METH_VARARGS | METH_KEYWORDS, NULL},
57727 { (char *)"Sizer_SetContainingWindow", (PyCFunction) _wrap_Sizer_SetContainingWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57728 { (char *)"Sizer_GetContainingWindow", (PyCFunction)_wrap_Sizer_GetContainingWindow, METH_O, NULL},
1bd55598
RD
57729 { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL},
57730 { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
57731 { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
57732 { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL},
57733 { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL},
57734 { (char *)"Sizer_GetSize", (PyCFunction)_wrap_Sizer_GetSize, METH_O, NULL},
57735 { (char *)"Sizer_GetPosition", (PyCFunction)_wrap_Sizer_GetPosition, METH_O, NULL},
57736 { (char *)"Sizer_GetMinSize", (PyCFunction)_wrap_Sizer_GetMinSize, METH_O, NULL},
57737 { (char *)"Sizer_RecalcSizes", (PyCFunction)_wrap_Sizer_RecalcSizes, METH_O, NULL},
57738 { (char *)"Sizer_CalcMin", (PyCFunction)_wrap_Sizer_CalcMin, METH_O, NULL},
57739 { (char *)"Sizer_Layout", (PyCFunction)_wrap_Sizer_Layout, METH_O, NULL},
57740 { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL},
57741 { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL},
57742 { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL},
57743 { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL},
57744 { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
57745 { (char *)"Sizer_DeleteWindows", (PyCFunction)_wrap_Sizer_DeleteWindows, METH_O, NULL},
57746 { (char *)"Sizer_GetChildren", (PyCFunction)_wrap_Sizer_GetChildren, METH_O, NULL},
57747 { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL},
57748 { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL},
57749 { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL},
57750 { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL},
57751 { (char *)"new_PySizer", (PyCFunction)_wrap_new_PySizer, METH_NOARGS, NULL},
57752 { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
57753 { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL},
57754 { (char *)"PySizer_swiginit", PySizer_swiginit, METH_VARARGS, NULL},
57755 { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57756 { (char *)"BoxSizer_GetOrientation", (PyCFunction)_wrap_BoxSizer_GetOrientation, METH_O, NULL},
57757 { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
57758 { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL},
57759 { (char *)"BoxSizer_swiginit", BoxSizer_swiginit, METH_VARARGS, NULL},
57760 { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57761 { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction)_wrap_StaticBoxSizer_GetStaticBox, METH_O, NULL},
57762 { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL},
57763 { (char *)"StaticBoxSizer_swiginit", StaticBoxSizer_swiginit, METH_VARARGS, NULL},
57764 { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57765 { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL},
57766 { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
57767 { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL},
57768 { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL},
57769 { (char *)"GridSizer_GetCols", (PyCFunction)_wrap_GridSizer_GetCols, METH_O, NULL},
57770 { (char *)"GridSizer_GetRows", (PyCFunction)_wrap_GridSizer_GetRows, METH_O, NULL},
57771 { (char *)"GridSizer_GetVGap", (PyCFunction)_wrap_GridSizer_GetVGap, METH_O, NULL},
57772 { (char *)"GridSizer_GetHGap", (PyCFunction)_wrap_GridSizer_GetHGap, METH_O, NULL},
57773 { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL},
57774 { (char *)"GridSizer_swiginit", GridSizer_swiginit, METH_VARARGS, NULL},
57775 { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57776 { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL},
57777 { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL},
57778 { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL},
57779 { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL},
57780 { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL},
57781 { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction)_wrap_FlexGridSizer_GetFlexibleDirection, METH_O, NULL},
57782 { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL},
57783 { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction)_wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_O, NULL},
57784 { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction)_wrap_FlexGridSizer_GetRowHeights, METH_O, NULL},
57785 { (char *)"FlexGridSizer_GetColWidths", (PyCFunction)_wrap_FlexGridSizer_GetColWidths, METH_O, NULL},
57786 { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL},
57787 { (char *)"FlexGridSizer_swiginit", FlexGridSizer_swiginit, METH_VARARGS, NULL},
57788 { (char *)"new_StdDialogButtonSizer", (PyCFunction)_wrap_new_StdDialogButtonSizer, METH_NOARGS, NULL},
57789 { (char *)"StdDialogButtonSizer_AddButton", (PyCFunction) _wrap_StdDialogButtonSizer_AddButton, METH_VARARGS | METH_KEYWORDS, NULL},
57790 { (char *)"StdDialogButtonSizer_Realize", (PyCFunction)_wrap_StdDialogButtonSizer_Realize, METH_O, NULL},
57791 { (char *)"StdDialogButtonSizer_SetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
57792 { (char *)"StdDialogButtonSizer_SetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
57793 { (char *)"StdDialogButtonSizer_SetCancelButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
57794 { (char *)"StdDialogButtonSizer_GetAffirmativeButton", (PyCFunction)_wrap_StdDialogButtonSizer_GetAffirmativeButton, METH_O, NULL},
57795 { (char *)"StdDialogButtonSizer_GetApplyButton", (PyCFunction)_wrap_StdDialogButtonSizer_GetApplyButton, METH_O, NULL},
57796 { (char *)"StdDialogButtonSizer_GetNegativeButton", (PyCFunction)_wrap_StdDialogButtonSizer_GetNegativeButton, METH_O, NULL},
57797 { (char *)"StdDialogButtonSizer_GetCancelButton", (PyCFunction)_wrap_StdDialogButtonSizer_GetCancelButton, METH_O, NULL},
57798 { (char *)"StdDialogButtonSizer_GetHelpButton", (PyCFunction)_wrap_StdDialogButtonSizer_GetHelpButton, METH_O, NULL},
57799 { (char *)"StdDialogButtonSizer_swigregister", StdDialogButtonSizer_swigregister, METH_VARARGS, NULL},
57800 { (char *)"StdDialogButtonSizer_swiginit", StdDialogButtonSizer_swiginit, METH_VARARGS, NULL},
57801 { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL},
57802 { (char *)"delete_GBPosition", (PyCFunction)_wrap_delete_GBPosition, METH_O, NULL},
57803 { (char *)"GBPosition_GetRow", (PyCFunction)_wrap_GBPosition_GetRow, METH_O, NULL},
57804 { (char *)"GBPosition_GetCol", (PyCFunction)_wrap_GBPosition_GetCol, METH_O, NULL},
57805 { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL},
57806 { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL},
57807 { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
57808 { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
57809 { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL},
57810 { (char *)"GBPosition_Get", (PyCFunction)_wrap_GBPosition_Get, METH_O, NULL},
57811 { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL},
57812 { (char *)"GBPosition_swiginit", GBPosition_swiginit, METH_VARARGS, NULL},
57813 { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL},
57814 { (char *)"delete_GBSpan", (PyCFunction)_wrap_delete_GBSpan, METH_O, NULL},
57815 { (char *)"GBSpan_GetRowspan", (PyCFunction)_wrap_GBSpan_GetRowspan, METH_O, NULL},
57816 { (char *)"GBSpan_GetColspan", (PyCFunction)_wrap_GBSpan_GetColspan, METH_O, NULL},
57817 { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL},
57818 { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL},
57819 { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
57820 { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
57821 { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL},
57822 { (char *)"GBSpan_Get", (PyCFunction)_wrap_GBSpan_Get, METH_O, NULL},
57823 { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL},
57824 { (char *)"GBSpan_swiginit", GBSpan_swiginit, METH_VARARGS, NULL},
57825 { (char *)"new_GBSizerItem", (PyCFunction)_wrap_new_GBSizerItem, METH_NOARGS, NULL},
57826 { (char *)"delete_GBSizerItem", (PyCFunction)_wrap_delete_GBSizerItem, METH_O, NULL},
57827 { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57828 { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57829 { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
57830 { (char *)"GBSizerItem_GetPos", (PyCFunction)_wrap_GBSizerItem_GetPos, METH_O, NULL},
57831 { (char *)"GBSizerItem_GetSpan", (PyCFunction)_wrap_GBSizerItem_GetSpan, METH_O, NULL},
57832 { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL},
57833 { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL},
57834 { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL},
57835 { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL},
57836 { (char *)"GBSizerItem_GetEndPos", (PyCFunction)_wrap_GBSizerItem_GetEndPos, METH_O, NULL},
57837 { (char *)"GBSizerItem_GetGBSizer", (PyCFunction)_wrap_GBSizerItem_GetGBSizer, METH_O, NULL},
57838 { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57839 { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL},
57840 { (char *)"GBSizerItem_swiginit", GBSizerItem_swiginit, METH_VARARGS, NULL},
57841 { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57842 { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL},
57843 { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL},
57844 { (char *)"GridBagSizer_GetCellSize", (PyCFunction) _wrap_GridBagSizer_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL},
57845 { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction)_wrap_GridBagSizer_GetEmptyCellSize, METH_O, NULL},
57846 { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL},
57847 { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL},
57848 { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL},
57849 { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL},
57850 { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL},
57851 { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL},
57852 { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL},
57853 { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
57854 { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL},
57855 { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL},
57856 { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL},
57857 { (char *)"GridBagSizer_swiginit", GridBagSizer_swiginit, METH_VARARGS, NULL},
57858 { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL},
57859 { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL},
57860 { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL},
57861 { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL},
57862 { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL},
57863 { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL},
57864 { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL},
57865 { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL},
57866 { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction)_wrap_IndividualLayoutConstraint_Unconstrained, METH_O, NULL},
57867 { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction)_wrap_IndividualLayoutConstraint_AsIs, METH_O, NULL},
57868 { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction)_wrap_IndividualLayoutConstraint_GetOtherWindow, METH_O, NULL},
57869 { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction)_wrap_IndividualLayoutConstraint_GetMyEdge, METH_O, NULL},
57870 { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL},
57871 { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
57872 { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction)_wrap_IndividualLayoutConstraint_GetMargin, METH_O, NULL},
57873 { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL},
57874 { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction)_wrap_IndividualLayoutConstraint_GetValue, METH_O, NULL},
57875 { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction)_wrap_IndividualLayoutConstraint_GetPercent, METH_O, NULL},
57876 { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction)_wrap_IndividualLayoutConstraint_GetOtherEdge, METH_O, NULL},
57877 { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction)_wrap_IndividualLayoutConstraint_GetDone, METH_O, NULL},
57878 { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL},
57879 { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction)_wrap_IndividualLayoutConstraint_GetRelationship, METH_O, NULL},
57880 { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL},
57881 { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL},
57882 { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL},
57883 { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL},
57884 { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL},
57885 { (char *)"LayoutConstraints_left_get", (PyCFunction)_wrap_LayoutConstraints_left_get, METH_O, NULL},
57886 { (char *)"LayoutConstraints_top_get", (PyCFunction)_wrap_LayoutConstraints_top_get, METH_O, NULL},
57887 { (char *)"LayoutConstraints_right_get", (PyCFunction)_wrap_LayoutConstraints_right_get, METH_O, NULL},
57888 { (char *)"LayoutConstraints_bottom_get", (PyCFunction)_wrap_LayoutConstraints_bottom_get, METH_O, NULL},
57889 { (char *)"LayoutConstraints_width_get", (PyCFunction)_wrap_LayoutConstraints_width_get, METH_O, NULL},
57890 { (char *)"LayoutConstraints_height_get", (PyCFunction)_wrap_LayoutConstraints_height_get, METH_O, NULL},
57891 { (char *)"LayoutConstraints_centreX_get", (PyCFunction)_wrap_LayoutConstraints_centreX_get, METH_O, NULL},
57892 { (char *)"LayoutConstraints_centreY_get", (PyCFunction)_wrap_LayoutConstraints_centreY_get, METH_O, NULL},
57893 { (char *)"new_LayoutConstraints", (PyCFunction)_wrap_new_LayoutConstraints, METH_NOARGS, NULL},
57894 { (char *)"delete_LayoutConstraints", (PyCFunction)_wrap_delete_LayoutConstraints, METH_O, NULL},
57895 { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL},
57896 { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction)_wrap_LayoutConstraints_AreSatisfied, METH_O, NULL},
57897 { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL},
57898 { (char *)"LayoutConstraints_swiginit", LayoutConstraints_swiginit, METH_VARARGS, NULL},
57899 { NULL, NULL, 0, NULL }
57900};
57901
57902
57903/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
57904
57905static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) {
57906 return (void *)((wxSizerItem *) ((wxGBSizerItem *) x));
57907}
57908static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
57909 return (void *)((wxSizer *) ((wxBoxSizer *) x));
57910}
57911static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
57912 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
57913}
57914static void *_p_wxStdDialogButtonSizerTo_p_wxSizer(void *x) {
57915 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
57916}
57917static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
57918 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
57919}
57920static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
57921 return (void *)((wxSizer *) ((wxGridSizer *) x));
57922}
57923static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
57924 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
57925}
57926static void *_p_wxPySizerTo_p_wxSizer(void *x) {
57927 return (void *)((wxSizer *) ((wxPySizer *) x));
57928}
57929static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) {
57930 return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x));
57931}
57932static void *_p_wxStdDialogButtonSizerTo_p_wxBoxSizer(void *x) {
57933 return (void *)((wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
57934}
57935static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
57936 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
57937}
57938static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
57939 return (void *)((wxEvent *) ((wxMenuEvent *) x));
57940}
57941static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
57942 return (void *)((wxEvent *) ((wxCloseEvent *) x));
57943}
57944static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
57945 return (void *)((wxEvent *) ((wxMouseEvent *) x));
57946}
57947static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
57948 return (void *)((wxEvent *) ((wxEraseEvent *) x));
57949}
57950static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
57951 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
57952}
57953static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
57954 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
57955}
57956static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
57957 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
57958}
1bd55598
RD
57959static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
57960 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
57961}
34e0a3bb
RD
57962static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
57963 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
57964}
2131d850
RD
57965static void *_p_wxPyEventTo_p_wxEvent(void *x) {
57966 return (void *)((wxEvent *) ((wxPyEvent *) x));
57967}
1bd55598
RD
57968static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
57969 return (void *)((wxEvent *) ((wxIdleEvent *) x));
57970}
57971static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
57972 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
57973}
57974static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
57975 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
57976}
57977static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
57978 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
57979}
57980static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
57981 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
57982}
57983static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
57984 return (void *)((wxEvent *) ((wxActivateEvent *) x));
57985}
57986static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
57987 return (void *)((wxEvent *) ((wxSizeEvent *) x));
57988}
57989static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
57990 return (void *)((wxEvent *) ((wxMoveEvent *) x));
57991}
57992static void *_p_wxDateEventTo_p_wxEvent(void *x) {
57993 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
57994}
57995static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
57996 return (void *)((wxEvent *) ((wxPaintEvent *) x));
57997}
57998static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
57999 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
58000}
34e0a3bb
RD
58001static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
58002 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
58003}
1bd55598
RD
58004static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
58005 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
58006}
58007static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
58008 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
58009}
58010static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
58011 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
58012}
58013static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
58014 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
58015}
58016static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
58017 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
58018}
58019static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
58020 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
58021}
58022static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
58023 return (void *)((wxEvent *) ((wxFocusEvent *) x));
58024}
58025static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
58026 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
58027}
58028static void *_p_wxShowEventTo_p_wxEvent(void *x) {
58029 return (void *)((wxEvent *) ((wxShowEvent *) x));
58030}
58031static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
58032 return (void *)((wxEvent *) ((wxCommandEvent *) x));
58033}
58034static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
58035 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
58036}
58037static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
58038 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
58039}
58040static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
58041 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
58042}
58043static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
58044 return (void *)((wxEvent *) ((wxKeyEvent *) x));
58045}
58046static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
58047 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
58048}
58049static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) {
58050 return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x));
58051}
58052static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) {
58053 return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x));
58054}
58055static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) {
58056 return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x));
58057}
58058static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
58059 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
58060}
58061static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
58062 return (void *)((wxControl *) ((wxControlWithItems *) x));
58063}
58064static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
58065 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
58066}
58067static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
58068 return (void *)((wxEvtHandler *) ((wxWindow *) x));
58069}
58070static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
58071 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
58072}
58073static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
58074 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
58075}
58076static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
58077 return (void *)((wxEvtHandler *) ((wxValidator *) x));
58078}
58079static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
58080 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
58081}
58082static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
58083 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
58084}
58085static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
58086 return (void *)((wxEvtHandler *) ((wxMenu *) x));
58087}
58088static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) {
58089 return (void *)((wxCURHandler *) ((wxANIHandler *) x));
58090}
58091static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) {
58092 return (void *)((wxICOHandler *) ((wxCURHandler *) x));
58093}
58094static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) {
58095 return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x));
58096}
58097static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) {
58098 return (void *)((wxBMPHandler *) ((wxICOHandler *) x));
58099}
58100static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) {
58101 return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x));
58102}
58103static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) {
58104 return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
58105}
58106static void *_p_wxPyImageHandlerTo_p_wxImageHandler(void *x) {
58107 return (void *)((wxImageHandler *) ((wxPyImageHandler *) x));
58108}
58109static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) {
58110 return (void *)((wxImageHandler *) ((wxBMPHandler *) x));
58111}
58112static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) {
58113 return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x));
58114}
58115static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) {
58116 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
58117}
58118static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) {
58119 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
58120}
58121static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) {
58122 return (void *)((wxImageHandler *) ((wxPNGHandler *) x));
58123}
58124static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) {
58125 return (void *)((wxImageHandler *) ((wxGIFHandler *) x));
58126}
58127static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) {
58128 return (void *)((wxImageHandler *) ((wxPCXHandler *) x));
58129}
58130static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) {
58131 return (void *)((wxImageHandler *) ((wxJPEGHandler *) x));
58132}
58133static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) {
58134 return (void *)((wxImageHandler *) ((wxPNMHandler *) x));
58135}
58136static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) {
58137 return (void *)((wxImageHandler *) ((wxXPMHandler *) x));
58138}
58139static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) {
58140 return (void *)((wxImageHandler *) ((wxTIFFHandler *) x));
58141}
580080c5
RD
58142static void *_p_wxTGAHandlerTo_p_wxImageHandler(void *x) {
58143 return (void *)((wxImageHandler *) ((wxTGAHandler *) x));
58144}
1bd55598
RD
58145static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) {
58146 return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x));
58147}
58148static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) {
58149 return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x));
58150}
58151static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) {
58152 return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x));
58153}
58154static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) {
58155 return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x));
58156}
58157static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
58158 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
58159}
1bd55598
RD
58160static void *_p_wxSizerItemTo_p_wxObject(void *x) {
58161 return (void *)((wxObject *) ((wxSizerItem *) x));
58162}
34e0a3bb
RD
58163static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
58164 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
58165}
1bd55598
RD
58166static void *_p_wxScrollEventTo_p_wxObject(void *x) {
58167 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
58168}
58169static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
58170 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
58171}
58172static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
58173 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
58174}
58175static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
58176 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
58177}
58178static void *_p_wxSizerTo_p_wxObject(void *x) {
58179 return (void *)((wxObject *) ((wxSizer *) x));
58180}
58181static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
58182 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
58183}
58184static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
58185 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
58186}
58187static void *_p_wxEventTo_p_wxObject(void *x) {
58188 return (void *)((wxObject *) ((wxEvent *) x));
58189}
58190static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
58191 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
58192}
58193static void *_p_wxGridSizerTo_p_wxObject(void *x) {
58194 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
58195}
58196static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
58197 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
58198}
2131d850
RD
58199static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
58200 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
58201}
1bd55598
RD
58202static void *_p_wxPaintEventTo_p_wxObject(void *x) {
58203 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
58204}
58205static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
58206 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
58207}
58208static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
58209 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
58210}
58211static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
58212 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
58213}
58214static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
58215 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
58216}
58217static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
58218 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
58219}
58220static void *_p_wxControlTo_p_wxObject(void *x) {
58221 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
58222}
58223static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
58224 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
58225}
58226static void *_p_wxFSFileTo_p_wxObject(void *x) {
58227 return (void *)((wxObject *) ((wxFSFile *) x));
58228}
58229static void *_p_wxPySizerTo_p_wxObject(void *x) {
58230 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
58231}
58232static void *_p_wxPyEventTo_p_wxObject(void *x) {
58233 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
58234}
58235static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
58236 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
58237}
58238static void *_p_wxShowEventTo_p_wxObject(void *x) {
58239 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
58240}
58241static void *_p_wxMenuItemTo_p_wxObject(void *x) {
58242 return (void *)((wxObject *) ((wxMenuItem *) x));
58243}
58244static void *_p_wxDateEventTo_p_wxObject(void *x) {
58245 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
58246}
58247static void *_p_wxIdleEventTo_p_wxObject(void *x) {
58248 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
58249}
58250static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
58251 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
58252}
58253static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
58254 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
58255}
58256static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
58257 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
58258}
58259static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
58260 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
58261}
58262static void *_p_wxSizeEventTo_p_wxObject(void *x) {
58263 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
58264}
58265static void *_p_wxMoveEventTo_p_wxObject(void *x) {
58266 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
58267}
58268static void *_p_wxActivateEventTo_p_wxObject(void *x) {
58269 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
58270}
58271static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
58272 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
58273}
58274static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
58275 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
58276}
58277static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
58278 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
58279}
58280static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
58281 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
58282}
58283static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
58284 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
58285}
58286static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
58287 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
58288}
58289static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
58290 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
58291}
58292static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
58293 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
58294}
58295static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
58296 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
58297}
58298static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
58299 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
58300}
58301static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
58302 return (void *)((wxObject *) ((wxImageHandler *) x));
58303}
58304static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
58305 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
58306}
58307static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
58308 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
58309}
580080c5
RD
58310static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
58311 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
58312}
1bd55598
RD
58313static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
58314 return (void *)((wxObject *) ((wxEvtHandler *) x));
58315}
34e0a3bb
RD
58316static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
58317 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
58318}
1bd55598
RD
58319static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
58320 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
58321}
580080c5
RD
58322static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
58323 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
58324}
1bd55598
RD
58325static void *_p_wxImageTo_p_wxObject(void *x) {
58326 return (void *)((wxObject *) ((wxImage *) x));
58327}
58328static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
58329 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
58330}
58331static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
58332 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
58333}
58334static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
58335 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
58336}
58337static void *_p_wxKeyEventTo_p_wxObject(void *x) {
58338 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
58339}
58340static void *_p_wxWindowTo_p_wxObject(void *x) {
58341 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
58342}
58343static void *_p_wxMenuTo_p_wxObject(void *x) {
58344 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
58345}
58346static void *_p_wxMenuBarTo_p_wxObject(void *x) {
58347 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
58348}
58349static void *_p_wxFileSystemTo_p_wxObject(void *x) {
58350 return (void *)((wxObject *) ((wxFileSystem *) x));
58351}
58352static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
58353 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
58354}
58355static void *_p_wxMenuEventTo_p_wxObject(void *x) {
58356 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
58357}
58358static void *_p_wxPyAppTo_p_wxObject(void *x) {
58359 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
58360}
58361static void *_p_wxCloseEventTo_p_wxObject(void *x) {
58362 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
58363}
58364static void *_p_wxMouseEventTo_p_wxObject(void *x) {
58365 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
58366}
58367static void *_p_wxEraseEventTo_p_wxObject(void *x) {
58368 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
58369}
58370static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
58371 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
58372}
58373static void *_p_wxCommandEventTo_p_wxObject(void *x) {
58374 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
58375}
58376static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
58377 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
58378}
58379static void *_p_wxFocusEventTo_p_wxObject(void *x) {
58380 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
58381}
58382static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
58383 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
58384}
58385static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
58386 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
58387}
58388static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
58389 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
58390}
58391static void *_p_wxValidatorTo_p_wxObject(void *x) {
58392 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
58393}
58394static void *_p_wxControlTo_p_wxWindow(void *x) {
58395 return (void *)((wxWindow *) ((wxControl *) x));
58396}
58397static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
58398 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
58399}
58400static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
58401 return (void *)((wxWindow *) ((wxMenuBar *) x));
58402}
58403static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
58404 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
58405}
58406static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
58407 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
58408}
58409static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
58410 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
58411}
58412static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
58413 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
58414}
58415static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
58416 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
58417}
2131d850
RD
58418static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
58419 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
58420}
1bd55598
RD
58421static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
58422 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
58423}
58424static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
58425 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
58426}
58427static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
58428 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
58429}
58430static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
58431 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
58432}
58433static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
58434 return (void *)((wxValidator *) ((wxPyValidator *) x));
58435}
58436static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
58437static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
58438static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
58439static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
58440static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
58441static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
58442static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
58443static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
58444static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", "wxANIHandler *", 0, 0, (void*)0, 0};
58445static swig_type_info _swigt__p_wxAcceleratorEntry = {"_p_wxAcceleratorEntry", "wxAcceleratorEntry *", 0, 0, (void*)0, 0};
58446static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", "wxAcceleratorTable *", 0, 0, (void*)0, 0};
58447static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", "wxActivateEvent *", 0, 0, (void*)0, 0};
58448static swig_type_info _swigt__p_wxAppTraits = {"_p_wxAppTraits", "wxAppTraits *", 0, 0, (void*)0, 0};
58449static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
58450static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", "wxBMPHandler *", 0, 0, (void*)0, 0};
58451static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
58452static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", "wxBoxSizer *", 0, 0, (void*)0, 0};
58453static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
58454static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", "wxCURHandler *", 0, 0, (void*)0, 0};
58455static swig_type_info _swigt__p_wxCaret = {"_p_wxCaret", "wxCaret *", 0, 0, (void*)0, 0};
58456static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", "wxChildFocusEvent *", 0, 0, (void*)0, 0};
2131d850 58457static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", "wxClipboardTextEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
58458static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", "wxCloseEvent *", 0, 0, (void*)0, 0};
58459static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
58460static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
58461static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", "wxContextMenuEvent *", 0, 0, (void*)0, 0};
58462static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
58463static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
58464static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
58465static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
58466static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", "wxDateEvent *", 0, 0, (void*)0, 0};
58467static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
58468static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", "wxDisplayChangedEvent *", 0, 0, (void*)0, 0};
70d7cb34 58469static swig_type_info _swigt__p_wxDouble = {"_p_wxDouble", "wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
58470static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", "wxDropFilesEvent *", 0, 0, (void*)0, 0};
58471static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
58472static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", "wxEraseEvent *", 0, 0, (void*)0, 0};
58473static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
58474static swig_type_info _swigt__p_wxEventLoop = {"_p_wxEventLoop", "wxEventLoop *", 0, 0, (void*)0, 0};
58475static swig_type_info _swigt__p_wxEventLoopActivator = {"_p_wxEventLoopActivator", "wxEventLoopActivator *", 0, 0, (void*)0, 0};
58476static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
58477static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", "wxFSFile *", 0, 0, (void*)0, 0};
58478static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0};
58479static swig_type_info _swigt__p_wxFileSystemHandler = {"_p_wxFileSystemHandler", "wxFileSystemHandler *", 0, 0, (void*)0, 0};
58480static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", "wxFlexGridSizer *", 0, 0, (void*)0, 0};
58481static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", "wxFocusEvent *", 0, 0, (void*)0, 0};
58482static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
58483static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0};
58484static swig_type_info _swigt__p_wxGBPosition = {"_p_wxGBPosition", "wxGBPosition *", 0, 0, (void*)0, 0};
58485static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", "wxGBSizerItem *", 0, 0, (void*)0, 0};
58486static swig_type_info _swigt__p_wxGBSpan = {"_p_wxGBSpan", "wxGBSpan *", 0, 0, (void*)0, 0};
58487static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", "wxGIFHandler *", 0, 0, (void*)0, 0};
58488static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", "wxGridBagSizer *", 0, 0, (void*)0, 0};
58489static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", "wxGridSizer *", 0, 0, (void*)0, 0};
b850e7f3 58490static swig_type_info _swigt__p_wxHelpEvent__Origin = {"_p_wxHelpEvent__Origin", "wxHelpEvent::Origin *", 0, 0, (void*)0, 0};
1bd55598
RD
58491static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", "wxICOHandler *", 0, 0, (void*)0, 0};
58492static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", "wxIconizeEvent *", 0, 0, (void*)0, 0};
58493static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", "wxIdleEvent *", 0, 0, (void*)0, 0};
58494static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
58495static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", "wxImageHandler *", 0, 0, (void*)0, 0};
58496static swig_type_info _swigt__p_wxImageHistogram = {"_p_wxImageHistogram", "wxImageHistogram *", 0, 0, (void*)0, 0};
58497static swig_type_info _swigt__p_wxImage_HSVValue = {"_p_wxImage_HSVValue", "wxImage_HSVValue *", 0, 0, (void*)0, 0};
58498static swig_type_info _swigt__p_wxImage_RGBValue = {"_p_wxImage_RGBValue", "wxImage_RGBValue *", 0, 0, (void*)0, 0};
58499static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", "wxIndividualLayoutConstraint *", 0, 0, (void*)0, 0};
58500static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", "wxInitDialogEvent *", 0, 0, (void*)0, 0};
58501static swig_type_info _swigt__p_wxInputStream = {"_p_wxInputStream", "wxInputStream *", 0, 0, (void*)0, 0};
58502static swig_type_info _swigt__p_wxInternetFSHandler = {"_p_wxInternetFSHandler", "wxInternetFSHandler *", 0, 0, (void*)0, 0};
58503static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
58504static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", "wxJPEGHandler *", 0, 0, (void*)0, 0};
58505static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
58506static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", "wxLayoutConstraints *", 0, 0, (void*)0, 0};
58507static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", "wxMaximizeEvent *", 0, 0, (void*)0, 0};
58508static swig_type_info _swigt__p_wxMemoryFSHandler = {"_p_wxMemoryFSHandler", "wxMemoryFSHandler *", 0, 0, (void*)0, 0};
58509static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
58510static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", "wxMenuBar *", 0, 0, (void*)0, 0};
58511static swig_type_info _swigt__p_wxMenuBarBase = {"_p_wxMenuBarBase", "wxMenuBarBase *", 0, 0, (void*)0, 0};
58512static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", "wxMenuEvent *", 0, 0, (void*)0, 0};
58513static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", "wxMenuItem *", 0, 0, (void*)0, 0};
58514static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", "wxMouseCaptureChangedEvent *", 0, 0, (void*)0, 0};
34e0a3bb 58515static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", "wxMouseCaptureLostEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
58516static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
58517static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", "wxMoveEvent *", 0, 0, (void*)0, 0};
58518static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", "wxNavigationKeyEvent *", 0, 0, (void*)0, 0};
58519static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", "wxNcPaintEvent *", 0, 0, (void*)0, 0};
58520static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
58521static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
58522static swig_type_info _swigt__p_wxOutputStream = {"_p_wxOutputStream", "wxOutputStream *", 0, 0, (void*)0, 0};
58523static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", "wxPCXHandler *", 0, 0, (void*)0, 0};
58524static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", "wxPNGHandler *", 0, 0, (void*)0, 0};
58525static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", "wxPNMHandler *", 0, 0, (void*)0, 0};
58526static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", "wxPaintEvent *", 0, 0, (void*)0, 0};
58527static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", "wxPaletteChangedEvent *", 0, 0, (void*)0, 0};
58528static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
58529static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
58530static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
58531static swig_type_info _swigt__p_wxPropagateOnce = {"_p_wxPropagateOnce", "wxPropagateOnce *", 0, 0, (void*)0, 0};
58532static swig_type_info _swigt__p_wxPropagationDisabler = {"_p_wxPropagationDisabler", "wxPropagationDisabler *", 0, 0, (void*)0, 0};
58533static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", "wxPyApp *", 0, 0, (void*)0, 0};
58534static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", "wxPyCommandEvent *", 0, 0, (void*)0, 0};
58535static swig_type_info _swigt__p_wxPyDropTarget = {"_p_wxPyDropTarget", "wxPyDropTarget *", 0, 0, (void*)0, 0};
58536static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", "wxPyEvent *", 0, 0, (void*)0, 0};
58537static swig_type_info _swigt__p_wxPyFileSystemHandler = {"_p_wxPyFileSystemHandler", "wxPyFileSystemHandler *", 0, 0, (void*)0, 0};
58538static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", "wxPyImageHandler *", 0, 0, (void*)0, 0};
58539static swig_type_info _swigt__p_wxPyInputStream = {"_p_wxPyInputStream", "wxPyInputStream *", 0, 0, (void*)0, 0};
58540static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", "wxPySizer *", 0, 0, (void*)0, 0};
58541static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", "wxPyValidator *", 0, 0, (void*)0, 0};
58542static swig_type_info _swigt__p_wxQuantize = {"_p_wxQuantize", "wxQuantize *", 0, 0, (void*)0, 0};
58543static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", "wxQueryNewPaletteEvent *", 0, 0, (void*)0, 0};
58544static swig_type_info _swigt__p_wxRealPoint = {"_p_wxRealPoint", "wxRealPoint *", 0, 0, (void*)0, 0};
58545static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 58546static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
1bd55598
RD
58547static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
58548static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", "wxScrollEvent *", 0, 0, (void*)0, 0};
58549static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", "wxScrollWinEvent *", 0, 0, (void*)0, 0};
58550static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", "wxSetCursorEvent *", 0, 0, (void*)0, 0};
58551static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", "wxShowEvent *", 0, 0, (void*)0, 0};
58552static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
58553static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", "wxSizeEvent *", 0, 0, (void*)0, 0};
58554static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", "wxSizer *", 0, 0, (void*)0, 0};
58555static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", "wxSizerItem *", 0, 0, (void*)0, 0};
58556static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
58557static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", "wxStaticBoxSizer *", 0, 0, (void*)0, 0};
58558static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", "wxStdDialogButtonSizer *", 0, 0, (void*)0, 0};
58559static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", "wxSysColourChangedEvent *", 0, 0, (void*)0, 0};
580080c5 58560static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", "wxTGAHandler *", 0, 0, (void*)0, 0};
1bd55598
RD
58561static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", "wxTIFFHandler *", 0, 0, (void*)0, 0};
58562static swig_type_info _swigt__p_wxToolTip = {"_p_wxToolTip", "wxToolTip *", 0, 0, (void*)0, 0};
58563static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", "wxUpdateUIEvent *", 0, 0, (void*)0, 0};
58564static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
58565static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
58566static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
58567static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", "wxWindowCreateEvent *", 0, 0, (void*)0, 0};
58568static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", "wxWindowDestroyEvent *", 0, 0, (void*)0, 0};
58569static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", "wxXPMHandler *", 0, 0, (void*)0, 0};
58570static swig_type_info _swigt__p_wxZipFSHandler = {"_p_wxZipFSHandler", "wxZipFSHandler *", 0, 0, (void*)0, 0};
58571
58572static swig_type_info *swig_type_initial[] = {
58573 &_swigt__p_buffer,
58574 &_swigt__p_char,
58575 &_swigt__p_form_ops_t,
58576 &_swigt__p_int,
58577 &_swigt__p_long,
58578 &_swigt__p_unsigned_char,
58579 &_swigt__p_unsigned_int,
58580 &_swigt__p_unsigned_long,
58581 &_swigt__p_wxANIHandler,
58582 &_swigt__p_wxAcceleratorEntry,
58583 &_swigt__p_wxAcceleratorTable,
58584 &_swigt__p_wxActivateEvent,
58585 &_swigt__p_wxAppTraits,
58586 &_swigt__p_wxArrayString,
58587 &_swigt__p_wxBMPHandler,
58588 &_swigt__p_wxBitmap,
58589 &_swigt__p_wxBoxSizer,
58590 &_swigt__p_wxButton,
58591 &_swigt__p_wxCURHandler,
58592 &_swigt__p_wxCaret,
58593 &_swigt__p_wxChildFocusEvent,
2131d850 58594 &_swigt__p_wxClipboardTextEvent,
1bd55598
RD
58595 &_swigt__p_wxCloseEvent,
58596 &_swigt__p_wxColour,
58597 &_swigt__p_wxCommandEvent,
58598 &_swigt__p_wxContextMenuEvent,
58599 &_swigt__p_wxControl,
58600 &_swigt__p_wxControlWithItems,
58601 &_swigt__p_wxCursor,
58602 &_swigt__p_wxDC,
58603 &_swigt__p_wxDateEvent,
58604 &_swigt__p_wxDateTime,
58605 &_swigt__p_wxDisplayChangedEvent,
70d7cb34 58606 &_swigt__p_wxDouble,
1bd55598
RD
58607 &_swigt__p_wxDropFilesEvent,
58608 &_swigt__p_wxDuplexMode,
58609 &_swigt__p_wxEraseEvent,
58610 &_swigt__p_wxEvent,
58611 &_swigt__p_wxEventLoop,
58612 &_swigt__p_wxEventLoopActivator,
58613 &_swigt__p_wxEvtHandler,
58614 &_swigt__p_wxFSFile,
58615 &_swigt__p_wxFileSystem,
58616 &_swigt__p_wxFileSystemHandler,
58617 &_swigt__p_wxFlexGridSizer,
58618 &_swigt__p_wxFocusEvent,
58619 &_swigt__p_wxFont,
58620 &_swigt__p_wxFrame,
58621 &_swigt__p_wxGBPosition,
58622 &_swigt__p_wxGBSizerItem,
58623 &_swigt__p_wxGBSpan,
58624 &_swigt__p_wxGIFHandler,
58625 &_swigt__p_wxGridBagSizer,
58626 &_swigt__p_wxGridSizer,
b850e7f3 58627 &_swigt__p_wxHelpEvent__Origin,
1bd55598
RD
58628 &_swigt__p_wxICOHandler,
58629 &_swigt__p_wxIconizeEvent,
58630 &_swigt__p_wxIdleEvent,
58631 &_swigt__p_wxImage,
58632 &_swigt__p_wxImageHandler,
58633 &_swigt__p_wxImageHistogram,
58634 &_swigt__p_wxImage_HSVValue,
58635 &_swigt__p_wxImage_RGBValue,
58636 &_swigt__p_wxIndividualLayoutConstraint,
58637 &_swigt__p_wxInitDialogEvent,
58638 &_swigt__p_wxInputStream,
58639 &_swigt__p_wxInternetFSHandler,
58640 &_swigt__p_wxItemContainer,
58641 &_swigt__p_wxJPEGHandler,
58642 &_swigt__p_wxKeyEvent,
58643 &_swigt__p_wxLayoutConstraints,
58644 &_swigt__p_wxMaximizeEvent,
58645 &_swigt__p_wxMemoryFSHandler,
58646 &_swigt__p_wxMenu,
58647 &_swigt__p_wxMenuBar,
58648 &_swigt__p_wxMenuBarBase,
58649 &_swigt__p_wxMenuEvent,
58650 &_swigt__p_wxMenuItem,
58651 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 58652 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
58653 &_swigt__p_wxMouseEvent,
58654 &_swigt__p_wxMoveEvent,
58655 &_swigt__p_wxNavigationKeyEvent,
58656 &_swigt__p_wxNcPaintEvent,
58657 &_swigt__p_wxNotifyEvent,
58658 &_swigt__p_wxObject,
58659 &_swigt__p_wxOutputStream,
58660 &_swigt__p_wxPCXHandler,
58661 &_swigt__p_wxPNGHandler,
58662 &_swigt__p_wxPNMHandler,
58663 &_swigt__p_wxPaintEvent,
58664 &_swigt__p_wxPaletteChangedEvent,
58665 &_swigt__p_wxPaperSize,
58666 &_swigt__p_wxPoint,
58667 &_swigt__p_wxPoint2D,
58668 &_swigt__p_wxPropagateOnce,
58669 &_swigt__p_wxPropagationDisabler,
58670 &_swigt__p_wxPyApp,
58671 &_swigt__p_wxPyCommandEvent,
58672 &_swigt__p_wxPyDropTarget,
58673 &_swigt__p_wxPyEvent,
58674 &_swigt__p_wxPyFileSystemHandler,
58675 &_swigt__p_wxPyImageHandler,
58676 &_swigt__p_wxPyInputStream,
58677 &_swigt__p_wxPySizer,
58678 &_swigt__p_wxPyValidator,
58679 &_swigt__p_wxQuantize,
58680 &_swigt__p_wxQueryNewPaletteEvent,
58681 &_swigt__p_wxRealPoint,
58682 &_swigt__p_wxRect,
70d7cb34 58683 &_swigt__p_wxRect2D,
1bd55598
RD
58684 &_swigt__p_wxRegion,
58685 &_swigt__p_wxScrollEvent,
58686 &_swigt__p_wxScrollWinEvent,
58687 &_swigt__p_wxSetCursorEvent,
58688 &_swigt__p_wxShowEvent,
58689 &_swigt__p_wxSize,
58690 &_swigt__p_wxSizeEvent,
58691 &_swigt__p_wxSizer,
58692 &_swigt__p_wxSizerItem,
58693 &_swigt__p_wxStaticBox,
58694 &_swigt__p_wxStaticBoxSizer,
58695 &_swigt__p_wxStdDialogButtonSizer,
58696 &_swigt__p_wxSysColourChangedEvent,
580080c5 58697 &_swigt__p_wxTGAHandler,
1bd55598
RD
58698 &_swigt__p_wxTIFFHandler,
58699 &_swigt__p_wxToolTip,
58700 &_swigt__p_wxUpdateUIEvent,
58701 &_swigt__p_wxValidator,
58702 &_swigt__p_wxVisualAttributes,
58703 &_swigt__p_wxWindow,
58704 &_swigt__p_wxWindowCreateEvent,
58705 &_swigt__p_wxWindowDestroyEvent,
58706 &_swigt__p_wxXPMHandler,
58707 &_swigt__p_wxZipFSHandler,
58708};
58709
58710static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
58711static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
58712static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
58713static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
58714static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
58715static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
58716static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
58717static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
58718static swig_cast_info _swigc__p_wxANIHandler[] = { {&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
58719static swig_cast_info _swigc__p_wxAcceleratorEntry[] = { {&_swigt__p_wxAcceleratorEntry, 0, 0, 0},{0, 0, 0, 0}};
58720static swig_cast_info _swigc__p_wxAcceleratorTable[] = { {&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
58721static swig_cast_info _swigc__p_wxActivateEvent[] = { {&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
58722static swig_cast_info _swigc__p_wxAppTraits[] = { {&_swigt__p_wxAppTraits, 0, 0, 0},{0, 0, 0, 0}};
58723static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
58724static swig_cast_info _swigc__p_wxBMPHandler[] = { {&_swigt__p_wxBMPHandler, 0, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxBMPHandler, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxBMPHandler, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxBMPHandler, 0, 0},{0, 0, 0, 0}};
58725static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
58726static swig_cast_info _swigc__p_wxBoxSizer[] = { {&_swigt__p_wxBoxSizer, 0, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxBoxSizer, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxBoxSizer, 0, 0},{0, 0, 0, 0}};
58727static swig_cast_info _swigc__p_wxButton[] = { {&_swigt__p_wxButton, 0, 0, 0},{0, 0, 0, 0}};
58728static swig_cast_info _swigc__p_wxCURHandler[] = { {&_swigt__p_wxCURHandler, 0, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxCURHandler, 0, 0},{0, 0, 0, 0}};
58729static swig_cast_info _swigc__p_wxCaret[] = { {&_swigt__p_wxCaret, 0, 0, 0},{0, 0, 0, 0}};
58730static swig_cast_info _swigc__p_wxChildFocusEvent[] = { {&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 58731static swig_cast_info _swigc__p_wxClipboardTextEvent[] = { {&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
58732static swig_cast_info _swigc__p_wxCloseEvent[] = { {&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
58733static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
2131d850 58734static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
58735static swig_cast_info _swigc__p_wxContextMenuEvent[] = { {&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
58736static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
58737static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
58738static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
58739static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
58740static swig_cast_info _swigc__p_wxDateEvent[] = { {&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
58741static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
58742static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = { {&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 58743static swig_cast_info _swigc__p_wxDouble[] = { {&_swigt__p_wxDouble, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
58744static swig_cast_info _swigc__p_wxDropFilesEvent[] = { {&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
58745static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
58746static swig_cast_info _swigc__p_wxEraseEvent[] = { {&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 58747static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
58748static swig_cast_info _swigc__p_wxEventLoop[] = { {&_swigt__p_wxEventLoop, 0, 0, 0},{0, 0, 0, 0}};
58749static swig_cast_info _swigc__p_wxEventLoopActivator[] = { {&_swigt__p_wxEventLoopActivator, 0, 0, 0},{0, 0, 0, 0}};
58750static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
58751static swig_cast_info _swigc__p_wxFSFile[] = { {&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
58752static swig_cast_info _swigc__p_wxFileSystem[] = { {&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
58753static swig_cast_info _swigc__p_wxFileSystemHandler[] = { {&_swigt__p_wxFileSystemHandler, 0, 0, 0}, {&_swigt__p_wxPyFileSystemHandler, _p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler, 0, 0}, {&_swigt__p_wxInternetFSHandler, _p_wxInternetFSHandlerTo_p_wxFileSystemHandler, 0, 0}, {&_swigt__p_wxZipFSHandler, _p_wxZipFSHandlerTo_p_wxFileSystemHandler, 0, 0}, {&_swigt__p_wxMemoryFSHandler, _p_wxMemoryFSHandlerTo_p_wxFileSystemHandler, 0, 0},{0, 0, 0, 0}};
58754static swig_cast_info _swigc__p_wxFlexGridSizer[] = { {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxFlexGridSizer, 0, 0}, {&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
58755static swig_cast_info _swigc__p_wxFocusEvent[] = { {&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
58756static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
58757static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}};
58758static swig_cast_info _swigc__p_wxGBPosition[] = { {&_swigt__p_wxGBPosition, 0, 0, 0},{0, 0, 0, 0}};
58759static swig_cast_info _swigc__p_wxGBSizerItem[] = { {&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
58760static swig_cast_info _swigc__p_wxGBSpan[] = { {&_swigt__p_wxGBSpan, 0, 0, 0},{0, 0, 0, 0}};
58761static swig_cast_info _swigc__p_wxGIFHandler[] = { {&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
58762static swig_cast_info _swigc__p_wxGridBagSizer[] = { {&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
58763static swig_cast_info _swigc__p_wxGridSizer[] = { {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxGridSizer, 0, 0}, {&_swigt__p_wxGridSizer, 0, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxGridSizer, 0, 0},{0, 0, 0, 0}};
b850e7f3 58764static swig_cast_info _swigc__p_wxHelpEvent__Origin[] = { {&_swigt__p_wxHelpEvent__Origin, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
58765static swig_cast_info _swigc__p_wxICOHandler[] = { {&_swigt__p_wxICOHandler, 0, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxICOHandler, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxICOHandler, 0, 0},{0, 0, 0, 0}};
58766static swig_cast_info _swigc__p_wxIconizeEvent[] = { {&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
58767static swig_cast_info _swigc__p_wxIdleEvent[] = { {&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
58768static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
580080c5 58769static swig_cast_info _swigc__p_wxImageHandler[] = { {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
58770static swig_cast_info _swigc__p_wxImageHistogram[] = { {&_swigt__p_wxImageHistogram, 0, 0, 0},{0, 0, 0, 0}};
58771static swig_cast_info _swigc__p_wxImage_HSVValue[] = { {&_swigt__p_wxImage_HSVValue, 0, 0, 0},{0, 0, 0, 0}};
58772static swig_cast_info _swigc__p_wxImage_RGBValue[] = { {&_swigt__p_wxImage_RGBValue, 0, 0, 0},{0, 0, 0, 0}};
58773static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = { {&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
58774static swig_cast_info _swigc__p_wxInitDialogEvent[] = { {&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
58775static swig_cast_info _swigc__p_wxInputStream[] = { {&_swigt__p_wxInputStream, 0, 0, 0},{0, 0, 0, 0}};
58776static swig_cast_info _swigc__p_wxInternetFSHandler[] = { {&_swigt__p_wxInternetFSHandler, 0, 0, 0},{0, 0, 0, 0}};
58777static swig_cast_info _swigc__p_wxItemContainer[] = { {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxItemContainer, 0, 0, 0},{0, 0, 0, 0}};
58778static swig_cast_info _swigc__p_wxJPEGHandler[] = { {&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
58779static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
58780static swig_cast_info _swigc__p_wxLayoutConstraints[] = { {&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
58781static swig_cast_info _swigc__p_wxMaximizeEvent[] = { {&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
58782static swig_cast_info _swigc__p_wxMemoryFSHandler[] = { {&_swigt__p_wxMemoryFSHandler, 0, 0, 0},{0, 0, 0, 0}};
58783static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
58784static swig_cast_info _swigc__p_wxMenuBar[] = { {&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
58785static swig_cast_info _swigc__p_wxMenuBarBase[] = { {&_swigt__p_wxMenuBarBase, 0, 0, 0},{0, 0, 0, 0}};
58786static swig_cast_info _swigc__p_wxMenuEvent[] = { {&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
58787static swig_cast_info _swigc__p_wxMenuItem[] = { {&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
58788static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = { {&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 58789static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = { {&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
58790static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
58791static swig_cast_info _swigc__p_wxMoveEvent[] = { {&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
58792static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = { {&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
58793static swig_cast_info _swigc__p_wxNcPaintEvent[] = { {&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
58794static swig_cast_info _swigc__p_wxNotifyEvent[] = { {&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
580080c5 58795static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
58796static swig_cast_info _swigc__p_wxOutputStream[] = { {&_swigt__p_wxOutputStream, 0, 0, 0},{0, 0, 0, 0}};
58797static swig_cast_info _swigc__p_wxPCXHandler[] = { {&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
58798static swig_cast_info _swigc__p_wxPNGHandler[] = { {&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
58799static swig_cast_info _swigc__p_wxPNMHandler[] = { {&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
58800static swig_cast_info _swigc__p_wxPaintEvent[] = { {&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
58801static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = { {&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
58802static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
58803static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
58804static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
58805static swig_cast_info _swigc__p_wxPropagateOnce[] = { {&_swigt__p_wxPropagateOnce, 0, 0, 0},{0, 0, 0, 0}};
58806static swig_cast_info _swigc__p_wxPropagationDisabler[] = { {&_swigt__p_wxPropagationDisabler, 0, 0, 0},{0, 0, 0, 0}};
58807static swig_cast_info _swigc__p_wxPyApp[] = { {&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
58808static swig_cast_info _swigc__p_wxPyCommandEvent[] = { {&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
58809static swig_cast_info _swigc__p_wxPyDropTarget[] = { {&_swigt__p_wxPyDropTarget, 0, 0, 0},{0, 0, 0, 0}};
58810static swig_cast_info _swigc__p_wxPyEvent[] = { {&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
58811static swig_cast_info _swigc__p_wxPyFileSystemHandler[] = { {&_swigt__p_wxPyFileSystemHandler, 0, 0, 0},{0, 0, 0, 0}};
58812static swig_cast_info _swigc__p_wxPyImageHandler[] = { {&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
58813static swig_cast_info _swigc__p_wxPyInputStream[] = { {&_swigt__p_wxPyInputStream, 0, 0, 0},{0, 0, 0, 0}};
58814static swig_cast_info _swigc__p_wxPySizer[] = { {&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
58815static swig_cast_info _swigc__p_wxPyValidator[] = { {&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
58816static swig_cast_info _swigc__p_wxQuantize[] = { {&_swigt__p_wxQuantize, 0, 0, 0},{0, 0, 0, 0}};
58817static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = { {&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
58818static swig_cast_info _swigc__p_wxRealPoint[] = { {&_swigt__p_wxRealPoint, 0, 0, 0},{0, 0, 0, 0}};
58819static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 58820static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
58821static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
58822static swig_cast_info _swigc__p_wxScrollEvent[] = { {&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
58823static swig_cast_info _swigc__p_wxScrollWinEvent[] = { {&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
58824static swig_cast_info _swigc__p_wxSetCursorEvent[] = { {&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
58825static swig_cast_info _swigc__p_wxShowEvent[] = { {&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
58826static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
58827static swig_cast_info _swigc__p_wxSizeEvent[] = { {&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
58828static swig_cast_info _swigc__p_wxSizer[] = { {&_swigt__p_wxSizer, 0, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxSizer, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxSizer, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxSizer, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxSizer, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxSizer, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxSizer, 0, 0},{0, 0, 0, 0}};
58829static swig_cast_info _swigc__p_wxSizerItem[] = { {&_swigt__p_wxSizerItem, 0, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxSizerItem, 0, 0},{0, 0, 0, 0}};
58830static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
58831static swig_cast_info _swigc__p_wxStaticBoxSizer[] = { {&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
58832static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = { {&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
58833static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = { {&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
580080c5 58834static swig_cast_info _swigc__p_wxTGAHandler[] = { {&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
58835static swig_cast_info _swigc__p_wxTIFFHandler[] = { {&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
58836static swig_cast_info _swigc__p_wxToolTip[] = { {&_swigt__p_wxToolTip, 0, 0, 0},{0, 0, 0, 0}};
58837static swig_cast_info _swigc__p_wxUpdateUIEvent[] = { {&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
58838static swig_cast_info _swigc__p_wxValidator[] = { {&_swigt__p_wxValidator, 0, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxValidator, 0, 0},{0, 0, 0, 0}};
58839static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
58840static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
58841static swig_cast_info _swigc__p_wxWindowCreateEvent[] = { {&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
58842static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = { {&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
58843static swig_cast_info _swigc__p_wxXPMHandler[] = { {&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
58844static swig_cast_info _swigc__p_wxZipFSHandler[] = { {&_swigt__p_wxZipFSHandler, 0, 0, 0},{0, 0, 0, 0}};
58845
58846static swig_cast_info *swig_cast_initial[] = {
58847 _swigc__p_buffer,
58848 _swigc__p_char,
58849 _swigc__p_form_ops_t,
58850 _swigc__p_int,
58851 _swigc__p_long,
58852 _swigc__p_unsigned_char,
58853 _swigc__p_unsigned_int,
58854 _swigc__p_unsigned_long,
58855 _swigc__p_wxANIHandler,
58856 _swigc__p_wxAcceleratorEntry,
58857 _swigc__p_wxAcceleratorTable,
58858 _swigc__p_wxActivateEvent,
58859 _swigc__p_wxAppTraits,
58860 _swigc__p_wxArrayString,
58861 _swigc__p_wxBMPHandler,
58862 _swigc__p_wxBitmap,
58863 _swigc__p_wxBoxSizer,
58864 _swigc__p_wxButton,
58865 _swigc__p_wxCURHandler,
58866 _swigc__p_wxCaret,
58867 _swigc__p_wxChildFocusEvent,
2131d850 58868 _swigc__p_wxClipboardTextEvent,
1bd55598
RD
58869 _swigc__p_wxCloseEvent,
58870 _swigc__p_wxColour,
58871 _swigc__p_wxCommandEvent,
58872 _swigc__p_wxContextMenuEvent,
58873 _swigc__p_wxControl,
58874 _swigc__p_wxControlWithItems,
58875 _swigc__p_wxCursor,
58876 _swigc__p_wxDC,
58877 _swigc__p_wxDateEvent,
58878 _swigc__p_wxDateTime,
58879 _swigc__p_wxDisplayChangedEvent,
70d7cb34 58880 _swigc__p_wxDouble,
1bd55598
RD
58881 _swigc__p_wxDropFilesEvent,
58882 _swigc__p_wxDuplexMode,
58883 _swigc__p_wxEraseEvent,
58884 _swigc__p_wxEvent,
58885 _swigc__p_wxEventLoop,
58886 _swigc__p_wxEventLoopActivator,
58887 _swigc__p_wxEvtHandler,
58888 _swigc__p_wxFSFile,
58889 _swigc__p_wxFileSystem,
58890 _swigc__p_wxFileSystemHandler,
58891 _swigc__p_wxFlexGridSizer,
58892 _swigc__p_wxFocusEvent,
58893 _swigc__p_wxFont,
58894 _swigc__p_wxFrame,
58895 _swigc__p_wxGBPosition,
58896 _swigc__p_wxGBSizerItem,
58897 _swigc__p_wxGBSpan,
58898 _swigc__p_wxGIFHandler,
58899 _swigc__p_wxGridBagSizer,
58900 _swigc__p_wxGridSizer,
b850e7f3 58901 _swigc__p_wxHelpEvent__Origin,
1bd55598
RD
58902 _swigc__p_wxICOHandler,
58903 _swigc__p_wxIconizeEvent,
58904 _swigc__p_wxIdleEvent,
58905 _swigc__p_wxImage,
58906 _swigc__p_wxImageHandler,
58907 _swigc__p_wxImageHistogram,
58908 _swigc__p_wxImage_HSVValue,
58909 _swigc__p_wxImage_RGBValue,
58910 _swigc__p_wxIndividualLayoutConstraint,
58911 _swigc__p_wxInitDialogEvent,
58912 _swigc__p_wxInputStream,
58913 _swigc__p_wxInternetFSHandler,
58914 _swigc__p_wxItemContainer,
58915 _swigc__p_wxJPEGHandler,
58916 _swigc__p_wxKeyEvent,
58917 _swigc__p_wxLayoutConstraints,
58918 _swigc__p_wxMaximizeEvent,
58919 _swigc__p_wxMemoryFSHandler,
58920 _swigc__p_wxMenu,
58921 _swigc__p_wxMenuBar,
58922 _swigc__p_wxMenuBarBase,
58923 _swigc__p_wxMenuEvent,
58924 _swigc__p_wxMenuItem,
58925 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 58926 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
58927 _swigc__p_wxMouseEvent,
58928 _swigc__p_wxMoveEvent,
58929 _swigc__p_wxNavigationKeyEvent,
58930 _swigc__p_wxNcPaintEvent,
58931 _swigc__p_wxNotifyEvent,
58932 _swigc__p_wxObject,
58933 _swigc__p_wxOutputStream,
58934 _swigc__p_wxPCXHandler,
58935 _swigc__p_wxPNGHandler,
58936 _swigc__p_wxPNMHandler,
58937 _swigc__p_wxPaintEvent,
58938 _swigc__p_wxPaletteChangedEvent,
58939 _swigc__p_wxPaperSize,
58940 _swigc__p_wxPoint,
58941 _swigc__p_wxPoint2D,
58942 _swigc__p_wxPropagateOnce,
58943 _swigc__p_wxPropagationDisabler,
58944 _swigc__p_wxPyApp,
58945 _swigc__p_wxPyCommandEvent,
58946 _swigc__p_wxPyDropTarget,
58947 _swigc__p_wxPyEvent,
58948 _swigc__p_wxPyFileSystemHandler,
58949 _swigc__p_wxPyImageHandler,
58950 _swigc__p_wxPyInputStream,
58951 _swigc__p_wxPySizer,
58952 _swigc__p_wxPyValidator,
58953 _swigc__p_wxQuantize,
58954 _swigc__p_wxQueryNewPaletteEvent,
58955 _swigc__p_wxRealPoint,
58956 _swigc__p_wxRect,
70d7cb34 58957 _swigc__p_wxRect2D,
1bd55598
RD
58958 _swigc__p_wxRegion,
58959 _swigc__p_wxScrollEvent,
58960 _swigc__p_wxScrollWinEvent,
58961 _swigc__p_wxSetCursorEvent,
58962 _swigc__p_wxShowEvent,
58963 _swigc__p_wxSize,
58964 _swigc__p_wxSizeEvent,
58965 _swigc__p_wxSizer,
58966 _swigc__p_wxSizerItem,
58967 _swigc__p_wxStaticBox,
58968 _swigc__p_wxStaticBoxSizer,
58969 _swigc__p_wxStdDialogButtonSizer,
58970 _swigc__p_wxSysColourChangedEvent,
580080c5 58971 _swigc__p_wxTGAHandler,
1bd55598
RD
58972 _swigc__p_wxTIFFHandler,
58973 _swigc__p_wxToolTip,
58974 _swigc__p_wxUpdateUIEvent,
58975 _swigc__p_wxValidator,
58976 _swigc__p_wxVisualAttributes,
58977 _swigc__p_wxWindow,
58978 _swigc__p_wxWindowCreateEvent,
58979 _swigc__p_wxWindowDestroyEvent,
58980 _swigc__p_wxXPMHandler,
58981 _swigc__p_wxZipFSHandler,
58982};
58983
58984
58985/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
58986
58987static swig_const_info swig_const_table[] = {
58988{0, 0, 0, 0.0, 0, 0}};
58989
58990#ifdef __cplusplus
58991}
58992#endif
58993/* -----------------------------------------------------------------------------
58994 * Type initialization:
58995 * This problem is tough by the requirement that no dynamic
58996 * memory is used. Also, since swig_type_info structures store pointers to
58997 * swig_cast_info structures and swig_cast_info structures store pointers back
58998 * to swig_type_info structures, we need some lookup code at initialization.
58999 * The idea is that swig generates all the structures that are needed.
59000 * The runtime then collects these partially filled structures.
59001 * The SWIG_InitializeModule function takes these initial arrays out of
59002 * swig_module, and does all the lookup, filling in the swig_module.types
59003 * array with the correct data and linking the correct swig_cast_info
59004 * structures together.
59005 *
59006 * The generated swig_type_info structures are assigned staticly to an initial
59007 * array. We just loop though that array, and handle each type individually.
59008 * First we lookup if this type has been already loaded, and if so, use the
59009 * loaded structure instead of the generated one. Then we have to fill in the
59010 * cast linked list. The cast data is initially stored in something like a
59011 * two-dimensional array. Each row corresponds to a type (there are the same
59012 * number of rows as there are in the swig_type_initial array). Each entry in
59013 * a column is one of the swig_cast_info structures for that type.
59014 * The cast_initial array is actually an array of arrays, because each row has
59015 * a variable number of columns. So to actually build the cast linked list,
59016 * we find the array of casts associated with the type, and loop through it
59017 * adding the casts to the list. The one last trick we need to do is making
59018 * sure the type pointer in the swig_cast_info struct is correct.
59019 *
59020 * First off, we lookup the cast->type name to see if it is already loaded.
59021 * There are three cases to handle:
59022 * 1) If the cast->type has already been loaded AND the type we are adding
59023 * casting info to has not been loaded (it is in this module), THEN we
59024 * replace the cast->type pointer with the type pointer that has already
59025 * been loaded.
59026 * 2) If BOTH types (the one we are adding casting info to, and the
59027 * cast->type) are loaded, THEN the cast info has already been loaded by
59028 * the previous module so we just ignore it.
59029 * 3) Finally, if cast->type has not already been loaded, then we add that
59030 * swig_cast_info to the linked list (because the cast->type) pointer will
59031 * be correct.
59032 * ----------------------------------------------------------------------------- */
59033
59034#ifdef __cplusplus
59035extern "C" {
59036#if 0
59037} /* c-mode */
59038#endif
59039#endif
59040
59041#if 0
59042#define SWIGRUNTIME_DEBUG
59043#endif
59044
59045SWIGRUNTIME void
59046SWIG_InitializeModule(void *clientdata) {
59047 size_t i;
59048 swig_module_info *module_head;
59049 static int init_run = 0;
59050
59051 clientdata = clientdata;
59052
59053 if (init_run) return;
59054 init_run = 1;
59055
59056 /* Initialize the swig_module */
59057 swig_module.type_initial = swig_type_initial;
59058 swig_module.cast_initial = swig_cast_initial;
59059
59060 /* Try and load any already created modules */
59061 module_head = SWIG_GetModule(clientdata);
59062 if (module_head) {
59063 swig_module.next = module_head->next;
59064 module_head->next = &swig_module;
59065 } else {
59066 /* This is the first module loaded */
59067 swig_module.next = &swig_module;
59068 SWIG_SetModule(clientdata, &swig_module);
59069 }
59070
59071 /* Now work on filling in swig_module.types */
59072#ifdef SWIGRUNTIME_DEBUG
59073 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
59074#endif
59075 for (i = 0; i < swig_module.size; ++i) {
59076 swig_type_info *type = 0;
59077 swig_type_info *ret;
59078 swig_cast_info *cast;
59079
59080#ifdef SWIGRUNTIME_DEBUG
59081 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
59082#endif
59083
59084 /* if there is another module already loaded */
59085 if (swig_module.next != &swig_module) {
59086 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36ed4f51 59087 }
1bd55598
RD
59088 if (type) {
59089 /* Overwrite clientdata field */
59090#ifdef SWIGRUNTIME_DEBUG
59091 printf("SWIG_InitializeModule: found type %s\n", type->name);
59092#endif
59093 if (swig_module.type_initial[i]->clientdata) {
59094 type->clientdata = swig_module.type_initial[i]->clientdata;
59095#ifdef SWIGRUNTIME_DEBUG
59096 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
59097#endif
59098 }
59099 } else {
59100 type = swig_module.type_initial[i];
36ed4f51 59101 }
1bd55598
RD
59102
59103 /* Insert casting types */
59104 cast = swig_module.cast_initial[i];
59105 while (cast->type) {
59106 /* Don't need to add information already in the list */
59107 ret = 0;
59108#ifdef SWIGRUNTIME_DEBUG
59109 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
59110#endif
59111 if (swig_module.next != &swig_module) {
59112 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
59113#ifdef SWIGRUNTIME_DEBUG
59114 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
59115#endif
59116 }
59117 if (ret) {
59118 if (type == swig_module.type_initial[i]) {
59119#ifdef SWIGRUNTIME_DEBUG
59120 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
59121#endif
59122 cast->type = ret;
59123 ret = 0;
59124 } else {
59125 /* Check for casting already in the list */
59126 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
59127#ifdef SWIGRUNTIME_DEBUG
59128 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
59129#endif
59130 if (!ocast) ret = 0;
59131 }
59132 }
59133
59134 if (!ret) {
59135#ifdef SWIGRUNTIME_DEBUG
59136 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
59137#endif
59138 if (type->cast) {
59139 type->cast->prev = cast;
59140 cast->next = type->cast;
59141 }
59142 type->cast = cast;
59143 }
59144 cast++;
36ed4f51 59145 }
1bd55598
RD
59146 /* Set entry in modules->types array equal to the type */
59147 swig_module.types[i] = type;
59148 }
59149 swig_module.types[i] = 0;
59150
59151#ifdef SWIGRUNTIME_DEBUG
59152 printf("**** SWIG_InitializeModule: Cast List ******\n");
59153 for (i = 0; i < swig_module.size; ++i) {
59154 int j = 0;
59155 swig_cast_info *cast = swig_module.cast_initial[i];
59156 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
59157 while (cast->type) {
59158 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
59159 cast++;
59160 ++j;
59161 }
59162 printf("---- Total casts: %d\n",j);
59163 }
59164 printf("**** SWIG_InitializeModule: Cast List ******\n");
59165#endif
59166}
59167
59168/* This function will propagate the clientdata field of type to
59169* any new swig_type_info structures that have been added into the list
59170* of equivalent types. It is like calling
59171* SWIG_TypeClientData(type, clientdata) a second time.
59172*/
59173SWIGRUNTIME void
59174SWIG_PropagateClientData(void) {
59175 size_t i;
59176 swig_cast_info *equiv;
59177 static int init_run = 0;
59178
59179 if (init_run) return;
59180 init_run = 1;
59181
59182 for (i = 0; i < swig_module.size; i++) {
59183 if (swig_module.types[i]->clientdata) {
59184 equiv = swig_module.types[i]->cast;
59185 while (equiv) {
59186 if (!equiv->converter) {
59187 if (equiv->type && !equiv->type->clientdata)
59188 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
59189 }
59190 equiv = equiv->next;
59191 }
36ed4f51 59192 }
1bd55598
RD
59193 }
59194}
59195
59196#ifdef __cplusplus
59197#if 0
59198{
59199 /* c-mode */
59200#endif
59201}
59202#endif
59203
59204
59205
59206#ifdef __cplusplus
59207extern "C" {
59208#endif
59209
59210 /* Python-specific SWIG API */
59211#define SWIG_newvarlink() SWIG_Python_newvarlink()
59212#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
59213#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
59214
59215 /* -----------------------------------------------------------------------------
59216 * global variable support code.
59217 * ----------------------------------------------------------------------------- */
59218
59219 typedef struct swig_globalvar {
59220 char *name; /* Name of global variable */
59221 PyObject *(*get_attr)(void); /* Return the current value */
59222 int (*set_attr)(PyObject *); /* Set the value */
59223 struct swig_globalvar *next;
59224 } swig_globalvar;
59225
59226 typedef struct swig_varlinkobject {
59227 PyObject_HEAD
59228 swig_globalvar *vars;
59229 } swig_varlinkobject;
59230
59231 SWIGINTERN PyObject *
59232 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
59233 return PyString_FromString("<Swig global variables>");
59234 }
59235
59236 SWIGINTERN PyObject *
59237 swig_varlink_str(swig_varlinkobject *v) {
59238 PyObject *str = PyString_FromString("(");
59239 swig_globalvar *var;
59240 for (var = v->vars; var; var=var->next) {
59241 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
59242 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
59243 }
59244 PyString_ConcatAndDel(&str,PyString_FromString(")"));
59245 return str;
59246 }
59247
59248 SWIGINTERN int
59249 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
59250 PyObject *str = swig_varlink_str(v);
59251 fprintf(fp,"Swig global variables ");
59252 fprintf(fp,"%s\n", PyString_AsString(str));
59253 Py_DECREF(str);
59254 return 0;
59255 }
59256
59257 SWIGINTERN void
59258 swig_varlink_dealloc(swig_varlinkobject *v) {
59259 swig_globalvar *var = v->vars;
59260 while (var) {
59261 swig_globalvar *n = var->next;
59262 free(var->name);
59263 free(var);
59264 var = n;
36ed4f51 59265 }
1bd55598
RD
59266 }
59267
59268 SWIGINTERN PyObject *
59269 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
59270 PyObject *res = NULL;
59271 swig_globalvar *var = v->vars;
59272 while (var) {
59273 if (strcmp(var->name,n) == 0) {
59274 res = (*var->get_attr)();
59275 break;
59276 }
59277 var = var->next;
36ed4f51 59278 }
1bd55598
RD
59279 if (res == NULL && !PyErr_Occurred()) {
59280 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36ed4f51 59281 }
1bd55598
RD
59282 return res;
59283 }
59284
59285 SWIGINTERN int
59286 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
59287 int res = 1;
59288 swig_globalvar *var = v->vars;
59289 while (var) {
59290 if (strcmp(var->name,n) == 0) {
59291 res = (*var->set_attr)(p);
59292 break;
59293 }
59294 var = var->next;
36ed4f51 59295 }
1bd55598
RD
59296 if (res == 1 && !PyErr_Occurred()) {
59297 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36ed4f51 59298 }
1bd55598
RD
59299 return res;
59300 }
59301
59302 SWIGINTERN PyTypeObject*
59303 swig_varlink_type(void) {
59304 static char varlink__doc__[] = "Swig var link object";
59305 static PyTypeObject varlink_type;
59306 static int type_init = 0;
59307 if (!type_init) {
59308 const PyTypeObject tmp
59309 = {
59310 PyObject_HEAD_INIT(NULL)
59311 0, /* Number of items in variable part (ob_size) */
59312 (char *)"swigvarlink", /* Type name (tp_name) */
59313 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
59314 0, /* Itemsize (tp_itemsize) */
59315 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
59316 (printfunc) swig_varlink_print, /* Print (tp_print) */
59317 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
59318 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
59319 0, /* tp_compare */
59320 (reprfunc) swig_varlink_repr, /* tp_repr */
59321 0, /* tp_as_number */
59322 0, /* tp_as_sequence */
59323 0, /* tp_as_mapping */
59324 0, /* tp_hash */
59325 0, /* tp_call */
59326 (reprfunc)swig_varlink_str, /* tp_str */
59327 0, /* tp_getattro */
59328 0, /* tp_setattro */
59329 0, /* tp_as_buffer */
59330 0, /* tp_flags */
59331 varlink__doc__, /* tp_doc */
59332 0, /* tp_traverse */
59333 0, /* tp_clear */
59334 0, /* tp_richcompare */
59335 0, /* tp_weaklistoffset */
59336#if PY_VERSION_HEX >= 0x02020000
59337 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
59338#endif
59339#if PY_VERSION_HEX >= 0x02030000
59340 0, /* tp_del */
59341#endif
59342#ifdef COUNT_ALLOCS
59343 0,0,0,0 /* tp_alloc -> tp_next */
59344#endif
59345 };
59346 varlink_type = tmp;
59347 varlink_type.ob_type = &PyType_Type;
59348 type_init = 1;
36ed4f51 59349 }
1bd55598
RD
59350 return &varlink_type;
59351 }
59352
59353 /* Create a variable linking object for use later */
59354 SWIGINTERN PyObject *
59355 SWIG_Python_newvarlink(void) {
59356 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
59357 if (result) {
59358 result->vars = 0;
59359 }
59360 return ((PyObject*) result);
59361 }
59362
59363 SWIGINTERN void
59364 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
59365 swig_varlinkobject *v = (swig_varlinkobject *) p;
59366 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
59367 if (gv) {
59368 size_t size = strlen(name)+1;
59369 gv->name = (char *)malloc(size);
59370 if (gv->name) {
59371 strncpy(gv->name,name,size);
59372 gv->get_attr = get_attr;
59373 gv->set_attr = set_attr;
59374 gv->next = v->vars;
59375 }
36ed4f51 59376 }
1bd55598
RD
59377 v->vars = gv;
59378 }
59379
59380 SWIGINTERN PyObject *
59381 SWIG_globals() {
59382 static PyObject *_SWIG_globals = 0;
59383 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
59384 return _SWIG_globals;
59385 }
59386
59387 /* -----------------------------------------------------------------------------
59388 * constants/methods manipulation
59389 * ----------------------------------------------------------------------------- */
59390
59391 /* Install Constants */
59392 SWIGINTERN void
59393 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
59394 PyObject *obj = 0;
59395 size_t i;
59396 for (i = 0; constants[i].type; ++i) {
59397 switch(constants[i].type) {
59398 case SWIG_PY_POINTER:
59399 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
59400 break;
59401 case SWIG_PY_BINARY:
59402 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
59403 break;
59404 default:
59405 obj = 0;
59406 break;
59407 }
59408 if (obj) {
59409 PyDict_SetItemString(d, constants[i].name, obj);
59410 Py_DECREF(obj);
59411 }
36ed4f51 59412 }
1bd55598
RD
59413 }
59414
59415 /* -----------------------------------------------------------------------------*/
59416 /* Fix SwigMethods to carry the callback ptrs when needed */
59417 /* -----------------------------------------------------------------------------*/
59418
59419 SWIGINTERN void
59420 SWIG_Python_FixMethods(PyMethodDef *methods,
59421 swig_const_info *const_table,
59422 swig_type_info **types,
59423 swig_type_info **types_initial) {
59424 size_t i;
59425 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 59426 const char *c = methods[i].ml_doc;
1bd55598
RD
59427 if (c && (c = strstr(c, "swig_ptr: "))) {
59428 int j;
59429 swig_const_info *ci = 0;
3d6c9062 59430 const char *name = c + 10;
1bd55598
RD
59431 for (j = 0; const_table[j].type; ++j) {
59432 if (strncmp(const_table[j].name, name,
59433 strlen(const_table[j].name)) == 0) {
59434 ci = &(const_table[j]);
59435 break;
59436 }
59437 }
59438 if (ci) {
59439 size_t shift = (ci->ptype) - types;
59440 swig_type_info *ty = types_initial[shift];
59441 size_t ldoc = (c - methods[i].ml_doc);
59442 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
59443 char *ndoc = (char*)malloc(ldoc + lptr + 10);
59444 if (ndoc) {
59445 char *buff = ndoc;
59446 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
59447 if (ptr) {
59448 strncpy(buff, methods[i].ml_doc, ldoc);
59449 buff += ldoc;
59450 strncpy(buff, "swig_ptr: ", 10);
59451 buff += 10;
59452 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
59453 methods[i].ml_doc = ndoc;
59454 }
59455 }
59456 }
59457 }
36ed4f51 59458 }
1bd55598
RD
59459 }
59460
59461#ifdef __cplusplus
59462}
59463#endif
59464
59465/* -----------------------------------------------------------------------------*
59466 * Partial Init method
59467 * -----------------------------------------------------------------------------*/
59468
59469#ifdef __cplusplus
59470extern "C"
59471#endif
59472SWIGEXPORT void SWIG_init(void) {
59473 PyObject *m, *d;
59474
59475 /* Fix SwigMethods to carry the callback ptrs when needed */
59476 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
59477
59478 m = Py_InitModule((char *) SWIG_name, SwigMethods);
59479 d = PyModule_GetDict(m);
59480
59481 SWIG_InitializeModule(0);
59482 SWIG_InstallConstants(d,swig_const_table);
59483
59484
59485
59486#ifndef wxPyUSE_EXPORT
59487 // Make our API structure a CObject so other modules can import it
59488 // from this module.
59489 PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL);
59490 PyDict_SetItemString(d,"_wxPyCoreAPI", cobj);
59491 Py_XDECREF(cobj);
59492#endif
59493
59494 SWIG_Python_SetConstant(d, "NOT_FOUND",SWIG_From_int(static_cast< int >(wxNOT_FOUND)));
59495 SWIG_Python_SetConstant(d, "VSCROLL",SWIG_From_int(static_cast< int >(wxVSCROLL)));
59496 SWIG_Python_SetConstant(d, "HSCROLL",SWIG_From_int(static_cast< int >(wxHSCROLL)));
59497 SWIG_Python_SetConstant(d, "CAPTION",SWIG_From_int(static_cast< int >(wxCAPTION)));
59498 SWIG_Python_SetConstant(d, "DOUBLE_BORDER",SWIG_From_int(static_cast< int >(wxDOUBLE_BORDER)));
59499 SWIG_Python_SetConstant(d, "SUNKEN_BORDER",SWIG_From_int(static_cast< int >(wxSUNKEN_BORDER)));
59500 SWIG_Python_SetConstant(d, "RAISED_BORDER",SWIG_From_int(static_cast< int >(wxRAISED_BORDER)));
59501 SWIG_Python_SetConstant(d, "BORDER",SWIG_From_int(static_cast< int >(wxBORDER)));
59502 SWIG_Python_SetConstant(d, "SIMPLE_BORDER",SWIG_From_int(static_cast< int >(wxSIMPLE_BORDER)));
59503 SWIG_Python_SetConstant(d, "STATIC_BORDER",SWIG_From_int(static_cast< int >(wxSTATIC_BORDER)));
59504 SWIG_Python_SetConstant(d, "TRANSPARENT_WINDOW",SWIG_From_int(static_cast< int >(wxTRANSPARENT_WINDOW)));
59505 SWIG_Python_SetConstant(d, "NO_BORDER",SWIG_From_int(static_cast< int >(wxNO_BORDER)));
59506 SWIG_Python_SetConstant(d, "DEFAULT_CONTROL_BORDER",SWIG_From_int(static_cast< int >(wxDEFAULT_CONTROL_BORDER)));
59507 SWIG_Python_SetConstant(d, "DEFAULT_STATUSBAR_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_STATUSBAR_STYLE)));
59508 SWIG_Python_SetConstant(d, "TAB_TRAVERSAL",SWIG_From_int(static_cast< int >(wxTAB_TRAVERSAL)));
59509 SWIG_Python_SetConstant(d, "WANTS_CHARS",SWIG_From_int(static_cast< int >(wxWANTS_CHARS)));
59510 SWIG_Python_SetConstant(d, "POPUP_WINDOW",SWIG_From_int(static_cast< int >(wxPOPUP_WINDOW)));
59511 SWIG_Python_SetConstant(d, "CENTER_FRAME",SWIG_From_int(static_cast< int >(wxCENTER_FRAME)));
59512 SWIG_Python_SetConstant(d, "CENTRE_ON_SCREEN",SWIG_From_int(static_cast< int >(wxCENTRE_ON_SCREEN)));
59513 SWIG_Python_SetConstant(d, "CENTER_ON_SCREEN",SWIG_From_int(static_cast< int >(wxCENTER_ON_SCREEN)));
59514 SWIG_Python_SetConstant(d, "CLIP_CHILDREN",SWIG_From_int(static_cast< int >(wxCLIP_CHILDREN)));
59515 SWIG_Python_SetConstant(d, "CLIP_SIBLINGS",SWIG_From_int(static_cast< int >(wxCLIP_SIBLINGS)));
092f0ed7 59516 SWIG_Python_SetConstant(d, "WINDOW_STYLE_MASK",SWIG_From_int(static_cast< int >(wxWINDOW_STYLE_MASK)));
1bd55598
RD
59517 SWIG_Python_SetConstant(d, "ALWAYS_SHOW_SB",SWIG_From_int(static_cast< int >(wxALWAYS_SHOW_SB)));
59518 SWIG_Python_SetConstant(d, "RETAINED",SWIG_From_int(static_cast< int >(wxRETAINED)));
59519 SWIG_Python_SetConstant(d, "BACKINGSTORE",SWIG_From_int(static_cast< int >(wxBACKINGSTORE)));
59520 SWIG_Python_SetConstant(d, "COLOURED",SWIG_From_int(static_cast< int >(wxCOLOURED)));
59521 SWIG_Python_SetConstant(d, "FIXED_LENGTH",SWIG_From_int(static_cast< int >(wxFIXED_LENGTH)));
59522 SWIG_Python_SetConstant(d, "LB_NEEDED_SB",SWIG_From_int(static_cast< int >(wxLB_NEEDED_SB)));
59523 SWIG_Python_SetConstant(d, "LB_ALWAYS_SB",SWIG_From_int(static_cast< int >(wxLB_ALWAYS_SB)));
59524 SWIG_Python_SetConstant(d, "LB_SORT",SWIG_From_int(static_cast< int >(wxLB_SORT)));
59525 SWIG_Python_SetConstant(d, "LB_SINGLE",SWIG_From_int(static_cast< int >(wxLB_SINGLE)));
59526 SWIG_Python_SetConstant(d, "LB_MULTIPLE",SWIG_From_int(static_cast< int >(wxLB_MULTIPLE)));
59527 SWIG_Python_SetConstant(d, "LB_EXTENDED",SWIG_From_int(static_cast< int >(wxLB_EXTENDED)));
59528 SWIG_Python_SetConstant(d, "LB_OWNERDRAW",SWIG_From_int(static_cast< int >(wxLB_OWNERDRAW)));
59529 SWIG_Python_SetConstant(d, "LB_HSCROLL",SWIG_From_int(static_cast< int >(wxLB_HSCROLL)));
59530 SWIG_Python_SetConstant(d, "PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxPROCESS_ENTER)));
59531 SWIG_Python_SetConstant(d, "PASSWORD",SWIG_From_int(static_cast< int >(wxPASSWORD)));
59532 SWIG_Python_SetConstant(d, "CB_SIMPLE",SWIG_From_int(static_cast< int >(wxCB_SIMPLE)));
59533 SWIG_Python_SetConstant(d, "CB_DROPDOWN",SWIG_From_int(static_cast< int >(wxCB_DROPDOWN)));
59534 SWIG_Python_SetConstant(d, "CB_SORT",SWIG_From_int(static_cast< int >(wxCB_SORT)));
59535 SWIG_Python_SetConstant(d, "CB_READONLY",SWIG_From_int(static_cast< int >(wxCB_READONLY)));
59536 SWIG_Python_SetConstant(d, "RA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxRA_HORIZONTAL)));
59537 SWIG_Python_SetConstant(d, "RA_VERTICAL",SWIG_From_int(static_cast< int >(wxRA_VERTICAL)));
59538 SWIG_Python_SetConstant(d, "RA_SPECIFY_ROWS",SWIG_From_int(static_cast< int >(wxRA_SPECIFY_ROWS)));
59539 SWIG_Python_SetConstant(d, "RA_SPECIFY_COLS",SWIG_From_int(static_cast< int >(wxRA_SPECIFY_COLS)));
59540 SWIG_Python_SetConstant(d, "RA_USE_CHECKBOX",SWIG_From_int(static_cast< int >(wxRA_USE_CHECKBOX)));
59541 SWIG_Python_SetConstant(d, "RB_GROUP",SWIG_From_int(static_cast< int >(wxRB_GROUP)));
59542 SWIG_Python_SetConstant(d, "RB_SINGLE",SWIG_From_int(static_cast< int >(wxRB_SINGLE)));
59543 SWIG_Python_SetConstant(d, "SB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSB_HORIZONTAL)));
59544 SWIG_Python_SetConstant(d, "SB_VERTICAL",SWIG_From_int(static_cast< int >(wxSB_VERTICAL)));
59545 SWIG_Python_SetConstant(d, "RB_USE_CHECKBOX",SWIG_From_int(static_cast< int >(wxRB_USE_CHECKBOX)));
59546 SWIG_Python_SetConstant(d, "ST_SIZEGRIP",SWIG_From_int(static_cast< int >(wxST_SIZEGRIP)));
59547 SWIG_Python_SetConstant(d, "ST_NO_AUTORESIZE",SWIG_From_int(static_cast< int >(wxST_NO_AUTORESIZE)));
e9d6f3a4
RD
59548 SWIG_Python_SetConstant(d, "ST_DOTS_MIDDLE",SWIG_From_int(static_cast< int >(wxST_DOTS_MIDDLE)));
59549 SWIG_Python_SetConstant(d, "ST_DOTS_END",SWIG_From_int(static_cast< int >(wxST_DOTS_END)));
1bd55598
RD
59550 SWIG_Python_SetConstant(d, "FLOOD_SURFACE",SWIG_From_int(static_cast< int >(wxFLOOD_SURFACE)));
59551 SWIG_Python_SetConstant(d, "FLOOD_BORDER",SWIG_From_int(static_cast< int >(wxFLOOD_BORDER)));
59552 SWIG_Python_SetConstant(d, "ODDEVEN_RULE",SWIG_From_int(static_cast< int >(wxODDEVEN_RULE)));
59553 SWIG_Python_SetConstant(d, "WINDING_RULE",SWIG_From_int(static_cast< int >(wxWINDING_RULE)));
59554 SWIG_Python_SetConstant(d, "TOOL_TOP",SWIG_From_int(static_cast< int >(wxTOOL_TOP)));
59555 SWIG_Python_SetConstant(d, "TOOL_BOTTOM",SWIG_From_int(static_cast< int >(wxTOOL_BOTTOM)));
59556 SWIG_Python_SetConstant(d, "TOOL_LEFT",SWIG_From_int(static_cast< int >(wxTOOL_LEFT)));
59557 SWIG_Python_SetConstant(d, "TOOL_RIGHT",SWIG_From_int(static_cast< int >(wxTOOL_RIGHT)));
59558 SWIG_Python_SetConstant(d, "OK",SWIG_From_int(static_cast< int >(wxOK)));
59559 SWIG_Python_SetConstant(d, "YES_NO",SWIG_From_int(static_cast< int >(wxYES_NO)));
59560 SWIG_Python_SetConstant(d, "CANCEL",SWIG_From_int(static_cast< int >(wxCANCEL)));
59561 SWIG_Python_SetConstant(d, "YES",SWIG_From_int(static_cast< int >(wxYES)));
59562 SWIG_Python_SetConstant(d, "NO",SWIG_From_int(static_cast< int >(wxNO)));
59563 SWIG_Python_SetConstant(d, "NO_DEFAULT",SWIG_From_int(static_cast< int >(wxNO_DEFAULT)));
59564 SWIG_Python_SetConstant(d, "YES_DEFAULT",SWIG_From_int(static_cast< int >(wxYES_DEFAULT)));
59565 SWIG_Python_SetConstant(d, "ICON_EXCLAMATION",SWIG_From_int(static_cast< int >(wxICON_EXCLAMATION)));
59566 SWIG_Python_SetConstant(d, "ICON_HAND",SWIG_From_int(static_cast< int >(wxICON_HAND)));
59567 SWIG_Python_SetConstant(d, "ICON_QUESTION",SWIG_From_int(static_cast< int >(wxICON_QUESTION)));
59568 SWIG_Python_SetConstant(d, "ICON_INFORMATION",SWIG_From_int(static_cast< int >(wxICON_INFORMATION)));
59569 SWIG_Python_SetConstant(d, "ICON_STOP",SWIG_From_int(static_cast< int >(wxICON_STOP)));
59570 SWIG_Python_SetConstant(d, "ICON_ASTERISK",SWIG_From_int(static_cast< int >(wxICON_ASTERISK)));
59571 SWIG_Python_SetConstant(d, "ICON_MASK",SWIG_From_int(static_cast< int >(wxICON_MASK)));
59572 SWIG_Python_SetConstant(d, "ICON_WARNING",SWIG_From_int(static_cast< int >(wxICON_WARNING)));
59573 SWIG_Python_SetConstant(d, "ICON_ERROR",SWIG_From_int(static_cast< int >(wxICON_ERROR)));
59574 SWIG_Python_SetConstant(d, "FORWARD",SWIG_From_int(static_cast< int >(wxFORWARD)));
59575 SWIG_Python_SetConstant(d, "BACKWARD",SWIG_From_int(static_cast< int >(wxBACKWARD)));
59576 SWIG_Python_SetConstant(d, "RESET",SWIG_From_int(static_cast< int >(wxRESET)));
59577 SWIG_Python_SetConstant(d, "HELP",SWIG_From_int(static_cast< int >(wxHELP)));
59578 SWIG_Python_SetConstant(d, "MORE",SWIG_From_int(static_cast< int >(wxMORE)));
59579 SWIG_Python_SetConstant(d, "SETUP",SWIG_From_int(static_cast< int >(wxSETUP)));
59580 SWIG_Python_SetConstant(d, "SIZE_AUTO_WIDTH",SWIG_From_int(static_cast< int >(wxSIZE_AUTO_WIDTH)));
59581 SWIG_Python_SetConstant(d, "SIZE_AUTO_HEIGHT",SWIG_From_int(static_cast< int >(wxSIZE_AUTO_HEIGHT)));
59582 SWIG_Python_SetConstant(d, "SIZE_AUTO",SWIG_From_int(static_cast< int >(wxSIZE_AUTO)));
59583 SWIG_Python_SetConstant(d, "SIZE_USE_EXISTING",SWIG_From_int(static_cast< int >(wxSIZE_USE_EXISTING)));
59584 SWIG_Python_SetConstant(d, "SIZE_ALLOW_MINUS_ONE",SWIG_From_int(static_cast< int >(wxSIZE_ALLOW_MINUS_ONE)));
59585 SWIG_Python_SetConstant(d, "SIZE_FORCE",SWIG_From_int(static_cast< int >(wxSIZE_FORCE)));
59586 SWIG_Python_SetConstant(d, "PORTRAIT",SWIG_From_int(static_cast< int >(wxPORTRAIT)));
59587 SWIG_Python_SetConstant(d, "LANDSCAPE",SWIG_From_int(static_cast< int >(wxLANDSCAPE)));
59588 SWIG_Python_SetConstant(d, "PRINT_QUALITY_HIGH",SWIG_From_int(static_cast< int >(wxPRINT_QUALITY_HIGH)));
59589 SWIG_Python_SetConstant(d, "PRINT_QUALITY_MEDIUM",SWIG_From_int(static_cast< int >(wxPRINT_QUALITY_MEDIUM)));
59590 SWIG_Python_SetConstant(d, "PRINT_QUALITY_LOW",SWIG_From_int(static_cast< int >(wxPRINT_QUALITY_LOW)));
59591 SWIG_Python_SetConstant(d, "PRINT_QUALITY_DRAFT",SWIG_From_int(static_cast< int >(wxPRINT_QUALITY_DRAFT)));
59592 SWIG_Python_SetConstant(d, "ID_ANY",SWIG_From_int(static_cast< int >(wxID_ANY)));
59593 SWIG_Python_SetConstant(d, "ID_SEPARATOR",SWIG_From_int(static_cast< int >(wxID_SEPARATOR)));
59594 SWIG_Python_SetConstant(d, "ID_NONE",SWIG_From_int(static_cast< int >(wxID_NONE)));
59595 SWIG_Python_SetConstant(d, "ID_LOWEST",SWIG_From_int(static_cast< int >(wxID_LOWEST)));
59596 SWIG_Python_SetConstant(d, "ID_OPEN",SWIG_From_int(static_cast< int >(wxID_OPEN)));
59597 SWIG_Python_SetConstant(d, "ID_CLOSE",SWIG_From_int(static_cast< int >(wxID_CLOSE)));
59598 SWIG_Python_SetConstant(d, "ID_NEW",SWIG_From_int(static_cast< int >(wxID_NEW)));
59599 SWIG_Python_SetConstant(d, "ID_SAVE",SWIG_From_int(static_cast< int >(wxID_SAVE)));
59600 SWIG_Python_SetConstant(d, "ID_SAVEAS",SWIG_From_int(static_cast< int >(wxID_SAVEAS)));
59601 SWIG_Python_SetConstant(d, "ID_REVERT",SWIG_From_int(static_cast< int >(wxID_REVERT)));
59602 SWIG_Python_SetConstant(d, "ID_EXIT",SWIG_From_int(static_cast< int >(wxID_EXIT)));
59603 SWIG_Python_SetConstant(d, "ID_UNDO",SWIG_From_int(static_cast< int >(wxID_UNDO)));
59604 SWIG_Python_SetConstant(d, "ID_REDO",SWIG_From_int(static_cast< int >(wxID_REDO)));
59605 SWIG_Python_SetConstant(d, "ID_HELP",SWIG_From_int(static_cast< int >(wxID_HELP)));
59606 SWIG_Python_SetConstant(d, "ID_PRINT",SWIG_From_int(static_cast< int >(wxID_PRINT)));
59607 SWIG_Python_SetConstant(d, "ID_PRINT_SETUP",SWIG_From_int(static_cast< int >(wxID_PRINT_SETUP)));
fc46b7f3 59608 SWIG_Python_SetConstant(d, "ID_PAGE_SETUP",SWIG_From_int(static_cast< int >(wxID_PAGE_SETUP)));
1bd55598
RD
59609 SWIG_Python_SetConstant(d, "ID_PREVIEW",SWIG_From_int(static_cast< int >(wxID_PREVIEW)));
59610 SWIG_Python_SetConstant(d, "ID_ABOUT",SWIG_From_int(static_cast< int >(wxID_ABOUT)));
59611 SWIG_Python_SetConstant(d, "ID_HELP_CONTENTS",SWIG_From_int(static_cast< int >(wxID_HELP_CONTENTS)));
59612 SWIG_Python_SetConstant(d, "ID_HELP_COMMANDS",SWIG_From_int(static_cast< int >(wxID_HELP_COMMANDS)));
59613 SWIG_Python_SetConstant(d, "ID_HELP_PROCEDURES",SWIG_From_int(static_cast< int >(wxID_HELP_PROCEDURES)));
59614 SWIG_Python_SetConstant(d, "ID_HELP_CONTEXT",SWIG_From_int(static_cast< int >(wxID_HELP_CONTEXT)));
1eeb270e
RD
59615 SWIG_Python_SetConstant(d, "ID_HELP_INDEX",SWIG_From_int(static_cast< int >(wxID_HELP_INDEX)));
59616 SWIG_Python_SetConstant(d, "ID_HELP_SEARCH",SWIG_From_int(static_cast< int >(wxID_HELP_SEARCH)));
1bd55598
RD
59617 SWIG_Python_SetConstant(d, "ID_CLOSE_ALL",SWIG_From_int(static_cast< int >(wxID_CLOSE_ALL)));
59618 SWIG_Python_SetConstant(d, "ID_PREFERENCES",SWIG_From_int(static_cast< int >(wxID_PREFERENCES)));
ac5d357a 59619 SWIG_Python_SetConstant(d, "ID_EDIT",SWIG_From_int(static_cast< int >(wxID_EDIT)));
1bd55598
RD
59620 SWIG_Python_SetConstant(d, "ID_CUT",SWIG_From_int(static_cast< int >(wxID_CUT)));
59621 SWIG_Python_SetConstant(d, "ID_COPY",SWIG_From_int(static_cast< int >(wxID_COPY)));
59622 SWIG_Python_SetConstant(d, "ID_PASTE",SWIG_From_int(static_cast< int >(wxID_PASTE)));
59623 SWIG_Python_SetConstant(d, "ID_CLEAR",SWIG_From_int(static_cast< int >(wxID_CLEAR)));
59624 SWIG_Python_SetConstant(d, "ID_FIND",SWIG_From_int(static_cast< int >(wxID_FIND)));
59625 SWIG_Python_SetConstant(d, "ID_DUPLICATE",SWIG_From_int(static_cast< int >(wxID_DUPLICATE)));
59626 SWIG_Python_SetConstant(d, "ID_SELECTALL",SWIG_From_int(static_cast< int >(wxID_SELECTALL)));
59627 SWIG_Python_SetConstant(d, "ID_DELETE",SWIG_From_int(static_cast< int >(wxID_DELETE)));
59628 SWIG_Python_SetConstant(d, "ID_REPLACE",SWIG_From_int(static_cast< int >(wxID_REPLACE)));
59629 SWIG_Python_SetConstant(d, "ID_REPLACE_ALL",SWIG_From_int(static_cast< int >(wxID_REPLACE_ALL)));
59630 SWIG_Python_SetConstant(d, "ID_PROPERTIES",SWIG_From_int(static_cast< int >(wxID_PROPERTIES)));
59631 SWIG_Python_SetConstant(d, "ID_VIEW_DETAILS",SWIG_From_int(static_cast< int >(wxID_VIEW_DETAILS)));
59632 SWIG_Python_SetConstant(d, "ID_VIEW_LARGEICONS",SWIG_From_int(static_cast< int >(wxID_VIEW_LARGEICONS)));
59633 SWIG_Python_SetConstant(d, "ID_VIEW_SMALLICONS",SWIG_From_int(static_cast< int >(wxID_VIEW_SMALLICONS)));
59634 SWIG_Python_SetConstant(d, "ID_VIEW_LIST",SWIG_From_int(static_cast< int >(wxID_VIEW_LIST)));
59635 SWIG_Python_SetConstant(d, "ID_VIEW_SORTDATE",SWIG_From_int(static_cast< int >(wxID_VIEW_SORTDATE)));
59636 SWIG_Python_SetConstant(d, "ID_VIEW_SORTNAME",SWIG_From_int(static_cast< int >(wxID_VIEW_SORTNAME)));
59637 SWIG_Python_SetConstant(d, "ID_VIEW_SORTSIZE",SWIG_From_int(static_cast< int >(wxID_VIEW_SORTSIZE)));
59638 SWIG_Python_SetConstant(d, "ID_VIEW_SORTTYPE",SWIG_From_int(static_cast< int >(wxID_VIEW_SORTTYPE)));
ac5d357a 59639 SWIG_Python_SetConstant(d, "ID_FILE",SWIG_From_int(static_cast< int >(wxID_FILE)));
1bd55598
RD
59640 SWIG_Python_SetConstant(d, "ID_FILE1",SWIG_From_int(static_cast< int >(wxID_FILE1)));
59641 SWIG_Python_SetConstant(d, "ID_FILE2",SWIG_From_int(static_cast< int >(wxID_FILE2)));
59642 SWIG_Python_SetConstant(d, "ID_FILE3",SWIG_From_int(static_cast< int >(wxID_FILE3)));
59643 SWIG_Python_SetConstant(d, "ID_FILE4",SWIG_From_int(static_cast< int >(wxID_FILE4)));
59644 SWIG_Python_SetConstant(d, "ID_FILE5",SWIG_From_int(static_cast< int >(wxID_FILE5)));
59645 SWIG_Python_SetConstant(d, "ID_FILE6",SWIG_From_int(static_cast< int >(wxID_FILE6)));
59646 SWIG_Python_SetConstant(d, "ID_FILE7",SWIG_From_int(static_cast< int >(wxID_FILE7)));
59647 SWIG_Python_SetConstant(d, "ID_FILE8",SWIG_From_int(static_cast< int >(wxID_FILE8)));
59648 SWIG_Python_SetConstant(d, "ID_FILE9",SWIG_From_int(static_cast< int >(wxID_FILE9)));
59649 SWIG_Python_SetConstant(d, "ID_OK",SWIG_From_int(static_cast< int >(wxID_OK)));
59650 SWIG_Python_SetConstant(d, "ID_CANCEL",SWIG_From_int(static_cast< int >(wxID_CANCEL)));
59651 SWIG_Python_SetConstant(d, "ID_APPLY",SWIG_From_int(static_cast< int >(wxID_APPLY)));
59652 SWIG_Python_SetConstant(d, "ID_YES",SWIG_From_int(static_cast< int >(wxID_YES)));
59653 SWIG_Python_SetConstant(d, "ID_NO",SWIG_From_int(static_cast< int >(wxID_NO)));
59654 SWIG_Python_SetConstant(d, "ID_STATIC",SWIG_From_int(static_cast< int >(wxID_STATIC)));
59655 SWIG_Python_SetConstant(d, "ID_FORWARD",SWIG_From_int(static_cast< int >(wxID_FORWARD)));
59656 SWIG_Python_SetConstant(d, "ID_BACKWARD",SWIG_From_int(static_cast< int >(wxID_BACKWARD)));
59657 SWIG_Python_SetConstant(d, "ID_DEFAULT",SWIG_From_int(static_cast< int >(wxID_DEFAULT)));
59658 SWIG_Python_SetConstant(d, "ID_MORE",SWIG_From_int(static_cast< int >(wxID_MORE)));
59659 SWIG_Python_SetConstant(d, "ID_SETUP",SWIG_From_int(static_cast< int >(wxID_SETUP)));
59660 SWIG_Python_SetConstant(d, "ID_RESET",SWIG_From_int(static_cast< int >(wxID_RESET)));
59661 SWIG_Python_SetConstant(d, "ID_CONTEXT_HELP",SWIG_From_int(static_cast< int >(wxID_CONTEXT_HELP)));
59662 SWIG_Python_SetConstant(d, "ID_YESTOALL",SWIG_From_int(static_cast< int >(wxID_YESTOALL)));
59663 SWIG_Python_SetConstant(d, "ID_NOTOALL",SWIG_From_int(static_cast< int >(wxID_NOTOALL)));
59664 SWIG_Python_SetConstant(d, "ID_ABORT",SWIG_From_int(static_cast< int >(wxID_ABORT)));
59665 SWIG_Python_SetConstant(d, "ID_RETRY",SWIG_From_int(static_cast< int >(wxID_RETRY)));
59666 SWIG_Python_SetConstant(d, "ID_IGNORE",SWIG_From_int(static_cast< int >(wxID_IGNORE)));
59667 SWIG_Python_SetConstant(d, "ID_ADD",SWIG_From_int(static_cast< int >(wxID_ADD)));
59668 SWIG_Python_SetConstant(d, "ID_REMOVE",SWIG_From_int(static_cast< int >(wxID_REMOVE)));
59669 SWIG_Python_SetConstant(d, "ID_UP",SWIG_From_int(static_cast< int >(wxID_UP)));
59670 SWIG_Python_SetConstant(d, "ID_DOWN",SWIG_From_int(static_cast< int >(wxID_DOWN)));
59671 SWIG_Python_SetConstant(d, "ID_HOME",SWIG_From_int(static_cast< int >(wxID_HOME)));
59672 SWIG_Python_SetConstant(d, "ID_REFRESH",SWIG_From_int(static_cast< int >(wxID_REFRESH)));
59673 SWIG_Python_SetConstant(d, "ID_STOP",SWIG_From_int(static_cast< int >(wxID_STOP)));
59674 SWIG_Python_SetConstant(d, "ID_INDEX",SWIG_From_int(static_cast< int >(wxID_INDEX)));
59675 SWIG_Python_SetConstant(d, "ID_BOLD",SWIG_From_int(static_cast< int >(wxID_BOLD)));
59676 SWIG_Python_SetConstant(d, "ID_ITALIC",SWIG_From_int(static_cast< int >(wxID_ITALIC)));
59677 SWIG_Python_SetConstant(d, "ID_JUSTIFY_CENTER",SWIG_From_int(static_cast< int >(wxID_JUSTIFY_CENTER)));
59678 SWIG_Python_SetConstant(d, "ID_JUSTIFY_FILL",SWIG_From_int(static_cast< int >(wxID_JUSTIFY_FILL)));
59679 SWIG_Python_SetConstant(d, "ID_JUSTIFY_RIGHT",SWIG_From_int(static_cast< int >(wxID_JUSTIFY_RIGHT)));
59680 SWIG_Python_SetConstant(d, "ID_JUSTIFY_LEFT",SWIG_From_int(static_cast< int >(wxID_JUSTIFY_LEFT)));
59681 SWIG_Python_SetConstant(d, "ID_UNDERLINE",SWIG_From_int(static_cast< int >(wxID_UNDERLINE)));
59682 SWIG_Python_SetConstant(d, "ID_INDENT",SWIG_From_int(static_cast< int >(wxID_INDENT)));
59683 SWIG_Python_SetConstant(d, "ID_UNINDENT",SWIG_From_int(static_cast< int >(wxID_UNINDENT)));
59684 SWIG_Python_SetConstant(d, "ID_ZOOM_100",SWIG_From_int(static_cast< int >(wxID_ZOOM_100)));
59685 SWIG_Python_SetConstant(d, "ID_ZOOM_FIT",SWIG_From_int(static_cast< int >(wxID_ZOOM_FIT)));
59686 SWIG_Python_SetConstant(d, "ID_ZOOM_IN",SWIG_From_int(static_cast< int >(wxID_ZOOM_IN)));
59687 SWIG_Python_SetConstant(d, "ID_ZOOM_OUT",SWIG_From_int(static_cast< int >(wxID_ZOOM_OUT)));
59688 SWIG_Python_SetConstant(d, "ID_UNDELETE",SWIG_From_int(static_cast< int >(wxID_UNDELETE)));
59689 SWIG_Python_SetConstant(d, "ID_REVERT_TO_SAVED",SWIG_From_int(static_cast< int >(wxID_REVERT_TO_SAVED)));
59690 SWIG_Python_SetConstant(d, "ID_HIGHEST",SWIG_From_int(static_cast< int >(wxID_HIGHEST)));
1bd55598
RD
59691 SWIG_Python_SetConstant(d, "MENU_TEAROFF",SWIG_From_int(static_cast< int >(wxMENU_TEAROFF)));
59692 SWIG_Python_SetConstant(d, "MB_DOCKABLE",SWIG_From_int(static_cast< int >(wxMB_DOCKABLE)));
59693 SWIG_Python_SetConstant(d, "NO_FULL_REPAINT_ON_RESIZE",SWIG_From_int(static_cast< int >(wxNO_FULL_REPAINT_ON_RESIZE)));
59694 SWIG_Python_SetConstant(d, "FULL_REPAINT_ON_RESIZE",SWIG_From_int(static_cast< int >(wxFULL_REPAINT_ON_RESIZE)));
59695 SWIG_Python_SetConstant(d, "LI_HORIZONTAL",SWIG_From_int(static_cast< int >(wxLI_HORIZONTAL)));
59696 SWIG_Python_SetConstant(d, "LI_VERTICAL",SWIG_From_int(static_cast< int >(wxLI_VERTICAL)));
59697 SWIG_Python_SetConstant(d, "WS_EX_VALIDATE_RECURSIVELY",SWIG_From_int(static_cast< int >(wxWS_EX_VALIDATE_RECURSIVELY)));
59698 SWIG_Python_SetConstant(d, "WS_EX_BLOCK_EVENTS",SWIG_From_int(static_cast< int >(wxWS_EX_BLOCK_EVENTS)));
59699 SWIG_Python_SetConstant(d, "WS_EX_TRANSIENT",SWIG_From_int(static_cast< int >(wxWS_EX_TRANSIENT)));
59700 SWIG_Python_SetConstant(d, "WS_EX_THEMED_BACKGROUND",SWIG_From_int(static_cast< int >(wxWS_EX_THEMED_BACKGROUND)));
59701 SWIG_Python_SetConstant(d, "WS_EX_PROCESS_IDLE",SWIG_From_int(static_cast< int >(wxWS_EX_PROCESS_IDLE)));
59702 SWIG_Python_SetConstant(d, "WS_EX_PROCESS_UI_UPDATES",SWIG_From_int(static_cast< int >(wxWS_EX_PROCESS_UI_UPDATES)));
59703 SWIG_Python_SetConstant(d, "MM_TEXT",SWIG_From_int(static_cast< int >(wxMM_TEXT)));
59704 SWIG_Python_SetConstant(d, "MM_LOMETRIC",SWIG_From_int(static_cast< int >(wxMM_LOMETRIC)));
59705 SWIG_Python_SetConstant(d, "MM_HIMETRIC",SWIG_From_int(static_cast< int >(wxMM_HIMETRIC)));
59706 SWIG_Python_SetConstant(d, "MM_LOENGLISH",SWIG_From_int(static_cast< int >(wxMM_LOENGLISH)));
59707 SWIG_Python_SetConstant(d, "MM_HIENGLISH",SWIG_From_int(static_cast< int >(wxMM_HIENGLISH)));
59708 SWIG_Python_SetConstant(d, "MM_TWIPS",SWIG_From_int(static_cast< int >(wxMM_TWIPS)));
59709 SWIG_Python_SetConstant(d, "MM_ISOTROPIC",SWIG_From_int(static_cast< int >(wxMM_ISOTROPIC)));
59710 SWIG_Python_SetConstant(d, "MM_ANISOTROPIC",SWIG_From_int(static_cast< int >(wxMM_ANISOTROPIC)));
59711 SWIG_Python_SetConstant(d, "MM_POINTS",SWIG_From_int(static_cast< int >(wxMM_POINTS)));
59712 SWIG_Python_SetConstant(d, "MM_METRIC",SWIG_From_int(static_cast< int >(wxMM_METRIC)));
59713 SWIG_Python_SetConstant(d, "CENTRE",SWIG_From_int(static_cast< int >(wxCENTRE)));
59714 SWIG_Python_SetConstant(d, "CENTER",SWIG_From_int(static_cast< int >(wxCENTER)));
59715 SWIG_Python_SetConstant(d, "HORIZONTAL",SWIG_From_int(static_cast< int >(wxHORIZONTAL)));
59716 SWIG_Python_SetConstant(d, "VERTICAL",SWIG_From_int(static_cast< int >(wxVERTICAL)));
59717 SWIG_Python_SetConstant(d, "BOTH",SWIG_From_int(static_cast< int >(wxBOTH)));
59718 SWIG_Python_SetConstant(d, "LEFT",SWIG_From_int(static_cast< int >(wxLEFT)));
59719 SWIG_Python_SetConstant(d, "RIGHT",SWIG_From_int(static_cast< int >(wxRIGHT)));
59720 SWIG_Python_SetConstant(d, "UP",SWIG_From_int(static_cast< int >(wxUP)));
59721 SWIG_Python_SetConstant(d, "DOWN",SWIG_From_int(static_cast< int >(wxDOWN)));
59722 SWIG_Python_SetConstant(d, "TOP",SWIG_From_int(static_cast< int >(wxTOP)));
59723 SWIG_Python_SetConstant(d, "BOTTOM",SWIG_From_int(static_cast< int >(wxBOTTOM)));
59724 SWIG_Python_SetConstant(d, "NORTH",SWIG_From_int(static_cast< int >(wxNORTH)));
59725 SWIG_Python_SetConstant(d, "SOUTH",SWIG_From_int(static_cast< int >(wxSOUTH)));
59726 SWIG_Python_SetConstant(d, "WEST",SWIG_From_int(static_cast< int >(wxWEST)));
59727 SWIG_Python_SetConstant(d, "EAST",SWIG_From_int(static_cast< int >(wxEAST)));
59728 SWIG_Python_SetConstant(d, "ALL",SWIG_From_int(static_cast< int >(wxALL)));
59729 SWIG_Python_SetConstant(d, "ALIGN_NOT",SWIG_From_int(static_cast< int >(wxALIGN_NOT)));
59730 SWIG_Python_SetConstant(d, "ALIGN_CENTER_HORIZONTAL",SWIG_From_int(static_cast< int >(wxALIGN_CENTER_HORIZONTAL)));
59731 SWIG_Python_SetConstant(d, "ALIGN_CENTRE_HORIZONTAL",SWIG_From_int(static_cast< int >(wxALIGN_CENTRE_HORIZONTAL)));
59732 SWIG_Python_SetConstant(d, "ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxALIGN_LEFT)));
59733 SWIG_Python_SetConstant(d, "ALIGN_TOP",SWIG_From_int(static_cast< int >(wxALIGN_TOP)));
59734 SWIG_Python_SetConstant(d, "ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxALIGN_RIGHT)));
59735 SWIG_Python_SetConstant(d, "ALIGN_BOTTOM",SWIG_From_int(static_cast< int >(wxALIGN_BOTTOM)));
59736 SWIG_Python_SetConstant(d, "ALIGN_CENTER_VERTICAL",SWIG_From_int(static_cast< int >(wxALIGN_CENTER_VERTICAL)));
59737 SWIG_Python_SetConstant(d, "ALIGN_CENTRE_VERTICAL",SWIG_From_int(static_cast< int >(wxALIGN_CENTRE_VERTICAL)));
59738 SWIG_Python_SetConstant(d, "ALIGN_CENTER",SWIG_From_int(static_cast< int >(wxALIGN_CENTER)));
59739 SWIG_Python_SetConstant(d, "ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxALIGN_CENTRE)));
59740 SWIG_Python_SetConstant(d, "ALIGN_MASK",SWIG_From_int(static_cast< int >(wxALIGN_MASK)));
59741 SWIG_Python_SetConstant(d, "STRETCH_NOT",SWIG_From_int(static_cast< int >(wxSTRETCH_NOT)));
59742 SWIG_Python_SetConstant(d, "SHRINK",SWIG_From_int(static_cast< int >(wxSHRINK)));
59743 SWIG_Python_SetConstant(d, "GROW",SWIG_From_int(static_cast< int >(wxGROW)));
59744 SWIG_Python_SetConstant(d, "EXPAND",SWIG_From_int(static_cast< int >(wxEXPAND)));
59745 SWIG_Python_SetConstant(d, "SHAPED",SWIG_From_int(static_cast< int >(wxSHAPED)));
59746 SWIG_Python_SetConstant(d, "FIXED_MINSIZE",SWIG_From_int(static_cast< int >(wxFIXED_MINSIZE)));
59747 SWIG_Python_SetConstant(d, "TILE",SWIG_From_int(static_cast< int >(wxTILE)));
59748 SWIG_Python_SetConstant(d, "ADJUST_MINSIZE",SWIG_From_int(static_cast< int >(wxADJUST_MINSIZE)));
59749 SWIG_Python_SetConstant(d, "BORDER_DEFAULT",SWIG_From_int(static_cast< int >(wxBORDER_DEFAULT)));
59750 SWIG_Python_SetConstant(d, "BORDER_NONE",SWIG_From_int(static_cast< int >(wxBORDER_NONE)));
59751 SWIG_Python_SetConstant(d, "BORDER_STATIC",SWIG_From_int(static_cast< int >(wxBORDER_STATIC)));
59752 SWIG_Python_SetConstant(d, "BORDER_SIMPLE",SWIG_From_int(static_cast< int >(wxBORDER_SIMPLE)));
59753 SWIG_Python_SetConstant(d, "BORDER_RAISED",SWIG_From_int(static_cast< int >(wxBORDER_RAISED)));
59754 SWIG_Python_SetConstant(d, "BORDER_SUNKEN",SWIG_From_int(static_cast< int >(wxBORDER_SUNKEN)));
59755 SWIG_Python_SetConstant(d, "BORDER_DOUBLE",SWIG_From_int(static_cast< int >(wxBORDER_DOUBLE)));
59756 SWIG_Python_SetConstant(d, "BORDER_MASK",SWIG_From_int(static_cast< int >(wxBORDER_MASK)));
59757 SWIG_Python_SetConstant(d, "BG_STYLE_SYSTEM",SWIG_From_int(static_cast< int >(wxBG_STYLE_SYSTEM)));
59758 SWIG_Python_SetConstant(d, "BG_STYLE_COLOUR",SWIG_From_int(static_cast< int >(wxBG_STYLE_COLOUR)));
59759 SWIG_Python_SetConstant(d, "BG_STYLE_CUSTOM",SWIG_From_int(static_cast< int >(wxBG_STYLE_CUSTOM)));
59760 SWIG_Python_SetConstant(d, "DEFAULT",SWIG_From_int(static_cast< int >(wxDEFAULT)));
59761 SWIG_Python_SetConstant(d, "DECORATIVE",SWIG_From_int(static_cast< int >(wxDECORATIVE)));
59762 SWIG_Python_SetConstant(d, "ROMAN",SWIG_From_int(static_cast< int >(wxROMAN)));
59763 SWIG_Python_SetConstant(d, "SCRIPT",SWIG_From_int(static_cast< int >(wxSCRIPT)));
59764 SWIG_Python_SetConstant(d, "SWISS",SWIG_From_int(static_cast< int >(wxSWISS)));
59765 SWIG_Python_SetConstant(d, "MODERN",SWIG_From_int(static_cast< int >(wxMODERN)));
59766 SWIG_Python_SetConstant(d, "TELETYPE",SWIG_From_int(static_cast< int >(wxTELETYPE)));
59767 SWIG_Python_SetConstant(d, "VARIABLE",SWIG_From_int(static_cast< int >(wxVARIABLE)));
59768 SWIG_Python_SetConstant(d, "FIXED",SWIG_From_int(static_cast< int >(wxFIXED)));
59769 SWIG_Python_SetConstant(d, "NORMAL",SWIG_From_int(static_cast< int >(wxNORMAL)));
59770 SWIG_Python_SetConstant(d, "LIGHT",SWIG_From_int(static_cast< int >(wxLIGHT)));
59771 SWIG_Python_SetConstant(d, "BOLD",SWIG_From_int(static_cast< int >(wxBOLD)));
59772 SWIG_Python_SetConstant(d, "ITALIC",SWIG_From_int(static_cast< int >(wxITALIC)));
59773 SWIG_Python_SetConstant(d, "SLANT",SWIG_From_int(static_cast< int >(wxSLANT)));
59774 SWIG_Python_SetConstant(d, "SOLID",SWIG_From_int(static_cast< int >(wxSOLID)));
59775 SWIG_Python_SetConstant(d, "DOT",SWIG_From_int(static_cast< int >(wxDOT)));
59776 SWIG_Python_SetConstant(d, "LONG_DASH",SWIG_From_int(static_cast< int >(wxLONG_DASH)));
59777 SWIG_Python_SetConstant(d, "SHORT_DASH",SWIG_From_int(static_cast< int >(wxSHORT_DASH)));
59778 SWIG_Python_SetConstant(d, "DOT_DASH",SWIG_From_int(static_cast< int >(wxDOT_DASH)));
59779 SWIG_Python_SetConstant(d, "USER_DASH",SWIG_From_int(static_cast< int >(wxUSER_DASH)));
59780 SWIG_Python_SetConstant(d, "TRANSPARENT",SWIG_From_int(static_cast< int >(wxTRANSPARENT)));
59781 SWIG_Python_SetConstant(d, "STIPPLE",SWIG_From_int(static_cast< int >(wxSTIPPLE)));
59782 SWIG_Python_SetConstant(d, "STIPPLE_MASK",SWIG_From_int(static_cast< int >(wxSTIPPLE_MASK)));
59783 SWIG_Python_SetConstant(d, "STIPPLE_MASK_OPAQUE",SWIG_From_int(static_cast< int >(wxSTIPPLE_MASK_OPAQUE)));
59784 SWIG_Python_SetConstant(d, "BDIAGONAL_HATCH",SWIG_From_int(static_cast< int >(wxBDIAGONAL_HATCH)));
59785 SWIG_Python_SetConstant(d, "CROSSDIAG_HATCH",SWIG_From_int(static_cast< int >(wxCROSSDIAG_HATCH)));
59786 SWIG_Python_SetConstant(d, "FDIAGONAL_HATCH",SWIG_From_int(static_cast< int >(wxFDIAGONAL_HATCH)));
59787 SWIG_Python_SetConstant(d, "CROSS_HATCH",SWIG_From_int(static_cast< int >(wxCROSS_HATCH)));
59788 SWIG_Python_SetConstant(d, "HORIZONTAL_HATCH",SWIG_From_int(static_cast< int >(wxHORIZONTAL_HATCH)));
59789 SWIG_Python_SetConstant(d, "VERTICAL_HATCH",SWIG_From_int(static_cast< int >(wxVERTICAL_HATCH)));
59790 SWIG_Python_SetConstant(d, "JOIN_BEVEL",SWIG_From_int(static_cast< int >(wxJOIN_BEVEL)));
59791 SWIG_Python_SetConstant(d, "JOIN_MITER",SWIG_From_int(static_cast< int >(wxJOIN_MITER)));
59792 SWIG_Python_SetConstant(d, "JOIN_ROUND",SWIG_From_int(static_cast< int >(wxJOIN_ROUND)));
59793 SWIG_Python_SetConstant(d, "CAP_ROUND",SWIG_From_int(static_cast< int >(wxCAP_ROUND)));
59794 SWIG_Python_SetConstant(d, "CAP_PROJECTING",SWIG_From_int(static_cast< int >(wxCAP_PROJECTING)));
59795 SWIG_Python_SetConstant(d, "CAP_BUTT",SWIG_From_int(static_cast< int >(wxCAP_BUTT)));
59796 SWIG_Python_SetConstant(d, "CLEAR",SWIG_From_int(static_cast< int >(wxCLEAR)));
59797 SWIG_Python_SetConstant(d, "XOR",SWIG_From_int(static_cast< int >(wxXOR)));
59798 SWIG_Python_SetConstant(d, "INVERT",SWIG_From_int(static_cast< int >(wxINVERT)));
59799 SWIG_Python_SetConstant(d, "OR_REVERSE",SWIG_From_int(static_cast< int >(wxOR_REVERSE)));
59800 SWIG_Python_SetConstant(d, "AND_REVERSE",SWIG_From_int(static_cast< int >(wxAND_REVERSE)));
59801 SWIG_Python_SetConstant(d, "COPY",SWIG_From_int(static_cast< int >(wxCOPY)));
59802 SWIG_Python_SetConstant(d, "AND",SWIG_From_int(static_cast< int >(wxAND)));
59803 SWIG_Python_SetConstant(d, "AND_INVERT",SWIG_From_int(static_cast< int >(wxAND_INVERT)));
59804 SWIG_Python_SetConstant(d, "NO_OP",SWIG_From_int(static_cast< int >(wxNO_OP)));
59805 SWIG_Python_SetConstant(d, "NOR",SWIG_From_int(static_cast< int >(wxNOR)));
59806 SWIG_Python_SetConstant(d, "EQUIV",SWIG_From_int(static_cast< int >(wxEQUIV)));
59807 SWIG_Python_SetConstant(d, "SRC_INVERT",SWIG_From_int(static_cast< int >(wxSRC_INVERT)));
59808 SWIG_Python_SetConstant(d, "OR_INVERT",SWIG_From_int(static_cast< int >(wxOR_INVERT)));
59809 SWIG_Python_SetConstant(d, "NAND",SWIG_From_int(static_cast< int >(wxNAND)));
59810 SWIG_Python_SetConstant(d, "OR",SWIG_From_int(static_cast< int >(wxOR)));
59811 SWIG_Python_SetConstant(d, "SET",SWIG_From_int(static_cast< int >(wxSET)));
59812 SWIG_Python_SetConstant(d, "WXK_BACK",SWIG_From_int(static_cast< int >(WXK_BACK)));
59813 SWIG_Python_SetConstant(d, "WXK_TAB",SWIG_From_int(static_cast< int >(WXK_TAB)));
59814 SWIG_Python_SetConstant(d, "WXK_RETURN",SWIG_From_int(static_cast< int >(WXK_RETURN)));
59815 SWIG_Python_SetConstant(d, "WXK_ESCAPE",SWIG_From_int(static_cast< int >(WXK_ESCAPE)));
59816 SWIG_Python_SetConstant(d, "WXK_SPACE",SWIG_From_int(static_cast< int >(WXK_SPACE)));
59817 SWIG_Python_SetConstant(d, "WXK_DELETE",SWIG_From_int(static_cast< int >(WXK_DELETE)));
59818 SWIG_Python_SetConstant(d, "WXK_START",SWIG_From_int(static_cast< int >(WXK_START)));
59819 SWIG_Python_SetConstant(d, "WXK_LBUTTON",SWIG_From_int(static_cast< int >(WXK_LBUTTON)));
59820 SWIG_Python_SetConstant(d, "WXK_RBUTTON",SWIG_From_int(static_cast< int >(WXK_RBUTTON)));
59821 SWIG_Python_SetConstant(d, "WXK_CANCEL",SWIG_From_int(static_cast< int >(WXK_CANCEL)));
59822 SWIG_Python_SetConstant(d, "WXK_MBUTTON",SWIG_From_int(static_cast< int >(WXK_MBUTTON)));
59823 SWIG_Python_SetConstant(d, "WXK_CLEAR",SWIG_From_int(static_cast< int >(WXK_CLEAR)));
59824 SWIG_Python_SetConstant(d, "WXK_SHIFT",SWIG_From_int(static_cast< int >(WXK_SHIFT)));
59825 SWIG_Python_SetConstant(d, "WXK_ALT",SWIG_From_int(static_cast< int >(WXK_ALT)));
59826 SWIG_Python_SetConstant(d, "WXK_CONTROL",SWIG_From_int(static_cast< int >(WXK_CONTROL)));
59827 SWIG_Python_SetConstant(d, "WXK_MENU",SWIG_From_int(static_cast< int >(WXK_MENU)));
59828 SWIG_Python_SetConstant(d, "WXK_PAUSE",SWIG_From_int(static_cast< int >(WXK_PAUSE)));
59829 SWIG_Python_SetConstant(d, "WXK_CAPITAL",SWIG_From_int(static_cast< int >(WXK_CAPITAL)));
59830 SWIG_Python_SetConstant(d, "WXK_PRIOR",SWIG_From_int(static_cast< int >(WXK_PRIOR)));
59831 SWIG_Python_SetConstant(d, "WXK_NEXT",SWIG_From_int(static_cast< int >(WXK_NEXT)));
59832 SWIG_Python_SetConstant(d, "WXK_END",SWIG_From_int(static_cast< int >(WXK_END)));
59833 SWIG_Python_SetConstant(d, "WXK_HOME",SWIG_From_int(static_cast< int >(WXK_HOME)));
59834 SWIG_Python_SetConstant(d, "WXK_LEFT",SWIG_From_int(static_cast< int >(WXK_LEFT)));
59835 SWIG_Python_SetConstant(d, "WXK_UP",SWIG_From_int(static_cast< int >(WXK_UP)));
59836 SWIG_Python_SetConstant(d, "WXK_RIGHT",SWIG_From_int(static_cast< int >(WXK_RIGHT)));
59837 SWIG_Python_SetConstant(d, "WXK_DOWN",SWIG_From_int(static_cast< int >(WXK_DOWN)));
59838 SWIG_Python_SetConstant(d, "WXK_SELECT",SWIG_From_int(static_cast< int >(WXK_SELECT)));
59839 SWIG_Python_SetConstant(d, "WXK_PRINT",SWIG_From_int(static_cast< int >(WXK_PRINT)));
59840 SWIG_Python_SetConstant(d, "WXK_EXECUTE",SWIG_From_int(static_cast< int >(WXK_EXECUTE)));
59841 SWIG_Python_SetConstant(d, "WXK_SNAPSHOT",SWIG_From_int(static_cast< int >(WXK_SNAPSHOT)));
59842 SWIG_Python_SetConstant(d, "WXK_INSERT",SWIG_From_int(static_cast< int >(WXK_INSERT)));
59843 SWIG_Python_SetConstant(d, "WXK_HELP",SWIG_From_int(static_cast< int >(WXK_HELP)));
59844 SWIG_Python_SetConstant(d, "WXK_NUMPAD0",SWIG_From_int(static_cast< int >(WXK_NUMPAD0)));
59845 SWIG_Python_SetConstant(d, "WXK_NUMPAD1",SWIG_From_int(static_cast< int >(WXK_NUMPAD1)));
59846 SWIG_Python_SetConstant(d, "WXK_NUMPAD2",SWIG_From_int(static_cast< int >(WXK_NUMPAD2)));
59847 SWIG_Python_SetConstant(d, "WXK_NUMPAD3",SWIG_From_int(static_cast< int >(WXK_NUMPAD3)));
59848 SWIG_Python_SetConstant(d, "WXK_NUMPAD4",SWIG_From_int(static_cast< int >(WXK_NUMPAD4)));
59849 SWIG_Python_SetConstant(d, "WXK_NUMPAD5",SWIG_From_int(static_cast< int >(WXK_NUMPAD5)));
59850 SWIG_Python_SetConstant(d, "WXK_NUMPAD6",SWIG_From_int(static_cast< int >(WXK_NUMPAD6)));
59851 SWIG_Python_SetConstant(d, "WXK_NUMPAD7",SWIG_From_int(static_cast< int >(WXK_NUMPAD7)));
59852 SWIG_Python_SetConstant(d, "WXK_NUMPAD8",SWIG_From_int(static_cast< int >(WXK_NUMPAD8)));
59853 SWIG_Python_SetConstant(d, "WXK_NUMPAD9",SWIG_From_int(static_cast< int >(WXK_NUMPAD9)));
59854 SWIG_Python_SetConstant(d, "WXK_MULTIPLY",SWIG_From_int(static_cast< int >(WXK_MULTIPLY)));
59855 SWIG_Python_SetConstant(d, "WXK_ADD",SWIG_From_int(static_cast< int >(WXK_ADD)));
59856 SWIG_Python_SetConstant(d, "WXK_SEPARATOR",SWIG_From_int(static_cast< int >(WXK_SEPARATOR)));
59857 SWIG_Python_SetConstant(d, "WXK_SUBTRACT",SWIG_From_int(static_cast< int >(WXK_SUBTRACT)));
59858 SWIG_Python_SetConstant(d, "WXK_DECIMAL",SWIG_From_int(static_cast< int >(WXK_DECIMAL)));
59859 SWIG_Python_SetConstant(d, "WXK_DIVIDE",SWIG_From_int(static_cast< int >(WXK_DIVIDE)));
59860 SWIG_Python_SetConstant(d, "WXK_F1",SWIG_From_int(static_cast< int >(WXK_F1)));
59861 SWIG_Python_SetConstant(d, "WXK_F2",SWIG_From_int(static_cast< int >(WXK_F2)));
59862 SWIG_Python_SetConstant(d, "WXK_F3",SWIG_From_int(static_cast< int >(WXK_F3)));
59863 SWIG_Python_SetConstant(d, "WXK_F4",SWIG_From_int(static_cast< int >(WXK_F4)));
59864 SWIG_Python_SetConstant(d, "WXK_F5",SWIG_From_int(static_cast< int >(WXK_F5)));
59865 SWIG_Python_SetConstant(d, "WXK_F6",SWIG_From_int(static_cast< int >(WXK_F6)));
59866 SWIG_Python_SetConstant(d, "WXK_F7",SWIG_From_int(static_cast< int >(WXK_F7)));
59867 SWIG_Python_SetConstant(d, "WXK_F8",SWIG_From_int(static_cast< int >(WXK_F8)));
59868 SWIG_Python_SetConstant(d, "WXK_F9",SWIG_From_int(static_cast< int >(WXK_F9)));
59869 SWIG_Python_SetConstant(d, "WXK_F10",SWIG_From_int(static_cast< int >(WXK_F10)));
59870 SWIG_Python_SetConstant(d, "WXK_F11",SWIG_From_int(static_cast< int >(WXK_F11)));
59871 SWIG_Python_SetConstant(d, "WXK_F12",SWIG_From_int(static_cast< int >(WXK_F12)));
59872 SWIG_Python_SetConstant(d, "WXK_F13",SWIG_From_int(static_cast< int >(WXK_F13)));
59873 SWIG_Python_SetConstant(d, "WXK_F14",SWIG_From_int(static_cast< int >(WXK_F14)));
59874 SWIG_Python_SetConstant(d, "WXK_F15",SWIG_From_int(static_cast< int >(WXK_F15)));
59875 SWIG_Python_SetConstant(d, "WXK_F16",SWIG_From_int(static_cast< int >(WXK_F16)));
59876 SWIG_Python_SetConstant(d, "WXK_F17",SWIG_From_int(static_cast< int >(WXK_F17)));
59877 SWIG_Python_SetConstant(d, "WXK_F18",SWIG_From_int(static_cast< int >(WXK_F18)));
59878 SWIG_Python_SetConstant(d, "WXK_F19",SWIG_From_int(static_cast< int >(WXK_F19)));
59879 SWIG_Python_SetConstant(d, "WXK_F20",SWIG_From_int(static_cast< int >(WXK_F20)));
59880 SWIG_Python_SetConstant(d, "WXK_F21",SWIG_From_int(static_cast< int >(WXK_F21)));
59881 SWIG_Python_SetConstant(d, "WXK_F22",SWIG_From_int(static_cast< int >(WXK_F22)));
59882 SWIG_Python_SetConstant(d, "WXK_F23",SWIG_From_int(static_cast< int >(WXK_F23)));
59883 SWIG_Python_SetConstant(d, "WXK_F24",SWIG_From_int(static_cast< int >(WXK_F24)));
59884 SWIG_Python_SetConstant(d, "WXK_NUMLOCK",SWIG_From_int(static_cast< int >(WXK_NUMLOCK)));
59885 SWIG_Python_SetConstant(d, "WXK_SCROLL",SWIG_From_int(static_cast< int >(WXK_SCROLL)));
59886 SWIG_Python_SetConstant(d, "WXK_PAGEUP",SWIG_From_int(static_cast< int >(WXK_PAGEUP)));
59887 SWIG_Python_SetConstant(d, "WXK_PAGEDOWN",SWIG_From_int(static_cast< int >(WXK_PAGEDOWN)));
59888 SWIG_Python_SetConstant(d, "WXK_NUMPAD_SPACE",SWIG_From_int(static_cast< int >(WXK_NUMPAD_SPACE)));
59889 SWIG_Python_SetConstant(d, "WXK_NUMPAD_TAB",SWIG_From_int(static_cast< int >(WXK_NUMPAD_TAB)));
59890 SWIG_Python_SetConstant(d, "WXK_NUMPAD_ENTER",SWIG_From_int(static_cast< int >(WXK_NUMPAD_ENTER)));
59891 SWIG_Python_SetConstant(d, "WXK_NUMPAD_F1",SWIG_From_int(static_cast< int >(WXK_NUMPAD_F1)));
59892 SWIG_Python_SetConstant(d, "WXK_NUMPAD_F2",SWIG_From_int(static_cast< int >(WXK_NUMPAD_F2)));
59893 SWIG_Python_SetConstant(d, "WXK_NUMPAD_F3",SWIG_From_int(static_cast< int >(WXK_NUMPAD_F3)));
59894 SWIG_Python_SetConstant(d, "WXK_NUMPAD_F4",SWIG_From_int(static_cast< int >(WXK_NUMPAD_F4)));
59895 SWIG_Python_SetConstant(d, "WXK_NUMPAD_HOME",SWIG_From_int(static_cast< int >(WXK_NUMPAD_HOME)));
59896 SWIG_Python_SetConstant(d, "WXK_NUMPAD_LEFT",SWIG_From_int(static_cast< int >(WXK_NUMPAD_LEFT)));
59897 SWIG_Python_SetConstant(d, "WXK_NUMPAD_UP",SWIG_From_int(static_cast< int >(WXK_NUMPAD_UP)));
59898 SWIG_Python_SetConstant(d, "WXK_NUMPAD_RIGHT",SWIG_From_int(static_cast< int >(WXK_NUMPAD_RIGHT)));
59899 SWIG_Python_SetConstant(d, "WXK_NUMPAD_DOWN",SWIG_From_int(static_cast< int >(WXK_NUMPAD_DOWN)));
59900 SWIG_Python_SetConstant(d, "WXK_NUMPAD_PRIOR",SWIG_From_int(static_cast< int >(WXK_NUMPAD_PRIOR)));
59901 SWIG_Python_SetConstant(d, "WXK_NUMPAD_PAGEUP",SWIG_From_int(static_cast< int >(WXK_NUMPAD_PAGEUP)));
59902 SWIG_Python_SetConstant(d, "WXK_NUMPAD_NEXT",SWIG_From_int(static_cast< int >(WXK_NUMPAD_NEXT)));
59903 SWIG_Python_SetConstant(d, "WXK_NUMPAD_PAGEDOWN",SWIG_From_int(static_cast< int >(WXK_NUMPAD_PAGEDOWN)));
59904 SWIG_Python_SetConstant(d, "WXK_NUMPAD_END",SWIG_From_int(static_cast< int >(WXK_NUMPAD_END)));
59905 SWIG_Python_SetConstant(d, "WXK_NUMPAD_BEGIN",SWIG_From_int(static_cast< int >(WXK_NUMPAD_BEGIN)));
59906 SWIG_Python_SetConstant(d, "WXK_NUMPAD_INSERT",SWIG_From_int(static_cast< int >(WXK_NUMPAD_INSERT)));
59907 SWIG_Python_SetConstant(d, "WXK_NUMPAD_DELETE",SWIG_From_int(static_cast< int >(WXK_NUMPAD_DELETE)));
59908 SWIG_Python_SetConstant(d, "WXK_NUMPAD_EQUAL",SWIG_From_int(static_cast< int >(WXK_NUMPAD_EQUAL)));
59909 SWIG_Python_SetConstant(d, "WXK_NUMPAD_MULTIPLY",SWIG_From_int(static_cast< int >(WXK_NUMPAD_MULTIPLY)));
59910 SWIG_Python_SetConstant(d, "WXK_NUMPAD_ADD",SWIG_From_int(static_cast< int >(WXK_NUMPAD_ADD)));
59911 SWIG_Python_SetConstant(d, "WXK_NUMPAD_SEPARATOR",SWIG_From_int(static_cast< int >(WXK_NUMPAD_SEPARATOR)));
59912 SWIG_Python_SetConstant(d, "WXK_NUMPAD_SUBTRACT",SWIG_From_int(static_cast< int >(WXK_NUMPAD_SUBTRACT)));
59913 SWIG_Python_SetConstant(d, "WXK_NUMPAD_DECIMAL",SWIG_From_int(static_cast< int >(WXK_NUMPAD_DECIMAL)));
59914 SWIG_Python_SetConstant(d, "WXK_NUMPAD_DIVIDE",SWIG_From_int(static_cast< int >(WXK_NUMPAD_DIVIDE)));
59915 SWIG_Python_SetConstant(d, "WXK_WINDOWS_LEFT",SWIG_From_int(static_cast< int >(WXK_WINDOWS_LEFT)));
59916 SWIG_Python_SetConstant(d, "WXK_WINDOWS_RIGHT",SWIG_From_int(static_cast< int >(WXK_WINDOWS_RIGHT)));
59917 SWIG_Python_SetConstant(d, "WXK_WINDOWS_MENU",SWIG_From_int(static_cast< int >(WXK_WINDOWS_MENU)));
59918 SWIG_Python_SetConstant(d, "WXK_COMMAND",SWIG_From_int(static_cast< int >(WXK_COMMAND)));
59919 SWIG_Python_SetConstant(d, "WXK_SPECIAL1",SWIG_From_int(static_cast< int >(WXK_SPECIAL1)));
59920 SWIG_Python_SetConstant(d, "WXK_SPECIAL2",SWIG_From_int(static_cast< int >(WXK_SPECIAL2)));
59921 SWIG_Python_SetConstant(d, "WXK_SPECIAL3",SWIG_From_int(static_cast< int >(WXK_SPECIAL3)));
59922 SWIG_Python_SetConstant(d, "WXK_SPECIAL4",SWIG_From_int(static_cast< int >(WXK_SPECIAL4)));
59923 SWIG_Python_SetConstant(d, "WXK_SPECIAL5",SWIG_From_int(static_cast< int >(WXK_SPECIAL5)));
59924 SWIG_Python_SetConstant(d, "WXK_SPECIAL6",SWIG_From_int(static_cast< int >(WXK_SPECIAL6)));
59925 SWIG_Python_SetConstant(d, "WXK_SPECIAL7",SWIG_From_int(static_cast< int >(WXK_SPECIAL7)));
59926 SWIG_Python_SetConstant(d, "WXK_SPECIAL8",SWIG_From_int(static_cast< int >(WXK_SPECIAL8)));
59927 SWIG_Python_SetConstant(d, "WXK_SPECIAL9",SWIG_From_int(static_cast< int >(WXK_SPECIAL9)));
59928 SWIG_Python_SetConstant(d, "WXK_SPECIAL10",SWIG_From_int(static_cast< int >(WXK_SPECIAL10)));
59929 SWIG_Python_SetConstant(d, "WXK_SPECIAL11",SWIG_From_int(static_cast< int >(WXK_SPECIAL11)));
59930 SWIG_Python_SetConstant(d, "WXK_SPECIAL12",SWIG_From_int(static_cast< int >(WXK_SPECIAL12)));
59931 SWIG_Python_SetConstant(d, "WXK_SPECIAL13",SWIG_From_int(static_cast< int >(WXK_SPECIAL13)));
59932 SWIG_Python_SetConstant(d, "WXK_SPECIAL14",SWIG_From_int(static_cast< int >(WXK_SPECIAL14)));
59933 SWIG_Python_SetConstant(d, "WXK_SPECIAL15",SWIG_From_int(static_cast< int >(WXK_SPECIAL15)));
59934 SWIG_Python_SetConstant(d, "WXK_SPECIAL16",SWIG_From_int(static_cast< int >(WXK_SPECIAL16)));
59935 SWIG_Python_SetConstant(d, "WXK_SPECIAL17",SWIG_From_int(static_cast< int >(WXK_SPECIAL17)));
59936 SWIG_Python_SetConstant(d, "WXK_SPECIAL18",SWIG_From_int(static_cast< int >(WXK_SPECIAL18)));
59937 SWIG_Python_SetConstant(d, "WXK_SPECIAL19",SWIG_From_int(static_cast< int >(WXK_SPECIAL19)));
59938 SWIG_Python_SetConstant(d, "WXK_SPECIAL20",SWIG_From_int(static_cast< int >(WXK_SPECIAL20)));
59939 SWIG_Python_SetConstant(d, "PAPER_NONE",SWIG_From_int(static_cast< int >(wxPAPER_NONE)));
59940 SWIG_Python_SetConstant(d, "PAPER_LETTER",SWIG_From_int(static_cast< int >(wxPAPER_LETTER)));
59941 SWIG_Python_SetConstant(d, "PAPER_LEGAL",SWIG_From_int(static_cast< int >(wxPAPER_LEGAL)));
59942 SWIG_Python_SetConstant(d, "PAPER_A4",SWIG_From_int(static_cast< int >(wxPAPER_A4)));
59943 SWIG_Python_SetConstant(d, "PAPER_CSHEET",SWIG_From_int(static_cast< int >(wxPAPER_CSHEET)));
59944 SWIG_Python_SetConstant(d, "PAPER_DSHEET",SWIG_From_int(static_cast< int >(wxPAPER_DSHEET)));
59945 SWIG_Python_SetConstant(d, "PAPER_ESHEET",SWIG_From_int(static_cast< int >(wxPAPER_ESHEET)));
59946 SWIG_Python_SetConstant(d, "PAPER_LETTERSMALL",SWIG_From_int(static_cast< int >(wxPAPER_LETTERSMALL)));
59947 SWIG_Python_SetConstant(d, "PAPER_TABLOID",SWIG_From_int(static_cast< int >(wxPAPER_TABLOID)));
59948 SWIG_Python_SetConstant(d, "PAPER_LEDGER",SWIG_From_int(static_cast< int >(wxPAPER_LEDGER)));
59949 SWIG_Python_SetConstant(d, "PAPER_STATEMENT",SWIG_From_int(static_cast< int >(wxPAPER_STATEMENT)));
59950 SWIG_Python_SetConstant(d, "PAPER_EXECUTIVE",SWIG_From_int(static_cast< int >(wxPAPER_EXECUTIVE)));
59951 SWIG_Python_SetConstant(d, "PAPER_A3",SWIG_From_int(static_cast< int >(wxPAPER_A3)));
59952 SWIG_Python_SetConstant(d, "PAPER_A4SMALL",SWIG_From_int(static_cast< int >(wxPAPER_A4SMALL)));
59953 SWIG_Python_SetConstant(d, "PAPER_A5",SWIG_From_int(static_cast< int >(wxPAPER_A5)));
59954 SWIG_Python_SetConstant(d, "PAPER_B4",SWIG_From_int(static_cast< int >(wxPAPER_B4)));
59955 SWIG_Python_SetConstant(d, "PAPER_B5",SWIG_From_int(static_cast< int >(wxPAPER_B5)));
59956 SWIG_Python_SetConstant(d, "PAPER_FOLIO",SWIG_From_int(static_cast< int >(wxPAPER_FOLIO)));
59957 SWIG_Python_SetConstant(d, "PAPER_QUARTO",SWIG_From_int(static_cast< int >(wxPAPER_QUARTO)));
59958 SWIG_Python_SetConstant(d, "PAPER_10X14",SWIG_From_int(static_cast< int >(wxPAPER_10X14)));
59959 SWIG_Python_SetConstant(d, "PAPER_11X17",SWIG_From_int(static_cast< int >(wxPAPER_11X17)));
59960 SWIG_Python_SetConstant(d, "PAPER_NOTE",SWIG_From_int(static_cast< int >(wxPAPER_NOTE)));
59961 SWIG_Python_SetConstant(d, "PAPER_ENV_9",SWIG_From_int(static_cast< int >(wxPAPER_ENV_9)));
59962 SWIG_Python_SetConstant(d, "PAPER_ENV_10",SWIG_From_int(static_cast< int >(wxPAPER_ENV_10)));
59963 SWIG_Python_SetConstant(d, "PAPER_ENV_11",SWIG_From_int(static_cast< int >(wxPAPER_ENV_11)));
59964 SWIG_Python_SetConstant(d, "PAPER_ENV_12",SWIG_From_int(static_cast< int >(wxPAPER_ENV_12)));
59965 SWIG_Python_SetConstant(d, "PAPER_ENV_14",SWIG_From_int(static_cast< int >(wxPAPER_ENV_14)));
59966 SWIG_Python_SetConstant(d, "PAPER_ENV_DL",SWIG_From_int(static_cast< int >(wxPAPER_ENV_DL)));
59967 SWIG_Python_SetConstant(d, "PAPER_ENV_C5",SWIG_From_int(static_cast< int >(wxPAPER_ENV_C5)));
59968 SWIG_Python_SetConstant(d, "PAPER_ENV_C3",SWIG_From_int(static_cast< int >(wxPAPER_ENV_C3)));
59969 SWIG_Python_SetConstant(d, "PAPER_ENV_C4",SWIG_From_int(static_cast< int >(wxPAPER_ENV_C4)));
59970 SWIG_Python_SetConstant(d, "PAPER_ENV_C6",SWIG_From_int(static_cast< int >(wxPAPER_ENV_C6)));
59971 SWIG_Python_SetConstant(d, "PAPER_ENV_C65",SWIG_From_int(static_cast< int >(wxPAPER_ENV_C65)));
59972 SWIG_Python_SetConstant(d, "PAPER_ENV_B4",SWIG_From_int(static_cast< int >(wxPAPER_ENV_B4)));
59973 SWIG_Python_SetConstant(d, "PAPER_ENV_B5",SWIG_From_int(static_cast< int >(wxPAPER_ENV_B5)));
59974 SWIG_Python_SetConstant(d, "PAPER_ENV_B6",SWIG_From_int(static_cast< int >(wxPAPER_ENV_B6)));
59975 SWIG_Python_SetConstant(d, "PAPER_ENV_ITALY",SWIG_From_int(static_cast< int >(wxPAPER_ENV_ITALY)));
59976 SWIG_Python_SetConstant(d, "PAPER_ENV_MONARCH",SWIG_From_int(static_cast< int >(wxPAPER_ENV_MONARCH)));
59977 SWIG_Python_SetConstant(d, "PAPER_ENV_PERSONAL",SWIG_From_int(static_cast< int >(wxPAPER_ENV_PERSONAL)));
59978 SWIG_Python_SetConstant(d, "PAPER_FANFOLD_US",SWIG_From_int(static_cast< int >(wxPAPER_FANFOLD_US)));
59979 SWIG_Python_SetConstant(d, "PAPER_FANFOLD_STD_GERMAN",SWIG_From_int(static_cast< int >(wxPAPER_FANFOLD_STD_GERMAN)));
59980 SWIG_Python_SetConstant(d, "PAPER_FANFOLD_LGL_GERMAN",SWIG_From_int(static_cast< int >(wxPAPER_FANFOLD_LGL_GERMAN)));
59981 SWIG_Python_SetConstant(d, "PAPER_ISO_B4",SWIG_From_int(static_cast< int >(wxPAPER_ISO_B4)));
59982 SWIG_Python_SetConstant(d, "PAPER_JAPANESE_POSTCARD",SWIG_From_int(static_cast< int >(wxPAPER_JAPANESE_POSTCARD)));
59983 SWIG_Python_SetConstant(d, "PAPER_9X11",SWIG_From_int(static_cast< int >(wxPAPER_9X11)));
59984 SWIG_Python_SetConstant(d, "PAPER_10X11",SWIG_From_int(static_cast< int >(wxPAPER_10X11)));
59985 SWIG_Python_SetConstant(d, "PAPER_15X11",SWIG_From_int(static_cast< int >(wxPAPER_15X11)));
59986 SWIG_Python_SetConstant(d, "PAPER_ENV_INVITE",SWIG_From_int(static_cast< int >(wxPAPER_ENV_INVITE)));
59987 SWIG_Python_SetConstant(d, "PAPER_LETTER_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_LETTER_EXTRA)));
59988 SWIG_Python_SetConstant(d, "PAPER_LEGAL_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_LEGAL_EXTRA)));
59989 SWIG_Python_SetConstant(d, "PAPER_TABLOID_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_TABLOID_EXTRA)));
59990 SWIG_Python_SetConstant(d, "PAPER_A4_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_A4_EXTRA)));
59991 SWIG_Python_SetConstant(d, "PAPER_LETTER_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_LETTER_TRANSVERSE)));
59992 SWIG_Python_SetConstant(d, "PAPER_A4_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_A4_TRANSVERSE)));
59993 SWIG_Python_SetConstant(d, "PAPER_LETTER_EXTRA_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_LETTER_EXTRA_TRANSVERSE)));
59994 SWIG_Python_SetConstant(d, "PAPER_A_PLUS",SWIG_From_int(static_cast< int >(wxPAPER_A_PLUS)));
59995 SWIG_Python_SetConstant(d, "PAPER_B_PLUS",SWIG_From_int(static_cast< int >(wxPAPER_B_PLUS)));
59996 SWIG_Python_SetConstant(d, "PAPER_LETTER_PLUS",SWIG_From_int(static_cast< int >(wxPAPER_LETTER_PLUS)));
59997 SWIG_Python_SetConstant(d, "PAPER_A4_PLUS",SWIG_From_int(static_cast< int >(wxPAPER_A4_PLUS)));
59998 SWIG_Python_SetConstant(d, "PAPER_A5_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_A5_TRANSVERSE)));
59999 SWIG_Python_SetConstant(d, "PAPER_B5_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_B5_TRANSVERSE)));
60000 SWIG_Python_SetConstant(d, "PAPER_A3_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_A3_EXTRA)));
60001 SWIG_Python_SetConstant(d, "PAPER_A5_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_A5_EXTRA)));
60002 SWIG_Python_SetConstant(d, "PAPER_B5_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_B5_EXTRA)));
60003 SWIG_Python_SetConstant(d, "PAPER_A2",SWIG_From_int(static_cast< int >(wxPAPER_A2)));
60004 SWIG_Python_SetConstant(d, "PAPER_A3_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_A3_TRANSVERSE)));
60005 SWIG_Python_SetConstant(d, "PAPER_A3_EXTRA_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_A3_EXTRA_TRANSVERSE)));
60006 SWIG_Python_SetConstant(d, "PAPER_DBL_JAPANESE_POSTCARD",SWIG_From_int(static_cast< int >(wxPAPER_DBL_JAPANESE_POSTCARD)));
60007 SWIG_Python_SetConstant(d, "PAPER_A6",SWIG_From_int(static_cast< int >(wxPAPER_A6)));
60008 SWIG_Python_SetConstant(d, "PAPER_JENV_KAKU2",SWIG_From_int(static_cast< int >(wxPAPER_JENV_KAKU2)));
60009 SWIG_Python_SetConstant(d, "PAPER_JENV_KAKU3",SWIG_From_int(static_cast< int >(wxPAPER_JENV_KAKU3)));
60010 SWIG_Python_SetConstant(d, "PAPER_JENV_CHOU3",SWIG_From_int(static_cast< int >(wxPAPER_JENV_CHOU3)));
60011 SWIG_Python_SetConstant(d, "PAPER_JENV_CHOU4",SWIG_From_int(static_cast< int >(wxPAPER_JENV_CHOU4)));
60012 SWIG_Python_SetConstant(d, "PAPER_LETTER_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_LETTER_ROTATED)));
60013 SWIG_Python_SetConstant(d, "PAPER_A3_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_A3_ROTATED)));
60014 SWIG_Python_SetConstant(d, "PAPER_A4_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_A4_ROTATED)));
60015 SWIG_Python_SetConstant(d, "PAPER_A5_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_A5_ROTATED)));
60016 SWIG_Python_SetConstant(d, "PAPER_B4_JIS_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_B4_JIS_ROTATED)));
60017 SWIG_Python_SetConstant(d, "PAPER_B5_JIS_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_B5_JIS_ROTATED)));
60018 SWIG_Python_SetConstant(d, "PAPER_JAPANESE_POSTCARD_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JAPANESE_POSTCARD_ROTATED)));
60019 SWIG_Python_SetConstant(d, "PAPER_DBL_JAPANESE_POSTCARD_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_DBL_JAPANESE_POSTCARD_ROTATED)));
60020 SWIG_Python_SetConstant(d, "PAPER_A6_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_A6_ROTATED)));
60021 SWIG_Python_SetConstant(d, "PAPER_JENV_KAKU2_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JENV_KAKU2_ROTATED)));
60022 SWIG_Python_SetConstant(d, "PAPER_JENV_KAKU3_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JENV_KAKU3_ROTATED)));
60023 SWIG_Python_SetConstant(d, "PAPER_JENV_CHOU3_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JENV_CHOU3_ROTATED)));
60024 SWIG_Python_SetConstant(d, "PAPER_JENV_CHOU4_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JENV_CHOU4_ROTATED)));
60025 SWIG_Python_SetConstant(d, "PAPER_B6_JIS",SWIG_From_int(static_cast< int >(wxPAPER_B6_JIS)));
60026 SWIG_Python_SetConstant(d, "PAPER_B6_JIS_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_B6_JIS_ROTATED)));
60027 SWIG_Python_SetConstant(d, "PAPER_12X11",SWIG_From_int(static_cast< int >(wxPAPER_12X11)));
60028 SWIG_Python_SetConstant(d, "PAPER_JENV_YOU4",SWIG_From_int(static_cast< int >(wxPAPER_JENV_YOU4)));
60029 SWIG_Python_SetConstant(d, "PAPER_JENV_YOU4_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JENV_YOU4_ROTATED)));
60030 SWIG_Python_SetConstant(d, "PAPER_P16K",SWIG_From_int(static_cast< int >(wxPAPER_P16K)));
60031 SWIG_Python_SetConstant(d, "PAPER_P32K",SWIG_From_int(static_cast< int >(wxPAPER_P32K)));
60032 SWIG_Python_SetConstant(d, "PAPER_P32KBIG",SWIG_From_int(static_cast< int >(wxPAPER_P32KBIG)));
60033 SWIG_Python_SetConstant(d, "PAPER_PENV_1",SWIG_From_int(static_cast< int >(wxPAPER_PENV_1)));
60034 SWIG_Python_SetConstant(d, "PAPER_PENV_2",SWIG_From_int(static_cast< int >(wxPAPER_PENV_2)));
60035 SWIG_Python_SetConstant(d, "PAPER_PENV_3",SWIG_From_int(static_cast< int >(wxPAPER_PENV_3)));
60036 SWIG_Python_SetConstant(d, "PAPER_PENV_4",SWIG_From_int(static_cast< int >(wxPAPER_PENV_4)));
60037 SWIG_Python_SetConstant(d, "PAPER_PENV_5",SWIG_From_int(static_cast< int >(wxPAPER_PENV_5)));
60038 SWIG_Python_SetConstant(d, "PAPER_PENV_6",SWIG_From_int(static_cast< int >(wxPAPER_PENV_6)));
60039 SWIG_Python_SetConstant(d, "PAPER_PENV_7",SWIG_From_int(static_cast< int >(wxPAPER_PENV_7)));
60040 SWIG_Python_SetConstant(d, "PAPER_PENV_8",SWIG_From_int(static_cast< int >(wxPAPER_PENV_8)));
60041 SWIG_Python_SetConstant(d, "PAPER_PENV_9",SWIG_From_int(static_cast< int >(wxPAPER_PENV_9)));
60042 SWIG_Python_SetConstant(d, "PAPER_PENV_10",SWIG_From_int(static_cast< int >(wxPAPER_PENV_10)));
60043 SWIG_Python_SetConstant(d, "PAPER_P16K_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_P16K_ROTATED)));
60044 SWIG_Python_SetConstant(d, "PAPER_P32K_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_P32K_ROTATED)));
60045 SWIG_Python_SetConstant(d, "PAPER_P32KBIG_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_P32KBIG_ROTATED)));
60046 SWIG_Python_SetConstant(d, "PAPER_PENV_1_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_1_ROTATED)));
60047 SWIG_Python_SetConstant(d, "PAPER_PENV_2_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_2_ROTATED)));
60048 SWIG_Python_SetConstant(d, "PAPER_PENV_3_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_3_ROTATED)));
60049 SWIG_Python_SetConstant(d, "PAPER_PENV_4_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_4_ROTATED)));
60050 SWIG_Python_SetConstant(d, "PAPER_PENV_5_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_5_ROTATED)));
60051 SWIG_Python_SetConstant(d, "PAPER_PENV_6_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_6_ROTATED)));
60052 SWIG_Python_SetConstant(d, "PAPER_PENV_7_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_7_ROTATED)));
60053 SWIG_Python_SetConstant(d, "PAPER_PENV_8_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_8_ROTATED)));
60054 SWIG_Python_SetConstant(d, "PAPER_PENV_9_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_9_ROTATED)));
60055 SWIG_Python_SetConstant(d, "PAPER_PENV_10_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_10_ROTATED)));
60056 SWIG_Python_SetConstant(d, "DUPLEX_SIMPLEX",SWIG_From_int(static_cast< int >(wxDUPLEX_SIMPLEX)));
60057 SWIG_Python_SetConstant(d, "DUPLEX_HORIZONTAL",SWIG_From_int(static_cast< int >(wxDUPLEX_HORIZONTAL)));
60058 SWIG_Python_SetConstant(d, "DUPLEX_VERTICAL",SWIG_From_int(static_cast< int >(wxDUPLEX_VERTICAL)));
60059 SWIG_Python_SetConstant(d, "ITEM_SEPARATOR",SWIG_From_int(static_cast< int >(wxITEM_SEPARATOR)));
60060 SWIG_Python_SetConstant(d, "ITEM_NORMAL",SWIG_From_int(static_cast< int >(wxITEM_NORMAL)));
60061 SWIG_Python_SetConstant(d, "ITEM_CHECK",SWIG_From_int(static_cast< int >(wxITEM_CHECK)));
60062 SWIG_Python_SetConstant(d, "ITEM_RADIO",SWIG_From_int(static_cast< int >(wxITEM_RADIO)));
60063 SWIG_Python_SetConstant(d, "ITEM_MAX",SWIG_From_int(static_cast< int >(wxITEM_MAX)));
60064 SWIG_Python_SetConstant(d, "HT_NOWHERE",SWIG_From_int(static_cast< int >(wxHT_NOWHERE)));
60065 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_FIRST",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_FIRST)));
60066 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_ARROW_LINE_1",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_ARROW_LINE_1)));
60067 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_ARROW_LINE_2",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_ARROW_LINE_2)));
60068 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_ARROW_PAGE_1",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_ARROW_PAGE_1)));
60069 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_ARROW_PAGE_2",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_ARROW_PAGE_2)));
60070 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_THUMB",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_THUMB)));
60071 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_BAR_1",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_BAR_1)));
60072 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_BAR_2",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_BAR_2)));
60073 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_LAST",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_LAST)));
60074 SWIG_Python_SetConstant(d, "HT_WINDOW_OUTSIDE",SWIG_From_int(static_cast< int >(wxHT_WINDOW_OUTSIDE)));
60075 SWIG_Python_SetConstant(d, "HT_WINDOW_INSIDE",SWIG_From_int(static_cast< int >(wxHT_WINDOW_INSIDE)));
60076 SWIG_Python_SetConstant(d, "HT_WINDOW_VERT_SCROLLBAR",SWIG_From_int(static_cast< int >(wxHT_WINDOW_VERT_SCROLLBAR)));
60077 SWIG_Python_SetConstant(d, "HT_WINDOW_HORZ_SCROLLBAR",SWIG_From_int(static_cast< int >(wxHT_WINDOW_HORZ_SCROLLBAR)));
60078 SWIG_Python_SetConstant(d, "HT_WINDOW_CORNER",SWIG_From_int(static_cast< int >(wxHT_WINDOW_CORNER)));
60079 SWIG_Python_SetConstant(d, "HT_MAX",SWIG_From_int(static_cast< int >(wxHT_MAX)));
60080 SWIG_Python_SetConstant(d, "MOD_NONE",SWIG_From_int(static_cast< int >(wxMOD_NONE)));
60081 SWIG_Python_SetConstant(d, "MOD_ALT",SWIG_From_int(static_cast< int >(wxMOD_ALT)));
60082 SWIG_Python_SetConstant(d, "MOD_CONTROL",SWIG_From_int(static_cast< int >(wxMOD_CONTROL)));
60083 SWIG_Python_SetConstant(d, "MOD_ALTGR",SWIG_From_int(static_cast< int >(wxMOD_ALTGR)));
60084 SWIG_Python_SetConstant(d, "MOD_SHIFT",SWIG_From_int(static_cast< int >(wxMOD_SHIFT)));
60085 SWIG_Python_SetConstant(d, "MOD_META",SWIG_From_int(static_cast< int >(wxMOD_META)));
60086 SWIG_Python_SetConstant(d, "MOD_WIN",SWIG_From_int(static_cast< int >(wxMOD_WIN)));
60087 SWIG_Python_SetConstant(d, "MOD_CMD",SWIG_From_int(static_cast< int >(wxMOD_CMD)));
60088 SWIG_Python_SetConstant(d, "MOD_ALL",SWIG_From_int(static_cast< int >(wxMOD_ALL)));
60089 SWIG_Python_SetConstant(d, "UPDATE_UI_NONE",SWIG_From_int(static_cast< int >(wxUPDATE_UI_NONE)));
60090 SWIG_Python_SetConstant(d, "UPDATE_UI_RECURSE",SWIG_From_int(static_cast< int >(wxUPDATE_UI_RECURSE)));
60091 SWIG_Python_SetConstant(d, "UPDATE_UI_FROMIDLE",SWIG_From_int(static_cast< int >(wxUPDATE_UI_FROMIDLE)));
994453b8
RD
60092 SWIG_Python_SetConstant(d, "Layout_Default",SWIG_From_int(static_cast< int >(wxLayout_Default)));
60093 SWIG_Python_SetConstant(d, "Layout_LeftToRight",SWIG_From_int(static_cast< int >(wxLayout_LeftToRight)));
60094 SWIG_Python_SetConstant(d, "Layout_RightToLeft",SWIG_From_int(static_cast< int >(wxLayout_RightToLeft)));
1bd55598
RD
60095 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
60096 SWIG_addvarlink(SWIG_globals(),(char*)"EmptyString",EmptyString_get, EmptyString_set);
60097 SWIG_Python_SetConstant(d, "BITMAP_TYPE_INVALID",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_INVALID)));
60098 SWIG_Python_SetConstant(d, "BITMAP_TYPE_BMP",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_BMP)));
60099 SWIG_Python_SetConstant(d, "BITMAP_TYPE_ICO",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_ICO)));
60100 SWIG_Python_SetConstant(d, "BITMAP_TYPE_CUR",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_CUR)));
60101 SWIG_Python_SetConstant(d, "BITMAP_TYPE_XBM",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_XBM)));
60102 SWIG_Python_SetConstant(d, "BITMAP_TYPE_XBM_DATA",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_XBM_DATA)));
60103 SWIG_Python_SetConstant(d, "BITMAP_TYPE_XPM",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_XPM)));
60104 SWIG_Python_SetConstant(d, "BITMAP_TYPE_XPM_DATA",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_XPM_DATA)));
60105 SWIG_Python_SetConstant(d, "BITMAP_TYPE_TIF",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_TIF)));
60106 SWIG_Python_SetConstant(d, "BITMAP_TYPE_GIF",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_GIF)));
60107 SWIG_Python_SetConstant(d, "BITMAP_TYPE_PNG",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_PNG)));
60108 SWIG_Python_SetConstant(d, "BITMAP_TYPE_JPEG",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_JPEG)));
60109 SWIG_Python_SetConstant(d, "BITMAP_TYPE_PNM",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_PNM)));
60110 SWIG_Python_SetConstant(d, "BITMAP_TYPE_PCX",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_PCX)));
60111 SWIG_Python_SetConstant(d, "BITMAP_TYPE_PICT",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_PICT)));
60112 SWIG_Python_SetConstant(d, "BITMAP_TYPE_ICON",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_ICON)));
60113 SWIG_Python_SetConstant(d, "BITMAP_TYPE_ANI",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_ANI)));
60114 SWIG_Python_SetConstant(d, "BITMAP_TYPE_IFF",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_IFF)));
8f514ab4 60115 SWIG_Python_SetConstant(d, "BITMAP_TYPE_TGA",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_TGA)));
1bd55598
RD
60116 SWIG_Python_SetConstant(d, "BITMAP_TYPE_MACCURSOR",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_MACCURSOR)));
60117 SWIG_Python_SetConstant(d, "BITMAP_TYPE_ANY",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_ANY)));
60118 SWIG_Python_SetConstant(d, "CURSOR_NONE",SWIG_From_int(static_cast< int >(wxCURSOR_NONE)));
60119 SWIG_Python_SetConstant(d, "CURSOR_ARROW",SWIG_From_int(static_cast< int >(wxCURSOR_ARROW)));
60120 SWIG_Python_SetConstant(d, "CURSOR_RIGHT_ARROW",SWIG_From_int(static_cast< int >(wxCURSOR_RIGHT_ARROW)));
60121 SWIG_Python_SetConstant(d, "CURSOR_BULLSEYE",SWIG_From_int(static_cast< int >(wxCURSOR_BULLSEYE)));
60122 SWIG_Python_SetConstant(d, "CURSOR_CHAR",SWIG_From_int(static_cast< int >(wxCURSOR_CHAR)));
60123 SWIG_Python_SetConstant(d, "CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxCURSOR_CROSS)));
60124 SWIG_Python_SetConstant(d, "CURSOR_HAND",SWIG_From_int(static_cast< int >(wxCURSOR_HAND)));
60125 SWIG_Python_SetConstant(d, "CURSOR_IBEAM",SWIG_From_int(static_cast< int >(wxCURSOR_IBEAM)));
60126 SWIG_Python_SetConstant(d, "CURSOR_LEFT_BUTTON",SWIG_From_int(static_cast< int >(wxCURSOR_LEFT_BUTTON)));
60127 SWIG_Python_SetConstant(d, "CURSOR_MAGNIFIER",SWIG_From_int(static_cast< int >(wxCURSOR_MAGNIFIER)));
60128 SWIG_Python_SetConstant(d, "CURSOR_MIDDLE_BUTTON",SWIG_From_int(static_cast< int >(wxCURSOR_MIDDLE_BUTTON)));
60129 SWIG_Python_SetConstant(d, "CURSOR_NO_ENTRY",SWIG_From_int(static_cast< int >(wxCURSOR_NO_ENTRY)));
60130 SWIG_Python_SetConstant(d, "CURSOR_PAINT_BRUSH",SWIG_From_int(static_cast< int >(wxCURSOR_PAINT_BRUSH)));
60131 SWIG_Python_SetConstant(d, "CURSOR_PENCIL",SWIG_From_int(static_cast< int >(wxCURSOR_PENCIL)));
60132 SWIG_Python_SetConstant(d, "CURSOR_POINT_LEFT",SWIG_From_int(static_cast< int >(wxCURSOR_POINT_LEFT)));
60133 SWIG_Python_SetConstant(d, "CURSOR_POINT_RIGHT",SWIG_From_int(static_cast< int >(wxCURSOR_POINT_RIGHT)));
60134 SWIG_Python_SetConstant(d, "CURSOR_QUESTION_ARROW",SWIG_From_int(static_cast< int >(wxCURSOR_QUESTION_ARROW)));
60135 SWIG_Python_SetConstant(d, "CURSOR_RIGHT_BUTTON",SWIG_From_int(static_cast< int >(wxCURSOR_RIGHT_BUTTON)));
60136 SWIG_Python_SetConstant(d, "CURSOR_SIZENESW",SWIG_From_int(static_cast< int >(wxCURSOR_SIZENESW)));
60137 SWIG_Python_SetConstant(d, "CURSOR_SIZENS",SWIG_From_int(static_cast< int >(wxCURSOR_SIZENS)));
60138 SWIG_Python_SetConstant(d, "CURSOR_SIZENWSE",SWIG_From_int(static_cast< int >(wxCURSOR_SIZENWSE)));
60139 SWIG_Python_SetConstant(d, "CURSOR_SIZEWE",SWIG_From_int(static_cast< int >(wxCURSOR_SIZEWE)));
60140 SWIG_Python_SetConstant(d, "CURSOR_SIZING",SWIG_From_int(static_cast< int >(wxCURSOR_SIZING)));
60141 SWIG_Python_SetConstant(d, "CURSOR_SPRAYCAN",SWIG_From_int(static_cast< int >(wxCURSOR_SPRAYCAN)));
60142 SWIG_Python_SetConstant(d, "CURSOR_WAIT",SWIG_From_int(static_cast< int >(wxCURSOR_WAIT)));
60143 SWIG_Python_SetConstant(d, "CURSOR_WATCH",SWIG_From_int(static_cast< int >(wxCURSOR_WATCH)));
60144 SWIG_Python_SetConstant(d, "CURSOR_BLANK",SWIG_From_int(static_cast< int >(wxCURSOR_BLANK)));
60145 SWIG_Python_SetConstant(d, "CURSOR_DEFAULT",SWIG_From_int(static_cast< int >(wxCURSOR_DEFAULT)));
60146 SWIG_Python_SetConstant(d, "CURSOR_COPY_ARROW",SWIG_From_int(static_cast< int >(wxCURSOR_COPY_ARROW)));
60147 SWIG_Python_SetConstant(d, "CURSOR_ARROWWAIT",SWIG_From_int(static_cast< int >(wxCURSOR_ARROWWAIT)));
60148 SWIG_Python_SetConstant(d, "CURSOR_MAX",SWIG_From_int(static_cast< int >(wxCURSOR_MAX)));
70d7cb34
RD
60149 SWIG_Python_SetConstant(d, "Inside",SWIG_From_int(static_cast< int >(wxInside)));
60150 SWIG_Python_SetConstant(d, "OutLeft",SWIG_From_int(static_cast< int >(wxOutLeft)));
60151 SWIG_Python_SetConstant(d, "OutRight",SWIG_From_int(static_cast< int >(wxOutRight)));
60152 SWIG_Python_SetConstant(d, "OutTop",SWIG_From_int(static_cast< int >(wxOutTop)));
60153 SWIG_Python_SetConstant(d, "OutBottom",SWIG_From_int(static_cast< int >(wxOutBottom)));
1bd55598
RD
60154 SWIG_addvarlink(SWIG_globals(),(char*)"DefaultPosition",DefaultPosition_get, DefaultPosition_set);
60155 SWIG_addvarlink(SWIG_globals(),(char*)"DefaultSize",DefaultSize_get, DefaultSize_set);
60156 SWIG_Python_SetConstant(d, "FromStart",SWIG_From_int(static_cast< int >(wxFromStart)));
60157 SWIG_Python_SetConstant(d, "FromCurrent",SWIG_From_int(static_cast< int >(wxFromCurrent)));
60158 SWIG_Python_SetConstant(d, "FromEnd",SWIG_From_int(static_cast< int >(wxFromEnd)));
60159
60160 wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
60161
60162
60163 wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
60164
60165 SWIG_Python_SetConstant(d, "IMAGE_ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGE_ALPHA_TRANSPARENT)));
60166 SWIG_Python_SetConstant(d, "IMAGE_ALPHA_THRESHOLD",SWIG_From_int(static_cast< int >(wxIMAGE_ALPHA_THRESHOLD)));
60167 SWIG_Python_SetConstant(d, "IMAGE_ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxIMAGE_ALPHA_OPAQUE)));
f5263701
RD
60168 SWIG_Python_SetConstant(d, "IMAGE_QUALITY_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_QUALITY_NORMAL)));
60169 SWIG_Python_SetConstant(d, "IMAGE_QUALITY_HIGH",SWIG_From_int(static_cast< int >(wxIMAGE_QUALITY_HIGH)));
1bd55598
RD
60170 SWIG_addvarlink(SWIG_globals(),(char*)"NullImage",NullImage_get, NullImage_set);
60171 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_FILENAME",IMAGE_OPTION_FILENAME_get, IMAGE_OPTION_FILENAME_set);
60172 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_BMP_FORMAT",IMAGE_OPTION_BMP_FORMAT_get, IMAGE_OPTION_BMP_FORMAT_set);
60173 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",IMAGE_OPTION_CUR_HOTSPOT_X_get, IMAGE_OPTION_CUR_HOTSPOT_X_set);
60174 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",IMAGE_OPTION_CUR_HOTSPOT_Y_get, IMAGE_OPTION_CUR_HOTSPOT_Y_set);
60175 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_RESOLUTION",IMAGE_OPTION_RESOLUTION_get, IMAGE_OPTION_RESOLUTION_set);
60176 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_RESOLUTIONX",IMAGE_OPTION_RESOLUTIONX_get, IMAGE_OPTION_RESOLUTIONX_set);
60177 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_RESOLUTIONY",IMAGE_OPTION_RESOLUTIONY_get, IMAGE_OPTION_RESOLUTIONY_set);
60178 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_RESOLUTIONUNIT",IMAGE_OPTION_RESOLUTIONUNIT_get, IMAGE_OPTION_RESOLUTIONUNIT_set);
60179 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_QUALITY",IMAGE_OPTION_QUALITY_get, IMAGE_OPTION_QUALITY_set);
60180 SWIG_Python_SetConstant(d, "IMAGE_RESOLUTION_INCHES",SWIG_From_int(static_cast< int >(wxIMAGE_RESOLUTION_INCHES)));
60181 SWIG_Python_SetConstant(d, "IMAGE_RESOLUTION_CM",SWIG_From_int(static_cast< int >(wxIMAGE_RESOLUTION_CM)));
60182 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_BITSPERSAMPLE",IMAGE_OPTION_BITSPERSAMPLE_get, IMAGE_OPTION_BITSPERSAMPLE_set);
60183 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_SAMPLESPERPIXEL",IMAGE_OPTION_SAMPLESPERPIXEL_get, IMAGE_OPTION_SAMPLESPERPIXEL_set);
60184 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_COMPRESSION",IMAGE_OPTION_COMPRESSION_get, IMAGE_OPTION_COMPRESSION_set);
60185 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_IMAGEDESCRIPTOR",IMAGE_OPTION_IMAGEDESCRIPTOR_get, IMAGE_OPTION_IMAGEDESCRIPTOR_set);
60186 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_PNG_FORMAT",IMAGE_OPTION_PNG_FORMAT_get, IMAGE_OPTION_PNG_FORMAT_set);
60187 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_PNG_BITDEPTH",IMAGE_OPTION_PNG_BITDEPTH_get, IMAGE_OPTION_PNG_BITDEPTH_set);
60188 SWIG_Python_SetConstant(d, "PNG_TYPE_COLOUR",SWIG_From_int(static_cast< int >(wxPNG_TYPE_COLOUR)));
60189 SWIG_Python_SetConstant(d, "PNG_TYPE_GREY",SWIG_From_int(static_cast< int >(wxPNG_TYPE_GREY)));
60190 SWIG_Python_SetConstant(d, "PNG_TYPE_GREY_RED",SWIG_From_int(static_cast< int >(wxPNG_TYPE_GREY_RED)));
60191 SWIG_Python_SetConstant(d, "BMP_24BPP",SWIG_From_int(static_cast< int >(wxBMP_24BPP)));
60192 SWIG_Python_SetConstant(d, "BMP_8BPP",SWIG_From_int(static_cast< int >(wxBMP_8BPP)));
60193 SWIG_Python_SetConstant(d, "BMP_8BPP_GREY",SWIG_From_int(static_cast< int >(wxBMP_8BPP_GREY)));
60194 SWIG_Python_SetConstant(d, "BMP_8BPP_GRAY",SWIG_From_int(static_cast< int >(wxBMP_8BPP_GRAY)));
60195 SWIG_Python_SetConstant(d, "BMP_8BPP_RED",SWIG_From_int(static_cast< int >(wxBMP_8BPP_RED)));
60196 SWIG_Python_SetConstant(d, "BMP_8BPP_PALETTE",SWIG_From_int(static_cast< int >(wxBMP_8BPP_PALETTE)));
60197 SWIG_Python_SetConstant(d, "BMP_4BPP",SWIG_From_int(static_cast< int >(wxBMP_4BPP)));
60198 SWIG_Python_SetConstant(d, "BMP_1BPP",SWIG_From_int(static_cast< int >(wxBMP_1BPP)));
60199 SWIG_Python_SetConstant(d, "BMP_1BPP_BW",SWIG_From_int(static_cast< int >(wxBMP_1BPP_BW)));
60200 SWIG_Python_SetConstant(d, "QUANTIZE_INCLUDE_WINDOWS_COLOURS",SWIG_From_int(static_cast< int >(wxQUANTIZE_INCLUDE_WINDOWS_COLOURS)));
60201 SWIG_Python_SetConstant(d, "QUANTIZE_FILL_DESTINATION_IMAGE",SWIG_From_int(static_cast< int >(wxQUANTIZE_FILL_DESTINATION_IMAGE)));
60202 SWIG_Python_SetConstant(d, "EVENT_PROPAGATE_NONE",SWIG_From_int(static_cast< int >(wxEVENT_PROPAGATE_NONE)));
60203 SWIG_Python_SetConstant(d, "EVENT_PROPAGATE_MAX",SWIG_From_int(static_cast< int >(wxEVENT_PROPAGATE_MAX)));
60204 PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL));
60205 PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST));
60206 PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST));
60207 PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED));
60208 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED));
60209 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED));
60210 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED));
60211 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED));
60212 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED));
60213 PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED));
60214 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED));
60215 PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED));
60216 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED));
60217 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED));
60218 PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED));
60219 PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED));
60220 PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED));
60221 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED));
60222 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER));
60223 PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN));
60224 PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP));
60225 PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN));
60226 PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP));
60227 PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN));
60228 PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP));
60229 PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION));
60230 PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW));
60231 PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW));
60232 PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK));
60233 PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK));
60234 PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK));
60235 PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS));
60236 PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS));
60237 PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS));
60238 PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL));
60239 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN));
60240 PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP));
60241 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN));
60242 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP));
60243 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN));
60244 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP));
60245 PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION));
60246 PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW));
60247 PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW));
60248 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK));
60249 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK));
60250 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK));
60251 PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR));
60252 PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK));
60253 PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY));
60254 PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN));
60255 PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP));
60256 PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY));
60257 PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR));
60258 PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP));
60259 PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM));
60260 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP));
60261 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN));
60262 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP));
60263 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN));
60264 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK));
60265 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE));
60266 PyDict_SetItemString(d, "wxEVT_SCROLL_CHANGED", PyInt_FromLong(wxEVT_SCROLL_CHANGED));
60267 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP));
60268 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM));
60269 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP));
60270 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN));
60271 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP));
60272 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN));
60273 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK));
60274 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE));
60275 PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE));
60276 PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE));
60277 PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW));
60278 PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION));
60279 PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION));
60280 PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP));
1bd55598
RD
60281 PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE));
60282 PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE));
60283 PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY));
60284 PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW));
60285 PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE));
60286 PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE));
60287 PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED));
34e0a3bb 60288 PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_LOST", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_LOST));
1bd55598
RD
60289 PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT));
60290 PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND));
60291 PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT));
60292 PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON));
60293 PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN));
60294 PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE));
60295 PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT));
60296 PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU));
60297 PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED));
60298 PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED));
60299 PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED));
60300 PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE));
60301 PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED));
60302 PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES));
60303 PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM));
60304 PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM));
60305 PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM));
60306 PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG));
60307 PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE));
60308 PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI));
60309 PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING));
60310 PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING));
60311 PyDict_SetItemString(d, "wxEVT_HIBERNATE", PyInt_FromLong(wxEVT_HIBERNATE));
2131d850
RD
60312 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_COPY", PyInt_FromLong(wxEVT_COMMAND_TEXT_COPY));
60313 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_CUT", PyInt_FromLong(wxEVT_COMMAND_TEXT_CUT));
60314 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_PASTE", PyInt_FromLong(wxEVT_COMMAND_TEXT_PASTE));
1bd55598
RD
60315 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK));
60316 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK));
60317 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK));
60318 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK));
60319 PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS));
60320 PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS));
60321 PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER));
60322 SWIG_Python_SetConstant(d, "MOUSE_BTN_ANY",SWIG_From_int(static_cast< int >(wxMOUSE_BTN_ANY)));
60323 SWIG_Python_SetConstant(d, "MOUSE_BTN_NONE",SWIG_From_int(static_cast< int >(wxMOUSE_BTN_NONE)));
60324 SWIG_Python_SetConstant(d, "MOUSE_BTN_LEFT",SWIG_From_int(static_cast< int >(wxMOUSE_BTN_LEFT)));
60325 SWIG_Python_SetConstant(d, "MOUSE_BTN_MIDDLE",SWIG_From_int(static_cast< int >(wxMOUSE_BTN_MIDDLE)));
60326 SWIG_Python_SetConstant(d, "MOUSE_BTN_RIGHT",SWIG_From_int(static_cast< int >(wxMOUSE_BTN_RIGHT)));
60327 SWIG_Python_SetConstant(d, "UPDATE_UI_PROCESS_ALL",SWIG_From_int(static_cast< int >(wxUPDATE_UI_PROCESS_ALL)));
60328 SWIG_Python_SetConstant(d, "UPDATE_UI_PROCESS_SPECIFIED",SWIG_From_int(static_cast< int >(wxUPDATE_UI_PROCESS_SPECIFIED)));
60329 SWIG_Python_SetConstant(d, "NavigationKeyEvent_IsBackward",SWIG_From_int(static_cast< int >(wxNavigationKeyEvent::IsBackward)));
60330 SWIG_Python_SetConstant(d, "NavigationKeyEvent_IsForward",SWIG_From_int(static_cast< int >(wxNavigationKeyEvent::IsForward)));
60331 SWIG_Python_SetConstant(d, "NavigationKeyEvent_WinChange",SWIG_From_int(static_cast< int >(wxNavigationKeyEvent::WinChange)));
60332 SWIG_Python_SetConstant(d, "NavigationKeyEvent_FromTab",SWIG_From_int(static_cast< int >(wxNavigationKeyEvent::FromTab)));
60333 SWIG_Python_SetConstant(d, "IDLE_PROCESS_ALL",SWIG_From_int(static_cast< int >(wxIDLE_PROCESS_ALL)));
60334 SWIG_Python_SetConstant(d, "IDLE_PROCESS_SPECIFIED",SWIG_From_int(static_cast< int >(wxIDLE_PROCESS_SPECIFIED)));
60335 PyDict_SetItemString(d, "wxEVT_DATE_CHANGED", PyInt_FromLong(wxEVT_DATE_CHANGED));
60336 SWIG_Python_SetConstant(d, "PYAPP_ASSERT_SUPPRESS",SWIG_From_int(static_cast< int >(wxPYAPP_ASSERT_SUPPRESS)));
60337 SWIG_Python_SetConstant(d, "PYAPP_ASSERT_EXCEPTION",SWIG_From_int(static_cast< int >(wxPYAPP_ASSERT_EXCEPTION)));
60338 SWIG_Python_SetConstant(d, "PYAPP_ASSERT_DIALOG",SWIG_From_int(static_cast< int >(wxPYAPP_ASSERT_DIALOG)));
60339 SWIG_Python_SetConstant(d, "PYAPP_ASSERT_LOG",SWIG_From_int(static_cast< int >(wxPYAPP_ASSERT_LOG)));
60340 SWIG_Python_SetConstant(d, "PRINT_WINDOWS",SWIG_From_int(static_cast< int >(wxPRINT_WINDOWS)));
60341 SWIG_Python_SetConstant(d, "PRINT_POSTSCRIPT",SWIG_From_int(static_cast< int >(wxPRINT_POSTSCRIPT)));
eec1c382
RD
60342 SWIG_Python_SetConstant(d, "ACCEL_ALT",SWIG_From_int(static_cast< int >(wxACCEL_ALT)));
60343 SWIG_Python_SetConstant(d, "ACCEL_CTRL",SWIG_From_int(static_cast< int >(wxACCEL_CTRL)));
60344 SWIG_Python_SetConstant(d, "ACCEL_SHIFT",SWIG_From_int(static_cast< int >(wxACCEL_SHIFT)));
60345 SWIG_Python_SetConstant(d, "ACCEL_NORMAL",SWIG_From_int(static_cast< int >(wxACCEL_NORMAL)));
60346 SWIG_Python_SetConstant(d, "ACCEL_CMD",SWIG_From_int(static_cast< int >(wxACCEL_CMD)));
1bd55598
RD
60347 SWIG_addvarlink(SWIG_globals(),(char*)"NullAcceleratorTable",NullAcceleratorTable_get, NullAcceleratorTable_set);
60348 SWIG_addvarlink(SWIG_globals(),(char*)"PanelNameStr",PanelNameStr_get, PanelNameStr_set);
60349 SWIG_Python_SetConstant(d, "WINDOW_VARIANT_NORMAL",SWIG_From_int(static_cast< int >(wxWINDOW_VARIANT_NORMAL)));
60350 SWIG_Python_SetConstant(d, "WINDOW_VARIANT_SMALL",SWIG_From_int(static_cast< int >(wxWINDOW_VARIANT_SMALL)));
60351 SWIG_Python_SetConstant(d, "WINDOW_VARIANT_MINI",SWIG_From_int(static_cast< int >(wxWINDOW_VARIANT_MINI)));
60352 SWIG_Python_SetConstant(d, "WINDOW_VARIANT_LARGE",SWIG_From_int(static_cast< int >(wxWINDOW_VARIANT_LARGE)));
60353 SWIG_Python_SetConstant(d, "WINDOW_VARIANT_MAX",SWIG_From_int(static_cast< int >(wxWINDOW_VARIANT_MAX)));
60354 SWIG_addvarlink(SWIG_globals(),(char*)"DefaultValidator",DefaultValidator_get, DefaultValidator_set);
60355 SWIG_addvarlink(SWIG_globals(),(char*)"ControlNameStr",ControlNameStr_get, ControlNameStr_set);
60356 SWIG_Python_SetConstant(d, "FLEX_GROWMODE_NONE",SWIG_From_int(static_cast< int >(wxFLEX_GROWMODE_NONE)));
60357 SWIG_Python_SetConstant(d, "FLEX_GROWMODE_SPECIFIED",SWIG_From_int(static_cast< int >(wxFLEX_GROWMODE_SPECIFIED)));
60358 SWIG_Python_SetConstant(d, "FLEX_GROWMODE_ALL",SWIG_From_int(static_cast< int >(wxFLEX_GROWMODE_ALL)));
60359 SWIG_addvarlink(SWIG_globals(),(char*)"DefaultSpan",DefaultSpan_get, DefaultSpan_set);
60360 SWIG_Python_SetConstant(d, "Left",SWIG_From_int(static_cast< int >(wxLeft)));
60361 SWIG_Python_SetConstant(d, "Top",SWIG_From_int(static_cast< int >(wxTop)));
60362 SWIG_Python_SetConstant(d, "Right",SWIG_From_int(static_cast< int >(wxRight)));
60363 SWIG_Python_SetConstant(d, "Bottom",SWIG_From_int(static_cast< int >(wxBottom)));
60364 SWIG_Python_SetConstant(d, "Width",SWIG_From_int(static_cast< int >(wxWidth)));
60365 SWIG_Python_SetConstant(d, "Height",SWIG_From_int(static_cast< int >(wxHeight)));
60366 SWIG_Python_SetConstant(d, "Centre",SWIG_From_int(static_cast< int >(wxCentre)));
60367 SWIG_Python_SetConstant(d, "Center",SWIG_From_int(static_cast< int >(wxCenter)));
60368 SWIG_Python_SetConstant(d, "CentreX",SWIG_From_int(static_cast< int >(wxCentreX)));
60369 SWIG_Python_SetConstant(d, "CentreY",SWIG_From_int(static_cast< int >(wxCentreY)));
60370 SWIG_Python_SetConstant(d, "Unconstrained",SWIG_From_int(static_cast< int >(wxUnconstrained)));
60371 SWIG_Python_SetConstant(d, "AsIs",SWIG_From_int(static_cast< int >(wxAsIs)));
60372 SWIG_Python_SetConstant(d, "PercentOf",SWIG_From_int(static_cast< int >(wxPercentOf)));
60373 SWIG_Python_SetConstant(d, "Above",SWIG_From_int(static_cast< int >(wxAbove)));
60374 SWIG_Python_SetConstant(d, "Below",SWIG_From_int(static_cast< int >(wxBelow)));
60375 SWIG_Python_SetConstant(d, "LeftOf",SWIG_From_int(static_cast< int >(wxLeftOf)));
60376 SWIG_Python_SetConstant(d, "RightOf",SWIG_From_int(static_cast< int >(wxRightOf)));
60377 SWIG_Python_SetConstant(d, "SameAs",SWIG_From_int(static_cast< int >(wxSameAs)));
60378 SWIG_Python_SetConstant(d, "Absolute",SWIG_From_int(static_cast< int >(wxAbsolute)));
60379
60380 // Initialize threading, some globals and such
60381 __wxPyPreStart(d);
60382
60383
60384 // Although these are defined in __version__ they need to be here too so
60385 // that an assert can be done to ensure that the wxPython and the wxWindows
60386 // versions match.
60387 PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION ));
60388 PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION ));
60389 PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER ));
60390
d55e5bfc
RD
60391}
60392