]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_core_wrap.cpp
extracted common code of ToLong and ToULong in a separate template helper
[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]
2590#define SWIGTYPE_p_wxTIFFHandler swig_types[124]
2591#define SWIGTYPE_p_wxToolTip swig_types[125]
2592#define SWIGTYPE_p_wxUpdateUIEvent swig_types[126]
2593#define SWIGTYPE_p_wxValidator swig_types[127]
2594#define SWIGTYPE_p_wxVisualAttributes swig_types[128]
2595#define SWIGTYPE_p_wxWindow swig_types[129]
2596#define SWIGTYPE_p_wxWindowCreateEvent swig_types[130]
2597#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[131]
2598#define SWIGTYPE_p_wxXPMHandler swig_types[132]
2599#define SWIGTYPE_p_wxZipFSHandler swig_types[133]
2600static swig_type_info *swig_types[135];
2601static swig_module_info swig_module = {swig_types, 134, 0, 0, 0, 0};
32fe5131
RD
2602#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2603#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc
RD
2604
2605/* -------- TYPES TABLE (END) -------- */
2606
1bd55598
RD
2607#if (PY_VERSION_HEX <= 0x02000000)
2608# if !defined(SWIG_PYTHON_CLASSIC)
2609# error "This python version requires to use swig with the '-classic' option"
2610# endif
2611#endif
2612#if (PY_VERSION_HEX <= 0x02020000)
2613# error "This python version requires to use swig with the '-nomodern' option"
2614#endif
2615#if (PY_VERSION_HEX <= 0x02020000)
2616# error "This python version requires to use swig with the '-nomodernargs' option"
2617#endif
2618#ifndef METH_O
2619# error "This python version requires to use swig with the '-nofastunpack' option"
2620#endif
d55e5bfc
RD
2621
2622/*-----------------------------------------------
5b5c9bc7 2623 @(target):= _core_.so
d55e5bfc 2624 ------------------------------------------------*/
5b5c9bc7 2625#define SWIG_init init_core_
d55e5bfc 2626
5b5c9bc7 2627#define SWIG_name "_core_"
d55e5bfc 2628
1bd55598
RD
2629#define SWIGVERSION 0x010329
2630
2631
2632#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2633#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2634
2635
2636#include <stdexcept>
2637
2638
2639namespace swig {
2640 class PyObject_ptr {
2641 protected:
2642 PyObject *_obj;
2643
2644 public:
2645 PyObject_ptr() :_obj(0)
2646 {
2647 }
2648
2649 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2650 {
2651 Py_XINCREF(_obj);
2652 }
2653
2654 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2655 {
2656 if (initial_ref) Py_XINCREF(_obj);
2657 }
2658
2659 PyObject_ptr & operator=(const PyObject_ptr& item)
2660 {
2661 Py_XINCREF(item._obj);
2662 Py_XDECREF(_obj);
2663 _obj = item._obj;
2664 return *this;
2665 }
2666
2667 ~PyObject_ptr()
2668 {
2669 Py_XDECREF(_obj);
2670 }
2671
2672 operator PyObject *() const
2673 {
2674 return _obj;
2675 }
2676
2677 PyObject *operator->() const
2678 {
2679 return _obj;
2680 }
2681 };
2682}
2683
2684
2685namespace swig {
2686 struct PyObject_var : PyObject_ptr {
2687 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2688
2689 PyObject_var & operator = (PyObject* obj)
2690 {
2691 Py_XDECREF(_obj);
2692 _obj = obj;
2693 return *this;
2694 }
2695 };
2696}
2697
2698
d55e5bfc
RD
2699#include "wx/wxPython/wxPython_int.h"
2700#include "wx/wxPython/pyclasses.h"
2131d850 2701#include "wx/wxPython/twoitem.h"
d55e5bfc
RD
2702
2703
2704#ifndef wxPyUSE_EXPORT
2705// Helper functions for dealing with SWIG objects and such. These are
2706// located here so they know about the SWIG types and functions declared
2707// in the wrapper code.
2708
2709#include <wx/hashmap.h>
b1fcee84 2710WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap );
d55e5bfc
RD
2711
2712
2713// Maintains a hashmap of className to swig_type_info pointers. Given the
2714// name of a class either looks up the type info in the cache, or scans the
2715// SWIG tables for it.
2716extern PyObject* wxPyPtrTypeMap;
2717static
2718swig_type_info* wxPyFindSwigType(const wxChar* className) {
2719
2720 static wxPyTypeInfoHashMap* typeInfoCache = NULL;
2721
2722 if (typeInfoCache == NULL)
2723 typeInfoCache = new wxPyTypeInfoHashMap;
2724
2725 wxString name(className);
2726 swig_type_info* swigType = (*typeInfoCache)[name];
2727
2728 if (! swigType) {
2729 // it wasn't in the cache, so look it up from SWIG
2730 name.Append(wxT(" *"));
36ed4f51 2731 swigType = SWIG_TypeQuery(name.mb_str());
d55e5bfc
RD
2732
2733 // if it still wasn't found, try looking for a mapped name
2734 if (!swigType) {
2735 PyObject* item;
2736 name = className;
2737
2738 if ((item = PyDict_GetItemString(wxPyPtrTypeMap,
2739 (char*)(const char*)name.mbc_str())) != NULL) {
2740 name = wxString(PyString_AsString(item), *wxConvCurrent);
2741 name.Append(wxT(" *"));
36ed4f51 2742 swigType = SWIG_TypeQuery(name.mb_str());
d55e5bfc
RD
2743 }
2744 }
2745 if (swigType) {
2746 // and add it to the map if found
2747 (*typeInfoCache)[className] = swigType;
2748 }
2749 }
2750 return swigType;
2751}
2752
2753
2754// Check if a class name is a type known to SWIG
2755bool wxPyCheckSwigType(const wxChar* className) {
2756
2757 swig_type_info* swigType = wxPyFindSwigType(className);
2758 return swigType != NULL;
2759}
2760
2761
2762// Given a pointer to a C++ object and a class name, construct a Python proxy
2763// object for it.
2764PyObject* wxPyConstructObject(void* ptr,
2765 const wxChar* className,
2766 int setThisOwn) {
2767
2768 swig_type_info* swigType = wxPyFindSwigType(className);
2769 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject"));
2770
2771 return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn);
2772}
2773
2774
2775// Extract a pointer to the wrapped C++ object from a Python proxy object.
2776// Ensures that the proxy object is of the specified (or derived) type. If
2777// not able to perform the conversion then a Python exception is set and the
2778// error should be handled properly in the caller. Returns True on success.
2779bool wxPyConvertSwigPtr(PyObject* obj, void **ptr,
2780 const wxChar* className) {
2781
2782 swig_type_info* swigType = wxPyFindSwigType(className);
b411df4a 2783 wxCHECK_MSG(swigType != NULL, false, wxT("Unknown type in wxPyConvertSwigPtr"));
d55e5bfc
RD
2784
2785 return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1;
2786}
2787
2788
b1fcee84 2789
d55e5bfc
RD
2790// Make a SWIGified pointer object suitable for a .this attribute
2791PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) {
2792
2793 PyObject* robj = NULL;
2794
2795 swig_type_info* swigType = wxPyFindSwigType(className);
7e08d4ef 2796 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyMakeSwigPtr"));
d55e5bfc 2797
1bd55598 2798 robj = PySwigObject_New(ptr, swigType, 0);
d55e5bfc
RD
2799 return robj;
2800}
2801
b1fcee84 2802
943e8dfd
RD
2803// Python's PyInstance_Check does not return True for instances of new-style
2804// classes. This should get close enough for both new and old classes but I
2805// should re-evaluate the need for doing instance checks...
2806bool wxPyInstance_Check(PyObject* obj) {
2807 return PyObject_HasAttrString(obj, "__class__") != 0;
2808}
2809
2810
943e8dfd
RD
2811// This one checks if the object is an instance of a SWIG proxy class (it has
2812// a .this attribute, and the .this attribute is a PySwigObject.)
2813bool wxPySwigInstance_Check(PyObject* obj) {
2814 static PyObject* this_str = NULL;
2815 if (this_str == NULL)
2816 this_str = PyString_FromString("this");
2817
2818 PyObject* this_attr = PyObject_GetAttr(obj, this_str);
2819 if (this_attr) {
2820 bool retval = (PySwigObject_Check(this_attr) != 0);
2821 Py_DECREF(this_attr);
2822 return retval;
2823 }
2824
2825 PyErr_Clear();
2826 return false;
2827}
d55e5bfc
RD
2828
2829
2830// Export a C API in a struct. Other modules will be able to load this from
2831// the wx._core_ module and will then have safe access to these functions,
2832// even if they are located in another shared library.
2833static wxPyCoreAPI API = {
2834
d55e5bfc
RD
2835 wxPyCheckSwigType,
2836 wxPyConstructObject,
2837 wxPyConvertSwigPtr,
2838 wxPyMakeSwigPtr,
2839
2840 wxPyBeginAllowThreads,
2841 wxPyEndAllowThreads,
2842 wxPyBeginBlockThreads,
2843 wxPyEndBlockThreads,
2844
2845 wxPy_ConvertList,
2846
2847 wxString_in_helper,
2848 Py2wxString,
2849 wx2PyString,
2850
2851 byte_LIST_helper,
2852 int_LIST_helper,
2853 long_LIST_helper,
2854 string_LIST_helper,
2855 wxPoint_LIST_helper,
2856 wxBitmap_LIST_helper,
2857 wxString_LIST_helper,
2858 wxAcceleratorEntry_LIST_helper,
2859
2860 wxSize_helper,
2861 wxPoint_helper,
2862 wxRealPoint_helper,
2863 wxRect_helper,
2864 wxColour_helper,
2865 wxPoint2D_helper,
2866
2867 wxPySimple_typecheck,
2868 wxColour_typecheck,
2869
2870 wxPyCBH_setCallbackInfo,
2871 wxPyCBH_findCallback,
2872 wxPyCBH_callCallback,
2873 wxPyCBH_callCallbackObj,
2874 wxPyCBH_delete,
2875
2876 wxPyMake_wxObject,
2877 wxPyMake_wxSizer,
2878 wxPyPtrTypeMap_Add,
2879 wxPy2int_seq_helper,
2880 wxPy4int_seq_helper,
2881 wxArrayString2PyList_helper,
2882 wxArrayInt2PyList_helper,
2883
2884 wxPyClientData_dtor,
2885 wxPyUserData_dtor,
2886 wxPyOORClientData_dtor,
2887
2888 wxPyCBInputStream_create,
e2950dbb
RD
2889 wxPyCBInputStream_copy,
2890
d55e5bfc 2891 wxPyInstance_Check,
0439c23b
RD
2892 wxPySwigInstance_Check,
2893
b39fe951 2894 wxPyCheckForApp,
d55e5bfc 2895
b39fe951 2896 wxArrayDouble2PyList_helper,
70d7cb34
RD
2897 wxPoint2D_LIST_helper,
2898 wxRect2D_helper,
2899
d55e5bfc
RD
2900};
2901
2902#endif
2903
2904
fef4c27a
RD
2905#if !WXWIN_COMPATIBILITY_2_4
2906 #define wxHIDE_READONLY 0
2907#endif
2908
2909
1bd55598
RD
2910 #define SWIG_From_long PyInt_FromLong
2911
2912
2913SWIGINTERNINLINE PyObject *
2914SWIG_From_int (int value)
2915{
2916 return SWIG_From_long (value);
2917}
36ed4f51 2918
d55e5bfc 2919 static const wxString wxPyEmptyString(wxEmptyString);
1bd55598 2920SWIGINTERN wxString wxObject_GetClassName(wxObject *self){
d55e5bfc
RD
2921 return self->GetClassInfo()->GetClassName();
2922 }
1bd55598 2923SWIGINTERN void wxObject_Destroy(wxObject *self){
d55e5bfc
RD
2924 delete self;
2925 }
2926
2927#ifndef __WXMAC__
2928#define wxCURSOR_COPY_ARROW wxCURSOR_ARROW
2929#endif
2930
2931
2932#include <limits.h>
1bd55598
RD
2933#ifndef LLONG_MIN
2934# define LLONG_MIN LONG_LONG_MIN
2935#endif
2936#ifndef LLONG_MAX
2937# define LLONG_MAX LONG_LONG_MAX
2938#endif
2939#ifndef ULLONG_MAX
2940# define ULLONG_MAX ULONG_LONG_MAX
2941#endif
d55e5bfc
RD
2942
2943
36ed4f51 2944SWIGINTERN int
1bd55598 2945SWIG_AsVal_long (PyObject* obj, long* val)
d55e5bfc 2946{
c370783e
RD
2947 if (PyNumber_Check(obj)) {
2948 if (val) *val = PyInt_AsLong(obj);
1bd55598 2949 return SWIG_OK;
c370783e 2950 }
1bd55598 2951 return SWIG_TypeError;
d55e5bfc
RD
2952}
2953
2954
36ed4f51 2955SWIGINTERN int
1bd55598
RD
2956SWIG_AsVal_int (PyObject * obj, int *val)
2957{
c370783e 2958 long v;
1bd55598
RD
2959 int res = SWIG_AsVal_long (obj, &v);
2960 if (SWIG_IsOK(res)) {
2961 if ((v < INT_MIN || v > INT_MAX)) {
2962 return SWIG_OverflowError;
c370783e 2963 } else {
1bd55598 2964 if (val) *val = static_cast< int >(v);
c370783e 2965 }
1bd55598
RD
2966 }
2967 return res;
d55e5bfc
RD
2968}
2969
e9d6f3a4
RD
2970SWIGINTERN bool wxSize___eq__(wxSize *self,PyObject *other){
2971 wxSize temp, *obj = &temp;
2972 if ( other == Py_None ) return false;
2973 if ( ! wxSize_helper(other, &obj) ) {
2974 PyErr_Clear();
2975 return false;
2976 }
2977 return self->operator==(*obj);
2978 }
2979SWIGINTERN bool wxSize___ne__(wxSize *self,PyObject *other){
2980 wxSize temp, *obj = &temp;
2981 if ( other == Py_None ) return true;
2982 if ( ! wxSize_helper(other, &obj)) {
2983 PyErr_Clear();
2984 return true;
2985 }
2986 return self->operator!=(*obj);
2987 }
1eeb270e
RD
2988
2989#include <float.h>
2990
d55e5bfc 2991
36ed4f51 2992SWIGINTERN int
1bd55598 2993SWIG_AsVal_double (PyObject *obj, double* val)
d55e5bfc 2994{
c370783e
RD
2995 if (PyNumber_Check(obj)) {
2996 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 2997 return SWIG_OK;
c370783e 2998 }
1bd55598 2999 return SWIG_TypeError;
d55e5bfc
RD
3000}
3001
36ed4f51 3002
1eeb270e
RD
3003SWIGINTERN int
3004SWIG_AsVal_float (PyObject * obj, float *val)
3005{
3006 double v;
3007 int res = SWIG_AsVal_double (obj, &v);
3008 if (SWIG_IsOK(res)) {
3009 if ((v < -FLT_MAX || v > FLT_MAX)) {
3010 return SWIG_OverflowError;
3011 } else {
3012 if (val) *val = static_cast< float >(v);
3013 }
3014 }
3015 return res;
3016}
3017
3018SWIGINTERN PyObject *wxSize_Get(wxSize *self){
70d7cb34 3019 //wxPyBlock_t blocked = wxPyBeginBlockThreads();
1eeb270e
RD
3020 PyObject* tup = PyTuple_New(2);
3021 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
3022 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
70d7cb34 3023 //wxPyEndBlockThreads(blocked);
1eeb270e
RD
3024 return tup;
3025 }
3026
1bd55598 3027 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3028
e9d6f3a4
RD
3029SWIGINTERN bool wxRealPoint___eq__(wxRealPoint *self,PyObject *other){
3030 wxRealPoint temp, *obj = &temp;
3031 if ( other == Py_None ) return false;
3032 if ( ! wxRealPoint_helper(other, &obj) ) {
3033 PyErr_Clear();
3034 return false;
3035 }
3036 return self->operator==(*obj);
3037 }
3038SWIGINTERN bool wxRealPoint___ne__(wxRealPoint *self,PyObject *other){
3039 wxRealPoint temp, *obj = &temp;
3040 if ( other == Py_None ) return true;
3041 if ( ! wxRealPoint_helper(other, &obj)) {
3042 PyErr_Clear();
3043 return true;
3044 }
3045 return self->operator!=(*obj);
3046 }
1bd55598 3047SWIGINTERN void wxRealPoint_Set(wxRealPoint *self,double x,double y){
d55e5bfc
RD
3048 self->x = x;
3049 self->y = y;
3050 }
1bd55598 3051SWIGINTERN PyObject *wxRealPoint_Get(wxRealPoint *self){
70d7cb34 3052 //wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3053 PyObject* tup = PyTuple_New(2);
3054 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x));
3055 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y));
70d7cb34 3056 //PyEndBlockThreads(blocked);
d55e5bfc
RD
3057 return tup;
3058 }
e9d6f3a4
RD
3059SWIGINTERN bool wxPoint___eq__(wxPoint *self,PyObject *other){
3060 wxPoint temp, *obj = &temp;
3061 if ( other == Py_None ) return false;
3062 if ( ! wxPoint_helper(other, &obj) ) {
3063 PyErr_Clear();
3064 return false;
3065 }
3066 return self->operator==(*obj);
3067 }
3068SWIGINTERN bool wxPoint___ne__(wxPoint *self,PyObject *other){
3069 wxPoint temp, *obj = &temp;
3070 if ( other == Py_None ) return true;
3071 if ( ! wxPoint_helper(other, &obj)) {
3072 PyErr_Clear();
3073 return true;
3074 }
3075 return self->operator!=(*obj);
3076 }
1bd55598 3077SWIGINTERN void wxPoint_Set(wxPoint *self,long x,long y){
d55e5bfc
RD
3078 self->x = x;
3079 self->y = y;
3080 }
1bd55598 3081SWIGINTERN PyObject *wxPoint_Get(wxPoint *self){
70d7cb34 3082 //wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3083 PyObject* tup = PyTuple_New(2);
3084 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
3085 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
70d7cb34 3086 //wxPyEndBlockThreads(blocked);
d55e5bfc
RD
3087 return tup;
3088 }
e9d6f3a4
RD
3089SWIGINTERN bool wxRect___eq__(wxRect *self,PyObject *other){
3090 wxRect temp, *obj = &temp;
3091 if ( other == Py_None ) return false;
3092 if ( ! wxRect_helper(other, &obj) ) {
3093 PyErr_Clear();
3094 return false;
3095 }
3096 return self->operator==(*obj);
3097 }
3098SWIGINTERN bool wxRect___ne__(wxRect *self,PyObject *other){
3099 wxRect temp, *obj = &temp;
3100 if ( other == Py_None ) return true;
3101 if ( ! wxRect_helper(other, &obj)) {
3102 PyErr_Clear();
3103 return true;
3104 }
3105 return self->operator!=(*obj);
3106 }
1bd55598 3107SWIGINTERN void wxRect_Set(wxRect *self,int x=0,int y=0,int width=0,int height=0){
d55e5bfc
RD
3108 self->x = x;
3109 self->y = y;
3110 self->width = width;
3111 self->height = height;
3112 }
1bd55598 3113SWIGINTERN PyObject *wxRect_Get(wxRect *self){
70d7cb34 3114 //wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3115 PyObject* tup = PyTuple_New(4);
3116 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
3117 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
3118 PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width));
3119 PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height));
70d7cb34 3120 //wxPyEndBlockThreads(blocked);
d55e5bfc
RD
3121 return tup;
3122 }
3123
3124 PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) {
3125 wxRegion reg1(*r1);
3126 wxRegion reg2(*r2);
3127 wxRect dest(0,0,0,0);
3128 PyObject* obj;
3129
3130 reg1.Intersect(reg2);
3131 dest = reg1.GetBox();
3132
3133 if (dest != wxRect(0,0,0,0)) {
70d7cb34 3134 //wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3135 wxRect* newRect = new wxRect(dest);
b411df4a 3136 obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), true);
70d7cb34 3137 //wxPyEndBlockThreads(blocked);
d55e5bfc
RD
3138 return obj;
3139 }
3140 Py_INCREF(Py_None);
3141 return Py_None;
3142 }
3143
e9d6f3a4
RD
3144SWIGINTERN bool wxPoint2D___eq__(wxPoint2D *self,PyObject *other){
3145 wxPoint2D temp, *obj = &temp;
3146 if ( other == Py_None ) return false;
3147 if ( ! wxPoint2D_helper(other, &obj) ) {
3148 PyErr_Clear();
3149 return false;
3150 }
3151 return self->operator==(*obj);
3152 }
3153SWIGINTERN bool wxPoint2D___ne__(wxPoint2D *self,PyObject *other){
3154 wxPoint2D temp, *obj = &temp;
3155 if ( other == Py_None ) return true;
3156 if ( ! wxPoint2D_helper(other, &obj)) {
3157 PyErr_Clear();
3158 return true;
3159 }
3160 return self->operator!=(*obj);
3161 }
1bd55598 3162SWIGINTERN void wxPoint2D_Set(wxPoint2D *self,double x=0,double y=0){
d55e5bfc
RD
3163 self->m_x = x;
3164 self->m_y = y;
3165 }
1bd55598 3166SWIGINTERN PyObject *wxPoint2D_Get(wxPoint2D *self){
70d7cb34 3167 //wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3168 PyObject* tup = PyTuple_New(2);
3169 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
3170 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
70d7cb34
RD
3171 //wxPyEndBlockThreads(blocked);
3172 return tup;
3173 }
3174SWIGINTERN bool wxRect2D___eq__(wxRect2D *self,PyObject *other){
3175 wxRect2D temp, *obj = &temp;
3176 if ( other == Py_None ) return false;
3177 if ( ! wxRect2D_helper(other, &obj) ) {
3178 PyErr_Clear();
3179 return false;
3180 }
3181 return self->operator==(*obj);
3182 }
3183SWIGINTERN bool wxRect2D___ne__(wxRect2D *self,PyObject *other){
3184 wxRect2D temp, *obj = &temp;
3185 if ( other == Py_None ) return true;
3186 if ( ! wxRect2D_helper(other, &obj)) {
3187 PyErr_Clear();
3188 return true;
3189 }
3190 return self->operator!=(*obj);
3191 }
3192SWIGINTERN void wxRect2D_Set(wxRect2D *self,wxDouble x=0,wxDouble y=0,wxDouble width=0,wxDouble height=0){
3193 self->m_x = x;
3194 self->m_y = y;
3195 self->m_width = width;
3196 self->m_height = height;
3197 }
3198SWIGINTERN PyObject *wxRect2D_Get(wxRect2D *self){
3199 //wxPyBlock_t blocked = wxPyBeginBlockThreads();
3200 PyObject* tup = PyTuple_New(4);
3201 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
3202 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
3203 PyTuple_SET_ITEM(tup, 2, PyFloat_FromDouble(self->m_width));
3204 PyTuple_SET_ITEM(tup, 3, PyFloat_FromDouble(self->m_height));
3205 //wxPyEndBlockThreads(blocked);
d55e5bfc
RD
3206 return tup;
3207 }
3208
3209#include "wx/wxPython/pyistream.h"
3210
1bd55598 3211SWIGINTERN wxPyInputStream *new_wxPyInputStream(PyObject *p){
d55e5bfc
RD
3212 wxInputStream* wxis = wxPyCBInputStream::create(p);
3213 if (wxis)
3214 return new wxPyInputStream(wxis);
3215 else
3216 return NULL;
3217 }
3218
1bd55598
RD
3219SWIGINTERN swig_type_info*
3220SWIG_pchar_descriptor()
3221{
3222 static int init = 0;
3223 static swig_type_info* info = 0;
3224 if (!init) {
3225 info = SWIG_TypeQuery("_p_char");
3226 init = 1;
3227 }
3228 return info;
d55e5bfc
RD
3229}
3230
3231
1bd55598
RD
3232SWIGINTERNINLINE PyObject *
3233SWIG_FromCharPtrAndSize(const char* carray, size_t size)
d55e5bfc 3234{
1bd55598
RD
3235 if (carray) {
3236 if (size > INT_MAX) {
3237 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3238 return pchar_descriptor ?
3239 SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
3240 } else {
3241 return PyString_FromStringAndSize(carray, static_cast< int >(size));
3242 }
3243 } else {
3244 return SWIG_Py_Void();
3245 }
d55e5bfc
RD
3246}
3247
3248
1bd55598
RD
3249SWIGINTERNINLINE PyObject *
3250SWIG_From_char (char c)
3251{
3252 return SWIG_FromCharPtrAndSize(&c,1);
3253}
3254
3255
3256SWIGINTERNINLINE PyObject*
3257SWIG_From_unsigned_SS_long (unsigned long value)
3258{
3259 return (value > LONG_MAX) ?
3260 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
3261}
3262
3263
3264SWIGINTERNINLINE PyObject *
3265SWIG_From_size_t (size_t value)
3266{
3267 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3268}
3269
3270
3271SWIGINTERN int
3272SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3273{
3274 if (PyString_Check(obj)) {
4f89b6b7 3275 char *cstr; Py_ssize_t len;
1bd55598
RD
3276 PyString_AsStringAndSize(obj, &cstr, &len);
3277 if (cptr) {
3278 if (alloc) {
3279 /*
3280 In python the user should not be able to modify the inner
3281 string representation. To warranty that, if you define
3282 SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
3283 buffer is always returned.
3284
3285 The default behavior is just to return the pointer value,
3286 so, be careful.
3287 */
3288#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
3289 if (*alloc != SWIG_OLDOBJ)
3290#else
3291 if (*alloc == SWIG_NEWOBJ)
3292#endif
3293 {
3294 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
3295 *alloc = SWIG_NEWOBJ;
3296 }
3297 else {
3298 *cptr = cstr;
3299 *alloc = SWIG_OLDOBJ;
c370783e 3300 }
1bd55598
RD
3301 } else {
3302 *cptr = PyString_AsString(obj);
3303 }
3304 }
3305 if (psize) *psize = len + 1;
3306 return SWIG_OK;
3307 } else {
3308 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3309 if (pchar_descriptor) {
3310 void* vptr = 0;
3311 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
3312 if (cptr) *cptr = (char *) vptr;
3313 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3314 if (alloc) *alloc = SWIG_OLDOBJ;
3315 return SWIG_OK;
c370783e 3316 }
c370783e 3317 }
d55e5bfc 3318 }
1bd55598 3319 return SWIG_TypeError;
d55e5bfc
RD
3320}
3321
3322
36ed4f51 3323SWIGINTERN int
1bd55598 3324SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
d55e5bfc 3325{
1bd55598
RD
3326 char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
3327 int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
3328 if (SWIG_IsOK(res)) {
3329 if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
c370783e
RD
3330 if (csize <= size) {
3331 if (val) {
1bd55598
RD
3332 if (csize) memcpy(val, cptr, csize*sizeof(char));
3333 if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
c370783e 3334 }
1bd55598
RD
3335 if (alloc == SWIG_NEWOBJ) {
3336 delete[] cptr;
3337 res = SWIG_DelNewMask(res);
3338 }
3339 return res;
d55e5bfc 3340 }
1bd55598 3341 if (alloc == SWIG_NEWOBJ) delete[] cptr;
d55e5bfc 3342 }
1bd55598 3343 return SWIG_TypeError;
d55e5bfc
RD
3344}
3345
3346
36ed4f51 3347SWIGINTERN int
1bd55598
RD
3348SWIG_AsVal_char (PyObject * obj, char *val)
3349{
3350 int res = SWIG_AsCharArray(obj, val, 1);
3351 if (!SWIG_IsOK(res)) {
3352 long v;
3353 res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
3354 if (SWIG_IsOK(res)) {
3355 if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
3356 if (val) *val = static_cast< char >(v);
3357 } else {
3358 res = SWIG_OverflowError;
3359 }
3360 }
d55e5bfc 3361 }
1bd55598 3362 return res;
d55e5bfc
RD
3363}
3364
1bd55598 3365SWIGINTERN void wxOutputStream_write(wxOutputStream *self,PyObject *obj){
d55e5bfc
RD
3366 // We use only strings for the streams, not unicode
3367 PyObject* str = PyObject_Str(obj);
3368 if (! str) {
3369 PyErr_SetString(PyExc_TypeError, "Unable to convert to string");
3370 return;
3371 }
3372 self->Write(PyString_AS_STRING(str),
3373 PyString_GET_SIZE(str));
3374 Py_DECREF(str);
3375 }
3376
3377#include "wx/wxPython/pyistream.h"
3378
3379
3380class wxPyFileSystemHandler : public wxFileSystemHandler
3381{
3382public:
3383 wxPyFileSystemHandler() : wxFileSystemHandler() {}
3384
3385 DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen);
3386 DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile);
3387 DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst);
3388 DEC_PYCALLBACK_STRING__pure(FindNext);
3389
3390 wxString GetProtocol(const wxString& location) {
3391 return wxFileSystemHandler::GetProtocol(location);
3392 }
3393
3394 wxString GetLeftLocation(const wxString& location) {
3395 return wxFileSystemHandler::GetLeftLocation(location);
3396 }
3397
3398 wxString GetAnchor(const wxString& location) {
3399 return wxFileSystemHandler::GetAnchor(location);
3400 }
3401
3402 wxString GetRightLocation(const wxString& location) {
3403 return wxFileSystemHandler::GetRightLocation(location);
3404 }
3405
3406 wxString GetMimeTypeFromExt(const wxString& location) {
3407 return wxFileSystemHandler::GetMimeTypeFromExt(location);
3408 }
3409
3410 PYPRIVATE;
3411};
3412
3413
3414IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen);
3415IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile);
3416IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst);
3417IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext);
3418
3419
36ed4f51 3420SWIGINTERN int
1bd55598 3421SWIG_AsVal_bool (PyObject *obj, bool *val)
d55e5bfc 3422{
c370783e
RD
3423 if (obj == Py_True) {
3424 if (val) *val = true;
1bd55598
RD
3425 return SWIG_OK;
3426 } else if (obj == Py_False) {
c370783e 3427 if (val) *val = false;
1bd55598 3428 return SWIG_OK;
36ed4f51 3429 } else {
1bd55598
RD
3430 long v = 0;
3431 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3432 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3433 return res;
d55e5bfc
RD
3434 }
3435}
3436
1bd55598 3437SWIGINTERN wxString wxFileSystem_URLToFileName(wxString const &url){
b411df4a
RD
3438 wxFileName fname = wxFileSystem::URLToFileName(url);
3439 return fname.GetFullPath();
3440 }
d55e5bfc
RD
3441
3442 void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename,
3443 wxImage& image,
3444 long type) {
3445 wxMemoryFSHandler::AddFile(filename, image, type);
3446 }
3447
3448 void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename,
3449 const wxBitmap& bitmap,
3450 long type) {
3451 wxMemoryFSHandler::AddFile(filename, bitmap, type);
3452 }
3453
3454 void __wxMemoryFSHandler_AddFile_Data(const wxString& filename,
3455 PyObject* data) {
b411df4a
RD
3456 if (! PyString_Check(data)) {
3457 wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError,
3458 "Expected string object"));
3459 return;
3460 }
3461
5a446332 3462 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a
RD
3463 void* ptr = (void*)PyString_AsString(data);
3464 size_t size = PyString_Size(data);
3465 wxPyEndBlockThreads(blocked);
3466
3467 wxMemoryFSHandler::AddFile(filename, ptr, size);
d55e5bfc
RD
3468 }
3469
3470
3471#include "wx/wxPython/pyistream.h"
3472
3473
36ed4f51 3474SWIGINTERN int
1bd55598 3475SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
d55e5bfc 3476{
c370783e
RD
3477 long v = 0;
3478 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 3479 return SWIG_TypeError;
d55e5bfc 3480 }
c370783e
RD
3481 else if (val)
3482 *val = (unsigned long)v;
1bd55598 3483 return SWIG_OK;
d55e5bfc
RD
3484}
3485
3486
36ed4f51 3487SWIGINTERN int
1bd55598
RD
3488SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
3489{
c370783e 3490 unsigned long v;
1bd55598
RD
3491 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3492 if (SWIG_IsOK(res)) {
3493 if ((v > UCHAR_MAX)) {
3494 return SWIG_OverflowError;
c370783e 3495 } else {
1bd55598 3496 if (val) *val = static_cast< unsigned char >(v);
c370783e 3497 }
1bd55598
RD
3498 }
3499 return res;
c370783e
RD
3500}
3501
3502
1bd55598
RD
3503SWIGINTERNINLINE PyObject *
3504SWIG_From_unsigned_SS_char (unsigned char value)
3505{
3506 return SWIG_From_unsigned_SS_long (value);
f1cbd8fa
RD
3507}
3508
1bd55598 3509SWIGINTERN unsigned long wxImageHistogram_GetCount(wxImageHistogram *self,unsigned long key){
f1cbd8fa
RD
3510 wxImageHistogramEntry e = (*self)[key];
3511 return e.value;
3512 }
1bd55598 3513SWIGINTERN unsigned long wxImageHistogram_GetCountRGB(wxImageHistogram *self,byte r,byte g,byte b){
f1cbd8fa
RD
3514 unsigned long key = wxImageHistogram::MakeKey(r, g, b);
3515 wxImageHistogramEntry e = (*self)[key];
3516 return e.value;
3517 }
1bd55598 3518SWIGINTERN unsigned long wxImageHistogram_GetCountColour(wxImageHistogram *self,wxColour const &colour){
f1cbd8fa
RD
3519 unsigned long key = wxImageHistogram::MakeKey(colour.Red(),
3520 colour.Green(),
3521 colour.Blue());
3522 wxImageHistogramEntry e = (*self)[key];
3523 return e.value;
3524 }
bb2ef2cc 3525
943e8dfd
RD
3526// Pull the nested class out to the top level for SWIG's sake
3527#define wxImage_RGBValue wxImage::RGBValue
3528#define wxImage_HSVValue wxImage::HSVValue
3529
1bd55598 3530SWIGINTERN wxImage *new_wxImage(int width=0,int height=0,bool clear=true){
bb2ef2cc
RD
3531 if (width > 0 && height > 0)
3532 return new wxImage(width, height, clear);
3533 else
3534 return new wxImage;
d55e5bfc 3535 }
1bd55598 3536SWIGINTERN wxImage *new_wxImage(wxBitmap const &bitmap){
bb2ef2cc 3537 return new wxImage(bitmap.ConvertToImage());
03e46024 3538 }
1bd55598 3539SWIGINTERN wxImage *new_wxImage(int width,int height,buffer data,int DATASIZE){
bb2ef2cc
RD
3540 if (DATASIZE != width*height*3) {
3541 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3542 return NULL;
3543 }
3544
3545 // Copy the source data so the wxImage can clean it up later
3546 buffer copy = (buffer)malloc(DATASIZE);
3547 if (copy == NULL) {
3548 wxPyBLOCK_THREADS(PyErr_NoMemory());
3549 return NULL;
3550 }
3551 memcpy(copy, data, DATASIZE);
3552 return new wxImage(width, height, copy, false);
03e46024 3553 }
1bd55598 3554SWIGINTERN wxImage *new_wxImage(int width,int height,buffer data,int DATASIZE,buffer alpha,int ALPHASIZE){
bb2ef2cc
RD
3555 if (DATASIZE != width*height*3) {
3556 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3557 return NULL;
3558 }
3559 if (ALPHASIZE != width*height) {
3560 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3561 return NULL;
3562 }
3563
3564 // Copy the source data so the wxImage can clean it up later
3565 buffer dcopy = (buffer)malloc(DATASIZE);
3566 if (dcopy == NULL) {
3567 wxPyBLOCK_THREADS(PyErr_NoMemory());
3568 return NULL;
3569 }
3570 memcpy(dcopy, data, DATASIZE);
03e46024 3571
bb2ef2cc
RD
3572 buffer acopy = (buffer)malloc(ALPHASIZE);
3573 if (acopy == NULL) {
3574 wxPyBLOCK_THREADS(PyErr_NoMemory());
3575 return NULL;
3576 }
3577 memcpy(acopy, alpha, ALPHASIZE);
3578
3579 return new wxImage(width, height, dcopy, acopy, false);
3580 }
1bd55598 3581SWIGINTERN wxSize wxImage_GetSize(wxImage *self){
d55e5bfc
RD
3582 wxSize size(self->GetWidth(), self->GetHeight());
3583 return size;
3584 }
1bd55598 3585SWIGINTERN PyObject *wxImage_GetData(wxImage *self){
bb2ef2cc 3586 buffer data = self->GetData();
d55e5bfc
RD
3587 int len = self->GetWidth() * self->GetHeight() * 3;
3588 PyObject* rv;
3589 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len));
3590 return rv;
3591 }
1bd55598 3592SWIGINTERN void wxImage_SetData(wxImage *self,buffer data,int DATASIZE){
bb2ef2cc
RD
3593 if (DATASIZE != self->GetWidth() * self->GetHeight() * 3) {
3594 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3595 return;
3596 }
3597 buffer copy = (buffer)malloc(DATASIZE);
3598 if (copy == NULL) {
3599 wxPyBLOCK_THREADS(PyErr_NoMemory());
3600 return;
3601 }
3602 memcpy(copy, data, DATASIZE);
3603 self->SetData(copy, false);
3604 // wxImage takes ownership of copy...
d55e5bfc 3605 }
1bd55598 3606SWIGINTERN PyObject *wxImage_GetDataBuffer(wxImage *self){
bb2ef2cc 3607 buffer data = self->GetData();
d55e5bfc
RD
3608 int len = self->GetWidth() * self->GetHeight() * 3;
3609 PyObject* rv;
3610 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
3611 return rv;
3612 }
1bd55598 3613SWIGINTERN void wxImage_SetDataBuffer(wxImage *self,buffer data,int DATASIZE){
bb2ef2cc
RD
3614 if (DATASIZE != self->GetWidth() * self->GetHeight() * 3) {
3615 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3616 return;
d55e5bfc 3617 }
bb2ef2cc 3618 self->SetData(data, true);
d55e5bfc 3619 }
1bd55598 3620SWIGINTERN PyObject *wxImage_GetAlphaData(wxImage *self){
bb2ef2cc 3621 buffer data = self->GetAlpha();
d55e5bfc
RD
3622 if (! data) {
3623 RETURN_NONE();
3624 } else {
3625 int len = self->GetWidth() * self->GetHeight();
3626 PyObject* rv;
3627 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) );
3628 return rv;
3629 }
3630 }
1bd55598 3631SWIGINTERN void wxImage_SetAlphaData(wxImage *self,buffer alpha,int ALPHASIZE){
bb2ef2cc
RD
3632 if (ALPHASIZE != self->GetWidth() * self->GetHeight()) {
3633 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3634 return;
d55e5bfc 3635 }
bb2ef2cc
RD
3636 buffer acopy = (buffer)malloc(ALPHASIZE);
3637 if (acopy == NULL) {
3638 wxPyBLOCK_THREADS(PyErr_NoMemory());
3639 return;
3640 }
3641 memcpy(acopy, alpha, ALPHASIZE);
3642 self->SetAlpha(acopy, false);
3643 // wxImage takes ownership of acopy...
d55e5bfc 3644 }
1bd55598 3645SWIGINTERN PyObject *wxImage_GetAlphaBuffer(wxImage *self){
bb2ef2cc 3646 buffer data = self->GetAlpha();
d55e5bfc
RD
3647 int len = self->GetWidth() * self->GetHeight();
3648 PyObject* rv;
3649 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
3650 return rv;
3651 }
1bd55598 3652SWIGINTERN void wxImage_SetAlphaBuffer(wxImage *self,buffer alpha,int ALPHASIZE){
bb2ef2cc
RD
3653 if (ALPHASIZE != self->GetWidth() * self->GetHeight()) {
3654 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3655 return;
d55e5bfc 3656 }
bb2ef2cc 3657 self->SetAlpha(alpha, true);
d55e5bfc 3658 }
1bd55598
RD
3659SWIGINTERN PyObject *wxImage_GetHandlers(){
3660 wxList& list = wxImage::GetHandlers();
3661 return wxPy_ConvertList(&list);
3662 }
3663SWIGINTERN wxBitmap wxImage_ConvertToBitmap(wxImage *self,int depth=-1){
44bf767a 3664 wxBitmap bitmap(*self, depth);
d55e5bfc
RD
3665 return bitmap;
3666 }
1bd55598 3667SWIGINTERN wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,byte red,byte green,byte blue){
d55e5bfc
RD
3668 wxImage mono = self->ConvertToMono( red, green, blue );
3669 wxBitmap bitmap( mono, 1 );
3670 return bitmap;
3671 }
fc46b7f3
RD
3672
3673 wxImage* _ImageFromBuffer(int width, int height,
3674 buffer data, int DATASIZE,
3675 buffer alpha=NULL, int ALPHASIZE=0)
3676 {
3677 if (DATASIZE != width*height*3) {
3678 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3679 return NULL;
3680 }
3681 if (alpha != NULL) {
3682 if (ALPHASIZE != width*height) {
3683 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3684 return NULL;
3685 }
3686 return new wxImage(width, height, data, alpha, true);
3687 }
3688 return new wxImage(width, height, data, true);
3689 }
3690
68350608 3691 static const wxString wxPyIMAGE_OPTION_FILENAME(wxIMAGE_OPTION_FILENAME);
d55e5bfc
RD
3692 static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT);
3693 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X);
3694 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
3695 static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION);
68350608
RD
3696 static const wxString wxPyIMAGE_OPTION_RESOLUTIONX(wxIMAGE_OPTION_RESOLUTIONX);
3697 static const wxString wxPyIMAGE_OPTION_RESOLUTIONY(wxIMAGE_OPTION_RESOLUTIONY);
d55e5bfc 3698 static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT);
24d7cbea 3699 static const wxString wxPyIMAGE_OPTION_QUALITY(wxIMAGE_OPTION_QUALITY);
68350608
RD
3700 static const wxString wxPyIMAGE_OPTION_BITSPERSAMPLE(wxIMAGE_OPTION_BITSPERSAMPLE);
3701 static const wxString wxPyIMAGE_OPTION_SAMPLESPERPIXEL(wxIMAGE_OPTION_SAMPLESPERPIXEL);
3702 static const wxString wxPyIMAGE_OPTION_COMPRESSION(wxIMAGE_OPTION_COMPRESSION);
3703 static const wxString wxPyIMAGE_OPTION_IMAGEDESCRIPTOR(wxIMAGE_OPTION_IMAGEDESCRIPTOR);
7fbf8399
RD
3704 static const wxString wxPyIMAGE_OPTION_PNG_FORMAT(wxIMAGE_OPTION_PNG_FORMAT);
3705 static const wxString wxPyIMAGE_OPTION_PNG_BITDEPTH(wxIMAGE_OPTION_PNG_BITDEPTH);
c0de73ae
RD
3706
3707#include <wx/quantize.h>
3708
1bd55598 3709SWIGINTERN bool wxQuantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours=236,int flags=wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE){
c0de73ae
RD
3710 return wxQuantize::Quantize(src, dest,
3711 //NULL, // palette
3712 desiredNoColours,
3713 NULL, // eightBitData
3714 flags);
3715 }
1bd55598 3716SWIGINTERN void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){
d55e5bfc
RD
3717 if (PyCallable_Check(func)) {
3718 self->Connect(id, lastId, eventType,
3719 (wxObjectEventFunction) &wxPyCallback::EventThunker,
3720 new wxPyCallback(func));
3721 }
3722 else if (func == Py_None) {
3723 self->Disconnect(id, lastId, eventType,
3724 (wxObjectEventFunction)
3725 &wxPyCallback::EventThunker);
3726 }
3727 else {
3728 wxPyBLOCK_THREADS(
3729 PyErr_SetString(PyExc_TypeError, "Expected callable object or None."));
3730 }
3731 }
1bd55598 3732SWIGINTERN bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId=-1,wxEventType eventType=wxEVT_NULL){
d55e5bfc
RD
3733 return self->Disconnect(id, lastId, eventType,
3734 (wxObjectEventFunction)
3735 &wxPyCallback::EventThunker);
3736 }
1bd55598 3737SWIGINTERN void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self,bool incref=true){
d55e5bfc 3738 if (_self && _self != Py_None) {
36ed4f51 3739 self->SetClientObject(new wxPyOORClientData(_self, incref));
d55e5bfc
RD
3740 }
3741 else {
3742 wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject();
3743 if (data) {
3744 self->SetClientObject(NULL); // This will delete it too
3745 }
3746 }
3747 }
c370783e 3748
943e8dfd
RD
3749#if ! wxUSE_HOTKEY
3750#define wxEVT_HOTKEY -9999
3751#endif
3752
1bd55598
RD
3753SWIGINTERN PyObject *wxCommandEvent_GetClientData(wxCommandEvent *self){
3754 wxPyClientData* data = (wxPyClientData*)self->GetClientObject();
3755 if (data) {
3756 Py_INCREF(data->m_obj);
3757 return data->m_obj;
3758 } else {
3759 Py_INCREF(Py_None);
3760 return Py_None;
3761 }
3762 }
3763SWIGINTERN void wxCommandEvent_SetClientData(wxCommandEvent *self,PyObject *clientData){
3764 wxPyClientData* data = new wxPyClientData(clientData);
3765 self->SetClientObject(data);
3766 }
3767SWIGINTERN int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){
d55e5bfc 3768 #if wxUSE_UNICODE
bb4524c4 3769 return self->GetUnicodeKey();
d55e5bfc
RD
3770 #else
3771 return 0;
3772 #endif
3773 }
b850e7f3
RD
3774SWIGINTERN void wxKeyEvent_SetUnicodeKey(wxKeyEvent *self,int uniChar){
3775 #if wxUSE_UNICODE
3776 self->m_uniChar = uniChar;
3777 #endif
3778 }
d55e5bfc 3779
1bd55598
RD
3780SWIGINTERNINLINE PyObject *
3781SWIG_From_unsigned_SS_int (unsigned int value)
3782{
3783 return SWIG_From_unsigned_SS_long (value);
3784}
d55e5bfc
RD
3785
3786
36ed4f51 3787SWIGINTERN int
1bd55598
RD
3788SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
3789{
c370783e 3790 unsigned long v;
1bd55598
RD
3791 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3792 if (SWIG_IsOK(res)) {
3793 if ((v > UINT_MAX)) {
3794 return SWIG_OverflowError;
3795 } else {
3796 if (val) *val = static_cast< unsigned int >(v);
c370783e 3797 }
1bd55598
RD
3798 }
3799 return res;
d55e5bfc
RD
3800}
3801
1bd55598 3802SWIGINTERN void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){
d55e5bfc
RD
3803 self->m_size = size;
3804 }
1bd55598 3805SWIGINTERN PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){
d55e5bfc
RD
3806 int count = self->GetNumberOfFiles();
3807 wxString* files = self->GetFiles();
5ba5649b 3808 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3809 PyObject* list = PyList_New(count);
3810
3811 if (!list) {
3812 PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!");
5ba5649b 3813 wxPyEndBlockThreads(blocked);
d55e5bfc
RD
3814 return NULL;
3815 }
3816
3817 for (int i=0; i<count; i++) {
3818 PyList_SetItem(list, i, wx2PyString(files[i]));
3819 }
5ba5649b 3820 wxPyEndBlockThreads(blocked);
d55e5bfc
RD
3821 return list;
3822 }
3823
3824
1bd55598 3825SWIGINTERN wxPyApp *new_wxPyApp(){
d55e5bfc
RD
3826 wxPythonApp = new wxPyApp();
3827 return wxPythonApp;
3828 }
1bd55598 3829SWIGINTERN int wxPyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; }
33d6fd3b 3830SWIGINTERN bool wxPyApp_IsDisplayAvailable(){
fc46b7f3
RD
3831 return wxPyTestDisplayAvailable();
3832 }
d55e5bfc
RD
3833
3834 void wxApp_CleanUp() {
3835 __wxPyCleanup();
3836 }
3837
3838
a5ee0656 3839 wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; }
d55e5bfc
RD
3840
3841
5cbf236d
RD
3842
3843
1bd55598
RD
3844
3845SWIGINTERNINLINE PyObject *
3846SWIG_FromCharPtr(const char *cptr)
5cbf236d 3847{
1bd55598 3848 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
5cbf236d
RD
3849}
3850
3851
32fe5131 3852#if 0 // #ifdef __WXMAC__
b411df4a
RD
3853
3854// A dummy class that raises an exception if used...
3855class wxEventLoop
3856{
3857public:
3858 wxEventLoop() { wxPyRaiseNotImplemented(); }
3859 int Run() { return 0; }
3860 void Exit(int rc = 0) {}
3861 bool Pending() const { return false; }
3862 bool Dispatch() { return false; }
3863 bool IsRunning() const { return false; }
3864 static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; }
3865 static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); }
3866};
3867
3868#else
3869
3870#include <wx/evtloop.h>
3871
3872#endif
3873
3874
d55e5bfc
RD
3875
3876 static const wxString wxPyPanelNameStr(wxPanelNameStr);
1bd55598
RD
3877SWIGINTERN wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; }
3878SWIGINTERN void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; }
3879SWIGINTERN PyObject *wxWindow_GetChildren(wxWindow *self){
d55e5bfc
RD
3880 wxWindowList& list = self->GetChildren();
3881 return wxPy_ConvertList(&list);
3882 }
704eda0c 3883SWIGINTERN void wxWindow_SetDoubleBuffered(wxWindow *self,bool on){}
1bd55598 3884SWIGINTERN bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){
d55e5bfc
RD
3885 #if wxUSE_HOTKEY
3886 return self->RegisterHotKey(hotkeyId, modifiers, keycode);
3887 #else
b411df4a 3888 return false;
d55e5bfc
RD
3889 #endif
3890 }
1bd55598 3891SWIGINTERN bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){
d55e5bfc
RD
3892
3893
3894
b411df4a 3895 return false;
d55e5bfc
RD
3896
3897 }
1bd55598 3898SWIGINTERN long wxWindow_GetHandle(wxWindow *self){
d55e5bfc
RD
3899 return wxPyGetWinHandle(self);
3900 }
1bd55598 3901SWIGINTERN void wxWindow_AssociateHandle(wxWindow *self,long handle){
629e65c2
RD
3902 self->AssociateHandle((WXWidget)handle);
3903 }
1bd55598 3904SWIGINTERN void wxWindow_DragAcceptFiles(wxWindow *self,bool accept){}
d55e5bfc
RD
3905
3906wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) {
3907 return wxWindow::FindWindowById(id, parent);
3908}
3909
3910wxWindow* wxFindWindowByName( const wxString& name,
3911 const wxWindow *parent = NULL ) {
3912 return wxWindow::FindWindowByName(name, parent);
3913}
3914
3915wxWindow* wxFindWindowByLabel( const wxString& label,
3916 const wxWindow *parent = NULL ) {
3917 return wxWindow::FindWindowByLabel(label, parent);
3918}
3919
3920
3921#ifdef __WXMSW__
3922#include <wx/msw/private.h> // to get wxGetWindowId
3923#endif
3924
3925
3926 wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) {
3927#ifdef __WXMSW__
3928 WXHWND hWnd = (WXHWND)_hWnd;
3929 long id = wxGetWindowId(hWnd);
3930 wxWindow* win = new wxWindow;
943e8dfd
RD
3931 if (parent)
3932 parent->AddChild(win);
d55e5bfc
RD
3933 win->SetEventHandler(win);
3934 win->SetHWND(hWnd);
3935 win->SetId(id);
3936 win->SubclassWin(hWnd);
3937 win->AdoptAttributesFromHWND();
3938 win->SetupColours();
3939 return win;
3940#else
3941 wxPyRaiseNotImplemented();
3942 return NULL;
3943#endif
3944 }
3945
3946
3215336e
RD
3947 PyObject* GetTopLevelWindows() {
3948 return wxPy_ConvertList(&wxTopLevelWindows);
3949 }
3950
3951
d55e5bfc
RD
3952IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
3953IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow);
3954IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow);
3955
3956IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator);
3957
1bd55598
RD
3958
3959SWIGINTERNINLINE int
3960SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3961{
3962 unsigned long v;
3963 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3964 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3965 return res;
3966}
3967
3968SWIGINTERN void wxMenu_Destroy(wxMenu *self){ delete self; }
3969SWIGINTERN PyObject *wxMenu_GetMenuItems(wxMenu *self){
d55e5bfc
RD
3970 wxMenuItemList& list = self->GetMenuItems();
3971 return wxPy_ConvertList(&list);
3972 }
1bd55598
RD
3973SWIGINTERN void wxMenuItem_SetFont(wxMenuItem *self,wxFont const &font){}
3974SWIGINTERN wxFont wxMenuItem_GetFont(wxMenuItem *self){ return wxNullFont; }
3975SWIGINTERN void wxMenuItem_SetTextColour(wxMenuItem *self,wxColour const &colText){}
3976SWIGINTERN wxColour wxMenuItem_GetTextColour(wxMenuItem *self){ return wxNullColour; }
3977SWIGINTERN void wxMenuItem_SetBackgroundColour(wxMenuItem *self,wxColour const &colBack){}
3978SWIGINTERN wxColour wxMenuItem_GetBackgroundColour(wxMenuItem *self){ return wxNullColour; }
3979SWIGINTERN void wxMenuItem_SetBitmaps(wxMenuItem *self,wxBitmap const &bmpChecked,wxBitmap const &bmpUnchecked=wxNullBitmap){ self->SetBitmap( bmpChecked ); }
3980SWIGINTERN void wxMenuItem_SetDisabledBitmap(wxMenuItem *self,wxBitmap const &bmpDisabled){}
3981SWIGINTERN wxBitmap const &wxMenuItem_GetDisabledBitmap(wxMenuItem const *self){ return wxNullBitmap; }
3982SWIGINTERN void wxMenuItem_SetMarginWidth(wxMenuItem *self,int nWidth){}
3983SWIGINTERN int wxMenuItem_GetMarginWidth(wxMenuItem *self){ return 0; }
3984SWIGINTERN int wxMenuItem_GetDefaultMarginWidth(){ return 0; }
3985SWIGINTERN bool wxMenuItem_IsOwnerDrawn(wxMenuItem *self){ return false; }
3986SWIGINTERN void wxMenuItem_SetOwnerDrawn(wxMenuItem *self,bool ownerDrawn=true){}
3987SWIGINTERN void wxMenuItem_ResetOwnerDrawn(wxMenuItem *self){}
d55e5bfc 3988 static const wxString wxPyControlNameStr(wxControlNameStr);
1bd55598 3989SWIGINTERN int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData=NULL){
d55e5bfc
RD
3990 if (clientData) {
3991 wxPyClientData* data = new wxPyClientData(clientData);
3992 return self->Append(item, data);
3993 } else
3994 return self->Append(item);
3995 }
50f151d7 3996SWIGINTERN int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,unsigned int pos,PyObject *clientData=NULL){
d55e5bfc
RD
3997 if (clientData) {
3998 wxPyClientData* data = new wxPyClientData(clientData);
3999 return self->Insert(item, pos, data);
4000 } else
4001 return self->Insert(item, pos);
4002 }
50f151d7 4003SWIGINTERN PyObject *wxItemContainer_GetClientData(wxItemContainer *self,unsigned int n){
d55e5bfc
RD
4004 wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n);
4005 if (data) {
4006 Py_INCREF(data->m_obj);
4007 return data->m_obj;
4008 } else {
4009 Py_INCREF(Py_None);
4010 return Py_None;
4011 }
4012 }
50f151d7 4013SWIGINTERN void wxItemContainer_SetClientData(wxItemContainer *self,unsigned int n,PyObject *clientData){
d55e5bfc
RD
4014 wxPyClientData* data = new wxPyClientData(clientData);
4015 self->SetClientObject(n, data);
4016 }
4017
4018
1bd55598 4019SWIGINTERN wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData=NULL){
bfddbb17
RD
4020 wxPyUserData* data = NULL;
4021 if ( userData ) {
5a446332 4022 wxPyBlock_t blocked = wxPyBeginBlockThreads();
bfddbb17
RD
4023 data = new wxPyUserData(userData);
4024 wxPyEndBlockThreads(blocked);
4025 }
4026 return new wxSizerItem(window, proportion, flag, border, data);
4027 }
1bd55598 4028SWIGINTERN wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData=NULL){
bfddbb17
RD
4029 wxPyUserData* data = NULL;
4030 if ( userData ) {
5a446332 4031 wxPyBlock_t blocked = wxPyBeginBlockThreads();
bfddbb17
RD
4032 data = new wxPyUserData(userData);
4033 wxPyEndBlockThreads(blocked);
4034 }
4035 return new wxSizerItem(width, height, proportion, flag, border, data);
4036 }
1bd55598 4037SWIGINTERN wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData=NULL){
bfddbb17
RD
4038 wxPyUserData* data = NULL;
4039 if ( userData ) {
5a446332 4040 wxPyBlock_t blocked = wxPyBeginBlockThreads();
bfddbb17
RD
4041 data = new wxPyUserData(userData);
4042 wxPyEndBlockThreads(blocked);
4043 }
4044 return new wxSizerItem(sizer, proportion, flag, border, data);
4045 }
d55e5bfc 4046
1bd55598
RD
4047SWIGINTERNINLINE PyObject *
4048SWIG_From_float (float value)
4049{
4050 return SWIG_From_double (value);
d55e5bfc
RD
4051}
4052
1bd55598 4053SWIGINTERN PyObject *wxSizerItem_GetUserData(wxSizerItem *self){
d55e5bfc
RD
4054 wxPyUserData* data = (wxPyUserData*)self->GetUserData();
4055 if (data) {
4056 Py_INCREF(data->m_obj);
4057 return data->m_obj;
4058 } else {
4059 Py_INCREF(Py_None);
4060 return Py_None;
4061 }
4062 }
1bd55598 4063SWIGINTERN void wxSizerItem_SetUserData(wxSizerItem *self,PyObject *userData){
32fe5131
RD
4064 wxPyUserData* data = NULL;
4065 if ( userData ) {
4066 wxPyBlock_t blocked = wxPyBeginBlockThreads();
4067 data = new wxPyUserData(userData);
4068 wxPyEndBlockThreads(blocked);
4069 }
4070 self->SetUserData(data);
4071 }
d55e5bfc
RD
4072
4073// Figure out the type of the sizer item
4074
4075struct wxPySizerItemInfo {
4076 wxPySizerItemInfo()
b411df4a
RD
4077 : window(NULL), sizer(NULL), gotSize(false),
4078 size(wxDefaultSize), gotPos(false), pos(-1)
d55e5bfc 4079 {}
7fbf8399 4080
d55e5bfc
RD
4081 wxWindow* window;
4082 wxSizer* sizer;
4083 bool gotSize;
4084 wxSize size;
4085 bool gotPos;
4086 int pos;
4087};
7fbf8399 4088
d55e5bfc
RD
4089static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) {
4090
4091 wxPySizerItemInfo info;
4092 wxSize size;
4093 wxSize* sizePtr = &size;
4094
4095 // Find out what the type of the item is
4096 // try wxWindow
4097 if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) {
4098 PyErr_Clear();
4099 info.window = NULL;
7fbf8399 4100
d55e5bfc
RD
4101 // try wxSizer
4102 if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) {
4103 PyErr_Clear();
4104 info.sizer = NULL;
7fbf8399 4105
d55e5bfc
RD
4106 // try wxSize or (w,h)
4107 if ( checkSize && wxSize_helper(item, &sizePtr)) {
4108 info.size = *sizePtr;
b411df4a 4109 info.gotSize = true;
d55e5bfc
RD
4110 }
4111
4112 // or a single int
4113 if (checkIdx && PyInt_Check(item)) {
4114 info.pos = PyInt_AsLong(item);
b411df4a 4115 info.gotPos = true;
d55e5bfc
RD
4116 }
4117 }
4118 }
4119
4120 if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) {
4121 // no expected type, figure out what kind of error message to generate
4122 if ( !checkSize && !checkIdx )
943e8dfd 4123 PyErr_SetString(PyExc_TypeError, "wx.Window or wx.Sizer expected for item");
d55e5bfc 4124 else if ( checkSize && !checkIdx )
943e8dfd 4125 PyErr_SetString(PyExc_TypeError, "wx.Window, wx.Sizer, wx.Size, or (w,h) expected for item");
d55e5bfc 4126 else if ( !checkSize && checkIdx)
943e8dfd 4127 PyErr_SetString(PyExc_TypeError, "wx.Window, wx.Sizer or int (position) expected for item");
d55e5bfc
RD
4128 else
4129 // can this one happen?
943e8dfd 4130 PyErr_SetString(PyExc_TypeError, "wx.Window, wx.Sizer, wx.Size, or (w,h) or int (position) expected for item");
d55e5bfc
RD
4131 }
4132
4133 return info;
4134}
4135
1bd55598 4136SWIGINTERN void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){
b0f7404b
RD
4137 if (!self->GetClientObject())
4138 self->SetClientObject(new wxPyOORClientData(_self));
d55e5bfc 4139 }
1bd55598 4140SWIGINTERN wxSizerItem *wxSizer_Add(wxSizer *self,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){
7fbf8399 4141
d55e5bfc 4142 wxPyUserData* data = NULL;
5a446332 4143 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4144 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
d55e5bfc
RD
4145 if ( userData && (info.window || info.sizer || info.gotSize) )
4146 data = new wxPyUserData(userData);
7e08d4ef
RD
4147 if ( info.sizer )
4148 PyObject_SetAttrString(item,"thisown",Py_False);
d55e5bfc 4149 wxPyEndBlockThreads(blocked);
7fbf8399 4150
d55e5bfc
RD
4151 // Now call the real Add method if a valid item type was found
4152 if ( info.window )
070c48b4 4153 return self->Add(info.window, proportion, flag, border, data);
d55e5bfc 4154 else if ( info.sizer )
070c48b4 4155 return self->Add(info.sizer, proportion, flag, border, data);
d55e5bfc 4156 else if (info.gotSize)
070c48b4
RD
4157 return self->Add(info.size.GetWidth(), info.size.GetHeight(),
4158 proportion, flag, border, data);
4159 else
4160 return NULL;
d55e5bfc 4161 }
1bd55598 4162SWIGINTERN wxSizerItem *wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){
d55e5bfc
RD
4163
4164 wxPyUserData* data = NULL;
5a446332 4165 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4166 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
d55e5bfc
RD
4167 if ( userData && (info.window || info.sizer || info.gotSize) )
4168 data = new wxPyUserData(userData);
7e08d4ef
RD
4169 if ( info.sizer )
4170 PyObject_SetAttrString(item,"thisown",Py_False);
d55e5bfc 4171 wxPyEndBlockThreads(blocked);
7fbf8399 4172
d55e5bfc
RD
4173 // Now call the real Insert method if a valid item type was found
4174 if ( info.window )
070c48b4 4175 return self->Insert(before, info.window, proportion, flag, border, data);
d55e5bfc 4176 else if ( info.sizer )
070c48b4 4177 return self->Insert(before, info.sizer, proportion, flag, border, data);
d55e5bfc 4178 else if (info.gotSize)
070c48b4
RD
4179 return self->Insert(before, info.size.GetWidth(), info.size.GetHeight(),
4180 proportion, flag, border, data);
4181 else
4182 return NULL;
d55e5bfc 4183 }
1bd55598 4184SWIGINTERN wxSizerItem *wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){
d55e5bfc
RD
4185
4186 wxPyUserData* data = NULL;
5a446332 4187 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4188 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
d55e5bfc
RD
4189 if ( userData && (info.window || info.sizer || info.gotSize) )
4190 data = new wxPyUserData(userData);
7e08d4ef
RD
4191 if ( info.sizer )
4192 PyObject_SetAttrString(item,"thisown",Py_False);
d55e5bfc 4193 wxPyEndBlockThreads(blocked);
7fbf8399 4194
d55e5bfc
RD
4195 // Now call the real Prepend method if a valid item type was found
4196 if ( info.window )
070c48b4 4197 return self->Prepend(info.window, proportion, flag, border, data);
d55e5bfc 4198 else if ( info.sizer )
070c48b4 4199 return self->Prepend(info.sizer, proportion, flag, border, data);
d55e5bfc 4200 else if (info.gotSize)
070c48b4
RD
4201 return self->Prepend(info.size.GetWidth(), info.size.GetHeight(),
4202 proportion, flag, border, data);
4203 else
4204 return NULL;
d55e5bfc 4205 }
1bd55598 4206SWIGINTERN bool wxSizer_Remove(wxSizer *self,PyObject *item){
5a446332 4207 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4208 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
d55e5bfc
RD
4209 wxPyEndBlockThreads(blocked);
4210 if ( info.window )
4211 return self->Remove(info.window);
4212 else if ( info.sizer )
4213 return self->Remove(info.sizer);
4214 else if ( info.gotPos )
4215 return self->Remove(info.pos);
7fbf8399 4216 else
b411df4a 4217 return false;
d55e5bfc 4218 }
1bd55598 4219SWIGINTERN bool wxSizer_Detach(wxSizer *self,PyObject *item){
5a446332 4220 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4221 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
1a6bba1e
RD
4222 wxPyEndBlockThreads(blocked);
4223 if ( info.window )
4224 return self->Detach(info.window);
4225 else if ( info.sizer )
4226 return self->Detach(info.sizer);
4227 else if ( info.gotPos )
4228 return self->Detach(info.pos);
7fbf8399 4229 else
b411df4a 4230 return false;
1a6bba1e 4231 }
1bd55598 4232SWIGINTERN wxSizerItem *wxSizer_GetItem(wxSizer *self,PyObject *item){
5a446332 4233 wxPyBlock_t blocked = wxPyBeginBlockThreads();
070c48b4
RD
4234 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
4235 wxPyEndBlockThreads(blocked);
4236 if ( info.window )
4237 return self->GetItem(info.window);
4238 else if ( info.sizer )
4239 return self->GetItem(info.sizer);
4240 else if ( info.gotPos )
4241 return self->GetItem(info.pos);
4242 else
4243 return NULL;
4244 }
1bd55598 4245SWIGINTERN void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){
5a446332 4246 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4247 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
d55e5bfc
RD
4248 wxPyEndBlockThreads(blocked);
4249 if ( info.window )
4250 self->SetItemMinSize(info.window, size);
4251 else if ( info.sizer )
4252 self->SetItemMinSize(info.sizer, size);
4253 else if ( info.gotPos )
4254 self->SetItemMinSize(info.pos, size);
4255 }
1bd55598 4256SWIGINTERN PyObject *wxSizer_GetChildren(wxSizer *self){
d55e5bfc
RD
4257 wxSizerItemList& list = self->GetChildren();
4258 return wxPy_ConvertList(&list);
4259 }
1bd55598 4260SWIGINTERN bool wxSizer_Show(wxSizer *self,PyObject *item,bool show=true,bool recursive=false){
5a446332 4261 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4262 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
d6c14a4c 4263 wxPyEndBlockThreads(blocked);
d55e5bfc 4264 if ( info.window )
629e65c2 4265 return self->Show(info.window, show, recursive);
d55e5bfc 4266 else if ( info.sizer )
629e65c2 4267 return self->Show(info.sizer, show, recursive);
bfddbb17 4268 else if ( info.gotPos )
629e65c2 4269 return self->Show(info.pos, show);
b411df4a
RD
4270 else
4271 return false;
d55e5bfc 4272 }
1bd55598 4273SWIGINTERN bool wxSizer_IsShown(wxSizer *self,PyObject *item){
5a446332 4274 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4275 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false);
d6c14a4c 4276 wxPyEndBlockThreads(blocked);
7fbf8399 4277 if ( info.window )
d55e5bfc 4278 return self->IsShown(info.window);
7fbf8399 4279 else if ( info.sizer )
d55e5bfc 4280 return self->IsShown(info.sizer);
bfddbb17
RD
4281 else if ( info.gotPos )
4282 return self->IsShown(info.pos);
d55e5bfc 4283 else
b411df4a 4284 return false;
d55e5bfc
RD
4285 }
4286
7fbf8399 4287// See pyclasses.h
d55e5bfc
RD
4288IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes);
4289IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin);
4290IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer);
4291
4292
4293
4294
4295bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj)
4296{
4297 if (source == Py_None) {
4298 **obj = wxGBPosition(-1,-1);
b411df4a 4299 return true;
d55e5bfc
RD
4300 }
4301 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition"));
4302}
4303
4304bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj)
4305{
4306 if (source == Py_None) {
4307 **obj = wxGBSpan(-1,-1);
b411df4a 4308 return true;
d55e5bfc
RD
4309 }
4310 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan"));
4311}
4312
4313
e9d6f3a4
RD
4314SWIGINTERN bool wxGBPosition___eq__(wxGBPosition *self,PyObject *other){
4315 wxGBPosition temp, *obj = &temp;
4316 if ( other == Py_None ) return false;
4317 if ( ! wxGBPosition_helper(other, &obj) ) {
4318 PyErr_Clear();
4319 return false;
4320 }
4321 return self->operator==(*obj);
4322 }
4323SWIGINTERN bool wxGBPosition___ne__(wxGBPosition *self,PyObject *other){
4324 wxGBPosition temp, *obj = &temp;
4325 if ( other == Py_None ) return true;
4326 if ( ! wxGBPosition_helper(other, &obj)) {
4327 PyErr_Clear();
4328 return true;
4329 }
4330 return self->operator!=(*obj);
4331 }
1bd55598 4332SWIGINTERN void wxGBPosition_Set(wxGBPosition *self,int row=0,int col=0){
d55e5bfc
RD
4333 self->SetRow(row);
4334 self->SetCol(col);
4335 }
1bd55598 4336SWIGINTERN PyObject *wxGBPosition_Get(wxGBPosition *self){
5a446332 4337 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
4338 PyObject* tup = PyTuple_New(2);
4339 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
4340 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
4341 wxPyEndBlockThreads(blocked);
4342 return tup;
4343 }
e9d6f3a4
RD
4344SWIGINTERN bool wxGBSpan___eq__(wxGBSpan *self,PyObject *other){
4345 wxGBSpan temp, *obj = &temp;
4346 if ( other == Py_None ) return false;
4347 if ( ! wxGBSpan_helper(other, &obj) ) {
4348 PyErr_Clear();
4349 return false;
4350 }
4351 return self->operator==(*obj);
4352 }
4353SWIGINTERN bool wxGBSpan___ne__(wxGBSpan *self,PyObject *other){
4354 wxGBSpan temp, *obj = &temp;
4355 if ( other == Py_None ) return true;
4356 if ( ! wxGBSpan_helper(other, &obj)) {
4357 PyErr_Clear();
4358 return true;
4359 }
4360 return self->operator!=(*obj);
4361 }
1bd55598 4362SWIGINTERN void wxGBSpan_Set(wxGBSpan *self,int rowspan=1,int colspan=1){
d55e5bfc
RD
4363 self->SetRowspan(rowspan);
4364 self->SetColspan(colspan);
4365 }
1bd55598 4366SWIGINTERN PyObject *wxGBSpan_Get(wxGBSpan *self){
5a446332 4367 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
4368 PyObject* tup = PyTuple_New(2);
4369 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan()));
4370 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan()));
4371 wxPyEndBlockThreads(blocked);
4372 return tup;
4373 }
1bd55598 4374SWIGINTERN wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){
bfddbb17
RD
4375 wxPyUserData* data = NULL;
4376 if ( userData ) {
5a446332 4377 wxPyBlock_t blocked = wxPyBeginBlockThreads();
bfddbb17
RD
4378 data = new wxPyUserData(userData);
4379 wxPyEndBlockThreads(blocked);
4380 }
4381 return new wxGBSizerItem(window, pos, span, flag, border, data);
4382 }
1bd55598 4383SWIGINTERN wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){
bfddbb17
RD
4384 wxPyUserData* data = NULL;
4385 if ( userData ) {
5a446332 4386 wxPyBlock_t blocked = wxPyBeginBlockThreads();
bfddbb17
RD
4387 data = new wxPyUserData(userData);
4388 wxPyEndBlockThreads(blocked);
4389 }
4390 return new wxGBSizerItem(sizer, pos, span, flag, border, data);
4391 }
1bd55598 4392SWIGINTERN wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){
bfddbb17
RD
4393 wxPyUserData* data = NULL;
4394 if ( userData ) {
5a446332 4395 wxPyBlock_t blocked = wxPyBeginBlockThreads();
bfddbb17
RD
4396 data = new wxPyUserData(userData);
4397 wxPyEndBlockThreads(blocked);
4398 }
4399 return new wxGBSizerItem(width, height, pos, span, flag, border, data);
4400 }
1bd55598 4401SWIGINTERN wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){
bfddbb17
RD
4402 int row, col;
4403 self->GetEndPos(row, col);
4404 return wxGBPosition(row, col);
4405 }
1bd55598 4406SWIGINTERN 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
4407
4408 wxPyUserData* data = NULL;
5a446332 4409 wxPyBlock_t blocked = wxPyBeginBlockThreads();
b411df4a 4410 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
d55e5bfc
RD
4411 if ( userData && (info.window || info.sizer || info.gotSize) )
4412 data = new wxPyUserData(userData);
7e08d4ef
RD
4413 if ( info.sizer )
4414 PyObject_SetAttrString(item,"thisown",Py_False);
d55e5bfc
RD
4415 wxPyEndBlockThreads(blocked);
4416
4417 // Now call the real Add method if a valid item type was found
4418 if ( info.window )
070c48b4 4419 return (wxGBSizerItem*)self->Add(info.window, pos, span, flag, border, data);
d55e5bfc 4420 else if ( info.sizer )
070c48b4 4421 return (wxGBSizerItem*)self->Add(info.sizer, pos, span, flag, border, data);
d55e5bfc 4422 else if (info.gotSize)
070c48b4
RD
4423 return (wxGBSizerItem*)self->Add(info.size.GetWidth(), info.size.GetHeight(),
4424 pos, span, flag, border, data);
4425 return NULL;
d55e5bfc
RD
4426 }
4427
4428
4429#ifdef __cplusplus
4430extern "C" {
4431#endif
1bd55598
RD
4432SWIGINTERN int EmptyString_set(PyObject *) {
4433 SWIG_Error(SWIG_AttributeError,"Variable EmptyString is read-only.");
4434 return 1;
d55e5bfc
RD
4435}
4436
4437
1bd55598
RD
4438SWIGINTERN PyObject *EmptyString_get(void) {
4439 PyObject *pyobj = 0;
4440
4441 {
d55e5bfc 4442#if wxUSE_UNICODE
1bd55598 4443 pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
d55e5bfc 4444#else
1bd55598 4445 pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
d55e5bfc 4446#endif
1bd55598
RD
4447 }
4448 return pyobj;
d55e5bfc
RD
4449}
4450
4451
1bd55598
RD
4452SWIGINTERN PyObject *_wrap_Object_GetClassName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4453 PyObject *resultobj = 0;
4454 wxObject *arg1 = (wxObject *) 0 ;
4455 wxString result;
4456 void *argp1 = 0 ;
4457 int res1 = 0 ;
4458 PyObject *swig_obj[1] ;
4459
4460 if (!args) SWIG_fail;
4461 swig_obj[0] = args;
4462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
4463 if (!SWIG_IsOK(res1)) {
4464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Object_GetClassName" "', expected argument " "1"" of type '" "wxObject *""'");
4465 }
4466 arg1 = reinterpret_cast< wxObject * >(argp1);
4467 {
4468 PyThreadState* __tstate = wxPyBeginAllowThreads();
4469 result = wxObject_GetClassName(arg1);
4470 wxPyEndAllowThreads(__tstate);
4471 if (PyErr_Occurred()) SWIG_fail;
4472 }
4473 {
d55e5bfc 4474#if wxUSE_UNICODE
1bd55598 4475 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 4476#else
1bd55598 4477 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 4478#endif
1bd55598
RD
4479 }
4480 return resultobj;
4481fail:
4482 return NULL;
d55e5bfc
RD
4483}
4484
4485
1bd55598
RD
4486SWIGINTERN PyObject *_wrap_Object_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4487 PyObject *resultobj = 0;
4488 wxObject *arg1 = (wxObject *) 0 ;
4489 void *argp1 = 0 ;
4490 int res1 = 0 ;
4491 PyObject *swig_obj[1] ;
4492
4493 if (!args) SWIG_fail;
4494 swig_obj[0] = args;
4495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
4496 if (!SWIG_IsOK(res1)) {
4497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Object_Destroy" "', expected argument " "1"" of type '" "wxObject *""'");
4498 }
4499 arg1 = reinterpret_cast< wxObject * >(argp1);
4500 {
4501 PyThreadState* __tstate = wxPyBeginAllowThreads();
4502 wxObject_Destroy(arg1);
4503 wxPyEndAllowThreads(__tstate);
4504 if (PyErr_Occurred()) SWIG_fail;
4505 }
4506 resultobj = SWIG_Py_Void();
4507 return resultobj;
4508fail:
4509 return NULL;
d55e5bfc
RD
4510}
4511
4512
1bd55598
RD
4513SWIGINTERN PyObject *Object_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4514 PyObject *obj;
4515 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4516 SWIG_TypeNewClientData(SWIGTYPE_p_wxObject, SWIG_NewClientData(obj));
4517 return SWIG_Py_Void();
d55e5bfc
RD
4518}
4519
1bd55598
RD
4520SWIGINTERN PyObject *_wrap_Size_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4521 PyObject *resultobj = 0;
4522 wxSize *arg1 = (wxSize *) 0 ;
4523 int arg2 ;
4524 void *argp1 = 0 ;
4525 int res1 = 0 ;
4526 int val2 ;
4527 int ecode2 = 0 ;
4528 PyObject *swig_obj[2] ;
4529
4530 if (!SWIG_Python_UnpackTuple(args,"Size_width_set",2,2,swig_obj)) SWIG_fail;
4531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4532 if (!SWIG_IsOK(res1)) {
4533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_width_set" "', expected argument " "1"" of type '" "wxSize *""'");
4534 }
4535 arg1 = reinterpret_cast< wxSize * >(argp1);
4536 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
4537 if (!SWIG_IsOK(ecode2)) {
4538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_width_set" "', expected argument " "2"" of type '" "int""'");
4539 }
4540 arg2 = static_cast< int >(val2);
4541 if (arg1) (arg1)->x = arg2;
4542
4543 resultobj = SWIG_Py_Void();
4544 return resultobj;
4545fail:
4546 return NULL;
d55e5bfc
RD
4547}
4548
4549
1bd55598
RD
4550SWIGINTERN PyObject *_wrap_Size_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4551 PyObject *resultobj = 0;
4552 wxSize *arg1 = (wxSize *) 0 ;
4553 int result;
4554 void *argp1 = 0 ;
4555 int res1 = 0 ;
4556 PyObject *swig_obj[1] ;
4557
4558 if (!args) SWIG_fail;
4559 swig_obj[0] = args;
4560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4561 if (!SWIG_IsOK(res1)) {
4562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_width_get" "', expected argument " "1"" of type '" "wxSize *""'");
4563 }
4564 arg1 = reinterpret_cast< wxSize * >(argp1);
4565 result = (int) ((arg1)->x);
4566 resultobj = SWIG_From_int(static_cast< int >(result));
4567 return resultobj;
4568fail:
4569 return NULL;
4570}
4571
4572
4573SWIGINTERN PyObject *_wrap_Size_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4574 PyObject *resultobj = 0;
4575 wxSize *arg1 = (wxSize *) 0 ;
4576 int arg2 ;
4577 void *argp1 = 0 ;
4578 int res1 = 0 ;
4579 int val2 ;
4580 int ecode2 = 0 ;
4581 PyObject *swig_obj[2] ;
4582
4583 if (!SWIG_Python_UnpackTuple(args,"Size_height_set",2,2,swig_obj)) SWIG_fail;
4584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4585 if (!SWIG_IsOK(res1)) {
4586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_height_set" "', expected argument " "1"" of type '" "wxSize *""'");
4587 }
4588 arg1 = reinterpret_cast< wxSize * >(argp1);
4589 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
4590 if (!SWIG_IsOK(ecode2)) {
4591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_height_set" "', expected argument " "2"" of type '" "int""'");
4592 }
4593 arg2 = static_cast< int >(val2);
4594 if (arg1) (arg1)->y = arg2;
4595
4596 resultobj = SWIG_Py_Void();
4597 return resultobj;
4598fail:
4599 return NULL;
d55e5bfc
RD
4600}
4601
4602
1bd55598
RD
4603SWIGINTERN PyObject *_wrap_Size_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4604 PyObject *resultobj = 0;
4605 wxSize *arg1 = (wxSize *) 0 ;
4606 int result;
4607 void *argp1 = 0 ;
4608 int res1 = 0 ;
4609 PyObject *swig_obj[1] ;
4610
4611 if (!args) SWIG_fail;
4612 swig_obj[0] = args;
4613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4614 if (!SWIG_IsOK(res1)) {
4615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_height_get" "', expected argument " "1"" of type '" "wxSize *""'");
4616 }
4617 arg1 = reinterpret_cast< wxSize * >(argp1);
4618 result = (int) ((arg1)->y);
4619 resultobj = SWIG_From_int(static_cast< int >(result));
4620 return resultobj;
4621fail:
4622 return NULL;
4623}
4624
4625
4626SWIGINTERN PyObject *_wrap_new_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4627 PyObject *resultobj = 0;
4628 int arg1 = (int) 0 ;
4629 int arg2 = (int) 0 ;
4630 wxSize *result = 0 ;
4631 int val1 ;
4632 int ecode1 = 0 ;
4633 int val2 ;
4634 int ecode2 = 0 ;
4635 PyObject * obj0 = 0 ;
4636 PyObject * obj1 = 0 ;
4637 char * kwnames[] = {
4638 (char *) "w",(char *) "h", NULL
4639 };
4640
4641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) SWIG_fail;
4642 if (obj0) {
4643 ecode1 = SWIG_AsVal_int(obj0, &val1);
4644 if (!SWIG_IsOK(ecode1)) {
4645 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Size" "', expected argument " "1"" of type '" "int""'");
4646 }
4647 arg1 = static_cast< int >(val1);
4648 }
4649 if (obj1) {
4650 ecode2 = SWIG_AsVal_int(obj1, &val2);
4651 if (!SWIG_IsOK(ecode2)) {
4652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Size" "', expected argument " "2"" of type '" "int""'");
4653 }
4654 arg2 = static_cast< int >(val2);
4655 }
4656 {
1bd55598 4657 result = (wxSize *)new wxSize(arg1,arg2);
1bd55598
RD
4658 if (PyErr_Occurred()) SWIG_fail;
4659 }
4660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSize, SWIG_POINTER_NEW | 0 );
4661 return resultobj;
4662fail:
4663 return NULL;
d55e5bfc
RD
4664}
4665
4666
1bd55598
RD
4667SWIGINTERN PyObject *_wrap_delete_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4668 PyObject *resultobj = 0;
4669 wxSize *arg1 = (wxSize *) 0 ;
4670 void *argp1 = 0 ;
4671 int res1 = 0 ;
4672 PyObject *swig_obj[1] ;
4673
4674 if (!args) SWIG_fail;
4675 swig_obj[0] = args;
4676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, SWIG_POINTER_DISOWN | 0 );
4677 if (!SWIG_IsOK(res1)) {
4678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Size" "', expected argument " "1"" of type '" "wxSize *""'");
4679 }
4680 arg1 = reinterpret_cast< wxSize * >(argp1);
4681 {
1bd55598 4682 delete arg1;
d55e5bfc 4683
1bd55598
RD
4684 if (PyErr_Occurred()) SWIG_fail;
4685 }
4686 resultobj = SWIG_Py_Void();
4687 return resultobj;
4688fail:
4689 return NULL;
4690}
4691
4692
4693SWIGINTERN PyObject *_wrap_Size___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4694 PyObject *resultobj = 0;
4695 wxSize *arg1 = (wxSize *) 0 ;
e9d6f3a4 4696 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4697 bool result;
4698 void *argp1 = 0 ;
4699 int res1 = 0 ;
1bd55598
RD
4700 PyObject * obj0 = 0 ;
4701 PyObject * obj1 = 0 ;
4702 char * kwnames[] = {
e9d6f3a4 4703 (char *) "self",(char *) "other", NULL
1bd55598
RD
4704 };
4705
4706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4708 if (!SWIG_IsOK(res1)) {
4709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size___eq__" "', expected argument " "1"" of type '" "wxSize *""'");
4710 }
4711 arg1 = reinterpret_cast< wxSize * >(argp1);
e9d6f3a4 4712 arg2 = obj1;
1bd55598 4713 {
e9d6f3a4 4714 result = (bool)wxSize___eq__(arg1,arg2);
1bd55598
RD
4715 if (PyErr_Occurred()) SWIG_fail;
4716 }
4717 {
4718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4719 }
4720 return resultobj;
4721fail:
4722 return NULL;
4723}
4724
4725
4726SWIGINTERN PyObject *_wrap_Size___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4727 PyObject *resultobj = 0;
4728 wxSize *arg1 = (wxSize *) 0 ;
e9d6f3a4 4729 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4730 bool result;
4731 void *argp1 = 0 ;
4732 int res1 = 0 ;
1bd55598
RD
4733 PyObject * obj0 = 0 ;
4734 PyObject * obj1 = 0 ;
4735 char * kwnames[] = {
e9d6f3a4 4736 (char *) "self",(char *) "other", NULL
1bd55598
RD
4737 };
4738
4739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4741 if (!SWIG_IsOK(res1)) {
4742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size___ne__" "', expected argument " "1"" of type '" "wxSize *""'");
4743 }
4744 arg1 = reinterpret_cast< wxSize * >(argp1);
e9d6f3a4 4745 arg2 = obj1;
1bd55598 4746 {
e9d6f3a4 4747 result = (bool)wxSize___ne__(arg1,arg2);
1bd55598
RD
4748 if (PyErr_Occurred()) SWIG_fail;
4749 }
4750 {
4751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4752 }
4753 return resultobj;
4754fail:
4755 return NULL;
4756}
4757
4758
4759SWIGINTERN PyObject *_wrap_Size___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4760 PyObject *resultobj = 0;
4761 wxSize *arg1 = (wxSize *) 0 ;
4762 wxSize *arg2 = 0 ;
4763 wxSize result;
4764 void *argp1 = 0 ;
4765 int res1 = 0 ;
4766 wxSize temp2 ;
4767 PyObject * obj0 = 0 ;
4768 PyObject * obj1 = 0 ;
4769 char * kwnames[] = {
4770 (char *) "self",(char *) "sz", NULL
4771 };
4772
4773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) SWIG_fail;
4774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4775 if (!SWIG_IsOK(res1)) {
4776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size___add__" "', expected argument " "1"" of type '" "wxSize *""'");
4777 }
4778 arg1 = reinterpret_cast< wxSize * >(argp1);
4779 {
4780 arg2 = &temp2;
4781 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4782 }
4783 {
1bd55598 4784 result = (arg1)->operator +((wxSize const &)*arg2);
1bd55598
RD
4785 if (PyErr_Occurred()) SWIG_fail;
4786 }
4787 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
4788 return resultobj;
4789fail:
4790 return NULL;
4791}
4792
4793
4794SWIGINTERN PyObject *_wrap_Size___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4795 PyObject *resultobj = 0;
4796 wxSize *arg1 = (wxSize *) 0 ;
4797 wxSize *arg2 = 0 ;
4798 wxSize result;
4799 void *argp1 = 0 ;
4800 int res1 = 0 ;
4801 wxSize temp2 ;
4802 PyObject * obj0 = 0 ;
4803 PyObject * obj1 = 0 ;
4804 char * kwnames[] = {
4805 (char *) "self",(char *) "sz", NULL
4806 };
4807
4808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
4809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4810 if (!SWIG_IsOK(res1)) {
4811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size___sub__" "', expected argument " "1"" of type '" "wxSize *""'");
4812 }
4813 arg1 = reinterpret_cast< wxSize * >(argp1);
4814 {
4815 arg2 = &temp2;
4816 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4817 }
4818 {
1bd55598 4819 result = (arg1)->operator -((wxSize const &)*arg2);
1bd55598
RD
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
4823 return resultobj;
4824fail:
4825 return NULL;
4826}
4827
4828
4829SWIGINTERN PyObject *_wrap_Size_IncTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4830 PyObject *resultobj = 0;
4831 wxSize *arg1 = (wxSize *) 0 ;
4832 wxSize *arg2 = 0 ;
4833 void *argp1 = 0 ;
4834 int res1 = 0 ;
4835 wxSize temp2 ;
4836 PyObject * obj0 = 0 ;
4837 PyObject * obj1 = 0 ;
4838 char * kwnames[] = {
4839 (char *) "self",(char *) "sz", NULL
4840 };
4841
4842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) SWIG_fail;
4843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4844 if (!SWIG_IsOK(res1)) {
4845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_IncTo" "', expected argument " "1"" of type '" "wxSize *""'");
4846 }
4847 arg1 = reinterpret_cast< wxSize * >(argp1);
4848 {
4849 arg2 = &temp2;
4850 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4851 }
4852 {
1bd55598 4853 (arg1)->IncTo((wxSize const &)*arg2);
1bd55598
RD
4854 if (PyErr_Occurred()) SWIG_fail;
4855 }
4856 resultobj = SWIG_Py_Void();
4857 return resultobj;
4858fail:
4859 return NULL;
4860}
4861
4862
4863SWIGINTERN PyObject *_wrap_Size_DecTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4864 PyObject *resultobj = 0;
4865 wxSize *arg1 = (wxSize *) 0 ;
4866 wxSize *arg2 = 0 ;
4867 void *argp1 = 0 ;
4868 int res1 = 0 ;
4869 wxSize temp2 ;
4870 PyObject * obj0 = 0 ;
4871 PyObject * obj1 = 0 ;
4872 char * kwnames[] = {
4873 (char *) "self",(char *) "sz", NULL
4874 };
4875
4876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) SWIG_fail;
4877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4878 if (!SWIG_IsOK(res1)) {
4879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_DecTo" "', expected argument " "1"" of type '" "wxSize *""'");
4880 }
4881 arg1 = reinterpret_cast< wxSize * >(argp1);
4882 {
4883 arg2 = &temp2;
4884 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4885 }
4886 {
1bd55598 4887 (arg1)->DecTo((wxSize const &)*arg2);
1bd55598
RD
4888 if (PyErr_Occurred()) SWIG_fail;
4889 }
4890 resultobj = SWIG_Py_Void();
4891 return resultobj;
4892fail:
4893 return NULL;
4894}
4895
4896
f5263701
RD
4897SWIGINTERN PyObject *_wrap_Size_IncBy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4898 PyObject *resultobj = 0;
4899 wxSize *arg1 = (wxSize *) 0 ;
4900 int arg2 ;
4901 int arg3 ;
4902 void *argp1 = 0 ;
4903 int res1 = 0 ;
4904 int val2 ;
4905 int ecode2 = 0 ;
4906 int val3 ;
4907 int ecode3 = 0 ;
4908 PyObject * obj0 = 0 ;
4909 PyObject * obj1 = 0 ;
4910 PyObject * obj2 = 0 ;
4911 char * kwnames[] = {
4912 (char *) "self",(char *) "dx",(char *) "dy", NULL
4913 };
4914
4915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_IncBy",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4917 if (!SWIG_IsOK(res1)) {
4918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_IncBy" "', expected argument " "1"" of type '" "wxSize *""'");
4919 }
4920 arg1 = reinterpret_cast< wxSize * >(argp1);
4921 ecode2 = SWIG_AsVal_int(obj1, &val2);
4922 if (!SWIG_IsOK(ecode2)) {
4923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_IncBy" "', expected argument " "2"" of type '" "int""'");
4924 }
4925 arg2 = static_cast< int >(val2);
4926 ecode3 = SWIG_AsVal_int(obj2, &val3);
4927 if (!SWIG_IsOK(ecode3)) {
4928 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Size_IncBy" "', expected argument " "3"" of type '" "int""'");
4929 }
4930 arg3 = static_cast< int >(val3);
4931 {
f5263701 4932 (arg1)->IncBy(arg2,arg3);
f5263701
RD
4933 if (PyErr_Occurred()) SWIG_fail;
4934 }
4935 resultobj = SWIG_Py_Void();
4936 return resultobj;
4937fail:
4938 return NULL;
4939}
4940
4941
4942SWIGINTERN PyObject *_wrap_Size_DecBy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4943 PyObject *resultobj = 0;
4944 wxSize *arg1 = (wxSize *) 0 ;
4945 int arg2 ;
4946 int arg3 ;
4947 void *argp1 = 0 ;
4948 int res1 = 0 ;
4949 int val2 ;
4950 int ecode2 = 0 ;
4951 int val3 ;
4952 int ecode3 = 0 ;
4953 PyObject * obj0 = 0 ;
4954 PyObject * obj1 = 0 ;
4955 PyObject * obj2 = 0 ;
4956 char * kwnames[] = {
4957 (char *) "self",(char *) "dx",(char *) "dy", NULL
4958 };
4959
4960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_DecBy",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
4962 if (!SWIG_IsOK(res1)) {
4963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_DecBy" "', expected argument " "1"" of type '" "wxSize *""'");
4964 }
4965 arg1 = reinterpret_cast< wxSize * >(argp1);
4966 ecode2 = SWIG_AsVal_int(obj1, &val2);
4967 if (!SWIG_IsOK(ecode2)) {
4968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_DecBy" "', expected argument " "2"" of type '" "int""'");
4969 }
4970 arg2 = static_cast< int >(val2);
4971 ecode3 = SWIG_AsVal_int(obj2, &val3);
4972 if (!SWIG_IsOK(ecode3)) {
4973 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Size_DecBy" "', expected argument " "3"" of type '" "int""'");
4974 }
4975 arg3 = static_cast< int >(val3);
4976 {
f5263701 4977 (arg1)->DecBy(arg2,arg3);
f5263701
RD
4978 if (PyErr_Occurred()) SWIG_fail;
4979 }
4980 resultobj = SWIG_Py_Void();
4981 return resultobj;
4982fail:
4983 return NULL;
4984}
4985
4986
1eeb270e
RD
4987SWIGINTERN PyObject *_wrap_Size_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4988 PyObject *resultobj = 0;
4989 wxSize *arg1 = (wxSize *) 0 ;
4990 float arg2 ;
4991 float arg3 ;
4992 void *argp1 = 0 ;
4993 int res1 = 0 ;
4994 float val2 ;
4995 int ecode2 = 0 ;
4996 float val3 ;
4997 int ecode3 = 0 ;
4998 PyObject * obj0 = 0 ;
4999 PyObject * obj1 = 0 ;
5000 PyObject * obj2 = 0 ;
5001 char * kwnames[] = {
5002 (char *) "self",(char *) "xscale",(char *) "yscale", NULL
5003 };
5004
5005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5007 if (!SWIG_IsOK(res1)) {
5008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_Scale" "', expected argument " "1"" of type '" "wxSize *""'");
5009 }
5010 arg1 = reinterpret_cast< wxSize * >(argp1);
5011 ecode2 = SWIG_AsVal_float(obj1, &val2);
5012 if (!SWIG_IsOK(ecode2)) {
5013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_Scale" "', expected argument " "2"" of type '" "float""'");
5014 }
5015 arg2 = static_cast< float >(val2);
5016 ecode3 = SWIG_AsVal_float(obj2, &val3);
5017 if (!SWIG_IsOK(ecode3)) {
5018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Size_Scale" "', expected argument " "3"" of type '" "float""'");
5019 }
5020 arg3 = static_cast< float >(val3);
5021 {
1eeb270e 5022 (arg1)->Scale(arg2,arg3);
1eeb270e
RD
5023 if (PyErr_Occurred()) SWIG_fail;
5024 }
5025 resultobj = SWIG_Py_Void();
5026 return resultobj;
5027fail:
5028 return NULL;
5029}
5030
5031
1bd55598
RD
5032SWIGINTERN PyObject *_wrap_Size_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5033 PyObject *resultobj = 0;
5034 wxSize *arg1 = (wxSize *) 0 ;
5035 int arg2 ;
5036 int arg3 ;
5037 void *argp1 = 0 ;
5038 int res1 = 0 ;
5039 int val2 ;
5040 int ecode2 = 0 ;
5041 int val3 ;
5042 int ecode3 = 0 ;
5043 PyObject * obj0 = 0 ;
5044 PyObject * obj1 = 0 ;
5045 PyObject * obj2 = 0 ;
5046 char * kwnames[] = {
5047 (char *) "self",(char *) "w",(char *) "h", NULL
5048 };
5049
5050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5052 if (!SWIG_IsOK(res1)) {
5053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_Set" "', expected argument " "1"" of type '" "wxSize *""'");
5054 }
5055 arg1 = reinterpret_cast< wxSize * >(argp1);
5056 ecode2 = SWIG_AsVal_int(obj1, &val2);
5057 if (!SWIG_IsOK(ecode2)) {
5058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_Set" "', expected argument " "2"" of type '" "int""'");
5059 }
5060 arg2 = static_cast< int >(val2);
5061 ecode3 = SWIG_AsVal_int(obj2, &val3);
5062 if (!SWIG_IsOK(ecode3)) {
5063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Size_Set" "', expected argument " "3"" of type '" "int""'");
5064 }
5065 arg3 = static_cast< int >(val3);
5066 {
1bd55598 5067 (arg1)->Set(arg2,arg3);
1bd55598
RD
5068 if (PyErr_Occurred()) SWIG_fail;
5069 }
5070 resultobj = SWIG_Py_Void();
5071 return resultobj;
5072fail:
5073 return NULL;
5074}
5075
5076
5077SWIGINTERN PyObject *_wrap_Size_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5078 PyObject *resultobj = 0;
5079 wxSize *arg1 = (wxSize *) 0 ;
5080 int arg2 ;
5081 void *argp1 = 0 ;
5082 int res1 = 0 ;
5083 int val2 ;
5084 int ecode2 = 0 ;
5085 PyObject * obj0 = 0 ;
5086 PyObject * obj1 = 0 ;
5087 char * kwnames[] = {
5088 (char *) "self",(char *) "w", NULL
5089 };
5090
5091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5093 if (!SWIG_IsOK(res1)) {
5094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_SetWidth" "', expected argument " "1"" of type '" "wxSize *""'");
5095 }
5096 arg1 = reinterpret_cast< wxSize * >(argp1);
5097 ecode2 = SWIG_AsVal_int(obj1, &val2);
5098 if (!SWIG_IsOK(ecode2)) {
5099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_SetWidth" "', expected argument " "2"" of type '" "int""'");
5100 }
5101 arg2 = static_cast< int >(val2);
5102 {
1bd55598 5103 (arg1)->SetWidth(arg2);
1bd55598
RD
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 resultobj = SWIG_Py_Void();
5107 return resultobj;
5108fail:
5109 return NULL;
5110}
5111
5112
5113SWIGINTERN PyObject *_wrap_Size_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5114 PyObject *resultobj = 0;
5115 wxSize *arg1 = (wxSize *) 0 ;
5116 int arg2 ;
5117 void *argp1 = 0 ;
5118 int res1 = 0 ;
5119 int val2 ;
5120 int ecode2 = 0 ;
5121 PyObject * obj0 = 0 ;
5122 PyObject * obj1 = 0 ;
5123 char * kwnames[] = {
5124 (char *) "self",(char *) "h", NULL
5125 };
5126
5127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
5128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5129 if (!SWIG_IsOK(res1)) {
5130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_SetHeight" "', expected argument " "1"" of type '" "wxSize *""'");
5131 }
5132 arg1 = reinterpret_cast< wxSize * >(argp1);
5133 ecode2 = SWIG_AsVal_int(obj1, &val2);
5134 if (!SWIG_IsOK(ecode2)) {
5135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_SetHeight" "', expected argument " "2"" of type '" "int""'");
5136 }
5137 arg2 = static_cast< int >(val2);
5138 {
1bd55598 5139 (arg1)->SetHeight(arg2);
1bd55598
RD
5140 if (PyErr_Occurred()) SWIG_fail;
5141 }
5142 resultobj = SWIG_Py_Void();
5143 return resultobj;
5144fail:
5145 return NULL;
d55e5bfc
RD
5146}
5147
5148
1bd55598
RD
5149SWIGINTERN PyObject *_wrap_Size_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5150 PyObject *resultobj = 0;
5151 wxSize *arg1 = (wxSize *) 0 ;
5152 int result;
5153 void *argp1 = 0 ;
5154 int res1 = 0 ;
5155 PyObject *swig_obj[1] ;
5156
5157 if (!args) SWIG_fail;
5158 swig_obj[0] = args;
5159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5160 if (!SWIG_IsOK(res1)) {
5161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_GetWidth" "', expected argument " "1"" of type '" "wxSize const *""'");
5162 }
5163 arg1 = reinterpret_cast< wxSize * >(argp1);
5164 {
1bd55598 5165 result = (int)((wxSize const *)arg1)->GetWidth();
1bd55598
RD
5166 if (PyErr_Occurred()) SWIG_fail;
5167 }
5168 resultobj = SWIG_From_int(static_cast< int >(result));
5169 return resultobj;
5170fail:
5171 return NULL;
d55e5bfc
RD
5172}
5173
5174
1bd55598
RD
5175SWIGINTERN PyObject *_wrap_Size_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5176 PyObject *resultobj = 0;
5177 wxSize *arg1 = (wxSize *) 0 ;
5178 int result;
5179 void *argp1 = 0 ;
5180 int res1 = 0 ;
5181 PyObject *swig_obj[1] ;
5182
5183 if (!args) SWIG_fail;
5184 swig_obj[0] = args;
5185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5186 if (!SWIG_IsOK(res1)) {
5187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_GetHeight" "', expected argument " "1"" of type '" "wxSize const *""'");
5188 }
5189 arg1 = reinterpret_cast< wxSize * >(argp1);
5190 {
1bd55598 5191 result = (int)((wxSize const *)arg1)->GetHeight();
1bd55598
RD
5192 if (PyErr_Occurred()) SWIG_fail;
5193 }
5194 resultobj = SWIG_From_int(static_cast< int >(result));
5195 return resultobj;
5196fail:
5197 return NULL;
d55e5bfc
RD
5198}
5199
5200
1bd55598
RD
5201SWIGINTERN PyObject *_wrap_Size_IsFullySpecified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5202 PyObject *resultobj = 0;
5203 wxSize *arg1 = (wxSize *) 0 ;
5204 bool result;
5205 void *argp1 = 0 ;
5206 int res1 = 0 ;
5207 PyObject *swig_obj[1] ;
5208
5209 if (!args) SWIG_fail;
5210 swig_obj[0] = args;
5211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5212 if (!SWIG_IsOK(res1)) {
5213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_IsFullySpecified" "', expected argument " "1"" of type '" "wxSize const *""'");
5214 }
5215 arg1 = reinterpret_cast< wxSize * >(argp1);
5216 {
1bd55598 5217 result = (bool)((wxSize const *)arg1)->IsFullySpecified();
1bd55598
RD
5218 if (PyErr_Occurred()) SWIG_fail;
5219 }
5220 {
5221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5222 }
5223 return resultobj;
5224fail:
5225 return NULL;
5226}
5227
5228
5229SWIGINTERN PyObject *_wrap_Size_SetDefaults(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5230 PyObject *resultobj = 0;
5231 wxSize *arg1 = (wxSize *) 0 ;
5232 wxSize *arg2 = 0 ;
5233 void *argp1 = 0 ;
5234 int res1 = 0 ;
5235 wxSize temp2 ;
5236 PyObject * obj0 = 0 ;
5237 PyObject * obj1 = 0 ;
5238 char * kwnames[] = {
5239 (char *) "self",(char *) "size", NULL
5240 };
5241
5242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) SWIG_fail;
5243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5244 if (!SWIG_IsOK(res1)) {
5245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_SetDefaults" "', expected argument " "1"" of type '" "wxSize *""'");
5246 }
5247 arg1 = reinterpret_cast< wxSize * >(argp1);
5248 {
5249 arg2 = &temp2;
5250 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5251 }
5252 {
1bd55598 5253 (arg1)->SetDefaults((wxSize const &)*arg2);
1bd55598
RD
5254 if (PyErr_Occurred()) SWIG_fail;
5255 }
5256 resultobj = SWIG_Py_Void();
5257 return resultobj;
5258fail:
5259 return NULL;
d55e5bfc
RD
5260}
5261
5262
1bd55598
RD
5263SWIGINTERN PyObject *_wrap_Size_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5264 PyObject *resultobj = 0;
5265 wxSize *arg1 = (wxSize *) 0 ;
5266 PyObject *result = 0 ;
5267 void *argp1 = 0 ;
5268 int res1 = 0 ;
5269 PyObject *swig_obj[1] ;
5270
5271 if (!args) SWIG_fail;
5272 swig_obj[0] = args;
5273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
5274 if (!SWIG_IsOK(res1)) {
5275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_Get" "', expected argument " "1"" of type '" "wxSize *""'");
5276 }
5277 arg1 = reinterpret_cast< wxSize * >(argp1);
5278 {
1bd55598 5279 result = (PyObject *)wxSize_Get(arg1);
1bd55598
RD
5280 if (PyErr_Occurred()) SWIG_fail;
5281 }
5282 resultobj = result;
5283 return resultobj;
5284fail:
5285 return NULL;
d55e5bfc
RD
5286}
5287
5288
1bd55598
RD
5289SWIGINTERN PyObject *Size_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5290 PyObject *obj;
5291 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5292 SWIG_TypeNewClientData(SWIGTYPE_p_wxSize, SWIG_NewClientData(obj));
5293 return SWIG_Py_Void();
d55e5bfc
RD
5294}
5295
1bd55598
RD
5296SWIGINTERN PyObject *Size_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5297 return SWIG_Python_InitShadowInstance(args);
5298}
d55e5bfc 5299
1bd55598
RD
5300SWIGINTERN PyObject *_wrap_RealPoint_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5301 PyObject *resultobj = 0;
5302 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5303 double arg2 ;
5304 void *argp1 = 0 ;
5305 int res1 = 0 ;
5306 double val2 ;
5307 int ecode2 = 0 ;
5308 PyObject *swig_obj[2] ;
5309
5310 if (!SWIG_Python_UnpackTuple(args,"RealPoint_x_set",2,2,swig_obj)) SWIG_fail;
5311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5312 if (!SWIG_IsOK(res1)) {
5313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_x_set" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5314 }
5315 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5316 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
5317 if (!SWIG_IsOK(ecode2)) {
5318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RealPoint_x_set" "', expected argument " "2"" of type '" "double""'");
5319 }
5320 arg2 = static_cast< double >(val2);
5321 if (arg1) (arg1)->x = arg2;
5322
5323 resultobj = SWIG_Py_Void();
5324 return resultobj;
5325fail:
5326 return NULL;
d55e5bfc
RD
5327}
5328
5329
1bd55598
RD
5330SWIGINTERN PyObject *_wrap_RealPoint_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5331 PyObject *resultobj = 0;
5332 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5333 double result;
5334 void *argp1 = 0 ;
5335 int res1 = 0 ;
5336 PyObject *swig_obj[1] ;
5337
5338 if (!args) SWIG_fail;
5339 swig_obj[0] = args;
5340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5341 if (!SWIG_IsOK(res1)) {
5342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_x_get" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5343 }
5344 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5345 result = (double) ((arg1)->x);
5346 resultobj = SWIG_From_double(static_cast< double >(result));
5347 return resultobj;
5348fail:
5349 return NULL;
5350}
5351
5352
5353SWIGINTERN PyObject *_wrap_RealPoint_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5354 PyObject *resultobj = 0;
5355 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5356 double arg2 ;
5357 void *argp1 = 0 ;
5358 int res1 = 0 ;
5359 double val2 ;
5360 int ecode2 = 0 ;
5361 PyObject *swig_obj[2] ;
5362
5363 if (!SWIG_Python_UnpackTuple(args,"RealPoint_y_set",2,2,swig_obj)) SWIG_fail;
5364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5365 if (!SWIG_IsOK(res1)) {
5366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_y_set" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5367 }
5368 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5369 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
5370 if (!SWIG_IsOK(ecode2)) {
5371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RealPoint_y_set" "', expected argument " "2"" of type '" "double""'");
5372 }
5373 arg2 = static_cast< double >(val2);
5374 if (arg1) (arg1)->y = arg2;
5375
5376 resultobj = SWIG_Py_Void();
5377 return resultobj;
5378fail:
5379 return NULL;
d55e5bfc
RD
5380}
5381
5382
1bd55598
RD
5383SWIGINTERN PyObject *_wrap_RealPoint_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5384 PyObject *resultobj = 0;
5385 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5386 double result;
5387 void *argp1 = 0 ;
5388 int res1 = 0 ;
5389 PyObject *swig_obj[1] ;
5390
5391 if (!args) SWIG_fail;
5392 swig_obj[0] = args;
5393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5394 if (!SWIG_IsOK(res1)) {
5395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_y_get" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5396 }
5397 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5398 result = (double) ((arg1)->y);
5399 resultobj = SWIG_From_double(static_cast< double >(result));
5400 return resultobj;
5401fail:
5402 return NULL;
5403}
5404
5405
5406SWIGINTERN PyObject *_wrap_new_RealPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5407 PyObject *resultobj = 0;
5408 double arg1 = (double) 0.0 ;
5409 double arg2 = (double) 0.0 ;
5410 wxRealPoint *result = 0 ;
5411 double val1 ;
5412 int ecode1 = 0 ;
5413 double val2 ;
5414 int ecode2 = 0 ;
5415 PyObject * obj0 = 0 ;
5416 PyObject * obj1 = 0 ;
5417 char * kwnames[] = {
5418 (char *) "x",(char *) "y", NULL
5419 };
5420
5421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5422 if (obj0) {
5423 ecode1 = SWIG_AsVal_double(obj0, &val1);
5424 if (!SWIG_IsOK(ecode1)) {
5425 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RealPoint" "', expected argument " "1"" of type '" "double""'");
5426 }
5427 arg1 = static_cast< double >(val1);
5428 }
5429 if (obj1) {
5430 ecode2 = SWIG_AsVal_double(obj1, &val2);
5431 if (!SWIG_IsOK(ecode2)) {
5432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RealPoint" "', expected argument " "2"" of type '" "double""'");
5433 }
5434 arg2 = static_cast< double >(val2);
5435 }
5436 {
1bd55598 5437 result = (wxRealPoint *)new wxRealPoint(arg1,arg2);
1bd55598
RD
5438 if (PyErr_Occurred()) SWIG_fail;
5439 }
5440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRealPoint, SWIG_POINTER_NEW | 0 );
5441 return resultobj;
5442fail:
5443 return NULL;
d55e5bfc
RD
5444}
5445
5446
1bd55598
RD
5447SWIGINTERN PyObject *_wrap_delete_RealPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5448 PyObject *resultobj = 0;
5449 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5450 void *argp1 = 0 ;
5451 int res1 = 0 ;
5452 PyObject *swig_obj[1] ;
5453
5454 if (!args) SWIG_fail;
5455 swig_obj[0] = args;
5456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, SWIG_POINTER_DISOWN | 0 );
5457 if (!SWIG_IsOK(res1)) {
5458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RealPoint" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5459 }
5460 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5461 {
1bd55598 5462 delete arg1;
d55e5bfc 5463
1bd55598
RD
5464 if (PyErr_Occurred()) SWIG_fail;
5465 }
5466 resultobj = SWIG_Py_Void();
5467 return resultobj;
5468fail:
5469 return NULL;
5470}
5471
5472
5473SWIGINTERN PyObject *_wrap_RealPoint___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5474 PyObject *resultobj = 0;
5475 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
e9d6f3a4 5476 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
5477 bool result;
5478 void *argp1 = 0 ;
5479 int res1 = 0 ;
1bd55598
RD
5480 PyObject * obj0 = 0 ;
5481 PyObject * obj1 = 0 ;
5482 char * kwnames[] = {
e9d6f3a4 5483 (char *) "self",(char *) "other", NULL
1bd55598
RD
5484 };
5485
5486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5488 if (!SWIG_IsOK(res1)) {
5489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint___eq__" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5490 }
5491 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
e9d6f3a4 5492 arg2 = obj1;
1bd55598 5493 {
e9d6f3a4 5494 result = (bool)wxRealPoint___eq__(arg1,arg2);
1bd55598
RD
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 {
5498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5499 }
5500 return resultobj;
5501fail:
5502 return NULL;
5503}
5504
5505
5506SWIGINTERN PyObject *_wrap_RealPoint___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5507 PyObject *resultobj = 0;
5508 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
e9d6f3a4 5509 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
5510 bool result;
5511 void *argp1 = 0 ;
5512 int res1 = 0 ;
1bd55598
RD
5513 PyObject * obj0 = 0 ;
5514 PyObject * obj1 = 0 ;
5515 char * kwnames[] = {
e9d6f3a4 5516 (char *) "self",(char *) "other", NULL
1bd55598
RD
5517 };
5518
5519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5521 if (!SWIG_IsOK(res1)) {
5522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint___ne__" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5523 }
5524 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
e9d6f3a4 5525 arg2 = obj1;
1bd55598 5526 {
e9d6f3a4 5527 result = (bool)wxRealPoint___ne__(arg1,arg2);
1bd55598
RD
5528 if (PyErr_Occurred()) SWIG_fail;
5529 }
5530 {
5531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5532 }
5533 return resultobj;
5534fail:
5535 return NULL;
5536}
5537
5538
5539SWIGINTERN PyObject *_wrap_RealPoint___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5540 PyObject *resultobj = 0;
5541 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5542 wxRealPoint *arg2 = 0 ;
5543 wxRealPoint result;
5544 void *argp1 = 0 ;
5545 int res1 = 0 ;
5546 wxRealPoint temp2 ;
5547 PyObject * obj0 = 0 ;
5548 PyObject * obj1 = 0 ;
5549 char * kwnames[] = {
5550 (char *) "self",(char *) "pt", NULL
5551 };
5552
5553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) SWIG_fail;
5554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5555 if (!SWIG_IsOK(res1)) {
5556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint___add__" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5557 }
5558 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5559 {
5560 arg2 = &temp2;
5561 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
5562 }
5563 {
1bd55598 5564 result = (arg1)->operator +((wxRealPoint const &)*arg2);
1bd55598
RD
5565 if (PyErr_Occurred()) SWIG_fail;
5566 }
5567 resultobj = SWIG_NewPointerObj((new wxRealPoint(static_cast< const wxRealPoint& >(result))), SWIGTYPE_p_wxRealPoint, SWIG_POINTER_OWN | 0 );
5568 return resultobj;
5569fail:
5570 return NULL;
5571}
5572
5573
5574SWIGINTERN PyObject *_wrap_RealPoint___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5575 PyObject *resultobj = 0;
5576 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5577 wxRealPoint *arg2 = 0 ;
5578 wxRealPoint result;
5579 void *argp1 = 0 ;
5580 int res1 = 0 ;
5581 wxRealPoint temp2 ;
5582 PyObject * obj0 = 0 ;
5583 PyObject * obj1 = 0 ;
5584 char * kwnames[] = {
5585 (char *) "self",(char *) "pt", NULL
5586 };
5587
5588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
5589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5590 if (!SWIG_IsOK(res1)) {
5591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint___sub__" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5592 }
5593 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5594 {
5595 arg2 = &temp2;
5596 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
5597 }
5598 {
1bd55598 5599 result = (arg1)->operator -((wxRealPoint const &)*arg2);
1bd55598
RD
5600 if (PyErr_Occurred()) SWIG_fail;
5601 }
5602 resultobj = SWIG_NewPointerObj((new wxRealPoint(static_cast< const wxRealPoint& >(result))), SWIGTYPE_p_wxRealPoint, SWIG_POINTER_OWN | 0 );
5603 return resultobj;
5604fail:
5605 return NULL;
5606}
5607
5608
5609SWIGINTERN PyObject *_wrap_RealPoint_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5610 PyObject *resultobj = 0;
5611 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5612 double arg2 ;
5613 double arg3 ;
5614 void *argp1 = 0 ;
5615 int res1 = 0 ;
5616 double val2 ;
5617 int ecode2 = 0 ;
5618 double val3 ;
5619 int ecode3 = 0 ;
5620 PyObject * obj0 = 0 ;
5621 PyObject * obj1 = 0 ;
5622 PyObject * obj2 = 0 ;
5623 char * kwnames[] = {
5624 (char *) "self",(char *) "x",(char *) "y", NULL
5625 };
5626
5627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5629 if (!SWIG_IsOK(res1)) {
5630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_Set" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5631 }
5632 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5633 ecode2 = SWIG_AsVal_double(obj1, &val2);
5634 if (!SWIG_IsOK(ecode2)) {
5635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RealPoint_Set" "', expected argument " "2"" of type '" "double""'");
5636 }
5637 arg2 = static_cast< double >(val2);
5638 ecode3 = SWIG_AsVal_double(obj2, &val3);
5639 if (!SWIG_IsOK(ecode3)) {
5640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RealPoint_Set" "', expected argument " "3"" of type '" "double""'");
5641 }
5642 arg3 = static_cast< double >(val3);
5643 {
1bd55598 5644 wxRealPoint_Set(arg1,arg2,arg3);
1bd55598
RD
5645 if (PyErr_Occurred()) SWIG_fail;
5646 }
5647 resultobj = SWIG_Py_Void();
5648 return resultobj;
5649fail:
5650 return NULL;
d55e5bfc
RD
5651}
5652
5653
1bd55598
RD
5654SWIGINTERN PyObject *_wrap_RealPoint_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5655 PyObject *resultobj = 0;
5656 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
5657 PyObject *result = 0 ;
5658 void *argp1 = 0 ;
5659 int res1 = 0 ;
5660 PyObject *swig_obj[1] ;
5661
5662 if (!args) SWIG_fail;
5663 swig_obj[0] = args;
5664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
5665 if (!SWIG_IsOK(res1)) {
5666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_Get" "', expected argument " "1"" of type '" "wxRealPoint *""'");
5667 }
5668 arg1 = reinterpret_cast< wxRealPoint * >(argp1);
5669 {
1bd55598 5670 result = (PyObject *)wxRealPoint_Get(arg1);
1bd55598
RD
5671 if (PyErr_Occurred()) SWIG_fail;
5672 }
5673 resultobj = result;
5674 return resultobj;
5675fail:
5676 return NULL;
d55e5bfc
RD
5677}
5678
5679
1bd55598
RD
5680SWIGINTERN PyObject *RealPoint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5681 PyObject *obj;
5682 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5683 SWIG_TypeNewClientData(SWIGTYPE_p_wxRealPoint, SWIG_NewClientData(obj));
5684 return SWIG_Py_Void();
d55e5bfc
RD
5685}
5686
1bd55598
RD
5687SWIGINTERN PyObject *RealPoint_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5688 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
5689}
5690
1bd55598
RD
5691SWIGINTERN PyObject *_wrap_Point_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5692 PyObject *resultobj = 0;
5693 wxPoint *arg1 = (wxPoint *) 0 ;
5694 int arg2 ;
5695 void *argp1 = 0 ;
5696 int res1 = 0 ;
5697 int val2 ;
5698 int ecode2 = 0 ;
5699 PyObject *swig_obj[2] ;
5700
5701 if (!SWIG_Python_UnpackTuple(args,"Point_x_set",2,2,swig_obj)) SWIG_fail;
5702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
5703 if (!SWIG_IsOK(res1)) {
5704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_x_set" "', expected argument " "1"" of type '" "wxPoint *""'");
5705 }
5706 arg1 = reinterpret_cast< wxPoint * >(argp1);
5707 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
5708 if (!SWIG_IsOK(ecode2)) {
5709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point_x_set" "', expected argument " "2"" of type '" "int""'");
5710 }
5711 arg2 = static_cast< int >(val2);
5712 if (arg1) (arg1)->x = arg2;
5713
5714 resultobj = SWIG_Py_Void();
5715 return resultobj;
5716fail:
5717 return NULL;
d55e5bfc
RD
5718}
5719
5720
1bd55598
RD
5721SWIGINTERN PyObject *_wrap_Point_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5722 PyObject *resultobj = 0;
5723 wxPoint *arg1 = (wxPoint *) 0 ;
5724 int result;
5725 void *argp1 = 0 ;
5726 int res1 = 0 ;
5727 PyObject *swig_obj[1] ;
5728
5729 if (!args) SWIG_fail;
5730 swig_obj[0] = args;
5731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
5732 if (!SWIG_IsOK(res1)) {
5733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_x_get" "', expected argument " "1"" of type '" "wxPoint *""'");
5734 }
5735 arg1 = reinterpret_cast< wxPoint * >(argp1);
5736 result = (int) ((arg1)->x);
5737 resultobj = SWIG_From_int(static_cast< int >(result));
5738 return resultobj;
5739fail:
5740 return NULL;
5741}
5742
5743
5744SWIGINTERN PyObject *_wrap_Point_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5745 PyObject *resultobj = 0;
5746 wxPoint *arg1 = (wxPoint *) 0 ;
5747 int arg2 ;
5748 void *argp1 = 0 ;
5749 int res1 = 0 ;
5750 int val2 ;
5751 int ecode2 = 0 ;
5752 PyObject *swig_obj[2] ;
5753
5754 if (!SWIG_Python_UnpackTuple(args,"Point_y_set",2,2,swig_obj)) SWIG_fail;
5755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
5756 if (!SWIG_IsOK(res1)) {
5757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_y_set" "', expected argument " "1"" of type '" "wxPoint *""'");
5758 }
5759 arg1 = reinterpret_cast< wxPoint * >(argp1);
5760 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
5761 if (!SWIG_IsOK(ecode2)) {
5762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point_y_set" "', expected argument " "2"" of type '" "int""'");
5763 }
5764 arg2 = static_cast< int >(val2);
5765 if (arg1) (arg1)->y = arg2;
5766
5767 resultobj = SWIG_Py_Void();
5768 return resultobj;
5769fail:
5770 return NULL;
d55e5bfc
RD
5771}
5772
5773
1bd55598
RD
5774SWIGINTERN PyObject *_wrap_Point_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5775 PyObject *resultobj = 0;
5776 wxPoint *arg1 = (wxPoint *) 0 ;
5777 int result;
5778 void *argp1 = 0 ;
5779 int res1 = 0 ;
5780 PyObject *swig_obj[1] ;
5781
5782 if (!args) SWIG_fail;
5783 swig_obj[0] = args;
5784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
5785 if (!SWIG_IsOK(res1)) {
5786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_y_get" "', expected argument " "1"" of type '" "wxPoint *""'");
5787 }
5788 arg1 = reinterpret_cast< wxPoint * >(argp1);
5789 result = (int) ((arg1)->y);
5790 resultobj = SWIG_From_int(static_cast< int >(result));
5791 return resultobj;
5792fail:
5793 return NULL;
5794}
5795
5796
5797SWIGINTERN PyObject *_wrap_new_Point(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5798 PyObject *resultobj = 0;
5799 int arg1 = (int) 0 ;
5800 int arg2 = (int) 0 ;
5801 wxPoint *result = 0 ;
5802 int val1 ;
5803 int ecode1 = 0 ;
5804 int val2 ;
5805 int ecode2 = 0 ;
5806 PyObject * obj0 = 0 ;
5807 PyObject * obj1 = 0 ;
5808 char * kwnames[] = {
5809 (char *) "x",(char *) "y", NULL
5810 };
5811
5812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) SWIG_fail;
5813 if (obj0) {
5814 ecode1 = SWIG_AsVal_int(obj0, &val1);
5815 if (!SWIG_IsOK(ecode1)) {
5816 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Point" "', expected argument " "1"" of type '" "int""'");
5817 }
5818 arg1 = static_cast< int >(val1);
5819 }
5820 if (obj1) {
5821 ecode2 = SWIG_AsVal_int(obj1, &val2);
5822 if (!SWIG_IsOK(ecode2)) {
5823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Point" "', expected argument " "2"" of type '" "int""'");
5824 }
5825 arg2 = static_cast< int >(val2);
5826 }
5827 {
1bd55598 5828 result = (wxPoint *)new wxPoint(arg1,arg2);
1bd55598
RD
5829 if (PyErr_Occurred()) SWIG_fail;
5830 }
5831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, SWIG_POINTER_NEW | 0 );
5832 return resultobj;
5833fail:
5834 return NULL;
d55e5bfc
RD
5835}
5836
5837
1bd55598
RD
5838SWIGINTERN PyObject *_wrap_delete_Point(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5839 PyObject *resultobj = 0;
5840 wxPoint *arg1 = (wxPoint *) 0 ;
5841 void *argp1 = 0 ;
5842 int res1 = 0 ;
5843 PyObject *swig_obj[1] ;
5844
5845 if (!args) SWIG_fail;
5846 swig_obj[0] = args;
5847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, SWIG_POINTER_DISOWN | 0 );
5848 if (!SWIG_IsOK(res1)) {
5849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Point" "', expected argument " "1"" of type '" "wxPoint *""'");
5850 }
5851 arg1 = reinterpret_cast< wxPoint * >(argp1);
5852 {
1bd55598 5853 delete arg1;
d55e5bfc 5854
1bd55598
RD
5855 if (PyErr_Occurred()) SWIG_fail;
5856 }
5857 resultobj = SWIG_Py_Void();
5858 return resultobj;
5859fail:
5860 return NULL;
5861}
5862
5863
5864SWIGINTERN PyObject *_wrap_Point___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5865 PyObject *resultobj = 0;
5866 wxPoint *arg1 = (wxPoint *) 0 ;
e9d6f3a4 5867 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
5868 bool result;
5869 void *argp1 = 0 ;
5870 int res1 = 0 ;
1bd55598
RD
5871 PyObject * obj0 = 0 ;
5872 PyObject * obj1 = 0 ;
5873 char * kwnames[] = {
e9d6f3a4 5874 (char *) "self",(char *) "other", NULL
1bd55598
RD
5875 };
5876
5877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
5879 if (!SWIG_IsOK(res1)) {
5880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___eq__" "', expected argument " "1"" of type '" "wxPoint *""'");
5881 }
5882 arg1 = reinterpret_cast< wxPoint * >(argp1);
e9d6f3a4 5883 arg2 = obj1;
1bd55598 5884 {
e9d6f3a4 5885 result = (bool)wxPoint___eq__(arg1,arg2);
1bd55598
RD
5886 if (PyErr_Occurred()) SWIG_fail;
5887 }
5888 {
5889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5890 }
5891 return resultobj;
5892fail:
5893 return NULL;
5894}
5895
5896
5897SWIGINTERN PyObject *_wrap_Point___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5898 PyObject *resultobj = 0;
5899 wxPoint *arg1 = (wxPoint *) 0 ;
e9d6f3a4 5900 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
5901 bool result;
5902 void *argp1 = 0 ;
5903 int res1 = 0 ;
1bd55598
RD
5904 PyObject * obj0 = 0 ;
5905 PyObject * obj1 = 0 ;
5906 char * kwnames[] = {
e9d6f3a4 5907 (char *) "self",(char *) "other", NULL
1bd55598
RD
5908 };
5909
5910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
5912 if (!SWIG_IsOK(res1)) {
5913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___ne__" "', expected argument " "1"" of type '" "wxPoint *""'");
5914 }
5915 arg1 = reinterpret_cast< wxPoint * >(argp1);
e9d6f3a4 5916 arg2 = obj1;
1bd55598 5917 {
e9d6f3a4 5918 result = (bool)wxPoint___ne__(arg1,arg2);
1bd55598
RD
5919 if (PyErr_Occurred()) SWIG_fail;
5920 }
5921 {
5922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5923 }
5924 return resultobj;
5925fail:
5926 return NULL;
5927}
5928
5929
5930SWIGINTERN PyObject *_wrap_Point___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5931 PyObject *resultobj = 0;
5932 wxPoint *arg1 = (wxPoint *) 0 ;
5933 wxPoint *arg2 = 0 ;
5934 wxPoint result;
5935 void *argp1 = 0 ;
5936 int res1 = 0 ;
5937 wxPoint temp2 ;
5938 PyObject * obj0 = 0 ;
5939 PyObject * obj1 = 0 ;
5940 char * kwnames[] = {
5941 (char *) "self",(char *) "pt", NULL
5942 };
5943
5944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) SWIG_fail;
5945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
5946 if (!SWIG_IsOK(res1)) {
5947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___add__" "', expected argument " "1"" of type '" "wxPoint *""'");
5948 }
5949 arg1 = reinterpret_cast< wxPoint * >(argp1);
5950 {
5951 arg2 = &temp2;
5952 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5953 }
5954 {
1bd55598 5955 result = (arg1)->operator +((wxPoint const &)*arg2);
1bd55598
RD
5956 if (PyErr_Occurred()) SWIG_fail;
5957 }
5958 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
5959 return resultobj;
5960fail:
5961 return NULL;
5962}
5963
5964
5965SWIGINTERN PyObject *_wrap_Point___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5966 PyObject *resultobj = 0;
5967 wxPoint *arg1 = (wxPoint *) 0 ;
5968 wxPoint *arg2 = 0 ;
5969 wxPoint result;
5970 void *argp1 = 0 ;
5971 int res1 = 0 ;
5972 wxPoint temp2 ;
5973 PyObject * obj0 = 0 ;
5974 PyObject * obj1 = 0 ;
5975 char * kwnames[] = {
5976 (char *) "self",(char *) "pt", NULL
5977 };
5978
5979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
5980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
5981 if (!SWIG_IsOK(res1)) {
5982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___sub__" "', expected argument " "1"" of type '" "wxPoint *""'");
5983 }
5984 arg1 = reinterpret_cast< wxPoint * >(argp1);
5985 {
5986 arg2 = &temp2;
5987 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5988 }
5989 {
1bd55598 5990 result = (arg1)->operator -((wxPoint const &)*arg2);
1bd55598
RD
5991 if (PyErr_Occurred()) SWIG_fail;
5992 }
5993 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
5994 return resultobj;
5995fail:
5996 return NULL;
5997}
5998
5999
6000SWIGINTERN PyObject *_wrap_Point___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6001 PyObject *resultobj = 0;
6002 wxPoint *arg1 = (wxPoint *) 0 ;
6003 wxPoint *arg2 = 0 ;
6004 wxPoint *result = 0 ;
6005 void *argp1 = 0 ;
6006 int res1 = 0 ;
6007 wxPoint temp2 ;
6008 PyObject * obj0 = 0 ;
6009 PyObject * obj1 = 0 ;
6010 char * kwnames[] = {
6011 (char *) "self",(char *) "pt", NULL
6012 };
6013
6014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) SWIG_fail;
6015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, SWIG_POINTER_DISOWN | 0 );
6016 if (!SWIG_IsOK(res1)) {
6017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___iadd__" "', expected argument " "1"" of type '" "wxPoint *""'");
6018 }
6019 arg1 = reinterpret_cast< wxPoint * >(argp1);
6020 {
6021 arg2 = &temp2;
6022 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6023 }
6024 {
36ed4f51 6025 {
1bd55598
RD
6026 wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2);
6027 result = (wxPoint *) &_result_ref;
36ed4f51 6028 }
1bd55598
RD
6029 if (PyErr_Occurred()) SWIG_fail;
6030 }
6031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6032 return resultobj;
6033fail:
6034 return NULL;
6035}
6036
6037
6038SWIGINTERN PyObject *_wrap_Point___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6039 PyObject *resultobj = 0;
6040 wxPoint *arg1 = (wxPoint *) 0 ;
6041 wxPoint *arg2 = 0 ;
6042 wxPoint *result = 0 ;
6043 void *argp1 = 0 ;
6044 int res1 = 0 ;
6045 wxPoint temp2 ;
6046 PyObject * obj0 = 0 ;
6047 PyObject * obj1 = 0 ;
6048 char * kwnames[] = {
6049 (char *) "self",(char *) "pt", NULL
6050 };
6051
6052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) SWIG_fail;
6053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, SWIG_POINTER_DISOWN | 0 );
6054 if (!SWIG_IsOK(res1)) {
6055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___isub__" "', expected argument " "1"" of type '" "wxPoint *""'");
6056 }
6057 arg1 = reinterpret_cast< wxPoint * >(argp1);
6058 {
6059 arg2 = &temp2;
6060 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6061 }
6062 {
36ed4f51 6063 {
1bd55598
RD
6064 wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2);
6065 result = (wxPoint *) &_result_ref;
36ed4f51 6066 }
1bd55598
RD
6067 if (PyErr_Occurred()) SWIG_fail;
6068 }
6069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6070 return resultobj;
6071fail:
6072 return NULL;
6073}
6074
6075
6076SWIGINTERN PyObject *_wrap_Point_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6077 PyObject *resultobj = 0;
6078 wxPoint *arg1 = (wxPoint *) 0 ;
6079 long arg2 ;
6080 long arg3 ;
6081 void *argp1 = 0 ;
6082 int res1 = 0 ;
6083 long val2 ;
6084 int ecode2 = 0 ;
6085 long val3 ;
6086 int ecode3 = 0 ;
6087 PyObject * obj0 = 0 ;
6088 PyObject * obj1 = 0 ;
6089 PyObject * obj2 = 0 ;
6090 char * kwnames[] = {
6091 (char *) "self",(char *) "x",(char *) "y", NULL
6092 };
6093
6094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
6096 if (!SWIG_IsOK(res1)) {
6097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_Set" "', expected argument " "1"" of type '" "wxPoint *""'");
6098 }
6099 arg1 = reinterpret_cast< wxPoint * >(argp1);
6100 ecode2 = SWIG_AsVal_long(obj1, &val2);
6101 if (!SWIG_IsOK(ecode2)) {
6102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point_Set" "', expected argument " "2"" of type '" "long""'");
6103 }
6104 arg2 = static_cast< long >(val2);
6105 ecode3 = SWIG_AsVal_long(obj2, &val3);
6106 if (!SWIG_IsOK(ecode3)) {
6107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Point_Set" "', expected argument " "3"" of type '" "long""'");
6108 }
6109 arg3 = static_cast< long >(val3);
6110 {
1bd55598 6111 wxPoint_Set(arg1,arg2,arg3);
1bd55598
RD
6112 if (PyErr_Occurred()) SWIG_fail;
6113 }
6114 resultobj = SWIG_Py_Void();
6115 return resultobj;
6116fail:
6117 return NULL;
d55e5bfc
RD
6118}
6119
6120
1bd55598
RD
6121SWIGINTERN PyObject *_wrap_Point_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6122 PyObject *resultobj = 0;
6123 wxPoint *arg1 = (wxPoint *) 0 ;
6124 PyObject *result = 0 ;
6125 void *argp1 = 0 ;
6126 int res1 = 0 ;
6127 PyObject *swig_obj[1] ;
6128
6129 if (!args) SWIG_fail;
6130 swig_obj[0] = args;
6131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
6132 if (!SWIG_IsOK(res1)) {
6133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_Get" "', expected argument " "1"" of type '" "wxPoint *""'");
6134 }
6135 arg1 = reinterpret_cast< wxPoint * >(argp1);
6136 {
1bd55598 6137 result = (PyObject *)wxPoint_Get(arg1);
1bd55598
RD
6138 if (PyErr_Occurred()) SWIG_fail;
6139 }
6140 resultobj = result;
6141 return resultobj;
6142fail:
6143 return NULL;
6144}
6145
6146
6147SWIGINTERN PyObject *Point_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6148 PyObject *obj;
6149 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6150 SWIG_TypeNewClientData(SWIGTYPE_p_wxPoint, SWIG_NewClientData(obj));
6151 return SWIG_Py_Void();
6152}
6153
6154SWIGINTERN PyObject *Point_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6155 return SWIG_Python_InitShadowInstance(args);
6156}
6157
6158SWIGINTERN PyObject *_wrap_new_Rect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6159 PyObject *resultobj = 0;
6160 int arg1 = (int) 0 ;
6161 int arg2 = (int) 0 ;
6162 int arg3 = (int) 0 ;
6163 int arg4 = (int) 0 ;
6164 wxRect *result = 0 ;
6165 int val1 ;
6166 int ecode1 = 0 ;
6167 int val2 ;
6168 int ecode2 = 0 ;
6169 int val3 ;
6170 int ecode3 = 0 ;
6171 int val4 ;
6172 int ecode4 = 0 ;
6173 PyObject * obj0 = 0 ;
6174 PyObject * obj1 = 0 ;
6175 PyObject * obj2 = 0 ;
6176 PyObject * obj3 = 0 ;
6177 char * kwnames[] = {
6178 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6179 };
6180
6181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6182 if (obj0) {
6183 ecode1 = SWIG_AsVal_int(obj0, &val1);
6184 if (!SWIG_IsOK(ecode1)) {
6185 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Rect" "', expected argument " "1"" of type '" "int""'");
6186 }
6187 arg1 = static_cast< int >(val1);
6188 }
6189 if (obj1) {
6190 ecode2 = SWIG_AsVal_int(obj1, &val2);
6191 if (!SWIG_IsOK(ecode2)) {
6192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Rect" "', expected argument " "2"" of type '" "int""'");
6193 }
6194 arg2 = static_cast< int >(val2);
6195 }
6196 if (obj2) {
6197 ecode3 = SWIG_AsVal_int(obj2, &val3);
6198 if (!SWIG_IsOK(ecode3)) {
6199 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Rect" "', expected argument " "3"" of type '" "int""'");
6200 }
6201 arg3 = static_cast< int >(val3);
6202 }
6203 if (obj3) {
6204 ecode4 = SWIG_AsVal_int(obj3, &val4);
6205 if (!SWIG_IsOK(ecode4)) {
6206 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Rect" "', expected argument " "4"" of type '" "int""'");
6207 }
6208 arg4 = static_cast< int >(val4);
6209 }
6210 {
1bd55598 6211 result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4);
1bd55598
RD
6212 if (PyErr_Occurred()) SWIG_fail;
6213 }
6214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, SWIG_POINTER_NEW | 0 );
6215 return resultobj;
6216fail:
6217 return NULL;
6218}
6219
6220
6221SWIGINTERN PyObject *_wrap_new_RectPP(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6222 PyObject *resultobj = 0;
6223 wxPoint *arg1 = 0 ;
6224 wxPoint *arg2 = 0 ;
6225 wxRect *result = 0 ;
6226 wxPoint temp1 ;
6227 wxPoint temp2 ;
6228 PyObject * obj0 = 0 ;
6229 PyObject * obj1 = 0 ;
6230 char * kwnames[] = {
6231 (char *) "topLeft",(char *) "bottomRight", NULL
6232 };
6233
6234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) SWIG_fail;
6235 {
6236 arg1 = &temp1;
6237 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
6238 }
6239 {
6240 arg2 = &temp2;
6241 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6242 }
6243 {
1bd55598 6244 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2);
1bd55598
RD
6245 if (PyErr_Occurred()) SWIG_fail;
6246 }
6247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
6248 return resultobj;
6249fail:
6250 return NULL;
6251}
6252
6253
6254SWIGINTERN PyObject *_wrap_new_RectPS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6255 PyObject *resultobj = 0;
6256 wxPoint *arg1 = 0 ;
6257 wxSize *arg2 = 0 ;
6258 wxRect *result = 0 ;
6259 wxPoint temp1 ;
6260 wxSize temp2 ;
6261 PyObject * obj0 = 0 ;
6262 PyObject * obj1 = 0 ;
6263 char * kwnames[] = {
6264 (char *) "pos",(char *) "size", NULL
6265 };
6266
6267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) SWIG_fail;
6268 {
6269 arg1 = &temp1;
6270 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
6271 }
6272 {
6273 arg2 = &temp2;
6274 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6275 }
6276 {
1bd55598 6277 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2);
1bd55598
RD
6278 if (PyErr_Occurred()) SWIG_fail;
6279 }
6280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
6281 return resultobj;
6282fail:
6283 return NULL;
d55e5bfc
RD
6284}
6285
6286
1bd55598
RD
6287SWIGINTERN PyObject *_wrap_new_RectS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6288 PyObject *resultobj = 0;
6289 wxSize *arg1 = 0 ;
6290 wxRect *result = 0 ;
6291 wxSize temp1 ;
6292 PyObject * obj0 = 0 ;
6293 char * kwnames[] = {
6294 (char *) "size", NULL
6295 };
6296
6297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RectS",kwnames,&obj0)) SWIG_fail;
6298 {
6299 arg1 = &temp1;
6300 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
6301 }
6302 {
1bd55598 6303 result = (wxRect *)new wxRect((wxSize const &)*arg1);
1bd55598
RD
6304 if (PyErr_Occurred()) SWIG_fail;
6305 }
6306 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
6307 return resultobj;
6308fail:
6309 return NULL;
d55e5bfc
RD
6310}
6311
6312
1bd55598
RD
6313SWIGINTERN PyObject *_wrap_delete_Rect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6314 PyObject *resultobj = 0;
6315 wxRect *arg1 = (wxRect *) 0 ;
6316 void *argp1 = 0 ;
6317 int res1 = 0 ;
6318 PyObject *swig_obj[1] ;
6319
6320 if (!args) SWIG_fail;
6321 swig_obj[0] = args;
6322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, SWIG_POINTER_DISOWN | 0 );
6323 if (!SWIG_IsOK(res1)) {
6324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Rect" "', expected argument " "1"" of type '" "wxRect *""'");
6325 }
6326 arg1 = reinterpret_cast< wxRect * >(argp1);
6327 {
1bd55598 6328 delete arg1;
d55e5bfc 6329
1bd55598
RD
6330 if (PyErr_Occurred()) SWIG_fail;
6331 }
6332 resultobj = SWIG_Py_Void();
6333 return resultobj;
6334fail:
6335 return NULL;
d55e5bfc
RD
6336}
6337
6338
1bd55598
RD
6339SWIGINTERN PyObject *_wrap_Rect_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6340 PyObject *resultobj = 0;
6341 wxRect *arg1 = (wxRect *) 0 ;
6342 int result;
6343 void *argp1 = 0 ;
6344 int res1 = 0 ;
6345 PyObject *swig_obj[1] ;
6346
6347 if (!args) SWIG_fail;
6348 swig_obj[0] = args;
6349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6350 if (!SWIG_IsOK(res1)) {
6351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetX" "', expected argument " "1"" of type '" "wxRect const *""'");
6352 }
6353 arg1 = reinterpret_cast< wxRect * >(argp1);
6354 {
1bd55598 6355 result = (int)((wxRect const *)arg1)->GetX();
1bd55598
RD
6356 if (PyErr_Occurred()) SWIG_fail;
6357 }
6358 resultobj = SWIG_From_int(static_cast< int >(result));
6359 return resultobj;
6360fail:
6361 return NULL;
6362}
6363
6364
6365SWIGINTERN PyObject *_wrap_Rect_SetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6366 PyObject *resultobj = 0;
6367 wxRect *arg1 = (wxRect *) 0 ;
6368 int arg2 ;
6369 void *argp1 = 0 ;
6370 int res1 = 0 ;
6371 int val2 ;
6372 int ecode2 = 0 ;
6373 PyObject * obj0 = 0 ;
6374 PyObject * obj1 = 0 ;
6375 char * kwnames[] = {
6376 (char *) "self",(char *) "x", NULL
6377 };
6378
6379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) SWIG_fail;
6380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6381 if (!SWIG_IsOK(res1)) {
6382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetX" "', expected argument " "1"" of type '" "wxRect *""'");
6383 }
6384 arg1 = reinterpret_cast< wxRect * >(argp1);
6385 ecode2 = SWIG_AsVal_int(obj1, &val2);
6386 if (!SWIG_IsOK(ecode2)) {
6387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetX" "', expected argument " "2"" of type '" "int""'");
6388 }
6389 arg2 = static_cast< int >(val2);
6390 {
1bd55598 6391 (arg1)->SetX(arg2);
1bd55598
RD
6392 if (PyErr_Occurred()) SWIG_fail;
6393 }
6394 resultobj = SWIG_Py_Void();
6395 return resultobj;
6396fail:
6397 return NULL;
d55e5bfc
RD
6398}
6399
6400
1bd55598
RD
6401SWIGINTERN PyObject *_wrap_Rect_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6402 PyObject *resultobj = 0;
6403 wxRect *arg1 = (wxRect *) 0 ;
6404 int result;
6405 void *argp1 = 0 ;
6406 int res1 = 0 ;
6407 PyObject *swig_obj[1] ;
6408
6409 if (!args) SWIG_fail;
6410 swig_obj[0] = args;
6411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6412 if (!SWIG_IsOK(res1)) {
6413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetY" "', expected argument " "1"" of type '" "wxRect *""'");
6414 }
6415 arg1 = reinterpret_cast< wxRect * >(argp1);
6416 {
1bd55598 6417 result = (int)(arg1)->GetY();
1bd55598
RD
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 resultobj = SWIG_From_int(static_cast< int >(result));
6421 return resultobj;
6422fail:
6423 return NULL;
6424}
6425
6426
6427SWIGINTERN PyObject *_wrap_Rect_SetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6428 PyObject *resultobj = 0;
6429 wxRect *arg1 = (wxRect *) 0 ;
6430 int arg2 ;
6431 void *argp1 = 0 ;
6432 int res1 = 0 ;
6433 int val2 ;
6434 int ecode2 = 0 ;
6435 PyObject * obj0 = 0 ;
6436 PyObject * obj1 = 0 ;
6437 char * kwnames[] = {
6438 (char *) "self",(char *) "y", NULL
6439 };
6440
6441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) SWIG_fail;
6442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6443 if (!SWIG_IsOK(res1)) {
6444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetY" "', expected argument " "1"" of type '" "wxRect *""'");
6445 }
6446 arg1 = reinterpret_cast< wxRect * >(argp1);
6447 ecode2 = SWIG_AsVal_int(obj1, &val2);
6448 if (!SWIG_IsOK(ecode2)) {
6449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetY" "', expected argument " "2"" of type '" "int""'");
6450 }
6451 arg2 = static_cast< int >(val2);
6452 {
1bd55598 6453 (arg1)->SetY(arg2);
1bd55598
RD
6454 if (PyErr_Occurred()) SWIG_fail;
6455 }
6456 resultobj = SWIG_Py_Void();
6457 return resultobj;
6458fail:
6459 return NULL;
d55e5bfc
RD
6460}
6461
6462
1bd55598
RD
6463SWIGINTERN PyObject *_wrap_Rect_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6464 PyObject *resultobj = 0;
6465 wxRect *arg1 = (wxRect *) 0 ;
6466 int result;
6467 void *argp1 = 0 ;
6468 int res1 = 0 ;
6469 PyObject *swig_obj[1] ;
6470
6471 if (!args) SWIG_fail;
6472 swig_obj[0] = args;
6473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6474 if (!SWIG_IsOK(res1)) {
6475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetWidth" "', expected argument " "1"" of type '" "wxRect const *""'");
6476 }
6477 arg1 = reinterpret_cast< wxRect * >(argp1);
6478 {
1bd55598 6479 result = (int)((wxRect const *)arg1)->GetWidth();
1bd55598
RD
6480 if (PyErr_Occurred()) SWIG_fail;
6481 }
6482 resultobj = SWIG_From_int(static_cast< int >(result));
6483 return resultobj;
6484fail:
6485 return NULL;
6486}
6487
6488
6489SWIGINTERN PyObject *_wrap_Rect_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6490 PyObject *resultobj = 0;
6491 wxRect *arg1 = (wxRect *) 0 ;
6492 int arg2 ;
6493 void *argp1 = 0 ;
6494 int res1 = 0 ;
6495 int val2 ;
6496 int ecode2 = 0 ;
6497 PyObject * obj0 = 0 ;
6498 PyObject * obj1 = 0 ;
6499 char * kwnames[] = {
6500 (char *) "self",(char *) "w", NULL
6501 };
6502
6503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6505 if (!SWIG_IsOK(res1)) {
6506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetWidth" "', expected argument " "1"" of type '" "wxRect *""'");
6507 }
6508 arg1 = reinterpret_cast< wxRect * >(argp1);
6509 ecode2 = SWIG_AsVal_int(obj1, &val2);
6510 if (!SWIG_IsOK(ecode2)) {
6511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetWidth" "', expected argument " "2"" of type '" "int""'");
6512 }
6513 arg2 = static_cast< int >(val2);
6514 {
1bd55598 6515 (arg1)->SetWidth(arg2);
1bd55598
RD
6516 if (PyErr_Occurred()) SWIG_fail;
6517 }
6518 resultobj = SWIG_Py_Void();
6519 return resultobj;
6520fail:
6521 return NULL;
d55e5bfc
RD
6522}
6523
6524
1bd55598
RD
6525SWIGINTERN PyObject *_wrap_Rect_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6526 PyObject *resultobj = 0;
6527 wxRect *arg1 = (wxRect *) 0 ;
6528 int result;
6529 void *argp1 = 0 ;
6530 int res1 = 0 ;
6531 PyObject *swig_obj[1] ;
6532
6533 if (!args) SWIG_fail;
6534 swig_obj[0] = args;
6535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6536 if (!SWIG_IsOK(res1)) {
6537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetHeight" "', expected argument " "1"" of type '" "wxRect const *""'");
6538 }
6539 arg1 = reinterpret_cast< wxRect * >(argp1);
6540 {
1bd55598 6541 result = (int)((wxRect const *)arg1)->GetHeight();
1bd55598
RD
6542 if (PyErr_Occurred()) SWIG_fail;
6543 }
6544 resultobj = SWIG_From_int(static_cast< int >(result));
6545 return resultobj;
6546fail:
6547 return NULL;
6548}
6549
6550
6551SWIGINTERN PyObject *_wrap_Rect_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6552 PyObject *resultobj = 0;
6553 wxRect *arg1 = (wxRect *) 0 ;
6554 int arg2 ;
6555 void *argp1 = 0 ;
6556 int res1 = 0 ;
6557 int val2 ;
6558 int ecode2 = 0 ;
6559 PyObject * obj0 = 0 ;
6560 PyObject * obj1 = 0 ;
6561 char * kwnames[] = {
6562 (char *) "self",(char *) "h", NULL
6563 };
6564
6565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6567 if (!SWIG_IsOK(res1)) {
6568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetHeight" "', expected argument " "1"" of type '" "wxRect *""'");
6569 }
6570 arg1 = reinterpret_cast< wxRect * >(argp1);
6571 ecode2 = SWIG_AsVal_int(obj1, &val2);
6572 if (!SWIG_IsOK(ecode2)) {
6573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetHeight" "', expected argument " "2"" of type '" "int""'");
6574 }
6575 arg2 = static_cast< int >(val2);
6576 {
1bd55598 6577 (arg1)->SetHeight(arg2);
1bd55598
RD
6578 if (PyErr_Occurred()) SWIG_fail;
6579 }
6580 resultobj = SWIG_Py_Void();
6581 return resultobj;
6582fail:
6583 return NULL;
d55e5bfc
RD
6584}
6585
6586
1bd55598
RD
6587SWIGINTERN PyObject *_wrap_Rect_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6588 PyObject *resultobj = 0;
6589 wxRect *arg1 = (wxRect *) 0 ;
6590 wxPoint result;
6591 void *argp1 = 0 ;
6592 int res1 = 0 ;
6593 PyObject *swig_obj[1] ;
6594
6595 if (!args) SWIG_fail;
6596 swig_obj[0] = args;
6597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6598 if (!SWIG_IsOK(res1)) {
6599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetPosition" "', expected argument " "1"" of type '" "wxRect const *""'");
6600 }
6601 arg1 = reinterpret_cast< wxRect * >(argp1);
6602 {
1bd55598 6603 result = ((wxRect const *)arg1)->GetPosition();
1bd55598
RD
6604 if (PyErr_Occurred()) SWIG_fail;
6605 }
6606 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6607 return resultobj;
6608fail:
6609 return NULL;
6610}
6611
6612
6613SWIGINTERN PyObject *_wrap_Rect_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6614 PyObject *resultobj = 0;
6615 wxRect *arg1 = (wxRect *) 0 ;
6616 wxPoint *arg2 = 0 ;
6617 void *argp1 = 0 ;
6618 int res1 = 0 ;
6619 wxPoint temp2 ;
6620 PyObject * obj0 = 0 ;
6621 PyObject * obj1 = 0 ;
6622 char * kwnames[] = {
6623 (char *) "self",(char *) "p", NULL
6624 };
6625
6626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
6627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6628 if (!SWIG_IsOK(res1)) {
6629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetPosition" "', expected argument " "1"" of type '" "wxRect *""'");
6630 }
6631 arg1 = reinterpret_cast< wxRect * >(argp1);
6632 {
6633 arg2 = &temp2;
6634 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6635 }
6636 {
1bd55598 6637 (arg1)->SetPosition((wxPoint const &)*arg2);
1bd55598
RD
6638 if (PyErr_Occurred()) SWIG_fail;
6639 }
6640 resultobj = SWIG_Py_Void();
6641 return resultobj;
6642fail:
6643 return NULL;
d55e5bfc
RD
6644}
6645
6646
1bd55598
RD
6647SWIGINTERN PyObject *_wrap_Rect_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6648 PyObject *resultobj = 0;
6649 wxRect *arg1 = (wxRect *) 0 ;
6650 wxSize result;
6651 void *argp1 = 0 ;
6652 int res1 = 0 ;
6653 PyObject *swig_obj[1] ;
6654
6655 if (!args) SWIG_fail;
6656 swig_obj[0] = args;
6657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6658 if (!SWIG_IsOK(res1)) {
6659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetSize" "', expected argument " "1"" of type '" "wxRect const *""'");
6660 }
6661 arg1 = reinterpret_cast< wxRect * >(argp1);
6662 {
1bd55598 6663 result = ((wxRect const *)arg1)->GetSize();
1bd55598
RD
6664 if (PyErr_Occurred()) SWIG_fail;
6665 }
6666 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6667 return resultobj;
6668fail:
6669 return NULL;
6670}
6671
6672
6673SWIGINTERN PyObject *_wrap_Rect_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6674 PyObject *resultobj = 0;
6675 wxRect *arg1 = (wxRect *) 0 ;
6676 wxSize *arg2 = 0 ;
6677 void *argp1 = 0 ;
6678 int res1 = 0 ;
6679 wxSize temp2 ;
6680 PyObject * obj0 = 0 ;
6681 PyObject * obj1 = 0 ;
6682 char * kwnames[] = {
6683 (char *) "self",(char *) "s", NULL
6684 };
6685
6686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6688 if (!SWIG_IsOK(res1)) {
6689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetSize" "', expected argument " "1"" of type '" "wxRect *""'");
6690 }
6691 arg1 = reinterpret_cast< wxRect * >(argp1);
6692 {
6693 arg2 = &temp2;
6694 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6695 }
6696 {
1bd55598 6697 (arg1)->SetSize((wxSize const &)*arg2);
1bd55598
RD
6698 if (PyErr_Occurred()) SWIG_fail;
6699 }
6700 resultobj = SWIG_Py_Void();
6701 return resultobj;
6702fail:
6703 return NULL;
d55e5bfc
RD
6704}
6705
6706
1bd55598
RD
6707SWIGINTERN PyObject *_wrap_Rect_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6708 PyObject *resultobj = 0;
6709 wxRect *arg1 = (wxRect *) 0 ;
6710 bool result;
6711 void *argp1 = 0 ;
6712 int res1 = 0 ;
6713 PyObject *swig_obj[1] ;
6714
6715 if (!args) SWIG_fail;
6716 swig_obj[0] = args;
6717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6718 if (!SWIG_IsOK(res1)) {
6719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_IsEmpty" "', expected argument " "1"" of type '" "wxRect const *""'");
6720 }
6721 arg1 = reinterpret_cast< wxRect * >(argp1);
6722 {
1bd55598 6723 result = (bool)((wxRect const *)arg1)->IsEmpty();
1bd55598
RD
6724 if (PyErr_Occurred()) SWIG_fail;
6725 }
6726 {
6727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6728 }
6729 return resultobj;
6730fail:
6731 return NULL;
d55e5bfc
RD
6732}
6733
6734
1bd55598
RD
6735SWIGINTERN PyObject *_wrap_Rect_GetTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6736 PyObject *resultobj = 0;
6737 wxRect *arg1 = (wxRect *) 0 ;
6738 wxPoint result;
6739 void *argp1 = 0 ;
6740 int res1 = 0 ;
6741 PyObject *swig_obj[1] ;
6742
6743 if (!args) SWIG_fail;
6744 swig_obj[0] = args;
6745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6746 if (!SWIG_IsOK(res1)) {
6747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetTopLeft" "', expected argument " "1"" of type '" "wxRect const *""'");
6748 }
6749 arg1 = reinterpret_cast< wxRect * >(argp1);
6750 {
1bd55598 6751 result = ((wxRect const *)arg1)->GetTopLeft();
1bd55598
RD
6752 if (PyErr_Occurred()) SWIG_fail;
6753 }
6754 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6755 return resultobj;
6756fail:
6757 return NULL;
6758}
6759
6760
6761SWIGINTERN PyObject *_wrap_Rect_SetTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6762 PyObject *resultobj = 0;
6763 wxRect *arg1 = (wxRect *) 0 ;
6764 wxPoint *arg2 = 0 ;
6765 void *argp1 = 0 ;
6766 int res1 = 0 ;
6767 wxPoint temp2 ;
6768 PyObject * obj0 = 0 ;
6769 PyObject * obj1 = 0 ;
6770 char * kwnames[] = {
6771 (char *) "self",(char *) "p", NULL
6772 };
6773
6774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) SWIG_fail;
6775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6776 if (!SWIG_IsOK(res1)) {
6777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetTopLeft" "', expected argument " "1"" of type '" "wxRect *""'");
6778 }
6779 arg1 = reinterpret_cast< wxRect * >(argp1);
6780 {
6781 arg2 = &temp2;
6782 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6783 }
6784 {
1bd55598 6785 (arg1)->SetTopLeft((wxPoint const &)*arg2);
1bd55598
RD
6786 if (PyErr_Occurred()) SWIG_fail;
6787 }
6788 resultobj = SWIG_Py_Void();
6789 return resultobj;
6790fail:
6791 return NULL;
d55e5bfc
RD
6792}
6793
6794
1bd55598
RD
6795SWIGINTERN PyObject *_wrap_Rect_GetBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6796 PyObject *resultobj = 0;
6797 wxRect *arg1 = (wxRect *) 0 ;
6798 wxPoint result;
6799 void *argp1 = 0 ;
6800 int res1 = 0 ;
6801 PyObject *swig_obj[1] ;
6802
6803 if (!args) SWIG_fail;
6804 swig_obj[0] = args;
6805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6806 if (!SWIG_IsOK(res1)) {
6807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetBottomRight" "', expected argument " "1"" of type '" "wxRect const *""'");
6808 }
6809 arg1 = reinterpret_cast< wxRect * >(argp1);
6810 {
1bd55598 6811 result = ((wxRect const *)arg1)->GetBottomRight();
1bd55598
RD
6812 if (PyErr_Occurred()) SWIG_fail;
6813 }
6814 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6815 return resultobj;
6816fail:
6817 return NULL;
6818}
6819
6820
6821SWIGINTERN PyObject *_wrap_Rect_SetBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6822 PyObject *resultobj = 0;
6823 wxRect *arg1 = (wxRect *) 0 ;
6824 wxPoint *arg2 = 0 ;
6825 void *argp1 = 0 ;
6826 int res1 = 0 ;
6827 wxPoint temp2 ;
6828 PyObject * obj0 = 0 ;
6829 PyObject * obj1 = 0 ;
6830 char * kwnames[] = {
6831 (char *) "self",(char *) "p", NULL
6832 };
6833
6834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) SWIG_fail;
6835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6836 if (!SWIG_IsOK(res1)) {
6837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetBottomRight" "', expected argument " "1"" of type '" "wxRect *""'");
6838 }
6839 arg1 = reinterpret_cast< wxRect * >(argp1);
6840 {
6841 arg2 = &temp2;
6842 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6843 }
6844 {
1bd55598 6845 (arg1)->SetBottomRight((wxPoint const &)*arg2);
1bd55598
RD
6846 if (PyErr_Occurred()) SWIG_fail;
6847 }
6848 resultobj = SWIG_Py_Void();
6849 return resultobj;
6850fail:
6851 return NULL;
d55e5bfc
RD
6852}
6853
6854
5acb46e0
RD
6855SWIGINTERN PyObject *_wrap_Rect_GetTopRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6856 PyObject *resultobj = 0;
6857 wxRect *arg1 = (wxRect *) 0 ;
6858 wxPoint result;
6859 void *argp1 = 0 ;
6860 int res1 = 0 ;
6861 PyObject *swig_obj[1] ;
6862
6863 if (!args) SWIG_fail;
6864 swig_obj[0] = args;
6865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6866 if (!SWIG_IsOK(res1)) {
6867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetTopRight" "', expected argument " "1"" of type '" "wxRect const *""'");
6868 }
6869 arg1 = reinterpret_cast< wxRect * >(argp1);
6870 {
5acb46e0 6871 result = ((wxRect const *)arg1)->GetTopRight();
5acb46e0
RD
6872 if (PyErr_Occurred()) SWIG_fail;
6873 }
6874 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6875 return resultobj;
6876fail:
6877 return NULL;
6878}
6879
6880
6881SWIGINTERN PyObject *_wrap_Rect_SetTopRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6882 PyObject *resultobj = 0;
6883 wxRect *arg1 = (wxRect *) 0 ;
6884 wxPoint *arg2 = 0 ;
6885 void *argp1 = 0 ;
6886 int res1 = 0 ;
6887 wxPoint temp2 ;
6888 PyObject * obj0 = 0 ;
6889 PyObject * obj1 = 0 ;
6890 char * kwnames[] = {
6891 (char *) "self",(char *) "p", NULL
6892 };
6893
6894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopRight",kwnames,&obj0,&obj1)) SWIG_fail;
6895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6896 if (!SWIG_IsOK(res1)) {
6897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetTopRight" "', expected argument " "1"" of type '" "wxRect *""'");
6898 }
6899 arg1 = reinterpret_cast< wxRect * >(argp1);
6900 {
6901 arg2 = &temp2;
6902 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6903 }
6904 {
5acb46e0 6905 (arg1)->SetTopRight((wxPoint const &)*arg2);
5acb46e0
RD
6906 if (PyErr_Occurred()) SWIG_fail;
6907 }
6908 resultobj = SWIG_Py_Void();
6909 return resultobj;
6910fail:
6911 return NULL;
6912}
6913
6914
6915SWIGINTERN PyObject *_wrap_Rect_GetBottomLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6916 PyObject *resultobj = 0;
6917 wxRect *arg1 = (wxRect *) 0 ;
6918 wxPoint result;
6919 void *argp1 = 0 ;
6920 int res1 = 0 ;
6921 PyObject *swig_obj[1] ;
6922
6923 if (!args) SWIG_fail;
6924 swig_obj[0] = args;
6925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6926 if (!SWIG_IsOK(res1)) {
6927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetBottomLeft" "', expected argument " "1"" of type '" "wxRect const *""'");
6928 }
6929 arg1 = reinterpret_cast< wxRect * >(argp1);
6930 {
5acb46e0 6931 result = ((wxRect const *)arg1)->GetBottomLeft();
5acb46e0
RD
6932 if (PyErr_Occurred()) SWIG_fail;
6933 }
6934 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6935 return resultobj;
6936fail:
6937 return NULL;
6938}
6939
6940
6941SWIGINTERN PyObject *_wrap_Rect_SetBottomLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6942 PyObject *resultobj = 0;
6943 wxRect *arg1 = (wxRect *) 0 ;
6944 wxPoint *arg2 = 0 ;
6945 void *argp1 = 0 ;
6946 int res1 = 0 ;
6947 wxPoint temp2 ;
6948 PyObject * obj0 = 0 ;
6949 PyObject * obj1 = 0 ;
6950 char * kwnames[] = {
6951 (char *) "self",(char *) "p", NULL
6952 };
6953
6954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomLeft",kwnames,&obj0,&obj1)) SWIG_fail;
6955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6956 if (!SWIG_IsOK(res1)) {
6957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetBottomLeft" "', expected argument " "1"" of type '" "wxRect *""'");
6958 }
6959 arg1 = reinterpret_cast< wxRect * >(argp1);
6960 {
6961 arg2 = &temp2;
6962 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6963 }
6964 {
5acb46e0 6965 (arg1)->SetBottomLeft((wxPoint const &)*arg2);
5acb46e0
RD
6966 if (PyErr_Occurred()) SWIG_fail;
6967 }
6968 resultobj = SWIG_Py_Void();
6969 return resultobj;
6970fail:
6971 return NULL;
6972}
6973
6974
1bd55598
RD
6975SWIGINTERN PyObject *_wrap_Rect_GetLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6976 PyObject *resultobj = 0;
6977 wxRect *arg1 = (wxRect *) 0 ;
6978 int result;
6979 void *argp1 = 0 ;
6980 int res1 = 0 ;
6981 PyObject *swig_obj[1] ;
6982
6983 if (!args) SWIG_fail;
6984 swig_obj[0] = args;
6985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
6986 if (!SWIG_IsOK(res1)) {
6987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetLeft" "', expected argument " "1"" of type '" "wxRect const *""'");
6988 }
6989 arg1 = reinterpret_cast< wxRect * >(argp1);
6990 {
1bd55598 6991 result = (int)((wxRect const *)arg1)->GetLeft();
1bd55598
RD
6992 if (PyErr_Occurred()) SWIG_fail;
6993 }
6994 resultobj = SWIG_From_int(static_cast< int >(result));
6995 return resultobj;
6996fail:
6997 return NULL;
d55e5bfc
RD
6998}
6999
7000
1bd55598
RD
7001SWIGINTERN PyObject *_wrap_Rect_GetTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7002 PyObject *resultobj = 0;
7003 wxRect *arg1 = (wxRect *) 0 ;
7004 int result;
7005 void *argp1 = 0 ;
7006 int res1 = 0 ;
7007 PyObject *swig_obj[1] ;
7008
7009 if (!args) SWIG_fail;
7010 swig_obj[0] = args;
7011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7012 if (!SWIG_IsOK(res1)) {
7013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetTop" "', expected argument " "1"" of type '" "wxRect const *""'");
7014 }
7015 arg1 = reinterpret_cast< wxRect * >(argp1);
7016 {
1bd55598 7017 result = (int)((wxRect const *)arg1)->GetTop();
1bd55598
RD
7018 if (PyErr_Occurred()) SWIG_fail;
7019 }
7020 resultobj = SWIG_From_int(static_cast< int >(result));
7021 return resultobj;
7022fail:
7023 return NULL;
d55e5bfc
RD
7024}
7025
7026
1bd55598
RD
7027SWIGINTERN PyObject *_wrap_Rect_GetBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7028 PyObject *resultobj = 0;
7029 wxRect *arg1 = (wxRect *) 0 ;
7030 int result;
7031 void *argp1 = 0 ;
7032 int res1 = 0 ;
7033 PyObject *swig_obj[1] ;
7034
7035 if (!args) SWIG_fail;
7036 swig_obj[0] = args;
7037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7038 if (!SWIG_IsOK(res1)) {
7039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetBottom" "', expected argument " "1"" of type '" "wxRect const *""'");
7040 }
7041 arg1 = reinterpret_cast< wxRect * >(argp1);
7042 {
1bd55598 7043 result = (int)((wxRect const *)arg1)->GetBottom();
1bd55598
RD
7044 if (PyErr_Occurred()) SWIG_fail;
7045 }
7046 resultobj = SWIG_From_int(static_cast< int >(result));
7047 return resultobj;
7048fail:
7049 return NULL;
d55e5bfc
RD
7050}
7051
7052
1bd55598
RD
7053SWIGINTERN PyObject *_wrap_Rect_GetRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7054 PyObject *resultobj = 0;
7055 wxRect *arg1 = (wxRect *) 0 ;
7056 int result;
7057 void *argp1 = 0 ;
7058 int res1 = 0 ;
7059 PyObject *swig_obj[1] ;
7060
7061 if (!args) SWIG_fail;
7062 swig_obj[0] = args;
7063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7064 if (!SWIG_IsOK(res1)) {
7065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetRight" "', expected argument " "1"" of type '" "wxRect const *""'");
7066 }
7067 arg1 = reinterpret_cast< wxRect * >(argp1);
7068 {
1bd55598 7069 result = (int)((wxRect const *)arg1)->GetRight();
1bd55598
RD
7070 if (PyErr_Occurred()) SWIG_fail;
7071 }
7072 resultobj = SWIG_From_int(static_cast< int >(result));
7073 return resultobj;
7074fail:
7075 return NULL;
7076}
7077
7078
7079SWIGINTERN PyObject *_wrap_Rect_SetLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7080 PyObject *resultobj = 0;
7081 wxRect *arg1 = (wxRect *) 0 ;
7082 int arg2 ;
7083 void *argp1 = 0 ;
7084 int res1 = 0 ;
7085 int val2 ;
7086 int ecode2 = 0 ;
7087 PyObject * obj0 = 0 ;
7088 PyObject * obj1 = 0 ;
7089 char * kwnames[] = {
7090 (char *) "self",(char *) "left", NULL
7091 };
7092
7093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) SWIG_fail;
7094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7095 if (!SWIG_IsOK(res1)) {
7096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetLeft" "', expected argument " "1"" of type '" "wxRect *""'");
7097 }
7098 arg1 = reinterpret_cast< wxRect * >(argp1);
7099 ecode2 = SWIG_AsVal_int(obj1, &val2);
7100 if (!SWIG_IsOK(ecode2)) {
7101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetLeft" "', expected argument " "2"" of type '" "int""'");
7102 }
7103 arg2 = static_cast< int >(val2);
7104 {
1bd55598 7105 (arg1)->SetLeft(arg2);
1bd55598
RD
7106 if (PyErr_Occurred()) SWIG_fail;
7107 }
7108 resultobj = SWIG_Py_Void();
7109 return resultobj;
7110fail:
7111 return NULL;
7112}
7113
7114
7115SWIGINTERN PyObject *_wrap_Rect_SetRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7116 PyObject *resultobj = 0;
7117 wxRect *arg1 = (wxRect *) 0 ;
7118 int arg2 ;
7119 void *argp1 = 0 ;
7120 int res1 = 0 ;
7121 int val2 ;
7122 int ecode2 = 0 ;
7123 PyObject * obj0 = 0 ;
7124 PyObject * obj1 = 0 ;
7125 char * kwnames[] = {
7126 (char *) "self",(char *) "right", NULL
7127 };
7128
7129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) SWIG_fail;
7130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7131 if (!SWIG_IsOK(res1)) {
7132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetRight" "', expected argument " "1"" of type '" "wxRect *""'");
7133 }
7134 arg1 = reinterpret_cast< wxRect * >(argp1);
7135 ecode2 = SWIG_AsVal_int(obj1, &val2);
7136 if (!SWIG_IsOK(ecode2)) {
7137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetRight" "', expected argument " "2"" of type '" "int""'");
7138 }
7139 arg2 = static_cast< int >(val2);
7140 {
1bd55598 7141 (arg1)->SetRight(arg2);
1bd55598
RD
7142 if (PyErr_Occurred()) SWIG_fail;
7143 }
7144 resultobj = SWIG_Py_Void();
7145 return resultobj;
7146fail:
7147 return NULL;
7148}
7149
7150
7151SWIGINTERN PyObject *_wrap_Rect_SetTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7152 PyObject *resultobj = 0;
7153 wxRect *arg1 = (wxRect *) 0 ;
7154 int arg2 ;
7155 void *argp1 = 0 ;
7156 int res1 = 0 ;
7157 int val2 ;
7158 int ecode2 = 0 ;
7159 PyObject * obj0 = 0 ;
7160 PyObject * obj1 = 0 ;
7161 char * kwnames[] = {
7162 (char *) "self",(char *) "top", NULL
7163 };
7164
7165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) SWIG_fail;
7166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7167 if (!SWIG_IsOK(res1)) {
7168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetTop" "', expected argument " "1"" of type '" "wxRect *""'");
7169 }
7170 arg1 = reinterpret_cast< wxRect * >(argp1);
7171 ecode2 = SWIG_AsVal_int(obj1, &val2);
7172 if (!SWIG_IsOK(ecode2)) {
7173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetTop" "', expected argument " "2"" of type '" "int""'");
7174 }
7175 arg2 = static_cast< int >(val2);
7176 {
1bd55598 7177 (arg1)->SetTop(arg2);
1bd55598
RD
7178 if (PyErr_Occurred()) SWIG_fail;
7179 }
7180 resultobj = SWIG_Py_Void();
7181 return resultobj;
7182fail:
7183 return NULL;
7184}
7185
7186
7187SWIGINTERN PyObject *_wrap_Rect_SetBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7188 PyObject *resultobj = 0;
7189 wxRect *arg1 = (wxRect *) 0 ;
7190 int arg2 ;
7191 void *argp1 = 0 ;
7192 int res1 = 0 ;
7193 int val2 ;
7194 int ecode2 = 0 ;
7195 PyObject * obj0 = 0 ;
7196 PyObject * obj1 = 0 ;
7197 char * kwnames[] = {
7198 (char *) "self",(char *) "bottom", NULL
7199 };
7200
7201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) SWIG_fail;
7202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7203 if (!SWIG_IsOK(res1)) {
7204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetBottom" "', expected argument " "1"" of type '" "wxRect *""'");
7205 }
7206 arg1 = reinterpret_cast< wxRect * >(argp1);
7207 ecode2 = SWIG_AsVal_int(obj1, &val2);
7208 if (!SWIG_IsOK(ecode2)) {
7209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetBottom" "', expected argument " "2"" of type '" "int""'");
7210 }
7211 arg2 = static_cast< int >(val2);
7212 {
1bd55598 7213 (arg1)->SetBottom(arg2);
1bd55598
RD
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 resultobj = SWIG_Py_Void();
7217 return resultobj;
7218fail:
7219 return NULL;
7220}
7221
7222
7223SWIGINTERN PyObject *_wrap_Rect_Inflate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7224 PyObject *resultobj = 0;
7225 wxRect *arg1 = (wxRect *) 0 ;
7226 int arg2 ;
7227 int arg3 ;
7228 wxRect *result = 0 ;
7229 void *argp1 = 0 ;
7230 int res1 = 0 ;
7231 int val2 ;
7232 int ecode2 = 0 ;
7233 int val3 ;
7234 int ecode3 = 0 ;
7235 PyObject * obj0 = 0 ;
7236 PyObject * obj1 = 0 ;
7237 PyObject * obj2 = 0 ;
7238 char * kwnames[] = {
7239 (char *) "self",(char *) "dx",(char *) "dy", NULL
7240 };
7241
7242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7244 if (!SWIG_IsOK(res1)) {
7245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Inflate" "', expected argument " "1"" of type '" "wxRect *""'");
7246 }
7247 arg1 = reinterpret_cast< wxRect * >(argp1);
7248 ecode2 = SWIG_AsVal_int(obj1, &val2);
7249 if (!SWIG_IsOK(ecode2)) {
7250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_Inflate" "', expected argument " "2"" of type '" "int""'");
7251 }
7252 arg2 = static_cast< int >(val2);
7253 ecode3 = SWIG_AsVal_int(obj2, &val3);
7254 if (!SWIG_IsOK(ecode3)) {
7255 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_Inflate" "', expected argument " "3"" of type '" "int""'");
7256 }
7257 arg3 = static_cast< int >(val3);
7258 {
d55e5bfc 7259 {
1bd55598
RD
7260 wxRect &_result_ref = (arg1)->Inflate(arg2,arg3);
7261 result = (wxRect *) &_result_ref;
d55e5bfc 7262 }
1bd55598
RD
7263 if (PyErr_Occurred()) SWIG_fail;
7264 }
7265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, 0 | 0 );
7266 return resultobj;
7267fail:
7268 return NULL;
7269}
7270
7271
7272SWIGINTERN PyObject *_wrap_Rect_Deflate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7273 PyObject *resultobj = 0;
7274 wxRect *arg1 = (wxRect *) 0 ;
7275 int arg2 ;
7276 int arg3 ;
7277 wxRect *result = 0 ;
7278 void *argp1 = 0 ;
7279 int res1 = 0 ;
7280 int val2 ;
7281 int ecode2 = 0 ;
7282 int val3 ;
7283 int ecode3 = 0 ;
7284 PyObject * obj0 = 0 ;
7285 PyObject * obj1 = 0 ;
7286 PyObject * obj2 = 0 ;
7287 char * kwnames[] = {
7288 (char *) "self",(char *) "dx",(char *) "dy", NULL
7289 };
7290
7291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7293 if (!SWIG_IsOK(res1)) {
7294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Deflate" "', expected argument " "1"" of type '" "wxRect *""'");
7295 }
7296 arg1 = reinterpret_cast< wxRect * >(argp1);
7297 ecode2 = SWIG_AsVal_int(obj1, &val2);
7298 if (!SWIG_IsOK(ecode2)) {
7299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_Deflate" "', expected argument " "2"" of type '" "int""'");
7300 }
7301 arg2 = static_cast< int >(val2);
7302 ecode3 = SWIG_AsVal_int(obj2, &val3);
7303 if (!SWIG_IsOK(ecode3)) {
7304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_Deflate" "', expected argument " "3"" of type '" "int""'");
7305 }
7306 arg3 = static_cast< int >(val3);
7307 {
d55e5bfc 7308 {
1bd55598
RD
7309 wxRect &_result_ref = (arg1)->Deflate(arg2,arg3);
7310 result = (wxRect *) &_result_ref;
d55e5bfc 7311 }
1bd55598
RD
7312 if (PyErr_Occurred()) SWIG_fail;
7313 }
7314 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, 0 | 0 );
7315 return resultobj;
7316fail:
7317 return NULL;
7318}
7319
7320
7321SWIGINTERN PyObject *_wrap_Rect_OffsetXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7322 PyObject *resultobj = 0;
7323 wxRect *arg1 = (wxRect *) 0 ;
7324 int arg2 ;
7325 int arg3 ;
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_OffsetXY",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_OffsetXY" "', 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_OffsetXY" "', 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_OffsetXY" "', expected argument " "3"" of type '" "int""'");
7353 }
7354 arg3 = static_cast< int >(val3);
7355 {
1bd55598 7356 (arg1)->Offset(arg2,arg3);
1bd55598
RD
7357 if (PyErr_Occurred()) SWIG_fail;
7358 }
7359 resultobj = SWIG_Py_Void();
7360 return resultobj;
7361fail:
7362 return NULL;
7363}
7364
7365
7366SWIGINTERN PyObject *_wrap_Rect_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7367 PyObject *resultobj = 0;
7368 wxRect *arg1 = (wxRect *) 0 ;
7369 wxPoint *arg2 = 0 ;
7370 void *argp1 = 0 ;
7371 int res1 = 0 ;
7372 wxPoint temp2 ;
7373 PyObject * obj0 = 0 ;
7374 PyObject * obj1 = 0 ;
7375 char * kwnames[] = {
7376 (char *) "self",(char *) "pt", NULL
7377 };
7378
7379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) SWIG_fail;
7380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7381 if (!SWIG_IsOK(res1)) {
7382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Offset" "', expected argument " "1"" of type '" "wxRect *""'");
7383 }
7384 arg1 = reinterpret_cast< wxRect * >(argp1);
7385 {
7386 arg2 = &temp2;
7387 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7388 }
7389 {
1bd55598 7390 (arg1)->Offset((wxPoint const &)*arg2);
1bd55598
RD
7391 if (PyErr_Occurred()) SWIG_fail;
7392 }
7393 resultobj = SWIG_Py_Void();
7394 return resultobj;
7395fail:
7396 return NULL;
7397}
7398
7399
7400SWIGINTERN PyObject *_wrap_Rect_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7401 PyObject *resultobj = 0;
7402 wxRect *arg1 = (wxRect *) 0 ;
7403 wxRect *arg2 = 0 ;
7404 wxRect result;
7405 void *argp1 = 0 ;
7406 int res1 = 0 ;
7407 wxRect temp2 ;
7408 PyObject * obj0 = 0 ;
7409 PyObject * obj1 = 0 ;
7410 char * kwnames[] = {
7411 (char *) "self",(char *) "rect", NULL
7412 };
7413
7414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) SWIG_fail;
7415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7416 if (!SWIG_IsOK(res1)) {
7417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Intersect" "', expected argument " "1"" of type '" "wxRect *""'");
7418 }
7419 arg1 = reinterpret_cast< wxRect * >(argp1);
7420 {
7421 arg2 = &temp2;
7422 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7423 }
7424 {
1bd55598 7425 result = (arg1)->Intersect((wxRect const &)*arg2);
1bd55598
RD
7426 if (PyErr_Occurred()) SWIG_fail;
7427 }
7428 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
7429 return resultobj;
7430fail:
7431 return NULL;
7432}
7433
7434
7435SWIGINTERN PyObject *_wrap_Rect_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7436 PyObject *resultobj = 0;
7437 wxRect *arg1 = (wxRect *) 0 ;
7438 wxRect *arg2 = 0 ;
7439 wxRect result;
7440 void *argp1 = 0 ;
7441 int res1 = 0 ;
7442 wxRect temp2 ;
7443 PyObject * obj0 = 0 ;
7444 PyObject * obj1 = 0 ;
7445 char * kwnames[] = {
7446 (char *) "self",(char *) "rect", NULL
7447 };
7448
7449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Union",kwnames,&obj0,&obj1)) SWIG_fail;
7450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7451 if (!SWIG_IsOK(res1)) {
7452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Union" "', expected argument " "1"" of type '" "wxRect *""'");
7453 }
7454 arg1 = reinterpret_cast< wxRect * >(argp1);
7455 {
7456 arg2 = &temp2;
7457 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7458 }
7459 {
1bd55598 7460 result = (arg1)->Union((wxRect const &)*arg2);
1bd55598
RD
7461 if (PyErr_Occurred()) SWIG_fail;
7462 }
7463 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
7464 return resultobj;
7465fail:
7466 return NULL;
7467}
7468
7469
7470SWIGINTERN PyObject *_wrap_Rect___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7471 PyObject *resultobj = 0;
7472 wxRect *arg1 = (wxRect *) 0 ;
7473 wxRect *arg2 = 0 ;
7474 wxRect result;
7475 void *argp1 = 0 ;
7476 int res1 = 0 ;
7477 wxRect temp2 ;
7478 PyObject * obj0 = 0 ;
7479 PyObject * obj1 = 0 ;
7480 char * kwnames[] = {
7481 (char *) "self",(char *) "rect", NULL
7482 };
7483
7484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) SWIG_fail;
7485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7486 if (!SWIG_IsOK(res1)) {
7487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect___add__" "', expected argument " "1"" of type '" "wxRect const *""'");
7488 }
7489 arg1 = reinterpret_cast< wxRect * >(argp1);
7490 {
7491 arg2 = &temp2;
7492 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7493 }
7494 {
1bd55598 7495 result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2);
1bd55598
RD
7496 if (PyErr_Occurred()) SWIG_fail;
7497 }
7498 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
7499 return resultobj;
7500fail:
7501 return NULL;
7502}
7503
7504
7505SWIGINTERN PyObject *_wrap_Rect___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7506 PyObject *resultobj = 0;
7507 wxRect *arg1 = (wxRect *) 0 ;
7508 wxRect *arg2 = 0 ;
7509 wxRect *result = 0 ;
7510 void *argp1 = 0 ;
7511 int res1 = 0 ;
7512 wxRect temp2 ;
7513 PyObject * obj0 = 0 ;
7514 PyObject * obj1 = 0 ;
7515 char * kwnames[] = {
7516 (char *) "self",(char *) "rect", NULL
7517 };
7518
7519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) SWIG_fail;
7520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, SWIG_POINTER_DISOWN | 0 );
7521 if (!SWIG_IsOK(res1)) {
7522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect___iadd__" "', expected argument " "1"" of type '" "wxRect *""'");
7523 }
7524 arg1 = reinterpret_cast< wxRect * >(argp1);
7525 {
7526 arg2 = &temp2;
7527 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7528 }
7529 {
d55e5bfc 7530 {
1bd55598
RD
7531 wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2);
7532 result = (wxRect *) &_result_ref;
d55e5bfc 7533 }
1bd55598
RD
7534 if (PyErr_Occurred()) SWIG_fail;
7535 }
7536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
7537 return resultobj;
7538fail:
7539 return NULL;
7540}
7541
7542
7543SWIGINTERN PyObject *_wrap_Rect___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7544 PyObject *resultobj = 0;
7545 wxRect *arg1 = (wxRect *) 0 ;
e9d6f3a4 7546 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
7547 bool result;
7548 void *argp1 = 0 ;
7549 int res1 = 0 ;
1bd55598
RD
7550 PyObject * obj0 = 0 ;
7551 PyObject * obj1 = 0 ;
7552 char * kwnames[] = {
e9d6f3a4 7553 (char *) "self",(char *) "other", NULL
1bd55598
RD
7554 };
7555
7556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7558 if (!SWIG_IsOK(res1)) {
e9d6f3a4 7559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect___eq__" "', expected argument " "1"" of type '" "wxRect *""'");
1bd55598
RD
7560 }
7561 arg1 = reinterpret_cast< wxRect * >(argp1);
e9d6f3a4 7562 arg2 = obj1;
1bd55598 7563 {
e9d6f3a4 7564 result = (bool)wxRect___eq__(arg1,arg2);
1bd55598
RD
7565 if (PyErr_Occurred()) SWIG_fail;
7566 }
7567 {
7568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7569 }
7570 return resultobj;
7571fail:
7572 return NULL;
7573}
7574
7575
7576SWIGINTERN PyObject *_wrap_Rect___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7577 PyObject *resultobj = 0;
7578 wxRect *arg1 = (wxRect *) 0 ;
e9d6f3a4 7579 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
7580 bool result;
7581 void *argp1 = 0 ;
7582 int res1 = 0 ;
1bd55598
RD
7583 PyObject * obj0 = 0 ;
7584 PyObject * obj1 = 0 ;
7585 char * kwnames[] = {
e9d6f3a4 7586 (char *) "self",(char *) "other", NULL
1bd55598
RD
7587 };
7588
7589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7591 if (!SWIG_IsOK(res1)) {
e9d6f3a4 7592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect___ne__" "', expected argument " "1"" of type '" "wxRect *""'");
1bd55598
RD
7593 }
7594 arg1 = reinterpret_cast< wxRect * >(argp1);
e9d6f3a4 7595 arg2 = obj1;
1bd55598 7596 {
e9d6f3a4 7597 result = (bool)wxRect___ne__(arg1,arg2);
1bd55598
RD
7598 if (PyErr_Occurred()) SWIG_fail;
7599 }
7600 {
7601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7602 }
7603 return resultobj;
7604fail:
7605 return NULL;
7606}
7607
7608
33d6fd3b 7609SWIGINTERN PyObject *_wrap_Rect_ContainsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
7610 PyObject *resultobj = 0;
7611 wxRect *arg1 = (wxRect *) 0 ;
7612 int arg2 ;
7613 int arg3 ;
7614 bool result;
7615 void *argp1 = 0 ;
7616 int res1 = 0 ;
7617 int val2 ;
7618 int ecode2 = 0 ;
7619 int val3 ;
7620 int ecode3 = 0 ;
7621 PyObject * obj0 = 0 ;
7622 PyObject * obj1 = 0 ;
7623 PyObject * obj2 = 0 ;
7624 char * kwnames[] = {
7625 (char *) "self",(char *) "x",(char *) "y", NULL
7626 };
7627
33d6fd3b 7628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_ContainsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
1bd55598
RD
7629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7630 if (!SWIG_IsOK(res1)) {
33d6fd3b 7631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_ContainsXY" "', expected argument " "1"" of type '" "wxRect const *""'");
1bd55598
RD
7632 }
7633 arg1 = reinterpret_cast< wxRect * >(argp1);
7634 ecode2 = SWIG_AsVal_int(obj1, &val2);
7635 if (!SWIG_IsOK(ecode2)) {
33d6fd3b 7636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_ContainsXY" "', expected argument " "2"" of type '" "int""'");
1bd55598
RD
7637 }
7638 arg2 = static_cast< int >(val2);
7639 ecode3 = SWIG_AsVal_int(obj2, &val3);
7640 if (!SWIG_IsOK(ecode3)) {
33d6fd3b 7641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_ContainsXY" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
7642 }
7643 arg3 = static_cast< int >(val3);
7644 {
33d6fd3b 7645 result = (bool)((wxRect const *)arg1)->Contains(arg2,arg3);
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_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
7658 PyObject *resultobj = 0;
7659 wxRect *arg1 = (wxRect *) 0 ;
7660 wxPoint *arg2 = 0 ;
7661 bool result;
7662 void *argp1 = 0 ;
7663 int res1 = 0 ;
7664 wxPoint temp2 ;
7665 PyObject * obj0 = 0 ;
7666 PyObject * obj1 = 0 ;
7667 char * kwnames[] = {
7668 (char *) "self",(char *) "pt", NULL
7669 };
7670
33d6fd3b 7671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Contains",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
7672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7673 if (!SWIG_IsOK(res1)) {
33d6fd3b 7674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Contains" "', expected argument " "1"" of type '" "wxRect const *""'");
1bd55598
RD
7675 }
7676 arg1 = reinterpret_cast< wxRect * >(argp1);
7677 {
7678 arg2 = &temp2;
7679 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7680 }
7681 {
33d6fd3b 7682 result = (bool)((wxRect const *)arg1)->Contains((wxPoint const &)*arg2);
1bd55598
RD
7683 if (PyErr_Occurred()) SWIG_fail;
7684 }
7685 {
7686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7687 }
7688 return resultobj;
7689fail:
7690 return NULL;
7691}
7692
7693
33d6fd3b 7694SWIGINTERN PyObject *_wrap_Rect_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
fc46b7f3
RD
7695 PyObject *resultobj = 0;
7696 wxRect *arg1 = (wxRect *) 0 ;
7697 wxRect *arg2 = 0 ;
7698 bool result;
7699 void *argp1 = 0 ;
7700 int res1 = 0 ;
7701 wxRect temp2 ;
7702 PyObject * obj0 = 0 ;
7703 PyObject * obj1 = 0 ;
7704 char * kwnames[] = {
7705 (char *) "self",(char *) "rect", NULL
7706 };
7707
33d6fd3b 7708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
fc46b7f3
RD
7709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7710 if (!SWIG_IsOK(res1)) {
33d6fd3b 7711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_ContainsRect" "', expected argument " "1"" of type '" "wxRect const *""'");
fc46b7f3
RD
7712 }
7713 arg1 = reinterpret_cast< wxRect * >(argp1);
7714 {
7715 arg2 = &temp2;
7716 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7717 }
7718 {
33d6fd3b 7719 result = (bool)((wxRect const *)arg1)->Contains((wxRect const &)*arg2);
fc46b7f3
RD
7720 if (PyErr_Occurred()) SWIG_fail;
7721 }
7722 {
7723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7724 }
7725 return resultobj;
7726fail:
7727 return NULL;
7728}
7729
7730
1bd55598
RD
7731SWIGINTERN PyObject *_wrap_Rect_Intersects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7732 PyObject *resultobj = 0;
7733 wxRect *arg1 = (wxRect *) 0 ;
7734 wxRect *arg2 = 0 ;
7735 bool result;
7736 void *argp1 = 0 ;
7737 int res1 = 0 ;
7738 wxRect temp2 ;
7739 PyObject * obj0 = 0 ;
7740 PyObject * obj1 = 0 ;
7741 char * kwnames[] = {
7742 (char *) "self",(char *) "rect", NULL
7743 };
7744
7745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) SWIG_fail;
7746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7747 if (!SWIG_IsOK(res1)) {
7748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Intersects" "', expected argument " "1"" of type '" "wxRect const *""'");
7749 }
7750 arg1 = reinterpret_cast< wxRect * >(argp1);
7751 {
7752 arg2 = &temp2;
7753 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7754 }
7755 {
1bd55598 7756 result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2);
1bd55598
RD
7757 if (PyErr_Occurred()) SWIG_fail;
7758 }
7759 {
7760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7761 }
7762 return resultobj;
7763fail:
7764 return NULL;
7765}
7766
7767
7768SWIGINTERN PyObject *_wrap_Rect_CenterIn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7769 PyObject *resultobj = 0;
7770 wxRect *arg1 = (wxRect *) 0 ;
7771 wxRect *arg2 = 0 ;
7772 int arg3 = (int) wxBOTH ;
7773 wxRect result;
7774 void *argp1 = 0 ;
7775 int res1 = 0 ;
7776 wxRect temp2 ;
7777 int val3 ;
7778 int ecode3 = 0 ;
7779 PyObject * obj0 = 0 ;
7780 PyObject * obj1 = 0 ;
7781 PyObject * obj2 = 0 ;
7782 char * kwnames[] = {
7783 (char *) "self",(char *) "r",(char *) "dir", NULL
7784 };
7785
7786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Rect_CenterIn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7788 if (!SWIG_IsOK(res1)) {
7789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_CenterIn" "', expected argument " "1"" of type '" "wxRect *""'");
7790 }
7791 arg1 = reinterpret_cast< wxRect * >(argp1);
7792 {
7793 arg2 = &temp2;
7794 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7795 }
7796 if (obj2) {
7797 ecode3 = SWIG_AsVal_int(obj2, &val3);
7798 if (!SWIG_IsOK(ecode3)) {
7799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_CenterIn" "', expected argument " "3"" of type '" "int""'");
7800 }
7801 arg3 = static_cast< int >(val3);
7802 }
7803 {
1bd55598 7804 result = (arg1)->CenterIn((wxRect const &)*arg2,arg3);
1bd55598
RD
7805 if (PyErr_Occurred()) SWIG_fail;
7806 }
7807 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
7808 return resultobj;
7809fail:
7810 return NULL;
7811}
7812
7813
7814SWIGINTERN PyObject *_wrap_Rect_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7815 PyObject *resultobj = 0;
7816 wxRect *arg1 = (wxRect *) 0 ;
7817 int arg2 ;
7818 void *argp1 = 0 ;
7819 int res1 = 0 ;
7820 int val2 ;
7821 int ecode2 = 0 ;
7822 PyObject *swig_obj[2] ;
7823
7824 if (!SWIG_Python_UnpackTuple(args,"Rect_x_set",2,2,swig_obj)) SWIG_fail;
7825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7826 if (!SWIG_IsOK(res1)) {
7827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_x_set" "', expected argument " "1"" of type '" "wxRect *""'");
7828 }
7829 arg1 = reinterpret_cast< wxRect * >(argp1);
7830 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
7831 if (!SWIG_IsOK(ecode2)) {
7832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_x_set" "', expected argument " "2"" of type '" "int""'");
7833 }
7834 arg2 = static_cast< int >(val2);
7835 if (arg1) (arg1)->x = arg2;
7836
7837 resultobj = SWIG_Py_Void();
7838 return resultobj;
7839fail:
7840 return NULL;
d55e5bfc
RD
7841}
7842
7843
1bd55598
RD
7844SWIGINTERN PyObject *_wrap_Rect_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7845 PyObject *resultobj = 0;
7846 wxRect *arg1 = (wxRect *) 0 ;
7847 int result;
7848 void *argp1 = 0 ;
7849 int res1 = 0 ;
7850 PyObject *swig_obj[1] ;
7851
7852 if (!args) SWIG_fail;
7853 swig_obj[0] = args;
7854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7855 if (!SWIG_IsOK(res1)) {
7856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_x_get" "', expected argument " "1"" of type '" "wxRect *""'");
7857 }
7858 arg1 = reinterpret_cast< wxRect * >(argp1);
7859 result = (int) ((arg1)->x);
7860 resultobj = SWIG_From_int(static_cast< int >(result));
7861 return resultobj;
7862fail:
7863 return NULL;
7864}
7865
7866
7867SWIGINTERN PyObject *_wrap_Rect_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7868 PyObject *resultobj = 0;
7869 wxRect *arg1 = (wxRect *) 0 ;
7870 int arg2 ;
7871 void *argp1 = 0 ;
7872 int res1 = 0 ;
7873 int val2 ;
7874 int ecode2 = 0 ;
7875 PyObject *swig_obj[2] ;
7876
7877 if (!SWIG_Python_UnpackTuple(args,"Rect_y_set",2,2,swig_obj)) SWIG_fail;
7878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7879 if (!SWIG_IsOK(res1)) {
7880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_y_set" "', expected argument " "1"" of type '" "wxRect *""'");
7881 }
7882 arg1 = reinterpret_cast< wxRect * >(argp1);
7883 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
7884 if (!SWIG_IsOK(ecode2)) {
7885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_y_set" "', expected argument " "2"" of type '" "int""'");
7886 }
7887 arg2 = static_cast< int >(val2);
7888 if (arg1) (arg1)->y = arg2;
7889
7890 resultobj = SWIG_Py_Void();
7891 return resultobj;
7892fail:
7893 return NULL;
d55e5bfc
RD
7894}
7895
7896
1bd55598
RD
7897SWIGINTERN PyObject *_wrap_Rect_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7898 PyObject *resultobj = 0;
7899 wxRect *arg1 = (wxRect *) 0 ;
7900 int result;
7901 void *argp1 = 0 ;
7902 int res1 = 0 ;
7903 PyObject *swig_obj[1] ;
7904
7905 if (!args) SWIG_fail;
7906 swig_obj[0] = args;
7907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7908 if (!SWIG_IsOK(res1)) {
7909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_y_get" "', expected argument " "1"" of type '" "wxRect *""'");
7910 }
7911 arg1 = reinterpret_cast< wxRect * >(argp1);
7912 result = (int) ((arg1)->y);
7913 resultobj = SWIG_From_int(static_cast< int >(result));
7914 return resultobj;
7915fail:
7916 return NULL;
7917}
7918
7919
7920SWIGINTERN PyObject *_wrap_Rect_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7921 PyObject *resultobj = 0;
7922 wxRect *arg1 = (wxRect *) 0 ;
7923 int arg2 ;
7924 void *argp1 = 0 ;
7925 int res1 = 0 ;
7926 int val2 ;
7927 int ecode2 = 0 ;
7928 PyObject *swig_obj[2] ;
7929
7930 if (!SWIG_Python_UnpackTuple(args,"Rect_width_set",2,2,swig_obj)) SWIG_fail;
7931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7932 if (!SWIG_IsOK(res1)) {
7933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_width_set" "', expected argument " "1"" of type '" "wxRect *""'");
7934 }
7935 arg1 = reinterpret_cast< wxRect * >(argp1);
7936 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
7937 if (!SWIG_IsOK(ecode2)) {
7938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_width_set" "', expected argument " "2"" of type '" "int""'");
7939 }
7940 arg2 = static_cast< int >(val2);
7941 if (arg1) (arg1)->width = arg2;
7942
7943 resultobj = SWIG_Py_Void();
7944 return resultobj;
7945fail:
7946 return NULL;
d55e5bfc
RD
7947}
7948
7949
1bd55598
RD
7950SWIGINTERN PyObject *_wrap_Rect_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7951 PyObject *resultobj = 0;
7952 wxRect *arg1 = (wxRect *) 0 ;
7953 int result;
7954 void *argp1 = 0 ;
7955 int res1 = 0 ;
7956 PyObject *swig_obj[1] ;
7957
7958 if (!args) SWIG_fail;
7959 swig_obj[0] = args;
7960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7961 if (!SWIG_IsOK(res1)) {
7962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_width_get" "', expected argument " "1"" of type '" "wxRect *""'");
7963 }
7964 arg1 = reinterpret_cast< wxRect * >(argp1);
7965 result = (int) ((arg1)->width);
7966 resultobj = SWIG_From_int(static_cast< int >(result));
7967 return resultobj;
7968fail:
7969 return NULL;
7970}
7971
7972
7973SWIGINTERN PyObject *_wrap_Rect_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7974 PyObject *resultobj = 0;
7975 wxRect *arg1 = (wxRect *) 0 ;
7976 int arg2 ;
7977 void *argp1 = 0 ;
7978 int res1 = 0 ;
7979 int val2 ;
7980 int ecode2 = 0 ;
7981 PyObject *swig_obj[2] ;
7982
7983 if (!SWIG_Python_UnpackTuple(args,"Rect_height_set",2,2,swig_obj)) SWIG_fail;
7984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
7985 if (!SWIG_IsOK(res1)) {
7986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_height_set" "', expected argument " "1"" of type '" "wxRect *""'");
7987 }
7988 arg1 = reinterpret_cast< wxRect * >(argp1);
7989 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
7990 if (!SWIG_IsOK(ecode2)) {
7991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_height_set" "', expected argument " "2"" of type '" "int""'");
7992 }
7993 arg2 = static_cast< int >(val2);
7994 if (arg1) (arg1)->height = arg2;
7995
7996 resultobj = SWIG_Py_Void();
7997 return resultobj;
7998fail:
7999 return NULL;
d55e5bfc
RD
8000}
8001
8002
1bd55598
RD
8003SWIGINTERN PyObject *_wrap_Rect_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8004 PyObject *resultobj = 0;
8005 wxRect *arg1 = (wxRect *) 0 ;
8006 int result;
8007 void *argp1 = 0 ;
8008 int res1 = 0 ;
8009 PyObject *swig_obj[1] ;
8010
8011 if (!args) SWIG_fail;
8012 swig_obj[0] = args;
8013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
8014 if (!SWIG_IsOK(res1)) {
8015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_height_get" "', expected argument " "1"" of type '" "wxRect *""'");
8016 }
8017 arg1 = reinterpret_cast< wxRect * >(argp1);
8018 result = (int) ((arg1)->height);
8019 resultobj = SWIG_From_int(static_cast< int >(result));
8020 return resultobj;
8021fail:
8022 return NULL;
8023}
8024
8025
8026SWIGINTERN PyObject *_wrap_Rect_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8027 PyObject *resultobj = 0;
8028 wxRect *arg1 = (wxRect *) 0 ;
8029 int arg2 = (int) 0 ;
8030 int arg3 = (int) 0 ;
8031 int arg4 = (int) 0 ;
8032 int arg5 = (int) 0 ;
8033 void *argp1 = 0 ;
8034 int res1 = 0 ;
8035 int val2 ;
8036 int ecode2 = 0 ;
8037 int val3 ;
8038 int ecode3 = 0 ;
8039 int val4 ;
8040 int ecode4 = 0 ;
8041 int val5 ;
8042 int ecode5 = 0 ;
8043 PyObject * obj0 = 0 ;
8044 PyObject * obj1 = 0 ;
8045 PyObject * obj2 = 0 ;
8046 PyObject * obj3 = 0 ;
8047 PyObject * obj4 = 0 ;
8048 char * kwnames[] = {
8049 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8050 };
8051
8052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
8054 if (!SWIG_IsOK(res1)) {
8055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Set" "', expected argument " "1"" of type '" "wxRect *""'");
8056 }
8057 arg1 = reinterpret_cast< wxRect * >(argp1);
8058 if (obj1) {
8059 ecode2 = SWIG_AsVal_int(obj1, &val2);
8060 if (!SWIG_IsOK(ecode2)) {
8061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_Set" "', expected argument " "2"" of type '" "int""'");
8062 }
8063 arg2 = static_cast< int >(val2);
8064 }
8065 if (obj2) {
8066 ecode3 = SWIG_AsVal_int(obj2, &val3);
8067 if (!SWIG_IsOK(ecode3)) {
8068 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_Set" "', expected argument " "3"" of type '" "int""'");
8069 }
8070 arg3 = static_cast< int >(val3);
8071 }
8072 if (obj3) {
8073 ecode4 = SWIG_AsVal_int(obj3, &val4);
8074 if (!SWIG_IsOK(ecode4)) {
8075 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Rect_Set" "', expected argument " "4"" of type '" "int""'");
8076 }
8077 arg4 = static_cast< int >(val4);
8078 }
8079 if (obj4) {
8080 ecode5 = SWIG_AsVal_int(obj4, &val5);
8081 if (!SWIG_IsOK(ecode5)) {
8082 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Rect_Set" "', expected argument " "5"" of type '" "int""'");
8083 }
8084 arg5 = static_cast< int >(val5);
8085 }
8086 {
1bd55598 8087 wxRect_Set(arg1,arg2,arg3,arg4,arg5);
1bd55598
RD
8088 if (PyErr_Occurred()) SWIG_fail;
8089 }
8090 resultobj = SWIG_Py_Void();
8091 return resultobj;
8092fail:
8093 return NULL;
070c48b4
RD
8094}
8095
8096
1bd55598
RD
8097SWIGINTERN PyObject *_wrap_Rect_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8098 PyObject *resultobj = 0;
8099 wxRect *arg1 = (wxRect *) 0 ;
8100 PyObject *result = 0 ;
8101 void *argp1 = 0 ;
8102 int res1 = 0 ;
8103 PyObject *swig_obj[1] ;
8104
8105 if (!args) SWIG_fail;
8106 swig_obj[0] = args;
8107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
8108 if (!SWIG_IsOK(res1)) {
8109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Get" "', expected argument " "1"" of type '" "wxRect *""'");
8110 }
8111 arg1 = reinterpret_cast< wxRect * >(argp1);
8112 {
1bd55598 8113 result = (PyObject *)wxRect_Get(arg1);
1bd55598
RD
8114 if (PyErr_Occurred()) SWIG_fail;
8115 }
8116 resultobj = result;
8117 return resultobj;
8118fail:
8119 return NULL;
d55e5bfc
RD
8120}
8121
8122
1bd55598
RD
8123SWIGINTERN PyObject *Rect_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8124 PyObject *obj;
8125 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8126 SWIG_TypeNewClientData(SWIGTYPE_p_wxRect, SWIG_NewClientData(obj));
8127 return SWIG_Py_Void();
d55e5bfc
RD
8128}
8129
1bd55598
RD
8130SWIGINTERN PyObject *Rect_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8131 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8132}
8133
1bd55598
RD
8134SWIGINTERN PyObject *_wrap_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8135 PyObject *resultobj = 0;
8136 wxRect *arg1 = (wxRect *) 0 ;
8137 wxRect *arg2 = (wxRect *) 0 ;
8138 PyObject *result = 0 ;
8139 void *argp1 = 0 ;
8140 int res1 = 0 ;
8141 void *argp2 = 0 ;
8142 int res2 = 0 ;
8143 PyObject * obj0 = 0 ;
8144 PyObject * obj1 = 0 ;
8145 char * kwnames[] = {
8146 (char *) "r1",(char *) "r2", NULL
8147 };
8148
8149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
8151 if (!SWIG_IsOK(res1)) {
8152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntersectRect" "', expected argument " "1"" of type '" "wxRect *""'");
8153 }
8154 arg1 = reinterpret_cast< wxRect * >(argp1);
8155 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
8156 if (!SWIG_IsOK(res2)) {
8157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntersectRect" "', expected argument " "2"" of type '" "wxRect *""'");
8158 }
8159 arg2 = reinterpret_cast< wxRect * >(argp2);
8160 {
8161 if (!wxPyCheckForApp()) SWIG_fail;
8162 PyThreadState* __tstate = wxPyBeginAllowThreads();
8163 result = (PyObject *)wxIntersectRect(arg1,arg2);
8164 wxPyEndAllowThreads(__tstate);
8165 if (PyErr_Occurred()) SWIG_fail;
8166 }
8167 resultobj = result;
8168 return resultobj;
8169fail:
8170 return NULL;
8171}
8172
8173
8174SWIGINTERN PyObject *_wrap_new_Point2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8175 PyObject *resultobj = 0;
8176 double arg1 = (double) 0.0 ;
8177 double arg2 = (double) 0.0 ;
8178 wxPoint2D *result = 0 ;
8179 double val1 ;
8180 int ecode1 = 0 ;
8181 double val2 ;
8182 int ecode2 = 0 ;
8183 PyObject * obj0 = 0 ;
8184 PyObject * obj1 = 0 ;
8185 char * kwnames[] = {
8186 (char *) "x",(char *) "y", NULL
8187 };
8188
8189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) SWIG_fail;
8190 if (obj0) {
8191 ecode1 = SWIG_AsVal_double(obj0, &val1);
8192 if (!SWIG_IsOK(ecode1)) {
8193 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Point2D" "', expected argument " "1"" of type '" "double""'");
8194 }
8195 arg1 = static_cast< double >(val1);
8196 }
8197 if (obj1) {
8198 ecode2 = SWIG_AsVal_double(obj1, &val2);
8199 if (!SWIG_IsOK(ecode2)) {
8200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Point2D" "', expected argument " "2"" of type '" "double""'");
8201 }
8202 arg2 = static_cast< double >(val2);
8203 }
8204 {
1bd55598 8205 result = (wxPoint2D *)new wxPoint2D(arg1,arg2);
1bd55598
RD
8206 if (PyErr_Occurred()) SWIG_fail;
8207 }
8208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_NEW | 0 );
8209 return resultobj;
8210fail:
8211 return NULL;
d55e5bfc
RD
8212}
8213
8214
1bd55598
RD
8215SWIGINTERN PyObject *_wrap_new_Point2DCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8216 PyObject *resultobj = 0;
8217 wxPoint2D *arg1 = 0 ;
8218 wxPoint2D *result = 0 ;
8219 wxPoint2D temp1 ;
8220 PyObject * obj0 = 0 ;
8221 char * kwnames[] = {
8222 (char *) "pt", NULL
8223 };
8224
8225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) SWIG_fail;
8226 {
8227 arg1 = &temp1;
8228 if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail;
8229 }
8230 {
1bd55598 8231 result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1);
1bd55598
RD
8232 if (PyErr_Occurred()) SWIG_fail;
8233 }
8234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
8235 return resultobj;
8236fail:
8237 return NULL;
d55e5bfc
RD
8238}
8239
8240
1bd55598
RD
8241SWIGINTERN PyObject *_wrap_new_Point2DFromPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8242 PyObject *resultobj = 0;
8243 wxPoint *arg1 = 0 ;
8244 wxPoint2D *result = 0 ;
8245 wxPoint temp1 ;
8246 PyObject * obj0 = 0 ;
8247 char * kwnames[] = {
8248 (char *) "pt", NULL
8249 };
8250
8251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) SWIG_fail;
8252 {
8253 arg1 = &temp1;
8254 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
8255 }
8256 {
1bd55598 8257 result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1);
1bd55598
RD
8258 if (PyErr_Occurred()) SWIG_fail;
8259 }
8260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
8261 return resultobj;
8262fail:
8263 return NULL;
8264}
8265
8266
b39fe951
RD
8267SWIGINTERN PyObject *_wrap_delete_Point2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8268 PyObject *resultobj = 0;
8269 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8270 void *argp1 = 0 ;
8271 int res1 = 0 ;
8272 PyObject *swig_obj[1] ;
8273
8274 if (!args) SWIG_fail;
8275 swig_obj[0] = args;
8276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, SWIG_POINTER_DISOWN | 0 );
8277 if (!SWIG_IsOK(res1)) {
8278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Point2D" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8279 }
8280 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8281 {
b39fe951
RD
8282 delete arg1;
8283
b39fe951
RD
8284 if (PyErr_Occurred()) SWIG_fail;
8285 }
8286 resultobj = SWIG_Py_Void();
8287 return resultobj;
8288fail:
8289 return NULL;
8290}
8291
8292
1bd55598
RD
8293SWIGINTERN PyObject *_wrap_Point2D_GetFloor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8294 PyObject *resultobj = 0;
8295 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8296 int *arg2 = (int *) 0 ;
8297 int *arg3 = (int *) 0 ;
8298 void *argp1 = 0 ;
8299 int res1 = 0 ;
8300 int temp2 ;
8301 int res2 = SWIG_TMPOBJ ;
8302 int temp3 ;
8303 int res3 = SWIG_TMPOBJ ;
8304 PyObject *swig_obj[1] ;
8305
8306 arg2 = &temp2;
8307 arg3 = &temp3;
8308 if (!args) SWIG_fail;
8309 swig_obj[0] = args;
8310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8311 if (!SWIG_IsOK(res1)) {
8312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetFloor" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
8313 }
8314 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8315 {
1bd55598 8316 ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3);
1bd55598
RD
8317 if (PyErr_Occurred()) SWIG_fail;
8318 }
8319 resultobj = SWIG_Py_Void();
8320 if (SWIG_IsTmpObj(res2)) {
8321 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
8322 } else {
8323 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8324 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
8325 }
8326 if (SWIG_IsTmpObj(res3)) {
8327 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
8328 } else {
8329 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8330 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
8331 }
8332 return resultobj;
8333fail:
8334 return NULL;
8335}
8336
8337
8338SWIGINTERN PyObject *_wrap_Point2D_GetRounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8339 PyObject *resultobj = 0;
8340 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8341 int *arg2 = (int *) 0 ;
8342 int *arg3 = (int *) 0 ;
8343 void *argp1 = 0 ;
8344 int res1 = 0 ;
8345 int temp2 ;
8346 int res2 = SWIG_TMPOBJ ;
8347 int temp3 ;
8348 int res3 = SWIG_TMPOBJ ;
8349 PyObject *swig_obj[1] ;
8350
8351 arg2 = &temp2;
8352 arg3 = &temp3;
8353 if (!args) SWIG_fail;
8354 swig_obj[0] = args;
8355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8356 if (!SWIG_IsOK(res1)) {
8357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetRounded" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
8358 }
8359 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8360 {
1bd55598 8361 ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3);
1bd55598
RD
8362 if (PyErr_Occurred()) SWIG_fail;
8363 }
8364 resultobj = SWIG_Py_Void();
8365 if (SWIG_IsTmpObj(res2)) {
8366 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
8367 } else {
8368 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8369 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
8370 }
8371 if (SWIG_IsTmpObj(res3)) {
8372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
8373 } else {
8374 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
8376 }
8377 return resultobj;
8378fail:
8379 return NULL;
d55e5bfc
RD
8380}
8381
8382
1bd55598
RD
8383SWIGINTERN PyObject *_wrap_Point2D_GetVectorLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8384 PyObject *resultobj = 0;
8385 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8386 double result;
8387 void *argp1 = 0 ;
8388 int res1 = 0 ;
8389 PyObject *swig_obj[1] ;
8390
8391 if (!args) SWIG_fail;
8392 swig_obj[0] = args;
8393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8394 if (!SWIG_IsOK(res1)) {
8395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetVectorLength" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
8396 }
8397 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8398 {
1bd55598 8399 result = (double)((wxPoint2D const *)arg1)->GetVectorLength();
1bd55598
RD
8400 if (PyErr_Occurred()) SWIG_fail;
8401 }
8402 resultobj = SWIG_From_double(static_cast< double >(result));
8403 return resultobj;
8404fail:
8405 return NULL;
d55e5bfc
RD
8406}
8407
8408
1bd55598
RD
8409SWIGINTERN PyObject *_wrap_Point2D_GetVectorAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8410 PyObject *resultobj = 0;
8411 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8412 double result;
8413 void *argp1 = 0 ;
8414 int res1 = 0 ;
8415 PyObject *swig_obj[1] ;
8416
8417 if (!args) SWIG_fail;
8418 swig_obj[0] = args;
8419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8420 if (!SWIG_IsOK(res1)) {
8421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetVectorAngle" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
8422 }
8423 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8424 {
1bd55598 8425 result = (double)((wxPoint2D const *)arg1)->GetVectorAngle();
1bd55598
RD
8426 if (PyErr_Occurred()) SWIG_fail;
8427 }
8428 resultobj = SWIG_From_double(static_cast< double >(result));
8429 return resultobj;
8430fail:
8431 return NULL;
8432}
8433
8434
8435SWIGINTERN PyObject *_wrap_Point2D_SetVectorLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8436 PyObject *resultobj = 0;
8437 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8438 double arg2 ;
8439 void *argp1 = 0 ;
8440 int res1 = 0 ;
8441 double val2 ;
8442 int ecode2 = 0 ;
8443 PyObject * obj0 = 0 ;
8444 PyObject * obj1 = 0 ;
8445 char * kwnames[] = {
8446 (char *) "self",(char *) "length", NULL
8447 };
8448
8449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) SWIG_fail;
8450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8451 if (!SWIG_IsOK(res1)) {
8452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_SetVectorLength" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8453 }
8454 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8455 ecode2 = SWIG_AsVal_double(obj1, &val2);
8456 if (!SWIG_IsOK(ecode2)) {
8457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point2D_SetVectorLength" "', expected argument " "2"" of type '" "double""'");
8458 }
8459 arg2 = static_cast< double >(val2);
8460 {
1bd55598 8461 (arg1)->SetVectorLength(arg2);
1bd55598
RD
8462 if (PyErr_Occurred()) SWIG_fail;
8463 }
8464 resultobj = SWIG_Py_Void();
8465 return resultobj;
8466fail:
8467 return NULL;
8468}
8469
8470
8471SWIGINTERN PyObject *_wrap_Point2D_SetVectorAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8472 PyObject *resultobj = 0;
8473 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8474 double arg2 ;
8475 void *argp1 = 0 ;
8476 int res1 = 0 ;
8477 double val2 ;
8478 int ecode2 = 0 ;
8479 PyObject * obj0 = 0 ;
8480 PyObject * obj1 = 0 ;
8481 char * kwnames[] = {
8482 (char *) "self",(char *) "degrees", NULL
8483 };
8484
8485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) SWIG_fail;
8486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8487 if (!SWIG_IsOK(res1)) {
8488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_SetVectorAngle" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8489 }
8490 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8491 ecode2 = SWIG_AsVal_double(obj1, &val2);
8492 if (!SWIG_IsOK(ecode2)) {
8493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point2D_SetVectorAngle" "', expected argument " "2"" of type '" "double""'");
8494 }
8495 arg2 = static_cast< double >(val2);
8496 {
1bd55598 8497 (arg1)->SetVectorAngle(arg2);
1bd55598
RD
8498 if (PyErr_Occurred()) SWIG_fail;
8499 }
8500 resultobj = SWIG_Py_Void();
8501 return resultobj;
8502fail:
8503 return NULL;
8504}
8505
8506
8507SWIGINTERN PyObject *_wrap_Point2D_GetDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8508 PyObject *resultobj = 0;
8509 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8510 wxPoint2D *arg2 = 0 ;
8511 double result;
8512 void *argp1 = 0 ;
8513 int res1 = 0 ;
8514 wxPoint2D temp2 ;
8515 PyObject * obj0 = 0 ;
8516 PyObject * obj1 = 0 ;
8517 char * kwnames[] = {
8518 (char *) "self",(char *) "pt", NULL
8519 };
8520
8521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) SWIG_fail;
8522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8523 if (!SWIG_IsOK(res1)) {
8524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetDistance" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
8525 }
8526 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8527 {
8528 arg2 = &temp2;
8529 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
8530 }
8531 {
1bd55598 8532 result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2);
1bd55598
RD
8533 if (PyErr_Occurred()) SWIG_fail;
8534 }
8535 resultobj = SWIG_From_double(static_cast< double >(result));
8536 return resultobj;
8537fail:
8538 return NULL;
8539}
8540
8541
8542SWIGINTERN PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8543 PyObject *resultobj = 0;
8544 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8545 wxPoint2D *arg2 = 0 ;
8546 double result;
8547 void *argp1 = 0 ;
8548 int res1 = 0 ;
8549 wxPoint2D temp2 ;
8550 PyObject * obj0 = 0 ;
8551 PyObject * obj1 = 0 ;
8552 char * kwnames[] = {
8553 (char *) "self",(char *) "pt", NULL
8554 };
8555
8556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) SWIG_fail;
8557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8558 if (!SWIG_IsOK(res1)) {
8559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetDistanceSquare" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
8560 }
8561 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8562 {
8563 arg2 = &temp2;
8564 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
8565 }
8566 {
1bd55598 8567 result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2);
1bd55598
RD
8568 if (PyErr_Occurred()) SWIG_fail;
8569 }
8570 resultobj = SWIG_From_double(static_cast< double >(result));
8571 return resultobj;
8572fail:
8573 return NULL;
8574}
8575
8576
8577SWIGINTERN PyObject *_wrap_Point2D_GetDotProduct(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8578 PyObject *resultobj = 0;
8579 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8580 wxPoint2D *arg2 = 0 ;
8581 double result;
8582 void *argp1 = 0 ;
8583 int res1 = 0 ;
8584 wxPoint2D temp2 ;
8585 PyObject * obj0 = 0 ;
8586 PyObject * obj1 = 0 ;
8587 char * kwnames[] = {
8588 (char *) "self",(char *) "vec", NULL
8589 };
8590
8591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) SWIG_fail;
8592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8593 if (!SWIG_IsOK(res1)) {
8594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetDotProduct" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
8595 }
8596 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8597 {
8598 arg2 = &temp2;
8599 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
8600 }
8601 {
1bd55598 8602 result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2);
1bd55598
RD
8603 if (PyErr_Occurred()) SWIG_fail;
8604 }
8605 resultobj = SWIG_From_double(static_cast< double >(result));
8606 return resultobj;
8607fail:
8608 return NULL;
8609}
8610
8611
8612SWIGINTERN PyObject *_wrap_Point2D_GetCrossProduct(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8613 PyObject *resultobj = 0;
8614 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8615 wxPoint2D *arg2 = 0 ;
8616 double result;
8617 void *argp1 = 0 ;
8618 int res1 = 0 ;
8619 wxPoint2D temp2 ;
8620 PyObject * obj0 = 0 ;
8621 PyObject * obj1 = 0 ;
8622 char * kwnames[] = {
8623 (char *) "self",(char *) "vec", NULL
8624 };
8625
8626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) SWIG_fail;
8627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8628 if (!SWIG_IsOK(res1)) {
8629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetCrossProduct" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
8630 }
8631 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8632 {
8633 arg2 = &temp2;
8634 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
8635 }
8636 {
1bd55598 8637 result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2);
1bd55598
RD
8638 if (PyErr_Occurred()) SWIG_fail;
8639 }
8640 resultobj = SWIG_From_double(static_cast< double >(result));
8641 return resultobj;
8642fail:
8643 return NULL;
d55e5bfc
RD
8644}
8645
8646
1bd55598
RD
8647SWIGINTERN PyObject *_wrap_Point2D___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8648 PyObject *resultobj = 0;
8649 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8650 wxPoint2D result;
8651 void *argp1 = 0 ;
8652 int res1 = 0 ;
8653 PyObject *swig_obj[1] ;
8654
8655 if (!args) SWIG_fail;
8656 swig_obj[0] = args;
8657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8658 if (!SWIG_IsOK(res1)) {
8659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___neg__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8660 }
8661 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8662 {
1bd55598 8663 result = (arg1)->operator -();
1bd55598
RD
8664 if (PyErr_Occurred()) SWIG_fail;
8665 }
8666 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
8667 return resultobj;
8668fail:
8669 return NULL;
8670}
8671
8672
8673SWIGINTERN PyObject *_wrap_Point2D___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8674 PyObject *resultobj = 0;
8675 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8676 wxPoint2D *arg2 = 0 ;
8677 wxPoint2D *result = 0 ;
8678 void *argp1 = 0 ;
8679 int res1 = 0 ;
8680 wxPoint2D temp2 ;
8681 PyObject * obj0 = 0 ;
8682 PyObject * obj1 = 0 ;
8683 char * kwnames[] = {
8684 (char *) "self",(char *) "pt", NULL
8685 };
8686
8687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) SWIG_fail;
8688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, SWIG_POINTER_DISOWN | 0 );
8689 if (!SWIG_IsOK(res1)) {
8690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___iadd__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8691 }
8692 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8693 {
8694 arg2 = &temp2;
8695 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
8696 }
8697 {
36ed4f51 8698 {
1bd55598
RD
8699 wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2);
8700 result = (wxPoint2D *) &_result_ref;
36ed4f51 8701 }
1bd55598
RD
8702 if (PyErr_Occurred()) SWIG_fail;
8703 }
8704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
8705 return resultobj;
8706fail:
8707 return NULL;
8708}
8709
8710
8711SWIGINTERN PyObject *_wrap_Point2D___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8712 PyObject *resultobj = 0;
8713 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8714 wxPoint2D *arg2 = 0 ;
8715 wxPoint2D *result = 0 ;
8716 void *argp1 = 0 ;
8717 int res1 = 0 ;
8718 wxPoint2D temp2 ;
8719 PyObject * obj0 = 0 ;
8720 PyObject * obj1 = 0 ;
8721 char * kwnames[] = {
8722 (char *) "self",(char *) "pt", NULL
8723 };
8724
8725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) SWIG_fail;
8726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, SWIG_POINTER_DISOWN | 0 );
8727 if (!SWIG_IsOK(res1)) {
8728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___isub__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8729 }
8730 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8731 {
8732 arg2 = &temp2;
8733 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
8734 }
8735 {
d55e5bfc 8736 {
1bd55598
RD
8737 wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2);
8738 result = (wxPoint2D *) &_result_ref;
d55e5bfc 8739 }
1bd55598
RD
8740 if (PyErr_Occurred()) SWIG_fail;
8741 }
8742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
8743 return resultobj;
8744fail:
8745 return NULL;
8746}
8747
8748
8749SWIGINTERN PyObject *_wrap_Point2D___imul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8750 PyObject *resultobj = 0;
8751 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8752 wxPoint2D *arg2 = 0 ;
8753 wxPoint2D *result = 0 ;
8754 void *argp1 = 0 ;
8755 int res1 = 0 ;
8756 wxPoint2D temp2 ;
8757 PyObject * obj0 = 0 ;
8758 PyObject * obj1 = 0 ;
8759 char * kwnames[] = {
8760 (char *) "self",(char *) "pt", NULL
8761 };
8762
8763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) SWIG_fail;
8764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, SWIG_POINTER_DISOWN | 0 );
8765 if (!SWIG_IsOK(res1)) {
8766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___imul__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8767 }
8768 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8769 {
8770 arg2 = &temp2;
8771 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
8772 }
8773 {
d55e5bfc 8774 {
1bd55598
RD
8775 wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2);
8776 result = (wxPoint2D *) &_result_ref;
d55e5bfc 8777 }
1bd55598
RD
8778 if (PyErr_Occurred()) SWIG_fail;
8779 }
8780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
8781 return resultobj;
8782fail:
8783 return NULL;
8784}
8785
8786
8787SWIGINTERN PyObject *_wrap_Point2D___idiv__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8788 PyObject *resultobj = 0;
8789 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8790 wxPoint2D *arg2 = 0 ;
8791 wxPoint2D *result = 0 ;
8792 void *argp1 = 0 ;
8793 int res1 = 0 ;
8794 wxPoint2D temp2 ;
8795 PyObject * obj0 = 0 ;
8796 PyObject * obj1 = 0 ;
8797 char * kwnames[] = {
8798 (char *) "self",(char *) "pt", NULL
8799 };
8800
8801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) SWIG_fail;
8802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, SWIG_POINTER_DISOWN | 0 );
8803 if (!SWIG_IsOK(res1)) {
8804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___idiv__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8805 }
8806 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8807 {
8808 arg2 = &temp2;
8809 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
8810 }
8811 {
d55e5bfc 8812 {
1bd55598
RD
8813 wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2);
8814 result = (wxPoint2D *) &_result_ref;
d55e5bfc 8815 }
1bd55598
RD
8816 if (PyErr_Occurred()) SWIG_fail;
8817 }
8818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
8819 return resultobj;
8820fail:
8821 return NULL;
8822}
8823
8824
8825SWIGINTERN PyObject *_wrap_Point2D___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8826 PyObject *resultobj = 0;
8827 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
e9d6f3a4 8828 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
8829 bool result;
8830 void *argp1 = 0 ;
8831 int res1 = 0 ;
1bd55598
RD
8832 PyObject * obj0 = 0 ;
8833 PyObject * obj1 = 0 ;
8834 char * kwnames[] = {
e9d6f3a4 8835 (char *) "self",(char *) "other", NULL
1bd55598
RD
8836 };
8837
8838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
8839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8840 if (!SWIG_IsOK(res1)) {
e9d6f3a4 8841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___eq__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
1bd55598
RD
8842 }
8843 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
e9d6f3a4 8844 arg2 = obj1;
1bd55598 8845 {
e9d6f3a4 8846 result = (bool)wxPoint2D___eq__(arg1,arg2);
1bd55598
RD
8847 if (PyErr_Occurred()) SWIG_fail;
8848 }
8849 {
8850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8851 }
8852 return resultobj;
8853fail:
8854 return NULL;
8855}
8856
8857
8858SWIGINTERN PyObject *_wrap_Point2D___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8859 PyObject *resultobj = 0;
8860 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
e9d6f3a4 8861 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
8862 bool result;
8863 void *argp1 = 0 ;
8864 int res1 = 0 ;
1bd55598
RD
8865 PyObject * obj0 = 0 ;
8866 PyObject * obj1 = 0 ;
8867 char * kwnames[] = {
e9d6f3a4 8868 (char *) "self",(char *) "other", NULL
1bd55598
RD
8869 };
8870
8871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
8872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8873 if (!SWIG_IsOK(res1)) {
e9d6f3a4 8874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___ne__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
1bd55598
RD
8875 }
8876 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
e9d6f3a4 8877 arg2 = obj1;
1bd55598 8878 {
e9d6f3a4 8879 result = (bool)wxPoint2D___ne__(arg1,arg2);
1bd55598
RD
8880 if (PyErr_Occurred()) SWIG_fail;
8881 }
8882 {
8883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8884 }
8885 return resultobj;
8886fail:
8887 return NULL;
d55e5bfc
RD
8888}
8889
8890
1bd55598
RD
8891SWIGINTERN PyObject *_wrap_Point2D_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8892 PyObject *resultobj = 0;
8893 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8894 double arg2 ;
8895 void *argp1 = 0 ;
8896 int res1 = 0 ;
8897 double val2 ;
8898 int ecode2 = 0 ;
8899 PyObject *swig_obj[2] ;
8900
8901 if (!SWIG_Python_UnpackTuple(args,"Point2D_x_set",2,2,swig_obj)) SWIG_fail;
8902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8903 if (!SWIG_IsOK(res1)) {
8904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_x_set" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8905 }
8906 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8907 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8908 if (!SWIG_IsOK(ecode2)) {
8909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point2D_x_set" "', expected argument " "2"" of type '" "double""'");
8910 }
8911 arg2 = static_cast< double >(val2);
8912 if (arg1) (arg1)->m_x = arg2;
8913
8914 resultobj = SWIG_Py_Void();
8915 return resultobj;
8916fail:
8917 return NULL;
d55e5bfc
RD
8918}
8919
8920
1bd55598
RD
8921SWIGINTERN PyObject *_wrap_Point2D_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8922 PyObject *resultobj = 0;
8923 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8924 double result;
8925 void *argp1 = 0 ;
8926 int res1 = 0 ;
8927 PyObject *swig_obj[1] ;
8928
8929 if (!args) SWIG_fail;
8930 swig_obj[0] = args;
8931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8932 if (!SWIG_IsOK(res1)) {
8933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_x_get" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8934 }
8935 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8936 result = (double) ((arg1)->m_x);
8937 resultobj = SWIG_From_double(static_cast< double >(result));
8938 return resultobj;
8939fail:
8940 return NULL;
8941}
8942
8943
8944SWIGINTERN PyObject *_wrap_Point2D_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8945 PyObject *resultobj = 0;
8946 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8947 double arg2 ;
8948 void *argp1 = 0 ;
8949 int res1 = 0 ;
8950 double val2 ;
8951 int ecode2 = 0 ;
8952 PyObject *swig_obj[2] ;
8953
8954 if (!SWIG_Python_UnpackTuple(args,"Point2D_y_set",2,2,swig_obj)) SWIG_fail;
8955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8956 if (!SWIG_IsOK(res1)) {
8957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_y_set" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8958 }
8959 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8960 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8961 if (!SWIG_IsOK(ecode2)) {
8962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point2D_y_set" "', expected argument " "2"" of type '" "double""'");
8963 }
8964 arg2 = static_cast< double >(val2);
8965 if (arg1) (arg1)->m_y = arg2;
8966
8967 resultobj = SWIG_Py_Void();
8968 return resultobj;
8969fail:
8970 return NULL;
d55e5bfc
RD
8971}
8972
8973
1bd55598
RD
8974SWIGINTERN PyObject *_wrap_Point2D_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8975 PyObject *resultobj = 0;
8976 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
8977 double result;
8978 void *argp1 = 0 ;
8979 int res1 = 0 ;
8980 PyObject *swig_obj[1] ;
8981
8982 if (!args) SWIG_fail;
8983 swig_obj[0] = args;
8984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
8985 if (!SWIG_IsOK(res1)) {
8986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_y_get" "', expected argument " "1"" of type '" "wxPoint2D *""'");
8987 }
8988 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
8989 result = (double) ((arg1)->m_y);
8990 resultobj = SWIG_From_double(static_cast< double >(result));
8991 return resultobj;
8992fail:
8993 return NULL;
8994}
8995
8996
8997SWIGINTERN PyObject *_wrap_Point2D_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8998 PyObject *resultobj = 0;
8999 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
9000 double arg2 = (double) 0 ;
9001 double arg3 = (double) 0 ;
9002 void *argp1 = 0 ;
9003 int res1 = 0 ;
9004 double val2 ;
9005 int ecode2 = 0 ;
9006 double val3 ;
9007 int ecode3 = 0 ;
9008 PyObject * obj0 = 0 ;
9009 PyObject * obj1 = 0 ;
9010 PyObject * obj2 = 0 ;
9011 char * kwnames[] = {
9012 (char *) "self",(char *) "x",(char *) "y", NULL
9013 };
9014
9015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
9017 if (!SWIG_IsOK(res1)) {
9018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_Set" "', expected argument " "1"" of type '" "wxPoint2D *""'");
9019 }
9020 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
9021 if (obj1) {
9022 ecode2 = SWIG_AsVal_double(obj1, &val2);
9023 if (!SWIG_IsOK(ecode2)) {
9024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point2D_Set" "', expected argument " "2"" of type '" "double""'");
9025 }
9026 arg2 = static_cast< double >(val2);
9027 }
9028 if (obj2) {
9029 ecode3 = SWIG_AsVal_double(obj2, &val3);
9030 if (!SWIG_IsOK(ecode3)) {
9031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Point2D_Set" "', expected argument " "3"" of type '" "double""'");
9032 }
9033 arg3 = static_cast< double >(val3);
9034 }
9035 {
1bd55598 9036 wxPoint2D_Set(arg1,arg2,arg3);
1bd55598
RD
9037 if (PyErr_Occurred()) SWIG_fail;
9038 }
9039 resultobj = SWIG_Py_Void();
9040 return resultobj;
9041fail:
9042 return NULL;
d55e5bfc
RD
9043}
9044
9045
1bd55598
RD
9046SWIGINTERN PyObject *_wrap_Point2D_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9047 PyObject *resultobj = 0;
9048 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
9049 PyObject *result = 0 ;
9050 void *argp1 = 0 ;
9051 int res1 = 0 ;
9052 PyObject *swig_obj[1] ;
9053
9054 if (!args) SWIG_fail;
9055 swig_obj[0] = args;
9056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
9057 if (!SWIG_IsOK(res1)) {
9058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_Get" "', expected argument " "1"" of type '" "wxPoint2D *""'");
9059 }
9060 arg1 = reinterpret_cast< wxPoint2D * >(argp1);
9061 {
1bd55598 9062 result = (PyObject *)wxPoint2D_Get(arg1);
1bd55598
RD
9063 if (PyErr_Occurred()) SWIG_fail;
9064 }
9065 resultobj = result;
9066 return resultobj;
9067fail:
9068 return NULL;
aff4cc5c
RD
9069}
9070
9071
1bd55598
RD
9072SWIGINTERN PyObject *Point2D_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9073 PyObject *obj;
9074 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9075 SWIG_TypeNewClientData(SWIGTYPE_p_wxPoint2D, SWIG_NewClientData(obj));
9076 return SWIG_Py_Void();
d55e5bfc
RD
9077}
9078
1bd55598
RD
9079SWIGINTERN PyObject *Point2D_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9080 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9081}
9082
70d7cb34
RD
9083SWIGINTERN PyObject *_wrap_new_Rect2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9084 PyObject *resultobj = 0;
9085 wxDouble arg1 = (wxDouble) 0.0 ;
9086 wxDouble arg2 = (wxDouble) 0.0 ;
9087 wxDouble arg3 = (wxDouble) 0.0 ;
9088 wxDouble arg4 = (wxDouble) 0.0 ;
9089 wxRect2D *result = 0 ;
9090 void *argp1 ;
9091 int res1 = 0 ;
9092 void *argp2 ;
9093 int res2 = 0 ;
9094 void *argp3 ;
9095 int res3 = 0 ;
9096 void *argp4 ;
9097 int res4 = 0 ;
9098 PyObject * obj0 = 0 ;
9099 PyObject * obj1 = 0 ;
9100 PyObject * obj2 = 0 ;
9101 PyObject * obj3 = 0 ;
9102 char * kwnames[] = {
9103 (char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
9104 };
9105
9106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect2D",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9107 if (obj0) {
9108 {
9109 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDouble, 0 | 0);
9110 if (!SWIG_IsOK(res1)) {
9111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Rect2D" "', expected argument " "1"" of type '" "wxDouble""'");
9112 }
9113 if (!argp1) {
9114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Rect2D" "', expected argument " "1"" of type '" "wxDouble""'");
9115 } else {
9116 wxDouble * temp = reinterpret_cast< wxDouble * >(argp1);
9117 arg1 = *temp;
9118 if (SWIG_IsNewObj(res1)) delete temp;
9119 }
9120 }
9121 }
9122 if (obj1) {
9123 {
9124 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9125 if (!SWIG_IsOK(res2)) {
9126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Rect2D" "', expected argument " "2"" of type '" "wxDouble""'");
9127 }
9128 if (!argp2) {
9129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Rect2D" "', expected argument " "2"" of type '" "wxDouble""'");
9130 } else {
9131 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9132 arg2 = *temp;
9133 if (SWIG_IsNewObj(res2)) delete temp;
9134 }
9135 }
9136 }
9137 if (obj2) {
9138 {
9139 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDouble, 0 | 0);
9140 if (!SWIG_IsOK(res3)) {
9141 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Rect2D" "', expected argument " "3"" of type '" "wxDouble""'");
9142 }
9143 if (!argp3) {
9144 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Rect2D" "', expected argument " "3"" of type '" "wxDouble""'");
9145 } else {
9146 wxDouble * temp = reinterpret_cast< wxDouble * >(argp3);
9147 arg3 = *temp;
9148 if (SWIG_IsNewObj(res3)) delete temp;
9149 }
9150 }
9151 }
9152 if (obj3) {
9153 {
9154 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDouble, 0 | 0);
9155 if (!SWIG_IsOK(res4)) {
9156 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Rect2D" "', expected argument " "4"" of type '" "wxDouble""'");
9157 }
9158 if (!argp4) {
9159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Rect2D" "', expected argument " "4"" of type '" "wxDouble""'");
9160 } else {
9161 wxDouble * temp = reinterpret_cast< wxDouble * >(argp4);
9162 arg4 = *temp;
9163 if (SWIG_IsNewObj(res4)) delete temp;
9164 }
9165 }
9166 }
9167 {
9168 result = (wxRect2D *)new wxRect2D(arg1,arg2,arg3,arg4);
9169 if (PyErr_Occurred()) SWIG_fail;
9170 }
9171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect2D, SWIG_POINTER_NEW | 0 );
9172 return resultobj;
9173fail:
9174 return NULL;
9175}
9176
9177
9178SWIGINTERN PyObject *_wrap_delete_Rect2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9179 PyObject *resultobj = 0;
9180 wxRect2D *arg1 = (wxRect2D *) 0 ;
9181 void *argp1 = 0 ;
9182 int res1 = 0 ;
9183 PyObject *swig_obj[1] ;
9184
9185 if (!args) SWIG_fail;
9186 swig_obj[0] = args;
9187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, SWIG_POINTER_DISOWN | 0 );
9188 if (!SWIG_IsOK(res1)) {
9189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Rect2D" "', expected argument " "1"" of type '" "wxRect2D *""'");
9190 }
9191 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9192 {
9193 delete arg1;
9194
9195 if (PyErr_Occurred()) SWIG_fail;
9196 }
9197 resultobj = SWIG_Py_Void();
9198 return resultobj;
9199fail:
9200 return NULL;
9201}
9202
9203
9204SWIGINTERN PyObject *_wrap_Rect2D_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9205 PyObject *resultobj = 0;
9206 wxRect2D *arg1 = (wxRect2D *) 0 ;
9207 wxPoint2D result;
9208 void *argp1 = 0 ;
9209 int res1 = 0 ;
9210 PyObject *swig_obj[1] ;
9211
9212 if (!args) SWIG_fail;
9213 swig_obj[0] = args;
9214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9215 if (!SWIG_IsOK(res1)) {
9216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetPosition" "', expected argument " "1"" of type '" "wxRect2D *""'");
9217 }
9218 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9219 {
9220 result = (arg1)->GetPosition();
9221 if (PyErr_Occurred()) SWIG_fail;
9222 }
9223 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
9224 return resultobj;
9225fail:
9226 return NULL;
9227}
9228
9229
9230SWIGINTERN PyObject *_wrap_Rect2D_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9231 PyObject *resultobj = 0;
9232 wxRect2D *arg1 = (wxRect2D *) 0 ;
9233 wxSize result;
9234 void *argp1 = 0 ;
9235 int res1 = 0 ;
9236 PyObject *swig_obj[1] ;
9237
9238 if (!args) SWIG_fail;
9239 swig_obj[0] = args;
9240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9241 if (!SWIG_IsOK(res1)) {
9242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetSize" "', expected argument " "1"" of type '" "wxRect2D *""'");
9243 }
9244 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9245 {
9246 result = (arg1)->GetSize();
9247 if (PyErr_Occurred()) SWIG_fail;
9248 }
9249 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
9250 return resultobj;
9251fail:
9252 return NULL;
9253}
9254
9255
9256SWIGINTERN PyObject *_wrap_Rect2D_GetLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9257 PyObject *resultobj = 0;
9258 wxRect2D *arg1 = (wxRect2D *) 0 ;
9259 wxDouble result;
9260 void *argp1 = 0 ;
9261 int res1 = 0 ;
9262 PyObject *swig_obj[1] ;
9263
9264 if (!args) SWIG_fail;
9265 swig_obj[0] = args;
9266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9267 if (!SWIG_IsOK(res1)) {
9268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetLeft" "', expected argument " "1"" of type '" "wxRect2D const *""'");
9269 }
9270 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9271 {
9272 result = ((wxRect2D const *)arg1)->GetLeft();
9273 if (PyErr_Occurred()) SWIG_fail;
9274 }
9275 resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
9276 return resultobj;
9277fail:
9278 return NULL;
9279}
9280
9281
9282SWIGINTERN PyObject *_wrap_Rect2D_SetLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9283 PyObject *resultobj = 0;
9284 wxRect2D *arg1 = (wxRect2D *) 0 ;
9285 wxDouble arg2 ;
9286 void *argp1 = 0 ;
9287 int res1 = 0 ;
9288 void *argp2 ;
9289 int res2 = 0 ;
9290 PyObject * obj0 = 0 ;
9291 PyObject * obj1 = 0 ;
9292 char * kwnames[] = {
9293 (char *) "self",(char *) "n", NULL
9294 };
9295
9296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetLeft",kwnames,&obj0,&obj1)) SWIG_fail;
9297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9298 if (!SWIG_IsOK(res1)) {
9299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetLeft" "', expected argument " "1"" of type '" "wxRect2D *""'");
9300 }
9301 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9302 {
9303 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9304 if (!SWIG_IsOK(res2)) {
9305 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_SetLeft" "', expected argument " "2"" of type '" "wxDouble""'");
9306 }
9307 if (!argp2) {
9308 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_SetLeft" "', expected argument " "2"" of type '" "wxDouble""'");
9309 } else {
9310 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9311 arg2 = *temp;
9312 if (SWIG_IsNewObj(res2)) delete temp;
9313 }
9314 }
9315 {
9316 (arg1)->SetLeft(arg2);
9317 if (PyErr_Occurred()) SWIG_fail;
9318 }
9319 resultobj = SWIG_Py_Void();
9320 return resultobj;
9321fail:
9322 return NULL;
9323}
9324
9325
9326SWIGINTERN PyObject *_wrap_Rect2D_MoveLeftTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9327 PyObject *resultobj = 0;
9328 wxRect2D *arg1 = (wxRect2D *) 0 ;
9329 wxDouble arg2 ;
9330 void *argp1 = 0 ;
9331 int res1 = 0 ;
9332 void *argp2 ;
9333 int res2 = 0 ;
9334 PyObject * obj0 = 0 ;
9335 PyObject * obj1 = 0 ;
9336 char * kwnames[] = {
9337 (char *) "self",(char *) "n", NULL
9338 };
9339
9340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveLeftTo",kwnames,&obj0,&obj1)) SWIG_fail;
9341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9342 if (!SWIG_IsOK(res1)) {
9343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveLeftTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
9344 }
9345 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9346 {
9347 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9348 if (!SWIG_IsOK(res2)) {
9349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_MoveLeftTo" "', expected argument " "2"" of type '" "wxDouble""'");
9350 }
9351 if (!argp2) {
9352 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_MoveLeftTo" "', expected argument " "2"" of type '" "wxDouble""'");
9353 } else {
9354 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9355 arg2 = *temp;
9356 if (SWIG_IsNewObj(res2)) delete temp;
9357 }
9358 }
9359 {
9360 (arg1)->MoveLeftTo(arg2);
9361 if (PyErr_Occurred()) SWIG_fail;
9362 }
9363 resultobj = SWIG_Py_Void();
9364 return resultobj;
9365fail:
9366 return NULL;
9367}
9368
9369
9370SWIGINTERN PyObject *_wrap_Rect2D_GetTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9371 PyObject *resultobj = 0;
9372 wxRect2D *arg1 = (wxRect2D *) 0 ;
9373 wxDouble result;
9374 void *argp1 = 0 ;
9375 int res1 = 0 ;
9376 PyObject *swig_obj[1] ;
9377
9378 if (!args) SWIG_fail;
9379 swig_obj[0] = args;
9380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9381 if (!SWIG_IsOK(res1)) {
9382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetTop" "', expected argument " "1"" of type '" "wxRect2D const *""'");
9383 }
9384 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9385 {
9386 result = ((wxRect2D const *)arg1)->GetTop();
9387 if (PyErr_Occurred()) SWIG_fail;
9388 }
9389 resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
9390 return resultobj;
9391fail:
9392 return NULL;
9393}
9394
9395
9396SWIGINTERN PyObject *_wrap_Rect2D_SetTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9397 PyObject *resultobj = 0;
9398 wxRect2D *arg1 = (wxRect2D *) 0 ;
9399 wxDouble arg2 ;
9400 void *argp1 = 0 ;
9401 int res1 = 0 ;
9402 void *argp2 ;
9403 int res2 = 0 ;
9404 PyObject * obj0 = 0 ;
9405 PyObject * obj1 = 0 ;
9406 char * kwnames[] = {
9407 (char *) "self",(char *) "n", NULL
9408 };
9409
9410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetTop",kwnames,&obj0,&obj1)) SWIG_fail;
9411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9412 if (!SWIG_IsOK(res1)) {
9413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetTop" "', expected argument " "1"" of type '" "wxRect2D *""'");
9414 }
9415 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9416 {
9417 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9418 if (!SWIG_IsOK(res2)) {
9419 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_SetTop" "', expected argument " "2"" of type '" "wxDouble""'");
9420 }
9421 if (!argp2) {
9422 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_SetTop" "', expected argument " "2"" of type '" "wxDouble""'");
9423 } else {
9424 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9425 arg2 = *temp;
9426 if (SWIG_IsNewObj(res2)) delete temp;
9427 }
9428 }
9429 {
9430 (arg1)->SetTop(arg2);
9431 if (PyErr_Occurred()) SWIG_fail;
9432 }
9433 resultobj = SWIG_Py_Void();
9434 return resultobj;
9435fail:
9436 return NULL;
9437}
9438
9439
9440SWIGINTERN PyObject *_wrap_Rect2D_MoveTopTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9441 PyObject *resultobj = 0;
9442 wxRect2D *arg1 = (wxRect2D *) 0 ;
9443 wxDouble arg2 ;
9444 void *argp1 = 0 ;
9445 int res1 = 0 ;
9446 void *argp2 ;
9447 int res2 = 0 ;
9448 PyObject * obj0 = 0 ;
9449 PyObject * obj1 = 0 ;
9450 char * kwnames[] = {
9451 (char *) "self",(char *) "n", NULL
9452 };
9453
9454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveTopTo",kwnames,&obj0,&obj1)) SWIG_fail;
9455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9456 if (!SWIG_IsOK(res1)) {
9457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveTopTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
9458 }
9459 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9460 {
9461 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9462 if (!SWIG_IsOK(res2)) {
9463 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_MoveTopTo" "', expected argument " "2"" of type '" "wxDouble""'");
9464 }
9465 if (!argp2) {
9466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_MoveTopTo" "', expected argument " "2"" of type '" "wxDouble""'");
9467 } else {
9468 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9469 arg2 = *temp;
9470 if (SWIG_IsNewObj(res2)) delete temp;
9471 }
9472 }
9473 {
9474 (arg1)->MoveTopTo(arg2);
9475 if (PyErr_Occurred()) SWIG_fail;
9476 }
9477 resultobj = SWIG_Py_Void();
9478 return resultobj;
9479fail:
9480 return NULL;
9481}
9482
9483
9484SWIGINTERN PyObject *_wrap_Rect2D_GetBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9485 PyObject *resultobj = 0;
9486 wxRect2D *arg1 = (wxRect2D *) 0 ;
9487 wxDouble result;
9488 void *argp1 = 0 ;
9489 int res1 = 0 ;
9490 PyObject *swig_obj[1] ;
9491
9492 if (!args) SWIG_fail;
9493 swig_obj[0] = args;
9494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9495 if (!SWIG_IsOK(res1)) {
9496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetBottom" "', expected argument " "1"" of type '" "wxRect2D const *""'");
9497 }
9498 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9499 {
9500 result = ((wxRect2D const *)arg1)->GetBottom();
9501 if (PyErr_Occurred()) SWIG_fail;
9502 }
9503 resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
9504 return resultobj;
9505fail:
9506 return NULL;
9507}
9508
9509
9510SWIGINTERN PyObject *_wrap_Rect2D_SetBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9511 PyObject *resultobj = 0;
9512 wxRect2D *arg1 = (wxRect2D *) 0 ;
9513 wxDouble arg2 ;
9514 void *argp1 = 0 ;
9515 int res1 = 0 ;
9516 void *argp2 ;
9517 int res2 = 0 ;
9518 PyObject * obj0 = 0 ;
9519 PyObject * obj1 = 0 ;
9520 char * kwnames[] = {
9521 (char *) "self",(char *) "n", NULL
9522 };
9523
9524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetBottom",kwnames,&obj0,&obj1)) SWIG_fail;
9525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9526 if (!SWIG_IsOK(res1)) {
9527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetBottom" "', expected argument " "1"" of type '" "wxRect2D *""'");
9528 }
9529 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9530 {
9531 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9532 if (!SWIG_IsOK(res2)) {
9533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_SetBottom" "', expected argument " "2"" of type '" "wxDouble""'");
9534 }
9535 if (!argp2) {
9536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_SetBottom" "', expected argument " "2"" of type '" "wxDouble""'");
9537 } else {
9538 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9539 arg2 = *temp;
9540 if (SWIG_IsNewObj(res2)) delete temp;
9541 }
9542 }
9543 {
9544 (arg1)->SetBottom(arg2);
9545 if (PyErr_Occurred()) SWIG_fail;
9546 }
9547 resultobj = SWIG_Py_Void();
9548 return resultobj;
9549fail:
9550 return NULL;
9551}
9552
9553
9554SWIGINTERN PyObject *_wrap_Rect2D_MoveBottomTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9555 PyObject *resultobj = 0;
9556 wxRect2D *arg1 = (wxRect2D *) 0 ;
9557 wxDouble arg2 ;
9558 void *argp1 = 0 ;
9559 int res1 = 0 ;
9560 void *argp2 ;
9561 int res2 = 0 ;
9562 PyObject * obj0 = 0 ;
9563 PyObject * obj1 = 0 ;
9564 char * kwnames[] = {
9565 (char *) "self",(char *) "n", NULL
9566 };
9567
9568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveBottomTo",kwnames,&obj0,&obj1)) SWIG_fail;
9569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9570 if (!SWIG_IsOK(res1)) {
9571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveBottomTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
9572 }
9573 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9574 {
9575 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9576 if (!SWIG_IsOK(res2)) {
9577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_MoveBottomTo" "', expected argument " "2"" of type '" "wxDouble""'");
9578 }
9579 if (!argp2) {
9580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_MoveBottomTo" "', expected argument " "2"" of type '" "wxDouble""'");
9581 } else {
9582 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9583 arg2 = *temp;
9584 if (SWIG_IsNewObj(res2)) delete temp;
9585 }
9586 }
9587 {
9588 (arg1)->MoveBottomTo(arg2);
9589 if (PyErr_Occurred()) SWIG_fail;
9590 }
9591 resultobj = SWIG_Py_Void();
9592 return resultobj;
9593fail:
9594 return NULL;
9595}
9596
9597
9598SWIGINTERN PyObject *_wrap_Rect2D_GetRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9599 PyObject *resultobj = 0;
9600 wxRect2D *arg1 = (wxRect2D *) 0 ;
9601 wxDouble result;
9602 void *argp1 = 0 ;
9603 int res1 = 0 ;
9604 PyObject *swig_obj[1] ;
9605
9606 if (!args) SWIG_fail;
9607 swig_obj[0] = args;
9608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9609 if (!SWIG_IsOK(res1)) {
9610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetRight" "', expected argument " "1"" of type '" "wxRect2D const *""'");
9611 }
9612 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9613 {
9614 result = ((wxRect2D const *)arg1)->GetRight();
9615 if (PyErr_Occurred()) SWIG_fail;
9616 }
9617 resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
9618 return resultobj;
9619fail:
9620 return NULL;
9621}
9622
9623
9624SWIGINTERN PyObject *_wrap_Rect2D_SetRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9625 PyObject *resultobj = 0;
9626 wxRect2D *arg1 = (wxRect2D *) 0 ;
9627 wxDouble arg2 ;
9628 void *argp1 = 0 ;
9629 int res1 = 0 ;
9630 void *argp2 ;
9631 int res2 = 0 ;
9632 PyObject * obj0 = 0 ;
9633 PyObject * obj1 = 0 ;
9634 char * kwnames[] = {
9635 (char *) "self",(char *) "n", NULL
9636 };
9637
9638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetRight",kwnames,&obj0,&obj1)) SWIG_fail;
9639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9640 if (!SWIG_IsOK(res1)) {
9641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetRight" "', expected argument " "1"" of type '" "wxRect2D *""'");
9642 }
9643 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9644 {
9645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9646 if (!SWIG_IsOK(res2)) {
9647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_SetRight" "', expected argument " "2"" of type '" "wxDouble""'");
9648 }
9649 if (!argp2) {
9650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_SetRight" "', expected argument " "2"" of type '" "wxDouble""'");
9651 } else {
9652 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9653 arg2 = *temp;
9654 if (SWIG_IsNewObj(res2)) delete temp;
9655 }
9656 }
9657 {
9658 (arg1)->SetRight(arg2);
9659 if (PyErr_Occurred()) SWIG_fail;
9660 }
9661 resultobj = SWIG_Py_Void();
9662 return resultobj;
9663fail:
9664 return NULL;
9665}
9666
9667
9668SWIGINTERN PyObject *_wrap_Rect2D_MoveRightTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9669 PyObject *resultobj = 0;
9670 wxRect2D *arg1 = (wxRect2D *) 0 ;
9671 wxDouble arg2 ;
9672 void *argp1 = 0 ;
9673 int res1 = 0 ;
9674 void *argp2 ;
9675 int res2 = 0 ;
9676 PyObject * obj0 = 0 ;
9677 PyObject * obj1 = 0 ;
9678 char * kwnames[] = {
9679 (char *) "self",(char *) "n", NULL
9680 };
9681
9682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveRightTo",kwnames,&obj0,&obj1)) SWIG_fail;
9683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9684 if (!SWIG_IsOK(res1)) {
9685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveRightTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
9686 }
9687 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9688 {
9689 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
9690 if (!SWIG_IsOK(res2)) {
9691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_MoveRightTo" "', expected argument " "2"" of type '" "wxDouble""'");
9692 }
9693 if (!argp2) {
9694 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_MoveRightTo" "', expected argument " "2"" of type '" "wxDouble""'");
9695 } else {
9696 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
9697 arg2 = *temp;
9698 if (SWIG_IsNewObj(res2)) delete temp;
9699 }
9700 }
9701 {
9702 (arg1)->MoveRightTo(arg2);
9703 if (PyErr_Occurred()) SWIG_fail;
9704 }
9705 resultobj = SWIG_Py_Void();
9706 return resultobj;
9707fail:
9708 return NULL;
9709}
9710
9711
9712SWIGINTERN PyObject *_wrap_Rect2D_GetLeftTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9713 PyObject *resultobj = 0;
9714 wxRect2D *arg1 = (wxRect2D *) 0 ;
9715 wxPoint2D result;
9716 void *argp1 = 0 ;
9717 int res1 = 0 ;
9718 PyObject *swig_obj[1] ;
9719
9720 if (!args) SWIG_fail;
9721 swig_obj[0] = args;
9722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9723 if (!SWIG_IsOK(res1)) {
9724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetLeftTop" "', expected argument " "1"" of type '" "wxRect2D const *""'");
9725 }
9726 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9727 {
9728 result = ((wxRect2D const *)arg1)->GetLeftTop();
9729 if (PyErr_Occurred()) SWIG_fail;
9730 }
9731 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
9732 return resultobj;
9733fail:
9734 return NULL;
9735}
9736
9737
9738SWIGINTERN PyObject *_wrap_Rect2D_SetLeftTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9739 PyObject *resultobj = 0;
9740 wxRect2D *arg1 = (wxRect2D *) 0 ;
9741 wxPoint2D *arg2 = 0 ;
9742 void *argp1 = 0 ;
9743 int res1 = 0 ;
9744 wxPoint2D temp2 ;
9745 PyObject * obj0 = 0 ;
9746 PyObject * obj1 = 0 ;
9747 char * kwnames[] = {
9748 (char *) "self",(char *) "pt", NULL
9749 };
9750
9751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetLeftTop",kwnames,&obj0,&obj1)) SWIG_fail;
9752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9753 if (!SWIG_IsOK(res1)) {
9754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetLeftTop" "', expected argument " "1"" of type '" "wxRect2D *""'");
9755 }
9756 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9757 {
9758 arg2 = &temp2;
9759 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
9760 }
9761 {
9762 (arg1)->SetLeftTop((wxPoint2D const &)*arg2);
9763 if (PyErr_Occurred()) SWIG_fail;
9764 }
9765 resultobj = SWIG_Py_Void();
9766 return resultobj;
9767fail:
9768 return NULL;
9769}
9770
9771
9772SWIGINTERN PyObject *_wrap_Rect2D_MoveLeftTopTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9773 PyObject *resultobj = 0;
9774 wxRect2D *arg1 = (wxRect2D *) 0 ;
9775 wxPoint2D *arg2 = 0 ;
9776 void *argp1 = 0 ;
9777 int res1 = 0 ;
9778 wxPoint2D temp2 ;
9779 PyObject * obj0 = 0 ;
9780 PyObject * obj1 = 0 ;
9781 char * kwnames[] = {
9782 (char *) "self",(char *) "pt", NULL
9783 };
9784
9785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveLeftTopTo",kwnames,&obj0,&obj1)) SWIG_fail;
9786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9787 if (!SWIG_IsOK(res1)) {
9788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveLeftTopTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
9789 }
9790 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9791 {
9792 arg2 = &temp2;
9793 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
9794 }
9795 {
9796 (arg1)->MoveLeftTopTo((wxPoint2D const &)*arg2);
9797 if (PyErr_Occurred()) SWIG_fail;
9798 }
9799 resultobj = SWIG_Py_Void();
9800 return resultobj;
9801fail:
9802 return NULL;
9803}
9804
9805
9806SWIGINTERN PyObject *_wrap_Rect2D_GetLeftBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9807 PyObject *resultobj = 0;
9808 wxRect2D *arg1 = (wxRect2D *) 0 ;
9809 wxPoint2D result;
9810 void *argp1 = 0 ;
9811 int res1 = 0 ;
9812 PyObject *swig_obj[1] ;
9813
9814 if (!args) SWIG_fail;
9815 swig_obj[0] = args;
9816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9817 if (!SWIG_IsOK(res1)) {
9818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetLeftBottom" "', expected argument " "1"" of type '" "wxRect2D const *""'");
9819 }
9820 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9821 {
9822 result = ((wxRect2D const *)arg1)->GetLeftBottom();
9823 if (PyErr_Occurred()) SWIG_fail;
9824 }
9825 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
9826 return resultobj;
9827fail:
9828 return NULL;
9829}
9830
9831
9832SWIGINTERN PyObject *_wrap_Rect2D_SetLeftBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9833 PyObject *resultobj = 0;
9834 wxRect2D *arg1 = (wxRect2D *) 0 ;
9835 wxPoint2D *arg2 = 0 ;
9836 void *argp1 = 0 ;
9837 int res1 = 0 ;
9838 wxPoint2D temp2 ;
9839 PyObject * obj0 = 0 ;
9840 PyObject * obj1 = 0 ;
9841 char * kwnames[] = {
9842 (char *) "self",(char *) "pt", NULL
9843 };
9844
9845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetLeftBottom",kwnames,&obj0,&obj1)) SWIG_fail;
9846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9847 if (!SWIG_IsOK(res1)) {
9848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetLeftBottom" "', expected argument " "1"" of type '" "wxRect2D *""'");
9849 }
9850 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9851 {
9852 arg2 = &temp2;
9853 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
9854 }
9855 {
9856 (arg1)->SetLeftBottom((wxPoint2D const &)*arg2);
9857 if (PyErr_Occurred()) SWIG_fail;
9858 }
9859 resultobj = SWIG_Py_Void();
9860 return resultobj;
9861fail:
9862 return NULL;
9863}
9864
9865
9866SWIGINTERN PyObject *_wrap_Rect2D_MoveLeftBottomTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9867 PyObject *resultobj = 0;
9868 wxRect2D *arg1 = (wxRect2D *) 0 ;
9869 wxPoint2D *arg2 = 0 ;
9870 void *argp1 = 0 ;
9871 int res1 = 0 ;
9872 wxPoint2D temp2 ;
9873 PyObject * obj0 = 0 ;
9874 PyObject * obj1 = 0 ;
9875 char * kwnames[] = {
9876 (char *) "self",(char *) "pt", NULL
9877 };
9878
9879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveLeftBottomTo",kwnames,&obj0,&obj1)) SWIG_fail;
9880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9881 if (!SWIG_IsOK(res1)) {
9882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveLeftBottomTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
9883 }
9884 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9885 {
9886 arg2 = &temp2;
9887 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
9888 }
9889 {
9890 (arg1)->MoveLeftBottomTo((wxPoint2D const &)*arg2);
9891 if (PyErr_Occurred()) SWIG_fail;
9892 }
9893 resultobj = SWIG_Py_Void();
9894 return resultobj;
9895fail:
9896 return NULL;
9897}
9898
9899
9900SWIGINTERN PyObject *_wrap_Rect2D_GetRightTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9901 PyObject *resultobj = 0;
9902 wxRect2D *arg1 = (wxRect2D *) 0 ;
9903 wxPoint2D result;
9904 void *argp1 = 0 ;
9905 int res1 = 0 ;
9906 PyObject *swig_obj[1] ;
9907
9908 if (!args) SWIG_fail;
9909 swig_obj[0] = args;
9910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9911 if (!SWIG_IsOK(res1)) {
9912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetRightTop" "', expected argument " "1"" of type '" "wxRect2D const *""'");
9913 }
9914 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9915 {
9916 result = ((wxRect2D const *)arg1)->GetRightTop();
9917 if (PyErr_Occurred()) SWIG_fail;
9918 }
9919 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
9920 return resultobj;
9921fail:
9922 return NULL;
9923}
9924
9925
9926SWIGINTERN PyObject *_wrap_Rect2D_SetRightTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9927 PyObject *resultobj = 0;
9928 wxRect2D *arg1 = (wxRect2D *) 0 ;
9929 wxPoint2D *arg2 = 0 ;
9930 void *argp1 = 0 ;
9931 int res1 = 0 ;
9932 wxPoint2D temp2 ;
9933 PyObject * obj0 = 0 ;
9934 PyObject * obj1 = 0 ;
9935 char * kwnames[] = {
9936 (char *) "self",(char *) "pt", NULL
9937 };
9938
9939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetRightTop",kwnames,&obj0,&obj1)) SWIG_fail;
9940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9941 if (!SWIG_IsOK(res1)) {
9942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetRightTop" "', expected argument " "1"" of type '" "wxRect2D *""'");
9943 }
9944 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9945 {
9946 arg2 = &temp2;
9947 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
9948 }
9949 {
9950 (arg1)->SetRightTop((wxPoint2D const &)*arg2);
9951 if (PyErr_Occurred()) SWIG_fail;
9952 }
9953 resultobj = SWIG_Py_Void();
9954 return resultobj;
9955fail:
9956 return NULL;
9957}
9958
9959
9960SWIGINTERN PyObject *_wrap_Rect2D_MoveRightTopTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9961 PyObject *resultobj = 0;
9962 wxRect2D *arg1 = (wxRect2D *) 0 ;
9963 wxPoint2D *arg2 = 0 ;
9964 void *argp1 = 0 ;
9965 int res1 = 0 ;
9966 wxPoint2D temp2 ;
9967 PyObject * obj0 = 0 ;
9968 PyObject * obj1 = 0 ;
9969 char * kwnames[] = {
9970 (char *) "self",(char *) "pt", NULL
9971 };
9972
9973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveRightTopTo",kwnames,&obj0,&obj1)) SWIG_fail;
9974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
9975 if (!SWIG_IsOK(res1)) {
9976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveRightTopTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
9977 }
9978 arg1 = reinterpret_cast< wxRect2D * >(argp1);
9979 {
9980 arg2 = &temp2;
9981 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
9982 }
9983 {
9984 (arg1)->MoveRightTopTo((wxPoint2D const &)*arg2);
9985 if (PyErr_Occurred()) SWIG_fail;
9986 }
9987 resultobj = SWIG_Py_Void();
9988 return resultobj;
9989fail:
9990 return NULL;
9991}
9992
9993
9994SWIGINTERN PyObject *_wrap_Rect2D_GetRightBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9995 PyObject *resultobj = 0;
9996 wxRect2D *arg1 = (wxRect2D *) 0 ;
9997 wxPoint2D result;
9998 void *argp1 = 0 ;
9999 int res1 = 0 ;
10000 PyObject *swig_obj[1] ;
10001
10002 if (!args) SWIG_fail;
10003 swig_obj[0] = args;
10004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10005 if (!SWIG_IsOK(res1)) {
10006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetRightBottom" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10007 }
10008 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10009 {
10010 result = ((wxRect2D const *)arg1)->GetRightBottom();
10011 if (PyErr_Occurred()) SWIG_fail;
10012 }
10013 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
10014 return resultobj;
10015fail:
10016 return NULL;
10017}
10018
10019
10020SWIGINTERN PyObject *_wrap_Rect2D_SetRightBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10021 PyObject *resultobj = 0;
10022 wxRect2D *arg1 = (wxRect2D *) 0 ;
10023 wxPoint2D *arg2 = 0 ;
10024 void *argp1 = 0 ;
10025 int res1 = 0 ;
10026 wxPoint2D temp2 ;
10027 PyObject * obj0 = 0 ;
10028 PyObject * obj1 = 0 ;
10029 char * kwnames[] = {
10030 (char *) "self",(char *) "pt", NULL
10031 };
10032
10033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetRightBottom",kwnames,&obj0,&obj1)) SWIG_fail;
10034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10035 if (!SWIG_IsOK(res1)) {
10036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetRightBottom" "', expected argument " "1"" of type '" "wxRect2D *""'");
10037 }
10038 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10039 {
10040 arg2 = &temp2;
10041 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
10042 }
10043 {
10044 (arg1)->SetRightBottom((wxPoint2D const &)*arg2);
10045 if (PyErr_Occurred()) SWIG_fail;
10046 }
10047 resultobj = SWIG_Py_Void();
10048 return resultobj;
10049fail:
10050 return NULL;
10051}
10052
10053
10054SWIGINTERN PyObject *_wrap_Rect2D_MoveRightBottomTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10055 PyObject *resultobj = 0;
10056 wxRect2D *arg1 = (wxRect2D *) 0 ;
10057 wxPoint2D *arg2 = 0 ;
10058 void *argp1 = 0 ;
10059 int res1 = 0 ;
10060 wxPoint2D temp2 ;
10061 PyObject * obj0 = 0 ;
10062 PyObject * obj1 = 0 ;
10063 char * kwnames[] = {
10064 (char *) "self",(char *) "pt", NULL
10065 };
10066
10067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveRightBottomTo",kwnames,&obj0,&obj1)) SWIG_fail;
10068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10069 if (!SWIG_IsOK(res1)) {
10070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveRightBottomTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
10071 }
10072 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10073 {
10074 arg2 = &temp2;
10075 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
10076 }
10077 {
10078 (arg1)->MoveRightBottomTo((wxPoint2D const &)*arg2);
10079 if (PyErr_Occurred()) SWIG_fail;
10080 }
10081 resultobj = SWIG_Py_Void();
10082 return resultobj;
10083fail:
10084 return NULL;
10085}
10086
10087
10088SWIGINTERN PyObject *_wrap_Rect2D_GetCentre(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10089 PyObject *resultobj = 0;
10090 wxRect2D *arg1 = (wxRect2D *) 0 ;
10091 wxPoint2D result;
10092 void *argp1 = 0 ;
10093 int res1 = 0 ;
10094 PyObject *swig_obj[1] ;
10095
10096 if (!args) SWIG_fail;
10097 swig_obj[0] = args;
10098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10099 if (!SWIG_IsOK(res1)) {
10100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetCentre" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10101 }
10102 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10103 {
10104 result = ((wxRect2D const *)arg1)->GetCentre();
10105 if (PyErr_Occurred()) SWIG_fail;
10106 }
10107 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
10108 return resultobj;
10109fail:
10110 return NULL;
10111}
10112
10113
10114SWIGINTERN PyObject *_wrap_Rect2D_SetCentre(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10115 PyObject *resultobj = 0;
10116 wxRect2D *arg1 = (wxRect2D *) 0 ;
10117 wxPoint2D *arg2 = 0 ;
10118 void *argp1 = 0 ;
10119 int res1 = 0 ;
10120 wxPoint2D temp2 ;
10121 PyObject * obj0 = 0 ;
10122 PyObject * obj1 = 0 ;
10123 char * kwnames[] = {
10124 (char *) "self",(char *) "pt", NULL
10125 };
10126
10127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetCentre",kwnames,&obj0,&obj1)) SWIG_fail;
10128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10129 if (!SWIG_IsOK(res1)) {
10130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetCentre" "', expected argument " "1"" of type '" "wxRect2D *""'");
10131 }
10132 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10133 {
10134 arg2 = &temp2;
10135 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
10136 }
10137 {
10138 (arg1)->SetCentre((wxPoint2D const &)*arg2);
10139 if (PyErr_Occurred()) SWIG_fail;
10140 }
10141 resultobj = SWIG_Py_Void();
10142 return resultobj;
10143fail:
10144 return NULL;
10145}
10146
10147
10148SWIGINTERN PyObject *_wrap_Rect2D_MoveCentreTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10149 PyObject *resultobj = 0;
10150 wxRect2D *arg1 = (wxRect2D *) 0 ;
10151 wxPoint2D *arg2 = 0 ;
10152 void *argp1 = 0 ;
10153 int res1 = 0 ;
10154 wxPoint2D temp2 ;
10155 PyObject * obj0 = 0 ;
10156 PyObject * obj1 = 0 ;
10157 char * kwnames[] = {
10158 (char *) "self",(char *) "pt", NULL
10159 };
10160
10161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveCentreTo",kwnames,&obj0,&obj1)) SWIG_fail;
10162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10163 if (!SWIG_IsOK(res1)) {
10164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveCentreTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
10165 }
10166 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10167 {
10168 arg2 = &temp2;
10169 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
10170 }
10171 {
10172 (arg1)->MoveCentreTo((wxPoint2D const &)*arg2);
10173 if (PyErr_Occurred()) SWIG_fail;
10174 }
10175 resultobj = SWIG_Py_Void();
10176 return resultobj;
10177fail:
10178 return NULL;
10179}
10180
10181
10182SWIGINTERN PyObject *_wrap_Rect2D_GetOutcode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10183 PyObject *resultobj = 0;
10184 wxRect2D *arg1 = (wxRect2D *) 0 ;
10185 wxPoint2D *arg2 = 0 ;
10186 wxOutCode result;
10187 void *argp1 = 0 ;
10188 int res1 = 0 ;
10189 wxPoint2D temp2 ;
10190 PyObject * obj0 = 0 ;
10191 PyObject * obj1 = 0 ;
10192 char * kwnames[] = {
10193 (char *) "self",(char *) "pt", NULL
10194 };
10195
10196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_GetOutcode",kwnames,&obj0,&obj1)) SWIG_fail;
10197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10198 if (!SWIG_IsOK(res1)) {
10199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetOutcode" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10200 }
10201 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10202 {
10203 arg2 = &temp2;
10204 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
10205 }
10206 {
10207 result = (wxOutCode)((wxRect2D const *)arg1)->GetOutcode((wxPoint2D const &)*arg2);
10208 if (PyErr_Occurred()) SWIG_fail;
10209 }
10210 resultobj = SWIG_From_int(static_cast< int >(result));
10211 return resultobj;
10212fail:
10213 return NULL;
10214}
10215
10216
10217SWIGINTERN PyObject *_wrap_Rect2D_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10218 PyObject *resultobj = 0;
10219 wxRect2D *arg1 = (wxRect2D *) 0 ;
10220 wxPoint2D *arg2 = 0 ;
10221 bool result;
10222 void *argp1 = 0 ;
10223 int res1 = 0 ;
10224 wxPoint2D temp2 ;
10225 PyObject * obj0 = 0 ;
10226 PyObject * obj1 = 0 ;
10227 char * kwnames[] = {
10228 (char *) "self",(char *) "pt", NULL
10229 };
10230
10231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_Contains",kwnames,&obj0,&obj1)) SWIG_fail;
10232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10233 if (!SWIG_IsOK(res1)) {
10234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Contains" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10235 }
10236 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10237 {
10238 arg2 = &temp2;
10239 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
10240 }
10241 {
10242 result = (bool)((wxRect2D const *)arg1)->Contains((wxPoint2D const &)*arg2);
10243 if (PyErr_Occurred()) SWIG_fail;
10244 }
10245 {
10246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10247 }
10248 return resultobj;
10249fail:
10250 return NULL;
10251}
10252
10253
10254SWIGINTERN PyObject *_wrap_Rect2D_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10255 PyObject *resultobj = 0;
10256 wxRect2D *arg1 = (wxRect2D *) 0 ;
10257 wxRect2D *arg2 = 0 ;
10258 bool result;
10259 void *argp1 = 0 ;
10260 int res1 = 0 ;
10261 wxRect2D temp2 ;
10262 PyObject * obj0 = 0 ;
10263 PyObject * obj1 = 0 ;
10264 char * kwnames[] = {
10265 (char *) "self",(char *) "rect", NULL
10266 };
10267
10268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10270 if (!SWIG_IsOK(res1)) {
10271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_ContainsRect" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10272 }
10273 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10274 {
10275 arg2 = &temp2;
10276 if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
10277 }
10278 {
10279 result = (bool)((wxRect2D const *)arg1)->Contains((wxRect2D const &)*arg2);
10280 if (PyErr_Occurred()) SWIG_fail;
10281 }
10282 {
10283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10284 }
10285 return resultobj;
10286fail:
10287 return NULL;
10288}
10289
10290
10291SWIGINTERN PyObject *_wrap_Rect2D_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10292 PyObject *resultobj = 0;
10293 wxRect2D *arg1 = (wxRect2D *) 0 ;
10294 bool result;
10295 void *argp1 = 0 ;
10296 int res1 = 0 ;
10297 PyObject *swig_obj[1] ;
10298
10299 if (!args) SWIG_fail;
10300 swig_obj[0] = args;
10301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10302 if (!SWIG_IsOK(res1)) {
10303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_IsEmpty" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10304 }
10305 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10306 {
10307 result = (bool)((wxRect2D const *)arg1)->IsEmpty();
10308 if (PyErr_Occurred()) SWIG_fail;
10309 }
10310 {
10311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10312 }
10313 return resultobj;
10314fail:
10315 return NULL;
10316}
10317
10318
10319SWIGINTERN PyObject *_wrap_Rect2D_HaveEqualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10320 PyObject *resultobj = 0;
10321 wxRect2D *arg1 = (wxRect2D *) 0 ;
10322 wxRect2D *arg2 = 0 ;
10323 bool result;
10324 void *argp1 = 0 ;
10325 int res1 = 0 ;
10326 wxRect2D temp2 ;
10327 PyObject * obj0 = 0 ;
10328 PyObject * obj1 = 0 ;
10329 char * kwnames[] = {
10330 (char *) "self",(char *) "rect", NULL
10331 };
10332
10333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_HaveEqualSize",kwnames,&obj0,&obj1)) SWIG_fail;
10334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10335 if (!SWIG_IsOK(res1)) {
10336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_HaveEqualSize" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10337 }
10338 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10339 {
10340 arg2 = &temp2;
10341 if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
10342 }
10343 {
10344 result = (bool)((wxRect2D const *)arg1)->HaveEqualSize((wxRect2D const &)*arg2);
10345 if (PyErr_Occurred()) SWIG_fail;
10346 }
10347 {
10348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10349 }
10350 return resultobj;
10351fail:
10352 return NULL;
10353}
10354
10355
10356SWIGINTERN PyObject *_wrap_Rect2D_Inset__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10357 PyObject *resultobj = 0;
10358 wxRect2D *arg1 = (wxRect2D *) 0 ;
10359 wxDouble arg2 ;
10360 wxDouble arg3 ;
10361 void *argp1 = 0 ;
10362 int res1 = 0 ;
10363 void *argp2 ;
10364 int res2 = 0 ;
10365 void *argp3 ;
10366 int res3 = 0 ;
10367
10368 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
10369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10370 if (!SWIG_IsOK(res1)) {
10371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Inset" "', expected argument " "1"" of type '" "wxRect2D *""'");
10372 }
10373 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10374 {
10375 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
10376 if (!SWIG_IsOK(res2)) {
10377 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_Inset" "', expected argument " "2"" of type '" "wxDouble""'");
10378 }
10379 if (!argp2) {
10380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "2"" of type '" "wxDouble""'");
10381 } else {
10382 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
10383 arg2 = *temp;
10384 if (SWIG_IsNewObj(res2)) delete temp;
10385 }
10386 }
10387 {
10388 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxDouble, 0 | 0);
10389 if (!SWIG_IsOK(res3)) {
10390 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Rect2D_Inset" "', expected argument " "3"" of type '" "wxDouble""'");
10391 }
10392 if (!argp3) {
10393 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "3"" of type '" "wxDouble""'");
10394 } else {
10395 wxDouble * temp = reinterpret_cast< wxDouble * >(argp3);
10396 arg3 = *temp;
10397 if (SWIG_IsNewObj(res3)) delete temp;
10398 }
10399 }
10400 {
10401 (arg1)->Inset(arg2,arg3);
10402 if (PyErr_Occurred()) SWIG_fail;
10403 }
10404 resultobj = SWIG_Py_Void();
10405 return resultobj;
10406fail:
10407 return NULL;
10408}
10409
10410
10411SWIGINTERN PyObject *_wrap_Rect2D_Inset__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10412 PyObject *resultobj = 0;
10413 wxRect2D *arg1 = (wxRect2D *) 0 ;
10414 wxDouble arg2 ;
10415 wxDouble arg3 ;
10416 wxDouble arg4 ;
10417 wxDouble arg5 ;
10418 void *argp1 = 0 ;
10419 int res1 = 0 ;
10420 void *argp2 ;
10421 int res2 = 0 ;
10422 void *argp3 ;
10423 int res3 = 0 ;
10424 void *argp4 ;
10425 int res4 = 0 ;
10426 void *argp5 ;
10427 int res5 = 0 ;
10428
10429 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
10430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10431 if (!SWIG_IsOK(res1)) {
10432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Inset" "', expected argument " "1"" of type '" "wxRect2D *""'");
10433 }
10434 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10435 {
10436 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
10437 if (!SWIG_IsOK(res2)) {
10438 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_Inset" "', expected argument " "2"" of type '" "wxDouble""'");
10439 }
10440 if (!argp2) {
10441 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "2"" of type '" "wxDouble""'");
10442 } else {
10443 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
10444 arg2 = *temp;
10445 if (SWIG_IsNewObj(res2)) delete temp;
10446 }
10447 }
10448 {
10449 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxDouble, 0 | 0);
10450 if (!SWIG_IsOK(res3)) {
10451 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Rect2D_Inset" "', expected argument " "3"" of type '" "wxDouble""'");
10452 }
10453 if (!argp3) {
10454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "3"" of type '" "wxDouble""'");
10455 } else {
10456 wxDouble * temp = reinterpret_cast< wxDouble * >(argp3);
10457 arg3 = *temp;
10458 if (SWIG_IsNewObj(res3)) delete temp;
10459 }
10460 }
10461 {
10462 res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_wxDouble, 0 | 0);
10463 if (!SWIG_IsOK(res4)) {
10464 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Rect2D_Inset" "', expected argument " "4"" of type '" "wxDouble""'");
10465 }
10466 if (!argp4) {
10467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "4"" of type '" "wxDouble""'");
10468 } else {
10469 wxDouble * temp = reinterpret_cast< wxDouble * >(argp4);
10470 arg4 = *temp;
10471 if (SWIG_IsNewObj(res4)) delete temp;
10472 }
10473 }
10474 {
10475 res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_wxDouble, 0 | 0);
10476 if (!SWIG_IsOK(res5)) {
10477 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Rect2D_Inset" "', expected argument " "5"" of type '" "wxDouble""'");
10478 }
10479 if (!argp5) {
10480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "5"" of type '" "wxDouble""'");
10481 } else {
10482 wxDouble * temp = reinterpret_cast< wxDouble * >(argp5);
10483 arg5 = *temp;
10484 if (SWIG_IsNewObj(res5)) delete temp;
10485 }
10486 }
10487 {
10488 (arg1)->Inset(arg2,arg3,arg4,arg5);
10489 if (PyErr_Occurred()) SWIG_fail;
10490 }
10491 resultobj = SWIG_Py_Void();
10492 return resultobj;
10493fail:
10494 return NULL;
10495}
10496
10497
10498SWIGINTERN PyObject *_wrap_Rect2D_Inset(PyObject *self, PyObject *args) {
10499 int argc;
10500 PyObject *argv[6];
10501
10502 if (!(argc = SWIG_Python_UnpackTuple(args,"Rect2D_Inset",0,5,argv))) SWIG_fail;
10503 --argc;
10504 if (argc == 3) {
10505 return _wrap_Rect2D_Inset__SWIG_0(self, argc, argv);
10506 }
10507 if (argc == 5) {
10508 return _wrap_Rect2D_Inset__SWIG_1(self, argc, argv);
10509 }
10510
10511fail:
10512 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'Rect2D_Inset'");
10513 return NULL;
10514}
10515
10516
10517SWIGINTERN PyObject *_wrap_Rect2D_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10518 PyObject *resultobj = 0;
10519 wxRect2D *arg1 = (wxRect2D *) 0 ;
10520 wxPoint2D *arg2 = 0 ;
10521 void *argp1 = 0 ;
10522 int res1 = 0 ;
10523 wxPoint2D temp2 ;
10524 PyObject * obj0 = 0 ;
10525 PyObject * obj1 = 0 ;
10526 char * kwnames[] = {
10527 (char *) "self",(char *) "pt", NULL
10528 };
10529
10530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_Offset",kwnames,&obj0,&obj1)) SWIG_fail;
10531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10532 if (!SWIG_IsOK(res1)) {
10533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Offset" "', expected argument " "1"" of type '" "wxRect2D *""'");
10534 }
10535 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10536 {
10537 arg2 = &temp2;
10538 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
10539 }
10540 {
10541 (arg1)->Offset((wxPoint2D const &)*arg2);
10542 if (PyErr_Occurred()) SWIG_fail;
10543 }
10544 resultobj = SWIG_Py_Void();
10545 return resultobj;
10546fail:
10547 return NULL;
10548}
10549
10550
10551SWIGINTERN PyObject *_wrap_Rect2D_ConstrainTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10552 PyObject *resultobj = 0;
10553 wxRect2D *arg1 = (wxRect2D *) 0 ;
10554 wxRect2D *arg2 = 0 ;
10555 void *argp1 = 0 ;
10556 int res1 = 0 ;
10557 wxRect2D temp2 ;
10558 PyObject * obj0 = 0 ;
10559 PyObject * obj1 = 0 ;
10560 char * kwnames[] = {
10561 (char *) "self",(char *) "rect", NULL
10562 };
10563
10564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_ConstrainTo",kwnames,&obj0,&obj1)) SWIG_fail;
10565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10566 if (!SWIG_IsOK(res1)) {
10567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_ConstrainTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
10568 }
10569 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10570 {
10571 arg2 = &temp2;
10572 if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
10573 }
10574 {
10575 (arg1)->ConstrainTo((wxRect2D const &)*arg2);
10576 if (PyErr_Occurred()) SWIG_fail;
10577 }
10578 resultobj = SWIG_Py_Void();
10579 return resultobj;
10580fail:
10581 return NULL;
10582}
10583
10584
10585SWIGINTERN PyObject *_wrap_Rect2D_Interpolate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10586 PyObject *resultobj = 0;
10587 wxRect2D *arg1 = (wxRect2D *) 0 ;
10588 int arg2 ;
10589 int arg3 ;
10590 wxPoint2D result;
10591 void *argp1 = 0 ;
10592 int res1 = 0 ;
10593 int val2 ;
10594 int ecode2 = 0 ;
10595 int val3 ;
10596 int ecode3 = 0 ;
10597 PyObject * obj0 = 0 ;
10598 PyObject * obj1 = 0 ;
10599 PyObject * obj2 = 0 ;
10600 char * kwnames[] = {
10601 (char *) "self",(char *) "widthfactor",(char *) "heightfactor", NULL
10602 };
10603
10604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect2D_Interpolate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10606 if (!SWIG_IsOK(res1)) {
10607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Interpolate" "', expected argument " "1"" of type '" "wxRect2D *""'");
10608 }
10609 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10610 ecode2 = SWIG_AsVal_int(obj1, &val2);
10611 if (!SWIG_IsOK(ecode2)) {
10612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect2D_Interpolate" "', expected argument " "2"" of type '" "int""'");
10613 }
10614 arg2 = static_cast< int >(val2);
10615 ecode3 = SWIG_AsVal_int(obj2, &val3);
10616 if (!SWIG_IsOK(ecode3)) {
10617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect2D_Interpolate" "', expected argument " "3"" of type '" "int""'");
10618 }
10619 arg3 = static_cast< int >(val3);
10620 {
10621 result = (arg1)->Interpolate(arg2,arg3);
10622 if (PyErr_Occurred()) SWIG_fail;
10623 }
10624 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
10625 return resultobj;
10626fail:
10627 return NULL;
10628}
10629
10630
10631SWIGINTERN PyObject *_wrap_Rect2D_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10632 PyObject *resultobj = 0;
10633 wxRect2D *arg1 = (wxRect2D *) 0 ;
10634 wxRect2D *arg2 = 0 ;
10635 void *argp1 = 0 ;
10636 int res1 = 0 ;
10637 wxRect2D temp2 ;
10638 PyObject * obj0 = 0 ;
10639 PyObject * obj1 = 0 ;
10640 char * kwnames[] = {
10641 (char *) "self",(char *) "otherRect", NULL
10642 };
10643
10644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_Intersect",kwnames,&obj0,&obj1)) SWIG_fail;
10645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10646 if (!SWIG_IsOK(res1)) {
10647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Intersect" "', expected argument " "1"" of type '" "wxRect2D *""'");
10648 }
10649 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10650 {
10651 arg2 = &temp2;
10652 if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
10653 }
10654 {
10655 (arg1)->Intersect((wxRect2D const &)*arg2);
10656 if (PyErr_Occurred()) SWIG_fail;
10657 }
10658 resultobj = SWIG_Py_Void();
10659 return resultobj;
10660fail:
10661 return NULL;
10662}
10663
10664
10665SWIGINTERN PyObject *_wrap_Rect2D_CreateIntersection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10666 PyObject *resultobj = 0;
10667 wxRect2D *arg1 = (wxRect2D *) 0 ;
10668 wxRect2D *arg2 = 0 ;
10669 wxRect2D result;
10670 void *argp1 = 0 ;
10671 int res1 = 0 ;
10672 wxRect2D temp2 ;
10673 PyObject * obj0 = 0 ;
10674 PyObject * obj1 = 0 ;
10675 char * kwnames[] = {
10676 (char *) "self",(char *) "otherRect", NULL
10677 };
10678
10679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_CreateIntersection",kwnames,&obj0,&obj1)) SWIG_fail;
10680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10681 if (!SWIG_IsOK(res1)) {
10682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_CreateIntersection" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10683 }
10684 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10685 {
10686 arg2 = &temp2;
10687 if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
10688 }
10689 {
10690 result = ((wxRect2D const *)arg1)->CreateIntersection((wxRect2D const &)*arg2);
10691 if (PyErr_Occurred()) SWIG_fail;
10692 }
10693 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
10694 return resultobj;
10695fail:
10696 return NULL;
10697}
10698
10699
10700SWIGINTERN PyObject *_wrap_Rect2D_Intersects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10701 PyObject *resultobj = 0;
10702 wxRect2D *arg1 = (wxRect2D *) 0 ;
10703 wxRect2D *arg2 = 0 ;
10704 bool result;
10705 void *argp1 = 0 ;
10706 int res1 = 0 ;
10707 wxRect2D temp2 ;
10708 PyObject * obj0 = 0 ;
10709 PyObject * obj1 = 0 ;
10710 char * kwnames[] = {
10711 (char *) "self",(char *) "rect", NULL
10712 };
10713
10714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_Intersects",kwnames,&obj0,&obj1)) SWIG_fail;
10715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10716 if (!SWIG_IsOK(res1)) {
10717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Intersects" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10718 }
10719 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10720 {
10721 arg2 = &temp2;
10722 if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
10723 }
10724 {
10725 result = (bool)((wxRect2D const *)arg1)->Intersects((wxRect2D const &)*arg2);
10726 if (PyErr_Occurred()) SWIG_fail;
10727 }
10728 {
10729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10730 }
10731 return resultobj;
10732fail:
10733 return NULL;
10734}
10735
10736
10737SWIGINTERN PyObject *_wrap_Rect2D_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10738 PyObject *resultobj = 0;
10739 wxRect2D *arg1 = (wxRect2D *) 0 ;
10740 wxRect2D *arg2 = 0 ;
10741 void *argp1 = 0 ;
10742 int res1 = 0 ;
10743 wxRect2D temp2 ;
10744 PyObject * obj0 = 0 ;
10745 PyObject * obj1 = 0 ;
10746 char * kwnames[] = {
10747 (char *) "self",(char *) "otherRect", NULL
10748 };
10749
10750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_Union",kwnames,&obj0,&obj1)) SWIG_fail;
10751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10752 if (!SWIG_IsOK(res1)) {
10753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Union" "', expected argument " "1"" of type '" "wxRect2D *""'");
10754 }
10755 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10756 {
10757 arg2 = &temp2;
10758 if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
10759 }
10760 {
10761 (arg1)->Union((wxRect2D const &)*arg2);
10762 if (PyErr_Occurred()) SWIG_fail;
10763 }
10764 resultobj = SWIG_Py_Void();
10765 return resultobj;
10766fail:
10767 return NULL;
10768}
10769
10770
10771SWIGINTERN PyObject *_wrap_Rect2D_CreateUnion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10772 PyObject *resultobj = 0;
10773 wxRect2D *arg1 = (wxRect2D *) 0 ;
10774 wxRect2D *arg2 = 0 ;
10775 wxRect2D result;
10776 void *argp1 = 0 ;
10777 int res1 = 0 ;
10778 wxRect2D temp2 ;
10779 PyObject * obj0 = 0 ;
10780 PyObject * obj1 = 0 ;
10781 char * kwnames[] = {
10782 (char *) "self",(char *) "otherRect", NULL
10783 };
10784
10785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_CreateUnion",kwnames,&obj0,&obj1)) SWIG_fail;
10786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10787 if (!SWIG_IsOK(res1)) {
10788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_CreateUnion" "', expected argument " "1"" of type '" "wxRect2D const *""'");
10789 }
10790 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10791 {
10792 arg2 = &temp2;
10793 if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
10794 }
10795 {
10796 result = ((wxRect2D const *)arg1)->CreateUnion((wxRect2D const &)*arg2);
10797 if (PyErr_Occurred()) SWIG_fail;
10798 }
10799 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
10800 return resultobj;
10801fail:
10802 return NULL;
10803}
10804
10805
10806SWIGINTERN PyObject *_wrap_Rect2D_Scale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10807 PyObject *resultobj = 0;
10808 wxRect2D *arg1 = (wxRect2D *) 0 ;
10809 wxDouble arg2 ;
10810 void *argp1 = 0 ;
10811 int res1 = 0 ;
10812 void *argp2 ;
10813 int res2 = 0 ;
10814
10815 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
10816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10817 if (!SWIG_IsOK(res1)) {
10818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Scale" "', expected argument " "1"" of type '" "wxRect2D *""'");
10819 }
10820 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10821 {
10822 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
10823 if (!SWIG_IsOK(res2)) {
10824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
10825 }
10826 if (!argp2) {
10827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
10828 } else {
10829 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
10830 arg2 = *temp;
10831 if (SWIG_IsNewObj(res2)) delete temp;
10832 }
10833 }
10834 {
10835 (arg1)->Scale(arg2);
10836 if (PyErr_Occurred()) SWIG_fail;
10837 }
10838 resultobj = SWIG_Py_Void();
10839 return resultobj;
10840fail:
10841 return NULL;
10842}
10843
10844
10845SWIGINTERN PyObject *_wrap_Rect2D_Scale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
10846 PyObject *resultobj = 0;
10847 wxRect2D *arg1 = (wxRect2D *) 0 ;
10848 int arg2 ;
10849 int arg3 ;
10850 void *argp1 = 0 ;
10851 int res1 = 0 ;
10852 int val2 ;
10853 int ecode2 = 0 ;
10854 int val3 ;
10855 int ecode3 = 0 ;
10856
10857 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
10858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10859 if (!SWIG_IsOK(res1)) {
10860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Scale" "', expected argument " "1"" of type '" "wxRect2D *""'");
10861 }
10862 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10863 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10864 if (!SWIG_IsOK(ecode2)) {
10865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect2D_Scale" "', expected argument " "2"" of type '" "int""'");
10866 }
10867 arg2 = static_cast< int >(val2);
10868 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
10869 if (!SWIG_IsOK(ecode3)) {
10870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect2D_Scale" "', expected argument " "3"" of type '" "int""'");
10871 }
10872 arg3 = static_cast< int >(val3);
10873 {
10874 (arg1)->Scale(arg2,arg3);
10875 if (PyErr_Occurred()) SWIG_fail;
10876 }
10877 resultobj = SWIG_Py_Void();
10878 return resultobj;
10879fail:
10880 return NULL;
10881}
10882
10883
10884SWIGINTERN PyObject *_wrap_Rect2D_Scale(PyObject *self, PyObject *args) {
10885 int argc;
10886 PyObject *argv[4];
10887
10888 if (!(argc = SWIG_Python_UnpackTuple(args,"Rect2D_Scale",0,3,argv))) SWIG_fail;
10889 --argc;
10890 if (argc == 2) {
10891 return _wrap_Rect2D_Scale__SWIG_0(self, argc, argv);
10892 }
10893 if (argc == 3) {
10894 return _wrap_Rect2D_Scale__SWIG_1(self, argc, argv);
10895 }
10896
10897fail:
10898 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'Rect2D_Scale'");
10899 return NULL;
10900}
10901
10902
10903SWIGINTERN PyObject *_wrap_Rect2D___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10904 PyObject *resultobj = 0;
10905 wxRect2D *arg1 = (wxRect2D *) 0 ;
10906 PyObject *arg2 = (PyObject *) 0 ;
10907 bool result;
10908 void *argp1 = 0 ;
10909 int res1 = 0 ;
10910 PyObject * obj0 = 0 ;
10911 PyObject * obj1 = 0 ;
10912 char * kwnames[] = {
10913 (char *) "self",(char *) "other", NULL
10914 };
10915
10916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
10917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10918 if (!SWIG_IsOK(res1)) {
10919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D___eq__" "', expected argument " "1"" of type '" "wxRect2D *""'");
10920 }
10921 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10922 arg2 = obj1;
10923 {
10924 result = (bool)wxRect2D___eq__(arg1,arg2);
10925 if (PyErr_Occurred()) SWIG_fail;
10926 }
10927 {
10928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10929 }
10930 return resultobj;
10931fail:
10932 return NULL;
10933}
10934
10935
10936SWIGINTERN PyObject *_wrap_Rect2D___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10937 PyObject *resultobj = 0;
10938 wxRect2D *arg1 = (wxRect2D *) 0 ;
10939 PyObject *arg2 = (PyObject *) 0 ;
10940 bool result;
10941 void *argp1 = 0 ;
10942 int res1 = 0 ;
10943 PyObject * obj0 = 0 ;
10944 PyObject * obj1 = 0 ;
10945 char * kwnames[] = {
10946 (char *) "self",(char *) "other", NULL
10947 };
10948
10949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
10950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10951 if (!SWIG_IsOK(res1)) {
10952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D___ne__" "', expected argument " "1"" of type '" "wxRect2D *""'");
10953 }
10954 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10955 arg2 = obj1;
10956 {
10957 result = (bool)wxRect2D___ne__(arg1,arg2);
10958 if (PyErr_Occurred()) SWIG_fail;
10959 }
10960 {
10961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10962 }
10963 return resultobj;
10964fail:
10965 return NULL;
10966}
10967
10968
10969SWIGINTERN PyObject *_wrap_Rect2D_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10970 PyObject *resultobj = 0;
10971 wxRect2D *arg1 = (wxRect2D *) 0 ;
10972 wxDouble arg2 ;
10973 void *argp1 = 0 ;
10974 int res1 = 0 ;
10975 void *argp2 ;
10976 int res2 = 0 ;
10977 PyObject *swig_obj[2] ;
10978
10979 if (!SWIG_Python_UnpackTuple(args,"Rect2D_x_set",2,2,swig_obj)) SWIG_fail;
10980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
10981 if (!SWIG_IsOK(res1)) {
10982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_x_set" "', expected argument " "1"" of type '" "wxRect2D *""'");
10983 }
10984 arg1 = reinterpret_cast< wxRect2D * >(argp1);
10985 {
10986 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
10987 if (!SWIG_IsOK(res2)) {
10988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_x_set" "', expected argument " "2"" of type '" "wxDouble""'");
10989 }
10990 if (!argp2) {
10991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_x_set" "', expected argument " "2"" of type '" "wxDouble""'");
10992 } else {
10993 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
10994 arg2 = *temp;
10995 if (SWIG_IsNewObj(res2)) delete temp;
10996 }
10997 }
10998 if (arg1) (arg1)->m_x = arg2;
10999
11000 resultobj = SWIG_Py_Void();
11001 return resultobj;
11002fail:
11003 return NULL;
11004}
11005
11006
11007SWIGINTERN PyObject *_wrap_Rect2D_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11008 PyObject *resultobj = 0;
11009 wxRect2D *arg1 = (wxRect2D *) 0 ;
11010 wxDouble result;
11011 void *argp1 = 0 ;
11012 int res1 = 0 ;
11013 PyObject *swig_obj[1] ;
11014
11015 if (!args) SWIG_fail;
11016 swig_obj[0] = args;
11017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11018 if (!SWIG_IsOK(res1)) {
11019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_x_get" "', expected argument " "1"" of type '" "wxRect2D *""'");
11020 }
11021 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11022 result = ((arg1)->m_x);
11023 resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
11024 return resultobj;
11025fail:
11026 return NULL;
11027}
11028
11029
11030SWIGINTERN PyObject *_wrap_Rect2D_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11031 PyObject *resultobj = 0;
11032 wxRect2D *arg1 = (wxRect2D *) 0 ;
11033 wxDouble arg2 ;
11034 void *argp1 = 0 ;
11035 int res1 = 0 ;
11036 void *argp2 ;
11037 int res2 = 0 ;
11038 PyObject *swig_obj[2] ;
11039
11040 if (!SWIG_Python_UnpackTuple(args,"Rect2D_y_set",2,2,swig_obj)) SWIG_fail;
11041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11042 if (!SWIG_IsOK(res1)) {
11043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_y_set" "', expected argument " "1"" of type '" "wxRect2D *""'");
11044 }
11045 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11046 {
11047 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
11048 if (!SWIG_IsOK(res2)) {
11049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_y_set" "', expected argument " "2"" of type '" "wxDouble""'");
11050 }
11051 if (!argp2) {
11052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_y_set" "', expected argument " "2"" of type '" "wxDouble""'");
11053 } else {
11054 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
11055 arg2 = *temp;
11056 if (SWIG_IsNewObj(res2)) delete temp;
11057 }
11058 }
11059 if (arg1) (arg1)->m_y = arg2;
11060
11061 resultobj = SWIG_Py_Void();
11062 return resultobj;
11063fail:
11064 return NULL;
11065}
11066
11067
11068SWIGINTERN PyObject *_wrap_Rect2D_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11069 PyObject *resultobj = 0;
11070 wxRect2D *arg1 = (wxRect2D *) 0 ;
11071 wxDouble result;
11072 void *argp1 = 0 ;
11073 int res1 = 0 ;
11074 PyObject *swig_obj[1] ;
11075
11076 if (!args) SWIG_fail;
11077 swig_obj[0] = args;
11078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11079 if (!SWIG_IsOK(res1)) {
11080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_y_get" "', expected argument " "1"" of type '" "wxRect2D *""'");
11081 }
11082 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11083 result = ((arg1)->m_y);
11084 resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
11085 return resultobj;
11086fail:
11087 return NULL;
11088}
11089
11090
11091SWIGINTERN PyObject *_wrap_Rect2D_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11092 PyObject *resultobj = 0;
11093 wxRect2D *arg1 = (wxRect2D *) 0 ;
11094 wxDouble arg2 ;
11095 void *argp1 = 0 ;
11096 int res1 = 0 ;
11097 void *argp2 ;
11098 int res2 = 0 ;
11099 PyObject *swig_obj[2] ;
11100
11101 if (!SWIG_Python_UnpackTuple(args,"Rect2D_width_set",2,2,swig_obj)) SWIG_fail;
11102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11103 if (!SWIG_IsOK(res1)) {
11104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_width_set" "', expected argument " "1"" of type '" "wxRect2D *""'");
11105 }
11106 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11107 {
11108 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
11109 if (!SWIG_IsOK(res2)) {
11110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_width_set" "', expected argument " "2"" of type '" "wxDouble""'");
11111 }
11112 if (!argp2) {
11113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_width_set" "', expected argument " "2"" of type '" "wxDouble""'");
11114 } else {
11115 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
11116 arg2 = *temp;
11117 if (SWIG_IsNewObj(res2)) delete temp;
11118 }
11119 }
11120 if (arg1) (arg1)->m_width = arg2;
11121
11122 resultobj = SWIG_Py_Void();
11123 return resultobj;
11124fail:
11125 return NULL;
11126}
11127
11128
11129SWIGINTERN PyObject *_wrap_Rect2D_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11130 PyObject *resultobj = 0;
11131 wxRect2D *arg1 = (wxRect2D *) 0 ;
11132 wxDouble result;
11133 void *argp1 = 0 ;
11134 int res1 = 0 ;
11135 PyObject *swig_obj[1] ;
11136
11137 if (!args) SWIG_fail;
11138 swig_obj[0] = args;
11139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11140 if (!SWIG_IsOK(res1)) {
11141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_width_get" "', expected argument " "1"" of type '" "wxRect2D *""'");
11142 }
11143 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11144 result = ((arg1)->m_width);
11145 resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
11146 return resultobj;
11147fail:
11148 return NULL;
11149}
11150
11151
11152SWIGINTERN PyObject *_wrap_Rect2D_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11153 PyObject *resultobj = 0;
11154 wxRect2D *arg1 = (wxRect2D *) 0 ;
11155 wxDouble arg2 ;
11156 void *argp1 = 0 ;
11157 int res1 = 0 ;
11158 void *argp2 ;
11159 int res2 = 0 ;
11160 PyObject *swig_obj[2] ;
11161
11162 if (!SWIG_Python_UnpackTuple(args,"Rect2D_height_set",2,2,swig_obj)) SWIG_fail;
11163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11164 if (!SWIG_IsOK(res1)) {
11165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_height_set" "', expected argument " "1"" of type '" "wxRect2D *""'");
11166 }
11167 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11168 {
11169 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
11170 if (!SWIG_IsOK(res2)) {
11171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_height_set" "', expected argument " "2"" of type '" "wxDouble""'");
11172 }
11173 if (!argp2) {
11174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_height_set" "', expected argument " "2"" of type '" "wxDouble""'");
11175 } else {
11176 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
11177 arg2 = *temp;
11178 if (SWIG_IsNewObj(res2)) delete temp;
11179 }
11180 }
11181 if (arg1) (arg1)->m_height = arg2;
11182
11183 resultobj = SWIG_Py_Void();
11184 return resultobj;
11185fail:
11186 return NULL;
11187}
11188
11189
11190SWIGINTERN PyObject *_wrap_Rect2D_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11191 PyObject *resultobj = 0;
11192 wxRect2D *arg1 = (wxRect2D *) 0 ;
11193 wxDouble result;
11194 void *argp1 = 0 ;
11195 int res1 = 0 ;
11196 PyObject *swig_obj[1] ;
11197
11198 if (!args) SWIG_fail;
11199 swig_obj[0] = args;
11200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11201 if (!SWIG_IsOK(res1)) {
11202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_height_get" "', expected argument " "1"" of type '" "wxRect2D *""'");
11203 }
11204 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11205 result = ((arg1)->m_height);
11206 resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
11207 return resultobj;
11208fail:
11209 return NULL;
11210}
11211
11212
11213SWIGINTERN PyObject *_wrap_Rect2D_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11214 PyObject *resultobj = 0;
11215 wxRect2D *arg1 = (wxRect2D *) 0 ;
11216 wxDouble arg2 = (wxDouble) 0 ;
11217 wxDouble arg3 = (wxDouble) 0 ;
11218 wxDouble arg4 = (wxDouble) 0 ;
11219 wxDouble arg5 = (wxDouble) 0 ;
11220 void *argp1 = 0 ;
11221 int res1 = 0 ;
11222 void *argp2 ;
11223 int res2 = 0 ;
11224 void *argp3 ;
11225 int res3 = 0 ;
11226 void *argp4 ;
11227 int res4 = 0 ;
11228 void *argp5 ;
11229 int res5 = 0 ;
11230 PyObject * obj0 = 0 ;
11231 PyObject * obj1 = 0 ;
11232 PyObject * obj2 = 0 ;
11233 PyObject * obj3 = 0 ;
11234 PyObject * obj4 = 0 ;
11235 char * kwnames[] = {
11236 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11237 };
11238
11239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect2D_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11241 if (!SWIG_IsOK(res1)) {
11242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Set" "', expected argument " "1"" of type '" "wxRect2D *""'");
11243 }
11244 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11245 if (obj1) {
11246 {
11247 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
11248 if (!SWIG_IsOK(res2)) {
11249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_Set" "', expected argument " "2"" of type '" "wxDouble""'");
11250 }
11251 if (!argp2) {
11252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Set" "', expected argument " "2"" of type '" "wxDouble""'");
11253 } else {
11254 wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
11255 arg2 = *temp;
11256 if (SWIG_IsNewObj(res2)) delete temp;
11257 }
11258 }
11259 }
11260 if (obj2) {
11261 {
11262 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDouble, 0 | 0);
11263 if (!SWIG_IsOK(res3)) {
11264 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Rect2D_Set" "', expected argument " "3"" of type '" "wxDouble""'");
11265 }
11266 if (!argp3) {
11267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Set" "', expected argument " "3"" of type '" "wxDouble""'");
11268 } else {
11269 wxDouble * temp = reinterpret_cast< wxDouble * >(argp3);
11270 arg3 = *temp;
11271 if (SWIG_IsNewObj(res3)) delete temp;
11272 }
11273 }
11274 }
11275 if (obj3) {
11276 {
11277 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDouble, 0 | 0);
11278 if (!SWIG_IsOK(res4)) {
11279 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Rect2D_Set" "', expected argument " "4"" of type '" "wxDouble""'");
11280 }
11281 if (!argp4) {
11282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Set" "', expected argument " "4"" of type '" "wxDouble""'");
11283 } else {
11284 wxDouble * temp = reinterpret_cast< wxDouble * >(argp4);
11285 arg4 = *temp;
11286 if (SWIG_IsNewObj(res4)) delete temp;
11287 }
11288 }
11289 }
11290 if (obj4) {
11291 {
11292 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxDouble, 0 | 0);
11293 if (!SWIG_IsOK(res5)) {
11294 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Rect2D_Set" "', expected argument " "5"" of type '" "wxDouble""'");
11295 }
11296 if (!argp5) {
11297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Set" "', expected argument " "5"" of type '" "wxDouble""'");
11298 } else {
11299 wxDouble * temp = reinterpret_cast< wxDouble * >(argp5);
11300 arg5 = *temp;
11301 if (SWIG_IsNewObj(res5)) delete temp;
11302 }
11303 }
11304 }
11305 {
11306 wxRect2D_Set(arg1,arg2,arg3,arg4,arg5);
11307 if (PyErr_Occurred()) SWIG_fail;
11308 }
11309 resultobj = SWIG_Py_Void();
11310 return resultobj;
11311fail:
11312 return NULL;
11313}
11314
11315
11316SWIGINTERN PyObject *_wrap_Rect2D_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11317 PyObject *resultobj = 0;
11318 wxRect2D *arg1 = (wxRect2D *) 0 ;
11319 PyObject *result = 0 ;
11320 void *argp1 = 0 ;
11321 int res1 = 0 ;
11322 PyObject *swig_obj[1] ;
11323
11324 if (!args) SWIG_fail;
11325 swig_obj[0] = args;
11326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
11327 if (!SWIG_IsOK(res1)) {
11328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Get" "', expected argument " "1"" of type '" "wxRect2D *""'");
11329 }
11330 arg1 = reinterpret_cast< wxRect2D * >(argp1);
11331 {
11332 result = (PyObject *)wxRect2D_Get(arg1);
11333 if (PyErr_Occurred()) SWIG_fail;
11334 }
11335 resultobj = result;
11336 return resultobj;
11337fail:
11338 return NULL;
11339}
11340
11341
11342SWIGINTERN PyObject *Rect2D_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11343 PyObject *obj;
11344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11345 SWIG_TypeNewClientData(SWIGTYPE_p_wxRect2D, SWIG_NewClientData(obj));
11346 return SWIG_Py_Void();
11347}
11348
11349SWIGINTERN PyObject *Rect2D_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11350 return SWIG_Python_InitShadowInstance(args);
11351}
11352
1bd55598
RD
11353SWIGINTERN int DefaultPosition_set(PyObject *) {
11354 SWIG_Error(SWIG_AttributeError,"Variable DefaultPosition is read-only.");
11355 return 1;
d55e5bfc
RD
11356}
11357
11358
1bd55598
RD
11359SWIGINTERN PyObject *DefaultPosition_get(void) {
11360 PyObject *pyobj = 0;
11361
11362 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0 );
11363 return pyobj;
d55e5bfc
RD
11364}
11365
11366
1bd55598
RD
11367SWIGINTERN int DefaultSize_set(PyObject *) {
11368 SWIG_Error(SWIG_AttributeError,"Variable DefaultSize is read-only.");
11369 return 1;
d55e5bfc
RD
11370}
11371
11372
1bd55598
RD
11373SWIGINTERN PyObject *DefaultSize_get(void) {
11374 PyObject *pyobj = 0;
11375
11376 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxDefaultSize), SWIGTYPE_p_wxSize, 0 );
11377 return pyobj;
d55e5bfc
RD
11378}
11379
11380
1bd55598
RD
11381SWIGINTERN PyObject *_wrap_new_InputStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11382 PyObject *resultobj = 0;
11383 PyObject *arg1 = (PyObject *) 0 ;
11384 wxPyInputStream *result = 0 ;
11385 PyObject * obj0 = 0 ;
11386 char * kwnames[] = {
11387 (char *) "p", NULL
11388 };
11389
11390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) SWIG_fail;
11391 arg1 = obj0;
11392 {
11393 PyThreadState* __tstate = wxPyBeginAllowThreads();
11394 result = (wxPyInputStream *)new_wxPyInputStream(arg1);
11395 wxPyEndAllowThreads(__tstate);
11396 if (PyErr_Occurred()) SWIG_fail;
11397 }
11398 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_NEW | 0 );
11399 return resultobj;
11400fail:
11401 return NULL;
d55e5bfc
RD
11402}
11403
11404
1bd55598
RD
11405SWIGINTERN PyObject *_wrap_delete_InputStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11406 PyObject *resultobj = 0;
11407 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11408 void *argp1 = 0 ;
11409 int res1 = 0 ;
11410 PyObject *swig_obj[1] ;
11411
11412 if (!args) SWIG_fail;
11413 swig_obj[0] = args;
11414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_DISOWN | 0 );
11415 if (!SWIG_IsOK(res1)) {
11416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InputStream" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11417 }
11418 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11419 {
11420 PyThreadState* __tstate = wxPyBeginAllowThreads();
11421 delete arg1;
d55e5bfc 11422
1bd55598
RD
11423 wxPyEndAllowThreads(__tstate);
11424 if (PyErr_Occurred()) SWIG_fail;
11425 }
11426 resultobj = SWIG_Py_Void();
11427 return resultobj;
11428fail:
11429 return NULL;
d55e5bfc
RD
11430}
11431
11432
1bd55598
RD
11433SWIGINTERN PyObject *_wrap_InputStream_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11434 PyObject *resultobj = 0;
11435 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11436 void *argp1 = 0 ;
11437 int res1 = 0 ;
11438 PyObject *swig_obj[1] ;
11439
11440 if (!args) SWIG_fail;
11441 swig_obj[0] = args;
11442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11443 if (!SWIG_IsOK(res1)) {
11444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_close" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11445 }
11446 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11447 {
11448 PyThreadState* __tstate = wxPyBeginAllowThreads();
11449 (arg1)->close();
11450 wxPyEndAllowThreads(__tstate);
11451 if (PyErr_Occurred()) SWIG_fail;
11452 }
11453 resultobj = SWIG_Py_Void();
11454 return resultobj;
11455fail:
11456 return NULL;
d55e5bfc
RD
11457}
11458
11459
1bd55598
RD
11460SWIGINTERN PyObject *_wrap_InputStream_flush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11461 PyObject *resultobj = 0;
11462 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11463 void *argp1 = 0 ;
11464 int res1 = 0 ;
11465 PyObject *swig_obj[1] ;
11466
11467 if (!args) SWIG_fail;
11468 swig_obj[0] = args;
11469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11470 if (!SWIG_IsOK(res1)) {
11471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_flush" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11472 }
11473 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11474 {
11475 PyThreadState* __tstate = wxPyBeginAllowThreads();
11476 (arg1)->flush();
11477 wxPyEndAllowThreads(__tstate);
11478 if (PyErr_Occurred()) SWIG_fail;
11479 }
11480 resultobj = SWIG_Py_Void();
11481 return resultobj;
11482fail:
11483 return NULL;
d55e5bfc
RD
11484}
11485
11486
1bd55598
RD
11487SWIGINTERN PyObject *_wrap_InputStream_eof(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11488 PyObject *resultobj = 0;
11489 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11490 bool result;
11491 void *argp1 = 0 ;
11492 int res1 = 0 ;
11493 PyObject *swig_obj[1] ;
11494
11495 if (!args) SWIG_fail;
11496 swig_obj[0] = args;
11497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11498 if (!SWIG_IsOK(res1)) {
11499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_eof" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11500 }
11501 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11502 {
11503 PyThreadState* __tstate = wxPyBeginAllowThreads();
11504 result = (bool)(arg1)->eof();
11505 wxPyEndAllowThreads(__tstate);
11506 if (PyErr_Occurred()) SWIG_fail;
11507 }
11508 {
11509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11510 }
11511 return resultobj;
11512fail:
11513 return NULL;
11514}
11515
11516
11517SWIGINTERN PyObject *_wrap_InputStream_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11518 PyObject *resultobj = 0;
11519 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11520 int arg2 = (int) -1 ;
11521 PyObject *result = 0 ;
11522 void *argp1 = 0 ;
11523 int res1 = 0 ;
11524 int val2 ;
11525 int ecode2 = 0 ;
11526 PyObject * obj0 = 0 ;
11527 PyObject * obj1 = 0 ;
11528 char * kwnames[] = {
11529 (char *) "self",(char *) "size", NULL
11530 };
11531
11532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) SWIG_fail;
11533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11534 if (!SWIG_IsOK(res1)) {
11535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_read" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11536 }
11537 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11538 if (obj1) {
11539 ecode2 = SWIG_AsVal_int(obj1, &val2);
11540 if (!SWIG_IsOK(ecode2)) {
11541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_read" "', expected argument " "2"" of type '" "int""'");
11542 }
11543 arg2 = static_cast< int >(val2);
11544 }
11545 {
11546 PyThreadState* __tstate = wxPyBeginAllowThreads();
11547 result = (PyObject *)(arg1)->read(arg2);
11548 wxPyEndAllowThreads(__tstate);
11549 if (PyErr_Occurred()) SWIG_fail;
11550 }
11551 resultobj = result;
11552 return resultobj;
11553fail:
11554 return NULL;
11555}
11556
11557
11558SWIGINTERN PyObject *_wrap_InputStream_readline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11559 PyObject *resultobj = 0;
11560 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11561 int arg2 = (int) -1 ;
11562 PyObject *result = 0 ;
11563 void *argp1 = 0 ;
11564 int res1 = 0 ;
11565 int val2 ;
11566 int ecode2 = 0 ;
11567 PyObject * obj0 = 0 ;
11568 PyObject * obj1 = 0 ;
11569 char * kwnames[] = {
11570 (char *) "self",(char *) "size", NULL
11571 };
11572
11573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) SWIG_fail;
11574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11575 if (!SWIG_IsOK(res1)) {
11576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_readline" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11577 }
11578 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11579 if (obj1) {
11580 ecode2 = SWIG_AsVal_int(obj1, &val2);
11581 if (!SWIG_IsOK(ecode2)) {
11582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_readline" "', expected argument " "2"" of type '" "int""'");
11583 }
11584 arg2 = static_cast< int >(val2);
11585 }
11586 {
11587 PyThreadState* __tstate = wxPyBeginAllowThreads();
11588 result = (PyObject *)(arg1)->readline(arg2);
11589 wxPyEndAllowThreads(__tstate);
11590 if (PyErr_Occurred()) SWIG_fail;
11591 }
11592 resultobj = result;
11593 return resultobj;
11594fail:
11595 return NULL;
11596}
11597
11598
11599SWIGINTERN PyObject *_wrap_InputStream_readlines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11600 PyObject *resultobj = 0;
11601 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11602 int arg2 = (int) -1 ;
11603 PyObject *result = 0 ;
11604 void *argp1 = 0 ;
11605 int res1 = 0 ;
11606 int val2 ;
11607 int ecode2 = 0 ;
11608 PyObject * obj0 = 0 ;
11609 PyObject * obj1 = 0 ;
11610 char * kwnames[] = {
11611 (char *) "self",(char *) "sizehint", NULL
11612 };
11613
11614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) SWIG_fail;
11615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11616 if (!SWIG_IsOK(res1)) {
11617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_readlines" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11618 }
11619 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11620 if (obj1) {
11621 ecode2 = SWIG_AsVal_int(obj1, &val2);
11622 if (!SWIG_IsOK(ecode2)) {
11623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_readlines" "', expected argument " "2"" of type '" "int""'");
11624 }
11625 arg2 = static_cast< int >(val2);
11626 }
11627 {
11628 PyThreadState* __tstate = wxPyBeginAllowThreads();
11629 result = (PyObject *)(arg1)->readlines(arg2);
11630 wxPyEndAllowThreads(__tstate);
11631 if (PyErr_Occurred()) SWIG_fail;
11632 }
11633 resultobj = result;
11634 return resultobj;
11635fail:
11636 return NULL;
11637}
11638
11639
11640SWIGINTERN PyObject *_wrap_InputStream_seek(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11641 PyObject *resultobj = 0;
11642 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11643 int arg2 ;
11644 int arg3 = (int) 0 ;
11645 void *argp1 = 0 ;
11646 int res1 = 0 ;
11647 int val2 ;
11648 int ecode2 = 0 ;
11649 int val3 ;
11650 int ecode3 = 0 ;
11651 PyObject * obj0 = 0 ;
11652 PyObject * obj1 = 0 ;
11653 PyObject * obj2 = 0 ;
11654 char * kwnames[] = {
11655 (char *) "self",(char *) "offset",(char *) "whence", NULL
11656 };
11657
11658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11660 if (!SWIG_IsOK(res1)) {
11661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_seek" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11662 }
11663 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11664 ecode2 = SWIG_AsVal_int(obj1, &val2);
11665 if (!SWIG_IsOK(ecode2)) {
11666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_seek" "', expected argument " "2"" of type '" "int""'");
11667 }
11668 arg2 = static_cast< int >(val2);
11669 if (obj2) {
11670 ecode3 = SWIG_AsVal_int(obj2, &val3);
11671 if (!SWIG_IsOK(ecode3)) {
11672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InputStream_seek" "', expected argument " "3"" of type '" "int""'");
11673 }
11674 arg3 = static_cast< int >(val3);
11675 }
11676 {
11677 PyThreadState* __tstate = wxPyBeginAllowThreads();
11678 (arg1)->seek(arg2,arg3);
11679 wxPyEndAllowThreads(__tstate);
11680 if (PyErr_Occurred()) SWIG_fail;
11681 }
11682 resultobj = SWIG_Py_Void();
11683 return resultobj;
11684fail:
11685 return NULL;
d55e5bfc
RD
11686}
11687
11688
1bd55598
RD
11689SWIGINTERN PyObject *_wrap_InputStream_tell(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11690 PyObject *resultobj = 0;
11691 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11692 int result;
11693 void *argp1 = 0 ;
11694 int res1 = 0 ;
11695 PyObject *swig_obj[1] ;
11696
11697 if (!args) SWIG_fail;
11698 swig_obj[0] = args;
11699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11700 if (!SWIG_IsOK(res1)) {
11701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_tell" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11702 }
11703 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11704 {
11705 PyThreadState* __tstate = wxPyBeginAllowThreads();
11706 result = (int)(arg1)->tell();
11707 wxPyEndAllowThreads(__tstate);
11708 if (PyErr_Occurred()) SWIG_fail;
11709 }
11710 resultobj = SWIG_From_int(static_cast< int >(result));
11711 return resultobj;
11712fail:
11713 return NULL;
d55e5bfc
RD
11714}
11715
11716
1bd55598
RD
11717SWIGINTERN PyObject *_wrap_InputStream_Peek(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11718 PyObject *resultobj = 0;
11719 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11720 char result;
11721 void *argp1 = 0 ;
11722 int res1 = 0 ;
11723 PyObject *swig_obj[1] ;
11724
11725 if (!args) SWIG_fail;
11726 swig_obj[0] = args;
11727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11728 if (!SWIG_IsOK(res1)) {
11729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_Peek" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11730 }
11731 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11732 {
11733 PyThreadState* __tstate = wxPyBeginAllowThreads();
11734 result = (char)(arg1)->Peek();
11735 wxPyEndAllowThreads(__tstate);
11736 if (PyErr_Occurred()) SWIG_fail;
11737 }
11738 resultobj = SWIG_From_char(static_cast< char >(result));
11739 return resultobj;
11740fail:
11741 return NULL;
d55e5bfc
RD
11742}
11743
11744
1bd55598
RD
11745SWIGINTERN PyObject *_wrap_InputStream_GetC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11746 PyObject *resultobj = 0;
11747 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11748 char result;
11749 void *argp1 = 0 ;
11750 int res1 = 0 ;
11751 PyObject *swig_obj[1] ;
11752
11753 if (!args) SWIG_fail;
11754 swig_obj[0] = args;
11755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11756 if (!SWIG_IsOK(res1)) {
11757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_GetC" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11758 }
11759 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11760 {
11761 PyThreadState* __tstate = wxPyBeginAllowThreads();
11762 result = (char)(arg1)->GetC();
11763 wxPyEndAllowThreads(__tstate);
11764 if (PyErr_Occurred()) SWIG_fail;
11765 }
11766 resultobj = SWIG_From_char(static_cast< char >(result));
11767 return resultobj;
11768fail:
11769 return NULL;
d55e5bfc
RD
11770}
11771
11772
1bd55598
RD
11773SWIGINTERN PyObject *_wrap_InputStream_LastRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11774 PyObject *resultobj = 0;
11775 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11776 size_t result;
11777 void *argp1 = 0 ;
11778 int res1 = 0 ;
11779 PyObject *swig_obj[1] ;
11780
11781 if (!args) SWIG_fail;
11782 swig_obj[0] = args;
11783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11784 if (!SWIG_IsOK(res1)) {
11785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_LastRead" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11786 }
11787 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11788 {
11789 PyThreadState* __tstate = wxPyBeginAllowThreads();
11790 result = (size_t)(arg1)->LastRead();
11791 wxPyEndAllowThreads(__tstate);
11792 if (PyErr_Occurred()) SWIG_fail;
11793 }
11794 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
11795 return resultobj;
11796fail:
11797 return NULL;
d55e5bfc
RD
11798}
11799
11800
1bd55598
RD
11801SWIGINTERN PyObject *_wrap_InputStream_CanRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11802 PyObject *resultobj = 0;
11803 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11804 bool result;
11805 void *argp1 = 0 ;
11806 int res1 = 0 ;
11807 PyObject *swig_obj[1] ;
11808
11809 if (!args) SWIG_fail;
11810 swig_obj[0] = args;
11811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11812 if (!SWIG_IsOK(res1)) {
11813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_CanRead" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11814 }
11815 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11816 {
11817 PyThreadState* __tstate = wxPyBeginAllowThreads();
11818 result = (bool)(arg1)->CanRead();
11819 wxPyEndAllowThreads(__tstate);
11820 if (PyErr_Occurred()) SWIG_fail;
11821 }
11822 {
11823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11824 }
11825 return resultobj;
11826fail:
11827 return NULL;
d55e5bfc
RD
11828}
11829
11830
1bd55598
RD
11831SWIGINTERN PyObject *_wrap_InputStream_Eof(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11832 PyObject *resultobj = 0;
11833 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11834 bool result;
11835 void *argp1 = 0 ;
11836 int res1 = 0 ;
11837 PyObject *swig_obj[1] ;
11838
11839 if (!args) SWIG_fail;
11840 swig_obj[0] = args;
11841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11842 if (!SWIG_IsOK(res1)) {
11843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_Eof" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11844 }
11845 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11846 {
11847 PyThreadState* __tstate = wxPyBeginAllowThreads();
11848 result = (bool)(arg1)->Eof();
11849 wxPyEndAllowThreads(__tstate);
11850 if (PyErr_Occurred()) SWIG_fail;
11851 }
11852 {
11853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11854 }
11855 return resultobj;
11856fail:
11857 return NULL;
11858}
11859
11860
11861SWIGINTERN PyObject *_wrap_InputStream_Ungetch(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11862 PyObject *resultobj = 0;
11863 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11864 char arg2 ;
11865 bool result;
11866 void *argp1 = 0 ;
11867 int res1 = 0 ;
11868 char val2 ;
11869 int ecode2 = 0 ;
11870 PyObject * obj0 = 0 ;
11871 PyObject * obj1 = 0 ;
11872 char * kwnames[] = {
11873 (char *) "self",(char *) "c", NULL
11874 };
11875
11876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) SWIG_fail;
11877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11878 if (!SWIG_IsOK(res1)) {
11879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_Ungetch" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11880 }
11881 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11882 ecode2 = SWIG_AsVal_char(obj1, &val2);
11883 if (!SWIG_IsOK(ecode2)) {
11884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_Ungetch" "', expected argument " "2"" of type '" "char""'");
11885 }
11886 arg2 = static_cast< char >(val2);
11887 {
11888 PyThreadState* __tstate = wxPyBeginAllowThreads();
11889 result = (bool)(arg1)->Ungetch(arg2);
11890 wxPyEndAllowThreads(__tstate);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 }
11893 {
11894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11895 }
11896 return resultobj;
11897fail:
11898 return NULL;
11899}
11900
11901
11902SWIGINTERN PyObject *_wrap_InputStream_SeekI(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11903 PyObject *resultobj = 0;
11904 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11905 long arg2 ;
11906 wxSeekMode arg3 = (wxSeekMode) wxFromStart ;
11907 long result;
11908 void *argp1 = 0 ;
11909 int res1 = 0 ;
11910 long val2 ;
11911 int ecode2 = 0 ;
11912 int val3 ;
11913 int ecode3 = 0 ;
11914 PyObject * obj0 = 0 ;
11915 PyObject * obj1 = 0 ;
11916 PyObject * obj2 = 0 ;
11917 char * kwnames[] = {
11918 (char *) "self",(char *) "pos",(char *) "mode", NULL
11919 };
11920
11921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11923 if (!SWIG_IsOK(res1)) {
11924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_SeekI" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11925 }
11926 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11927 ecode2 = SWIG_AsVal_long(obj1, &val2);
11928 if (!SWIG_IsOK(ecode2)) {
11929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_SeekI" "', expected argument " "2"" of type '" "long""'");
11930 }
11931 arg2 = static_cast< long >(val2);
11932 if (obj2) {
11933 ecode3 = SWIG_AsVal_int(obj2, &val3);
11934 if (!SWIG_IsOK(ecode3)) {
11935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InputStream_SeekI" "', expected argument " "3"" of type '" "wxSeekMode""'");
11936 }
11937 arg3 = static_cast< wxSeekMode >(val3);
11938 }
11939 {
11940 PyThreadState* __tstate = wxPyBeginAllowThreads();
11941 result = (long)(arg1)->SeekI(arg2,arg3);
11942 wxPyEndAllowThreads(__tstate);
11943 if (PyErr_Occurred()) SWIG_fail;
11944 }
11945 resultobj = SWIG_From_long(static_cast< long >(result));
11946 return resultobj;
11947fail:
11948 return NULL;
5cbf236d
RD
11949}
11950
11951
1bd55598
RD
11952SWIGINTERN PyObject *_wrap_InputStream_TellI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11953 PyObject *resultobj = 0;
11954 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
11955 long result;
11956 void *argp1 = 0 ;
11957 int res1 = 0 ;
11958 PyObject *swig_obj[1] ;
11959
11960 if (!args) SWIG_fail;
11961 swig_obj[0] = args;
11962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
11963 if (!SWIG_IsOK(res1)) {
11964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_TellI" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
11965 }
11966 arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
11967 {
11968 PyThreadState* __tstate = wxPyBeginAllowThreads();
11969 result = (long)(arg1)->TellI();
11970 wxPyEndAllowThreads(__tstate);
11971 if (PyErr_Occurred()) SWIG_fail;
11972 }
11973 resultobj = SWIG_From_long(static_cast< long >(result));
11974 return resultobj;
11975fail:
11976 return NULL;
d55e5bfc
RD
11977}
11978
11979
1bd55598
RD
11980SWIGINTERN PyObject *InputStream_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11981 PyObject *obj;
11982 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11983 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyInputStream, SWIG_NewClientData(obj));
11984 return SWIG_Py_Void();
d55e5bfc
RD
11985}
11986
1bd55598
RD
11987SWIGINTERN PyObject *InputStream_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11988 return SWIG_Python_InitShadowInstance(args);
11989}
d55e5bfc 11990
1bd55598
RD
11991SWIGINTERN PyObject *_wrap_OutputStream_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11992 PyObject *resultobj = 0;
11993 wxOutputStream *arg1 = (wxOutputStream *) 0 ;
11994 PyObject *arg2 = (PyObject *) 0 ;
11995 void *argp1 = 0 ;
11996 int res1 = 0 ;
11997 PyObject * obj0 = 0 ;
11998 PyObject * obj1 = 0 ;
11999 char * kwnames[] = {
12000 (char *) "self",(char *) "obj", NULL
12001 };
12002
12003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) SWIG_fail;
12004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxOutputStream, 0 | 0 );
12005 if (!SWIG_IsOK(res1)) {
12006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputStream_write" "', expected argument " "1"" of type '" "wxOutputStream *""'");
12007 }
12008 arg1 = reinterpret_cast< wxOutputStream * >(argp1);
12009 arg2 = obj1;
12010 {
12011 PyThreadState* __tstate = wxPyBeginAllowThreads();
12012 wxOutputStream_write(arg1,arg2);
12013 wxPyEndAllowThreads(__tstate);
12014 if (PyErr_Occurred()) SWIG_fail;
12015 }
12016 resultobj = SWIG_Py_Void();
12017 return resultobj;
12018fail:
12019 return NULL;
d55e5bfc
RD
12020}
12021
12022
1bd55598
RD
12023SWIGINTERN PyObject *_wrap_OutputStream_LastWrite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12024 PyObject *resultobj = 0;
12025 wxOutputStream *arg1 = (wxOutputStream *) 0 ;
12026 size_t result;
12027 void *argp1 = 0 ;
12028 int res1 = 0 ;
12029 PyObject *swig_obj[1] ;
12030
12031 if (!args) SWIG_fail;
12032 swig_obj[0] = args;
12033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOutputStream, 0 | 0 );
12034 if (!SWIG_IsOK(res1)) {
12035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputStream_LastWrite" "', expected argument " "1"" of type '" "wxOutputStream const *""'");
12036 }
12037 arg1 = reinterpret_cast< wxOutputStream * >(argp1);
12038 {
12039 PyThreadState* __tstate = wxPyBeginAllowThreads();
12040 result = (size_t)((wxOutputStream const *)arg1)->LastWrite();
12041 wxPyEndAllowThreads(__tstate);
12042 if (PyErr_Occurred()) SWIG_fail;
12043 }
12044 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12045 return resultobj;
12046fail:
12047 return NULL;
12048}
12049
12050
12051SWIGINTERN PyObject *OutputStream_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12052 PyObject *obj;
12053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12054 SWIG_TypeNewClientData(SWIGTYPE_p_wxOutputStream, SWIG_NewClientData(obj));
12055 return SWIG_Py_Void();
12056}
12057
12058SWIGINTERN PyObject *_wrap_new_FSFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12059 PyObject *resultobj = 0;
12060 wxInputStream *arg1 = (wxInputStream *) 0 ;
12061 wxString *arg2 = 0 ;
12062 wxString *arg3 = 0 ;
12063 wxString *arg4 = 0 ;
12064 wxDateTime arg5 ;
12065 wxFSFile *result = 0 ;
12066 wxPyInputStream *temp1 ;
12067 bool temp2 = false ;
12068 bool temp3 = false ;
12069 bool temp4 = false ;
12070 void *argp5 ;
12071 int res5 = 0 ;
12072 PyObject * obj0 = 0 ;
12073 PyObject * obj1 = 0 ;
12074 PyObject * obj2 = 0 ;
12075 PyObject * obj3 = 0 ;
12076 PyObject * obj4 = 0 ;
12077 char * kwnames[] = {
12078 (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL
12079 };
12080
12081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12082 {
12083 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
12084 arg1 = wxPyCBInputStream_copy((wxPyCBInputStream*)temp1->m_wxis);
12085 } else {
12086 PyErr_Clear(); // clear the failure of the wxPyConvert above
12087 arg1 = wxPyCBInputStream_create(obj0, true);
12088 if (arg1 == NULL) {
12089 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
12090 SWIG_fail;
12091 }
d55e5bfc 12092 }
1bd55598
RD
12093 }
12094 {
12095 arg2 = wxString_in_helper(obj1);
12096 if (arg2 == NULL) SWIG_fail;
12097 temp2 = true;
12098 }
12099 {
12100 arg3 = wxString_in_helper(obj2);
12101 if (arg3 == NULL) SWIG_fail;
12102 temp3 = true;
12103 }
12104 {
12105 arg4 = wxString_in_helper(obj3);
12106 if (arg4 == NULL) SWIG_fail;
12107 temp4 = true;
12108 }
12109 {
12110 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxDateTime, 0 | 0);
12111 if (!SWIG_IsOK(res5)) {
12112 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FSFile" "', expected argument " "5"" of type '" "wxDateTime""'");
12113 }
12114 if (!argp5) {
12115 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FSFile" "', expected argument " "5"" of type '" "wxDateTime""'");
12116 } else {
12117 wxDateTime * temp = reinterpret_cast< wxDateTime * >(argp5);
12118 arg5 = *temp;
12119 if (SWIG_IsNewObj(res5)) delete temp;
d55e5bfc 12120 }
1bd55598
RD
12121 }
12122 {
12123 PyThreadState* __tstate = wxPyBeginAllowThreads();
12124 result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
12125 wxPyEndAllowThreads(__tstate);
12126 if (PyErr_Occurred()) SWIG_fail;
12127 }
b850e7f3 12128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFSFile, SWIG_POINTER_NEW | 0 );
1bd55598
RD
12129 {
12130 if (temp2)
12131 delete arg2;
12132 }
12133 {
12134 if (temp3)
12135 delete arg3;
12136 }
12137 {
12138 if (temp4)
12139 delete arg4;
12140 }
12141 return resultobj;
12142fail:
12143 {
12144 if (temp2)
12145 delete arg2;
12146 }
12147 {
12148 if (temp3)
12149 delete arg3;
12150 }
12151 {
12152 if (temp4)
12153 delete arg4;
12154 }
12155 return NULL;
d55e5bfc
RD
12156}
12157
12158
1bd55598
RD
12159SWIGINTERN PyObject *_wrap_delete_FSFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12160 PyObject *resultobj = 0;
12161 wxFSFile *arg1 = (wxFSFile *) 0 ;
12162 void *argp1 = 0 ;
12163 int res1 = 0 ;
12164 PyObject *swig_obj[1] ;
12165
12166 if (!args) SWIG_fail;
12167 swig_obj[0] = args;
12168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, SWIG_POINTER_DISOWN | 0 );
12169 if (!SWIG_IsOK(res1)) {
12170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FSFile" "', expected argument " "1"" of type '" "wxFSFile *""'");
12171 }
12172 arg1 = reinterpret_cast< wxFSFile * >(argp1);
12173 {
12174 PyThreadState* __tstate = wxPyBeginAllowThreads();
12175 delete arg1;
d55e5bfc 12176
1bd55598
RD
12177 wxPyEndAllowThreads(__tstate);
12178 if (PyErr_Occurred()) SWIG_fail;
12179 }
12180 resultobj = SWIG_Py_Void();
12181 return resultobj;
12182fail:
12183 return NULL;
d55e5bfc
RD
12184}
12185
12186
1bd55598
RD
12187SWIGINTERN PyObject *_wrap_FSFile_GetStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12188 PyObject *resultobj = 0;
12189 wxFSFile *arg1 = (wxFSFile *) 0 ;
12190 wxInputStream *result = 0 ;
12191 void *argp1 = 0 ;
12192 int res1 = 0 ;
12193 PyObject *swig_obj[1] ;
12194
12195 if (!args) SWIG_fail;
12196 swig_obj[0] = args;
12197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
12198 if (!SWIG_IsOK(res1)) {
12199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_GetStream" "', expected argument " "1"" of type '" "wxFSFile *""'");
12200 }
12201 arg1 = reinterpret_cast< wxFSFile * >(argp1);
12202 {
12203 PyThreadState* __tstate = wxPyBeginAllowThreads();
12204 result = (wxInputStream *)(arg1)->GetStream();
12205 wxPyEndAllowThreads(__tstate);
12206 if (PyErr_Occurred()) SWIG_fail;
12207 }
12208 {
12209 wxPyInputStream * _ptr = NULL;
d55e5bfc 12210
1bd55598
RD
12211 if (result) {
12212 _ptr = new wxPyInputStream(result);
36ed4f51 12213 }
1bd55598
RD
12214 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
12215 }
12216 return resultobj;
12217fail:
12218 return NULL;
d55e5bfc
RD
12219}
12220
12221
ac5d357a
RD
12222SWIGINTERN PyObject *_wrap_FSFile_DetachStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12223 PyObject *resultobj = 0;
12224 wxFSFile *arg1 = (wxFSFile *) 0 ;
12225 void *argp1 = 0 ;
12226 int res1 = 0 ;
12227 PyObject *swig_obj[1] ;
12228
12229 if (!args) SWIG_fail;
12230 swig_obj[0] = args;
12231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
12232 if (!SWIG_IsOK(res1)) {
12233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_DetachStream" "', expected argument " "1"" of type '" "wxFSFile *""'");
12234 }
12235 arg1 = reinterpret_cast< wxFSFile * >(argp1);
12236 {
12237 PyThreadState* __tstate = wxPyBeginAllowThreads();
12238 (arg1)->DetachStream();
12239 wxPyEndAllowThreads(__tstate);
12240 if (PyErr_Occurred()) SWIG_fail;
12241 }
12242 resultobj = SWIG_Py_Void();
12243 return resultobj;
12244fail:
12245 return NULL;
12246}
12247
12248
1bd55598
RD
12249SWIGINTERN PyObject *_wrap_FSFile_GetMimeType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12250 PyObject *resultobj = 0;
12251 wxFSFile *arg1 = (wxFSFile *) 0 ;
12252 wxString *result = 0 ;
12253 void *argp1 = 0 ;
12254 int res1 = 0 ;
12255 PyObject *swig_obj[1] ;
12256
12257 if (!args) SWIG_fail;
12258 swig_obj[0] = args;
12259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
12260 if (!SWIG_IsOK(res1)) {
12261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_GetMimeType" "', expected argument " "1"" of type '" "wxFSFile *""'");
12262 }
12263 arg1 = reinterpret_cast< wxFSFile * >(argp1);
12264 {
12265 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 12266 {
1bd55598
RD
12267 wxString const &_result_ref = (arg1)->GetMimeType();
12268 result = (wxString *) &_result_ref;
d55e5bfc 12269 }
1bd55598
RD
12270 wxPyEndAllowThreads(__tstate);
12271 if (PyErr_Occurred()) SWIG_fail;
12272 }
12273 {
12274#if wxUSE_UNICODE
12275 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12276#else
12277 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12278#endif
12279 }
12280 return resultobj;
12281fail:
12282 return NULL;
d55e5bfc
RD
12283}
12284
12285
1bd55598
RD
12286SWIGINTERN PyObject *_wrap_FSFile_GetLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12287 PyObject *resultobj = 0;
12288 wxFSFile *arg1 = (wxFSFile *) 0 ;
12289 wxString *result = 0 ;
12290 void *argp1 = 0 ;
12291 int res1 = 0 ;
12292 PyObject *swig_obj[1] ;
12293
12294 if (!args) SWIG_fail;
12295 swig_obj[0] = args;
12296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
12297 if (!SWIG_IsOK(res1)) {
12298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_GetLocation" "', expected argument " "1"" of type '" "wxFSFile *""'");
12299 }
12300 arg1 = reinterpret_cast< wxFSFile * >(argp1);
12301 {
12302 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 12303 {
1bd55598
RD
12304 wxString const &_result_ref = (arg1)->GetLocation();
12305 result = (wxString *) &_result_ref;
d55e5bfc 12306 }
1bd55598
RD
12307 wxPyEndAllowThreads(__tstate);
12308 if (PyErr_Occurred()) SWIG_fail;
12309 }
12310 {
12311#if wxUSE_UNICODE
12312 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12313#else
12314 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12315#endif
12316 }
12317 return resultobj;
12318fail:
12319 return NULL;
d55e5bfc
RD
12320}
12321
12322
1bd55598
RD
12323SWIGINTERN PyObject *_wrap_FSFile_GetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12324 PyObject *resultobj = 0;
12325 wxFSFile *arg1 = (wxFSFile *) 0 ;
12326 wxString *result = 0 ;
12327 void *argp1 = 0 ;
12328 int res1 = 0 ;
12329 PyObject *swig_obj[1] ;
12330
12331 if (!args) SWIG_fail;
12332 swig_obj[0] = args;
12333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
12334 if (!SWIG_IsOK(res1)) {
12335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_GetAnchor" "', expected argument " "1"" of type '" "wxFSFile *""'");
12336 }
12337 arg1 = reinterpret_cast< wxFSFile * >(argp1);
12338 {
12339 PyThreadState* __tstate = wxPyBeginAllowThreads();
b1fcee84 12340 {
1bd55598
RD
12341 wxString const &_result_ref = (arg1)->GetAnchor();
12342 result = (wxString *) &_result_ref;
b1fcee84 12343 }
1bd55598
RD
12344 wxPyEndAllowThreads(__tstate);
12345 if (PyErr_Occurred()) SWIG_fail;
12346 }
12347 {
12348#if wxUSE_UNICODE
12349 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12350#else
12351 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12352#endif
12353 }
12354 return resultobj;
12355fail:
12356 return NULL;
b1fcee84
RD
12357}
12358
12359
1bd55598
RD
12360SWIGINTERN PyObject *_wrap_FSFile_GetModificationTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12361 PyObject *resultobj = 0;
12362 wxFSFile *arg1 = (wxFSFile *) 0 ;
12363 wxDateTime result;
12364 void *argp1 = 0 ;
12365 int res1 = 0 ;
12366 PyObject *swig_obj[1] ;
12367
12368 if (!args) SWIG_fail;
12369 swig_obj[0] = args;
12370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
12371 if (!SWIG_IsOK(res1)) {
12372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_GetModificationTime" "', expected argument " "1"" of type '" "wxFSFile *""'");
12373 }
12374 arg1 = reinterpret_cast< wxFSFile * >(argp1);
12375 {
12376 PyThreadState* __tstate = wxPyBeginAllowThreads();
12377 result = (arg1)->GetModificationTime();
12378 wxPyEndAllowThreads(__tstate);
12379 if (PyErr_Occurred()) SWIG_fail;
12380 }
12381 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
12382 return resultobj;
12383fail:
12384 return NULL;
d55e5bfc
RD
12385}
12386
12387
1bd55598
RD
12388SWIGINTERN PyObject *FSFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12389 PyObject *obj;
12390 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12391 SWIG_TypeNewClientData(SWIGTYPE_p_wxFSFile, SWIG_NewClientData(obj));
12392 return SWIG_Py_Void();
d55e5bfc
RD
12393}
12394
1bd55598
RD
12395SWIGINTERN PyObject *FSFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12396 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
12397}
12398
50f151d7
RD
12399SWIGINTERN PyObject *_wrap_delete_CPPFileSystemHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12400 PyObject *resultobj = 0;
12401 wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
12402 void *argp1 = 0 ;
12403 int res1 = 0 ;
12404 PyObject *swig_obj[1] ;
12405
12406 if (!args) SWIG_fail;
12407 swig_obj[0] = args;
12408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileSystemHandler, SWIG_POINTER_DISOWN | 0 );
12409 if (!SWIG_IsOK(res1)) {
12410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CPPFileSystemHandler" "', expected argument " "1"" of type '" "wxFileSystemHandler *""'");
12411 }
12412 arg1 = reinterpret_cast< wxFileSystemHandler * >(argp1);
12413 {
12414 PyThreadState* __tstate = wxPyBeginAllowThreads();
12415 delete arg1;
12416
12417 wxPyEndAllowThreads(__tstate);
12418 if (PyErr_Occurred()) SWIG_fail;
12419 }
12420 resultobj = SWIG_Py_Void();
12421 return resultobj;
12422fail:
12423 return NULL;
12424}
12425
12426
1bd55598
RD
12427SWIGINTERN PyObject *CPPFileSystemHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12428 PyObject *obj;
12429 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12430 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileSystemHandler, SWIG_NewClientData(obj));
12431 return SWIG_Py_Void();
d55e5bfc
RD
12432}
12433
1bd55598
RD
12434SWIGINTERN PyObject *_wrap_new_FileSystemHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12435 PyObject *resultobj = 0;
12436 wxPyFileSystemHandler *result = 0 ;
12437
12438 if (!SWIG_Python_UnpackTuple(args,"new_FileSystemHandler",0,0,0)) SWIG_fail;
12439 {
12440 PyThreadState* __tstate = wxPyBeginAllowThreads();
12441 result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler();
12442 wxPyEndAllowThreads(__tstate);
12443 if (PyErr_Occurred()) SWIG_fail;
12444 }
12445 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_NEW | 0 );
12446 return resultobj;
12447fail:
12448 return NULL;
12449}
12450
12451
12452SWIGINTERN PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12453 PyObject *resultobj = 0;
12454 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12455 PyObject *arg2 = (PyObject *) 0 ;
12456 PyObject *arg3 = (PyObject *) 0 ;
12457 void *argp1 = 0 ;
12458 int res1 = 0 ;
12459 PyObject * obj0 = 0 ;
12460 PyObject * obj1 = 0 ;
12461 PyObject * obj2 = 0 ;
12462 char * kwnames[] = {
12463 (char *) "self",(char *) "self",(char *) "_class", NULL
12464 };
12465
12466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12468 if (!SWIG_IsOK(res1)) {
12469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12470 }
12471 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12472 arg2 = obj1;
12473 arg3 = obj2;
12474 {
12475 PyThreadState* __tstate = wxPyBeginAllowThreads();
12476 (arg1)->_setCallbackInfo(arg2,arg3);
12477 wxPyEndAllowThreads(__tstate);
12478 if (PyErr_Occurred()) SWIG_fail;
12479 }
12480 resultobj = SWIG_Py_Void();
12481 return resultobj;
12482fail:
12483 return NULL;
12484}
12485
12486
12487SWIGINTERN PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12488 PyObject *resultobj = 0;
12489 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12490 wxString *arg2 = 0 ;
12491 bool result;
12492 void *argp1 = 0 ;
12493 int res1 = 0 ;
12494 bool temp2 = false ;
12495 PyObject * obj0 = 0 ;
12496 PyObject * obj1 = 0 ;
12497 char * kwnames[] = {
12498 (char *) "self",(char *) "location", NULL
12499 };
12500
12501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) SWIG_fail;
12502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12503 if (!SWIG_IsOK(res1)) {
12504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_CanOpen" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12505 }
12506 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12507 {
12508 arg2 = wxString_in_helper(obj1);
12509 if (arg2 == NULL) SWIG_fail;
12510 temp2 = true;
12511 }
12512 {
12513 PyThreadState* __tstate = wxPyBeginAllowThreads();
12514 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
12515 wxPyEndAllowThreads(__tstate);
12516 if (PyErr_Occurred()) SWIG_fail;
12517 }
12518 {
12519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12520 }
12521 {
12522 if (temp2)
12523 delete arg2;
12524 }
12525 return resultobj;
12526fail:
12527 {
12528 if (temp2)
12529 delete arg2;
12530 }
12531 return NULL;
12532}
12533
12534
12535SWIGINTERN PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12536 PyObject *resultobj = 0;
12537 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12538 wxFileSystem *arg2 = 0 ;
12539 wxString *arg3 = 0 ;
12540 wxFSFile *result = 0 ;
12541 void *argp1 = 0 ;
12542 int res1 = 0 ;
12543 void *argp2 = 0 ;
12544 int res2 = 0 ;
12545 bool temp3 = false ;
12546 PyObject * obj0 = 0 ;
12547 PyObject * obj1 = 0 ;
12548 PyObject * obj2 = 0 ;
12549 char * kwnames[] = {
12550 (char *) "self",(char *) "fs",(char *) "location", NULL
12551 };
12552
12553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12555 if (!SWIG_IsOK(res1)) {
12556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_OpenFile" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12557 }
12558 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12559 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFileSystem, 0 );
12560 if (!SWIG_IsOK(res2)) {
12561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FileSystemHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
12562 }
12563 if (!argp2) {
12564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FileSystemHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
12565 }
12566 arg2 = reinterpret_cast< wxFileSystem * >(argp2);
12567 {
12568 arg3 = wxString_in_helper(obj2);
12569 if (arg3 == NULL) SWIG_fail;
12570 temp3 = true;
12571 }
12572 {
12573 PyThreadState* __tstate = wxPyBeginAllowThreads();
12574 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
12575 wxPyEndAllowThreads(__tstate);
12576 if (PyErr_Occurred()) SWIG_fail;
12577 }
12578 {
b850e7f3 12579 resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
1bd55598
RD
12580 }
12581 {
12582 if (temp3)
12583 delete arg3;
12584 }
12585 return resultobj;
12586fail:
12587 {
12588 if (temp3)
12589 delete arg3;
12590 }
12591 return NULL;
12592}
12593
12594
12595SWIGINTERN PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12596 PyObject *resultobj = 0;
12597 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12598 wxString *arg2 = 0 ;
12599 int arg3 = (int) 0 ;
12600 wxString result;
12601 void *argp1 = 0 ;
12602 int res1 = 0 ;
12603 bool temp2 = false ;
12604 int val3 ;
12605 int ecode3 = 0 ;
12606 PyObject * obj0 = 0 ;
12607 PyObject * obj1 = 0 ;
12608 PyObject * obj2 = 0 ;
12609 char * kwnames[] = {
12610 (char *) "self",(char *) "spec",(char *) "flags", NULL
12611 };
12612
12613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12615 if (!SWIG_IsOK(res1)) {
12616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_FindFirst" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12617 }
12618 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12619 {
12620 arg2 = wxString_in_helper(obj1);
12621 if (arg2 == NULL) SWIG_fail;
12622 temp2 = true;
12623 }
12624 if (obj2) {
12625 ecode3 = SWIG_AsVal_int(obj2, &val3);
12626 if (!SWIG_IsOK(ecode3)) {
12627 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileSystemHandler_FindFirst" "', expected argument " "3"" of type '" "int""'");
12628 }
12629 arg3 = static_cast< int >(val3);
12630 }
12631 {
12632 PyThreadState* __tstate = wxPyBeginAllowThreads();
12633 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
12634 wxPyEndAllowThreads(__tstate);
12635 if (PyErr_Occurred()) SWIG_fail;
12636 }
12637 {
12638#if wxUSE_UNICODE
12639 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12640#else
12641 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12642#endif
12643 }
12644 {
12645 if (temp2)
12646 delete arg2;
12647 }
12648 return resultobj;
12649fail:
12650 {
12651 if (temp2)
12652 delete arg2;
12653 }
12654 return NULL;
d55e5bfc
RD
12655}
12656
12657
1bd55598
RD
12658SWIGINTERN PyObject *_wrap_FileSystemHandler_FindNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12659 PyObject *resultobj = 0;
12660 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12661 wxString result;
12662 void *argp1 = 0 ;
12663 int res1 = 0 ;
12664 PyObject *swig_obj[1] ;
12665
12666 if (!args) SWIG_fail;
12667 swig_obj[0] = args;
12668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12669 if (!SWIG_IsOK(res1)) {
12670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_FindNext" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12671 }
12672 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12673 {
12674 PyThreadState* __tstate = wxPyBeginAllowThreads();
12675 result = (arg1)->FindNext();
12676 wxPyEndAllowThreads(__tstate);
12677 if (PyErr_Occurred()) SWIG_fail;
12678 }
12679 {
12680#if wxUSE_UNICODE
12681 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12682#else
12683 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12684#endif
12685 }
12686 return resultobj;
12687fail:
12688 return NULL;
12689}
12690
12691
12692SWIGINTERN PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12693 PyObject *resultobj = 0;
12694 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12695 wxString *arg2 = 0 ;
12696 wxString result;
12697 void *argp1 = 0 ;
12698 int res1 = 0 ;
12699 bool temp2 = false ;
12700 PyObject * obj0 = 0 ;
12701 PyObject * obj1 = 0 ;
12702 char * kwnames[] = {
12703 (char *) "self",(char *) "location", NULL
12704 };
12705
12706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) SWIG_fail;
12707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12708 if (!SWIG_IsOK(res1)) {
12709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_GetProtocol" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12710 }
12711 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12712 {
12713 arg2 = wxString_in_helper(obj1);
12714 if (arg2 == NULL) SWIG_fail;
12715 temp2 = true;
12716 }
12717 {
12718 PyThreadState* __tstate = wxPyBeginAllowThreads();
12719 result = (arg1)->GetProtocol((wxString const &)*arg2);
12720 wxPyEndAllowThreads(__tstate);
12721 if (PyErr_Occurred()) SWIG_fail;
12722 }
12723 {
12724#if wxUSE_UNICODE
12725 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12726#else
12727 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12728#endif
12729 }
12730 {
12731 if (temp2)
12732 delete arg2;
12733 }
12734 return resultobj;
12735fail:
12736 {
12737 if (temp2)
12738 delete arg2;
12739 }
12740 return NULL;
12741}
12742
12743
12744SWIGINTERN PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12745 PyObject *resultobj = 0;
12746 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12747 wxString *arg2 = 0 ;
12748 wxString result;
12749 void *argp1 = 0 ;
12750 int res1 = 0 ;
12751 bool temp2 = false ;
12752 PyObject * obj0 = 0 ;
12753 PyObject * obj1 = 0 ;
12754 char * kwnames[] = {
12755 (char *) "self",(char *) "location", NULL
12756 };
12757
12758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) SWIG_fail;
12759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12760 if (!SWIG_IsOK(res1)) {
12761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_GetLeftLocation" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12762 }
12763 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12764 {
12765 arg2 = wxString_in_helper(obj1);
12766 if (arg2 == NULL) SWIG_fail;
12767 temp2 = true;
12768 }
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 result = (arg1)->GetLeftLocation((wxString const &)*arg2);
12772 wxPyEndAllowThreads(__tstate);
12773 if (PyErr_Occurred()) SWIG_fail;
12774 }
12775 {
12776#if wxUSE_UNICODE
12777 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12778#else
12779 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12780#endif
12781 }
12782 {
12783 if (temp2)
12784 delete arg2;
12785 }
12786 return resultobj;
12787fail:
12788 {
12789 if (temp2)
12790 delete arg2;
12791 }
12792 return NULL;
12793}
12794
12795
12796SWIGINTERN PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12797 PyObject *resultobj = 0;
12798 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12799 wxString *arg2 = 0 ;
12800 wxString result;
12801 void *argp1 = 0 ;
12802 int res1 = 0 ;
12803 bool temp2 = false ;
12804 PyObject * obj0 = 0 ;
12805 PyObject * obj1 = 0 ;
12806 char * kwnames[] = {
12807 (char *) "self",(char *) "location", NULL
12808 };
12809
12810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) SWIG_fail;
12811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12812 if (!SWIG_IsOK(res1)) {
12813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_GetAnchor" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12814 }
12815 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12816 {
12817 arg2 = wxString_in_helper(obj1);
12818 if (arg2 == NULL) SWIG_fail;
12819 temp2 = true;
12820 }
12821 {
12822 PyThreadState* __tstate = wxPyBeginAllowThreads();
12823 result = (arg1)->GetAnchor((wxString const &)*arg2);
12824 wxPyEndAllowThreads(__tstate);
12825 if (PyErr_Occurred()) SWIG_fail;
12826 }
12827 {
12828#if wxUSE_UNICODE
12829 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12830#else
12831 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12832#endif
12833 }
12834 {
12835 if (temp2)
12836 delete arg2;
12837 }
12838 return resultobj;
12839fail:
12840 {
12841 if (temp2)
12842 delete arg2;
12843 }
12844 return NULL;
12845}
12846
12847
12848SWIGINTERN PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12849 PyObject *resultobj = 0;
12850 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12851 wxString *arg2 = 0 ;
12852 wxString result;
12853 void *argp1 = 0 ;
12854 int res1 = 0 ;
12855 bool temp2 = false ;
12856 PyObject * obj0 = 0 ;
12857 PyObject * obj1 = 0 ;
12858 char * kwnames[] = {
12859 (char *) "self",(char *) "location", NULL
12860 };
12861
12862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) SWIG_fail;
12863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12864 if (!SWIG_IsOK(res1)) {
12865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_GetRightLocation" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12866 }
12867 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12868 {
12869 arg2 = wxString_in_helper(obj1);
12870 if (arg2 == NULL) SWIG_fail;
12871 temp2 = true;
12872 }
12873 {
12874 PyThreadState* __tstate = wxPyBeginAllowThreads();
12875 result = (arg1)->GetRightLocation((wxString const &)*arg2);
12876 wxPyEndAllowThreads(__tstate);
12877 if (PyErr_Occurred()) SWIG_fail;
12878 }
12879 {
12880#if wxUSE_UNICODE
12881 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12882#else
12883 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12884#endif
12885 }
12886 {
12887 if (temp2)
12888 delete arg2;
12889 }
12890 return resultobj;
12891fail:
12892 {
12893 if (temp2)
12894 delete arg2;
12895 }
12896 return NULL;
12897}
12898
12899
12900SWIGINTERN PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12901 PyObject *resultobj = 0;
12902 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
12903 wxString *arg2 = 0 ;
12904 wxString result;
12905 void *argp1 = 0 ;
12906 int res1 = 0 ;
12907 bool temp2 = false ;
12908 PyObject * obj0 = 0 ;
12909 PyObject * obj1 = 0 ;
12910 char * kwnames[] = {
12911 (char *) "self",(char *) "location", NULL
12912 };
12913
12914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) SWIG_fail;
12915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
12916 if (!SWIG_IsOK(res1)) {
12917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_GetMimeTypeFromExt" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
12918 }
12919 arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
12920 {
12921 arg2 = wxString_in_helper(obj1);
12922 if (arg2 == NULL) SWIG_fail;
12923 temp2 = true;
12924 }
12925 {
12926 PyThreadState* __tstate = wxPyBeginAllowThreads();
12927 result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2);
12928 wxPyEndAllowThreads(__tstate);
12929 if (PyErr_Occurred()) SWIG_fail;
12930 }
12931 {
12932#if wxUSE_UNICODE
12933 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12934#else
12935 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12936#endif
12937 }
12938 {
12939 if (temp2)
12940 delete arg2;
12941 }
12942 return resultobj;
12943fail:
12944 {
12945 if (temp2)
12946 delete arg2;
12947 }
12948 return NULL;
d55e5bfc
RD
12949}
12950
12951
1bd55598
RD
12952SWIGINTERN PyObject *FileSystemHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12953 PyObject *obj;
12954 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12955 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFileSystemHandler, SWIG_NewClientData(obj));
12956 return SWIG_Py_Void();
d55e5bfc
RD
12957}
12958
1bd55598
RD
12959SWIGINTERN PyObject *FileSystemHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12960 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
12961}
12962
1bd55598
RD
12963SWIGINTERN PyObject *_wrap_new_FileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12964 PyObject *resultobj = 0;
12965 wxFileSystem *result = 0 ;
12966
12967 if (!SWIG_Python_UnpackTuple(args,"new_FileSystem",0,0,0)) SWIG_fail;
12968 {
12969 PyThreadState* __tstate = wxPyBeginAllowThreads();
12970 result = (wxFileSystem *)new wxFileSystem();
12971 wxPyEndAllowThreads(__tstate);
12972 if (PyErr_Occurred()) SWIG_fail;
12973 }
3ecece7e 12974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystem, SWIG_POINTER_NEW | 0 );
1bd55598
RD
12975 return resultobj;
12976fail:
12977 return NULL;
d55e5bfc
RD
12978}
12979
12980
1bd55598
RD
12981SWIGINTERN PyObject *_wrap_delete_FileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12982 PyObject *resultobj = 0;
12983 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
12984 void *argp1 = 0 ;
12985 int res1 = 0 ;
12986 PyObject *swig_obj[1] ;
12987
12988 if (!args) SWIG_fail;
12989 swig_obj[0] = args;
12990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileSystem, SWIG_POINTER_DISOWN | 0 );
12991 if (!SWIG_IsOK(res1)) {
12992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FileSystem" "', expected argument " "1"" of type '" "wxFileSystem *""'");
12993 }
12994 arg1 = reinterpret_cast< wxFileSystem * >(argp1);
12995 {
12996 PyThreadState* __tstate = wxPyBeginAllowThreads();
12997 delete arg1;
d55e5bfc 12998
1bd55598
RD
12999 wxPyEndAllowThreads(__tstate);
13000 if (PyErr_Occurred()) SWIG_fail;
13001 }
13002 resultobj = SWIG_Py_Void();
13003 return resultobj;
13004fail:
13005 return NULL;
13006}
13007
13008
13009SWIGINTERN PyObject *_wrap_FileSystem_ChangePathTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13010 PyObject *resultobj = 0;
13011 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
13012 wxString *arg2 = 0 ;
13013 bool arg3 = (bool) false ;
13014 void *argp1 = 0 ;
13015 int res1 = 0 ;
13016 bool temp2 = false ;
13017 bool val3 ;
13018 int ecode3 = 0 ;
13019 PyObject * obj0 = 0 ;
13020 PyObject * obj1 = 0 ;
13021 PyObject * obj2 = 0 ;
13022 char * kwnames[] = {
13023 (char *) "self",(char *) "location",(char *) "is_dir", NULL
13024 };
13025
13026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileSystem, 0 | 0 );
13028 if (!SWIG_IsOK(res1)) {
13029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_ChangePathTo" "', expected argument " "1"" of type '" "wxFileSystem *""'");
13030 }
13031 arg1 = reinterpret_cast< wxFileSystem * >(argp1);
13032 {
13033 arg2 = wxString_in_helper(obj1);
13034 if (arg2 == NULL) SWIG_fail;
13035 temp2 = true;
13036 }
13037 if (obj2) {
13038 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13039 if (!SWIG_IsOK(ecode3)) {
13040 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileSystem_ChangePathTo" "', expected argument " "3"" of type '" "bool""'");
13041 }
13042 arg3 = static_cast< bool >(val3);
13043 }
13044 {
13045 PyThreadState* __tstate = wxPyBeginAllowThreads();
13046 (arg1)->ChangePathTo((wxString const &)*arg2,arg3);
13047 wxPyEndAllowThreads(__tstate);
13048 if (PyErr_Occurred()) SWIG_fail;
13049 }
13050 resultobj = SWIG_Py_Void();
13051 {
13052 if (temp2)
13053 delete arg2;
13054 }
13055 return resultobj;
13056fail:
13057 {
13058 if (temp2)
13059 delete arg2;
13060 }
13061 return NULL;
d55e5bfc
RD
13062}
13063
13064
1bd55598
RD
13065SWIGINTERN PyObject *_wrap_FileSystem_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13066 PyObject *resultobj = 0;
13067 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
13068 wxString result;
13069 void *argp1 = 0 ;
13070 int res1 = 0 ;
13071 PyObject *swig_obj[1] ;
13072
13073 if (!args) SWIG_fail;
13074 swig_obj[0] = args;
13075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileSystem, 0 | 0 );
13076 if (!SWIG_IsOK(res1)) {
13077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_GetPath" "', expected argument " "1"" of type '" "wxFileSystem *""'");
13078 }
13079 arg1 = reinterpret_cast< wxFileSystem * >(argp1);
13080 {
13081 PyThreadState* __tstate = wxPyBeginAllowThreads();
13082 result = (arg1)->GetPath();
13083 wxPyEndAllowThreads(__tstate);
13084 if (PyErr_Occurred()) SWIG_fail;
13085 }
13086 {
13087#if wxUSE_UNICODE
13088 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13089#else
13090 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13091#endif
13092 }
13093 return resultobj;
13094fail:
13095 return NULL;
13096}
13097
13098
13099SWIGINTERN PyObject *_wrap_FileSystem_OpenFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13100 PyObject *resultobj = 0;
13101 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
13102 wxString *arg2 = 0 ;
13103 wxFSFile *result = 0 ;
13104 void *argp1 = 0 ;
13105 int res1 = 0 ;
13106 bool temp2 = false ;
13107 PyObject * obj0 = 0 ;
13108 PyObject * obj1 = 0 ;
13109 char * kwnames[] = {
13110 (char *) "self",(char *) "location", NULL
13111 };
13112
13113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) SWIG_fail;
13114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileSystem, 0 | 0 );
13115 if (!SWIG_IsOK(res1)) {
13116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_OpenFile" "', expected argument " "1"" of type '" "wxFileSystem *""'");
13117 }
13118 arg1 = reinterpret_cast< wxFileSystem * >(argp1);
13119 {
13120 arg2 = wxString_in_helper(obj1);
13121 if (arg2 == NULL) SWIG_fail;
13122 temp2 = true;
13123 }
13124 {
13125 PyThreadState* __tstate = wxPyBeginAllowThreads();
13126 result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2);
13127 wxPyEndAllowThreads(__tstate);
13128 if (PyErr_Occurred()) SWIG_fail;
13129 }
13130 {
b850e7f3 13131 resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
1bd55598
RD
13132 }
13133 {
13134 if (temp2)
13135 delete arg2;
13136 }
13137 return resultobj;
13138fail:
13139 {
13140 if (temp2)
13141 delete arg2;
13142 }
13143 return NULL;
13144}
13145
13146
13147SWIGINTERN PyObject *_wrap_FileSystem_FindFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13148 PyObject *resultobj = 0;
13149 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
13150 wxString *arg2 = 0 ;
13151 int arg3 = (int) 0 ;
13152 wxString result;
13153 void *argp1 = 0 ;
13154 int res1 = 0 ;
13155 bool temp2 = false ;
13156 int val3 ;
13157 int ecode3 = 0 ;
13158 PyObject * obj0 = 0 ;
13159 PyObject * obj1 = 0 ;
13160 PyObject * obj2 = 0 ;
13161 char * kwnames[] = {
13162 (char *) "self",(char *) "spec",(char *) "flags", NULL
13163 };
13164
13165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileSystem, 0 | 0 );
13167 if (!SWIG_IsOK(res1)) {
13168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_FindFirst" "', expected argument " "1"" of type '" "wxFileSystem *""'");
13169 }
13170 arg1 = reinterpret_cast< wxFileSystem * >(argp1);
13171 {
13172 arg2 = wxString_in_helper(obj1);
13173 if (arg2 == NULL) SWIG_fail;
13174 temp2 = true;
13175 }
13176 if (obj2) {
13177 ecode3 = SWIG_AsVal_int(obj2, &val3);
13178 if (!SWIG_IsOK(ecode3)) {
13179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileSystem_FindFirst" "', expected argument " "3"" of type '" "int""'");
13180 }
13181 arg3 = static_cast< int >(val3);
13182 }
13183 {
13184 PyThreadState* __tstate = wxPyBeginAllowThreads();
13185 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
13186 wxPyEndAllowThreads(__tstate);
13187 if (PyErr_Occurred()) SWIG_fail;
13188 }
13189 {
13190#if wxUSE_UNICODE
13191 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13192#else
13193 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13194#endif
13195 }
13196 {
13197 if (temp2)
13198 delete arg2;
13199 }
13200 return resultobj;
13201fail:
13202 {
13203 if (temp2)
13204 delete arg2;
13205 }
13206 return NULL;
d55e5bfc
RD
13207}
13208
13209
1bd55598
RD
13210SWIGINTERN PyObject *_wrap_FileSystem_FindNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13211 PyObject *resultobj = 0;
13212 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
13213 wxString result;
13214 void *argp1 = 0 ;
13215 int res1 = 0 ;
13216 PyObject *swig_obj[1] ;
13217
13218 if (!args) SWIG_fail;
13219 swig_obj[0] = args;
13220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileSystem, 0 | 0 );
13221 if (!SWIG_IsOK(res1)) {
13222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_FindNext" "', expected argument " "1"" of type '" "wxFileSystem *""'");
13223 }
13224 arg1 = reinterpret_cast< wxFileSystem * >(argp1);
13225 {
13226 PyThreadState* __tstate = wxPyBeginAllowThreads();
13227 result = (arg1)->FindNext();
13228 wxPyEndAllowThreads(__tstate);
13229 if (PyErr_Occurred()) SWIG_fail;
13230 }
13231 {
13232#if wxUSE_UNICODE
13233 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13234#else
13235 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13236#endif
13237 }
13238 return resultobj;
13239fail:
13240 return NULL;
d55e5bfc
RD
13241}
13242
13243
1bd55598
RD
13244SWIGINTERN PyObject *_wrap_FileSystem_AddHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13245 PyObject *resultobj = 0;
13246 wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
1bd55598
RD
13247 int res1 = 0 ;
13248 PyObject * obj0 = 0 ;
13249 char * kwnames[] = {
13250 (char *) "handler", NULL
13251 };
13252
13253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) SWIG_fail;
50f151d7 13254 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxFileSystemHandler, SWIG_POINTER_DISOWN | 0 );
1bd55598 13255 if (!SWIG_IsOK(res1)) {
50f151d7 13256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_AddHandler" "', expected argument " "1"" of type '" "wxFileSystemHandler *""'");
1bd55598 13257 }
1bd55598
RD
13258 {
13259 PyThreadState* __tstate = wxPyBeginAllowThreads();
13260 wxFileSystem::AddHandler(arg1);
13261 wxPyEndAllowThreads(__tstate);
13262 if (PyErr_Occurred()) SWIG_fail;
13263 }
13264 resultobj = SWIG_Py_Void();
13265 return resultobj;
13266fail:
13267 return NULL;
d55e5bfc
RD
13268}
13269
13270
ac5d357a
RD
13271SWIGINTERN PyObject *_wrap_FileSystem_RemoveHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13272 PyObject *resultobj = 0;
13273 wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
13274 wxFileSystemHandler *result = 0 ;
13275 void *argp1 = 0 ;
13276 int res1 = 0 ;
13277 PyObject * obj0 = 0 ;
13278 char * kwnames[] = {
13279 (char *) "handler", NULL
13280 };
13281
13282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_RemoveHandler",kwnames,&obj0)) SWIG_fail;
13283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileSystemHandler, 0 | 0 );
13284 if (!SWIG_IsOK(res1)) {
13285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_RemoveHandler" "', expected argument " "1"" of type '" "wxFileSystemHandler *""'");
13286 }
13287 arg1 = reinterpret_cast< wxFileSystemHandler * >(argp1);
13288 {
13289 PyThreadState* __tstate = wxPyBeginAllowThreads();
13290 result = (wxFileSystemHandler *)wxFileSystem::RemoveHandler(arg1);
13291 wxPyEndAllowThreads(__tstate);
13292 if (PyErr_Occurred()) SWIG_fail;
13293 }
13294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystemHandler, SWIG_POINTER_OWN | 0 );
13295 return resultobj;
13296fail:
13297 return NULL;
13298}
13299
13300
1bd55598
RD
13301SWIGINTERN PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13302 PyObject *resultobj = 0;
13303
13304 if (!SWIG_Python_UnpackTuple(args,"FileSystem_CleanUpHandlers",0,0,0)) SWIG_fail;
13305 {
13306 PyThreadState* __tstate = wxPyBeginAllowThreads();
13307 wxFileSystem::CleanUpHandlers();
13308 wxPyEndAllowThreads(__tstate);
13309 if (PyErr_Occurred()) SWIG_fail;
13310 }
13311 resultobj = SWIG_Py_Void();
13312 return resultobj;
13313fail:
13314 return NULL;
d55e5bfc
RD
13315}
13316
13317
1bd55598
RD
13318SWIGINTERN PyObject *_wrap_FileSystem_FileNameToURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13319 PyObject *resultobj = 0;
13320 wxString *arg1 = 0 ;
13321 wxString result;
13322 bool temp1 = false ;
13323 PyObject * obj0 = 0 ;
13324 char * kwnames[] = {
13325 (char *) "filename", NULL
13326 };
13327
13328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) SWIG_fail;
13329 {
13330 arg1 = wxString_in_helper(obj0);
13331 if (arg1 == NULL) SWIG_fail;
13332 temp1 = true;
13333 }
13334 {
13335 PyThreadState* __tstate = wxPyBeginAllowThreads();
13336 result = wxFileSystem::FileNameToURL((wxString const &)*arg1);
13337 wxPyEndAllowThreads(__tstate);
13338 if (PyErr_Occurred()) SWIG_fail;
13339 }
13340 {
13341#if wxUSE_UNICODE
13342 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13343#else
13344 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13345#endif
13346 }
13347 {
13348 if (temp1)
13349 delete arg1;
13350 }
13351 return resultobj;
13352fail:
13353 {
13354 if (temp1)
13355 delete arg1;
13356 }
13357 return NULL;
d55e5bfc
RD
13358}
13359
13360
1bd55598
RD
13361SWIGINTERN PyObject *_wrap_FileSystem_URLToFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13362 PyObject *resultobj = 0;
13363 wxString *arg1 = 0 ;
13364 wxString result;
13365 bool temp1 = false ;
13366 PyObject * obj0 = 0 ;
13367 char * kwnames[] = {
13368 (char *) "url", NULL
13369 };
13370
13371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) SWIG_fail;
13372 {
13373 arg1 = wxString_in_helper(obj0);
13374 if (arg1 == NULL) SWIG_fail;
13375 temp1 = true;
13376 }
13377 {
13378 PyThreadState* __tstate = wxPyBeginAllowThreads();
13379 result = wxFileSystem_URLToFileName((wxString const &)*arg1);
13380 wxPyEndAllowThreads(__tstate);
13381 if (PyErr_Occurred()) SWIG_fail;
13382 }
13383 {
13384#if wxUSE_UNICODE
13385 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13386#else
13387 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13388#endif
13389 }
13390 {
13391 if (temp1)
13392 delete arg1;
13393 }
13394 return resultobj;
13395fail:
13396 {
13397 if (temp1)
13398 delete arg1;
13399 }
13400 return NULL;
d55e5bfc
RD
13401}
13402
13403
1bd55598
RD
13404SWIGINTERN PyObject *FileSystem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13405 PyObject *obj;
13406 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13407 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileSystem, SWIG_NewClientData(obj));
13408 return SWIG_Py_Void();
d55e5bfc
RD
13409}
13410
1bd55598
RD
13411SWIGINTERN PyObject *FileSystem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13412 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
13413}
13414
1bd55598
RD
13415SWIGINTERN PyObject *_wrap_new_InternetFSHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13416 PyObject *resultobj = 0;
13417 wxInternetFSHandler *result = 0 ;
13418
13419 if (!SWIG_Python_UnpackTuple(args,"new_InternetFSHandler",0,0,0)) SWIG_fail;
13420 {
13421 PyThreadState* __tstate = wxPyBeginAllowThreads();
13422 result = (wxInternetFSHandler *)new wxInternetFSHandler();
13423 wxPyEndAllowThreads(__tstate);
13424 if (PyErr_Occurred()) SWIG_fail;
13425 }
13426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxInternetFSHandler, SWIG_POINTER_NEW | 0 );
13427 return resultobj;
13428fail:
13429 return NULL;
13430}
13431
13432
13433SWIGINTERN PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13434 PyObject *resultobj = 0;
13435 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
13436 wxString *arg2 = 0 ;
13437 bool result;
13438 void *argp1 = 0 ;
13439 int res1 = 0 ;
13440 bool temp2 = false ;
13441 PyObject * obj0 = 0 ;
13442 PyObject * obj1 = 0 ;
13443 char * kwnames[] = {
13444 (char *) "self",(char *) "location", NULL
13445 };
13446
13447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) SWIG_fail;
13448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxInternetFSHandler, 0 | 0 );
13449 if (!SWIG_IsOK(res1)) {
13450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InternetFSHandler_CanOpen" "', expected argument " "1"" of type '" "wxInternetFSHandler *""'");
13451 }
13452 arg1 = reinterpret_cast< wxInternetFSHandler * >(argp1);
13453 {
13454 arg2 = wxString_in_helper(obj1);
13455 if (arg2 == NULL) SWIG_fail;
13456 temp2 = true;
13457 }
13458 {
13459 PyThreadState* __tstate = wxPyBeginAllowThreads();
13460 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
13461 wxPyEndAllowThreads(__tstate);
13462 if (PyErr_Occurred()) SWIG_fail;
13463 }
13464 {
13465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13466 }
13467 {
13468 if (temp2)
13469 delete arg2;
13470 }
13471 return resultobj;
13472fail:
13473 {
13474 if (temp2)
13475 delete arg2;
13476 }
13477 return NULL;
13478}
13479
13480
13481SWIGINTERN PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13482 PyObject *resultobj = 0;
13483 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
13484 wxFileSystem *arg2 = 0 ;
13485 wxString *arg3 = 0 ;
13486 wxFSFile *result = 0 ;
13487 void *argp1 = 0 ;
13488 int res1 = 0 ;
13489 void *argp2 = 0 ;
13490 int res2 = 0 ;
13491 bool temp3 = false ;
13492 PyObject * obj0 = 0 ;
13493 PyObject * obj1 = 0 ;
13494 PyObject * obj2 = 0 ;
13495 char * kwnames[] = {
13496 (char *) "self",(char *) "fs",(char *) "location", NULL
13497 };
13498
13499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxInternetFSHandler, 0 | 0 );
13501 if (!SWIG_IsOK(res1)) {
13502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InternetFSHandler_OpenFile" "', expected argument " "1"" of type '" "wxInternetFSHandler *""'");
13503 }
13504 arg1 = reinterpret_cast< wxInternetFSHandler * >(argp1);
13505 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFileSystem, 0 );
13506 if (!SWIG_IsOK(res2)) {
13507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InternetFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
13508 }
13509 if (!argp2) {
13510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InternetFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
13511 }
13512 arg2 = reinterpret_cast< wxFileSystem * >(argp2);
13513 {
13514 arg3 = wxString_in_helper(obj2);
13515 if (arg3 == NULL) SWIG_fail;
13516 temp3 = true;
13517 }
13518 {
13519 PyThreadState* __tstate = wxPyBeginAllowThreads();
13520 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
13521 wxPyEndAllowThreads(__tstate);
13522 if (PyErr_Occurred()) SWIG_fail;
13523 }
13524 {
b850e7f3 13525 resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
1bd55598
RD
13526 }
13527 {
13528 if (temp3)
13529 delete arg3;
13530 }
13531 return resultobj;
13532fail:
13533 {
13534 if (temp3)
13535 delete arg3;
13536 }
13537 return NULL;
d55e5bfc
RD
13538}
13539
13540
1bd55598
RD
13541SWIGINTERN PyObject *InternetFSHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13542 PyObject *obj;
13543 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13544 SWIG_TypeNewClientData(SWIGTYPE_p_wxInternetFSHandler, SWIG_NewClientData(obj));
13545 return SWIG_Py_Void();
d55e5bfc
RD
13546}
13547
1bd55598
RD
13548SWIGINTERN PyObject *InternetFSHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13549 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
13550}
13551
1bd55598
RD
13552SWIGINTERN PyObject *_wrap_new_ZipFSHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13553 PyObject *resultobj = 0;
13554 wxZipFSHandler *result = 0 ;
13555
13556 if (!SWIG_Python_UnpackTuple(args,"new_ZipFSHandler",0,0,0)) SWIG_fail;
13557 {
13558 PyThreadState* __tstate = wxPyBeginAllowThreads();
13559 result = (wxZipFSHandler *)new wxZipFSHandler();
13560 wxPyEndAllowThreads(__tstate);
13561 if (PyErr_Occurred()) SWIG_fail;
13562 }
13563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_NEW | 0 );
13564 return resultobj;
13565fail:
13566 return NULL;
13567}
13568
13569
13570SWIGINTERN PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13571 PyObject *resultobj = 0;
13572 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
13573 wxString *arg2 = 0 ;
13574 bool result;
13575 void *argp1 = 0 ;
13576 int res1 = 0 ;
13577 bool temp2 = false ;
13578 PyObject * obj0 = 0 ;
13579 PyObject * obj1 = 0 ;
13580 char * kwnames[] = {
13581 (char *) "self",(char *) "location", NULL
13582 };
13583
13584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) SWIG_fail;
13585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxZipFSHandler, 0 | 0 );
13586 if (!SWIG_IsOK(res1)) {
13587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZipFSHandler_CanOpen" "', expected argument " "1"" of type '" "wxZipFSHandler *""'");
13588 }
13589 arg1 = reinterpret_cast< wxZipFSHandler * >(argp1);
13590 {
13591 arg2 = wxString_in_helper(obj1);
13592 if (arg2 == NULL) SWIG_fail;
13593 temp2 = true;
13594 }
13595 {
13596 PyThreadState* __tstate = wxPyBeginAllowThreads();
13597 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
13598 wxPyEndAllowThreads(__tstate);
13599 if (PyErr_Occurred()) SWIG_fail;
13600 }
13601 {
13602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13603 }
13604 {
13605 if (temp2)
13606 delete arg2;
13607 }
13608 return resultobj;
13609fail:
13610 {
13611 if (temp2)
13612 delete arg2;
13613 }
13614 return NULL;
13615}
13616
13617
13618SWIGINTERN PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13619 PyObject *resultobj = 0;
13620 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
13621 wxFileSystem *arg2 = 0 ;
13622 wxString *arg3 = 0 ;
13623 wxFSFile *result = 0 ;
13624 void *argp1 = 0 ;
13625 int res1 = 0 ;
13626 void *argp2 = 0 ;
13627 int res2 = 0 ;
13628 bool temp3 = false ;
13629 PyObject * obj0 = 0 ;
13630 PyObject * obj1 = 0 ;
13631 PyObject * obj2 = 0 ;
13632 char * kwnames[] = {
13633 (char *) "self",(char *) "fs",(char *) "location", NULL
13634 };
13635
13636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxZipFSHandler, 0 | 0 );
13638 if (!SWIG_IsOK(res1)) {
13639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZipFSHandler_OpenFile" "', expected argument " "1"" of type '" "wxZipFSHandler *""'");
13640 }
13641 arg1 = reinterpret_cast< wxZipFSHandler * >(argp1);
13642 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFileSystem, 0 );
13643 if (!SWIG_IsOK(res2)) {
13644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZipFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
13645 }
13646 if (!argp2) {
13647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZipFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
13648 }
13649 arg2 = reinterpret_cast< wxFileSystem * >(argp2);
13650 {
13651 arg3 = wxString_in_helper(obj2);
13652 if (arg3 == NULL) SWIG_fail;
13653 temp3 = true;
13654 }
13655 {
13656 PyThreadState* __tstate = wxPyBeginAllowThreads();
13657 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
13658 wxPyEndAllowThreads(__tstate);
13659 if (PyErr_Occurred()) SWIG_fail;
13660 }
13661 {
b850e7f3 13662 resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
1bd55598
RD
13663 }
13664 {
13665 if (temp3)
13666 delete arg3;
13667 }
13668 return resultobj;
13669fail:
13670 {
13671 if (temp3)
13672 delete arg3;
13673 }
13674 return NULL;
13675}
13676
13677
13678SWIGINTERN PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13679 PyObject *resultobj = 0;
13680 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
13681 wxString *arg2 = 0 ;
13682 int arg3 = (int) 0 ;
13683 wxString result;
13684 void *argp1 = 0 ;
13685 int res1 = 0 ;
13686 bool temp2 = false ;
13687 int val3 ;
13688 int ecode3 = 0 ;
13689 PyObject * obj0 = 0 ;
13690 PyObject * obj1 = 0 ;
13691 PyObject * obj2 = 0 ;
13692 char * kwnames[] = {
13693 (char *) "self",(char *) "spec",(char *) "flags", NULL
13694 };
13695
13696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxZipFSHandler, 0 | 0 );
13698 if (!SWIG_IsOK(res1)) {
13699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZipFSHandler_FindFirst" "', expected argument " "1"" of type '" "wxZipFSHandler *""'");
13700 }
13701 arg1 = reinterpret_cast< wxZipFSHandler * >(argp1);
13702 {
13703 arg2 = wxString_in_helper(obj1);
13704 if (arg2 == NULL) SWIG_fail;
13705 temp2 = true;
13706 }
13707 if (obj2) {
13708 ecode3 = SWIG_AsVal_int(obj2, &val3);
13709 if (!SWIG_IsOK(ecode3)) {
13710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ZipFSHandler_FindFirst" "', expected argument " "3"" of type '" "int""'");
13711 }
13712 arg3 = static_cast< int >(val3);
13713 }
13714 {
13715 PyThreadState* __tstate = wxPyBeginAllowThreads();
13716 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
13717 wxPyEndAllowThreads(__tstate);
13718 if (PyErr_Occurred()) SWIG_fail;
13719 }
13720 {
13721#if wxUSE_UNICODE
13722 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13723#else
13724 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13725#endif
13726 }
13727 {
13728 if (temp2)
13729 delete arg2;
13730 }
13731 return resultobj;
13732fail:
13733 {
13734 if (temp2)
13735 delete arg2;
13736 }
13737 return NULL;
d55e5bfc
RD
13738}
13739
13740
1bd55598
RD
13741SWIGINTERN PyObject *_wrap_ZipFSHandler_FindNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13742 PyObject *resultobj = 0;
13743 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
13744 wxString result;
13745 void *argp1 = 0 ;
13746 int res1 = 0 ;
13747 PyObject *swig_obj[1] ;
13748
13749 if (!args) SWIG_fail;
13750 swig_obj[0] = args;
13751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxZipFSHandler, 0 | 0 );
13752 if (!SWIG_IsOK(res1)) {
13753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZipFSHandler_FindNext" "', expected argument " "1"" of type '" "wxZipFSHandler *""'");
13754 }
13755 arg1 = reinterpret_cast< wxZipFSHandler * >(argp1);
13756 {
13757 PyThreadState* __tstate = wxPyBeginAllowThreads();
13758 result = (arg1)->FindNext();
13759 wxPyEndAllowThreads(__tstate);
13760 if (PyErr_Occurred()) SWIG_fail;
13761 }
13762 {
13763#if wxUSE_UNICODE
13764 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13765#else
13766 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13767#endif
13768 }
13769 return resultobj;
13770fail:
13771 return NULL;
13772}
13773
13774
13775SWIGINTERN PyObject *ZipFSHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13776 PyObject *obj;
13777 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13778 SWIG_TypeNewClientData(SWIGTYPE_p_wxZipFSHandler, SWIG_NewClientData(obj));
13779 return SWIG_Py_Void();
13780}
13781
13782SWIGINTERN PyObject *ZipFSHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13783 return SWIG_Python_InitShadowInstance(args);
13784}
13785
13786SWIGINTERN PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13787 PyObject *resultobj = 0;
13788 wxString *arg1 = 0 ;
13789 wxImage *arg2 = 0 ;
13790 long arg3 ;
13791 bool temp1 = false ;
13792 void *argp2 = 0 ;
13793 int res2 = 0 ;
13794 long val3 ;
13795 int ecode3 = 0 ;
13796 PyObject * obj0 = 0 ;
13797 PyObject * obj1 = 0 ;
13798 PyObject * obj2 = 0 ;
13799 char * kwnames[] = {
13800 (char *) "filename",(char *) "image",(char *) "type", NULL
13801 };
13802
13803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13804 {
13805 arg1 = wxString_in_helper(obj0);
13806 if (arg1 == NULL) SWIG_fail;
13807 temp1 = true;
13808 }
13809 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 );
13810 if (!SWIG_IsOK(res2)) {
13811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__wxMemoryFSHandler_AddFile_wxImage" "', expected argument " "2"" of type '" "wxImage &""'");
13812 }
13813 if (!argp2) {
13814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__wxMemoryFSHandler_AddFile_wxImage" "', expected argument " "2"" of type '" "wxImage &""'");
13815 }
13816 arg2 = reinterpret_cast< wxImage * >(argp2);
13817 ecode3 = SWIG_AsVal_long(obj2, &val3);
13818 if (!SWIG_IsOK(ecode3)) {
13819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "__wxMemoryFSHandler_AddFile_wxImage" "', expected argument " "3"" of type '" "long""'");
13820 }
13821 arg3 = static_cast< long >(val3);
13822 {
13823 PyThreadState* __tstate = wxPyBeginAllowThreads();
13824 __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3);
13825 wxPyEndAllowThreads(__tstate);
13826 if (PyErr_Occurred()) SWIG_fail;
13827 }
13828 resultobj = SWIG_Py_Void();
13829 {
13830 if (temp1)
13831 delete arg1;
13832 }
13833 return resultobj;
13834fail:
13835 {
13836 if (temp1)
13837 delete arg1;
13838 }
13839 return NULL;
13840}
13841
13842
13843SWIGINTERN PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13844 PyObject *resultobj = 0;
13845 wxString *arg1 = 0 ;
13846 wxBitmap *arg2 = 0 ;
13847 long arg3 ;
13848 bool temp1 = false ;
13849 void *argp2 = 0 ;
13850 int res2 = 0 ;
13851 long val3 ;
13852 int ecode3 = 0 ;
13853 PyObject * obj0 = 0 ;
13854 PyObject * obj1 = 0 ;
13855 PyObject * obj2 = 0 ;
13856 char * kwnames[] = {
13857 (char *) "filename",(char *) "bitmap",(char *) "type", NULL
13858 };
13859
13860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13861 {
13862 arg1 = wxString_in_helper(obj0);
13863 if (arg1 == NULL) SWIG_fail;
13864 temp1 = true;
13865 }
13866 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
13867 if (!SWIG_IsOK(res2)) {
13868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__wxMemoryFSHandler_AddFile_wxBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
13869 }
13870 if (!argp2) {
13871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__wxMemoryFSHandler_AddFile_wxBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
13872 }
13873 arg2 = reinterpret_cast< wxBitmap * >(argp2);
13874 ecode3 = SWIG_AsVal_long(obj2, &val3);
13875 if (!SWIG_IsOK(ecode3)) {
13876 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "__wxMemoryFSHandler_AddFile_wxBitmap" "', expected argument " "3"" of type '" "long""'");
13877 }
13878 arg3 = static_cast< long >(val3);
13879 {
13880 PyThreadState* __tstate = wxPyBeginAllowThreads();
13881 __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3);
13882 wxPyEndAllowThreads(__tstate);
13883 if (PyErr_Occurred()) SWIG_fail;
13884 }
13885 resultobj = SWIG_Py_Void();
13886 {
13887 if (temp1)
13888 delete arg1;
13889 }
13890 return resultobj;
13891fail:
13892 {
13893 if (temp1)
13894 delete arg1;
13895 }
13896 return NULL;
d55e5bfc
RD
13897}
13898
13899
1bd55598
RD
13900SWIGINTERN PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13901 PyObject *resultobj = 0;
13902 wxString *arg1 = 0 ;
13903 PyObject *arg2 = (PyObject *) 0 ;
13904 bool temp1 = false ;
13905 PyObject * obj0 = 0 ;
13906 PyObject * obj1 = 0 ;
13907 char * kwnames[] = {
13908 (char *) "filename",(char *) "data", NULL
13909 };
13910
13911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) SWIG_fail;
13912 {
13913 arg1 = wxString_in_helper(obj0);
13914 if (arg1 == NULL) SWIG_fail;
13915 temp1 = true;
13916 }
13917 arg2 = obj1;
13918 {
13919 PyThreadState* __tstate = wxPyBeginAllowThreads();
13920 __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2);
13921 wxPyEndAllowThreads(__tstate);
13922 if (PyErr_Occurred()) SWIG_fail;
13923 }
13924 resultobj = SWIG_Py_Void();
13925 {
13926 if (temp1)
13927 delete arg1;
13928 }
13929 return resultobj;
13930fail:
13931 {
13932 if (temp1)
13933 delete arg1;
13934 }
13935 return NULL;
d55e5bfc
RD
13936}
13937
13938
1bd55598
RD
13939SWIGINTERN PyObject *_wrap_new_MemoryFSHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13940 PyObject *resultobj = 0;
13941 wxMemoryFSHandler *result = 0 ;
13942
13943 if (!SWIG_Python_UnpackTuple(args,"new_MemoryFSHandler",0,0,0)) SWIG_fail;
13944 {
13945 PyThreadState* __tstate = wxPyBeginAllowThreads();
13946 result = (wxMemoryFSHandler *)new wxMemoryFSHandler();
13947 wxPyEndAllowThreads(__tstate);
13948 if (PyErr_Occurred()) SWIG_fail;
13949 }
13950 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_NEW | 0 );
13951 return resultobj;
13952fail:
13953 return NULL;
d55e5bfc
RD
13954}
13955
13956
1bd55598
RD
13957SWIGINTERN PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13958 PyObject *resultobj = 0;
13959 wxString *arg1 = 0 ;
13960 bool temp1 = false ;
13961 PyObject * obj0 = 0 ;
13962 char * kwnames[] = {
13963 (char *) "filename", NULL
13964 };
13965
13966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) SWIG_fail;
13967 {
13968 arg1 = wxString_in_helper(obj0);
13969 if (arg1 == NULL) SWIG_fail;
13970 temp1 = true;
13971 }
13972 {
13973 PyThreadState* __tstate = wxPyBeginAllowThreads();
13974 wxMemoryFSHandler::RemoveFile((wxString const &)*arg1);
13975 wxPyEndAllowThreads(__tstate);
13976 if (PyErr_Occurred()) SWIG_fail;
13977 }
13978 resultobj = SWIG_Py_Void();
13979 {
13980 if (temp1)
13981 delete arg1;
13982 }
13983 return resultobj;
13984fail:
13985 {
13986 if (temp1)
13987 delete arg1;
13988 }
13989 return NULL;
13990}
13991
13992
13993SWIGINTERN PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13994 PyObject *resultobj = 0;
13995 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
13996 wxString *arg2 = 0 ;
13997 bool result;
13998 void *argp1 = 0 ;
13999 int res1 = 0 ;
14000 bool temp2 = false ;
14001 PyObject * obj0 = 0 ;
14002 PyObject * obj1 = 0 ;
14003 char * kwnames[] = {
14004 (char *) "self",(char *) "location", NULL
14005 };
14006
14007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) SWIG_fail;
14008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryFSHandler, 0 | 0 );
14009 if (!SWIG_IsOK(res1)) {
14010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryFSHandler_CanOpen" "', expected argument " "1"" of type '" "wxMemoryFSHandler *""'");
14011 }
14012 arg1 = reinterpret_cast< wxMemoryFSHandler * >(argp1);
14013 {
14014 arg2 = wxString_in_helper(obj1);
14015 if (arg2 == NULL) SWIG_fail;
14016 temp2 = true;
14017 }
14018 {
14019 PyThreadState* __tstate = wxPyBeginAllowThreads();
14020 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
14021 wxPyEndAllowThreads(__tstate);
14022 if (PyErr_Occurred()) SWIG_fail;
14023 }
14024 {
14025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14026 }
14027 {
14028 if (temp2)
14029 delete arg2;
14030 }
14031 return resultobj;
14032fail:
14033 {
14034 if (temp2)
14035 delete arg2;
14036 }
14037 return NULL;
14038}
14039
14040
14041SWIGINTERN PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14042 PyObject *resultobj = 0;
14043 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
14044 wxFileSystem *arg2 = 0 ;
14045 wxString *arg3 = 0 ;
14046 wxFSFile *result = 0 ;
14047 void *argp1 = 0 ;
14048 int res1 = 0 ;
14049 void *argp2 = 0 ;
14050 int res2 = 0 ;
14051 bool temp3 = false ;
14052 PyObject * obj0 = 0 ;
14053 PyObject * obj1 = 0 ;
14054 PyObject * obj2 = 0 ;
14055 char * kwnames[] = {
14056 (char *) "self",(char *) "fs",(char *) "location", NULL
14057 };
14058
14059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryFSHandler, 0 | 0 );
14061 if (!SWIG_IsOK(res1)) {
14062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryFSHandler_OpenFile" "', expected argument " "1"" of type '" "wxMemoryFSHandler *""'");
14063 }
14064 arg1 = reinterpret_cast< wxMemoryFSHandler * >(argp1);
14065 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFileSystem, 0 );
14066 if (!SWIG_IsOK(res2)) {
14067 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
14068 }
14069 if (!argp2) {
14070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
14071 }
14072 arg2 = reinterpret_cast< wxFileSystem * >(argp2);
14073 {
14074 arg3 = wxString_in_helper(obj2);
14075 if (arg3 == NULL) SWIG_fail;
14076 temp3 = true;
14077 }
14078 {
14079 PyThreadState* __tstate = wxPyBeginAllowThreads();
14080 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
14081 wxPyEndAllowThreads(__tstate);
14082 if (PyErr_Occurred()) SWIG_fail;
14083 }
14084 {
b850e7f3 14085 resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
1bd55598
RD
14086 }
14087 {
14088 if (temp3)
14089 delete arg3;
14090 }
14091 return resultobj;
14092fail:
14093 {
14094 if (temp3)
14095 delete arg3;
14096 }
14097 return NULL;
14098}
14099
14100
14101SWIGINTERN PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14102 PyObject *resultobj = 0;
14103 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
14104 wxString *arg2 = 0 ;
14105 int arg3 = (int) 0 ;
14106 wxString result;
14107 void *argp1 = 0 ;
14108 int res1 = 0 ;
14109 bool temp2 = false ;
14110 int val3 ;
14111 int ecode3 = 0 ;
14112 PyObject * obj0 = 0 ;
14113 PyObject * obj1 = 0 ;
14114 PyObject * obj2 = 0 ;
14115 char * kwnames[] = {
14116 (char *) "self",(char *) "spec",(char *) "flags", NULL
14117 };
14118
14119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryFSHandler, 0 | 0 );
14121 if (!SWIG_IsOK(res1)) {
14122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryFSHandler_FindFirst" "', expected argument " "1"" of type '" "wxMemoryFSHandler *""'");
14123 }
14124 arg1 = reinterpret_cast< wxMemoryFSHandler * >(argp1);
14125 {
14126 arg2 = wxString_in_helper(obj1);
14127 if (arg2 == NULL) SWIG_fail;
14128 temp2 = true;
14129 }
14130 if (obj2) {
14131 ecode3 = SWIG_AsVal_int(obj2, &val3);
14132 if (!SWIG_IsOK(ecode3)) {
14133 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MemoryFSHandler_FindFirst" "', expected argument " "3"" of type '" "int""'");
14134 }
14135 arg3 = static_cast< int >(val3);
14136 }
14137 {
14138 PyThreadState* __tstate = wxPyBeginAllowThreads();
14139 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
14140 wxPyEndAllowThreads(__tstate);
14141 if (PyErr_Occurred()) SWIG_fail;
14142 }
14143 {
14144#if wxUSE_UNICODE
14145 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14146#else
14147 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14148#endif
14149 }
14150 {
14151 if (temp2)
14152 delete arg2;
14153 }
14154 return resultobj;
14155fail:
14156 {
14157 if (temp2)
14158 delete arg2;
14159 }
14160 return NULL;
d55e5bfc
RD
14161}
14162
14163
1bd55598
RD
14164SWIGINTERN PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14165 PyObject *resultobj = 0;
14166 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
14167 wxString result;
14168 void *argp1 = 0 ;
14169 int res1 = 0 ;
14170 PyObject *swig_obj[1] ;
14171
14172 if (!args) SWIG_fail;
14173 swig_obj[0] = args;
14174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMemoryFSHandler, 0 | 0 );
14175 if (!SWIG_IsOK(res1)) {
14176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryFSHandler_FindNext" "', expected argument " "1"" of type '" "wxMemoryFSHandler *""'");
14177 }
14178 arg1 = reinterpret_cast< wxMemoryFSHandler * >(argp1);
14179 {
14180 PyThreadState* __tstate = wxPyBeginAllowThreads();
14181 result = (arg1)->FindNext();
14182 wxPyEndAllowThreads(__tstate);
14183 if (PyErr_Occurred()) SWIG_fail;
14184 }
14185 {
14186#if wxUSE_UNICODE
14187 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14188#else
14189 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14190#endif
14191 }
14192 return resultobj;
14193fail:
14194 return NULL;
d55e5bfc
RD
14195}
14196
14197
1bd55598
RD
14198SWIGINTERN PyObject *MemoryFSHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14199 PyObject *obj;
14200 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14201 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryFSHandler, SWIG_NewClientData(obj));
14202 return SWIG_Py_Void();
d55e5bfc
RD
14203}
14204
1bd55598
RD
14205SWIGINTERN PyObject *MemoryFSHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14206 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14207}
14208
1bd55598
RD
14209SWIGINTERN PyObject *_wrap_ImageHandler_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14210 PyObject *resultobj = 0;
14211 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14212 wxString result;
14213 void *argp1 = 0 ;
14214 int res1 = 0 ;
14215 PyObject *swig_obj[1] ;
14216
14217 if (!args) SWIG_fail;
14218 swig_obj[0] = args;
14219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14220 if (!SWIG_IsOK(res1)) {
14221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_GetName" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14222 }
14223 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14224 {
14225 PyThreadState* __tstate = wxPyBeginAllowThreads();
14226 result = (arg1)->GetName();
14227 wxPyEndAllowThreads(__tstate);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 }
14230 {
14231#if wxUSE_UNICODE
14232 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14233#else
14234 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14235#endif
14236 }
14237 return resultobj;
14238fail:
14239 return NULL;
d55e5bfc
RD
14240}
14241
14242
1bd55598
RD
14243SWIGINTERN PyObject *_wrap_ImageHandler_GetExtension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14244 PyObject *resultobj = 0;
14245 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14246 wxString result;
14247 void *argp1 = 0 ;
14248 int res1 = 0 ;
14249 PyObject *swig_obj[1] ;
14250
14251 if (!args) SWIG_fail;
14252 swig_obj[0] = args;
14253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14254 if (!SWIG_IsOK(res1)) {
14255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_GetExtension" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14256 }
14257 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14258 {
14259 PyThreadState* __tstate = wxPyBeginAllowThreads();
14260 result = (arg1)->GetExtension();
14261 wxPyEndAllowThreads(__tstate);
14262 if (PyErr_Occurred()) SWIG_fail;
14263 }
14264 {
14265#if wxUSE_UNICODE
14266 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14267#else
14268 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14269#endif
14270 }
14271 return resultobj;
14272fail:
14273 return NULL;
d55e5bfc
RD
14274}
14275
14276
1bd55598
RD
14277SWIGINTERN PyObject *_wrap_ImageHandler_GetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14278 PyObject *resultobj = 0;
14279 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14280 long result;
14281 void *argp1 = 0 ;
14282 int res1 = 0 ;
14283 PyObject *swig_obj[1] ;
14284
14285 if (!args) SWIG_fail;
14286 swig_obj[0] = args;
14287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14288 if (!SWIG_IsOK(res1)) {
14289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_GetType" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14290 }
14291 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14292 {
14293 PyThreadState* __tstate = wxPyBeginAllowThreads();
14294 result = (long)(arg1)->GetType();
14295 wxPyEndAllowThreads(__tstate);
14296 if (PyErr_Occurred()) SWIG_fail;
14297 }
14298 resultobj = SWIG_From_long(static_cast< long >(result));
14299 return resultobj;
14300fail:
14301 return NULL;
d55e5bfc
RD
14302}
14303
14304
1bd55598
RD
14305SWIGINTERN PyObject *_wrap_ImageHandler_GetMimeType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14306 PyObject *resultobj = 0;
14307 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14308 wxString result;
14309 void *argp1 = 0 ;
14310 int res1 = 0 ;
14311 PyObject *swig_obj[1] ;
14312
14313 if (!args) SWIG_fail;
14314 swig_obj[0] = args;
14315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14316 if (!SWIG_IsOK(res1)) {
14317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_GetMimeType" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14318 }
14319 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14320 {
14321 PyThreadState* __tstate = wxPyBeginAllowThreads();
14322 result = (arg1)->GetMimeType();
14323 wxPyEndAllowThreads(__tstate);
14324 if (PyErr_Occurred()) SWIG_fail;
14325 }
14326 {
14327#if wxUSE_UNICODE
14328 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14329#else
14330 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14331#endif
14332 }
14333 return resultobj;
14334fail:
14335 return NULL;
14336}
14337
14338
14339SWIGINTERN PyObject *_wrap_ImageHandler_CanRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14340 PyObject *resultobj = 0;
14341 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14342 wxString *arg2 = 0 ;
14343 bool result;
14344 void *argp1 = 0 ;
14345 int res1 = 0 ;
14346 bool temp2 = false ;
14347 PyObject * obj0 = 0 ;
14348 PyObject * obj1 = 0 ;
14349 char * kwnames[] = {
14350 (char *) "self",(char *) "name", NULL
14351 };
14352
14353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) SWIG_fail;
14354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14355 if (!SWIG_IsOK(res1)) {
14356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_CanRead" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14357 }
14358 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14359 {
14360 arg2 = wxString_in_helper(obj1);
14361 if (arg2 == NULL) SWIG_fail;
14362 temp2 = true;
14363 }
14364 {
14365 PyThreadState* __tstate = wxPyBeginAllowThreads();
14366 result = (bool)(arg1)->CanRead((wxString const &)*arg2);
14367 wxPyEndAllowThreads(__tstate);
14368 if (PyErr_Occurred()) SWIG_fail;
14369 }
14370 {
14371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14372 }
14373 {
14374 if (temp2)
14375 delete arg2;
14376 }
14377 return resultobj;
14378fail:
14379 {
14380 if (temp2)
14381 delete arg2;
14382 }
14383 return NULL;
d55e5bfc
RD
14384}
14385
14386
b02396e8
RD
14387SWIGINTERN PyObject *_wrap_ImageHandler_CanReadStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14388 PyObject *resultobj = 0;
14389 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14390 wxInputStream *arg2 = 0 ;
14391 bool result;
14392 void *argp1 = 0 ;
14393 int res1 = 0 ;
14394 wxPyInputStream *temp2 ;
14395 bool created2 ;
14396 PyObject * obj0 = 0 ;
14397 PyObject * obj1 = 0 ;
14398 char * kwnames[] = {
14399 (char *) "self",(char *) "stream", NULL
14400 };
14401
14402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanReadStream",kwnames,&obj0,&obj1)) SWIG_fail;
14403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14404 if (!SWIG_IsOK(res1)) {
14405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_CanReadStream" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14406 }
14407 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14408 {
14409 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
14410 arg2 = temp2->m_wxis;
14411 created2 = false;
14412 } else {
14413 PyErr_Clear(); // clear the failure of the wxPyConvert above
14414 arg2 = wxPyCBInputStream_create(obj1, false);
14415 if (arg2 == NULL) {
14416 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
14417 SWIG_fail;
14418 }
14419 created2 = true;
14420 }
14421 }
14422 {
14423 PyThreadState* __tstate = wxPyBeginAllowThreads();
14424 result = (bool)(arg1)->CanRead(*arg2);
14425 wxPyEndAllowThreads(__tstate);
14426 if (PyErr_Occurred()) SWIG_fail;
14427 }
14428 {
14429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14430 }
14431 {
14432 if (created2) delete arg2;
14433 }
14434 return resultobj;
14435fail:
14436 {
14437 if (created2) delete arg2;
14438 }
14439 return NULL;
14440}
14441
14442
1bd55598
RD
14443SWIGINTERN PyObject *_wrap_ImageHandler_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14444 PyObject *resultobj = 0;
14445 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14446 wxString *arg2 = 0 ;
14447 void *argp1 = 0 ;
14448 int res1 = 0 ;
14449 bool temp2 = false ;
14450 PyObject * obj0 = 0 ;
14451 PyObject * obj1 = 0 ;
14452 char * kwnames[] = {
14453 (char *) "self",(char *) "name", NULL
14454 };
14455
14456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) SWIG_fail;
14457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14458 if (!SWIG_IsOK(res1)) {
14459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_SetName" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14460 }
14461 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14462 {
14463 arg2 = wxString_in_helper(obj1);
14464 if (arg2 == NULL) SWIG_fail;
14465 temp2 = true;
14466 }
14467 {
14468 PyThreadState* __tstate = wxPyBeginAllowThreads();
14469 (arg1)->SetName((wxString const &)*arg2);
14470 wxPyEndAllowThreads(__tstate);
14471 if (PyErr_Occurred()) SWIG_fail;
14472 }
14473 resultobj = SWIG_Py_Void();
14474 {
14475 if (temp2)
14476 delete arg2;
14477 }
14478 return resultobj;
14479fail:
14480 {
14481 if (temp2)
14482 delete arg2;
14483 }
14484 return NULL;
d55e5bfc
RD
14485}
14486
14487
1bd55598
RD
14488SWIGINTERN PyObject *_wrap_ImageHandler_SetExtension(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14489 PyObject *resultobj = 0;
14490 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14491 wxString *arg2 = 0 ;
14492 void *argp1 = 0 ;
14493 int res1 = 0 ;
14494 bool temp2 = false ;
14495 PyObject * obj0 = 0 ;
14496 PyObject * obj1 = 0 ;
14497 char * kwnames[] = {
14498 (char *) "self",(char *) "extension", NULL
14499 };
14500
14501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) SWIG_fail;
14502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14503 if (!SWIG_IsOK(res1)) {
14504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_SetExtension" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14505 }
14506 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14507 {
14508 arg2 = wxString_in_helper(obj1);
14509 if (arg2 == NULL) SWIG_fail;
14510 temp2 = true;
14511 }
14512 {
14513 PyThreadState* __tstate = wxPyBeginAllowThreads();
14514 (arg1)->SetExtension((wxString const &)*arg2);
14515 wxPyEndAllowThreads(__tstate);
14516 if (PyErr_Occurred()) SWIG_fail;
14517 }
14518 resultobj = SWIG_Py_Void();
14519 {
14520 if (temp2)
14521 delete arg2;
14522 }
14523 return resultobj;
14524fail:
14525 {
14526 if (temp2)
14527 delete arg2;
14528 }
14529 return NULL;
14530}
14531
14532
14533SWIGINTERN PyObject *_wrap_ImageHandler_SetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14534 PyObject *resultobj = 0;
14535 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14536 long arg2 ;
14537 void *argp1 = 0 ;
14538 int res1 = 0 ;
14539 long val2 ;
14540 int ecode2 = 0 ;
14541 PyObject * obj0 = 0 ;
14542 PyObject * obj1 = 0 ;
14543 char * kwnames[] = {
14544 (char *) "self",(char *) "type", NULL
14545 };
14546
14547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) SWIG_fail;
14548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14549 if (!SWIG_IsOK(res1)) {
14550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_SetType" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14551 }
14552 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14553 ecode2 = SWIG_AsVal_long(obj1, &val2);
14554 if (!SWIG_IsOK(ecode2)) {
14555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageHandler_SetType" "', expected argument " "2"" of type '" "long""'");
14556 }
14557 arg2 = static_cast< long >(val2);
14558 {
14559 PyThreadState* __tstate = wxPyBeginAllowThreads();
14560 (arg1)->SetType(arg2);
14561 wxPyEndAllowThreads(__tstate);
14562 if (PyErr_Occurred()) SWIG_fail;
14563 }
14564 resultobj = SWIG_Py_Void();
14565 return resultobj;
14566fail:
14567 return NULL;
14568}
14569
14570
14571SWIGINTERN PyObject *_wrap_ImageHandler_SetMimeType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14572 PyObject *resultobj = 0;
14573 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
14574 wxString *arg2 = 0 ;
14575 void *argp1 = 0 ;
14576 int res1 = 0 ;
14577 bool temp2 = false ;
14578 PyObject * obj0 = 0 ;
14579 PyObject * obj1 = 0 ;
14580 char * kwnames[] = {
14581 (char *) "self",(char *) "mimetype", NULL
14582 };
14583
14584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) SWIG_fail;
14585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
14586 if (!SWIG_IsOK(res1)) {
14587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_SetMimeType" "', expected argument " "1"" of type '" "wxImageHandler *""'");
14588 }
14589 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
14590 {
14591 arg2 = wxString_in_helper(obj1);
14592 if (arg2 == NULL) SWIG_fail;
14593 temp2 = true;
14594 }
14595 {
14596 PyThreadState* __tstate = wxPyBeginAllowThreads();
14597 (arg1)->SetMimeType((wxString const &)*arg2);
14598 wxPyEndAllowThreads(__tstate);
14599 if (PyErr_Occurred()) SWIG_fail;
14600 }
14601 resultobj = SWIG_Py_Void();
14602 {
14603 if (temp2)
14604 delete arg2;
14605 }
14606 return resultobj;
14607fail:
14608 {
14609 if (temp2)
14610 delete arg2;
14611 }
14612 return NULL;
d55e5bfc
RD
14613}
14614
14615
1bd55598
RD
14616SWIGINTERN PyObject *ImageHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14617 PyObject *obj;
14618 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14619 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageHandler, SWIG_NewClientData(obj));
14620 return SWIG_Py_Void();
d55e5bfc
RD
14621}
14622
1bd55598
RD
14623SWIGINTERN PyObject *_wrap_new_PyImageHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14624 PyObject *resultobj = 0;
14625 wxPyImageHandler *result = 0 ;
14626
14627 if (!SWIG_Python_UnpackTuple(args,"new_PyImageHandler",0,0,0)) SWIG_fail;
14628 {
14629 PyThreadState* __tstate = wxPyBeginAllowThreads();
14630 result = (wxPyImageHandler *)new wxPyImageHandler();
14631 wxPyEndAllowThreads(__tstate);
14632 if (PyErr_Occurred()) SWIG_fail;
14633 }
14634 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyImageHandler, SWIG_POINTER_NEW | 0 );
14635 return resultobj;
14636fail:
14637 return NULL;
14638}
14639
14640
14641SWIGINTERN PyObject *_wrap_PyImageHandler__SetSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14642 PyObject *resultobj = 0;
14643 wxPyImageHandler *arg1 = (wxPyImageHandler *) 0 ;
14644 PyObject *arg2 = (PyObject *) 0 ;
14645 void *argp1 = 0 ;
14646 int res1 = 0 ;
14647 PyObject * obj0 = 0 ;
14648 PyObject * obj1 = 0 ;
14649 char * kwnames[] = {
14650 (char *) "self",(char *) "self", NULL
14651 };
14652
14653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyImageHandler__SetSelf",kwnames,&obj0,&obj1)) SWIG_fail;
14654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyImageHandler, 0 | 0 );
14655 if (!SWIG_IsOK(res1)) {
14656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyImageHandler__SetSelf" "', expected argument " "1"" of type '" "wxPyImageHandler *""'");
14657 }
14658 arg1 = reinterpret_cast< wxPyImageHandler * >(argp1);
14659 arg2 = obj1;
14660 {
14661 PyThreadState* __tstate = wxPyBeginAllowThreads();
14662 (arg1)->_SetSelf(arg2);
14663 wxPyEndAllowThreads(__tstate);
14664 if (PyErr_Occurred()) SWIG_fail;
14665 }
14666 resultobj = SWIG_Py_Void();
14667 return resultobj;
14668fail:
14669 return NULL;
d55e5bfc
RD
14670}
14671
14672
1bd55598
RD
14673SWIGINTERN PyObject *PyImageHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14674 PyObject *obj;
14675 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14676 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyImageHandler, SWIG_NewClientData(obj));
14677 return SWIG_Py_Void();
d55e5bfc
RD
14678}
14679
1bd55598
RD
14680SWIGINTERN PyObject *PyImageHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14681 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14682}
14683
1bd55598
RD
14684SWIGINTERN PyObject *_wrap_new_ImageHistogram(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14685 PyObject *resultobj = 0;
14686 wxImageHistogram *result = 0 ;
14687
14688 if (!SWIG_Python_UnpackTuple(args,"new_ImageHistogram",0,0,0)) SWIG_fail;
14689 {
14690 PyThreadState* __tstate = wxPyBeginAllowThreads();
14691 result = (wxImageHistogram *)new wxImageHistogram();
14692 wxPyEndAllowThreads(__tstate);
14693 if (PyErr_Occurred()) SWIG_fail;
14694 }
14695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_NEW | 0 );
14696 return resultobj;
14697fail:
14698 return NULL;
14699}
14700
14701
14702SWIGINTERN PyObject *_wrap_ImageHistogram_MakeKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14703 PyObject *resultobj = 0;
14704 byte arg1 ;
14705 byte arg2 ;
14706 byte arg3 ;
14707 unsigned long result;
14708 unsigned char val1 ;
14709 int ecode1 = 0 ;
14710 unsigned char val2 ;
14711 int ecode2 = 0 ;
14712 unsigned char val3 ;
14713 int ecode3 = 0 ;
14714 PyObject * obj0 = 0 ;
14715 PyObject * obj1 = 0 ;
14716 PyObject * obj2 = 0 ;
14717 char * kwnames[] = {
14718 (char *) "r",(char *) "g",(char *) "b", NULL
14719 };
14720
14721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14722 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
14723 if (!SWIG_IsOK(ecode1)) {
14724 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ImageHistogram_MakeKey" "', expected argument " "1"" of type '" "byte""'");
14725 }
14726 arg1 = static_cast< byte >(val1);
14727 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
14728 if (!SWIG_IsOK(ecode2)) {
14729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageHistogram_MakeKey" "', expected argument " "2"" of type '" "byte""'");
14730 }
14731 arg2 = static_cast< byte >(val2);
14732 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
14733 if (!SWIG_IsOK(ecode3)) {
14734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ImageHistogram_MakeKey" "', expected argument " "3"" of type '" "byte""'");
14735 }
14736 arg3 = static_cast< byte >(val3);
14737 {
14738 PyThreadState* __tstate = wxPyBeginAllowThreads();
14739 result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3);
14740 wxPyEndAllowThreads(__tstate);
14741 if (PyErr_Occurred()) SWIG_fail;
14742 }
14743 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
14744 return resultobj;
14745fail:
14746 return NULL;
14747}
14748
14749
14750SWIGINTERN PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14751 PyObject *resultobj = 0;
14752 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
14753 byte *arg2 = (byte *) 0 ;
14754 byte *arg3 = (byte *) 0 ;
14755 byte *arg4 = (byte *) 0 ;
14756 byte arg5 = (byte) 1 ;
14757 byte arg6 = (byte) 0 ;
14758 byte arg7 = (byte) 0 ;
14759 bool result;
14760 void *argp1 = 0 ;
14761 int res1 = 0 ;
14762 byte temp2 ;
14763 int res2 = SWIG_TMPOBJ ;
14764 byte temp3 ;
14765 int res3 = SWIG_TMPOBJ ;
14766 byte temp4 ;
14767 int res4 = SWIG_TMPOBJ ;
14768 unsigned char val5 ;
14769 int ecode5 = 0 ;
14770 unsigned char val6 ;
14771 int ecode6 = 0 ;
14772 unsigned char val7 ;
14773 int ecode7 = 0 ;
14774 PyObject * obj0 = 0 ;
14775 PyObject * obj1 = 0 ;
14776 PyObject * obj2 = 0 ;
14777 PyObject * obj3 = 0 ;
14778 char * kwnames[] = {
14779 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
14780 };
14781
14782 arg2 = &temp2;
14783 arg3 = &temp3;
14784 arg4 = &temp4;
14785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHistogram, 0 | 0 );
14787 if (!SWIG_IsOK(res1)) {
14788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHistogram_FindFirstUnusedColour" "', expected argument " "1"" of type '" "wxImageHistogram const *""'");
14789 }
14790 arg1 = reinterpret_cast< wxImageHistogram * >(argp1);
14791 if (obj1) {
14792 ecode5 = SWIG_AsVal_unsigned_SS_char(obj1, &val5);
14793 if (!SWIG_IsOK(ecode5)) {
14794 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageHistogram_FindFirstUnusedColour" "', expected argument " "5"" of type '" "byte""'");
14795 }
14796 arg5 = static_cast< byte >(val5);
14797 }
14798 if (obj2) {
14799 ecode6 = SWIG_AsVal_unsigned_SS_char(obj2, &val6);
14800 if (!SWIG_IsOK(ecode6)) {
14801 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageHistogram_FindFirstUnusedColour" "', expected argument " "6"" of type '" "byte""'");
14802 }
14803 arg6 = static_cast< byte >(val6);
14804 }
14805 if (obj3) {
14806 ecode7 = SWIG_AsVal_unsigned_SS_char(obj3, &val7);
14807 if (!SWIG_IsOK(ecode7)) {
14808 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageHistogram_FindFirstUnusedColour" "', expected argument " "7"" of type '" "byte""'");
14809 }
14810 arg7 = static_cast< byte >(val7);
14811 }
14812 {
14813 PyThreadState* __tstate = wxPyBeginAllowThreads();
14814 result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
14815 wxPyEndAllowThreads(__tstate);
14816 if (PyErr_Occurred()) SWIG_fail;
14817 }
14818 {
14819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14820 }
14821 if (SWIG_IsTmpObj(res2)) {
14822 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg2)));
14823 } else {
14824 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
14825 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags));
14826 }
14827 if (SWIG_IsTmpObj(res3)) {
14828 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
14829 } else {
14830 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
14831 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
14832 }
14833 if (SWIG_IsTmpObj(res4)) {
14834 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
14835 } else {
14836 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
14837 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
14838 }
14839 return resultobj;
14840fail:
14841 return NULL;
14842}
14843
14844
14845SWIGINTERN PyObject *_wrap_ImageHistogram_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14846 PyObject *resultobj = 0;
14847 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
14848 unsigned long arg2 ;
14849 unsigned long result;
14850 void *argp1 = 0 ;
14851 int res1 = 0 ;
14852 unsigned long val2 ;
14853 int ecode2 = 0 ;
14854 PyObject * obj0 = 0 ;
14855 PyObject * obj1 = 0 ;
14856 char * kwnames[] = {
14857 (char *) "self",(char *) "key", NULL
14858 };
14859
14860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHistogram_GetCount",kwnames,&obj0,&obj1)) SWIG_fail;
14861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHistogram, 0 | 0 );
14862 if (!SWIG_IsOK(res1)) {
14863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHistogram_GetCount" "', expected argument " "1"" of type '" "wxImageHistogram *""'");
14864 }
14865 arg1 = reinterpret_cast< wxImageHistogram * >(argp1);
14866 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
14867 if (!SWIG_IsOK(ecode2)) {
14868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageHistogram_GetCount" "', expected argument " "2"" of type '" "unsigned long""'");
14869 }
14870 arg2 = static_cast< unsigned long >(val2);
14871 {
14872 PyThreadState* __tstate = wxPyBeginAllowThreads();
14873 result = (unsigned long)wxImageHistogram_GetCount(arg1,arg2);
14874 wxPyEndAllowThreads(__tstate);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 }
14877 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
14878 return resultobj;
14879fail:
14880 return NULL;
14881}
14882
14883
14884SWIGINTERN PyObject *_wrap_ImageHistogram_GetCountRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14885 PyObject *resultobj = 0;
14886 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
14887 byte arg2 ;
14888 byte arg3 ;
14889 byte arg4 ;
14890 unsigned long result;
14891 void *argp1 = 0 ;
14892 int res1 = 0 ;
14893 unsigned char val2 ;
14894 int ecode2 = 0 ;
14895 unsigned char val3 ;
14896 int ecode3 = 0 ;
14897 unsigned char val4 ;
14898 int ecode4 = 0 ;
14899 PyObject * obj0 = 0 ;
14900 PyObject * obj1 = 0 ;
14901 PyObject * obj2 = 0 ;
14902 PyObject * obj3 = 0 ;
14903 char * kwnames[] = {
14904 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
14905 };
14906
14907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ImageHistogram_GetCountRGB",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHistogram, 0 | 0 );
14909 if (!SWIG_IsOK(res1)) {
14910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHistogram_GetCountRGB" "', expected argument " "1"" of type '" "wxImageHistogram *""'");
14911 }
14912 arg1 = reinterpret_cast< wxImageHistogram * >(argp1);
14913 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
14914 if (!SWIG_IsOK(ecode2)) {
14915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageHistogram_GetCountRGB" "', expected argument " "2"" of type '" "byte""'");
14916 }
14917 arg2 = static_cast< byte >(val2);
14918 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
14919 if (!SWIG_IsOK(ecode3)) {
14920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ImageHistogram_GetCountRGB" "', expected argument " "3"" of type '" "byte""'");
14921 }
14922 arg3 = static_cast< byte >(val3);
14923 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
14924 if (!SWIG_IsOK(ecode4)) {
14925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageHistogram_GetCountRGB" "', expected argument " "4"" of type '" "byte""'");
14926 }
14927 arg4 = static_cast< byte >(val4);
14928 {
14929 PyThreadState* __tstate = wxPyBeginAllowThreads();
14930 result = (unsigned long)wxImageHistogram_GetCountRGB(arg1,arg2,arg3,arg4);
14931 wxPyEndAllowThreads(__tstate);
14932 if (PyErr_Occurred()) SWIG_fail;
14933 }
14934 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
14935 return resultobj;
14936fail:
14937 return NULL;
14938}
14939
14940
14941SWIGINTERN PyObject *_wrap_ImageHistogram_GetCountColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14942 PyObject *resultobj = 0;
14943 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
14944 wxColour *arg2 = 0 ;
14945 unsigned long result;
14946 void *argp1 = 0 ;
14947 int res1 = 0 ;
14948 wxColour temp2 ;
14949 PyObject * obj0 = 0 ;
14950 PyObject * obj1 = 0 ;
14951 char * kwnames[] = {
14952 (char *) "self",(char *) "colour", NULL
14953 };
14954
14955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHistogram_GetCountColour",kwnames,&obj0,&obj1)) 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_GetCountColour" "', expected argument " "1"" of type '" "wxImageHistogram *""'");
14959 }
14960 arg1 = reinterpret_cast< wxImageHistogram * >(argp1);
14961 {
14962 arg2 = &temp2;
14963 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14964 }
14965 {
14966 PyThreadState* __tstate = wxPyBeginAllowThreads();
14967 result = (unsigned long)wxImageHistogram_GetCountColour(arg1,(wxColour const &)*arg2);
14968 wxPyEndAllowThreads(__tstate);
14969 if (PyErr_Occurred()) SWIG_fail;
14970 }
14971 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
14972 return resultobj;
14973fail:
14974 return NULL;
14975}
14976
14977
14978SWIGINTERN PyObject *ImageHistogram_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14979 PyObject *obj;
14980 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14981 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageHistogram, SWIG_NewClientData(obj));
14982 return SWIG_Py_Void();
14983}
14984
14985SWIGINTERN PyObject *ImageHistogram_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14986 return SWIG_Python_InitShadowInstance(args);
14987}
14988
14989SWIGINTERN PyObject *_wrap_new_Image_RGBValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14990 PyObject *resultobj = 0;
14991 byte arg1 = (byte) 0 ;
14992 byte arg2 = (byte) 0 ;
14993 byte arg3 = (byte) 0 ;
14994 wxImage_RGBValue *result = 0 ;
14995 unsigned char val1 ;
14996 int ecode1 = 0 ;
14997 unsigned char val2 ;
14998 int ecode2 = 0 ;
14999 unsigned char val3 ;
15000 int ecode3 = 0 ;
15001 PyObject * obj0 = 0 ;
15002 PyObject * obj1 = 0 ;
15003 PyObject * obj2 = 0 ;
15004 char * kwnames[] = {
15005 (char *) "r",(char *) "g",(char *) "b", NULL
15006 };
15007
15008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Image_RGBValue",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15009 if (obj0) {
15010 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
15011 if (!SWIG_IsOK(ecode1)) {
15012 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Image_RGBValue" "', expected argument " "1"" of type '" "byte""'");
15013 }
15014 arg1 = static_cast< byte >(val1);
15015 }
15016 if (obj1) {
15017 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
15018 if (!SWIG_IsOK(ecode2)) {
15019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Image_RGBValue" "', expected argument " "2"" of type '" "byte""'");
15020 }
15021 arg2 = static_cast< byte >(val2);
15022 }
15023 if (obj2) {
15024 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
15025 if (!SWIG_IsOK(ecode3)) {
15026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Image_RGBValue" "', expected argument " "3"" of type '" "byte""'");
15027 }
15028 arg3 = static_cast< byte >(val3);
15029 }
15030 {
15031 PyThreadState* __tstate = wxPyBeginAllowThreads();
15032 result = (wxImage_RGBValue *)new wxImage_RGBValue(arg1,arg2,arg3);
15033 wxPyEndAllowThreads(__tstate);
15034 if (PyErr_Occurred()) SWIG_fail;
15035 }
15036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage_RGBValue, SWIG_POINTER_NEW | 0 );
15037 return resultobj;
15038fail:
15039 return NULL;
15040}
15041
15042
15043SWIGINTERN PyObject *_wrap_Image_RGBValue_red_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15044 PyObject *resultobj = 0;
15045 wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
15046 byte arg2 ;
15047 void *argp1 = 0 ;
15048 int res1 = 0 ;
15049 unsigned char val2 ;
15050 int ecode2 = 0 ;
15051 PyObject *swig_obj[2] ;
15052
15053 if (!SWIG_Python_UnpackTuple(args,"Image_RGBValue_red_set",2,2,swig_obj)) SWIG_fail;
15054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
15055 if (!SWIG_IsOK(res1)) {
15056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_red_set" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
15057 }
15058 arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
15059 ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
15060 if (!SWIG_IsOK(ecode2)) {
15061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_RGBValue_red_set" "', expected argument " "2"" of type '" "byte""'");
15062 }
15063 arg2 = static_cast< byte >(val2);
15064 if (arg1) (arg1)->red = arg2;
15065
15066 resultobj = SWIG_Py_Void();
15067 return resultobj;
15068fail:
15069 return NULL;
d55e5bfc
RD
15070}
15071
15072
1bd55598
RD
15073SWIGINTERN PyObject *_wrap_Image_RGBValue_red_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15074 PyObject *resultobj = 0;
15075 wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
15076 byte result;
15077 void *argp1 = 0 ;
15078 int res1 = 0 ;
15079 PyObject *swig_obj[1] ;
15080
15081 if (!args) SWIG_fail;
15082 swig_obj[0] = args;
15083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
15084 if (!SWIG_IsOK(res1)) {
15085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_red_get" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
15086 }
15087 arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
15088 result = (byte) ((arg1)->red);
15089 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
15090 return resultobj;
15091fail:
15092 return NULL;
15093}
15094
15095
15096SWIGINTERN PyObject *_wrap_Image_RGBValue_green_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15097 PyObject *resultobj = 0;
15098 wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
15099 byte arg2 ;
15100 void *argp1 = 0 ;
15101 int res1 = 0 ;
15102 unsigned char val2 ;
15103 int ecode2 = 0 ;
15104 PyObject *swig_obj[2] ;
15105
15106 if (!SWIG_Python_UnpackTuple(args,"Image_RGBValue_green_set",2,2,swig_obj)) SWIG_fail;
15107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
15108 if (!SWIG_IsOK(res1)) {
15109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_green_set" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
15110 }
15111 arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
15112 ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
15113 if (!SWIG_IsOK(ecode2)) {
15114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_RGBValue_green_set" "', expected argument " "2"" of type '" "byte""'");
15115 }
15116 arg2 = static_cast< byte >(val2);
15117 if (arg1) (arg1)->green = arg2;
15118
15119 resultobj = SWIG_Py_Void();
15120 return resultobj;
15121fail:
15122 return NULL;
d55e5bfc
RD
15123}
15124
15125
1bd55598
RD
15126SWIGINTERN PyObject *_wrap_Image_RGBValue_green_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15127 PyObject *resultobj = 0;
15128 wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
15129 byte result;
15130 void *argp1 = 0 ;
15131 int res1 = 0 ;
15132 PyObject *swig_obj[1] ;
15133
15134 if (!args) SWIG_fail;
15135 swig_obj[0] = args;
15136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
15137 if (!SWIG_IsOK(res1)) {
15138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_green_get" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
15139 }
15140 arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
15141 result = (byte) ((arg1)->green);
15142 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
15143 return resultobj;
15144fail:
15145 return NULL;
15146}
15147
15148
15149SWIGINTERN PyObject *_wrap_Image_RGBValue_blue_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15150 PyObject *resultobj = 0;
15151 wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
15152 byte arg2 ;
15153 void *argp1 = 0 ;
15154 int res1 = 0 ;
15155 unsigned char val2 ;
15156 int ecode2 = 0 ;
15157 PyObject *swig_obj[2] ;
15158
15159 if (!SWIG_Python_UnpackTuple(args,"Image_RGBValue_blue_set",2,2,swig_obj)) SWIG_fail;
15160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
15161 if (!SWIG_IsOK(res1)) {
15162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_blue_set" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
15163 }
15164 arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
15165 ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
15166 if (!SWIG_IsOK(ecode2)) {
15167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_RGBValue_blue_set" "', expected argument " "2"" of type '" "byte""'");
15168 }
15169 arg2 = static_cast< byte >(val2);
15170 if (arg1) (arg1)->blue = arg2;
15171
15172 resultobj = SWIG_Py_Void();
15173 return resultobj;
15174fail:
15175 return NULL;
8fb0e70a
RD
15176}
15177
15178
1bd55598
RD
15179SWIGINTERN PyObject *_wrap_Image_RGBValue_blue_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15180 PyObject *resultobj = 0;
15181 wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
15182 byte result;
15183 void *argp1 = 0 ;
15184 int res1 = 0 ;
15185 PyObject *swig_obj[1] ;
15186
15187 if (!args) SWIG_fail;
15188 swig_obj[0] = args;
15189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
15190 if (!SWIG_IsOK(res1)) {
15191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_blue_get" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
15192 }
15193 arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
15194 result = (byte) ((arg1)->blue);
15195 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
15196 return resultobj;
15197fail:
15198 return NULL;
15199}
15200
15201
15202SWIGINTERN PyObject *Image_RGBValue_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15203 PyObject *obj;
15204 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15205 SWIG_TypeNewClientData(SWIGTYPE_p_wxImage_RGBValue, SWIG_NewClientData(obj));
15206 return SWIG_Py_Void();
15207}
15208
15209SWIGINTERN PyObject *Image_RGBValue_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15210 return SWIG_Python_InitShadowInstance(args);
15211}
15212
15213SWIGINTERN PyObject *_wrap_new_Image_HSVValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15214 PyObject *resultobj = 0;
15215 double arg1 = (double) 0.0 ;
15216 double arg2 = (double) 0.0 ;
15217 double arg3 = (double) 0.0 ;
15218 wxImage_HSVValue *result = 0 ;
15219 double val1 ;
15220 int ecode1 = 0 ;
15221 double val2 ;
15222 int ecode2 = 0 ;
15223 double val3 ;
15224 int ecode3 = 0 ;
15225 PyObject * obj0 = 0 ;
15226 PyObject * obj1 = 0 ;
15227 PyObject * obj2 = 0 ;
15228 char * kwnames[] = {
15229 (char *) "h",(char *) "s",(char *) "v", NULL
15230 };
15231
15232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Image_HSVValue",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15233 if (obj0) {
15234 ecode1 = SWIG_AsVal_double(obj0, &val1);
15235 if (!SWIG_IsOK(ecode1)) {
15236 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Image_HSVValue" "', expected argument " "1"" of type '" "double""'");
15237 }
15238 arg1 = static_cast< double >(val1);
15239 }
15240 if (obj1) {
15241 ecode2 = SWIG_AsVal_double(obj1, &val2);
15242 if (!SWIG_IsOK(ecode2)) {
15243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Image_HSVValue" "', expected argument " "2"" of type '" "double""'");
15244 }
15245 arg2 = static_cast< double >(val2);
15246 }
15247 if (obj2) {
15248 ecode3 = SWIG_AsVal_double(obj2, &val3);
15249 if (!SWIG_IsOK(ecode3)) {
15250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Image_HSVValue" "', expected argument " "3"" of type '" "double""'");
15251 }
15252 arg3 = static_cast< double >(val3);
15253 }
15254 {
15255 PyThreadState* __tstate = wxPyBeginAllowThreads();
15256 result = (wxImage_HSVValue *)new wxImage_HSVValue(arg1,arg2,arg3);
15257 wxPyEndAllowThreads(__tstate);
15258 if (PyErr_Occurred()) SWIG_fail;
15259 }
15260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage_HSVValue, SWIG_POINTER_NEW | 0 );
15261 return resultobj;
15262fail:
15263 return NULL;
15264}
15265
15266
15267SWIGINTERN PyObject *_wrap_Image_HSVValue_hue_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15268 PyObject *resultobj = 0;
15269 wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
15270 double arg2 ;
15271 void *argp1 = 0 ;
15272 int res1 = 0 ;
15273 double val2 ;
15274 int ecode2 = 0 ;
15275 PyObject *swig_obj[2] ;
15276
15277 if (!SWIG_Python_UnpackTuple(args,"Image_HSVValue_hue_set",2,2,swig_obj)) SWIG_fail;
15278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
15279 if (!SWIG_IsOK(res1)) {
15280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_hue_set" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
15281 }
15282 arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
15283 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15284 if (!SWIG_IsOK(ecode2)) {
15285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_HSVValue_hue_set" "', expected argument " "2"" of type '" "double""'");
15286 }
15287 arg2 = static_cast< double >(val2);
15288 if (arg1) (arg1)->hue = arg2;
15289
15290 resultobj = SWIG_Py_Void();
15291 return resultobj;
15292fail:
15293 return NULL;
d55e5bfc
RD
15294}
15295
15296
1bd55598
RD
15297SWIGINTERN PyObject *_wrap_Image_HSVValue_hue_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15298 PyObject *resultobj = 0;
15299 wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
15300 double result;
15301 void *argp1 = 0 ;
15302 int res1 = 0 ;
15303 PyObject *swig_obj[1] ;
15304
15305 if (!args) SWIG_fail;
15306 swig_obj[0] = args;
15307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
15308 if (!SWIG_IsOK(res1)) {
15309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_hue_get" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
15310 }
15311 arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
15312 result = (double) ((arg1)->hue);
15313 resultobj = SWIG_From_double(static_cast< double >(result));
15314 return resultobj;
15315fail:
15316 return NULL;
15317}
15318
15319
15320SWIGINTERN PyObject *_wrap_Image_HSVValue_saturation_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15321 PyObject *resultobj = 0;
15322 wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
15323 double arg2 ;
15324 void *argp1 = 0 ;
15325 int res1 = 0 ;
15326 double val2 ;
15327 int ecode2 = 0 ;
15328 PyObject *swig_obj[2] ;
15329
15330 if (!SWIG_Python_UnpackTuple(args,"Image_HSVValue_saturation_set",2,2,swig_obj)) SWIG_fail;
15331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
15332 if (!SWIG_IsOK(res1)) {
15333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_saturation_set" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
15334 }
15335 arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
15336 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15337 if (!SWIG_IsOK(ecode2)) {
15338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_HSVValue_saturation_set" "', expected argument " "2"" of type '" "double""'");
15339 }
15340 arg2 = static_cast< double >(val2);
15341 if (arg1) (arg1)->saturation = arg2;
15342
15343 resultobj = SWIG_Py_Void();
15344 return resultobj;
15345fail:
15346 return NULL;
d55e5bfc
RD
15347}
15348
15349
1bd55598
RD
15350SWIGINTERN PyObject *_wrap_Image_HSVValue_saturation_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15351 PyObject *resultobj = 0;
15352 wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
15353 double result;
15354 void *argp1 = 0 ;
15355 int res1 = 0 ;
15356 PyObject *swig_obj[1] ;
15357
15358 if (!args) SWIG_fail;
15359 swig_obj[0] = args;
15360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
15361 if (!SWIG_IsOK(res1)) {
15362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_saturation_get" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
15363 }
15364 arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
15365 result = (double) ((arg1)->saturation);
15366 resultobj = SWIG_From_double(static_cast< double >(result));
15367 return resultobj;
15368fail:
15369 return NULL;
15370}
15371
15372
15373SWIGINTERN PyObject *_wrap_Image_HSVValue_value_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15374 PyObject *resultobj = 0;
15375 wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
15376 double arg2 ;
15377 void *argp1 = 0 ;
15378 int res1 = 0 ;
15379 double val2 ;
15380 int ecode2 = 0 ;
15381 PyObject *swig_obj[2] ;
15382
15383 if (!SWIG_Python_UnpackTuple(args,"Image_HSVValue_value_set",2,2,swig_obj)) SWIG_fail;
15384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
15385 if (!SWIG_IsOK(res1)) {
15386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_value_set" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
15387 }
15388 arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
15389 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15390 if (!SWIG_IsOK(ecode2)) {
15391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_HSVValue_value_set" "', expected argument " "2"" of type '" "double""'");
15392 }
15393 arg2 = static_cast< double >(val2);
15394 if (arg1) (arg1)->value = arg2;
15395
15396 resultobj = SWIG_Py_Void();
15397 return resultobj;
15398fail:
15399 return NULL;
d55e5bfc
RD
15400}
15401
15402
1bd55598
RD
15403SWIGINTERN PyObject *_wrap_Image_HSVValue_value_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15404 PyObject *resultobj = 0;
15405 wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
15406 double result;
15407 void *argp1 = 0 ;
15408 int res1 = 0 ;
15409 PyObject *swig_obj[1] ;
15410
15411 if (!args) SWIG_fail;
15412 swig_obj[0] = args;
15413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
15414 if (!SWIG_IsOK(res1)) {
15415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_value_get" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
15416 }
15417 arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
15418 result = (double) ((arg1)->value);
15419 resultobj = SWIG_From_double(static_cast< double >(result));
15420 return resultobj;
15421fail:
15422 return NULL;
15423}
15424
15425
15426SWIGINTERN PyObject *Image_HSVValue_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15427 PyObject *obj;
15428 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15429 SWIG_TypeNewClientData(SWIGTYPE_p_wxImage_HSVValue, SWIG_NewClientData(obj));
15430 return SWIG_Py_Void();
15431}
15432
15433SWIGINTERN PyObject *Image_HSVValue_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15434 return SWIG_Python_InitShadowInstance(args);
15435}
15436
15437SWIGINTERN PyObject *_wrap_new_Image(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15438 PyObject *resultobj = 0;
15439 wxString *arg1 = 0 ;
15440 long arg2 = (long) wxBITMAP_TYPE_ANY ;
15441 int arg3 = (int) -1 ;
15442 wxImage *result = 0 ;
15443 bool temp1 = false ;
15444 long val2 ;
15445 int ecode2 = 0 ;
15446 int val3 ;
15447 int ecode3 = 0 ;
15448 PyObject * obj0 = 0 ;
15449 PyObject * obj1 = 0 ;
15450 PyObject * obj2 = 0 ;
15451 char * kwnames[] = {
15452 (char *) "name",(char *) "type",(char *) "index", NULL
15453 };
15454
15455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15456 {
15457 arg1 = wxString_in_helper(obj0);
15458 if (arg1 == NULL) SWIG_fail;
15459 temp1 = true;
15460 }
15461 if (obj1) {
15462 ecode2 = SWIG_AsVal_long(obj1, &val2);
15463 if (!SWIG_IsOK(ecode2)) {
15464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Image" "', expected argument " "2"" of type '" "long""'");
15465 }
15466 arg2 = static_cast< long >(val2);
15467 }
15468 if (obj2) {
15469 ecode3 = SWIG_AsVal_int(obj2, &val3);
15470 if (!SWIG_IsOK(ecode3)) {
15471 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Image" "', expected argument " "3"" of type '" "int""'");
15472 }
15473 arg3 = static_cast< int >(val3);
15474 }
15475 {
15476 PyThreadState* __tstate = wxPyBeginAllowThreads();
15477 result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3);
15478 wxPyEndAllowThreads(__tstate);
15479 if (PyErr_Occurred()) SWIG_fail;
15480 }
15481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_NEW | 0 );
15482 {
15483 if (temp1)
15484 delete arg1;
15485 }
15486 return resultobj;
15487fail:
15488 {
15489 if (temp1)
15490 delete arg1;
15491 }
15492 return NULL;
d55e5bfc
RD
15493}
15494
15495
1bd55598
RD
15496SWIGINTERN PyObject *_wrap_delete_Image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15497 PyObject *resultobj = 0;
15498 wxImage *arg1 = (wxImage *) 0 ;
15499 void *argp1 = 0 ;
15500 int res1 = 0 ;
15501 PyObject *swig_obj[1] ;
15502
15503 if (!args) SWIG_fail;
15504 swig_obj[0] = args;
15505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, SWIG_POINTER_DISOWN | 0 );
15506 if (!SWIG_IsOK(res1)) {
15507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Image" "', expected argument " "1"" of type '" "wxImage *""'");
15508 }
15509 arg1 = reinterpret_cast< wxImage * >(argp1);
15510 {
15511 PyThreadState* __tstate = wxPyBeginAllowThreads();
15512 delete arg1;
d55e5bfc 15513
1bd55598
RD
15514 wxPyEndAllowThreads(__tstate);
15515 if (PyErr_Occurred()) SWIG_fail;
15516 }
15517 resultobj = SWIG_Py_Void();
15518 return resultobj;
15519fail:
15520 return NULL;
15521}
15522
15523
15524SWIGINTERN PyObject *_wrap_new_ImageFromMime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15525 PyObject *resultobj = 0;
15526 wxString *arg1 = 0 ;
15527 wxString *arg2 = 0 ;
15528 int arg3 = (int) -1 ;
15529 wxImage *result = 0 ;
15530 bool temp1 = false ;
15531 bool temp2 = false ;
15532 int val3 ;
15533 int ecode3 = 0 ;
15534 PyObject * obj0 = 0 ;
15535 PyObject * obj1 = 0 ;
15536 PyObject * obj2 = 0 ;
15537 char * kwnames[] = {
15538 (char *) "name",(char *) "mimetype",(char *) "index", NULL
15539 };
15540
15541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15542 {
15543 arg1 = wxString_in_helper(obj0);
15544 if (arg1 == NULL) SWIG_fail;
15545 temp1 = true;
15546 }
15547 {
15548 arg2 = wxString_in_helper(obj1);
15549 if (arg2 == NULL) SWIG_fail;
15550 temp2 = true;
15551 }
15552 if (obj2) {
15553 ecode3 = SWIG_AsVal_int(obj2, &val3);
15554 if (!SWIG_IsOK(ecode3)) {
15555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageFromMime" "', expected argument " "3"" of type '" "int""'");
15556 }
15557 arg3 = static_cast< int >(val3);
15558 }
15559 {
15560 PyThreadState* __tstate = wxPyBeginAllowThreads();
15561 result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3);
15562 wxPyEndAllowThreads(__tstate);
15563 if (PyErr_Occurred()) SWIG_fail;
15564 }
15565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
15566 {
15567 if (temp1)
15568 delete arg1;
15569 }
15570 {
15571 if (temp2)
15572 delete arg2;
15573 }
15574 return resultobj;
15575fail:
15576 {
15577 if (temp1)
15578 delete arg1;
15579 }
15580 {
15581 if (temp2)
15582 delete arg2;
15583 }
15584 return NULL;
15585}
15586
15587
15588SWIGINTERN PyObject *_wrap_new_ImageFromStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15589 PyObject *resultobj = 0;
15590 wxInputStream *arg1 = 0 ;
15591 long arg2 = (long) wxBITMAP_TYPE_ANY ;
15592 int arg3 = (int) -1 ;
15593 wxImage *result = 0 ;
15594 wxPyInputStream *temp1 ;
15595 bool created1 ;
15596 long val2 ;
15597 int ecode2 = 0 ;
15598 int val3 ;
15599 int ecode3 = 0 ;
15600 PyObject * obj0 = 0 ;
15601 PyObject * obj1 = 0 ;
15602 PyObject * obj2 = 0 ;
15603 char * kwnames[] = {
15604 (char *) "stream",(char *) "type",(char *) "index", NULL
15605 };
15606
15607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15608 {
15609 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
15610 arg1 = temp1->m_wxis;
15611 created1 = false;
15612 } else {
15613 PyErr_Clear(); // clear the failure of the wxPyConvert above
15614 arg1 = wxPyCBInputStream_create(obj0, false);
15615 if (arg1 == NULL) {
15616 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
15617 SWIG_fail;
15618 }
15619 created1 = true;
d55e5bfc 15620 }
1bd55598
RD
15621 }
15622 if (obj1) {
15623 ecode2 = SWIG_AsVal_long(obj1, &val2);
15624 if (!SWIG_IsOK(ecode2)) {
15625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageFromStream" "', expected argument " "2"" of type '" "long""'");
15626 }
15627 arg2 = static_cast< long >(val2);
15628 }
15629 if (obj2) {
15630 ecode3 = SWIG_AsVal_int(obj2, &val3);
15631 if (!SWIG_IsOK(ecode3)) {
15632 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageFromStream" "', expected argument " "3"" of type '" "int""'");
15633 }
15634 arg3 = static_cast< int >(val3);
15635 }
15636 {
15637 PyThreadState* __tstate = wxPyBeginAllowThreads();
15638 result = (wxImage *)new wxImage(*arg1,arg2,arg3);
15639 wxPyEndAllowThreads(__tstate);
15640 if (PyErr_Occurred()) SWIG_fail;
15641 }
15642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
15643 {
15644 if (created1) delete arg1;
15645 }
15646 return resultobj;
15647fail:
15648 {
15649 if (created1) delete arg1;
15650 }
15651 return NULL;
15652}
15653
15654
15655SWIGINTERN PyObject *_wrap_new_ImageFromStreamMime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15656 PyObject *resultobj = 0;
15657 wxInputStream *arg1 = 0 ;
15658 wxString *arg2 = 0 ;
15659 int arg3 = (int) -1 ;
15660 wxImage *result = 0 ;
15661 wxPyInputStream *temp1 ;
15662 bool created1 ;
15663 bool temp2 = false ;
15664 int val3 ;
15665 int ecode3 = 0 ;
15666 PyObject * obj0 = 0 ;
15667 PyObject * obj1 = 0 ;
15668 PyObject * obj2 = 0 ;
15669 char * kwnames[] = {
15670 (char *) "stream",(char *) "mimetype",(char *) "index", NULL
15671 };
15672
15673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15674 {
15675 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
15676 arg1 = temp1->m_wxis;
15677 created1 = false;
15678 } else {
15679 PyErr_Clear(); // clear the failure of the wxPyConvert above
15680 arg1 = wxPyCBInputStream_create(obj0, false);
15681 if (arg1 == NULL) {
15682 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
15683 SWIG_fail;
15684 }
15685 created1 = true;
d55e5bfc 15686 }
1bd55598
RD
15687 }
15688 {
15689 arg2 = wxString_in_helper(obj1);
15690 if (arg2 == NULL) SWIG_fail;
15691 temp2 = true;
15692 }
15693 if (obj2) {
15694 ecode3 = SWIG_AsVal_int(obj2, &val3);
15695 if (!SWIG_IsOK(ecode3)) {
15696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageFromStreamMime" "', expected argument " "3"" of type '" "int""'");
15697 }
15698 arg3 = static_cast< int >(val3);
15699 }
15700 {
15701 PyThreadState* __tstate = wxPyBeginAllowThreads();
15702 result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3);
15703 wxPyEndAllowThreads(__tstate);
15704 if (PyErr_Occurred()) SWIG_fail;
15705 }
15706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
15707 {
15708 if (created1) delete arg1;
15709 }
15710 {
15711 if (temp2)
15712 delete arg2;
15713 }
15714 return resultobj;
15715fail:
15716 {
15717 if (created1) delete arg1;
15718 }
15719 {
15720 if (temp2)
15721 delete arg2;
15722 }
15723 return NULL;
15724}
15725
15726
15727SWIGINTERN PyObject *_wrap_new_EmptyImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15728 PyObject *resultobj = 0;
15729 int arg1 = (int) 0 ;
15730 int arg2 = (int) 0 ;
15731 bool arg3 = (bool) true ;
15732 wxImage *result = 0 ;
15733 int val1 ;
15734 int ecode1 = 0 ;
15735 int val2 ;
15736 int ecode2 = 0 ;
15737 bool val3 ;
15738 int ecode3 = 0 ;
15739 PyObject * obj0 = 0 ;
15740 PyObject * obj1 = 0 ;
15741 PyObject * obj2 = 0 ;
15742 char * kwnames[] = {
15743 (char *) "width",(char *) "height",(char *) "clear", NULL
15744 };
15745
15746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15747 if (obj0) {
15748 ecode1 = SWIG_AsVal_int(obj0, &val1);
15749 if (!SWIG_IsOK(ecode1)) {
15750 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyImage" "', expected argument " "1"" of type '" "int""'");
15751 }
15752 arg1 = static_cast< int >(val1);
15753 }
15754 if (obj1) {
15755 ecode2 = SWIG_AsVal_int(obj1, &val2);
15756 if (!SWIG_IsOK(ecode2)) {
15757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyImage" "', expected argument " "2"" of type '" "int""'");
15758 }
15759 arg2 = static_cast< int >(val2);
15760 }
15761 if (obj2) {
15762 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15763 if (!SWIG_IsOK(ecode3)) {
15764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyImage" "', expected argument " "3"" of type '" "bool""'");
15765 }
15766 arg3 = static_cast< bool >(val3);
15767 }
15768 {
15769 PyThreadState* __tstate = wxPyBeginAllowThreads();
15770 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
15771 wxPyEndAllowThreads(__tstate);
15772 if (PyErr_Occurred()) SWIG_fail;
15773 }
15774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
15775 return resultobj;
15776fail:
15777 return NULL;
15778}
15779
15780
15781SWIGINTERN PyObject *_wrap_new_ImageFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15782 PyObject *resultobj = 0;
15783 wxBitmap *arg1 = 0 ;
15784 wxImage *result = 0 ;
15785 void *argp1 = 0 ;
15786 int res1 = 0 ;
15787 PyObject * obj0 = 0 ;
15788 char * kwnames[] = {
15789 (char *) "bitmap", NULL
15790 };
15791
15792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) SWIG_fail;
15793 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
15794 if (!SWIG_IsOK(res1)) {
15795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ImageFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
15796 }
15797 if (!argp1) {
15798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ImageFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
15799 }
15800 arg1 = reinterpret_cast< wxBitmap * >(argp1);
15801 {
15802 if (!wxPyCheckForApp()) SWIG_fail;
15803 PyThreadState* __tstate = wxPyBeginAllowThreads();
15804 result = (wxImage *)new_wxImage((wxBitmap const &)*arg1);
15805 wxPyEndAllowThreads(__tstate);
15806 if (PyErr_Occurred()) SWIG_fail;
15807 }
15808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
15809 return resultobj;
15810fail:
15811 return NULL;
15812}
15813
15814
15815SWIGINTERN PyObject *_wrap_new_ImageFromData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15816 PyObject *resultobj = 0;
15817 int arg1 ;
15818 int arg2 ;
15819 buffer arg3 ;
15820 int arg4 ;
15821 wxImage *result = 0 ;
15822 int val1 ;
15823 int ecode1 = 0 ;
15824 int val2 ;
15825 int ecode2 = 0 ;
8c9c423b 15826 Py_ssize_t temp3 ;
1bd55598
RD
15827 PyObject * obj0 = 0 ;
15828 PyObject * obj1 = 0 ;
15829 PyObject * obj2 = 0 ;
15830 char * kwnames[] = {
15831 (char *) "width",(char *) "height",(char *) "data", NULL
15832 };
15833
15834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15835 ecode1 = SWIG_AsVal_int(obj0, &val1);
15836 if (!SWIG_IsOK(ecode1)) {
15837 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageFromData" "', expected argument " "1"" of type '" "int""'");
15838 }
15839 arg1 = static_cast< int >(val1);
15840 ecode2 = SWIG_AsVal_int(obj1, &val2);
15841 if (!SWIG_IsOK(ecode2)) {
15842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageFromData" "', expected argument " "2"" of type '" "int""'");
15843 }
15844 arg2 = static_cast< int >(val2);
15845 {
8c9c423b
RD
15846 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
15847 arg4 = (int)temp3;
1bd55598
RD
15848 }
15849 {
15850 PyThreadState* __tstate = wxPyBeginAllowThreads();
15851 result = (wxImage *)new_wxImage(arg1,arg2,arg3,arg4);
15852 wxPyEndAllowThreads(__tstate);
15853 if (PyErr_Occurred()) SWIG_fail;
15854 }
15855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
15856 return resultobj;
15857fail:
15858 return NULL;
15859}
15860
15861
15862SWIGINTERN PyObject *_wrap_new_ImageFromDataWithAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15863 PyObject *resultobj = 0;
15864 int arg1 ;
15865 int arg2 ;
15866 buffer arg3 ;
15867 int arg4 ;
15868 buffer arg5 ;
15869 int arg6 ;
15870 wxImage *result = 0 ;
15871 int val1 ;
15872 int ecode1 = 0 ;
15873 int val2 ;
15874 int ecode2 = 0 ;
8c9c423b
RD
15875 Py_ssize_t temp3 ;
15876 Py_ssize_t temp5 ;
1bd55598
RD
15877 PyObject * obj0 = 0 ;
15878 PyObject * obj1 = 0 ;
15879 PyObject * obj2 = 0 ;
15880 PyObject * obj3 = 0 ;
15881 char * kwnames[] = {
15882 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
15883 };
15884
15885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_ImageFromDataWithAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15886 ecode1 = SWIG_AsVal_int(obj0, &val1);
15887 if (!SWIG_IsOK(ecode1)) {
15888 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageFromDataWithAlpha" "', expected argument " "1"" of type '" "int""'");
15889 }
15890 arg1 = static_cast< int >(val1);
15891 ecode2 = SWIG_AsVal_int(obj1, &val2);
15892 if (!SWIG_IsOK(ecode2)) {
15893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageFromDataWithAlpha" "', expected argument " "2"" of type '" "int""'");
15894 }
15895 arg2 = static_cast< int >(val2);
15896 {
8c9c423b
RD
15897 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
15898 arg4 = (int)temp3;
1bd55598
RD
15899 }
15900 {
fc46b7f3 15901 if (obj3 != Py_None) {
8c9c423b
RD
15902 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
15903 arg6 = (int)temp5;
fc46b7f3 15904 }
1bd55598
RD
15905 }
15906 {
15907 PyThreadState* __tstate = wxPyBeginAllowThreads();
15908 result = (wxImage *)new_wxImage(arg1,arg2,arg3,arg4,arg5,arg6);
15909 wxPyEndAllowThreads(__tstate);
15910 if (PyErr_Occurred()) SWIG_fail;
15911 }
15912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
15913 return resultobj;
15914fail:
15915 return NULL;
15916}
15917
15918
15919SWIGINTERN PyObject *_wrap_Image_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15920 PyObject *resultobj = 0;
15921 wxImage *arg1 = (wxImage *) 0 ;
15922 int arg2 ;
15923 int arg3 ;
15924 bool arg4 = (bool) true ;
15925 void *argp1 = 0 ;
15926 int res1 = 0 ;
15927 int val2 ;
15928 int ecode2 = 0 ;
15929 int val3 ;
15930 int ecode3 = 0 ;
15931 bool val4 ;
15932 int ecode4 = 0 ;
15933 PyObject * obj0 = 0 ;
15934 PyObject * obj1 = 0 ;
15935 PyObject * obj2 = 0 ;
15936 PyObject * obj3 = 0 ;
15937 char * kwnames[] = {
15938 (char *) "self",(char *) "width",(char *) "height",(char *) "clear", NULL
15939 };
15940
15941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_Create",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
15943 if (!SWIG_IsOK(res1)) {
15944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Create" "', expected argument " "1"" of type '" "wxImage *""'");
15945 }
15946 arg1 = reinterpret_cast< wxImage * >(argp1);
15947 ecode2 = SWIG_AsVal_int(obj1, &val2);
15948 if (!SWIG_IsOK(ecode2)) {
15949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Create" "', expected argument " "2"" of type '" "int""'");
15950 }
15951 arg2 = static_cast< int >(val2);
15952 ecode3 = SWIG_AsVal_int(obj2, &val3);
15953 if (!SWIG_IsOK(ecode3)) {
15954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_Create" "', expected argument " "3"" of type '" "int""'");
15955 }
15956 arg3 = static_cast< int >(val3);
15957 if (obj3) {
15958 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15959 if (!SWIG_IsOK(ecode4)) {
15960 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Create" "', expected argument " "4"" of type '" "bool""'");
15961 }
15962 arg4 = static_cast< bool >(val4);
15963 }
15964 {
15965 PyThreadState* __tstate = wxPyBeginAllowThreads();
15966 (arg1)->Create(arg2,arg3,arg4);
15967 wxPyEndAllowThreads(__tstate);
15968 if (PyErr_Occurred()) SWIG_fail;
15969 }
15970 resultobj = SWIG_Py_Void();
15971 return resultobj;
15972fail:
15973 return NULL;
d55e5bfc
RD
15974}
15975
15976
1bd55598
RD
15977SWIGINTERN PyObject *_wrap_Image_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15978 PyObject *resultobj = 0;
15979 wxImage *arg1 = (wxImage *) 0 ;
15980 void *argp1 = 0 ;
15981 int res1 = 0 ;
15982 PyObject *swig_obj[1] ;
15983
15984 if (!args) SWIG_fail;
15985 swig_obj[0] = args;
15986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
15987 if (!SWIG_IsOK(res1)) {
15988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Destroy" "', expected argument " "1"" of type '" "wxImage *""'");
15989 }
15990 arg1 = reinterpret_cast< wxImage * >(argp1);
15991 {
15992 PyThreadState* __tstate = wxPyBeginAllowThreads();
15993 (arg1)->Destroy();
15994 wxPyEndAllowThreads(__tstate);
15995 if (PyErr_Occurred()) SWIG_fail;
15996 }
15997 resultobj = SWIG_Py_Void();
15998 return resultobj;
15999fail:
16000 return NULL;
16001}
16002
16003
16004SWIGINTERN PyObject *_wrap_Image_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16005 PyObject *resultobj = 0;
16006 wxImage *arg1 = (wxImage *) 0 ;
16007 int arg2 ;
16008 int arg3 ;
f5263701 16009 int arg4 = (int) wxIMAGE_QUALITY_NORMAL ;
1bd55598
RD
16010 SwigValueWrapper<wxImage > result;
16011 void *argp1 = 0 ;
16012 int res1 = 0 ;
16013 int val2 ;
16014 int ecode2 = 0 ;
16015 int val3 ;
16016 int ecode3 = 0 ;
f5263701
RD
16017 int val4 ;
16018 int ecode4 = 0 ;
1bd55598
RD
16019 PyObject * obj0 = 0 ;
16020 PyObject * obj1 = 0 ;
16021 PyObject * obj2 = 0 ;
f5263701 16022 PyObject * obj3 = 0 ;
1bd55598 16023 char * kwnames[] = {
f5263701 16024 (char *) "self",(char *) "width",(char *) "height",(char *) "quality", NULL
1bd55598
RD
16025 };
16026
f5263701 16027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_Scale",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
16028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16029 if (!SWIG_IsOK(res1)) {
16030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Scale" "', expected argument " "1"" of type '" "wxImage *""'");
16031 }
16032 arg1 = reinterpret_cast< wxImage * >(argp1);
16033 ecode2 = SWIG_AsVal_int(obj1, &val2);
16034 if (!SWIG_IsOK(ecode2)) {
16035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Scale" "', expected argument " "2"" of type '" "int""'");
16036 }
16037 arg2 = static_cast< int >(val2);
16038 ecode3 = SWIG_AsVal_int(obj2, &val3);
16039 if (!SWIG_IsOK(ecode3)) {
16040 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_Scale" "', expected argument " "3"" of type '" "int""'");
16041 }
16042 arg3 = static_cast< int >(val3);
f5263701
RD
16043 if (obj3) {
16044 ecode4 = SWIG_AsVal_int(obj3, &val4);
16045 if (!SWIG_IsOK(ecode4)) {
16046 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Scale" "', expected argument " "4"" of type '" "int""'");
16047 }
16048 arg4 = static_cast< int >(val4);
16049 }
1bd55598
RD
16050 {
16051 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701
RD
16052 result = (arg1)->Scale(arg2,arg3,arg4);
16053 wxPyEndAllowThreads(__tstate);
16054 if (PyErr_Occurred()) SWIG_fail;
16055 }
16056 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
16057 return resultobj;
16058fail:
16059 return NULL;
16060}
16061
16062
16063SWIGINTERN PyObject *_wrap_Image_ResampleBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16064 PyObject *resultobj = 0;
16065 wxImage *arg1 = (wxImage *) 0 ;
16066 int arg2 ;
16067 int arg3 ;
16068 SwigValueWrapper<wxImage > result;
16069 void *argp1 = 0 ;
16070 int res1 = 0 ;
16071 int val2 ;
16072 int ecode2 = 0 ;
16073 int val3 ;
16074 int ecode3 = 0 ;
16075 PyObject * obj0 = 0 ;
16076 PyObject * obj1 = 0 ;
16077 PyObject * obj2 = 0 ;
16078 char * kwnames[] = {
16079 (char *) "self",(char *) "width",(char *) "height", NULL
16080 };
16081
16082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ResampleBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16084 if (!SWIG_IsOK(res1)) {
16085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ResampleBox" "', expected argument " "1"" of type '" "wxImage const *""'");
16086 }
16087 arg1 = reinterpret_cast< wxImage * >(argp1);
16088 ecode2 = SWIG_AsVal_int(obj1, &val2);
16089 if (!SWIG_IsOK(ecode2)) {
16090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ResampleBox" "', expected argument " "2"" of type '" "int""'");
16091 }
16092 arg2 = static_cast< int >(val2);
16093 ecode3 = SWIG_AsVal_int(obj2, &val3);
16094 if (!SWIG_IsOK(ecode3)) {
16095 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ResampleBox" "', expected argument " "3"" of type '" "int""'");
16096 }
16097 arg3 = static_cast< int >(val3);
16098 {
16099 PyThreadState* __tstate = wxPyBeginAllowThreads();
16100 result = ((wxImage const *)arg1)->ResampleBox(arg2,arg3);
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_ResampleBicubic(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_ResampleBicubic",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_ResampleBicubic" "', 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_ResampleBicubic" "', 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_ResampleBicubic" "', expected argument " "3"" of type '" "int""'");
16144 }
16145 arg3 = static_cast< int >(val3);
16146 {
16147 PyThreadState* __tstate = wxPyBeginAllowThreads();
16148 result = ((wxImage const *)arg1)->ResampleBicubic(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_Blur(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16160 PyObject *resultobj = 0;
16161 wxImage *arg1 = (wxImage *) 0 ;
16162 int arg2 ;
16163 SwigValueWrapper<wxImage > result;
16164 void *argp1 = 0 ;
16165 int res1 = 0 ;
16166 int val2 ;
16167 int ecode2 = 0 ;
16168 PyObject * obj0 = 0 ;
16169 PyObject * obj1 = 0 ;
16170 char * kwnames[] = {
16171 (char *) "self",(char *) "radius", NULL
16172 };
16173
16174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_Blur",kwnames,&obj0,&obj1)) SWIG_fail;
16175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16176 if (!SWIG_IsOK(res1)) {
16177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Blur" "', expected argument " "1"" of type '" "wxImage *""'");
16178 }
16179 arg1 = reinterpret_cast< wxImage * >(argp1);
16180 ecode2 = SWIG_AsVal_int(obj1, &val2);
16181 if (!SWIG_IsOK(ecode2)) {
16182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Blur" "', expected argument " "2"" of type '" "int""'");
16183 }
16184 arg2 = static_cast< int >(val2);
16185 {
16186 PyThreadState* __tstate = wxPyBeginAllowThreads();
16187 result = (arg1)->Blur(arg2);
16188 wxPyEndAllowThreads(__tstate);
16189 if (PyErr_Occurred()) SWIG_fail;
16190 }
16191 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
16192 return resultobj;
16193fail:
16194 return NULL;
16195}
16196
16197
16198SWIGINTERN PyObject *_wrap_Image_BlurHorizontal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16199 PyObject *resultobj = 0;
16200 wxImage *arg1 = (wxImage *) 0 ;
16201 int arg2 ;
16202 SwigValueWrapper<wxImage > result;
16203 void *argp1 = 0 ;
16204 int res1 = 0 ;
16205 int val2 ;
16206 int ecode2 = 0 ;
16207 PyObject * obj0 = 0 ;
16208 PyObject * obj1 = 0 ;
16209 char * kwnames[] = {
16210 (char *) "self",(char *) "radius", NULL
16211 };
16212
16213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_BlurHorizontal",kwnames,&obj0,&obj1)) SWIG_fail;
16214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16215 if (!SWIG_IsOK(res1)) {
16216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_BlurHorizontal" "', expected argument " "1"" of type '" "wxImage *""'");
16217 }
16218 arg1 = reinterpret_cast< wxImage * >(argp1);
16219 ecode2 = SWIG_AsVal_int(obj1, &val2);
16220 if (!SWIG_IsOK(ecode2)) {
16221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_BlurHorizontal" "', expected argument " "2"" of type '" "int""'");
16222 }
16223 arg2 = static_cast< int >(val2);
16224 {
16225 PyThreadState* __tstate = wxPyBeginAllowThreads();
16226 result = (arg1)->BlurHorizontal(arg2);
16227 wxPyEndAllowThreads(__tstate);
16228 if (PyErr_Occurred()) SWIG_fail;
16229 }
16230 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
16231 return resultobj;
16232fail:
16233 return NULL;
16234}
16235
16236
16237SWIGINTERN PyObject *_wrap_Image_BlurVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16238 PyObject *resultobj = 0;
16239 wxImage *arg1 = (wxImage *) 0 ;
16240 int arg2 ;
16241 SwigValueWrapper<wxImage > result;
16242 void *argp1 = 0 ;
16243 int res1 = 0 ;
16244 int val2 ;
16245 int ecode2 = 0 ;
16246 PyObject * obj0 = 0 ;
16247 PyObject * obj1 = 0 ;
16248 char * kwnames[] = {
16249 (char *) "self",(char *) "radius", NULL
16250 };
16251
16252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_BlurVertical",kwnames,&obj0,&obj1)) SWIG_fail;
16253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16254 if (!SWIG_IsOK(res1)) {
16255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_BlurVertical" "', expected argument " "1"" of type '" "wxImage *""'");
16256 }
16257 arg1 = reinterpret_cast< wxImage * >(argp1);
16258 ecode2 = SWIG_AsVal_int(obj1, &val2);
16259 if (!SWIG_IsOK(ecode2)) {
16260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_BlurVertical" "', expected argument " "2"" of type '" "int""'");
16261 }
16262 arg2 = static_cast< int >(val2);
16263 {
16264 PyThreadState* __tstate = wxPyBeginAllowThreads();
16265 result = (arg1)->BlurVertical(arg2);
1bd55598
RD
16266 wxPyEndAllowThreads(__tstate);
16267 if (PyErr_Occurred()) SWIG_fail;
16268 }
16269 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
16270 return resultobj;
16271fail:
16272 return NULL;
16273}
16274
16275
16276SWIGINTERN PyObject *_wrap_Image_ShrinkBy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16277 PyObject *resultobj = 0;
16278 wxImage *arg1 = (wxImage *) 0 ;
16279 int arg2 ;
16280 int arg3 ;
16281 SwigValueWrapper<wxImage > result;
16282 void *argp1 = 0 ;
16283 int res1 = 0 ;
16284 int val2 ;
16285 int ecode2 = 0 ;
16286 int val3 ;
16287 int ecode3 = 0 ;
16288 PyObject * obj0 = 0 ;
16289 PyObject * obj1 = 0 ;
16290 PyObject * obj2 = 0 ;
16291 char * kwnames[] = {
16292 (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL
16293 };
16294
16295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16297 if (!SWIG_IsOK(res1)) {
16298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ShrinkBy" "', expected argument " "1"" of type '" "wxImage const *""'");
16299 }
16300 arg1 = reinterpret_cast< wxImage * >(argp1);
16301 ecode2 = SWIG_AsVal_int(obj1, &val2);
16302 if (!SWIG_IsOK(ecode2)) {
16303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ShrinkBy" "', expected argument " "2"" of type '" "int""'");
16304 }
16305 arg2 = static_cast< int >(val2);
16306 ecode3 = SWIG_AsVal_int(obj2, &val3);
16307 if (!SWIG_IsOK(ecode3)) {
16308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ShrinkBy" "', expected argument " "3"" of type '" "int""'");
16309 }
16310 arg3 = static_cast< int >(val3);
16311 {
16312 PyThreadState* __tstate = wxPyBeginAllowThreads();
16313 result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3);
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_Rescale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16325 PyObject *resultobj = 0;
16326 wxImage *arg1 = (wxImage *) 0 ;
16327 int arg2 ;
16328 int arg3 ;
f5263701 16329 int arg4 = (int) wxIMAGE_QUALITY_NORMAL ;
1bd55598
RD
16330 wxImage *result = 0 ;
16331 void *argp1 = 0 ;
16332 int res1 = 0 ;
16333 int val2 ;
16334 int ecode2 = 0 ;
16335 int val3 ;
16336 int ecode3 = 0 ;
f5263701
RD
16337 int val4 ;
16338 int ecode4 = 0 ;
1bd55598
RD
16339 PyObject * obj0 = 0 ;
16340 PyObject * obj1 = 0 ;
16341 PyObject * obj2 = 0 ;
f5263701 16342 PyObject * obj3 = 0 ;
1bd55598 16343 char * kwnames[] = {
f5263701 16344 (char *) "self",(char *) "width",(char *) "height",(char *) "quality", NULL
1bd55598
RD
16345 };
16346
f5263701 16347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_Rescale",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
16348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16349 if (!SWIG_IsOK(res1)) {
16350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Rescale" "', expected argument " "1"" of type '" "wxImage *""'");
16351 }
16352 arg1 = reinterpret_cast< wxImage * >(argp1);
16353 ecode2 = SWIG_AsVal_int(obj1, &val2);
16354 if (!SWIG_IsOK(ecode2)) {
16355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Rescale" "', expected argument " "2"" of type '" "int""'");
16356 }
16357 arg2 = static_cast< int >(val2);
16358 ecode3 = SWIG_AsVal_int(obj2, &val3);
16359 if (!SWIG_IsOK(ecode3)) {
16360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_Rescale" "', expected argument " "3"" of type '" "int""'");
16361 }
16362 arg3 = static_cast< int >(val3);
f5263701
RD
16363 if (obj3) {
16364 ecode4 = SWIG_AsVal_int(obj3, &val4);
16365 if (!SWIG_IsOK(ecode4)) {
16366 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Rescale" "', expected argument " "4"" of type '" "int""'");
16367 }
16368 arg4 = static_cast< int >(val4);
16369 }
1bd55598
RD
16370 {
16371 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 16372 {
f5263701 16373 wxImage &_result_ref = (arg1)->Rescale(arg2,arg3,arg4);
1bd55598 16374 result = (wxImage *) &_result_ref;
d55e5bfc 16375 }
1bd55598
RD
16376 wxPyEndAllowThreads(__tstate);
16377 if (PyErr_Occurred()) SWIG_fail;
16378 }
16379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, 0 | 0 );
16380 return resultobj;
16381fail:
16382 return NULL;
16383}
16384
16385
16386SWIGINTERN PyObject *_wrap_Image_Resize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16387 PyObject *resultobj = 0;
16388 wxImage *arg1 = (wxImage *) 0 ;
16389 wxSize *arg2 = 0 ;
16390 wxPoint *arg3 = 0 ;
16391 int arg4 = (int) -1 ;
16392 int arg5 = (int) -1 ;
16393 int arg6 = (int) -1 ;
16394 wxImage *result = 0 ;
16395 void *argp1 = 0 ;
16396 int res1 = 0 ;
16397 wxSize temp2 ;
16398 wxPoint temp3 ;
16399 int val4 ;
16400 int ecode4 = 0 ;
16401 int val5 ;
16402 int ecode5 = 0 ;
16403 int val6 ;
16404 int ecode6 = 0 ;
16405 PyObject * obj0 = 0 ;
16406 PyObject * obj1 = 0 ;
16407 PyObject * obj2 = 0 ;
16408 PyObject * obj3 = 0 ;
16409 PyObject * obj4 = 0 ;
16410 PyObject * obj5 = 0 ;
16411 char * kwnames[] = {
16412 (char *) "self",(char *) "size",(char *) "pos",(char *) "r",(char *) "g",(char *) "b", NULL
16413 };
16414
16415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:Image_Resize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16417 if (!SWIG_IsOK(res1)) {
16418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Resize" "', expected argument " "1"" of type '" "wxImage *""'");
16419 }
16420 arg1 = reinterpret_cast< wxImage * >(argp1);
16421 {
16422 arg2 = &temp2;
16423 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
16424 }
16425 {
16426 arg3 = &temp3;
16427 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16428 }
16429 if (obj3) {
16430 ecode4 = SWIG_AsVal_int(obj3, &val4);
16431 if (!SWIG_IsOK(ecode4)) {
16432 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Resize" "', expected argument " "4"" of type '" "int""'");
16433 }
16434 arg4 = static_cast< int >(val4);
16435 }
16436 if (obj4) {
16437 ecode5 = SWIG_AsVal_int(obj4, &val5);
16438 if (!SWIG_IsOK(ecode5)) {
16439 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_Resize" "', expected argument " "5"" of type '" "int""'");
16440 }
16441 arg5 = static_cast< int >(val5);
16442 }
16443 if (obj5) {
16444 ecode6 = SWIG_AsVal_int(obj5, &val6);
16445 if (!SWIG_IsOK(ecode6)) {
16446 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Image_Resize" "', expected argument " "6"" of type '" "int""'");
16447 }
16448 arg6 = static_cast< int >(val6);
16449 }
16450 {
16451 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 16452 {
1bd55598
RD
16453 wxImage &_result_ref = (arg1)->Resize((wxSize const &)*arg2,(wxPoint const &)*arg3,arg4,arg5,arg6);
16454 result = (wxImage *) &_result_ref;
36ed4f51 16455 }
1bd55598
RD
16456 wxPyEndAllowThreads(__tstate);
16457 if (PyErr_Occurred()) SWIG_fail;
16458 }
16459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, 0 | 0 );
16460 return resultobj;
16461fail:
16462 return NULL;
16463}
16464
16465
16466SWIGINTERN PyObject *_wrap_Image_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16467 PyObject *resultobj = 0;
16468 wxImage *arg1 = (wxImage *) 0 ;
16469 int arg2 ;
16470 int arg3 ;
16471 byte arg4 ;
16472 byte arg5 ;
16473 byte arg6 ;
16474 void *argp1 = 0 ;
16475 int res1 = 0 ;
16476 int val2 ;
16477 int ecode2 = 0 ;
16478 int val3 ;
16479 int ecode3 = 0 ;
16480 unsigned char val4 ;
16481 int ecode4 = 0 ;
16482 unsigned char val5 ;
16483 int ecode5 = 0 ;
16484 unsigned char val6 ;
16485 int ecode6 = 0 ;
16486 PyObject * obj0 = 0 ;
16487 PyObject * obj1 = 0 ;
16488 PyObject * obj2 = 0 ;
16489 PyObject * obj3 = 0 ;
16490 PyObject * obj4 = 0 ;
16491 PyObject * obj5 = 0 ;
16492 char * kwnames[] = {
16493 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL
16494 };
16495
16496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16498 if (!SWIG_IsOK(res1)) {
16499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetRGB" "', expected argument " "1"" of type '" "wxImage *""'");
16500 }
16501 arg1 = reinterpret_cast< wxImage * >(argp1);
16502 ecode2 = SWIG_AsVal_int(obj1, &val2);
16503 if (!SWIG_IsOK(ecode2)) {
16504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_SetRGB" "', expected argument " "2"" of type '" "int""'");
16505 }
16506 arg2 = static_cast< int >(val2);
16507 ecode3 = SWIG_AsVal_int(obj2, &val3);
16508 if (!SWIG_IsOK(ecode3)) {
16509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetRGB" "', expected argument " "3"" of type '" "int""'");
16510 }
16511 arg3 = static_cast< int >(val3);
16512 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
16513 if (!SWIG_IsOK(ecode4)) {
16514 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_SetRGB" "', expected argument " "4"" of type '" "byte""'");
16515 }
16516 arg4 = static_cast< byte >(val4);
16517 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
16518 if (!SWIG_IsOK(ecode5)) {
16519 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_SetRGB" "', expected argument " "5"" of type '" "byte""'");
16520 }
16521 arg5 = static_cast< byte >(val5);
16522 ecode6 = SWIG_AsVal_unsigned_SS_char(obj5, &val6);
16523 if (!SWIG_IsOK(ecode6)) {
16524 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Image_SetRGB" "', expected argument " "6"" of type '" "byte""'");
16525 }
16526 arg6 = static_cast< byte >(val6);
16527 {
16528 PyThreadState* __tstate = wxPyBeginAllowThreads();
16529 (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6);
16530 wxPyEndAllowThreads(__tstate);
16531 if (PyErr_Occurred()) SWIG_fail;
16532 }
16533 resultobj = SWIG_Py_Void();
16534 return resultobj;
16535fail:
16536 return NULL;
16537}
16538
16539
16540SWIGINTERN PyObject *_wrap_Image_SetRGBRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16541 PyObject *resultobj = 0;
16542 wxImage *arg1 = (wxImage *) 0 ;
16543 wxRect *arg2 = 0 ;
16544 byte arg3 ;
16545 byte arg4 ;
16546 byte arg5 ;
16547 void *argp1 = 0 ;
16548 int res1 = 0 ;
16549 wxRect temp2 ;
16550 unsigned char val3 ;
16551 int ecode3 = 0 ;
16552 unsigned char val4 ;
16553 int ecode4 = 0 ;
16554 unsigned char val5 ;
16555 int ecode5 = 0 ;
16556 PyObject * obj0 = 0 ;
16557 PyObject * obj1 = 0 ;
16558 PyObject * obj2 = 0 ;
16559 PyObject * obj3 = 0 ;
16560 PyObject * obj4 = 0 ;
16561 char * kwnames[] = {
16562 (char *) "self",(char *) "rect",(char *) "r",(char *) "g",(char *) "b", NULL
16563 };
16564
16565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetRGBRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16567 if (!SWIG_IsOK(res1)) {
16568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetRGBRect" "', expected argument " "1"" of type '" "wxImage *""'");
16569 }
16570 arg1 = reinterpret_cast< wxImage * >(argp1);
16571 {
16572 arg2 = &temp2;
16573 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16574 }
16575 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
16576 if (!SWIG_IsOK(ecode3)) {
16577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetRGBRect" "', expected argument " "3"" of type '" "byte""'");
16578 }
16579 arg3 = static_cast< byte >(val3);
16580 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
16581 if (!SWIG_IsOK(ecode4)) {
16582 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_SetRGBRect" "', expected argument " "4"" of type '" "byte""'");
16583 }
16584 arg4 = static_cast< byte >(val4);
16585 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
16586 if (!SWIG_IsOK(ecode5)) {
16587 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_SetRGBRect" "', expected argument " "5"" of type '" "byte""'");
16588 }
16589 arg5 = static_cast< byte >(val5);
16590 {
16591 PyThreadState* __tstate = wxPyBeginAllowThreads();
16592 (arg1)->SetRGB((wxRect const &)*arg2,arg3,arg4,arg5);
16593 wxPyEndAllowThreads(__tstate);
16594 if (PyErr_Occurred()) SWIG_fail;
16595 }
16596 resultobj = SWIG_Py_Void();
16597 return resultobj;
16598fail:
16599 return NULL;
16600}
16601
16602
16603SWIGINTERN PyObject *_wrap_Image_GetRed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16604 PyObject *resultobj = 0;
16605 wxImage *arg1 = (wxImage *) 0 ;
16606 int arg2 ;
16607 int arg3 ;
16608 byte result;
16609 void *argp1 = 0 ;
16610 int res1 = 0 ;
16611 int val2 ;
16612 int ecode2 = 0 ;
16613 int val3 ;
16614 int ecode3 = 0 ;
16615 PyObject * obj0 = 0 ;
16616 PyObject * obj1 = 0 ;
16617 PyObject * obj2 = 0 ;
16618 char * kwnames[] = {
16619 (char *) "self",(char *) "x",(char *) "y", NULL
16620 };
16621
16622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16624 if (!SWIG_IsOK(res1)) {
16625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetRed" "', expected argument " "1"" of type '" "wxImage *""'");
16626 }
16627 arg1 = reinterpret_cast< wxImage * >(argp1);
16628 ecode2 = SWIG_AsVal_int(obj1, &val2);
16629 if (!SWIG_IsOK(ecode2)) {
16630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_GetRed" "', expected argument " "2"" of type '" "int""'");
16631 }
16632 arg2 = static_cast< int >(val2);
16633 ecode3 = SWIG_AsVal_int(obj2, &val3);
16634 if (!SWIG_IsOK(ecode3)) {
16635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_GetRed" "', expected argument " "3"" of type '" "int""'");
16636 }
16637 arg3 = static_cast< int >(val3);
16638 {
16639 PyThreadState* __tstate = wxPyBeginAllowThreads();
16640 result = (byte)(arg1)->GetRed(arg2,arg3);
16641 wxPyEndAllowThreads(__tstate);
16642 if (PyErr_Occurred()) SWIG_fail;
16643 }
16644 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
16645 return resultobj;
16646fail:
16647 return NULL;
16648}
16649
16650
16651SWIGINTERN PyObject *_wrap_Image_GetGreen(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_GetGreen",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_GetGreen" "', 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_GetGreen" "', 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_GetGreen" "', expected argument " "3"" of type '" "int""'");
16684 }
16685 arg3 = static_cast< int >(val3);
16686 {
16687 PyThreadState* __tstate = wxPyBeginAllowThreads();
16688 result = (byte)(arg1)->GetGreen(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_GetBlue(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_GetBlue",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_GetBlue" "', 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_GetBlue" "', 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_GetBlue" "', expected argument " "3"" of type '" "int""'");
16732 }
16733 arg3 = static_cast< int >(val3);
16734 {
16735 PyThreadState* __tstate = wxPyBeginAllowThreads();
16736 result = (byte)(arg1)->GetBlue(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_SetAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16748 PyObject *resultobj = 0;
16749 wxImage *arg1 = (wxImage *) 0 ;
16750 int arg2 ;
16751 int arg3 ;
16752 byte arg4 ;
16753 void *argp1 = 0 ;
16754 int res1 = 0 ;
16755 int val2 ;
16756 int ecode2 = 0 ;
16757 int val3 ;
16758 int ecode3 = 0 ;
16759 unsigned char val4 ;
16760 int ecode4 = 0 ;
16761 PyObject * obj0 = 0 ;
16762 PyObject * obj1 = 0 ;
16763 PyObject * obj2 = 0 ;
16764 PyObject * obj3 = 0 ;
16765 char * kwnames[] = {
16766 (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL
16767 };
16768
16769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16771 if (!SWIG_IsOK(res1)) {
16772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetAlpha" "', expected argument " "1"" of type '" "wxImage *""'");
16773 }
16774 arg1 = reinterpret_cast< wxImage * >(argp1);
16775 ecode2 = SWIG_AsVal_int(obj1, &val2);
16776 if (!SWIG_IsOK(ecode2)) {
16777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_SetAlpha" "', expected argument " "2"" of type '" "int""'");
16778 }
16779 arg2 = static_cast< int >(val2);
16780 ecode3 = SWIG_AsVal_int(obj2, &val3);
16781 if (!SWIG_IsOK(ecode3)) {
16782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetAlpha" "', expected argument " "3"" of type '" "int""'");
16783 }
16784 arg3 = static_cast< int >(val3);
16785 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
16786 if (!SWIG_IsOK(ecode4)) {
16787 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_SetAlpha" "', expected argument " "4"" of type '" "byte""'");
16788 }
16789 arg4 = static_cast< byte >(val4);
16790 {
16791 PyThreadState* __tstate = wxPyBeginAllowThreads();
16792 (arg1)->SetAlpha(arg2,arg3,arg4);
16793 wxPyEndAllowThreads(__tstate);
16794 if (PyErr_Occurred()) SWIG_fail;
16795 }
16796 resultobj = SWIG_Py_Void();
16797 return resultobj;
16798fail:
16799 return NULL;
16800}
16801
16802
16803SWIGINTERN PyObject *_wrap_Image_GetAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16804 PyObject *resultobj = 0;
16805 wxImage *arg1 = (wxImage *) 0 ;
16806 int arg2 ;
16807 int arg3 ;
16808 byte result;
16809 void *argp1 = 0 ;
16810 int res1 = 0 ;
16811 int val2 ;
16812 int ecode2 = 0 ;
16813 int val3 ;
16814 int ecode3 = 0 ;
16815 PyObject * obj0 = 0 ;
16816 PyObject * obj1 = 0 ;
16817 PyObject * obj2 = 0 ;
16818 char * kwnames[] = {
16819 (char *) "self",(char *) "x",(char *) "y", NULL
16820 };
16821
16822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16824 if (!SWIG_IsOK(res1)) {
16825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetAlpha" "', expected argument " "1"" of type '" "wxImage *""'");
16826 }
16827 arg1 = reinterpret_cast< wxImage * >(argp1);
16828 ecode2 = SWIG_AsVal_int(obj1, &val2);
16829 if (!SWIG_IsOK(ecode2)) {
16830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_GetAlpha" "', expected argument " "2"" of type '" "int""'");
16831 }
16832 arg2 = static_cast< int >(val2);
16833 ecode3 = SWIG_AsVal_int(obj2, &val3);
16834 if (!SWIG_IsOK(ecode3)) {
16835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_GetAlpha" "', expected argument " "3"" of type '" "int""'");
16836 }
16837 arg3 = static_cast< int >(val3);
16838 {
16839 PyThreadState* __tstate = wxPyBeginAllowThreads();
16840 result = (byte)(arg1)->GetAlpha(arg2,arg3);
16841 wxPyEndAllowThreads(__tstate);
16842 if (PyErr_Occurred()) SWIG_fail;
16843 }
16844 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
16845 return resultobj;
16846fail:
16847 return NULL;
d55e5bfc
RD
16848}
16849
16850
1bd55598
RD
16851SWIGINTERN PyObject *_wrap_Image_HasAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16852 PyObject *resultobj = 0;
16853 wxImage *arg1 = (wxImage *) 0 ;
16854 bool result;
16855 void *argp1 = 0 ;
16856 int res1 = 0 ;
16857 PyObject *swig_obj[1] ;
16858
16859 if (!args) SWIG_fail;
16860 swig_obj[0] = args;
16861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16862 if (!SWIG_IsOK(res1)) {
16863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HasAlpha" "', expected argument " "1"" of type '" "wxImage *""'");
16864 }
16865 arg1 = reinterpret_cast< wxImage * >(argp1);
16866 {
16867 PyThreadState* __tstate = wxPyBeginAllowThreads();
16868 result = (bool)(arg1)->HasAlpha();
16869 wxPyEndAllowThreads(__tstate);
16870 if (PyErr_Occurred()) SWIG_fail;
16871 }
16872 {
16873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16874 }
16875 return resultobj;
16876fail:
16877 return NULL;
d55e5bfc
RD
16878}
16879
16880
1bd55598
RD
16881SWIGINTERN PyObject *_wrap_Image_InitAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16882 PyObject *resultobj = 0;
16883 wxImage *arg1 = (wxImage *) 0 ;
16884 void *argp1 = 0 ;
16885 int res1 = 0 ;
16886 PyObject *swig_obj[1] ;
16887
16888 if (!args) SWIG_fail;
16889 swig_obj[0] = args;
16890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16891 if (!SWIG_IsOK(res1)) {
16892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_InitAlpha" "', expected argument " "1"" of type '" "wxImage *""'");
16893 }
16894 arg1 = reinterpret_cast< wxImage * >(argp1);
16895 {
16896 PyThreadState* __tstate = wxPyBeginAllowThreads();
16897 (arg1)->InitAlpha();
16898 wxPyEndAllowThreads(__tstate);
16899 if (PyErr_Occurred()) SWIG_fail;
16900 }
16901 resultobj = SWIG_Py_Void();
16902 return resultobj;
16903fail:
16904 return NULL;
16905}
16906
16907
16908SWIGINTERN PyObject *_wrap_Image_IsTransparent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16909 PyObject *resultobj = 0;
16910 wxImage *arg1 = (wxImage *) 0 ;
16911 int arg2 ;
16912 int arg3 ;
16913 byte arg4 = (byte) wxIMAGE_ALPHA_THRESHOLD ;
16914 bool result;
16915 void *argp1 = 0 ;
16916 int res1 = 0 ;
16917 int val2 ;
16918 int ecode2 = 0 ;
16919 int val3 ;
16920 int ecode3 = 0 ;
16921 unsigned char val4 ;
16922 int ecode4 = 0 ;
16923 PyObject * obj0 = 0 ;
16924 PyObject * obj1 = 0 ;
16925 PyObject * obj2 = 0 ;
16926 PyObject * obj3 = 0 ;
16927 char * kwnames[] = {
16928 (char *) "self",(char *) "x",(char *) "y",(char *) "threshold", NULL
16929 };
16930
16931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_IsTransparent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
16933 if (!SWIG_IsOK(res1)) {
16934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_IsTransparent" "', expected argument " "1"" of type '" "wxImage const *""'");
16935 }
16936 arg1 = reinterpret_cast< wxImage * >(argp1);
16937 ecode2 = SWIG_AsVal_int(obj1, &val2);
16938 if (!SWIG_IsOK(ecode2)) {
16939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_IsTransparent" "', expected argument " "2"" of type '" "int""'");
16940 }
16941 arg2 = static_cast< int >(val2);
16942 ecode3 = SWIG_AsVal_int(obj2, &val3);
16943 if (!SWIG_IsOK(ecode3)) {
16944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_IsTransparent" "', expected argument " "3"" of type '" "int""'");
16945 }
16946 arg3 = static_cast< int >(val3);
16947 if (obj3) {
16948 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
16949 if (!SWIG_IsOK(ecode4)) {
16950 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_IsTransparent" "', expected argument " "4"" of type '" "byte""'");
16951 }
16952 arg4 = static_cast< byte >(val4);
16953 }
16954 {
16955 PyThreadState* __tstate = wxPyBeginAllowThreads();
16956 result = (bool)((wxImage const *)arg1)->IsTransparent(arg2,arg3,arg4);
16957 wxPyEndAllowThreads(__tstate);
16958 if (PyErr_Occurred()) SWIG_fail;
16959 }
16960 {
16961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16962 }
16963 return resultobj;
16964fail:
16965 return NULL;
16966}
16967
16968
16969SWIGINTERN PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16970 PyObject *resultobj = 0;
16971 wxImage *arg1 = (wxImage *) 0 ;
16972 byte *arg2 = (byte *) 0 ;
16973 byte *arg3 = (byte *) 0 ;
16974 byte *arg4 = (byte *) 0 ;
16975 byte arg5 = (byte) 0 ;
16976 byte arg6 = (byte) 0 ;
16977 byte arg7 = (byte) 0 ;
16978 bool result;
16979 void *argp1 = 0 ;
16980 int res1 = 0 ;
16981 byte temp2 ;
16982 int res2 = SWIG_TMPOBJ ;
16983 byte temp3 ;
16984 int res3 = SWIG_TMPOBJ ;
16985 byte temp4 ;
16986 int res4 = SWIG_TMPOBJ ;
16987 unsigned char val5 ;
16988 int ecode5 = 0 ;
16989 unsigned char val6 ;
16990 int ecode6 = 0 ;
16991 unsigned char val7 ;
16992 int ecode7 = 0 ;
16993 PyObject * obj0 = 0 ;
16994 PyObject * obj1 = 0 ;
16995 PyObject * obj2 = 0 ;
16996 PyObject * obj3 = 0 ;
16997 char * kwnames[] = {
16998 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
16999 };
17000
17001 arg2 = &temp2;
17002 arg3 = &temp3;
17003 arg4 = &temp4;
17004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17006 if (!SWIG_IsOK(res1)) {
17007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_FindFirstUnusedColour" "', expected argument " "1"" of type '" "wxImage const *""'");
17008 }
17009 arg1 = reinterpret_cast< wxImage * >(argp1);
17010 if (obj1) {
17011 ecode5 = SWIG_AsVal_unsigned_SS_char(obj1, &val5);
17012 if (!SWIG_IsOK(ecode5)) {
17013 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_FindFirstUnusedColour" "', expected argument " "5"" of type '" "byte""'");
17014 }
17015 arg5 = static_cast< byte >(val5);
17016 }
17017 if (obj2) {
17018 ecode6 = SWIG_AsVal_unsigned_SS_char(obj2, &val6);
17019 if (!SWIG_IsOK(ecode6)) {
17020 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Image_FindFirstUnusedColour" "', expected argument " "6"" of type '" "byte""'");
17021 }
17022 arg6 = static_cast< byte >(val6);
17023 }
17024 if (obj3) {
17025 ecode7 = SWIG_AsVal_unsigned_SS_char(obj3, &val7);
17026 if (!SWIG_IsOK(ecode7)) {
17027 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Image_FindFirstUnusedColour" "', expected argument " "7"" of type '" "byte""'");
17028 }
17029 arg7 = static_cast< byte >(val7);
17030 }
17031 {
17032 PyThreadState* __tstate = wxPyBeginAllowThreads();
17033 result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
17034 wxPyEndAllowThreads(__tstate);
17035 if (PyErr_Occurred()) SWIG_fail;
17036 }
17037 {
17038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17039 }
17040 if (SWIG_IsTmpObj(res2)) {
17041 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg2)));
17042 } else {
17043 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17044 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags));
17045 }
17046 if (SWIG_IsTmpObj(res3)) {
17047 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
17048 } else {
17049 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17050 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
17051 }
17052 if (SWIG_IsTmpObj(res4)) {
17053 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
17054 } else {
17055 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17056 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
17057 }
17058 return resultobj;
17059fail:
17060 return NULL;
17061}
17062
17063
17064SWIGINTERN PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17065 PyObject *resultobj = 0;
17066 wxImage *arg1 = (wxImage *) 0 ;
17067 byte arg2 = (byte) wxIMAGE_ALPHA_THRESHOLD ;
17068 bool result;
17069 void *argp1 = 0 ;
17070 int res1 = 0 ;
17071 unsigned char val2 ;
17072 int ecode2 = 0 ;
17073 PyObject * obj0 = 0 ;
17074 PyObject * obj1 = 0 ;
17075 char * kwnames[] = {
17076 (char *) "self",(char *) "threshold", NULL
17077 };
17078
17079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) SWIG_fail;
17080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17081 if (!SWIG_IsOK(res1)) {
17082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertAlphaToMask" "', expected argument " "1"" of type '" "wxImage *""'");
17083 }
17084 arg1 = reinterpret_cast< wxImage * >(argp1);
17085 if (obj1) {
17086 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
17087 if (!SWIG_IsOK(ecode2)) {
17088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertAlphaToMask" "', expected argument " "2"" of type '" "byte""'");
17089 }
17090 arg2 = static_cast< byte >(val2);
17091 }
17092 {
17093 PyThreadState* __tstate = wxPyBeginAllowThreads();
17094 result = (bool)(arg1)->ConvertAlphaToMask(arg2);
17095 wxPyEndAllowThreads(__tstate);
17096 if (PyErr_Occurred()) SWIG_fail;
17097 }
17098 {
17099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17100 }
17101 return resultobj;
17102fail:
17103 return NULL;
17104}
17105
17106
17107SWIGINTERN PyObject *_wrap_Image_ConvertColourToAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17108 PyObject *resultobj = 0;
17109 wxImage *arg1 = (wxImage *) 0 ;
17110 byte arg2 ;
17111 byte arg3 ;
17112 byte arg4 ;
17113 bool result;
17114 void *argp1 = 0 ;
17115 int res1 = 0 ;
17116 unsigned char val2 ;
17117 int ecode2 = 0 ;
17118 unsigned char val3 ;
17119 int ecode3 = 0 ;
17120 unsigned char val4 ;
17121 int ecode4 = 0 ;
17122 PyObject * obj0 = 0 ;
17123 PyObject * obj1 = 0 ;
17124 PyObject * obj2 = 0 ;
17125 PyObject * obj3 = 0 ;
17126 char * kwnames[] = {
17127 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
17128 };
17129
17130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertColourToAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17132 if (!SWIG_IsOK(res1)) {
17133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertColourToAlpha" "', expected argument " "1"" of type '" "wxImage *""'");
17134 }
17135 arg1 = reinterpret_cast< wxImage * >(argp1);
17136 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
17137 if (!SWIG_IsOK(ecode2)) {
17138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertColourToAlpha" "', expected argument " "2"" of type '" "byte""'");
17139 }
17140 arg2 = static_cast< byte >(val2);
17141 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
17142 if (!SWIG_IsOK(ecode3)) {
17143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ConvertColourToAlpha" "', expected argument " "3"" of type '" "byte""'");
17144 }
17145 arg3 = static_cast< byte >(val3);
17146 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
17147 if (!SWIG_IsOK(ecode4)) {
17148 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_ConvertColourToAlpha" "', expected argument " "4"" of type '" "byte""'");
17149 }
17150 arg4 = static_cast< byte >(val4);
17151 {
17152 PyThreadState* __tstate = wxPyBeginAllowThreads();
17153 result = (bool)(arg1)->ConvertColourToAlpha(arg2,arg3,arg4);
17154 wxPyEndAllowThreads(__tstate);
17155 if (PyErr_Occurred()) SWIG_fail;
17156 }
17157 {
17158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17159 }
17160 return resultobj;
17161fail:
17162 return NULL;
17163}
17164
17165
17166SWIGINTERN PyObject *_wrap_Image_SetMaskFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17167 PyObject *resultobj = 0;
17168 wxImage *arg1 = (wxImage *) 0 ;
17169 wxImage *arg2 = 0 ;
17170 byte arg3 ;
17171 byte arg4 ;
17172 byte arg5 ;
17173 bool result;
17174 void *argp1 = 0 ;
17175 int res1 = 0 ;
17176 void *argp2 = 0 ;
17177 int res2 = 0 ;
17178 unsigned char val3 ;
17179 int ecode3 = 0 ;
17180 unsigned char val4 ;
17181 int ecode4 = 0 ;
17182 unsigned char val5 ;
17183 int ecode5 = 0 ;
17184 PyObject * obj0 = 0 ;
17185 PyObject * obj1 = 0 ;
17186 PyObject * obj2 = 0 ;
17187 PyObject * obj3 = 0 ;
17188 PyObject * obj4 = 0 ;
17189 char * kwnames[] = {
17190 (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL
17191 };
17192
17193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17195 if (!SWIG_IsOK(res1)) {
17196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetMaskFromImage" "', expected argument " "1"" of type '" "wxImage *""'");
17197 }
17198 arg1 = reinterpret_cast< wxImage * >(argp1);
17199 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0);
17200 if (!SWIG_IsOK(res2)) {
17201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Image_SetMaskFromImage" "', expected argument " "2"" of type '" "wxImage const &""'");
17202 }
17203 if (!argp2) {
17204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Image_SetMaskFromImage" "', expected argument " "2"" of type '" "wxImage const &""'");
17205 }
17206 arg2 = reinterpret_cast< wxImage * >(argp2);
17207 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
17208 if (!SWIG_IsOK(ecode3)) {
17209 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetMaskFromImage" "', expected argument " "3"" of type '" "byte""'");
17210 }
17211 arg3 = static_cast< byte >(val3);
17212 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
17213 if (!SWIG_IsOK(ecode4)) {
17214 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_SetMaskFromImage" "', expected argument " "4"" of type '" "byte""'");
17215 }
17216 arg4 = static_cast< byte >(val4);
17217 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
17218 if (!SWIG_IsOK(ecode5)) {
17219 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_SetMaskFromImage" "', expected argument " "5"" of type '" "byte""'");
17220 }
17221 arg5 = static_cast< byte >(val5);
17222 {
17223 PyThreadState* __tstate = wxPyBeginAllowThreads();
17224 result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5);
17225 wxPyEndAllowThreads(__tstate);
17226 if (PyErr_Occurred()) SWIG_fail;
17227 }
17228 {
17229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17230 }
17231 return resultobj;
17232fail:
17233 return NULL;
d55e5bfc
RD
17234}
17235
17236
1bd55598
RD
17237SWIGINTERN PyObject *_wrap_Image_CanRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17238 PyObject *resultobj = 0;
17239 wxString *arg1 = 0 ;
17240 bool result;
17241 bool temp1 = false ;
17242 PyObject * obj0 = 0 ;
17243 char * kwnames[] = {
17244 (char *) "filename", NULL
17245 };
17246
17247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) SWIG_fail;
17248 {
17249 arg1 = wxString_in_helper(obj0);
17250 if (arg1 == NULL) SWIG_fail;
17251 temp1 = true;
17252 }
17253 {
17254 PyThreadState* __tstate = wxPyBeginAllowThreads();
17255 result = (bool)wxImage::CanRead((wxString const &)*arg1);
17256 wxPyEndAllowThreads(__tstate);
17257 if (PyErr_Occurred()) SWIG_fail;
17258 }
17259 {
17260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17261 }
17262 {
17263 if (temp1)
17264 delete arg1;
17265 }
17266 return resultobj;
17267fail:
17268 {
17269 if (temp1)
17270 delete arg1;
17271 }
17272 return NULL;
17273}
17274
17275
17276SWIGINTERN PyObject *_wrap_Image_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17277 PyObject *resultobj = 0;
17278 wxString *arg1 = 0 ;
17279 long arg2 = (long) wxBITMAP_TYPE_ANY ;
17280 int result;
17281 bool temp1 = false ;
17282 long val2 ;
17283 int ecode2 = 0 ;
17284 PyObject * obj0 = 0 ;
17285 PyObject * obj1 = 0 ;
17286 char * kwnames[] = {
17287 (char *) "filename",(char *) "type", NULL
17288 };
17289
17290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) SWIG_fail;
17291 {
17292 arg1 = wxString_in_helper(obj0);
17293 if (arg1 == NULL) SWIG_fail;
17294 temp1 = true;
17295 }
17296 if (obj1) {
17297 ecode2 = SWIG_AsVal_long(obj1, &val2);
17298 if (!SWIG_IsOK(ecode2)) {
17299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_GetImageCount" "', expected argument " "2"" of type '" "long""'");
17300 }
17301 arg2 = static_cast< long >(val2);
17302 }
17303 {
17304 PyThreadState* __tstate = wxPyBeginAllowThreads();
17305 result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2);
17306 wxPyEndAllowThreads(__tstate);
17307 if (PyErr_Occurred()) SWIG_fail;
17308 }
17309 resultobj = SWIG_From_int(static_cast< int >(result));
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_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17325 PyObject *resultobj = 0;
17326 wxImage *arg1 = (wxImage *) 0 ;
17327 wxString *arg2 = 0 ;
17328 long arg3 = (long) wxBITMAP_TYPE_ANY ;
17329 int arg4 = (int) -1 ;
17330 bool result;
17331 void *argp1 = 0 ;
17332 int res1 = 0 ;
17333 bool temp2 = false ;
17334 long val3 ;
17335 int ecode3 = 0 ;
17336 int val4 ;
17337 int ecode4 = 0 ;
17338 PyObject * obj0 = 0 ;
17339 PyObject * obj1 = 0 ;
17340 PyObject * obj2 = 0 ;
17341 PyObject * obj3 = 0 ;
17342 char * kwnames[] = {
17343 (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL
17344 };
17345
17346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17348 if (!SWIG_IsOK(res1)) {
17349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_LoadFile" "', expected argument " "1"" of type '" "wxImage *""'");
17350 }
17351 arg1 = reinterpret_cast< wxImage * >(argp1);
17352 {
17353 arg2 = wxString_in_helper(obj1);
17354 if (arg2 == NULL) SWIG_fail;
17355 temp2 = true;
17356 }
17357 if (obj2) {
17358 ecode3 = SWIG_AsVal_long(obj2, &val3);
17359 if (!SWIG_IsOK(ecode3)) {
17360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_LoadFile" "', expected argument " "3"" of type '" "long""'");
17361 }
17362 arg3 = static_cast< long >(val3);
17363 }
17364 if (obj3) {
17365 ecode4 = SWIG_AsVal_int(obj3, &val4);
17366 if (!SWIG_IsOK(ecode4)) {
17367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_LoadFile" "', expected argument " "4"" of type '" "int""'");
17368 }
17369 arg4 = static_cast< int >(val4);
17370 }
17371 {
17372 PyThreadState* __tstate = wxPyBeginAllowThreads();
17373 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4);
17374 wxPyEndAllowThreads(__tstate);
17375 if (PyErr_Occurred()) SWIG_fail;
17376 }
17377 {
17378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17379 }
17380 {
17381 if (temp2)
17382 delete arg2;
17383 }
17384 return resultobj;
17385fail:
17386 {
17387 if (temp2)
17388 delete arg2;
17389 }
17390 return NULL;
17391}
17392
17393
17394SWIGINTERN PyObject *_wrap_Image_LoadMimeFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17395 PyObject *resultobj = 0;
17396 wxImage *arg1 = (wxImage *) 0 ;
17397 wxString *arg2 = 0 ;
17398 wxString *arg3 = 0 ;
17399 int arg4 = (int) -1 ;
17400 bool result;
17401 void *argp1 = 0 ;
17402 int res1 = 0 ;
17403 bool temp2 = false ;
17404 bool temp3 = false ;
17405 int val4 ;
17406 int ecode4 = 0 ;
17407 PyObject * obj0 = 0 ;
17408 PyObject * obj1 = 0 ;
17409 PyObject * obj2 = 0 ;
17410 PyObject * obj3 = 0 ;
17411 char * kwnames[] = {
17412 (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL
17413 };
17414
17415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17417 if (!SWIG_IsOK(res1)) {
17418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_LoadMimeFile" "', expected argument " "1"" of type '" "wxImage *""'");
17419 }
17420 arg1 = reinterpret_cast< wxImage * >(argp1);
17421 {
17422 arg2 = wxString_in_helper(obj1);
17423 if (arg2 == NULL) SWIG_fail;
17424 temp2 = true;
17425 }
17426 {
17427 arg3 = wxString_in_helper(obj2);
17428 if (arg3 == NULL) SWIG_fail;
17429 temp3 = true;
17430 }
17431 if (obj3) {
17432 ecode4 = SWIG_AsVal_int(obj3, &val4);
17433 if (!SWIG_IsOK(ecode4)) {
17434 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_LoadMimeFile" "', expected argument " "4"" of type '" "int""'");
17435 }
17436 arg4 = static_cast< int >(val4);
17437 }
17438 {
17439 PyThreadState* __tstate = wxPyBeginAllowThreads();
17440 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4);
17441 wxPyEndAllowThreads(__tstate);
17442 if (PyErr_Occurred()) SWIG_fail;
17443 }
17444 {
17445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17446 }
17447 {
17448 if (temp2)
17449 delete arg2;
17450 }
17451 {
17452 if (temp3)
17453 delete arg3;
17454 }
17455 return resultobj;
17456fail:
17457 {
17458 if (temp2)
17459 delete arg2;
17460 }
17461 {
17462 if (temp3)
17463 delete arg3;
17464 }
17465 return NULL;
17466}
17467
17468
17469SWIGINTERN PyObject *_wrap_Image_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17470 PyObject *resultobj = 0;
17471 wxImage *arg1 = (wxImage *) 0 ;
17472 wxString *arg2 = 0 ;
17473 int arg3 ;
17474 bool result;
17475 void *argp1 = 0 ;
17476 int res1 = 0 ;
17477 bool temp2 = false ;
17478 int val3 ;
17479 int ecode3 = 0 ;
17480 PyObject * obj0 = 0 ;
17481 PyObject * obj1 = 0 ;
17482 PyObject * obj2 = 0 ;
17483 char * kwnames[] = {
17484 (char *) "self",(char *) "name",(char *) "type", NULL
17485 };
17486
17487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17489 if (!SWIG_IsOK(res1)) {
17490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SaveFile" "', expected argument " "1"" of type '" "wxImage *""'");
17491 }
17492 arg1 = reinterpret_cast< wxImage * >(argp1);
17493 {
17494 arg2 = wxString_in_helper(obj1);
17495 if (arg2 == NULL) SWIG_fail;
17496 temp2 = true;
17497 }
17498 ecode3 = SWIG_AsVal_int(obj2, &val3);
17499 if (!SWIG_IsOK(ecode3)) {
17500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SaveFile" "', expected argument " "3"" of type '" "int""'");
17501 }
17502 arg3 = static_cast< int >(val3);
17503 {
17504 PyThreadState* __tstate = wxPyBeginAllowThreads();
17505 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
17506 wxPyEndAllowThreads(__tstate);
17507 if (PyErr_Occurred()) SWIG_fail;
17508 }
17509 {
17510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17511 }
17512 {
17513 if (temp2)
17514 delete arg2;
17515 }
17516 return resultobj;
17517fail:
17518 {
17519 if (temp2)
17520 delete arg2;
17521 }
17522 return NULL;
17523}
17524
17525
17526SWIGINTERN PyObject *_wrap_Image_SaveMimeFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17527 PyObject *resultobj = 0;
17528 wxImage *arg1 = (wxImage *) 0 ;
17529 wxString *arg2 = 0 ;
17530 wxString *arg3 = 0 ;
17531 bool result;
17532 void *argp1 = 0 ;
17533 int res1 = 0 ;
17534 bool temp2 = false ;
17535 bool temp3 = false ;
17536 PyObject * obj0 = 0 ;
17537 PyObject * obj1 = 0 ;
17538 PyObject * obj2 = 0 ;
17539 char * kwnames[] = {
17540 (char *) "self",(char *) "name",(char *) "mimetype", NULL
17541 };
17542
17543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17545 if (!SWIG_IsOK(res1)) {
17546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SaveMimeFile" "', expected argument " "1"" of type '" "wxImage *""'");
17547 }
17548 arg1 = reinterpret_cast< wxImage * >(argp1);
17549 {
17550 arg2 = wxString_in_helper(obj1);
17551 if (arg2 == NULL) SWIG_fail;
17552 temp2 = true;
17553 }
17554 {
17555 arg3 = wxString_in_helper(obj2);
17556 if (arg3 == NULL) SWIG_fail;
17557 temp3 = true;
17558 }
17559 {
17560 PyThreadState* __tstate = wxPyBeginAllowThreads();
17561 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3);
17562 wxPyEndAllowThreads(__tstate);
17563 if (PyErr_Occurred()) SWIG_fail;
17564 }
17565 {
17566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17567 }
17568 {
17569 if (temp2)
17570 delete arg2;
17571 }
17572 {
17573 if (temp3)
17574 delete arg3;
17575 }
17576 return resultobj;
17577fail:
17578 {
17579 if (temp2)
17580 delete arg2;
17581 }
17582 {
17583 if (temp3)
17584 delete arg3;
17585 }
17586 return NULL;
d55e5bfc
RD
17587}
17588
17589
1bd55598
RD
17590SWIGINTERN PyObject *_wrap_Image_CanReadStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17591 PyObject *resultobj = 0;
17592 wxInputStream *arg1 = 0 ;
17593 bool result;
17594 wxPyInputStream *temp1 ;
17595 bool created1 ;
17596 PyObject * obj0 = 0 ;
17597 char * kwnames[] = {
17598 (char *) "stream", NULL
17599 };
17600
17601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) SWIG_fail;
17602 {
17603 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
17604 arg1 = temp1->m_wxis;
17605 created1 = false;
17606 } else {
17607 PyErr_Clear(); // clear the failure of the wxPyConvert above
17608 arg1 = wxPyCBInputStream_create(obj0, false);
17609 if (arg1 == NULL) {
17610 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
17611 SWIG_fail;
17612 }
17613 created1 = true;
d55e5bfc 17614 }
1bd55598
RD
17615 }
17616 {
17617 PyThreadState* __tstate = wxPyBeginAllowThreads();
17618 result = (bool)wxImage::CanRead(*arg1);
17619 wxPyEndAllowThreads(__tstate);
17620 if (PyErr_Occurred()) SWIG_fail;
17621 }
17622 {
17623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17624 }
17625 {
17626 if (created1) delete arg1;
17627 }
17628 return resultobj;
17629fail:
17630 {
17631 if (created1) delete arg1;
17632 }
17633 return NULL;
17634}
17635
17636
17637SWIGINTERN PyObject *_wrap_Image_LoadStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17638 PyObject *resultobj = 0;
17639 wxImage *arg1 = (wxImage *) 0 ;
17640 wxInputStream *arg2 = 0 ;
17641 long arg3 = (long) wxBITMAP_TYPE_ANY ;
17642 int arg4 = (int) -1 ;
17643 bool result;
17644 void *argp1 = 0 ;
17645 int res1 = 0 ;
17646 wxPyInputStream *temp2 ;
17647 bool created2 ;
17648 long val3 ;
17649 int ecode3 = 0 ;
17650 int val4 ;
17651 int ecode4 = 0 ;
17652 PyObject * obj0 = 0 ;
17653 PyObject * obj1 = 0 ;
17654 PyObject * obj2 = 0 ;
17655 PyObject * obj3 = 0 ;
17656 char * kwnames[] = {
17657 (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL
17658 };
17659
17660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17662 if (!SWIG_IsOK(res1)) {
17663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_LoadStream" "', expected argument " "1"" of type '" "wxImage *""'");
17664 }
17665 arg1 = reinterpret_cast< wxImage * >(argp1);
17666 {
17667 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
17668 arg2 = temp2->m_wxis;
17669 created2 = false;
17670 } else {
17671 PyErr_Clear(); // clear the failure of the wxPyConvert above
17672 arg2 = wxPyCBInputStream_create(obj1, false);
17673 if (arg2 == NULL) {
17674 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
17675 SWIG_fail;
17676 }
17677 created2 = true;
d55e5bfc 17678 }
1bd55598
RD
17679 }
17680 if (obj2) {
17681 ecode3 = SWIG_AsVal_long(obj2, &val3);
17682 if (!SWIG_IsOK(ecode3)) {
17683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_LoadStream" "', expected argument " "3"" of type '" "long""'");
17684 }
17685 arg3 = static_cast< long >(val3);
17686 }
17687 if (obj3) {
17688 ecode4 = SWIG_AsVal_int(obj3, &val4);
17689 if (!SWIG_IsOK(ecode4)) {
17690 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_LoadStream" "', expected argument " "4"" of type '" "int""'");
17691 }
17692 arg4 = static_cast< int >(val4);
17693 }
17694 {
17695 PyThreadState* __tstate = wxPyBeginAllowThreads();
17696 result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4);
17697 wxPyEndAllowThreads(__tstate);
17698 if (PyErr_Occurred()) SWIG_fail;
17699 }
17700 {
17701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17702 }
17703 {
17704 if (created2) delete arg2;
17705 }
17706 return resultobj;
17707fail:
17708 {
17709 if (created2) delete arg2;
17710 }
17711 return NULL;
17712}
17713
17714
17715SWIGINTERN PyObject *_wrap_Image_LoadMimeStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17716 PyObject *resultobj = 0;
17717 wxImage *arg1 = (wxImage *) 0 ;
17718 wxInputStream *arg2 = 0 ;
17719 wxString *arg3 = 0 ;
17720 int arg4 = (int) -1 ;
17721 bool result;
17722 void *argp1 = 0 ;
17723 int res1 = 0 ;
17724 wxPyInputStream *temp2 ;
17725 bool created2 ;
17726 bool temp3 = false ;
17727 int val4 ;
17728 int ecode4 = 0 ;
17729 PyObject * obj0 = 0 ;
17730 PyObject * obj1 = 0 ;
17731 PyObject * obj2 = 0 ;
17732 PyObject * obj3 = 0 ;
17733 char * kwnames[] = {
17734 (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL
17735 };
17736
17737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17739 if (!SWIG_IsOK(res1)) {
17740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_LoadMimeStream" "', expected argument " "1"" of type '" "wxImage *""'");
17741 }
17742 arg1 = reinterpret_cast< wxImage * >(argp1);
17743 {
17744 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
17745 arg2 = temp2->m_wxis;
17746 created2 = false;
17747 } else {
17748 PyErr_Clear(); // clear the failure of the wxPyConvert above
17749 arg2 = wxPyCBInputStream_create(obj1, false);
17750 if (arg2 == NULL) {
17751 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
17752 SWIG_fail;
17753 }
17754 created2 = true;
17755 }
17756 }
17757 {
17758 arg3 = wxString_in_helper(obj2);
17759 if (arg3 == NULL) SWIG_fail;
17760 temp3 = true;
17761 }
17762 if (obj3) {
17763 ecode4 = SWIG_AsVal_int(obj3, &val4);
17764 if (!SWIG_IsOK(ecode4)) {
17765 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_LoadMimeStream" "', expected argument " "4"" of type '" "int""'");
17766 }
17767 arg4 = static_cast< int >(val4);
17768 }
17769 {
17770 PyThreadState* __tstate = wxPyBeginAllowThreads();
17771 result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4);
17772 wxPyEndAllowThreads(__tstate);
17773 if (PyErr_Occurred()) SWIG_fail;
17774 }
17775 {
17776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17777 }
17778 {
17779 if (created2) delete arg2;
17780 }
17781 {
17782 if (temp3)
17783 delete arg3;
17784 }
17785 return resultobj;
17786fail:
17787 {
17788 if (created2) delete arg2;
17789 }
17790 {
17791 if (temp3)
17792 delete arg3;
17793 }
17794 return NULL;
d55e5bfc
RD
17795}
17796
17797
b39fe951 17798SWIGINTERN PyObject *_wrap_Image_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
17799 PyObject *resultobj = 0;
17800 wxImage *arg1 = (wxImage *) 0 ;
17801 bool result;
17802 void *argp1 = 0 ;
17803 int res1 = 0 ;
17804 PyObject *swig_obj[1] ;
17805
17806 if (!args) SWIG_fail;
17807 swig_obj[0] = args;
17808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17809 if (!SWIG_IsOK(res1)) {
b39fe951 17810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_IsOk" "', expected argument " "1"" of type '" "wxImage *""'");
1bd55598
RD
17811 }
17812 arg1 = reinterpret_cast< wxImage * >(argp1);
17813 {
17814 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 17815 result = (bool)(arg1)->IsOk();
1bd55598
RD
17816 wxPyEndAllowThreads(__tstate);
17817 if (PyErr_Occurred()) SWIG_fail;
17818 }
17819 {
17820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17821 }
17822 return resultobj;
17823fail:
17824 return NULL;
d55e5bfc
RD
17825}
17826
17827
1bd55598
RD
17828SWIGINTERN PyObject *_wrap_Image_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17829 PyObject *resultobj = 0;
17830 wxImage *arg1 = (wxImage *) 0 ;
17831 int result;
17832 void *argp1 = 0 ;
17833 int res1 = 0 ;
17834 PyObject *swig_obj[1] ;
17835
17836 if (!args) SWIG_fail;
17837 swig_obj[0] = args;
17838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17839 if (!SWIG_IsOK(res1)) {
17840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetWidth" "', expected argument " "1"" of type '" "wxImage *""'");
17841 }
17842 arg1 = reinterpret_cast< wxImage * >(argp1);
17843 {
17844 PyThreadState* __tstate = wxPyBeginAllowThreads();
17845 result = (int)(arg1)->GetWidth();
17846 wxPyEndAllowThreads(__tstate);
17847 if (PyErr_Occurred()) SWIG_fail;
17848 }
17849 resultobj = SWIG_From_int(static_cast< int >(result));
17850 return resultobj;
17851fail:
17852 return NULL;
d55e5bfc
RD
17853}
17854
17855
1bd55598
RD
17856SWIGINTERN PyObject *_wrap_Image_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17857 PyObject *resultobj = 0;
17858 wxImage *arg1 = (wxImage *) 0 ;
17859 int result;
17860 void *argp1 = 0 ;
17861 int res1 = 0 ;
17862 PyObject *swig_obj[1] ;
17863
17864 if (!args) SWIG_fail;
17865 swig_obj[0] = args;
17866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17867 if (!SWIG_IsOK(res1)) {
17868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetHeight" "', expected argument " "1"" of type '" "wxImage *""'");
17869 }
17870 arg1 = reinterpret_cast< wxImage * >(argp1);
17871 {
17872 PyThreadState* __tstate = wxPyBeginAllowThreads();
17873 result = (int)(arg1)->GetHeight();
17874 wxPyEndAllowThreads(__tstate);
17875 if (PyErr_Occurred()) SWIG_fail;
17876 }
17877 resultobj = SWIG_From_int(static_cast< int >(result));
17878 return resultobj;
17879fail:
17880 return NULL;
d55e5bfc
RD
17881}
17882
17883
1bd55598
RD
17884SWIGINTERN PyObject *_wrap_Image_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17885 PyObject *resultobj = 0;
17886 wxImage *arg1 = (wxImage *) 0 ;
17887 wxSize result;
17888 void *argp1 = 0 ;
17889 int res1 = 0 ;
17890 PyObject *swig_obj[1] ;
17891
17892 if (!args) SWIG_fail;
17893 swig_obj[0] = args;
17894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17895 if (!SWIG_IsOK(res1)) {
17896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetSize" "', expected argument " "1"" of type '" "wxImage *""'");
17897 }
17898 arg1 = reinterpret_cast< wxImage * >(argp1);
17899 {
17900 PyThreadState* __tstate = wxPyBeginAllowThreads();
17901 result = wxImage_GetSize(arg1);
17902 wxPyEndAllowThreads(__tstate);
17903 if (PyErr_Occurred()) SWIG_fail;
17904 }
17905 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
17906 return resultobj;
17907fail:
17908 return NULL;
17909}
17910
17911
17912SWIGINTERN PyObject *_wrap_Image_GetSubImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17913 PyObject *resultobj = 0;
17914 wxImage *arg1 = (wxImage *) 0 ;
17915 wxRect *arg2 = 0 ;
17916 SwigValueWrapper<wxImage > result;
17917 void *argp1 = 0 ;
17918 int res1 = 0 ;
17919 wxRect temp2 ;
17920 PyObject * obj0 = 0 ;
17921 PyObject * obj1 = 0 ;
17922 char * kwnames[] = {
17923 (char *) "self",(char *) "rect", NULL
17924 };
17925
17926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) SWIG_fail;
17927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17928 if (!SWIG_IsOK(res1)) {
17929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetSubImage" "', expected argument " "1"" of type '" "wxImage *""'");
17930 }
17931 arg1 = reinterpret_cast< wxImage * >(argp1);
17932 {
17933 arg2 = &temp2;
17934 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17935 }
17936 {
17937 PyThreadState* __tstate = wxPyBeginAllowThreads();
17938 result = (arg1)->GetSubImage((wxRect const &)*arg2);
17939 wxPyEndAllowThreads(__tstate);
17940 if (PyErr_Occurred()) SWIG_fail;
17941 }
17942 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
17943 return resultobj;
17944fail:
17945 return NULL;
17946}
17947
17948
17949SWIGINTERN PyObject *_wrap_Image_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17950 PyObject *resultobj = 0;
17951 wxImage *arg1 = (wxImage *) 0 ;
17952 wxSize *arg2 = 0 ;
17953 wxPoint *arg3 = 0 ;
17954 int arg4 = (int) -1 ;
17955 int arg5 = (int) -1 ;
17956 int arg6 = (int) -1 ;
17957 SwigValueWrapper<wxImage > result;
17958 void *argp1 = 0 ;
17959 int res1 = 0 ;
17960 wxSize temp2 ;
17961 wxPoint temp3 ;
17962 int val4 ;
17963 int ecode4 = 0 ;
17964 int val5 ;
17965 int ecode5 = 0 ;
17966 int val6 ;
17967 int ecode6 = 0 ;
17968 PyObject * obj0 = 0 ;
17969 PyObject * obj1 = 0 ;
17970 PyObject * obj2 = 0 ;
17971 PyObject * obj3 = 0 ;
17972 PyObject * obj4 = 0 ;
17973 PyObject * obj5 = 0 ;
17974 char * kwnames[] = {
17975 (char *) "self",(char *) "size",(char *) "pos",(char *) "r",(char *) "g",(char *) "b", NULL
17976 };
17977
17978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:Image_Size",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
17980 if (!SWIG_IsOK(res1)) {
17981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Size" "', expected argument " "1"" of type '" "wxImage const *""'");
17982 }
17983 arg1 = reinterpret_cast< wxImage * >(argp1);
17984 {
17985 arg2 = &temp2;
17986 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
17987 }
17988 {
17989 arg3 = &temp3;
17990 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17991 }
17992 if (obj3) {
17993 ecode4 = SWIG_AsVal_int(obj3, &val4);
17994 if (!SWIG_IsOK(ecode4)) {
17995 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Size" "', expected argument " "4"" of type '" "int""'");
17996 }
17997 arg4 = static_cast< int >(val4);
17998 }
17999 if (obj4) {
18000 ecode5 = SWIG_AsVal_int(obj4, &val5);
18001 if (!SWIG_IsOK(ecode5)) {
18002 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_Size" "', expected argument " "5"" of type '" "int""'");
18003 }
18004 arg5 = static_cast< int >(val5);
18005 }
18006 if (obj5) {
18007 ecode6 = SWIG_AsVal_int(obj5, &val6);
18008 if (!SWIG_IsOK(ecode6)) {
18009 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Image_Size" "', expected argument " "6"" of type '" "int""'");
18010 }
18011 arg6 = static_cast< int >(val6);
18012 }
18013 {
18014 PyThreadState* __tstate = wxPyBeginAllowThreads();
18015 result = ((wxImage const *)arg1)->Size((wxSize const &)*arg2,(wxPoint const &)*arg3,arg4,arg5,arg6);
18016 wxPyEndAllowThreads(__tstate);
18017 if (PyErr_Occurred()) SWIG_fail;
18018 }
18019 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
18020 return resultobj;
18021fail:
18022 return NULL;
d55e5bfc 18023}
1bd55598
RD
18024
18025
18026SWIGINTERN PyObject *_wrap_Image_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18027 PyObject *resultobj = 0;
18028 wxImage *arg1 = (wxImage *) 0 ;
18029 SwigValueWrapper<wxImage > result;
18030 void *argp1 = 0 ;
18031 int res1 = 0 ;
18032 PyObject *swig_obj[1] ;
18033
18034 if (!args) SWIG_fail;
18035 swig_obj[0] = args;
18036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18037 if (!SWIG_IsOK(res1)) {
18038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Copy" "', expected argument " "1"" of type '" "wxImage *""'");
18039 }
18040 arg1 = reinterpret_cast< wxImage * >(argp1);
18041 {
18042 PyThreadState* __tstate = wxPyBeginAllowThreads();
18043 result = (arg1)->Copy();
18044 wxPyEndAllowThreads(__tstate);
18045 if (PyErr_Occurred()) SWIG_fail;
18046 }
18047 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
18048 return resultobj;
18049fail:
18050 return NULL;
18051}
18052
18053
18054SWIGINTERN PyObject *_wrap_Image_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18055 PyObject *resultobj = 0;
18056 wxImage *arg1 = (wxImage *) 0 ;
18057 wxImage *arg2 = 0 ;
18058 int arg3 ;
18059 int arg4 ;
18060 void *argp1 = 0 ;
18061 int res1 = 0 ;
18062 void *argp2 = 0 ;
18063 int res2 = 0 ;
18064 int val3 ;
18065 int ecode3 = 0 ;
18066 int val4 ;
18067 int ecode4 = 0 ;
18068 PyObject * obj0 = 0 ;
18069 PyObject * obj1 = 0 ;
18070 PyObject * obj2 = 0 ;
18071 PyObject * obj3 = 0 ;
18072 char * kwnames[] = {
18073 (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL
18074 };
18075
18076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18078 if (!SWIG_IsOK(res1)) {
18079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Paste" "', expected argument " "1"" of type '" "wxImage *""'");
18080 }
18081 arg1 = reinterpret_cast< wxImage * >(argp1);
18082 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0);
18083 if (!SWIG_IsOK(res2)) {
18084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Image_Paste" "', expected argument " "2"" of type '" "wxImage const &""'");
18085 }
18086 if (!argp2) {
18087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Image_Paste" "', expected argument " "2"" of type '" "wxImage const &""'");
18088 }
18089 arg2 = reinterpret_cast< wxImage * >(argp2);
18090 ecode3 = SWIG_AsVal_int(obj2, &val3);
18091 if (!SWIG_IsOK(ecode3)) {
18092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_Paste" "', expected argument " "3"" of type '" "int""'");
18093 }
18094 arg3 = static_cast< int >(val3);
18095 ecode4 = SWIG_AsVal_int(obj3, &val4);
18096 if (!SWIG_IsOK(ecode4)) {
18097 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Paste" "', expected argument " "4"" of type '" "int""'");
18098 }
18099 arg4 = static_cast< int >(val4);
18100 {
18101 PyThreadState* __tstate = wxPyBeginAllowThreads();
18102 (arg1)->Paste((wxImage const &)*arg2,arg3,arg4);
18103 wxPyEndAllowThreads(__tstate);
18104 if (PyErr_Occurred()) SWIG_fail;
18105 }
18106 resultobj = SWIG_Py_Void();
18107 return resultobj;
18108fail:
18109 return NULL;
d55e5bfc
RD
18110}
18111
18112
1bd55598
RD
18113SWIGINTERN PyObject *_wrap_Image_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18114 PyObject *resultobj = 0;
18115 wxImage *arg1 = (wxImage *) 0 ;
18116 PyObject *result = 0 ;
18117 void *argp1 = 0 ;
18118 int res1 = 0 ;
18119 PyObject *swig_obj[1] ;
18120
18121 if (!args) SWIG_fail;
18122 swig_obj[0] = args;
18123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18124 if (!SWIG_IsOK(res1)) {
18125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetData" "', expected argument " "1"" of type '" "wxImage *""'");
18126 }
18127 arg1 = reinterpret_cast< wxImage * >(argp1);
18128 {
18129 PyThreadState* __tstate = wxPyBeginAllowThreads();
18130 result = (PyObject *)wxImage_GetData(arg1);
18131 wxPyEndAllowThreads(__tstate);
18132 if (PyErr_Occurred()) SWIG_fail;
18133 }
18134 resultobj = result;
18135 return resultobj;
18136fail:
18137 return NULL;
18138}
18139
18140
18141SWIGINTERN PyObject *_wrap_Image_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18142 PyObject *resultobj = 0;
18143 wxImage *arg1 = (wxImage *) 0 ;
18144 buffer arg2 ;
18145 int arg3 ;
18146 void *argp1 = 0 ;
18147 int res1 = 0 ;
8c9c423b 18148 Py_ssize_t temp2 ;
1bd55598
RD
18149 PyObject * obj0 = 0 ;
18150 PyObject * obj1 = 0 ;
18151 char * kwnames[] = {
18152 (char *) "self",(char *) "data", NULL
18153 };
18154
18155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
18156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18157 if (!SWIG_IsOK(res1)) {
18158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetData" "', expected argument " "1"" of type '" "wxImage *""'");
18159 }
18160 arg1 = reinterpret_cast< wxImage * >(argp1);
18161 {
8c9c423b
RD
18162 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
18163 arg3 = (int)temp2;
1bd55598
RD
18164 }
18165 {
18166 PyThreadState* __tstate = wxPyBeginAllowThreads();
18167 wxImage_SetData(arg1,arg2,arg3);
18168 wxPyEndAllowThreads(__tstate);
18169 if (PyErr_Occurred()) SWIG_fail;
18170 }
18171 resultobj = SWIG_Py_Void();
18172 return resultobj;
18173fail:
18174 return NULL;
d55e5bfc
RD
18175}
18176
18177
1bd55598
RD
18178SWIGINTERN PyObject *_wrap_Image_GetDataBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18179 PyObject *resultobj = 0;
18180 wxImage *arg1 = (wxImage *) 0 ;
18181 PyObject *result = 0 ;
18182 void *argp1 = 0 ;
18183 int res1 = 0 ;
18184 PyObject *swig_obj[1] ;
18185
18186 if (!args) SWIG_fail;
18187 swig_obj[0] = args;
18188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18189 if (!SWIG_IsOK(res1)) {
18190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetDataBuffer" "', expected argument " "1"" of type '" "wxImage *""'");
18191 }
18192 arg1 = reinterpret_cast< wxImage * >(argp1);
18193 {
18194 PyThreadState* __tstate = wxPyBeginAllowThreads();
18195 result = (PyObject *)wxImage_GetDataBuffer(arg1);
18196 wxPyEndAllowThreads(__tstate);
18197 if (PyErr_Occurred()) SWIG_fail;
18198 }
18199 resultobj = result;
18200 return resultobj;
18201fail:
18202 return NULL;
18203}
18204
18205
18206SWIGINTERN PyObject *_wrap_Image_SetDataBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18207 PyObject *resultobj = 0;
18208 wxImage *arg1 = (wxImage *) 0 ;
18209 buffer arg2 ;
18210 int arg3 ;
18211 void *argp1 = 0 ;
18212 int res1 = 0 ;
8c9c423b 18213 Py_ssize_t temp2 ;
1bd55598
RD
18214 PyObject * obj0 = 0 ;
18215 PyObject * obj1 = 0 ;
18216 char * kwnames[] = {
18217 (char *) "self",(char *) "data", NULL
18218 };
18219
18220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
18221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18222 if (!SWIG_IsOK(res1)) {
18223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetDataBuffer" "', expected argument " "1"" of type '" "wxImage *""'");
18224 }
18225 arg1 = reinterpret_cast< wxImage * >(argp1);
18226 {
8c9c423b
RD
18227 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
18228 arg3 = (int)temp2;
1bd55598
RD
18229 }
18230 {
18231 PyThreadState* __tstate = wxPyBeginAllowThreads();
18232 wxImage_SetDataBuffer(arg1,arg2,arg3);
18233 wxPyEndAllowThreads(__tstate);
18234 if (PyErr_Occurred()) SWIG_fail;
18235 }
18236 resultobj = SWIG_Py_Void();
18237 return resultobj;
18238fail:
18239 return NULL;
d55e5bfc
RD
18240}
18241
18242
1bd55598
RD
18243SWIGINTERN PyObject *_wrap_Image_GetAlphaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18244 PyObject *resultobj = 0;
18245 wxImage *arg1 = (wxImage *) 0 ;
18246 PyObject *result = 0 ;
18247 void *argp1 = 0 ;
18248 int res1 = 0 ;
18249 PyObject *swig_obj[1] ;
18250
18251 if (!args) SWIG_fail;
18252 swig_obj[0] = args;
18253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18254 if (!SWIG_IsOK(res1)) {
18255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetAlphaData" "', expected argument " "1"" of type '" "wxImage *""'");
18256 }
18257 arg1 = reinterpret_cast< wxImage * >(argp1);
18258 {
18259 PyThreadState* __tstate = wxPyBeginAllowThreads();
18260 result = (PyObject *)wxImage_GetAlphaData(arg1);
18261 wxPyEndAllowThreads(__tstate);
18262 if (PyErr_Occurred()) SWIG_fail;
18263 }
18264 resultobj = result;
18265 return resultobj;
18266fail:
18267 return NULL;
18268}
18269
18270
18271SWIGINTERN PyObject *_wrap_Image_SetAlphaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18272 PyObject *resultobj = 0;
18273 wxImage *arg1 = (wxImage *) 0 ;
18274 buffer arg2 ;
18275 int arg3 ;
18276 void *argp1 = 0 ;
18277 int res1 = 0 ;
8c9c423b 18278 Py_ssize_t temp2 ;
1bd55598
RD
18279 PyObject * obj0 = 0 ;
18280 PyObject * obj1 = 0 ;
18281 char * kwnames[] = {
18282 (char *) "self",(char *) "alpha", NULL
18283 };
18284
18285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) SWIG_fail;
18286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18287 if (!SWIG_IsOK(res1)) {
18288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetAlphaData" "', expected argument " "1"" of type '" "wxImage *""'");
18289 }
18290 arg1 = reinterpret_cast< wxImage * >(argp1);
18291 {
fc46b7f3 18292 if (obj1 != Py_None) {
8c9c423b
RD
18293 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
18294 arg3 = (int)temp2;
fc46b7f3 18295 }
1bd55598
RD
18296 }
18297 {
18298 PyThreadState* __tstate = wxPyBeginAllowThreads();
18299 wxImage_SetAlphaData(arg1,arg2,arg3);
18300 wxPyEndAllowThreads(__tstate);
18301 if (PyErr_Occurred()) SWIG_fail;
18302 }
18303 resultobj = SWIG_Py_Void();
18304 return resultobj;
18305fail:
18306 return NULL;
d55e5bfc
RD
18307}
18308
18309
1bd55598
RD
18310SWIGINTERN PyObject *_wrap_Image_GetAlphaBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18311 PyObject *resultobj = 0;
18312 wxImage *arg1 = (wxImage *) 0 ;
18313 PyObject *result = 0 ;
18314 void *argp1 = 0 ;
18315 int res1 = 0 ;
18316 PyObject *swig_obj[1] ;
18317
18318 if (!args) SWIG_fail;
18319 swig_obj[0] = args;
18320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18321 if (!SWIG_IsOK(res1)) {
18322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetAlphaBuffer" "', expected argument " "1"" of type '" "wxImage *""'");
18323 }
18324 arg1 = reinterpret_cast< wxImage * >(argp1);
18325 {
18326 PyThreadState* __tstate = wxPyBeginAllowThreads();
18327 result = (PyObject *)wxImage_GetAlphaBuffer(arg1);
18328 wxPyEndAllowThreads(__tstate);
18329 if (PyErr_Occurred()) SWIG_fail;
18330 }
18331 resultobj = result;
18332 return resultobj;
18333fail:
18334 return NULL;
18335}
18336
18337
18338SWIGINTERN PyObject *_wrap_Image_SetAlphaBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18339 PyObject *resultobj = 0;
18340 wxImage *arg1 = (wxImage *) 0 ;
18341 buffer arg2 ;
18342 int arg3 ;
18343 void *argp1 = 0 ;
18344 int res1 = 0 ;
8c9c423b 18345 Py_ssize_t temp2 ;
1bd55598
RD
18346 PyObject * obj0 = 0 ;
18347 PyObject * obj1 = 0 ;
18348 char * kwnames[] = {
18349 (char *) "self",(char *) "alpha", NULL
18350 };
18351
18352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
18353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18354 if (!SWIG_IsOK(res1)) {
18355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetAlphaBuffer" "', expected argument " "1"" of type '" "wxImage *""'");
18356 }
18357 arg1 = reinterpret_cast< wxImage * >(argp1);
18358 {
fc46b7f3 18359 if (obj1 != Py_None) {
8c9c423b
RD
18360 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
18361 arg3 = (int)temp2;
fc46b7f3 18362 }
1bd55598
RD
18363 }
18364 {
18365 PyThreadState* __tstate = wxPyBeginAllowThreads();
18366 wxImage_SetAlphaBuffer(arg1,arg2,arg3);
18367 wxPyEndAllowThreads(__tstate);
18368 if (PyErr_Occurred()) SWIG_fail;
18369 }
18370 resultobj = SWIG_Py_Void();
18371 return resultobj;
18372fail:
18373 return NULL;
18374}
18375
18376
18377SWIGINTERN PyObject *_wrap_Image_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18378 PyObject *resultobj = 0;
18379 wxImage *arg1 = (wxImage *) 0 ;
18380 byte arg2 ;
18381 byte arg3 ;
18382 byte arg4 ;
18383 void *argp1 = 0 ;
18384 int res1 = 0 ;
18385 unsigned char val2 ;
18386 int ecode2 = 0 ;
18387 unsigned char val3 ;
18388 int ecode3 = 0 ;
18389 unsigned char val4 ;
18390 int ecode4 = 0 ;
18391 PyObject * obj0 = 0 ;
18392 PyObject * obj1 = 0 ;
18393 PyObject * obj2 = 0 ;
18394 PyObject * obj3 = 0 ;
18395 char * kwnames[] = {
18396 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
18397 };
18398
18399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18401 if (!SWIG_IsOK(res1)) {
18402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetMaskColour" "', expected argument " "1"" of type '" "wxImage *""'");
18403 }
18404 arg1 = reinterpret_cast< wxImage * >(argp1);
18405 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
18406 if (!SWIG_IsOK(ecode2)) {
18407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_SetMaskColour" "', expected argument " "2"" of type '" "byte""'");
18408 }
18409 arg2 = static_cast< byte >(val2);
18410 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
18411 if (!SWIG_IsOK(ecode3)) {
18412 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetMaskColour" "', expected argument " "3"" of type '" "byte""'");
18413 }
18414 arg3 = static_cast< byte >(val3);
18415 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
18416 if (!SWIG_IsOK(ecode4)) {
18417 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_SetMaskColour" "', expected argument " "4"" of type '" "byte""'");
18418 }
18419 arg4 = static_cast< byte >(val4);
18420 {
18421 PyThreadState* __tstate = wxPyBeginAllowThreads();
18422 (arg1)->SetMaskColour(arg2,arg3,arg4);
18423 wxPyEndAllowThreads(__tstate);
18424 if (PyErr_Occurred()) SWIG_fail;
18425 }
18426 resultobj = SWIG_Py_Void();
18427 return resultobj;
18428fail:
18429 return NULL;
18430}
18431
18432
18433SWIGINTERN PyObject *_wrap_Image_GetOrFindMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18434 PyObject *resultobj = 0;
18435 wxImage *arg1 = (wxImage *) 0 ;
18436 byte *arg2 = (byte *) 0 ;
18437 byte *arg3 = (byte *) 0 ;
18438 byte *arg4 = (byte *) 0 ;
18439 void *argp1 = 0 ;
18440 int res1 = 0 ;
18441 byte temp2 ;
18442 int res2 = SWIG_TMPOBJ ;
18443 byte temp3 ;
18444 int res3 = SWIG_TMPOBJ ;
18445 byte temp4 ;
18446 int res4 = SWIG_TMPOBJ ;
18447 PyObject *swig_obj[1] ;
18448
18449 arg2 = &temp2;
18450 arg3 = &temp3;
18451 arg4 = &temp4;
18452 if (!args) SWIG_fail;
18453 swig_obj[0] = args;
18454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18455 if (!SWIG_IsOK(res1)) {
18456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetOrFindMaskColour" "', expected argument " "1"" of type '" "wxImage const *""'");
18457 }
18458 arg1 = reinterpret_cast< wxImage * >(argp1);
18459 {
18460 PyThreadState* __tstate = wxPyBeginAllowThreads();
18461 ((wxImage const *)arg1)->GetOrFindMaskColour(arg2,arg3,arg4);
18462 wxPyEndAllowThreads(__tstate);
18463 if (PyErr_Occurred()) SWIG_fail;
18464 }
18465 resultobj = SWIG_Py_Void();
18466 if (SWIG_IsTmpObj(res2)) {
18467 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg2)));
18468 } else {
18469 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18470 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags));
18471 }
18472 if (SWIG_IsTmpObj(res3)) {
18473 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
18474 } else {
18475 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18476 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
18477 }
18478 if (SWIG_IsTmpObj(res4)) {
18479 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
18480 } else {
18481 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18482 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
18483 }
18484 return resultobj;
18485fail:
18486 return NULL;
d55e5bfc
RD
18487}
18488
18489
1bd55598
RD
18490SWIGINTERN PyObject *_wrap_Image_GetMaskRed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18491 PyObject *resultobj = 0;
18492 wxImage *arg1 = (wxImage *) 0 ;
18493 byte result;
18494 void *argp1 = 0 ;
18495 int res1 = 0 ;
18496 PyObject *swig_obj[1] ;
18497
18498 if (!args) SWIG_fail;
18499 swig_obj[0] = args;
18500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18501 if (!SWIG_IsOK(res1)) {
18502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetMaskRed" "', expected argument " "1"" of type '" "wxImage *""'");
18503 }
18504 arg1 = reinterpret_cast< wxImage * >(argp1);
18505 {
18506 PyThreadState* __tstate = wxPyBeginAllowThreads();
18507 result = (byte)(arg1)->GetMaskRed();
18508 wxPyEndAllowThreads(__tstate);
18509 if (PyErr_Occurred()) SWIG_fail;
18510 }
18511 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
18512 return resultobj;
18513fail:
18514 return NULL;
d55e5bfc
RD
18515}
18516
18517
1bd55598
RD
18518SWIGINTERN PyObject *_wrap_Image_GetMaskGreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18519 PyObject *resultobj = 0;
18520 wxImage *arg1 = (wxImage *) 0 ;
18521 byte result;
18522 void *argp1 = 0 ;
18523 int res1 = 0 ;
18524 PyObject *swig_obj[1] ;
18525
18526 if (!args) SWIG_fail;
18527 swig_obj[0] = args;
18528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18529 if (!SWIG_IsOK(res1)) {
18530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetMaskGreen" "', expected argument " "1"" of type '" "wxImage *""'");
18531 }
18532 arg1 = reinterpret_cast< wxImage * >(argp1);
18533 {
18534 PyThreadState* __tstate = wxPyBeginAllowThreads();
18535 result = (byte)(arg1)->GetMaskGreen();
18536 wxPyEndAllowThreads(__tstate);
18537 if (PyErr_Occurred()) SWIG_fail;
18538 }
18539 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
18540 return resultobj;
18541fail:
18542 return NULL;
d55e5bfc
RD
18543}
18544
18545
1bd55598
RD
18546SWIGINTERN PyObject *_wrap_Image_GetMaskBlue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18547 PyObject *resultobj = 0;
18548 wxImage *arg1 = (wxImage *) 0 ;
18549 byte result;
18550 void *argp1 = 0 ;
18551 int res1 = 0 ;
18552 PyObject *swig_obj[1] ;
18553
18554 if (!args) SWIG_fail;
18555 swig_obj[0] = args;
18556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18557 if (!SWIG_IsOK(res1)) {
18558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetMaskBlue" "', expected argument " "1"" of type '" "wxImage *""'");
18559 }
18560 arg1 = reinterpret_cast< wxImage * >(argp1);
18561 {
18562 PyThreadState* __tstate = wxPyBeginAllowThreads();
18563 result = (byte)(arg1)->GetMaskBlue();
18564 wxPyEndAllowThreads(__tstate);
18565 if (PyErr_Occurred()) SWIG_fail;
18566 }
18567 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
18568 return resultobj;
18569fail:
18570 return NULL;
18571}
18572
18573
18574SWIGINTERN PyObject *_wrap_Image_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18575 PyObject *resultobj = 0;
18576 wxImage *arg1 = (wxImage *) 0 ;
18577 bool arg2 = (bool) true ;
18578 void *argp1 = 0 ;
18579 int res1 = 0 ;
18580 bool val2 ;
18581 int ecode2 = 0 ;
18582 PyObject * obj0 = 0 ;
18583 PyObject * obj1 = 0 ;
18584 char * kwnames[] = {
18585 (char *) "self",(char *) "mask", NULL
18586 };
18587
18588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
18589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18590 if (!SWIG_IsOK(res1)) {
18591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetMask" "', expected argument " "1"" of type '" "wxImage *""'");
18592 }
18593 arg1 = reinterpret_cast< wxImage * >(argp1);
18594 if (obj1) {
18595 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18596 if (!SWIG_IsOK(ecode2)) {
18597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_SetMask" "', expected argument " "2"" of type '" "bool""'");
18598 }
18599 arg2 = static_cast< bool >(val2);
18600 }
18601 {
18602 PyThreadState* __tstate = wxPyBeginAllowThreads();
18603 (arg1)->SetMask(arg2);
18604 wxPyEndAllowThreads(__tstate);
18605 if (PyErr_Occurred()) SWIG_fail;
18606 }
18607 resultobj = SWIG_Py_Void();
18608 return resultobj;
18609fail:
18610 return NULL;
d55e5bfc
RD
18611}
18612
18613
1bd55598
RD
18614SWIGINTERN PyObject *_wrap_Image_HasMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18615 PyObject *resultobj = 0;
18616 wxImage *arg1 = (wxImage *) 0 ;
18617 bool result;
18618 void *argp1 = 0 ;
18619 int res1 = 0 ;
18620 PyObject *swig_obj[1] ;
18621
18622 if (!args) SWIG_fail;
18623 swig_obj[0] = args;
18624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18625 if (!SWIG_IsOK(res1)) {
18626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HasMask" "', expected argument " "1"" of type '" "wxImage *""'");
18627 }
18628 arg1 = reinterpret_cast< wxImage * >(argp1);
18629 {
18630 PyThreadState* __tstate = wxPyBeginAllowThreads();
18631 result = (bool)(arg1)->HasMask();
18632 wxPyEndAllowThreads(__tstate);
18633 if (PyErr_Occurred()) SWIG_fail;
18634 }
18635 {
18636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18637 }
18638 return resultobj;
18639fail:
18640 return NULL;
18641}
18642
18643
18644SWIGINTERN PyObject *_wrap_Image_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18645 PyObject *resultobj = 0;
18646 wxImage *arg1 = (wxImage *) 0 ;
18647 double arg2 ;
18648 wxPoint *arg3 = 0 ;
18649 bool arg4 = (bool) true ;
18650 wxPoint *arg5 = (wxPoint *) NULL ;
18651 SwigValueWrapper<wxImage > result;
18652 void *argp1 = 0 ;
18653 int res1 = 0 ;
18654 double val2 ;
18655 int ecode2 = 0 ;
18656 wxPoint temp3 ;
18657 bool val4 ;
18658 int ecode4 = 0 ;
18659 void *argp5 = 0 ;
18660 int res5 = 0 ;
18661 PyObject * obj0 = 0 ;
18662 PyObject * obj1 = 0 ;
18663 PyObject * obj2 = 0 ;
18664 PyObject * obj3 = 0 ;
18665 PyObject * obj4 = 0 ;
18666 char * kwnames[] = {
18667 (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL
18668 };
18669
18670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18672 if (!SWIG_IsOK(res1)) {
18673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Rotate" "', expected argument " "1"" of type '" "wxImage const *""'");
18674 }
18675 arg1 = reinterpret_cast< wxImage * >(argp1);
18676 ecode2 = SWIG_AsVal_double(obj1, &val2);
18677 if (!SWIG_IsOK(ecode2)) {
18678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Rotate" "', expected argument " "2"" of type '" "double""'");
18679 }
18680 arg2 = static_cast< double >(val2);
18681 {
18682 arg3 = &temp3;
18683 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18684 }
18685 if (obj3) {
18686 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18687 if (!SWIG_IsOK(ecode4)) {
18688 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Rotate" "', expected argument " "4"" of type '" "bool""'");
18689 }
18690 arg4 = static_cast< bool >(val4);
18691 }
18692 if (obj4) {
18693 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxPoint, 0 | 0 );
18694 if (!SWIG_IsOK(res5)) {
18695 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Image_Rotate" "', expected argument " "5"" of type '" "wxPoint *""'");
d55e5bfc 18696 }
1bd55598
RD
18697 arg5 = reinterpret_cast< wxPoint * >(argp5);
18698 }
18699 {
18700 PyThreadState* __tstate = wxPyBeginAllowThreads();
18701 result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5);
18702 wxPyEndAllowThreads(__tstate);
18703 if (PyErr_Occurred()) SWIG_fail;
18704 }
18705 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
18706 return resultobj;
18707fail:
18708 return NULL;
18709}
18710
18711
18712SWIGINTERN PyObject *_wrap_Image_Rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18713 PyObject *resultobj = 0;
18714 wxImage *arg1 = (wxImage *) 0 ;
18715 bool arg2 = (bool) true ;
18716 SwigValueWrapper<wxImage > result;
18717 void *argp1 = 0 ;
18718 int res1 = 0 ;
18719 bool val2 ;
18720 int ecode2 = 0 ;
18721 PyObject * obj0 = 0 ;
18722 PyObject * obj1 = 0 ;
18723 char * kwnames[] = {
18724 (char *) "self",(char *) "clockwise", NULL
18725 };
18726
18727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) SWIG_fail;
18728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18729 if (!SWIG_IsOK(res1)) {
18730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Rotate90" "', expected argument " "1"" of type '" "wxImage *""'");
18731 }
18732 arg1 = reinterpret_cast< wxImage * >(argp1);
18733 if (obj1) {
18734 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18735 if (!SWIG_IsOK(ecode2)) {
18736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Rotate90" "', expected argument " "2"" of type '" "bool""'");
18737 }
18738 arg2 = static_cast< bool >(val2);
18739 }
18740 {
18741 PyThreadState* __tstate = wxPyBeginAllowThreads();
18742 result = (arg1)->Rotate90(arg2);
18743 wxPyEndAllowThreads(__tstate);
18744 if (PyErr_Occurred()) SWIG_fail;
18745 }
18746 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
18747 return resultobj;
18748fail:
18749 return NULL;
18750}
18751
18752
18753SWIGINTERN PyObject *_wrap_Image_Mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18754 PyObject *resultobj = 0;
18755 wxImage *arg1 = (wxImage *) 0 ;
18756 bool arg2 = (bool) true ;
18757 SwigValueWrapper<wxImage > result;
18758 void *argp1 = 0 ;
18759 int res1 = 0 ;
18760 bool val2 ;
18761 int ecode2 = 0 ;
18762 PyObject * obj0 = 0 ;
18763 PyObject * obj1 = 0 ;
18764 char * kwnames[] = {
18765 (char *) "self",(char *) "horizontally", NULL
18766 };
18767
18768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) SWIG_fail;
18769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18770 if (!SWIG_IsOK(res1)) {
18771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Mirror" "', expected argument " "1"" of type '" "wxImage *""'");
18772 }
18773 arg1 = reinterpret_cast< wxImage * >(argp1);
18774 if (obj1) {
18775 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18776 if (!SWIG_IsOK(ecode2)) {
18777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Mirror" "', expected argument " "2"" of type '" "bool""'");
18778 }
18779 arg2 = static_cast< bool >(val2);
18780 }
18781 {
18782 PyThreadState* __tstate = wxPyBeginAllowThreads();
18783 result = (arg1)->Mirror(arg2);
18784 wxPyEndAllowThreads(__tstate);
18785 if (PyErr_Occurred()) SWIG_fail;
18786 }
18787 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
18788 return resultobj;
18789fail:
18790 return NULL;
18791}
18792
18793
18794SWIGINTERN PyObject *_wrap_Image_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18795 PyObject *resultobj = 0;
18796 wxImage *arg1 = (wxImage *) 0 ;
18797 byte arg2 ;
18798 byte arg3 ;
18799 byte arg4 ;
18800 byte arg5 ;
18801 byte arg6 ;
18802 byte arg7 ;
18803 void *argp1 = 0 ;
18804 int res1 = 0 ;
18805 unsigned char val2 ;
18806 int ecode2 = 0 ;
18807 unsigned char val3 ;
18808 int ecode3 = 0 ;
18809 unsigned char val4 ;
18810 int ecode4 = 0 ;
18811 unsigned char val5 ;
18812 int ecode5 = 0 ;
18813 unsigned char val6 ;
18814 int ecode6 = 0 ;
18815 unsigned char val7 ;
18816 int ecode7 = 0 ;
18817 PyObject * obj0 = 0 ;
18818 PyObject * obj1 = 0 ;
18819 PyObject * obj2 = 0 ;
18820 PyObject * obj3 = 0 ;
18821 PyObject * obj4 = 0 ;
18822 PyObject * obj5 = 0 ;
18823 PyObject * obj6 = 0 ;
18824 char * kwnames[] = {
18825 (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL
18826 };
18827
18828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18830 if (!SWIG_IsOK(res1)) {
18831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Replace" "', expected argument " "1"" of type '" "wxImage *""'");
18832 }
18833 arg1 = reinterpret_cast< wxImage * >(argp1);
18834 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
18835 if (!SWIG_IsOK(ecode2)) {
18836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Replace" "', expected argument " "2"" of type '" "byte""'");
18837 }
18838 arg2 = static_cast< byte >(val2);
18839 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
18840 if (!SWIG_IsOK(ecode3)) {
18841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_Replace" "', expected argument " "3"" of type '" "byte""'");
18842 }
18843 arg3 = static_cast< byte >(val3);
18844 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
18845 if (!SWIG_IsOK(ecode4)) {
18846 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Replace" "', expected argument " "4"" of type '" "byte""'");
18847 }
18848 arg4 = static_cast< byte >(val4);
18849 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
18850 if (!SWIG_IsOK(ecode5)) {
18851 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_Replace" "', expected argument " "5"" of type '" "byte""'");
18852 }
18853 arg5 = static_cast< byte >(val5);
18854 ecode6 = SWIG_AsVal_unsigned_SS_char(obj5, &val6);
18855 if (!SWIG_IsOK(ecode6)) {
18856 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Image_Replace" "', expected argument " "6"" of type '" "byte""'");
18857 }
18858 arg6 = static_cast< byte >(val6);
18859 ecode7 = SWIG_AsVal_unsigned_SS_char(obj6, &val7);
18860 if (!SWIG_IsOK(ecode7)) {
18861 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Image_Replace" "', expected argument " "7"" of type '" "byte""'");
18862 }
18863 arg7 = static_cast< byte >(val7);
18864 {
18865 PyThreadState* __tstate = wxPyBeginAllowThreads();
18866 (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7);
18867 wxPyEndAllowThreads(__tstate);
18868 if (PyErr_Occurred()) SWIG_fail;
18869 }
18870 resultobj = SWIG_Py_Void();
18871 return resultobj;
18872fail:
18873 return NULL;
18874}
18875
18876
18877SWIGINTERN PyObject *_wrap_Image_ConvertToGreyscale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18878 PyObject *resultobj = 0;
18879 wxImage *arg1 = (wxImage *) 0 ;
18880 double arg2 = (double) 0.299 ;
18881 double arg3 = (double) 0.587 ;
18882 double arg4 = (double) 0.114 ;
18883 SwigValueWrapper<wxImage > result;
18884 void *argp1 = 0 ;
18885 int res1 = 0 ;
18886 double val2 ;
18887 int ecode2 = 0 ;
18888 double val3 ;
18889 int ecode3 = 0 ;
18890 double val4 ;
18891 int ecode4 = 0 ;
18892 PyObject * obj0 = 0 ;
18893 PyObject * obj1 = 0 ;
18894 PyObject * obj2 = 0 ;
18895 PyObject * obj3 = 0 ;
18896 char * kwnames[] = {
18897 (char *) "self",(char *) "lr",(char *) "lg",(char *) "lb", NULL
18898 };
18899
18900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_ConvertToGreyscale",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18902 if (!SWIG_IsOK(res1)) {
18903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertToGreyscale" "', expected argument " "1"" of type '" "wxImage const *""'");
18904 }
18905 arg1 = reinterpret_cast< wxImage * >(argp1);
18906 if (obj1) {
18907 ecode2 = SWIG_AsVal_double(obj1, &val2);
18908 if (!SWIG_IsOK(ecode2)) {
18909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertToGreyscale" "', expected argument " "2"" of type '" "double""'");
18910 }
18911 arg2 = static_cast< double >(val2);
18912 }
18913 if (obj2) {
18914 ecode3 = SWIG_AsVal_double(obj2, &val3);
18915 if (!SWIG_IsOK(ecode3)) {
18916 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ConvertToGreyscale" "', expected argument " "3"" of type '" "double""'");
18917 }
18918 arg3 = static_cast< double >(val3);
18919 }
18920 if (obj3) {
18921 ecode4 = SWIG_AsVal_double(obj3, &val4);
18922 if (!SWIG_IsOK(ecode4)) {
18923 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_ConvertToGreyscale" "', expected argument " "4"" of type '" "double""'");
18924 }
18925 arg4 = static_cast< double >(val4);
18926 }
18927 {
18928 PyThreadState* __tstate = wxPyBeginAllowThreads();
18929 result = ((wxImage const *)arg1)->ConvertToGreyscale(arg2,arg3,arg4);
18930 wxPyEndAllowThreads(__tstate);
18931 if (PyErr_Occurred()) SWIG_fail;
18932 }
18933 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
18934 return resultobj;
18935fail:
18936 return NULL;
18937}
18938
18939
18940SWIGINTERN PyObject *_wrap_Image_ConvertToMono(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18941 PyObject *resultobj = 0;
18942 wxImage *arg1 = (wxImage *) 0 ;
18943 byte arg2 ;
18944 byte arg3 ;
18945 byte arg4 ;
18946 SwigValueWrapper<wxImage > result;
18947 void *argp1 = 0 ;
18948 int res1 = 0 ;
18949 unsigned char val2 ;
18950 int ecode2 = 0 ;
18951 unsigned char val3 ;
18952 int ecode3 = 0 ;
18953 unsigned char val4 ;
18954 int ecode4 = 0 ;
18955 PyObject * obj0 = 0 ;
18956 PyObject * obj1 = 0 ;
18957 PyObject * obj2 = 0 ;
18958 PyObject * obj3 = 0 ;
18959 char * kwnames[] = {
18960 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
18961 };
18962
18963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
18965 if (!SWIG_IsOK(res1)) {
18966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertToMono" "', expected argument " "1"" of type '" "wxImage const *""'");
18967 }
18968 arg1 = reinterpret_cast< wxImage * >(argp1);
18969 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
18970 if (!SWIG_IsOK(ecode2)) {
18971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertToMono" "', expected argument " "2"" of type '" "byte""'");
18972 }
18973 arg2 = static_cast< byte >(val2);
18974 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
18975 if (!SWIG_IsOK(ecode3)) {
18976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ConvertToMono" "', expected argument " "3"" of type '" "byte""'");
18977 }
18978 arg3 = static_cast< byte >(val3);
18979 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
18980 if (!SWIG_IsOK(ecode4)) {
18981 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_ConvertToMono" "', expected argument " "4"" of type '" "byte""'");
18982 }
18983 arg4 = static_cast< byte >(val4);
18984 {
18985 PyThreadState* __tstate = wxPyBeginAllowThreads();
18986 result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4);
18987 wxPyEndAllowThreads(__tstate);
18988 if (PyErr_Occurred()) SWIG_fail;
18989 }
18990 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
18991 return resultobj;
18992fail:
18993 return NULL;
18994}
18995
18996
18997SWIGINTERN PyObject *_wrap_Image_SetOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18998 PyObject *resultobj = 0;
18999 wxImage *arg1 = (wxImage *) 0 ;
19000 wxString *arg2 = 0 ;
19001 wxString *arg3 = 0 ;
19002 void *argp1 = 0 ;
19003 int res1 = 0 ;
19004 bool temp2 = false ;
19005 bool temp3 = false ;
19006 PyObject * obj0 = 0 ;
19007 PyObject * obj1 = 0 ;
19008 PyObject * obj2 = 0 ;
19009 char * kwnames[] = {
19010 (char *) "self",(char *) "name",(char *) "value", NULL
19011 };
19012
19013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19015 if (!SWIG_IsOK(res1)) {
19016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetOption" "', expected argument " "1"" of type '" "wxImage *""'");
19017 }
19018 arg1 = reinterpret_cast< wxImage * >(argp1);
19019 {
19020 arg2 = wxString_in_helper(obj1);
19021 if (arg2 == NULL) SWIG_fail;
19022 temp2 = true;
19023 }
19024 {
19025 arg3 = wxString_in_helper(obj2);
19026 if (arg3 == NULL) SWIG_fail;
19027 temp3 = true;
19028 }
19029 {
19030 PyThreadState* __tstate = wxPyBeginAllowThreads();
19031 (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3);
19032 wxPyEndAllowThreads(__tstate);
19033 if (PyErr_Occurred()) SWIG_fail;
19034 }
19035 resultobj = SWIG_Py_Void();
19036 {
19037 if (temp2)
19038 delete arg2;
19039 }
19040 {
19041 if (temp3)
19042 delete arg3;
19043 }
19044 return resultobj;
19045fail:
19046 {
19047 if (temp2)
19048 delete arg2;
19049 }
19050 {
19051 if (temp3)
19052 delete arg3;
19053 }
19054 return NULL;
19055}
19056
19057
19058SWIGINTERN PyObject *_wrap_Image_SetOptionInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19059 PyObject *resultobj = 0;
19060 wxImage *arg1 = (wxImage *) 0 ;
19061 wxString *arg2 = 0 ;
19062 int arg3 ;
19063 void *argp1 = 0 ;
19064 int res1 = 0 ;
19065 bool temp2 = false ;
19066 int val3 ;
19067 int ecode3 = 0 ;
19068 PyObject * obj0 = 0 ;
19069 PyObject * obj1 = 0 ;
19070 PyObject * obj2 = 0 ;
19071 char * kwnames[] = {
19072 (char *) "self",(char *) "name",(char *) "value", NULL
19073 };
19074
19075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19077 if (!SWIG_IsOK(res1)) {
19078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetOptionInt" "', expected argument " "1"" of type '" "wxImage *""'");
19079 }
19080 arg1 = reinterpret_cast< wxImage * >(argp1);
19081 {
19082 arg2 = wxString_in_helper(obj1);
19083 if (arg2 == NULL) SWIG_fail;
19084 temp2 = true;
19085 }
19086 ecode3 = SWIG_AsVal_int(obj2, &val3);
19087 if (!SWIG_IsOK(ecode3)) {
19088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetOptionInt" "', expected argument " "3"" of type '" "int""'");
19089 }
19090 arg3 = static_cast< int >(val3);
19091 {
19092 PyThreadState* __tstate = wxPyBeginAllowThreads();
19093 (arg1)->SetOption((wxString const &)*arg2,arg3);
19094 wxPyEndAllowThreads(__tstate);
19095 if (PyErr_Occurred()) SWIG_fail;
19096 }
19097 resultobj = SWIG_Py_Void();
19098 {
19099 if (temp2)
19100 delete arg2;
19101 }
19102 return resultobj;
19103fail:
19104 {
19105 if (temp2)
19106 delete arg2;
19107 }
19108 return NULL;
19109}
19110
19111
19112SWIGINTERN PyObject *_wrap_Image_GetOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19113 PyObject *resultobj = 0;
19114 wxImage *arg1 = (wxImage *) 0 ;
19115 wxString *arg2 = 0 ;
19116 wxString result;
19117 void *argp1 = 0 ;
19118 int res1 = 0 ;
19119 bool temp2 = false ;
19120 PyObject * obj0 = 0 ;
19121 PyObject * obj1 = 0 ;
19122 char * kwnames[] = {
19123 (char *) "self",(char *) "name", NULL
19124 };
19125
19126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) SWIG_fail;
19127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19128 if (!SWIG_IsOK(res1)) {
19129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetOption" "', expected argument " "1"" of type '" "wxImage const *""'");
19130 }
19131 arg1 = reinterpret_cast< wxImage * >(argp1);
19132 {
19133 arg2 = wxString_in_helper(obj1);
19134 if (arg2 == NULL) SWIG_fail;
19135 temp2 = true;
19136 }
19137 {
19138 PyThreadState* __tstate = wxPyBeginAllowThreads();
19139 result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2);
19140 wxPyEndAllowThreads(__tstate);
19141 if (PyErr_Occurred()) SWIG_fail;
19142 }
19143 {
d55e5bfc 19144#if wxUSE_UNICODE
1bd55598 19145 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 19146#else
1bd55598 19147 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 19148#endif
1bd55598
RD
19149 }
19150 {
19151 if (temp2)
19152 delete arg2;
19153 }
19154 return resultobj;
19155fail:
19156 {
19157 if (temp2)
19158 delete arg2;
19159 }
19160 return NULL;
19161}
19162
19163
19164SWIGINTERN PyObject *_wrap_Image_GetOptionInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19165 PyObject *resultobj = 0;
19166 wxImage *arg1 = (wxImage *) 0 ;
19167 wxString *arg2 = 0 ;
19168 int result;
19169 void *argp1 = 0 ;
19170 int res1 = 0 ;
19171 bool temp2 = false ;
19172 PyObject * obj0 = 0 ;
19173 PyObject * obj1 = 0 ;
19174 char * kwnames[] = {
19175 (char *) "self",(char *) "name", NULL
19176 };
19177
19178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) SWIG_fail;
19179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19180 if (!SWIG_IsOK(res1)) {
19181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetOptionInt" "', expected argument " "1"" of type '" "wxImage const *""'");
19182 }
19183 arg1 = reinterpret_cast< wxImage * >(argp1);
19184 {
19185 arg2 = wxString_in_helper(obj1);
19186 if (arg2 == NULL) SWIG_fail;
19187 temp2 = true;
19188 }
19189 {
19190 PyThreadState* __tstate = wxPyBeginAllowThreads();
19191 result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2);
19192 wxPyEndAllowThreads(__tstate);
19193 if (PyErr_Occurred()) SWIG_fail;
19194 }
19195 resultobj = SWIG_From_int(static_cast< int >(result));
19196 {
19197 if (temp2)
19198 delete arg2;
19199 }
19200 return resultobj;
19201fail:
19202 {
19203 if (temp2)
19204 delete arg2;
19205 }
19206 return NULL;
19207}
19208
19209
19210SWIGINTERN PyObject *_wrap_Image_HasOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19211 PyObject *resultobj = 0;
19212 wxImage *arg1 = (wxImage *) 0 ;
19213 wxString *arg2 = 0 ;
19214 bool result;
19215 void *argp1 = 0 ;
19216 int res1 = 0 ;
19217 bool temp2 = false ;
19218 PyObject * obj0 = 0 ;
19219 PyObject * obj1 = 0 ;
19220 char * kwnames[] = {
19221 (char *) "self",(char *) "name", NULL
19222 };
19223
19224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) SWIG_fail;
19225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19226 if (!SWIG_IsOK(res1)) {
19227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HasOption" "', expected argument " "1"" of type '" "wxImage const *""'");
19228 }
19229 arg1 = reinterpret_cast< wxImage * >(argp1);
19230 {
19231 arg2 = wxString_in_helper(obj1);
19232 if (arg2 == NULL) SWIG_fail;
19233 temp2 = true;
19234 }
19235 {
19236 PyThreadState* __tstate = wxPyBeginAllowThreads();
19237 result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2);
19238 wxPyEndAllowThreads(__tstate);
19239 if (PyErr_Occurred()) SWIG_fail;
19240 }
19241 {
19242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19243 }
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_CountColours(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19259 PyObject *resultobj = 0;
19260 wxImage *arg1 = (wxImage *) 0 ;
19261 unsigned long arg2 = (unsigned long) (unsigned long) -1 ;
19262 unsigned long result;
19263 void *argp1 = 0 ;
19264 int res1 = 0 ;
19265 unsigned long val2 ;
19266 int ecode2 = 0 ;
19267 PyObject * obj0 = 0 ;
19268 PyObject * obj1 = 0 ;
19269 char * kwnames[] = {
19270 (char *) "self",(char *) "stopafter", NULL
19271 };
19272
19273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) SWIG_fail;
19274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19275 if (!SWIG_IsOK(res1)) {
19276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_CountColours" "', expected argument " "1"" of type '" "wxImage *""'");
19277 }
19278 arg1 = reinterpret_cast< wxImage * >(argp1);
19279 if (obj1) {
19280 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
19281 if (!SWIG_IsOK(ecode2)) {
19282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_CountColours" "', expected argument " "2"" of type '" "unsigned long""'");
19283 }
19284 arg2 = static_cast< unsigned long >(val2);
19285 }
19286 {
19287 PyThreadState* __tstate = wxPyBeginAllowThreads();
19288 result = (unsigned long)(arg1)->CountColours(arg2);
19289 wxPyEndAllowThreads(__tstate);
19290 if (PyErr_Occurred()) SWIG_fail;
19291 }
19292 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
19293 return resultobj;
19294fail:
19295 return NULL;
19296}
19297
19298
19299SWIGINTERN PyObject *_wrap_Image_ComputeHistogram(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19300 PyObject *resultobj = 0;
19301 wxImage *arg1 = (wxImage *) 0 ;
19302 wxImageHistogram *arg2 = 0 ;
19303 unsigned long result;
19304 void *argp1 = 0 ;
19305 int res1 = 0 ;
19306 void *argp2 = 0 ;
19307 int res2 = 0 ;
19308 PyObject * obj0 = 0 ;
19309 PyObject * obj1 = 0 ;
19310 char * kwnames[] = {
19311 (char *) "self",(char *) "h", NULL
19312 };
19313
19314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) SWIG_fail;
19315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19316 if (!SWIG_IsOK(res1)) {
19317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ComputeHistogram" "', expected argument " "1"" of type '" "wxImage *""'");
19318 }
19319 arg1 = reinterpret_cast< wxImage * >(argp1);
19320 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImageHistogram, 0 );
19321 if (!SWIG_IsOK(res2)) {
19322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Image_ComputeHistogram" "', expected argument " "2"" of type '" "wxImageHistogram &""'");
19323 }
19324 if (!argp2) {
19325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Image_ComputeHistogram" "', expected argument " "2"" of type '" "wxImageHistogram &""'");
19326 }
19327 arg2 = reinterpret_cast< wxImageHistogram * >(argp2);
19328 {
19329 PyThreadState* __tstate = wxPyBeginAllowThreads();
19330 result = (unsigned long)(arg1)->ComputeHistogram(*arg2);
19331 wxPyEndAllowThreads(__tstate);
19332 if (PyErr_Occurred()) SWIG_fail;
19333 }
19334 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
19335 return resultobj;
19336fail:
19337 return NULL;
d55e5bfc
RD
19338}
19339
19340
1bd55598
RD
19341SWIGINTERN PyObject *_wrap_Image_AddHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19342 PyObject *resultobj = 0;
19343 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
19344 void *argp1 = 0 ;
19345 int res1 = 0 ;
19346 PyObject * obj0 = 0 ;
19347 char * kwnames[] = {
19348 (char *) "handler", NULL
19349 };
19350
19351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) SWIG_fail;
19352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
19353 if (!SWIG_IsOK(res1)) {
19354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_AddHandler" "', expected argument " "1"" of type '" "wxImageHandler *""'");
19355 }
19356 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
19357 {
19358 PyThreadState* __tstate = wxPyBeginAllowThreads();
19359 wxImage::AddHandler(arg1);
19360 wxPyEndAllowThreads(__tstate);
19361 if (PyErr_Occurred()) SWIG_fail;
19362 }
19363 resultobj = SWIG_Py_Void();
19364 return resultobj;
19365fail:
19366 return NULL;
d55e5bfc
RD
19367}
19368
19369
1bd55598
RD
19370SWIGINTERN PyObject *_wrap_Image_InsertHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19371 PyObject *resultobj = 0;
19372 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
19373 void *argp1 = 0 ;
19374 int res1 = 0 ;
19375 PyObject * obj0 = 0 ;
19376 char * kwnames[] = {
19377 (char *) "handler", NULL
19378 };
19379
19380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) SWIG_fail;
19381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
19382 if (!SWIG_IsOK(res1)) {
19383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_InsertHandler" "', expected argument " "1"" of type '" "wxImageHandler *""'");
19384 }
19385 arg1 = reinterpret_cast< wxImageHandler * >(argp1);
19386 {
19387 PyThreadState* __tstate = wxPyBeginAllowThreads();
19388 wxImage::InsertHandler(arg1);
19389 wxPyEndAllowThreads(__tstate);
19390 if (PyErr_Occurred()) SWIG_fail;
19391 }
19392 resultobj = SWIG_Py_Void();
19393 return resultobj;
19394fail:
19395 return NULL;
d55e5bfc
RD
19396}
19397
19398
1bd55598
RD
19399SWIGINTERN PyObject *_wrap_Image_RemoveHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19400 PyObject *resultobj = 0;
19401 wxString *arg1 = 0 ;
19402 bool result;
19403 bool temp1 = false ;
19404 PyObject * obj0 = 0 ;
19405 char * kwnames[] = {
19406 (char *) "name", NULL
19407 };
19408
19409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) SWIG_fail;
19410 {
19411 arg1 = wxString_in_helper(obj0);
19412 if (arg1 == NULL) SWIG_fail;
19413 temp1 = true;
19414 }
19415 {
19416 PyThreadState* __tstate = wxPyBeginAllowThreads();
19417 result = (bool)wxImage::RemoveHandler((wxString const &)*arg1);
19418 wxPyEndAllowThreads(__tstate);
19419 if (PyErr_Occurred()) SWIG_fail;
19420 }
19421 {
19422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19423 }
19424 {
19425 if (temp1)
19426 delete arg1;
19427 }
19428 return resultobj;
19429fail:
19430 {
19431 if (temp1)
19432 delete arg1;
19433 }
19434 return NULL;
d55e5bfc
RD
19435}
19436
19437
1bd55598
RD
19438SWIGINTERN PyObject *_wrap_Image_GetHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19439 PyObject *resultobj = 0;
19440 PyObject *result = 0 ;
19441
19442 if (!SWIG_Python_UnpackTuple(args,"Image_GetHandlers",0,0,0)) SWIG_fail;
19443 {
19444 PyThreadState* __tstate = wxPyBeginAllowThreads();
19445 result = (PyObject *)wxImage_GetHandlers();
19446 wxPyEndAllowThreads(__tstate);
19447 if (PyErr_Occurred()) SWIG_fail;
19448 }
19449 resultobj = result;
19450 return resultobj;
19451fail:
19452 return NULL;
19453}
19454
19455
19456SWIGINTERN PyObject *_wrap_Image_GetImageExtWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19457 PyObject *resultobj = 0;
19458 wxString result;
19459
19460 if (!SWIG_Python_UnpackTuple(args,"Image_GetImageExtWildcard",0,0,0)) SWIG_fail;
19461 {
19462 PyThreadState* __tstate = wxPyBeginAllowThreads();
19463 result = wxImage::GetImageExtWildcard();
19464 wxPyEndAllowThreads(__tstate);
19465 if (PyErr_Occurred()) SWIG_fail;
19466 }
19467 {
d55e5bfc 19468#if wxUSE_UNICODE
1bd55598 19469 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 19470#else
1bd55598 19471 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 19472#endif
1bd55598
RD
19473 }
19474 return resultobj;
19475fail:
19476 return NULL;
19477}
19478
19479
19480SWIGINTERN PyObject *_wrap_Image_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19481 PyObject *resultobj = 0;
19482 wxImage *arg1 = (wxImage *) 0 ;
19483 int arg2 = (int) -1 ;
19484 wxBitmap result;
19485 void *argp1 = 0 ;
19486 int res1 = 0 ;
19487 int val2 ;
19488 int ecode2 = 0 ;
19489 PyObject * obj0 = 0 ;
19490 PyObject * obj1 = 0 ;
19491 char * kwnames[] = {
19492 (char *) "self",(char *) "depth", NULL
19493 };
19494
19495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertToBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19497 if (!SWIG_IsOK(res1)) {
19498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertToBitmap" "', expected argument " "1"" of type '" "wxImage *""'");
19499 }
19500 arg1 = reinterpret_cast< wxImage * >(argp1);
19501 if (obj1) {
19502 ecode2 = SWIG_AsVal_int(obj1, &val2);
19503 if (!SWIG_IsOK(ecode2)) {
19504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertToBitmap" "', expected argument " "2"" of type '" "int""'");
19505 }
19506 arg2 = static_cast< int >(val2);
19507 }
19508 {
19509 if (!wxPyCheckForApp()) SWIG_fail;
19510 PyThreadState* __tstate = wxPyBeginAllowThreads();
19511 result = wxImage_ConvertToBitmap(arg1,arg2);
19512 wxPyEndAllowThreads(__tstate);
19513 if (PyErr_Occurred()) SWIG_fail;
19514 }
19515 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19516 return resultobj;
19517fail:
19518 return NULL;
19519}
19520
19521
19522SWIGINTERN PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19523 PyObject *resultobj = 0;
19524 wxImage *arg1 = (wxImage *) 0 ;
19525 byte arg2 ;
19526 byte arg3 ;
19527 byte arg4 ;
19528 wxBitmap result;
19529 void *argp1 = 0 ;
19530 int res1 = 0 ;
19531 unsigned char val2 ;
19532 int ecode2 = 0 ;
19533 unsigned char val3 ;
19534 int ecode3 = 0 ;
19535 unsigned char val4 ;
19536 int ecode4 = 0 ;
19537 PyObject * obj0 = 0 ;
19538 PyObject * obj1 = 0 ;
19539 PyObject * obj2 = 0 ;
19540 PyObject * obj3 = 0 ;
19541 char * kwnames[] = {
19542 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
19543 };
19544
19545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19547 if (!SWIG_IsOK(res1)) {
19548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertToMonoBitmap" "', expected argument " "1"" of type '" "wxImage *""'");
19549 }
19550 arg1 = reinterpret_cast< wxImage * >(argp1);
19551 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
19552 if (!SWIG_IsOK(ecode2)) {
19553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertToMonoBitmap" "', expected argument " "2"" of type '" "byte""'");
19554 }
19555 arg2 = static_cast< byte >(val2);
19556 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
19557 if (!SWIG_IsOK(ecode3)) {
19558 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ConvertToMonoBitmap" "', expected argument " "3"" of type '" "byte""'");
19559 }
19560 arg3 = static_cast< byte >(val3);
19561 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
19562 if (!SWIG_IsOK(ecode4)) {
19563 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_ConvertToMonoBitmap" "', expected argument " "4"" of type '" "byte""'");
19564 }
19565 arg4 = static_cast< byte >(val4);
19566 {
19567 if (!wxPyCheckForApp()) SWIG_fail;
19568 PyThreadState* __tstate = wxPyBeginAllowThreads();
19569 result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4);
19570 wxPyEndAllowThreads(__tstate);
19571 if (PyErr_Occurred()) SWIG_fail;
19572 }
19573 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19574 return resultobj;
19575fail:
19576 return NULL;
19577}
19578
19579
19580SWIGINTERN PyObject *_wrap_Image_RotateHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19581 PyObject *resultobj = 0;
19582 wxImage *arg1 = (wxImage *) 0 ;
19583 double arg2 ;
19584 void *argp1 = 0 ;
19585 int res1 = 0 ;
19586 double val2 ;
19587 int ecode2 = 0 ;
19588 PyObject * obj0 = 0 ;
19589 PyObject * obj1 = 0 ;
19590 char * kwnames[] = {
19591 (char *) "self",(char *) "angle", NULL
19592 };
19593
19594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_RotateHue",kwnames,&obj0,&obj1)) SWIG_fail;
19595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
19596 if (!SWIG_IsOK(res1)) {
19597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RotateHue" "', expected argument " "1"" of type '" "wxImage *""'");
19598 }
19599 arg1 = reinterpret_cast< wxImage * >(argp1);
19600 ecode2 = SWIG_AsVal_double(obj1, &val2);
19601 if (!SWIG_IsOK(ecode2)) {
19602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_RotateHue" "', expected argument " "2"" of type '" "double""'");
19603 }
19604 arg2 = static_cast< double >(val2);
19605 {
19606 PyThreadState* __tstate = wxPyBeginAllowThreads();
19607 (arg1)->RotateHue(arg2);
19608 wxPyEndAllowThreads(__tstate);
19609 if (PyErr_Occurred()) SWIG_fail;
19610 }
19611 resultobj = SWIG_Py_Void();
19612 return resultobj;
19613fail:
19614 return NULL;
19615}
19616
19617
19618SWIGINTERN PyObject *_wrap_Image_RGBtoHSV(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19619 PyObject *resultobj = 0;
19620 wxImage_RGBValue arg1 ;
19621 wxImage_HSVValue result;
19622 void *argp1 ;
19623 int res1 = 0 ;
19624 PyObject * obj0 = 0 ;
19625 char * kwnames[] = {
19626 (char *) "rgb", NULL
19627 };
19628
19629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RGBtoHSV",kwnames,&obj0)) SWIG_fail;
19630 {
19631 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage_RGBValue, 0 | 0);
19632 if (!SWIG_IsOK(res1)) {
19633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBtoHSV" "', expected argument " "1"" of type '" "wxImage_RGBValue""'");
19634 }
19635 if (!argp1) {
19636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Image_RGBtoHSV" "', expected argument " "1"" of type '" "wxImage_RGBValue""'");
19637 } else {
19638 wxImage_RGBValue * temp = reinterpret_cast< wxImage_RGBValue * >(argp1);
19639 arg1 = *temp;
19640 if (SWIG_IsNewObj(res1)) delete temp;
d55e5bfc 19641 }
1bd55598
RD
19642 }
19643 {
19644 PyThreadState* __tstate = wxPyBeginAllowThreads();
19645 result = wxImage::RGBtoHSV(arg1);
19646 wxPyEndAllowThreads(__tstate);
19647 if (PyErr_Occurred()) SWIG_fail;
19648 }
19649 resultobj = SWIG_NewPointerObj((new wxImage_HSVValue(static_cast< const wxImage_HSVValue& >(result))), SWIGTYPE_p_wxImage_HSVValue, SWIG_POINTER_OWN | 0 );
19650 return resultobj;
19651fail:
19652 return NULL;
19653}
19654
19655
19656SWIGINTERN PyObject *_wrap_Image_HSVtoRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19657 PyObject *resultobj = 0;
19658 wxImage_HSVValue arg1 ;
19659 wxImage_RGBValue result;
19660 void *argp1 ;
19661 int res1 = 0 ;
19662 PyObject * obj0 = 0 ;
19663 char * kwnames[] = {
19664 (char *) "hsv", NULL
19665 };
19666
19667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HSVtoRGB",kwnames,&obj0)) SWIG_fail;
19668 {
19669 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage_HSVValue, 0 | 0);
19670 if (!SWIG_IsOK(res1)) {
19671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVtoRGB" "', expected argument " "1"" of type '" "wxImage_HSVValue""'");
19672 }
19673 if (!argp1) {
19674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Image_HSVtoRGB" "', expected argument " "1"" of type '" "wxImage_HSVValue""'");
19675 } else {
19676 wxImage_HSVValue * temp = reinterpret_cast< wxImage_HSVValue * >(argp1);
19677 arg1 = *temp;
19678 if (SWIG_IsNewObj(res1)) delete temp;
d55e5bfc 19679 }
1bd55598
RD
19680 }
19681 {
19682 PyThreadState* __tstate = wxPyBeginAllowThreads();
19683 result = wxImage::HSVtoRGB(arg1);
19684 wxPyEndAllowThreads(__tstate);
19685 if (PyErr_Occurred()) SWIG_fail;
19686 }
19687 resultobj = SWIG_NewPointerObj((new wxImage_RGBValue(static_cast< const wxImage_RGBValue& >(result))), SWIGTYPE_p_wxImage_RGBValue, SWIG_POINTER_OWN | 0 );
19688 return resultobj;
19689fail:
19690 return NULL;
d55e5bfc
RD
19691}
19692
19693
1bd55598
RD
19694SWIGINTERN PyObject *Image_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19695 PyObject *obj;
19696 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19697 SWIG_TypeNewClientData(SWIGTYPE_p_wxImage, SWIG_NewClientData(obj));
19698 return SWIG_Py_Void();
d55e5bfc 19699}
1bd55598
RD
19700
19701SWIGINTERN PyObject *Image_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19702 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
19703}
19704
fc46b7f3
RD
19705SWIGINTERN PyObject *_wrap__ImageFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19706 PyObject *resultobj = 0;
19707 int arg1 ;
19708 int arg2 ;
19709 buffer arg3 ;
19710 int arg4 ;
19711 buffer arg5 = (buffer) NULL ;
19712 int arg6 = (int) 0 ;
19713 wxImage *result = 0 ;
19714 int val1 ;
19715 int ecode1 = 0 ;
19716 int val2 ;
19717 int ecode2 = 0 ;
8c9c423b
RD
19718 Py_ssize_t temp3 ;
19719 Py_ssize_t temp5 ;
fc46b7f3
RD
19720 PyObject * obj0 = 0 ;
19721 PyObject * obj1 = 0 ;
19722 PyObject * obj2 = 0 ;
19723 PyObject * obj3 = 0 ;
19724 char * kwnames[] = {
19725 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
19726 };
19727
19728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:_ImageFromBuffer",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19729 ecode1 = SWIG_AsVal_int(obj0, &val1);
19730 if (!SWIG_IsOK(ecode1)) {
19731 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_ImageFromBuffer" "', expected argument " "1"" of type '" "int""'");
19732 }
19733 arg1 = static_cast< int >(val1);
19734 ecode2 = SWIG_AsVal_int(obj1, &val2);
19735 if (!SWIG_IsOK(ecode2)) {
19736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_ImageFromBuffer" "', expected argument " "2"" of type '" "int""'");
19737 }
19738 arg2 = static_cast< int >(val2);
19739 {
8c9c423b
RD
19740 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
19741 arg4 = (int)temp3;
fc46b7f3
RD
19742 }
19743 if (obj3) {
19744 {
19745 if (obj3 != Py_None) {
8c9c423b
RD
19746 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
19747 arg6 = (int)temp5;
fc46b7f3
RD
19748 }
19749 }
19750 }
19751 {
19752 PyThreadState* __tstate = wxPyBeginAllowThreads();
19753 result = (wxImage *)_ImageFromBuffer(arg1,arg2,arg3,arg4,arg5,arg6);
19754 wxPyEndAllowThreads(__tstate);
19755 if (PyErr_Occurred()) SWIG_fail;
19756 }
19757 {
19758 resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
19759 }
19760 return resultobj;
19761fail:
19762 return NULL;
19763}
19764
19765
1bd55598
RD
19766SWIGINTERN int NullImage_set(PyObject *) {
19767 SWIG_Error(SWIG_AttributeError,"Variable NullImage is read-only.");
19768 return 1;
19769}
d55e5bfc 19770
1bd55598
RD
19771
19772SWIGINTERN PyObject *NullImage_get(void) {
19773 PyObject *pyobj = 0;
19774
19775 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullImage), SWIGTYPE_p_wxImage, 0 );
19776 return pyobj;
d55e5bfc
RD
19777}
19778
19779
1bd55598
RD
19780SWIGINTERN int IMAGE_OPTION_FILENAME_set(PyObject *) {
19781 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_FILENAME is read-only.");
19782 return 1;
d55e5bfc
RD
19783}
19784
19785
1bd55598
RD
19786SWIGINTERN PyObject *IMAGE_OPTION_FILENAME_get(void) {
19787 PyObject *pyobj = 0;
19788
19789 {
d55e5bfc 19790#if wxUSE_UNICODE
1bd55598 19791 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_FILENAME)->c_str(), (&wxPyIMAGE_OPTION_FILENAME)->Len());
d55e5bfc 19792#else
1bd55598 19793 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_FILENAME)->c_str(), (&wxPyIMAGE_OPTION_FILENAME)->Len());
d55e5bfc 19794#endif
1bd55598
RD
19795 }
19796 return pyobj;
d55e5bfc
RD
19797}
19798
19799
1bd55598
RD
19800SWIGINTERN int IMAGE_OPTION_BMP_FORMAT_set(PyObject *) {
19801 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only.");
19802 return 1;
d55e5bfc
RD
19803}
19804
19805
1bd55598
RD
19806SWIGINTERN PyObject *IMAGE_OPTION_BMP_FORMAT_get(void) {
19807 PyObject *pyobj = 0;
19808
19809 {
d55e5bfc 19810#if wxUSE_UNICODE
1bd55598 19811 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
d55e5bfc 19812#else
1bd55598 19813 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
d55e5bfc 19814#endif
1bd55598
RD
19815 }
19816 return pyobj;
d55e5bfc
RD
19817}
19818
19819
1bd55598
RD
19820SWIGINTERN int IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) {
19821 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only.");
19822 return 1;
19823}
19824
19825
19826SWIGINTERN PyObject *IMAGE_OPTION_CUR_HOTSPOT_X_get(void) {
19827 PyObject *pyobj = 0;
19828
19829 {
d55e5bfc 19830#if wxUSE_UNICODE
1bd55598 19831 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
d55e5bfc 19832#else
1bd55598 19833 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
d55e5bfc 19834#endif
1bd55598
RD
19835 }
19836 return pyobj;
d55e5bfc
RD
19837}
19838
19839
1bd55598
RD
19840SWIGINTERN int IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) {
19841 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only.");
19842 return 1;
d55e5bfc
RD
19843}
19844
19845
1bd55598
RD
19846SWIGINTERN PyObject *IMAGE_OPTION_CUR_HOTSPOT_Y_get(void) {
19847 PyObject *pyobj = 0;
19848
19849 {
19850#if wxUSE_UNICODE
19851 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
19852#else
19853 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
19854#endif
19855 }
19856 return pyobj;
d55e5bfc
RD
19857}
19858
19859
1bd55598
RD
19860SWIGINTERN int IMAGE_OPTION_RESOLUTION_set(PyObject *) {
19861 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_RESOLUTION is read-only.");
19862 return 1;
19863}
19864
19865
19866SWIGINTERN PyObject *IMAGE_OPTION_RESOLUTION_get(void) {
19867 PyObject *pyobj = 0;
19868
19869 {
d55e5bfc 19870#if wxUSE_UNICODE
1bd55598 19871 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
d55e5bfc 19872#else
1bd55598 19873 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
d55e5bfc 19874#endif
1bd55598
RD
19875 }
19876 return pyobj;
d55e5bfc
RD
19877}
19878
19879
1bd55598
RD
19880SWIGINTERN int IMAGE_OPTION_RESOLUTIONX_set(PyObject *) {
19881 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_RESOLUTIONX is read-only.");
19882 return 1;
19883}
19884
19885
19886SWIGINTERN PyObject *IMAGE_OPTION_RESOLUTIONX_get(void) {
19887 PyObject *pyobj = 0;
19888
19889 {
d55e5bfc 19890#if wxUSE_UNICODE
1bd55598 19891 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONX)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONX)->Len());
d55e5bfc 19892#else
1bd55598 19893 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONX)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONX)->Len());
d55e5bfc 19894#endif
1bd55598
RD
19895 }
19896 return pyobj;
d55e5bfc
RD
19897}
19898
19899
1bd55598
RD
19900SWIGINTERN int IMAGE_OPTION_RESOLUTIONY_set(PyObject *) {
19901 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_RESOLUTIONY is read-only.");
19902 return 1;
d55e5bfc
RD
19903}
19904
19905
1bd55598
RD
19906SWIGINTERN PyObject *IMAGE_OPTION_RESOLUTIONY_get(void) {
19907 PyObject *pyobj = 0;
19908
19909 {
19910#if wxUSE_UNICODE
19911 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONY)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONY)->Len());
19912#else
19913 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONY)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONY)->Len());
19914#endif
19915 }
19916 return pyobj;
d55e5bfc
RD
19917}
19918
19919
1bd55598
RD
19920SWIGINTERN int IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) {
19921 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only.");
19922 return 1;
d55e5bfc
RD
19923}
19924
19925
1bd55598
RD
19926SWIGINTERN PyObject *IMAGE_OPTION_RESOLUTIONUNIT_get(void) {
19927 PyObject *pyobj = 0;
19928
19929 {
19930#if wxUSE_UNICODE
19931 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
19932#else
19933 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
19934#endif
19935 }
19936 return pyobj;
d55e5bfc 19937}
1bd55598
RD
19938
19939
19940SWIGINTERN int IMAGE_OPTION_QUALITY_set(PyObject *) {
19941 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_QUALITY is read-only.");
19942 return 1;
d55e5bfc
RD
19943}
19944
19945
1bd55598
RD
19946SWIGINTERN PyObject *IMAGE_OPTION_QUALITY_get(void) {
19947 PyObject *pyobj = 0;
19948
19949 {
19950#if wxUSE_UNICODE
19951 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_QUALITY)->c_str(), (&wxPyIMAGE_OPTION_QUALITY)->Len());
19952#else
19953 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_QUALITY)->c_str(), (&wxPyIMAGE_OPTION_QUALITY)->Len());
19954#endif
19955 }
19956 return pyobj;
d55e5bfc
RD
19957}
19958
19959
1bd55598
RD
19960SWIGINTERN int IMAGE_OPTION_BITSPERSAMPLE_set(PyObject *) {
19961 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_BITSPERSAMPLE is read-only.");
19962 return 1;
d55e5bfc
RD
19963}
19964
19965
1bd55598
RD
19966SWIGINTERN PyObject *IMAGE_OPTION_BITSPERSAMPLE_get(void) {
19967 PyObject *pyobj = 0;
19968
19969 {
d55e5bfc 19970#if wxUSE_UNICODE
1bd55598 19971 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BITSPERSAMPLE)->c_str(), (&wxPyIMAGE_OPTION_BITSPERSAMPLE)->Len());
d55e5bfc 19972#else
1bd55598 19973 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BITSPERSAMPLE)->c_str(), (&wxPyIMAGE_OPTION_BITSPERSAMPLE)->Len());
d55e5bfc 19974#endif
1bd55598
RD
19975 }
19976 return pyobj;
d55e5bfc
RD
19977}
19978
19979
1bd55598
RD
19980SWIGINTERN int IMAGE_OPTION_SAMPLESPERPIXEL_set(PyObject *) {
19981 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_SAMPLESPERPIXEL is read-only.");
19982 return 1;
19983}
19984
19985
19986SWIGINTERN PyObject *IMAGE_OPTION_SAMPLESPERPIXEL_get(void) {
19987 PyObject *pyobj = 0;
19988
19989 {
d55e5bfc 19990#if wxUSE_UNICODE
1bd55598 19991 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->c_str(), (&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->Len());
d55e5bfc 19992#else
1bd55598 19993 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->c_str(), (&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->Len());
d55e5bfc 19994#endif
1bd55598
RD
19995 }
19996 return pyobj;
d55e5bfc
RD
19997}
19998
19999
1bd55598
RD
20000SWIGINTERN int IMAGE_OPTION_COMPRESSION_set(PyObject *) {
20001 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_COMPRESSION is read-only.");
20002 return 1;
d55e5bfc
RD
20003}
20004
20005
1bd55598
RD
20006SWIGINTERN PyObject *IMAGE_OPTION_COMPRESSION_get(void) {
20007 PyObject *pyobj = 0;
20008
20009 {
20010#if wxUSE_UNICODE
20011 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_COMPRESSION)->c_str(), (&wxPyIMAGE_OPTION_COMPRESSION)->Len());
20012#else
20013 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_COMPRESSION)->c_str(), (&wxPyIMAGE_OPTION_COMPRESSION)->Len());
20014#endif
20015 }
20016 return pyobj;
d55e5bfc
RD
20017}
20018
20019
1bd55598
RD
20020SWIGINTERN int IMAGE_OPTION_IMAGEDESCRIPTOR_set(PyObject *) {
20021 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_IMAGEDESCRIPTOR is read-only.");
20022 return 1;
d55e5bfc
RD
20023}
20024
20025
1bd55598
RD
20026SWIGINTERN PyObject *IMAGE_OPTION_IMAGEDESCRIPTOR_get(void) {
20027 PyObject *pyobj = 0;
20028
20029 {
20030#if wxUSE_UNICODE
20031 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->c_str(), (&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->Len());
20032#else
20033 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->c_str(), (&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->Len());
20034#endif
20035 }
20036 return pyobj;
d55e5bfc
RD
20037}
20038
20039
1bd55598
RD
20040SWIGINTERN int IMAGE_OPTION_PNG_FORMAT_set(PyObject *) {
20041 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_PNG_FORMAT is read-only.");
20042 return 1;
d55e5bfc
RD
20043}
20044
20045
1bd55598
RD
20046SWIGINTERN PyObject *IMAGE_OPTION_PNG_FORMAT_get(void) {
20047 PyObject *pyobj = 0;
20048
20049 {
20050#if wxUSE_UNICODE
20051 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_PNG_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_PNG_FORMAT)->Len());
20052#else
20053 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_PNG_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_PNG_FORMAT)->Len());
20054#endif
20055 }
20056 return pyobj;
d55e5bfc
RD
20057}
20058
20059
1bd55598
RD
20060SWIGINTERN int IMAGE_OPTION_PNG_BITDEPTH_set(PyObject *) {
20061 SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_PNG_BITDEPTH is read-only.");
20062 return 1;
d55e5bfc
RD
20063}
20064
20065
1bd55598
RD
20066SWIGINTERN PyObject *IMAGE_OPTION_PNG_BITDEPTH_get(void) {
20067 PyObject *pyobj = 0;
20068
20069 {
d55e5bfc 20070#if wxUSE_UNICODE
1bd55598 20071 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_PNG_BITDEPTH)->c_str(), (&wxPyIMAGE_OPTION_PNG_BITDEPTH)->Len());
d55e5bfc 20072#else
1bd55598 20073 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_PNG_BITDEPTH)->c_str(), (&wxPyIMAGE_OPTION_PNG_BITDEPTH)->Len());
d55e5bfc 20074#endif
1bd55598
RD
20075 }
20076 return pyobj;
d55e5bfc
RD
20077}
20078
20079
1bd55598
RD
20080SWIGINTERN PyObject *_wrap_new_BMPHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20081 PyObject *resultobj = 0;
20082 wxBMPHandler *result = 0 ;
20083
20084 if (!SWIG_Python_UnpackTuple(args,"new_BMPHandler",0,0,0)) SWIG_fail;
20085 {
20086 PyThreadState* __tstate = wxPyBeginAllowThreads();
20087 result = (wxBMPHandler *)new wxBMPHandler();
20088 wxPyEndAllowThreads(__tstate);
20089 if (PyErr_Occurred()) SWIG_fail;
20090 }
20091 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBMPHandler, SWIG_POINTER_NEW | 0 );
20092 return resultobj;
20093fail:
20094 return NULL;
d55e5bfc
RD
20095}
20096
20097
1bd55598
RD
20098SWIGINTERN PyObject *BMPHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20099 PyObject *obj;
20100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20101 SWIG_TypeNewClientData(SWIGTYPE_p_wxBMPHandler, SWIG_NewClientData(obj));
20102 return SWIG_Py_Void();
d55e5bfc 20103}
1bd55598
RD
20104
20105SWIGINTERN PyObject *BMPHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20106 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
20107}
20108
1bd55598
RD
20109SWIGINTERN PyObject *_wrap_new_ICOHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20110 PyObject *resultobj = 0;
20111 wxICOHandler *result = 0 ;
20112
20113 if (!SWIG_Python_UnpackTuple(args,"new_ICOHandler",0,0,0)) SWIG_fail;
20114 {
20115 PyThreadState* __tstate = wxPyBeginAllowThreads();
20116 result = (wxICOHandler *)new wxICOHandler();
20117 wxPyEndAllowThreads(__tstate);
20118 if (PyErr_Occurred()) SWIG_fail;
20119 }
20120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxICOHandler, SWIG_POINTER_NEW | 0 );
20121 return resultobj;
20122fail:
20123 return NULL;
20124}
d55e5bfc 20125
1bd55598
RD
20126
20127SWIGINTERN PyObject *ICOHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20128 PyObject *obj;
20129 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20130 SWIG_TypeNewClientData(SWIGTYPE_p_wxICOHandler, SWIG_NewClientData(obj));
20131 return SWIG_Py_Void();
d55e5bfc
RD
20132}
20133
1bd55598
RD
20134SWIGINTERN PyObject *ICOHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20135 return SWIG_Python_InitShadowInstance(args);
20136}
d55e5bfc 20137
1bd55598
RD
20138SWIGINTERN PyObject *_wrap_new_CURHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20139 PyObject *resultobj = 0;
20140 wxCURHandler *result = 0 ;
20141
20142 if (!SWIG_Python_UnpackTuple(args,"new_CURHandler",0,0,0)) SWIG_fail;
20143 {
20144 PyThreadState* __tstate = wxPyBeginAllowThreads();
20145 result = (wxCURHandler *)new wxCURHandler();
20146 wxPyEndAllowThreads(__tstate);
20147 if (PyErr_Occurred()) SWIG_fail;
20148 }
20149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCURHandler, SWIG_POINTER_NEW | 0 );
20150 return resultobj;
20151fail:
20152 return NULL;
d55e5bfc
RD
20153}
20154
20155
1bd55598
RD
20156SWIGINTERN PyObject *CURHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20157 PyObject *obj;
20158 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20159 SWIG_TypeNewClientData(SWIGTYPE_p_wxCURHandler, SWIG_NewClientData(obj));
20160 return SWIG_Py_Void();
d55e5bfc
RD
20161}
20162
1bd55598
RD
20163SWIGINTERN PyObject *CURHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20164 return SWIG_Python_InitShadowInstance(args);
20165}
d55e5bfc 20166
1bd55598
RD
20167SWIGINTERN PyObject *_wrap_new_ANIHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20168 PyObject *resultobj = 0;
20169 wxANIHandler *result = 0 ;
20170
20171 if (!SWIG_Python_UnpackTuple(args,"new_ANIHandler",0,0,0)) SWIG_fail;
20172 {
20173 PyThreadState* __tstate = wxPyBeginAllowThreads();
20174 result = (wxANIHandler *)new wxANIHandler();
20175 wxPyEndAllowThreads(__tstate);
20176 if (PyErr_Occurred()) SWIG_fail;
20177 }
20178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxANIHandler, SWIG_POINTER_NEW | 0 );
20179 return resultobj;
20180fail:
20181 return NULL;
d55e5bfc
RD
20182}
20183
20184
1bd55598
RD
20185SWIGINTERN PyObject *ANIHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20186 PyObject *obj;
20187 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20188 SWIG_TypeNewClientData(SWIGTYPE_p_wxANIHandler, SWIG_NewClientData(obj));
20189 return SWIG_Py_Void();
d55e5bfc
RD
20190}
20191
1bd55598
RD
20192SWIGINTERN PyObject *ANIHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20193 return SWIG_Python_InitShadowInstance(args);
20194}
d55e5bfc 20195
1bd55598
RD
20196SWIGINTERN PyObject *_wrap_new_PNGHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20197 PyObject *resultobj = 0;
20198 wxPNGHandler *result = 0 ;
20199
20200 if (!SWIG_Python_UnpackTuple(args,"new_PNGHandler",0,0,0)) SWIG_fail;
20201 {
20202 PyThreadState* __tstate = wxPyBeginAllowThreads();
20203 result = (wxPNGHandler *)new wxPNGHandler();
20204 wxPyEndAllowThreads(__tstate);
20205 if (PyErr_Occurred()) SWIG_fail;
20206 }
20207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPNGHandler, SWIG_POINTER_NEW | 0 );
20208 return resultobj;
20209fail:
20210 return NULL;
d55e5bfc
RD
20211}
20212
20213
1bd55598
RD
20214SWIGINTERN PyObject *PNGHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20215 PyObject *obj;
20216 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20217 SWIG_TypeNewClientData(SWIGTYPE_p_wxPNGHandler, SWIG_NewClientData(obj));
20218 return SWIG_Py_Void();
d55e5bfc
RD
20219}
20220
1bd55598
RD
20221SWIGINTERN PyObject *PNGHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20222 return SWIG_Python_InitShadowInstance(args);
20223}
d55e5bfc 20224
1bd55598
RD
20225SWIGINTERN PyObject *_wrap_new_GIFHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20226 PyObject *resultobj = 0;
20227 wxGIFHandler *result = 0 ;
20228
20229 if (!SWIG_Python_UnpackTuple(args,"new_GIFHandler",0,0,0)) SWIG_fail;
20230 {
20231 PyThreadState* __tstate = wxPyBeginAllowThreads();
20232 result = (wxGIFHandler *)new wxGIFHandler();
20233 wxPyEndAllowThreads(__tstate);
20234 if (PyErr_Occurred()) SWIG_fail;
20235 }
20236 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGIFHandler, SWIG_POINTER_NEW | 0 );
20237 return resultobj;
20238fail:
20239 return NULL;
d55e5bfc
RD
20240}
20241
20242
1bd55598
RD
20243SWIGINTERN PyObject *GIFHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20244 PyObject *obj;
20245 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20246 SWIG_TypeNewClientData(SWIGTYPE_p_wxGIFHandler, SWIG_NewClientData(obj));
20247 return SWIG_Py_Void();
943e8dfd
RD
20248}
20249
1bd55598
RD
20250SWIGINTERN PyObject *GIFHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20251 return SWIG_Python_InitShadowInstance(args);
943e8dfd
RD
20252}
20253
1bd55598
RD
20254SWIGINTERN PyObject *_wrap_new_PCXHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20255 PyObject *resultobj = 0;
20256 wxPCXHandler *result = 0 ;
20257
20258 if (!SWIG_Python_UnpackTuple(args,"new_PCXHandler",0,0,0)) SWIG_fail;
20259 {
20260 PyThreadState* __tstate = wxPyBeginAllowThreads();
20261 result = (wxPCXHandler *)new wxPCXHandler();
20262 wxPyEndAllowThreads(__tstate);
20263 if (PyErr_Occurred()) SWIG_fail;
20264 }
20265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPCXHandler, SWIG_POINTER_NEW | 0 );
20266 return resultobj;
20267fail:
20268 return NULL;
d55e5bfc
RD
20269}
20270
20271
1bd55598
RD
20272SWIGINTERN PyObject *PCXHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20273 PyObject *obj;
20274 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20275 SWIG_TypeNewClientData(SWIGTYPE_p_wxPCXHandler, SWIG_NewClientData(obj));
20276 return SWIG_Py_Void();
d55e5bfc
RD
20277}
20278
1bd55598
RD
20279SWIGINTERN PyObject *PCXHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20280 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
20281}
20282
1bd55598
RD
20283SWIGINTERN PyObject *_wrap_new_JPEGHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20284 PyObject *resultobj = 0;
20285 wxJPEGHandler *result = 0 ;
20286
20287 if (!SWIG_Python_UnpackTuple(args,"new_JPEGHandler",0,0,0)) SWIG_fail;
20288 {
20289 PyThreadState* __tstate = wxPyBeginAllowThreads();
20290 result = (wxJPEGHandler *)new wxJPEGHandler();
20291 wxPyEndAllowThreads(__tstate);
20292 if (PyErr_Occurred()) SWIG_fail;
20293 }
20294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxJPEGHandler, SWIG_POINTER_NEW | 0 );
20295 return resultobj;
20296fail:
20297 return NULL;
f1cbd8fa
RD
20298}
20299
20300
1bd55598
RD
20301SWIGINTERN PyObject *JPEGHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20302 PyObject *obj;
20303 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20304 SWIG_TypeNewClientData(SWIGTYPE_p_wxJPEGHandler, SWIG_NewClientData(obj));
20305 return SWIG_Py_Void();
f1cbd8fa
RD
20306}
20307
1bd55598
RD
20308SWIGINTERN PyObject *JPEGHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20309 return SWIG_Python_InitShadowInstance(args);
f1cbd8fa
RD
20310}
20311
1bd55598
RD
20312SWIGINTERN PyObject *_wrap_new_PNMHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20313 PyObject *resultobj = 0;
20314 wxPNMHandler *result = 0 ;
20315
20316 if (!SWIG_Python_UnpackTuple(args,"new_PNMHandler",0,0,0)) SWIG_fail;
20317 {
20318 PyThreadState* __tstate = wxPyBeginAllowThreads();
20319 result = (wxPNMHandler *)new wxPNMHandler();
20320 wxPyEndAllowThreads(__tstate);
20321 if (PyErr_Occurred()) SWIG_fail;
20322 }
20323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPNMHandler, SWIG_POINTER_NEW | 0 );
20324 return resultobj;
20325fail:
20326 return NULL;
943e8dfd
RD
20327}
20328
20329
1bd55598
RD
20330SWIGINTERN PyObject *PNMHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20331 PyObject *obj;
20332 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20333 SWIG_TypeNewClientData(SWIGTYPE_p_wxPNMHandler, SWIG_NewClientData(obj));
20334 return SWIG_Py_Void();
943e8dfd
RD
20335}
20336
1bd55598
RD
20337SWIGINTERN PyObject *PNMHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20338 return SWIG_Python_InitShadowInstance(args);
943e8dfd
RD
20339}
20340
1bd55598
RD
20341SWIGINTERN PyObject *_wrap_new_XPMHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20342 PyObject *resultobj = 0;
20343 wxXPMHandler *result = 0 ;
20344
20345 if (!SWIG_Python_UnpackTuple(args,"new_XPMHandler",0,0,0)) SWIG_fail;
20346 {
20347 PyThreadState* __tstate = wxPyBeginAllowThreads();
20348 result = (wxXPMHandler *)new wxXPMHandler();
20349 wxPyEndAllowThreads(__tstate);
20350 if (PyErr_Occurred()) SWIG_fail;
20351 }
20352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXPMHandler, SWIG_POINTER_NEW | 0 );
20353 return resultobj;
20354fail:
20355 return NULL;
943e8dfd
RD
20356}
20357
20358
1bd55598
RD
20359SWIGINTERN PyObject *XPMHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20360 PyObject *obj;
20361 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20362 SWIG_TypeNewClientData(SWIGTYPE_p_wxXPMHandler, SWIG_NewClientData(obj));
20363 return SWIG_Py_Void();
943e8dfd
RD
20364}
20365
1bd55598
RD
20366SWIGINTERN PyObject *XPMHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20367 return SWIG_Python_InitShadowInstance(args);
943e8dfd
RD
20368}
20369
1bd55598
RD
20370SWIGINTERN PyObject *_wrap_new_TIFFHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20371 PyObject *resultobj = 0;
20372 wxTIFFHandler *result = 0 ;
20373
20374 if (!SWIG_Python_UnpackTuple(args,"new_TIFFHandler",0,0,0)) SWIG_fail;
20375 {
20376 PyThreadState* __tstate = wxPyBeginAllowThreads();
20377 result = (wxTIFFHandler *)new wxTIFFHandler();
20378 wxPyEndAllowThreads(__tstate);
20379 if (PyErr_Occurred()) SWIG_fail;
20380 }
20381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTIFFHandler, SWIG_POINTER_NEW | 0 );
20382 return resultobj;
20383fail:
20384 return NULL;
20385}
20386
20387
20388SWIGINTERN PyObject *TIFFHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20389 PyObject *obj;
20390 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20391 SWIG_TypeNewClientData(SWIGTYPE_p_wxTIFFHandler, SWIG_NewClientData(obj));
20392 return SWIG_Py_Void();
20393}
20394
20395SWIGINTERN PyObject *TIFFHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20396 return SWIG_Python_InitShadowInstance(args);
20397}
20398
20399SWIGINTERN PyObject *_wrap_Quantize_Quantize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20400 PyObject *resultobj = 0;
20401 wxImage *arg1 = 0 ;
20402 wxImage *arg2 = 0 ;
20403 int arg3 = (int) 236 ;
20404 int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ;
20405 bool result;
20406 void *argp1 = 0 ;
20407 int res1 = 0 ;
20408 void *argp2 = 0 ;
20409 int res2 = 0 ;
20410 int val3 ;
20411 int ecode3 = 0 ;
20412 int val4 ;
20413 int ecode4 = 0 ;
20414 PyObject * obj0 = 0 ;
20415 PyObject * obj1 = 0 ;
20416 PyObject * obj2 = 0 ;
20417 PyObject * obj3 = 0 ;
20418 char * kwnames[] = {
20419 (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL
20420 };
20421
20422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20423 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
20424 if (!SWIG_IsOK(res1)) {
20425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Quantize_Quantize" "', expected argument " "1"" of type '" "wxImage const &""'");
20426 }
20427 if (!argp1) {
20428 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Quantize_Quantize" "', expected argument " "1"" of type '" "wxImage const &""'");
20429 }
20430 arg1 = reinterpret_cast< wxImage * >(argp1);
20431 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 );
20432 if (!SWIG_IsOK(res2)) {
20433 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Quantize_Quantize" "', expected argument " "2"" of type '" "wxImage &""'");
20434 }
20435 if (!argp2) {
20436 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Quantize_Quantize" "', expected argument " "2"" of type '" "wxImage &""'");
20437 }
20438 arg2 = reinterpret_cast< wxImage * >(argp2);
20439 if (obj2) {
20440 ecode3 = SWIG_AsVal_int(obj2, &val3);
20441 if (!SWIG_IsOK(ecode3)) {
20442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Quantize_Quantize" "', expected argument " "3"" of type '" "int""'");
20443 }
20444 arg3 = static_cast< int >(val3);
20445 }
20446 if (obj3) {
20447 ecode4 = SWIG_AsVal_int(obj3, &val4);
20448 if (!SWIG_IsOK(ecode4)) {
20449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Quantize_Quantize" "', expected argument " "4"" of type '" "int""'");
20450 }
20451 arg4 = static_cast< int >(val4);
20452 }
20453 {
20454 PyThreadState* __tstate = wxPyBeginAllowThreads();
20455 result = (bool)wxQuantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4);
20456 wxPyEndAllowThreads(__tstate);
20457 if (PyErr_Occurred()) SWIG_fail;
20458 }
20459 {
20460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20461 }
20462 return resultobj;
20463fail:
20464 return NULL;
943e8dfd
RD
20465}
20466
20467
1bd55598
RD
20468SWIGINTERN PyObject *Quantize_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20469 PyObject *obj;
20470 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20471 SWIG_TypeNewClientData(SWIGTYPE_p_wxQuantize, SWIG_NewClientData(obj));
20472 return SWIG_Py_Void();
943e8dfd
RD
20473}
20474
1bd55598
RD
20475SWIGINTERN PyObject *_wrap_new_EvtHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20476 PyObject *resultobj = 0;
20477 wxEvtHandler *result = 0 ;
20478
20479 if (!SWIG_Python_UnpackTuple(args,"new_EvtHandler",0,0,0)) SWIG_fail;
20480 {
20481 PyThreadState* __tstate = wxPyBeginAllowThreads();
20482 result = (wxEvtHandler *)new wxEvtHandler();
20483 wxPyEndAllowThreads(__tstate);
20484 if (PyErr_Occurred()) SWIG_fail;
20485 }
20486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_NEW | 0 );
20487 return resultobj;
20488fail:
20489 return NULL;
943e8dfd
RD
20490}
20491
20492
1bd55598
RD
20493SWIGINTERN PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20494 PyObject *resultobj = 0;
20495 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20496 wxEvtHandler *result = 0 ;
20497 void *argp1 = 0 ;
20498 int res1 = 0 ;
20499 PyObject *swig_obj[1] ;
20500
20501 if (!args) SWIG_fail;
20502 swig_obj[0] = args;
20503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20504 if (!SWIG_IsOK(res1)) {
20505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_GetNextHandler" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20506 }
20507 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20508 {
20509 PyThreadState* __tstate = wxPyBeginAllowThreads();
20510 result = (wxEvtHandler *)(arg1)->GetNextHandler();
20511 wxPyEndAllowThreads(__tstate);
20512 if (PyErr_Occurred()) SWIG_fail;
20513 }
20514 {
20515 resultobj = wxPyMake_wxObject(result, 0);
20516 }
20517 return resultobj;
20518fail:
20519 return NULL;
943e8dfd
RD
20520}
20521
20522
1bd55598
RD
20523SWIGINTERN PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20524 PyObject *resultobj = 0;
20525 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20526 wxEvtHandler *result = 0 ;
20527 void *argp1 = 0 ;
20528 int res1 = 0 ;
20529 PyObject *swig_obj[1] ;
20530
20531 if (!args) SWIG_fail;
20532 swig_obj[0] = args;
20533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20534 if (!SWIG_IsOK(res1)) {
20535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_GetPreviousHandler" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20536 }
20537 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20538 {
20539 PyThreadState* __tstate = wxPyBeginAllowThreads();
20540 result = (wxEvtHandler *)(arg1)->GetPreviousHandler();
20541 wxPyEndAllowThreads(__tstate);
20542 if (PyErr_Occurred()) SWIG_fail;
20543 }
20544 {
20545 resultobj = wxPyMake_wxObject(result, 0);
20546 }
20547 return resultobj;
20548fail:
20549 return NULL;
20550}
20551
20552
20553SWIGINTERN PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20554 PyObject *resultobj = 0;
20555 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20556 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
20557 void *argp1 = 0 ;
20558 int res1 = 0 ;
20559 void *argp2 = 0 ;
20560 int res2 = 0 ;
20561 PyObject * obj0 = 0 ;
20562 PyObject * obj1 = 0 ;
20563 char * kwnames[] = {
20564 (char *) "self",(char *) "handler", NULL
20565 };
20566
20567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) SWIG_fail;
20568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20569 if (!SWIG_IsOK(res1)) {
20570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_SetNextHandler" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20571 }
20572 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20573 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20574 if (!SWIG_IsOK(res2)) {
20575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EvtHandler_SetNextHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
20576 }
20577 arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
20578 {
20579 PyThreadState* __tstate = wxPyBeginAllowThreads();
20580 (arg1)->SetNextHandler(arg2);
20581 wxPyEndAllowThreads(__tstate);
20582 if (PyErr_Occurred()) SWIG_fail;
20583 }
20584 resultobj = SWIG_Py_Void();
20585 return resultobj;
20586fail:
20587 return NULL;
20588}
20589
20590
20591SWIGINTERN PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20592 PyObject *resultobj = 0;
20593 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20594 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
20595 void *argp1 = 0 ;
20596 int res1 = 0 ;
20597 void *argp2 = 0 ;
20598 int res2 = 0 ;
20599 PyObject * obj0 = 0 ;
20600 PyObject * obj1 = 0 ;
20601 char * kwnames[] = {
20602 (char *) "self",(char *) "handler", NULL
20603 };
20604
20605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) SWIG_fail;
20606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20607 if (!SWIG_IsOK(res1)) {
20608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_SetPreviousHandler" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20609 }
20610 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20611 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20612 if (!SWIG_IsOK(res2)) {
20613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EvtHandler_SetPreviousHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
20614 }
20615 arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
20616 {
20617 PyThreadState* __tstate = wxPyBeginAllowThreads();
20618 (arg1)->SetPreviousHandler(arg2);
20619 wxPyEndAllowThreads(__tstate);
20620 if (PyErr_Occurred()) SWIG_fail;
20621 }
20622 resultobj = SWIG_Py_Void();
20623 return resultobj;
20624fail:
20625 return NULL;
943e8dfd
RD
20626}
20627
20628
1bd55598
RD
20629SWIGINTERN PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20630 PyObject *resultobj = 0;
20631 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20632 bool result;
20633 void *argp1 = 0 ;
20634 int res1 = 0 ;
20635 PyObject *swig_obj[1] ;
20636
20637 if (!args) SWIG_fail;
20638 swig_obj[0] = args;
20639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20640 if (!SWIG_IsOK(res1)) {
20641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_GetEvtHandlerEnabled" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20642 }
20643 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20644 {
20645 PyThreadState* __tstate = wxPyBeginAllowThreads();
20646 result = (bool)(arg1)->GetEvtHandlerEnabled();
20647 wxPyEndAllowThreads(__tstate);
20648 if (PyErr_Occurred()) SWIG_fail;
20649 }
20650 {
20651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20652 }
20653 return resultobj;
20654fail:
20655 return NULL;
20656}
20657
20658
20659SWIGINTERN PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20660 PyObject *resultobj = 0;
20661 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20662 bool arg2 ;
20663 void *argp1 = 0 ;
20664 int res1 = 0 ;
20665 bool val2 ;
20666 int ecode2 = 0 ;
20667 PyObject * obj0 = 0 ;
20668 PyObject * obj1 = 0 ;
20669 char * kwnames[] = {
20670 (char *) "self",(char *) "enabled", NULL
20671 };
20672
20673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
20674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20675 if (!SWIG_IsOK(res1)) {
20676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_SetEvtHandlerEnabled" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20677 }
20678 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20679 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20680 if (!SWIG_IsOK(ecode2)) {
20681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EvtHandler_SetEvtHandlerEnabled" "', expected argument " "2"" of type '" "bool""'");
20682 }
20683 arg2 = static_cast< bool >(val2);
20684 {
20685 PyThreadState* __tstate = wxPyBeginAllowThreads();
20686 (arg1)->SetEvtHandlerEnabled(arg2);
20687 wxPyEndAllowThreads(__tstate);
20688 if (PyErr_Occurred()) SWIG_fail;
20689 }
20690 resultobj = SWIG_Py_Void();
20691 return resultobj;
20692fail:
20693 return NULL;
20694}
20695
20696
20697SWIGINTERN PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20698 PyObject *resultobj = 0;
20699 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20700 wxEvent *arg2 = 0 ;
20701 bool result;
20702 void *argp1 = 0 ;
20703 int res1 = 0 ;
20704 void *argp2 = 0 ;
20705 int res2 = 0 ;
20706 PyObject * obj0 = 0 ;
20707 PyObject * obj1 = 0 ;
20708 char * kwnames[] = {
20709 (char *) "self",(char *) "event", NULL
20710 };
20711
20712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) SWIG_fail;
20713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20714 if (!SWIG_IsOK(res1)) {
20715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_ProcessEvent" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20716 }
20717 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20718 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxEvent, 0 );
20719 if (!SWIG_IsOK(res2)) {
20720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EvtHandler_ProcessEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
20721 }
20722 if (!argp2) {
20723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "EvtHandler_ProcessEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
20724 }
20725 arg2 = reinterpret_cast< wxEvent * >(argp2);
20726 {
20727 PyThreadState* __tstate = wxPyBeginAllowThreads();
20728 result = (bool)(arg1)->ProcessEvent(*arg2);
20729 wxPyEndAllowThreads(__tstate);
20730 if (PyErr_Occurred()) SWIG_fail;
20731 }
20732 {
20733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20734 }
20735 return resultobj;
20736fail:
20737 return NULL;
20738}
20739
20740
20741SWIGINTERN PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20742 PyObject *resultobj = 0;
20743 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20744 wxEvent *arg2 = 0 ;
20745 void *argp1 = 0 ;
20746 int res1 = 0 ;
20747 void *argp2 = 0 ;
20748 int res2 = 0 ;
20749 PyObject * obj0 = 0 ;
20750 PyObject * obj1 = 0 ;
20751 char * kwnames[] = {
20752 (char *) "self",(char *) "event", NULL
20753 };
20754
20755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
20756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20757 if (!SWIG_IsOK(res1)) {
20758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_AddPendingEvent" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20759 }
20760 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20761 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxEvent, 0 );
20762 if (!SWIG_IsOK(res2)) {
20763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EvtHandler_AddPendingEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
20764 }
20765 if (!argp2) {
20766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "EvtHandler_AddPendingEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
20767 }
20768 arg2 = reinterpret_cast< wxEvent * >(argp2);
20769 {
20770 PyThreadState* __tstate = wxPyBeginAllowThreads();
20771 (arg1)->AddPendingEvent(*arg2);
20772 wxPyEndAllowThreads(__tstate);
20773 if (PyErr_Occurred()) SWIG_fail;
20774 }
20775 resultobj = SWIG_Py_Void();
20776 return resultobj;
20777fail:
20778 return NULL;
943e8dfd
RD
20779}
20780
20781
1bd55598
RD
20782SWIGINTERN PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20783 PyObject *resultobj = 0;
20784 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20785 void *argp1 = 0 ;
20786 int res1 = 0 ;
20787 PyObject *swig_obj[1] ;
20788
20789 if (!args) SWIG_fail;
20790 swig_obj[0] = args;
20791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20792 if (!SWIG_IsOK(res1)) {
20793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_ProcessPendingEvents" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20794 }
20795 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20796 {
20797 PyThreadState* __tstate = wxPyBeginAllowThreads();
20798 (arg1)->ProcessPendingEvents();
20799 wxPyEndAllowThreads(__tstate);
20800 if (PyErr_Occurred()) SWIG_fail;
20801 }
20802 resultobj = SWIG_Py_Void();
20803 return resultobj;
20804fail:
20805 return NULL;
20806}
20807
20808
b39fe951
RD
20809SWIGINTERN PyObject *_wrap_EvtHandler_AllowReentrance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20810 PyObject *resultobj = 0;
20811 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20812 bool arg2 = (bool) true ;
20813 void *argp1 = 0 ;
20814 int res1 = 0 ;
20815 bool val2 ;
20816 int ecode2 = 0 ;
20817 PyObject * obj0 = 0 ;
20818 PyObject * obj1 = 0 ;
20819 char * kwnames[] = {
20820 (char *) "self",(char *) "allow", NULL
20821 };
20822
20823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EvtHandler_AllowReentrance",kwnames,&obj0,&obj1)) SWIG_fail;
20824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20825 if (!SWIG_IsOK(res1)) {
20826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_AllowReentrance" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20827 }
20828 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20829 if (obj1) {
20830 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20831 if (!SWIG_IsOK(ecode2)) {
20832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EvtHandler_AllowReentrance" "', expected argument " "2"" of type '" "bool""'");
20833 }
20834 arg2 = static_cast< bool >(val2);
20835 }
20836 {
20837 PyThreadState* __tstate = wxPyBeginAllowThreads();
20838 (arg1)->AllowReentrance(arg2);
20839 wxPyEndAllowThreads(__tstate);
20840 if (PyErr_Occurred()) SWIG_fail;
20841 }
20842 resultobj = SWIG_Py_Void();
20843 return resultobj;
20844fail:
20845 return NULL;
20846}
20847
20848
20849SWIGINTERN PyObject *_wrap_EvtHandler_IsReentranceAllowed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20850 PyObject *resultobj = 0;
20851 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20852 bool result;
20853 void *argp1 = 0 ;
20854 int res1 = 0 ;
20855 PyObject *swig_obj[1] ;
20856
20857 if (!args) SWIG_fail;
20858 swig_obj[0] = args;
20859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20860 if (!SWIG_IsOK(res1)) {
20861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_IsReentranceAllowed" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20862 }
20863 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20864 {
20865 PyThreadState* __tstate = wxPyBeginAllowThreads();
20866 result = (bool)(arg1)->IsReentranceAllowed();
20867 wxPyEndAllowThreads(__tstate);
20868 if (PyErr_Occurred()) SWIG_fail;
20869 }
20870 {
20871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20872 }
20873 return resultobj;
20874fail:
20875 return NULL;
20876}
20877
20878
20879SWIGINTERN PyObject *_wrap_EvtHandler_IsEventHandlingInProgress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20880 PyObject *resultobj = 0;
20881 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20882 bool result;
20883 void *argp1 = 0 ;
20884 int res1 = 0 ;
20885 PyObject *swig_obj[1] ;
20886
20887 if (!args) SWIG_fail;
20888 swig_obj[0] = args;
20889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20890 if (!SWIG_IsOK(res1)) {
20891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_IsEventHandlingInProgress" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20892 }
20893 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20894 {
20895 PyThreadState* __tstate = wxPyBeginAllowThreads();
20896 result = (bool)(arg1)->IsEventHandlingInProgress();
20897 wxPyEndAllowThreads(__tstate);
20898 if (PyErr_Occurred()) SWIG_fail;
20899 }
20900 {
20901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20902 }
20903 return resultobj;
20904fail:
20905 return NULL;
20906}
20907
20908
1bd55598
RD
20909SWIGINTERN PyObject *_wrap_EvtHandler_Connect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20910 PyObject *resultobj = 0;
20911 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20912 int arg2 ;
20913 int arg3 ;
20914 int arg4 ;
20915 PyObject *arg5 = (PyObject *) 0 ;
20916 void *argp1 = 0 ;
20917 int res1 = 0 ;
20918 int val2 ;
20919 int ecode2 = 0 ;
20920 int val3 ;
20921 int ecode3 = 0 ;
20922 int val4 ;
20923 int ecode4 = 0 ;
20924 PyObject * obj0 = 0 ;
20925 PyObject * obj1 = 0 ;
20926 PyObject * obj2 = 0 ;
20927 PyObject * obj3 = 0 ;
20928 PyObject * obj4 = 0 ;
20929 char * kwnames[] = {
20930 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL
20931 };
20932
20933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20935 if (!SWIG_IsOK(res1)) {
20936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_Connect" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20937 }
20938 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20939 ecode2 = SWIG_AsVal_int(obj1, &val2);
20940 if (!SWIG_IsOK(ecode2)) {
20941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EvtHandler_Connect" "', expected argument " "2"" of type '" "int""'");
20942 }
20943 arg2 = static_cast< int >(val2);
20944 ecode3 = SWIG_AsVal_int(obj2, &val3);
20945 if (!SWIG_IsOK(ecode3)) {
20946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EvtHandler_Connect" "', expected argument " "3"" of type '" "int""'");
20947 }
20948 arg3 = static_cast< int >(val3);
20949 ecode4 = SWIG_AsVal_int(obj3, &val4);
20950 if (!SWIG_IsOK(ecode4)) {
20951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EvtHandler_Connect" "', expected argument " "4"" of type '" "int""'");
20952 }
20953 arg4 = static_cast< int >(val4);
20954 arg5 = obj4;
20955 {
20956 PyThreadState* __tstate = wxPyBeginAllowThreads();
20957 wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5);
20958 wxPyEndAllowThreads(__tstate);
20959 if (PyErr_Occurred()) SWIG_fail;
20960 }
20961 resultobj = SWIG_Py_Void();
20962 return resultobj;
20963fail:
20964 return NULL;
20965}
20966
20967
20968SWIGINTERN PyObject *_wrap_EvtHandler_Disconnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20969 PyObject *resultobj = 0;
20970 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20971 int arg2 ;
20972 int arg3 = (int) -1 ;
20973 wxEventType arg4 = (wxEventType) wxEVT_NULL ;
20974 bool result;
20975 void *argp1 = 0 ;
20976 int res1 = 0 ;
20977 int val2 ;
20978 int ecode2 = 0 ;
20979 int val3 ;
20980 int ecode3 = 0 ;
20981 int val4 ;
20982 int ecode4 = 0 ;
20983 PyObject * obj0 = 0 ;
20984 PyObject * obj1 = 0 ;
20985 PyObject * obj2 = 0 ;
20986 PyObject * obj3 = 0 ;
20987 char * kwnames[] = {
20988 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL
20989 };
20990
20991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
20993 if (!SWIG_IsOK(res1)) {
20994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_Disconnect" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
20995 }
20996 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
20997 ecode2 = SWIG_AsVal_int(obj1, &val2);
20998 if (!SWIG_IsOK(ecode2)) {
20999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EvtHandler_Disconnect" "', expected argument " "2"" of type '" "int""'");
21000 }
21001 arg2 = static_cast< int >(val2);
21002 if (obj2) {
21003 ecode3 = SWIG_AsVal_int(obj2, &val3);
21004 if (!SWIG_IsOK(ecode3)) {
21005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EvtHandler_Disconnect" "', expected argument " "3"" of type '" "int""'");
21006 }
21007 arg3 = static_cast< int >(val3);
21008 }
21009 if (obj3) {
21010 ecode4 = SWIG_AsVal_int(obj3, &val4);
21011 if (!SWIG_IsOK(ecode4)) {
21012 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EvtHandler_Disconnect" "', expected argument " "4"" of type '" "wxEventType""'");
21013 }
21014 arg4 = static_cast< wxEventType >(val4);
21015 }
21016 {
21017 PyThreadState* __tstate = wxPyBeginAllowThreads();
21018 result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4);
21019 wxPyEndAllowThreads(__tstate);
21020 if (PyErr_Occurred()) SWIG_fail;
21021 }
21022 {
21023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21024 }
21025 return resultobj;
21026fail:
21027 return NULL;
21028}
21029
21030
21031SWIGINTERN PyObject *_wrap_EvtHandler__setOORInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21032 PyObject *resultobj = 0;
21033 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
21034 PyObject *arg2 = (PyObject *) 0 ;
21035 bool arg3 = (bool) true ;
21036 void *argp1 = 0 ;
21037 int res1 = 0 ;
21038 bool val3 ;
21039 int ecode3 = 0 ;
21040 PyObject * obj0 = 0 ;
21041 PyObject * obj1 = 0 ;
21042 PyObject * obj2 = 0 ;
21043 char * kwnames[] = {
21044 (char *) "self",(char *) "_self",(char *) "incref", NULL
21045 };
21046
21047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:EvtHandler__setOORInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
21049 if (!SWIG_IsOK(res1)) {
21050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler__setOORInfo" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
21051 }
21052 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
21053 arg2 = obj1;
21054 if (obj2) {
21055 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21056 if (!SWIG_IsOK(ecode3)) {
21057 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EvtHandler__setOORInfo" "', expected argument " "3"" of type '" "bool""'");
21058 }
21059 arg3 = static_cast< bool >(val3);
21060 }
21061 {
21062 PyThreadState* __tstate = wxPyBeginAllowThreads();
21063 wxEvtHandler__setOORInfo(arg1,arg2,arg3);
21064 wxPyEndAllowThreads(__tstate);
21065 if (PyErr_Occurred()) SWIG_fail;
21066 }
21067 resultobj = SWIG_Py_Void();
21068 return resultobj;
21069fail:
21070 return NULL;
943e8dfd
RD
21071}
21072
21073
1bd55598
RD
21074SWIGINTERN PyObject *EvtHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21075 PyObject *obj;
21076 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21077 SWIG_TypeNewClientData(SWIGTYPE_p_wxEvtHandler, SWIG_NewClientData(obj));
21078 return SWIG_Py_Void();
d55e5bfc
RD
21079}
21080
1bd55598
RD
21081SWIGINTERN PyObject *EvtHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21082 return SWIG_Python_InitShadowInstance(args);
21083}
d55e5bfc 21084
1bd55598
RD
21085SWIGINTERN PyObject *_wrap_NewEventType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21086 PyObject *resultobj = 0;
21087 wxEventType result;
21088
21089 if (!SWIG_Python_UnpackTuple(args,"NewEventType",0,0,0)) SWIG_fail;
21090 {
21091 PyThreadState* __tstate = wxPyBeginAllowThreads();
21092 result = (wxEventType)wxNewEventType();
21093 wxPyEndAllowThreads(__tstate);
21094 if (PyErr_Occurred()) SWIG_fail;
21095 }
21096 resultobj = SWIG_From_int(static_cast< int >(result));
21097 return resultobj;
21098fail:
21099 return NULL;
d55e5bfc
RD
21100}
21101
21102
1bd55598
RD
21103SWIGINTERN PyObject *_wrap_delete_Event(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21104 PyObject *resultobj = 0;
21105 wxEvent *arg1 = (wxEvent *) 0 ;
21106 void *argp1 = 0 ;
21107 int res1 = 0 ;
21108 PyObject *swig_obj[1] ;
21109
21110 if (!args) SWIG_fail;
21111 swig_obj[0] = args;
21112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, SWIG_POINTER_DISOWN | 0 );
21113 if (!SWIG_IsOK(res1)) {
21114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Event" "', expected argument " "1"" of type '" "wxEvent *""'");
21115 }
21116 arg1 = reinterpret_cast< wxEvent * >(argp1);
21117 {
21118 PyThreadState* __tstate = wxPyBeginAllowThreads();
21119 delete arg1;
d55e5bfc 21120
1bd55598
RD
21121 wxPyEndAllowThreads(__tstate);
21122 if (PyErr_Occurred()) SWIG_fail;
21123 }
21124 resultobj = SWIG_Py_Void();
21125 return resultobj;
21126fail:
21127 return NULL;
21128}
21129
21130
21131SWIGINTERN PyObject *_wrap_Event_SetEventType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21132 PyObject *resultobj = 0;
21133 wxEvent *arg1 = (wxEvent *) 0 ;
21134 wxEventType arg2 ;
21135 void *argp1 = 0 ;
21136 int res1 = 0 ;
21137 int val2 ;
21138 int ecode2 = 0 ;
21139 PyObject * obj0 = 0 ;
21140 PyObject * obj1 = 0 ;
21141 char * kwnames[] = {
21142 (char *) "self",(char *) "typ", NULL
21143 };
21144
21145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) SWIG_fail;
21146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21147 if (!SWIG_IsOK(res1)) {
21148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_SetEventType" "', expected argument " "1"" of type '" "wxEvent *""'");
21149 }
21150 arg1 = reinterpret_cast< wxEvent * >(argp1);
21151 ecode2 = SWIG_AsVal_int(obj1, &val2);
21152 if (!SWIG_IsOK(ecode2)) {
21153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Event_SetEventType" "', expected argument " "2"" of type '" "wxEventType""'");
21154 }
21155 arg2 = static_cast< wxEventType >(val2);
21156 {
21157 PyThreadState* __tstate = wxPyBeginAllowThreads();
21158 (arg1)->SetEventType(arg2);
21159 wxPyEndAllowThreads(__tstate);
21160 if (PyErr_Occurred()) SWIG_fail;
21161 }
21162 resultobj = SWIG_Py_Void();
21163 return resultobj;
21164fail:
21165 return NULL;
d55e5bfc
RD
21166}
21167
21168
1bd55598
RD
21169SWIGINTERN PyObject *_wrap_Event_GetEventType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21170 PyObject *resultobj = 0;
21171 wxEvent *arg1 = (wxEvent *) 0 ;
21172 wxEventType result;
21173 void *argp1 = 0 ;
21174 int res1 = 0 ;
21175 PyObject *swig_obj[1] ;
21176
21177 if (!args) SWIG_fail;
21178 swig_obj[0] = args;
21179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21180 if (!SWIG_IsOK(res1)) {
21181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_GetEventType" "', expected argument " "1"" of type '" "wxEvent const *""'");
21182 }
21183 arg1 = reinterpret_cast< wxEvent * >(argp1);
21184 {
21185 PyThreadState* __tstate = wxPyBeginAllowThreads();
21186 result = (wxEventType)((wxEvent const *)arg1)->GetEventType();
21187 wxPyEndAllowThreads(__tstate);
21188 if (PyErr_Occurred()) SWIG_fail;
21189 }
21190 resultobj = SWIG_From_int(static_cast< int >(result));
21191 return resultobj;
21192fail:
21193 return NULL;
d55e5bfc
RD
21194}
21195
21196
1bd55598
RD
21197SWIGINTERN PyObject *_wrap_Event_GetEventObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21198 PyObject *resultobj = 0;
21199 wxEvent *arg1 = (wxEvent *) 0 ;
21200 wxObject *result = 0 ;
21201 void *argp1 = 0 ;
21202 int res1 = 0 ;
21203 PyObject *swig_obj[1] ;
21204
21205 if (!args) SWIG_fail;
21206 swig_obj[0] = args;
21207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21208 if (!SWIG_IsOK(res1)) {
21209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_GetEventObject" "', expected argument " "1"" of type '" "wxEvent const *""'");
21210 }
21211 arg1 = reinterpret_cast< wxEvent * >(argp1);
21212 {
21213 PyThreadState* __tstate = wxPyBeginAllowThreads();
21214 result = (wxObject *)((wxEvent const *)arg1)->GetEventObject();
21215 wxPyEndAllowThreads(__tstate);
21216 if (PyErr_Occurred()) SWIG_fail;
21217 }
21218 {
21219 resultobj = wxPyMake_wxObject(result, (bool)0);
21220 }
21221 return resultobj;
21222fail:
21223 return NULL;
21224}
21225
21226
21227SWIGINTERN PyObject *_wrap_Event_SetEventObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21228 PyObject *resultobj = 0;
21229 wxEvent *arg1 = (wxEvent *) 0 ;
21230 wxObject *arg2 = (wxObject *) 0 ;
21231 void *argp1 = 0 ;
21232 int res1 = 0 ;
21233 void *argp2 = 0 ;
21234 int res2 = 0 ;
21235 PyObject * obj0 = 0 ;
21236 PyObject * obj1 = 0 ;
21237 char * kwnames[] = {
21238 (char *) "self",(char *) "obj", NULL
21239 };
21240
21241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) SWIG_fail;
21242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21243 if (!SWIG_IsOK(res1)) {
21244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_SetEventObject" "', expected argument " "1"" of type '" "wxEvent *""'");
21245 }
21246 arg1 = reinterpret_cast< wxEvent * >(argp1);
21247 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
21248 if (!SWIG_IsOK(res2)) {
21249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_SetEventObject" "', expected argument " "2"" of type '" "wxObject *""'");
21250 }
21251 arg2 = reinterpret_cast< wxObject * >(argp2);
21252 {
21253 PyThreadState* __tstate = wxPyBeginAllowThreads();
21254 (arg1)->SetEventObject(arg2);
21255 wxPyEndAllowThreads(__tstate);
21256 if (PyErr_Occurred()) SWIG_fail;
21257 }
21258 resultobj = SWIG_Py_Void();
21259 return resultobj;
21260fail:
21261 return NULL;
d55e5bfc
RD
21262}
21263
21264
1bd55598
RD
21265SWIGINTERN PyObject *_wrap_Event_GetTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21266 PyObject *resultobj = 0;
21267 wxEvent *arg1 = (wxEvent *) 0 ;
21268 long result;
21269 void *argp1 = 0 ;
21270 int res1 = 0 ;
21271 PyObject *swig_obj[1] ;
21272
21273 if (!args) SWIG_fail;
21274 swig_obj[0] = args;
21275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21276 if (!SWIG_IsOK(res1)) {
21277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_GetTimestamp" "', expected argument " "1"" of type '" "wxEvent const *""'");
21278 }
21279 arg1 = reinterpret_cast< wxEvent * >(argp1);
21280 {
21281 PyThreadState* __tstate = wxPyBeginAllowThreads();
21282 result = (long)((wxEvent const *)arg1)->GetTimestamp();
21283 wxPyEndAllowThreads(__tstate);
21284 if (PyErr_Occurred()) SWIG_fail;
21285 }
21286 resultobj = SWIG_From_long(static_cast< long >(result));
21287 return resultobj;
21288fail:
21289 return NULL;
21290}
21291
21292
21293SWIGINTERN PyObject *_wrap_Event_SetTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21294 PyObject *resultobj = 0;
21295 wxEvent *arg1 = (wxEvent *) 0 ;
21296 long arg2 = (long) 0 ;
21297 void *argp1 = 0 ;
21298 int res1 = 0 ;
21299 long val2 ;
21300 int ecode2 = 0 ;
21301 PyObject * obj0 = 0 ;
21302 PyObject * obj1 = 0 ;
21303 char * kwnames[] = {
21304 (char *) "self",(char *) "ts", NULL
21305 };
21306
21307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) SWIG_fail;
21308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21309 if (!SWIG_IsOK(res1)) {
21310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_SetTimestamp" "', expected argument " "1"" of type '" "wxEvent *""'");
21311 }
21312 arg1 = reinterpret_cast< wxEvent * >(argp1);
21313 if (obj1) {
21314 ecode2 = SWIG_AsVal_long(obj1, &val2);
21315 if (!SWIG_IsOK(ecode2)) {
21316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Event_SetTimestamp" "', expected argument " "2"" of type '" "long""'");
21317 }
21318 arg2 = static_cast< long >(val2);
21319 }
21320 {
21321 PyThreadState* __tstate = wxPyBeginAllowThreads();
21322 (arg1)->SetTimestamp(arg2);
21323 wxPyEndAllowThreads(__tstate);
21324 if (PyErr_Occurred()) SWIG_fail;
21325 }
21326 resultobj = SWIG_Py_Void();
21327 return resultobj;
21328fail:
21329 return NULL;
d55e5bfc
RD
21330}
21331
21332
1bd55598
RD
21333SWIGINTERN PyObject *_wrap_Event_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21334 PyObject *resultobj = 0;
21335 wxEvent *arg1 = (wxEvent *) 0 ;
21336 int result;
21337 void *argp1 = 0 ;
21338 int res1 = 0 ;
21339 PyObject *swig_obj[1] ;
21340
21341 if (!args) SWIG_fail;
21342 swig_obj[0] = args;
21343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21344 if (!SWIG_IsOK(res1)) {
21345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_GetId" "', expected argument " "1"" of type '" "wxEvent const *""'");
21346 }
21347 arg1 = reinterpret_cast< wxEvent * >(argp1);
21348 {
21349 PyThreadState* __tstate = wxPyBeginAllowThreads();
21350 result = (int)((wxEvent const *)arg1)->GetId();
21351 wxPyEndAllowThreads(__tstate);
21352 if (PyErr_Occurred()) SWIG_fail;
21353 }
21354 resultobj = SWIG_From_int(static_cast< int >(result));
21355 return resultobj;
21356fail:
21357 return NULL;
21358}
21359
21360
21361SWIGINTERN PyObject *_wrap_Event_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21362 PyObject *resultobj = 0;
21363 wxEvent *arg1 = (wxEvent *) 0 ;
21364 int arg2 ;
21365 void *argp1 = 0 ;
21366 int res1 = 0 ;
21367 int val2 ;
21368 int ecode2 = 0 ;
21369 PyObject * obj0 = 0 ;
21370 PyObject * obj1 = 0 ;
21371 char * kwnames[] = {
21372 (char *) "self",(char *) "Id", NULL
21373 };
21374
21375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
21376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21377 if (!SWIG_IsOK(res1)) {
21378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_SetId" "', expected argument " "1"" of type '" "wxEvent *""'");
21379 }
21380 arg1 = reinterpret_cast< wxEvent * >(argp1);
21381 ecode2 = SWIG_AsVal_int(obj1, &val2);
21382 if (!SWIG_IsOK(ecode2)) {
21383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Event_SetId" "', expected argument " "2"" of type '" "int""'");
21384 }
21385 arg2 = static_cast< int >(val2);
21386 {
21387 PyThreadState* __tstate = wxPyBeginAllowThreads();
21388 (arg1)->SetId(arg2);
21389 wxPyEndAllowThreads(__tstate);
21390 if (PyErr_Occurred()) SWIG_fail;
21391 }
21392 resultobj = SWIG_Py_Void();
21393 return resultobj;
21394fail:
21395 return NULL;
d55e5bfc
RD
21396}
21397
21398
1bd55598
RD
21399SWIGINTERN PyObject *_wrap_Event_IsCommandEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21400 PyObject *resultobj = 0;
21401 wxEvent *arg1 = (wxEvent *) 0 ;
21402 bool result;
21403 void *argp1 = 0 ;
21404 int res1 = 0 ;
21405 PyObject *swig_obj[1] ;
21406
21407 if (!args) SWIG_fail;
21408 swig_obj[0] = args;
21409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21410 if (!SWIG_IsOK(res1)) {
21411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_IsCommandEvent" "', expected argument " "1"" of type '" "wxEvent const *""'");
21412 }
21413 arg1 = reinterpret_cast< wxEvent * >(argp1);
21414 {
21415 PyThreadState* __tstate = wxPyBeginAllowThreads();
21416 result = (bool)((wxEvent const *)arg1)->IsCommandEvent();
21417 wxPyEndAllowThreads(__tstate);
21418 if (PyErr_Occurred()) SWIG_fail;
21419 }
21420 {
21421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21422 }
21423 return resultobj;
21424fail:
21425 return NULL;
21426}
21427
21428
21429SWIGINTERN PyObject *_wrap_Event_Skip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21430 PyObject *resultobj = 0;
21431 wxEvent *arg1 = (wxEvent *) 0 ;
21432 bool arg2 = (bool) true ;
21433 void *argp1 = 0 ;
21434 int res1 = 0 ;
21435 bool val2 ;
21436 int ecode2 = 0 ;
21437 PyObject * obj0 = 0 ;
21438 PyObject * obj1 = 0 ;
21439 char * kwnames[] = {
21440 (char *) "self",(char *) "skip", NULL
21441 };
21442
21443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) SWIG_fail;
21444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21445 if (!SWIG_IsOK(res1)) {
21446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_Skip" "', expected argument " "1"" of type '" "wxEvent *""'");
21447 }
21448 arg1 = reinterpret_cast< wxEvent * >(argp1);
21449 if (obj1) {
21450 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21451 if (!SWIG_IsOK(ecode2)) {
21452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Event_Skip" "', expected argument " "2"" of type '" "bool""'");
21453 }
21454 arg2 = static_cast< bool >(val2);
21455 }
21456 {
21457 PyThreadState* __tstate = wxPyBeginAllowThreads();
21458 (arg1)->Skip(arg2);
21459 wxPyEndAllowThreads(__tstate);
21460 if (PyErr_Occurred()) SWIG_fail;
21461 }
21462 resultobj = SWIG_Py_Void();
21463 return resultobj;
21464fail:
21465 return NULL;
d55e5bfc
RD
21466}
21467
21468
1bd55598
RD
21469SWIGINTERN PyObject *_wrap_Event_GetSkipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21470 PyObject *resultobj = 0;
21471 wxEvent *arg1 = (wxEvent *) 0 ;
21472 bool result;
21473 void *argp1 = 0 ;
21474 int res1 = 0 ;
21475 PyObject *swig_obj[1] ;
21476
21477 if (!args) SWIG_fail;
21478 swig_obj[0] = args;
21479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21480 if (!SWIG_IsOK(res1)) {
21481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_GetSkipped" "', expected argument " "1"" of type '" "wxEvent const *""'");
21482 }
21483 arg1 = reinterpret_cast< wxEvent * >(argp1);
21484 {
21485 PyThreadState* __tstate = wxPyBeginAllowThreads();
21486 result = (bool)((wxEvent const *)arg1)->GetSkipped();
21487 wxPyEndAllowThreads(__tstate);
21488 if (PyErr_Occurred()) SWIG_fail;
21489 }
21490 {
21491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21492 }
21493 return resultobj;
21494fail:
21495 return NULL;
03e46024
RD
21496}
21497
21498
1bd55598
RD
21499SWIGINTERN PyObject *_wrap_Event_ShouldPropagate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21500 PyObject *resultobj = 0;
21501 wxEvent *arg1 = (wxEvent *) 0 ;
21502 bool result;
21503 void *argp1 = 0 ;
21504 int res1 = 0 ;
21505 PyObject *swig_obj[1] ;
21506
21507 if (!args) SWIG_fail;
21508 swig_obj[0] = args;
21509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21510 if (!SWIG_IsOK(res1)) {
21511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_ShouldPropagate" "', expected argument " "1"" of type '" "wxEvent const *""'");
21512 }
21513 arg1 = reinterpret_cast< wxEvent * >(argp1);
21514 {
21515 PyThreadState* __tstate = wxPyBeginAllowThreads();
21516 result = (bool)((wxEvent const *)arg1)->ShouldPropagate();
21517 wxPyEndAllowThreads(__tstate);
21518 if (PyErr_Occurred()) SWIG_fail;
21519 }
21520 {
21521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21522 }
21523 return resultobj;
21524fail:
21525 return NULL;
d55e5bfc
RD
21526}
21527
21528
1bd55598
RD
21529SWIGINTERN PyObject *_wrap_Event_StopPropagation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21530 PyObject *resultobj = 0;
21531 wxEvent *arg1 = (wxEvent *) 0 ;
21532 int result;
21533 void *argp1 = 0 ;
21534 int res1 = 0 ;
21535 PyObject *swig_obj[1] ;
21536
21537 if (!args) SWIG_fail;
21538 swig_obj[0] = args;
21539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21540 if (!SWIG_IsOK(res1)) {
21541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_StopPropagation" "', expected argument " "1"" of type '" "wxEvent *""'");
21542 }
21543 arg1 = reinterpret_cast< wxEvent * >(argp1);
21544 {
21545 PyThreadState* __tstate = wxPyBeginAllowThreads();
21546 result = (int)(arg1)->StopPropagation();
21547 wxPyEndAllowThreads(__tstate);
21548 if (PyErr_Occurred()) SWIG_fail;
21549 }
21550 resultobj = SWIG_From_int(static_cast< int >(result));
21551 return resultobj;
21552fail:
21553 return NULL;
21554}
21555
21556
21557SWIGINTERN PyObject *_wrap_Event_ResumePropagation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21558 PyObject *resultobj = 0;
21559 wxEvent *arg1 = (wxEvent *) 0 ;
21560 int arg2 ;
21561 void *argp1 = 0 ;
21562 int res1 = 0 ;
21563 int val2 ;
21564 int ecode2 = 0 ;
21565 PyObject * obj0 = 0 ;
21566 PyObject * obj1 = 0 ;
21567 char * kwnames[] = {
21568 (char *) "self",(char *) "propagationLevel", NULL
21569 };
21570
21571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) SWIG_fail;
21572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21573 if (!SWIG_IsOK(res1)) {
21574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_ResumePropagation" "', expected argument " "1"" of type '" "wxEvent *""'");
21575 }
21576 arg1 = reinterpret_cast< wxEvent * >(argp1);
21577 ecode2 = SWIG_AsVal_int(obj1, &val2);
21578 if (!SWIG_IsOK(ecode2)) {
21579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Event_ResumePropagation" "', expected argument " "2"" of type '" "int""'");
21580 }
21581 arg2 = static_cast< int >(val2);
21582 {
21583 PyThreadState* __tstate = wxPyBeginAllowThreads();
21584 (arg1)->ResumePropagation(arg2);
21585 wxPyEndAllowThreads(__tstate);
21586 if (PyErr_Occurred()) SWIG_fail;
21587 }
21588 resultobj = SWIG_Py_Void();
21589 return resultobj;
21590fail:
21591 return NULL;
d55e5bfc
RD
21592}
21593
21594
1bd55598
RD
21595SWIGINTERN PyObject *_wrap_Event_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21596 PyObject *resultobj = 0;
21597 wxEvent *arg1 = (wxEvent *) 0 ;
21598 wxEvent *result = 0 ;
21599 void *argp1 = 0 ;
21600 int res1 = 0 ;
21601 PyObject *swig_obj[1] ;
21602
21603 if (!args) SWIG_fail;
21604 swig_obj[0] = args;
21605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
21606 if (!SWIG_IsOK(res1)) {
21607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_Clone" "', expected argument " "1"" of type '" "wxEvent *""'");
21608 }
21609 arg1 = reinterpret_cast< wxEvent * >(argp1);
21610 {
21611 PyThreadState* __tstate = wxPyBeginAllowThreads();
21612 result = (wxEvent *)(arg1)->Clone();
21613 wxPyEndAllowThreads(__tstate);
21614 if (PyErr_Occurred()) SWIG_fail;
21615 }
21616 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEvent, 0 | 0 );
21617 return resultobj;
21618fail:
21619 return NULL;
d55e5bfc
RD
21620}
21621
21622
1bd55598
RD
21623SWIGINTERN PyObject *Event_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21624 PyObject *obj;
21625 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21626 SWIG_TypeNewClientData(SWIGTYPE_p_wxEvent, SWIG_NewClientData(obj));
21627 return SWIG_Py_Void();
d55e5bfc
RD
21628}
21629
1bd55598
RD
21630SWIGINTERN PyObject *_wrap_new_PropagationDisabler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21631 PyObject *resultobj = 0;
21632 wxEvent *arg1 = 0 ;
21633 wxPropagationDisabler *result = 0 ;
21634 void *argp1 = 0 ;
21635 int res1 = 0 ;
21636 PyObject * obj0 = 0 ;
21637 char * kwnames[] = {
21638 (char *) "event", NULL
21639 };
21640
21641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) SWIG_fail;
21642 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxEvent, 0 );
21643 if (!SWIG_IsOK(res1)) {
21644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PropagationDisabler" "', expected argument " "1"" of type '" "wxEvent &""'");
21645 }
21646 if (!argp1) {
21647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PropagationDisabler" "', expected argument " "1"" of type '" "wxEvent &""'");
21648 }
21649 arg1 = reinterpret_cast< wxEvent * >(argp1);
21650 {
21651 PyThreadState* __tstate = wxPyBeginAllowThreads();
21652 result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1);
21653 wxPyEndAllowThreads(__tstate);
21654 if (PyErr_Occurred()) SWIG_fail;
21655 }
21656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPropagationDisabler, SWIG_POINTER_NEW | 0 );
21657 return resultobj;
21658fail:
21659 return NULL;
d55e5bfc
RD
21660}
21661
21662
1bd55598
RD
21663SWIGINTERN PyObject *_wrap_delete_PropagationDisabler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21664 PyObject *resultobj = 0;
21665 wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ;
21666 void *argp1 = 0 ;
21667 int res1 = 0 ;
21668 PyObject *swig_obj[1] ;
21669
21670 if (!args) SWIG_fail;
21671 swig_obj[0] = args;
21672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPropagationDisabler, SWIG_POINTER_DISOWN | 0 );
21673 if (!SWIG_IsOK(res1)) {
21674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PropagationDisabler" "', expected argument " "1"" of type '" "wxPropagationDisabler *""'");
21675 }
21676 arg1 = reinterpret_cast< wxPropagationDisabler * >(argp1);
21677 {
21678 PyThreadState* __tstate = wxPyBeginAllowThreads();
21679 delete arg1;
aff4cc5c 21680
1bd55598
RD
21681 wxPyEndAllowThreads(__tstate);
21682 if (PyErr_Occurred()) SWIG_fail;
21683 }
21684 resultobj = SWIG_Py_Void();
21685 return resultobj;
21686fail:
21687 return NULL;
aff4cc5c
RD
21688}
21689
21690
1bd55598
RD
21691SWIGINTERN PyObject *PropagationDisabler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21692 PyObject *obj;
21693 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21694 SWIG_TypeNewClientData(SWIGTYPE_p_wxPropagationDisabler, SWIG_NewClientData(obj));
21695 return SWIG_Py_Void();
d55e5bfc
RD
21696}
21697
1bd55598
RD
21698SWIGINTERN PyObject *PropagationDisabler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21699 return SWIG_Python_InitShadowInstance(args);
21700}
d55e5bfc 21701
1bd55598
RD
21702SWIGINTERN PyObject *_wrap_new_PropagateOnce(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21703 PyObject *resultobj = 0;
21704 wxEvent *arg1 = 0 ;
21705 wxPropagateOnce *result = 0 ;
21706 void *argp1 = 0 ;
21707 int res1 = 0 ;
21708 PyObject * obj0 = 0 ;
21709 char * kwnames[] = {
21710 (char *) "event", NULL
21711 };
21712
21713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) SWIG_fail;
21714 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxEvent, 0 );
21715 if (!SWIG_IsOK(res1)) {
21716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PropagateOnce" "', expected argument " "1"" of type '" "wxEvent &""'");
21717 }
21718 if (!argp1) {
21719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PropagateOnce" "', expected argument " "1"" of type '" "wxEvent &""'");
21720 }
21721 arg1 = reinterpret_cast< wxEvent * >(argp1);
21722 {
21723 PyThreadState* __tstate = wxPyBeginAllowThreads();
21724 result = (wxPropagateOnce *)new wxPropagateOnce(*arg1);
21725 wxPyEndAllowThreads(__tstate);
21726 if (PyErr_Occurred()) SWIG_fail;
21727 }
21728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPropagateOnce, SWIG_POINTER_NEW | 0 );
21729 return resultobj;
21730fail:
21731 return NULL;
aff4cc5c
RD
21732}
21733
21734
1bd55598
RD
21735SWIGINTERN PyObject *_wrap_delete_PropagateOnce(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21736 PyObject *resultobj = 0;
21737 wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ;
21738 void *argp1 = 0 ;
21739 int res1 = 0 ;
21740 PyObject *swig_obj[1] ;
21741
21742 if (!args) SWIG_fail;
21743 swig_obj[0] = args;
21744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPropagateOnce, SWIG_POINTER_DISOWN | 0 );
21745 if (!SWIG_IsOK(res1)) {
21746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PropagateOnce" "', expected argument " "1"" of type '" "wxPropagateOnce *""'");
21747 }
21748 arg1 = reinterpret_cast< wxPropagateOnce * >(argp1);
21749 {
21750 PyThreadState* __tstate = wxPyBeginAllowThreads();
21751 delete arg1;
d55e5bfc 21752
1bd55598
RD
21753 wxPyEndAllowThreads(__tstate);
21754 if (PyErr_Occurred()) SWIG_fail;
21755 }
21756 resultobj = SWIG_Py_Void();
21757 return resultobj;
21758fail:
21759 return NULL;
d55e5bfc
RD
21760}
21761
21762
1bd55598
RD
21763SWIGINTERN PyObject *PropagateOnce_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21764 PyObject *obj;
21765 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21766 SWIG_TypeNewClientData(SWIGTYPE_p_wxPropagateOnce, SWIG_NewClientData(obj));
21767 return SWIG_Py_Void();
d55e5bfc
RD
21768}
21769
1bd55598
RD
21770SWIGINTERN PyObject *PropagateOnce_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21771 return SWIG_Python_InitShadowInstance(args);
21772}
d55e5bfc 21773
1bd55598
RD
21774SWIGINTERN PyObject *_wrap_new_CommandEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21775 PyObject *resultobj = 0;
21776 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21777 int arg2 = (int) 0 ;
21778 wxCommandEvent *result = 0 ;
21779 int val1 ;
21780 int ecode1 = 0 ;
21781 int val2 ;
21782 int ecode2 = 0 ;
21783 PyObject * obj0 = 0 ;
21784 PyObject * obj1 = 0 ;
21785 char * kwnames[] = {
21786 (char *) "commandType",(char *) "winid", NULL
21787 };
21788
21789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) SWIG_fail;
21790 if (obj0) {
21791 ecode1 = SWIG_AsVal_int(obj0, &val1);
21792 if (!SWIG_IsOK(ecode1)) {
21793 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CommandEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21794 }
21795 arg1 = static_cast< wxEventType >(val1);
21796 }
21797 if (obj1) {
21798 ecode2 = SWIG_AsVal_int(obj1, &val2);
21799 if (!SWIG_IsOK(ecode2)) {
21800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CommandEvent" "', expected argument " "2"" of type '" "int""'");
21801 }
21802 arg2 = static_cast< int >(val2);
21803 }
21804 {
21805 PyThreadState* __tstate = wxPyBeginAllowThreads();
21806 result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2);
21807 wxPyEndAllowThreads(__tstate);
21808 if (PyErr_Occurred()) SWIG_fail;
21809 }
21810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_NEW | 0 );
21811 return resultobj;
21812fail:
21813 return NULL;
d55e5bfc
RD
21814}
21815
21816
1bd55598
RD
21817SWIGINTERN PyObject *_wrap_CommandEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21818 PyObject *resultobj = 0;
21819 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
21820 int result;
21821 void *argp1 = 0 ;
21822 int res1 = 0 ;
21823 PyObject *swig_obj[1] ;
21824
21825 if (!args) SWIG_fail;
21826 swig_obj[0] = args;
21827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
21828 if (!SWIG_IsOK(res1)) {
21829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_GetSelection" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
21830 }
21831 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
21832 {
21833 PyThreadState* __tstate = wxPyBeginAllowThreads();
21834 result = (int)((wxCommandEvent const *)arg1)->GetSelection();
21835 wxPyEndAllowThreads(__tstate);
21836 if (PyErr_Occurred()) SWIG_fail;
21837 }
21838 resultobj = SWIG_From_int(static_cast< int >(result));
21839 return resultobj;
21840fail:
21841 return NULL;
21842}
21843
21844
21845SWIGINTERN PyObject *_wrap_CommandEvent_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21846 PyObject *resultobj = 0;
21847 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
21848 wxString *arg2 = 0 ;
21849 void *argp1 = 0 ;
21850 int res1 = 0 ;
21851 bool temp2 = false ;
21852 PyObject * obj0 = 0 ;
21853 PyObject * obj1 = 0 ;
21854 char * kwnames[] = {
21855 (char *) "self",(char *) "s", NULL
21856 };
21857
21858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) SWIG_fail;
21859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
21860 if (!SWIG_IsOK(res1)) {
21861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_SetString" "', expected argument " "1"" of type '" "wxCommandEvent *""'");
21862 }
21863 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
21864 {
21865 arg2 = wxString_in_helper(obj1);
21866 if (arg2 == NULL) SWIG_fail;
21867 temp2 = true;
21868 }
21869 {
21870 PyThreadState* __tstate = wxPyBeginAllowThreads();
21871 (arg1)->SetString((wxString const &)*arg2);
21872 wxPyEndAllowThreads(__tstate);
21873 if (PyErr_Occurred()) SWIG_fail;
21874 }
21875 resultobj = SWIG_Py_Void();
21876 {
21877 if (temp2)
21878 delete arg2;
21879 }
21880 return resultobj;
21881fail:
21882 {
21883 if (temp2)
21884 delete arg2;
21885 }
21886 return NULL;
d55e5bfc
RD
21887}
21888
21889
1bd55598
RD
21890SWIGINTERN PyObject *_wrap_CommandEvent_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21891 PyObject *resultobj = 0;
21892 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
21893 wxString result;
21894 void *argp1 = 0 ;
21895 int res1 = 0 ;
21896 PyObject *swig_obj[1] ;
21897
21898 if (!args) SWIG_fail;
21899 swig_obj[0] = args;
21900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
21901 if (!SWIG_IsOK(res1)) {
21902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_GetString" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
21903 }
21904 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
21905 {
21906 PyThreadState* __tstate = wxPyBeginAllowThreads();
21907 result = ((wxCommandEvent const *)arg1)->GetString();
21908 wxPyEndAllowThreads(__tstate);
21909 if (PyErr_Occurred()) SWIG_fail;
21910 }
21911 {
21912#if wxUSE_UNICODE
21913 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21914#else
21915 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21916#endif
21917 }
21918 return resultobj;
21919fail:
21920 return NULL;
d55e5bfc
RD
21921}
21922
21923
1bd55598
RD
21924SWIGINTERN PyObject *_wrap_CommandEvent_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21925 PyObject *resultobj = 0;
21926 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
21927 bool result;
21928 void *argp1 = 0 ;
21929 int res1 = 0 ;
21930 PyObject *swig_obj[1] ;
21931
21932 if (!args) SWIG_fail;
21933 swig_obj[0] = args;
21934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
21935 if (!SWIG_IsOK(res1)) {
21936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_IsChecked" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
21937 }
21938 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
21939 {
21940 PyThreadState* __tstate = wxPyBeginAllowThreads();
21941 result = (bool)((wxCommandEvent const *)arg1)->IsChecked();
21942 wxPyEndAllowThreads(__tstate);
21943 if (PyErr_Occurred()) SWIG_fail;
21944 }
21945 {
21946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21947 }
21948 return resultobj;
21949fail:
21950 return NULL;
d55e5bfc
RD
21951}
21952
21953
1bd55598
RD
21954SWIGINTERN PyObject *_wrap_CommandEvent_IsSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21955 PyObject *resultobj = 0;
21956 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
21957 bool result;
21958 void *argp1 = 0 ;
21959 int res1 = 0 ;
21960 PyObject *swig_obj[1] ;
21961
21962 if (!args) SWIG_fail;
21963 swig_obj[0] = args;
21964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
21965 if (!SWIG_IsOK(res1)) {
21966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_IsSelection" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
21967 }
21968 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
21969 {
21970 PyThreadState* __tstate = wxPyBeginAllowThreads();
21971 result = (bool)((wxCommandEvent const *)arg1)->IsSelection();
21972 wxPyEndAllowThreads(__tstate);
21973 if (PyErr_Occurred()) SWIG_fail;
21974 }
21975 {
21976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21977 }
21978 return resultobj;
21979fail:
21980 return NULL;
21981}
21982
21983
21984SWIGINTERN PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21985 PyObject *resultobj = 0;
21986 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
21987 long arg2 ;
21988 void *argp1 = 0 ;
21989 int res1 = 0 ;
21990 long val2 ;
21991 int ecode2 = 0 ;
21992 PyObject * obj0 = 0 ;
21993 PyObject * obj1 = 0 ;
21994 char * kwnames[] = {
21995 (char *) "self",(char *) "extraLong", NULL
21996 };
21997
21998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) SWIG_fail;
21999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
22000 if (!SWIG_IsOK(res1)) {
22001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_SetExtraLong" "', expected argument " "1"" of type '" "wxCommandEvent *""'");
22002 }
22003 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
22004 ecode2 = SWIG_AsVal_long(obj1, &val2);
22005 if (!SWIG_IsOK(ecode2)) {
22006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CommandEvent_SetExtraLong" "', expected argument " "2"" of type '" "long""'");
22007 }
22008 arg2 = static_cast< long >(val2);
22009 {
22010 PyThreadState* __tstate = wxPyBeginAllowThreads();
22011 (arg1)->SetExtraLong(arg2);
22012 wxPyEndAllowThreads(__tstate);
22013 if (PyErr_Occurred()) SWIG_fail;
22014 }
22015 resultobj = SWIG_Py_Void();
22016 return resultobj;
22017fail:
22018 return NULL;
68350608
RD
22019}
22020
22021
1bd55598
RD
22022SWIGINTERN PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22023 PyObject *resultobj = 0;
22024 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
22025 long result;
22026 void *argp1 = 0 ;
22027 int res1 = 0 ;
22028 PyObject *swig_obj[1] ;
22029
22030 if (!args) SWIG_fail;
22031 swig_obj[0] = args;
22032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
22033 if (!SWIG_IsOK(res1)) {
22034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_GetExtraLong" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
22035 }
22036 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
22037 {
22038 PyThreadState* __tstate = wxPyBeginAllowThreads();
22039 result = (long)((wxCommandEvent const *)arg1)->GetExtraLong();
22040 wxPyEndAllowThreads(__tstate);
22041 if (PyErr_Occurred()) SWIG_fail;
22042 }
22043 resultobj = SWIG_From_long(static_cast< long >(result));
22044 return resultobj;
22045fail:
22046 return NULL;
22047}
22048
22049
22050SWIGINTERN PyObject *_wrap_CommandEvent_SetInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22051 PyObject *resultobj = 0;
22052 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
22053 int arg2 ;
22054 void *argp1 = 0 ;
22055 int res1 = 0 ;
22056 int val2 ;
22057 int ecode2 = 0 ;
22058 PyObject * obj0 = 0 ;
22059 PyObject * obj1 = 0 ;
22060 char * kwnames[] = {
22061 (char *) "self",(char *) "i", NULL
22062 };
22063
22064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) SWIG_fail;
22065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
22066 if (!SWIG_IsOK(res1)) {
22067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_SetInt" "', expected argument " "1"" of type '" "wxCommandEvent *""'");
22068 }
22069 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
22070 ecode2 = SWIG_AsVal_int(obj1, &val2);
22071 if (!SWIG_IsOK(ecode2)) {
22072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CommandEvent_SetInt" "', expected argument " "2"" of type '" "int""'");
22073 }
22074 arg2 = static_cast< int >(val2);
22075 {
22076 PyThreadState* __tstate = wxPyBeginAllowThreads();
22077 (arg1)->SetInt(arg2);
22078 wxPyEndAllowThreads(__tstate);
22079 if (PyErr_Occurred()) SWIG_fail;
22080 }
22081 resultobj = SWIG_Py_Void();
22082 return resultobj;
22083fail:
22084 return NULL;
5b5c9bc7
RD
22085}
22086
22087
1bd55598
RD
22088SWIGINTERN PyObject *_wrap_CommandEvent_GetInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22089 PyObject *resultobj = 0;
22090 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
2131d850 22091 int result;
1bd55598
RD
22092 void *argp1 = 0 ;
22093 int res1 = 0 ;
22094 PyObject *swig_obj[1] ;
22095
22096 if (!args) SWIG_fail;
22097 swig_obj[0] = args;
22098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
22099 if (!SWIG_IsOK(res1)) {
22100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_GetInt" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
22101 }
22102 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
22103 {
22104 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 22105 result = (int)((wxCommandEvent const *)arg1)->GetInt();
1bd55598
RD
22106 wxPyEndAllowThreads(__tstate);
22107 if (PyErr_Occurred()) SWIG_fail;
22108 }
2131d850 22109 resultobj = SWIG_From_int(static_cast< int >(result));
1bd55598
RD
22110 return resultobj;
22111fail:
22112 return NULL;
d55e5bfc
RD
22113}
22114
22115
1bd55598
RD
22116SWIGINTERN PyObject *_wrap_CommandEvent_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22117 PyObject *resultobj = 0;
22118 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
22119 PyObject *result = 0 ;
22120 void *argp1 = 0 ;
22121 int res1 = 0 ;
22122 PyObject *swig_obj[1] ;
22123
22124 if (!args) SWIG_fail;
22125 swig_obj[0] = args;
22126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
22127 if (!SWIG_IsOK(res1)) {
22128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_GetClientData" "', expected argument " "1"" of type '" "wxCommandEvent *""'");
22129 }
22130 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
22131 {
22132 PyThreadState* __tstate = wxPyBeginAllowThreads();
22133 result = (PyObject *)wxCommandEvent_GetClientData(arg1);
22134 wxPyEndAllowThreads(__tstate);
22135 if (PyErr_Occurred()) SWIG_fail;
22136 }
22137 resultobj = result;
22138 return resultobj;
22139fail:
22140 return NULL;
22141}
22142
22143
22144SWIGINTERN PyObject *_wrap_CommandEvent_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22145 PyObject *resultobj = 0;
22146 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
22147 PyObject *arg2 = (PyObject *) 0 ;
22148 void *argp1 = 0 ;
22149 int res1 = 0 ;
22150 PyObject * obj0 = 0 ;
22151 PyObject * obj1 = 0 ;
22152 char * kwnames[] = {
22153 (char *) "self",(char *) "clientData", NULL
22154 };
22155
22156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
22157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
22158 if (!SWIG_IsOK(res1)) {
22159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_SetClientData" "', expected argument " "1"" of type '" "wxCommandEvent *""'");
22160 }
22161 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
22162 arg2 = obj1;
22163 {
22164 PyThreadState* __tstate = wxPyBeginAllowThreads();
22165 wxCommandEvent_SetClientData(arg1,arg2);
22166 wxPyEndAllowThreads(__tstate);
22167 if (PyErr_Occurred()) SWIG_fail;
22168 }
22169 resultobj = SWIG_Py_Void();
22170 return resultobj;
22171fail:
22172 return NULL;
4cf4100f
RD
22173}
22174
22175
1bd55598
RD
22176SWIGINTERN PyObject *_wrap_CommandEvent_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22177 PyObject *resultobj = 0;
22178 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
22179 wxEvent *result = 0 ;
22180 void *argp1 = 0 ;
22181 int res1 = 0 ;
22182 PyObject *swig_obj[1] ;
22183
22184 if (!args) SWIG_fail;
22185 swig_obj[0] = args;
22186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
22187 if (!SWIG_IsOK(res1)) {
22188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_Clone" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
22189 }
22190 arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
22191 {
22192 PyThreadState* __tstate = wxPyBeginAllowThreads();
22193 result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone();
22194 wxPyEndAllowThreads(__tstate);
22195 if (PyErr_Occurred()) SWIG_fail;
22196 }
22197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEvent, 0 | 0 );
22198 return resultobj;
22199fail:
22200 return NULL;
8fb0e70a
RD
22201}
22202
22203
1bd55598
RD
22204SWIGINTERN PyObject *CommandEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22205 PyObject *obj;
22206 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22207 SWIG_TypeNewClientData(SWIGTYPE_p_wxCommandEvent, SWIG_NewClientData(obj));
22208 return SWIG_Py_Void();
d55e5bfc
RD
22209}
22210
1bd55598
RD
22211SWIGINTERN PyObject *CommandEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22212 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
22213}
22214
1bd55598
RD
22215SWIGINTERN PyObject *_wrap_new_NotifyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22216 PyObject *resultobj = 0;
22217 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22218 int arg2 = (int) 0 ;
22219 wxNotifyEvent *result = 0 ;
22220 int val1 ;
22221 int ecode1 = 0 ;
22222 int val2 ;
22223 int ecode2 = 0 ;
22224 PyObject * obj0 = 0 ;
22225 PyObject * obj1 = 0 ;
22226 char * kwnames[] = {
22227 (char *) "commandType",(char *) "winid", NULL
22228 };
22229
22230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
22231 if (obj0) {
22232 ecode1 = SWIG_AsVal_int(obj0, &val1);
22233 if (!SWIG_IsOK(ecode1)) {
22234 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotifyEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22235 }
22236 arg1 = static_cast< wxEventType >(val1);
22237 }
22238 if (obj1) {
22239 ecode2 = SWIG_AsVal_int(obj1, &val2);
22240 if (!SWIG_IsOK(ecode2)) {
22241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotifyEvent" "', expected argument " "2"" of type '" "int""'");
22242 }
22243 arg2 = static_cast< int >(val2);
22244 }
22245 {
22246 PyThreadState* __tstate = wxPyBeginAllowThreads();
22247 result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2);
22248 wxPyEndAllowThreads(__tstate);
22249 if (PyErr_Occurred()) SWIG_fail;
22250 }
22251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotifyEvent, SWIG_POINTER_NEW | 0 );
22252 return resultobj;
22253fail:
22254 return NULL;
d55e5bfc
RD
22255}
22256
22257
1bd55598
RD
22258SWIGINTERN PyObject *_wrap_NotifyEvent_Veto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22259 PyObject *resultobj = 0;
22260 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
22261 void *argp1 = 0 ;
22262 int res1 = 0 ;
22263 PyObject *swig_obj[1] ;
22264
22265 if (!args) SWIG_fail;
22266 swig_obj[0] = args;
22267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotifyEvent, 0 | 0 );
22268 if (!SWIG_IsOK(res1)) {
22269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NotifyEvent_Veto" "', expected argument " "1"" of type '" "wxNotifyEvent *""'");
22270 }
22271 arg1 = reinterpret_cast< wxNotifyEvent * >(argp1);
22272 {
22273 PyThreadState* __tstate = wxPyBeginAllowThreads();
22274 (arg1)->Veto();
22275 wxPyEndAllowThreads(__tstate);
22276 if (PyErr_Occurred()) SWIG_fail;
22277 }
22278 resultobj = SWIG_Py_Void();
22279 return resultobj;
22280fail:
22281 return NULL;
d55e5bfc
RD
22282}
22283
22284
1bd55598
RD
22285SWIGINTERN PyObject *_wrap_NotifyEvent_Allow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22286 PyObject *resultobj = 0;
22287 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
22288 void *argp1 = 0 ;
22289 int res1 = 0 ;
22290 PyObject *swig_obj[1] ;
22291
22292 if (!args) SWIG_fail;
22293 swig_obj[0] = args;
22294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotifyEvent, 0 | 0 );
22295 if (!SWIG_IsOK(res1)) {
22296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NotifyEvent_Allow" "', expected argument " "1"" of type '" "wxNotifyEvent *""'");
22297 }
22298 arg1 = reinterpret_cast< wxNotifyEvent * >(argp1);
22299 {
22300 PyThreadState* __tstate = wxPyBeginAllowThreads();
22301 (arg1)->Allow();
22302 wxPyEndAllowThreads(__tstate);
22303 if (PyErr_Occurred()) SWIG_fail;
22304 }
22305 resultobj = SWIG_Py_Void();
22306 return resultobj;
22307fail:
22308 return NULL;
d55e5bfc
RD
22309}
22310
22311
1bd55598
RD
22312SWIGINTERN PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22313 PyObject *resultobj = 0;
22314 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
22315 bool result;
22316 void *argp1 = 0 ;
22317 int res1 = 0 ;
22318 PyObject *swig_obj[1] ;
22319
22320 if (!args) SWIG_fail;
22321 swig_obj[0] = args;
22322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotifyEvent, 0 | 0 );
22323 if (!SWIG_IsOK(res1)) {
22324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NotifyEvent_IsAllowed" "', expected argument " "1"" of type '" "wxNotifyEvent *""'");
22325 }
22326 arg1 = reinterpret_cast< wxNotifyEvent * >(argp1);
22327 {
22328 PyThreadState* __tstate = wxPyBeginAllowThreads();
22329 result = (bool)(arg1)->IsAllowed();
22330 wxPyEndAllowThreads(__tstate);
22331 if (PyErr_Occurred()) SWIG_fail;
22332 }
22333 {
22334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22335 }
22336 return resultobj;
22337fail:
22338 return NULL;
22339}
22340
22341
22342SWIGINTERN PyObject *NotifyEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22343 PyObject *obj;
22344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22345 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotifyEvent, SWIG_NewClientData(obj));
22346 return SWIG_Py_Void();
22347}
22348
22349SWIGINTERN PyObject *NotifyEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22350 return SWIG_Python_InitShadowInstance(args);
22351}
22352
22353SWIGINTERN PyObject *_wrap_new_ScrollEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22354 PyObject *resultobj = 0;
22355 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22356 int arg2 = (int) 0 ;
22357 int arg3 = (int) 0 ;
22358 int arg4 = (int) 0 ;
22359 wxScrollEvent *result = 0 ;
22360 int val1 ;
22361 int ecode1 = 0 ;
22362 int val2 ;
22363 int ecode2 = 0 ;
22364 int val3 ;
22365 int ecode3 = 0 ;
22366 int val4 ;
22367 int ecode4 = 0 ;
22368 PyObject * obj0 = 0 ;
22369 PyObject * obj1 = 0 ;
22370 PyObject * obj2 = 0 ;
22371 PyObject * obj3 = 0 ;
22372 char * kwnames[] = {
22373 (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL
22374 };
22375
22376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22377 if (obj0) {
22378 ecode1 = SWIG_AsVal_int(obj0, &val1);
22379 if (!SWIG_IsOK(ecode1)) {
22380 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ScrollEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22381 }
22382 arg1 = static_cast< wxEventType >(val1);
22383 }
22384 if (obj1) {
22385 ecode2 = SWIG_AsVal_int(obj1, &val2);
22386 if (!SWIG_IsOK(ecode2)) {
22387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollEvent" "', expected argument " "2"" of type '" "int""'");
22388 }
22389 arg2 = static_cast< int >(val2);
22390 }
22391 if (obj2) {
22392 ecode3 = SWIG_AsVal_int(obj2, &val3);
22393 if (!SWIG_IsOK(ecode3)) {
22394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ScrollEvent" "', expected argument " "3"" of type '" "int""'");
22395 }
22396 arg3 = static_cast< int >(val3);
22397 }
22398 if (obj3) {
22399 ecode4 = SWIG_AsVal_int(obj3, &val4);
22400 if (!SWIG_IsOK(ecode4)) {
22401 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ScrollEvent" "', expected argument " "4"" of type '" "int""'");
22402 }
22403 arg4 = static_cast< int >(val4);
22404 }
22405 {
22406 PyThreadState* __tstate = wxPyBeginAllowThreads();
22407 result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4);
22408 wxPyEndAllowThreads(__tstate);
22409 if (PyErr_Occurred()) SWIG_fail;
22410 }
22411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_NEW | 0 );
22412 return resultobj;
22413fail:
22414 return NULL;
d55e5bfc
RD
22415}
22416
22417
1bd55598
RD
22418SWIGINTERN PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22419 PyObject *resultobj = 0;
22420 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
22421 int result;
22422 void *argp1 = 0 ;
22423 int res1 = 0 ;
22424 PyObject *swig_obj[1] ;
22425
22426 if (!args) SWIG_fail;
22427 swig_obj[0] = args;
22428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollEvent, 0 | 0 );
22429 if (!SWIG_IsOK(res1)) {
22430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollEvent_GetOrientation" "', expected argument " "1"" of type '" "wxScrollEvent const *""'");
22431 }
22432 arg1 = reinterpret_cast< wxScrollEvent * >(argp1);
22433 {
22434 PyThreadState* __tstate = wxPyBeginAllowThreads();
22435 result = (int)((wxScrollEvent const *)arg1)->GetOrientation();
22436 wxPyEndAllowThreads(__tstate);
22437 if (PyErr_Occurred()) SWIG_fail;
22438 }
22439 resultobj = SWIG_From_int(static_cast< int >(result));
22440 return resultobj;
22441fail:
22442 return NULL;
d55e5bfc
RD
22443}
22444
22445
1bd55598
RD
22446SWIGINTERN PyObject *_wrap_ScrollEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22447 PyObject *resultobj = 0;
22448 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
22449 int result;
22450 void *argp1 = 0 ;
22451 int res1 = 0 ;
22452 PyObject *swig_obj[1] ;
22453
22454 if (!args) SWIG_fail;
22455 swig_obj[0] = args;
22456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollEvent, 0 | 0 );
22457 if (!SWIG_IsOK(res1)) {
22458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollEvent_GetPosition" "', expected argument " "1"" of type '" "wxScrollEvent const *""'");
22459 }
22460 arg1 = reinterpret_cast< wxScrollEvent * >(argp1);
22461 {
22462 PyThreadState* __tstate = wxPyBeginAllowThreads();
22463 result = (int)((wxScrollEvent const *)arg1)->GetPosition();
22464 wxPyEndAllowThreads(__tstate);
22465 if (PyErr_Occurred()) SWIG_fail;
22466 }
22467 resultobj = SWIG_From_int(static_cast< int >(result));
22468 return resultobj;
22469fail:
22470 return NULL;
22471}
22472
22473
22474SWIGINTERN PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22475 PyObject *resultobj = 0;
22476 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
22477 int arg2 ;
22478 void *argp1 = 0 ;
22479 int res1 = 0 ;
22480 int val2 ;
22481 int ecode2 = 0 ;
22482 PyObject * obj0 = 0 ;
22483 PyObject * obj1 = 0 ;
22484 char * kwnames[] = {
22485 (char *) "self",(char *) "orient", NULL
22486 };
22487
22488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail;
22489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollEvent, 0 | 0 );
22490 if (!SWIG_IsOK(res1)) {
22491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollEvent_SetOrientation" "', expected argument " "1"" of type '" "wxScrollEvent *""'");
22492 }
22493 arg1 = reinterpret_cast< wxScrollEvent * >(argp1);
22494 ecode2 = SWIG_AsVal_int(obj1, &val2);
22495 if (!SWIG_IsOK(ecode2)) {
22496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollEvent_SetOrientation" "', expected argument " "2"" of type '" "int""'");
22497 }
22498 arg2 = static_cast< int >(val2);
22499 {
22500 PyThreadState* __tstate = wxPyBeginAllowThreads();
22501 (arg1)->SetOrientation(arg2);
22502 wxPyEndAllowThreads(__tstate);
22503 if (PyErr_Occurred()) SWIG_fail;
22504 }
22505 resultobj = SWIG_Py_Void();
22506 return resultobj;
22507fail:
22508 return NULL;
22509}
22510
22511
22512SWIGINTERN PyObject *_wrap_ScrollEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22513 PyObject *resultobj = 0;
22514 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
22515 int arg2 ;
22516 void *argp1 = 0 ;
22517 int res1 = 0 ;
22518 int val2 ;
22519 int ecode2 = 0 ;
22520 PyObject * obj0 = 0 ;
22521 PyObject * obj1 = 0 ;
22522 char * kwnames[] = {
22523 (char *) "self",(char *) "pos", NULL
22524 };
22525
22526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
22527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollEvent, 0 | 0 );
22528 if (!SWIG_IsOK(res1)) {
22529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollEvent_SetPosition" "', expected argument " "1"" of type '" "wxScrollEvent *""'");
22530 }
22531 arg1 = reinterpret_cast< wxScrollEvent * >(argp1);
22532 ecode2 = SWIG_AsVal_int(obj1, &val2);
22533 if (!SWIG_IsOK(ecode2)) {
22534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
22535 }
22536 arg2 = static_cast< int >(val2);
22537 {
22538 PyThreadState* __tstate = wxPyBeginAllowThreads();
22539 (arg1)->SetPosition(arg2);
22540 wxPyEndAllowThreads(__tstate);
22541 if (PyErr_Occurred()) SWIG_fail;
22542 }
22543 resultobj = SWIG_Py_Void();
22544 return resultobj;
22545fail:
22546 return NULL;
22547}
22548
22549
22550SWIGINTERN PyObject *ScrollEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22551 PyObject *obj;
22552 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22553 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollEvent, SWIG_NewClientData(obj));
22554 return SWIG_Py_Void();
22555}
22556
22557SWIGINTERN PyObject *ScrollEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22558 return SWIG_Python_InitShadowInstance(args);
22559}
22560
22561SWIGINTERN PyObject *_wrap_new_ScrollWinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22562 PyObject *resultobj = 0;
22563 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22564 int arg2 = (int) 0 ;
22565 int arg3 = (int) 0 ;
22566 wxScrollWinEvent *result = 0 ;
22567 int val1 ;
22568 int ecode1 = 0 ;
22569 int val2 ;
22570 int ecode2 = 0 ;
22571 int val3 ;
22572 int ecode3 = 0 ;
22573 PyObject * obj0 = 0 ;
22574 PyObject * obj1 = 0 ;
22575 PyObject * obj2 = 0 ;
22576 char * kwnames[] = {
22577 (char *) "commandType",(char *) "pos",(char *) "orient", NULL
22578 };
22579
22580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22581 if (obj0) {
22582 ecode1 = SWIG_AsVal_int(obj0, &val1);
22583 if (!SWIG_IsOK(ecode1)) {
22584 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ScrollWinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22585 }
22586 arg1 = static_cast< wxEventType >(val1);
22587 }
22588 if (obj1) {
22589 ecode2 = SWIG_AsVal_int(obj1, &val2);
22590 if (!SWIG_IsOK(ecode2)) {
22591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollWinEvent" "', expected argument " "2"" of type '" "int""'");
22592 }
22593 arg2 = static_cast< int >(val2);
22594 }
22595 if (obj2) {
22596 ecode3 = SWIG_AsVal_int(obj2, &val3);
22597 if (!SWIG_IsOK(ecode3)) {
22598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ScrollWinEvent" "', expected argument " "3"" of type '" "int""'");
22599 }
22600 arg3 = static_cast< int >(val3);
22601 }
22602 {
22603 PyThreadState* __tstate = wxPyBeginAllowThreads();
22604 result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3);
22605 wxPyEndAllowThreads(__tstate);
22606 if (PyErr_Occurred()) SWIG_fail;
22607 }
22608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_NEW | 0 );
22609 return resultobj;
22610fail:
22611 return NULL;
d55e5bfc
RD
22612}
22613
22614
1bd55598
RD
22615SWIGINTERN PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22616 PyObject *resultobj = 0;
22617 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
22618 int result;
22619 void *argp1 = 0 ;
22620 int res1 = 0 ;
22621 PyObject *swig_obj[1] ;
22622
22623 if (!args) SWIG_fail;
22624 swig_obj[0] = args;
22625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollWinEvent, 0 | 0 );
22626 if (!SWIG_IsOK(res1)) {
22627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollWinEvent_GetOrientation" "', expected argument " "1"" of type '" "wxScrollWinEvent const *""'");
22628 }
22629 arg1 = reinterpret_cast< wxScrollWinEvent * >(argp1);
22630 {
22631 PyThreadState* __tstate = wxPyBeginAllowThreads();
22632 result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation();
22633 wxPyEndAllowThreads(__tstate);
22634 if (PyErr_Occurred()) SWIG_fail;
22635 }
22636 resultobj = SWIG_From_int(static_cast< int >(result));
22637 return resultobj;
22638fail:
22639 return NULL;
d55e5bfc
RD
22640}
22641
22642
1bd55598
RD
22643SWIGINTERN PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22644 PyObject *resultobj = 0;
22645 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
22646 int result;
22647 void *argp1 = 0 ;
22648 int res1 = 0 ;
22649 PyObject *swig_obj[1] ;
22650
22651 if (!args) SWIG_fail;
22652 swig_obj[0] = args;
22653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollWinEvent, 0 | 0 );
22654 if (!SWIG_IsOK(res1)) {
22655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollWinEvent_GetPosition" "', expected argument " "1"" of type '" "wxScrollWinEvent const *""'");
22656 }
22657 arg1 = reinterpret_cast< wxScrollWinEvent * >(argp1);
22658 {
22659 PyThreadState* __tstate = wxPyBeginAllowThreads();
22660 result = (int)((wxScrollWinEvent const *)arg1)->GetPosition();
22661 wxPyEndAllowThreads(__tstate);
22662 if (PyErr_Occurred()) SWIG_fail;
22663 }
22664 resultobj = SWIG_From_int(static_cast< int >(result));
22665 return resultobj;
22666fail:
22667 return NULL;
22668}
22669
22670
22671SWIGINTERN PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22672 PyObject *resultobj = 0;
22673 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
22674 int arg2 ;
22675 void *argp1 = 0 ;
22676 int res1 = 0 ;
22677 int val2 ;
22678 int ecode2 = 0 ;
22679 PyObject * obj0 = 0 ;
22680 PyObject * obj1 = 0 ;
22681 char * kwnames[] = {
22682 (char *) "self",(char *) "orient", NULL
22683 };
22684
22685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail;
22686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollWinEvent, 0 | 0 );
22687 if (!SWIG_IsOK(res1)) {
22688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollWinEvent_SetOrientation" "', expected argument " "1"" of type '" "wxScrollWinEvent *""'");
22689 }
22690 arg1 = reinterpret_cast< wxScrollWinEvent * >(argp1);
22691 ecode2 = SWIG_AsVal_int(obj1, &val2);
22692 if (!SWIG_IsOK(ecode2)) {
22693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollWinEvent_SetOrientation" "', expected argument " "2"" of type '" "int""'");
22694 }
22695 arg2 = static_cast< int >(val2);
22696 {
22697 PyThreadState* __tstate = wxPyBeginAllowThreads();
22698 (arg1)->SetOrientation(arg2);
22699 wxPyEndAllowThreads(__tstate);
22700 if (PyErr_Occurred()) SWIG_fail;
22701 }
22702 resultobj = SWIG_Py_Void();
22703 return resultobj;
22704fail:
22705 return NULL;
22706}
22707
22708
22709SWIGINTERN PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22710 PyObject *resultobj = 0;
22711 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
22712 int arg2 ;
22713 void *argp1 = 0 ;
22714 int res1 = 0 ;
22715 int val2 ;
22716 int ecode2 = 0 ;
22717 PyObject * obj0 = 0 ;
22718 PyObject * obj1 = 0 ;
22719 char * kwnames[] = {
22720 (char *) "self",(char *) "pos", NULL
22721 };
22722
22723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
22724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollWinEvent, 0 | 0 );
22725 if (!SWIG_IsOK(res1)) {
22726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollWinEvent_SetPosition" "', expected argument " "1"" of type '" "wxScrollWinEvent *""'");
22727 }
22728 arg1 = reinterpret_cast< wxScrollWinEvent * >(argp1);
22729 ecode2 = SWIG_AsVal_int(obj1, &val2);
22730 if (!SWIG_IsOK(ecode2)) {
22731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollWinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
22732 }
22733 arg2 = static_cast< int >(val2);
22734 {
22735 PyThreadState* __tstate = wxPyBeginAllowThreads();
22736 (arg1)->SetPosition(arg2);
22737 wxPyEndAllowThreads(__tstate);
22738 if (PyErr_Occurred()) SWIG_fail;
22739 }
22740 resultobj = SWIG_Py_Void();
22741 return resultobj;
22742fail:
22743 return NULL;
d55e5bfc
RD
22744}
22745
22746
1bd55598
RD
22747SWIGINTERN PyObject *ScrollWinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22748 PyObject *obj;
22749 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22750 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollWinEvent, SWIG_NewClientData(obj));
22751 return SWIG_Py_Void();
d55e5bfc
RD
22752}
22753
1bd55598
RD
22754SWIGINTERN PyObject *ScrollWinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22755 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
22756}
22757
1bd55598
RD
22758SWIGINTERN PyObject *_wrap_new_MouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22759 PyObject *resultobj = 0;
22760 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22761 wxMouseEvent *result = 0 ;
22762 int val1 ;
22763 int ecode1 = 0 ;
22764 PyObject * obj0 = 0 ;
22765 char * kwnames[] = {
22766 (char *) "mouseType", NULL
22767 };
22768
22769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) SWIG_fail;
22770 if (obj0) {
22771 ecode1 = SWIG_AsVal_int(obj0, &val1);
22772 if (!SWIG_IsOK(ecode1)) {
22773 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MouseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22774 }
22775 arg1 = static_cast< wxEventType >(val1);
22776 }
22777 {
22778 PyThreadState* __tstate = wxPyBeginAllowThreads();
22779 result = (wxMouseEvent *)new wxMouseEvent(arg1);
22780 wxPyEndAllowThreads(__tstate);
22781 if (PyErr_Occurred()) SWIG_fail;
22782 }
3ecece7e 22783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_NEW | 0 );
1bd55598
RD
22784 return resultobj;
22785fail:
22786 return NULL;
d55e5bfc
RD
22787}
22788
22789
1bd55598
RD
22790SWIGINTERN PyObject *_wrap_MouseEvent_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22791 PyObject *resultobj = 0;
22792 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
22793 bool result;
22794 void *argp1 = 0 ;
22795 int res1 = 0 ;
22796 PyObject *swig_obj[1] ;
22797
22798 if (!args) SWIG_fail;
22799 swig_obj[0] = args;
22800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
22801 if (!SWIG_IsOK(res1)) {
22802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_IsButton" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
22803 }
22804 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
22805 {
22806 PyThreadState* __tstate = wxPyBeginAllowThreads();
22807 result = (bool)((wxMouseEvent const *)arg1)->IsButton();
22808 wxPyEndAllowThreads(__tstate);
22809 if (PyErr_Occurred()) SWIG_fail;
22810 }
22811 {
22812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22813 }
22814 return resultobj;
22815fail:
22816 return NULL;
22817}
22818
22819
22820SWIGINTERN PyObject *_wrap_MouseEvent_ButtonDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22821 PyObject *resultobj = 0;
22822 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
22823 int arg2 = (int) wxMOUSE_BTN_ANY ;
22824 bool result;
22825 void *argp1 = 0 ;
22826 int res1 = 0 ;
22827 int val2 ;
22828 int ecode2 = 0 ;
22829 PyObject * obj0 = 0 ;
22830 PyObject * obj1 = 0 ;
22831 char * kwnames[] = {
22832 (char *) "self",(char *) "but", NULL
22833 };
22834
22835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) SWIG_fail;
22836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
22837 if (!SWIG_IsOK(res1)) {
22838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ButtonDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
22839 }
22840 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
22841 if (obj1) {
22842 ecode2 = SWIG_AsVal_int(obj1, &val2);
22843 if (!SWIG_IsOK(ecode2)) {
22844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_ButtonDown" "', expected argument " "2"" of type '" "int""'");
22845 }
22846 arg2 = static_cast< int >(val2);
22847 }
22848 {
22849 PyThreadState* __tstate = wxPyBeginAllowThreads();
22850 result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2);
22851 wxPyEndAllowThreads(__tstate);
22852 if (PyErr_Occurred()) SWIG_fail;
22853 }
22854 {
22855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22856 }
22857 return resultobj;
22858fail:
22859 return NULL;
22860}
22861
22862
22863SWIGINTERN PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22864 PyObject *resultobj = 0;
22865 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
22866 int arg2 = (int) wxMOUSE_BTN_ANY ;
22867 bool result;
22868 void *argp1 = 0 ;
22869 int res1 = 0 ;
22870 int val2 ;
22871 int ecode2 = 0 ;
22872 PyObject * obj0 = 0 ;
22873 PyObject * obj1 = 0 ;
22874 char * kwnames[] = {
22875 (char *) "self",(char *) "but", NULL
22876 };
22877
22878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) SWIG_fail;
22879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
22880 if (!SWIG_IsOK(res1)) {
22881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ButtonDClick" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
22882 }
22883 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
22884 if (obj1) {
22885 ecode2 = SWIG_AsVal_int(obj1, &val2);
22886 if (!SWIG_IsOK(ecode2)) {
22887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_ButtonDClick" "', expected argument " "2"" of type '" "int""'");
22888 }
22889 arg2 = static_cast< int >(val2);
22890 }
22891 {
22892 PyThreadState* __tstate = wxPyBeginAllowThreads();
22893 result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2);
22894 wxPyEndAllowThreads(__tstate);
22895 if (PyErr_Occurred()) SWIG_fail;
22896 }
22897 {
22898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22899 }
22900 return resultobj;
22901fail:
22902 return NULL;
22903}
22904
22905
22906SWIGINTERN PyObject *_wrap_MouseEvent_ButtonUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22907 PyObject *resultobj = 0;
22908 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
22909 int arg2 = (int) wxMOUSE_BTN_ANY ;
22910 bool result;
22911 void *argp1 = 0 ;
22912 int res1 = 0 ;
22913 int val2 ;
22914 int ecode2 = 0 ;
22915 PyObject * obj0 = 0 ;
22916 PyObject * obj1 = 0 ;
22917 char * kwnames[] = {
22918 (char *) "self",(char *) "but", NULL
22919 };
22920
22921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) SWIG_fail;
22922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
22923 if (!SWIG_IsOK(res1)) {
22924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ButtonUp" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
22925 }
22926 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
22927 if (obj1) {
22928 ecode2 = SWIG_AsVal_int(obj1, &val2);
22929 if (!SWIG_IsOK(ecode2)) {
22930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_ButtonUp" "', expected argument " "2"" of type '" "int""'");
22931 }
22932 arg2 = static_cast< int >(val2);
22933 }
22934 {
22935 PyThreadState* __tstate = wxPyBeginAllowThreads();
22936 result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2);
22937 wxPyEndAllowThreads(__tstate);
22938 if (PyErr_Occurred()) SWIG_fail;
22939 }
22940 {
22941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22942 }
22943 return resultobj;
22944fail:
22945 return NULL;
22946}
22947
22948
22949SWIGINTERN PyObject *_wrap_MouseEvent_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22950 PyObject *resultobj = 0;
22951 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
22952 int arg2 ;
22953 bool result;
22954 void *argp1 = 0 ;
22955 int res1 = 0 ;
22956 int val2 ;
22957 int ecode2 = 0 ;
22958 PyObject * obj0 = 0 ;
22959 PyObject * obj1 = 0 ;
22960 char * kwnames[] = {
22961 (char *) "self",(char *) "button", NULL
22962 };
22963
22964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) SWIG_fail;
22965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
22966 if (!SWIG_IsOK(res1)) {
22967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_Button" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
22968 }
22969 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
22970 ecode2 = SWIG_AsVal_int(obj1, &val2);
22971 if (!SWIG_IsOK(ecode2)) {
22972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_Button" "', expected argument " "2"" of type '" "int""'");
22973 }
22974 arg2 = static_cast< int >(val2);
22975 {
22976 PyThreadState* __tstate = wxPyBeginAllowThreads();
22977 result = (bool)((wxMouseEvent const *)arg1)->Button(arg2);
22978 wxPyEndAllowThreads(__tstate);
22979 if (PyErr_Occurred()) SWIG_fail;
22980 }
22981 {
22982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22983 }
22984 return resultobj;
22985fail:
22986 return NULL;
22987}
22988
22989
22990SWIGINTERN PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22991 PyObject *resultobj = 0;
22992 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
22993 int arg2 ;
22994 bool result;
22995 void *argp1 = 0 ;
22996 int res1 = 0 ;
22997 int val2 ;
22998 int ecode2 = 0 ;
22999 PyObject * obj0 = 0 ;
23000 PyObject * obj1 = 0 ;
23001 char * kwnames[] = {
23002 (char *) "self",(char *) "but", NULL
23003 };
23004
23005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) SWIG_fail;
23006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23007 if (!SWIG_IsOK(res1)) {
23008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ButtonIsDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23009 }
23010 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23011 ecode2 = SWIG_AsVal_int(obj1, &val2);
23012 if (!SWIG_IsOK(ecode2)) {
23013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_ButtonIsDown" "', expected argument " "2"" of type '" "int""'");
23014 }
23015 arg2 = static_cast< int >(val2);
23016 {
23017 PyThreadState* __tstate = wxPyBeginAllowThreads();
23018 result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2);
23019 wxPyEndAllowThreads(__tstate);
23020 if (PyErr_Occurred()) SWIG_fail;
23021 }
23022 {
23023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23024 }
23025 return resultobj;
23026fail:
23027 return NULL;
d55e5bfc
RD
23028}
23029
23030
1bd55598
RD
23031SWIGINTERN PyObject *_wrap_MouseEvent_GetButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23032 PyObject *resultobj = 0;
23033 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23034 int result;
23035 void *argp1 = 0 ;
23036 int res1 = 0 ;
23037 PyObject *swig_obj[1] ;
23038
23039 if (!args) SWIG_fail;
23040 swig_obj[0] = args;
23041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23042 if (!SWIG_IsOK(res1)) {
23043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetButton" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23044 }
23045 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23046 {
23047 PyThreadState* __tstate = wxPyBeginAllowThreads();
23048 result = (int)((wxMouseEvent const *)arg1)->GetButton();
23049 wxPyEndAllowThreads(__tstate);
23050 if (PyErr_Occurred()) SWIG_fail;
23051 }
23052 resultobj = SWIG_From_int(static_cast< int >(result));
23053 return resultobj;
23054fail:
23055 return NULL;
d55e5bfc
RD
23056}
23057
23058
1bd55598
RD
23059SWIGINTERN PyObject *_wrap_MouseEvent_ControlDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23060 PyObject *resultobj = 0;
23061 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23062 bool result;
23063 void *argp1 = 0 ;
23064 int res1 = 0 ;
23065 PyObject *swig_obj[1] ;
23066
23067 if (!args) SWIG_fail;
23068 swig_obj[0] = args;
23069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23070 if (!SWIG_IsOK(res1)) {
23071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ControlDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23072 }
23073 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23074 {
23075 PyThreadState* __tstate = wxPyBeginAllowThreads();
23076 result = (bool)((wxMouseEvent const *)arg1)->ControlDown();
23077 wxPyEndAllowThreads(__tstate);
23078 if (PyErr_Occurred()) SWIG_fail;
23079 }
23080 {
23081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23082 }
23083 return resultobj;
23084fail:
23085 return NULL;
aff4cc5c
RD
23086}
23087
23088
1bd55598
RD
23089SWIGINTERN PyObject *_wrap_MouseEvent_MetaDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23090 PyObject *resultobj = 0;
23091 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23092 bool result;
23093 void *argp1 = 0 ;
23094 int res1 = 0 ;
23095 PyObject *swig_obj[1] ;
23096
23097 if (!args) SWIG_fail;
23098 swig_obj[0] = args;
23099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23100 if (!SWIG_IsOK(res1)) {
23101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_MetaDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23102 }
23103 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23104 {
23105 PyThreadState* __tstate = wxPyBeginAllowThreads();
23106 result = (bool)((wxMouseEvent const *)arg1)->MetaDown();
23107 wxPyEndAllowThreads(__tstate);
23108 if (PyErr_Occurred()) SWIG_fail;
23109 }
23110 {
23111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23112 }
23113 return resultobj;
23114fail:
23115 return NULL;
d55e5bfc
RD
23116}
23117
23118
1bd55598
RD
23119SWIGINTERN PyObject *_wrap_MouseEvent_AltDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23120 PyObject *resultobj = 0;
23121 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23122 bool result;
23123 void *argp1 = 0 ;
23124 int res1 = 0 ;
23125 PyObject *swig_obj[1] ;
23126
23127 if (!args) SWIG_fail;
23128 swig_obj[0] = args;
23129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23130 if (!SWIG_IsOK(res1)) {
23131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_AltDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23132 }
23133 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23134 {
23135 PyThreadState* __tstate = wxPyBeginAllowThreads();
23136 result = (bool)((wxMouseEvent const *)arg1)->AltDown();
23137 wxPyEndAllowThreads(__tstate);
23138 if (PyErr_Occurred()) SWIG_fail;
23139 }
23140 {
23141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23142 }
23143 return resultobj;
23144fail:
23145 return NULL;
d55e5bfc
RD
23146}
23147
23148
1bd55598
RD
23149SWIGINTERN PyObject *_wrap_MouseEvent_ShiftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23150 PyObject *resultobj = 0;
23151 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23152 bool result;
23153 void *argp1 = 0 ;
23154 int res1 = 0 ;
23155 PyObject *swig_obj[1] ;
23156
23157 if (!args) SWIG_fail;
23158 swig_obj[0] = args;
23159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23160 if (!SWIG_IsOK(res1)) {
23161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ShiftDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23162 }
23163 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23164 {
23165 PyThreadState* __tstate = wxPyBeginAllowThreads();
23166 result = (bool)((wxMouseEvent const *)arg1)->ShiftDown();
23167 wxPyEndAllowThreads(__tstate);
23168 if (PyErr_Occurred()) SWIG_fail;
23169 }
23170 {
23171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23172 }
23173 return resultobj;
23174fail:
23175 return NULL;
d55e5bfc
RD
23176}
23177
23178
1bd55598
RD
23179SWIGINTERN PyObject *_wrap_MouseEvent_CmdDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23180 PyObject *resultobj = 0;
23181 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23182 bool result;
23183 void *argp1 = 0 ;
23184 int res1 = 0 ;
23185 PyObject *swig_obj[1] ;
23186
23187 if (!args) SWIG_fail;
23188 swig_obj[0] = args;
23189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23190 if (!SWIG_IsOK(res1)) {
23191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_CmdDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23192 }
23193 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23194 {
23195 PyThreadState* __tstate = wxPyBeginAllowThreads();
23196 result = (bool)((wxMouseEvent const *)arg1)->CmdDown();
23197 wxPyEndAllowThreads(__tstate);
23198 if (PyErr_Occurred()) SWIG_fail;
23199 }
23200 {
23201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23202 }
23203 return resultobj;
23204fail:
23205 return NULL;
d55e5bfc
RD
23206}
23207
23208
1bd55598
RD
23209SWIGINTERN PyObject *_wrap_MouseEvent_LeftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23210 PyObject *resultobj = 0;
23211 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23212 bool result;
23213 void *argp1 = 0 ;
23214 int res1 = 0 ;
23215 PyObject *swig_obj[1] ;
23216
23217 if (!args) SWIG_fail;
23218 swig_obj[0] = args;
23219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23220 if (!SWIG_IsOK(res1)) {
23221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_LeftDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23222 }
23223 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23224 {
23225 PyThreadState* __tstate = wxPyBeginAllowThreads();
23226 result = (bool)((wxMouseEvent const *)arg1)->LeftDown();
23227 wxPyEndAllowThreads(__tstate);
23228 if (PyErr_Occurred()) SWIG_fail;
23229 }
23230 {
23231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23232 }
23233 return resultobj;
23234fail:
23235 return NULL;
d55e5bfc
RD
23236}
23237
23238
1bd55598
RD
23239SWIGINTERN PyObject *_wrap_MouseEvent_MiddleDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23240 PyObject *resultobj = 0;
23241 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23242 bool result;
23243 void *argp1 = 0 ;
23244 int res1 = 0 ;
23245 PyObject *swig_obj[1] ;
23246
23247 if (!args) SWIG_fail;
23248 swig_obj[0] = args;
23249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23250 if (!SWIG_IsOK(res1)) {
23251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_MiddleDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23252 }
23253 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23254 {
23255 PyThreadState* __tstate = wxPyBeginAllowThreads();
23256 result = (bool)((wxMouseEvent const *)arg1)->MiddleDown();
23257 wxPyEndAllowThreads(__tstate);
23258 if (PyErr_Occurred()) SWIG_fail;
23259 }
23260 {
23261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23262 }
23263 return resultobj;
23264fail:
23265 return NULL;
d55e5bfc
RD
23266}
23267
23268
1bd55598
RD
23269SWIGINTERN PyObject *_wrap_MouseEvent_RightDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23270 PyObject *resultobj = 0;
23271 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23272 bool result;
23273 void *argp1 = 0 ;
23274 int res1 = 0 ;
23275 PyObject *swig_obj[1] ;
23276
23277 if (!args) SWIG_fail;
23278 swig_obj[0] = args;
23279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23280 if (!SWIG_IsOK(res1)) {
23281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_RightDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23282 }
23283 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23284 {
23285 PyThreadState* __tstate = wxPyBeginAllowThreads();
23286 result = (bool)((wxMouseEvent const *)arg1)->RightDown();
23287 wxPyEndAllowThreads(__tstate);
23288 if (PyErr_Occurred()) SWIG_fail;
23289 }
23290 {
23291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23292 }
23293 return resultobj;
23294fail:
23295 return NULL;
d55e5bfc
RD
23296}
23297
23298
1bd55598
RD
23299SWIGINTERN PyObject *_wrap_MouseEvent_LeftUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23300 PyObject *resultobj = 0;
23301 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23302 bool result;
23303 void *argp1 = 0 ;
23304 int res1 = 0 ;
23305 PyObject *swig_obj[1] ;
23306
23307 if (!args) SWIG_fail;
23308 swig_obj[0] = args;
23309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23310 if (!SWIG_IsOK(res1)) {
23311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_LeftUp" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23312 }
23313 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23314 {
23315 PyThreadState* __tstate = wxPyBeginAllowThreads();
23316 result = (bool)((wxMouseEvent const *)arg1)->LeftUp();
23317 wxPyEndAllowThreads(__tstate);
23318 if (PyErr_Occurred()) SWIG_fail;
23319 }
23320 {
23321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23322 }
23323 return resultobj;
23324fail:
23325 return NULL;
d55e5bfc
RD
23326}
23327
23328
1bd55598
RD
23329SWIGINTERN PyObject *_wrap_MouseEvent_MiddleUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23330 PyObject *resultobj = 0;
23331 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23332 bool result;
23333 void *argp1 = 0 ;
23334 int res1 = 0 ;
23335 PyObject *swig_obj[1] ;
23336
23337 if (!args) SWIG_fail;
23338 swig_obj[0] = args;
23339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23340 if (!SWIG_IsOK(res1)) {
23341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_MiddleUp" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23342 }
23343 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23344 {
23345 PyThreadState* __tstate = wxPyBeginAllowThreads();
23346 result = (bool)((wxMouseEvent const *)arg1)->MiddleUp();
23347 wxPyEndAllowThreads(__tstate);
23348 if (PyErr_Occurred()) SWIG_fail;
23349 }
23350 {
23351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23352 }
23353 return resultobj;
23354fail:
23355 return NULL;
d55e5bfc
RD
23356}
23357
23358
1bd55598
RD
23359SWIGINTERN PyObject *_wrap_MouseEvent_RightUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23360 PyObject *resultobj = 0;
23361 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23362 bool result;
23363 void *argp1 = 0 ;
23364 int res1 = 0 ;
23365 PyObject *swig_obj[1] ;
23366
23367 if (!args) SWIG_fail;
23368 swig_obj[0] = args;
23369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23370 if (!SWIG_IsOK(res1)) {
23371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_RightUp" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23372 }
23373 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23374 {
23375 PyThreadState* __tstate = wxPyBeginAllowThreads();
23376 result = (bool)((wxMouseEvent const *)arg1)->RightUp();
23377 wxPyEndAllowThreads(__tstate);
23378 if (PyErr_Occurred()) SWIG_fail;
23379 }
23380 {
23381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23382 }
23383 return resultobj;
23384fail:
23385 return NULL;
d55e5bfc
RD
23386}
23387
23388
1bd55598
RD
23389SWIGINTERN PyObject *_wrap_MouseEvent_LeftDClick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23390 PyObject *resultobj = 0;
23391 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23392 bool result;
23393 void *argp1 = 0 ;
23394 int res1 = 0 ;
23395 PyObject *swig_obj[1] ;
23396
23397 if (!args) SWIG_fail;
23398 swig_obj[0] = args;
23399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23400 if (!SWIG_IsOK(res1)) {
23401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_LeftDClick" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23402 }
23403 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23404 {
23405 PyThreadState* __tstate = wxPyBeginAllowThreads();
23406 result = (bool)((wxMouseEvent const *)arg1)->LeftDClick();
23407 wxPyEndAllowThreads(__tstate);
23408 if (PyErr_Occurred()) SWIG_fail;
23409 }
23410 {
23411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23412 }
23413 return resultobj;
23414fail:
23415 return NULL;
d55e5bfc
RD
23416}
23417
23418
1bd55598
RD
23419SWIGINTERN PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23420 PyObject *resultobj = 0;
23421 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23422 bool result;
23423 void *argp1 = 0 ;
23424 int res1 = 0 ;
23425 PyObject *swig_obj[1] ;
23426
23427 if (!args) SWIG_fail;
23428 swig_obj[0] = args;
23429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23430 if (!SWIG_IsOK(res1)) {
23431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_MiddleDClick" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23432 }
23433 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23434 {
23435 PyThreadState* __tstate = wxPyBeginAllowThreads();
23436 result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick();
23437 wxPyEndAllowThreads(__tstate);
23438 if (PyErr_Occurred()) SWIG_fail;
23439 }
23440 {
23441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23442 }
23443 return resultobj;
23444fail:
23445 return NULL;
aff4cc5c
RD
23446}
23447
23448
1bd55598
RD
23449SWIGINTERN PyObject *_wrap_MouseEvent_RightDClick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23450 PyObject *resultobj = 0;
23451 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23452 bool result;
23453 void *argp1 = 0 ;
23454 int res1 = 0 ;
23455 PyObject *swig_obj[1] ;
23456
23457 if (!args) SWIG_fail;
23458 swig_obj[0] = args;
23459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23460 if (!SWIG_IsOK(res1)) {
23461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_RightDClick" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23462 }
23463 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23464 {
23465 PyThreadState* __tstate = wxPyBeginAllowThreads();
23466 result = (bool)((wxMouseEvent const *)arg1)->RightDClick();
23467 wxPyEndAllowThreads(__tstate);
23468 if (PyErr_Occurred()) SWIG_fail;
23469 }
23470 {
23471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23472 }
23473 return resultobj;
23474fail:
23475 return NULL;
d55e5bfc
RD
23476}
23477
23478
1bd55598
RD
23479SWIGINTERN PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23480 PyObject *resultobj = 0;
23481 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23482 bool result;
23483 void *argp1 = 0 ;
23484 int res1 = 0 ;
23485 PyObject *swig_obj[1] ;
23486
23487 if (!args) SWIG_fail;
23488 swig_obj[0] = args;
23489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23490 if (!SWIG_IsOK(res1)) {
23491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_LeftIsDown" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
23492 }
23493 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23494 {
23495 PyThreadState* __tstate = wxPyBeginAllowThreads();
23496 result = (bool)(arg1)->LeftIsDown();
23497 wxPyEndAllowThreads(__tstate);
23498 if (PyErr_Occurred()) SWIG_fail;
23499 }
23500 {
23501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23502 }
23503 return resultobj;
23504fail:
23505 return NULL;
d55e5bfc
RD
23506}
23507
23508
1bd55598
RD
23509SWIGINTERN PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23510 PyObject *resultobj = 0;
23511 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23512 bool result;
23513 void *argp1 = 0 ;
23514 int res1 = 0 ;
23515 PyObject *swig_obj[1] ;
23516
23517 if (!args) SWIG_fail;
23518 swig_obj[0] = args;
23519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23520 if (!SWIG_IsOK(res1)) {
23521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_MiddleIsDown" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
23522 }
23523 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23524 {
23525 PyThreadState* __tstate = wxPyBeginAllowThreads();
23526 result = (bool)(arg1)->MiddleIsDown();
23527 wxPyEndAllowThreads(__tstate);
23528 if (PyErr_Occurred()) SWIG_fail;
23529 }
23530 {
23531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23532 }
23533 return resultobj;
23534fail:
23535 return NULL;
d55e5bfc
RD
23536}
23537
23538
1bd55598
RD
23539SWIGINTERN PyObject *_wrap_MouseEvent_RightIsDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23540 PyObject *resultobj = 0;
23541 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23542 bool result;
23543 void *argp1 = 0 ;
23544 int res1 = 0 ;
23545 PyObject *swig_obj[1] ;
23546
23547 if (!args) SWIG_fail;
23548 swig_obj[0] = args;
23549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23550 if (!SWIG_IsOK(res1)) {
23551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_RightIsDown" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
23552 }
23553 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23554 {
23555 PyThreadState* __tstate = wxPyBeginAllowThreads();
23556 result = (bool)(arg1)->RightIsDown();
23557 wxPyEndAllowThreads(__tstate);
23558 if (PyErr_Occurred()) SWIG_fail;
23559 }
23560 {
23561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23562 }
23563 return resultobj;
23564fail:
23565 return NULL;
d55e5bfc
RD
23566}
23567
23568
1bd55598
RD
23569SWIGINTERN PyObject *_wrap_MouseEvent_Dragging(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23570 PyObject *resultobj = 0;
23571 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23572 bool result;
23573 void *argp1 = 0 ;
23574 int res1 = 0 ;
23575 PyObject *swig_obj[1] ;
23576
23577 if (!args) SWIG_fail;
23578 swig_obj[0] = args;
23579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23580 if (!SWIG_IsOK(res1)) {
23581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_Dragging" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23582 }
23583 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23584 {
23585 PyThreadState* __tstate = wxPyBeginAllowThreads();
23586 result = (bool)((wxMouseEvent const *)arg1)->Dragging();
23587 wxPyEndAllowThreads(__tstate);
23588 if (PyErr_Occurred()) SWIG_fail;
23589 }
23590 {
23591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23592 }
23593 return resultobj;
23594fail:
23595 return NULL;
d55e5bfc
RD
23596}
23597
23598
1bd55598
RD
23599SWIGINTERN PyObject *_wrap_MouseEvent_Moving(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23600 PyObject *resultobj = 0;
23601 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23602 bool result;
23603 void *argp1 = 0 ;
23604 int res1 = 0 ;
23605 PyObject *swig_obj[1] ;
23606
23607 if (!args) SWIG_fail;
23608 swig_obj[0] = args;
23609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23610 if (!SWIG_IsOK(res1)) {
23611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_Moving" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23612 }
23613 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23614 {
23615 PyThreadState* __tstate = wxPyBeginAllowThreads();
23616 result = (bool)((wxMouseEvent const *)arg1)->Moving();
23617 wxPyEndAllowThreads(__tstate);
23618 if (PyErr_Occurred()) SWIG_fail;
23619 }
23620 {
23621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23622 }
23623 return resultobj;
23624fail:
23625 return NULL;
d55e5bfc
RD
23626}
23627
23628
1bd55598
RD
23629SWIGINTERN PyObject *_wrap_MouseEvent_Entering(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23630 PyObject *resultobj = 0;
23631 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23632 bool result;
23633 void *argp1 = 0 ;
23634 int res1 = 0 ;
23635 PyObject *swig_obj[1] ;
23636
23637 if (!args) SWIG_fail;
23638 swig_obj[0] = args;
23639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23640 if (!SWIG_IsOK(res1)) {
23641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_Entering" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23642 }
23643 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23644 {
23645 PyThreadState* __tstate = wxPyBeginAllowThreads();
23646 result = (bool)((wxMouseEvent const *)arg1)->Entering();
23647 wxPyEndAllowThreads(__tstate);
23648 if (PyErr_Occurred()) SWIG_fail;
23649 }
23650 {
23651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23652 }
23653 return resultobj;
23654fail:
23655 return NULL;
d55e5bfc
RD
23656}
23657
23658
1bd55598
RD
23659SWIGINTERN PyObject *_wrap_MouseEvent_Leaving(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23660 PyObject *resultobj = 0;
23661 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23662 bool result;
23663 void *argp1 = 0 ;
23664 int res1 = 0 ;
23665 PyObject *swig_obj[1] ;
23666
23667 if (!args) SWIG_fail;
23668 swig_obj[0] = args;
23669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23670 if (!SWIG_IsOK(res1)) {
23671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_Leaving" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23672 }
23673 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23674 {
23675 PyThreadState* __tstate = wxPyBeginAllowThreads();
23676 result = (bool)((wxMouseEvent const *)arg1)->Leaving();
23677 wxPyEndAllowThreads(__tstate);
23678 if (PyErr_Occurred()) SWIG_fail;
23679 }
23680 {
23681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23682 }
23683 return resultobj;
23684fail:
23685 return NULL;
d55e5bfc
RD
23686}
23687
23688
1bd55598
RD
23689SWIGINTERN PyObject *_wrap_MouseEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23690 PyObject *resultobj = 0;
23691 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23692 wxPoint result;
23693 void *argp1 = 0 ;
23694 int res1 = 0 ;
23695 PyObject *swig_obj[1] ;
23696
23697 if (!args) SWIG_fail;
23698 swig_obj[0] = args;
23699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23700 if (!SWIG_IsOK(res1)) {
23701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetPosition" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
23702 }
23703 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23704 {
23705 PyThreadState* __tstate = wxPyBeginAllowThreads();
23706 result = (arg1)->GetPosition();
23707 wxPyEndAllowThreads(__tstate);
23708 if (PyErr_Occurred()) SWIG_fail;
23709 }
23710 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23711 return resultobj;
23712fail:
23713 return NULL;
23714}
23715
23716
23717SWIGINTERN PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23718 PyObject *resultobj = 0;
23719 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23720 long *arg2 = (long *) 0 ;
23721 long *arg3 = (long *) 0 ;
23722 void *argp1 = 0 ;
23723 int res1 = 0 ;
23724 long temp2 ;
23725 int res2 = SWIG_TMPOBJ ;
23726 long temp3 ;
23727 int res3 = SWIG_TMPOBJ ;
23728 PyObject *swig_obj[1] ;
23729
23730 arg2 = &temp2;
23731 arg3 = &temp3;
23732 if (!args) SWIG_fail;
23733 swig_obj[0] = args;
23734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23735 if (!SWIG_IsOK(res1)) {
23736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetPositionTuple" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
23737 }
23738 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23739 {
23740 PyThreadState* __tstate = wxPyBeginAllowThreads();
23741 (arg1)->GetPosition(arg2,arg3);
23742 wxPyEndAllowThreads(__tstate);
23743 if (PyErr_Occurred()) SWIG_fail;
23744 }
23745 resultobj = SWIG_Py_Void();
23746 if (SWIG_IsTmpObj(res2)) {
23747 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
23748 } else {
23749 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23750 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
23751 }
23752 if (SWIG_IsTmpObj(res3)) {
23753 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
23754 } else {
23755 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23756 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
23757 }
23758 return resultobj;
23759fail:
23760 return NULL;
23761}
23762
23763
23764SWIGINTERN PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23765 PyObject *resultobj = 0;
23766 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23767 wxDC *arg2 = 0 ;
23768 wxPoint result;
23769 void *argp1 = 0 ;
23770 int res1 = 0 ;
23771 void *argp2 = 0 ;
23772 int res2 = 0 ;
23773 PyObject * obj0 = 0 ;
23774 PyObject * obj1 = 0 ;
23775 char * kwnames[] = {
23776 (char *) "self",(char *) "dc", NULL
23777 };
23778
23779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) SWIG_fail;
23780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23781 if (!SWIG_IsOK(res1)) {
23782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetLogicalPosition" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23783 }
23784 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23785 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 | 0);
23786 if (!SWIG_IsOK(res2)) {
23787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MouseEvent_GetLogicalPosition" "', expected argument " "2"" of type '" "wxDC const &""'");
23788 }
23789 if (!argp2) {
23790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MouseEvent_GetLogicalPosition" "', expected argument " "2"" of type '" "wxDC const &""'");
23791 }
23792 arg2 = reinterpret_cast< wxDC * >(argp2);
23793 {
23794 PyThreadState* __tstate = wxPyBeginAllowThreads();
23795 result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2);
23796 wxPyEndAllowThreads(__tstate);
23797 if (PyErr_Occurred()) SWIG_fail;
23798 }
23799 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23800 return resultobj;
23801fail:
23802 return NULL;
d55e5bfc
RD
23803}
23804
23805
1bd55598
RD
23806SWIGINTERN PyObject *_wrap_MouseEvent_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23807 PyObject *resultobj = 0;
23808 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23809 int result;
23810 void *argp1 = 0 ;
23811 int res1 = 0 ;
23812 PyObject *swig_obj[1] ;
23813
23814 if (!args) SWIG_fail;
23815 swig_obj[0] = args;
23816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23817 if (!SWIG_IsOK(res1)) {
23818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetX" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23819 }
23820 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23821 {
23822 PyThreadState* __tstate = wxPyBeginAllowThreads();
23823 result = (int)((wxMouseEvent const *)arg1)->GetX();
23824 wxPyEndAllowThreads(__tstate);
23825 if (PyErr_Occurred()) SWIG_fail;
23826 }
23827 resultobj = SWIG_From_int(static_cast< int >(result));
23828 return resultobj;
23829fail:
23830 return NULL;
32fe5131
RD
23831}
23832
23833
1bd55598
RD
23834SWIGINTERN PyObject *_wrap_MouseEvent_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23835 PyObject *resultobj = 0;
23836 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23837 int result;
23838 void *argp1 = 0 ;
23839 int res1 = 0 ;
23840 PyObject *swig_obj[1] ;
23841
23842 if (!args) SWIG_fail;
23843 swig_obj[0] = args;
23844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23845 if (!SWIG_IsOK(res1)) {
23846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetY" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23847 }
23848 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23849 {
23850 PyThreadState* __tstate = wxPyBeginAllowThreads();
23851 result = (int)((wxMouseEvent const *)arg1)->GetY();
23852 wxPyEndAllowThreads(__tstate);
23853 if (PyErr_Occurred()) SWIG_fail;
23854 }
23855 resultobj = SWIG_From_int(static_cast< int >(result));
23856 return resultobj;
23857fail:
23858 return NULL;
d55e5bfc
RD
23859}
23860
23861
1bd55598
RD
23862SWIGINTERN PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23863 PyObject *resultobj = 0;
23864 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23865 int result;
23866 void *argp1 = 0 ;
23867 int res1 = 0 ;
23868 PyObject *swig_obj[1] ;
23869
23870 if (!args) SWIG_fail;
23871 swig_obj[0] = args;
23872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23873 if (!SWIG_IsOK(res1)) {
23874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetWheelRotation" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23875 }
23876 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23877 {
23878 PyThreadState* __tstate = wxPyBeginAllowThreads();
23879 result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation();
23880 wxPyEndAllowThreads(__tstate);
23881 if (PyErr_Occurred()) SWIG_fail;
23882 }
23883 resultobj = SWIG_From_int(static_cast< int >(result));
23884 return resultobj;
23885fail:
23886 return NULL;
d55e5bfc
RD
23887}
23888
23889
1bd55598
RD
23890SWIGINTERN PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23891 PyObject *resultobj = 0;
23892 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23893 int result;
23894 void *argp1 = 0 ;
23895 int res1 = 0 ;
23896 PyObject *swig_obj[1] ;
23897
23898 if (!args) SWIG_fail;
23899 swig_obj[0] = args;
23900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23901 if (!SWIG_IsOK(res1)) {
23902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetWheelDelta" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23903 }
23904 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23905 {
23906 PyThreadState* __tstate = wxPyBeginAllowThreads();
23907 result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta();
23908 wxPyEndAllowThreads(__tstate);
23909 if (PyErr_Occurred()) SWIG_fail;
23910 }
23911 resultobj = SWIG_From_int(static_cast< int >(result));
23912 return resultobj;
23913fail:
23914 return NULL;
d55e5bfc
RD
23915}
23916
23917
1bd55598
RD
23918SWIGINTERN PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23919 PyObject *resultobj = 0;
23920 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23921 int result;
23922 void *argp1 = 0 ;
23923 int res1 = 0 ;
23924 PyObject *swig_obj[1] ;
23925
23926 if (!args) SWIG_fail;
23927 swig_obj[0] = args;
23928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23929 if (!SWIG_IsOK(res1)) {
23930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetLinesPerAction" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23931 }
23932 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23933 {
23934 PyThreadState* __tstate = wxPyBeginAllowThreads();
23935 result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction();
23936 wxPyEndAllowThreads(__tstate);
23937 if (PyErr_Occurred()) SWIG_fail;
23938 }
23939 resultobj = SWIG_From_int(static_cast< int >(result));
23940 return resultobj;
23941fail:
23942 return NULL;
d55e5bfc
RD
23943}
23944
23945
1bd55598
RD
23946SWIGINTERN PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23947 PyObject *resultobj = 0;
23948 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23949 bool result;
23950 void *argp1 = 0 ;
23951 int res1 = 0 ;
23952 PyObject *swig_obj[1] ;
23953
23954 if (!args) SWIG_fail;
23955 swig_obj[0] = args;
23956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23957 if (!SWIG_IsOK(res1)) {
23958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_IsPageScroll" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
23959 }
23960 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23961 {
23962 PyThreadState* __tstate = wxPyBeginAllowThreads();
23963 result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll();
23964 wxPyEndAllowThreads(__tstate);
23965 if (PyErr_Occurred()) SWIG_fail;
23966 }
23967 {
23968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23969 }
23970 return resultobj;
23971fail:
23972 return NULL;
d55e5bfc
RD
23973}
23974
23975
1bd55598
RD
23976SWIGINTERN PyObject *_wrap_MouseEvent_m_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23977 PyObject *resultobj = 0;
23978 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
23979 int arg2 ;
23980 void *argp1 = 0 ;
23981 int res1 = 0 ;
23982 int val2 ;
23983 int ecode2 = 0 ;
23984 PyObject *swig_obj[2] ;
23985
23986 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_x_set",2,2,swig_obj)) SWIG_fail;
23987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
23988 if (!SWIG_IsOK(res1)) {
23989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_x_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
23990 }
23991 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
23992 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23993 if (!SWIG_IsOK(ecode2)) {
23994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_x_set" "', expected argument " "2"" of type '" "int""'");
23995 }
23996 arg2 = static_cast< int >(val2);
23997 if (arg1) (arg1)->m_x = arg2;
23998
23999 resultobj = SWIG_Py_Void();
24000 return resultobj;
24001fail:
24002 return NULL;
d55e5bfc
RD
24003}
24004
24005
1bd55598
RD
24006SWIGINTERN PyObject *_wrap_MouseEvent_m_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24007 PyObject *resultobj = 0;
24008 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24009 int result;
24010 void *argp1 = 0 ;
24011 int res1 = 0 ;
24012 PyObject *swig_obj[1] ;
24013
24014 if (!args) SWIG_fail;
24015 swig_obj[0] = args;
24016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24017 if (!SWIG_IsOK(res1)) {
24018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_x_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24019 }
24020 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24021 result = (int) ((arg1)->m_x);
24022 resultobj = SWIG_From_int(static_cast< int >(result));
24023 return resultobj;
24024fail:
24025 return NULL;
24026}
24027
24028
24029SWIGINTERN PyObject *_wrap_MouseEvent_m_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24030 PyObject *resultobj = 0;
24031 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24032 int arg2 ;
24033 void *argp1 = 0 ;
24034 int res1 = 0 ;
24035 int val2 ;
24036 int ecode2 = 0 ;
24037 PyObject *swig_obj[2] ;
24038
24039 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_y_set",2,2,swig_obj)) SWIG_fail;
24040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24041 if (!SWIG_IsOK(res1)) {
24042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_y_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24043 }
24044 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24045 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24046 if (!SWIG_IsOK(ecode2)) {
24047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_y_set" "', expected argument " "2"" of type '" "int""'");
24048 }
24049 arg2 = static_cast< int >(val2);
24050 if (arg1) (arg1)->m_y = arg2;
24051
24052 resultobj = SWIG_Py_Void();
24053 return resultobj;
24054fail:
24055 return NULL;
d55e5bfc
RD
24056}
24057
24058
1bd55598
RD
24059SWIGINTERN PyObject *_wrap_MouseEvent_m_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24060 PyObject *resultobj = 0;
24061 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24062 int result;
24063 void *argp1 = 0 ;
24064 int res1 = 0 ;
24065 PyObject *swig_obj[1] ;
24066
24067 if (!args) SWIG_fail;
24068 swig_obj[0] = args;
24069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24070 if (!SWIG_IsOK(res1)) {
24071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_y_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24072 }
24073 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24074 result = (int) ((arg1)->m_y);
24075 resultobj = SWIG_From_int(static_cast< int >(result));
24076 return resultobj;
24077fail:
24078 return NULL;
24079}
24080
24081
24082SWIGINTERN PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24083 PyObject *resultobj = 0;
24084 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24085 bool arg2 ;
24086 void *argp1 = 0 ;
24087 int res1 = 0 ;
24088 bool val2 ;
24089 int ecode2 = 0 ;
24090 PyObject *swig_obj[2] ;
24091
24092 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_leftDown_set",2,2,swig_obj)) SWIG_fail;
24093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24094 if (!SWIG_IsOK(res1)) {
24095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_leftDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24096 }
24097 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24098 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
24099 if (!SWIG_IsOK(ecode2)) {
24100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_leftDown_set" "', expected argument " "2"" of type '" "bool""'");
24101 }
24102 arg2 = static_cast< bool >(val2);
24103 if (arg1) (arg1)->m_leftDown = arg2;
24104
24105 resultobj = SWIG_Py_Void();
24106 return resultobj;
24107fail:
24108 return NULL;
d55e5bfc
RD
24109}
24110
24111
1bd55598
RD
24112SWIGINTERN PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24113 PyObject *resultobj = 0;
24114 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24115 bool result;
24116 void *argp1 = 0 ;
24117 int res1 = 0 ;
24118 PyObject *swig_obj[1] ;
24119
24120 if (!args) SWIG_fail;
24121 swig_obj[0] = args;
24122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24123 if (!SWIG_IsOK(res1)) {
24124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_leftDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24125 }
24126 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24127 result = (bool) ((arg1)->m_leftDown);
24128 {
24129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24130 }
24131 return resultobj;
24132fail:
24133 return NULL;
d55e5bfc
RD
24134}
24135
24136
1bd55598
RD
24137SWIGINTERN PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24138 PyObject *resultobj = 0;
24139 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24140 bool arg2 ;
24141 void *argp1 = 0 ;
24142 int res1 = 0 ;
24143 bool val2 ;
24144 int ecode2 = 0 ;
24145 PyObject *swig_obj[2] ;
24146
24147 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_middleDown_set",2,2,swig_obj)) SWIG_fail;
24148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24149 if (!SWIG_IsOK(res1)) {
24150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_middleDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24151 }
24152 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24153 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
24154 if (!SWIG_IsOK(ecode2)) {
24155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_middleDown_set" "', expected argument " "2"" of type '" "bool""'");
24156 }
24157 arg2 = static_cast< bool >(val2);
24158 if (arg1) (arg1)->m_middleDown = arg2;
24159
24160 resultobj = SWIG_Py_Void();
24161 return resultobj;
24162fail:
24163 return NULL;
d55e5bfc
RD
24164}
24165
24166
1bd55598
RD
24167SWIGINTERN PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24168 PyObject *resultobj = 0;
24169 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24170 bool result;
24171 void *argp1 = 0 ;
24172 int res1 = 0 ;
24173 PyObject *swig_obj[1] ;
24174
24175 if (!args) SWIG_fail;
24176 swig_obj[0] = args;
24177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24178 if (!SWIG_IsOK(res1)) {
24179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_middleDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24180 }
24181 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24182 result = (bool) ((arg1)->m_middleDown);
24183 {
24184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24185 }
24186 return resultobj;
24187fail:
24188 return NULL;
d55e5bfc
RD
24189}
24190
24191
1bd55598
RD
24192SWIGINTERN PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24193 PyObject *resultobj = 0;
24194 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24195 bool arg2 ;
24196 void *argp1 = 0 ;
24197 int res1 = 0 ;
24198 bool val2 ;
24199 int ecode2 = 0 ;
24200 PyObject *swig_obj[2] ;
24201
24202 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_rightDown_set",2,2,swig_obj)) SWIG_fail;
24203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24204 if (!SWIG_IsOK(res1)) {
24205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_rightDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24206 }
24207 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24208 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
24209 if (!SWIG_IsOK(ecode2)) {
24210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_rightDown_set" "', expected argument " "2"" of type '" "bool""'");
24211 }
24212 arg2 = static_cast< bool >(val2);
24213 if (arg1) (arg1)->m_rightDown = arg2;
24214
24215 resultobj = SWIG_Py_Void();
24216 return resultobj;
24217fail:
24218 return NULL;
d55e5bfc
RD
24219}
24220
24221
1bd55598
RD
24222SWIGINTERN PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24223 PyObject *resultobj = 0;
24224 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24225 bool result;
24226 void *argp1 = 0 ;
24227 int res1 = 0 ;
24228 PyObject *swig_obj[1] ;
24229
24230 if (!args) SWIG_fail;
24231 swig_obj[0] = args;
24232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24233 if (!SWIG_IsOK(res1)) {
24234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_rightDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24235 }
24236 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24237 result = (bool) ((arg1)->m_rightDown);
24238 {
24239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24240 }
24241 return resultobj;
24242fail:
24243 return NULL;
d55e5bfc
RD
24244}
24245
24246
1bd55598
RD
24247SWIGINTERN PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24248 PyObject *resultobj = 0;
24249 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24250 bool arg2 ;
24251 void *argp1 = 0 ;
24252 int res1 = 0 ;
24253 bool val2 ;
24254 int ecode2 = 0 ;
24255 PyObject *swig_obj[2] ;
24256
24257 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_controlDown_set",2,2,swig_obj)) SWIG_fail;
24258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24259 if (!SWIG_IsOK(res1)) {
24260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_controlDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24261 }
24262 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24263 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
24264 if (!SWIG_IsOK(ecode2)) {
24265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_controlDown_set" "', expected argument " "2"" of type '" "bool""'");
24266 }
24267 arg2 = static_cast< bool >(val2);
24268 if (arg1) (arg1)->m_controlDown = arg2;
24269
24270 resultobj = SWIG_Py_Void();
24271 return resultobj;
24272fail:
24273 return NULL;
d55e5bfc
RD
24274}
24275
24276
1bd55598
RD
24277SWIGINTERN PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24278 PyObject *resultobj = 0;
24279 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24280 bool result;
24281 void *argp1 = 0 ;
24282 int res1 = 0 ;
24283 PyObject *swig_obj[1] ;
24284
24285 if (!args) SWIG_fail;
24286 swig_obj[0] = args;
24287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24288 if (!SWIG_IsOK(res1)) {
24289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_controlDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24290 }
24291 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24292 result = (bool) ((arg1)->m_controlDown);
24293 {
24294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24295 }
24296 return resultobj;
24297fail:
24298 return NULL;
943e8dfd
RD
24299}
24300
24301
1bd55598
RD
24302SWIGINTERN PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24303 PyObject *resultobj = 0;
24304 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24305 bool arg2 ;
24306 void *argp1 = 0 ;
24307 int res1 = 0 ;
24308 bool val2 ;
24309 int ecode2 = 0 ;
24310 PyObject *swig_obj[2] ;
24311
24312 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_shiftDown_set",2,2,swig_obj)) SWIG_fail;
24313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24314 if (!SWIG_IsOK(res1)) {
24315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_shiftDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24316 }
24317 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24318 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
24319 if (!SWIG_IsOK(ecode2)) {
24320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_shiftDown_set" "', expected argument " "2"" of type '" "bool""'");
24321 }
24322 arg2 = static_cast< bool >(val2);
24323 if (arg1) (arg1)->m_shiftDown = arg2;
24324
24325 resultobj = SWIG_Py_Void();
24326 return resultobj;
24327fail:
24328 return NULL;
943e8dfd
RD
24329}
24330
24331
1bd55598
RD
24332SWIGINTERN PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24333 PyObject *resultobj = 0;
24334 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24335 bool result;
24336 void *argp1 = 0 ;
24337 int res1 = 0 ;
24338 PyObject *swig_obj[1] ;
24339
24340 if (!args) SWIG_fail;
24341 swig_obj[0] = args;
24342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24343 if (!SWIG_IsOK(res1)) {
24344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_shiftDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24345 }
24346 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24347 result = (bool) ((arg1)->m_shiftDown);
24348 {
24349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24350 }
24351 return resultobj;
24352fail:
24353 return NULL;
943e8dfd
RD
24354}
24355
24356
1bd55598
RD
24357SWIGINTERN PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24358 PyObject *resultobj = 0;
24359 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24360 bool arg2 ;
24361 void *argp1 = 0 ;
24362 int res1 = 0 ;
24363 bool val2 ;
24364 int ecode2 = 0 ;
24365 PyObject *swig_obj[2] ;
24366
24367 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_altDown_set",2,2,swig_obj)) SWIG_fail;
24368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24369 if (!SWIG_IsOK(res1)) {
24370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_altDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24371 }
24372 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24373 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
24374 if (!SWIG_IsOK(ecode2)) {
24375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_altDown_set" "', expected argument " "2"" of type '" "bool""'");
24376 }
24377 arg2 = static_cast< bool >(val2);
24378 if (arg1) (arg1)->m_altDown = arg2;
24379
24380 resultobj = SWIG_Py_Void();
24381 return resultobj;
24382fail:
24383 return NULL;
d55e5bfc
RD
24384}
24385
24386
1bd55598
RD
24387SWIGINTERN PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24388 PyObject *resultobj = 0;
24389 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24390 bool result;
24391 void *argp1 = 0 ;
24392 int res1 = 0 ;
24393 PyObject *swig_obj[1] ;
24394
24395 if (!args) SWIG_fail;
24396 swig_obj[0] = args;
24397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24398 if (!SWIG_IsOK(res1)) {
24399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_altDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24400 }
24401 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24402 result = (bool) ((arg1)->m_altDown);
24403 {
24404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24405 }
24406 return resultobj;
24407fail:
24408 return NULL;
d55e5bfc
RD
24409}
24410
24411
1bd55598
RD
24412SWIGINTERN PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24413 PyObject *resultobj = 0;
24414 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24415 bool arg2 ;
24416 void *argp1 = 0 ;
24417 int res1 = 0 ;
24418 bool val2 ;
24419 int ecode2 = 0 ;
24420 PyObject *swig_obj[2] ;
24421
24422 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_metaDown_set",2,2,swig_obj)) SWIG_fail;
24423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24424 if (!SWIG_IsOK(res1)) {
24425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_metaDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24426 }
24427 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24428 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
24429 if (!SWIG_IsOK(ecode2)) {
24430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_metaDown_set" "', expected argument " "2"" of type '" "bool""'");
24431 }
24432 arg2 = static_cast< bool >(val2);
24433 if (arg1) (arg1)->m_metaDown = arg2;
24434
24435 resultobj = SWIG_Py_Void();
24436 return resultobj;
24437fail:
24438 return NULL;
68350608
RD
24439}
24440
24441
1bd55598
RD
24442SWIGINTERN PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24443 PyObject *resultobj = 0;
24444 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24445 bool result;
24446 void *argp1 = 0 ;
24447 int res1 = 0 ;
24448 PyObject *swig_obj[1] ;
24449
24450 if (!args) SWIG_fail;
24451 swig_obj[0] = args;
24452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24453 if (!SWIG_IsOK(res1)) {
24454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_metaDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24455 }
24456 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24457 result = (bool) ((arg1)->m_metaDown);
24458 {
24459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24460 }
24461 return resultobj;
24462fail:
24463 return NULL;
68350608
RD
24464}
24465
24466
1bd55598
RD
24467SWIGINTERN PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24468 PyObject *resultobj = 0;
24469 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24470 int arg2 ;
24471 void *argp1 = 0 ;
24472 int res1 = 0 ;
24473 int val2 ;
24474 int ecode2 = 0 ;
24475 PyObject *swig_obj[2] ;
24476
24477 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_wheelRotation_set",2,2,swig_obj)) SWIG_fail;
24478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24479 if (!SWIG_IsOK(res1)) {
24480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_wheelRotation_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24481 }
24482 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24483 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24484 if (!SWIG_IsOK(ecode2)) {
24485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_wheelRotation_set" "', expected argument " "2"" of type '" "int""'");
24486 }
24487 arg2 = static_cast< int >(val2);
24488 if (arg1) (arg1)->m_wheelRotation = arg2;
24489
24490 resultobj = SWIG_Py_Void();
24491 return resultobj;
24492fail:
24493 return NULL;
d55e5bfc
RD
24494}
24495
24496
1bd55598
RD
24497SWIGINTERN PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24498 PyObject *resultobj = 0;
24499 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24500 int result;
24501 void *argp1 = 0 ;
24502 int res1 = 0 ;
24503 PyObject *swig_obj[1] ;
24504
24505 if (!args) SWIG_fail;
24506 swig_obj[0] = args;
24507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24508 if (!SWIG_IsOK(res1)) {
24509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_wheelRotation_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24510 }
24511 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24512 result = (int) ((arg1)->m_wheelRotation);
24513 resultobj = SWIG_From_int(static_cast< int >(result));
24514 return resultobj;
24515fail:
24516 return NULL;
24517}
24518
24519
24520SWIGINTERN PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24521 PyObject *resultobj = 0;
24522 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24523 int arg2 ;
24524 void *argp1 = 0 ;
24525 int res1 = 0 ;
24526 int val2 ;
24527 int ecode2 = 0 ;
24528 PyObject *swig_obj[2] ;
24529
24530 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_wheelDelta_set",2,2,swig_obj)) SWIG_fail;
24531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24532 if (!SWIG_IsOK(res1)) {
24533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_wheelDelta_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24534 }
24535 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24536 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24537 if (!SWIG_IsOK(ecode2)) {
24538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_wheelDelta_set" "', expected argument " "2"" of type '" "int""'");
24539 }
24540 arg2 = static_cast< int >(val2);
24541 if (arg1) (arg1)->m_wheelDelta = arg2;
24542
24543 resultobj = SWIG_Py_Void();
24544 return resultobj;
24545fail:
24546 return NULL;
d55e5bfc
RD
24547}
24548
24549
1bd55598
RD
24550SWIGINTERN PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24551 PyObject *resultobj = 0;
24552 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24553 int result;
24554 void *argp1 = 0 ;
24555 int res1 = 0 ;
24556 PyObject *swig_obj[1] ;
24557
24558 if (!args) SWIG_fail;
24559 swig_obj[0] = args;
24560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24561 if (!SWIG_IsOK(res1)) {
24562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_wheelDelta_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24563 }
24564 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24565 result = (int) ((arg1)->m_wheelDelta);
24566 resultobj = SWIG_From_int(static_cast< int >(result));
24567 return resultobj;
24568fail:
24569 return NULL;
24570}
24571
24572
24573SWIGINTERN PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24574 PyObject *resultobj = 0;
24575 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24576 int arg2 ;
24577 void *argp1 = 0 ;
24578 int res1 = 0 ;
24579 int val2 ;
24580 int ecode2 = 0 ;
24581 PyObject *swig_obj[2] ;
24582
24583 if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_linesPerAction_set",2,2,swig_obj)) SWIG_fail;
24584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24585 if (!SWIG_IsOK(res1)) {
24586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_linesPerAction_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24587 }
24588 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24589 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24590 if (!SWIG_IsOK(ecode2)) {
24591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_linesPerAction_set" "', expected argument " "2"" of type '" "int""'");
24592 }
24593 arg2 = static_cast< int >(val2);
24594 if (arg1) (arg1)->m_linesPerAction = arg2;
24595
24596 resultobj = SWIG_Py_Void();
24597 return resultobj;
24598fail:
24599 return NULL;
d55e5bfc
RD
24600}
24601
24602
1bd55598
RD
24603SWIGINTERN PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24604 PyObject *resultobj = 0;
24605 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
24606 int result;
24607 void *argp1 = 0 ;
24608 int res1 = 0 ;
24609 PyObject *swig_obj[1] ;
24610
24611 if (!args) SWIG_fail;
24612 swig_obj[0] = args;
24613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
24614 if (!SWIG_IsOK(res1)) {
24615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_linesPerAction_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
24616 }
24617 arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
24618 result = (int) ((arg1)->m_linesPerAction);
24619 resultobj = SWIG_From_int(static_cast< int >(result));
24620 return resultobj;
24621fail:
24622 return NULL;
24623}
24624
24625
24626SWIGINTERN PyObject *MouseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24627 PyObject *obj;
24628 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24629 SWIG_TypeNewClientData(SWIGTYPE_p_wxMouseEvent, SWIG_NewClientData(obj));
24630 return SWIG_Py_Void();
24631}
24632
24633SWIGINTERN PyObject *MouseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24634 return SWIG_Python_InitShadowInstance(args);
24635}
24636
24637SWIGINTERN PyObject *_wrap_new_SetCursorEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24638 PyObject *resultobj = 0;
24639 int arg1 = (int) 0 ;
24640 int arg2 = (int) 0 ;
24641 wxSetCursorEvent *result = 0 ;
24642 int val1 ;
24643 int ecode1 = 0 ;
24644 int val2 ;
24645 int ecode2 = 0 ;
24646 PyObject * obj0 = 0 ;
24647 PyObject * obj1 = 0 ;
24648 char * kwnames[] = {
24649 (char *) "x",(char *) "y", NULL
24650 };
24651
24652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) SWIG_fail;
24653 if (obj0) {
24654 ecode1 = SWIG_AsVal_int(obj0, &val1);
24655 if (!SWIG_IsOK(ecode1)) {
24656 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SetCursorEvent" "', expected argument " "1"" of type '" "int""'");
24657 }
24658 arg1 = static_cast< int >(val1);
24659 }
24660 if (obj1) {
24661 ecode2 = SWIG_AsVal_int(obj1, &val2);
24662 if (!SWIG_IsOK(ecode2)) {
24663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SetCursorEvent" "', expected argument " "2"" of type '" "int""'");
24664 }
24665 arg2 = static_cast< int >(val2);
24666 }
24667 {
24668 PyThreadState* __tstate = wxPyBeginAllowThreads();
24669 result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2);
24670 wxPyEndAllowThreads(__tstate);
24671 if (PyErr_Occurred()) SWIG_fail;
24672 }
24673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_NEW | 0 );
24674 return resultobj;
24675fail:
24676 return NULL;
d55e5bfc
RD
24677}
24678
24679
1bd55598
RD
24680SWIGINTERN PyObject *_wrap_SetCursorEvent_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24681 PyObject *resultobj = 0;
24682 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
24683 int result;
24684 void *argp1 = 0 ;
24685 int res1 = 0 ;
24686 PyObject *swig_obj[1] ;
24687
24688 if (!args) SWIG_fail;
24689 swig_obj[0] = args;
24690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSetCursorEvent, 0 | 0 );
24691 if (!SWIG_IsOK(res1)) {
24692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursorEvent_GetX" "', expected argument " "1"" of type '" "wxSetCursorEvent const *""'");
24693 }
24694 arg1 = reinterpret_cast< wxSetCursorEvent * >(argp1);
24695 {
24696 PyThreadState* __tstate = wxPyBeginAllowThreads();
24697 result = (int)((wxSetCursorEvent const *)arg1)->GetX();
24698 wxPyEndAllowThreads(__tstate);
24699 if (PyErr_Occurred()) SWIG_fail;
24700 }
24701 resultobj = SWIG_From_int(static_cast< int >(result));
24702 return resultobj;
24703fail:
24704 return NULL;
d55e5bfc
RD
24705}
24706
24707
1bd55598
RD
24708SWIGINTERN PyObject *_wrap_SetCursorEvent_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24709 PyObject *resultobj = 0;
24710 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
24711 int result;
24712 void *argp1 = 0 ;
24713 int res1 = 0 ;
24714 PyObject *swig_obj[1] ;
24715
24716 if (!args) SWIG_fail;
24717 swig_obj[0] = args;
24718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSetCursorEvent, 0 | 0 );
24719 if (!SWIG_IsOK(res1)) {
24720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursorEvent_GetY" "', expected argument " "1"" of type '" "wxSetCursorEvent const *""'");
24721 }
24722 arg1 = reinterpret_cast< wxSetCursorEvent * >(argp1);
24723 {
24724 PyThreadState* __tstate = wxPyBeginAllowThreads();
24725 result = (int)((wxSetCursorEvent const *)arg1)->GetY();
24726 wxPyEndAllowThreads(__tstate);
24727 if (PyErr_Occurred()) SWIG_fail;
24728 }
24729 resultobj = SWIG_From_int(static_cast< int >(result));
24730 return resultobj;
24731fail:
24732 return NULL;
24733}
24734
24735
24736SWIGINTERN PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24737 PyObject *resultobj = 0;
24738 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
24739 wxCursor *arg2 = 0 ;
24740 void *argp1 = 0 ;
24741 int res1 = 0 ;
24742 void *argp2 = 0 ;
24743 int res2 = 0 ;
24744 PyObject * obj0 = 0 ;
24745 PyObject * obj1 = 0 ;
24746 char * kwnames[] = {
24747 (char *) "self",(char *) "cursor", NULL
24748 };
24749
24750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) SWIG_fail;
24751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSetCursorEvent, 0 | 0 );
24752 if (!SWIG_IsOK(res1)) {
24753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursorEvent_SetCursor" "', expected argument " "1"" of type '" "wxSetCursorEvent *""'");
24754 }
24755 arg1 = reinterpret_cast< wxSetCursorEvent * >(argp1);
24756 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
24757 if (!SWIG_IsOK(res2)) {
24758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SetCursorEvent_SetCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
24759 }
24760 if (!argp2) {
24761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SetCursorEvent_SetCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
24762 }
24763 arg2 = reinterpret_cast< wxCursor * >(argp2);
24764 {
24765 PyThreadState* __tstate = wxPyBeginAllowThreads();
24766 (arg1)->SetCursor((wxCursor const &)*arg2);
24767 wxPyEndAllowThreads(__tstate);
24768 if (PyErr_Occurred()) SWIG_fail;
24769 }
24770 resultobj = SWIG_Py_Void();
24771 return resultobj;
24772fail:
24773 return NULL;
d55e5bfc
RD
24774}
24775
24776
1bd55598
RD
24777SWIGINTERN PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24778 PyObject *resultobj = 0;
24779 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
24780 wxCursor *result = 0 ;
24781 void *argp1 = 0 ;
24782 int res1 = 0 ;
24783 PyObject *swig_obj[1] ;
24784
24785 if (!args) SWIG_fail;
24786 swig_obj[0] = args;
24787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSetCursorEvent, 0 | 0 );
24788 if (!SWIG_IsOK(res1)) {
24789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursorEvent_GetCursor" "', expected argument " "1"" of type '" "wxSetCursorEvent const *""'");
24790 }
24791 arg1 = reinterpret_cast< wxSetCursorEvent * >(argp1);
24792 {
24793 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 24794 {
1bd55598
RD
24795 wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor();
24796 result = (wxCursor *) &_result_ref;
d55e5bfc 24797 }
1bd55598
RD
24798 wxPyEndAllowThreads(__tstate);
24799 if (PyErr_Occurred()) SWIG_fail;
24800 }
24801 {
24802 wxCursor* resultptr = new wxCursor(*result);
24803 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1);
24804 }
24805 return resultobj;
24806fail:
24807 return NULL;
d55e5bfc
RD
24808}
24809
24810
1bd55598
RD
24811SWIGINTERN PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24812 PyObject *resultobj = 0;
24813 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
24814 bool result;
24815 void *argp1 = 0 ;
24816 int res1 = 0 ;
24817 PyObject *swig_obj[1] ;
24818
24819 if (!args) SWIG_fail;
24820 swig_obj[0] = args;
24821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSetCursorEvent, 0 | 0 );
24822 if (!SWIG_IsOK(res1)) {
24823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursorEvent_HasCursor" "', expected argument " "1"" of type '" "wxSetCursorEvent const *""'");
24824 }
24825 arg1 = reinterpret_cast< wxSetCursorEvent * >(argp1);
24826 {
24827 PyThreadState* __tstate = wxPyBeginAllowThreads();
24828 result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor();
24829 wxPyEndAllowThreads(__tstate);
24830 if (PyErr_Occurred()) SWIG_fail;
24831 }
24832 {
24833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24834 }
24835 return resultobj;
24836fail:
24837 return NULL;
68350608
RD
24838}
24839
24840
1bd55598
RD
24841SWIGINTERN PyObject *SetCursorEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24842 PyObject *obj;
24843 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24844 SWIG_TypeNewClientData(SWIGTYPE_p_wxSetCursorEvent, SWIG_NewClientData(obj));
24845 return SWIG_Py_Void();
68350608
RD
24846}
24847
1bd55598
RD
24848SWIGINTERN PyObject *SetCursorEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24849 return SWIG_Python_InitShadowInstance(args);
24850}
68350608 24851
1bd55598
RD
24852SWIGINTERN PyObject *_wrap_new_KeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24853 PyObject *resultobj = 0;
24854 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
24855 wxKeyEvent *result = 0 ;
24856 int val1 ;
24857 int ecode1 = 0 ;
24858 PyObject * obj0 = 0 ;
24859 char * kwnames[] = {
24860 (char *) "eventType", NULL
24861 };
24862
24863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) SWIG_fail;
24864 if (obj0) {
24865 ecode1 = SWIG_AsVal_int(obj0, &val1);
24866 if (!SWIG_IsOK(ecode1)) {
24867 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_KeyEvent" "', expected argument " "1"" of type '" "wxEventType""'");
24868 }
24869 arg1 = static_cast< wxEventType >(val1);
24870 }
24871 {
24872 PyThreadState* __tstate = wxPyBeginAllowThreads();
24873 result = (wxKeyEvent *)new wxKeyEvent(arg1);
24874 wxPyEndAllowThreads(__tstate);
24875 if (PyErr_Occurred()) SWIG_fail;
24876 }
24877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_NEW | 0 );
24878 return resultobj;
24879fail:
24880 return NULL;
68350608
RD
24881}
24882
24883
1bd55598
RD
24884SWIGINTERN PyObject *_wrap_KeyEvent_GetModifiers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24885 PyObject *resultobj = 0;
24886 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
24887 int result;
24888 void *argp1 = 0 ;
24889 int res1 = 0 ;
24890 PyObject *swig_obj[1] ;
24891
24892 if (!args) SWIG_fail;
24893 swig_obj[0] = args;
24894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
24895 if (!SWIG_IsOK(res1)) {
24896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetModifiers" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
24897 }
24898 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
24899 {
24900 PyThreadState* __tstate = wxPyBeginAllowThreads();
24901 result = (int)((wxKeyEvent const *)arg1)->GetModifiers();
24902 wxPyEndAllowThreads(__tstate);
24903 if (PyErr_Occurred()) SWIG_fail;
24904 }
24905 resultobj = SWIG_From_int(static_cast< int >(result));
24906 return resultobj;
24907fail:
24908 return NULL;
68350608
RD
24909}
24910
24911
1bd55598
RD
24912SWIGINTERN PyObject *_wrap_KeyEvent_ControlDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24913 PyObject *resultobj = 0;
24914 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
24915 bool result;
24916 void *argp1 = 0 ;
24917 int res1 = 0 ;
24918 PyObject *swig_obj[1] ;
24919
24920 if (!args) SWIG_fail;
24921 swig_obj[0] = args;
24922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
24923 if (!SWIG_IsOK(res1)) {
24924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_ControlDown" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
24925 }
24926 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
24927 {
24928 PyThreadState* __tstate = wxPyBeginAllowThreads();
24929 result = (bool)((wxKeyEvent const *)arg1)->ControlDown();
24930 wxPyEndAllowThreads(__tstate);
24931 if (PyErr_Occurred()) SWIG_fail;
24932 }
24933 {
24934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24935 }
24936 return resultobj;
24937fail:
24938 return NULL;
d55e5bfc
RD
24939}
24940
24941
1bd55598
RD
24942SWIGINTERN PyObject *_wrap_KeyEvent_MetaDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24943 PyObject *resultobj = 0;
24944 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
24945 bool result;
24946 void *argp1 = 0 ;
24947 int res1 = 0 ;
24948 PyObject *swig_obj[1] ;
24949
24950 if (!args) SWIG_fail;
24951 swig_obj[0] = args;
24952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
24953 if (!SWIG_IsOK(res1)) {
24954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_MetaDown" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
24955 }
24956 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
24957 {
24958 PyThreadState* __tstate = wxPyBeginAllowThreads();
24959 result = (bool)((wxKeyEvent const *)arg1)->MetaDown();
24960 wxPyEndAllowThreads(__tstate);
24961 if (PyErr_Occurred()) SWIG_fail;
24962 }
24963 {
24964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24965 }
24966 return resultobj;
24967fail:
24968 return NULL;
d55e5bfc
RD
24969}
24970
24971
1bd55598
RD
24972SWIGINTERN PyObject *_wrap_KeyEvent_AltDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24973 PyObject *resultobj = 0;
24974 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
24975 bool result;
24976 void *argp1 = 0 ;
24977 int res1 = 0 ;
24978 PyObject *swig_obj[1] ;
24979
24980 if (!args) SWIG_fail;
24981 swig_obj[0] = args;
24982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
24983 if (!SWIG_IsOK(res1)) {
24984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_AltDown" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
24985 }
24986 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
24987 {
24988 PyThreadState* __tstate = wxPyBeginAllowThreads();
24989 result = (bool)((wxKeyEvent const *)arg1)->AltDown();
24990 wxPyEndAllowThreads(__tstate);
24991 if (PyErr_Occurred()) SWIG_fail;
24992 }
24993 {
24994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24995 }
24996 return resultobj;
24997fail:
24998 return NULL;
24d7cbea
RD
24999}
25000
25001
1bd55598
RD
25002SWIGINTERN PyObject *_wrap_KeyEvent_ShiftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25003 PyObject *resultobj = 0;
25004 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25005 bool result;
25006 void *argp1 = 0 ;
25007 int res1 = 0 ;
25008 PyObject *swig_obj[1] ;
25009
25010 if (!args) SWIG_fail;
25011 swig_obj[0] = args;
25012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25013 if (!SWIG_IsOK(res1)) {
25014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_ShiftDown" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
25015 }
25016 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25017 {
25018 PyThreadState* __tstate = wxPyBeginAllowThreads();
25019 result = (bool)((wxKeyEvent const *)arg1)->ShiftDown();
25020 wxPyEndAllowThreads(__tstate);
25021 if (PyErr_Occurred()) SWIG_fail;
25022 }
25023 {
25024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25025 }
25026 return resultobj;
25027fail:
25028 return NULL;
24d7cbea
RD
25029}
25030
25031
1bd55598
RD
25032SWIGINTERN PyObject *_wrap_KeyEvent_CmdDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25033 PyObject *resultobj = 0;
25034 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25035 bool result;
25036 void *argp1 = 0 ;
25037 int res1 = 0 ;
25038 PyObject *swig_obj[1] ;
25039
25040 if (!args) SWIG_fail;
25041 swig_obj[0] = args;
25042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25043 if (!SWIG_IsOK(res1)) {
25044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_CmdDown" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
25045 }
25046 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25047 {
25048 PyThreadState* __tstate = wxPyBeginAllowThreads();
25049 result = (bool)((wxKeyEvent const *)arg1)->CmdDown();
25050 wxPyEndAllowThreads(__tstate);
25051 if (PyErr_Occurred()) SWIG_fail;
25052 }
25053 {
25054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25055 }
25056 return resultobj;
25057fail:
25058 return NULL;
68350608
RD
25059}
25060
25061
1bd55598
RD
25062SWIGINTERN PyObject *_wrap_KeyEvent_HasModifiers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25063 PyObject *resultobj = 0;
25064 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25065 bool result;
25066 void *argp1 = 0 ;
25067 int res1 = 0 ;
25068 PyObject *swig_obj[1] ;
25069
25070 if (!args) SWIG_fail;
25071 swig_obj[0] = args;
25072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25073 if (!SWIG_IsOK(res1)) {
25074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_HasModifiers" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
25075 }
25076 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25077 {
25078 PyThreadState* __tstate = wxPyBeginAllowThreads();
25079 result = (bool)((wxKeyEvent const *)arg1)->HasModifiers();
25080 wxPyEndAllowThreads(__tstate);
25081 if (PyErr_Occurred()) SWIG_fail;
25082 }
25083 {
25084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25085 }
25086 return resultobj;
25087fail:
25088 return NULL;
68350608
RD
25089}
25090
25091
1bd55598
RD
25092SWIGINTERN PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25093 PyObject *resultobj = 0;
25094 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25095 int result;
25096 void *argp1 = 0 ;
25097 int res1 = 0 ;
25098 PyObject *swig_obj[1] ;
25099
25100 if (!args) SWIG_fail;
25101 swig_obj[0] = args;
25102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25103 if (!SWIG_IsOK(res1)) {
25104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
25105 }
25106 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25107 {
25108 PyThreadState* __tstate = wxPyBeginAllowThreads();
25109 result = (int)((wxKeyEvent const *)arg1)->GetKeyCode();
25110 wxPyEndAllowThreads(__tstate);
25111 if (PyErr_Occurred()) SWIG_fail;
25112 }
25113 resultobj = SWIG_From_int(static_cast< int >(result));
25114 return resultobj;
25115fail:
25116 return NULL;
68350608
RD
25117}
25118
25119
1bd55598
RD
25120SWIGINTERN PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25121 PyObject *resultobj = 0;
25122 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25123 int result;
25124 void *argp1 = 0 ;
25125 int res1 = 0 ;
25126 PyObject *swig_obj[1] ;
25127
25128 if (!args) SWIG_fail;
25129 swig_obj[0] = args;
25130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25131 if (!SWIG_IsOK(res1)) {
25132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetUnicodeKey" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25133 }
25134 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25135 {
25136 PyThreadState* __tstate = wxPyBeginAllowThreads();
25137 result = (int)wxKeyEvent_GetUnicodeKey(arg1);
25138 wxPyEndAllowThreads(__tstate);
25139 if (PyErr_Occurred()) SWIG_fail;
25140 }
25141 resultobj = SWIG_From_int(static_cast< int >(result));
25142 return resultobj;
25143fail:
25144 return NULL;
68350608
RD
25145}
25146
25147
b850e7f3
RD
25148SWIGINTERN PyObject *_wrap_KeyEvent_SetUnicodeKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25149 PyObject *resultobj = 0;
25150 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25151 int arg2 ;
25152 void *argp1 = 0 ;
25153 int res1 = 0 ;
25154 int val2 ;
25155 int ecode2 = 0 ;
25156 PyObject * obj0 = 0 ;
25157 PyObject * obj1 = 0 ;
25158 char * kwnames[] = {
25159 (char *) "self",(char *) "uniChar", NULL
25160 };
25161
25162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_SetUnicodeKey",kwnames,&obj0,&obj1)) SWIG_fail;
25163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25164 if (!SWIG_IsOK(res1)) {
25165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_SetUnicodeKey" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25166 }
25167 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25168 ecode2 = SWIG_AsVal_int(obj1, &val2);
25169 if (!SWIG_IsOK(ecode2)) {
25170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_SetUnicodeKey" "', expected argument " "2"" of type '" "int""'");
25171 }
25172 arg2 = static_cast< int >(val2);
25173 {
25174 PyThreadState* __tstate = wxPyBeginAllowThreads();
25175 wxKeyEvent_SetUnicodeKey(arg1,arg2);
25176 wxPyEndAllowThreads(__tstate);
25177 if (PyErr_Occurred()) SWIG_fail;
25178 }
25179 resultobj = SWIG_Py_Void();
25180 return resultobj;
25181fail:
25182 return NULL;
25183}
25184
25185
1bd55598
RD
25186SWIGINTERN PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25187 PyObject *resultobj = 0;
25188 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25189 unsigned int result;
25190 void *argp1 = 0 ;
25191 int res1 = 0 ;
25192 PyObject *swig_obj[1] ;
25193
25194 if (!args) SWIG_fail;
25195 swig_obj[0] = args;
25196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25197 if (!SWIG_IsOK(res1)) {
25198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetRawKeyCode" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
25199 }
25200 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25201 {
25202 PyThreadState* __tstate = wxPyBeginAllowThreads();
25203 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode();
25204 wxPyEndAllowThreads(__tstate);
25205 if (PyErr_Occurred()) SWIG_fail;
25206 }
25207 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25208 return resultobj;
25209fail:
25210 return NULL;
68350608
RD
25211}
25212
25213
1bd55598
RD
25214SWIGINTERN PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25215 PyObject *resultobj = 0;
25216 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25217 unsigned int result;
25218 void *argp1 = 0 ;
25219 int res1 = 0 ;
25220 PyObject *swig_obj[1] ;
25221
25222 if (!args) SWIG_fail;
25223 swig_obj[0] = args;
25224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25225 if (!SWIG_IsOK(res1)) {
25226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetRawKeyFlags" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
25227 }
25228 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25229 {
25230 PyThreadState* __tstate = wxPyBeginAllowThreads();
25231 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags();
25232 wxPyEndAllowThreads(__tstate);
25233 if (PyErr_Occurred()) SWIG_fail;
25234 }
25235 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25236 return resultobj;
25237fail:
25238 return NULL;
68350608
RD
25239}
25240
25241
1bd55598
RD
25242SWIGINTERN PyObject *_wrap_KeyEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25243 PyObject *resultobj = 0;
25244 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25245 wxPoint result;
25246 void *argp1 = 0 ;
25247 int res1 = 0 ;
25248 PyObject *swig_obj[1] ;
25249
25250 if (!args) SWIG_fail;
25251 swig_obj[0] = args;
25252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25253 if (!SWIG_IsOK(res1)) {
25254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetPosition" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25255 }
25256 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25257 {
25258 PyThreadState* __tstate = wxPyBeginAllowThreads();
25259 result = (arg1)->GetPosition();
25260 wxPyEndAllowThreads(__tstate);
25261 if (PyErr_Occurred()) SWIG_fail;
25262 }
25263 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
25264 return resultobj;
25265fail:
25266 return NULL;
25267}
25268
25269
25270SWIGINTERN PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25271 PyObject *resultobj = 0;
25272 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25273 long *arg2 = (long *) 0 ;
25274 long *arg3 = (long *) 0 ;
25275 void *argp1 = 0 ;
25276 int res1 = 0 ;
25277 long temp2 ;
25278 int res2 = SWIG_TMPOBJ ;
25279 long temp3 ;
25280 int res3 = SWIG_TMPOBJ ;
25281 PyObject *swig_obj[1] ;
25282
25283 arg2 = &temp2;
25284 arg3 = &temp3;
25285 if (!args) SWIG_fail;
25286 swig_obj[0] = args;
25287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25288 if (!SWIG_IsOK(res1)) {
25289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetPositionTuple" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25290 }
25291 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25292 {
25293 PyThreadState* __tstate = wxPyBeginAllowThreads();
25294 (arg1)->GetPosition(arg2,arg3);
25295 wxPyEndAllowThreads(__tstate);
25296 if (PyErr_Occurred()) SWIG_fail;
25297 }
25298 resultobj = SWIG_Py_Void();
25299 if (SWIG_IsTmpObj(res2)) {
25300 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
25301 } else {
25302 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25303 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
25304 }
25305 if (SWIG_IsTmpObj(res3)) {
25306 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
25307 } else {
25308 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25309 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
25310 }
25311 return resultobj;
25312fail:
25313 return NULL;
68350608
RD
25314}
25315
25316
1bd55598
RD
25317SWIGINTERN PyObject *_wrap_KeyEvent_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25318 PyObject *resultobj = 0;
25319 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25320 int result;
25321 void *argp1 = 0 ;
25322 int res1 = 0 ;
25323 PyObject *swig_obj[1] ;
25324
25325 if (!args) SWIG_fail;
25326 swig_obj[0] = args;
25327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25328 if (!SWIG_IsOK(res1)) {
25329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetX" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
25330 }
25331 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25332 {
25333 PyThreadState* __tstate = wxPyBeginAllowThreads();
25334 result = (int)((wxKeyEvent const *)arg1)->GetX();
25335 wxPyEndAllowThreads(__tstate);
25336 if (PyErr_Occurred()) SWIG_fail;
25337 }
25338 resultobj = SWIG_From_int(static_cast< int >(result));
25339 return resultobj;
25340fail:
25341 return NULL;
68350608
RD
25342}
25343
25344
1bd55598
RD
25345SWIGINTERN PyObject *_wrap_KeyEvent_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25346 PyObject *resultobj = 0;
25347 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25348 int result;
25349 void *argp1 = 0 ;
25350 int res1 = 0 ;
25351 PyObject *swig_obj[1] ;
25352
25353 if (!args) SWIG_fail;
25354 swig_obj[0] = args;
25355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25356 if (!SWIG_IsOK(res1)) {
25357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetY" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
25358 }
25359 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25360 {
25361 PyThreadState* __tstate = wxPyBeginAllowThreads();
25362 result = (int)((wxKeyEvent const *)arg1)->GetY();
25363 wxPyEndAllowThreads(__tstate);
25364 if (PyErr_Occurred()) SWIG_fail;
25365 }
25366 resultobj = SWIG_From_int(static_cast< int >(result));
25367 return resultobj;
25368fail:
25369 return NULL;
25370}
25371
25372
25373SWIGINTERN PyObject *_wrap_KeyEvent_m_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25374 PyObject *resultobj = 0;
25375 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25376 int arg2 ;
25377 void *argp1 = 0 ;
25378 int res1 = 0 ;
25379 int val2 ;
25380 int ecode2 = 0 ;
25381 PyObject *swig_obj[2] ;
25382
25383 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_x_set",2,2,swig_obj)) SWIG_fail;
25384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25385 if (!SWIG_IsOK(res1)) {
25386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_x_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25387 }
25388 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25389 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
25390 if (!SWIG_IsOK(ecode2)) {
25391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_x_set" "', expected argument " "2"" of type '" "int""'");
25392 }
25393 arg2 = static_cast< int >(val2);
25394 if (arg1) (arg1)->m_x = arg2;
25395
25396 resultobj = SWIG_Py_Void();
25397 return resultobj;
25398fail:
25399 return NULL;
7fbf8399
RD
25400}
25401
25402
1bd55598
RD
25403SWIGINTERN PyObject *_wrap_KeyEvent_m_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25404 PyObject *resultobj = 0;
25405 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25406 int result;
25407 void *argp1 = 0 ;
25408 int res1 = 0 ;
25409 PyObject *swig_obj[1] ;
25410
25411 if (!args) SWIG_fail;
25412 swig_obj[0] = args;
25413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25414 if (!SWIG_IsOK(res1)) {
25415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_x_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25416 }
25417 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25418 result = (int) ((arg1)->m_x);
25419 resultobj = SWIG_From_int(static_cast< int >(result));
25420 return resultobj;
25421fail:
25422 return NULL;
25423}
25424
25425
25426SWIGINTERN PyObject *_wrap_KeyEvent_m_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25427 PyObject *resultobj = 0;
25428 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25429 int arg2 ;
25430 void *argp1 = 0 ;
25431 int res1 = 0 ;
25432 int val2 ;
25433 int ecode2 = 0 ;
25434 PyObject *swig_obj[2] ;
25435
25436 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_y_set",2,2,swig_obj)) SWIG_fail;
25437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25438 if (!SWIG_IsOK(res1)) {
25439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_y_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25440 }
25441 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25442 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
25443 if (!SWIG_IsOK(ecode2)) {
25444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_y_set" "', expected argument " "2"" of type '" "int""'");
25445 }
25446 arg2 = static_cast< int >(val2);
25447 if (arg1) (arg1)->m_y = arg2;
25448
25449 resultobj = SWIG_Py_Void();
25450 return resultobj;
25451fail:
25452 return NULL;
7fbf8399
RD
25453}
25454
25455
1bd55598
RD
25456SWIGINTERN PyObject *_wrap_KeyEvent_m_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25457 PyObject *resultobj = 0;
25458 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25459 int result;
25460 void *argp1 = 0 ;
25461 int res1 = 0 ;
25462 PyObject *swig_obj[1] ;
25463
25464 if (!args) SWIG_fail;
25465 swig_obj[0] = args;
25466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25467 if (!SWIG_IsOK(res1)) {
25468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_y_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25469 }
25470 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25471 result = (int) ((arg1)->m_y);
25472 resultobj = SWIG_From_int(static_cast< int >(result));
25473 return resultobj;
25474fail:
25475 return NULL;
25476}
25477
25478
25479SWIGINTERN PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25480 PyObject *resultobj = 0;
25481 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25482 long arg2 ;
25483 void *argp1 = 0 ;
25484 int res1 = 0 ;
25485 long val2 ;
25486 int ecode2 = 0 ;
25487 PyObject *swig_obj[2] ;
25488
25489 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_keyCode_set",2,2,swig_obj)) SWIG_fail;
25490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25491 if (!SWIG_IsOK(res1)) {
25492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_keyCode_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25493 }
25494 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25495 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
25496 if (!SWIG_IsOK(ecode2)) {
25497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_keyCode_set" "', expected argument " "2"" of type '" "long""'");
25498 }
25499 arg2 = static_cast< long >(val2);
25500 if (arg1) (arg1)->m_keyCode = arg2;
25501
25502 resultobj = SWIG_Py_Void();
25503 return resultobj;
25504fail:
25505 return NULL;
7fbf8399
RD
25506}
25507
25508
1bd55598
RD
25509SWIGINTERN PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25510 PyObject *resultobj = 0;
25511 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25512 long result;
25513 void *argp1 = 0 ;
25514 int res1 = 0 ;
25515 PyObject *swig_obj[1] ;
25516
25517 if (!args) SWIG_fail;
25518 swig_obj[0] = args;
25519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25520 if (!SWIG_IsOK(res1)) {
25521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_keyCode_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25522 }
25523 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25524 result = (long) ((arg1)->m_keyCode);
25525 resultobj = SWIG_From_long(static_cast< long >(result));
25526 return resultobj;
25527fail:
25528 return NULL;
25529}
25530
25531
25532SWIGINTERN PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25533 PyObject *resultobj = 0;
25534 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25535 bool arg2 ;
25536 void *argp1 = 0 ;
25537 int res1 = 0 ;
25538 bool val2 ;
25539 int ecode2 = 0 ;
25540 PyObject *swig_obj[2] ;
25541
25542 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_controlDown_set",2,2,swig_obj)) SWIG_fail;
25543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25544 if (!SWIG_IsOK(res1)) {
25545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_controlDown_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25546 }
25547 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25548 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
25549 if (!SWIG_IsOK(ecode2)) {
25550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_controlDown_set" "', expected argument " "2"" of type '" "bool""'");
25551 }
25552 arg2 = static_cast< bool >(val2);
25553 if (arg1) (arg1)->m_controlDown = arg2;
25554
25555 resultobj = SWIG_Py_Void();
25556 return resultobj;
25557fail:
25558 return NULL;
7fbf8399
RD
25559}
25560
25561
1bd55598
RD
25562SWIGINTERN PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25563 PyObject *resultobj = 0;
25564 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25565 bool result;
25566 void *argp1 = 0 ;
25567 int res1 = 0 ;
25568 PyObject *swig_obj[1] ;
25569
25570 if (!args) SWIG_fail;
25571 swig_obj[0] = args;
25572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25573 if (!SWIG_IsOK(res1)) {
25574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_controlDown_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25575 }
25576 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25577 result = (bool) ((arg1)->m_controlDown);
25578 {
25579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25580 }
25581 return resultobj;
25582fail:
25583 return NULL;
d55e5bfc
RD
25584}
25585
25586
1bd55598
RD
25587SWIGINTERN PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25588 PyObject *resultobj = 0;
25589 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25590 bool arg2 ;
25591 void *argp1 = 0 ;
25592 int res1 = 0 ;
25593 bool val2 ;
25594 int ecode2 = 0 ;
25595 PyObject *swig_obj[2] ;
25596
25597 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_shiftDown_set",2,2,swig_obj)) SWIG_fail;
25598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25599 if (!SWIG_IsOK(res1)) {
25600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_shiftDown_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25601 }
25602 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25603 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
25604 if (!SWIG_IsOK(ecode2)) {
25605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_shiftDown_set" "', expected argument " "2"" of type '" "bool""'");
25606 }
25607 arg2 = static_cast< bool >(val2);
25608 if (arg1) (arg1)->m_shiftDown = arg2;
25609
25610 resultobj = SWIG_Py_Void();
25611 return resultobj;
25612fail:
25613 return NULL;
d55e5bfc
RD
25614}
25615
25616
1bd55598
RD
25617SWIGINTERN PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25618 PyObject *resultobj = 0;
25619 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25620 bool result;
25621 void *argp1 = 0 ;
25622 int res1 = 0 ;
25623 PyObject *swig_obj[1] ;
25624
25625 if (!args) SWIG_fail;
25626 swig_obj[0] = args;
25627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25628 if (!SWIG_IsOK(res1)) {
25629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_shiftDown_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25630 }
25631 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25632 result = (bool) ((arg1)->m_shiftDown);
25633 {
25634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25635 }
25636 return resultobj;
25637fail:
25638 return NULL;
d55e5bfc
RD
25639}
25640
25641
1bd55598
RD
25642SWIGINTERN PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25643 PyObject *resultobj = 0;
25644 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25645 bool arg2 ;
25646 void *argp1 = 0 ;
25647 int res1 = 0 ;
25648 bool val2 ;
25649 int ecode2 = 0 ;
25650 PyObject *swig_obj[2] ;
25651
25652 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_altDown_set",2,2,swig_obj)) SWIG_fail;
25653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25654 if (!SWIG_IsOK(res1)) {
25655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_altDown_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25656 }
25657 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25658 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
25659 if (!SWIG_IsOK(ecode2)) {
25660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_altDown_set" "', expected argument " "2"" of type '" "bool""'");
25661 }
25662 arg2 = static_cast< bool >(val2);
25663 if (arg1) (arg1)->m_altDown = arg2;
25664
25665 resultobj = SWIG_Py_Void();
25666 return resultobj;
25667fail:
25668 return NULL;
d55e5bfc
RD
25669}
25670
25671
1bd55598
RD
25672SWIGINTERN PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25673 PyObject *resultobj = 0;
25674 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25675 bool result;
25676 void *argp1 = 0 ;
25677 int res1 = 0 ;
25678 PyObject *swig_obj[1] ;
25679
25680 if (!args) SWIG_fail;
25681 swig_obj[0] = args;
25682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25683 if (!SWIG_IsOK(res1)) {
25684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_altDown_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25685 }
25686 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25687 result = (bool) ((arg1)->m_altDown);
25688 {
25689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25690 }
25691 return resultobj;
25692fail:
25693 return NULL;
d55e5bfc
RD
25694}
25695
25696
1bd55598
RD
25697SWIGINTERN PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25698 PyObject *resultobj = 0;
25699 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25700 bool arg2 ;
25701 void *argp1 = 0 ;
25702 int res1 = 0 ;
25703 bool val2 ;
25704 int ecode2 = 0 ;
25705 PyObject *swig_obj[2] ;
25706
25707 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_metaDown_set",2,2,swig_obj)) SWIG_fail;
25708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25709 if (!SWIG_IsOK(res1)) {
25710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_metaDown_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25711 }
25712 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25713 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
25714 if (!SWIG_IsOK(ecode2)) {
25715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_metaDown_set" "', expected argument " "2"" of type '" "bool""'");
25716 }
25717 arg2 = static_cast< bool >(val2);
25718 if (arg1) (arg1)->m_metaDown = arg2;
25719
25720 resultobj = SWIG_Py_Void();
25721 return resultobj;
25722fail:
25723 return NULL;
d55e5bfc
RD
25724}
25725
25726
1bd55598
RD
25727SWIGINTERN PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25728 PyObject *resultobj = 0;
25729 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25730 bool result;
25731 void *argp1 = 0 ;
25732 int res1 = 0 ;
25733 PyObject *swig_obj[1] ;
25734
25735 if (!args) SWIG_fail;
25736 swig_obj[0] = args;
25737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25738 if (!SWIG_IsOK(res1)) {
25739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_metaDown_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25740 }
25741 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25742 result = (bool) ((arg1)->m_metaDown);
25743 {
25744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25745 }
25746 return resultobj;
25747fail:
25748 return NULL;
d55e5bfc
RD
25749}
25750
25751
1bd55598
RD
25752SWIGINTERN PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25753 PyObject *resultobj = 0;
25754 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25755 bool arg2 ;
25756 void *argp1 = 0 ;
25757 int res1 = 0 ;
25758 bool val2 ;
25759 int ecode2 = 0 ;
25760 PyObject *swig_obj[2] ;
25761
25762 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_scanCode_set",2,2,swig_obj)) SWIG_fail;
25763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25764 if (!SWIG_IsOK(res1)) {
25765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_scanCode_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25766 }
25767 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25768 ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
25769 if (!SWIG_IsOK(ecode2)) {
25770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_scanCode_set" "', expected argument " "2"" of type '" "bool""'");
25771 }
25772 arg2 = static_cast< bool >(val2);
25773 if (arg1) (arg1)->m_scanCode = arg2;
25774
25775 resultobj = SWIG_Py_Void();
25776 return resultobj;
25777fail:
25778 return NULL;
d55e5bfc
RD
25779}
25780
25781
1bd55598
RD
25782SWIGINTERN PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25783 PyObject *resultobj = 0;
25784 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25785 bool result;
25786 void *argp1 = 0 ;
25787 int res1 = 0 ;
25788 PyObject *swig_obj[1] ;
25789
25790 if (!args) SWIG_fail;
25791 swig_obj[0] = args;
25792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25793 if (!SWIG_IsOK(res1)) {
25794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_scanCode_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25795 }
25796 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25797 result = (bool) ((arg1)->m_scanCode);
25798 {
25799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25800 }
25801 return resultobj;
25802fail:
25803 return NULL;
d55e5bfc
RD
25804}
25805
25806
1bd55598
RD
25807SWIGINTERN PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25808 PyObject *resultobj = 0;
25809 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25810 unsigned int arg2 ;
25811 void *argp1 = 0 ;
25812 int res1 = 0 ;
25813 unsigned int val2 ;
25814 int ecode2 = 0 ;
25815 PyObject *swig_obj[2] ;
25816
25817 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_rawCode_set",2,2,swig_obj)) SWIG_fail;
25818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25819 if (!SWIG_IsOK(res1)) {
25820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_rawCode_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25821 }
25822 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25823 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
25824 if (!SWIG_IsOK(ecode2)) {
25825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_rawCode_set" "', expected argument " "2"" of type '" "unsigned int""'");
25826 }
25827 arg2 = static_cast< unsigned int >(val2);
25828 if (arg1) (arg1)->m_rawCode = arg2;
25829
25830 resultobj = SWIG_Py_Void();
25831 return resultobj;
25832fail:
25833 return NULL;
d55e5bfc
RD
25834}
25835
25836
1bd55598
RD
25837SWIGINTERN PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25838 PyObject *resultobj = 0;
25839 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25840 unsigned int result;
25841 void *argp1 = 0 ;
25842 int res1 = 0 ;
25843 PyObject *swig_obj[1] ;
25844
25845 if (!args) SWIG_fail;
25846 swig_obj[0] = args;
25847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25848 if (!SWIG_IsOK(res1)) {
25849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_rawCode_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25850 }
25851 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25852 result = (unsigned int) ((arg1)->m_rawCode);
25853 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25854 return resultobj;
25855fail:
25856 return NULL;
25857}
25858
25859
25860SWIGINTERN PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25861 PyObject *resultobj = 0;
25862 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25863 unsigned int arg2 ;
25864 void *argp1 = 0 ;
25865 int res1 = 0 ;
25866 unsigned int val2 ;
25867 int ecode2 = 0 ;
25868 PyObject *swig_obj[2] ;
25869
25870 if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_rawFlags_set",2,2,swig_obj)) SWIG_fail;
25871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25872 if (!SWIG_IsOK(res1)) {
25873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_rawFlags_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25874 }
25875 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25876 ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
25877 if (!SWIG_IsOK(ecode2)) {
25878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_rawFlags_set" "', expected argument " "2"" of type '" "unsigned int""'");
25879 }
25880 arg2 = static_cast< unsigned int >(val2);
25881 if (arg1) (arg1)->m_rawFlags = arg2;
25882
25883 resultobj = SWIG_Py_Void();
25884 return resultobj;
25885fail:
25886 return NULL;
d55e5bfc
RD
25887}
25888
25889
1bd55598
RD
25890SWIGINTERN PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25891 PyObject *resultobj = 0;
25892 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
25893 unsigned int result;
25894 void *argp1 = 0 ;
25895 int res1 = 0 ;
25896 PyObject *swig_obj[1] ;
25897
25898 if (!args) SWIG_fail;
25899 swig_obj[0] = args;
25900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
25901 if (!SWIG_IsOK(res1)) {
25902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_rawFlags_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
25903 }
25904 arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
25905 result = (unsigned int) ((arg1)->m_rawFlags);
25906 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
25907 return resultobj;
25908fail:
25909 return NULL;
25910}
25911
25912
25913SWIGINTERN PyObject *KeyEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25914 PyObject *obj;
25915 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25916 SWIG_TypeNewClientData(SWIGTYPE_p_wxKeyEvent, SWIG_NewClientData(obj));
25917 return SWIG_Py_Void();
25918}
25919
25920SWIGINTERN PyObject *KeyEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25921 return SWIG_Python_InitShadowInstance(args);
25922}
25923
25924SWIGINTERN PyObject *_wrap_new_SizeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25925 PyObject *resultobj = 0;
25926 wxSize const &arg1_defvalue = wxDefaultSize ;
25927 wxSize *arg1 = (wxSize *) &arg1_defvalue ;
25928 int arg2 = (int) 0 ;
25929 wxSizeEvent *result = 0 ;
25930 wxSize temp1 ;
25931 int val2 ;
25932 int ecode2 = 0 ;
25933 PyObject * obj0 = 0 ;
25934 PyObject * obj1 = 0 ;
25935 char * kwnames[] = {
25936 (char *) "sz",(char *) "winid", NULL
25937 };
25938
25939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
25940 if (obj0) {
c0de73ae 25941 {
1bd55598
RD
25942 arg1 = &temp1;
25943 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
c0de73ae 25944 }
1bd55598
RD
25945 }
25946 if (obj1) {
25947 ecode2 = SWIG_AsVal_int(obj1, &val2);
25948 if (!SWIG_IsOK(ecode2)) {
25949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SizeEvent" "', expected argument " "2"" of type '" "int""'");
25950 }
25951 arg2 = static_cast< int >(val2);
25952 }
25953 {
25954 PyThreadState* __tstate = wxPyBeginAllowThreads();
25955 result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2);
25956 wxPyEndAllowThreads(__tstate);
25957 if (PyErr_Occurred()) SWIG_fail;
25958 }
25959 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_NEW | 0 );
25960 return resultobj;
25961fail:
25962 return NULL;
c0de73ae
RD
25963}
25964
25965
1bd55598
RD
25966SWIGINTERN PyObject *_wrap_SizeEvent_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25967 PyObject *resultobj = 0;
25968 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
25969 wxSize result;
25970 void *argp1 = 0 ;
25971 int res1 = 0 ;
25972 PyObject *swig_obj[1] ;
25973
25974 if (!args) SWIG_fail;
25975 swig_obj[0] = args;
25976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
25977 if (!SWIG_IsOK(res1)) {
25978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_GetSize" "', expected argument " "1"" of type '" "wxSizeEvent const *""'");
25979 }
25980 arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
25981 {
25982 PyThreadState* __tstate = wxPyBeginAllowThreads();
25983 result = ((wxSizeEvent const *)arg1)->GetSize();
25984 wxPyEndAllowThreads(__tstate);
25985 if (PyErr_Occurred()) SWIG_fail;
25986 }
25987 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25988 return resultobj;
25989fail:
25990 return NULL;
d55e5bfc
RD
25991}
25992
25993
1bd55598
RD
25994SWIGINTERN PyObject *_wrap_SizeEvent_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25995 PyObject *resultobj = 0;
25996 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
25997 wxRect result;
25998 void *argp1 = 0 ;
25999 int res1 = 0 ;
26000 PyObject *swig_obj[1] ;
26001
26002 if (!args) SWIG_fail;
26003 swig_obj[0] = args;
26004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
26005 if (!SWIG_IsOK(res1)) {
26006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_GetRect" "', expected argument " "1"" of type '" "wxSizeEvent const *""'");
26007 }
26008 arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
26009 {
26010 PyThreadState* __tstate = wxPyBeginAllowThreads();
26011 result = ((wxSizeEvent const *)arg1)->GetRect();
26012 wxPyEndAllowThreads(__tstate);
26013 if (PyErr_Occurred()) SWIG_fail;
26014 }
26015 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
26016 return resultobj;
26017fail:
26018 return NULL;
26019}
26020
26021
26022SWIGINTERN PyObject *_wrap_SizeEvent_SetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26023 PyObject *resultobj = 0;
26024 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
26025 wxRect arg2 ;
26026 void *argp1 = 0 ;
26027 int res1 = 0 ;
26028 void *argp2 ;
26029 int res2 = 0 ;
26030 PyObject * obj0 = 0 ;
26031 PyObject * obj1 = 0 ;
26032 char * kwnames[] = {
26033 (char *) "self",(char *) "rect", NULL
26034 };
26035
26036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) SWIG_fail;
26037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
26038 if (!SWIG_IsOK(res1)) {
26039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_SetRect" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
26040 }
26041 arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
26042 {
26043 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRect, 0 | 0);
26044 if (!SWIG_IsOK(res2)) {
26045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizeEvent_SetRect" "', expected argument " "2"" of type '" "wxRect""'");
26046 }
26047 if (!argp2) {
26048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SizeEvent_SetRect" "', expected argument " "2"" of type '" "wxRect""'");
26049 } else {
26050 wxRect * temp = reinterpret_cast< wxRect * >(argp2);
26051 arg2 = *temp;
26052 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 26053 }
1bd55598
RD
26054 }
26055 {
26056 PyThreadState* __tstate = wxPyBeginAllowThreads();
26057 (arg1)->SetRect(arg2);
26058 wxPyEndAllowThreads(__tstate);
26059 if (PyErr_Occurred()) SWIG_fail;
26060 }
26061 resultobj = SWIG_Py_Void();
26062 return resultobj;
26063fail:
26064 return NULL;
26065}
26066
26067
26068SWIGINTERN PyObject *_wrap_SizeEvent_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26069 PyObject *resultobj = 0;
26070 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
26071 wxSize arg2 ;
26072 void *argp1 = 0 ;
26073 int res1 = 0 ;
26074 void *argp2 ;
26075 int res2 = 0 ;
26076 PyObject * obj0 = 0 ;
26077 PyObject * obj1 = 0 ;
26078 char * kwnames[] = {
26079 (char *) "self",(char *) "size", NULL
26080 };
26081
26082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
26083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
26084 if (!SWIG_IsOK(res1)) {
26085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_SetSize" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
26086 }
26087 arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
26088 {
26089 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxSize, 0 | 0);
26090 if (!SWIG_IsOK(res2)) {
26091 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizeEvent_SetSize" "', expected argument " "2"" of type '" "wxSize""'");
26092 }
26093 if (!argp2) {
26094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SizeEvent_SetSize" "', expected argument " "2"" of type '" "wxSize""'");
26095 } else {
26096 wxSize * temp = reinterpret_cast< wxSize * >(argp2);
26097 arg2 = *temp;
26098 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 26099 }
1bd55598
RD
26100 }
26101 {
26102 PyThreadState* __tstate = wxPyBeginAllowThreads();
26103 wxSizeEvent_SetSize(arg1,arg2);
26104 wxPyEndAllowThreads(__tstate);
26105 if (PyErr_Occurred()) SWIG_fail;
26106 }
26107 resultobj = SWIG_Py_Void();
26108 return resultobj;
26109fail:
26110 return NULL;
26111}
26112
26113
26114SWIGINTERN PyObject *_wrap_SizeEvent_m_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26115 PyObject *resultobj = 0;
26116 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
26117 wxSize *arg2 = (wxSize *) 0 ;
26118 void *argp1 = 0 ;
26119 int res1 = 0 ;
26120 void *argp2 = 0 ;
26121 int res2 = 0 ;
26122 PyObject *swig_obj[2] ;
26123
26124 if (!SWIG_Python_UnpackTuple(args,"SizeEvent_m_size_set",2,2,swig_obj)) SWIG_fail;
26125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
26126 if (!SWIG_IsOK(res1)) {
26127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_m_size_set" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
26128 }
26129 arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
26130 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSize, 0 | 0 );
26131 if (!SWIG_IsOK(res2)) {
26132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizeEvent_m_size_set" "', expected argument " "2"" of type '" "wxSize *""'");
26133 }
26134 arg2 = reinterpret_cast< wxSize * >(argp2);
26135 if (arg1) (arg1)->m_size = *arg2;
26136
26137 resultobj = SWIG_Py_Void();
26138 return resultobj;
26139fail:
26140 return NULL;
d55e5bfc
RD
26141}
26142
26143
1bd55598
RD
26144SWIGINTERN PyObject *_wrap_SizeEvent_m_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26145 PyObject *resultobj = 0;
26146 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
26147 wxSize *result = 0 ;
26148 void *argp1 = 0 ;
26149 int res1 = 0 ;
26150 PyObject *swig_obj[1] ;
26151
26152 if (!args) SWIG_fail;
26153 swig_obj[0] = args;
26154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
26155 if (!SWIG_IsOK(res1)) {
26156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_m_size_get" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
26157 }
26158 arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
26159 result = (wxSize *)& ((arg1)->m_size);
26160 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSize, 0 | 0 );
26161 return resultobj;
26162fail:
26163 return NULL;
26164}
26165
26166
26167SWIGINTERN PyObject *_wrap_SizeEvent_m_rect_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26168 PyObject *resultobj = 0;
26169 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
26170 wxRect *arg2 = (wxRect *) 0 ;
26171 void *argp1 = 0 ;
26172 int res1 = 0 ;
26173 void *argp2 = 0 ;
26174 int res2 = 0 ;
26175 PyObject *swig_obj[2] ;
26176
26177 if (!SWIG_Python_UnpackTuple(args,"SizeEvent_m_rect_set",2,2,swig_obj)) SWIG_fail;
26178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
26179 if (!SWIG_IsOK(res1)) {
26180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_m_rect_set" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
26181 }
26182 arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
26183 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
26184 if (!SWIG_IsOK(res2)) {
26185 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizeEvent_m_rect_set" "', expected argument " "2"" of type '" "wxRect *""'");
26186 }
26187 arg2 = reinterpret_cast< wxRect * >(argp2);
26188 if (arg1) (arg1)->m_rect = *arg2;
26189
26190 resultobj = SWIG_Py_Void();
26191 return resultobj;
26192fail:
26193 return NULL;
d55e5bfc
RD
26194}
26195
26196
1bd55598
RD
26197SWIGINTERN PyObject *_wrap_SizeEvent_m_rect_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26198 PyObject *resultobj = 0;
26199 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
26200 wxRect *result = 0 ;
26201 void *argp1 = 0 ;
26202 int res1 = 0 ;
26203 PyObject *swig_obj[1] ;
26204
26205 if (!args) SWIG_fail;
26206 swig_obj[0] = args;
26207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
26208 if (!SWIG_IsOK(res1)) {
26209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_m_rect_get" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
26210 }
26211 arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
26212 result = (wxRect *)& ((arg1)->m_rect);
26213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, 0 | 0 );
26214 return resultobj;
26215fail:
26216 return NULL;
26217}
26218
26219
26220SWIGINTERN PyObject *SizeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26221 PyObject *obj;
26222 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26223 SWIG_TypeNewClientData(SWIGTYPE_p_wxSizeEvent, SWIG_NewClientData(obj));
26224 return SWIG_Py_Void();
26225}
26226
26227SWIGINTERN PyObject *SizeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26228 return SWIG_Python_InitShadowInstance(args);
26229}
26230
26231SWIGINTERN PyObject *_wrap_new_MoveEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26232 PyObject *resultobj = 0;
26233 wxPoint const &arg1_defvalue = wxDefaultPosition ;
26234 wxPoint *arg1 = (wxPoint *) &arg1_defvalue ;
26235 int arg2 = (int) 0 ;
26236 wxMoveEvent *result = 0 ;
26237 wxPoint temp1 ;
26238 int val2 ;
26239 int ecode2 = 0 ;
26240 PyObject * obj0 = 0 ;
26241 PyObject * obj1 = 0 ;
26242 char * kwnames[] = {
26243 (char *) "pos",(char *) "winid", NULL
26244 };
26245
26246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) SWIG_fail;
26247 if (obj0) {
d55e5bfc 26248 {
1bd55598
RD
26249 arg1 = &temp1;
26250 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 26251 }
1bd55598
RD
26252 }
26253 if (obj1) {
26254 ecode2 = SWIG_AsVal_int(obj1, &val2);
26255 if (!SWIG_IsOK(ecode2)) {
26256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MoveEvent" "', expected argument " "2"" of type '" "int""'");
26257 }
26258 arg2 = static_cast< int >(val2);
26259 }
26260 {
26261 PyThreadState* __tstate = wxPyBeginAllowThreads();
26262 result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2);
26263 wxPyEndAllowThreads(__tstate);
26264 if (PyErr_Occurred()) SWIG_fail;
26265 }
26266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_NEW | 0 );
26267 return resultobj;
26268fail:
26269 return NULL;
d55e5bfc
RD
26270}
26271
26272
1bd55598
RD
26273SWIGINTERN PyObject *_wrap_MoveEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26274 PyObject *resultobj = 0;
26275 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
26276 wxPoint result;
26277 void *argp1 = 0 ;
26278 int res1 = 0 ;
26279 PyObject *swig_obj[1] ;
26280
26281 if (!args) SWIG_fail;
26282 swig_obj[0] = args;
26283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMoveEvent, 0 | 0 );
26284 if (!SWIG_IsOK(res1)) {
26285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveEvent_GetPosition" "', expected argument " "1"" of type '" "wxMoveEvent const *""'");
26286 }
26287 arg1 = reinterpret_cast< wxMoveEvent * >(argp1);
26288 {
26289 PyThreadState* __tstate = wxPyBeginAllowThreads();
26290 result = ((wxMoveEvent const *)arg1)->GetPosition();
26291 wxPyEndAllowThreads(__tstate);
26292 if (PyErr_Occurred()) SWIG_fail;
26293 }
26294 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
26295 return resultobj;
26296fail:
26297 return NULL;
d55e5bfc
RD
26298}
26299
26300
1bd55598
RD
26301SWIGINTERN PyObject *_wrap_MoveEvent_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26302 PyObject *resultobj = 0;
26303 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
26304 wxRect result;
26305 void *argp1 = 0 ;
26306 int res1 = 0 ;
26307 PyObject *swig_obj[1] ;
26308
26309 if (!args) SWIG_fail;
26310 swig_obj[0] = args;
26311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMoveEvent, 0 | 0 );
26312 if (!SWIG_IsOK(res1)) {
26313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveEvent_GetRect" "', expected argument " "1"" of type '" "wxMoveEvent const *""'");
26314 }
26315 arg1 = reinterpret_cast< wxMoveEvent * >(argp1);
26316 {
26317 PyThreadState* __tstate = wxPyBeginAllowThreads();
26318 result = ((wxMoveEvent const *)arg1)->GetRect();
26319 wxPyEndAllowThreads(__tstate);
26320 if (PyErr_Occurred()) SWIG_fail;
26321 }
26322 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
26323 return resultobj;
26324fail:
26325 return NULL;
26326}
26327
26328
26329SWIGINTERN PyObject *_wrap_MoveEvent_SetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26330 PyObject *resultobj = 0;
26331 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
26332 wxRect *arg2 = 0 ;
26333 void *argp1 = 0 ;
26334 int res1 = 0 ;
26335 wxRect temp2 ;
26336 PyObject * obj0 = 0 ;
26337 PyObject * obj1 = 0 ;
26338 char * kwnames[] = {
26339 (char *) "self",(char *) "rect", NULL
26340 };
26341
26342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) SWIG_fail;
26343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMoveEvent, 0 | 0 );
26344 if (!SWIG_IsOK(res1)) {
26345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveEvent_SetRect" "', expected argument " "1"" of type '" "wxMoveEvent *""'");
26346 }
26347 arg1 = reinterpret_cast< wxMoveEvent * >(argp1);
26348 {
26349 arg2 = &temp2;
26350 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26351 }
26352 {
26353 PyThreadState* __tstate = wxPyBeginAllowThreads();
26354 (arg1)->SetRect((wxRect const &)*arg2);
26355 wxPyEndAllowThreads(__tstate);
26356 if (PyErr_Occurred()) SWIG_fail;
26357 }
26358 resultobj = SWIG_Py_Void();
26359 return resultobj;
26360fail:
26361 return NULL;
26362}
26363
26364
26365SWIGINTERN PyObject *_wrap_MoveEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26366 PyObject *resultobj = 0;
26367 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
26368 wxPoint *arg2 = 0 ;
26369 void *argp1 = 0 ;
26370 int res1 = 0 ;
26371 wxPoint temp2 ;
26372 PyObject * obj0 = 0 ;
26373 PyObject * obj1 = 0 ;
26374 char * kwnames[] = {
26375 (char *) "self",(char *) "pos", NULL
26376 };
26377
26378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
26379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMoveEvent, 0 | 0 );
26380 if (!SWIG_IsOK(res1)) {
26381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveEvent_SetPosition" "', expected argument " "1"" of type '" "wxMoveEvent *""'");
26382 }
26383 arg1 = reinterpret_cast< wxMoveEvent * >(argp1);
26384 {
26385 arg2 = &temp2;
26386 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26387 }
26388 {
26389 PyThreadState* __tstate = wxPyBeginAllowThreads();
26390 (arg1)->SetPosition((wxPoint const &)*arg2);
26391 wxPyEndAllowThreads(__tstate);
26392 if (PyErr_Occurred()) SWIG_fail;
26393 }
26394 resultobj = SWIG_Py_Void();
26395 return resultobj;
26396fail:
26397 return NULL;
d55e5bfc
RD
26398}
26399
26400
1bd55598
RD
26401SWIGINTERN PyObject *MoveEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26402 PyObject *obj;
26403 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26404 SWIG_TypeNewClientData(SWIGTYPE_p_wxMoveEvent, SWIG_NewClientData(obj));
26405 return SWIG_Py_Void();
d55e5bfc
RD
26406}
26407
1bd55598
RD
26408SWIGINTERN PyObject *MoveEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26409 return SWIG_Python_InitShadowInstance(args);
26410}
d55e5bfc 26411
1bd55598
RD
26412SWIGINTERN PyObject *_wrap_new_PaintEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26413 PyObject *resultobj = 0;
26414 int arg1 = (int) 0 ;
26415 wxPaintEvent *result = 0 ;
26416 int val1 ;
26417 int ecode1 = 0 ;
26418 PyObject * obj0 = 0 ;
26419 char * kwnames[] = {
26420 (char *) "Id", NULL
26421 };
26422
26423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) SWIG_fail;
26424 if (obj0) {
26425 ecode1 = SWIG_AsVal_int(obj0, &val1);
26426 if (!SWIG_IsOK(ecode1)) {
26427 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PaintEvent" "', expected argument " "1"" of type '" "int""'");
26428 }
26429 arg1 = static_cast< int >(val1);
26430 }
26431 {
26432 PyThreadState* __tstate = wxPyBeginAllowThreads();
26433 result = (wxPaintEvent *)new wxPaintEvent(arg1);
26434 wxPyEndAllowThreads(__tstate);
26435 if (PyErr_Occurred()) SWIG_fail;
26436 }
26437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintEvent, SWIG_POINTER_NEW | 0 );
26438 return resultobj;
26439fail:
26440 return NULL;
d55e5bfc
RD
26441}
26442
26443
1bd55598
RD
26444SWIGINTERN PyObject *PaintEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26445 PyObject *obj;
26446 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26447 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintEvent, SWIG_NewClientData(obj));
26448 return SWIG_Py_Void();
d55e5bfc
RD
26449}
26450
1bd55598
RD
26451SWIGINTERN PyObject *PaintEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26452 return SWIG_Python_InitShadowInstance(args);
26453}
d55e5bfc 26454
1bd55598
RD
26455SWIGINTERN PyObject *_wrap_new_NcPaintEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26456 PyObject *resultobj = 0;
26457 int arg1 = (int) 0 ;
26458 wxNcPaintEvent *result = 0 ;
26459 int val1 ;
26460 int ecode1 = 0 ;
26461 PyObject * obj0 = 0 ;
26462 char * kwnames[] = {
26463 (char *) "winid", NULL
26464 };
26465
26466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) SWIG_fail;
26467 if (obj0) {
26468 ecode1 = SWIG_AsVal_int(obj0, &val1);
26469 if (!SWIG_IsOK(ecode1)) {
26470 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NcPaintEvent" "', expected argument " "1"" of type '" "int""'");
26471 }
26472 arg1 = static_cast< int >(val1);
26473 }
26474 {
26475 PyThreadState* __tstate = wxPyBeginAllowThreads();
26476 result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1);
26477 wxPyEndAllowThreads(__tstate);
26478 if (PyErr_Occurred()) SWIG_fail;
26479 }
26480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNcPaintEvent, SWIG_POINTER_NEW | 0 );
26481 return resultobj;
26482fail:
26483 return NULL;
d55e5bfc
RD
26484}
26485
26486
1bd55598
RD
26487SWIGINTERN PyObject *NcPaintEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26488 PyObject *obj;
26489 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26490 SWIG_TypeNewClientData(SWIGTYPE_p_wxNcPaintEvent, SWIG_NewClientData(obj));
26491 return SWIG_Py_Void();
d55e5bfc
RD
26492}
26493
1bd55598
RD
26494SWIGINTERN PyObject *NcPaintEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26495 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
26496}
26497
1bd55598
RD
26498SWIGINTERN PyObject *_wrap_new_EraseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26499 PyObject *resultobj = 0;
26500 int arg1 = (int) 0 ;
26501 wxDC *arg2 = (wxDC *) NULL ;
26502 wxEraseEvent *result = 0 ;
26503 int val1 ;
26504 int ecode1 = 0 ;
26505 void *argp2 = 0 ;
26506 int res2 = 0 ;
26507 PyObject * obj0 = 0 ;
26508 PyObject * obj1 = 0 ;
26509 char * kwnames[] = {
26510 (char *) "Id",(char *) "dc", NULL
26511 };
26512
26513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) SWIG_fail;
26514 if (obj0) {
26515 ecode1 = SWIG_AsVal_int(obj0, &val1);
26516 if (!SWIG_IsOK(ecode1)) {
26517 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EraseEvent" "', expected argument " "1"" of type '" "int""'");
26518 }
26519 arg1 = static_cast< int >(val1);
26520 }
26521 if (obj1) {
26522 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
26523 if (!SWIG_IsOK(res2)) {
26524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EraseEvent" "', expected argument " "2"" of type '" "wxDC *""'");
d55e5bfc 26525 }
1bd55598
RD
26526 arg2 = reinterpret_cast< wxDC * >(argp2);
26527 }
26528 {
26529 PyThreadState* __tstate = wxPyBeginAllowThreads();
26530 result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2);
26531 wxPyEndAllowThreads(__tstate);
26532 if (PyErr_Occurred()) SWIG_fail;
26533 }
26534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEraseEvent, SWIG_POINTER_NEW | 0 );
26535 return resultobj;
26536fail:
26537 return NULL;
d55e5bfc
RD
26538}
26539
26540
1bd55598
RD
26541SWIGINTERN PyObject *_wrap_EraseEvent_GetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26542 PyObject *resultobj = 0;
26543 wxEraseEvent *arg1 = (wxEraseEvent *) 0 ;
26544 wxDC *result = 0 ;
26545 void *argp1 = 0 ;
26546 int res1 = 0 ;
26547 PyObject *swig_obj[1] ;
26548
26549 if (!args) SWIG_fail;
26550 swig_obj[0] = args;
26551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEraseEvent, 0 | 0 );
26552 if (!SWIG_IsOK(res1)) {
26553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EraseEvent_GetDC" "', expected argument " "1"" of type '" "wxEraseEvent const *""'");
26554 }
26555 arg1 = reinterpret_cast< wxEraseEvent * >(argp1);
26556 {
26557 PyThreadState* __tstate = wxPyBeginAllowThreads();
26558 result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC();
26559 wxPyEndAllowThreads(__tstate);
26560 if (PyErr_Occurred()) SWIG_fail;
26561 }
26562 {
26563 resultobj = wxPyMake_wxObject(result, (bool)0);
26564 }
26565 return resultobj;
26566fail:
26567 return NULL;
d55e5bfc
RD
26568}
26569
26570
1bd55598
RD
26571SWIGINTERN PyObject *EraseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26572 PyObject *obj;
26573 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26574 SWIG_TypeNewClientData(SWIGTYPE_p_wxEraseEvent, SWIG_NewClientData(obj));
26575 return SWIG_Py_Void();
d55e5bfc
RD
26576}
26577
1bd55598
RD
26578SWIGINTERN PyObject *EraseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26579 return SWIG_Python_InitShadowInstance(args);
26580}
d55e5bfc 26581
1bd55598
RD
26582SWIGINTERN PyObject *_wrap_new_FocusEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26583 PyObject *resultobj = 0;
26584 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
26585 int arg2 = (int) 0 ;
26586 wxFocusEvent *result = 0 ;
26587 int val1 ;
26588 int ecode1 = 0 ;
26589 int val2 ;
26590 int ecode2 = 0 ;
26591 PyObject * obj0 = 0 ;
26592 PyObject * obj1 = 0 ;
26593 char * kwnames[] = {
26594 (char *) "type",(char *) "winid", NULL
26595 };
26596
26597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) SWIG_fail;
26598 if (obj0) {
26599 ecode1 = SWIG_AsVal_int(obj0, &val1);
26600 if (!SWIG_IsOK(ecode1)) {
26601 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FocusEvent" "', expected argument " "1"" of type '" "wxEventType""'");
26602 }
26603 arg1 = static_cast< wxEventType >(val1);
26604 }
26605 if (obj1) {
26606 ecode2 = SWIG_AsVal_int(obj1, &val2);
26607 if (!SWIG_IsOK(ecode2)) {
26608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FocusEvent" "', expected argument " "2"" of type '" "int""'");
26609 }
26610 arg2 = static_cast< int >(val2);
26611 }
26612 {
26613 PyThreadState* __tstate = wxPyBeginAllowThreads();
26614 result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2);
26615 wxPyEndAllowThreads(__tstate);
26616 if (PyErr_Occurred()) SWIG_fail;
26617 }
26618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFocusEvent, SWIG_POINTER_NEW | 0 );
26619 return resultobj;
26620fail:
26621 return NULL;
d55e5bfc
RD
26622}
26623
26624
1bd55598
RD
26625SWIGINTERN PyObject *_wrap_FocusEvent_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26626 PyObject *resultobj = 0;
26627 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
26628 wxWindow *result = 0 ;
26629 void *argp1 = 0 ;
26630 int res1 = 0 ;
26631 PyObject *swig_obj[1] ;
26632
26633 if (!args) SWIG_fail;
26634 swig_obj[0] = args;
26635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFocusEvent, 0 | 0 );
26636 if (!SWIG_IsOK(res1)) {
26637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FocusEvent_GetWindow" "', expected argument " "1"" of type '" "wxFocusEvent const *""'");
26638 }
26639 arg1 = reinterpret_cast< wxFocusEvent * >(argp1);
26640 {
26641 PyThreadState* __tstate = wxPyBeginAllowThreads();
26642 result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow();
26643 wxPyEndAllowThreads(__tstate);
26644 if (PyErr_Occurred()) SWIG_fail;
26645 }
26646 {
26647 resultobj = wxPyMake_wxObject(result, (bool)0);
26648 }
26649 return resultobj;
26650fail:
26651 return NULL;
26652}
26653
26654
26655SWIGINTERN PyObject *_wrap_FocusEvent_SetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26656 PyObject *resultobj = 0;
26657 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
26658 wxWindow *arg2 = (wxWindow *) 0 ;
26659 void *argp1 = 0 ;
26660 int res1 = 0 ;
26661 void *argp2 = 0 ;
26662 int res2 = 0 ;
26663 PyObject * obj0 = 0 ;
26664 PyObject * obj1 = 0 ;
26665 char * kwnames[] = {
26666 (char *) "self",(char *) "win", NULL
26667 };
26668
26669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) SWIG_fail;
26670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFocusEvent, 0 | 0 );
26671 if (!SWIG_IsOK(res1)) {
26672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FocusEvent_SetWindow" "', expected argument " "1"" of type '" "wxFocusEvent *""'");
26673 }
26674 arg1 = reinterpret_cast< wxFocusEvent * >(argp1);
26675 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26676 if (!SWIG_IsOK(res2)) {
26677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FocusEvent_SetWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
26678 }
26679 arg2 = reinterpret_cast< wxWindow * >(argp2);
26680 {
26681 PyThreadState* __tstate = wxPyBeginAllowThreads();
26682 (arg1)->SetWindow(arg2);
26683 wxPyEndAllowThreads(__tstate);
26684 if (PyErr_Occurred()) SWIG_fail;
26685 }
26686 resultobj = SWIG_Py_Void();
26687 return resultobj;
26688fail:
26689 return NULL;
d55e5bfc
RD
26690}
26691
26692
1bd55598
RD
26693SWIGINTERN PyObject *FocusEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26694 PyObject *obj;
26695 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26696 SWIG_TypeNewClientData(SWIGTYPE_p_wxFocusEvent, SWIG_NewClientData(obj));
26697 return SWIG_Py_Void();
d55e5bfc
RD
26698}
26699
1bd55598
RD
26700SWIGINTERN PyObject *FocusEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26701 return SWIG_Python_InitShadowInstance(args);
26702}
d55e5bfc 26703
1bd55598
RD
26704SWIGINTERN PyObject *_wrap_new_ChildFocusEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26705 PyObject *resultobj = 0;
26706 wxWindow *arg1 = (wxWindow *) NULL ;
26707 wxChildFocusEvent *result = 0 ;
26708 void *argp1 = 0 ;
26709 int res1 = 0 ;
26710 PyObject * obj0 = 0 ;
26711 char * kwnames[] = {
26712 (char *) "win", NULL
26713 };
26714
26715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) SWIG_fail;
26716 if (obj0) {
26717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
26718 if (!SWIG_IsOK(res1)) {
26719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ChildFocusEvent" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 26720 }
1bd55598
RD
26721 arg1 = reinterpret_cast< wxWindow * >(argp1);
26722 }
26723 {
26724 PyThreadState* __tstate = wxPyBeginAllowThreads();
26725 result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1);
26726 wxPyEndAllowThreads(__tstate);
26727 if (PyErr_Occurred()) SWIG_fail;
26728 }
26729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChildFocusEvent, SWIG_POINTER_NEW | 0 );
26730 return resultobj;
26731fail:
26732 return NULL;
d55e5bfc
RD
26733}
26734
26735
1bd55598
RD
26736SWIGINTERN PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26737 PyObject *resultobj = 0;
26738 wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ;
26739 wxWindow *result = 0 ;
26740 void *argp1 = 0 ;
26741 int res1 = 0 ;
26742 PyObject *swig_obj[1] ;
26743
26744 if (!args) SWIG_fail;
26745 swig_obj[0] = args;
26746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChildFocusEvent, 0 | 0 );
26747 if (!SWIG_IsOK(res1)) {
26748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChildFocusEvent_GetWindow" "', expected argument " "1"" of type '" "wxChildFocusEvent const *""'");
26749 }
26750 arg1 = reinterpret_cast< wxChildFocusEvent * >(argp1);
26751 {
26752 PyThreadState* __tstate = wxPyBeginAllowThreads();
26753 result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow();
26754 wxPyEndAllowThreads(__tstate);
26755 if (PyErr_Occurred()) SWIG_fail;
26756 }
26757 {
26758 resultobj = wxPyMake_wxObject(result, (bool)0);
26759 }
26760 return resultobj;
26761fail:
26762 return NULL;
26763}
26764
26765
26766SWIGINTERN PyObject *ChildFocusEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26767 PyObject *obj;
26768 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26769 SWIG_TypeNewClientData(SWIGTYPE_p_wxChildFocusEvent, SWIG_NewClientData(obj));
26770 return SWIG_Py_Void();
26771}
26772
26773SWIGINTERN PyObject *ChildFocusEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26774 return SWIG_Python_InitShadowInstance(args);
26775}
26776
26777SWIGINTERN PyObject *_wrap_new_ActivateEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26778 PyObject *resultobj = 0;
26779 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
26780 bool arg2 = (bool) true ;
26781 int arg3 = (int) 0 ;
26782 wxActivateEvent *result = 0 ;
26783 int val1 ;
26784 int ecode1 = 0 ;
26785 bool val2 ;
26786 int ecode2 = 0 ;
26787 int val3 ;
26788 int ecode3 = 0 ;
26789 PyObject * obj0 = 0 ;
26790 PyObject * obj1 = 0 ;
26791 PyObject * obj2 = 0 ;
26792 char * kwnames[] = {
26793 (char *) "type",(char *) "active",(char *) "Id", NULL
26794 };
26795
26796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26797 if (obj0) {
26798 ecode1 = SWIG_AsVal_int(obj0, &val1);
26799 if (!SWIG_IsOK(ecode1)) {
26800 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ActivateEvent" "', expected argument " "1"" of type '" "wxEventType""'");
26801 }
26802 arg1 = static_cast< wxEventType >(val1);
26803 }
26804 if (obj1) {
26805 ecode2 = SWIG_AsVal_bool(obj1, &val2);
26806 if (!SWIG_IsOK(ecode2)) {
26807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ActivateEvent" "', expected argument " "2"" of type '" "bool""'");
26808 }
26809 arg2 = static_cast< bool >(val2);
26810 }
26811 if (obj2) {
26812 ecode3 = SWIG_AsVal_int(obj2, &val3);
26813 if (!SWIG_IsOK(ecode3)) {
26814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ActivateEvent" "', expected argument " "3"" of type '" "int""'");
26815 }
26816 arg3 = static_cast< int >(val3);
26817 }
26818 {
26819 PyThreadState* __tstate = wxPyBeginAllowThreads();
26820 result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3);
26821 wxPyEndAllowThreads(__tstate);
26822 if (PyErr_Occurred()) SWIG_fail;
26823 }
26824 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxActivateEvent, SWIG_POINTER_NEW | 0 );
26825 return resultobj;
26826fail:
26827 return NULL;
d55e5bfc
RD
26828}
26829
26830
1bd55598
RD
26831SWIGINTERN PyObject *_wrap_ActivateEvent_GetActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26832 PyObject *resultobj = 0;
26833 wxActivateEvent *arg1 = (wxActivateEvent *) 0 ;
26834 bool result;
26835 void *argp1 = 0 ;
26836 int res1 = 0 ;
26837 PyObject *swig_obj[1] ;
26838
26839 if (!args) SWIG_fail;
26840 swig_obj[0] = args;
26841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxActivateEvent, 0 | 0 );
26842 if (!SWIG_IsOK(res1)) {
26843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ActivateEvent_GetActive" "', expected argument " "1"" of type '" "wxActivateEvent const *""'");
26844 }
26845 arg1 = reinterpret_cast< wxActivateEvent * >(argp1);
26846 {
26847 PyThreadState* __tstate = wxPyBeginAllowThreads();
26848 result = (bool)((wxActivateEvent const *)arg1)->GetActive();
26849 wxPyEndAllowThreads(__tstate);
26850 if (PyErr_Occurred()) SWIG_fail;
26851 }
26852 {
26853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26854 }
26855 return resultobj;
26856fail:
26857 return NULL;
d55e5bfc
RD
26858}
26859
26860
1bd55598
RD
26861SWIGINTERN PyObject *ActivateEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26862 PyObject *obj;
26863 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26864 SWIG_TypeNewClientData(SWIGTYPE_p_wxActivateEvent, SWIG_NewClientData(obj));
26865 return SWIG_Py_Void();
d55e5bfc
RD
26866}
26867
1bd55598
RD
26868SWIGINTERN PyObject *ActivateEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26869 return SWIG_Python_InitShadowInstance(args);
26870}
d55e5bfc 26871
1bd55598
RD
26872SWIGINTERN PyObject *_wrap_new_InitDialogEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26873 PyObject *resultobj = 0;
26874 int arg1 = (int) 0 ;
26875 wxInitDialogEvent *result = 0 ;
26876 int val1 ;
26877 int ecode1 = 0 ;
26878 PyObject * obj0 = 0 ;
26879 char * kwnames[] = {
26880 (char *) "Id", NULL
26881 };
26882
26883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) SWIG_fail;
26884 if (obj0) {
26885 ecode1 = SWIG_AsVal_int(obj0, &val1);
26886 if (!SWIG_IsOK(ecode1)) {
26887 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InitDialogEvent" "', expected argument " "1"" of type '" "int""'");
26888 }
26889 arg1 = static_cast< int >(val1);
26890 }
26891 {
26892 PyThreadState* __tstate = wxPyBeginAllowThreads();
26893 result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1);
26894 wxPyEndAllowThreads(__tstate);
26895 if (PyErr_Occurred()) SWIG_fail;
26896 }
26897 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxInitDialogEvent, SWIG_POINTER_NEW | 0 );
26898 return resultobj;
26899fail:
26900 return NULL;
26901}
26902
26903
26904SWIGINTERN PyObject *InitDialogEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26905 PyObject *obj;
26906 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26907 SWIG_TypeNewClientData(SWIGTYPE_p_wxInitDialogEvent, SWIG_NewClientData(obj));
26908 return SWIG_Py_Void();
26909}
26910
26911SWIGINTERN PyObject *InitDialogEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26912 return SWIG_Python_InitShadowInstance(args);
26913}
26914
26915SWIGINTERN PyObject *_wrap_new_MenuEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26916 PyObject *resultobj = 0;
26917 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
26918 int arg2 = (int) 0 ;
26919 wxMenu *arg3 = (wxMenu *) NULL ;
26920 wxMenuEvent *result = 0 ;
26921 int val1 ;
26922 int ecode1 = 0 ;
26923 int val2 ;
26924 int ecode2 = 0 ;
26925 void *argp3 = 0 ;
26926 int res3 = 0 ;
26927 PyObject * obj0 = 0 ;
26928 PyObject * obj1 = 0 ;
26929 PyObject * obj2 = 0 ;
26930 char * kwnames[] = {
26931 (char *) "type",(char *) "winid",(char *) "menu", NULL
26932 };
26933
26934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26935 if (obj0) {
26936 ecode1 = SWIG_AsVal_int(obj0, &val1);
26937 if (!SWIG_IsOK(ecode1)) {
26938 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MenuEvent" "', expected argument " "1"" of type '" "wxEventType""'");
26939 }
26940 arg1 = static_cast< wxEventType >(val1);
26941 }
26942 if (obj1) {
26943 ecode2 = SWIG_AsVal_int(obj1, &val2);
26944 if (!SWIG_IsOK(ecode2)) {
26945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MenuEvent" "', expected argument " "2"" of type '" "int""'");
26946 }
26947 arg2 = static_cast< int >(val2);
26948 }
26949 if (obj2) {
26950 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxMenu, 0 | 0 );
26951 if (!SWIG_IsOK(res3)) {
26952 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MenuEvent" "', expected argument " "3"" of type '" "wxMenu *""'");
d55e5bfc 26953 }
1bd55598
RD
26954 arg3 = reinterpret_cast< wxMenu * >(argp3);
26955 }
26956 {
26957 PyThreadState* __tstate = wxPyBeginAllowThreads();
26958 result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3);
26959 wxPyEndAllowThreads(__tstate);
26960 if (PyErr_Occurred()) SWIG_fail;
26961 }
26962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMenuEvent, SWIG_POINTER_NEW | 0 );
26963 return resultobj;
26964fail:
26965 return NULL;
d55e5bfc
RD
26966}
26967
26968
1bd55598
RD
26969SWIGINTERN PyObject *_wrap_MenuEvent_GetMenuId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26970 PyObject *resultobj = 0;
26971 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
26972 int result;
26973 void *argp1 = 0 ;
26974 int res1 = 0 ;
26975 PyObject *swig_obj[1] ;
26976
26977 if (!args) SWIG_fail;
26978 swig_obj[0] = args;
26979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuEvent, 0 | 0 );
26980 if (!SWIG_IsOK(res1)) {
26981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuEvent_GetMenuId" "', expected argument " "1"" of type '" "wxMenuEvent const *""'");
26982 }
26983 arg1 = reinterpret_cast< wxMenuEvent * >(argp1);
26984 {
26985 PyThreadState* __tstate = wxPyBeginAllowThreads();
26986 result = (int)((wxMenuEvent const *)arg1)->GetMenuId();
26987 wxPyEndAllowThreads(__tstate);
26988 if (PyErr_Occurred()) SWIG_fail;
26989 }
26990 resultobj = SWIG_From_int(static_cast< int >(result));
26991 return resultobj;
26992fail:
26993 return NULL;
d55e5bfc
RD
26994}
26995
26996
1bd55598
RD
26997SWIGINTERN PyObject *_wrap_MenuEvent_IsPopup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26998 PyObject *resultobj = 0;
26999 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
27000 bool result;
27001 void *argp1 = 0 ;
27002 int res1 = 0 ;
27003 PyObject *swig_obj[1] ;
27004
27005 if (!args) SWIG_fail;
27006 swig_obj[0] = args;
27007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuEvent, 0 | 0 );
27008 if (!SWIG_IsOK(res1)) {
27009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuEvent_IsPopup" "', expected argument " "1"" of type '" "wxMenuEvent const *""'");
27010 }
27011 arg1 = reinterpret_cast< wxMenuEvent * >(argp1);
27012 {
27013 PyThreadState* __tstate = wxPyBeginAllowThreads();
27014 result = (bool)((wxMenuEvent const *)arg1)->IsPopup();
27015 wxPyEndAllowThreads(__tstate);
27016 if (PyErr_Occurred()) SWIG_fail;
27017 }
27018 {
27019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27020 }
27021 return resultobj;
27022fail:
27023 return NULL;
d55e5bfc
RD
27024}
27025
27026
1bd55598
RD
27027SWIGINTERN PyObject *_wrap_MenuEvent_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27028 PyObject *resultobj = 0;
27029 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
27030 wxMenu *result = 0 ;
27031 void *argp1 = 0 ;
27032 int res1 = 0 ;
27033 PyObject *swig_obj[1] ;
27034
27035 if (!args) SWIG_fail;
27036 swig_obj[0] = args;
27037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuEvent, 0 | 0 );
27038 if (!SWIG_IsOK(res1)) {
27039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuEvent_GetMenu" "', expected argument " "1"" of type '" "wxMenuEvent const *""'");
27040 }
27041 arg1 = reinterpret_cast< wxMenuEvent * >(argp1);
27042 {
27043 PyThreadState* __tstate = wxPyBeginAllowThreads();
27044 result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu();
27045 wxPyEndAllowThreads(__tstate);
27046 if (PyErr_Occurred()) SWIG_fail;
27047 }
27048 {
27049 resultobj = wxPyMake_wxObject(result, (bool)0);
27050 }
27051 return resultobj;
27052fail:
27053 return NULL;
d55e5bfc
RD
27054}
27055
27056
1bd55598
RD
27057SWIGINTERN PyObject *MenuEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27058 PyObject *obj;
27059 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27060 SWIG_TypeNewClientData(SWIGTYPE_p_wxMenuEvent, SWIG_NewClientData(obj));
27061 return SWIG_Py_Void();
d55e5bfc
RD
27062}
27063
1bd55598
RD
27064SWIGINTERN PyObject *MenuEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27065 return SWIG_Python_InitShadowInstance(args);
27066}
d55e5bfc 27067
1bd55598
RD
27068SWIGINTERN PyObject *_wrap_new_CloseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27069 PyObject *resultobj = 0;
27070 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27071 int arg2 = (int) 0 ;
27072 wxCloseEvent *result = 0 ;
27073 int val1 ;
27074 int ecode1 = 0 ;
27075 int val2 ;
27076 int ecode2 = 0 ;
27077 PyObject * obj0 = 0 ;
27078 PyObject * obj1 = 0 ;
27079 char * kwnames[] = {
27080 (char *) "type",(char *) "winid", NULL
27081 };
27082
27083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27084 if (obj0) {
27085 ecode1 = SWIG_AsVal_int(obj0, &val1);
27086 if (!SWIG_IsOK(ecode1)) {
27087 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CloseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27088 }
27089 arg1 = static_cast< wxEventType >(val1);
27090 }
27091 if (obj1) {
27092 ecode2 = SWIG_AsVal_int(obj1, &val2);
27093 if (!SWIG_IsOK(ecode2)) {
27094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CloseEvent" "', expected argument " "2"" of type '" "int""'");
27095 }
27096 arg2 = static_cast< int >(val2);
27097 }
27098 {
27099 PyThreadState* __tstate = wxPyBeginAllowThreads();
27100 result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2);
27101 wxPyEndAllowThreads(__tstate);
27102 if (PyErr_Occurred()) SWIG_fail;
27103 }
27104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_NEW | 0 );
27105 return resultobj;
27106fail:
27107 return NULL;
27108}
27109
27110
27111SWIGINTERN PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27112 PyObject *resultobj = 0;
27113 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
27114 bool arg2 ;
27115 void *argp1 = 0 ;
27116 int res1 = 0 ;
27117 bool val2 ;
27118 int ecode2 = 0 ;
27119 PyObject * obj0 = 0 ;
27120 PyObject * obj1 = 0 ;
27121 char * kwnames[] = {
27122 (char *) "self",(char *) "logOff", NULL
27123 };
27124
27125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) SWIG_fail;
27126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
27127 if (!SWIG_IsOK(res1)) {
27128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_SetLoggingOff" "', expected argument " "1"" of type '" "wxCloseEvent *""'");
27129 }
27130 arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
27131 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27132 if (!SWIG_IsOK(ecode2)) {
27133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CloseEvent_SetLoggingOff" "', expected argument " "2"" of type '" "bool""'");
27134 }
27135 arg2 = static_cast< bool >(val2);
27136 {
27137 PyThreadState* __tstate = wxPyBeginAllowThreads();
27138 (arg1)->SetLoggingOff(arg2);
27139 wxPyEndAllowThreads(__tstate);
27140 if (PyErr_Occurred()) SWIG_fail;
27141 }
27142 resultobj = SWIG_Py_Void();
27143 return resultobj;
27144fail:
27145 return NULL;
d55e5bfc
RD
27146}
27147
27148
1bd55598
RD
27149SWIGINTERN PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27150 PyObject *resultobj = 0;
27151 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
27152 bool result;
27153 void *argp1 = 0 ;
27154 int res1 = 0 ;
27155 PyObject *swig_obj[1] ;
27156
27157 if (!args) SWIG_fail;
27158 swig_obj[0] = args;
27159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
27160 if (!SWIG_IsOK(res1)) {
27161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_GetLoggingOff" "', expected argument " "1"" of type '" "wxCloseEvent const *""'");
27162 }
27163 arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
27164 {
27165 PyThreadState* __tstate = wxPyBeginAllowThreads();
27166 result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff();
27167 wxPyEndAllowThreads(__tstate);
27168 if (PyErr_Occurred()) SWIG_fail;
27169 }
27170 {
27171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27172 }
27173 return resultobj;
27174fail:
27175 return NULL;
27176}
27177
27178
27179SWIGINTERN PyObject *_wrap_CloseEvent_Veto(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27180 PyObject *resultobj = 0;
27181 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
27182 bool arg2 = (bool) true ;
27183 void *argp1 = 0 ;
27184 int res1 = 0 ;
27185 bool val2 ;
27186 int ecode2 = 0 ;
27187 PyObject * obj0 = 0 ;
27188 PyObject * obj1 = 0 ;
27189 char * kwnames[] = {
27190 (char *) "self",(char *) "veto", NULL
27191 };
27192
27193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) SWIG_fail;
27194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
27195 if (!SWIG_IsOK(res1)) {
27196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_Veto" "', expected argument " "1"" of type '" "wxCloseEvent *""'");
27197 }
27198 arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
27199 if (obj1) {
27200 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27201 if (!SWIG_IsOK(ecode2)) {
27202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CloseEvent_Veto" "', expected argument " "2"" of type '" "bool""'");
27203 }
27204 arg2 = static_cast< bool >(val2);
27205 }
27206 {
27207 PyThreadState* __tstate = wxPyBeginAllowThreads();
27208 (arg1)->Veto(arg2);
27209 wxPyEndAllowThreads(__tstate);
27210 if (PyErr_Occurred()) SWIG_fail;
27211 }
27212 resultobj = SWIG_Py_Void();
27213 return resultobj;
27214fail:
27215 return NULL;
d55e5bfc
RD
27216}
27217
27218
1bd55598
RD
27219SWIGINTERN PyObject *_wrap_CloseEvent_GetVeto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27220 PyObject *resultobj = 0;
27221 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
27222 bool result;
27223 void *argp1 = 0 ;
27224 int res1 = 0 ;
27225 PyObject *swig_obj[1] ;
27226
27227 if (!args) SWIG_fail;
27228 swig_obj[0] = args;
27229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
27230 if (!SWIG_IsOK(res1)) {
27231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_GetVeto" "', expected argument " "1"" of type '" "wxCloseEvent const *""'");
27232 }
27233 arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
27234 {
27235 PyThreadState* __tstate = wxPyBeginAllowThreads();
27236 result = (bool)((wxCloseEvent const *)arg1)->GetVeto();
27237 wxPyEndAllowThreads(__tstate);
27238 if (PyErr_Occurred()) SWIG_fail;
27239 }
27240 {
27241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27242 }
27243 return resultobj;
27244fail:
27245 return NULL;
27246}
27247
27248
27249SWIGINTERN PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27250 PyObject *resultobj = 0;
27251 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
27252 bool arg2 ;
27253 void *argp1 = 0 ;
27254 int res1 = 0 ;
27255 bool val2 ;
27256 int ecode2 = 0 ;
27257 PyObject * obj0 = 0 ;
27258 PyObject * obj1 = 0 ;
27259 char * kwnames[] = {
27260 (char *) "self",(char *) "canVeto", NULL
27261 };
27262
27263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) SWIG_fail;
27264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
27265 if (!SWIG_IsOK(res1)) {
27266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_SetCanVeto" "', expected argument " "1"" of type '" "wxCloseEvent *""'");
27267 }
27268 arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
27269 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27270 if (!SWIG_IsOK(ecode2)) {
27271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CloseEvent_SetCanVeto" "', expected argument " "2"" of type '" "bool""'");
27272 }
27273 arg2 = static_cast< bool >(val2);
27274 {
27275 PyThreadState* __tstate = wxPyBeginAllowThreads();
27276 (arg1)->SetCanVeto(arg2);
27277 wxPyEndAllowThreads(__tstate);
27278 if (PyErr_Occurred()) SWIG_fail;
27279 }
27280 resultobj = SWIG_Py_Void();
27281 return resultobj;
27282fail:
27283 return NULL;
d55e5bfc
RD
27284}
27285
27286
1bd55598
RD
27287SWIGINTERN PyObject *_wrap_CloseEvent_CanVeto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27288 PyObject *resultobj = 0;
27289 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
27290 bool result;
27291 void *argp1 = 0 ;
27292 int res1 = 0 ;
27293 PyObject *swig_obj[1] ;
27294
27295 if (!args) SWIG_fail;
27296 swig_obj[0] = args;
27297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
27298 if (!SWIG_IsOK(res1)) {
27299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_CanVeto" "', expected argument " "1"" of type '" "wxCloseEvent const *""'");
27300 }
27301 arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
27302 {
27303 PyThreadState* __tstate = wxPyBeginAllowThreads();
27304 result = (bool)((wxCloseEvent const *)arg1)->CanVeto();
27305 wxPyEndAllowThreads(__tstate);
27306 if (PyErr_Occurred()) SWIG_fail;
27307 }
27308 {
27309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27310 }
27311 return resultobj;
27312fail:
27313 return NULL;
d55e5bfc
RD
27314}
27315
27316
1bd55598
RD
27317SWIGINTERN PyObject *CloseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27318 PyObject *obj;
27319 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27320 SWIG_TypeNewClientData(SWIGTYPE_p_wxCloseEvent, SWIG_NewClientData(obj));
27321 return SWIG_Py_Void();
d55e5bfc
RD
27322}
27323
1bd55598
RD
27324SWIGINTERN PyObject *CloseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27325 return SWIG_Python_InitShadowInstance(args);
d55e5bfc 27326}
1bd55598
RD
27327
27328SWIGINTERN PyObject *_wrap_new_ShowEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27329 PyObject *resultobj = 0;
27330 int arg1 = (int) 0 ;
27331 bool arg2 = (bool) false ;
27332 wxShowEvent *result = 0 ;
27333 int val1 ;
27334 int ecode1 = 0 ;
27335 bool val2 ;
27336 int ecode2 = 0 ;
27337 PyObject * obj0 = 0 ;
27338 PyObject * obj1 = 0 ;
27339 char * kwnames[] = {
27340 (char *) "winid",(char *) "show", NULL
27341 };
27342
27343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27344 if (obj0) {
27345 ecode1 = SWIG_AsVal_int(obj0, &val1);
27346 if (!SWIG_IsOK(ecode1)) {
27347 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ShowEvent" "', expected argument " "1"" of type '" "int""'");
27348 }
27349 arg1 = static_cast< int >(val1);
27350 }
27351 if (obj1) {
27352 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27353 if (!SWIG_IsOK(ecode2)) {
27354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ShowEvent" "', expected argument " "2"" of type '" "bool""'");
27355 }
27356 arg2 = static_cast< bool >(val2);
27357 }
27358 {
27359 PyThreadState* __tstate = wxPyBeginAllowThreads();
27360 result = (wxShowEvent *)new wxShowEvent(arg1,arg2);
27361 wxPyEndAllowThreads(__tstate);
27362 if (PyErr_Occurred()) SWIG_fail;
27363 }
27364 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxShowEvent, SWIG_POINTER_NEW | 0 );
27365 return resultobj;
27366fail:
27367 return NULL;
27368}
27369
27370
27371SWIGINTERN PyObject *_wrap_ShowEvent_SetShow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27372 PyObject *resultobj = 0;
27373 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
27374 bool arg2 ;
27375 void *argp1 = 0 ;
27376 int res1 = 0 ;
27377 bool val2 ;
27378 int ecode2 = 0 ;
27379 PyObject * obj0 = 0 ;
27380 PyObject * obj1 = 0 ;
27381 char * kwnames[] = {
27382 (char *) "self",(char *) "show", NULL
27383 };
27384
27385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) SWIG_fail;
27386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxShowEvent, 0 | 0 );
27387 if (!SWIG_IsOK(res1)) {
27388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShowEvent_SetShow" "', expected argument " "1"" of type '" "wxShowEvent *""'");
27389 }
27390 arg1 = reinterpret_cast< wxShowEvent * >(argp1);
27391 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27392 if (!SWIG_IsOK(ecode2)) {
27393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ShowEvent_SetShow" "', expected argument " "2"" of type '" "bool""'");
27394 }
27395 arg2 = static_cast< bool >(val2);
27396 {
27397 PyThreadState* __tstate = wxPyBeginAllowThreads();
27398 (arg1)->SetShow(arg2);
27399 wxPyEndAllowThreads(__tstate);
27400 if (PyErr_Occurred()) SWIG_fail;
27401 }
27402 resultobj = SWIG_Py_Void();
27403 return resultobj;
27404fail:
27405 return NULL;
d55e5bfc
RD
27406}
27407
27408
1bd55598
RD
27409SWIGINTERN PyObject *_wrap_ShowEvent_GetShow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27410 PyObject *resultobj = 0;
27411 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
27412 bool result;
27413 void *argp1 = 0 ;
27414 int res1 = 0 ;
27415 PyObject *swig_obj[1] ;
27416
27417 if (!args) SWIG_fail;
27418 swig_obj[0] = args;
27419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxShowEvent, 0 | 0 );
27420 if (!SWIG_IsOK(res1)) {
27421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShowEvent_GetShow" "', expected argument " "1"" of type '" "wxShowEvent const *""'");
27422 }
27423 arg1 = reinterpret_cast< wxShowEvent * >(argp1);
27424 {
27425 PyThreadState* __tstate = wxPyBeginAllowThreads();
27426 result = (bool)((wxShowEvent const *)arg1)->GetShow();
27427 wxPyEndAllowThreads(__tstate);
27428 if (PyErr_Occurred()) SWIG_fail;
27429 }
27430 {
27431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27432 }
27433 return resultobj;
27434fail:
27435 return NULL;
d55e5bfc
RD
27436}
27437
27438
1bd55598
RD
27439SWIGINTERN PyObject *ShowEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27440 PyObject *obj;
27441 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27442 SWIG_TypeNewClientData(SWIGTYPE_p_wxShowEvent, SWIG_NewClientData(obj));
27443 return SWIG_Py_Void();
d55e5bfc
RD
27444}
27445
1bd55598
RD
27446SWIGINTERN PyObject *ShowEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27447 return SWIG_Python_InitShadowInstance(args);
27448}
d55e5bfc 27449
1bd55598
RD
27450SWIGINTERN PyObject *_wrap_new_IconizeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27451 PyObject *resultobj = 0;
27452 int arg1 = (int) 0 ;
27453 bool arg2 = (bool) true ;
27454 wxIconizeEvent *result = 0 ;
27455 int val1 ;
27456 int ecode1 = 0 ;
27457 bool val2 ;
27458 int ecode2 = 0 ;
27459 PyObject * obj0 = 0 ;
27460 PyObject * obj1 = 0 ;
27461 char * kwnames[] = {
27462 (char *) "id",(char *) "iconized", NULL
27463 };
27464
27465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27466 if (obj0) {
27467 ecode1 = SWIG_AsVal_int(obj0, &val1);
27468 if (!SWIG_IsOK(ecode1)) {
27469 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IconizeEvent" "', expected argument " "1"" of type '" "int""'");
27470 }
27471 arg1 = static_cast< int >(val1);
27472 }
27473 if (obj1) {
27474 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27475 if (!SWIG_IsOK(ecode2)) {
27476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconizeEvent" "', expected argument " "2"" of type '" "bool""'");
27477 }
27478 arg2 = static_cast< bool >(val2);
27479 }
27480 {
27481 PyThreadState* __tstate = wxPyBeginAllowThreads();
27482 result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2);
27483 wxPyEndAllowThreads(__tstate);
27484 if (PyErr_Occurred()) SWIG_fail;
27485 }
27486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconizeEvent, SWIG_POINTER_NEW | 0 );
27487 return resultobj;
27488fail:
27489 return NULL;
d55e5bfc
RD
27490}
27491
27492
1bd55598
RD
27493SWIGINTERN PyObject *_wrap_IconizeEvent_Iconized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27494 PyObject *resultobj = 0;
27495 wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ;
27496 bool result;
27497 void *argp1 = 0 ;
27498 int res1 = 0 ;
27499 PyObject *swig_obj[1] ;
27500
27501 if (!args) SWIG_fail;
27502 swig_obj[0] = args;
27503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconizeEvent, 0 | 0 );
27504 if (!SWIG_IsOK(res1)) {
27505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconizeEvent_Iconized" "', expected argument " "1"" of type '" "wxIconizeEvent *""'");
27506 }
27507 arg1 = reinterpret_cast< wxIconizeEvent * >(argp1);
27508 {
27509 PyThreadState* __tstate = wxPyBeginAllowThreads();
27510 result = (bool)(arg1)->Iconized();
27511 wxPyEndAllowThreads(__tstate);
27512 if (PyErr_Occurred()) SWIG_fail;
27513 }
27514 {
27515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27516 }
27517 return resultobj;
27518fail:
27519 return NULL;
d55e5bfc
RD
27520}
27521
27522
1bd55598
RD
27523SWIGINTERN PyObject *IconizeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27524 PyObject *obj;
27525 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27526 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconizeEvent, SWIG_NewClientData(obj));
27527 return SWIG_Py_Void();
d55e5bfc
RD
27528}
27529
1bd55598
RD
27530SWIGINTERN PyObject *IconizeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27531 return SWIG_Python_InitShadowInstance(args);
27532}
d55e5bfc 27533
1bd55598
RD
27534SWIGINTERN PyObject *_wrap_new_MaximizeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27535 PyObject *resultobj = 0;
27536 int arg1 = (int) 0 ;
27537 wxMaximizeEvent *result = 0 ;
27538 int val1 ;
27539 int ecode1 = 0 ;
27540 PyObject * obj0 = 0 ;
27541 char * kwnames[] = {
27542 (char *) "id", NULL
27543 };
27544
27545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) SWIG_fail;
27546 if (obj0) {
27547 ecode1 = SWIG_AsVal_int(obj0, &val1);
27548 if (!SWIG_IsOK(ecode1)) {
27549 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MaximizeEvent" "', expected argument " "1"" of type '" "int""'");
27550 }
27551 arg1 = static_cast< int >(val1);
27552 }
27553 {
27554 PyThreadState* __tstate = wxPyBeginAllowThreads();
27555 result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1);
27556 wxPyEndAllowThreads(__tstate);
27557 if (PyErr_Occurred()) SWIG_fail;
27558 }
27559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMaximizeEvent, SWIG_POINTER_NEW | 0 );
27560 return resultobj;
27561fail:
27562 return NULL;
d55e5bfc
RD
27563}
27564
27565
1bd55598
RD
27566SWIGINTERN PyObject *MaximizeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27567 PyObject *obj;
27568 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27569 SWIG_TypeNewClientData(SWIGTYPE_p_wxMaximizeEvent, SWIG_NewClientData(obj));
27570 return SWIG_Py_Void();
d55e5bfc
RD
27571}
27572
1bd55598
RD
27573SWIGINTERN PyObject *MaximizeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27574 return SWIG_Python_InitShadowInstance(args);
27575}
d55e5bfc 27576
1bd55598
RD
27577SWIGINTERN PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27578 PyObject *resultobj = 0;
27579 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
27580 wxPoint result;
27581 void *argp1 = 0 ;
27582 int res1 = 0 ;
27583 PyObject *swig_obj[1] ;
27584
27585 if (!args) SWIG_fail;
27586 swig_obj[0] = args;
27587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDropFilesEvent, 0 | 0 );
27588 if (!SWIG_IsOK(res1)) {
27589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropFilesEvent_GetPosition" "', expected argument " "1"" of type '" "wxDropFilesEvent *""'");
27590 }
27591 arg1 = reinterpret_cast< wxDropFilesEvent * >(argp1);
27592 {
27593 PyThreadState* __tstate = wxPyBeginAllowThreads();
27594 result = (arg1)->GetPosition();
27595 wxPyEndAllowThreads(__tstate);
27596 if (PyErr_Occurred()) SWIG_fail;
27597 }
27598 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
27599 return resultobj;
27600fail:
27601 return NULL;
d55e5bfc
RD
27602}
27603
27604
1bd55598
RD
27605SWIGINTERN PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27606 PyObject *resultobj = 0;
27607 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
27608 int result;
27609 void *argp1 = 0 ;
27610 int res1 = 0 ;
27611 PyObject *swig_obj[1] ;
27612
27613 if (!args) SWIG_fail;
27614 swig_obj[0] = args;
27615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDropFilesEvent, 0 | 0 );
27616 if (!SWIG_IsOK(res1)) {
27617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropFilesEvent_GetNumberOfFiles" "', expected argument " "1"" of type '" "wxDropFilesEvent *""'");
27618 }
27619 arg1 = reinterpret_cast< wxDropFilesEvent * >(argp1);
27620 {
27621 PyThreadState* __tstate = wxPyBeginAllowThreads();
27622 result = (int)(arg1)->GetNumberOfFiles();
27623 wxPyEndAllowThreads(__tstate);
27624 if (PyErr_Occurred()) SWIG_fail;
27625 }
27626 resultobj = SWIG_From_int(static_cast< int >(result));
27627 return resultobj;
27628fail:
27629 return NULL;
d55e5bfc
RD
27630}
27631
27632
1bd55598
RD
27633SWIGINTERN PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27634 PyObject *resultobj = 0;
27635 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
27636 PyObject *result = 0 ;
27637 void *argp1 = 0 ;
27638 int res1 = 0 ;
27639 PyObject *swig_obj[1] ;
27640
27641 if (!args) SWIG_fail;
27642 swig_obj[0] = args;
27643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDropFilesEvent, 0 | 0 );
27644 if (!SWIG_IsOK(res1)) {
27645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropFilesEvent_GetFiles" "', expected argument " "1"" of type '" "wxDropFilesEvent *""'");
27646 }
27647 arg1 = reinterpret_cast< wxDropFilesEvent * >(argp1);
27648 {
27649 PyThreadState* __tstate = wxPyBeginAllowThreads();
27650 result = (PyObject *)wxDropFilesEvent_GetFiles(arg1);
27651 wxPyEndAllowThreads(__tstate);
27652 if (PyErr_Occurred()) SWIG_fail;
27653 }
27654 resultobj = result;
27655 return resultobj;
27656fail:
27657 return NULL;
d55e5bfc
RD
27658}
27659
27660
1bd55598
RD
27661SWIGINTERN PyObject *DropFilesEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27662 PyObject *obj;
27663 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27664 SWIG_TypeNewClientData(SWIGTYPE_p_wxDropFilesEvent, SWIG_NewClientData(obj));
27665 return SWIG_Py_Void();
d55e5bfc
RD
27666}
27667
1bd55598
RD
27668SWIGINTERN PyObject *_wrap_new_UpdateUIEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27669 PyObject *resultobj = 0;
27670 int arg1 = (int) 0 ;
27671 wxUpdateUIEvent *result = 0 ;
27672 int val1 ;
27673 int ecode1 = 0 ;
27674 PyObject * obj0 = 0 ;
27675 char * kwnames[] = {
27676 (char *) "commandId", NULL
27677 };
27678
27679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) SWIG_fail;
27680 if (obj0) {
27681 ecode1 = SWIG_AsVal_int(obj0, &val1);
27682 if (!SWIG_IsOK(ecode1)) {
27683 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UpdateUIEvent" "', expected argument " "1"" of type '" "int""'");
27684 }
27685 arg1 = static_cast< int >(val1);
27686 }
27687 {
27688 PyThreadState* __tstate = wxPyBeginAllowThreads();
27689 result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1);
27690 wxPyEndAllowThreads(__tstate);
27691 if (PyErr_Occurred()) SWIG_fail;
27692 }
27693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_NEW | 0 );
27694 return resultobj;
27695fail:
27696 return NULL;
27697}
d55e5bfc 27698
1bd55598
RD
27699
27700SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27701 PyObject *resultobj = 0;
27702 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27703 bool result;
27704 void *argp1 = 0 ;
27705 int res1 = 0 ;
27706 PyObject *swig_obj[1] ;
27707
27708 if (!args) SWIG_fail;
27709 swig_obj[0] = args;
27710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27711 if (!SWIG_IsOK(res1)) {
27712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetChecked" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
27713 }
27714 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27715 {
27716 PyThreadState* __tstate = wxPyBeginAllowThreads();
27717 result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked();
27718 wxPyEndAllowThreads(__tstate);
27719 if (PyErr_Occurred()) SWIG_fail;
27720 }
27721 {
27722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27723 }
27724 return resultobj;
27725fail:
27726 return NULL;
d55e5bfc
RD
27727}
27728
27729
1bd55598
RD
27730SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27731 PyObject *resultobj = 0;
27732 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27733 bool result;
27734 void *argp1 = 0 ;
27735 int res1 = 0 ;
27736 PyObject *swig_obj[1] ;
27737
27738 if (!args) SWIG_fail;
27739 swig_obj[0] = args;
27740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27741 if (!SWIG_IsOK(res1)) {
27742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetEnabled" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
27743 }
27744 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27745 {
27746 PyThreadState* __tstate = wxPyBeginAllowThreads();
27747 result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled();
27748 wxPyEndAllowThreads(__tstate);
27749 if (PyErr_Occurred()) SWIG_fail;
27750 }
27751 {
27752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27753 }
27754 return resultobj;
27755fail:
27756 return NULL;
d55e5bfc
RD
27757}
27758
27759
1bd55598
RD
27760SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27761 PyObject *resultobj = 0;
27762 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27763 bool result;
27764 void *argp1 = 0 ;
27765 int res1 = 0 ;
27766 PyObject *swig_obj[1] ;
27767
27768 if (!args) SWIG_fail;
27769 swig_obj[0] = args;
27770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27771 if (!SWIG_IsOK(res1)) {
27772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetShown" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
27773 }
27774 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27775 {
27776 PyThreadState* __tstate = wxPyBeginAllowThreads();
27777 result = (bool)((wxUpdateUIEvent const *)arg1)->GetShown();
27778 wxPyEndAllowThreads(__tstate);
27779 if (PyErr_Occurred()) SWIG_fail;
27780 }
27781 {
27782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27783 }
27784 return resultobj;
27785fail:
27786 return NULL;
d55e5bfc
RD
27787}
27788
27789
1bd55598
RD
27790SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27791 PyObject *resultobj = 0;
27792 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27793 wxString result;
27794 void *argp1 = 0 ;
27795 int res1 = 0 ;
27796 PyObject *swig_obj[1] ;
27797
27798 if (!args) SWIG_fail;
27799 swig_obj[0] = args;
27800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27801 if (!SWIG_IsOK(res1)) {
27802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetText" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
27803 }
27804 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27805 {
27806 PyThreadState* __tstate = wxPyBeginAllowThreads();
27807 result = ((wxUpdateUIEvent const *)arg1)->GetText();
27808 wxPyEndAllowThreads(__tstate);
27809 if (PyErr_Occurred()) SWIG_fail;
27810 }
27811 {
27812#if wxUSE_UNICODE
27813 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27814#else
27815 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27816#endif
27817 }
27818 return resultobj;
27819fail:
27820 return NULL;
d55e5bfc
RD
27821}
27822
27823
1bd55598
RD
27824SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27825 PyObject *resultobj = 0;
27826 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27827 bool result;
27828 void *argp1 = 0 ;
27829 int res1 = 0 ;
27830 PyObject *swig_obj[1] ;
27831
27832 if (!args) SWIG_fail;
27833 swig_obj[0] = args;
27834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27835 if (!SWIG_IsOK(res1)) {
27836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetSetText" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
27837 }
27838 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27839 {
27840 PyThreadState* __tstate = wxPyBeginAllowThreads();
27841 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText();
27842 wxPyEndAllowThreads(__tstate);
27843 if (PyErr_Occurred()) SWIG_fail;
27844 }
27845 {
27846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27847 }
27848 return resultobj;
27849fail:
27850 return NULL;
d55e5bfc
RD
27851}
27852
27853
1bd55598
RD
27854SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27855 PyObject *resultobj = 0;
27856 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27857 bool result;
27858 void *argp1 = 0 ;
27859 int res1 = 0 ;
27860 PyObject *swig_obj[1] ;
27861
27862 if (!args) SWIG_fail;
27863 swig_obj[0] = args;
27864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27865 if (!SWIG_IsOK(res1)) {
27866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetSetChecked" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
27867 }
27868 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27869 {
27870 PyThreadState* __tstate = wxPyBeginAllowThreads();
27871 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked();
27872 wxPyEndAllowThreads(__tstate);
27873 if (PyErr_Occurred()) SWIG_fail;
27874 }
27875 {
27876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27877 }
27878 return resultobj;
27879fail:
27880 return NULL;
d55e5bfc
RD
27881}
27882
27883
1bd55598
RD
27884SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27885 PyObject *resultobj = 0;
27886 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27887 bool result;
27888 void *argp1 = 0 ;
27889 int res1 = 0 ;
27890 PyObject *swig_obj[1] ;
27891
27892 if (!args) SWIG_fail;
27893 swig_obj[0] = args;
27894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27895 if (!SWIG_IsOK(res1)) {
27896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetSetEnabled" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
27897 }
27898 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27899 {
27900 PyThreadState* __tstate = wxPyBeginAllowThreads();
27901 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled();
27902 wxPyEndAllowThreads(__tstate);
27903 if (PyErr_Occurred()) SWIG_fail;
27904 }
27905 {
27906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27907 }
27908 return resultobj;
27909fail:
27910 return NULL;
d55e5bfc
RD
27911}
27912
27913
1bd55598
RD
27914SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetSetShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27915 PyObject *resultobj = 0;
27916 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27917 bool result;
27918 void *argp1 = 0 ;
27919 int res1 = 0 ;
27920 PyObject *swig_obj[1] ;
27921
27922 if (!args) SWIG_fail;
27923 swig_obj[0] = args;
27924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27925 if (!SWIG_IsOK(res1)) {
27926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetSetShown" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
27927 }
27928 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27929 {
27930 PyThreadState* __tstate = wxPyBeginAllowThreads();
27931 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetShown();
27932 wxPyEndAllowThreads(__tstate);
27933 if (PyErr_Occurred()) SWIG_fail;
27934 }
27935 {
27936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27937 }
27938 return resultobj;
27939fail:
27940 return NULL;
27941}
27942
27943
27944SWIGINTERN PyObject *_wrap_UpdateUIEvent_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27945 PyObject *resultobj = 0;
27946 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27947 bool arg2 ;
27948 void *argp1 = 0 ;
27949 int res1 = 0 ;
27950 bool val2 ;
27951 int ecode2 = 0 ;
27952 PyObject * obj0 = 0 ;
27953 PyObject * obj1 = 0 ;
27954 char * kwnames[] = {
27955 (char *) "self",(char *) "check", NULL
27956 };
27957
27958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) SWIG_fail;
27959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27960 if (!SWIG_IsOK(res1)) {
27961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_Check" "', expected argument " "1"" of type '" "wxUpdateUIEvent *""'");
27962 }
27963 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
27964 ecode2 = SWIG_AsVal_bool(obj1, &val2);
27965 if (!SWIG_IsOK(ecode2)) {
27966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UpdateUIEvent_Check" "', expected argument " "2"" of type '" "bool""'");
27967 }
27968 arg2 = static_cast< bool >(val2);
27969 {
27970 PyThreadState* __tstate = wxPyBeginAllowThreads();
27971 (arg1)->Check(arg2);
27972 wxPyEndAllowThreads(__tstate);
27973 if (PyErr_Occurred()) SWIG_fail;
27974 }
27975 resultobj = SWIG_Py_Void();
27976 return resultobj;
27977fail:
27978 return NULL;
27979}
27980
27981
27982SWIGINTERN PyObject *_wrap_UpdateUIEvent_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27983 PyObject *resultobj = 0;
27984 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
27985 bool arg2 ;
27986 void *argp1 = 0 ;
27987 int res1 = 0 ;
27988 bool val2 ;
27989 int ecode2 = 0 ;
27990 PyObject * obj0 = 0 ;
27991 PyObject * obj1 = 0 ;
27992 char * kwnames[] = {
27993 (char *) "self",(char *) "enable", NULL
27994 };
27995
27996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
27997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
27998 if (!SWIG_IsOK(res1)) {
27999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_Enable" "', expected argument " "1"" of type '" "wxUpdateUIEvent *""'");
28000 }
28001 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
28002 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28003 if (!SWIG_IsOK(ecode2)) {
28004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UpdateUIEvent_Enable" "', expected argument " "2"" of type '" "bool""'");
28005 }
28006 arg2 = static_cast< bool >(val2);
28007 {
28008 PyThreadState* __tstate = wxPyBeginAllowThreads();
28009 (arg1)->Enable(arg2);
28010 wxPyEndAllowThreads(__tstate);
28011 if (PyErr_Occurred()) SWIG_fail;
28012 }
28013 resultobj = SWIG_Py_Void();
28014 return resultobj;
28015fail:
28016 return NULL;
28017}
28018
28019
28020SWIGINTERN PyObject *_wrap_UpdateUIEvent_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28021 PyObject *resultobj = 0;
28022 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
28023 bool arg2 ;
28024 void *argp1 = 0 ;
28025 int res1 = 0 ;
28026 bool val2 ;
28027 int ecode2 = 0 ;
28028 PyObject * obj0 = 0 ;
28029 PyObject * obj1 = 0 ;
28030 char * kwnames[] = {
28031 (char *) "self",(char *) "show", NULL
28032 };
28033
28034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Show",kwnames,&obj0,&obj1)) SWIG_fail;
28035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
28036 if (!SWIG_IsOK(res1)) {
28037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_Show" "', expected argument " "1"" of type '" "wxUpdateUIEvent *""'");
28038 }
28039 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
28040 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28041 if (!SWIG_IsOK(ecode2)) {
28042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UpdateUIEvent_Show" "', expected argument " "2"" of type '" "bool""'");
28043 }
28044 arg2 = static_cast< bool >(val2);
28045 {
28046 PyThreadState* __tstate = wxPyBeginAllowThreads();
28047 (arg1)->Show(arg2);
28048 wxPyEndAllowThreads(__tstate);
28049 if (PyErr_Occurred()) SWIG_fail;
28050 }
28051 resultobj = SWIG_Py_Void();
28052 return resultobj;
28053fail:
28054 return NULL;
28055}
28056
28057
28058SWIGINTERN PyObject *_wrap_UpdateUIEvent_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28059 PyObject *resultobj = 0;
28060 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
28061 wxString *arg2 = 0 ;
28062 void *argp1 = 0 ;
28063 int res1 = 0 ;
28064 bool temp2 = false ;
28065 PyObject * obj0 = 0 ;
28066 PyObject * obj1 = 0 ;
28067 char * kwnames[] = {
28068 (char *) "self",(char *) "text", NULL
28069 };
28070
28071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
28072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
28073 if (!SWIG_IsOK(res1)) {
28074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_SetText" "', expected argument " "1"" of type '" "wxUpdateUIEvent *""'");
28075 }
28076 arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
28077 {
28078 arg2 = wxString_in_helper(obj1);
28079 if (arg2 == NULL) SWIG_fail;
28080 temp2 = true;
28081 }
28082 {
28083 PyThreadState* __tstate = wxPyBeginAllowThreads();
28084 (arg1)->SetText((wxString const &)*arg2);
28085 wxPyEndAllowThreads(__tstate);
28086 if (PyErr_Occurred()) SWIG_fail;
28087 }
28088 resultobj = SWIG_Py_Void();
28089 {
28090 if (temp2)
28091 delete arg2;
28092 }
28093 return resultobj;
28094fail:
28095 {
28096 if (temp2)
28097 delete arg2;
28098 }
28099 return NULL;
d55e5bfc
RD
28100}
28101
28102
1bd55598
RD
28103SWIGINTERN PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28104 PyObject *resultobj = 0;
28105 long arg1 ;
28106 long val1 ;
28107 int ecode1 = 0 ;
28108 PyObject * obj0 = 0 ;
28109 char * kwnames[] = {
28110 (char *) "updateInterval", NULL
28111 };
28112
28113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) SWIG_fail;
28114 ecode1 = SWIG_AsVal_long(obj0, &val1);
28115 if (!SWIG_IsOK(ecode1)) {
28116 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "UpdateUIEvent_SetUpdateInterval" "', expected argument " "1"" of type '" "long""'");
28117 }
28118 arg1 = static_cast< long >(val1);
28119 {
28120 PyThreadState* __tstate = wxPyBeginAllowThreads();
28121 wxUpdateUIEvent::SetUpdateInterval(arg1);
28122 wxPyEndAllowThreads(__tstate);
28123 if (PyErr_Occurred()) SWIG_fail;
28124 }
28125 resultobj = SWIG_Py_Void();
28126 return resultobj;
28127fail:
28128 return NULL;
d55e5bfc
RD
28129}
28130
28131
1bd55598
RD
28132SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28133 PyObject *resultobj = 0;
28134 long result;
28135
28136 if (!SWIG_Python_UnpackTuple(args,"UpdateUIEvent_GetUpdateInterval",0,0,0)) SWIG_fail;
28137 {
28138 PyThreadState* __tstate = wxPyBeginAllowThreads();
28139 result = (long)wxUpdateUIEvent::GetUpdateInterval();
28140 wxPyEndAllowThreads(__tstate);
28141 if (PyErr_Occurred()) SWIG_fail;
28142 }
28143 resultobj = SWIG_From_long(static_cast< long >(result));
28144 return resultobj;
28145fail:
28146 return NULL;
28147}
28148
28149
28150SWIGINTERN PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28151 PyObject *resultobj = 0;
28152 wxWindow *arg1 = (wxWindow *) 0 ;
28153 bool result;
28154 void *argp1 = 0 ;
28155 int res1 = 0 ;
28156 PyObject * obj0 = 0 ;
28157 char * kwnames[] = {
28158 (char *) "win", NULL
28159 };
28160
28161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) SWIG_fail;
28162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28163 if (!SWIG_IsOK(res1)) {
28164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_CanUpdate" "', expected argument " "1"" of type '" "wxWindow *""'");
28165 }
28166 arg1 = reinterpret_cast< wxWindow * >(argp1);
28167 {
28168 PyThreadState* __tstate = wxPyBeginAllowThreads();
28169 result = (bool)wxUpdateUIEvent::CanUpdate(arg1);
28170 wxPyEndAllowThreads(__tstate);
28171 if (PyErr_Occurred()) SWIG_fail;
28172 }
28173 {
28174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28175 }
28176 return resultobj;
28177fail:
28178 return NULL;
d55e5bfc
RD
28179}
28180
28181
1bd55598
RD
28182SWIGINTERN PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28183 PyObject *resultobj = 0;
28184
28185 if (!SWIG_Python_UnpackTuple(args,"UpdateUIEvent_ResetUpdateTime",0,0,0)) SWIG_fail;
28186 {
28187 PyThreadState* __tstate = wxPyBeginAllowThreads();
28188 wxUpdateUIEvent::ResetUpdateTime();
28189 wxPyEndAllowThreads(__tstate);
28190 if (PyErr_Occurred()) SWIG_fail;
28191 }
28192 resultobj = SWIG_Py_Void();
28193 return resultobj;
28194fail:
28195 return NULL;
d55e5bfc
RD
28196}
28197
28198
1bd55598
RD
28199SWIGINTERN PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28200 PyObject *resultobj = 0;
28201 wxUpdateUIMode arg1 ;
28202 int val1 ;
28203 int ecode1 = 0 ;
28204 PyObject * obj0 = 0 ;
28205 char * kwnames[] = {
28206 (char *) "mode", NULL
28207 };
28208
28209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) SWIG_fail;
28210 ecode1 = SWIG_AsVal_int(obj0, &val1);
28211 if (!SWIG_IsOK(ecode1)) {
28212 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "UpdateUIEvent_SetMode" "', expected argument " "1"" of type '" "wxUpdateUIMode""'");
28213 }
28214 arg1 = static_cast< wxUpdateUIMode >(val1);
28215 {
28216 PyThreadState* __tstate = wxPyBeginAllowThreads();
28217 wxUpdateUIEvent::SetMode(arg1);
28218 wxPyEndAllowThreads(__tstate);
28219 if (PyErr_Occurred()) SWIG_fail;
28220 }
28221 resultobj = SWIG_Py_Void();
28222 return resultobj;
28223fail:
28224 return NULL;
d55e5bfc
RD
28225}
28226
28227
1bd55598
RD
28228SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28229 PyObject *resultobj = 0;
28230 wxUpdateUIMode result;
28231
28232 if (!SWIG_Python_UnpackTuple(args,"UpdateUIEvent_GetMode",0,0,0)) SWIG_fail;
28233 {
28234 PyThreadState* __tstate = wxPyBeginAllowThreads();
28235 result = (wxUpdateUIMode)wxUpdateUIEvent::GetMode();
28236 wxPyEndAllowThreads(__tstate);
28237 if (PyErr_Occurred()) SWIG_fail;
28238 }
28239 resultobj = SWIG_From_int(static_cast< int >(result));
28240 return resultobj;
28241fail:
28242 return NULL;
d55e5bfc
RD
28243}
28244
28245
1bd55598
RD
28246SWIGINTERN PyObject *UpdateUIEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28247 PyObject *obj;
28248 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28249 SWIG_TypeNewClientData(SWIGTYPE_p_wxUpdateUIEvent, SWIG_NewClientData(obj));
28250 return SWIG_Py_Void();
d55e5bfc
RD
28251}
28252
1bd55598
RD
28253SWIGINTERN PyObject *UpdateUIEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28254 return SWIG_Python_InitShadowInstance(args);
28255}
d55e5bfc 28256
1bd55598
RD
28257SWIGINTERN PyObject *_wrap_new_SysColourChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28258 PyObject *resultobj = 0;
28259 wxSysColourChangedEvent *result = 0 ;
28260
28261 if (!SWIG_Python_UnpackTuple(args,"new_SysColourChangedEvent",0,0,0)) SWIG_fail;
28262 {
28263 PyThreadState* __tstate = wxPyBeginAllowThreads();
28264 result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent();
28265 wxPyEndAllowThreads(__tstate);
28266 if (PyErr_Occurred()) SWIG_fail;
28267 }
28268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSysColourChangedEvent, SWIG_POINTER_NEW | 0 );
28269 return resultobj;
28270fail:
28271 return NULL;
d55e5bfc
RD
28272}
28273
28274
1bd55598
RD
28275SWIGINTERN PyObject *SysColourChangedEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28276 PyObject *obj;
28277 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28278 SWIG_TypeNewClientData(SWIGTYPE_p_wxSysColourChangedEvent, SWIG_NewClientData(obj));
28279 return SWIG_Py_Void();
d55e5bfc
RD
28280}
28281
1bd55598
RD
28282SWIGINTERN PyObject *SysColourChangedEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28283 return SWIG_Python_InitShadowInstance(args);
28284}
d55e5bfc 28285
1bd55598
RD
28286SWIGINTERN PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28287 PyObject *resultobj = 0;
28288 int arg1 = (int) 0 ;
28289 wxWindow *arg2 = (wxWindow *) NULL ;
28290 wxMouseCaptureChangedEvent *result = 0 ;
28291 int val1 ;
28292 int ecode1 = 0 ;
28293 void *argp2 = 0 ;
28294 int res2 = 0 ;
28295 PyObject * obj0 = 0 ;
28296 PyObject * obj1 = 0 ;
28297 char * kwnames[] = {
28298 (char *) "winid",(char *) "gainedCapture", NULL
28299 };
28300
28301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28302 if (obj0) {
28303 ecode1 = SWIG_AsVal_int(obj0, &val1);
28304 if (!SWIG_IsOK(ecode1)) {
28305 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MouseCaptureChangedEvent" "', expected argument " "1"" of type '" "int""'");
28306 }
28307 arg1 = static_cast< int >(val1);
28308 }
28309 if (obj1) {
28310 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28311 if (!SWIG_IsOK(res2)) {
28312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MouseCaptureChangedEvent" "', expected argument " "2"" of type '" "wxWindow *""'");
d55e5bfc 28313 }
1bd55598
RD
28314 arg2 = reinterpret_cast< wxWindow * >(argp2);
28315 }
28316 {
28317 PyThreadState* __tstate = wxPyBeginAllowThreads();
28318 result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2);
28319 wxPyEndAllowThreads(__tstate);
28320 if (PyErr_Occurred()) SWIG_fail;
28321 }
28322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, SWIG_POINTER_NEW | 0 );
28323 return resultobj;
28324fail:
28325 return NULL;
d55e5bfc
RD
28326}
28327
28328
1bd55598
RD
28329SWIGINTERN PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28330 PyObject *resultobj = 0;
28331 wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ;
28332 wxWindow *result = 0 ;
28333 void *argp1 = 0 ;
28334 int res1 = 0 ;
28335 PyObject *swig_obj[1] ;
28336
28337 if (!args) SWIG_fail;
28338 swig_obj[0] = args;
28339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseCaptureChangedEvent, 0 | 0 );
28340 if (!SWIG_IsOK(res1)) {
28341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseCaptureChangedEvent_GetCapturedWindow" "', expected argument " "1"" of type '" "wxMouseCaptureChangedEvent const *""'");
28342 }
28343 arg1 = reinterpret_cast< wxMouseCaptureChangedEvent * >(argp1);
28344 {
28345 PyThreadState* __tstate = wxPyBeginAllowThreads();
28346 result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow();
28347 wxPyEndAllowThreads(__tstate);
28348 if (PyErr_Occurred()) SWIG_fail;
28349 }
28350 {
28351 resultobj = wxPyMake_wxObject(result, (bool)0);
28352 }
28353 return resultobj;
28354fail:
28355 return NULL;
d55e5bfc
RD
28356}
28357
28358
1bd55598
RD
28359SWIGINTERN PyObject *MouseCaptureChangedEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28360 PyObject *obj;
28361 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28362 SWIG_TypeNewClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, SWIG_NewClientData(obj));
28363 return SWIG_Py_Void();
d55e5bfc
RD
28364}
28365
1bd55598
RD
28366SWIGINTERN PyObject *MouseCaptureChangedEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28367 return SWIG_Python_InitShadowInstance(args);
28368}
d55e5bfc 28369
34e0a3bb
RD
28370SWIGINTERN PyObject *_wrap_new_MouseCaptureLostEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28371 PyObject *resultobj = 0;
28372 int arg1 = (int) 0 ;
28373 wxMouseCaptureLostEvent *result = 0 ;
28374 int val1 ;
28375 int ecode1 = 0 ;
28376 PyObject * obj0 = 0 ;
28377 char * kwnames[] = {
28378 (char *) "winid", NULL
28379 };
28380
28381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseCaptureLostEvent",kwnames,&obj0)) SWIG_fail;
28382 if (obj0) {
28383 ecode1 = SWIG_AsVal_int(obj0, &val1);
28384 if (!SWIG_IsOK(ecode1)) {
28385 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MouseCaptureLostEvent" "', expected argument " "1"" of type '" "int""'");
28386 }
28387 arg1 = static_cast< int >(val1);
28388 }
28389 {
28390 PyThreadState* __tstate = wxPyBeginAllowThreads();
28391 result = (wxMouseCaptureLostEvent *)new wxMouseCaptureLostEvent(arg1);
28392 wxPyEndAllowThreads(__tstate);
28393 if (PyErr_Occurred()) SWIG_fail;
28394 }
28395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseCaptureLostEvent, SWIG_POINTER_NEW | 0 );
28396 return resultobj;
28397fail:
28398 return NULL;
28399}
28400
28401
28402SWIGINTERN PyObject *MouseCaptureLostEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28403 PyObject *obj;
28404 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28405 SWIG_TypeNewClientData(SWIGTYPE_p_wxMouseCaptureLostEvent, SWIG_NewClientData(obj));
28406 return SWIG_Py_Void();
28407}
28408
28409SWIGINTERN PyObject *MouseCaptureLostEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28410 return SWIG_Python_InitShadowInstance(args);
28411}
28412
1bd55598
RD
28413SWIGINTERN PyObject *_wrap_new_DisplayChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28414 PyObject *resultobj = 0;
28415 wxDisplayChangedEvent *result = 0 ;
28416
28417 if (!SWIG_Python_UnpackTuple(args,"new_DisplayChangedEvent",0,0,0)) SWIG_fail;
28418 {
28419 PyThreadState* __tstate = wxPyBeginAllowThreads();
28420 result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent();
28421 wxPyEndAllowThreads(__tstate);
28422 if (PyErr_Occurred()) SWIG_fail;
28423 }
28424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDisplayChangedEvent, SWIG_POINTER_NEW | 0 );
28425 return resultobj;
28426fail:
28427 return NULL;
d55e5bfc
RD
28428}
28429
28430
1bd55598
RD
28431SWIGINTERN PyObject *DisplayChangedEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28432 PyObject *obj;
28433 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28434 SWIG_TypeNewClientData(SWIGTYPE_p_wxDisplayChangedEvent, SWIG_NewClientData(obj));
28435 return SWIG_Py_Void();
d55e5bfc
RD
28436}
28437
1bd55598
RD
28438SWIGINTERN PyObject *DisplayChangedEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28439 return SWIG_Python_InitShadowInstance(args);
28440}
d55e5bfc 28441
1bd55598
RD
28442SWIGINTERN PyObject *_wrap_new_PaletteChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28443 PyObject *resultobj = 0;
28444 int arg1 = (int) 0 ;
28445 wxPaletteChangedEvent *result = 0 ;
28446 int val1 ;
28447 int ecode1 = 0 ;
28448 PyObject * obj0 = 0 ;
28449 char * kwnames[] = {
28450 (char *) "id", NULL
28451 };
28452
28453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) SWIG_fail;
28454 if (obj0) {
28455 ecode1 = SWIG_AsVal_int(obj0, &val1);
28456 if (!SWIG_IsOK(ecode1)) {
28457 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PaletteChangedEvent" "', expected argument " "1"" of type '" "int""'");
28458 }
28459 arg1 = static_cast< int >(val1);
28460 }
28461 {
28462 PyThreadState* __tstate = wxPyBeginAllowThreads();
28463 result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1);
28464 wxPyEndAllowThreads(__tstate);
28465 if (PyErr_Occurred()) SWIG_fail;
28466 }
28467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaletteChangedEvent, SWIG_POINTER_NEW | 0 );
28468 return resultobj;
28469fail:
28470 return NULL;
28471}
28472
28473
28474SWIGINTERN PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28475 PyObject *resultobj = 0;
28476 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
28477 wxWindow *arg2 = (wxWindow *) 0 ;
28478 void *argp1 = 0 ;
28479 int res1 = 0 ;
28480 void *argp2 = 0 ;
28481 int res2 = 0 ;
28482 PyObject * obj0 = 0 ;
28483 PyObject * obj1 = 0 ;
28484 char * kwnames[] = {
28485 (char *) "self",(char *) "win", NULL
28486 };
28487
28488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) SWIG_fail;
28489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPaletteChangedEvent, 0 | 0 );
28490 if (!SWIG_IsOK(res1)) {
28491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PaletteChangedEvent_SetChangedWindow" "', expected argument " "1"" of type '" "wxPaletteChangedEvent *""'");
28492 }
28493 arg1 = reinterpret_cast< wxPaletteChangedEvent * >(argp1);
28494 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28495 if (!SWIG_IsOK(res2)) {
28496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PaletteChangedEvent_SetChangedWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
28497 }
28498 arg2 = reinterpret_cast< wxWindow * >(argp2);
28499 {
28500 PyThreadState* __tstate = wxPyBeginAllowThreads();
28501 (arg1)->SetChangedWindow(arg2);
28502 wxPyEndAllowThreads(__tstate);
28503 if (PyErr_Occurred()) SWIG_fail;
28504 }
28505 resultobj = SWIG_Py_Void();
28506 return resultobj;
28507fail:
28508 return NULL;
d55e5bfc
RD
28509}
28510
28511
1bd55598
RD
28512SWIGINTERN PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28513 PyObject *resultobj = 0;
28514 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
28515 wxWindow *result = 0 ;
28516 void *argp1 = 0 ;
28517 int res1 = 0 ;
28518 PyObject *swig_obj[1] ;
28519
28520 if (!args) SWIG_fail;
28521 swig_obj[0] = args;
28522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPaletteChangedEvent, 0 | 0 );
28523 if (!SWIG_IsOK(res1)) {
28524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PaletteChangedEvent_GetChangedWindow" "', expected argument " "1"" of type '" "wxPaletteChangedEvent *""'");
28525 }
28526 arg1 = reinterpret_cast< wxPaletteChangedEvent * >(argp1);
28527 {
28528 PyThreadState* __tstate = wxPyBeginAllowThreads();
28529 result = (wxWindow *)(arg1)->GetChangedWindow();
28530 wxPyEndAllowThreads(__tstate);
28531 if (PyErr_Occurred()) SWIG_fail;
28532 }
28533 {
28534 resultobj = wxPyMake_wxObject(result, (bool)0);
28535 }
28536 return resultobj;
28537fail:
28538 return NULL;
d55e5bfc
RD
28539}
28540
28541
1bd55598
RD
28542SWIGINTERN PyObject *PaletteChangedEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28543 PyObject *obj;
28544 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28545 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaletteChangedEvent, SWIG_NewClientData(obj));
28546 return SWIG_Py_Void();
d55e5bfc
RD
28547}
28548
1bd55598
RD
28549SWIGINTERN PyObject *PaletteChangedEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28550 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
28551}
28552
1bd55598
RD
28553SWIGINTERN PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28554 PyObject *resultobj = 0;
28555 int arg1 = (int) 0 ;
28556 wxQueryNewPaletteEvent *result = 0 ;
28557 int val1 ;
28558 int ecode1 = 0 ;
28559 PyObject * obj0 = 0 ;
28560 char * kwnames[] = {
28561 (char *) "winid", NULL
28562 };
28563
28564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) SWIG_fail;
28565 if (obj0) {
28566 ecode1 = SWIG_AsVal_int(obj0, &val1);
28567 if (!SWIG_IsOK(ecode1)) {
28568 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QueryNewPaletteEvent" "', expected argument " "1"" of type '" "int""'");
28569 }
28570 arg1 = static_cast< int >(val1);
28571 }
28572 {
28573 PyThreadState* __tstate = wxPyBeginAllowThreads();
28574 result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1);
28575 wxPyEndAllowThreads(__tstate);
28576 if (PyErr_Occurred()) SWIG_fail;
28577 }
28578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxQueryNewPaletteEvent, SWIG_POINTER_NEW | 0 );
28579 return resultobj;
28580fail:
28581 return NULL;
28582}
28583
28584
28585SWIGINTERN PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28586 PyObject *resultobj = 0;
28587 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
28588 bool arg2 ;
28589 void *argp1 = 0 ;
28590 int res1 = 0 ;
28591 bool val2 ;
28592 int ecode2 = 0 ;
28593 PyObject * obj0 = 0 ;
28594 PyObject * obj1 = 0 ;
28595 char * kwnames[] = {
28596 (char *) "self",(char *) "realized", NULL
28597 };
28598
28599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) SWIG_fail;
28600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryNewPaletteEvent, 0 | 0 );
28601 if (!SWIG_IsOK(res1)) {
28602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryNewPaletteEvent_SetPaletteRealized" "', expected argument " "1"" of type '" "wxQueryNewPaletteEvent *""'");
28603 }
28604 arg1 = reinterpret_cast< wxQueryNewPaletteEvent * >(argp1);
28605 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28606 if (!SWIG_IsOK(ecode2)) {
28607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryNewPaletteEvent_SetPaletteRealized" "', expected argument " "2"" of type '" "bool""'");
28608 }
28609 arg2 = static_cast< bool >(val2);
28610 {
28611 PyThreadState* __tstate = wxPyBeginAllowThreads();
28612 (arg1)->SetPaletteRealized(arg2);
28613 wxPyEndAllowThreads(__tstate);
28614 if (PyErr_Occurred()) SWIG_fail;
28615 }
28616 resultobj = SWIG_Py_Void();
28617 return resultobj;
28618fail:
28619 return NULL;
d55e5bfc
RD
28620}
28621
28622
1bd55598
RD
28623SWIGINTERN PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28624 PyObject *resultobj = 0;
28625 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
28626 bool result;
28627 void *argp1 = 0 ;
28628 int res1 = 0 ;
28629 PyObject *swig_obj[1] ;
28630
28631 if (!args) SWIG_fail;
28632 swig_obj[0] = args;
28633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryNewPaletteEvent, 0 | 0 );
28634 if (!SWIG_IsOK(res1)) {
28635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryNewPaletteEvent_GetPaletteRealized" "', expected argument " "1"" of type '" "wxQueryNewPaletteEvent const *""'");
28636 }
28637 arg1 = reinterpret_cast< wxQueryNewPaletteEvent * >(argp1);
28638 {
28639 PyThreadState* __tstate = wxPyBeginAllowThreads();
28640 result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized();
28641 wxPyEndAllowThreads(__tstate);
28642 if (PyErr_Occurred()) SWIG_fail;
28643 }
28644 {
28645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28646 }
28647 return resultobj;
28648fail:
28649 return NULL;
d55e5bfc
RD
28650}
28651
28652
1bd55598
RD
28653SWIGINTERN PyObject *QueryNewPaletteEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28654 PyObject *obj;
28655 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28656 SWIG_TypeNewClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, SWIG_NewClientData(obj));
28657 return SWIG_Py_Void();
412d302d
RD
28658}
28659
1bd55598
RD
28660SWIGINTERN PyObject *QueryNewPaletteEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28661 return SWIG_Python_InitShadowInstance(args);
28662}
412d302d 28663
1bd55598
RD
28664SWIGINTERN PyObject *_wrap_new_NavigationKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28665 PyObject *resultobj = 0;
28666 wxNavigationKeyEvent *result = 0 ;
28667
28668 if (!SWIG_Python_UnpackTuple(args,"new_NavigationKeyEvent",0,0,0)) SWIG_fail;
28669 {
28670 PyThreadState* __tstate = wxPyBeginAllowThreads();
28671 result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent();
28672 wxPyEndAllowThreads(__tstate);
28673 if (PyErr_Occurred()) SWIG_fail;
28674 }
28675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_NEW | 0 );
28676 return resultobj;
28677fail:
28678 return NULL;
d55e5bfc
RD
28679}
28680
28681
1bd55598
RD
28682SWIGINTERN PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28683 PyObject *resultobj = 0;
28684 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28685 bool result;
28686 void *argp1 = 0 ;
28687 int res1 = 0 ;
28688 PyObject *swig_obj[1] ;
28689
28690 if (!args) SWIG_fail;
28691 swig_obj[0] = args;
28692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28693 if (!SWIG_IsOK(res1)) {
28694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_GetDirection" "', expected argument " "1"" of type '" "wxNavigationKeyEvent const *""'");
28695 }
28696 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28697 {
28698 PyThreadState* __tstate = wxPyBeginAllowThreads();
28699 result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection();
28700 wxPyEndAllowThreads(__tstate);
28701 if (PyErr_Occurred()) SWIG_fail;
28702 }
28703 {
28704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28705 }
28706 return resultobj;
28707fail:
28708 return NULL;
28709}
28710
28711
28712SWIGINTERN PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28713 PyObject *resultobj = 0;
28714 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28715 bool arg2 ;
28716 void *argp1 = 0 ;
28717 int res1 = 0 ;
28718 bool val2 ;
28719 int ecode2 = 0 ;
28720 PyObject * obj0 = 0 ;
28721 PyObject * obj1 = 0 ;
28722 char * kwnames[] = {
28723 (char *) "self",(char *) "forward", NULL
28724 };
28725
28726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) SWIG_fail;
28727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28728 if (!SWIG_IsOK(res1)) {
28729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_SetDirection" "', expected argument " "1"" of type '" "wxNavigationKeyEvent *""'");
28730 }
28731 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28732 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28733 if (!SWIG_IsOK(ecode2)) {
28734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NavigationKeyEvent_SetDirection" "', expected argument " "2"" of type '" "bool""'");
28735 }
28736 arg2 = static_cast< bool >(val2);
28737 {
28738 PyThreadState* __tstate = wxPyBeginAllowThreads();
28739 (arg1)->SetDirection(arg2);
28740 wxPyEndAllowThreads(__tstate);
28741 if (PyErr_Occurred()) SWIG_fail;
28742 }
28743 resultobj = SWIG_Py_Void();
28744 return resultobj;
28745fail:
28746 return NULL;
d55e5bfc
RD
28747}
28748
28749
1bd55598
RD
28750SWIGINTERN PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28751 PyObject *resultobj = 0;
28752 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28753 bool result;
28754 void *argp1 = 0 ;
28755 int res1 = 0 ;
28756 PyObject *swig_obj[1] ;
28757
28758 if (!args) SWIG_fail;
28759 swig_obj[0] = args;
28760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28761 if (!SWIG_IsOK(res1)) {
28762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_IsWindowChange" "', expected argument " "1"" of type '" "wxNavigationKeyEvent const *""'");
28763 }
28764 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28765 {
28766 PyThreadState* __tstate = wxPyBeginAllowThreads();
28767 result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange();
28768 wxPyEndAllowThreads(__tstate);
28769 if (PyErr_Occurred()) SWIG_fail;
28770 }
28771 {
28772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28773 }
28774 return resultobj;
28775fail:
28776 return NULL;
28777}
28778
28779
28780SWIGINTERN PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28781 PyObject *resultobj = 0;
28782 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28783 bool arg2 ;
28784 void *argp1 = 0 ;
28785 int res1 = 0 ;
28786 bool val2 ;
28787 int ecode2 = 0 ;
28788 PyObject * obj0 = 0 ;
28789 PyObject * obj1 = 0 ;
28790 char * kwnames[] = {
28791 (char *) "self",(char *) "ischange", NULL
28792 };
28793
28794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) SWIG_fail;
28795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28796 if (!SWIG_IsOK(res1)) {
28797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_SetWindowChange" "', expected argument " "1"" of type '" "wxNavigationKeyEvent *""'");
28798 }
28799 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28800 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28801 if (!SWIG_IsOK(ecode2)) {
28802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NavigationKeyEvent_SetWindowChange" "', expected argument " "2"" of type '" "bool""'");
28803 }
28804 arg2 = static_cast< bool >(val2);
28805 {
28806 PyThreadState* __tstate = wxPyBeginAllowThreads();
28807 (arg1)->SetWindowChange(arg2);
28808 wxPyEndAllowThreads(__tstate);
28809 if (PyErr_Occurred()) SWIG_fail;
28810 }
28811 resultobj = SWIG_Py_Void();
28812 return resultobj;
28813fail:
28814 return NULL;
d55e5bfc
RD
28815}
28816
28817
1bd55598
RD
28818SWIGINTERN PyObject *_wrap_NavigationKeyEvent_IsFromTab(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28819 PyObject *resultobj = 0;
28820 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28821 bool result;
28822 void *argp1 = 0 ;
28823 int res1 = 0 ;
28824 PyObject *swig_obj[1] ;
28825
28826 if (!args) SWIG_fail;
28827 swig_obj[0] = args;
28828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28829 if (!SWIG_IsOK(res1)) {
28830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_IsFromTab" "', expected argument " "1"" of type '" "wxNavigationKeyEvent const *""'");
28831 }
28832 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28833 {
28834 PyThreadState* __tstate = wxPyBeginAllowThreads();
28835 result = (bool)((wxNavigationKeyEvent const *)arg1)->IsFromTab();
28836 wxPyEndAllowThreads(__tstate);
28837 if (PyErr_Occurred()) SWIG_fail;
28838 }
28839 {
28840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28841 }
28842 return resultobj;
28843fail:
28844 return NULL;
28845}
28846
28847
28848SWIGINTERN PyObject *_wrap_NavigationKeyEvent_SetFromTab(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28849 PyObject *resultobj = 0;
28850 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28851 bool arg2 ;
28852 void *argp1 = 0 ;
28853 int res1 = 0 ;
28854 bool val2 ;
28855 int ecode2 = 0 ;
28856 PyObject * obj0 = 0 ;
28857 PyObject * obj1 = 0 ;
28858 char * kwnames[] = {
28859 (char *) "self",(char *) "bIs", NULL
28860 };
28861
28862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFromTab",kwnames,&obj0,&obj1)) SWIG_fail;
28863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28864 if (!SWIG_IsOK(res1)) {
28865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_SetFromTab" "', expected argument " "1"" of type '" "wxNavigationKeyEvent *""'");
28866 }
28867 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28868 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28869 if (!SWIG_IsOK(ecode2)) {
28870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NavigationKeyEvent_SetFromTab" "', expected argument " "2"" of type '" "bool""'");
28871 }
28872 arg2 = static_cast< bool >(val2);
28873 {
28874 PyThreadState* __tstate = wxPyBeginAllowThreads();
28875 (arg1)->SetFromTab(arg2);
28876 wxPyEndAllowThreads(__tstate);
28877 if (PyErr_Occurred()) SWIG_fail;
28878 }
28879 resultobj = SWIG_Py_Void();
28880 return resultobj;
28881fail:
28882 return NULL;
28883}
28884
28885
28886SWIGINTERN PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28887 PyObject *resultobj = 0;
28888 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28889 long arg2 ;
28890 void *argp1 = 0 ;
28891 int res1 = 0 ;
28892 long val2 ;
28893 int ecode2 = 0 ;
28894 PyObject * obj0 = 0 ;
28895 PyObject * obj1 = 0 ;
28896 char * kwnames[] = {
28897 (char *) "self",(char *) "flags", NULL
28898 };
28899
28900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
28901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28902 if (!SWIG_IsOK(res1)) {
28903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_SetFlags" "', expected argument " "1"" of type '" "wxNavigationKeyEvent *""'");
28904 }
28905 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28906 ecode2 = SWIG_AsVal_long(obj1, &val2);
28907 if (!SWIG_IsOK(ecode2)) {
28908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NavigationKeyEvent_SetFlags" "', expected argument " "2"" of type '" "long""'");
28909 }
28910 arg2 = static_cast< long >(val2);
28911 {
28912 PyThreadState* __tstate = wxPyBeginAllowThreads();
28913 (arg1)->SetFlags(arg2);
28914 wxPyEndAllowThreads(__tstate);
28915 if (PyErr_Occurred()) SWIG_fail;
28916 }
28917 resultobj = SWIG_Py_Void();
28918 return resultobj;
28919fail:
28920 return NULL;
d55e5bfc
RD
28921}
28922
28923
1bd55598
RD
28924SWIGINTERN PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28925 PyObject *resultobj = 0;
28926 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28927 wxWindow *result = 0 ;
28928 void *argp1 = 0 ;
28929 int res1 = 0 ;
28930 PyObject *swig_obj[1] ;
28931
28932 if (!args) SWIG_fail;
28933 swig_obj[0] = args;
28934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28935 if (!SWIG_IsOK(res1)) {
28936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_GetCurrentFocus" "', expected argument " "1"" of type '" "wxNavigationKeyEvent const *""'");
28937 }
28938 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28939 {
28940 PyThreadState* __tstate = wxPyBeginAllowThreads();
28941 result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus();
28942 wxPyEndAllowThreads(__tstate);
28943 if (PyErr_Occurred()) SWIG_fail;
28944 }
28945 {
28946 resultobj = wxPyMake_wxObject(result, (bool)0);
28947 }
28948 return resultobj;
28949fail:
28950 return NULL;
28951}
28952
28953
28954SWIGINTERN PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28955 PyObject *resultobj = 0;
28956 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
28957 wxWindow *arg2 = (wxWindow *) 0 ;
28958 void *argp1 = 0 ;
28959 int res1 = 0 ;
28960 void *argp2 = 0 ;
28961 int res2 = 0 ;
28962 PyObject * obj0 = 0 ;
28963 PyObject * obj1 = 0 ;
28964 char * kwnames[] = {
28965 (char *) "self",(char *) "win", NULL
28966 };
28967
28968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) SWIG_fail;
28969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
28970 if (!SWIG_IsOK(res1)) {
28971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_SetCurrentFocus" "', expected argument " "1"" of type '" "wxNavigationKeyEvent *""'");
28972 }
28973 arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
28974 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28975 if (!SWIG_IsOK(res2)) {
28976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NavigationKeyEvent_SetCurrentFocus" "', expected argument " "2"" of type '" "wxWindow *""'");
28977 }
28978 arg2 = reinterpret_cast< wxWindow * >(argp2);
28979 {
28980 PyThreadState* __tstate = wxPyBeginAllowThreads();
28981 (arg1)->SetCurrentFocus(arg2);
28982 wxPyEndAllowThreads(__tstate);
28983 if (PyErr_Occurred()) SWIG_fail;
28984 }
28985 resultobj = SWIG_Py_Void();
28986 return resultobj;
28987fail:
28988 return NULL;
d55e5bfc
RD
28989}
28990
28991
1bd55598
RD
28992SWIGINTERN PyObject *NavigationKeyEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28993 PyObject *obj;
28994 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28995 SWIG_TypeNewClientData(SWIGTYPE_p_wxNavigationKeyEvent, SWIG_NewClientData(obj));
28996 return SWIG_Py_Void();
d55e5bfc
RD
28997}
28998
1bd55598
RD
28999SWIGINTERN PyObject *NavigationKeyEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29000 return SWIG_Python_InitShadowInstance(args);
29001}
d55e5bfc 29002
1bd55598
RD
29003SWIGINTERN PyObject *_wrap_new_WindowCreateEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29004 PyObject *resultobj = 0;
29005 wxWindow *arg1 = (wxWindow *) NULL ;
29006 wxWindowCreateEvent *result = 0 ;
29007 void *argp1 = 0 ;
29008 int res1 = 0 ;
29009 PyObject * obj0 = 0 ;
29010 char * kwnames[] = {
29011 (char *) "win", NULL
29012 };
29013
29014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) SWIG_fail;
29015 if (obj0) {
29016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
29017 if (!SWIG_IsOK(res1)) {
29018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowCreateEvent" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 29019 }
1bd55598
RD
29020 arg1 = reinterpret_cast< wxWindow * >(argp1);
29021 }
29022 {
29023 PyThreadState* __tstate = wxPyBeginAllowThreads();
29024 result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1);
29025 wxPyEndAllowThreads(__tstate);
29026 if (PyErr_Occurred()) SWIG_fail;
29027 }
29028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowCreateEvent, SWIG_POINTER_NEW | 0 );
29029 return resultobj;
29030fail:
29031 return NULL;
d55e5bfc
RD
29032}
29033
29034
1bd55598
RD
29035SWIGINTERN PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29036 PyObject *resultobj = 0;
29037 wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ;
29038 wxWindow *result = 0 ;
29039 void *argp1 = 0 ;
29040 int res1 = 0 ;
29041 PyObject *swig_obj[1] ;
29042
29043 if (!args) SWIG_fail;
29044 swig_obj[0] = args;
29045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindowCreateEvent, 0 | 0 );
29046 if (!SWIG_IsOK(res1)) {
29047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WindowCreateEvent_GetWindow" "', expected argument " "1"" of type '" "wxWindowCreateEvent const *""'");
29048 }
29049 arg1 = reinterpret_cast< wxWindowCreateEvent * >(argp1);
29050 {
29051 PyThreadState* __tstate = wxPyBeginAllowThreads();
29052 result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow();
29053 wxPyEndAllowThreads(__tstate);
29054 if (PyErr_Occurred()) SWIG_fail;
29055 }
29056 {
29057 resultobj = wxPyMake_wxObject(result, (bool)0);
29058 }
29059 return resultobj;
29060fail:
29061 return NULL;
d55e5bfc
RD
29062}
29063
29064
1bd55598
RD
29065SWIGINTERN PyObject *WindowCreateEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29066 PyObject *obj;
29067 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29068 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowCreateEvent, SWIG_NewClientData(obj));
29069 return SWIG_Py_Void();
d55e5bfc
RD
29070}
29071
1bd55598
RD
29072SWIGINTERN PyObject *WindowCreateEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29073 return SWIG_Python_InitShadowInstance(args);
29074}
d55e5bfc 29075
1bd55598
RD
29076SWIGINTERN PyObject *_wrap_new_WindowDestroyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29077 PyObject *resultobj = 0;
29078 wxWindow *arg1 = (wxWindow *) NULL ;
29079 wxWindowDestroyEvent *result = 0 ;
29080 void *argp1 = 0 ;
29081 int res1 = 0 ;
29082 PyObject * obj0 = 0 ;
29083 char * kwnames[] = {
29084 (char *) "win", NULL
29085 };
29086
29087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) SWIG_fail;
29088 if (obj0) {
29089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
29090 if (!SWIG_IsOK(res1)) {
29091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDestroyEvent" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 29092 }
1bd55598
RD
29093 arg1 = reinterpret_cast< wxWindow * >(argp1);
29094 }
29095 {
29096 PyThreadState* __tstate = wxPyBeginAllowThreads();
29097 result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1);
29098 wxPyEndAllowThreads(__tstate);
29099 if (PyErr_Occurred()) SWIG_fail;
29100 }
29101 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDestroyEvent, SWIG_POINTER_NEW | 0 );
29102 return resultobj;
29103fail:
29104 return NULL;
d55e5bfc
RD
29105}
29106
29107
1bd55598
RD
29108SWIGINTERN PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29109 PyObject *resultobj = 0;
29110 wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ;
29111 wxWindow *result = 0 ;
29112 void *argp1 = 0 ;
29113 int res1 = 0 ;
29114 PyObject *swig_obj[1] ;
29115
29116 if (!args) SWIG_fail;
29117 swig_obj[0] = args;
29118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindowDestroyEvent, 0 | 0 );
29119 if (!SWIG_IsOK(res1)) {
29120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WindowDestroyEvent_GetWindow" "', expected argument " "1"" of type '" "wxWindowDestroyEvent const *""'");
29121 }
29122 arg1 = reinterpret_cast< wxWindowDestroyEvent * >(argp1);
29123 {
29124 PyThreadState* __tstate = wxPyBeginAllowThreads();
29125 result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow();
29126 wxPyEndAllowThreads(__tstate);
29127 if (PyErr_Occurred()) SWIG_fail;
29128 }
29129 {
29130 resultobj = wxPyMake_wxObject(result, (bool)0);
29131 }
29132 return resultobj;
29133fail:
29134 return NULL;
29135}
29136
29137
29138SWIGINTERN PyObject *WindowDestroyEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29139 PyObject *obj;
29140 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29141 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDestroyEvent, SWIG_NewClientData(obj));
29142 return SWIG_Py_Void();
29143}
29144
29145SWIGINTERN PyObject *WindowDestroyEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29146 return SWIG_Python_InitShadowInstance(args);
29147}
29148
29149SWIGINTERN PyObject *_wrap_new_ContextMenuEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29150 PyObject *resultobj = 0;
29151 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
29152 int arg2 = (int) 0 ;
29153 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29154 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29155 wxContextMenuEvent *result = 0 ;
29156 int val1 ;
29157 int ecode1 = 0 ;
29158 int val2 ;
29159 int ecode2 = 0 ;
29160 wxPoint temp3 ;
29161 PyObject * obj0 = 0 ;
29162 PyObject * obj1 = 0 ;
29163 PyObject * obj2 = 0 ;
29164 char * kwnames[] = {
29165 (char *) "type",(char *) "winid",(char *) "pt", NULL
29166 };
29167
29168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29169 if (obj0) {
29170 ecode1 = SWIG_AsVal_int(obj0, &val1);
29171 if (!SWIG_IsOK(ecode1)) {
29172 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ContextMenuEvent" "', expected argument " "1"" of type '" "wxEventType""'");
29173 }
29174 arg1 = static_cast< wxEventType >(val1);
29175 }
29176 if (obj1) {
29177 ecode2 = SWIG_AsVal_int(obj1, &val2);
29178 if (!SWIG_IsOK(ecode2)) {
29179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextMenuEvent" "', expected argument " "2"" of type '" "int""'");
29180 }
29181 arg2 = static_cast< int >(val2);
29182 }
29183 if (obj2) {
d55e5bfc 29184 {
1bd55598
RD
29185 arg3 = &temp3;
29186 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 29187 }
1bd55598
RD
29188 }
29189 {
29190 PyThreadState* __tstate = wxPyBeginAllowThreads();
29191 result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3);
29192 wxPyEndAllowThreads(__tstate);
29193 if (PyErr_Occurred()) SWIG_fail;
29194 }
29195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextMenuEvent, SWIG_POINTER_NEW | 0 );
29196 return resultobj;
29197fail:
29198 return NULL;
d55e5bfc
RD
29199}
29200
29201
1bd55598
RD
29202SWIGINTERN PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29203 PyObject *resultobj = 0;
29204 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
29205 wxPoint *result = 0 ;
29206 void *argp1 = 0 ;
29207 int res1 = 0 ;
29208 PyObject *swig_obj[1] ;
29209
29210 if (!args) SWIG_fail;
29211 swig_obj[0] = args;
29212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextMenuEvent, 0 | 0 );
29213 if (!SWIG_IsOK(res1)) {
29214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextMenuEvent_GetPosition" "', expected argument " "1"" of type '" "wxContextMenuEvent const *""'");
29215 }
29216 arg1 = reinterpret_cast< wxContextMenuEvent * >(argp1);
29217 {
29218 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 29219 {
1bd55598
RD
29220 wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition();
29221 result = (wxPoint *) &_result_ref;
d55e5bfc 29222 }
1bd55598
RD
29223 wxPyEndAllowThreads(__tstate);
29224 if (PyErr_Occurred()) SWIG_fail;
29225 }
29226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
29227 return resultobj;
29228fail:
29229 return NULL;
29230}
29231
29232
29233SWIGINTERN PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29234 PyObject *resultobj = 0;
29235 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
29236 wxPoint *arg2 = 0 ;
29237 void *argp1 = 0 ;
29238 int res1 = 0 ;
29239 wxPoint temp2 ;
29240 PyObject * obj0 = 0 ;
29241 PyObject * obj1 = 0 ;
29242 char * kwnames[] = {
29243 (char *) "self",(char *) "pos", NULL
29244 };
29245
29246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextMenuEvent, 0 | 0 );
29248 if (!SWIG_IsOK(res1)) {
29249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextMenuEvent_SetPosition" "', expected argument " "1"" of type '" "wxContextMenuEvent *""'");
29250 }
29251 arg1 = reinterpret_cast< wxContextMenuEvent * >(argp1);
29252 {
29253 arg2 = &temp2;
29254 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29255 }
29256 {
29257 PyThreadState* __tstate = wxPyBeginAllowThreads();
29258 (arg1)->SetPosition((wxPoint const &)*arg2);
29259 wxPyEndAllowThreads(__tstate);
29260 if (PyErr_Occurred()) SWIG_fail;
29261 }
29262 resultobj = SWIG_Py_Void();
29263 return resultobj;
29264fail:
29265 return NULL;
d55e5bfc
RD
29266}
29267
29268
1bd55598
RD
29269SWIGINTERN PyObject *ContextMenuEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29270 PyObject *obj;
29271 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29272 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextMenuEvent, SWIG_NewClientData(obj));
29273 return SWIG_Py_Void();
d55e5bfc
RD
29274}
29275
1bd55598
RD
29276SWIGINTERN PyObject *ContextMenuEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29277 return SWIG_Python_InitShadowInstance(args);
29278}
d55e5bfc 29279
1bd55598
RD
29280SWIGINTERN PyObject *_wrap_new_IdleEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29281 PyObject *resultobj = 0;
29282 wxIdleEvent *result = 0 ;
29283
29284 if (!SWIG_Python_UnpackTuple(args,"new_IdleEvent",0,0,0)) SWIG_fail;
29285 {
29286 PyThreadState* __tstate = wxPyBeginAllowThreads();
29287 result = (wxIdleEvent *)new wxIdleEvent();
29288 wxPyEndAllowThreads(__tstate);
29289 if (PyErr_Occurred()) SWIG_fail;
29290 }
29291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIdleEvent, SWIG_POINTER_NEW | 0 );
29292 return resultobj;
29293fail:
29294 return NULL;
29295}
29296
29297
29298SWIGINTERN PyObject *_wrap_IdleEvent_RequestMore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29299 PyObject *resultobj = 0;
29300 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
29301 bool arg2 = (bool) true ;
29302 void *argp1 = 0 ;
29303 int res1 = 0 ;
29304 bool val2 ;
29305 int ecode2 = 0 ;
29306 PyObject * obj0 = 0 ;
29307 PyObject * obj1 = 0 ;
29308 char * kwnames[] = {
29309 (char *) "self",(char *) "needMore", NULL
29310 };
29311
29312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) SWIG_fail;
29313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIdleEvent, 0 | 0 );
29314 if (!SWIG_IsOK(res1)) {
29315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IdleEvent_RequestMore" "', expected argument " "1"" of type '" "wxIdleEvent *""'");
29316 }
29317 arg1 = reinterpret_cast< wxIdleEvent * >(argp1);
29318 if (obj1) {
29319 ecode2 = SWIG_AsVal_bool(obj1, &val2);
29320 if (!SWIG_IsOK(ecode2)) {
29321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IdleEvent_RequestMore" "', expected argument " "2"" of type '" "bool""'");
29322 }
29323 arg2 = static_cast< bool >(val2);
29324 }
29325 {
29326 PyThreadState* __tstate = wxPyBeginAllowThreads();
29327 (arg1)->RequestMore(arg2);
29328 wxPyEndAllowThreads(__tstate);
29329 if (PyErr_Occurred()) SWIG_fail;
29330 }
29331 resultobj = SWIG_Py_Void();
29332 return resultobj;
29333fail:
29334 return NULL;
d55e5bfc
RD
29335}
29336
29337
1bd55598
RD
29338SWIGINTERN PyObject *_wrap_IdleEvent_MoreRequested(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29339 PyObject *resultobj = 0;
29340 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
29341 bool result;
29342 void *argp1 = 0 ;
29343 int res1 = 0 ;
29344 PyObject *swig_obj[1] ;
29345
29346 if (!args) SWIG_fail;
29347 swig_obj[0] = args;
29348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIdleEvent, 0 | 0 );
29349 if (!SWIG_IsOK(res1)) {
29350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IdleEvent_MoreRequested" "', expected argument " "1"" of type '" "wxIdleEvent const *""'");
29351 }
29352 arg1 = reinterpret_cast< wxIdleEvent * >(argp1);
29353 {
29354 PyThreadState* __tstate = wxPyBeginAllowThreads();
29355 result = (bool)((wxIdleEvent const *)arg1)->MoreRequested();
29356 wxPyEndAllowThreads(__tstate);
29357 if (PyErr_Occurred()) SWIG_fail;
29358 }
29359 {
29360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29361 }
29362 return resultobj;
29363fail:
29364 return NULL;
d55e5bfc
RD
29365}
29366
29367
1bd55598
RD
29368SWIGINTERN PyObject *_wrap_IdleEvent_SetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29369 PyObject *resultobj = 0;
29370 wxIdleMode arg1 ;
29371 int val1 ;
29372 int ecode1 = 0 ;
29373 PyObject * obj0 = 0 ;
29374 char * kwnames[] = {
29375 (char *) "mode", NULL
29376 };
29377
29378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) SWIG_fail;
29379 ecode1 = SWIG_AsVal_int(obj0, &val1);
29380 if (!SWIG_IsOK(ecode1)) {
29381 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "IdleEvent_SetMode" "', expected argument " "1"" of type '" "wxIdleMode""'");
29382 }
29383 arg1 = static_cast< wxIdleMode >(val1);
29384 {
29385 PyThreadState* __tstate = wxPyBeginAllowThreads();
29386 wxIdleEvent::SetMode(arg1);
29387 wxPyEndAllowThreads(__tstate);
29388 if (PyErr_Occurred()) SWIG_fail;
29389 }
29390 resultobj = SWIG_Py_Void();
29391 return resultobj;
29392fail:
29393 return NULL;
d55e5bfc
RD
29394}
29395
29396
1bd55598
RD
29397SWIGINTERN PyObject *_wrap_IdleEvent_GetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29398 PyObject *resultobj = 0;
29399 wxIdleMode result;
29400
29401 if (!SWIG_Python_UnpackTuple(args,"IdleEvent_GetMode",0,0,0)) SWIG_fail;
29402 {
29403 PyThreadState* __tstate = wxPyBeginAllowThreads();
29404 result = (wxIdleMode)wxIdleEvent::GetMode();
29405 wxPyEndAllowThreads(__tstate);
29406 if (PyErr_Occurred()) SWIG_fail;
29407 }
29408 resultobj = SWIG_From_int(static_cast< int >(result));
29409 return resultobj;
29410fail:
29411 return NULL;
29412}
29413
29414
29415SWIGINTERN PyObject *_wrap_IdleEvent_CanSend(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29416 PyObject *resultobj = 0;
29417 wxWindow *arg1 = (wxWindow *) 0 ;
29418 bool result;
29419 void *argp1 = 0 ;
29420 int res1 = 0 ;
29421 PyObject * obj0 = 0 ;
29422 char * kwnames[] = {
29423 (char *) "win", NULL
29424 };
29425
29426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) SWIG_fail;
29427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
29428 if (!SWIG_IsOK(res1)) {
29429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IdleEvent_CanSend" "', expected argument " "1"" of type '" "wxWindow *""'");
29430 }
29431 arg1 = reinterpret_cast< wxWindow * >(argp1);
29432 {
29433 PyThreadState* __tstate = wxPyBeginAllowThreads();
29434 result = (bool)wxIdleEvent::CanSend(arg1);
29435 wxPyEndAllowThreads(__tstate);
29436 if (PyErr_Occurred()) SWIG_fail;
29437 }
29438 {
29439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29440 }
29441 return resultobj;
29442fail:
29443 return NULL;
d55e5bfc
RD
29444}
29445
29446
1bd55598
RD
29447SWIGINTERN PyObject *IdleEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29448 PyObject *obj;
29449 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29450 SWIG_TypeNewClientData(SWIGTYPE_p_wxIdleEvent, SWIG_NewClientData(obj));
29451 return SWIG_Py_Void();
d55e5bfc
RD
29452}
29453
1bd55598
RD
29454SWIGINTERN PyObject *IdleEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29455 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
29456}
29457
2131d850
RD
29458SWIGINTERN PyObject *_wrap_new_ClipboardTextEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29459 PyObject *resultobj = 0;
29460 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
29461 int arg2 = (int) 0 ;
29462 wxClipboardTextEvent *result = 0 ;
29463 int val1 ;
29464 int ecode1 = 0 ;
29465 int val2 ;
29466 int ecode2 = 0 ;
29467 PyObject * obj0 = 0 ;
29468 PyObject * obj1 = 0 ;
29469 char * kwnames[] = {
29470 (char *) "type",(char *) "winid", NULL
29471 };
29472
29473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ClipboardTextEvent",kwnames,&obj0,&obj1)) SWIG_fail;
29474 if (obj0) {
29475 ecode1 = SWIG_AsVal_int(obj0, &val1);
29476 if (!SWIG_IsOK(ecode1)) {
29477 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ClipboardTextEvent" "', expected argument " "1"" of type '" "wxEventType""'");
29478 }
29479 arg1 = static_cast< wxEventType >(val1);
29480 }
29481 if (obj1) {
29482 ecode2 = SWIG_AsVal_int(obj1, &val2);
29483 if (!SWIG_IsOK(ecode2)) {
29484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ClipboardTextEvent" "', expected argument " "2"" of type '" "int""'");
29485 }
29486 arg2 = static_cast< int >(val2);
29487 }
29488 {
29489 PyThreadState* __tstate = wxPyBeginAllowThreads();
29490 result = (wxClipboardTextEvent *)new wxClipboardTextEvent(arg1,arg2);
29491 wxPyEndAllowThreads(__tstate);
29492 if (PyErr_Occurred()) SWIG_fail;
29493 }
29494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClipboardTextEvent, SWIG_POINTER_NEW | 0 );
29495 return resultobj;
29496fail:
29497 return NULL;
29498}
29499
29500
29501SWIGINTERN PyObject *ClipboardTextEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29502 PyObject *obj;
29503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29504 SWIG_TypeNewClientData(SWIGTYPE_p_wxClipboardTextEvent, SWIG_NewClientData(obj));
29505 return SWIG_Py_Void();
29506}
29507
29508SWIGINTERN PyObject *ClipboardTextEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29509 return SWIG_Python_InitShadowInstance(args);
29510}
29511
1bd55598
RD
29512SWIGINTERN PyObject *_wrap_new_PyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29513 PyObject *resultobj = 0;
29514 int arg1 = (int) 0 ;
29515 wxEventType arg2 = (wxEventType) wxEVT_NULL ;
29516 wxPyEvent *result = 0 ;
29517 int val1 ;
29518 int ecode1 = 0 ;
29519 int val2 ;
29520 int ecode2 = 0 ;
29521 PyObject * obj0 = 0 ;
29522 PyObject * obj1 = 0 ;
29523 char * kwnames[] = {
29524 (char *) "winid",(char *) "eventType", NULL
29525 };
29526
29527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
29528 if (obj0) {
29529 ecode1 = SWIG_AsVal_int(obj0, &val1);
29530 if (!SWIG_IsOK(ecode1)) {
29531 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyEvent" "', expected argument " "1"" of type '" "int""'");
29532 }
29533 arg1 = static_cast< int >(val1);
29534 }
29535 if (obj1) {
29536 ecode2 = SWIG_AsVal_int(obj1, &val2);
29537 if (!SWIG_IsOK(ecode2)) {
29538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyEvent" "', expected argument " "2"" of type '" "wxEventType""'");
29539 }
29540 arg2 = static_cast< wxEventType >(val2);
29541 }
29542 {
29543 PyThreadState* __tstate = wxPyBeginAllowThreads();
29544 result = (wxPyEvent *)new wxPyEvent(arg1,arg2);
29545 wxPyEndAllowThreads(__tstate);
29546 if (PyErr_Occurred()) SWIG_fail;
29547 }
29548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyEvent, SWIG_POINTER_NEW | 0 );
29549 return resultobj;
29550fail:
29551 return NULL;
d55e5bfc
RD
29552}
29553
29554
1bd55598
RD
29555SWIGINTERN PyObject *_wrap_delete_PyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29556 PyObject *resultobj = 0;
29557 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
29558 void *argp1 = 0 ;
29559 int res1 = 0 ;
29560 PyObject *swig_obj[1] ;
29561
29562 if (!args) SWIG_fail;
29563 swig_obj[0] = args;
29564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyEvent, SWIG_POINTER_DISOWN | 0 );
29565 if (!SWIG_IsOK(res1)) {
29566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyEvent" "', expected argument " "1"" of type '" "wxPyEvent *""'");
29567 }
29568 arg1 = reinterpret_cast< wxPyEvent * >(argp1);
29569 {
29570 PyThreadState* __tstate = wxPyBeginAllowThreads();
29571 delete arg1;
d55e5bfc 29572
1bd55598
RD
29573 wxPyEndAllowThreads(__tstate);
29574 if (PyErr_Occurred()) SWIG_fail;
29575 }
29576 resultobj = SWIG_Py_Void();
29577 return resultobj;
29578fail:
29579 return NULL;
29580}
29581
29582
29583SWIGINTERN PyObject *_wrap_PyEvent__SetSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29584 PyObject *resultobj = 0;
29585 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
29586 PyObject *arg2 = (PyObject *) 0 ;
29587 void *argp1 = 0 ;
29588 int res1 = 0 ;
29589 PyObject * obj0 = 0 ;
29590 PyObject * obj1 = 0 ;
29591 char * kwnames[] = {
29592 (char *) "self",(char *) "self", NULL
29593 };
29594
29595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent__SetSelf",kwnames,&obj0,&obj1)) SWIG_fail;
29596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyEvent, 0 | 0 );
29597 if (!SWIG_IsOK(res1)) {
29598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyEvent__SetSelf" "', expected argument " "1"" of type '" "wxPyEvent *""'");
29599 }
29600 arg1 = reinterpret_cast< wxPyEvent * >(argp1);
29601 arg2 = obj1;
29602 {
29603 PyThreadState* __tstate = wxPyBeginAllowThreads();
29604 (arg1)->SetSelf(arg2);
29605 wxPyEndAllowThreads(__tstate);
29606 if (PyErr_Occurred()) SWIG_fail;
29607 }
29608 resultobj = SWIG_Py_Void();
29609 return resultobj;
29610fail:
29611 return NULL;
d55e5bfc
RD
29612}
29613
29614
1bd55598
RD
29615SWIGINTERN PyObject *_wrap_PyEvent__GetSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29616 PyObject *resultobj = 0;
29617 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
29618 PyObject *result = 0 ;
29619 void *argp1 = 0 ;
29620 int res1 = 0 ;
29621 PyObject *swig_obj[1] ;
29622
29623 if (!args) SWIG_fail;
29624 swig_obj[0] = args;
29625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyEvent, 0 | 0 );
29626 if (!SWIG_IsOK(res1)) {
29627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyEvent__GetSelf" "', expected argument " "1"" of type '" "wxPyEvent *""'");
29628 }
29629 arg1 = reinterpret_cast< wxPyEvent * >(argp1);
29630 {
29631 PyThreadState* __tstate = wxPyBeginAllowThreads();
29632 result = (PyObject *)(arg1)->GetSelf();
29633 wxPyEndAllowThreads(__tstate);
29634 if (PyErr_Occurred()) SWIG_fail;
29635 }
29636 resultobj = result;
29637 return resultobj;
29638fail:
29639 return NULL;
d55e5bfc
RD
29640}
29641
29642
1bd55598
RD
29643SWIGINTERN PyObject *PyEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29644 PyObject *obj;
29645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29646 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyEvent, SWIG_NewClientData(obj));
29647 return SWIG_Py_Void();
d55e5bfc
RD
29648}
29649
1bd55598
RD
29650SWIGINTERN PyObject *PyEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29651 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
29652}
29653
1bd55598
RD
29654SWIGINTERN PyObject *_wrap_new_PyCommandEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29655 PyObject *resultobj = 0;
29656 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
29657 int arg2 = (int) 0 ;
29658 wxPyCommandEvent *result = 0 ;
29659 int val1 ;
29660 int ecode1 = 0 ;
29661 int val2 ;
29662 int ecode2 = 0 ;
29663 PyObject * obj0 = 0 ;
29664 PyObject * obj1 = 0 ;
29665 char * kwnames[] = {
29666 (char *) "eventType",(char *) "id", NULL
29667 };
29668
29669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) SWIG_fail;
29670 if (obj0) {
29671 ecode1 = SWIG_AsVal_int(obj0, &val1);
29672 if (!SWIG_IsOK(ecode1)) {
29673 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyCommandEvent" "', expected argument " "1"" of type '" "wxEventType""'");
29674 }
29675 arg1 = static_cast< wxEventType >(val1);
29676 }
29677 if (obj1) {
29678 ecode2 = SWIG_AsVal_int(obj1, &val2);
29679 if (!SWIG_IsOK(ecode2)) {
29680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyCommandEvent" "', expected argument " "2"" of type '" "int""'");
29681 }
29682 arg2 = static_cast< int >(val2);
29683 }
29684 {
29685 PyThreadState* __tstate = wxPyBeginAllowThreads();
29686 result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2);
29687 wxPyEndAllowThreads(__tstate);
29688 if (PyErr_Occurred()) SWIG_fail;
29689 }
29690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_NEW | 0 );
29691 return resultobj;
29692fail:
29693 return NULL;
d55e5bfc
RD
29694}
29695
29696
1bd55598
RD
29697SWIGINTERN PyObject *_wrap_delete_PyCommandEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29698 PyObject *resultobj = 0;
29699 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
29700 void *argp1 = 0 ;
29701 int res1 = 0 ;
29702 PyObject *swig_obj[1] ;
29703
29704 if (!args) SWIG_fail;
29705 swig_obj[0] = args;
29706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_DISOWN | 0 );
29707 if (!SWIG_IsOK(res1)) {
29708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyCommandEvent" "', expected argument " "1"" of type '" "wxPyCommandEvent *""'");
29709 }
29710 arg1 = reinterpret_cast< wxPyCommandEvent * >(argp1);
29711 {
29712 PyThreadState* __tstate = wxPyBeginAllowThreads();
29713 delete arg1;
d55e5bfc 29714
1bd55598
RD
29715 wxPyEndAllowThreads(__tstate);
29716 if (PyErr_Occurred()) SWIG_fail;
29717 }
29718 resultobj = SWIG_Py_Void();
29719 return resultobj;
29720fail:
29721 return NULL;
29722}
29723
29724
29725SWIGINTERN PyObject *_wrap_PyCommandEvent__SetSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29726 PyObject *resultobj = 0;
29727 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
29728 PyObject *arg2 = (PyObject *) 0 ;
29729 void *argp1 = 0 ;
29730 int res1 = 0 ;
29731 PyObject * obj0 = 0 ;
29732 PyObject * obj1 = 0 ;
29733 char * kwnames[] = {
29734 (char *) "self",(char *) "self", NULL
29735 };
29736
29737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent__SetSelf",kwnames,&obj0,&obj1)) SWIG_fail;
29738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyCommandEvent, 0 | 0 );
29739 if (!SWIG_IsOK(res1)) {
29740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyCommandEvent__SetSelf" "', expected argument " "1"" of type '" "wxPyCommandEvent *""'");
29741 }
29742 arg1 = reinterpret_cast< wxPyCommandEvent * >(argp1);
29743 arg2 = obj1;
29744 {
29745 PyThreadState* __tstate = wxPyBeginAllowThreads();
29746 (arg1)->SetSelf(arg2);
29747 wxPyEndAllowThreads(__tstate);
29748 if (PyErr_Occurred()) SWIG_fail;
29749 }
29750 resultobj = SWIG_Py_Void();
29751 return resultobj;
29752fail:
29753 return NULL;
d55e5bfc
RD
29754}
29755
29756
1bd55598
RD
29757SWIGINTERN PyObject *_wrap_PyCommandEvent__GetSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29758 PyObject *resultobj = 0;
29759 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
29760 PyObject *result = 0 ;
29761 void *argp1 = 0 ;
29762 int res1 = 0 ;
29763 PyObject *swig_obj[1] ;
29764
29765 if (!args) SWIG_fail;
29766 swig_obj[0] = args;
29767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyCommandEvent, 0 | 0 );
29768 if (!SWIG_IsOK(res1)) {
29769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyCommandEvent__GetSelf" "', expected argument " "1"" of type '" "wxPyCommandEvent *""'");
29770 }
29771 arg1 = reinterpret_cast< wxPyCommandEvent * >(argp1);
29772 {
29773 PyThreadState* __tstate = wxPyBeginAllowThreads();
29774 result = (PyObject *)(arg1)->GetSelf();
29775 wxPyEndAllowThreads(__tstate);
29776 if (PyErr_Occurred()) SWIG_fail;
29777 }
29778 resultobj = result;
29779 return resultobj;
29780fail:
29781 return NULL;
29782}
29783
29784
29785SWIGINTERN PyObject *PyCommandEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29786 PyObject *obj;
29787 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29788 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyCommandEvent, SWIG_NewClientData(obj));
29789 return SWIG_Py_Void();
29790}
29791
29792SWIGINTERN PyObject *PyCommandEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29793 return SWIG_Python_InitShadowInstance(args);
29794}
29795
29796SWIGINTERN PyObject *_wrap_new_DateEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29797 PyObject *resultobj = 0;
29798 wxWindow *arg1 = (wxWindow *) 0 ;
29799 wxDateTime *arg2 = 0 ;
29800 wxEventType arg3 ;
29801 wxDateEvent *result = 0 ;
29802 void *argp1 = 0 ;
29803 int res1 = 0 ;
29804 void *argp2 = 0 ;
29805 int res2 = 0 ;
29806 int val3 ;
29807 int ecode3 = 0 ;
29808 PyObject * obj0 = 0 ;
29809 PyObject * obj1 = 0 ;
29810 PyObject * obj2 = 0 ;
29811 char * kwnames[] = {
29812 (char *) "win",(char *) "dt",(char *) "type", NULL
29813 };
29814
29815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_DateEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
29817 if (!SWIG_IsOK(res1)) {
29818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DateEvent" "', expected argument " "1"" of type '" "wxWindow *""'");
29819 }
29820 arg1 = reinterpret_cast< wxWindow * >(argp1);
29821 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
29822 if (!SWIG_IsOK(res2)) {
29823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateEvent" "', expected argument " "2"" of type '" "wxDateTime const &""'");
29824 }
29825 if (!argp2) {
29826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateEvent" "', expected argument " "2"" of type '" "wxDateTime const &""'");
29827 }
29828 arg2 = reinterpret_cast< wxDateTime * >(argp2);
29829 ecode3 = SWIG_AsVal_int(obj2, &val3);
29830 if (!SWIG_IsOK(ecode3)) {
29831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateEvent" "', expected argument " "3"" of type '" "wxEventType""'");
29832 }
29833 arg3 = static_cast< wxEventType >(val3);
29834 {
29835 PyThreadState* __tstate = wxPyBeginAllowThreads();
29836 result = (wxDateEvent *)new wxDateEvent(arg1,(wxDateTime const &)*arg2,arg3);
29837 wxPyEndAllowThreads(__tstate);
29838 if (PyErr_Occurred()) SWIG_fail;
29839 }
29840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateEvent, SWIG_POINTER_NEW | 0 );
29841 return resultobj;
29842fail:
29843 return NULL;
d55e5bfc
RD
29844}
29845
29846
1bd55598
RD
29847SWIGINTERN PyObject *_wrap_DateEvent_GetDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29848 PyObject *resultobj = 0;
29849 wxDateEvent *arg1 = (wxDateEvent *) 0 ;
29850 wxDateTime *result = 0 ;
29851 void *argp1 = 0 ;
29852 int res1 = 0 ;
29853 PyObject *swig_obj[1] ;
29854
29855 if (!args) SWIG_fail;
29856 swig_obj[0] = args;
29857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateEvent, 0 | 0 );
29858 if (!SWIG_IsOK(res1)) {
29859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateEvent_GetDate" "', expected argument " "1"" of type '" "wxDateEvent const *""'");
29860 }
29861 arg1 = reinterpret_cast< wxDateEvent * >(argp1);
29862 {
29863 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 29864 {
1bd55598
RD
29865 wxDateTime const &_result_ref = ((wxDateEvent const *)arg1)->GetDate();
29866 result = (wxDateTime *) &_result_ref;
36ed4f51 29867 }
1bd55598
RD
29868 wxPyEndAllowThreads(__tstate);
29869 if (PyErr_Occurred()) SWIG_fail;
29870 }
29871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
29872 return resultobj;
29873fail:
29874 return NULL;
29875}
29876
29877
29878SWIGINTERN PyObject *_wrap_DateEvent_SetDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29879 PyObject *resultobj = 0;
29880 wxDateEvent *arg1 = (wxDateEvent *) 0 ;
29881 wxDateTime *arg2 = 0 ;
29882 void *argp1 = 0 ;
29883 int res1 = 0 ;
29884 void *argp2 = 0 ;
29885 int res2 = 0 ;
29886 PyObject * obj0 = 0 ;
29887 PyObject * obj1 = 0 ;
29888 char * kwnames[] = {
29889 (char *) "self",(char *) "date", NULL
29890 };
29891
29892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateEvent_SetDate",kwnames,&obj0,&obj1)) SWIG_fail;
29893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateEvent, 0 | 0 );
29894 if (!SWIG_IsOK(res1)) {
29895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateEvent_SetDate" "', expected argument " "1"" of type '" "wxDateEvent *""'");
29896 }
29897 arg1 = reinterpret_cast< wxDateEvent * >(argp1);
29898 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
29899 if (!SWIG_IsOK(res2)) {
29900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateEvent_SetDate" "', expected argument " "2"" of type '" "wxDateTime const &""'");
29901 }
29902 if (!argp2) {
29903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateEvent_SetDate" "', expected argument " "2"" of type '" "wxDateTime const &""'");
29904 }
29905 arg2 = reinterpret_cast< wxDateTime * >(argp2);
29906 {
29907 PyThreadState* __tstate = wxPyBeginAllowThreads();
29908 (arg1)->SetDate((wxDateTime const &)*arg2);
29909 wxPyEndAllowThreads(__tstate);
29910 if (PyErr_Occurred()) SWIG_fail;
29911 }
29912 resultobj = SWIG_Py_Void();
29913 return resultobj;
29914fail:
29915 return NULL;
d55e5bfc
RD
29916}
29917
29918
1bd55598
RD
29919SWIGINTERN PyObject *DateEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29920 PyObject *obj;
29921 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29922 SWIG_TypeNewClientData(SWIGTYPE_p_wxDateEvent, SWIG_NewClientData(obj));
29923 return SWIG_Py_Void();
d55e5bfc
RD
29924}
29925
1bd55598
RD
29926SWIGINTERN PyObject *DateEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29927 return SWIG_Python_InitShadowInstance(args);
29928}
d55e5bfc 29929
1bd55598
RD
29930SWIGINTERN PyObject *_wrap_new_PyApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29931 PyObject *resultobj = 0;
29932 wxPyApp *result = 0 ;
29933
29934 if (!SWIG_Python_UnpackTuple(args,"new_PyApp",0,0,0)) SWIG_fail;
29935 {
29936 PyThreadState* __tstate = wxPyBeginAllowThreads();
29937 result = (wxPyApp *)new_wxPyApp();
29938 wxPyEndAllowThreads(__tstate);
29939 if (PyErr_Occurred()) SWIG_fail;
29940 }
29941 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyApp, SWIG_POINTER_NEW | 0 );
29942 return resultobj;
29943fail:
29944 return NULL;
d55e5bfc
RD
29945}
29946
29947
1bd55598
RD
29948SWIGINTERN PyObject *_wrap_delete_PyApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29949 PyObject *resultobj = 0;
29950 wxPyApp *arg1 = (wxPyApp *) 0 ;
29951 void *argp1 = 0 ;
29952 int res1 = 0 ;
29953 PyObject *swig_obj[1] ;
29954
29955 if (!args) SWIG_fail;
29956 swig_obj[0] = args;
29957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, SWIG_POINTER_DISOWN | 0 );
29958 if (!SWIG_IsOK(res1)) {
29959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyApp" "', expected argument " "1"" of type '" "wxPyApp *""'");
29960 }
29961 arg1 = reinterpret_cast< wxPyApp * >(argp1);
29962 {
29963 PyThreadState* __tstate = wxPyBeginAllowThreads();
29964 delete arg1;
d55e5bfc 29965
1bd55598
RD
29966 wxPyEndAllowThreads(__tstate);
29967 if (PyErr_Occurred()) SWIG_fail;
29968 }
29969 resultobj = SWIG_Py_Void();
29970 return resultobj;
29971fail:
29972 return NULL;
29973}
29974
29975
29976SWIGINTERN PyObject *_wrap_PyApp__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29977 PyObject *resultobj = 0;
29978 wxPyApp *arg1 = (wxPyApp *) 0 ;
29979 PyObject *arg2 = (PyObject *) 0 ;
29980 PyObject *arg3 = (PyObject *) 0 ;
29981 bool arg4 ;
29982 void *argp1 = 0 ;
29983 int res1 = 0 ;
29984 bool val4 ;
29985 int ecode4 = 0 ;
29986 PyObject * obj0 = 0 ;
29987 PyObject * obj1 = 0 ;
29988 PyObject * obj2 = 0 ;
29989 PyObject * obj3 = 0 ;
29990 char * kwnames[] = {
29991 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
29992 };
29993
29994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
29996 if (!SWIG_IsOK(res1)) {
29997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyApp *""'");
29998 }
29999 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30000 arg2 = obj1;
30001 arg3 = obj2;
30002 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30003 if (!SWIG_IsOK(ecode4)) {
30004 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyApp__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
30005 }
30006 arg4 = static_cast< bool >(val4);
30007 {
30008 PyThreadState* __tstate = wxPyBeginAllowThreads();
30009 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
30010 wxPyEndAllowThreads(__tstate);
30011 if (PyErr_Occurred()) SWIG_fail;
30012 }
30013 resultobj = SWIG_Py_Void();
30014 return resultobj;
30015fail:
30016 return NULL;
d55e5bfc
RD
30017}
30018
30019
1bd55598
RD
30020SWIGINTERN PyObject *_wrap_PyApp_GetAppName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30021 PyObject *resultobj = 0;
30022 wxPyApp *arg1 = (wxPyApp *) 0 ;
30023 wxString result;
30024 void *argp1 = 0 ;
30025 int res1 = 0 ;
30026 PyObject *swig_obj[1] ;
30027
30028 if (!args) SWIG_fail;
30029 swig_obj[0] = args;
30030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30031 if (!SWIG_IsOK(res1)) {
30032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetAppName" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30033 }
30034 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30035 {
30036 PyThreadState* __tstate = wxPyBeginAllowThreads();
30037 result = ((wxPyApp const *)arg1)->GetAppName();
30038 wxPyEndAllowThreads(__tstate);
30039 if (PyErr_Occurred()) SWIG_fail;
30040 }
30041 {
30042#if wxUSE_UNICODE
30043 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30044#else
30045 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30046#endif
30047 }
30048 return resultobj;
30049fail:
30050 return NULL;
30051}
30052
30053
30054SWIGINTERN PyObject *_wrap_PyApp_SetAppName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30055 PyObject *resultobj = 0;
30056 wxPyApp *arg1 = (wxPyApp *) 0 ;
30057 wxString *arg2 = 0 ;
30058 void *argp1 = 0 ;
30059 int res1 = 0 ;
30060 bool temp2 = false ;
30061 PyObject * obj0 = 0 ;
30062 PyObject * obj1 = 0 ;
30063 char * kwnames[] = {
30064 (char *) "self",(char *) "name", NULL
30065 };
30066
30067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) SWIG_fail;
30068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30069 if (!SWIG_IsOK(res1)) {
30070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetAppName" "', expected argument " "1"" of type '" "wxPyApp *""'");
30071 }
30072 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30073 {
30074 arg2 = wxString_in_helper(obj1);
30075 if (arg2 == NULL) SWIG_fail;
30076 temp2 = true;
30077 }
30078 {
30079 PyThreadState* __tstate = wxPyBeginAllowThreads();
30080 (arg1)->SetAppName((wxString const &)*arg2);
30081 wxPyEndAllowThreads(__tstate);
30082 if (PyErr_Occurred()) SWIG_fail;
30083 }
30084 resultobj = SWIG_Py_Void();
30085 {
30086 if (temp2)
30087 delete arg2;
30088 }
30089 return resultobj;
30090fail:
30091 {
30092 if (temp2)
30093 delete arg2;
30094 }
30095 return NULL;
d55e5bfc
RD
30096}
30097
30098
1bd55598
RD
30099SWIGINTERN PyObject *_wrap_PyApp_GetClassName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30100 PyObject *resultobj = 0;
30101 wxPyApp *arg1 = (wxPyApp *) 0 ;
30102 wxString result;
30103 void *argp1 = 0 ;
30104 int res1 = 0 ;
30105 PyObject *swig_obj[1] ;
30106
30107 if (!args) SWIG_fail;
30108 swig_obj[0] = args;
30109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30110 if (!SWIG_IsOK(res1)) {
30111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetClassName" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30112 }
30113 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30114 {
30115 PyThreadState* __tstate = wxPyBeginAllowThreads();
30116 result = ((wxPyApp const *)arg1)->GetClassName();
30117 wxPyEndAllowThreads(__tstate);
30118 if (PyErr_Occurred()) SWIG_fail;
30119 }
30120 {
30121#if wxUSE_UNICODE
30122 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30123#else
30124 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30125#endif
30126 }
30127 return resultobj;
30128fail:
30129 return NULL;
30130}
30131
30132
30133SWIGINTERN PyObject *_wrap_PyApp_SetClassName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30134 PyObject *resultobj = 0;
30135 wxPyApp *arg1 = (wxPyApp *) 0 ;
30136 wxString *arg2 = 0 ;
30137 void *argp1 = 0 ;
30138 int res1 = 0 ;
30139 bool temp2 = false ;
30140 PyObject * obj0 = 0 ;
30141 PyObject * obj1 = 0 ;
30142 char * kwnames[] = {
30143 (char *) "self",(char *) "name", NULL
30144 };
30145
30146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) SWIG_fail;
30147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30148 if (!SWIG_IsOK(res1)) {
30149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetClassName" "', expected argument " "1"" of type '" "wxPyApp *""'");
30150 }
30151 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30152 {
30153 arg2 = wxString_in_helper(obj1);
30154 if (arg2 == NULL) SWIG_fail;
30155 temp2 = true;
30156 }
30157 {
30158 PyThreadState* __tstate = wxPyBeginAllowThreads();
30159 (arg1)->SetClassName((wxString const &)*arg2);
30160 wxPyEndAllowThreads(__tstate);
30161 if (PyErr_Occurred()) SWIG_fail;
30162 }
30163 resultobj = SWIG_Py_Void();
30164 {
30165 if (temp2)
30166 delete arg2;
30167 }
30168 return resultobj;
30169fail:
30170 {
30171 if (temp2)
30172 delete arg2;
30173 }
30174 return NULL;
d55e5bfc
RD
30175}
30176
30177
1bd55598
RD
30178SWIGINTERN PyObject *_wrap_PyApp_GetVendorName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30179 PyObject *resultobj = 0;
30180 wxPyApp *arg1 = (wxPyApp *) 0 ;
30181 wxString *result = 0 ;
30182 void *argp1 = 0 ;
30183 int res1 = 0 ;
30184 PyObject *swig_obj[1] ;
30185
30186 if (!args) SWIG_fail;
30187 swig_obj[0] = args;
30188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30189 if (!SWIG_IsOK(res1)) {
30190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetVendorName" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30191 }
30192 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30193 {
30194 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 30195 {
1bd55598
RD
30196 wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName();
30197 result = (wxString *) &_result_ref;
36ed4f51 30198 }
1bd55598
RD
30199 wxPyEndAllowThreads(__tstate);
30200 if (PyErr_Occurred()) SWIG_fail;
30201 }
30202 {
30203#if wxUSE_UNICODE
30204 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30205#else
30206 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30207#endif
30208 }
30209 return resultobj;
30210fail:
30211 return NULL;
30212}
30213
30214
30215SWIGINTERN PyObject *_wrap_PyApp_SetVendorName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30216 PyObject *resultobj = 0;
30217 wxPyApp *arg1 = (wxPyApp *) 0 ;
30218 wxString *arg2 = 0 ;
30219 void *argp1 = 0 ;
30220 int res1 = 0 ;
30221 bool temp2 = false ;
30222 PyObject * obj0 = 0 ;
30223 PyObject * obj1 = 0 ;
30224 char * kwnames[] = {
30225 (char *) "self",(char *) "name", NULL
30226 };
30227
30228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) SWIG_fail;
30229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30230 if (!SWIG_IsOK(res1)) {
30231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetVendorName" "', expected argument " "1"" of type '" "wxPyApp *""'");
30232 }
30233 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30234 {
30235 arg2 = wxString_in_helper(obj1);
30236 if (arg2 == NULL) SWIG_fail;
30237 temp2 = true;
30238 }
30239 {
30240 PyThreadState* __tstate = wxPyBeginAllowThreads();
30241 (arg1)->SetVendorName((wxString const &)*arg2);
30242 wxPyEndAllowThreads(__tstate);
30243 if (PyErr_Occurred()) SWIG_fail;
30244 }
30245 resultobj = SWIG_Py_Void();
30246 {
30247 if (temp2)
30248 delete arg2;
30249 }
30250 return resultobj;
30251fail:
30252 {
30253 if (temp2)
30254 delete arg2;
30255 }
30256 return NULL;
30257}
d55e5bfc
RD
30258
30259
1bd55598
RD
30260SWIGINTERN PyObject *_wrap_PyApp_GetTraits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30261 PyObject *resultobj = 0;
30262 wxPyApp *arg1 = (wxPyApp *) 0 ;
30263 wxAppTraits *result = 0 ;
30264 void *argp1 = 0 ;
30265 int res1 = 0 ;
30266 PyObject *swig_obj[1] ;
30267
30268 if (!args) SWIG_fail;
30269 swig_obj[0] = args;
30270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30271 if (!SWIG_IsOK(res1)) {
30272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetTraits" "', expected argument " "1"" of type '" "wxPyApp *""'");
30273 }
30274 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30275 {
30276 PyThreadState* __tstate = wxPyBeginAllowThreads();
30277 result = (wxAppTraits *)(arg1)->GetTraits();
30278 wxPyEndAllowThreads(__tstate);
30279 if (PyErr_Occurred()) SWIG_fail;
30280 }
30281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAppTraits, 0 | 0 );
30282 return resultobj;
30283fail:
30284 return NULL;
d55e5bfc
RD
30285}
30286
30287
1bd55598
RD
30288SWIGINTERN PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30289 PyObject *resultobj = 0;
30290 wxPyApp *arg1 = (wxPyApp *) 0 ;
30291 void *argp1 = 0 ;
30292 int res1 = 0 ;
30293 PyObject *swig_obj[1] ;
30294
30295 if (!args) SWIG_fail;
30296 swig_obj[0] = args;
30297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30298 if (!SWIG_IsOK(res1)) {
30299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_ProcessPendingEvents" "', expected argument " "1"" of type '" "wxPyApp *""'");
30300 }
30301 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30302 {
30303 PyThreadState* __tstate = wxPyBeginAllowThreads();
30304 (arg1)->ProcessPendingEvents();
30305 wxPyEndAllowThreads(__tstate);
30306 if (PyErr_Occurred()) SWIG_fail;
30307 }
30308 resultobj = SWIG_Py_Void();
30309 return resultobj;
30310fail:
30311 return NULL;
30312}
30313
30314
30315SWIGINTERN PyObject *_wrap_PyApp_Yield(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30316 PyObject *resultobj = 0;
30317 wxPyApp *arg1 = (wxPyApp *) 0 ;
30318 bool arg2 = (bool) false ;
30319 bool result;
30320 void *argp1 = 0 ;
30321 int res1 = 0 ;
30322 bool val2 ;
30323 int ecode2 = 0 ;
30324 PyObject * obj0 = 0 ;
30325 PyObject * obj1 = 0 ;
30326 char * kwnames[] = {
30327 (char *) "self",(char *) "onlyIfNeeded", NULL
30328 };
30329
30330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) SWIG_fail;
30331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30332 if (!SWIG_IsOK(res1)) {
30333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_Yield" "', expected argument " "1"" of type '" "wxPyApp *""'");
30334 }
30335 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30336 if (obj1) {
30337 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30338 if (!SWIG_IsOK(ecode2)) {
30339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyApp_Yield" "', expected argument " "2"" of type '" "bool""'");
30340 }
30341 arg2 = static_cast< bool >(val2);
30342 }
30343 {
30344 PyThreadState* __tstate = wxPyBeginAllowThreads();
30345 result = (bool)(arg1)->Yield(arg2);
30346 wxPyEndAllowThreads(__tstate);
30347 if (PyErr_Occurred()) SWIG_fail;
30348 }
30349 {
30350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30351 }
30352 return resultobj;
30353fail:
30354 return NULL;
d55e5bfc
RD
30355}
30356
30357
1bd55598
RD
30358SWIGINTERN PyObject *_wrap_PyApp_WakeUpIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30359 PyObject *resultobj = 0;
30360 wxPyApp *arg1 = (wxPyApp *) 0 ;
30361 void *argp1 = 0 ;
30362 int res1 = 0 ;
30363 PyObject *swig_obj[1] ;
30364
30365 if (!args) SWIG_fail;
30366 swig_obj[0] = args;
30367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30368 if (!SWIG_IsOK(res1)) {
30369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_WakeUpIdle" "', expected argument " "1"" of type '" "wxPyApp *""'");
30370 }
30371 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30372 {
30373 PyThreadState* __tstate = wxPyBeginAllowThreads();
30374 (arg1)->WakeUpIdle();
30375 wxPyEndAllowThreads(__tstate);
30376 if (PyErr_Occurred()) SWIG_fail;
30377 }
30378 resultobj = SWIG_Py_Void();
30379 return resultobj;
30380fail:
30381 return NULL;
d55e5bfc
RD
30382}
30383
30384
1bd55598
RD
30385SWIGINTERN PyObject *_wrap_PyApp_IsMainLoopRunning(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30386 PyObject *resultobj = 0;
30387 bool result;
30388
30389 if (!SWIG_Python_UnpackTuple(args,"PyApp_IsMainLoopRunning",0,0,0)) SWIG_fail;
30390 {
30391 PyThreadState* __tstate = wxPyBeginAllowThreads();
30392 result = (bool)wxPyApp::IsMainLoopRunning();
30393 wxPyEndAllowThreads(__tstate);
30394 if (PyErr_Occurred()) SWIG_fail;
30395 }
30396 {
30397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30398 }
30399 return resultobj;
30400fail:
30401 return NULL;
d55e5bfc
RD
30402}
30403
30404
1bd55598
RD
30405SWIGINTERN PyObject *_wrap_PyApp_MainLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30406 PyObject *resultobj = 0;
30407 wxPyApp *arg1 = (wxPyApp *) 0 ;
30408 int result;
30409 void *argp1 = 0 ;
30410 int res1 = 0 ;
30411 PyObject *swig_obj[1] ;
30412
30413 if (!args) SWIG_fail;
30414 swig_obj[0] = args;
30415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30416 if (!SWIG_IsOK(res1)) {
30417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_MainLoop" "', expected argument " "1"" of type '" "wxPyApp *""'");
30418 }
30419 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30420 {
30421 PyThreadState* __tstate = wxPyBeginAllowThreads();
30422 result = (int)(arg1)->MainLoop();
30423 wxPyEndAllowThreads(__tstate);
30424 if (PyErr_Occurred()) SWIG_fail;
30425 }
30426 resultobj = SWIG_From_int(static_cast< int >(result));
30427 return resultobj;
30428fail:
30429 return NULL;
d55e5bfc
RD
30430}
30431
30432
1bd55598
RD
30433SWIGINTERN PyObject *_wrap_PyApp_Exit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30434 PyObject *resultobj = 0;
30435 wxPyApp *arg1 = (wxPyApp *) 0 ;
30436 void *argp1 = 0 ;
30437 int res1 = 0 ;
30438 PyObject *swig_obj[1] ;
30439
30440 if (!args) SWIG_fail;
30441 swig_obj[0] = args;
30442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30443 if (!SWIG_IsOK(res1)) {
30444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_Exit" "', expected argument " "1"" of type '" "wxPyApp *""'");
30445 }
30446 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30447 {
30448 PyThreadState* __tstate = wxPyBeginAllowThreads();
30449 (arg1)->Exit();
30450 wxPyEndAllowThreads(__tstate);
30451 if (PyErr_Occurred()) SWIG_fail;
30452 }
30453 resultobj = SWIG_Py_Void();
30454 return resultobj;
30455fail:
30456 return NULL;
d55e5bfc
RD
30457}
30458
30459
ac5d357a
RD
30460SWIGINTERN PyObject *_wrap_PyApp_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30461 PyObject *resultobj = 0;
30462 wxPyApp *arg1 = (wxPyApp *) 0 ;
30463 wxLayoutDirection result;
30464 void *argp1 = 0 ;
30465 int res1 = 0 ;
30466 PyObject *swig_obj[1] ;
30467
30468 if (!args) SWIG_fail;
30469 swig_obj[0] = args;
30470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30471 if (!SWIG_IsOK(res1)) {
30472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetLayoutDirection" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30473 }
30474 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30475 {
30476 PyThreadState* __tstate = wxPyBeginAllowThreads();
994453b8 30477 result = (wxLayoutDirection)((wxPyApp const *)arg1)->GetLayoutDirection();
ac5d357a
RD
30478 wxPyEndAllowThreads(__tstate);
30479 if (PyErr_Occurred()) SWIG_fail;
30480 }
994453b8 30481 resultobj = SWIG_From_int(static_cast< int >(result));
ac5d357a
RD
30482 return resultobj;
30483fail:
30484 return NULL;
30485}
30486
30487
1bd55598
RD
30488SWIGINTERN PyObject *_wrap_PyApp_ExitMainLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30489 PyObject *resultobj = 0;
30490 wxPyApp *arg1 = (wxPyApp *) 0 ;
30491 void *argp1 = 0 ;
30492 int res1 = 0 ;
30493 PyObject *swig_obj[1] ;
30494
30495 if (!args) SWIG_fail;
30496 swig_obj[0] = args;
30497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30498 if (!SWIG_IsOK(res1)) {
30499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_ExitMainLoop" "', expected argument " "1"" of type '" "wxPyApp *""'");
30500 }
30501 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30502 {
30503 PyThreadState* __tstate = wxPyBeginAllowThreads();
30504 (arg1)->ExitMainLoop();
30505 wxPyEndAllowThreads(__tstate);
30506 if (PyErr_Occurred()) SWIG_fail;
30507 }
30508 resultobj = SWIG_Py_Void();
30509 return resultobj;
30510fail:
30511 return NULL;
d55e5bfc
RD
30512}
30513
30514
1bd55598
RD
30515SWIGINTERN PyObject *_wrap_PyApp_Pending(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30516 PyObject *resultobj = 0;
30517 wxPyApp *arg1 = (wxPyApp *) 0 ;
30518 bool result;
30519 void *argp1 = 0 ;
30520 int res1 = 0 ;
30521 PyObject *swig_obj[1] ;
30522
30523 if (!args) SWIG_fail;
30524 swig_obj[0] = args;
30525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30526 if (!SWIG_IsOK(res1)) {
30527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_Pending" "', expected argument " "1"" of type '" "wxPyApp *""'");
30528 }
30529 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30530 {
30531 PyThreadState* __tstate = wxPyBeginAllowThreads();
30532 result = (bool)(arg1)->Pending();
30533 wxPyEndAllowThreads(__tstate);
30534 if (PyErr_Occurred()) SWIG_fail;
30535 }
30536 {
30537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30538 }
30539 return resultobj;
30540fail:
30541 return NULL;
d55e5bfc
RD
30542}
30543
30544
1bd55598
RD
30545SWIGINTERN PyObject *_wrap_PyApp_Dispatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30546 PyObject *resultobj = 0;
30547 wxPyApp *arg1 = (wxPyApp *) 0 ;
30548 bool result;
30549 void *argp1 = 0 ;
30550 int res1 = 0 ;
30551 PyObject *swig_obj[1] ;
30552
30553 if (!args) SWIG_fail;
30554 swig_obj[0] = args;
30555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30556 if (!SWIG_IsOK(res1)) {
30557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_Dispatch" "', expected argument " "1"" of type '" "wxPyApp *""'");
30558 }
30559 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30560 {
30561 PyThreadState* __tstate = wxPyBeginAllowThreads();
30562 result = (bool)(arg1)->Dispatch();
30563 wxPyEndAllowThreads(__tstate);
30564 if (PyErr_Occurred()) SWIG_fail;
30565 }
30566 {
30567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30568 }
30569 return resultobj;
30570fail:
30571 return NULL;
d55e5bfc
RD
30572}
30573
30574
1bd55598
RD
30575SWIGINTERN PyObject *_wrap_PyApp_ProcessIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30576 PyObject *resultobj = 0;
30577 wxPyApp *arg1 = (wxPyApp *) 0 ;
30578 bool result;
30579 void *argp1 = 0 ;
30580 int res1 = 0 ;
30581 PyObject *swig_obj[1] ;
30582
30583 if (!args) SWIG_fail;
30584 swig_obj[0] = args;
30585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30586 if (!SWIG_IsOK(res1)) {
30587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_ProcessIdle" "', expected argument " "1"" of type '" "wxPyApp *""'");
30588 }
30589 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30590 {
30591 PyThreadState* __tstate = wxPyBeginAllowThreads();
30592 result = (bool)(arg1)->ProcessIdle();
30593 wxPyEndAllowThreads(__tstate);
30594 if (PyErr_Occurred()) SWIG_fail;
30595 }
30596 {
30597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30598 }
30599 return resultobj;
30600fail:
30601 return NULL;
30602}
30603
30604
30605SWIGINTERN PyObject *_wrap_PyApp_SendIdleEvents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30606 PyObject *resultobj = 0;
30607 wxPyApp *arg1 = (wxPyApp *) 0 ;
30608 wxWindow *arg2 = (wxWindow *) 0 ;
30609 wxIdleEvent *arg3 = 0 ;
30610 bool result;
30611 void *argp1 = 0 ;
30612 int res1 = 0 ;
30613 void *argp2 = 0 ;
30614 int res2 = 0 ;
30615 void *argp3 = 0 ;
30616 int res3 = 0 ;
30617 PyObject * obj0 = 0 ;
30618 PyObject * obj1 = 0 ;
30619 PyObject * obj2 = 0 ;
30620 char * kwnames[] = {
30621 (char *) "self",(char *) "win",(char *) "event", NULL
30622 };
30623
30624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30626 if (!SWIG_IsOK(res1)) {
30627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SendIdleEvents" "', expected argument " "1"" of type '" "wxPyApp *""'");
30628 }
30629 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30630 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30631 if (!SWIG_IsOK(res2)) {
30632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyApp_SendIdleEvents" "', expected argument " "2"" of type '" "wxWindow *""'");
30633 }
30634 arg2 = reinterpret_cast< wxWindow * >(argp2);
30635 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxIdleEvent, 0 );
30636 if (!SWIG_IsOK(res3)) {
30637 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyApp_SendIdleEvents" "', expected argument " "3"" of type '" "wxIdleEvent &""'");
30638 }
30639 if (!argp3) {
30640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyApp_SendIdleEvents" "', expected argument " "3"" of type '" "wxIdleEvent &""'");
30641 }
30642 arg3 = reinterpret_cast< wxIdleEvent * >(argp3);
30643 {
30644 PyThreadState* __tstate = wxPyBeginAllowThreads();
30645 result = (bool)(arg1)->SendIdleEvents(arg2,*arg3);
30646 wxPyEndAllowThreads(__tstate);
30647 if (PyErr_Occurred()) SWIG_fail;
30648 }
30649 {
30650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30651 }
30652 return resultobj;
30653fail:
30654 return NULL;
d55e5bfc
RD
30655}
30656
30657
1bd55598
RD
30658SWIGINTERN PyObject *_wrap_PyApp_IsActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30659 PyObject *resultobj = 0;
30660 wxPyApp *arg1 = (wxPyApp *) 0 ;
30661 bool result;
30662 void *argp1 = 0 ;
30663 int res1 = 0 ;
30664 PyObject *swig_obj[1] ;
30665
30666 if (!args) SWIG_fail;
30667 swig_obj[0] = args;
30668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30669 if (!SWIG_IsOK(res1)) {
30670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_IsActive" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30671 }
30672 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30673 {
30674 PyThreadState* __tstate = wxPyBeginAllowThreads();
30675 result = (bool)((wxPyApp const *)arg1)->IsActive();
30676 wxPyEndAllowThreads(__tstate);
30677 if (PyErr_Occurred()) SWIG_fail;
30678 }
30679 {
30680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30681 }
30682 return resultobj;
30683fail:
30684 return NULL;
30685}
30686
30687
30688SWIGINTERN PyObject *_wrap_PyApp_SetTopWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30689 PyObject *resultobj = 0;
30690 wxPyApp *arg1 = (wxPyApp *) 0 ;
30691 wxWindow *arg2 = (wxWindow *) 0 ;
30692 void *argp1 = 0 ;
30693 int res1 = 0 ;
30694 void *argp2 = 0 ;
30695 int res2 = 0 ;
30696 PyObject * obj0 = 0 ;
30697 PyObject * obj1 = 0 ;
30698 char * kwnames[] = {
30699 (char *) "self",(char *) "win", NULL
30700 };
30701
30702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30704 if (!SWIG_IsOK(res1)) {
30705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetTopWindow" "', expected argument " "1"" of type '" "wxPyApp *""'");
30706 }
30707 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30708 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30709 if (!SWIG_IsOK(res2)) {
30710 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyApp_SetTopWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
30711 }
30712 arg2 = reinterpret_cast< wxWindow * >(argp2);
30713 {
30714 PyThreadState* __tstate = wxPyBeginAllowThreads();
30715 (arg1)->SetTopWindow(arg2);
30716 wxPyEndAllowThreads(__tstate);
30717 if (PyErr_Occurred()) SWIG_fail;
30718 }
30719 resultobj = SWIG_Py_Void();
30720 return resultobj;
30721fail:
30722 return NULL;
d55e5bfc
RD
30723}
30724
30725
1bd55598
RD
30726SWIGINTERN PyObject *_wrap_PyApp_GetTopWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30727 PyObject *resultobj = 0;
30728 wxPyApp *arg1 = (wxPyApp *) 0 ;
30729 wxWindow *result = 0 ;
30730 void *argp1 = 0 ;
30731 int res1 = 0 ;
30732 PyObject *swig_obj[1] ;
30733
30734 if (!args) SWIG_fail;
30735 swig_obj[0] = args;
30736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30737 if (!SWIG_IsOK(res1)) {
30738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetTopWindow" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30739 }
30740 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30741 {
30742 PyThreadState* __tstate = wxPyBeginAllowThreads();
30743 result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow();
30744 wxPyEndAllowThreads(__tstate);
30745 if (PyErr_Occurred()) SWIG_fail;
30746 }
30747 {
30748 resultobj = wxPyMake_wxObject(result, (bool)0);
30749 }
30750 return resultobj;
30751fail:
30752 return NULL;
30753}
30754
30755
30756SWIGINTERN PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30757 PyObject *resultobj = 0;
30758 wxPyApp *arg1 = (wxPyApp *) 0 ;
30759 bool arg2 ;
30760 void *argp1 = 0 ;
30761 int res1 = 0 ;
30762 bool val2 ;
30763 int ecode2 = 0 ;
30764 PyObject * obj0 = 0 ;
30765 PyObject * obj1 = 0 ;
30766 char * kwnames[] = {
30767 (char *) "self",(char *) "flag", NULL
30768 };
30769
30770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) SWIG_fail;
30771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30772 if (!SWIG_IsOK(res1)) {
30773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetExitOnFrameDelete" "', expected argument " "1"" of type '" "wxPyApp *""'");
30774 }
30775 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30776 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30777 if (!SWIG_IsOK(ecode2)) {
30778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyApp_SetExitOnFrameDelete" "', expected argument " "2"" of type '" "bool""'");
30779 }
30780 arg2 = static_cast< bool >(val2);
30781 {
30782 PyThreadState* __tstate = wxPyBeginAllowThreads();
30783 (arg1)->SetExitOnFrameDelete(arg2);
30784 wxPyEndAllowThreads(__tstate);
30785 if (PyErr_Occurred()) SWIG_fail;
30786 }
30787 resultobj = SWIG_Py_Void();
30788 return resultobj;
30789fail:
30790 return NULL;
d55e5bfc
RD
30791}
30792
30793
1bd55598
RD
30794SWIGINTERN PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30795 PyObject *resultobj = 0;
30796 wxPyApp *arg1 = (wxPyApp *) 0 ;
30797 bool result;
30798 void *argp1 = 0 ;
30799 int res1 = 0 ;
30800 PyObject *swig_obj[1] ;
30801
30802 if (!args) SWIG_fail;
30803 swig_obj[0] = args;
30804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30805 if (!SWIG_IsOK(res1)) {
30806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetExitOnFrameDelete" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30807 }
30808 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30809 {
30810 PyThreadState* __tstate = wxPyBeginAllowThreads();
30811 result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete();
30812 wxPyEndAllowThreads(__tstate);
30813 if (PyErr_Occurred()) SWIG_fail;
30814 }
30815 {
30816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30817 }
30818 return resultobj;
30819fail:
30820 return NULL;
30821}
30822
30823
30824SWIGINTERN PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30825 PyObject *resultobj = 0;
30826 wxPyApp *arg1 = (wxPyApp *) 0 ;
30827 bool arg2 ;
30828 void *argp1 = 0 ;
30829 int res1 = 0 ;
30830 bool val2 ;
30831 int ecode2 = 0 ;
30832 PyObject * obj0 = 0 ;
30833 PyObject * obj1 = 0 ;
30834 char * kwnames[] = {
30835 (char *) "self",(char *) "flag", NULL
30836 };
30837
30838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) SWIG_fail;
30839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30840 if (!SWIG_IsOK(res1)) {
30841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetUseBestVisual" "', expected argument " "1"" of type '" "wxPyApp *""'");
30842 }
30843 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30844 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30845 if (!SWIG_IsOK(ecode2)) {
30846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyApp_SetUseBestVisual" "', expected argument " "2"" of type '" "bool""'");
30847 }
30848 arg2 = static_cast< bool >(val2);
30849 {
30850 PyThreadState* __tstate = wxPyBeginAllowThreads();
30851 (arg1)->SetUseBestVisual(arg2);
30852 wxPyEndAllowThreads(__tstate);
30853 if (PyErr_Occurred()) SWIG_fail;
30854 }
30855 resultobj = SWIG_Py_Void();
30856 return resultobj;
30857fail:
30858 return NULL;
d55e5bfc
RD
30859}
30860
30861
1bd55598
RD
30862SWIGINTERN PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30863 PyObject *resultobj = 0;
30864 wxPyApp *arg1 = (wxPyApp *) 0 ;
30865 bool result;
30866 void *argp1 = 0 ;
30867 int res1 = 0 ;
30868 PyObject *swig_obj[1] ;
30869
30870 if (!args) SWIG_fail;
30871 swig_obj[0] = args;
30872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30873 if (!SWIG_IsOK(res1)) {
30874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetUseBestVisual" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30875 }
30876 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30877 {
30878 PyThreadState* __tstate = wxPyBeginAllowThreads();
30879 result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual();
30880 wxPyEndAllowThreads(__tstate);
30881 if (PyErr_Occurred()) SWIG_fail;
30882 }
30883 {
30884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30885 }
30886 return resultobj;
30887fail:
30888 return NULL;
30889}
30890
30891
30892SWIGINTERN PyObject *_wrap_PyApp_SetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30893 PyObject *resultobj = 0;
30894 wxPyApp *arg1 = (wxPyApp *) 0 ;
30895 int arg2 ;
30896 void *argp1 = 0 ;
30897 int res1 = 0 ;
30898 int val2 ;
30899 int ecode2 = 0 ;
30900 PyObject * obj0 = 0 ;
30901 PyObject * obj1 = 0 ;
30902 char * kwnames[] = {
30903 (char *) "self",(char *) "mode", NULL
30904 };
30905
30906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) SWIG_fail;
30907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30908 if (!SWIG_IsOK(res1)) {
30909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetPrintMode" "', expected argument " "1"" of type '" "wxPyApp *""'");
30910 }
30911 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30912 ecode2 = SWIG_AsVal_int(obj1, &val2);
30913 if (!SWIG_IsOK(ecode2)) {
30914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyApp_SetPrintMode" "', expected argument " "2"" of type '" "int""'");
30915 }
30916 arg2 = static_cast< int >(val2);
30917 {
30918 PyThreadState* __tstate = wxPyBeginAllowThreads();
30919 (arg1)->SetPrintMode(arg2);
30920 wxPyEndAllowThreads(__tstate);
30921 if (PyErr_Occurred()) SWIG_fail;
30922 }
30923 resultobj = SWIG_Py_Void();
30924 return resultobj;
30925fail:
30926 return NULL;
d55e5bfc
RD
30927}
30928
30929
1bd55598
RD
30930SWIGINTERN PyObject *_wrap_PyApp_GetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30931 PyObject *resultobj = 0;
30932 wxPyApp *arg1 = (wxPyApp *) 0 ;
30933 int result;
30934 void *argp1 = 0 ;
30935 int res1 = 0 ;
30936 PyObject *swig_obj[1] ;
30937
30938 if (!args) SWIG_fail;
30939 swig_obj[0] = args;
30940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30941 if (!SWIG_IsOK(res1)) {
30942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetPrintMode" "', expected argument " "1"" of type '" "wxPyApp const *""'");
30943 }
30944 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30945 {
30946 PyThreadState* __tstate = wxPyBeginAllowThreads();
30947 result = (int)((wxPyApp const *)arg1)->GetPrintMode();
30948 wxPyEndAllowThreads(__tstate);
30949 if (PyErr_Occurred()) SWIG_fail;
30950 }
30951 resultobj = SWIG_From_int(static_cast< int >(result));
30952 return resultobj;
30953fail:
30954 return NULL;
30955}
30956
30957
30958SWIGINTERN PyObject *_wrap_PyApp_SetAssertMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30959 PyObject *resultobj = 0;
30960 wxPyApp *arg1 = (wxPyApp *) 0 ;
30961 int arg2 ;
30962 void *argp1 = 0 ;
30963 int res1 = 0 ;
30964 int val2 ;
30965 int ecode2 = 0 ;
30966 PyObject * obj0 = 0 ;
30967 PyObject * obj1 = 0 ;
30968 char * kwnames[] = {
30969 (char *) "self",(char *) "mode", NULL
30970 };
30971
30972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) SWIG_fail;
30973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
30974 if (!SWIG_IsOK(res1)) {
30975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetAssertMode" "', expected argument " "1"" of type '" "wxPyApp *""'");
30976 }
30977 arg1 = reinterpret_cast< wxPyApp * >(argp1);
30978 ecode2 = SWIG_AsVal_int(obj1, &val2);
30979 if (!SWIG_IsOK(ecode2)) {
30980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyApp_SetAssertMode" "', expected argument " "2"" of type '" "int""'");
30981 }
30982 arg2 = static_cast< int >(val2);
30983 {
30984 PyThreadState* __tstate = wxPyBeginAllowThreads();
30985 (arg1)->SetAssertMode(arg2);
30986 wxPyEndAllowThreads(__tstate);
30987 if (PyErr_Occurred()) SWIG_fail;
30988 }
30989 resultobj = SWIG_Py_Void();
30990 return resultobj;
30991fail:
30992 return NULL;
d55e5bfc
RD
30993}
30994
30995
1bd55598
RD
30996SWIGINTERN PyObject *_wrap_PyApp_GetAssertMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30997 PyObject *resultobj = 0;
30998 wxPyApp *arg1 = (wxPyApp *) 0 ;
30999 int result;
31000 void *argp1 = 0 ;
31001 int res1 = 0 ;
31002 PyObject *swig_obj[1] ;
31003
31004 if (!args) SWIG_fail;
31005 swig_obj[0] = args;
31006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
31007 if (!SWIG_IsOK(res1)) {
31008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetAssertMode" "', expected argument " "1"" of type '" "wxPyApp *""'");
31009 }
31010 arg1 = reinterpret_cast< wxPyApp * >(argp1);
31011 {
31012 PyThreadState* __tstate = wxPyBeginAllowThreads();
31013 result = (int)(arg1)->GetAssertMode();
31014 wxPyEndAllowThreads(__tstate);
31015 if (PyErr_Occurred()) SWIG_fail;
31016 }
31017 resultobj = SWIG_From_int(static_cast< int >(result));
31018 return resultobj;
31019fail:
31020 return NULL;
d55e5bfc
RD
31021}
31022
31023
1bd55598
RD
31024SWIGINTERN PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31025 PyObject *resultobj = 0;
31026 bool result;
31027
31028 if (!SWIG_Python_UnpackTuple(args,"PyApp_GetMacSupportPCMenuShortcuts",0,0,0)) SWIG_fail;
31029 {
31030 PyThreadState* __tstate = wxPyBeginAllowThreads();
31031 result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts();
31032 wxPyEndAllowThreads(__tstate);
31033 if (PyErr_Occurred()) SWIG_fail;
31034 }
31035 {
31036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31037 }
31038 return resultobj;
31039fail:
31040 return NULL;
d55e5bfc
RD
31041}
31042
31043
1bd55598
RD
31044SWIGINTERN PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31045 PyObject *resultobj = 0;
31046 long result;
31047
31048 if (!SWIG_Python_UnpackTuple(args,"PyApp_GetMacAboutMenuItemId",0,0,0)) SWIG_fail;
31049 {
31050 PyThreadState* __tstate = wxPyBeginAllowThreads();
31051 result = (long)wxPyApp::GetMacAboutMenuItemId();
31052 wxPyEndAllowThreads(__tstate);
31053 if (PyErr_Occurred()) SWIG_fail;
31054 }
31055 resultobj = SWIG_From_long(static_cast< long >(result));
31056 return resultobj;
31057fail:
31058 return NULL;
d55e5bfc
RD
31059}
31060
31061
1bd55598
RD
31062SWIGINTERN PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31063 PyObject *resultobj = 0;
31064 long result;
31065
31066 if (!SWIG_Python_UnpackTuple(args,"PyApp_GetMacPreferencesMenuItemId",0,0,0)) SWIG_fail;
31067 {
31068 PyThreadState* __tstate = wxPyBeginAllowThreads();
31069 result = (long)wxPyApp::GetMacPreferencesMenuItemId();
31070 wxPyEndAllowThreads(__tstate);
31071 if (PyErr_Occurred()) SWIG_fail;
31072 }
31073 resultobj = SWIG_From_long(static_cast< long >(result));
31074 return resultobj;
31075fail:
31076 return NULL;
d55e5bfc
RD
31077}
31078
31079
1bd55598
RD
31080SWIGINTERN PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31081 PyObject *resultobj = 0;
31082 long result;
31083
31084 if (!SWIG_Python_UnpackTuple(args,"PyApp_GetMacExitMenuItemId",0,0,0)) SWIG_fail;
31085 {
31086 PyThreadState* __tstate = wxPyBeginAllowThreads();
31087 result = (long)wxPyApp::GetMacExitMenuItemId();
31088 wxPyEndAllowThreads(__tstate);
31089 if (PyErr_Occurred()) SWIG_fail;
31090 }
31091 resultobj = SWIG_From_long(static_cast< long >(result));
31092 return resultobj;
31093fail:
31094 return NULL;
d55e5bfc
RD
31095}
31096
31097
1bd55598
RD
31098SWIGINTERN PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31099 PyObject *resultobj = 0;
31100 wxString result;
31101
31102 if (!SWIG_Python_UnpackTuple(args,"PyApp_GetMacHelpMenuTitleName",0,0,0)) SWIG_fail;
31103 {
31104 PyThreadState* __tstate = wxPyBeginAllowThreads();
31105 result = wxPyApp::GetMacHelpMenuTitleName();
31106 wxPyEndAllowThreads(__tstate);
31107 if (PyErr_Occurred()) SWIG_fail;
31108 }
31109 {
31110#if wxUSE_UNICODE
31111 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31112#else
31113 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31114#endif
31115 }
31116 return resultobj;
31117fail:
31118 return NULL;
d55e5bfc
RD
31119}
31120
31121
1bd55598
RD
31122SWIGINTERN PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31123 PyObject *resultobj = 0;
31124 bool arg1 ;
31125 bool val1 ;
31126 int ecode1 = 0 ;
31127 PyObject * obj0 = 0 ;
31128 char * kwnames[] = {
31129 (char *) "val", NULL
31130 };
31131
31132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) SWIG_fail;
31133 ecode1 = SWIG_AsVal_bool(obj0, &val1);
31134 if (!SWIG_IsOK(ecode1)) {
31135 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PyApp_SetMacSupportPCMenuShortcuts" "', expected argument " "1"" of type '" "bool""'");
31136 }
31137 arg1 = static_cast< bool >(val1);
31138 {
31139 PyThreadState* __tstate = wxPyBeginAllowThreads();
31140 wxPyApp::SetMacSupportPCMenuShortcuts(arg1);
31141 wxPyEndAllowThreads(__tstate);
31142 if (PyErr_Occurred()) SWIG_fail;
31143 }
31144 resultobj = SWIG_Py_Void();
31145 return resultobj;
31146fail:
31147 return NULL;
d55e5bfc
RD
31148}
31149
31150
1bd55598
RD
31151SWIGINTERN PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31152 PyObject *resultobj = 0;
31153 long arg1 ;
31154 long val1 ;
31155 int ecode1 = 0 ;
31156 PyObject * obj0 = 0 ;
31157 char * kwnames[] = {
31158 (char *) "val", NULL
31159 };
31160
31161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) SWIG_fail;
31162 ecode1 = SWIG_AsVal_long(obj0, &val1);
31163 if (!SWIG_IsOK(ecode1)) {
31164 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PyApp_SetMacAboutMenuItemId" "', expected argument " "1"" of type '" "long""'");
31165 }
31166 arg1 = static_cast< long >(val1);
31167 {
31168 PyThreadState* __tstate = wxPyBeginAllowThreads();
31169 wxPyApp::SetMacAboutMenuItemId(arg1);
31170 wxPyEndAllowThreads(__tstate);
31171 if (PyErr_Occurred()) SWIG_fail;
31172 }
31173 resultobj = SWIG_Py_Void();
31174 return resultobj;
31175fail:
31176 return NULL;
b1fcee84
RD
31177}
31178
31179
1bd55598
RD
31180SWIGINTERN PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31181 PyObject *resultobj = 0;
31182 long arg1 ;
31183 long val1 ;
31184 int ecode1 = 0 ;
31185 PyObject * obj0 = 0 ;
31186 char * kwnames[] = {
31187 (char *) "val", NULL
31188 };
31189
31190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) SWIG_fail;
31191 ecode1 = SWIG_AsVal_long(obj0, &val1);
31192 if (!SWIG_IsOK(ecode1)) {
31193 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PyApp_SetMacPreferencesMenuItemId" "', expected argument " "1"" of type '" "long""'");
31194 }
31195 arg1 = static_cast< long >(val1);
31196 {
31197 PyThreadState* __tstate = wxPyBeginAllowThreads();
31198 wxPyApp::SetMacPreferencesMenuItemId(arg1);
31199 wxPyEndAllowThreads(__tstate);
31200 if (PyErr_Occurred()) SWIG_fail;
31201 }
31202 resultobj = SWIG_Py_Void();
31203 return resultobj;
31204fail:
31205 return NULL;
d55e5bfc
RD
31206}
31207
31208
1bd55598
RD
31209SWIGINTERN PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31210 PyObject *resultobj = 0;
31211 long arg1 ;
31212 long val1 ;
31213 int ecode1 = 0 ;
31214 PyObject * obj0 = 0 ;
31215 char * kwnames[] = {
31216 (char *) "val", NULL
31217 };
31218
31219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) SWIG_fail;
31220 ecode1 = SWIG_AsVal_long(obj0, &val1);
31221 if (!SWIG_IsOK(ecode1)) {
31222 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PyApp_SetMacExitMenuItemId" "', expected argument " "1"" of type '" "long""'");
31223 }
31224 arg1 = static_cast< long >(val1);
31225 {
31226 PyThreadState* __tstate = wxPyBeginAllowThreads();
31227 wxPyApp::SetMacExitMenuItemId(arg1);
31228 wxPyEndAllowThreads(__tstate);
31229 if (PyErr_Occurred()) SWIG_fail;
31230 }
31231 resultobj = SWIG_Py_Void();
31232 return resultobj;
31233fail:
31234 return NULL;
d55e5bfc
RD
31235}
31236
31237
1bd55598
RD
31238SWIGINTERN PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31239 PyObject *resultobj = 0;
31240 wxString *arg1 = 0 ;
31241 bool temp1 = false ;
31242 PyObject * obj0 = 0 ;
31243 char * kwnames[] = {
31244 (char *) "val", NULL
31245 };
31246
31247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) SWIG_fail;
31248 {
31249 arg1 = wxString_in_helper(obj0);
31250 if (arg1 == NULL) SWIG_fail;
31251 temp1 = true;
31252 }
31253 {
31254 PyThreadState* __tstate = wxPyBeginAllowThreads();
31255 wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1);
31256 wxPyEndAllowThreads(__tstate);
31257 if (PyErr_Occurred()) SWIG_fail;
31258 }
31259 resultobj = SWIG_Py_Void();
31260 {
31261 if (temp1)
31262 delete arg1;
31263 }
31264 return resultobj;
31265fail:
31266 {
31267 if (temp1)
31268 delete arg1;
31269 }
31270 return NULL;
d55e5bfc
RD
31271}
31272
31273
1bd55598
RD
31274SWIGINTERN PyObject *_wrap_PyApp__BootstrapApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31275 PyObject *resultobj = 0;
31276 wxPyApp *arg1 = (wxPyApp *) 0 ;
31277 void *argp1 = 0 ;
31278 int res1 = 0 ;
31279 PyObject *swig_obj[1] ;
31280
31281 if (!args) SWIG_fail;
31282 swig_obj[0] = args;
31283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
31284 if (!SWIG_IsOK(res1)) {
31285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp__BootstrapApp" "', expected argument " "1"" of type '" "wxPyApp *""'");
31286 }
31287 arg1 = reinterpret_cast< wxPyApp * >(argp1);
31288 {
31289 PyThreadState* __tstate = wxPyBeginAllowThreads();
31290 (arg1)->_BootstrapApp();
31291 wxPyEndAllowThreads(__tstate);
31292 if (PyErr_Occurred()) SWIG_fail;
31293 }
31294 resultobj = SWIG_Py_Void();
31295 return resultobj;
31296fail:
31297 return NULL;
d55e5bfc
RD
31298}
31299
31300
1bd55598
RD
31301SWIGINTERN PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31302 PyObject *resultobj = 0;
31303 int result;
31304
31305 if (!SWIG_Python_UnpackTuple(args,"PyApp_GetComCtl32Version",0,0,0)) SWIG_fail;
31306 {
31307 PyThreadState* __tstate = wxPyBeginAllowThreads();
31308 result = (int)wxPyApp_GetComCtl32Version();
31309 wxPyEndAllowThreads(__tstate);
31310 if (PyErr_Occurred()) SWIG_fail;
31311 }
31312 resultobj = SWIG_From_int(static_cast< int >(result));
31313 return resultobj;
31314fail:
31315 return NULL;
412d302d
RD
31316}
31317
31318
33d6fd3b 31319SWIGINTERN PyObject *_wrap_PyApp_IsDisplayAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
fc46b7f3
RD
31320 PyObject *resultobj = 0;
31321 bool result;
31322
33d6fd3b 31323 if (!SWIG_Python_UnpackTuple(args,"PyApp_IsDisplayAvailable",0,0,0)) SWIG_fail;
fc46b7f3
RD
31324 {
31325 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 31326 result = (bool)wxPyApp_IsDisplayAvailable();
fc46b7f3
RD
31327 wxPyEndAllowThreads(__tstate);
31328 if (PyErr_Occurred()) SWIG_fail;
31329 }
31330 {
31331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31332 }
31333 return resultobj;
31334fail:
31335 return NULL;
31336}
31337
31338
1bd55598
RD
31339SWIGINTERN PyObject *PyApp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31340 PyObject *obj;
31341 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31342 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyApp, SWIG_NewClientData(obj));
31343 return SWIG_Py_Void();
d55e5bfc
RD
31344}
31345
1bd55598
RD
31346SWIGINTERN PyObject *PyApp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31347 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
31348}
31349
1bd55598
RD
31350SWIGINTERN PyObject *_wrap_Exit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31351 PyObject *resultobj = 0;
31352
31353 if (!SWIG_Python_UnpackTuple(args,"Exit",0,0,0)) SWIG_fail;
31354 {
31355 PyThreadState* __tstate = wxPyBeginAllowThreads();
31356 wxExit();
31357 wxPyEndAllowThreads(__tstate);
31358 if (PyErr_Occurred()) SWIG_fail;
31359 }
31360 resultobj = SWIG_Py_Void();
31361 return resultobj;
31362fail:
31363 return NULL;
d55e5bfc
RD
31364}
31365
31366
1bd55598
RD
31367SWIGINTERN PyObject *_wrap_Yield(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31368 PyObject *resultobj = 0;
31369 bool result;
31370
31371 if (!SWIG_Python_UnpackTuple(args,"Yield",0,0,0)) SWIG_fail;
31372 {
31373 PyThreadState* __tstate = wxPyBeginAllowThreads();
31374 result = (bool)wxYield();
31375 wxPyEndAllowThreads(__tstate);
31376 if (PyErr_Occurred()) SWIG_fail;
31377 }
31378 {
31379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31380 }
31381 return resultobj;
31382fail:
31383 return NULL;
d55e5bfc
RD
31384}
31385
31386
1bd55598
RD
31387SWIGINTERN PyObject *_wrap_YieldIfNeeded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31388 PyObject *resultobj = 0;
31389 bool result;
31390
31391 if (!SWIG_Python_UnpackTuple(args,"YieldIfNeeded",0,0,0)) SWIG_fail;
31392 {
31393 PyThreadState* __tstate = wxPyBeginAllowThreads();
31394 result = (bool)wxYieldIfNeeded();
31395 wxPyEndAllowThreads(__tstate);
31396 if (PyErr_Occurred()) SWIG_fail;
31397 }
31398 {
31399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31400 }
31401 return resultobj;
31402fail:
31403 return NULL;
31404}
31405
31406
31407SWIGINTERN PyObject *_wrap_SafeYield(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31408 PyObject *resultobj = 0;
31409 wxWindow *arg1 = (wxWindow *) NULL ;
31410 bool arg2 = (bool) false ;
31411 bool result;
31412 void *argp1 = 0 ;
31413 int res1 = 0 ;
31414 bool val2 ;
31415 int ecode2 = 0 ;
31416 PyObject * obj0 = 0 ;
31417 PyObject * obj1 = 0 ;
31418 char * kwnames[] = {
31419 (char *) "win",(char *) "onlyIfNeeded", NULL
31420 };
31421
31422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) SWIG_fail;
31423 if (obj0) {
31424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31425 if (!SWIG_IsOK(res1)) {
31426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeYield" "', expected argument " "1"" of type '" "wxWindow *""'");
36ed4f51 31427 }
1bd55598
RD
31428 arg1 = reinterpret_cast< wxWindow * >(argp1);
31429 }
31430 if (obj1) {
31431 ecode2 = SWIG_AsVal_bool(obj1, &val2);
31432 if (!SWIG_IsOK(ecode2)) {
31433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SafeYield" "', expected argument " "2"" of type '" "bool""'");
31434 }
31435 arg2 = static_cast< bool >(val2);
31436 }
31437 {
31438 PyThreadState* __tstate = wxPyBeginAllowThreads();
31439 result = (bool)wxSafeYield(arg1,arg2);
31440 wxPyEndAllowThreads(__tstate);
31441 if (PyErr_Occurred()) SWIG_fail;
31442 }
31443 {
31444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31445 }
31446 return resultobj;
31447fail:
31448 return NULL;
d55e5bfc
RD
31449}
31450
31451
1bd55598
RD
31452SWIGINTERN PyObject *_wrap_WakeUpIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31453 PyObject *resultobj = 0;
31454
31455 if (!SWIG_Python_UnpackTuple(args,"WakeUpIdle",0,0,0)) SWIG_fail;
31456 {
31457 PyThreadState* __tstate = wxPyBeginAllowThreads();
31458 wxWakeUpIdle();
31459 wxPyEndAllowThreads(__tstate);
31460 if (PyErr_Occurred()) SWIG_fail;
31461 }
31462 resultobj = SWIG_Py_Void();
31463 return resultobj;
31464fail:
31465 return NULL;
31466}
31467
31468
31469SWIGINTERN PyObject *_wrap_PostEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31470 PyObject *resultobj = 0;
31471 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
31472 wxEvent *arg2 = 0 ;
31473 void *argp1 = 0 ;
31474 int res1 = 0 ;
31475 void *argp2 = 0 ;
31476 int res2 = 0 ;
31477 PyObject * obj0 = 0 ;
31478 PyObject * obj1 = 0 ;
31479 char * kwnames[] = {
31480 (char *) "dest",(char *) "event", NULL
31481 };
31482
31483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) SWIG_fail;
31484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
31485 if (!SWIG_IsOK(res1)) {
31486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostEvent" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
31487 }
31488 arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
31489 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxEvent, 0 );
31490 if (!SWIG_IsOK(res2)) {
31491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
31492 }
31493 if (!argp2) {
31494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
31495 }
31496 arg2 = reinterpret_cast< wxEvent * >(argp2);
31497 {
31498 PyThreadState* __tstate = wxPyBeginAllowThreads();
31499 wxPostEvent(arg1,*arg2);
31500 wxPyEndAllowThreads(__tstate);
31501 if (PyErr_Occurred()) SWIG_fail;
31502 }
31503 resultobj = SWIG_Py_Void();
31504 return resultobj;
31505fail:
31506 return NULL;
d55e5bfc
RD
31507}
31508
31509
1bd55598
RD
31510SWIGINTERN PyObject *_wrap_App_CleanUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31511 PyObject *resultobj = 0;
31512
31513 if (!SWIG_Python_UnpackTuple(args,"App_CleanUp",0,0,0)) SWIG_fail;
31514 {
31515 PyThreadState* __tstate = wxPyBeginAllowThreads();
31516 wxApp_CleanUp();
31517 wxPyEndAllowThreads(__tstate);
31518 if (PyErr_Occurred()) SWIG_fail;
31519 }
31520 resultobj = SWIG_Py_Void();
31521 return resultobj;
31522fail:
31523 return NULL;
d55e5bfc
RD
31524}
31525
31526
1bd55598
RD
31527SWIGINTERN PyObject *_wrap_GetApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31528 PyObject *resultobj = 0;
31529 wxPyApp *result = 0 ;
31530
31531 if (!SWIG_Python_UnpackTuple(args,"GetApp",0,0,0)) SWIG_fail;
31532 {
31533 PyThreadState* __tstate = wxPyBeginAllowThreads();
31534 result = (wxPyApp *)wxPyGetApp();
31535 wxPyEndAllowThreads(__tstate);
31536 if (PyErr_Occurred()) SWIG_fail;
31537 }
31538 {
31539 resultobj = wxPyMake_wxObject(result, 0);
31540 }
31541 return resultobj;
31542fail:
31543 return NULL;
d55e5bfc
RD
31544}
31545
31546
1bd55598
RD
31547SWIGINTERN PyObject *_wrap_SetDefaultPyEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31548 PyObject *resultobj = 0;
31549 char *arg1 = (char *) 0 ;
31550 int res1 ;
31551 char *buf1 = 0 ;
31552 int alloc1 = 0 ;
31553 PyObject * obj0 = 0 ;
31554 char * kwnames[] = {
31555 (char *) "encoding", NULL
31556 };
31557
31558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetDefaultPyEncoding",kwnames,&obj0)) SWIG_fail;
31559 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
31560 if (!SWIG_IsOK(res1)) {
31561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetDefaultPyEncoding" "', expected argument " "1"" of type '" "char const *""'");
31562 }
31563 arg1 = buf1;
31564 {
31565 PyThreadState* __tstate = wxPyBeginAllowThreads();
31566 wxSetDefaultPyEncoding((char const *)arg1);
31567 wxPyEndAllowThreads(__tstate);
31568 if (PyErr_Occurred()) SWIG_fail;
31569 }
31570 resultobj = SWIG_Py_Void();
31571 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
31572 return resultobj;
31573fail:
31574 if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
31575 return NULL;
d55e5bfc
RD
31576}
31577
31578
1bd55598
RD
31579SWIGINTERN PyObject *_wrap_GetDefaultPyEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31580 PyObject *resultobj = 0;
31581 char *result = 0 ;
31582
31583 if (!SWIG_Python_UnpackTuple(args,"GetDefaultPyEncoding",0,0,0)) SWIG_fail;
31584 {
31585 PyThreadState* __tstate = wxPyBeginAllowThreads();
31586 result = (char *)wxGetDefaultPyEncoding();
31587 wxPyEndAllowThreads(__tstate);
31588 if (PyErr_Occurred()) SWIG_fail;
31589 }
31590 resultobj = SWIG_FromCharPtr(result);
31591 return resultobj;
31592fail:
31593 return NULL;
d55e5bfc
RD
31594}
31595
31596
1bd55598
RD
31597SWIGINTERN PyObject *_wrap_new_EventLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31598 PyObject *resultobj = 0;
31599 wxEventLoop *result = 0 ;
31600
31601 if (!SWIG_Python_UnpackTuple(args,"new_EventLoop",0,0,0)) SWIG_fail;
31602 {
31603 PyThreadState* __tstate = wxPyBeginAllowThreads();
31604 result = (wxEventLoop *)new wxEventLoop();
31605 wxPyEndAllowThreads(__tstate);
31606 if (PyErr_Occurred()) SWIG_fail;
31607 }
31608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEventLoop, SWIG_POINTER_NEW | 0 );
31609 return resultobj;
31610fail:
31611 return NULL;
d55e5bfc
RD
31612}
31613
31614
1bd55598
RD
31615SWIGINTERN PyObject *_wrap_delete_EventLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31616 PyObject *resultobj = 0;
31617 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
31618 void *argp1 = 0 ;
31619 int res1 = 0 ;
31620 PyObject *swig_obj[1] ;
31621
31622 if (!args) SWIG_fail;
31623 swig_obj[0] = args;
31624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoop, SWIG_POINTER_DISOWN | 0 );
31625 if (!SWIG_IsOK(res1)) {
31626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EventLoop" "', expected argument " "1"" of type '" "wxEventLoop *""'");
31627 }
31628 arg1 = reinterpret_cast< wxEventLoop * >(argp1);
31629 {
31630 PyThreadState* __tstate = wxPyBeginAllowThreads();
31631 delete arg1;
d55e5bfc 31632
1bd55598
RD
31633 wxPyEndAllowThreads(__tstate);
31634 if (PyErr_Occurred()) SWIG_fail;
31635 }
31636 resultobj = SWIG_Py_Void();
31637 return resultobj;
31638fail:
31639 return NULL;
d55e5bfc
RD
31640}
31641
31642
1bd55598
RD
31643SWIGINTERN PyObject *_wrap_EventLoop_Run(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31644 PyObject *resultobj = 0;
31645 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
31646 int result;
31647 void *argp1 = 0 ;
31648 int res1 = 0 ;
31649 PyObject *swig_obj[1] ;
31650
31651 if (!args) SWIG_fail;
31652 swig_obj[0] = args;
31653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
31654 if (!SWIG_IsOK(res1)) {
31655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_Run" "', expected argument " "1"" of type '" "wxEventLoop *""'");
31656 }
31657 arg1 = reinterpret_cast< wxEventLoop * >(argp1);
31658 {
31659 PyThreadState* __tstate = wxPyBeginAllowThreads();
31660 result = (int)(arg1)->Run();
31661 wxPyEndAllowThreads(__tstate);
31662 if (PyErr_Occurred()) SWIG_fail;
31663 }
31664 resultobj = SWIG_From_int(static_cast< int >(result));
31665 return resultobj;
31666fail:
31667 return NULL;
31668}
31669
31670
31671SWIGINTERN PyObject *_wrap_EventLoop_Exit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31672 PyObject *resultobj = 0;
31673 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
31674 int arg2 = (int) 0 ;
31675 void *argp1 = 0 ;
31676 int res1 = 0 ;
31677 int val2 ;
31678 int ecode2 = 0 ;
31679 PyObject * obj0 = 0 ;
31680 PyObject * obj1 = 0 ;
31681 char * kwnames[] = {
31682 (char *) "self",(char *) "rc", NULL
31683 };
31684
31685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) SWIG_fail;
31686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
31687 if (!SWIG_IsOK(res1)) {
31688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_Exit" "', expected argument " "1"" of type '" "wxEventLoop *""'");
31689 }
31690 arg1 = reinterpret_cast< wxEventLoop * >(argp1);
31691 if (obj1) {
31692 ecode2 = SWIG_AsVal_int(obj1, &val2);
31693 if (!SWIG_IsOK(ecode2)) {
31694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EventLoop_Exit" "', expected argument " "2"" of type '" "int""'");
31695 }
31696 arg2 = static_cast< int >(val2);
31697 }
31698 {
31699 PyThreadState* __tstate = wxPyBeginAllowThreads();
31700 (arg1)->Exit(arg2);
31701 wxPyEndAllowThreads(__tstate);
31702 if (PyErr_Occurred()) SWIG_fail;
31703 }
31704 resultobj = SWIG_Py_Void();
31705 return resultobj;
31706fail:
31707 return NULL;
d55e5bfc
RD
31708}
31709
31710
1bd55598
RD
31711SWIGINTERN PyObject *_wrap_EventLoop_Pending(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31712 PyObject *resultobj = 0;
31713 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
31714 bool result;
31715 void *argp1 = 0 ;
31716 int res1 = 0 ;
31717 PyObject *swig_obj[1] ;
31718
31719 if (!args) SWIG_fail;
31720 swig_obj[0] = args;
31721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
31722 if (!SWIG_IsOK(res1)) {
31723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_Pending" "', expected argument " "1"" of type '" "wxEventLoop const *""'");
31724 }
31725 arg1 = reinterpret_cast< wxEventLoop * >(argp1);
31726 {
31727 PyThreadState* __tstate = wxPyBeginAllowThreads();
31728 result = (bool)((wxEventLoop const *)arg1)->Pending();
31729 wxPyEndAllowThreads(__tstate);
31730 if (PyErr_Occurred()) SWIG_fail;
31731 }
31732 {
31733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31734 }
31735 return resultobj;
31736fail:
31737 return NULL;
d55e5bfc
RD
31738}
31739
31740
1bd55598
RD
31741SWIGINTERN PyObject *_wrap_EventLoop_Dispatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31742 PyObject *resultobj = 0;
31743 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
31744 bool result;
31745 void *argp1 = 0 ;
31746 int res1 = 0 ;
31747 PyObject *swig_obj[1] ;
31748
31749 if (!args) SWIG_fail;
31750 swig_obj[0] = args;
31751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
31752 if (!SWIG_IsOK(res1)) {
31753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_Dispatch" "', expected argument " "1"" of type '" "wxEventLoop *""'");
31754 }
31755 arg1 = reinterpret_cast< wxEventLoop * >(argp1);
31756 {
31757 PyThreadState* __tstate = wxPyBeginAllowThreads();
31758 result = (bool)(arg1)->Dispatch();
31759 wxPyEndAllowThreads(__tstate);
31760 if (PyErr_Occurred()) SWIG_fail;
31761 }
31762 {
31763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31764 }
31765 return resultobj;
31766fail:
31767 return NULL;
d55e5bfc
RD
31768}
31769
31770
1bd55598
RD
31771SWIGINTERN PyObject *_wrap_EventLoop_IsRunning(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31772 PyObject *resultobj = 0;
31773 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
31774 bool result;
31775 void *argp1 = 0 ;
31776 int res1 = 0 ;
31777 PyObject *swig_obj[1] ;
31778
31779 if (!args) SWIG_fail;
31780 swig_obj[0] = args;
31781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
31782 if (!SWIG_IsOK(res1)) {
31783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_IsRunning" "', expected argument " "1"" of type '" "wxEventLoop const *""'");
31784 }
31785 arg1 = reinterpret_cast< wxEventLoop * >(argp1);
31786 {
31787 PyThreadState* __tstate = wxPyBeginAllowThreads();
31788 result = (bool)((wxEventLoop const *)arg1)->IsRunning();
31789 wxPyEndAllowThreads(__tstate);
31790 if (PyErr_Occurred()) SWIG_fail;
31791 }
31792 {
31793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31794 }
31795 return resultobj;
31796fail:
31797 return NULL;
d55e5bfc
RD
31798}
31799
31800
1bd55598
RD
31801SWIGINTERN PyObject *_wrap_EventLoop_GetActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31802 PyObject *resultobj = 0;
31803 wxEventLoop *result = 0 ;
31804
31805 if (!SWIG_Python_UnpackTuple(args,"EventLoop_GetActive",0,0,0)) SWIG_fail;
31806 {
31807 PyThreadState* __tstate = wxPyBeginAllowThreads();
31808 result = (wxEventLoop *)wxEventLoop::GetActive();
31809 wxPyEndAllowThreads(__tstate);
31810 if (PyErr_Occurred()) SWIG_fail;
31811 }
31812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEventLoop, 0 | 0 );
31813 return resultobj;
31814fail:
31815 return NULL;
d55e5bfc
RD
31816}
31817
31818
1bd55598
RD
31819SWIGINTERN PyObject *_wrap_EventLoop_SetActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31820 PyObject *resultobj = 0;
31821 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
31822 void *argp1 = 0 ;
31823 int res1 = 0 ;
31824 PyObject * obj0 = 0 ;
31825 char * kwnames[] = {
31826 (char *) "loop", NULL
31827 };
31828
31829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) SWIG_fail;
31830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
31831 if (!SWIG_IsOK(res1)) {
31832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_SetActive" "', expected argument " "1"" of type '" "wxEventLoop *""'");
31833 }
31834 arg1 = reinterpret_cast< wxEventLoop * >(argp1);
31835 {
31836 PyThreadState* __tstate = wxPyBeginAllowThreads();
31837 wxEventLoop::SetActive(arg1);
31838 wxPyEndAllowThreads(__tstate);
31839 if (PyErr_Occurred()) SWIG_fail;
31840 }
31841 resultobj = SWIG_Py_Void();
31842 return resultobj;
31843fail:
31844 return NULL;
d55e5bfc
RD
31845}
31846
31847
1bd55598
RD
31848SWIGINTERN PyObject *EventLoop_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31849 PyObject *obj;
31850 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31851 SWIG_TypeNewClientData(SWIGTYPE_p_wxEventLoop, SWIG_NewClientData(obj));
31852 return SWIG_Py_Void();
d55e5bfc
RD
31853}
31854
1bd55598
RD
31855SWIGINTERN PyObject *EventLoop_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31856 return SWIG_Python_InitShadowInstance(args);
31857}
d55e5bfc 31858
1bd55598
RD
31859SWIGINTERN PyObject *_wrap_new_EventLoopActivator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31860 PyObject *resultobj = 0;
31861 wxEventLoop *arg1 = (wxEventLoop *) 0 ;
31862 wxEventLoopActivator *result = 0 ;
31863 void *argp1 = 0 ;
31864 int res1 = 0 ;
31865 PyObject * obj0 = 0 ;
31866 char * kwnames[] = {
31867 (char *) "evtLoop", NULL
31868 };
31869
31870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_EventLoopActivator",kwnames,&obj0)) SWIG_fail;
31871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
31872 if (!SWIG_IsOK(res1)) {
31873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EventLoopActivator" "', expected argument " "1"" of type '" "wxEventLoop *""'");
31874 }
31875 arg1 = reinterpret_cast< wxEventLoop * >(argp1);
31876 {
31877 PyThreadState* __tstate = wxPyBeginAllowThreads();
31878 result = (wxEventLoopActivator *)new wxEventLoopActivator(arg1);
31879 wxPyEndAllowThreads(__tstate);
31880 if (PyErr_Occurred()) SWIG_fail;
31881 }
31882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEventLoopActivator, SWIG_POINTER_NEW | 0 );
31883 return resultobj;
31884fail:
31885 return NULL;
d55e5bfc
RD
31886}
31887
31888
1bd55598
RD
31889SWIGINTERN PyObject *_wrap_delete_EventLoopActivator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31890 PyObject *resultobj = 0;
31891 wxEventLoopActivator *arg1 = (wxEventLoopActivator *) 0 ;
31892 void *argp1 = 0 ;
31893 int res1 = 0 ;
31894 PyObject *swig_obj[1] ;
31895
31896 if (!args) SWIG_fail;
31897 swig_obj[0] = args;
31898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoopActivator, SWIG_POINTER_DISOWN | 0 );
31899 if (!SWIG_IsOK(res1)) {
31900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EventLoopActivator" "', expected argument " "1"" of type '" "wxEventLoopActivator *""'");
31901 }
31902 arg1 = reinterpret_cast< wxEventLoopActivator * >(argp1);
31903 {
31904 PyThreadState* __tstate = wxPyBeginAllowThreads();
31905 delete arg1;
d55e5bfc 31906
1bd55598
RD
31907 wxPyEndAllowThreads(__tstate);
31908 if (PyErr_Occurred()) SWIG_fail;
31909 }
31910 resultobj = SWIG_Py_Void();
31911 return resultobj;
31912fail:
31913 return NULL;
31914}
31915
31916
31917SWIGINTERN PyObject *EventLoopActivator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31918 PyObject *obj;
31919 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31920 SWIG_TypeNewClientData(SWIGTYPE_p_wxEventLoopActivator, SWIG_NewClientData(obj));
31921 return SWIG_Py_Void();
31922}
31923
31924SWIGINTERN PyObject *EventLoopActivator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31925 return SWIG_Python_InitShadowInstance(args);
31926}
31927
31928SWIGINTERN PyObject *_wrap_new_AcceleratorEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31929 PyObject *resultobj = 0;
31930 int arg1 = (int) 0 ;
31931 int arg2 = (int) 0 ;
31932 int arg3 = (int) 0 ;
31933 wxAcceleratorEntry *result = 0 ;
31934 int val1 ;
31935 int ecode1 = 0 ;
31936 int val2 ;
31937 int ecode2 = 0 ;
31938 int val3 ;
31939 int ecode3 = 0 ;
31940 PyObject * obj0 = 0 ;
31941 PyObject * obj1 = 0 ;
31942 PyObject * obj2 = 0 ;
31943 char * kwnames[] = {
31944 (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL
31945 };
31946
31947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31948 if (obj0) {
31949 ecode1 = SWIG_AsVal_int(obj0, &val1);
31950 if (!SWIG_IsOK(ecode1)) {
31951 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_AcceleratorEntry" "', expected argument " "1"" of type '" "int""'");
31952 }
31953 arg1 = static_cast< int >(val1);
31954 }
31955 if (obj1) {
31956 ecode2 = SWIG_AsVal_int(obj1, &val2);
31957 if (!SWIG_IsOK(ecode2)) {
31958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AcceleratorEntry" "', expected argument " "2"" of type '" "int""'");
31959 }
31960 arg2 = static_cast< int >(val2);
31961 }
31962 if (obj2) {
31963 ecode3 = SWIG_AsVal_int(obj2, &val3);
31964 if (!SWIG_IsOK(ecode3)) {
31965 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_AcceleratorEntry" "', expected argument " "3"" of type '" "int""'");
31966 }
31967 arg3 = static_cast< int >(val3);
31968 }
31969 {
31970 PyThreadState* __tstate = wxPyBeginAllowThreads();
31971 result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3);
31972 wxPyEndAllowThreads(__tstate);
31973 if (PyErr_Occurred()) SWIG_fail;
31974 }
31975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_NEW | 0 );
31976 return resultobj;
31977fail:
31978 return NULL;
d55e5bfc
RD
31979}
31980
31981
1bd55598
RD
31982SWIGINTERN PyObject *_wrap_delete_AcceleratorEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31983 PyObject *resultobj = 0;
31984 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
31985 void *argp1 = 0 ;
31986 int res1 = 0 ;
31987 PyObject *swig_obj[1] ;
31988
31989 if (!args) SWIG_fail;
31990 swig_obj[0] = args;
31991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_DISOWN | 0 );
31992 if (!SWIG_IsOK(res1)) {
31993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AcceleratorEntry" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
31994 }
31995 arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
31996 {
31997 PyThreadState* __tstate = wxPyBeginAllowThreads();
31998 delete arg1;
d55e5bfc 31999
1bd55598
RD
32000 wxPyEndAllowThreads(__tstate);
32001 if (PyErr_Occurred()) SWIG_fail;
32002 }
32003 resultobj = SWIG_Py_Void();
32004 return resultobj;
32005fail:
32006 return NULL;
32007}
32008
32009
32010SWIGINTERN PyObject *_wrap_AcceleratorEntry_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32011 PyObject *resultobj = 0;
32012 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
32013 int arg2 ;
32014 int arg3 ;
32015 int arg4 ;
32016 void *argp1 = 0 ;
32017 int res1 = 0 ;
32018 int val2 ;
32019 int ecode2 = 0 ;
32020 int val3 ;
32021 int ecode3 = 0 ;
32022 int val4 ;
32023 int ecode4 = 0 ;
32024 PyObject * obj0 = 0 ;
32025 PyObject * obj1 = 0 ;
32026 PyObject * obj2 = 0 ;
32027 PyObject * obj3 = 0 ;
32028 char * kwnames[] = {
32029 (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL
32030 };
32031
32032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
32034 if (!SWIG_IsOK(res1)) {
32035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_Set" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
32036 }
32037 arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
32038 ecode2 = SWIG_AsVal_int(obj1, &val2);
32039 if (!SWIG_IsOK(ecode2)) {
32040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AcceleratorEntry_Set" "', expected argument " "2"" of type '" "int""'");
32041 }
32042 arg2 = static_cast< int >(val2);
32043 ecode3 = SWIG_AsVal_int(obj2, &val3);
32044 if (!SWIG_IsOK(ecode3)) {
32045 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AcceleratorEntry_Set" "', expected argument " "3"" of type '" "int""'");
32046 }
32047 arg3 = static_cast< int >(val3);
32048 ecode4 = SWIG_AsVal_int(obj3, &val4);
32049 if (!SWIG_IsOK(ecode4)) {
32050 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AcceleratorEntry_Set" "', expected argument " "4"" of type '" "int""'");
32051 }
32052 arg4 = static_cast< int >(val4);
32053 {
32054 PyThreadState* __tstate = wxPyBeginAllowThreads();
32055 (arg1)->Set(arg2,arg3,arg4);
32056 wxPyEndAllowThreads(__tstate);
32057 if (PyErr_Occurred()) SWIG_fail;
32058 }
32059 resultobj = SWIG_Py_Void();
32060 return resultobj;
32061fail:
32062 return NULL;
d55e5bfc
RD
32063}
32064
32065
ac5d357a
RD
32066SWIGINTERN PyObject *_wrap_AcceleratorEntry_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32067 PyObject *resultobj = 0;
32068 wxString *arg1 = 0 ;
32069 wxAcceleratorEntry *result = 0 ;
32070 bool temp1 = false ;
32071 PyObject * obj0 = 0 ;
32072 char * kwnames[] = {
32073 (char *) "str", NULL
32074 };
32075
32076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_Create",kwnames,&obj0)) SWIG_fail;
32077 {
32078 arg1 = wxString_in_helper(obj0);
32079 if (arg1 == NULL) SWIG_fail;
32080 temp1 = true;
32081 }
32082 {
32083 PyThreadState* __tstate = wxPyBeginAllowThreads();
32084 result = (wxAcceleratorEntry *)wxAcceleratorEntry::Create((wxString const &)*arg1);
32085 wxPyEndAllowThreads(__tstate);
32086 if (PyErr_Occurred()) SWIG_fail;
32087 }
32088 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_OWN | 0 );
32089 {
32090 if (temp1)
32091 delete arg1;
32092 }
32093 return resultobj;
32094fail:
32095 {
32096 if (temp1)
32097 delete arg1;
32098 }
32099 return NULL;
32100}
32101
32102
1bd55598
RD
32103SWIGINTERN PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32104 PyObject *resultobj = 0;
32105 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
32106 int result;
32107 void *argp1 = 0 ;
32108 int res1 = 0 ;
32109 PyObject *swig_obj[1] ;
32110
32111 if (!args) SWIG_fail;
32112 swig_obj[0] = args;
32113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
32114 if (!SWIG_IsOK(res1)) {
32115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_GetFlags" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
32116 }
32117 arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
32118 {
32119 PyThreadState* __tstate = wxPyBeginAllowThreads();
32120 result = (int)(arg1)->GetFlags();
32121 wxPyEndAllowThreads(__tstate);
32122 if (PyErr_Occurred()) SWIG_fail;
32123 }
32124 resultobj = SWIG_From_int(static_cast< int >(result));
32125 return resultobj;
32126fail:
32127 return NULL;
d55e5bfc
RD
32128}
32129
32130
1bd55598
RD
32131SWIGINTERN PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32132 PyObject *resultobj = 0;
32133 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
32134 int result;
32135 void *argp1 = 0 ;
32136 int res1 = 0 ;
32137 PyObject *swig_obj[1] ;
32138
32139 if (!args) SWIG_fail;
32140 swig_obj[0] = args;
32141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
32142 if (!SWIG_IsOK(res1)) {
32143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_GetKeyCode" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
32144 }
32145 arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
32146 {
32147 PyThreadState* __tstate = wxPyBeginAllowThreads();
32148 result = (int)(arg1)->GetKeyCode();
32149 wxPyEndAllowThreads(__tstate);
32150 if (PyErr_Occurred()) SWIG_fail;
32151 }
32152 resultobj = SWIG_From_int(static_cast< int >(result));
32153 return resultobj;
32154fail:
32155 return NULL;
d55e5bfc
RD
32156}
32157
32158
1bd55598
RD
32159SWIGINTERN PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32160 PyObject *resultobj = 0;
32161 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
32162 int result;
32163 void *argp1 = 0 ;
32164 int res1 = 0 ;
32165 PyObject *swig_obj[1] ;
32166
32167 if (!args) SWIG_fail;
32168 swig_obj[0] = args;
32169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
32170 if (!SWIG_IsOK(res1)) {
32171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_GetCommand" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
32172 }
32173 arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
32174 {
32175 PyThreadState* __tstate = wxPyBeginAllowThreads();
32176 result = (int)(arg1)->GetCommand();
32177 wxPyEndAllowThreads(__tstate);
32178 if (PyErr_Occurred()) SWIG_fail;
32179 }
32180 resultobj = SWIG_From_int(static_cast< int >(result));
32181 return resultobj;
32182fail:
32183 return NULL;
d55e5bfc
RD
32184}
32185
32186
ac5d357a
RD
32187SWIGINTERN PyObject *_wrap_AcceleratorEntry_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32188 PyObject *resultobj = 0;
32189 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
32190 bool result;
32191 void *argp1 = 0 ;
32192 int res1 = 0 ;
32193 PyObject *swig_obj[1] ;
32194
32195 if (!args) SWIG_fail;
32196 swig_obj[0] = args;
32197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
32198 if (!SWIG_IsOK(res1)) {
32199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_IsOk" "', expected argument " "1"" of type '" "wxAcceleratorEntry const *""'");
32200 }
32201 arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
32202 {
32203 PyThreadState* __tstate = wxPyBeginAllowThreads();
32204 result = (bool)((wxAcceleratorEntry const *)arg1)->IsOk();
32205 wxPyEndAllowThreads(__tstate);
32206 if (PyErr_Occurred()) SWIG_fail;
32207 }
32208 {
32209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32210 }
32211 return resultobj;
32212fail:
32213 return NULL;
32214}
32215
32216
32217SWIGINTERN PyObject *_wrap_AcceleratorEntry_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32218 PyObject *resultobj = 0;
32219 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
32220 wxString result;
32221 void *argp1 = 0 ;
32222 int res1 = 0 ;
32223 PyObject *swig_obj[1] ;
32224
32225 if (!args) SWIG_fail;
32226 swig_obj[0] = args;
32227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
32228 if (!SWIG_IsOK(res1)) {
32229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_ToString" "', expected argument " "1"" of type '" "wxAcceleratorEntry const *""'");
32230 }
32231 arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
32232 {
32233 PyThreadState* __tstate = wxPyBeginAllowThreads();
32234 result = ((wxAcceleratorEntry const *)arg1)->ToString();
32235 wxPyEndAllowThreads(__tstate);
32236 if (PyErr_Occurred()) SWIG_fail;
32237 }
32238 {
32239#if wxUSE_UNICODE
32240 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32241#else
32242 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32243#endif
32244 }
32245 return resultobj;
32246fail:
32247 return NULL;
32248}
32249
32250
32251SWIGINTERN PyObject *_wrap_AcceleratorEntry_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32252 PyObject *resultobj = 0;
32253 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
32254 wxString *arg2 = 0 ;
32255 bool result;
32256 void *argp1 = 0 ;
32257 int res1 = 0 ;
32258 bool temp2 = false ;
32259 PyObject * obj0 = 0 ;
32260 PyObject * obj1 = 0 ;
32261 char * kwnames[] = {
32262 (char *) "self",(char *) "str", NULL
32263 };
32264
32265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
32266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
32267 if (!SWIG_IsOK(res1)) {
32268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_FromString" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
32269 }
32270 arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
32271 {
32272 arg2 = wxString_in_helper(obj1);
32273 if (arg2 == NULL) SWIG_fail;
32274 temp2 = true;
32275 }
32276 {
32277 PyThreadState* __tstate = wxPyBeginAllowThreads();
32278 result = (bool)(arg1)->FromString((wxString const &)*arg2);
32279 wxPyEndAllowThreads(__tstate);
32280 if (PyErr_Occurred()) SWIG_fail;
32281 }
32282 {
32283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32284 }
32285 {
32286 if (temp2)
32287 delete arg2;
32288 }
32289 return resultobj;
32290fail:
32291 {
32292 if (temp2)
32293 delete arg2;
32294 }
32295 return NULL;
32296}
32297
32298
1bd55598
RD
32299SWIGINTERN PyObject *AcceleratorEntry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32300 PyObject *obj;
32301 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32302 SWIG_TypeNewClientData(SWIGTYPE_p_wxAcceleratorEntry, SWIG_NewClientData(obj));
32303 return SWIG_Py_Void();
d55e5bfc
RD
32304}
32305
1bd55598
RD
32306SWIGINTERN PyObject *AcceleratorEntry_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32307 return SWIG_Python_InitShadowInstance(args);
32308}
d55e5bfc 32309
1bd55598
RD
32310SWIGINTERN PyObject *_wrap_new_AcceleratorTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32311 PyObject *resultobj = 0;
32312 int arg1 ;
32313 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
32314 wxAcceleratorTable *result = 0 ;
32315 PyObject * obj0 = 0 ;
32316 char * kwnames[] = {
32317 (char *) "n", NULL
32318 };
32319
32320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) SWIG_fail;
32321 {
32322 arg2 = wxAcceleratorEntry_LIST_helper(obj0);
32323 if (arg2) arg1 = PyList_Size(obj0);
32324 else arg1 = 0;
32325 }
32326 {
32327 PyThreadState* __tstate = wxPyBeginAllowThreads();
32328 result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2);
32329 wxPyEndAllowThreads(__tstate);
32330 if (PyErr_Occurred()) SWIG_fail;
32331 }
32332 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_NEW | 0 );
32333 return resultobj;
32334fail:
32335 return NULL;
d55e5bfc
RD
32336}
32337
32338
1bd55598
RD
32339SWIGINTERN PyObject *_wrap_delete_AcceleratorTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32340 PyObject *resultobj = 0;
32341 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
32342 void *argp1 = 0 ;
32343 int res1 = 0 ;
32344 PyObject *swig_obj[1] ;
32345
32346 if (!args) SWIG_fail;
32347 swig_obj[0] = args;
32348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_DISOWN | 0 );
32349 if (!SWIG_IsOK(res1)) {
32350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AcceleratorTable" "', expected argument " "1"" of type '" "wxAcceleratorTable *""'");
32351 }
32352 arg1 = reinterpret_cast< wxAcceleratorTable * >(argp1);
32353 {
32354 PyThreadState* __tstate = wxPyBeginAllowThreads();
32355 delete arg1;
d55e5bfc 32356
1bd55598
RD
32357 wxPyEndAllowThreads(__tstate);
32358 if (PyErr_Occurred()) SWIG_fail;
32359 }
32360 resultobj = SWIG_Py_Void();
32361 return resultobj;
32362fail:
32363 return NULL;
d55e5bfc
RD
32364}
32365
32366
b39fe951 32367SWIGINTERN PyObject *_wrap_AcceleratorTable_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
32368 PyObject *resultobj = 0;
32369 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
32370 bool result;
32371 void *argp1 = 0 ;
32372 int res1 = 0 ;
32373 PyObject *swig_obj[1] ;
32374
32375 if (!args) SWIG_fail;
32376 swig_obj[0] = args;
32377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorTable, 0 | 0 );
32378 if (!SWIG_IsOK(res1)) {
b39fe951 32379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorTable_IsOk" "', expected argument " "1"" of type '" "wxAcceleratorTable const *""'");
1bd55598
RD
32380 }
32381 arg1 = reinterpret_cast< wxAcceleratorTable * >(argp1);
32382 {
32383 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 32384 result = (bool)((wxAcceleratorTable const *)arg1)->IsOk();
1bd55598
RD
32385 wxPyEndAllowThreads(__tstate);
32386 if (PyErr_Occurred()) SWIG_fail;
32387 }
32388 {
32389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32390 }
32391 return resultobj;
32392fail:
32393 return NULL;
d55e5bfc
RD
32394}
32395
32396
1bd55598
RD
32397SWIGINTERN PyObject *AcceleratorTable_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32398 PyObject *obj;
32399 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32400 SWIG_TypeNewClientData(SWIGTYPE_p_wxAcceleratorTable, SWIG_NewClientData(obj));
32401 return SWIG_Py_Void();
d55e5bfc
RD
32402}
32403
1bd55598
RD
32404SWIGINTERN PyObject *AcceleratorTable_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32405 return SWIG_Python_InitShadowInstance(args);
32406}
d55e5bfc 32407
1bd55598
RD
32408SWIGINTERN int NullAcceleratorTable_set(PyObject *) {
32409 SWIG_Error(SWIG_AttributeError,"Variable NullAcceleratorTable is read-only.");
32410 return 1;
d55e5bfc
RD
32411}
32412
32413
1bd55598
RD
32414SWIGINTERN PyObject *NullAcceleratorTable_get(void) {
32415 PyObject *pyobj = 0;
32416
32417 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0 );
32418 return pyobj;
d55e5bfc
RD
32419}
32420
32421
1bd55598
RD
32422SWIGINTERN PyObject *_wrap_GetAccelFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32423 PyObject *resultobj = 0;
32424 wxString *arg1 = 0 ;
32425 wxAcceleratorEntry *result = 0 ;
32426 bool temp1 = false ;
32427 PyObject * obj0 = 0 ;
32428 char * kwnames[] = {
32429 (char *) "label", NULL
32430 };
32431
32432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) SWIG_fail;
32433 {
32434 arg1 = wxString_in_helper(obj0);
32435 if (arg1 == NULL) SWIG_fail;
32436 temp1 = true;
32437 }
32438 {
32439 PyThreadState* __tstate = wxPyBeginAllowThreads();
32440 result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1);
32441 wxPyEndAllowThreads(__tstate);
32442 if (PyErr_Occurred()) SWIG_fail;
32443 }
32444 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
32445 {
32446 if (temp1)
32447 delete arg1;
32448 }
32449 return resultobj;
32450fail:
32451 {
32452 if (temp1)
32453 delete arg1;
32454 }
32455 return NULL;
d55e5bfc
RD
32456}
32457
32458
1bd55598
RD
32459SWIGINTERN int PanelNameStr_set(PyObject *) {
32460 SWIG_Error(SWIG_AttributeError,"Variable PanelNameStr is read-only.");
32461 return 1;
d55e5bfc
RD
32462}
32463
32464
1bd55598
RD
32465SWIGINTERN PyObject *PanelNameStr_get(void) {
32466 PyObject *pyobj = 0;
32467
32468 {
32469#if wxUSE_UNICODE
32470 pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
32471#else
32472 pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
32473#endif
32474 }
32475 return pyobj;
d55e5bfc
RD
32476}
32477
32478
1bd55598
RD
32479SWIGINTERN PyObject *_wrap_new_VisualAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32480 PyObject *resultobj = 0;
32481 wxVisualAttributes *result = 0 ;
32482
32483 if (!SWIG_Python_UnpackTuple(args,"new_VisualAttributes",0,0,0)) SWIG_fail;
32484 {
32485 PyThreadState* __tstate = wxPyBeginAllowThreads();
32486 result = (wxVisualAttributes *)new_wxVisualAttributes();
32487 wxPyEndAllowThreads(__tstate);
32488 if (PyErr_Occurred()) SWIG_fail;
32489 }
32490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_NEW | 0 );
32491 return resultobj;
32492fail:
32493 return NULL;
d55e5bfc
RD
32494}
32495
32496
1bd55598
RD
32497SWIGINTERN PyObject *_wrap_delete_VisualAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32498 PyObject *resultobj = 0;
32499 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
32500 void *argp1 = 0 ;
32501 int res1 = 0 ;
32502 PyObject *swig_obj[1] ;
32503
32504 if (!args) SWIG_fail;
32505 swig_obj[0] = args;
32506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_DISOWN | 0 );
32507 if (!SWIG_IsOK(res1)) {
32508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VisualAttributes" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
32509 }
32510 arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
32511 {
32512 PyThreadState* __tstate = wxPyBeginAllowThreads();
32513 delete_wxVisualAttributes(arg1);
d55e5bfc 32514
1bd55598
RD
32515 wxPyEndAllowThreads(__tstate);
32516 if (PyErr_Occurred()) SWIG_fail;
32517 }
32518 resultobj = SWIG_Py_Void();
32519 return resultobj;
32520fail:
32521 return NULL;
32522}
32523
32524
32525SWIGINTERN PyObject *_wrap_VisualAttributes_font_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32526 PyObject *resultobj = 0;
32527 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
32528 wxFont *arg2 = (wxFont *) 0 ;
32529 void *argp1 = 0 ;
32530 int res1 = 0 ;
32531 void *argp2 = 0 ;
32532 int res2 = 0 ;
32533 PyObject *swig_obj[2] ;
32534
32535 if (!SWIG_Python_UnpackTuple(args,"VisualAttributes_font_set",2,2,swig_obj)) SWIG_fail;
32536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, 0 | 0 );
32537 if (!SWIG_IsOK(res1)) {
32538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VisualAttributes_font_set" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
32539 }
32540 arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
32541 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32542 if (!SWIG_IsOK(res2)) {
32543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VisualAttributes_font_set" "', expected argument " "2"" of type '" "wxFont *""'");
32544 }
32545 arg2 = reinterpret_cast< wxFont * >(argp2);
32546 if (arg1) (arg1)->font = *arg2;
32547
32548 resultobj = SWIG_Py_Void();
32549 return resultobj;
32550fail:
32551 return NULL;
d55e5bfc
RD
32552}
32553
32554
1bd55598
RD
32555SWIGINTERN PyObject *_wrap_VisualAttributes_font_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32556 PyObject *resultobj = 0;
32557 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
32558 wxFont *result = 0 ;
32559 void *argp1 = 0 ;
32560 int res1 = 0 ;
32561 PyObject *swig_obj[1] ;
32562
32563 if (!args) SWIG_fail;
32564 swig_obj[0] = args;
32565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, 0 | 0 );
32566 if (!SWIG_IsOK(res1)) {
32567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VisualAttributes_font_get" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
32568 }
32569 arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
32570 result = (wxFont *)& ((arg1)->font);
32571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32572 return resultobj;
32573fail:
32574 return NULL;
32575}
32576
32577
32578SWIGINTERN PyObject *_wrap_VisualAttributes_colFg_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32579 PyObject *resultobj = 0;
32580 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
32581 wxColour *arg2 = (wxColour *) 0 ;
32582 void *argp1 = 0 ;
32583 int res1 = 0 ;
32584 void *argp2 = 0 ;
32585 int res2 = 0 ;
32586 PyObject *swig_obj[2] ;
32587
32588 if (!SWIG_Python_UnpackTuple(args,"VisualAttributes_colFg_set",2,2,swig_obj)) SWIG_fail;
32589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, 0 | 0 );
32590 if (!SWIG_IsOK(res1)) {
32591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VisualAttributes_colFg_set" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
32592 }
32593 arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
32594 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxColour, 0 | 0 );
32595 if (!SWIG_IsOK(res2)) {
32596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VisualAttributes_colFg_set" "', expected argument " "2"" of type '" "wxColour *""'");
32597 }
32598 arg2 = reinterpret_cast< wxColour * >(argp2);
32599 if (arg1) (arg1)->colFg = *arg2;
32600
32601 resultobj = SWIG_Py_Void();
32602 return resultobj;
32603fail:
32604 return NULL;
d55e5bfc
RD
32605}
32606
32607
1bd55598
RD
32608SWIGINTERN PyObject *_wrap_VisualAttributes_colFg_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32609 PyObject *resultobj = 0;
32610 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
32611 wxColour *result = 0 ;
32612 void *argp1 = 0 ;
32613 int res1 = 0 ;
32614 PyObject *swig_obj[1] ;
32615
32616 if (!args) SWIG_fail;
32617 swig_obj[0] = args;
32618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, 0 | 0 );
32619 if (!SWIG_IsOK(res1)) {
32620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VisualAttributes_colFg_get" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
32621 }
32622 arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
32623 result = (wxColour *)& ((arg1)->colFg);
32624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32625 return resultobj;
32626fail:
32627 return NULL;
32628}
32629
32630
32631SWIGINTERN PyObject *_wrap_VisualAttributes_colBg_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32632 PyObject *resultobj = 0;
32633 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
32634 wxColour *arg2 = (wxColour *) 0 ;
32635 void *argp1 = 0 ;
32636 int res1 = 0 ;
32637 void *argp2 = 0 ;
32638 int res2 = 0 ;
32639 PyObject *swig_obj[2] ;
32640
32641 if (!SWIG_Python_UnpackTuple(args,"VisualAttributes_colBg_set",2,2,swig_obj)) SWIG_fail;
32642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, 0 | 0 );
32643 if (!SWIG_IsOK(res1)) {
32644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VisualAttributes_colBg_set" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
32645 }
32646 arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
32647 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxColour, 0 | 0 );
32648 if (!SWIG_IsOK(res2)) {
32649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VisualAttributes_colBg_set" "', expected argument " "2"" of type '" "wxColour *""'");
32650 }
32651 arg2 = reinterpret_cast< wxColour * >(argp2);
32652 if (arg1) (arg1)->colBg = *arg2;
32653
32654 resultobj = SWIG_Py_Void();
32655 return resultobj;
32656fail:
32657 return NULL;
d55e5bfc
RD
32658}
32659
32660
1bd55598
RD
32661SWIGINTERN PyObject *_wrap_VisualAttributes_colBg_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32662 PyObject *resultobj = 0;
32663 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
32664 wxColour *result = 0 ;
32665 void *argp1 = 0 ;
32666 int res1 = 0 ;
32667 PyObject *swig_obj[1] ;
32668
32669 if (!args) SWIG_fail;
32670 swig_obj[0] = args;
32671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, 0 | 0 );
32672 if (!SWIG_IsOK(res1)) {
32673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VisualAttributes_colBg_get" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
32674 }
32675 arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
32676 result = (wxColour *)& ((arg1)->colBg);
32677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32678 return resultobj;
32679fail:
32680 return NULL;
32681}
32682
32683
32684SWIGINTERN PyObject *VisualAttributes_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32685 PyObject *obj;
32686 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32687 SWIG_TypeNewClientData(SWIGTYPE_p_wxVisualAttributes, SWIG_NewClientData(obj));
32688 return SWIG_Py_Void();
32689}
32690
32691SWIGINTERN PyObject *VisualAttributes_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32692 return SWIG_Python_InitShadowInstance(args);
32693}
32694
32695SWIGINTERN PyObject *_wrap_new_Window(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32696 PyObject *resultobj = 0;
32697 wxWindow *arg1 = (wxWindow *) 0 ;
32698 int arg2 = (int) (int)-1 ;
32699 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32700 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32701 wxSize const &arg4_defvalue = wxDefaultSize ;
32702 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32703 long arg5 = (long) 0 ;
32704 wxString const &arg6_defvalue = wxPyPanelNameStr ;
32705 wxString *arg6 = (wxString *) &arg6_defvalue ;
32706 wxWindow *result = 0 ;
32707 void *argp1 = 0 ;
32708 int res1 = 0 ;
32709 int val2 ;
32710 int ecode2 = 0 ;
32711 wxPoint temp3 ;
32712 wxSize temp4 ;
32713 long val5 ;
32714 int ecode5 = 0 ;
32715 bool temp6 = false ;
32716 PyObject * obj0 = 0 ;
32717 PyObject * obj1 = 0 ;
32718 PyObject * obj2 = 0 ;
32719 PyObject * obj3 = 0 ;
32720 PyObject * obj4 = 0 ;
32721 PyObject * obj5 = 0 ;
32722 char * kwnames[] = {
32723 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
32724 };
32725
32726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32728 if (!SWIG_IsOK(res1)) {
32729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Window" "', expected argument " "1"" of type '" "wxWindow *""'");
32730 }
32731 arg1 = reinterpret_cast< wxWindow * >(argp1);
32732 if (obj1) {
32733 ecode2 = SWIG_AsVal_int(obj1, &val2);
32734 if (!SWIG_IsOK(ecode2)) {
32735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Window" "', expected argument " "2"" of type '" "int""'");
32736 }
32737 arg2 = static_cast< int >(val2);
32738 }
32739 if (obj2) {
d55e5bfc 32740 {
1bd55598
RD
32741 arg3 = &temp3;
32742 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 32743 }
1bd55598
RD
32744 }
32745 if (obj3) {
d55e5bfc 32746 {
1bd55598
RD
32747 arg4 = &temp4;
32748 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 32749 }
1bd55598
RD
32750 }
32751 if (obj4) {
32752 ecode5 = SWIG_AsVal_long(obj4, &val5);
32753 if (!SWIG_IsOK(ecode5)) {
32754 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Window" "', expected argument " "5"" of type '" "long""'");
32755 }
32756 arg5 = static_cast< long >(val5);
32757 }
32758 if (obj5) {
d55e5bfc 32759 {
1bd55598
RD
32760 arg6 = wxString_in_helper(obj5);
32761 if (arg6 == NULL) SWIG_fail;
32762 temp6 = true;
d55e5bfc 32763 }
1bd55598
RD
32764 }
32765 {
32766 if (!wxPyCheckForApp()) SWIG_fail;
32767 PyThreadState* __tstate = wxPyBeginAllowThreads();
32768 result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
32769 wxPyEndAllowThreads(__tstate);
32770 if (PyErr_Occurred()) SWIG_fail;
32771 }
32772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindow, SWIG_POINTER_NEW | 0 );
32773 {
32774 if (temp6)
32775 delete arg6;
32776 }
32777 return resultobj;
32778fail:
32779 {
32780 if (temp6)
32781 delete arg6;
32782 }
32783 return NULL;
d55e5bfc
RD
32784}
32785
32786
1bd55598
RD
32787SWIGINTERN PyObject *_wrap_new_PreWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32788 PyObject *resultobj = 0;
32789 wxWindow *result = 0 ;
32790
32791 if (!SWIG_Python_UnpackTuple(args,"new_PreWindow",0,0,0)) SWIG_fail;
32792 {
32793 if (!wxPyCheckForApp()) SWIG_fail;
32794 PyThreadState* __tstate = wxPyBeginAllowThreads();
32795 result = (wxWindow *)new wxWindow();
32796 wxPyEndAllowThreads(__tstate);
32797 if (PyErr_Occurred()) SWIG_fail;
32798 }
32799 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindow, SWIG_POINTER_OWN | 0 );
32800 return resultobj;
32801fail:
32802 return NULL;
32803}
32804
32805
32806SWIGINTERN PyObject *_wrap_Window_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32807 PyObject *resultobj = 0;
32808 wxWindow *arg1 = (wxWindow *) 0 ;
32809 wxWindow *arg2 = (wxWindow *) 0 ;
32810 int arg3 = (int) (int)-1 ;
32811 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32812 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32813 wxSize const &arg5_defvalue = wxDefaultSize ;
32814 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32815 long arg6 = (long) 0 ;
32816 wxString const &arg7_defvalue = wxPyPanelNameStr ;
32817 wxString *arg7 = (wxString *) &arg7_defvalue ;
32818 bool result;
32819 void *argp1 = 0 ;
32820 int res1 = 0 ;
32821 void *argp2 = 0 ;
32822 int res2 = 0 ;
32823 int val3 ;
32824 int ecode3 = 0 ;
32825 wxPoint temp4 ;
32826 wxSize temp5 ;
32827 long val6 ;
32828 int ecode6 = 0 ;
32829 bool temp7 = false ;
32830 PyObject * obj0 = 0 ;
32831 PyObject * obj1 = 0 ;
32832 PyObject * obj2 = 0 ;
32833 PyObject * obj3 = 0 ;
32834 PyObject * obj4 = 0 ;
32835 PyObject * obj5 = 0 ;
32836 PyObject * obj6 = 0 ;
32837 char * kwnames[] = {
32838 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
32839 };
32840
32841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32843 if (!SWIG_IsOK(res1)) {
32844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
32845 }
32846 arg1 = reinterpret_cast< wxWindow * >(argp1);
32847 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32848 if (!SWIG_IsOK(res2)) {
32849 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32850 }
32851 arg2 = reinterpret_cast< wxWindow * >(argp2);
32852 if (obj2) {
32853 ecode3 = SWIG_AsVal_int(obj2, &val3);
32854 if (!SWIG_IsOK(ecode3)) {
32855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_Create" "', expected argument " "3"" of type '" "int""'");
32856 }
32857 arg3 = static_cast< int >(val3);
32858 }
32859 if (obj3) {
d55e5bfc 32860 {
1bd55598
RD
32861 arg4 = &temp4;
32862 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 32863 }
1bd55598
RD
32864 }
32865 if (obj4) {
d55e5bfc 32866 {
1bd55598
RD
32867 arg5 = &temp5;
32868 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 32869 }
1bd55598
RD
32870 }
32871 if (obj5) {
32872 ecode6 = SWIG_AsVal_long(obj5, &val6);
32873 if (!SWIG_IsOK(ecode6)) {
32874 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Window_Create" "', expected argument " "6"" of type '" "long""'");
32875 }
32876 arg6 = static_cast< long >(val6);
32877 }
32878 if (obj6) {
d55e5bfc 32879 {
1bd55598
RD
32880 arg7 = wxString_in_helper(obj6);
32881 if (arg7 == NULL) SWIG_fail;
32882 temp7 = true;
d55e5bfc 32883 }
1bd55598
RD
32884 }
32885 {
32886 PyThreadState* __tstate = wxPyBeginAllowThreads();
32887 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
32888 wxPyEndAllowThreads(__tstate);
32889 if (PyErr_Occurred()) SWIG_fail;
32890 }
32891 {
32892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32893 }
32894 {
32895 if (temp7)
32896 delete arg7;
32897 }
32898 return resultobj;
32899fail:
32900 {
32901 if (temp7)
32902 delete arg7;
32903 }
32904 return NULL;
32905}
32906
32907
32908SWIGINTERN PyObject *_wrap_Window_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32909 PyObject *resultobj = 0;
32910 wxWindow *arg1 = (wxWindow *) 0 ;
32911 bool arg2 = (bool) false ;
32912 bool result;
32913 void *argp1 = 0 ;
32914 int res1 = 0 ;
32915 bool val2 ;
32916 int ecode2 = 0 ;
32917 PyObject * obj0 = 0 ;
32918 PyObject * obj1 = 0 ;
32919 char * kwnames[] = {
32920 (char *) "self",(char *) "force", NULL
32921 };
32922
32923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) SWIG_fail;
32924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32925 if (!SWIG_IsOK(res1)) {
32926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Close" "', expected argument " "1"" of type '" "wxWindow *""'");
32927 }
32928 arg1 = reinterpret_cast< wxWindow * >(argp1);
32929 if (obj1) {
32930 ecode2 = SWIG_AsVal_bool(obj1, &val2);
32931 if (!SWIG_IsOK(ecode2)) {
32932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Close" "', expected argument " "2"" of type '" "bool""'");
32933 }
32934 arg2 = static_cast< bool >(val2);
32935 }
32936 {
32937 PyThreadState* __tstate = wxPyBeginAllowThreads();
32938 result = (bool)(arg1)->Close(arg2);
32939 wxPyEndAllowThreads(__tstate);
32940 if (PyErr_Occurred()) SWIG_fail;
32941 }
32942 {
32943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32944 }
32945 return resultobj;
32946fail:
32947 return NULL;
d55e5bfc
RD
32948}
32949
32950
1bd55598
RD
32951SWIGINTERN PyObject *_wrap_Window_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32952 PyObject *resultobj = 0;
32953 wxWindow *arg1 = (wxWindow *) 0 ;
32954 bool result;
32955 void *argp1 = 0 ;
32956 int res1 = 0 ;
32957 PyObject *swig_obj[1] ;
32958
32959 if (!args) SWIG_fail;
32960 swig_obj[0] = args;
32961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32962 if (!SWIG_IsOK(res1)) {
32963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Destroy" "', expected argument " "1"" of type '" "wxWindow *""'");
32964 }
32965 arg1 = reinterpret_cast< wxWindow * >(argp1);
32966 {
32967 PyThreadState* __tstate = wxPyBeginAllowThreads();
32968 result = (bool)(arg1)->Destroy();
32969 wxPyEndAllowThreads(__tstate);
32970 if (PyErr_Occurred()) SWIG_fail;
32971 }
32972 {
32973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32974 }
32975 return resultobj;
32976fail:
32977 return NULL;
d55e5bfc
RD
32978}
32979
32980
1bd55598
RD
32981SWIGINTERN PyObject *_wrap_Window_DestroyChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32982 PyObject *resultobj = 0;
32983 wxWindow *arg1 = (wxWindow *) 0 ;
32984 bool result;
32985 void *argp1 = 0 ;
32986 int res1 = 0 ;
32987 PyObject *swig_obj[1] ;
32988
32989 if (!args) SWIG_fail;
32990 swig_obj[0] = args;
32991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32992 if (!SWIG_IsOK(res1)) {
32993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_DestroyChildren" "', expected argument " "1"" of type '" "wxWindow *""'");
32994 }
32995 arg1 = reinterpret_cast< wxWindow * >(argp1);
32996 {
32997 PyThreadState* __tstate = wxPyBeginAllowThreads();
32998 result = (bool)(arg1)->DestroyChildren();
32999 wxPyEndAllowThreads(__tstate);
33000 if (PyErr_Occurred()) SWIG_fail;
33001 }
33002 {
33003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33004 }
33005 return resultobj;
33006fail:
33007 return NULL;
d55e5bfc
RD
33008}
33009
33010
1bd55598
RD
33011SWIGINTERN PyObject *_wrap_Window_IsBeingDeleted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33012 PyObject *resultobj = 0;
33013 wxWindow *arg1 = (wxWindow *) 0 ;
33014 bool result;
33015 void *argp1 = 0 ;
33016 int res1 = 0 ;
33017 PyObject *swig_obj[1] ;
33018
33019 if (!args) SWIG_fail;
33020 swig_obj[0] = args;
33021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33022 if (!SWIG_IsOK(res1)) {
33023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsBeingDeleted" "', expected argument " "1"" of type '" "wxWindow const *""'");
33024 }
33025 arg1 = reinterpret_cast< wxWindow * >(argp1);
33026 {
33027 PyThreadState* __tstate = wxPyBeginAllowThreads();
33028 result = (bool)((wxWindow const *)arg1)->IsBeingDeleted();
33029 wxPyEndAllowThreads(__tstate);
33030 if (PyErr_Occurred()) SWIG_fail;
33031 }
33032 {
33033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33034 }
33035 return resultobj;
33036fail:
33037 return NULL;
33038}
33039
33040
33041SWIGINTERN PyObject *_wrap_Window_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33042 PyObject *resultobj = 0;
33043 wxWindow *arg1 = (wxWindow *) 0 ;
33044 wxString *arg2 = 0 ;
33045 void *argp1 = 0 ;
33046 int res1 = 0 ;
33047 bool temp2 = false ;
33048 PyObject * obj0 = 0 ;
33049 PyObject * obj1 = 0 ;
33050 char * kwnames[] = {
33051 (char *) "self",(char *) "label", NULL
33052 };
33053
33054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33056 if (!SWIG_IsOK(res1)) {
33057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetLabel" "', expected argument " "1"" of type '" "wxWindow *""'");
33058 }
33059 arg1 = reinterpret_cast< wxWindow * >(argp1);
33060 {
33061 arg2 = wxString_in_helper(obj1);
33062 if (arg2 == NULL) SWIG_fail;
33063 temp2 = true;
33064 }
33065 {
33066 PyThreadState* __tstate = wxPyBeginAllowThreads();
33067 (arg1)->SetLabel((wxString const &)*arg2);
33068 wxPyEndAllowThreads(__tstate);
33069 if (PyErr_Occurred()) SWIG_fail;
33070 }
33071 resultobj = SWIG_Py_Void();
33072 {
33073 if (temp2)
33074 delete arg2;
33075 }
33076 return resultobj;
33077fail:
33078 {
33079 if (temp2)
33080 delete arg2;
33081 }
33082 return NULL;
d55e5bfc
RD
33083}
33084
33085
1bd55598
RD
33086SWIGINTERN PyObject *_wrap_Window_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33087 PyObject *resultobj = 0;
33088 wxWindow *arg1 = (wxWindow *) 0 ;
33089 wxString result;
33090 void *argp1 = 0 ;
33091 int res1 = 0 ;
33092 PyObject *swig_obj[1] ;
33093
33094 if (!args) SWIG_fail;
33095 swig_obj[0] = args;
33096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33097 if (!SWIG_IsOK(res1)) {
33098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetLabel" "', expected argument " "1"" of type '" "wxWindow const *""'");
33099 }
33100 arg1 = reinterpret_cast< wxWindow * >(argp1);
33101 {
33102 PyThreadState* __tstate = wxPyBeginAllowThreads();
33103 result = ((wxWindow const *)arg1)->GetLabel();
33104 wxPyEndAllowThreads(__tstate);
33105 if (PyErr_Occurred()) SWIG_fail;
33106 }
33107 {
33108#if wxUSE_UNICODE
33109 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33110#else
33111 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33112#endif
33113 }
33114 return resultobj;
33115fail:
33116 return NULL;
33117}
33118
33119
33120SWIGINTERN PyObject *_wrap_Window_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33121 PyObject *resultobj = 0;
33122 wxWindow *arg1 = (wxWindow *) 0 ;
33123 wxString *arg2 = 0 ;
33124 void *argp1 = 0 ;
33125 int res1 = 0 ;
33126 bool temp2 = false ;
33127 PyObject * obj0 = 0 ;
33128 PyObject * obj1 = 0 ;
33129 char * kwnames[] = {
33130 (char *) "self",(char *) "name", NULL
33131 };
33132
33133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) SWIG_fail;
33134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33135 if (!SWIG_IsOK(res1)) {
33136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetName" "', expected argument " "1"" of type '" "wxWindow *""'");
33137 }
33138 arg1 = reinterpret_cast< wxWindow * >(argp1);
33139 {
33140 arg2 = wxString_in_helper(obj1);
33141 if (arg2 == NULL) SWIG_fail;
33142 temp2 = true;
33143 }
33144 {
33145 PyThreadState* __tstate = wxPyBeginAllowThreads();
33146 (arg1)->SetName((wxString const &)*arg2);
33147 wxPyEndAllowThreads(__tstate);
33148 if (PyErr_Occurred()) SWIG_fail;
33149 }
33150 resultobj = SWIG_Py_Void();
33151 {
33152 if (temp2)
33153 delete arg2;
33154 }
33155 return resultobj;
33156fail:
33157 {
33158 if (temp2)
33159 delete arg2;
33160 }
33161 return NULL;
d55e5bfc
RD
33162}
33163
33164
1bd55598
RD
33165SWIGINTERN PyObject *_wrap_Window_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33166 PyObject *resultobj = 0;
33167 wxWindow *arg1 = (wxWindow *) 0 ;
33168 wxString result;
33169 void *argp1 = 0 ;
33170 int res1 = 0 ;
33171 PyObject *swig_obj[1] ;
33172
33173 if (!args) SWIG_fail;
33174 swig_obj[0] = args;
33175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33176 if (!SWIG_IsOK(res1)) {
33177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetName" "', expected argument " "1"" of type '" "wxWindow const *""'");
33178 }
33179 arg1 = reinterpret_cast< wxWindow * >(argp1);
33180 {
33181 PyThreadState* __tstate = wxPyBeginAllowThreads();
33182 result = ((wxWindow const *)arg1)->GetName();
33183 wxPyEndAllowThreads(__tstate);
33184 if (PyErr_Occurred()) SWIG_fail;
33185 }
33186 {
33187#if wxUSE_UNICODE
33188 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33189#else
33190 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33191#endif
33192 }
33193 return resultobj;
33194fail:
33195 return NULL;
33196}
33197
33198
33199SWIGINTERN PyObject *_wrap_Window_SetWindowVariant(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33200 PyObject *resultobj = 0;
33201 wxWindow *arg1 = (wxWindow *) 0 ;
33202 wxWindowVariant arg2 ;
33203 void *argp1 = 0 ;
33204 int res1 = 0 ;
33205 int val2 ;
33206 int ecode2 = 0 ;
33207 PyObject * obj0 = 0 ;
33208 PyObject * obj1 = 0 ;
33209 char * kwnames[] = {
33210 (char *) "self",(char *) "variant", NULL
33211 };
33212
33213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) SWIG_fail;
33214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33215 if (!SWIG_IsOK(res1)) {
33216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetWindowVariant" "', expected argument " "1"" of type '" "wxWindow *""'");
33217 }
33218 arg1 = reinterpret_cast< wxWindow * >(argp1);
33219 ecode2 = SWIG_AsVal_int(obj1, &val2);
33220 if (!SWIG_IsOK(ecode2)) {
33221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetWindowVariant" "', expected argument " "2"" of type '" "wxWindowVariant""'");
33222 }
33223 arg2 = static_cast< wxWindowVariant >(val2);
33224 {
33225 PyThreadState* __tstate = wxPyBeginAllowThreads();
33226 (arg1)->SetWindowVariant(arg2);
33227 wxPyEndAllowThreads(__tstate);
33228 if (PyErr_Occurred()) SWIG_fail;
33229 }
33230 resultobj = SWIG_Py_Void();
33231 return resultobj;
33232fail:
33233 return NULL;
d55e5bfc
RD
33234}
33235
33236
1bd55598
RD
33237SWIGINTERN PyObject *_wrap_Window_GetWindowVariant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33238 PyObject *resultobj = 0;
33239 wxWindow *arg1 = (wxWindow *) 0 ;
33240 wxWindowVariant result;
33241 void *argp1 = 0 ;
33242 int res1 = 0 ;
33243 PyObject *swig_obj[1] ;
33244
33245 if (!args) SWIG_fail;
33246 swig_obj[0] = args;
33247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33248 if (!SWIG_IsOK(res1)) {
33249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetWindowVariant" "', expected argument " "1"" of type '" "wxWindow const *""'");
33250 }
33251 arg1 = reinterpret_cast< wxWindow * >(argp1);
33252 {
33253 PyThreadState* __tstate = wxPyBeginAllowThreads();
33254 result = (wxWindowVariant)((wxWindow const *)arg1)->GetWindowVariant();
33255 wxPyEndAllowThreads(__tstate);
33256 if (PyErr_Occurred()) SWIG_fail;
33257 }
33258 resultobj = SWIG_From_int(static_cast< int >(result));
33259 return resultobj;
33260fail:
33261 return NULL;
33262}
33263
33264
33265SWIGINTERN PyObject *_wrap_Window_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33266 PyObject *resultobj = 0;
33267 wxWindow *arg1 = (wxWindow *) 0 ;
33268 int arg2 ;
33269 void *argp1 = 0 ;
33270 int res1 = 0 ;
33271 int val2 ;
33272 int ecode2 = 0 ;
33273 PyObject * obj0 = 0 ;
33274 PyObject * obj1 = 0 ;
33275 char * kwnames[] = {
33276 (char *) "self",(char *) "winid", NULL
33277 };
33278
33279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33281 if (!SWIG_IsOK(res1)) {
33282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetId" "', expected argument " "1"" of type '" "wxWindow *""'");
33283 }
33284 arg1 = reinterpret_cast< wxWindow * >(argp1);
33285 ecode2 = SWIG_AsVal_int(obj1, &val2);
33286 if (!SWIG_IsOK(ecode2)) {
33287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetId" "', expected argument " "2"" of type '" "int""'");
33288 }
33289 arg2 = static_cast< int >(val2);
33290 {
33291 PyThreadState* __tstate = wxPyBeginAllowThreads();
33292 (arg1)->SetId(arg2);
33293 wxPyEndAllowThreads(__tstate);
33294 if (PyErr_Occurred()) SWIG_fail;
33295 }
33296 resultobj = SWIG_Py_Void();
33297 return resultobj;
33298fail:
33299 return NULL;
d55e5bfc
RD
33300}
33301
33302
1bd55598
RD
33303SWIGINTERN PyObject *_wrap_Window_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33304 PyObject *resultobj = 0;
33305 wxWindow *arg1 = (wxWindow *) 0 ;
33306 int result;
33307 void *argp1 = 0 ;
33308 int res1 = 0 ;
33309 PyObject *swig_obj[1] ;
33310
33311 if (!args) SWIG_fail;
33312 swig_obj[0] = args;
33313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33314 if (!SWIG_IsOK(res1)) {
33315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetId" "', expected argument " "1"" of type '" "wxWindow const *""'");
33316 }
33317 arg1 = reinterpret_cast< wxWindow * >(argp1);
33318 {
33319 PyThreadState* __tstate = wxPyBeginAllowThreads();
33320 result = (int)((wxWindow const *)arg1)->GetId();
33321 wxPyEndAllowThreads(__tstate);
33322 if (PyErr_Occurred()) SWIG_fail;
33323 }
33324 resultobj = SWIG_From_int(static_cast< int >(result));
33325 return resultobj;
33326fail:
33327 return NULL;
d55e5bfc
RD
33328}
33329
33330
1bd55598
RD
33331SWIGINTERN PyObject *_wrap_Window_NewControlId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33332 PyObject *resultobj = 0;
33333 int result;
33334
33335 if (!SWIG_Python_UnpackTuple(args,"Window_NewControlId",0,0,0)) SWIG_fail;
33336 {
33337 PyThreadState* __tstate = wxPyBeginAllowThreads();
33338 result = (int)wxWindow::NewControlId();
33339 wxPyEndAllowThreads(__tstate);
33340 if (PyErr_Occurred()) SWIG_fail;
33341 }
33342 resultobj = SWIG_From_int(static_cast< int >(result));
33343 return resultobj;
33344fail:
33345 return NULL;
33346}
33347
33348
33349SWIGINTERN PyObject *_wrap_Window_NextControlId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33350 PyObject *resultobj = 0;
33351 int arg1 ;
33352 int result;
33353 int val1 ;
33354 int ecode1 = 0 ;
33355 PyObject * obj0 = 0 ;
33356 char * kwnames[] = {
33357 (char *) "winid", NULL
33358 };
33359
33360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) SWIG_fail;
33361 ecode1 = SWIG_AsVal_int(obj0, &val1);
33362 if (!SWIG_IsOK(ecode1)) {
33363 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Window_NextControlId" "', expected argument " "1"" of type '" "int""'");
33364 }
33365 arg1 = static_cast< int >(val1);
33366 {
33367 PyThreadState* __tstate = wxPyBeginAllowThreads();
33368 result = (int)wxWindow::NextControlId(arg1);
33369 wxPyEndAllowThreads(__tstate);
33370 if (PyErr_Occurred()) SWIG_fail;
33371 }
33372 resultobj = SWIG_From_int(static_cast< int >(result));
33373 return resultobj;
33374fail:
33375 return NULL;
33376}
33377
33378
33379SWIGINTERN PyObject *_wrap_Window_PrevControlId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33380 PyObject *resultobj = 0;
33381 int arg1 ;
33382 int result;
33383 int val1 ;
33384 int ecode1 = 0 ;
33385 PyObject * obj0 = 0 ;
33386 char * kwnames[] = {
33387 (char *) "winid", NULL
33388 };
33389
33390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) SWIG_fail;
33391 ecode1 = SWIG_AsVal_int(obj0, &val1);
33392 if (!SWIG_IsOK(ecode1)) {
33393 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Window_PrevControlId" "', expected argument " "1"" of type '" "int""'");
33394 }
33395 arg1 = static_cast< int >(val1);
33396 {
33397 PyThreadState* __tstate = wxPyBeginAllowThreads();
33398 result = (int)wxWindow::PrevControlId(arg1);
33399 wxPyEndAllowThreads(__tstate);
33400 if (PyErr_Occurred()) SWIG_fail;
33401 }
33402 resultobj = SWIG_From_int(static_cast< int >(result));
33403 return resultobj;
33404fail:
33405 return NULL;
33406}
33407
33408
ac5d357a
RD
33409SWIGINTERN PyObject *_wrap_Window_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33410 PyObject *resultobj = 0;
33411 wxWindow *arg1 = (wxWindow *) 0 ;
33412 wxLayoutDirection result;
33413 void *argp1 = 0 ;
33414 int res1 = 0 ;
33415 PyObject *swig_obj[1] ;
33416
33417 if (!args) SWIG_fail;
33418 swig_obj[0] = args;
33419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33420 if (!SWIG_IsOK(res1)) {
33421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetLayoutDirection" "', expected argument " "1"" of type '" "wxWindow const *""'");
33422 }
33423 arg1 = reinterpret_cast< wxWindow * >(argp1);
33424 {
33425 PyThreadState* __tstate = wxPyBeginAllowThreads();
994453b8 33426 result = (wxLayoutDirection)((wxWindow const *)arg1)->GetLayoutDirection();
ac5d357a
RD
33427 wxPyEndAllowThreads(__tstate);
33428 if (PyErr_Occurred()) SWIG_fail;
33429 }
994453b8 33430 resultobj = SWIG_From_int(static_cast< int >(result));
ac5d357a
RD
33431 return resultobj;
33432fail:
33433 return NULL;
33434}
33435
33436
33437SWIGINTERN PyObject *_wrap_Window_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33438 PyObject *resultobj = 0;
33439 wxWindow *arg1 = (wxWindow *) 0 ;
33440 wxLayoutDirection arg2 ;
33441 void *argp1 = 0 ;
33442 int res1 = 0 ;
994453b8
RD
33443 int val2 ;
33444 int ecode2 = 0 ;
ac5d357a
RD
33445 PyObject * obj0 = 0 ;
33446 PyObject * obj1 = 0 ;
33447 char * kwnames[] = {
33448 (char *) "self",(char *) "dir", NULL
33449 };
33450
33451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
33452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33453 if (!SWIG_IsOK(res1)) {
33454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetLayoutDirection" "', expected argument " "1"" of type '" "wxWindow *""'");
33455 }
33456 arg1 = reinterpret_cast< wxWindow * >(argp1);
994453b8
RD
33457 ecode2 = SWIG_AsVal_int(obj1, &val2);
33458 if (!SWIG_IsOK(ecode2)) {
33459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
33460 }
33461 arg2 = static_cast< wxLayoutDirection >(val2);
ac5d357a
RD
33462 {
33463 PyThreadState* __tstate = wxPyBeginAllowThreads();
33464 (arg1)->SetLayoutDirection(arg2);
33465 wxPyEndAllowThreads(__tstate);
33466 if (PyErr_Occurred()) SWIG_fail;
33467 }
33468 resultobj = SWIG_Py_Void();
33469 return resultobj;
33470fail:
33471 return NULL;
33472}
33473
33474
33475SWIGINTERN PyObject *_wrap_Window_AdjustForLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33476 PyObject *resultobj = 0;
33477 wxWindow *arg1 = (wxWindow *) 0 ;
33478 int arg2 ;
33479 int arg3 ;
33480 int arg4 ;
33481 int result;
33482 void *argp1 = 0 ;
33483 int res1 = 0 ;
33484 int val2 ;
33485 int ecode2 = 0 ;
33486 int val3 ;
33487 int ecode3 = 0 ;
33488 int val4 ;
33489 int ecode4 = 0 ;
33490 PyObject * obj0 = 0 ;
33491 PyObject * obj1 = 0 ;
33492 PyObject * obj2 = 0 ;
33493 PyObject * obj3 = 0 ;
33494 char * kwnames[] = {
33495 (char *) "self",(char *) "x",(char *) "width",(char *) "widthTotal", NULL
33496 };
33497
33498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_AdjustForLayoutDirection",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33500 if (!SWIG_IsOK(res1)) {
33501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_AdjustForLayoutDirection" "', expected argument " "1"" of type '" "wxWindow const *""'");
33502 }
33503 arg1 = reinterpret_cast< wxWindow * >(argp1);
33504 ecode2 = SWIG_AsVal_int(obj1, &val2);
33505 if (!SWIG_IsOK(ecode2)) {
33506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_AdjustForLayoutDirection" "', expected argument " "2"" of type '" "int""'");
33507 }
33508 arg2 = static_cast< int >(val2);
33509 ecode3 = SWIG_AsVal_int(obj2, &val3);
33510 if (!SWIG_IsOK(ecode3)) {
33511 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_AdjustForLayoutDirection" "', expected argument " "3"" of type '" "int""'");
33512 }
33513 arg3 = static_cast< int >(val3);
33514 ecode4 = SWIG_AsVal_int(obj3, &val4);
33515 if (!SWIG_IsOK(ecode4)) {
33516 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_AdjustForLayoutDirection" "', expected argument " "4"" of type '" "int""'");
33517 }
33518 arg4 = static_cast< int >(val4);
33519 {
33520 PyThreadState* __tstate = wxPyBeginAllowThreads();
33521 result = (int)((wxWindow const *)arg1)->AdjustForLayoutDirection(arg2,arg3,arg4);
33522 wxPyEndAllowThreads(__tstate);
33523 if (PyErr_Occurred()) SWIG_fail;
33524 }
33525 resultobj = SWIG_From_int(static_cast< int >(result));
33526 return resultobj;
33527fail:
33528 return NULL;
33529}
33530
33531
1bd55598
RD
33532SWIGINTERN PyObject *_wrap_Window_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33533 PyObject *resultobj = 0;
33534 wxWindow *arg1 = (wxWindow *) 0 ;
33535 wxSize *arg2 = 0 ;
33536 void *argp1 = 0 ;
33537 int res1 = 0 ;
33538 wxSize temp2 ;
33539 PyObject * obj0 = 0 ;
33540 PyObject * obj1 = 0 ;
33541 char * kwnames[] = {
33542 (char *) "self",(char *) "size", NULL
33543 };
33544
33545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
33546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33547 if (!SWIG_IsOK(res1)) {
33548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSize" "', expected argument " "1"" of type '" "wxWindow *""'");
33549 }
33550 arg1 = reinterpret_cast< wxWindow * >(argp1);
33551 {
33552 arg2 = &temp2;
33553 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
33554 }
33555 {
33556 PyThreadState* __tstate = wxPyBeginAllowThreads();
33557 (arg1)->SetSize((wxSize const &)*arg2);
33558 wxPyEndAllowThreads(__tstate);
33559 if (PyErr_Occurred()) SWIG_fail;
33560 }
33561 resultobj = SWIG_Py_Void();
33562 return resultobj;
33563fail:
33564 return NULL;
33565}
33566
33567
33568SWIGINTERN PyObject *_wrap_Window_SetDimensions(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33569 PyObject *resultobj = 0;
33570 wxWindow *arg1 = (wxWindow *) 0 ;
33571 int arg2 ;
33572 int arg3 ;
33573 int arg4 ;
33574 int arg5 ;
33575 int arg6 = (int) wxSIZE_AUTO ;
33576 void *argp1 = 0 ;
33577 int res1 = 0 ;
33578 int val2 ;
33579 int ecode2 = 0 ;
33580 int val3 ;
33581 int ecode3 = 0 ;
33582 int val4 ;
33583 int ecode4 = 0 ;
33584 int val5 ;
33585 int ecode5 = 0 ;
33586 int val6 ;
33587 int ecode6 = 0 ;
33588 PyObject * obj0 = 0 ;
33589 PyObject * obj1 = 0 ;
33590 PyObject * obj2 = 0 ;
33591 PyObject * obj3 = 0 ;
33592 PyObject * obj4 = 0 ;
33593 PyObject * obj5 = 0 ;
33594 char * kwnames[] = {
33595 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
33596 };
33597
33598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33600 if (!SWIG_IsOK(res1)) {
33601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetDimensions" "', expected argument " "1"" of type '" "wxWindow *""'");
33602 }
33603 arg1 = reinterpret_cast< wxWindow * >(argp1);
33604 ecode2 = SWIG_AsVal_int(obj1, &val2);
33605 if (!SWIG_IsOK(ecode2)) {
33606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetDimensions" "', expected argument " "2"" of type '" "int""'");
33607 }
33608 arg2 = static_cast< int >(val2);
33609 ecode3 = SWIG_AsVal_int(obj2, &val3);
33610 if (!SWIG_IsOK(ecode3)) {
33611 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetDimensions" "', expected argument " "3"" of type '" "int""'");
33612 }
33613 arg3 = static_cast< int >(val3);
33614 ecode4 = SWIG_AsVal_int(obj3, &val4);
33615 if (!SWIG_IsOK(ecode4)) {
33616 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_SetDimensions" "', expected argument " "4"" of type '" "int""'");
33617 }
33618 arg4 = static_cast< int >(val4);
33619 ecode5 = SWIG_AsVal_int(obj4, &val5);
33620 if (!SWIG_IsOK(ecode5)) {
33621 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Window_SetDimensions" "', expected argument " "5"" of type '" "int""'");
33622 }
33623 arg5 = static_cast< int >(val5);
33624 if (obj5) {
33625 ecode6 = SWIG_AsVal_int(obj5, &val6);
33626 if (!SWIG_IsOK(ecode6)) {
33627 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Window_SetDimensions" "', expected argument " "6"" of type '" "int""'");
33628 }
33629 arg6 = static_cast< int >(val6);
33630 }
33631 {
33632 PyThreadState* __tstate = wxPyBeginAllowThreads();
33633 (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6);
33634 wxPyEndAllowThreads(__tstate);
33635 if (PyErr_Occurred()) SWIG_fail;
33636 }
33637 resultobj = SWIG_Py_Void();
33638 return resultobj;
33639fail:
33640 return NULL;
33641}
33642
33643
33644SWIGINTERN PyObject *_wrap_Window_SetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33645 PyObject *resultobj = 0;
33646 wxWindow *arg1 = (wxWindow *) 0 ;
33647 wxRect *arg2 = 0 ;
33648 int arg3 = (int) wxSIZE_AUTO ;
33649 void *argp1 = 0 ;
33650 int res1 = 0 ;
33651 wxRect temp2 ;
33652 int val3 ;
33653 int ecode3 = 0 ;
33654 PyObject * obj0 = 0 ;
33655 PyObject * obj1 = 0 ;
33656 PyObject * obj2 = 0 ;
33657 char * kwnames[] = {
33658 (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL
33659 };
33660
33661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33663 if (!SWIG_IsOK(res1)) {
33664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetRect" "', expected argument " "1"" of type '" "wxWindow *""'");
33665 }
33666 arg1 = reinterpret_cast< wxWindow * >(argp1);
33667 {
33668 arg2 = &temp2;
33669 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33670 }
33671 if (obj2) {
33672 ecode3 = SWIG_AsVal_int(obj2, &val3);
33673 if (!SWIG_IsOK(ecode3)) {
33674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetRect" "', expected argument " "3"" of type '" "int""'");
33675 }
33676 arg3 = static_cast< int >(val3);
33677 }
33678 {
33679 PyThreadState* __tstate = wxPyBeginAllowThreads();
33680 (arg1)->SetSize((wxRect const &)*arg2,arg3);
33681 wxPyEndAllowThreads(__tstate);
33682 if (PyErr_Occurred()) SWIG_fail;
33683 }
33684 resultobj = SWIG_Py_Void();
33685 return resultobj;
33686fail:
33687 return NULL;
33688}
33689
33690
33691SWIGINTERN PyObject *_wrap_Window_SetSizeWH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33692 PyObject *resultobj = 0;
33693 wxWindow *arg1 = (wxWindow *) 0 ;
33694 int arg2 ;
33695 int arg3 ;
33696 void *argp1 = 0 ;
33697 int res1 = 0 ;
33698 int val2 ;
33699 int ecode2 = 0 ;
33700 int val3 ;
33701 int ecode3 = 0 ;
33702 PyObject * obj0 = 0 ;
33703 PyObject * obj1 = 0 ;
33704 PyObject * obj2 = 0 ;
33705 char * kwnames[] = {
33706 (char *) "self",(char *) "width",(char *) "height", NULL
33707 };
33708
33709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33711 if (!SWIG_IsOK(res1)) {
33712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSizeWH" "', expected argument " "1"" of type '" "wxWindow *""'");
33713 }
33714 arg1 = reinterpret_cast< wxWindow * >(argp1);
33715 ecode2 = SWIG_AsVal_int(obj1, &val2);
33716 if (!SWIG_IsOK(ecode2)) {
33717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetSizeWH" "', expected argument " "2"" of type '" "int""'");
33718 }
33719 arg2 = static_cast< int >(val2);
33720 ecode3 = SWIG_AsVal_int(obj2, &val3);
33721 if (!SWIG_IsOK(ecode3)) {
33722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetSizeWH" "', expected argument " "3"" of type '" "int""'");
33723 }
33724 arg3 = static_cast< int >(val3);
33725 {
33726 PyThreadState* __tstate = wxPyBeginAllowThreads();
33727 (arg1)->SetSize(arg2,arg3);
33728 wxPyEndAllowThreads(__tstate);
33729 if (PyErr_Occurred()) SWIG_fail;
33730 }
33731 resultobj = SWIG_Py_Void();
33732 return resultobj;
33733fail:
33734 return NULL;
33735}
33736
33737
33738SWIGINTERN PyObject *_wrap_Window_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33739 PyObject *resultobj = 0;
33740 wxWindow *arg1 = (wxWindow *) 0 ;
33741 wxPoint *arg2 = 0 ;
33742 int arg3 = (int) wxSIZE_USE_EXISTING ;
33743 void *argp1 = 0 ;
33744 int res1 = 0 ;
33745 wxPoint temp2 ;
33746 int val3 ;
33747 int ecode3 = 0 ;
33748 PyObject * obj0 = 0 ;
33749 PyObject * obj1 = 0 ;
33750 PyObject * obj2 = 0 ;
33751 char * kwnames[] = {
33752 (char *) "self",(char *) "pt",(char *) "flags", NULL
33753 };
33754
33755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33757 if (!SWIG_IsOK(res1)) {
33758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Move" "', expected argument " "1"" of type '" "wxWindow *""'");
33759 }
33760 arg1 = reinterpret_cast< wxWindow * >(argp1);
33761 {
33762 arg2 = &temp2;
33763 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33764 }
33765 if (obj2) {
33766 ecode3 = SWIG_AsVal_int(obj2, &val3);
33767 if (!SWIG_IsOK(ecode3)) {
33768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_Move" "', expected argument " "3"" of type '" "int""'");
33769 }
33770 arg3 = static_cast< int >(val3);
33771 }
33772 {
33773 PyThreadState* __tstate = wxPyBeginAllowThreads();
33774 (arg1)->Move((wxPoint const &)*arg2,arg3);
33775 wxPyEndAllowThreads(__tstate);
33776 if (PyErr_Occurred()) SWIG_fail;
33777 }
33778 resultobj = SWIG_Py_Void();
33779 return resultobj;
33780fail:
33781 return NULL;
33782}
33783
33784
33785SWIGINTERN PyObject *_wrap_Window_MoveXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33786 PyObject *resultobj = 0;
33787 wxWindow *arg1 = (wxWindow *) 0 ;
33788 int arg2 ;
33789 int arg3 ;
33790 int arg4 = (int) wxSIZE_USE_EXISTING ;
33791 void *argp1 = 0 ;
33792 int res1 = 0 ;
33793 int val2 ;
33794 int ecode2 = 0 ;
33795 int val3 ;
33796 int ecode3 = 0 ;
33797 int val4 ;
33798 int ecode4 = 0 ;
33799 PyObject * obj0 = 0 ;
33800 PyObject * obj1 = 0 ;
33801 PyObject * obj2 = 0 ;
33802 PyObject * obj3 = 0 ;
33803 char * kwnames[] = {
33804 (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL
33805 };
33806
33807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33809 if (!SWIG_IsOK(res1)) {
33810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_MoveXY" "', expected argument " "1"" of type '" "wxWindow *""'");
33811 }
33812 arg1 = reinterpret_cast< wxWindow * >(argp1);
33813 ecode2 = SWIG_AsVal_int(obj1, &val2);
33814 if (!SWIG_IsOK(ecode2)) {
33815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_MoveXY" "', expected argument " "2"" of type '" "int""'");
33816 }
33817 arg2 = static_cast< int >(val2);
33818 ecode3 = SWIG_AsVal_int(obj2, &val3);
33819 if (!SWIG_IsOK(ecode3)) {
33820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_MoveXY" "', expected argument " "3"" of type '" "int""'");
33821 }
33822 arg3 = static_cast< int >(val3);
33823 if (obj3) {
33824 ecode4 = SWIG_AsVal_int(obj3, &val4);
33825 if (!SWIG_IsOK(ecode4)) {
33826 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_MoveXY" "', expected argument " "4"" of type '" "int""'");
33827 }
33828 arg4 = static_cast< int >(val4);
33829 }
33830 {
33831 PyThreadState* __tstate = wxPyBeginAllowThreads();
33832 (arg1)->Move(arg2,arg3,arg4);
33833 wxPyEndAllowThreads(__tstate);
33834 if (PyErr_Occurred()) SWIG_fail;
33835 }
33836 resultobj = SWIG_Py_Void();
33837 return resultobj;
33838fail:
33839 return NULL;
33840}
33841
33842
33843SWIGINTERN PyObject *_wrap_Window_SetBestFittingSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33844 PyObject *resultobj = 0;
33845 wxWindow *arg1 = (wxWindow *) 0 ;
33846 wxSize const &arg2_defvalue = wxDefaultSize ;
33847 wxSize *arg2 = (wxSize *) &arg2_defvalue ;
33848 void *argp1 = 0 ;
33849 int res1 = 0 ;
33850 wxSize temp2 ;
33851 PyObject * obj0 = 0 ;
33852 PyObject * obj1 = 0 ;
33853 char * kwnames[] = {
33854 (char *) "self",(char *) "size", NULL
33855 };
33856
33857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) SWIG_fail;
33858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33859 if (!SWIG_IsOK(res1)) {
33860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetBestFittingSize" "', expected argument " "1"" of type '" "wxWindow *""'");
33861 }
33862 arg1 = reinterpret_cast< wxWindow * >(argp1);
33863 if (obj1) {
d55e5bfc 33864 {
1bd55598
RD
33865 arg2 = &temp2;
33866 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 33867 }
1bd55598
RD
33868 }
33869 {
33870 PyThreadState* __tstate = wxPyBeginAllowThreads();
33871 (arg1)->SetBestFittingSize((wxSize const &)*arg2);
33872 wxPyEndAllowThreads(__tstate);
33873 if (PyErr_Occurred()) SWIG_fail;
33874 }
33875 resultobj = SWIG_Py_Void();
33876 return resultobj;
33877fail:
33878 return NULL;
d55e5bfc
RD
33879}
33880
33881
1bd55598
RD
33882SWIGINTERN PyObject *_wrap_Window_Raise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33883 PyObject *resultobj = 0;
33884 wxWindow *arg1 = (wxWindow *) 0 ;
33885 void *argp1 = 0 ;
33886 int res1 = 0 ;
33887 PyObject *swig_obj[1] ;
33888
33889 if (!args) SWIG_fail;
33890 swig_obj[0] = args;
33891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33892 if (!SWIG_IsOK(res1)) {
33893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Raise" "', expected argument " "1"" of type '" "wxWindow *""'");
33894 }
33895 arg1 = reinterpret_cast< wxWindow * >(argp1);
33896 {
33897 PyThreadState* __tstate = wxPyBeginAllowThreads();
33898 (arg1)->Raise();
33899 wxPyEndAllowThreads(__tstate);
33900 if (PyErr_Occurred()) SWIG_fail;
33901 }
33902 resultobj = SWIG_Py_Void();
33903 return resultobj;
33904fail:
33905 return NULL;
d55e5bfc
RD
33906}
33907
33908
1bd55598
RD
33909SWIGINTERN PyObject *_wrap_Window_Lower(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33910 PyObject *resultobj = 0;
33911 wxWindow *arg1 = (wxWindow *) 0 ;
33912 void *argp1 = 0 ;
33913 int res1 = 0 ;
33914 PyObject *swig_obj[1] ;
33915
33916 if (!args) SWIG_fail;
33917 swig_obj[0] = args;
33918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33919 if (!SWIG_IsOK(res1)) {
33920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Lower" "', expected argument " "1"" of type '" "wxWindow *""'");
33921 }
33922 arg1 = reinterpret_cast< wxWindow * >(argp1);
33923 {
33924 PyThreadState* __tstate = wxPyBeginAllowThreads();
33925 (arg1)->Lower();
33926 wxPyEndAllowThreads(__tstate);
33927 if (PyErr_Occurred()) SWIG_fail;
33928 }
33929 resultobj = SWIG_Py_Void();
33930 return resultobj;
33931fail:
33932 return NULL;
33933}
33934
33935
33936SWIGINTERN PyObject *_wrap_Window_SetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33937 PyObject *resultobj = 0;
33938 wxWindow *arg1 = (wxWindow *) 0 ;
33939 wxSize *arg2 = 0 ;
33940 void *argp1 = 0 ;
33941 int res1 = 0 ;
33942 wxSize temp2 ;
33943 PyObject * obj0 = 0 ;
33944 PyObject * obj1 = 0 ;
33945 char * kwnames[] = {
33946 (char *) "self",(char *) "size", NULL
33947 };
33948
33949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) SWIG_fail;
33950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33951 if (!SWIG_IsOK(res1)) {
33952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetClientSize" "', expected argument " "1"" of type '" "wxWindow *""'");
33953 }
33954 arg1 = reinterpret_cast< wxWindow * >(argp1);
33955 {
33956 arg2 = &temp2;
33957 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
33958 }
33959 {
33960 PyThreadState* __tstate = wxPyBeginAllowThreads();
33961 (arg1)->SetClientSize((wxSize const &)*arg2);
33962 wxPyEndAllowThreads(__tstate);
33963 if (PyErr_Occurred()) SWIG_fail;
33964 }
33965 resultobj = SWIG_Py_Void();
33966 return resultobj;
33967fail:
33968 return NULL;
33969}
33970
33971
33972SWIGINTERN PyObject *_wrap_Window_SetClientSizeWH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33973 PyObject *resultobj = 0;
33974 wxWindow *arg1 = (wxWindow *) 0 ;
33975 int arg2 ;
33976 int arg3 ;
33977 void *argp1 = 0 ;
33978 int res1 = 0 ;
33979 int val2 ;
33980 int ecode2 = 0 ;
33981 int val3 ;
33982 int ecode3 = 0 ;
33983 PyObject * obj0 = 0 ;
33984 PyObject * obj1 = 0 ;
33985 PyObject * obj2 = 0 ;
33986 char * kwnames[] = {
33987 (char *) "self",(char *) "width",(char *) "height", NULL
33988 };
33989
33990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33992 if (!SWIG_IsOK(res1)) {
33993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetClientSizeWH" "', expected argument " "1"" of type '" "wxWindow *""'");
33994 }
33995 arg1 = reinterpret_cast< wxWindow * >(argp1);
33996 ecode2 = SWIG_AsVal_int(obj1, &val2);
33997 if (!SWIG_IsOK(ecode2)) {
33998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetClientSizeWH" "', expected argument " "2"" of type '" "int""'");
33999 }
34000 arg2 = static_cast< int >(val2);
34001 ecode3 = SWIG_AsVal_int(obj2, &val3);
34002 if (!SWIG_IsOK(ecode3)) {
34003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetClientSizeWH" "', expected argument " "3"" of type '" "int""'");
34004 }
34005 arg3 = static_cast< int >(val3);
34006 {
34007 PyThreadState* __tstate = wxPyBeginAllowThreads();
34008 (arg1)->SetClientSize(arg2,arg3);
34009 wxPyEndAllowThreads(__tstate);
34010 if (PyErr_Occurred()) SWIG_fail;
34011 }
34012 resultobj = SWIG_Py_Void();
34013 return resultobj;
34014fail:
34015 return NULL;
34016}
34017
34018
34019SWIGINTERN PyObject *_wrap_Window_SetClientRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34020 PyObject *resultobj = 0;
34021 wxWindow *arg1 = (wxWindow *) 0 ;
34022 wxRect *arg2 = 0 ;
34023 void *argp1 = 0 ;
34024 int res1 = 0 ;
34025 wxRect temp2 ;
34026 PyObject * obj0 = 0 ;
34027 PyObject * obj1 = 0 ;
34028 char * kwnames[] = {
34029 (char *) "self",(char *) "rect", NULL
34030 };
34031
34032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) SWIG_fail;
34033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34034 if (!SWIG_IsOK(res1)) {
34035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetClientRect" "', expected argument " "1"" of type '" "wxWindow *""'");
34036 }
34037 arg1 = reinterpret_cast< wxWindow * >(argp1);
34038 {
34039 arg2 = &temp2;
34040 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
34041 }
34042 {
34043 PyThreadState* __tstate = wxPyBeginAllowThreads();
34044 (arg1)->SetClientSize((wxRect const &)*arg2);
34045 wxPyEndAllowThreads(__tstate);
34046 if (PyErr_Occurred()) SWIG_fail;
34047 }
34048 resultobj = SWIG_Py_Void();
34049 return resultobj;
34050fail:
34051 return NULL;
d55e5bfc
RD
34052}
34053
34054
1bd55598
RD
34055SWIGINTERN PyObject *_wrap_Window_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34056 PyObject *resultobj = 0;
34057 wxWindow *arg1 = (wxWindow *) 0 ;
34058 wxPoint result;
34059 void *argp1 = 0 ;
34060 int res1 = 0 ;
34061 PyObject *swig_obj[1] ;
34062
34063 if (!args) SWIG_fail;
34064 swig_obj[0] = args;
34065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34066 if (!SWIG_IsOK(res1)) {
1c71765a 34067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetPosition" "', expected argument " "1"" of type '" "wxWindow const *""'");
1bd55598
RD
34068 }
34069 arg1 = reinterpret_cast< wxWindow * >(argp1);
34070 {
34071 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a 34072 result = ((wxWindow const *)arg1)->GetPosition();
1bd55598
RD
34073 wxPyEndAllowThreads(__tstate);
34074 if (PyErr_Occurred()) SWIG_fail;
34075 }
34076 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
34077 return resultobj;
34078fail:
34079 return NULL;
34080}
34081
34082
34083SWIGINTERN PyObject *_wrap_Window_GetPositionTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34084 PyObject *resultobj = 0;
34085 wxWindow *arg1 = (wxWindow *) 0 ;
34086 int *arg2 = (int *) 0 ;
34087 int *arg3 = (int *) 0 ;
34088 void *argp1 = 0 ;
34089 int res1 = 0 ;
34090 int temp2 ;
34091 int res2 = SWIG_TMPOBJ ;
34092 int temp3 ;
34093 int res3 = SWIG_TMPOBJ ;
34094 PyObject *swig_obj[1] ;
34095
34096 arg2 = &temp2;
34097 arg3 = &temp3;
34098 if (!args) SWIG_fail;
34099 swig_obj[0] = args;
34100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34101 if (!SWIG_IsOK(res1)) {
1c71765a 34102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetPositionTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
1bd55598
RD
34103 }
34104 arg1 = reinterpret_cast< wxWindow * >(argp1);
34105 {
34106 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a
RD
34107 ((wxWindow const *)arg1)->GetPosition(arg2,arg3);
34108 wxPyEndAllowThreads(__tstate);
34109 if (PyErr_Occurred()) SWIG_fail;
34110 }
34111 resultobj = SWIG_Py_Void();
34112 if (SWIG_IsTmpObj(res2)) {
34113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
34114 } else {
34115 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
34117 }
34118 if (SWIG_IsTmpObj(res3)) {
34119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
34120 } else {
34121 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
34123 }
34124 return resultobj;
34125fail:
34126 return NULL;
34127}
34128
34129
34130SWIGINTERN PyObject *_wrap_Window_GetScreenPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34131 PyObject *resultobj = 0;
34132 wxWindow *arg1 = (wxWindow *) 0 ;
34133 wxPoint result;
34134 void *argp1 = 0 ;
34135 int res1 = 0 ;
34136 PyObject *swig_obj[1] ;
34137
34138 if (!args) SWIG_fail;
34139 swig_obj[0] = args;
34140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34141 if (!SWIG_IsOK(res1)) {
34142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScreenPosition" "', expected argument " "1"" of type '" "wxWindow const *""'");
34143 }
34144 arg1 = reinterpret_cast< wxWindow * >(argp1);
34145 {
34146 PyThreadState* __tstate = wxPyBeginAllowThreads();
34147 result = ((wxWindow const *)arg1)->GetScreenPosition();
34148 wxPyEndAllowThreads(__tstate);
34149 if (PyErr_Occurred()) SWIG_fail;
34150 }
34151 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
34152 return resultobj;
34153fail:
34154 return NULL;
34155}
34156
34157
34158SWIGINTERN PyObject *_wrap_Window_GetScreenPositionTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34159 PyObject *resultobj = 0;
34160 wxWindow *arg1 = (wxWindow *) 0 ;
34161 int *arg2 = (int *) 0 ;
34162 int *arg3 = (int *) 0 ;
34163 void *argp1 = 0 ;
34164 int res1 = 0 ;
34165 int temp2 ;
34166 int res2 = SWIG_TMPOBJ ;
34167 int temp3 ;
34168 int res3 = SWIG_TMPOBJ ;
34169 PyObject *swig_obj[1] ;
34170
34171 arg2 = &temp2;
34172 arg3 = &temp3;
34173 if (!args) SWIG_fail;
34174 swig_obj[0] = args;
34175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34176 if (!SWIG_IsOK(res1)) {
34177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScreenPositionTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
34178 }
34179 arg1 = reinterpret_cast< wxWindow * >(argp1);
34180 {
34181 PyThreadState* __tstate = wxPyBeginAllowThreads();
34182 ((wxWindow const *)arg1)->GetScreenPosition(arg2,arg3);
1bd55598
RD
34183 wxPyEndAllowThreads(__tstate);
34184 if (PyErr_Occurred()) SWIG_fail;
34185 }
34186 resultobj = SWIG_Py_Void();
34187 if (SWIG_IsTmpObj(res2)) {
34188 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
34189 } else {
34190 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34191 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
34192 }
34193 if (SWIG_IsTmpObj(res3)) {
34194 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
34195 } else {
34196 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34197 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
34198 }
34199 return resultobj;
34200fail:
34201 return NULL;
d55e5bfc
RD
34202}
34203
34204
1c71765a
RD
34205SWIGINTERN PyObject *_wrap_Window_GetScreenRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34206 PyObject *resultobj = 0;
34207 wxWindow *arg1 = (wxWindow *) 0 ;
34208 wxRect result;
34209 void *argp1 = 0 ;
34210 int res1 = 0 ;
34211 PyObject *swig_obj[1] ;
34212
34213 if (!args) SWIG_fail;
34214 swig_obj[0] = args;
34215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34216 if (!SWIG_IsOK(res1)) {
34217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScreenRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
34218 }
34219 arg1 = reinterpret_cast< wxWindow * >(argp1);
34220 {
34221 PyThreadState* __tstate = wxPyBeginAllowThreads();
34222 result = ((wxWindow const *)arg1)->GetScreenRect();
34223 wxPyEndAllowThreads(__tstate);
34224 if (PyErr_Occurred()) SWIG_fail;
34225 }
34226 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
34227 return resultobj;
34228fail:
34229 return NULL;
34230}
34231
34232
1bd55598
RD
34233SWIGINTERN PyObject *_wrap_Window_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34234 PyObject *resultobj = 0;
34235 wxWindow *arg1 = (wxWindow *) 0 ;
34236 wxSize result;
34237 void *argp1 = 0 ;
34238 int res1 = 0 ;
34239 PyObject *swig_obj[1] ;
34240
34241 if (!args) SWIG_fail;
34242 swig_obj[0] = args;
34243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34244 if (!SWIG_IsOK(res1)) {
34245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
34246 }
34247 arg1 = reinterpret_cast< wxWindow * >(argp1);
34248 {
34249 PyThreadState* __tstate = wxPyBeginAllowThreads();
34250 result = ((wxWindow const *)arg1)->GetSize();
34251 wxPyEndAllowThreads(__tstate);
34252 if (PyErr_Occurred()) SWIG_fail;
34253 }
34254 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
34255 return resultobj;
34256fail:
34257 return NULL;
34258}
34259
34260
34261SWIGINTERN PyObject *_wrap_Window_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34262 PyObject *resultobj = 0;
34263 wxWindow *arg1 = (wxWindow *) 0 ;
34264 int *arg2 = (int *) 0 ;
34265 int *arg3 = (int *) 0 ;
34266 void *argp1 = 0 ;
34267 int res1 = 0 ;
34268 int temp2 ;
34269 int res2 = SWIG_TMPOBJ ;
34270 int temp3 ;
34271 int res3 = SWIG_TMPOBJ ;
34272 PyObject *swig_obj[1] ;
34273
34274 arg2 = &temp2;
34275 arg3 = &temp3;
34276 if (!args) SWIG_fail;
34277 swig_obj[0] = args;
34278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34279 if (!SWIG_IsOK(res1)) {
34280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetSizeTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
34281 }
34282 arg1 = reinterpret_cast< wxWindow * >(argp1);
34283 {
34284 PyThreadState* __tstate = wxPyBeginAllowThreads();
34285 ((wxWindow const *)arg1)->GetSize(arg2,arg3);
34286 wxPyEndAllowThreads(__tstate);
34287 if (PyErr_Occurred()) SWIG_fail;
34288 }
34289 resultobj = SWIG_Py_Void();
34290 if (SWIG_IsTmpObj(res2)) {
34291 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
34292 } else {
34293 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34294 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
34295 }
34296 if (SWIG_IsTmpObj(res3)) {
34297 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
34298 } else {
34299 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34300 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
34301 }
34302 return resultobj;
34303fail:
34304 return NULL;
d55e5bfc
RD
34305}
34306
34307
1bd55598
RD
34308SWIGINTERN PyObject *_wrap_Window_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34309 PyObject *resultobj = 0;
34310 wxWindow *arg1 = (wxWindow *) 0 ;
34311 wxRect result;
34312 void *argp1 = 0 ;
34313 int res1 = 0 ;
34314 PyObject *swig_obj[1] ;
34315
34316 if (!args) SWIG_fail;
34317 swig_obj[0] = args;
34318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34319 if (!SWIG_IsOK(res1)) {
34320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
34321 }
34322 arg1 = reinterpret_cast< wxWindow * >(argp1);
34323 {
34324 PyThreadState* __tstate = wxPyBeginAllowThreads();
34325 result = ((wxWindow const *)arg1)->GetRect();
34326 wxPyEndAllowThreads(__tstate);
34327 if (PyErr_Occurred()) SWIG_fail;
34328 }
34329 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
34330 return resultobj;
34331fail:
34332 return NULL;
d55e5bfc
RD
34333}
34334
34335
1bd55598
RD
34336SWIGINTERN PyObject *_wrap_Window_GetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34337 PyObject *resultobj = 0;
34338 wxWindow *arg1 = (wxWindow *) 0 ;
34339 wxSize result;
34340 void *argp1 = 0 ;
34341 int res1 = 0 ;
34342 PyObject *swig_obj[1] ;
34343
34344 if (!args) SWIG_fail;
34345 swig_obj[0] = args;
34346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34347 if (!SWIG_IsOK(res1)) {
34348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetClientSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
34349 }
34350 arg1 = reinterpret_cast< wxWindow * >(argp1);
34351 {
34352 PyThreadState* __tstate = wxPyBeginAllowThreads();
34353 result = ((wxWindow const *)arg1)->GetClientSize();
34354 wxPyEndAllowThreads(__tstate);
34355 if (PyErr_Occurred()) SWIG_fail;
34356 }
34357 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
34358 return resultobj;
34359fail:
34360 return NULL;
34361}
34362
34363
34364SWIGINTERN PyObject *_wrap_Window_GetClientSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34365 PyObject *resultobj = 0;
34366 wxWindow *arg1 = (wxWindow *) 0 ;
34367 int *arg2 = (int *) 0 ;
34368 int *arg3 = (int *) 0 ;
34369 void *argp1 = 0 ;
34370 int res1 = 0 ;
34371 int temp2 ;
34372 int res2 = SWIG_TMPOBJ ;
34373 int temp3 ;
34374 int res3 = SWIG_TMPOBJ ;
34375 PyObject *swig_obj[1] ;
34376
34377 arg2 = &temp2;
34378 arg3 = &temp3;
34379 if (!args) SWIG_fail;
34380 swig_obj[0] = args;
34381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34382 if (!SWIG_IsOK(res1)) {
34383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetClientSizeTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
34384 }
34385 arg1 = reinterpret_cast< wxWindow * >(argp1);
34386 {
34387 PyThreadState* __tstate = wxPyBeginAllowThreads();
34388 ((wxWindow const *)arg1)->GetClientSize(arg2,arg3);
34389 wxPyEndAllowThreads(__tstate);
34390 if (PyErr_Occurred()) SWIG_fail;
34391 }
34392 resultobj = SWIG_Py_Void();
34393 if (SWIG_IsTmpObj(res2)) {
34394 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
34395 } else {
34396 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34397 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
34398 }
34399 if (SWIG_IsTmpObj(res3)) {
34400 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
34401 } else {
34402 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34403 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
34404 }
34405 return resultobj;
34406fail:
34407 return NULL;
d55e5bfc
RD
34408}
34409
34410
1bd55598
RD
34411SWIGINTERN PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34412 PyObject *resultobj = 0;
34413 wxWindow *arg1 = (wxWindow *) 0 ;
34414 wxPoint result;
34415 void *argp1 = 0 ;
34416 int res1 = 0 ;
34417 PyObject *swig_obj[1] ;
34418
34419 if (!args) SWIG_fail;
34420 swig_obj[0] = args;
34421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34422 if (!SWIG_IsOK(res1)) {
34423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetClientAreaOrigin" "', expected argument " "1"" of type '" "wxWindow const *""'");
34424 }
34425 arg1 = reinterpret_cast< wxWindow * >(argp1);
34426 {
34427 PyThreadState* __tstate = wxPyBeginAllowThreads();
34428 result = ((wxWindow const *)arg1)->GetClientAreaOrigin();
34429 wxPyEndAllowThreads(__tstate);
34430 if (PyErr_Occurred()) SWIG_fail;
34431 }
34432 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
34433 return resultobj;
34434fail:
34435 return NULL;
d55e5bfc
RD
34436}
34437
34438
1bd55598
RD
34439SWIGINTERN PyObject *_wrap_Window_GetClientRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34440 PyObject *resultobj = 0;
34441 wxWindow *arg1 = (wxWindow *) 0 ;
34442 wxRect result;
34443 void *argp1 = 0 ;
34444 int res1 = 0 ;
34445 PyObject *swig_obj[1] ;
34446
34447 if (!args) SWIG_fail;
34448 swig_obj[0] = args;
34449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34450 if (!SWIG_IsOK(res1)) {
34451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetClientRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
34452 }
34453 arg1 = reinterpret_cast< wxWindow * >(argp1);
34454 {
34455 PyThreadState* __tstate = wxPyBeginAllowThreads();
34456 result = ((wxWindow const *)arg1)->GetClientRect();
34457 wxPyEndAllowThreads(__tstate);
34458 if (PyErr_Occurred()) SWIG_fail;
34459 }
34460 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
34461 return resultobj;
34462fail:
34463 return NULL;
d55e5bfc
RD
34464}
34465
34466
1bd55598
RD
34467SWIGINTERN PyObject *_wrap_Window_GetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34468 PyObject *resultobj = 0;
34469 wxWindow *arg1 = (wxWindow *) 0 ;
34470 wxSize result;
34471 void *argp1 = 0 ;
34472 int res1 = 0 ;
34473 PyObject *swig_obj[1] ;
34474
34475 if (!args) SWIG_fail;
34476 swig_obj[0] = args;
34477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34478 if (!SWIG_IsOK(res1)) {
34479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBestSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
34480 }
34481 arg1 = reinterpret_cast< wxWindow * >(argp1);
34482 {
34483 PyThreadState* __tstate = wxPyBeginAllowThreads();
34484 result = ((wxWindow const *)arg1)->GetBestSize();
34485 wxPyEndAllowThreads(__tstate);
34486 if (PyErr_Occurred()) SWIG_fail;
34487 }
34488 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
34489 return resultobj;
34490fail:
34491 return NULL;
34492}
34493
34494
34495SWIGINTERN PyObject *_wrap_Window_GetBestSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34496 PyObject *resultobj = 0;
34497 wxWindow *arg1 = (wxWindow *) 0 ;
34498 int *arg2 = (int *) 0 ;
34499 int *arg3 = (int *) 0 ;
34500 void *argp1 = 0 ;
34501 int res1 = 0 ;
34502 int temp2 ;
34503 int res2 = SWIG_TMPOBJ ;
34504 int temp3 ;
34505 int res3 = SWIG_TMPOBJ ;
34506 PyObject *swig_obj[1] ;
34507
34508 arg2 = &temp2;
34509 arg3 = &temp3;
34510 if (!args) SWIG_fail;
34511 swig_obj[0] = args;
34512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34513 if (!SWIG_IsOK(res1)) {
34514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBestSizeTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
34515 }
34516 arg1 = reinterpret_cast< wxWindow * >(argp1);
34517 {
34518 PyThreadState* __tstate = wxPyBeginAllowThreads();
34519 ((wxWindow const *)arg1)->GetBestSize(arg2,arg3);
34520 wxPyEndAllowThreads(__tstate);
34521 if (PyErr_Occurred()) SWIG_fail;
34522 }
34523 resultobj = SWIG_Py_Void();
34524 if (SWIG_IsTmpObj(res2)) {
34525 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
34526 } else {
34527 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34528 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
34529 }
34530 if (SWIG_IsTmpObj(res3)) {
34531 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
34532 } else {
34533 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
34534 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
34535 }
34536 return resultobj;
34537fail:
34538 return NULL;
d55e5bfc
RD
34539}
34540
34541
1bd55598
RD
34542SWIGINTERN PyObject *_wrap_Window_InvalidateBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34543 PyObject *resultobj = 0;
34544 wxWindow *arg1 = (wxWindow *) 0 ;
34545 void *argp1 = 0 ;
34546 int res1 = 0 ;
34547 PyObject *swig_obj[1] ;
34548
34549 if (!args) SWIG_fail;
34550 swig_obj[0] = args;
34551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34552 if (!SWIG_IsOK(res1)) {
34553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_InvalidateBestSize" "', expected argument " "1"" of type '" "wxWindow *""'");
34554 }
34555 arg1 = reinterpret_cast< wxWindow * >(argp1);
34556 {
34557 PyThreadState* __tstate = wxPyBeginAllowThreads();
34558 (arg1)->InvalidateBestSize();
34559 wxPyEndAllowThreads(__tstate);
34560 if (PyErr_Occurred()) SWIG_fail;
34561 }
34562 resultobj = SWIG_Py_Void();
34563 return resultobj;
34564fail:
34565 return NULL;
34566}
34567
34568
34569SWIGINTERN PyObject *_wrap_Window_CacheBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34570 PyObject *resultobj = 0;
34571 wxWindow *arg1 = (wxWindow *) 0 ;
34572 wxSize *arg2 = 0 ;
34573 void *argp1 = 0 ;
34574 int res1 = 0 ;
34575 wxSize temp2 ;
34576 PyObject * obj0 = 0 ;
34577 PyObject * obj1 = 0 ;
34578 char * kwnames[] = {
34579 (char *) "self",(char *) "size", NULL
34580 };
34581
34582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_CacheBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
34583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34584 if (!SWIG_IsOK(res1)) {
34585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_CacheBestSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
34586 }
34587 arg1 = reinterpret_cast< wxWindow * >(argp1);
34588 {
34589 arg2 = &temp2;
34590 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
34591 }
34592 {
34593 PyThreadState* __tstate = wxPyBeginAllowThreads();
34594 ((wxWindow const *)arg1)->CacheBestSize((wxSize const &)*arg2);
34595 wxPyEndAllowThreads(__tstate);
34596 if (PyErr_Occurred()) SWIG_fail;
34597 }
34598 resultobj = SWIG_Py_Void();
34599 return resultobj;
34600fail:
34601 return NULL;
d55e5bfc
RD
34602}
34603
34604
1bd55598
RD
34605SWIGINTERN PyObject *_wrap_Window_GetBestFittingSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34606 PyObject *resultobj = 0;
34607 wxWindow *arg1 = (wxWindow *) 0 ;
34608 wxSize result;
34609 void *argp1 = 0 ;
34610 int res1 = 0 ;
34611 PyObject *swig_obj[1] ;
34612
34613 if (!args) SWIG_fail;
34614 swig_obj[0] = args;
34615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34616 if (!SWIG_IsOK(res1)) {
34617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBestFittingSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
34618 }
34619 arg1 = reinterpret_cast< wxWindow * >(argp1);
34620 {
34621 PyThreadState* __tstate = wxPyBeginAllowThreads();
34622 result = ((wxWindow const *)arg1)->GetBestFittingSize();
34623 wxPyEndAllowThreads(__tstate);
34624 if (PyErr_Occurred()) SWIG_fail;
34625 }
34626 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
34627 return resultobj;
34628fail:
34629 return NULL;
d55e5bfc
RD
34630}
34631
34632
1bd55598
RD
34633SWIGINTERN PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34634 PyObject *resultobj = 0;
34635 wxWindow *arg1 = (wxWindow *) 0 ;
34636 wxSize result;
34637 void *argp1 = 0 ;
34638 int res1 = 0 ;
34639 PyObject *swig_obj[1] ;
34640
34641 if (!args) SWIG_fail;
34642 swig_obj[0] = args;
34643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34644 if (!SWIG_IsOK(res1)) {
34645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetAdjustedBestSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
34646 }
34647 arg1 = reinterpret_cast< wxWindow * >(argp1);
34648 {
34649 PyThreadState* __tstate = wxPyBeginAllowThreads();
34650 result = ((wxWindow const *)arg1)->GetAdjustedBestSize();
34651 wxPyEndAllowThreads(__tstate);
34652 if (PyErr_Occurred()) SWIG_fail;
34653 }
34654 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
34655 return resultobj;
34656fail:
34657 return NULL;
34658}
34659
34660
34661SWIGINTERN PyObject *_wrap_Window_Center(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34662 PyObject *resultobj = 0;
34663 wxWindow *arg1 = (wxWindow *) 0 ;
34664 int arg2 = (int) wxBOTH ;
34665 void *argp1 = 0 ;
34666 int res1 = 0 ;
34667 int val2 ;
34668 int ecode2 = 0 ;
34669 PyObject * obj0 = 0 ;
34670 PyObject * obj1 = 0 ;
34671 char * kwnames[] = {
34672 (char *) "self",(char *) "direction", NULL
34673 };
34674
34675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) SWIG_fail;
34676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34677 if (!SWIG_IsOK(res1)) {
34678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Center" "', expected argument " "1"" of type '" "wxWindow *""'");
34679 }
34680 arg1 = reinterpret_cast< wxWindow * >(argp1);
34681 if (obj1) {
34682 ecode2 = SWIG_AsVal_int(obj1, &val2);
34683 if (!SWIG_IsOK(ecode2)) {
34684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Center" "', expected argument " "2"" of type '" "int""'");
34685 }
34686 arg2 = static_cast< int >(val2);
34687 }
34688 {
34689 PyThreadState* __tstate = wxPyBeginAllowThreads();
34690 (arg1)->Center(arg2);
34691 wxPyEndAllowThreads(__tstate);
34692 if (PyErr_Occurred()) SWIG_fail;
34693 }
34694 resultobj = SWIG_Py_Void();
34695 return resultobj;
34696fail:
34697 return NULL;
34698}
34699
34700
34701SWIGINTERN PyObject *_wrap_Window_CenterOnParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34702 PyObject *resultobj = 0;
34703 wxWindow *arg1 = (wxWindow *) 0 ;
34704 int arg2 = (int) wxBOTH ;
34705 void *argp1 = 0 ;
34706 int res1 = 0 ;
34707 int val2 ;
34708 int ecode2 = 0 ;
34709 PyObject * obj0 = 0 ;
34710 PyObject * obj1 = 0 ;
34711 char * kwnames[] = {
34712 (char *) "self",(char *) "dir", NULL
34713 };
34714
34715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) SWIG_fail;
34716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34717 if (!SWIG_IsOK(res1)) {
34718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_CenterOnParent" "', expected argument " "1"" of type '" "wxWindow *""'");
34719 }
34720 arg1 = reinterpret_cast< wxWindow * >(argp1);
34721 if (obj1) {
34722 ecode2 = SWIG_AsVal_int(obj1, &val2);
34723 if (!SWIG_IsOK(ecode2)) {
34724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_CenterOnParent" "', expected argument " "2"" of type '" "int""'");
34725 }
34726 arg2 = static_cast< int >(val2);
34727 }
34728 {
34729 PyThreadState* __tstate = wxPyBeginAllowThreads();
34730 (arg1)->CenterOnParent(arg2);
34731 wxPyEndAllowThreads(__tstate);
34732 if (PyErr_Occurred()) SWIG_fail;
34733 }
34734 resultobj = SWIG_Py_Void();
34735 return resultobj;
34736fail:
34737 return NULL;
d55e5bfc
RD
34738}
34739
34740
1bd55598
RD
34741SWIGINTERN PyObject *_wrap_Window_Fit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34742 PyObject *resultobj = 0;
34743 wxWindow *arg1 = (wxWindow *) 0 ;
34744 void *argp1 = 0 ;
34745 int res1 = 0 ;
34746 PyObject *swig_obj[1] ;
34747
34748 if (!args) SWIG_fail;
34749 swig_obj[0] = args;
34750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34751 if (!SWIG_IsOK(res1)) {
34752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Fit" "', expected argument " "1"" of type '" "wxWindow *""'");
34753 }
34754 arg1 = reinterpret_cast< wxWindow * >(argp1);
34755 {
34756 PyThreadState* __tstate = wxPyBeginAllowThreads();
34757 (arg1)->Fit();
34758 wxPyEndAllowThreads(__tstate);
34759 if (PyErr_Occurred()) SWIG_fail;
34760 }
34761 resultobj = SWIG_Py_Void();
34762 return resultobj;
34763fail:
34764 return NULL;
d55e5bfc
RD
34765}
34766
34767
1bd55598
RD
34768SWIGINTERN PyObject *_wrap_Window_FitInside(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34769 PyObject *resultobj = 0;
34770 wxWindow *arg1 = (wxWindow *) 0 ;
34771 void *argp1 = 0 ;
34772 int res1 = 0 ;
34773 PyObject *swig_obj[1] ;
34774
34775 if (!args) SWIG_fail;
34776 swig_obj[0] = args;
34777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34778 if (!SWIG_IsOK(res1)) {
34779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_FitInside" "', expected argument " "1"" of type '" "wxWindow *""'");
34780 }
34781 arg1 = reinterpret_cast< wxWindow * >(argp1);
34782 {
34783 PyThreadState* __tstate = wxPyBeginAllowThreads();
34784 (arg1)->FitInside();
34785 wxPyEndAllowThreads(__tstate);
34786 if (PyErr_Occurred()) SWIG_fail;
34787 }
34788 resultobj = SWIG_Py_Void();
34789 return resultobj;
34790fail:
34791 return NULL;
34792}
34793
34794
34795SWIGINTERN PyObject *_wrap_Window_SetSizeHints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34796 PyObject *resultobj = 0;
34797 wxWindow *arg1 = (wxWindow *) 0 ;
34798 int arg2 ;
34799 int arg3 ;
34800 int arg4 = (int) -1 ;
34801 int arg5 = (int) -1 ;
34802 int arg6 = (int) -1 ;
34803 int arg7 = (int) -1 ;
34804 void *argp1 = 0 ;
34805 int res1 = 0 ;
34806 int val2 ;
34807 int ecode2 = 0 ;
34808 int val3 ;
34809 int ecode3 = 0 ;
34810 int val4 ;
34811 int ecode4 = 0 ;
34812 int val5 ;
34813 int ecode5 = 0 ;
34814 int val6 ;
34815 int ecode6 = 0 ;
34816 int val7 ;
34817 int ecode7 = 0 ;
34818 PyObject * obj0 = 0 ;
34819 PyObject * obj1 = 0 ;
34820 PyObject * obj2 = 0 ;
34821 PyObject * obj3 = 0 ;
34822 PyObject * obj4 = 0 ;
34823 PyObject * obj5 = 0 ;
34824 PyObject * obj6 = 0 ;
34825 char * kwnames[] = {
34826 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL
34827 };
34828
34829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34831 if (!SWIG_IsOK(res1)) {
34832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSizeHints" "', expected argument " "1"" of type '" "wxWindow *""'");
34833 }
34834 arg1 = reinterpret_cast< wxWindow * >(argp1);
34835 ecode2 = SWIG_AsVal_int(obj1, &val2);
34836 if (!SWIG_IsOK(ecode2)) {
34837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetSizeHints" "', expected argument " "2"" of type '" "int""'");
34838 }
34839 arg2 = static_cast< int >(val2);
34840 ecode3 = SWIG_AsVal_int(obj2, &val3);
34841 if (!SWIG_IsOK(ecode3)) {
34842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetSizeHints" "', expected argument " "3"" of type '" "int""'");
34843 }
34844 arg3 = static_cast< int >(val3);
34845 if (obj3) {
34846 ecode4 = SWIG_AsVal_int(obj3, &val4);
34847 if (!SWIG_IsOK(ecode4)) {
34848 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_SetSizeHints" "', expected argument " "4"" of type '" "int""'");
34849 }
34850 arg4 = static_cast< int >(val4);
34851 }
34852 if (obj4) {
34853 ecode5 = SWIG_AsVal_int(obj4, &val5);
34854 if (!SWIG_IsOK(ecode5)) {
34855 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Window_SetSizeHints" "', expected argument " "5"" of type '" "int""'");
34856 }
34857 arg5 = static_cast< int >(val5);
34858 }
34859 if (obj5) {
34860 ecode6 = SWIG_AsVal_int(obj5, &val6);
34861 if (!SWIG_IsOK(ecode6)) {
34862 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Window_SetSizeHints" "', expected argument " "6"" of type '" "int""'");
34863 }
34864 arg6 = static_cast< int >(val6);
34865 }
34866 if (obj6) {
34867 ecode7 = SWIG_AsVal_int(obj6, &val7);
34868 if (!SWIG_IsOK(ecode7)) {
34869 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Window_SetSizeHints" "', expected argument " "7"" of type '" "int""'");
34870 }
34871 arg7 = static_cast< int >(val7);
34872 }
34873 {
34874 PyThreadState* __tstate = wxPyBeginAllowThreads();
34875 (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7);
34876 wxPyEndAllowThreads(__tstate);
34877 if (PyErr_Occurred()) SWIG_fail;
34878 }
34879 resultobj = SWIG_Py_Void();
34880 return resultobj;
34881fail:
34882 return NULL;
34883}
34884
34885
34886SWIGINTERN PyObject *_wrap_Window_SetSizeHintsSz(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34887 PyObject *resultobj = 0;
34888 wxWindow *arg1 = (wxWindow *) 0 ;
34889 wxSize *arg2 = 0 ;
34890 wxSize const &arg3_defvalue = wxDefaultSize ;
34891 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
34892 wxSize const &arg4_defvalue = wxDefaultSize ;
34893 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
34894 void *argp1 = 0 ;
34895 int res1 = 0 ;
34896 wxSize temp2 ;
34897 wxSize temp3 ;
34898 wxSize temp4 ;
34899 PyObject * obj0 = 0 ;
34900 PyObject * obj1 = 0 ;
34901 PyObject * obj2 = 0 ;
34902 PyObject * obj3 = 0 ;
34903 char * kwnames[] = {
34904 (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL
34905 };
34906
34907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34909 if (!SWIG_IsOK(res1)) {
34910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSizeHintsSz" "', expected argument " "1"" of type '" "wxWindow *""'");
34911 }
34912 arg1 = reinterpret_cast< wxWindow * >(argp1);
34913 {
34914 arg2 = &temp2;
34915 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
34916 }
34917 if (obj2) {
d55e5bfc 34918 {
1bd55598
RD
34919 arg3 = &temp3;
34920 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 34921 }
1bd55598
RD
34922 }
34923 if (obj3) {
d55e5bfc 34924 {
1bd55598
RD
34925 arg4 = &temp4;
34926 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 34927 }
1bd55598
RD
34928 }
34929 {
34930 PyThreadState* __tstate = wxPyBeginAllowThreads();
34931 (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4);
34932 wxPyEndAllowThreads(__tstate);
34933 if (PyErr_Occurred()) SWIG_fail;
34934 }
34935 resultobj = SWIG_Py_Void();
34936 return resultobj;
34937fail:
34938 return NULL;
34939}
34940
34941
34942SWIGINTERN PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34943 PyObject *resultobj = 0;
34944 wxWindow *arg1 = (wxWindow *) 0 ;
34945 int arg2 ;
34946 int arg3 ;
34947 int arg4 = (int) -1 ;
34948 int arg5 = (int) -1 ;
34949 void *argp1 = 0 ;
34950 int res1 = 0 ;
34951 int val2 ;
34952 int ecode2 = 0 ;
34953 int val3 ;
34954 int ecode3 = 0 ;
34955 int val4 ;
34956 int ecode4 = 0 ;
34957 int val5 ;
34958 int ecode5 = 0 ;
34959 PyObject * obj0 = 0 ;
34960 PyObject * obj1 = 0 ;
34961 PyObject * obj2 = 0 ;
34962 PyObject * obj3 = 0 ;
34963 PyObject * obj4 = 0 ;
34964 char * kwnames[] = {
34965 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL
34966 };
34967
34968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34970 if (!SWIG_IsOK(res1)) {
34971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetVirtualSizeHints" "', expected argument " "1"" of type '" "wxWindow *""'");
34972 }
34973 arg1 = reinterpret_cast< wxWindow * >(argp1);
34974 ecode2 = SWIG_AsVal_int(obj1, &val2);
34975 if (!SWIG_IsOK(ecode2)) {
34976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetVirtualSizeHints" "', expected argument " "2"" of type '" "int""'");
34977 }
34978 arg2 = static_cast< int >(val2);
34979 ecode3 = SWIG_AsVal_int(obj2, &val3);
34980 if (!SWIG_IsOK(ecode3)) {
34981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetVirtualSizeHints" "', expected argument " "3"" of type '" "int""'");
34982 }
34983 arg3 = static_cast< int >(val3);
34984 if (obj3) {
34985 ecode4 = SWIG_AsVal_int(obj3, &val4);
34986 if (!SWIG_IsOK(ecode4)) {
34987 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_SetVirtualSizeHints" "', expected argument " "4"" of type '" "int""'");
34988 }
34989 arg4 = static_cast< int >(val4);
34990 }
34991 if (obj4) {
34992 ecode5 = SWIG_AsVal_int(obj4, &val5);
34993 if (!SWIG_IsOK(ecode5)) {
34994 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Window_SetVirtualSizeHints" "', expected argument " "5"" of type '" "int""'");
34995 }
34996 arg5 = static_cast< int >(val5);
34997 }
34998 {
34999 PyThreadState* __tstate = wxPyBeginAllowThreads();
35000 (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5);
35001 wxPyEndAllowThreads(__tstate);
35002 if (PyErr_Occurred()) SWIG_fail;
35003 }
35004 resultobj = SWIG_Py_Void();
35005 return resultobj;
35006fail:
35007 return NULL;
35008}
35009
35010
35011SWIGINTERN PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35012 PyObject *resultobj = 0;
35013 wxWindow *arg1 = (wxWindow *) 0 ;
35014 wxSize *arg2 = 0 ;
35015 wxSize const &arg3_defvalue = wxDefaultSize ;
35016 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
35017 void *argp1 = 0 ;
35018 int res1 = 0 ;
35019 wxSize temp2 ;
35020 wxSize temp3 ;
35021 PyObject * obj0 = 0 ;
35022 PyObject * obj1 = 0 ;
35023 PyObject * obj2 = 0 ;
35024 char * kwnames[] = {
35025 (char *) "self",(char *) "minSize",(char *) "maxSize", NULL
35026 };
35027
35028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35030 if (!SWIG_IsOK(res1)) {
35031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetVirtualSizeHintsSz" "', expected argument " "1"" of type '" "wxWindow *""'");
35032 }
35033 arg1 = reinterpret_cast< wxWindow * >(argp1);
35034 {
35035 arg2 = &temp2;
35036 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
35037 }
35038 if (obj2) {
d55e5bfc 35039 {
1bd55598
RD
35040 arg3 = &temp3;
35041 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 35042 }
1bd55598
RD
35043 }
35044 {
35045 PyThreadState* __tstate = wxPyBeginAllowThreads();
35046 (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3);
35047 wxPyEndAllowThreads(__tstate);
35048 if (PyErr_Occurred()) SWIG_fail;
35049 }
35050 resultobj = SWIG_Py_Void();
35051 return resultobj;
35052fail:
35053 return NULL;
d55e5bfc
RD
35054}
35055
35056
1bd55598
RD
35057SWIGINTERN PyObject *_wrap_Window_GetMaxSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35058 PyObject *resultobj = 0;
35059 wxWindow *arg1 = (wxWindow *) 0 ;
35060 wxSize result;
35061 void *argp1 = 0 ;
35062 int res1 = 0 ;
35063 PyObject *swig_obj[1] ;
35064
35065 if (!args) SWIG_fail;
35066 swig_obj[0] = args;
35067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35068 if (!SWIG_IsOK(res1)) {
35069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMaxSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
35070 }
35071 arg1 = reinterpret_cast< wxWindow * >(argp1);
35072 {
35073 PyThreadState* __tstate = wxPyBeginAllowThreads();
35074 result = ((wxWindow const *)arg1)->GetMaxSize();
35075 wxPyEndAllowThreads(__tstate);
35076 if (PyErr_Occurred()) SWIG_fail;
35077 }
35078 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
35079 return resultobj;
35080fail:
35081 return NULL;
d55e5bfc
RD
35082}
35083
35084
1bd55598
RD
35085SWIGINTERN PyObject *_wrap_Window_GetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35086 PyObject *resultobj = 0;
35087 wxWindow *arg1 = (wxWindow *) 0 ;
35088 wxSize result;
35089 void *argp1 = 0 ;
35090 int res1 = 0 ;
35091 PyObject *swig_obj[1] ;
35092
35093 if (!args) SWIG_fail;
35094 swig_obj[0] = args;
35095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35096 if (!SWIG_IsOK(res1)) {
35097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMinSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
35098 }
35099 arg1 = reinterpret_cast< wxWindow * >(argp1);
35100 {
35101 PyThreadState* __tstate = wxPyBeginAllowThreads();
35102 result = ((wxWindow const *)arg1)->GetMinSize();
35103 wxPyEndAllowThreads(__tstate);
35104 if (PyErr_Occurred()) SWIG_fail;
35105 }
35106 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
35107 return resultobj;
35108fail:
35109 return NULL;
35110}
35111
35112
35113SWIGINTERN PyObject *_wrap_Window_SetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35114 PyObject *resultobj = 0;
35115 wxWindow *arg1 = (wxWindow *) 0 ;
35116 wxSize *arg2 = 0 ;
35117 void *argp1 = 0 ;
35118 int res1 = 0 ;
35119 wxSize temp2 ;
35120 PyObject * obj0 = 0 ;
35121 PyObject * obj1 = 0 ;
35122 char * kwnames[] = {
35123 (char *) "self",(char *) "minSize", NULL
35124 };
35125
35126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) SWIG_fail;
35127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35128 if (!SWIG_IsOK(res1)) {
35129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetMinSize" "', expected argument " "1"" of type '" "wxWindow *""'");
35130 }
35131 arg1 = reinterpret_cast< wxWindow * >(argp1);
35132 {
35133 arg2 = &temp2;
35134 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
35135 }
35136 {
35137 PyThreadState* __tstate = wxPyBeginAllowThreads();
35138 (arg1)->SetMinSize((wxSize const &)*arg2);
35139 wxPyEndAllowThreads(__tstate);
35140 if (PyErr_Occurred()) SWIG_fail;
35141 }
35142 resultobj = SWIG_Py_Void();
35143 return resultobj;
35144fail:
35145 return NULL;
35146}
35147
35148
35149SWIGINTERN PyObject *_wrap_Window_SetMaxSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35150 PyObject *resultobj = 0;
35151 wxWindow *arg1 = (wxWindow *) 0 ;
35152 wxSize *arg2 = 0 ;
35153 void *argp1 = 0 ;
35154 int res1 = 0 ;
35155 wxSize temp2 ;
35156 PyObject * obj0 = 0 ;
35157 PyObject * obj1 = 0 ;
35158 char * kwnames[] = {
35159 (char *) "self",(char *) "maxSize", NULL
35160 };
35161
35162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) SWIG_fail;
35163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35164 if (!SWIG_IsOK(res1)) {
35165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetMaxSize" "', expected argument " "1"" of type '" "wxWindow *""'");
35166 }
35167 arg1 = reinterpret_cast< wxWindow * >(argp1);
35168 {
35169 arg2 = &temp2;
35170 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
35171 }
35172 {
35173 PyThreadState* __tstate = wxPyBeginAllowThreads();
35174 (arg1)->SetMaxSize((wxSize const &)*arg2);
35175 wxPyEndAllowThreads(__tstate);
35176 if (PyErr_Occurred()) SWIG_fail;
35177 }
35178 resultobj = SWIG_Py_Void();
35179 return resultobj;
35180fail:
35181 return NULL;
d55e5bfc
RD
35182}
35183
35184
1bd55598
RD
35185SWIGINTERN PyObject *_wrap_Window_GetMinWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35186 PyObject *resultobj = 0;
35187 wxWindow *arg1 = (wxWindow *) 0 ;
35188 int result;
35189 void *argp1 = 0 ;
35190 int res1 = 0 ;
35191 PyObject *swig_obj[1] ;
35192
35193 if (!args) SWIG_fail;
35194 swig_obj[0] = args;
35195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35196 if (!SWIG_IsOK(res1)) {
35197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMinWidth" "', expected argument " "1"" of type '" "wxWindow const *""'");
35198 }
35199 arg1 = reinterpret_cast< wxWindow * >(argp1);
35200 {
35201 PyThreadState* __tstate = wxPyBeginAllowThreads();
35202 result = (int)((wxWindow const *)arg1)->GetMinWidth();
35203 wxPyEndAllowThreads(__tstate);
35204 if (PyErr_Occurred()) SWIG_fail;
35205 }
35206 resultobj = SWIG_From_int(static_cast< int >(result));
35207 return resultobj;
35208fail:
35209 return NULL;
d55e5bfc
RD
35210}
35211
35212
1bd55598
RD
35213SWIGINTERN PyObject *_wrap_Window_GetMinHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35214 PyObject *resultobj = 0;
35215 wxWindow *arg1 = (wxWindow *) 0 ;
35216 int result;
35217 void *argp1 = 0 ;
35218 int res1 = 0 ;
35219 PyObject *swig_obj[1] ;
35220
35221 if (!args) SWIG_fail;
35222 swig_obj[0] = args;
35223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35224 if (!SWIG_IsOK(res1)) {
35225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMinHeight" "', expected argument " "1"" of type '" "wxWindow const *""'");
35226 }
35227 arg1 = reinterpret_cast< wxWindow * >(argp1);
35228 {
35229 PyThreadState* __tstate = wxPyBeginAllowThreads();
35230 result = (int)((wxWindow const *)arg1)->GetMinHeight();
35231 wxPyEndAllowThreads(__tstate);
35232 if (PyErr_Occurred()) SWIG_fail;
35233 }
35234 resultobj = SWIG_From_int(static_cast< int >(result));
35235 return resultobj;
35236fail:
35237 return NULL;
d55e5bfc
RD
35238}
35239
35240
1bd55598
RD
35241SWIGINTERN PyObject *_wrap_Window_GetMaxWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35242 PyObject *resultobj = 0;
35243 wxWindow *arg1 = (wxWindow *) 0 ;
35244 int result;
35245 void *argp1 = 0 ;
35246 int res1 = 0 ;
35247 PyObject *swig_obj[1] ;
35248
35249 if (!args) SWIG_fail;
35250 swig_obj[0] = args;
35251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35252 if (!SWIG_IsOK(res1)) {
35253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMaxWidth" "', expected argument " "1"" of type '" "wxWindow const *""'");
35254 }
35255 arg1 = reinterpret_cast< wxWindow * >(argp1);
35256 {
35257 PyThreadState* __tstate = wxPyBeginAllowThreads();
35258 result = (int)((wxWindow const *)arg1)->GetMaxWidth();
35259 wxPyEndAllowThreads(__tstate);
35260 if (PyErr_Occurred()) SWIG_fail;
35261 }
35262 resultobj = SWIG_From_int(static_cast< int >(result));
35263 return resultobj;
35264fail:
35265 return NULL;
d55e5bfc 35266}
1bd55598
RD
35267
35268
35269SWIGINTERN PyObject *_wrap_Window_GetMaxHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35270 PyObject *resultobj = 0;
35271 wxWindow *arg1 = (wxWindow *) 0 ;
35272 int result;
35273 void *argp1 = 0 ;
35274 int res1 = 0 ;
35275 PyObject *swig_obj[1] ;
35276
35277 if (!args) SWIG_fail;
35278 swig_obj[0] = args;
35279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35280 if (!SWIG_IsOK(res1)) {
35281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMaxHeight" "', expected argument " "1"" of type '" "wxWindow const *""'");
35282 }
35283 arg1 = reinterpret_cast< wxWindow * >(argp1);
35284 {
35285 PyThreadState* __tstate = wxPyBeginAllowThreads();
35286 result = (int)((wxWindow const *)arg1)->GetMaxHeight();
35287 wxPyEndAllowThreads(__tstate);
35288 if (PyErr_Occurred()) SWIG_fail;
35289 }
35290 resultobj = SWIG_From_int(static_cast< int >(result));
35291 return resultobj;
35292fail:
35293 return NULL;
35294}
35295
35296
35297SWIGINTERN PyObject *_wrap_Window_SetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35298 PyObject *resultobj = 0;
35299 wxWindow *arg1 = (wxWindow *) 0 ;
35300 wxSize *arg2 = 0 ;
35301 void *argp1 = 0 ;
35302 int res1 = 0 ;
35303 wxSize temp2 ;
35304 PyObject * obj0 = 0 ;
35305 PyObject * obj1 = 0 ;
35306 char * kwnames[] = {
35307 (char *) "self",(char *) "size", NULL
35308 };
35309
35310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) SWIG_fail;
35311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35312 if (!SWIG_IsOK(res1)) {
35313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetVirtualSize" "', expected argument " "1"" of type '" "wxWindow *""'");
35314 }
35315 arg1 = reinterpret_cast< wxWindow * >(argp1);
35316 {
35317 arg2 = &temp2;
35318 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
35319 }
35320 {
35321 PyThreadState* __tstate = wxPyBeginAllowThreads();
35322 (arg1)->SetVirtualSize((wxSize const &)*arg2);
35323 wxPyEndAllowThreads(__tstate);
35324 if (PyErr_Occurred()) SWIG_fail;
35325 }
35326 resultobj = SWIG_Py_Void();
35327 return resultobj;
35328fail:
35329 return NULL;
35330}
35331
35332
35333SWIGINTERN PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35334 PyObject *resultobj = 0;
35335 wxWindow *arg1 = (wxWindow *) 0 ;
35336 int arg2 ;
35337 int arg3 ;
35338 void *argp1 = 0 ;
35339 int res1 = 0 ;
35340 int val2 ;
35341 int ecode2 = 0 ;
35342 int val3 ;
35343 int ecode3 = 0 ;
35344 PyObject * obj0 = 0 ;
35345 PyObject * obj1 = 0 ;
35346 PyObject * obj2 = 0 ;
35347 char * kwnames[] = {
35348 (char *) "self",(char *) "w",(char *) "h", NULL
35349 };
35350
35351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35353 if (!SWIG_IsOK(res1)) {
35354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetVirtualSizeWH" "', expected argument " "1"" of type '" "wxWindow *""'");
35355 }
35356 arg1 = reinterpret_cast< wxWindow * >(argp1);
35357 ecode2 = SWIG_AsVal_int(obj1, &val2);
35358 if (!SWIG_IsOK(ecode2)) {
35359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetVirtualSizeWH" "', expected argument " "2"" of type '" "int""'");
35360 }
35361 arg2 = static_cast< int >(val2);
35362 ecode3 = SWIG_AsVal_int(obj2, &val3);
35363 if (!SWIG_IsOK(ecode3)) {
35364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetVirtualSizeWH" "', expected argument " "3"" of type '" "int""'");
35365 }
35366 arg3 = static_cast< int >(val3);
35367 {
35368 PyThreadState* __tstate = wxPyBeginAllowThreads();
35369 (arg1)->SetVirtualSize(arg2,arg3);
35370 wxPyEndAllowThreads(__tstate);
35371 if (PyErr_Occurred()) SWIG_fail;
35372 }
35373 resultobj = SWIG_Py_Void();
35374 return resultobj;
35375fail:
35376 return NULL;
d55e5bfc
RD
35377}
35378
35379
1bd55598
RD
35380SWIGINTERN PyObject *_wrap_Window_GetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35381 PyObject *resultobj = 0;
35382 wxWindow *arg1 = (wxWindow *) 0 ;
35383 wxSize result;
35384 void *argp1 = 0 ;
35385 int res1 = 0 ;
35386 PyObject *swig_obj[1] ;
35387
35388 if (!args) SWIG_fail;
35389 swig_obj[0] = args;
35390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35391 if (!SWIG_IsOK(res1)) {
35392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetVirtualSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
35393 }
35394 arg1 = reinterpret_cast< wxWindow * >(argp1);
35395 {
35396 PyThreadState* __tstate = wxPyBeginAllowThreads();
35397 result = ((wxWindow const *)arg1)->GetVirtualSize();
35398 wxPyEndAllowThreads(__tstate);
35399 if (PyErr_Occurred()) SWIG_fail;
35400 }
35401 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
35402 return resultobj;
35403fail:
35404 return NULL;
35405}
35406
35407
35408SWIGINTERN PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35409 PyObject *resultobj = 0;
35410 wxWindow *arg1 = (wxWindow *) 0 ;
35411 int *arg2 = (int *) 0 ;
35412 int *arg3 = (int *) 0 ;
35413 void *argp1 = 0 ;
35414 int res1 = 0 ;
35415 int temp2 ;
35416 int res2 = SWIG_TMPOBJ ;
35417 int temp3 ;
35418 int res3 = SWIG_TMPOBJ ;
35419 PyObject *swig_obj[1] ;
35420
35421 arg2 = &temp2;
35422 arg3 = &temp3;
35423 if (!args) SWIG_fail;
35424 swig_obj[0] = args;
35425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35426 if (!SWIG_IsOK(res1)) {
35427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetVirtualSizeTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
35428 }
35429 arg1 = reinterpret_cast< wxWindow * >(argp1);
35430 {
35431 PyThreadState* __tstate = wxPyBeginAllowThreads();
35432 ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3);
35433 wxPyEndAllowThreads(__tstate);
35434 if (PyErr_Occurred()) SWIG_fail;
35435 }
35436 resultobj = SWIG_Py_Void();
35437 if (SWIG_IsTmpObj(res2)) {
35438 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
35439 } else {
35440 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
35441 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
35442 }
35443 if (SWIG_IsTmpObj(res3)) {
35444 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
35445 } else {
35446 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
35447 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
35448 }
35449 return resultobj;
35450fail:
35451 return NULL;
d55e5bfc
RD
35452}
35453
35454
1bd55598
RD
35455SWIGINTERN PyObject *_wrap_Window_GetBestVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35456 PyObject *resultobj = 0;
35457 wxWindow *arg1 = (wxWindow *) 0 ;
35458 wxSize result;
35459 void *argp1 = 0 ;
35460 int res1 = 0 ;
35461 PyObject *swig_obj[1] ;
35462
35463 if (!args) SWIG_fail;
35464 swig_obj[0] = args;
35465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35466 if (!SWIG_IsOK(res1)) {
35467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBestVirtualSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
35468 }
35469 arg1 = reinterpret_cast< wxWindow * >(argp1);
35470 {
35471 PyThreadState* __tstate = wxPyBeginAllowThreads();
35472 result = ((wxWindow const *)arg1)->GetBestVirtualSize();
35473 wxPyEndAllowThreads(__tstate);
35474 if (PyErr_Occurred()) SWIG_fail;
35475 }
35476 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
35477 return resultobj;
35478fail:
35479 return NULL;
35480}
35481
35482
35483SWIGINTERN PyObject *_wrap_Window_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35484 PyObject *resultobj = 0;
35485 wxWindow *arg1 = (wxWindow *) 0 ;
35486 bool arg2 = (bool) true ;
35487 bool result;
35488 void *argp1 = 0 ;
35489 int res1 = 0 ;
35490 bool val2 ;
35491 int ecode2 = 0 ;
35492 PyObject * obj0 = 0 ;
35493 PyObject * obj1 = 0 ;
35494 char * kwnames[] = {
35495 (char *) "self",(char *) "show", NULL
35496 };
35497
35498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) SWIG_fail;
35499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35500 if (!SWIG_IsOK(res1)) {
35501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Show" "', expected argument " "1"" of type '" "wxWindow *""'");
35502 }
35503 arg1 = reinterpret_cast< wxWindow * >(argp1);
35504 if (obj1) {
35505 ecode2 = SWIG_AsVal_bool(obj1, &val2);
35506 if (!SWIG_IsOK(ecode2)) {
35507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Show" "', expected argument " "2"" of type '" "bool""'");
35508 }
35509 arg2 = static_cast< bool >(val2);
35510 }
35511 {
35512 PyThreadState* __tstate = wxPyBeginAllowThreads();
35513 result = (bool)(arg1)->Show(arg2);
35514 wxPyEndAllowThreads(__tstate);
35515 if (PyErr_Occurred()) SWIG_fail;
35516 }
35517 {
35518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35519 }
35520 return resultobj;
35521fail:
35522 return NULL;
d55e5bfc
RD
35523}
35524
35525
1bd55598
RD
35526SWIGINTERN PyObject *_wrap_Window_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35527 PyObject *resultobj = 0;
35528 wxWindow *arg1 = (wxWindow *) 0 ;
35529 bool result;
35530 void *argp1 = 0 ;
35531 int res1 = 0 ;
35532 PyObject *swig_obj[1] ;
35533
35534 if (!args) SWIG_fail;
35535 swig_obj[0] = args;
35536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35537 if (!SWIG_IsOK(res1)) {
35538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Hide" "', expected argument " "1"" of type '" "wxWindow *""'");
35539 }
35540 arg1 = reinterpret_cast< wxWindow * >(argp1);
35541 {
35542 PyThreadState* __tstate = wxPyBeginAllowThreads();
35543 result = (bool)(arg1)->Hide();
35544 wxPyEndAllowThreads(__tstate);
35545 if (PyErr_Occurred()) SWIG_fail;
35546 }
35547 {
35548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35549 }
35550 return resultobj;
35551fail:
35552 return NULL;
35553}
35554
35555
35556SWIGINTERN PyObject *_wrap_Window_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35557 PyObject *resultobj = 0;
35558 wxWindow *arg1 = (wxWindow *) 0 ;
35559 bool arg2 = (bool) true ;
35560 bool result;
35561 void *argp1 = 0 ;
35562 int res1 = 0 ;
35563 bool val2 ;
35564 int ecode2 = 0 ;
35565 PyObject * obj0 = 0 ;
35566 PyObject * obj1 = 0 ;
35567 char * kwnames[] = {
35568 (char *) "self",(char *) "enable", NULL
35569 };
35570
35571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
35572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35573 if (!SWIG_IsOK(res1)) {
35574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Enable" "', expected argument " "1"" of type '" "wxWindow *""'");
35575 }
35576 arg1 = reinterpret_cast< wxWindow * >(argp1);
35577 if (obj1) {
35578 ecode2 = SWIG_AsVal_bool(obj1, &val2);
35579 if (!SWIG_IsOK(ecode2)) {
35580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Enable" "', expected argument " "2"" of type '" "bool""'");
35581 }
35582 arg2 = static_cast< bool >(val2);
35583 }
35584 {
35585 PyThreadState* __tstate = wxPyBeginAllowThreads();
35586 result = (bool)(arg1)->Enable(arg2);
35587 wxPyEndAllowThreads(__tstate);
35588 if (PyErr_Occurred()) SWIG_fail;
35589 }
35590 {
35591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35592 }
35593 return resultobj;
35594fail:
35595 return NULL;
b1fcee84
RD
35596}
35597
35598
1bd55598
RD
35599SWIGINTERN PyObject *_wrap_Window_Disable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35600 PyObject *resultobj = 0;
35601 wxWindow *arg1 = (wxWindow *) 0 ;
35602 bool result;
35603 void *argp1 = 0 ;
35604 int res1 = 0 ;
35605 PyObject *swig_obj[1] ;
35606
35607 if (!args) SWIG_fail;
35608 swig_obj[0] = args;
35609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35610 if (!SWIG_IsOK(res1)) {
35611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Disable" "', expected argument " "1"" of type '" "wxWindow *""'");
35612 }
35613 arg1 = reinterpret_cast< wxWindow * >(argp1);
35614 {
35615 PyThreadState* __tstate = wxPyBeginAllowThreads();
35616 result = (bool)(arg1)->Disable();
35617 wxPyEndAllowThreads(__tstate);
35618 if (PyErr_Occurred()) SWIG_fail;
35619 }
35620 {
35621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35622 }
35623 return resultobj;
35624fail:
35625 return NULL;
d55e5bfc
RD
35626}
35627
35628
1bd55598
RD
35629SWIGINTERN PyObject *_wrap_Window_IsShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35630 PyObject *resultobj = 0;
35631 wxWindow *arg1 = (wxWindow *) 0 ;
35632 bool result;
35633 void *argp1 = 0 ;
35634 int res1 = 0 ;
35635 PyObject *swig_obj[1] ;
35636
35637 if (!args) SWIG_fail;
35638 swig_obj[0] = args;
35639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35640 if (!SWIG_IsOK(res1)) {
35641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsShown" "', expected argument " "1"" of type '" "wxWindow const *""'");
35642 }
35643 arg1 = reinterpret_cast< wxWindow * >(argp1);
35644 {
35645 PyThreadState* __tstate = wxPyBeginAllowThreads();
35646 result = (bool)((wxWindow const *)arg1)->IsShown();
35647 wxPyEndAllowThreads(__tstate);
35648 if (PyErr_Occurred()) SWIG_fail;
35649 }
35650 {
35651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35652 }
35653 return resultobj;
35654fail:
35655 return NULL;
d55e5bfc
RD
35656}
35657
35658
1bd55598
RD
35659SWIGINTERN PyObject *_wrap_Window_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35660 PyObject *resultobj = 0;
35661 wxWindow *arg1 = (wxWindow *) 0 ;
35662 bool result;
35663 void *argp1 = 0 ;
35664 int res1 = 0 ;
35665 PyObject *swig_obj[1] ;
35666
35667 if (!args) SWIG_fail;
35668 swig_obj[0] = args;
35669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35670 if (!SWIG_IsOK(res1)) {
35671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsEnabled" "', expected argument " "1"" of type '" "wxWindow const *""'");
35672 }
35673 arg1 = reinterpret_cast< wxWindow * >(argp1);
35674 {
35675 PyThreadState* __tstate = wxPyBeginAllowThreads();
35676 result = (bool)((wxWindow const *)arg1)->IsEnabled();
35677 wxPyEndAllowThreads(__tstate);
35678 if (PyErr_Occurred()) SWIG_fail;
35679 }
35680 {
35681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35682 }
35683 return resultobj;
35684fail:
35685 return NULL;
35686}
35687
35688
33d6fd3b
RD
35689SWIGINTERN PyObject *_wrap_Window_IsShownOnScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35690 PyObject *resultobj = 0;
35691 wxWindow *arg1 = (wxWindow *) 0 ;
35692 bool result;
35693 void *argp1 = 0 ;
35694 int res1 = 0 ;
35695 PyObject *swig_obj[1] ;
35696
35697 if (!args) SWIG_fail;
35698 swig_obj[0] = args;
35699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35700 if (!SWIG_IsOK(res1)) {
35701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsShownOnScreen" "', expected argument " "1"" of type '" "wxWindow const *""'");
35702 }
35703 arg1 = reinterpret_cast< wxWindow * >(argp1);
35704 {
35705 PyThreadState* __tstate = wxPyBeginAllowThreads();
35706 result = (bool)((wxWindow const *)arg1)->IsShownOnScreen();
35707 wxPyEndAllowThreads(__tstate);
35708 if (PyErr_Occurred()) SWIG_fail;
35709 }
35710 {
35711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35712 }
35713 return resultobj;
35714fail:
35715 return NULL;
35716}
35717
35718
1bd55598
RD
35719SWIGINTERN PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35720 PyObject *resultobj = 0;
35721 wxWindow *arg1 = (wxWindow *) 0 ;
35722 long arg2 ;
35723 void *argp1 = 0 ;
35724 int res1 = 0 ;
35725 long val2 ;
35726 int ecode2 = 0 ;
35727 PyObject * obj0 = 0 ;
35728 PyObject * obj1 = 0 ;
35729 char * kwnames[] = {
35730 (char *) "self",(char *) "style", NULL
35731 };
35732
35733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) SWIG_fail;
35734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35735 if (!SWIG_IsOK(res1)) {
35736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetWindowStyleFlag" "', expected argument " "1"" of type '" "wxWindow *""'");
35737 }
35738 arg1 = reinterpret_cast< wxWindow * >(argp1);
35739 ecode2 = SWIG_AsVal_long(obj1, &val2);
35740 if (!SWIG_IsOK(ecode2)) {
35741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetWindowStyleFlag" "', expected argument " "2"" of type '" "long""'");
35742 }
35743 arg2 = static_cast< long >(val2);
35744 {
35745 PyThreadState* __tstate = wxPyBeginAllowThreads();
35746 (arg1)->SetWindowStyleFlag(arg2);
35747 wxPyEndAllowThreads(__tstate);
35748 if (PyErr_Occurred()) SWIG_fail;
35749 }
35750 resultobj = SWIG_Py_Void();
35751 return resultobj;
35752fail:
35753 return NULL;
d55e5bfc
RD
35754}
35755
35756
1bd55598
RD
35757SWIGINTERN PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35758 PyObject *resultobj = 0;
35759 wxWindow *arg1 = (wxWindow *) 0 ;
35760 long result;
35761 void *argp1 = 0 ;
35762 int res1 = 0 ;
35763 PyObject *swig_obj[1] ;
35764
35765 if (!args) SWIG_fail;
35766 swig_obj[0] = args;
35767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35768 if (!SWIG_IsOK(res1)) {
35769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetWindowStyleFlag" "', expected argument " "1"" of type '" "wxWindow const *""'");
35770 }
35771 arg1 = reinterpret_cast< wxWindow * >(argp1);
35772 {
35773 PyThreadState* __tstate = wxPyBeginAllowThreads();
35774 result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag();
35775 wxPyEndAllowThreads(__tstate);
35776 if (PyErr_Occurred()) SWIG_fail;
35777 }
35778 resultobj = SWIG_From_long(static_cast< long >(result));
35779 return resultobj;
35780fail:
35781 return NULL;
35782}
35783
35784
35785SWIGINTERN PyObject *_wrap_Window_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35786 PyObject *resultobj = 0;
35787 wxWindow *arg1 = (wxWindow *) 0 ;
35788 int arg2 ;
35789 bool result;
35790 void *argp1 = 0 ;
35791 int res1 = 0 ;
35792 int val2 ;
35793 int ecode2 = 0 ;
35794 PyObject * obj0 = 0 ;
35795 PyObject * obj1 = 0 ;
35796 char * kwnames[] = {
35797 (char *) "self",(char *) "flag", NULL
35798 };
35799
35800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
35801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35802 if (!SWIG_IsOK(res1)) {
35803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HasFlag" "', expected argument " "1"" of type '" "wxWindow const *""'");
35804 }
35805 arg1 = reinterpret_cast< wxWindow * >(argp1);
35806 ecode2 = SWIG_AsVal_int(obj1, &val2);
35807 if (!SWIG_IsOK(ecode2)) {
35808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_HasFlag" "', expected argument " "2"" of type '" "int""'");
35809 }
35810 arg2 = static_cast< int >(val2);
35811 {
35812 PyThreadState* __tstate = wxPyBeginAllowThreads();
35813 result = (bool)((wxWindow const *)arg1)->HasFlag(arg2);
35814 wxPyEndAllowThreads(__tstate);
35815 if (PyErr_Occurred()) SWIG_fail;
35816 }
35817 {
35818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35819 }
35820 return resultobj;
35821fail:
35822 return NULL;
d55e5bfc
RD
35823}
35824
35825
1bd55598
RD
35826SWIGINTERN PyObject *_wrap_Window_IsRetained(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35827 PyObject *resultobj = 0;
35828 wxWindow *arg1 = (wxWindow *) 0 ;
35829 bool result;
35830 void *argp1 = 0 ;
35831 int res1 = 0 ;
35832 PyObject *swig_obj[1] ;
35833
35834 if (!args) SWIG_fail;
35835 swig_obj[0] = args;
35836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35837 if (!SWIG_IsOK(res1)) {
35838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsRetained" "', expected argument " "1"" of type '" "wxWindow const *""'");
35839 }
35840 arg1 = reinterpret_cast< wxWindow * >(argp1);
35841 {
35842 PyThreadState* __tstate = wxPyBeginAllowThreads();
35843 result = (bool)((wxWindow const *)arg1)->IsRetained();
35844 wxPyEndAllowThreads(__tstate);
35845 if (PyErr_Occurred()) SWIG_fail;
35846 }
35847 {
35848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35849 }
35850 return resultobj;
35851fail:
35852 return NULL;
35853}
35854
35855
35856SWIGINTERN PyObject *_wrap_Window_SetExtraStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35857 PyObject *resultobj = 0;
35858 wxWindow *arg1 = (wxWindow *) 0 ;
35859 long arg2 ;
35860 void *argp1 = 0 ;
35861 int res1 = 0 ;
35862 long val2 ;
35863 int ecode2 = 0 ;
35864 PyObject * obj0 = 0 ;
35865 PyObject * obj1 = 0 ;
35866 char * kwnames[] = {
35867 (char *) "self",(char *) "exStyle", NULL
35868 };
35869
35870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) SWIG_fail;
35871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35872 if (!SWIG_IsOK(res1)) {
35873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetExtraStyle" "', expected argument " "1"" of type '" "wxWindow *""'");
35874 }
35875 arg1 = reinterpret_cast< wxWindow * >(argp1);
35876 ecode2 = SWIG_AsVal_long(obj1, &val2);
35877 if (!SWIG_IsOK(ecode2)) {
35878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetExtraStyle" "', expected argument " "2"" of type '" "long""'");
35879 }
35880 arg2 = static_cast< long >(val2);
35881 {
35882 PyThreadState* __tstate = wxPyBeginAllowThreads();
35883 (arg1)->SetExtraStyle(arg2);
35884 wxPyEndAllowThreads(__tstate);
35885 if (PyErr_Occurred()) SWIG_fail;
35886 }
35887 resultobj = SWIG_Py_Void();
35888 return resultobj;
35889fail:
35890 return NULL;
b1fcee84
RD
35891}
35892
35893
1bd55598
RD
35894SWIGINTERN PyObject *_wrap_Window_GetExtraStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35895 PyObject *resultobj = 0;
35896 wxWindow *arg1 = (wxWindow *) 0 ;
35897 long result;
35898 void *argp1 = 0 ;
35899 int res1 = 0 ;
35900 PyObject *swig_obj[1] ;
35901
35902 if (!args) SWIG_fail;
35903 swig_obj[0] = args;
35904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35905 if (!SWIG_IsOK(res1)) {
35906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetExtraStyle" "', expected argument " "1"" of type '" "wxWindow const *""'");
35907 }
35908 arg1 = reinterpret_cast< wxWindow * >(argp1);
35909 {
35910 PyThreadState* __tstate = wxPyBeginAllowThreads();
35911 result = (long)((wxWindow const *)arg1)->GetExtraStyle();
35912 wxPyEndAllowThreads(__tstate);
35913 if (PyErr_Occurred()) SWIG_fail;
35914 }
35915 resultobj = SWIG_From_long(static_cast< long >(result));
35916 return resultobj;
35917fail:
35918 return NULL;
35919}
35920
35921
35922SWIGINTERN PyObject *_wrap_Window_MakeModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35923 PyObject *resultobj = 0;
35924 wxWindow *arg1 = (wxWindow *) 0 ;
35925 bool arg2 = (bool) true ;
35926 void *argp1 = 0 ;
35927 int res1 = 0 ;
35928 bool val2 ;
35929 int ecode2 = 0 ;
35930 PyObject * obj0 = 0 ;
35931 PyObject * obj1 = 0 ;
35932 char * kwnames[] = {
35933 (char *) "self",(char *) "modal", NULL
35934 };
35935
35936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) SWIG_fail;
35937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35938 if (!SWIG_IsOK(res1)) {
35939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_MakeModal" "', expected argument " "1"" of type '" "wxWindow *""'");
35940 }
35941 arg1 = reinterpret_cast< wxWindow * >(argp1);
35942 if (obj1) {
35943 ecode2 = SWIG_AsVal_bool(obj1, &val2);
35944 if (!SWIG_IsOK(ecode2)) {
35945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_MakeModal" "', expected argument " "2"" of type '" "bool""'");
35946 }
35947 arg2 = static_cast< bool >(val2);
35948 }
35949 {
35950 PyThreadState* __tstate = wxPyBeginAllowThreads();
35951 (arg1)->MakeModal(arg2);
35952 wxPyEndAllowThreads(__tstate);
35953 if (PyErr_Occurred()) SWIG_fail;
35954 }
35955 resultobj = SWIG_Py_Void();
35956 return resultobj;
35957fail:
35958 return NULL;
35959}
35960
35961
35962SWIGINTERN PyObject *_wrap_Window_SetThemeEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35963 PyObject *resultobj = 0;
35964 wxWindow *arg1 = (wxWindow *) 0 ;
35965 bool arg2 ;
35966 void *argp1 = 0 ;
35967 int res1 = 0 ;
35968 bool val2 ;
35969 int ecode2 = 0 ;
35970 PyObject * obj0 = 0 ;
35971 PyObject * obj1 = 0 ;
35972 char * kwnames[] = {
35973 (char *) "self",(char *) "enableTheme", NULL
35974 };
35975
35976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
35977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
35978 if (!SWIG_IsOK(res1)) {
35979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetThemeEnabled" "', expected argument " "1"" of type '" "wxWindow *""'");
35980 }
35981 arg1 = reinterpret_cast< wxWindow * >(argp1);
35982 ecode2 = SWIG_AsVal_bool(obj1, &val2);
35983 if (!SWIG_IsOK(ecode2)) {
35984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetThemeEnabled" "', expected argument " "2"" of type '" "bool""'");
35985 }
35986 arg2 = static_cast< bool >(val2);
35987 {
35988 PyThreadState* __tstate = wxPyBeginAllowThreads();
35989 (arg1)->SetThemeEnabled(arg2);
35990 wxPyEndAllowThreads(__tstate);
35991 if (PyErr_Occurred()) SWIG_fail;
35992 }
35993 resultobj = SWIG_Py_Void();
35994 return resultobj;
35995fail:
35996 return NULL;
d55e5bfc
RD
35997}
35998
35999
1bd55598
RD
36000SWIGINTERN PyObject *_wrap_Window_GetThemeEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36001 PyObject *resultobj = 0;
36002 wxWindow *arg1 = (wxWindow *) 0 ;
36003 bool result;
36004 void *argp1 = 0 ;
36005 int res1 = 0 ;
36006 PyObject *swig_obj[1] ;
36007
36008 if (!args) SWIG_fail;
36009 swig_obj[0] = args;
36010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36011 if (!SWIG_IsOK(res1)) {
36012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetThemeEnabled" "', expected argument " "1"" of type '" "wxWindow const *""'");
36013 }
36014 arg1 = reinterpret_cast< wxWindow * >(argp1);
36015 {
36016 PyThreadState* __tstate = wxPyBeginAllowThreads();
36017 result = (bool)((wxWindow const *)arg1)->GetThemeEnabled();
36018 wxPyEndAllowThreads(__tstate);
36019 if (PyErr_Occurred()) SWIG_fail;
36020 }
36021 {
36022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36023 }
36024 return resultobj;
36025fail:
36026 return NULL;
d55e5bfc
RD
36027}
36028
36029
1bd55598
RD
36030SWIGINTERN PyObject *_wrap_Window_SetFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36031 PyObject *resultobj = 0;
36032 wxWindow *arg1 = (wxWindow *) 0 ;
36033 void *argp1 = 0 ;
36034 int res1 = 0 ;
36035 PyObject *swig_obj[1] ;
36036
36037 if (!args) SWIG_fail;
36038 swig_obj[0] = args;
36039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36040 if (!SWIG_IsOK(res1)) {
36041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetFocus" "', expected argument " "1"" of type '" "wxWindow *""'");
36042 }
36043 arg1 = reinterpret_cast< wxWindow * >(argp1);
36044 {
36045 PyThreadState* __tstate = wxPyBeginAllowThreads();
36046 (arg1)->SetFocus();
36047 wxPyEndAllowThreads(__tstate);
36048 if (PyErr_Occurred()) SWIG_fail;
36049 }
36050 resultobj = SWIG_Py_Void();
36051 return resultobj;
36052fail:
36053 return NULL;
b1fcee84
RD
36054}
36055
36056
1bd55598
RD
36057SWIGINTERN PyObject *_wrap_Window_SetFocusFromKbd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36058 PyObject *resultobj = 0;
36059 wxWindow *arg1 = (wxWindow *) 0 ;
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_SetFocusFromKbd" "', expected argument " "1"" of type '" "wxWindow *""'");
36069 }
36070 arg1 = reinterpret_cast< wxWindow * >(argp1);
36071 {
36072 PyThreadState* __tstate = wxPyBeginAllowThreads();
36073 (arg1)->SetFocusFromKbd();
36074 wxPyEndAllowThreads(__tstate);
36075 if (PyErr_Occurred()) SWIG_fail;
36076 }
36077 resultobj = SWIG_Py_Void();
36078 return resultobj;
36079fail:
36080 return NULL;
d55e5bfc
RD
36081}
36082
36083
1bd55598
RD
36084SWIGINTERN PyObject *_wrap_Window_FindFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36085 PyObject *resultobj = 0;
36086 wxWindow *result = 0 ;
36087
36088 if (!SWIG_Python_UnpackTuple(args,"Window_FindFocus",0,0,0)) SWIG_fail;
36089 {
36090 if (!wxPyCheckForApp()) SWIG_fail;
36091 PyThreadState* __tstate = wxPyBeginAllowThreads();
36092 result = (wxWindow *)wxWindow::FindFocus();
36093 wxPyEndAllowThreads(__tstate);
36094 if (PyErr_Occurred()) SWIG_fail;
36095 }
36096 {
36097 resultobj = wxPyMake_wxObject(result, 0);
36098 }
36099 return resultobj;
36100fail:
36101 return NULL;
d55e5bfc
RD
36102}
36103
36104
1bd55598
RD
36105SWIGINTERN PyObject *_wrap_Window_AcceptsFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36106 PyObject *resultobj = 0;
36107 wxWindow *arg1 = (wxWindow *) 0 ;
36108 bool result;
36109 void *argp1 = 0 ;
36110 int res1 = 0 ;
36111 PyObject *swig_obj[1] ;
36112
36113 if (!args) SWIG_fail;
36114 swig_obj[0] = args;
36115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36116 if (!SWIG_IsOK(res1)) {
36117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_AcceptsFocus" "', expected argument " "1"" of type '" "wxWindow const *""'");
36118 }
36119 arg1 = reinterpret_cast< wxWindow * >(argp1);
36120 {
36121 PyThreadState* __tstate = wxPyBeginAllowThreads();
36122 result = (bool)((wxWindow const *)arg1)->AcceptsFocus();
36123 wxPyEndAllowThreads(__tstate);
36124 if (PyErr_Occurred()) SWIG_fail;
36125 }
36126 {
36127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36128 }
36129 return resultobj;
36130fail:
36131 return NULL;
d55e5bfc
RD
36132}
36133
36134
1bd55598
RD
36135SWIGINTERN PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36136 PyObject *resultobj = 0;
36137 wxWindow *arg1 = (wxWindow *) 0 ;
36138 bool result;
36139 void *argp1 = 0 ;
36140 int res1 = 0 ;
36141 PyObject *swig_obj[1] ;
36142
36143 if (!args) SWIG_fail;
36144 swig_obj[0] = args;
36145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36146 if (!SWIG_IsOK(res1)) {
36147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_AcceptsFocusFromKeyboard" "', expected argument " "1"" of type '" "wxWindow const *""'");
36148 }
36149 arg1 = reinterpret_cast< wxWindow * >(argp1);
36150 {
36151 PyThreadState* __tstate = wxPyBeginAllowThreads();
36152 result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard();
36153 wxPyEndAllowThreads(__tstate);
36154 if (PyErr_Occurred()) SWIG_fail;
36155 }
36156 {
36157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36158 }
36159 return resultobj;
36160fail:
36161 return NULL;
d55e5bfc
RD
36162}
36163
36164
1bd55598
RD
36165SWIGINTERN PyObject *_wrap_Window_Navigate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36166 PyObject *resultobj = 0;
36167 wxWindow *arg1 = (wxWindow *) 0 ;
36168 int arg2 = (int) wxNavigationKeyEvent::IsForward ;
36169 bool result;
36170 void *argp1 = 0 ;
36171 int res1 = 0 ;
36172 int val2 ;
36173 int ecode2 = 0 ;
36174 PyObject * obj0 = 0 ;
36175 PyObject * obj1 = 0 ;
36176 char * kwnames[] = {
36177 (char *) "self",(char *) "flags", NULL
36178 };
36179
36180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) SWIG_fail;
36181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36182 if (!SWIG_IsOK(res1)) {
36183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Navigate" "', expected argument " "1"" of type '" "wxWindow *""'");
36184 }
36185 arg1 = reinterpret_cast< wxWindow * >(argp1);
36186 if (obj1) {
36187 ecode2 = SWIG_AsVal_int(obj1, &val2);
36188 if (!SWIG_IsOK(ecode2)) {
36189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Navigate" "', expected argument " "2"" of type '" "int""'");
36190 }
36191 arg2 = static_cast< int >(val2);
36192 }
36193 {
36194 PyThreadState* __tstate = wxPyBeginAllowThreads();
36195 result = (bool)(arg1)->Navigate(arg2);
36196 wxPyEndAllowThreads(__tstate);
36197 if (PyErr_Occurred()) SWIG_fail;
36198 }
36199 {
36200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36201 }
36202 return resultobj;
36203fail:
36204 return NULL;
36205}
36206
36207
36208SWIGINTERN PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36209 PyObject *resultobj = 0;
36210 wxWindow *arg1 = (wxWindow *) 0 ;
36211 wxWindow *arg2 = (wxWindow *) 0 ;
36212 void *argp1 = 0 ;
36213 int res1 = 0 ;
36214 void *argp2 = 0 ;
36215 int res2 = 0 ;
36216 PyObject * obj0 = 0 ;
36217 PyObject * obj1 = 0 ;
36218 char * kwnames[] = {
36219 (char *) "self",(char *) "win", NULL
36220 };
36221
36222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) SWIG_fail;
36223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36224 if (!SWIG_IsOK(res1)) {
36225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_MoveAfterInTabOrder" "', expected argument " "1"" of type '" "wxWindow *""'");
36226 }
36227 arg1 = reinterpret_cast< wxWindow * >(argp1);
36228 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36229 if (!SWIG_IsOK(res2)) {
36230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_MoveAfterInTabOrder" "', expected argument " "2"" of type '" "wxWindow *""'");
36231 }
36232 arg2 = reinterpret_cast< wxWindow * >(argp2);
36233 {
36234 PyThreadState* __tstate = wxPyBeginAllowThreads();
36235 (arg1)->MoveAfterInTabOrder(arg2);
36236 wxPyEndAllowThreads(__tstate);
36237 if (PyErr_Occurred()) SWIG_fail;
36238 }
36239 resultobj = SWIG_Py_Void();
36240 return resultobj;
36241fail:
36242 return NULL;
36243}
36244
36245
36246SWIGINTERN PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36247 PyObject *resultobj = 0;
36248 wxWindow *arg1 = (wxWindow *) 0 ;
36249 wxWindow *arg2 = (wxWindow *) 0 ;
36250 void *argp1 = 0 ;
36251 int res1 = 0 ;
36252 void *argp2 = 0 ;
36253 int res2 = 0 ;
36254 PyObject * obj0 = 0 ;
36255 PyObject * obj1 = 0 ;
36256 char * kwnames[] = {
36257 (char *) "self",(char *) "win", NULL
36258 };
36259
36260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) SWIG_fail;
36261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36262 if (!SWIG_IsOK(res1)) {
36263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_MoveBeforeInTabOrder" "', expected argument " "1"" of type '" "wxWindow *""'");
36264 }
36265 arg1 = reinterpret_cast< wxWindow * >(argp1);
36266 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36267 if (!SWIG_IsOK(res2)) {
36268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_MoveBeforeInTabOrder" "', expected argument " "2"" of type '" "wxWindow *""'");
36269 }
36270 arg2 = reinterpret_cast< wxWindow * >(argp2);
36271 {
36272 PyThreadState* __tstate = wxPyBeginAllowThreads();
36273 (arg1)->MoveBeforeInTabOrder(arg2);
36274 wxPyEndAllowThreads(__tstate);
36275 if (PyErr_Occurred()) SWIG_fail;
36276 }
36277 resultobj = SWIG_Py_Void();
36278 return resultobj;
36279fail:
36280 return NULL;
d55e5bfc
RD
36281}
36282
36283
1bd55598
RD
36284SWIGINTERN PyObject *_wrap_Window_GetChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36285 PyObject *resultobj = 0;
36286 wxWindow *arg1 = (wxWindow *) 0 ;
36287 PyObject *result = 0 ;
36288 void *argp1 = 0 ;
36289 int res1 = 0 ;
36290 PyObject *swig_obj[1] ;
36291
36292 if (!args) SWIG_fail;
36293 swig_obj[0] = args;
36294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36295 if (!SWIG_IsOK(res1)) {
36296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetChildren" "', expected argument " "1"" of type '" "wxWindow *""'");
36297 }
36298 arg1 = reinterpret_cast< wxWindow * >(argp1);
36299 {
36300 PyThreadState* __tstate = wxPyBeginAllowThreads();
36301 result = (PyObject *)wxWindow_GetChildren(arg1);
36302 wxPyEndAllowThreads(__tstate);
36303 if (PyErr_Occurred()) SWIG_fail;
36304 }
36305 resultobj = result;
36306 return resultobj;
36307fail:
36308 return NULL;
d55e5bfc
RD
36309}
36310
36311
1bd55598
RD
36312SWIGINTERN PyObject *_wrap_Window_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36313 PyObject *resultobj = 0;
36314 wxWindow *arg1 = (wxWindow *) 0 ;
36315 wxWindow *result = 0 ;
36316 void *argp1 = 0 ;
36317 int res1 = 0 ;
36318 PyObject *swig_obj[1] ;
36319
36320 if (!args) SWIG_fail;
36321 swig_obj[0] = args;
36322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36323 if (!SWIG_IsOK(res1)) {
36324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetParent" "', expected argument " "1"" of type '" "wxWindow const *""'");
36325 }
36326 arg1 = reinterpret_cast< wxWindow * >(argp1);
36327 {
36328 PyThreadState* __tstate = wxPyBeginAllowThreads();
36329 result = (wxWindow *)((wxWindow const *)arg1)->GetParent();
36330 wxPyEndAllowThreads(__tstate);
36331 if (PyErr_Occurred()) SWIG_fail;
36332 }
36333 {
36334 resultobj = wxPyMake_wxObject(result, 0);
36335 }
36336 return resultobj;
36337fail:
36338 return NULL;
d55e5bfc
RD
36339}
36340
36341
1bd55598
RD
36342SWIGINTERN PyObject *_wrap_Window_GetGrandParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36343 PyObject *resultobj = 0;
36344 wxWindow *arg1 = (wxWindow *) 0 ;
36345 wxWindow *result = 0 ;
36346 void *argp1 = 0 ;
36347 int res1 = 0 ;
36348 PyObject *swig_obj[1] ;
36349
36350 if (!args) SWIG_fail;
36351 swig_obj[0] = args;
36352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36353 if (!SWIG_IsOK(res1)) {
36354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetGrandParent" "', expected argument " "1"" of type '" "wxWindow const *""'");
36355 }
36356 arg1 = reinterpret_cast< wxWindow * >(argp1);
36357 {
36358 PyThreadState* __tstate = wxPyBeginAllowThreads();
36359 result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent();
36360 wxPyEndAllowThreads(__tstate);
36361 if (PyErr_Occurred()) SWIG_fail;
36362 }
36363 {
36364 resultobj = wxPyMake_wxObject(result, 0);
36365 }
36366 return resultobj;
36367fail:
36368 return NULL;
d55e5bfc
RD
36369}
36370
36371
1bd55598
RD
36372SWIGINTERN PyObject *_wrap_Window_IsTopLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36373 PyObject *resultobj = 0;
36374 wxWindow *arg1 = (wxWindow *) 0 ;
36375 bool result;
36376 void *argp1 = 0 ;
36377 int res1 = 0 ;
36378 PyObject *swig_obj[1] ;
36379
36380 if (!args) SWIG_fail;
36381 swig_obj[0] = args;
36382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36383 if (!SWIG_IsOK(res1)) {
36384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsTopLevel" "', expected argument " "1"" of type '" "wxWindow const *""'");
36385 }
36386 arg1 = reinterpret_cast< wxWindow * >(argp1);
36387 {
36388 PyThreadState* __tstate = wxPyBeginAllowThreads();
36389 result = (bool)((wxWindow const *)arg1)->IsTopLevel();
36390 wxPyEndAllowThreads(__tstate);
36391 if (PyErr_Occurred()) SWIG_fail;
36392 }
36393 {
36394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36395 }
36396 return resultobj;
36397fail:
36398 return NULL;
36399}
36400
36401
36402SWIGINTERN PyObject *_wrap_Window_Reparent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36403 PyObject *resultobj = 0;
36404 wxWindow *arg1 = (wxWindow *) 0 ;
36405 wxWindow *arg2 = (wxWindow *) 0 ;
36406 bool result;
36407 void *argp1 = 0 ;
36408 int res1 = 0 ;
36409 void *argp2 = 0 ;
36410 int res2 = 0 ;
36411 PyObject * obj0 = 0 ;
36412 PyObject * obj1 = 0 ;
36413 char * kwnames[] = {
36414 (char *) "self",(char *) "newParent", NULL
36415 };
36416
36417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) SWIG_fail;
36418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36419 if (!SWIG_IsOK(res1)) {
36420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Reparent" "', expected argument " "1"" of type '" "wxWindow *""'");
36421 }
36422 arg1 = reinterpret_cast< wxWindow * >(argp1);
36423 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36424 if (!SWIG_IsOK(res2)) {
36425 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_Reparent" "', expected argument " "2"" of type '" "wxWindow *""'");
36426 }
36427 arg2 = reinterpret_cast< wxWindow * >(argp2);
36428 {
36429 PyThreadState* __tstate = wxPyBeginAllowThreads();
36430 result = (bool)(arg1)->Reparent(arg2);
36431 wxPyEndAllowThreads(__tstate);
36432 if (PyErr_Occurred()) SWIG_fail;
36433 }
36434 {
36435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36436 }
36437 return resultobj;
36438fail:
36439 return NULL;
36440}
36441
36442
36443SWIGINTERN PyObject *_wrap_Window_AddChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36444 PyObject *resultobj = 0;
36445 wxWindow *arg1 = (wxWindow *) 0 ;
36446 wxWindow *arg2 = (wxWindow *) 0 ;
36447 void *argp1 = 0 ;
36448 int res1 = 0 ;
36449 void *argp2 = 0 ;
36450 int res2 = 0 ;
36451 PyObject * obj0 = 0 ;
36452 PyObject * obj1 = 0 ;
36453 char * kwnames[] = {
36454 (char *) "self",(char *) "child", NULL
36455 };
36456
36457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) SWIG_fail;
36458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36459 if (!SWIG_IsOK(res1)) {
36460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_AddChild" "', expected argument " "1"" of type '" "wxWindow *""'");
36461 }
36462 arg1 = reinterpret_cast< wxWindow * >(argp1);
36463 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36464 if (!SWIG_IsOK(res2)) {
36465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_AddChild" "', expected argument " "2"" of type '" "wxWindow *""'");
36466 }
36467 arg2 = reinterpret_cast< wxWindow * >(argp2);
36468 {
36469 PyThreadState* __tstate = wxPyBeginAllowThreads();
36470 (arg1)->AddChild(arg2);
36471 wxPyEndAllowThreads(__tstate);
36472 if (PyErr_Occurred()) SWIG_fail;
36473 }
36474 resultobj = SWIG_Py_Void();
36475 return resultobj;
36476fail:
36477 return NULL;
36478}
36479
36480
36481SWIGINTERN PyObject *_wrap_Window_RemoveChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36482 PyObject *resultobj = 0;
36483 wxWindow *arg1 = (wxWindow *) 0 ;
36484 wxWindow *arg2 = (wxWindow *) 0 ;
36485 void *argp1 = 0 ;
36486 int res1 = 0 ;
36487 void *argp2 = 0 ;
36488 int res2 = 0 ;
36489 PyObject * obj0 = 0 ;
36490 PyObject * obj1 = 0 ;
36491 char * kwnames[] = {
36492 (char *) "self",(char *) "child", NULL
36493 };
36494
36495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) SWIG_fail;
36496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36497 if (!SWIG_IsOK(res1)) {
36498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_RemoveChild" "', expected argument " "1"" of type '" "wxWindow *""'");
36499 }
36500 arg1 = reinterpret_cast< wxWindow * >(argp1);
36501 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36502 if (!SWIG_IsOK(res2)) {
36503 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_RemoveChild" "', expected argument " "2"" of type '" "wxWindow *""'");
36504 }
36505 arg2 = reinterpret_cast< wxWindow * >(argp2);
36506 {
36507 PyThreadState* __tstate = wxPyBeginAllowThreads();
36508 (arg1)->RemoveChild(arg2);
36509 wxPyEndAllowThreads(__tstate);
36510 if (PyErr_Occurred()) SWIG_fail;
36511 }
36512 resultobj = SWIG_Py_Void();
36513 return resultobj;
36514fail:
36515 return NULL;
36516}
36517
36518
704eda0c
RD
36519SWIGINTERN PyObject *_wrap_Window_SetDoubleBuffered(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36520 PyObject *resultobj = 0;
36521 wxWindow *arg1 = (wxWindow *) 0 ;
36522 bool arg2 ;
36523 void *argp1 = 0 ;
36524 int res1 = 0 ;
36525 bool val2 ;
36526 int ecode2 = 0 ;
36527 PyObject * obj0 = 0 ;
36528 PyObject * obj1 = 0 ;
36529 char * kwnames[] = {
36530 (char *) "self",(char *) "on", NULL
36531 };
36532
36533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDoubleBuffered",kwnames,&obj0,&obj1)) SWIG_fail;
36534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36535 if (!SWIG_IsOK(res1)) {
36536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetDoubleBuffered" "', expected argument " "1"" of type '" "wxWindow *""'");
36537 }
36538 arg1 = reinterpret_cast< wxWindow * >(argp1);
36539 ecode2 = SWIG_AsVal_bool(obj1, &val2);
36540 if (!SWIG_IsOK(ecode2)) {
36541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetDoubleBuffered" "', expected argument " "2"" of type '" "bool""'");
36542 }
36543 arg2 = static_cast< bool >(val2);
36544 {
36545 PyThreadState* __tstate = wxPyBeginAllowThreads();
36546 wxWindow_SetDoubleBuffered(arg1,arg2);
36547 wxPyEndAllowThreads(__tstate);
36548 if (PyErr_Occurred()) SWIG_fail;
36549 }
36550 resultobj = SWIG_Py_Void();
36551 return resultobj;
36552fail:
36553 return NULL;
36554}
36555
36556
1bd55598
RD
36557SWIGINTERN PyObject *_wrap_Window_FindWindowById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36558 PyObject *resultobj = 0;
36559 wxWindow *arg1 = (wxWindow *) 0 ;
36560 long arg2 ;
36561 wxWindow *result = 0 ;
36562 void *argp1 = 0 ;
36563 int res1 = 0 ;
36564 long val2 ;
36565 int ecode2 = 0 ;
36566 PyObject * obj0 = 0 ;
36567 PyObject * obj1 = 0 ;
36568 char * kwnames[] = {
36569 (char *) "self",(char *) "winid", NULL
36570 };
36571
36572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) SWIG_fail;
36573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36574 if (!SWIG_IsOK(res1)) {
36575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_FindWindowById" "', expected argument " "1"" of type '" "wxWindow *""'");
36576 }
36577 arg1 = reinterpret_cast< wxWindow * >(argp1);
36578 ecode2 = SWIG_AsVal_long(obj1, &val2);
36579 if (!SWIG_IsOK(ecode2)) {
36580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_FindWindowById" "', expected argument " "2"" of type '" "long""'");
36581 }
36582 arg2 = static_cast< long >(val2);
36583 {
36584 PyThreadState* __tstate = wxPyBeginAllowThreads();
36585 result = (wxWindow *)(arg1)->FindWindow(arg2);
36586 wxPyEndAllowThreads(__tstate);
36587 if (PyErr_Occurred()) SWIG_fail;
36588 }
36589 {
36590 resultobj = wxPyMake_wxObject(result, 0);
36591 }
36592 return resultobj;
36593fail:
36594 return NULL;
36595}
36596
36597
36598SWIGINTERN PyObject *_wrap_Window_FindWindowByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36599 PyObject *resultobj = 0;
36600 wxWindow *arg1 = (wxWindow *) 0 ;
36601 wxString *arg2 = 0 ;
36602 wxWindow *result = 0 ;
36603 void *argp1 = 0 ;
36604 int res1 = 0 ;
36605 bool temp2 = false ;
36606 PyObject * obj0 = 0 ;
36607 PyObject * obj1 = 0 ;
36608 char * kwnames[] = {
36609 (char *) "self",(char *) "name", NULL
36610 };
36611
36612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) SWIG_fail;
36613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36614 if (!SWIG_IsOK(res1)) {
36615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_FindWindowByName" "', expected argument " "1"" of type '" "wxWindow *""'");
36616 }
36617 arg1 = reinterpret_cast< wxWindow * >(argp1);
36618 {
36619 arg2 = wxString_in_helper(obj1);
36620 if (arg2 == NULL) SWIG_fail;
36621 temp2 = true;
36622 }
36623 {
36624 PyThreadState* __tstate = wxPyBeginAllowThreads();
36625 result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2);
36626 wxPyEndAllowThreads(__tstate);
36627 if (PyErr_Occurred()) SWIG_fail;
36628 }
36629 {
36630 resultobj = wxPyMake_wxObject(result, 0);
36631 }
36632 {
36633 if (temp2)
36634 delete arg2;
36635 }
36636 return resultobj;
36637fail:
36638 {
36639 if (temp2)
36640 delete arg2;
36641 }
36642 return NULL;
d55e5bfc
RD
36643}
36644
36645
1bd55598
RD
36646SWIGINTERN PyObject *_wrap_Window_GetEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36647 PyObject *resultobj = 0;
36648 wxWindow *arg1 = (wxWindow *) 0 ;
36649 wxEvtHandler *result = 0 ;
36650 void *argp1 = 0 ;
36651 int res1 = 0 ;
36652 PyObject *swig_obj[1] ;
36653
36654 if (!args) SWIG_fail;
36655 swig_obj[0] = args;
36656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36657 if (!SWIG_IsOK(res1)) {
36658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetEventHandler" "', expected argument " "1"" of type '" "wxWindow const *""'");
36659 }
36660 arg1 = reinterpret_cast< wxWindow * >(argp1);
36661 {
36662 PyThreadState* __tstate = wxPyBeginAllowThreads();
36663 result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler();
36664 wxPyEndAllowThreads(__tstate);
36665 if (PyErr_Occurred()) SWIG_fail;
36666 }
36667 {
36668 resultobj = wxPyMake_wxObject(result, 0);
36669 }
36670 return resultobj;
36671fail:
36672 return NULL;
36673}
36674
36675
36676SWIGINTERN PyObject *_wrap_Window_SetEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36677 PyObject *resultobj = 0;
36678 wxWindow *arg1 = (wxWindow *) 0 ;
36679 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
36680 void *argp1 = 0 ;
36681 int res1 = 0 ;
36682 void *argp2 = 0 ;
36683 int res2 = 0 ;
36684 PyObject * obj0 = 0 ;
36685 PyObject * obj1 = 0 ;
36686 char * kwnames[] = {
36687 (char *) "self",(char *) "handler", NULL
36688 };
36689
36690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) SWIG_fail;
36691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36692 if (!SWIG_IsOK(res1)) {
36693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetEventHandler" "', expected argument " "1"" of type '" "wxWindow *""'");
36694 }
36695 arg1 = reinterpret_cast< wxWindow * >(argp1);
36696 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
36697 if (!SWIG_IsOK(res2)) {
36698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetEventHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
36699 }
36700 arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
36701 {
36702 PyThreadState* __tstate = wxPyBeginAllowThreads();
36703 (arg1)->SetEventHandler(arg2);
36704 wxPyEndAllowThreads(__tstate);
36705 if (PyErr_Occurred()) SWIG_fail;
36706 }
36707 resultobj = SWIG_Py_Void();
36708 return resultobj;
36709fail:
36710 return NULL;
36711}
36712
36713
36714SWIGINTERN PyObject *_wrap_Window_PushEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36715 PyObject *resultobj = 0;
36716 wxWindow *arg1 = (wxWindow *) 0 ;
36717 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
36718 void *argp1 = 0 ;
36719 int res1 = 0 ;
36720 void *argp2 = 0 ;
36721 int res2 = 0 ;
36722 PyObject * obj0 = 0 ;
36723 PyObject * obj1 = 0 ;
36724 char * kwnames[] = {
36725 (char *) "self",(char *) "handler", NULL
36726 };
36727
36728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) SWIG_fail;
36729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36730 if (!SWIG_IsOK(res1)) {
36731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PushEventHandler" "', expected argument " "1"" of type '" "wxWindow *""'");
36732 }
36733 arg1 = reinterpret_cast< wxWindow * >(argp1);
36734 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
36735 if (!SWIG_IsOK(res2)) {
36736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_PushEventHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
36737 }
36738 arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
36739 {
36740 PyThreadState* __tstate = wxPyBeginAllowThreads();
36741 (arg1)->PushEventHandler(arg2);
36742 wxPyEndAllowThreads(__tstate);
36743 if (PyErr_Occurred()) SWIG_fail;
36744 }
36745 resultobj = SWIG_Py_Void();
36746 return resultobj;
36747fail:
36748 return NULL;
36749}
36750
36751
36752SWIGINTERN PyObject *_wrap_Window_PopEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36753 PyObject *resultobj = 0;
36754 wxWindow *arg1 = (wxWindow *) 0 ;
36755 bool arg2 = (bool) false ;
36756 wxEvtHandler *result = 0 ;
36757 void *argp1 = 0 ;
36758 int res1 = 0 ;
36759 bool val2 ;
36760 int ecode2 = 0 ;
36761 PyObject * obj0 = 0 ;
36762 PyObject * obj1 = 0 ;
36763 char * kwnames[] = {
36764 (char *) "self",(char *) "deleteHandler", NULL
36765 };
36766
36767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) SWIG_fail;
36768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36769 if (!SWIG_IsOK(res1)) {
36770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PopEventHandler" "', expected argument " "1"" of type '" "wxWindow *""'");
36771 }
36772 arg1 = reinterpret_cast< wxWindow * >(argp1);
36773 if (obj1) {
36774 ecode2 = SWIG_AsVal_bool(obj1, &val2);
36775 if (!SWIG_IsOK(ecode2)) {
36776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_PopEventHandler" "', expected argument " "2"" of type '" "bool""'");
36777 }
36778 arg2 = static_cast< bool >(val2);
36779 }
36780 {
36781 PyThreadState* __tstate = wxPyBeginAllowThreads();
36782 result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2);
36783 wxPyEndAllowThreads(__tstate);
36784 if (PyErr_Occurred()) SWIG_fail;
36785 }
36786 {
36787 resultobj = wxPyMake_wxObject(result, 0);
36788 }
36789 return resultobj;
36790fail:
36791 return NULL;
36792}
36793
36794
36795SWIGINTERN PyObject *_wrap_Window_RemoveEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36796 PyObject *resultobj = 0;
36797 wxWindow *arg1 = (wxWindow *) 0 ;
36798 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
36799 bool result;
36800 void *argp1 = 0 ;
36801 int res1 = 0 ;
36802 void *argp2 = 0 ;
36803 int res2 = 0 ;
36804 PyObject * obj0 = 0 ;
36805 PyObject * obj1 = 0 ;
36806 char * kwnames[] = {
36807 (char *) "self",(char *) "handler", NULL
36808 };
36809
36810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) SWIG_fail;
36811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36812 if (!SWIG_IsOK(res1)) {
36813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_RemoveEventHandler" "', expected argument " "1"" of type '" "wxWindow *""'");
36814 }
36815 arg1 = reinterpret_cast< wxWindow * >(argp1);
36816 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
36817 if (!SWIG_IsOK(res2)) {
36818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_RemoveEventHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
36819 }
36820 arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
36821 {
36822 PyThreadState* __tstate = wxPyBeginAllowThreads();
36823 result = (bool)(arg1)->RemoveEventHandler(arg2);
36824 wxPyEndAllowThreads(__tstate);
36825 if (PyErr_Occurred()) SWIG_fail;
36826 }
36827 {
36828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36829 }
36830 return resultobj;
36831fail:
36832 return NULL;
36833}
36834
36835
36836SWIGINTERN PyObject *_wrap_Window_SetValidator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36837 PyObject *resultobj = 0;
36838 wxWindow *arg1 = (wxWindow *) 0 ;
36839 wxValidator *arg2 = 0 ;
36840 void *argp1 = 0 ;
36841 int res1 = 0 ;
36842 void *argp2 = 0 ;
36843 int res2 = 0 ;
36844 PyObject * obj0 = 0 ;
36845 PyObject * obj1 = 0 ;
36846 char * kwnames[] = {
36847 (char *) "self",(char *) "validator", NULL
36848 };
36849
36850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) SWIG_fail;
36851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36852 if (!SWIG_IsOK(res1)) {
36853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetValidator" "', expected argument " "1"" of type '" "wxWindow *""'");
36854 }
36855 arg1 = reinterpret_cast< wxWindow * >(argp1);
36856 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxValidator, 0 | 0);
36857 if (!SWIG_IsOK(res2)) {
36858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetValidator" "', expected argument " "2"" of type '" "wxValidator const &""'");
36859 }
36860 if (!argp2) {
36861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_SetValidator" "', expected argument " "2"" of type '" "wxValidator const &""'");
36862 }
36863 arg2 = reinterpret_cast< wxValidator * >(argp2);
36864 {
36865 PyThreadState* __tstate = wxPyBeginAllowThreads();
36866 (arg1)->SetValidator((wxValidator const &)*arg2);
36867 wxPyEndAllowThreads(__tstate);
36868 if (PyErr_Occurred()) SWIG_fail;
36869 }
36870 resultobj = SWIG_Py_Void();
36871 return resultobj;
36872fail:
36873 return NULL;
d55e5bfc
RD
36874}
36875
36876
1bd55598
RD
36877SWIGINTERN PyObject *_wrap_Window_GetValidator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36878 PyObject *resultobj = 0;
36879 wxWindow *arg1 = (wxWindow *) 0 ;
36880 wxValidator *result = 0 ;
36881 void *argp1 = 0 ;
36882 int res1 = 0 ;
36883 PyObject *swig_obj[1] ;
36884
36885 if (!args) SWIG_fail;
36886 swig_obj[0] = args;
36887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36888 if (!SWIG_IsOK(res1)) {
36889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetValidator" "', expected argument " "1"" of type '" "wxWindow *""'");
36890 }
36891 arg1 = reinterpret_cast< wxWindow * >(argp1);
36892 {
36893 PyThreadState* __tstate = wxPyBeginAllowThreads();
36894 result = (wxValidator *)(arg1)->GetValidator();
36895 wxPyEndAllowThreads(__tstate);
36896 if (PyErr_Occurred()) SWIG_fail;
36897 }
36898 {
36899 resultobj = wxPyMake_wxObject(result, (bool)0);
36900 }
36901 return resultobj;
36902fail:
36903 return NULL;
d55e5bfc
RD
36904}
36905
36906
1bd55598
RD
36907SWIGINTERN PyObject *_wrap_Window_Validate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36908 PyObject *resultobj = 0;
36909 wxWindow *arg1 = (wxWindow *) 0 ;
36910 bool result;
36911 void *argp1 = 0 ;
36912 int res1 = 0 ;
36913 PyObject *swig_obj[1] ;
36914
36915 if (!args) SWIG_fail;
36916 swig_obj[0] = args;
36917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36918 if (!SWIG_IsOK(res1)) {
36919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Validate" "', expected argument " "1"" of type '" "wxWindow *""'");
36920 }
36921 arg1 = reinterpret_cast< wxWindow * >(argp1);
36922 {
36923 PyThreadState* __tstate = wxPyBeginAllowThreads();
36924 result = (bool)(arg1)->Validate();
36925 wxPyEndAllowThreads(__tstate);
36926 if (PyErr_Occurred()) SWIG_fail;
36927 }
36928 {
36929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36930 }
36931 return resultobj;
36932fail:
36933 return NULL;
d55e5bfc
RD
36934}
36935
36936
1bd55598
RD
36937SWIGINTERN PyObject *_wrap_Window_TransferDataToWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36938 PyObject *resultobj = 0;
36939 wxWindow *arg1 = (wxWindow *) 0 ;
36940 bool result;
36941 void *argp1 = 0 ;
36942 int res1 = 0 ;
36943 PyObject *swig_obj[1] ;
36944
36945 if (!args) SWIG_fail;
36946 swig_obj[0] = args;
36947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36948 if (!SWIG_IsOK(res1)) {
36949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_TransferDataToWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
36950 }
36951 arg1 = reinterpret_cast< wxWindow * >(argp1);
36952 {
36953 PyThreadState* __tstate = wxPyBeginAllowThreads();
36954 result = (bool)(arg1)->TransferDataToWindow();
36955 wxPyEndAllowThreads(__tstate);
36956 if (PyErr_Occurred()) SWIG_fail;
36957 }
36958 {
36959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36960 }
36961 return resultobj;
36962fail:
36963 return NULL;
d55e5bfc
RD
36964}
36965
36966
1bd55598
RD
36967SWIGINTERN PyObject *_wrap_Window_TransferDataFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36968 PyObject *resultobj = 0;
36969 wxWindow *arg1 = (wxWindow *) 0 ;
36970 bool result;
36971 void *argp1 = 0 ;
36972 int res1 = 0 ;
36973 PyObject *swig_obj[1] ;
36974
36975 if (!args) SWIG_fail;
36976 swig_obj[0] = args;
36977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36978 if (!SWIG_IsOK(res1)) {
36979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_TransferDataFromWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
36980 }
36981 arg1 = reinterpret_cast< wxWindow * >(argp1);
36982 {
36983 PyThreadState* __tstate = wxPyBeginAllowThreads();
36984 result = (bool)(arg1)->TransferDataFromWindow();
36985 wxPyEndAllowThreads(__tstate);
36986 if (PyErr_Occurred()) SWIG_fail;
36987 }
36988 {
36989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36990 }
36991 return resultobj;
36992fail:
36993 return NULL;
d55e5bfc
RD
36994}
36995
36996
1bd55598
RD
36997SWIGINTERN PyObject *_wrap_Window_InitDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36998 PyObject *resultobj = 0;
36999 wxWindow *arg1 = (wxWindow *) 0 ;
37000 void *argp1 = 0 ;
37001 int res1 = 0 ;
37002 PyObject *swig_obj[1] ;
37003
37004 if (!args) SWIG_fail;
37005 swig_obj[0] = args;
37006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37007 if (!SWIG_IsOK(res1)) {
37008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_InitDialog" "', expected argument " "1"" of type '" "wxWindow *""'");
37009 }
37010 arg1 = reinterpret_cast< wxWindow * >(argp1);
37011 {
37012 PyThreadState* __tstate = wxPyBeginAllowThreads();
37013 (arg1)->InitDialog();
37014 wxPyEndAllowThreads(__tstate);
37015 if (PyErr_Occurred()) SWIG_fail;
37016 }
37017 resultobj = SWIG_Py_Void();
37018 return resultobj;
37019fail:
37020 return NULL;
37021}
37022
37023
37024SWIGINTERN PyObject *_wrap_Window_SetAcceleratorTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37025 PyObject *resultobj = 0;
37026 wxWindow *arg1 = (wxWindow *) 0 ;
37027 wxAcceleratorTable *arg2 = 0 ;
37028 void *argp1 = 0 ;
37029 int res1 = 0 ;
37030 void *argp2 = 0 ;
37031 int res2 = 0 ;
37032 PyObject * obj0 = 0 ;
37033 PyObject * obj1 = 0 ;
37034 char * kwnames[] = {
37035 (char *) "self",(char *) "accel", NULL
37036 };
37037
37038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) SWIG_fail;
37039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37040 if (!SWIG_IsOK(res1)) {
37041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetAcceleratorTable" "', expected argument " "1"" of type '" "wxWindow *""'");
37042 }
37043 arg1 = reinterpret_cast< wxWindow * >(argp1);
37044 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAcceleratorTable, 0 | 0);
37045 if (!SWIG_IsOK(res2)) {
37046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetAcceleratorTable" "', expected argument " "2"" of type '" "wxAcceleratorTable const &""'");
37047 }
37048 if (!argp2) {
37049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_SetAcceleratorTable" "', expected argument " "2"" of type '" "wxAcceleratorTable const &""'");
37050 }
37051 arg2 = reinterpret_cast< wxAcceleratorTable * >(argp2);
37052 {
37053 PyThreadState* __tstate = wxPyBeginAllowThreads();
37054 (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2);
37055 wxPyEndAllowThreads(__tstate);
37056 if (PyErr_Occurred()) SWIG_fail;
37057 }
37058 resultobj = SWIG_Py_Void();
37059 return resultobj;
37060fail:
37061 return NULL;
d55e5bfc
RD
37062}
37063
37064
1bd55598
RD
37065SWIGINTERN PyObject *_wrap_Window_GetAcceleratorTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37066 PyObject *resultobj = 0;
37067 wxWindow *arg1 = (wxWindow *) 0 ;
37068 wxAcceleratorTable *result = 0 ;
37069 void *argp1 = 0 ;
37070 int res1 = 0 ;
37071 PyObject *swig_obj[1] ;
37072
37073 if (!args) SWIG_fail;
37074 swig_obj[0] = args;
37075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37076 if (!SWIG_IsOK(res1)) {
37077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetAcceleratorTable" "', expected argument " "1"" of type '" "wxWindow *""'");
37078 }
37079 arg1 = reinterpret_cast< wxWindow * >(argp1);
37080 {
37081 PyThreadState* __tstate = wxPyBeginAllowThreads();
37082 result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable();
37083 wxPyEndAllowThreads(__tstate);
37084 if (PyErr_Occurred()) SWIG_fail;
37085 }
37086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorTable, 0 | 0 );
37087 return resultobj;
37088fail:
37089 return NULL;
37090}
37091
37092
37093SWIGINTERN PyObject *_wrap_Window_RegisterHotKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37094 PyObject *resultobj = 0;
37095 wxWindow *arg1 = (wxWindow *) 0 ;
37096 int arg2 ;
37097 int arg3 ;
37098 int arg4 ;
37099 bool result;
37100 void *argp1 = 0 ;
37101 int res1 = 0 ;
37102 int val2 ;
37103 int ecode2 = 0 ;
37104 int val3 ;
37105 int ecode3 = 0 ;
37106 int val4 ;
37107 int ecode4 = 0 ;
37108 PyObject * obj0 = 0 ;
37109 PyObject * obj1 = 0 ;
37110 PyObject * obj2 = 0 ;
37111 PyObject * obj3 = 0 ;
37112 char * kwnames[] = {
37113 (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL
37114 };
37115
37116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37118 if (!SWIG_IsOK(res1)) {
37119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_RegisterHotKey" "', expected argument " "1"" of type '" "wxWindow *""'");
37120 }
37121 arg1 = reinterpret_cast< wxWindow * >(argp1);
37122 ecode2 = SWIG_AsVal_int(obj1, &val2);
37123 if (!SWIG_IsOK(ecode2)) {
37124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_RegisterHotKey" "', expected argument " "2"" of type '" "int""'");
37125 }
37126 arg2 = static_cast< int >(val2);
37127 ecode3 = SWIG_AsVal_int(obj2, &val3);
37128 if (!SWIG_IsOK(ecode3)) {
37129 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_RegisterHotKey" "', expected argument " "3"" of type '" "int""'");
37130 }
37131 arg3 = static_cast< int >(val3);
37132 ecode4 = SWIG_AsVal_int(obj3, &val4);
37133 if (!SWIG_IsOK(ecode4)) {
37134 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_RegisterHotKey" "', expected argument " "4"" of type '" "int""'");
37135 }
37136 arg4 = static_cast< int >(val4);
37137 {
37138 PyThreadState* __tstate = wxPyBeginAllowThreads();
37139 result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4);
37140 wxPyEndAllowThreads(__tstate);
37141 if (PyErr_Occurred()) SWIG_fail;
37142 }
37143 {
37144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37145 }
37146 return resultobj;
37147fail:
37148 return NULL;
37149}
37150
37151
37152SWIGINTERN PyObject *_wrap_Window_UnregisterHotKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37153 PyObject *resultobj = 0;
37154 wxWindow *arg1 = (wxWindow *) 0 ;
37155 int arg2 ;
37156 bool result;
37157 void *argp1 = 0 ;
37158 int res1 = 0 ;
37159 int val2 ;
37160 int ecode2 = 0 ;
37161 PyObject * obj0 = 0 ;
37162 PyObject * obj1 = 0 ;
37163 char * kwnames[] = {
37164 (char *) "self",(char *) "hotkeyId", NULL
37165 };
37166
37167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) SWIG_fail;
37168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37169 if (!SWIG_IsOK(res1)) {
37170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_UnregisterHotKey" "', expected argument " "1"" of type '" "wxWindow *""'");
37171 }
37172 arg1 = reinterpret_cast< wxWindow * >(argp1);
37173 ecode2 = SWIG_AsVal_int(obj1, &val2);
37174 if (!SWIG_IsOK(ecode2)) {
37175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_UnregisterHotKey" "', expected argument " "2"" of type '" "int""'");
37176 }
37177 arg2 = static_cast< int >(val2);
37178 {
37179 PyThreadState* __tstate = wxPyBeginAllowThreads();
37180 result = (bool)wxWindow_UnregisterHotKey(arg1,arg2);
37181 wxPyEndAllowThreads(__tstate);
37182 if (PyErr_Occurred()) SWIG_fail;
37183 }
37184 {
37185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37186 }
37187 return resultobj;
37188fail:
37189 return NULL;
37190}
37191
37192
37193SWIGINTERN PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37194 PyObject *resultobj = 0;
37195 wxWindow *arg1 = (wxWindow *) 0 ;
37196 wxPoint *arg2 = 0 ;
37197 wxPoint result;
37198 void *argp1 = 0 ;
37199 int res1 = 0 ;
37200 wxPoint temp2 ;
37201 PyObject * obj0 = 0 ;
37202 PyObject * obj1 = 0 ;
37203 char * kwnames[] = {
37204 (char *) "self",(char *) "pt", NULL
37205 };
37206
37207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) SWIG_fail;
37208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37209 if (!SWIG_IsOK(res1)) {
37210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ConvertDialogPointToPixels" "', expected argument " "1"" of type '" "wxWindow *""'");
37211 }
37212 arg1 = reinterpret_cast< wxWindow * >(argp1);
37213 {
37214 arg2 = &temp2;
37215 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37216 }
37217 {
37218 PyThreadState* __tstate = wxPyBeginAllowThreads();
37219 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
37220 wxPyEndAllowThreads(__tstate);
37221 if (PyErr_Occurred()) SWIG_fail;
37222 }
37223 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
37224 return resultobj;
37225fail:
37226 return NULL;
37227}
37228
37229
37230SWIGINTERN PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37231 PyObject *resultobj = 0;
37232 wxWindow *arg1 = (wxWindow *) 0 ;
37233 wxSize *arg2 = 0 ;
37234 wxSize result;
37235 void *argp1 = 0 ;
37236 int res1 = 0 ;
37237 wxSize temp2 ;
37238 PyObject * obj0 = 0 ;
37239 PyObject * obj1 = 0 ;
37240 char * kwnames[] = {
37241 (char *) "self",(char *) "sz", NULL
37242 };
37243
37244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) SWIG_fail;
37245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37246 if (!SWIG_IsOK(res1)) {
37247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ConvertDialogSizeToPixels" "', expected argument " "1"" of type '" "wxWindow *""'");
37248 }
37249 arg1 = reinterpret_cast< wxWindow * >(argp1);
37250 {
37251 arg2 = &temp2;
37252 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
37253 }
37254 {
37255 PyThreadState* __tstate = wxPyBeginAllowThreads();
37256 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
37257 wxPyEndAllowThreads(__tstate);
37258 if (PyErr_Occurred()) SWIG_fail;
37259 }
37260 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
37261 return resultobj;
37262fail:
37263 return NULL;
37264}
37265
37266
37267SWIGINTERN PyObject *_wrap_Window_DLG_PNT(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37268 PyObject *resultobj = 0;
37269 wxWindow *arg1 = (wxWindow *) 0 ;
37270 wxPoint *arg2 = 0 ;
37271 wxPoint result;
37272 void *argp1 = 0 ;
37273 int res1 = 0 ;
37274 wxPoint temp2 ;
37275 PyObject * obj0 = 0 ;
37276 PyObject * obj1 = 0 ;
37277 char * kwnames[] = {
37278 (char *) "self",(char *) "pt", NULL
37279 };
37280
37281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) SWIG_fail;
37282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37283 if (!SWIG_IsOK(res1)) {
37284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_DLG_PNT" "', expected argument " "1"" of type '" "wxWindow *""'");
37285 }
37286 arg1 = reinterpret_cast< wxWindow * >(argp1);
37287 {
37288 arg2 = &temp2;
37289 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37290 }
37291 {
37292 PyThreadState* __tstate = wxPyBeginAllowThreads();
37293 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
37294 wxPyEndAllowThreads(__tstate);
37295 if (PyErr_Occurred()) SWIG_fail;
37296 }
37297 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
37298 return resultobj;
37299fail:
37300 return NULL;
37301}
37302
37303
37304SWIGINTERN PyObject *_wrap_Window_DLG_SZE(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37305 PyObject *resultobj = 0;
37306 wxWindow *arg1 = (wxWindow *) 0 ;
37307 wxSize *arg2 = 0 ;
37308 wxSize result;
37309 void *argp1 = 0 ;
37310 int res1 = 0 ;
37311 wxSize temp2 ;
37312 PyObject * obj0 = 0 ;
37313 PyObject * obj1 = 0 ;
37314 char * kwnames[] = {
37315 (char *) "self",(char *) "sz", NULL
37316 };
37317
37318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) SWIG_fail;
37319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37320 if (!SWIG_IsOK(res1)) {
37321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_DLG_SZE" "', expected argument " "1"" of type '" "wxWindow *""'");
37322 }
37323 arg1 = reinterpret_cast< wxWindow * >(argp1);
37324 {
37325 arg2 = &temp2;
37326 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
37327 }
37328 {
37329 PyThreadState* __tstate = wxPyBeginAllowThreads();
37330 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
37331 wxPyEndAllowThreads(__tstate);
37332 if (PyErr_Occurred()) SWIG_fail;
37333 }
37334 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
37335 return resultobj;
37336fail:
37337 return NULL;
37338}
37339
37340
37341SWIGINTERN PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37342 PyObject *resultobj = 0;
37343 wxWindow *arg1 = (wxWindow *) 0 ;
37344 wxPoint *arg2 = 0 ;
37345 wxPoint result;
37346 void *argp1 = 0 ;
37347 int res1 = 0 ;
37348 wxPoint temp2 ;
37349 PyObject * obj0 = 0 ;
37350 PyObject * obj1 = 0 ;
37351 char * kwnames[] = {
37352 (char *) "self",(char *) "pt", NULL
37353 };
37354
37355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) SWIG_fail;
37356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37357 if (!SWIG_IsOK(res1)) {
37358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ConvertPixelPointToDialog" "', expected argument " "1"" of type '" "wxWindow *""'");
37359 }
37360 arg1 = reinterpret_cast< wxWindow * >(argp1);
37361 {
37362 arg2 = &temp2;
37363 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37364 }
37365 {
37366 PyThreadState* __tstate = wxPyBeginAllowThreads();
37367 result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2);
37368 wxPyEndAllowThreads(__tstate);
37369 if (PyErr_Occurred()) SWIG_fail;
37370 }
37371 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
37372 return resultobj;
37373fail:
37374 return NULL;
37375}
37376
37377
37378SWIGINTERN PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37379 PyObject *resultobj = 0;
37380 wxWindow *arg1 = (wxWindow *) 0 ;
37381 wxSize *arg2 = 0 ;
37382 wxSize result;
37383 void *argp1 = 0 ;
37384 int res1 = 0 ;
37385 wxSize temp2 ;
37386 PyObject * obj0 = 0 ;
37387 PyObject * obj1 = 0 ;
37388 char * kwnames[] = {
37389 (char *) "self",(char *) "sz", NULL
37390 };
37391
37392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) SWIG_fail;
37393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37394 if (!SWIG_IsOK(res1)) {
37395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ConvertPixelSizeToDialog" "', expected argument " "1"" of type '" "wxWindow *""'");
37396 }
37397 arg1 = reinterpret_cast< wxWindow * >(argp1);
37398 {
37399 arg2 = &temp2;
37400 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
37401 }
37402 {
37403 PyThreadState* __tstate = wxPyBeginAllowThreads();
37404 result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2);
37405 wxPyEndAllowThreads(__tstate);
37406 if (PyErr_Occurred()) SWIG_fail;
37407 }
37408 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
37409 return resultobj;
37410fail:
37411 return NULL;
37412}
37413
37414
37415SWIGINTERN PyObject *_wrap_Window_WarpPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37416 PyObject *resultobj = 0;
37417 wxWindow *arg1 = (wxWindow *) 0 ;
37418 int arg2 ;
37419 int arg3 ;
37420 void *argp1 = 0 ;
37421 int res1 = 0 ;
37422 int val2 ;
37423 int ecode2 = 0 ;
37424 int val3 ;
37425 int ecode3 = 0 ;
37426 PyObject * obj0 = 0 ;
37427 PyObject * obj1 = 0 ;
37428 PyObject * obj2 = 0 ;
37429 char * kwnames[] = {
37430 (char *) "self",(char *) "x",(char *) "y", NULL
37431 };
37432
37433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37435 if (!SWIG_IsOK(res1)) {
37436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_WarpPointer" "', expected argument " "1"" of type '" "wxWindow *""'");
37437 }
37438 arg1 = reinterpret_cast< wxWindow * >(argp1);
37439 ecode2 = SWIG_AsVal_int(obj1, &val2);
37440 if (!SWIG_IsOK(ecode2)) {
37441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_WarpPointer" "', expected argument " "2"" of type '" "int""'");
37442 }
37443 arg2 = static_cast< int >(val2);
37444 ecode3 = SWIG_AsVal_int(obj2, &val3);
37445 if (!SWIG_IsOK(ecode3)) {
37446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_WarpPointer" "', expected argument " "3"" of type '" "int""'");
37447 }
37448 arg3 = static_cast< int >(val3);
37449 {
37450 PyThreadState* __tstate = wxPyBeginAllowThreads();
37451 (arg1)->WarpPointer(arg2,arg3);
37452 wxPyEndAllowThreads(__tstate);
37453 if (PyErr_Occurred()) SWIG_fail;
37454 }
37455 resultobj = SWIG_Py_Void();
37456 return resultobj;
37457fail:
37458 return NULL;
d55e5bfc
RD
37459}
37460
37461
1bd55598
RD
37462SWIGINTERN PyObject *_wrap_Window_CaptureMouse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37463 PyObject *resultobj = 0;
37464 wxWindow *arg1 = (wxWindow *) 0 ;
37465 void *argp1 = 0 ;
37466 int res1 = 0 ;
37467 PyObject *swig_obj[1] ;
37468
37469 if (!args) SWIG_fail;
37470 swig_obj[0] = args;
37471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37472 if (!SWIG_IsOK(res1)) {
37473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_CaptureMouse" "', expected argument " "1"" of type '" "wxWindow *""'");
37474 }
37475 arg1 = reinterpret_cast< wxWindow * >(argp1);
37476 {
37477 PyThreadState* __tstate = wxPyBeginAllowThreads();
37478 (arg1)->CaptureMouse();
37479 wxPyEndAllowThreads(__tstate);
37480 if (PyErr_Occurred()) SWIG_fail;
37481 }
37482 resultobj = SWIG_Py_Void();
37483 return resultobj;
37484fail:
37485 return NULL;
d55e5bfc
RD
37486}
37487
37488
1bd55598
RD
37489SWIGINTERN PyObject *_wrap_Window_ReleaseMouse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37490 PyObject *resultobj = 0;
37491 wxWindow *arg1 = (wxWindow *) 0 ;
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_ReleaseMouse" "', expected argument " "1"" of type '" "wxWindow *""'");
37501 }
37502 arg1 = reinterpret_cast< wxWindow * >(argp1);
37503 {
37504 PyThreadState* __tstate = wxPyBeginAllowThreads();
37505 (arg1)->ReleaseMouse();
37506 wxPyEndAllowThreads(__tstate);
37507 if (PyErr_Occurred()) SWIG_fail;
37508 }
37509 resultobj = SWIG_Py_Void();
37510 return resultobj;
37511fail:
37512 return NULL;
d55e5bfc
RD
37513}
37514
37515
1bd55598
RD
37516SWIGINTERN PyObject *_wrap_Window_GetCapture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37517 PyObject *resultobj = 0;
37518 wxWindow *result = 0 ;
37519
37520 if (!SWIG_Python_UnpackTuple(args,"Window_GetCapture",0,0,0)) SWIG_fail;
37521 {
37522 if (!wxPyCheckForApp()) SWIG_fail;
37523 PyThreadState* __tstate = wxPyBeginAllowThreads();
37524 result = (wxWindow *)wxWindow::GetCapture();
37525 wxPyEndAllowThreads(__tstate);
37526 if (PyErr_Occurred()) SWIG_fail;
37527 }
37528 {
37529 resultobj = wxPyMake_wxObject(result, 0);
37530 }
37531 return resultobj;
37532fail:
37533 return NULL;
d55e5bfc
RD
37534}
37535
37536
1bd55598
RD
37537SWIGINTERN PyObject *_wrap_Window_HasCapture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37538 PyObject *resultobj = 0;
37539 wxWindow *arg1 = (wxWindow *) 0 ;
37540 bool result;
37541 void *argp1 = 0 ;
37542 int res1 = 0 ;
37543 PyObject *swig_obj[1] ;
37544
37545 if (!args) SWIG_fail;
37546 swig_obj[0] = args;
37547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37548 if (!SWIG_IsOK(res1)) {
37549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HasCapture" "', expected argument " "1"" of type '" "wxWindow const *""'");
37550 }
37551 arg1 = reinterpret_cast< wxWindow * >(argp1);
37552 {
37553 PyThreadState* __tstate = wxPyBeginAllowThreads();
37554 result = (bool)((wxWindow const *)arg1)->HasCapture();
37555 wxPyEndAllowThreads(__tstate);
37556 if (PyErr_Occurred()) SWIG_fail;
37557 }
37558 {
37559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37560 }
37561 return resultobj;
37562fail:
37563 return NULL;
37564}
37565
37566
37567SWIGINTERN PyObject *_wrap_Window_Refresh(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37568 PyObject *resultobj = 0;
37569 wxWindow *arg1 = (wxWindow *) 0 ;
37570 bool arg2 = (bool) true ;
37571 wxRect *arg3 = (wxRect *) NULL ;
37572 void *argp1 = 0 ;
37573 int res1 = 0 ;
37574 bool val2 ;
37575 int ecode2 = 0 ;
37576 void *argp3 = 0 ;
37577 int res3 = 0 ;
37578 PyObject * obj0 = 0 ;
37579 PyObject * obj1 = 0 ;
37580 PyObject * obj2 = 0 ;
37581 char * kwnames[] = {
37582 (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL
37583 };
37584
37585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37587 if (!SWIG_IsOK(res1)) {
37588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Refresh" "', expected argument " "1"" of type '" "wxWindow *""'");
37589 }
37590 arg1 = reinterpret_cast< wxWindow * >(argp1);
37591 if (obj1) {
37592 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37593 if (!SWIG_IsOK(ecode2)) {
37594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Refresh" "', expected argument " "2"" of type '" "bool""'");
37595 }
37596 arg2 = static_cast< bool >(val2);
37597 }
37598 if (obj2) {
37599 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxRect, 0 | 0 );
37600 if (!SWIG_IsOK(res3)) {
37601 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Window_Refresh" "', expected argument " "3"" of type '" "wxRect const *""'");
d55e5bfc 37602 }
1bd55598
RD
37603 arg3 = reinterpret_cast< wxRect * >(argp3);
37604 }
37605 {
37606 PyThreadState* __tstate = wxPyBeginAllowThreads();
37607 (arg1)->Refresh(arg2,(wxRect const *)arg3);
37608 wxPyEndAllowThreads(__tstate);
37609 if (PyErr_Occurred()) SWIG_fail;
37610 }
37611 resultobj = SWIG_Py_Void();
37612 return resultobj;
37613fail:
37614 return NULL;
37615}
37616
37617
37618SWIGINTERN PyObject *_wrap_Window_RefreshRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37619 PyObject *resultobj = 0;
37620 wxWindow *arg1 = (wxWindow *) 0 ;
37621 wxRect *arg2 = 0 ;
37622 bool arg3 = (bool) true ;
37623 void *argp1 = 0 ;
37624 int res1 = 0 ;
37625 wxRect temp2 ;
37626 bool val3 ;
37627 int ecode3 = 0 ;
37628 PyObject * obj0 = 0 ;
37629 PyObject * obj1 = 0 ;
37630 PyObject * obj2 = 0 ;
37631 char * kwnames[] = {
37632 (char *) "self",(char *) "rect",(char *) "eraseBackground", NULL
37633 };
37634
37635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_RefreshRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37637 if (!SWIG_IsOK(res1)) {
37638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_RefreshRect" "', expected argument " "1"" of type '" "wxWindow *""'");
37639 }
37640 arg1 = reinterpret_cast< wxWindow * >(argp1);
37641 {
37642 arg2 = &temp2;
37643 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37644 }
37645 if (obj2) {
37646 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37647 if (!SWIG_IsOK(ecode3)) {
37648 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_RefreshRect" "', expected argument " "3"" of type '" "bool""'");
37649 }
37650 arg3 = static_cast< bool >(val3);
37651 }
37652 {
37653 PyThreadState* __tstate = wxPyBeginAllowThreads();
37654 (arg1)->RefreshRect((wxRect const &)*arg2,arg3);
37655 wxPyEndAllowThreads(__tstate);
37656 if (PyErr_Occurred()) SWIG_fail;
37657 }
37658 resultobj = SWIG_Py_Void();
37659 return resultobj;
37660fail:
37661 return NULL;
d55e5bfc
RD
37662}
37663
37664
1bd55598
RD
37665SWIGINTERN PyObject *_wrap_Window_Update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37666 PyObject *resultobj = 0;
37667 wxWindow *arg1 = (wxWindow *) 0 ;
37668 void *argp1 = 0 ;
37669 int res1 = 0 ;
37670 PyObject *swig_obj[1] ;
37671
37672 if (!args) SWIG_fail;
37673 swig_obj[0] = args;
37674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37675 if (!SWIG_IsOK(res1)) {
37676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Update" "', expected argument " "1"" of type '" "wxWindow *""'");
37677 }
37678 arg1 = reinterpret_cast< wxWindow * >(argp1);
37679 {
37680 PyThreadState* __tstate = wxPyBeginAllowThreads();
37681 (arg1)->Update();
37682 wxPyEndAllowThreads(__tstate);
37683 if (PyErr_Occurred()) SWIG_fail;
37684 }
37685 resultobj = SWIG_Py_Void();
37686 return resultobj;
37687fail:
37688 return NULL;
d55e5bfc
RD
37689}
37690
37691
1bd55598
RD
37692SWIGINTERN PyObject *_wrap_Window_ClearBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37693 PyObject *resultobj = 0;
37694 wxWindow *arg1 = (wxWindow *) 0 ;
37695 void *argp1 = 0 ;
37696 int res1 = 0 ;
37697 PyObject *swig_obj[1] ;
37698
37699 if (!args) SWIG_fail;
37700 swig_obj[0] = args;
37701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37702 if (!SWIG_IsOK(res1)) {
37703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ClearBackground" "', expected argument " "1"" of type '" "wxWindow *""'");
37704 }
37705 arg1 = reinterpret_cast< wxWindow * >(argp1);
37706 {
37707 PyThreadState* __tstate = wxPyBeginAllowThreads();
37708 (arg1)->ClearBackground();
37709 wxPyEndAllowThreads(__tstate);
37710 if (PyErr_Occurred()) SWIG_fail;
37711 }
37712 resultobj = SWIG_Py_Void();
37713 return resultobj;
37714fail:
37715 return NULL;
d55e5bfc
RD
37716}
37717
37718
1bd55598
RD
37719SWIGINTERN PyObject *_wrap_Window_Freeze(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37720 PyObject *resultobj = 0;
37721 wxWindow *arg1 = (wxWindow *) 0 ;
37722 void *argp1 = 0 ;
37723 int res1 = 0 ;
37724 PyObject *swig_obj[1] ;
37725
37726 if (!args) SWIG_fail;
37727 swig_obj[0] = args;
37728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37729 if (!SWIG_IsOK(res1)) {
37730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Freeze" "', expected argument " "1"" of type '" "wxWindow *""'");
37731 }
37732 arg1 = reinterpret_cast< wxWindow * >(argp1);
37733 {
37734 PyThreadState* __tstate = wxPyBeginAllowThreads();
37735 (arg1)->Freeze();
37736 wxPyEndAllowThreads(__tstate);
37737 if (PyErr_Occurred()) SWIG_fail;
37738 }
37739 resultobj = SWIG_Py_Void();
37740 return resultobj;
37741fail:
37742 return NULL;
68350608
RD
37743}
37744
37745
33d6fd3b
RD
37746SWIGINTERN PyObject *_wrap_Window_IsFrozen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37747 PyObject *resultobj = 0;
37748 wxWindow *arg1 = (wxWindow *) 0 ;
37749 bool result;
37750 void *argp1 = 0 ;
37751 int res1 = 0 ;
37752 PyObject *swig_obj[1] ;
37753
37754 if (!args) SWIG_fail;
37755 swig_obj[0] = args;
37756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37757 if (!SWIG_IsOK(res1)) {
37758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsFrozen" "', expected argument " "1"" of type '" "wxWindow const *""'");
37759 }
37760 arg1 = reinterpret_cast< wxWindow * >(argp1);
37761 {
37762 PyThreadState* __tstate = wxPyBeginAllowThreads();
37763 result = (bool)((wxWindow const *)arg1)->IsFrozen();
37764 wxPyEndAllowThreads(__tstate);
37765 if (PyErr_Occurred()) SWIG_fail;
37766 }
37767 {
37768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37769 }
37770 return resultobj;
37771fail:
37772 return NULL;
37773}
37774
37775
1bd55598
RD
37776SWIGINTERN PyObject *_wrap_Window_Thaw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37777 PyObject *resultobj = 0;
37778 wxWindow *arg1 = (wxWindow *) 0 ;
37779 void *argp1 = 0 ;
37780 int res1 = 0 ;
37781 PyObject *swig_obj[1] ;
37782
37783 if (!args) SWIG_fail;
37784 swig_obj[0] = args;
37785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37786 if (!SWIG_IsOK(res1)) {
37787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Thaw" "', expected argument " "1"" of type '" "wxWindow *""'");
37788 }
37789 arg1 = reinterpret_cast< wxWindow * >(argp1);
37790 {
37791 PyThreadState* __tstate = wxPyBeginAllowThreads();
37792 (arg1)->Thaw();
37793 wxPyEndAllowThreads(__tstate);
37794 if (PyErr_Occurred()) SWIG_fail;
37795 }
37796 resultobj = SWIG_Py_Void();
37797 return resultobj;
37798fail:
37799 return NULL;
37800}
37801
37802
37803SWIGINTERN PyObject *_wrap_Window_PrepareDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37804 PyObject *resultobj = 0;
37805 wxWindow *arg1 = (wxWindow *) 0 ;
37806 wxDC *arg2 = 0 ;
37807 void *argp1 = 0 ;
37808 int res1 = 0 ;
37809 void *argp2 = 0 ;
37810 int res2 = 0 ;
37811 PyObject * obj0 = 0 ;
37812 PyObject * obj1 = 0 ;
37813 char * kwnames[] = {
37814 (char *) "self",(char *) "dc", NULL
37815 };
37816
37817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) SWIG_fail;
37818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37819 if (!SWIG_IsOK(res1)) {
37820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PrepareDC" "', expected argument " "1"" of type '" "wxWindow *""'");
37821 }
37822 arg1 = reinterpret_cast< wxWindow * >(argp1);
37823 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
37824 if (!SWIG_IsOK(res2)) {
37825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_PrepareDC" "', expected argument " "2"" of type '" "wxDC &""'");
37826 }
37827 if (!argp2) {
37828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_PrepareDC" "', expected argument " "2"" of type '" "wxDC &""'");
37829 }
37830 arg2 = reinterpret_cast< wxDC * >(argp2);
37831 {
37832 PyThreadState* __tstate = wxPyBeginAllowThreads();
37833 (arg1)->PrepareDC(*arg2);
37834 wxPyEndAllowThreads(__tstate);
37835 if (PyErr_Occurred()) SWIG_fail;
37836 }
37837 resultobj = SWIG_Py_Void();
37838 return resultobj;
37839fail:
37840 return NULL;
68350608
RD
37841}
37842
37843
b39fe951
RD
37844SWIGINTERN PyObject *_wrap_Window_IsDoubleBuffered(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37845 PyObject *resultobj = 0;
37846 wxWindow *arg1 = (wxWindow *) 0 ;
37847 bool result;
37848 void *argp1 = 0 ;
37849 int res1 = 0 ;
37850 PyObject *swig_obj[1] ;
37851
37852 if (!args) SWIG_fail;
37853 swig_obj[0] = args;
37854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37855 if (!SWIG_IsOK(res1)) {
37856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsDoubleBuffered" "', expected argument " "1"" of type '" "wxWindow const *""'");
37857 }
37858 arg1 = reinterpret_cast< wxWindow * >(argp1);
37859 {
37860 PyThreadState* __tstate = wxPyBeginAllowThreads();
37861 result = (bool)((wxWindow const *)arg1)->IsDoubleBuffered();
37862 wxPyEndAllowThreads(__tstate);
37863 if (PyErr_Occurred()) SWIG_fail;
37864 }
37865 {
37866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37867 }
37868 return resultobj;
37869fail:
37870 return NULL;
37871}
37872
37873
1bd55598
RD
37874SWIGINTERN PyObject *_wrap_Window_GetUpdateRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37875 PyObject *resultobj = 0;
37876 wxWindow *arg1 = (wxWindow *) 0 ;
37877 wxRegion *result = 0 ;
37878 void *argp1 = 0 ;
37879 int res1 = 0 ;
37880 PyObject *swig_obj[1] ;
37881
37882 if (!args) SWIG_fail;
37883 swig_obj[0] = args;
37884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37885 if (!SWIG_IsOK(res1)) {
37886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetUpdateRegion" "', expected argument " "1"" of type '" "wxWindow *""'");
37887 }
37888 arg1 = reinterpret_cast< wxWindow * >(argp1);
37889 {
37890 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 37891 {
1bd55598
RD
37892 wxRegion &_result_ref = (arg1)->GetUpdateRegion();
37893 result = (wxRegion *) &_result_ref;
908b74cd 37894 }
1bd55598
RD
37895 wxPyEndAllowThreads(__tstate);
37896 if (PyErr_Occurred()) SWIG_fail;
37897 }
37898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, 0 | 0 );
37899 return resultobj;
37900fail:
37901 return NULL;
908b74cd
RD
37902}
37903
37904
1bd55598
RD
37905SWIGINTERN PyObject *_wrap_Window_GetUpdateClientRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37906 PyObject *resultobj = 0;
37907 wxWindow *arg1 = (wxWindow *) 0 ;
37908 wxRect result;
37909 void *argp1 = 0 ;
37910 int res1 = 0 ;
37911 PyObject *swig_obj[1] ;
37912
37913 if (!args) SWIG_fail;
37914 swig_obj[0] = args;
37915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37916 if (!SWIG_IsOK(res1)) {
37917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetUpdateClientRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
37918 }
37919 arg1 = reinterpret_cast< wxWindow * >(argp1);
37920 {
37921 PyThreadState* __tstate = wxPyBeginAllowThreads();
37922 result = ((wxWindow const *)arg1)->GetUpdateClientRect();
37923 wxPyEndAllowThreads(__tstate);
37924 if (PyErr_Occurred()) SWIG_fail;
37925 }
37926 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
37927 return resultobj;
37928fail:
37929 return NULL;
37930}
37931
37932
37933SWIGINTERN PyObject *_wrap_Window_IsExposed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37934 PyObject *resultobj = 0;
37935 wxWindow *arg1 = (wxWindow *) 0 ;
37936 int arg2 ;
37937 int arg3 ;
37938 int arg4 = (int) 1 ;
37939 int arg5 = (int) 1 ;
37940 bool result;
37941 void *argp1 = 0 ;
37942 int res1 = 0 ;
37943 int val2 ;
37944 int ecode2 = 0 ;
37945 int val3 ;
37946 int ecode3 = 0 ;
37947 int val4 ;
37948 int ecode4 = 0 ;
37949 int val5 ;
37950 int ecode5 = 0 ;
37951 PyObject * obj0 = 0 ;
37952 PyObject * obj1 = 0 ;
37953 PyObject * obj2 = 0 ;
37954 PyObject * obj3 = 0 ;
37955 PyObject * obj4 = 0 ;
37956 char * kwnames[] = {
37957 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
37958 };
37959
37960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37962 if (!SWIG_IsOK(res1)) {
37963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsExposed" "', expected argument " "1"" of type '" "wxWindow const *""'");
37964 }
37965 arg1 = reinterpret_cast< wxWindow * >(argp1);
37966 ecode2 = SWIG_AsVal_int(obj1, &val2);
37967 if (!SWIG_IsOK(ecode2)) {
37968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_IsExposed" "', expected argument " "2"" of type '" "int""'");
37969 }
37970 arg2 = static_cast< int >(val2);
37971 ecode3 = SWIG_AsVal_int(obj2, &val3);
37972 if (!SWIG_IsOK(ecode3)) {
37973 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_IsExposed" "', expected argument " "3"" of type '" "int""'");
37974 }
37975 arg3 = static_cast< int >(val3);
37976 if (obj3) {
37977 ecode4 = SWIG_AsVal_int(obj3, &val4);
37978 if (!SWIG_IsOK(ecode4)) {
37979 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_IsExposed" "', expected argument " "4"" of type '" "int""'");
37980 }
37981 arg4 = static_cast< int >(val4);
37982 }
37983 if (obj4) {
37984 ecode5 = SWIG_AsVal_int(obj4, &val5);
37985 if (!SWIG_IsOK(ecode5)) {
37986 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Window_IsExposed" "', expected argument " "5"" of type '" "int""'");
37987 }
37988 arg5 = static_cast< int >(val5);
37989 }
37990 {
37991 PyThreadState* __tstate = wxPyBeginAllowThreads();
37992 result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5);
37993 wxPyEndAllowThreads(__tstate);
37994 if (PyErr_Occurred()) SWIG_fail;
37995 }
37996 {
37997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37998 }
37999 return resultobj;
38000fail:
38001 return NULL;
38002}
38003
38004
38005SWIGINTERN PyObject *_wrap_Window_IsExposedPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38006 PyObject *resultobj = 0;
38007 wxWindow *arg1 = (wxWindow *) 0 ;
38008 wxPoint *arg2 = 0 ;
38009 bool result;
38010 void *argp1 = 0 ;
38011 int res1 = 0 ;
38012 wxPoint temp2 ;
38013 PyObject * obj0 = 0 ;
38014 PyObject * obj1 = 0 ;
38015 char * kwnames[] = {
38016 (char *) "self",(char *) "pt", NULL
38017 };
38018
38019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) SWIG_fail;
38020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38021 if (!SWIG_IsOK(res1)) {
38022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsExposedPoint" "', expected argument " "1"" of type '" "wxWindow const *""'");
38023 }
38024 arg1 = reinterpret_cast< wxWindow * >(argp1);
38025 {
38026 arg2 = &temp2;
38027 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38028 }
38029 {
38030 PyThreadState* __tstate = wxPyBeginAllowThreads();
38031 result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2);
38032 wxPyEndAllowThreads(__tstate);
38033 if (PyErr_Occurred()) SWIG_fail;
38034 }
38035 {
38036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38037 }
38038 return resultobj;
38039fail:
38040 return NULL;
38041}
38042
38043
38044SWIGINTERN PyObject *_wrap_Window_IsExposedRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38045 PyObject *resultobj = 0;
38046 wxWindow *arg1 = (wxWindow *) 0 ;
38047 wxRect *arg2 = 0 ;
38048 bool result;
38049 void *argp1 = 0 ;
38050 int res1 = 0 ;
38051 wxRect temp2 ;
38052 PyObject * obj0 = 0 ;
38053 PyObject * obj1 = 0 ;
38054 char * kwnames[] = {
38055 (char *) "self",(char *) "rect", NULL
38056 };
38057
38058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) SWIG_fail;
38059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38060 if (!SWIG_IsOK(res1)) {
38061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsExposedRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
38062 }
38063 arg1 = reinterpret_cast< wxWindow * >(argp1);
38064 {
38065 arg2 = &temp2;
38066 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
38067 }
38068 {
38069 PyThreadState* __tstate = wxPyBeginAllowThreads();
38070 result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2);
38071 wxPyEndAllowThreads(__tstate);
38072 if (PyErr_Occurred()) SWIG_fail;
38073 }
38074 {
38075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38076 }
38077 return resultobj;
38078fail:
38079 return NULL;
d55e5bfc
RD
38080}
38081
38082
1bd55598
RD
38083SWIGINTERN PyObject *_wrap_Window_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38084 PyObject *resultobj = 0;
38085 wxWindow *arg1 = (wxWindow *) 0 ;
38086 SwigValueWrapper<wxVisualAttributes > result;
38087 void *argp1 = 0 ;
38088 int res1 = 0 ;
38089 PyObject *swig_obj[1] ;
38090
38091 if (!args) SWIG_fail;
38092 swig_obj[0] = args;
38093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38094 if (!SWIG_IsOK(res1)) {
38095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxWindow const *""'");
38096 }
38097 arg1 = reinterpret_cast< wxWindow * >(argp1);
38098 {
38099 PyThreadState* __tstate = wxPyBeginAllowThreads();
38100 result = ((wxWindow const *)arg1)->GetDefaultAttributes();
38101 wxPyEndAllowThreads(__tstate);
38102 if (PyErr_Occurred()) SWIG_fail;
38103 }
38104 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38105 return resultobj;
38106fail:
38107 return NULL;
38108}
38109
38110
38111SWIGINTERN PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38112 PyObject *resultobj = 0;
38113 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
38114 SwigValueWrapper<wxVisualAttributes > result;
38115 int val1 ;
38116 int ecode1 = 0 ;
38117 PyObject * obj0 = 0 ;
38118 char * kwnames[] = {
38119 (char *) "variant", NULL
38120 };
38121
38122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
38123 if (obj0) {
38124 ecode1 = SWIG_AsVal_int(obj0, &val1);
38125 if (!SWIG_IsOK(ecode1)) {
38126 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Window_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
38127 }
38128 arg1 = static_cast< wxWindowVariant >(val1);
38129 }
38130 {
38131 if (!wxPyCheckForApp()) SWIG_fail;
38132 PyThreadState* __tstate = wxPyBeginAllowThreads();
38133 result = wxWindow::GetClassDefaultAttributes(arg1);
38134 wxPyEndAllowThreads(__tstate);
38135 if (PyErr_Occurred()) SWIG_fail;
38136 }
38137 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38138 return resultobj;
38139fail:
38140 return NULL;
38141}
38142
38143
38144SWIGINTERN PyObject *_wrap_Window_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38145 PyObject *resultobj = 0;
38146 wxWindow *arg1 = (wxWindow *) 0 ;
38147 wxColour *arg2 = 0 ;
38148 bool result;
38149 void *argp1 = 0 ;
38150 int res1 = 0 ;
38151 wxColour temp2 ;
38152 PyObject * obj0 = 0 ;
38153 PyObject * obj1 = 0 ;
38154 char * kwnames[] = {
38155 (char *) "self",(char *) "colour", NULL
38156 };
38157
38158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
38159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38160 if (!SWIG_IsOK(res1)) {
38161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetBackgroundColour" "', expected argument " "1"" of type '" "wxWindow *""'");
38162 }
38163 arg1 = reinterpret_cast< wxWindow * >(argp1);
38164 {
38165 arg2 = &temp2;
38166 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38167 }
38168 {
38169 PyThreadState* __tstate = wxPyBeginAllowThreads();
38170 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
38171 wxPyEndAllowThreads(__tstate);
38172 if (PyErr_Occurred()) SWIG_fail;
38173 }
38174 {
38175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38176 }
38177 return resultobj;
38178fail:
38179 return NULL;
38180}
38181
38182
38183SWIGINTERN PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38184 PyObject *resultobj = 0;
38185 wxWindow *arg1 = (wxWindow *) 0 ;
38186 wxColour *arg2 = 0 ;
38187 void *argp1 = 0 ;
38188 int res1 = 0 ;
38189 wxColour temp2 ;
38190 PyObject * obj0 = 0 ;
38191 PyObject * obj1 = 0 ;
38192 char * kwnames[] = {
38193 (char *) "self",(char *) "colour", NULL
38194 };
38195
38196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
38197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38198 if (!SWIG_IsOK(res1)) {
38199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetOwnBackgroundColour" "', expected argument " "1"" of type '" "wxWindow *""'");
38200 }
38201 arg1 = reinterpret_cast< wxWindow * >(argp1);
38202 {
38203 arg2 = &temp2;
38204 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38205 }
38206 {
38207 PyThreadState* __tstate = wxPyBeginAllowThreads();
38208 (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2);
38209 wxPyEndAllowThreads(__tstate);
38210 if (PyErr_Occurred()) SWIG_fail;
38211 }
38212 resultobj = SWIG_Py_Void();
38213 return resultobj;
38214fail:
38215 return NULL;
38216}
38217
38218
38219SWIGINTERN PyObject *_wrap_Window_SetForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38220 PyObject *resultobj = 0;
38221 wxWindow *arg1 = (wxWindow *) 0 ;
38222 wxColour *arg2 = 0 ;
38223 bool result;
38224 void *argp1 = 0 ;
38225 int res1 = 0 ;
38226 wxColour temp2 ;
38227 PyObject * obj0 = 0 ;
38228 PyObject * obj1 = 0 ;
38229 char * kwnames[] = {
38230 (char *) "self",(char *) "colour", NULL
38231 };
38232
38233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
38234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38235 if (!SWIG_IsOK(res1)) {
38236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetForegroundColour" "', expected argument " "1"" of type '" "wxWindow *""'");
38237 }
38238 arg1 = reinterpret_cast< wxWindow * >(argp1);
38239 {
38240 arg2 = &temp2;
38241 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38242 }
38243 {
38244 PyThreadState* __tstate = wxPyBeginAllowThreads();
38245 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
38246 wxPyEndAllowThreads(__tstate);
38247 if (PyErr_Occurred()) SWIG_fail;
38248 }
38249 {
38250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38251 }
38252 return resultobj;
38253fail:
38254 return NULL;
38255}
38256
38257
38258SWIGINTERN PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38259 PyObject *resultobj = 0;
38260 wxWindow *arg1 = (wxWindow *) 0 ;
38261 wxColour *arg2 = 0 ;
38262 void *argp1 = 0 ;
38263 int res1 = 0 ;
38264 wxColour temp2 ;
38265 PyObject * obj0 = 0 ;
38266 PyObject * obj1 = 0 ;
38267 char * kwnames[] = {
38268 (char *) "self",(char *) "colour", NULL
38269 };
38270
38271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
38272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38273 if (!SWIG_IsOK(res1)) {
38274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetOwnForegroundColour" "', expected argument " "1"" of type '" "wxWindow *""'");
38275 }
38276 arg1 = reinterpret_cast< wxWindow * >(argp1);
38277 {
38278 arg2 = &temp2;
38279 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38280 }
38281 {
38282 PyThreadState* __tstate = wxPyBeginAllowThreads();
38283 (arg1)->SetOwnForegroundColour((wxColour const &)*arg2);
38284 wxPyEndAllowThreads(__tstate);
38285 if (PyErr_Occurred()) SWIG_fail;
38286 }
38287 resultobj = SWIG_Py_Void();
38288 return resultobj;
38289fail:
38290 return NULL;
d55e5bfc
RD
38291}
38292
38293
1bd55598
RD
38294SWIGINTERN PyObject *_wrap_Window_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38295 PyObject *resultobj = 0;
38296 wxWindow *arg1 = (wxWindow *) 0 ;
38297 wxColour result;
38298 void *argp1 = 0 ;
38299 int res1 = 0 ;
38300 PyObject *swig_obj[1] ;
38301
38302 if (!args) SWIG_fail;
38303 swig_obj[0] = args;
38304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38305 if (!SWIG_IsOK(res1)) {
38306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBackgroundColour" "', expected argument " "1"" of type '" "wxWindow const *""'");
38307 }
38308 arg1 = reinterpret_cast< wxWindow * >(argp1);
38309 {
38310 PyThreadState* __tstate = wxPyBeginAllowThreads();
38311 result = ((wxWindow const *)arg1)->GetBackgroundColour();
38312 wxPyEndAllowThreads(__tstate);
38313 if (PyErr_Occurred()) SWIG_fail;
38314 }
38315 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
38316 return resultobj;
38317fail:
38318 return NULL;
d55e5bfc
RD
38319}
38320
38321
1bd55598
RD
38322SWIGINTERN PyObject *_wrap_Window_GetForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38323 PyObject *resultobj = 0;
38324 wxWindow *arg1 = (wxWindow *) 0 ;
38325 wxColour result;
38326 void *argp1 = 0 ;
38327 int res1 = 0 ;
38328 PyObject *swig_obj[1] ;
38329
38330 if (!args) SWIG_fail;
38331 swig_obj[0] = args;
38332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38333 if (!SWIG_IsOK(res1)) {
38334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetForegroundColour" "', expected argument " "1"" of type '" "wxWindow const *""'");
38335 }
38336 arg1 = reinterpret_cast< wxWindow * >(argp1);
38337 {
38338 PyThreadState* __tstate = wxPyBeginAllowThreads();
38339 result = ((wxWindow const *)arg1)->GetForegroundColour();
38340 wxPyEndAllowThreads(__tstate);
38341 if (PyErr_Occurred()) SWIG_fail;
38342 }
38343 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
38344 return resultobj;
38345fail:
38346 return NULL;
d55e5bfc
RD
38347}
38348
38349
1bd55598
RD
38350SWIGINTERN PyObject *_wrap_Window_InheritsBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38351 PyObject *resultobj = 0;
38352 wxWindow *arg1 = (wxWindow *) 0 ;
38353 bool result;
38354 void *argp1 = 0 ;
38355 int res1 = 0 ;
38356 PyObject *swig_obj[1] ;
38357
38358 if (!args) SWIG_fail;
38359 swig_obj[0] = args;
38360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38361 if (!SWIG_IsOK(res1)) {
38362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_InheritsBackgroundColour" "', expected argument " "1"" of type '" "wxWindow const *""'");
38363 }
38364 arg1 = reinterpret_cast< wxWindow * >(argp1);
38365 {
38366 PyThreadState* __tstate = wxPyBeginAllowThreads();
38367 result = (bool)((wxWindow const *)arg1)->InheritsBackgroundColour();
38368 wxPyEndAllowThreads(__tstate);
38369 if (PyErr_Occurred()) SWIG_fail;
38370 }
38371 {
38372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38373 }
38374 return resultobj;
38375fail:
38376 return NULL;
d55e5bfc 38377}
1bd55598
RD
38378
38379
38380SWIGINTERN PyObject *_wrap_Window_UseBgCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38381 PyObject *resultobj = 0;
38382 wxWindow *arg1 = (wxWindow *) 0 ;
38383 bool result;
38384 void *argp1 = 0 ;
38385 int res1 = 0 ;
38386 PyObject *swig_obj[1] ;
38387
38388 if (!args) SWIG_fail;
38389 swig_obj[0] = args;
38390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38391 if (!SWIG_IsOK(res1)) {
38392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_UseBgCol" "', expected argument " "1"" of type '" "wxWindow const *""'");
38393 }
38394 arg1 = reinterpret_cast< wxWindow * >(argp1);
38395 {
38396 PyThreadState* __tstate = wxPyBeginAllowThreads();
38397 result = (bool)((wxWindow const *)arg1)->UseBgCol();
38398 wxPyEndAllowThreads(__tstate);
38399 if (PyErr_Occurred()) SWIG_fail;
38400 }
38401 {
38402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38403 }
38404 return resultobj;
38405fail:
38406 return NULL;
38407}
38408
38409
38410SWIGINTERN PyObject *_wrap_Window_SetBackgroundStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38411 PyObject *resultobj = 0;
38412 wxWindow *arg1 = (wxWindow *) 0 ;
38413 wxBackgroundStyle arg2 ;
38414 bool result;
38415 void *argp1 = 0 ;
38416 int res1 = 0 ;
38417 int val2 ;
38418 int ecode2 = 0 ;
38419 PyObject * obj0 = 0 ;
38420 PyObject * obj1 = 0 ;
38421 char * kwnames[] = {
38422 (char *) "self",(char *) "style", NULL
38423 };
38424
38425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) SWIG_fail;
38426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38427 if (!SWIG_IsOK(res1)) {
38428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetBackgroundStyle" "', expected argument " "1"" of type '" "wxWindow *""'");
38429 }
38430 arg1 = reinterpret_cast< wxWindow * >(argp1);
38431 ecode2 = SWIG_AsVal_int(obj1, &val2);
38432 if (!SWIG_IsOK(ecode2)) {
38433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetBackgroundStyle" "', expected argument " "2"" of type '" "wxBackgroundStyle""'");
38434 }
38435 arg2 = static_cast< wxBackgroundStyle >(val2);
38436 {
38437 PyThreadState* __tstate = wxPyBeginAllowThreads();
38438 result = (bool)(arg1)->SetBackgroundStyle(arg2);
38439 wxPyEndAllowThreads(__tstate);
38440 if (PyErr_Occurred()) SWIG_fail;
38441 }
38442 {
38443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38444 }
38445 return resultobj;
38446fail:
38447 return NULL;
d55e5bfc
RD
38448}
38449
38450
1bd55598
RD
38451SWIGINTERN PyObject *_wrap_Window_GetBackgroundStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38452 PyObject *resultobj = 0;
38453 wxWindow *arg1 = (wxWindow *) 0 ;
38454 wxBackgroundStyle result;
38455 void *argp1 = 0 ;
38456 int res1 = 0 ;
38457 PyObject *swig_obj[1] ;
38458
38459 if (!args) SWIG_fail;
38460 swig_obj[0] = args;
38461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38462 if (!SWIG_IsOK(res1)) {
38463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBackgroundStyle" "', expected argument " "1"" of type '" "wxWindow const *""'");
38464 }
38465 arg1 = reinterpret_cast< wxWindow * >(argp1);
38466 {
38467 PyThreadState* __tstate = wxPyBeginAllowThreads();
38468 result = (wxBackgroundStyle)((wxWindow const *)arg1)->GetBackgroundStyle();
38469 wxPyEndAllowThreads(__tstate);
38470 if (PyErr_Occurred()) SWIG_fail;
38471 }
38472 resultobj = SWIG_From_int(static_cast< int >(result));
38473 return resultobj;
38474fail:
38475 return NULL;
d55e5bfc
RD
38476}
38477
38478
1bd55598
RD
38479SWIGINTERN PyObject *_wrap_Window_HasTransparentBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38480 PyObject *resultobj = 0;
38481 wxWindow *arg1 = (wxWindow *) 0 ;
38482 bool result;
38483 void *argp1 = 0 ;
38484 int res1 = 0 ;
38485 PyObject *swig_obj[1] ;
38486
38487 if (!args) SWIG_fail;
38488 swig_obj[0] = args;
38489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38490 if (!SWIG_IsOK(res1)) {
38491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HasTransparentBackground" "', expected argument " "1"" of type '" "wxWindow *""'");
38492 }
38493 arg1 = reinterpret_cast< wxWindow * >(argp1);
38494 {
38495 PyThreadState* __tstate = wxPyBeginAllowThreads();
38496 result = (bool)(arg1)->HasTransparentBackground();
38497 wxPyEndAllowThreads(__tstate);
38498 if (PyErr_Occurred()) SWIG_fail;
38499 }
38500 {
38501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38502 }
38503 return resultobj;
38504fail:
38505 return NULL;
38506}
38507
38508
38509SWIGINTERN PyObject *_wrap_Window_SetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38510 PyObject *resultobj = 0;
38511 wxWindow *arg1 = (wxWindow *) 0 ;
38512 wxCursor *arg2 = 0 ;
38513 bool result;
38514 void *argp1 = 0 ;
38515 int res1 = 0 ;
38516 void *argp2 = 0 ;
38517 int res2 = 0 ;
38518 PyObject * obj0 = 0 ;
38519 PyObject * obj1 = 0 ;
38520 char * kwnames[] = {
38521 (char *) "self",(char *) "cursor", NULL
38522 };
38523
38524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) SWIG_fail;
38525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38526 if (!SWIG_IsOK(res1)) {
38527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetCursor" "', expected argument " "1"" of type '" "wxWindow *""'");
38528 }
38529 arg1 = reinterpret_cast< wxWindow * >(argp1);
38530 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
38531 if (!SWIG_IsOK(res2)) {
38532 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
38533 }
38534 if (!argp2) {
38535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_SetCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
38536 }
38537 arg2 = reinterpret_cast< wxCursor * >(argp2);
38538 {
38539 PyThreadState* __tstate = wxPyBeginAllowThreads();
38540 result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2);
38541 wxPyEndAllowThreads(__tstate);
38542 if (PyErr_Occurred()) SWIG_fail;
38543 }
38544 {
38545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38546 }
38547 return resultobj;
38548fail:
38549 return NULL;
d55e5bfc
RD
38550}
38551
38552
1bd55598
RD
38553SWIGINTERN PyObject *_wrap_Window_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38554 PyObject *resultobj = 0;
38555 wxWindow *arg1 = (wxWindow *) 0 ;
38556 wxCursor result;
38557 void *argp1 = 0 ;
38558 int res1 = 0 ;
38559 PyObject *swig_obj[1] ;
38560
38561 if (!args) SWIG_fail;
38562 swig_obj[0] = args;
38563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38564 if (!SWIG_IsOK(res1)) {
38565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetCursor" "', expected argument " "1"" of type '" "wxWindow *""'");
38566 }
38567 arg1 = reinterpret_cast< wxWindow * >(argp1);
38568 {
38569 PyThreadState* __tstate = wxPyBeginAllowThreads();
38570 result = (arg1)->GetCursor();
38571 wxPyEndAllowThreads(__tstate);
38572 if (PyErr_Occurred()) SWIG_fail;
38573 }
38574 resultobj = SWIG_NewPointerObj((new wxCursor(static_cast< const wxCursor& >(result))), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
38575 return resultobj;
38576fail:
38577 return NULL;
38578}
38579
38580
38581SWIGINTERN PyObject *_wrap_Window_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38582 PyObject *resultobj = 0;
38583 wxWindow *arg1 = (wxWindow *) 0 ;
38584 wxFont *arg2 = 0 ;
38585 bool result;
38586 void *argp1 = 0 ;
38587 int res1 = 0 ;
38588 void *argp2 = 0 ;
38589 int res2 = 0 ;
38590 PyObject * obj0 = 0 ;
38591 PyObject * obj1 = 0 ;
38592 char * kwnames[] = {
38593 (char *) "self",(char *) "font", NULL
38594 };
38595
38596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38598 if (!SWIG_IsOK(res1)) {
38599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetFont" "', expected argument " "1"" of type '" "wxWindow *""'");
38600 }
38601 arg1 = reinterpret_cast< wxWindow * >(argp1);
38602 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38603 if (!SWIG_IsOK(res2)) {
38604 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38605 }
38606 if (!argp2) {
38607 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38608 }
38609 arg2 = reinterpret_cast< wxFont * >(argp2);
38610 {
38611 PyThreadState* __tstate = wxPyBeginAllowThreads();
38612 result = (bool)(arg1)->SetFont((wxFont const &)*arg2);
38613 wxPyEndAllowThreads(__tstate);
38614 if (PyErr_Occurred()) SWIG_fail;
38615 }
38616 {
38617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38618 }
38619 return resultobj;
38620fail:
38621 return NULL;
38622}
38623
38624
38625SWIGINTERN PyObject *_wrap_Window_SetOwnFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38626 PyObject *resultobj = 0;
38627 wxWindow *arg1 = (wxWindow *) 0 ;
38628 wxFont *arg2 = 0 ;
38629 void *argp1 = 0 ;
38630 int res1 = 0 ;
38631 void *argp2 = 0 ;
38632 int res2 = 0 ;
38633 PyObject * obj0 = 0 ;
38634 PyObject * obj1 = 0 ;
38635 char * kwnames[] = {
38636 (char *) "self",(char *) "font", NULL
38637 };
38638
38639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) SWIG_fail;
38640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38641 if (!SWIG_IsOK(res1)) {
38642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetOwnFont" "', expected argument " "1"" of type '" "wxWindow *""'");
38643 }
38644 arg1 = reinterpret_cast< wxWindow * >(argp1);
38645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38646 if (!SWIG_IsOK(res2)) {
38647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetOwnFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38648 }
38649 if (!argp2) {
38650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_SetOwnFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38651 }
38652 arg2 = reinterpret_cast< wxFont * >(argp2);
38653 {
38654 PyThreadState* __tstate = wxPyBeginAllowThreads();
38655 (arg1)->SetOwnFont((wxFont const &)*arg2);
38656 wxPyEndAllowThreads(__tstate);
38657 if (PyErr_Occurred()) SWIG_fail;
38658 }
38659 resultobj = SWIG_Py_Void();
38660 return resultobj;
38661fail:
38662 return NULL;
d55e5bfc
RD
38663}
38664
38665
1bd55598
RD
38666SWIGINTERN PyObject *_wrap_Window_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38667 PyObject *resultobj = 0;
38668 wxWindow *arg1 = (wxWindow *) 0 ;
38669 wxFont result;
38670 void *argp1 = 0 ;
38671 int res1 = 0 ;
38672 PyObject *swig_obj[1] ;
38673
38674 if (!args) SWIG_fail;
38675 swig_obj[0] = args;
38676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38677 if (!SWIG_IsOK(res1)) {
38678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetFont" "', expected argument " "1"" of type '" "wxWindow *""'");
38679 }
38680 arg1 = reinterpret_cast< wxWindow * >(argp1);
38681 {
38682 PyThreadState* __tstate = wxPyBeginAllowThreads();
38683 result = (arg1)->GetFont();
38684 wxPyEndAllowThreads(__tstate);
38685 if (PyErr_Occurred()) SWIG_fail;
38686 }
38687 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
38688 return resultobj;
38689fail:
38690 return NULL;
38691}
38692
38693
38694SWIGINTERN PyObject *_wrap_Window_SetCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38695 PyObject *resultobj = 0;
38696 wxWindow *arg1 = (wxWindow *) 0 ;
38697 wxCaret *arg2 = (wxCaret *) 0 ;
38698 void *argp1 = 0 ;
38699 int res1 = 0 ;
38700 int res2 = 0 ;
38701 PyObject * obj0 = 0 ;
38702 PyObject * obj1 = 0 ;
38703 char * kwnames[] = {
38704 (char *) "self",(char *) "caret", NULL
38705 };
38706
38707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) SWIG_fail;
38708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38709 if (!SWIG_IsOK(res1)) {
38710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetCaret" "', expected argument " "1"" of type '" "wxWindow *""'");
38711 }
38712 arg1 = reinterpret_cast< wxWindow * >(argp1);
38713 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxCaret, SWIG_POINTER_DISOWN | 0 );
38714 if (!SWIG_IsOK(res2)) {
38715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetCaret" "', expected argument " "2"" of type '" "wxCaret *""'");
38716 }
38717 {
38718 PyThreadState* __tstate = wxPyBeginAllowThreads();
38719 (arg1)->SetCaret(arg2);
38720 wxPyEndAllowThreads(__tstate);
38721 if (PyErr_Occurred()) SWIG_fail;
38722 }
38723 resultobj = SWIG_Py_Void();
38724 return resultobj;
38725fail:
38726 return NULL;
d55e5bfc
RD
38727}
38728
38729
1bd55598
RD
38730SWIGINTERN PyObject *_wrap_Window_GetCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38731 PyObject *resultobj = 0;
38732 wxWindow *arg1 = (wxWindow *) 0 ;
38733 wxCaret *result = 0 ;
38734 void *argp1 = 0 ;
38735 int res1 = 0 ;
38736 PyObject *swig_obj[1] ;
38737
38738 if (!args) SWIG_fail;
38739 swig_obj[0] = args;
38740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38741 if (!SWIG_IsOK(res1)) {
38742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetCaret" "', expected argument " "1"" of type '" "wxWindow const *""'");
38743 }
38744 arg1 = reinterpret_cast< wxWindow * >(argp1);
38745 {
38746 PyThreadState* __tstate = wxPyBeginAllowThreads();
38747 result = (wxCaret *)((wxWindow const *)arg1)->GetCaret();
38748 wxPyEndAllowThreads(__tstate);
38749 if (PyErr_Occurred()) SWIG_fail;
38750 }
38751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCaret, 0 | 0 );
38752 return resultobj;
38753fail:
38754 return NULL;
d55e5bfc 38755}
1bd55598
RD
38756
38757
38758SWIGINTERN PyObject *_wrap_Window_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38759 PyObject *resultobj = 0;
38760 wxWindow *arg1 = (wxWindow *) 0 ;
38761 int result;
38762 void *argp1 = 0 ;
38763 int res1 = 0 ;
38764 PyObject *swig_obj[1] ;
38765
38766 if (!args) SWIG_fail;
38767 swig_obj[0] = args;
38768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38769 if (!SWIG_IsOK(res1)) {
38770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetCharHeight" "', expected argument " "1"" of type '" "wxWindow const *""'");
38771 }
38772 arg1 = reinterpret_cast< wxWindow * >(argp1);
38773 {
38774 PyThreadState* __tstate = wxPyBeginAllowThreads();
38775 result = (int)((wxWindow const *)arg1)->GetCharHeight();
38776 wxPyEndAllowThreads(__tstate);
38777 if (PyErr_Occurred()) SWIG_fail;
38778 }
38779 resultobj = SWIG_From_int(static_cast< int >(result));
38780 return resultobj;
38781fail:
38782 return NULL;
d55e5bfc
RD
38783}
38784
38785
1bd55598
RD
38786SWIGINTERN PyObject *_wrap_Window_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38787 PyObject *resultobj = 0;
38788 wxWindow *arg1 = (wxWindow *) 0 ;
38789 int result;
38790 void *argp1 = 0 ;
38791 int res1 = 0 ;
38792 PyObject *swig_obj[1] ;
38793
38794 if (!args) SWIG_fail;
38795 swig_obj[0] = args;
38796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38797 if (!SWIG_IsOK(res1)) {
38798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetCharWidth" "', expected argument " "1"" of type '" "wxWindow const *""'");
38799 }
38800 arg1 = reinterpret_cast< wxWindow * >(argp1);
38801 {
38802 PyThreadState* __tstate = wxPyBeginAllowThreads();
38803 result = (int)((wxWindow const *)arg1)->GetCharWidth();
38804 wxPyEndAllowThreads(__tstate);
38805 if (PyErr_Occurred()) SWIG_fail;
38806 }
38807 resultobj = SWIG_From_int(static_cast< int >(result));
38808 return resultobj;
38809fail:
38810 return NULL;
38811}
38812
38813
38814SWIGINTERN PyObject *_wrap_Window_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38815 PyObject *resultobj = 0;
38816 wxWindow *arg1 = (wxWindow *) 0 ;
38817 wxString *arg2 = 0 ;
38818 int *arg3 = (int *) 0 ;
38819 int *arg4 = (int *) 0 ;
38820 void *argp1 = 0 ;
38821 int res1 = 0 ;
38822 bool temp2 = false ;
38823 int temp3 ;
38824 int res3 = SWIG_TMPOBJ ;
38825 int temp4 ;
38826 int res4 = SWIG_TMPOBJ ;
38827 PyObject * obj0 = 0 ;
38828 PyObject * obj1 = 0 ;
38829 char * kwnames[] = {
38830 (char *) "self",(char *) "string", NULL
38831 };
38832
38833 arg3 = &temp3;
38834 arg4 = &temp4;
38835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
38836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38837 if (!SWIG_IsOK(res1)) {
38838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetTextExtent" "', expected argument " "1"" of type '" "wxWindow *""'");
38839 }
38840 arg1 = reinterpret_cast< wxWindow * >(argp1);
38841 {
38842 arg2 = wxString_in_helper(obj1);
38843 if (arg2 == NULL) SWIG_fail;
38844 temp2 = true;
38845 }
38846 {
38847 PyThreadState* __tstate = wxPyBeginAllowThreads();
38848 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
38849 wxPyEndAllowThreads(__tstate);
38850 if (PyErr_Occurred()) SWIG_fail;
38851 }
38852 resultobj = SWIG_Py_Void();
38853 if (SWIG_IsTmpObj(res3)) {
38854 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38855 } else {
38856 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38857 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38858 }
38859 if (SWIG_IsTmpObj(res4)) {
38860 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
38861 } else {
38862 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38863 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
38864 }
38865 {
38866 if (temp2)
38867 delete arg2;
38868 }
38869 return resultobj;
38870fail:
38871 {
38872 if (temp2)
38873 delete arg2;
38874 }
38875 return NULL;
38876}
38877
38878
38879SWIGINTERN PyObject *_wrap_Window_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38880 PyObject *resultobj = 0;
38881 wxWindow *arg1 = (wxWindow *) 0 ;
38882 wxString *arg2 = 0 ;
38883 int *arg3 = (int *) 0 ;
38884 int *arg4 = (int *) 0 ;
38885 int *arg5 = (int *) 0 ;
38886 int *arg6 = (int *) 0 ;
38887 wxFont *arg7 = (wxFont *) NULL ;
38888 void *argp1 = 0 ;
38889 int res1 = 0 ;
38890 bool temp2 = false ;
38891 int temp3 ;
38892 int res3 = SWIG_TMPOBJ ;
38893 int temp4 ;
38894 int res4 = SWIG_TMPOBJ ;
38895 int temp5 ;
38896 int res5 = SWIG_TMPOBJ ;
38897 int temp6 ;
38898 int res6 = SWIG_TMPOBJ ;
38899 void *argp7 = 0 ;
38900 int res7 = 0 ;
38901 PyObject * obj0 = 0 ;
38902 PyObject * obj1 = 0 ;
38903 PyObject * obj2 = 0 ;
38904 char * kwnames[] = {
38905 (char *) "self",(char *) "string",(char *) "font", NULL
38906 };
38907
38908 arg3 = &temp3;
38909 arg4 = &temp4;
38910 arg5 = &temp5;
38911 arg6 = &temp6;
38912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38914 if (!SWIG_IsOK(res1)) {
38915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetFullTextExtent" "', expected argument " "1"" of type '" "wxWindow *""'");
38916 }
38917 arg1 = reinterpret_cast< wxWindow * >(argp1);
38918 {
38919 arg2 = wxString_in_helper(obj1);
38920 if (arg2 == NULL) SWIG_fail;
38921 temp2 = true;
38922 }
38923 if (obj2) {
38924 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
38925 if (!SWIG_IsOK(res7)) {
38926 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Window_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont const *""'");
d55e5bfc 38927 }
1bd55598
RD
38928 arg7 = reinterpret_cast< wxFont * >(argp7);
38929 }
38930 {
38931 PyThreadState* __tstate = wxPyBeginAllowThreads();
38932 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7);
38933 wxPyEndAllowThreads(__tstate);
38934 if (PyErr_Occurred()) SWIG_fail;
38935 }
38936 resultobj = SWIG_Py_Void();
38937 if (SWIG_IsTmpObj(res3)) {
38938 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38939 } else {
38940 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38941 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38942 }
38943 if (SWIG_IsTmpObj(res4)) {
38944 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
38945 } else {
38946 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38947 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
38948 }
38949 if (SWIG_IsTmpObj(res5)) {
38950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
38951 } else {
38952 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38953 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
38954 }
38955 if (SWIG_IsTmpObj(res6)) {
38956 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
38957 } else {
38958 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38959 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
38960 }
38961 {
38962 if (temp2)
38963 delete arg2;
38964 }
38965 return resultobj;
38966fail:
38967 {
38968 if (temp2)
38969 delete arg2;
38970 }
38971 return NULL;
38972}
38973
38974
38975SWIGINTERN PyObject *_wrap_Window_ClientToScreenXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38976 PyObject *resultobj = 0;
38977 wxWindow *arg1 = (wxWindow *) 0 ;
38978 int *arg2 = (int *) 0 ;
38979 int *arg3 = (int *) 0 ;
38980 void *argp1 = 0 ;
38981 int res1 = 0 ;
38982 int temp2 ;
38983 int res2 = 0 ;
38984 int temp3 ;
38985 int res3 = 0 ;
38986 PyObject * obj0 = 0 ;
38987 PyObject * obj1 = 0 ;
38988 PyObject * obj2 = 0 ;
38989 char * kwnames[] = {
38990 (char *) "self",(char *) "x",(char *) "y", NULL
38991 };
38992
38993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38995 if (!SWIG_IsOK(res1)) {
38996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ClientToScreenXY" "', expected argument " "1"" of type '" "wxWindow const *""'");
38997 }
38998 arg1 = reinterpret_cast< wxWindow * >(argp1);
38999 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_int,0))))) {
39000 int val;
39001 int ecode = SWIG_AsVal_int(obj1, &val);
39002 if (!SWIG_IsOK(ecode)) {
39003 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "Window_ClientToScreenXY" "', expected argument " "2"" of type '" "int""'");
39004 }
39005 temp2 = static_cast< int >(val);
39006 arg2 = &temp2;
39007 res2 = SWIG_AddTmpMask(ecode);
39008 }
39009 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_int,0))))) {
39010 int val;
39011 int ecode = SWIG_AsVal_int(obj2, &val);
39012 if (!SWIG_IsOK(ecode)) {
39013 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "Window_ClientToScreenXY" "', expected argument " "3"" of type '" "int""'");
39014 }
39015 temp3 = static_cast< int >(val);
39016 arg3 = &temp3;
39017 res3 = SWIG_AddTmpMask(ecode);
39018 }
39019 {
39020 PyThreadState* __tstate = wxPyBeginAllowThreads();
39021 ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3);
39022 wxPyEndAllowThreads(__tstate);
39023 if (PyErr_Occurred()) SWIG_fail;
39024 }
39025 resultobj = SWIG_Py_Void();
39026 if (SWIG_IsTmpObj(res2)) {
39027 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39028 } else {
39029 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39030 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39031 }
39032 if (SWIG_IsTmpObj(res3)) {
39033 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39034 } else {
39035 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39036 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39037 }
39038 return resultobj;
39039fail:
39040 return NULL;
39041}
39042
39043
39044SWIGINTERN PyObject *_wrap_Window_ScreenToClientXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39045 PyObject *resultobj = 0;
39046 wxWindow *arg1 = (wxWindow *) 0 ;
39047 int *arg2 = (int *) 0 ;
39048 int *arg3 = (int *) 0 ;
39049 void *argp1 = 0 ;
39050 int res1 = 0 ;
39051 int temp2 ;
39052 int res2 = 0 ;
39053 int temp3 ;
39054 int res3 = 0 ;
39055 PyObject * obj0 = 0 ;
39056 PyObject * obj1 = 0 ;
39057 PyObject * obj2 = 0 ;
39058 char * kwnames[] = {
39059 (char *) "self",(char *) "x",(char *) "y", NULL
39060 };
39061
39062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39064 if (!SWIG_IsOK(res1)) {
39065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ScreenToClientXY" "', expected argument " "1"" of type '" "wxWindow const *""'");
39066 }
39067 arg1 = reinterpret_cast< wxWindow * >(argp1);
39068 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_int,0))))) {
39069 int val;
39070 int ecode = SWIG_AsVal_int(obj1, &val);
39071 if (!SWIG_IsOK(ecode)) {
39072 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "Window_ScreenToClientXY" "', expected argument " "2"" of type '" "int""'");
39073 }
39074 temp2 = static_cast< int >(val);
39075 arg2 = &temp2;
39076 res2 = SWIG_AddTmpMask(ecode);
39077 }
39078 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_int,0))))) {
39079 int val;
39080 int ecode = SWIG_AsVal_int(obj2, &val);
39081 if (!SWIG_IsOK(ecode)) {
39082 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "Window_ScreenToClientXY" "', expected argument " "3"" of type '" "int""'");
39083 }
39084 temp3 = static_cast< int >(val);
39085 arg3 = &temp3;
39086 res3 = SWIG_AddTmpMask(ecode);
39087 }
39088 {
39089 PyThreadState* __tstate = wxPyBeginAllowThreads();
39090 ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3);
39091 wxPyEndAllowThreads(__tstate);
39092 if (PyErr_Occurred()) SWIG_fail;
39093 }
39094 resultobj = SWIG_Py_Void();
39095 if (SWIG_IsTmpObj(res2)) {
39096 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39097 } else {
39098 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39099 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39100 }
39101 if (SWIG_IsTmpObj(res3)) {
39102 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39103 } else {
39104 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39105 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39106 }
39107 return resultobj;
39108fail:
39109 return NULL;
39110}
39111
39112
39113SWIGINTERN PyObject *_wrap_Window_ClientToScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39114 PyObject *resultobj = 0;
39115 wxWindow *arg1 = (wxWindow *) 0 ;
39116 wxPoint *arg2 = 0 ;
39117 wxPoint result;
39118 void *argp1 = 0 ;
39119 int res1 = 0 ;
39120 wxPoint temp2 ;
39121 PyObject * obj0 = 0 ;
39122 PyObject * obj1 = 0 ;
39123 char * kwnames[] = {
39124 (char *) "self",(char *) "pt", NULL
39125 };
39126
39127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) SWIG_fail;
39128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39129 if (!SWIG_IsOK(res1)) {
39130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ClientToScreen" "', expected argument " "1"" of type '" "wxWindow const *""'");
39131 }
39132 arg1 = reinterpret_cast< wxWindow * >(argp1);
39133 {
39134 arg2 = &temp2;
39135 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39136 }
39137 {
39138 PyThreadState* __tstate = wxPyBeginAllowThreads();
39139 result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2);
39140 wxPyEndAllowThreads(__tstate);
39141 if (PyErr_Occurred()) SWIG_fail;
39142 }
39143 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39144 return resultobj;
39145fail:
39146 return NULL;
39147}
39148
39149
39150SWIGINTERN PyObject *_wrap_Window_ScreenToClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39151 PyObject *resultobj = 0;
39152 wxWindow *arg1 = (wxWindow *) 0 ;
39153 wxPoint *arg2 = 0 ;
39154 wxPoint result;
39155 void *argp1 = 0 ;
39156 int res1 = 0 ;
39157 wxPoint temp2 ;
39158 PyObject * obj0 = 0 ;
39159 PyObject * obj1 = 0 ;
39160 char * kwnames[] = {
39161 (char *) "self",(char *) "pt", NULL
39162 };
39163
39164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) SWIG_fail;
39165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39166 if (!SWIG_IsOK(res1)) {
39167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ScreenToClient" "', expected argument " "1"" of type '" "wxWindow const *""'");
39168 }
39169 arg1 = reinterpret_cast< wxWindow * >(argp1);
39170 {
39171 arg2 = &temp2;
39172 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39173 }
39174 {
39175 PyThreadState* __tstate = wxPyBeginAllowThreads();
39176 result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2);
39177 wxPyEndAllowThreads(__tstate);
39178 if (PyErr_Occurred()) SWIG_fail;
39179 }
39180 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39181 return resultobj;
39182fail:
39183 return NULL;
39184}
39185
39186
39187SWIGINTERN PyObject *_wrap_Window_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39188 PyObject *resultobj = 0;
39189 wxWindow *arg1 = (wxWindow *) 0 ;
39190 int arg2 ;
39191 int arg3 ;
39192 wxHitTest result;
39193 void *argp1 = 0 ;
39194 int res1 = 0 ;
39195 int val2 ;
39196 int ecode2 = 0 ;
39197 int val3 ;
39198 int ecode3 = 0 ;
39199 PyObject * obj0 = 0 ;
39200 PyObject * obj1 = 0 ;
39201 PyObject * obj2 = 0 ;
39202 char * kwnames[] = {
39203 (char *) "self",(char *) "x",(char *) "y", NULL
39204 };
39205
39206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39208 if (!SWIG_IsOK(res1)) {
39209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HitTestXY" "', expected argument " "1"" of type '" "wxWindow const *""'");
39210 }
39211 arg1 = reinterpret_cast< wxWindow * >(argp1);
39212 ecode2 = SWIG_AsVal_int(obj1, &val2);
39213 if (!SWIG_IsOK(ecode2)) {
39214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_HitTestXY" "', expected argument " "2"" of type '" "int""'");
39215 }
39216 arg2 = static_cast< int >(val2);
39217 ecode3 = SWIG_AsVal_int(obj2, &val3);
39218 if (!SWIG_IsOK(ecode3)) {
39219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_HitTestXY" "', expected argument " "3"" of type '" "int""'");
39220 }
39221 arg3 = static_cast< int >(val3);
39222 {
39223 PyThreadState* __tstate = wxPyBeginAllowThreads();
39224 result = (wxHitTest)((wxWindow const *)arg1)->HitTest(arg2,arg3);
39225 wxPyEndAllowThreads(__tstate);
39226 if (PyErr_Occurred()) SWIG_fail;
39227 }
39228 resultobj = SWIG_From_int(static_cast< int >(result));
39229 return resultobj;
39230fail:
39231 return NULL;
39232}
39233
39234
39235SWIGINTERN PyObject *_wrap_Window_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39236 PyObject *resultobj = 0;
39237 wxWindow *arg1 = (wxWindow *) 0 ;
39238 wxPoint *arg2 = 0 ;
39239 wxHitTest result;
39240 void *argp1 = 0 ;
39241 int res1 = 0 ;
39242 wxPoint temp2 ;
39243 PyObject * obj0 = 0 ;
39244 PyObject * obj1 = 0 ;
39245 char * kwnames[] = {
39246 (char *) "self",(char *) "pt", NULL
39247 };
39248
39249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
39250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39251 if (!SWIG_IsOK(res1)) {
39252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HitTest" "', expected argument " "1"" of type '" "wxWindow const *""'");
39253 }
39254 arg1 = reinterpret_cast< wxWindow * >(argp1);
39255 {
39256 arg2 = &temp2;
39257 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39258 }
39259 {
39260 PyThreadState* __tstate = wxPyBeginAllowThreads();
39261 result = (wxHitTest)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2);
39262 wxPyEndAllowThreads(__tstate);
39263 if (PyErr_Occurred()) SWIG_fail;
39264 }
39265 resultobj = SWIG_From_int(static_cast< int >(result));
39266 return resultobj;
39267fail:
39268 return NULL;
39269}
39270
39271
39272SWIGINTERN PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
39273 PyObject *resultobj = 0;
39274 wxWindow *arg1 = (wxWindow *) 0 ;
39275 long arg2 ;
39276 wxBorder result;
39277 void *argp1 = 0 ;
39278 int res1 = 0 ;
39279 long val2 ;
39280 int ecode2 = 0 ;
39281
39282 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
39283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39284 if (!SWIG_IsOK(res1)) {
39285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBorder" "', expected argument " "1"" of type '" "wxWindow const *""'");
39286 }
39287 arg1 = reinterpret_cast< wxWindow * >(argp1);
39288 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
39289 if (!SWIG_IsOK(ecode2)) {
39290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_GetBorder" "', expected argument " "2"" of type '" "long""'");
39291 }
39292 arg2 = static_cast< long >(val2);
39293 {
39294 PyThreadState* __tstate = wxPyBeginAllowThreads();
39295 result = (wxBorder)((wxWindow const *)arg1)->GetBorder(arg2);
39296 wxPyEndAllowThreads(__tstate);
39297 if (PyErr_Occurred()) SWIG_fail;
39298 }
39299 resultobj = SWIG_From_int(static_cast< int >(result));
39300 return resultobj;
39301fail:
39302 return NULL;
d55e5bfc
RD
39303}
39304
39305
1bd55598
RD
39306SWIGINTERN PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
39307 PyObject *resultobj = 0;
39308 wxWindow *arg1 = (wxWindow *) 0 ;
39309 wxBorder result;
39310 void *argp1 = 0 ;
39311 int res1 = 0 ;
39312
39313 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
39314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39315 if (!SWIG_IsOK(res1)) {
39316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBorder" "', expected argument " "1"" of type '" "wxWindow const *""'");
39317 }
39318 arg1 = reinterpret_cast< wxWindow * >(argp1);
39319 {
39320 PyThreadState* __tstate = wxPyBeginAllowThreads();
39321 result = (wxBorder)((wxWindow const *)arg1)->GetBorder();
39322 wxPyEndAllowThreads(__tstate);
39323 if (PyErr_Occurred()) SWIG_fail;
39324 }
39325 resultobj = SWIG_From_int(static_cast< int >(result));
39326 return resultobj;
39327fail:
39328 return NULL;
d55e5bfc
RD
39329}
39330
39331
1bd55598
RD
39332SWIGINTERN PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) {
39333 int argc;
39334 PyObject *argv[3];
39335
39336 if (!(argc = SWIG_Python_UnpackTuple(args,"Window_GetBorder",0,2,argv))) SWIG_fail;
39337 --argc;
39338 if (argc == 1) {
39339 return _wrap_Window_GetBorder__SWIG_1(self, argc, argv);
39340 }
39341 if (argc == 2) {
39342 return _wrap_Window_GetBorder__SWIG_0(self, argc, argv);
39343 }
39344
39345fail:
39346 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'Window_GetBorder'");
39347 return NULL;
39348}
39349
39350
39351SWIGINTERN PyObject *_wrap_Window_UpdateWindowUI(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39352 PyObject *resultobj = 0;
39353 wxWindow *arg1 = (wxWindow *) 0 ;
39354 long arg2 = (long) wxUPDATE_UI_NONE ;
39355 void *argp1 = 0 ;
39356 int res1 = 0 ;
39357 long val2 ;
39358 int ecode2 = 0 ;
39359 PyObject * obj0 = 0 ;
39360 PyObject * obj1 = 0 ;
39361 char * kwnames[] = {
39362 (char *) "self",(char *) "flags", NULL
39363 };
39364
39365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) 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_UpdateWindowUI" "', expected argument " "1"" of type '" "wxWindow *""'");
39369 }
39370 arg1 = reinterpret_cast< wxWindow * >(argp1);
39371 if (obj1) {
39372 ecode2 = SWIG_AsVal_long(obj1, &val2);
39373 if (!SWIG_IsOK(ecode2)) {
39374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_UpdateWindowUI" "', expected argument " "2"" of type '" "long""'");
39375 }
39376 arg2 = static_cast< long >(val2);
39377 }
39378 {
39379 PyThreadState* __tstate = wxPyBeginAllowThreads();
39380 (arg1)->UpdateWindowUI(arg2);
39381 wxPyEndAllowThreads(__tstate);
39382 if (PyErr_Occurred()) SWIG_fail;
39383 }
39384 resultobj = SWIG_Py_Void();
39385 return resultobj;
39386fail:
39387 return NULL;
39388}
39389
39390
39391SWIGINTERN PyObject *_wrap_Window_PopupMenuXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39392 PyObject *resultobj = 0;
39393 wxWindow *arg1 = (wxWindow *) 0 ;
39394 wxMenu *arg2 = (wxMenu *) 0 ;
39395 int arg3 = (int) -1 ;
39396 int arg4 = (int) -1 ;
39397 bool result;
39398 void *argp1 = 0 ;
39399 int res1 = 0 ;
39400 void *argp2 = 0 ;
39401 int res2 = 0 ;
39402 int val3 ;
39403 int ecode3 = 0 ;
39404 int val4 ;
39405 int ecode4 = 0 ;
39406 PyObject * obj0 = 0 ;
39407 PyObject * obj1 = 0 ;
39408 PyObject * obj2 = 0 ;
39409 PyObject * obj3 = 0 ;
39410 char * kwnames[] = {
39411 (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL
39412 };
39413
39414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39416 if (!SWIG_IsOK(res1)) {
39417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PopupMenuXY" "', expected argument " "1"" of type '" "wxWindow *""'");
39418 }
39419 arg1 = reinterpret_cast< wxWindow * >(argp1);
39420 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
39421 if (!SWIG_IsOK(res2)) {
39422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_PopupMenuXY" "', expected argument " "2"" of type '" "wxMenu *""'");
39423 }
39424 arg2 = reinterpret_cast< wxMenu * >(argp2);
39425 if (obj2) {
39426 ecode3 = SWIG_AsVal_int(obj2, &val3);
39427 if (!SWIG_IsOK(ecode3)) {
39428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_PopupMenuXY" "', expected argument " "3"" of type '" "int""'");
39429 }
39430 arg3 = static_cast< int >(val3);
39431 }
39432 if (obj3) {
39433 ecode4 = SWIG_AsVal_int(obj3, &val4);
39434 if (!SWIG_IsOK(ecode4)) {
39435 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_PopupMenuXY" "', expected argument " "4"" of type '" "int""'");
39436 }
39437 arg4 = static_cast< int >(val4);
39438 }
39439 {
39440 PyThreadState* __tstate = wxPyBeginAllowThreads();
39441 result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4);
39442 wxPyEndAllowThreads(__tstate);
39443 if (PyErr_Occurred()) SWIG_fail;
39444 }
39445 {
39446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39447 }
39448 return resultobj;
39449fail:
39450 return NULL;
39451}
39452
39453
39454SWIGINTERN PyObject *_wrap_Window_PopupMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39455 PyObject *resultobj = 0;
39456 wxWindow *arg1 = (wxWindow *) 0 ;
39457 wxMenu *arg2 = (wxMenu *) 0 ;
39458 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39459 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39460 bool result;
39461 void *argp1 = 0 ;
39462 int res1 = 0 ;
39463 void *argp2 = 0 ;
39464 int res2 = 0 ;
39465 wxPoint temp3 ;
39466 PyObject * obj0 = 0 ;
39467 PyObject * obj1 = 0 ;
39468 PyObject * obj2 = 0 ;
39469 char * kwnames[] = {
39470 (char *) "self",(char *) "menu",(char *) "pos", NULL
39471 };
39472
39473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39475 if (!SWIG_IsOK(res1)) {
39476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PopupMenu" "', expected argument " "1"" of type '" "wxWindow *""'");
39477 }
39478 arg1 = reinterpret_cast< wxWindow * >(argp1);
39479 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
39480 if (!SWIG_IsOK(res2)) {
39481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_PopupMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
39482 }
39483 arg2 = reinterpret_cast< wxMenu * >(argp2);
39484 if (obj2) {
d55e5bfc 39485 {
1bd55598
RD
39486 arg3 = &temp3;
39487 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39488 }
1bd55598
RD
39489 }
39490 {
39491 PyThreadState* __tstate = wxPyBeginAllowThreads();
39492 result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3);
39493 wxPyEndAllowThreads(__tstate);
39494 if (PyErr_Occurred()) SWIG_fail;
39495 }
39496 {
39497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39498 }
39499 return resultobj;
39500fail:
39501 return NULL;
d55e5bfc
RD
39502}
39503
39504
1eeb270e
RD
39505SWIGINTERN PyObject *_wrap_Window_HasMultiplePages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39506 PyObject *resultobj = 0;
39507 wxWindow *arg1 = (wxWindow *) 0 ;
39508 bool result;
39509 void *argp1 = 0 ;
39510 int res1 = 0 ;
39511 PyObject *swig_obj[1] ;
39512
39513 if (!args) SWIG_fail;
39514 swig_obj[0] = args;
39515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39516 if (!SWIG_IsOK(res1)) {
39517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HasMultiplePages" "', expected argument " "1"" of type '" "wxWindow const *""'");
39518 }
39519 arg1 = reinterpret_cast< wxWindow * >(argp1);
39520 {
39521 PyThreadState* __tstate = wxPyBeginAllowThreads();
39522 result = (bool)((wxWindow const *)arg1)->HasMultiplePages();
39523 wxPyEndAllowThreads(__tstate);
39524 if (PyErr_Occurred()) SWIG_fail;
39525 }
39526 {
39527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39528 }
39529 return resultobj;
39530fail:
39531 return NULL;
39532}
39533
39534
1bd55598
RD
39535SWIGINTERN PyObject *_wrap_Window_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39536 PyObject *resultobj = 0;
39537 wxWindow *arg1 = (wxWindow *) 0 ;
39538 long result;
39539 void *argp1 = 0 ;
39540 int res1 = 0 ;
39541 PyObject *swig_obj[1] ;
39542
39543 if (!args) SWIG_fail;
39544 swig_obj[0] = args;
39545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39546 if (!SWIG_IsOK(res1)) {
39547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetHandle" "', expected argument " "1"" of type '" "wxWindow *""'");
39548 }
39549 arg1 = reinterpret_cast< wxWindow * >(argp1);
39550 {
39551 PyThreadState* __tstate = wxPyBeginAllowThreads();
39552 result = (long)wxWindow_GetHandle(arg1);
39553 wxPyEndAllowThreads(__tstate);
39554 if (PyErr_Occurred()) SWIG_fail;
39555 }
39556 resultobj = SWIG_From_long(static_cast< long >(result));
39557 return resultobj;
39558fail:
39559 return NULL;
39560}
39561
39562
39563SWIGINTERN PyObject *_wrap_Window_AssociateHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39564 PyObject *resultobj = 0;
39565 wxWindow *arg1 = (wxWindow *) 0 ;
39566 long arg2 ;
39567 void *argp1 = 0 ;
39568 int res1 = 0 ;
39569 long val2 ;
39570 int ecode2 = 0 ;
39571 PyObject * obj0 = 0 ;
39572 PyObject * obj1 = 0 ;
39573 char * kwnames[] = {
39574 (char *) "self",(char *) "handle", NULL
39575 };
39576
39577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) SWIG_fail;
39578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39579 if (!SWIG_IsOK(res1)) {
39580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_AssociateHandle" "', expected argument " "1"" of type '" "wxWindow *""'");
39581 }
39582 arg1 = reinterpret_cast< wxWindow * >(argp1);
39583 ecode2 = SWIG_AsVal_long(obj1, &val2);
39584 if (!SWIG_IsOK(ecode2)) {
39585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_AssociateHandle" "', expected argument " "2"" of type '" "long""'");
39586 }
39587 arg2 = static_cast< long >(val2);
39588 {
39589 PyThreadState* __tstate = wxPyBeginAllowThreads();
39590 wxWindow_AssociateHandle(arg1,arg2);
39591 wxPyEndAllowThreads(__tstate);
39592 if (PyErr_Occurred()) SWIG_fail;
39593 }
39594 resultobj = SWIG_Py_Void();
39595 return resultobj;
39596fail:
39597 return NULL;
d55e5bfc
RD
39598}
39599
39600
1bd55598
RD
39601SWIGINTERN PyObject *_wrap_Window_DissociateHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39602 PyObject *resultobj = 0;
39603 wxWindow *arg1 = (wxWindow *) 0 ;
39604 void *argp1 = 0 ;
39605 int res1 = 0 ;
39606 PyObject *swig_obj[1] ;
39607
39608 if (!args) SWIG_fail;
39609 swig_obj[0] = args;
39610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39611 if (!SWIG_IsOK(res1)) {
39612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_DissociateHandle" "', expected argument " "1"" of type '" "wxWindow *""'");
39613 }
39614 arg1 = reinterpret_cast< wxWindow * >(argp1);
39615 {
39616 PyThreadState* __tstate = wxPyBeginAllowThreads();
39617 (arg1)->DissociateHandle();
39618 wxPyEndAllowThreads(__tstate);
39619 if (PyErr_Occurred()) SWIG_fail;
39620 }
39621 resultobj = SWIG_Py_Void();
39622 return resultobj;
39623fail:
39624 return NULL;
39625}
39626
39627
39628SWIGINTERN PyObject *_wrap_Window_HasScrollbar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39629 PyObject *resultobj = 0;
39630 wxWindow *arg1 = (wxWindow *) 0 ;
39631 int arg2 ;
39632 bool result;
39633 void *argp1 = 0 ;
39634 int res1 = 0 ;
39635 int val2 ;
39636 int ecode2 = 0 ;
39637 PyObject * obj0 = 0 ;
39638 PyObject * obj1 = 0 ;
39639 char * kwnames[] = {
39640 (char *) "self",(char *) "orient", NULL
39641 };
39642
39643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) SWIG_fail;
39644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39645 if (!SWIG_IsOK(res1)) {
39646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HasScrollbar" "', expected argument " "1"" of type '" "wxWindow const *""'");
39647 }
39648 arg1 = reinterpret_cast< wxWindow * >(argp1);
39649 ecode2 = SWIG_AsVal_int(obj1, &val2);
39650 if (!SWIG_IsOK(ecode2)) {
39651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_HasScrollbar" "', expected argument " "2"" of type '" "int""'");
39652 }
39653 arg2 = static_cast< int >(val2);
39654 {
39655 PyThreadState* __tstate = wxPyBeginAllowThreads();
39656 result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2);
39657 wxPyEndAllowThreads(__tstate);
39658 if (PyErr_Occurred()) SWIG_fail;
39659 }
39660 {
39661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39662 }
39663 return resultobj;
39664fail:
39665 return NULL;
39666}
39667
39668
39669SWIGINTERN PyObject *_wrap_Window_SetScrollbar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39670 PyObject *resultobj = 0;
39671 wxWindow *arg1 = (wxWindow *) 0 ;
39672 int arg2 ;
39673 int arg3 ;
39674 int arg4 ;
39675 int arg5 ;
39676 bool arg6 = (bool) true ;
39677 void *argp1 = 0 ;
39678 int res1 = 0 ;
39679 int val2 ;
39680 int ecode2 = 0 ;
39681 int val3 ;
39682 int ecode3 = 0 ;
39683 int val4 ;
39684 int ecode4 = 0 ;
39685 int val5 ;
39686 int ecode5 = 0 ;
39687 bool val6 ;
39688 int ecode6 = 0 ;
39689 PyObject * obj0 = 0 ;
39690 PyObject * obj1 = 0 ;
39691 PyObject * obj2 = 0 ;
39692 PyObject * obj3 = 0 ;
39693 PyObject * obj4 = 0 ;
39694 PyObject * obj5 = 0 ;
39695 char * kwnames[] = {
39696 (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL
39697 };
39698
39699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39701 if (!SWIG_IsOK(res1)) {
39702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetScrollbar" "', expected argument " "1"" of type '" "wxWindow *""'");
39703 }
39704 arg1 = reinterpret_cast< wxWindow * >(argp1);
39705 ecode2 = SWIG_AsVal_int(obj1, &val2);
39706 if (!SWIG_IsOK(ecode2)) {
39707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetScrollbar" "', expected argument " "2"" of type '" "int""'");
39708 }
39709 arg2 = static_cast< int >(val2);
39710 ecode3 = SWIG_AsVal_int(obj2, &val3);
39711 if (!SWIG_IsOK(ecode3)) {
39712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetScrollbar" "', expected argument " "3"" of type '" "int""'");
39713 }
39714 arg3 = static_cast< int >(val3);
39715 ecode4 = SWIG_AsVal_int(obj3, &val4);
39716 if (!SWIG_IsOK(ecode4)) {
39717 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_SetScrollbar" "', expected argument " "4"" of type '" "int""'");
39718 }
39719 arg4 = static_cast< int >(val4);
39720 ecode5 = SWIG_AsVal_int(obj4, &val5);
39721 if (!SWIG_IsOK(ecode5)) {
39722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Window_SetScrollbar" "', expected argument " "5"" of type '" "int""'");
39723 }
39724 arg5 = static_cast< int >(val5);
39725 if (obj5) {
39726 ecode6 = SWIG_AsVal_bool(obj5, &val6);
39727 if (!SWIG_IsOK(ecode6)) {
39728 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Window_SetScrollbar" "', expected argument " "6"" of type '" "bool""'");
39729 }
39730 arg6 = static_cast< bool >(val6);
39731 }
39732 {
39733 PyThreadState* __tstate = wxPyBeginAllowThreads();
39734 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
39735 wxPyEndAllowThreads(__tstate);
39736 if (PyErr_Occurred()) SWIG_fail;
39737 }
39738 resultobj = SWIG_Py_Void();
39739 return resultobj;
39740fail:
39741 return NULL;
39742}
39743
39744
39745SWIGINTERN PyObject *_wrap_Window_SetScrollPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39746 PyObject *resultobj = 0;
39747 wxWindow *arg1 = (wxWindow *) 0 ;
39748 int arg2 ;
39749 int arg3 ;
39750 bool arg4 = (bool) true ;
39751 void *argp1 = 0 ;
39752 int res1 = 0 ;
39753 int val2 ;
39754 int ecode2 = 0 ;
39755 int val3 ;
39756 int ecode3 = 0 ;
39757 bool val4 ;
39758 int ecode4 = 0 ;
39759 PyObject * obj0 = 0 ;
39760 PyObject * obj1 = 0 ;
39761 PyObject * obj2 = 0 ;
39762 PyObject * obj3 = 0 ;
39763 char * kwnames[] = {
39764 (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL
39765 };
39766
39767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39769 if (!SWIG_IsOK(res1)) {
39770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetScrollPos" "', expected argument " "1"" of type '" "wxWindow *""'");
39771 }
39772 arg1 = reinterpret_cast< wxWindow * >(argp1);
39773 ecode2 = SWIG_AsVal_int(obj1, &val2);
39774 if (!SWIG_IsOK(ecode2)) {
39775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetScrollPos" "', expected argument " "2"" of type '" "int""'");
39776 }
39777 arg2 = static_cast< int >(val2);
39778 ecode3 = SWIG_AsVal_int(obj2, &val3);
39779 if (!SWIG_IsOK(ecode3)) {
39780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetScrollPos" "', expected argument " "3"" of type '" "int""'");
39781 }
39782 arg3 = static_cast< int >(val3);
39783 if (obj3) {
39784 ecode4 = SWIG_AsVal_bool(obj3, &val4);
39785 if (!SWIG_IsOK(ecode4)) {
39786 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_SetScrollPos" "', expected argument " "4"" of type '" "bool""'");
39787 }
39788 arg4 = static_cast< bool >(val4);
39789 }
39790 {
39791 PyThreadState* __tstate = wxPyBeginAllowThreads();
39792 (arg1)->SetScrollPos(arg2,arg3,arg4);
39793 wxPyEndAllowThreads(__tstate);
39794 if (PyErr_Occurred()) SWIG_fail;
39795 }
39796 resultobj = SWIG_Py_Void();
39797 return resultobj;
39798fail:
39799 return NULL;
39800}
39801
39802
39803SWIGINTERN PyObject *_wrap_Window_GetScrollPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39804 PyObject *resultobj = 0;
39805 wxWindow *arg1 = (wxWindow *) 0 ;
39806 int arg2 ;
39807 int result;
39808 void *argp1 = 0 ;
39809 int res1 = 0 ;
39810 int val2 ;
39811 int ecode2 = 0 ;
39812 PyObject * obj0 = 0 ;
39813 PyObject * obj1 = 0 ;
39814 char * kwnames[] = {
39815 (char *) "self",(char *) "orientation", NULL
39816 };
39817
39818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) SWIG_fail;
39819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39820 if (!SWIG_IsOK(res1)) {
39821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScrollPos" "', expected argument " "1"" of type '" "wxWindow const *""'");
39822 }
39823 arg1 = reinterpret_cast< wxWindow * >(argp1);
39824 ecode2 = SWIG_AsVal_int(obj1, &val2);
39825 if (!SWIG_IsOK(ecode2)) {
39826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_GetScrollPos" "', expected argument " "2"" of type '" "int""'");
39827 }
39828 arg2 = static_cast< int >(val2);
39829 {
39830 PyThreadState* __tstate = wxPyBeginAllowThreads();
39831 result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2);
39832 wxPyEndAllowThreads(__tstate);
39833 if (PyErr_Occurred()) SWIG_fail;
39834 }
39835 resultobj = SWIG_From_int(static_cast< int >(result));
39836 return resultobj;
39837fail:
39838 return NULL;
39839}
39840
39841
39842SWIGINTERN PyObject *_wrap_Window_GetScrollThumb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39843 PyObject *resultobj = 0;
39844 wxWindow *arg1 = (wxWindow *) 0 ;
39845 int arg2 ;
39846 int result;
39847 void *argp1 = 0 ;
39848 int res1 = 0 ;
39849 int val2 ;
39850 int ecode2 = 0 ;
39851 PyObject * obj0 = 0 ;
39852 PyObject * obj1 = 0 ;
39853 char * kwnames[] = {
39854 (char *) "self",(char *) "orientation", NULL
39855 };
39856
39857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) SWIG_fail;
39858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39859 if (!SWIG_IsOK(res1)) {
39860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScrollThumb" "', expected argument " "1"" of type '" "wxWindow const *""'");
39861 }
39862 arg1 = reinterpret_cast< wxWindow * >(argp1);
39863 ecode2 = SWIG_AsVal_int(obj1, &val2);
39864 if (!SWIG_IsOK(ecode2)) {
39865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_GetScrollThumb" "', expected argument " "2"" of type '" "int""'");
39866 }
39867 arg2 = static_cast< int >(val2);
39868 {
39869 PyThreadState* __tstate = wxPyBeginAllowThreads();
39870 result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2);
39871 wxPyEndAllowThreads(__tstate);
39872 if (PyErr_Occurred()) SWIG_fail;
39873 }
39874 resultobj = SWIG_From_int(static_cast< int >(result));
39875 return resultobj;
39876fail:
39877 return NULL;
39878}
39879
39880
39881SWIGINTERN PyObject *_wrap_Window_GetScrollRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39882 PyObject *resultobj = 0;
39883 wxWindow *arg1 = (wxWindow *) 0 ;
39884 int arg2 ;
39885 int result;
39886 void *argp1 = 0 ;
39887 int res1 = 0 ;
39888 int val2 ;
39889 int ecode2 = 0 ;
39890 PyObject * obj0 = 0 ;
39891 PyObject * obj1 = 0 ;
39892 char * kwnames[] = {
39893 (char *) "self",(char *) "orientation", NULL
39894 };
39895
39896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) SWIG_fail;
39897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39898 if (!SWIG_IsOK(res1)) {
39899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScrollRange" "', expected argument " "1"" of type '" "wxWindow const *""'");
39900 }
39901 arg1 = reinterpret_cast< wxWindow * >(argp1);
39902 ecode2 = SWIG_AsVal_int(obj1, &val2);
39903 if (!SWIG_IsOK(ecode2)) {
39904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_GetScrollRange" "', expected argument " "2"" of type '" "int""'");
39905 }
39906 arg2 = static_cast< int >(val2);
39907 {
39908 PyThreadState* __tstate = wxPyBeginAllowThreads();
39909 result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2);
39910 wxPyEndAllowThreads(__tstate);
39911 if (PyErr_Occurred()) SWIG_fail;
39912 }
39913 resultobj = SWIG_From_int(static_cast< int >(result));
39914 return resultobj;
39915fail:
39916 return NULL;
39917}
39918
39919
39920SWIGINTERN PyObject *_wrap_Window_ScrollWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39921 PyObject *resultobj = 0;
39922 wxWindow *arg1 = (wxWindow *) 0 ;
39923 int arg2 ;
39924 int arg3 ;
39925 wxRect *arg4 = (wxRect *) NULL ;
39926 void *argp1 = 0 ;
39927 int res1 = 0 ;
39928 int val2 ;
39929 int ecode2 = 0 ;
39930 int val3 ;
39931 int ecode3 = 0 ;
39932 void *argp4 = 0 ;
39933 int res4 = 0 ;
39934 PyObject * obj0 = 0 ;
39935 PyObject * obj1 = 0 ;
39936 PyObject * obj2 = 0 ;
39937 PyObject * obj3 = 0 ;
39938 char * kwnames[] = {
39939 (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL
39940 };
39941
39942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39944 if (!SWIG_IsOK(res1)) {
39945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ScrollWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
39946 }
39947 arg1 = reinterpret_cast< wxWindow * >(argp1);
39948 ecode2 = SWIG_AsVal_int(obj1, &val2);
39949 if (!SWIG_IsOK(ecode2)) {
39950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_ScrollWindow" "', expected argument " "2"" of type '" "int""'");
39951 }
39952 arg2 = static_cast< int >(val2);
39953 ecode3 = SWIG_AsVal_int(obj2, &val3);
39954 if (!SWIG_IsOK(ecode3)) {
39955 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_ScrollWindow" "', expected argument " "3"" of type '" "int""'");
39956 }
39957 arg3 = static_cast< int >(val3);
39958 if (obj3) {
39959 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxRect, 0 | 0 );
39960 if (!SWIG_IsOK(res4)) {
39961 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Window_ScrollWindow" "', expected argument " "4"" of type '" "wxRect const *""'");
d55e5bfc 39962 }
1bd55598
RD
39963 arg4 = reinterpret_cast< wxRect * >(argp4);
39964 }
39965 {
39966 PyThreadState* __tstate = wxPyBeginAllowThreads();
39967 (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4);
39968 wxPyEndAllowThreads(__tstate);
39969 if (PyErr_Occurred()) SWIG_fail;
39970 }
39971 resultobj = SWIG_Py_Void();
39972 return resultobj;
39973fail:
39974 return NULL;
39975}
39976
39977
39978SWIGINTERN PyObject *_wrap_Window_ScrollLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39979 PyObject *resultobj = 0;
39980 wxWindow *arg1 = (wxWindow *) 0 ;
39981 int arg2 ;
39982 bool result;
39983 void *argp1 = 0 ;
39984 int res1 = 0 ;
39985 int val2 ;
39986 int ecode2 = 0 ;
39987 PyObject * obj0 = 0 ;
39988 PyObject * obj1 = 0 ;
39989 char * kwnames[] = {
39990 (char *) "self",(char *) "lines", NULL
39991 };
39992
39993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) SWIG_fail;
39994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39995 if (!SWIG_IsOK(res1)) {
39996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ScrollLines" "', expected argument " "1"" of type '" "wxWindow *""'");
39997 }
39998 arg1 = reinterpret_cast< wxWindow * >(argp1);
39999 ecode2 = SWIG_AsVal_int(obj1, &val2);
40000 if (!SWIG_IsOK(ecode2)) {
40001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_ScrollLines" "', expected argument " "2"" of type '" "int""'");
40002 }
40003 arg2 = static_cast< int >(val2);
40004 {
40005 PyThreadState* __tstate = wxPyBeginAllowThreads();
40006 result = (bool)(arg1)->ScrollLines(arg2);
40007 wxPyEndAllowThreads(__tstate);
40008 if (PyErr_Occurred()) SWIG_fail;
40009 }
40010 {
40011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40012 }
40013 return resultobj;
40014fail:
40015 return NULL;
40016}
40017
40018
40019SWIGINTERN PyObject *_wrap_Window_ScrollPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40020 PyObject *resultobj = 0;
40021 wxWindow *arg1 = (wxWindow *) 0 ;
40022 int arg2 ;
40023 bool result;
40024 void *argp1 = 0 ;
40025 int res1 = 0 ;
40026 int val2 ;
40027 int ecode2 = 0 ;
40028 PyObject * obj0 = 0 ;
40029 PyObject * obj1 = 0 ;
40030 char * kwnames[] = {
40031 (char *) "self",(char *) "pages", NULL
40032 };
40033
40034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) SWIG_fail;
40035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40036 if (!SWIG_IsOK(res1)) {
40037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ScrollPages" "', expected argument " "1"" of type '" "wxWindow *""'");
40038 }
40039 arg1 = reinterpret_cast< wxWindow * >(argp1);
40040 ecode2 = SWIG_AsVal_int(obj1, &val2);
40041 if (!SWIG_IsOK(ecode2)) {
40042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_ScrollPages" "', expected argument " "2"" of type '" "int""'");
40043 }
40044 arg2 = static_cast< int >(val2);
40045 {
40046 PyThreadState* __tstate = wxPyBeginAllowThreads();
40047 result = (bool)(arg1)->ScrollPages(arg2);
40048 wxPyEndAllowThreads(__tstate);
40049 if (PyErr_Occurred()) SWIG_fail;
40050 }
40051 {
40052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40053 }
40054 return resultobj;
40055fail:
40056 return NULL;
d55e5bfc
RD
40057}
40058
40059
1bd55598
RD
40060SWIGINTERN PyObject *_wrap_Window_LineUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40061 PyObject *resultobj = 0;
40062 wxWindow *arg1 = (wxWindow *) 0 ;
40063 bool result;
40064 void *argp1 = 0 ;
40065 int res1 = 0 ;
40066 PyObject *swig_obj[1] ;
40067
40068 if (!args) SWIG_fail;
40069 swig_obj[0] = args;
40070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40071 if (!SWIG_IsOK(res1)) {
40072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_LineUp" "', expected argument " "1"" of type '" "wxWindow *""'");
40073 }
40074 arg1 = reinterpret_cast< wxWindow * >(argp1);
40075 {
40076 PyThreadState* __tstate = wxPyBeginAllowThreads();
40077 result = (bool)(arg1)->LineUp();
40078 wxPyEndAllowThreads(__tstate);
40079 if (PyErr_Occurred()) SWIG_fail;
40080 }
40081 {
40082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40083 }
40084 return resultobj;
40085fail:
40086 return NULL;
d55e5bfc
RD
40087}
40088
40089
1bd55598
RD
40090SWIGINTERN PyObject *_wrap_Window_LineDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40091 PyObject *resultobj = 0;
40092 wxWindow *arg1 = (wxWindow *) 0 ;
40093 bool result;
40094 void *argp1 = 0 ;
40095 int res1 = 0 ;
40096 PyObject *swig_obj[1] ;
40097
40098 if (!args) SWIG_fail;
40099 swig_obj[0] = args;
40100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40101 if (!SWIG_IsOK(res1)) {
40102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_LineDown" "', expected argument " "1"" of type '" "wxWindow *""'");
40103 }
40104 arg1 = reinterpret_cast< wxWindow * >(argp1);
40105 {
40106 PyThreadState* __tstate = wxPyBeginAllowThreads();
40107 result = (bool)(arg1)->LineDown();
40108 wxPyEndAllowThreads(__tstate);
40109 if (PyErr_Occurred()) SWIG_fail;
40110 }
40111 {
40112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40113 }
40114 return resultobj;
40115fail:
40116 return NULL;
d55e5bfc
RD
40117}
40118
40119
1bd55598
RD
40120SWIGINTERN PyObject *_wrap_Window_PageUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40121 PyObject *resultobj = 0;
40122 wxWindow *arg1 = (wxWindow *) 0 ;
40123 bool result;
40124 void *argp1 = 0 ;
40125 int res1 = 0 ;
40126 PyObject *swig_obj[1] ;
40127
40128 if (!args) SWIG_fail;
40129 swig_obj[0] = args;
40130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40131 if (!SWIG_IsOK(res1)) {
40132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PageUp" "', expected argument " "1"" of type '" "wxWindow *""'");
40133 }
40134 arg1 = reinterpret_cast< wxWindow * >(argp1);
40135 {
40136 PyThreadState* __tstate = wxPyBeginAllowThreads();
40137 result = (bool)(arg1)->PageUp();
40138 wxPyEndAllowThreads(__tstate);
40139 if (PyErr_Occurred()) SWIG_fail;
40140 }
40141 {
40142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40143 }
40144 return resultobj;
40145fail:
40146 return NULL;
d55e5bfc
RD
40147}
40148
40149
1bd55598
RD
40150SWIGINTERN PyObject *_wrap_Window_PageDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40151 PyObject *resultobj = 0;
40152 wxWindow *arg1 = (wxWindow *) 0 ;
40153 bool result;
40154 void *argp1 = 0 ;
40155 int res1 = 0 ;
40156 PyObject *swig_obj[1] ;
40157
40158 if (!args) SWIG_fail;
40159 swig_obj[0] = args;
40160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40161 if (!SWIG_IsOK(res1)) {
40162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PageDown" "', expected argument " "1"" of type '" "wxWindow *""'");
40163 }
40164 arg1 = reinterpret_cast< wxWindow * >(argp1);
40165 {
40166 PyThreadState* __tstate = wxPyBeginAllowThreads();
40167 result = (bool)(arg1)->PageDown();
40168 wxPyEndAllowThreads(__tstate);
40169 if (PyErr_Occurred()) SWIG_fail;
40170 }
40171 {
40172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40173 }
40174 return resultobj;
40175fail:
40176 return NULL;
40177}
40178
40179
40180SWIGINTERN PyObject *_wrap_Window_SetHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40181 PyObject *resultobj = 0;
40182 wxWindow *arg1 = (wxWindow *) 0 ;
40183 wxString *arg2 = 0 ;
40184 void *argp1 = 0 ;
40185 int res1 = 0 ;
40186 bool temp2 = false ;
40187 PyObject * obj0 = 0 ;
40188 PyObject * obj1 = 0 ;
40189 char * kwnames[] = {
40190 (char *) "self",(char *) "text", NULL
40191 };
40192
40193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
40194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40195 if (!SWIG_IsOK(res1)) {
40196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetHelpText" "', expected argument " "1"" of type '" "wxWindow *""'");
40197 }
40198 arg1 = reinterpret_cast< wxWindow * >(argp1);
40199 {
40200 arg2 = wxString_in_helper(obj1);
40201 if (arg2 == NULL) SWIG_fail;
40202 temp2 = true;
40203 }
40204 {
40205 PyThreadState* __tstate = wxPyBeginAllowThreads();
40206 (arg1)->SetHelpText((wxString const &)*arg2);
40207 wxPyEndAllowThreads(__tstate);
40208 if (PyErr_Occurred()) SWIG_fail;
40209 }
40210 resultobj = SWIG_Py_Void();
40211 {
40212 if (temp2)
40213 delete arg2;
40214 }
40215 return resultobj;
40216fail:
40217 {
40218 if (temp2)
40219 delete arg2;
40220 }
40221 return NULL;
d55e5bfc
RD
40222}
40223
40224
1bd55598
RD
40225SWIGINTERN PyObject *_wrap_Window_SetHelpTextForId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40226 PyObject *resultobj = 0;
40227 wxWindow *arg1 = (wxWindow *) 0 ;
40228 wxString *arg2 = 0 ;
40229 void *argp1 = 0 ;
40230 int res1 = 0 ;
40231 bool temp2 = false ;
40232 PyObject * obj0 = 0 ;
40233 PyObject * obj1 = 0 ;
40234 char * kwnames[] = {
40235 (char *) "self",(char *) "text", NULL
40236 };
40237
40238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) SWIG_fail;
40239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40240 if (!SWIG_IsOK(res1)) {
40241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetHelpTextForId" "', expected argument " "1"" of type '" "wxWindow *""'");
40242 }
40243 arg1 = reinterpret_cast< wxWindow * >(argp1);
40244 {
40245 arg2 = wxString_in_helper(obj1);
40246 if (arg2 == NULL) SWIG_fail;
40247 temp2 = true;
40248 }
40249 {
40250 PyThreadState* __tstate = wxPyBeginAllowThreads();
40251 (arg1)->SetHelpTextForId((wxString const &)*arg2);
40252 wxPyEndAllowThreads(__tstate);
40253 if (PyErr_Occurred()) SWIG_fail;
40254 }
40255 resultobj = SWIG_Py_Void();
40256 {
40257 if (temp2)
40258 delete arg2;
40259 }
40260 return resultobj;
40261fail:
40262 {
40263 if (temp2)
40264 delete arg2;
40265 }
40266 return NULL;
d55e5bfc
RD
40267}
40268
40269
b850e7f3
RD
40270SWIGINTERN PyObject *_wrap_Window_GetHelpTextAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40271 PyObject *resultobj = 0;
40272 wxWindow *arg1 = (wxWindow *) 0 ;
40273 wxPoint *arg2 = 0 ;
40274 wxHelpEvent::Origin arg3 ;
40275 wxString result;
40276 void *argp1 = 0 ;
40277 int res1 = 0 ;
40278 wxPoint temp2 ;
40279 void *argp3 ;
40280 int res3 = 0 ;
40281 PyObject * obj0 = 0 ;
40282 PyObject * obj1 = 0 ;
40283 PyObject * obj2 = 0 ;
40284 char * kwnames[] = {
40285 (char *) "self",(char *) "pt",(char *) "origin", NULL
40286 };
40287
40288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_GetHelpTextAtPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40290 if (!SWIG_IsOK(res1)) {
40291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "1"" of type '" "wxWindow const *""'");
40292 }
40293 arg1 = reinterpret_cast< wxWindow * >(argp1);
40294 {
40295 arg2 = &temp2;
40296 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40297 }
40298 {
40299 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxHelpEvent__Origin, 0 | 0);
40300 if (!SWIG_IsOK(res3)) {
40301 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "3"" of type '" "wxHelpEvent::Origin""'");
40302 }
40303 if (!argp3) {
40304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "3"" of type '" "wxHelpEvent::Origin""'");
40305 } else {
40306 wxHelpEvent::Origin * temp = reinterpret_cast< wxHelpEvent::Origin * >(argp3);
40307 arg3 = *temp;
40308 if (SWIG_IsNewObj(res3)) delete temp;
40309 }
40310 }
40311 {
40312 PyThreadState* __tstate = wxPyBeginAllowThreads();
40313 result = ((wxWindow const *)arg1)->GetHelpTextAtPoint((wxPoint const &)*arg2,arg3);
40314 wxPyEndAllowThreads(__tstate);
40315 if (PyErr_Occurred()) SWIG_fail;
40316 }
40317 {
40318#if wxUSE_UNICODE
40319 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40320#else
40321 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40322#endif
40323 }
40324 return resultobj;
40325fail:
40326 return NULL;
40327}
40328
40329
1bd55598
RD
40330SWIGINTERN PyObject *_wrap_Window_GetHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40331 PyObject *resultobj = 0;
40332 wxWindow *arg1 = (wxWindow *) 0 ;
40333 wxString result;
40334 void *argp1 = 0 ;
40335 int res1 = 0 ;
40336 PyObject *swig_obj[1] ;
40337
40338 if (!args) SWIG_fail;
40339 swig_obj[0] = args;
40340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40341 if (!SWIG_IsOK(res1)) {
40342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetHelpText" "', expected argument " "1"" of type '" "wxWindow const *""'");
40343 }
40344 arg1 = reinterpret_cast< wxWindow * >(argp1);
40345 {
40346 PyThreadState* __tstate = wxPyBeginAllowThreads();
40347 result = ((wxWindow const *)arg1)->GetHelpText();
40348 wxPyEndAllowThreads(__tstate);
40349 if (PyErr_Occurred()) SWIG_fail;
40350 }
40351 {
40352#if wxUSE_UNICODE
40353 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40354#else
40355 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40356#endif
40357 }
40358 return resultobj;
40359fail:
40360 return NULL;
40361}
40362
40363
40364SWIGINTERN PyObject *_wrap_Window_SetToolTipString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40365 PyObject *resultobj = 0;
40366 wxWindow *arg1 = (wxWindow *) 0 ;
40367 wxString *arg2 = 0 ;
40368 void *argp1 = 0 ;
40369 int res1 = 0 ;
40370 bool temp2 = false ;
40371 PyObject * obj0 = 0 ;
40372 PyObject * obj1 = 0 ;
40373 char * kwnames[] = {
40374 (char *) "self",(char *) "tip", NULL
40375 };
40376
40377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) SWIG_fail;
40378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40379 if (!SWIG_IsOK(res1)) {
40380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetToolTipString" "', expected argument " "1"" of type '" "wxWindow *""'");
40381 }
40382 arg1 = reinterpret_cast< wxWindow * >(argp1);
40383 {
40384 arg2 = wxString_in_helper(obj1);
40385 if (arg2 == NULL) SWIG_fail;
40386 temp2 = true;
40387 }
40388 {
40389 PyThreadState* __tstate = wxPyBeginAllowThreads();
40390 (arg1)->SetToolTip((wxString const &)*arg2);
40391 wxPyEndAllowThreads(__tstate);
40392 if (PyErr_Occurred()) SWIG_fail;
40393 }
40394 resultobj = SWIG_Py_Void();
40395 {
40396 if (temp2)
40397 delete arg2;
40398 }
40399 return resultobj;
40400fail:
40401 {
40402 if (temp2)
40403 delete arg2;
40404 }
40405 return NULL;
d55e5bfc
RD
40406}
40407
40408
1bd55598
RD
40409SWIGINTERN PyObject *_wrap_Window_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40410 PyObject *resultobj = 0;
40411 wxWindow *arg1 = (wxWindow *) 0 ;
40412 wxToolTip *arg2 = (wxToolTip *) 0 ;
40413 void *argp1 = 0 ;
40414 int res1 = 0 ;
40415 int res2 = 0 ;
40416 PyObject * obj0 = 0 ;
40417 PyObject * obj1 = 0 ;
40418 char * kwnames[] = {
40419 (char *) "self",(char *) "tip", NULL
40420 };
40421
40422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
40423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40424 if (!SWIG_IsOK(res1)) {
40425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetToolTip" "', expected argument " "1"" of type '" "wxWindow *""'");
40426 }
40427 arg1 = reinterpret_cast< wxWindow * >(argp1);
40428 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxToolTip, SWIG_POINTER_DISOWN | 0 );
40429 if (!SWIG_IsOK(res2)) {
40430 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetToolTip" "', expected argument " "2"" of type '" "wxToolTip *""'");
40431 }
40432 {
40433 PyThreadState* __tstate = wxPyBeginAllowThreads();
40434 (arg1)->SetToolTip(arg2);
40435 wxPyEndAllowThreads(__tstate);
40436 if (PyErr_Occurred()) SWIG_fail;
40437 }
40438 resultobj = SWIG_Py_Void();
40439 return resultobj;
40440fail:
40441 return NULL;
d55e5bfc
RD
40442}
40443
40444
1bd55598
RD
40445SWIGINTERN PyObject *_wrap_Window_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40446 PyObject *resultobj = 0;
40447 wxWindow *arg1 = (wxWindow *) 0 ;
40448 wxToolTip *result = 0 ;
40449 void *argp1 = 0 ;
40450 int res1 = 0 ;
40451 PyObject *swig_obj[1] ;
40452
40453 if (!args) SWIG_fail;
40454 swig_obj[0] = args;
40455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40456 if (!SWIG_IsOK(res1)) {
40457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetToolTip" "', expected argument " "1"" of type '" "wxWindow const *""'");
40458 }
40459 arg1 = reinterpret_cast< wxWindow * >(argp1);
40460 {
40461 PyThreadState* __tstate = wxPyBeginAllowThreads();
40462 result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip();
40463 wxPyEndAllowThreads(__tstate);
40464 if (PyErr_Occurred()) SWIG_fail;
40465 }
40466 {
40467 resultobj = wxPyMake_wxObject(result, (bool)0);
40468 }
40469 return resultobj;
40470fail:
40471 return NULL;
40472}
40473
40474
40475SWIGINTERN PyObject *_wrap_Window_SetDropTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40476 PyObject *resultobj = 0;
40477 wxWindow *arg1 = (wxWindow *) 0 ;
40478 wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ;
40479 void *argp1 = 0 ;
40480 int res1 = 0 ;
40481 int res2 = 0 ;
40482 PyObject * obj0 = 0 ;
40483 PyObject * obj1 = 0 ;
40484 char * kwnames[] = {
40485 (char *) "self",(char *) "dropTarget", NULL
40486 };
40487
40488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) SWIG_fail;
40489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40490 if (!SWIG_IsOK(res1)) {
40491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetDropTarget" "', expected argument " "1"" of type '" "wxWindow *""'");
40492 }
40493 arg1 = reinterpret_cast< wxWindow * >(argp1);
40494 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_DISOWN | 0 );
40495 if (!SWIG_IsOK(res2)) {
40496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetDropTarget" "', expected argument " "2"" of type '" "wxPyDropTarget *""'");
40497 }
40498 {
40499 PyThreadState* __tstate = wxPyBeginAllowThreads();
40500 (arg1)->SetDropTarget(arg2);
40501 wxPyEndAllowThreads(__tstate);
40502 if (PyErr_Occurred()) SWIG_fail;
40503 }
40504 resultobj = SWIG_Py_Void();
40505 return resultobj;
40506fail:
40507 return NULL;
d55e5bfc
RD
40508}
40509
40510
1bd55598
RD
40511SWIGINTERN PyObject *_wrap_Window_GetDropTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40512 PyObject *resultobj = 0;
40513 wxWindow *arg1 = (wxWindow *) 0 ;
40514 wxPyDropTarget *result = 0 ;
40515 void *argp1 = 0 ;
40516 int res1 = 0 ;
40517 PyObject *swig_obj[1] ;
40518
40519 if (!args) SWIG_fail;
40520 swig_obj[0] = args;
40521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40522 if (!SWIG_IsOK(res1)) {
40523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetDropTarget" "', expected argument " "1"" of type '" "wxWindow const *""'");
40524 }
40525 arg1 = reinterpret_cast< wxWindow * >(argp1);
40526 {
40527 PyThreadState* __tstate = wxPyBeginAllowThreads();
40528 result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget();
40529 wxPyEndAllowThreads(__tstate);
40530 if (PyErr_Occurred()) SWIG_fail;
40531 }
40532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
40533 return resultobj;
40534fail:
40535 return NULL;
40536}
40537
40538
40539SWIGINTERN PyObject *_wrap_Window_DragAcceptFiles(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40540 PyObject *resultobj = 0;
40541 wxWindow *arg1 = (wxWindow *) 0 ;
40542 bool arg2 ;
40543 void *argp1 = 0 ;
40544 int res1 = 0 ;
40545 bool val2 ;
40546 int ecode2 = 0 ;
40547 PyObject * obj0 = 0 ;
40548 PyObject * obj1 = 0 ;
40549 char * kwnames[] = {
40550 (char *) "self",(char *) "accept", NULL
40551 };
40552
40553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) SWIG_fail;
40554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40555 if (!SWIG_IsOK(res1)) {
40556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_DragAcceptFiles" "', expected argument " "1"" of type '" "wxWindow *""'");
40557 }
40558 arg1 = reinterpret_cast< wxWindow * >(argp1);
40559 ecode2 = SWIG_AsVal_bool(obj1, &val2);
40560 if (!SWIG_IsOK(ecode2)) {
40561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_DragAcceptFiles" "', expected argument " "2"" of type '" "bool""'");
40562 }
40563 arg2 = static_cast< bool >(val2);
40564 {
40565 PyThreadState* __tstate = wxPyBeginAllowThreads();
40566 wxWindow_DragAcceptFiles(arg1,arg2);
40567 wxPyEndAllowThreads(__tstate);
40568 if (PyErr_Occurred()) SWIG_fail;
40569 }
40570 resultobj = SWIG_Py_Void();
40571 return resultobj;
40572fail:
40573 return NULL;
40574}
40575
40576
40577SWIGINTERN PyObject *_wrap_Window_SetConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40578 PyObject *resultobj = 0;
40579 wxWindow *arg1 = (wxWindow *) 0 ;
40580 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
40581 void *argp1 = 0 ;
40582 int res1 = 0 ;
40583 int res2 = 0 ;
40584 PyObject * obj0 = 0 ;
40585 PyObject * obj1 = 0 ;
40586 char * kwnames[] = {
40587 (char *) "self",(char *) "constraints", NULL
40588 };
40589
40590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) SWIG_fail;
40591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40592 if (!SWIG_IsOK(res1)) {
40593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetConstraints" "', expected argument " "1"" of type '" "wxWindow *""'");
40594 }
40595 arg1 = reinterpret_cast< wxWindow * >(argp1);
40596 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_DISOWN | 0 );
40597 if (!SWIG_IsOK(res2)) {
40598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetConstraints" "', expected argument " "2"" of type '" "wxLayoutConstraints *""'");
40599 }
40600 {
40601 PyThreadState* __tstate = wxPyBeginAllowThreads();
40602 (arg1)->SetConstraints(arg2);
40603 wxPyEndAllowThreads(__tstate);
40604 if (PyErr_Occurred()) SWIG_fail;
40605 }
40606 resultobj = SWIG_Py_Void();
40607 return resultobj;
40608fail:
40609 return NULL;
53aa7709
RD
40610}
40611
40612
1bd55598
RD
40613SWIGINTERN PyObject *_wrap_Window_GetConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40614 PyObject *resultobj = 0;
40615 wxWindow *arg1 = (wxWindow *) 0 ;
40616 wxLayoutConstraints *result = 0 ;
40617 void *argp1 = 0 ;
40618 int res1 = 0 ;
40619 PyObject *swig_obj[1] ;
40620
40621 if (!args) SWIG_fail;
40622 swig_obj[0] = args;
40623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40624 if (!SWIG_IsOK(res1)) {
40625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetConstraints" "', expected argument " "1"" of type '" "wxWindow const *""'");
40626 }
40627 arg1 = reinterpret_cast< wxWindow * >(argp1);
40628 {
40629 PyThreadState* __tstate = wxPyBeginAllowThreads();
40630 result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints();
40631 wxPyEndAllowThreads(__tstate);
40632 if (PyErr_Occurred()) SWIG_fail;
40633 }
40634 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
40635 return resultobj;
40636fail:
40637 return NULL;
40638}
40639
40640
40641SWIGINTERN PyObject *_wrap_Window_SetAutoLayout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40642 PyObject *resultobj = 0;
40643 wxWindow *arg1 = (wxWindow *) 0 ;
40644 bool arg2 ;
40645 void *argp1 = 0 ;
40646 int res1 = 0 ;
40647 bool val2 ;
40648 int ecode2 = 0 ;
40649 PyObject * obj0 = 0 ;
40650 PyObject * obj1 = 0 ;
40651 char * kwnames[] = {
40652 (char *) "self",(char *) "autoLayout", NULL
40653 };
40654
40655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) SWIG_fail;
40656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40657 if (!SWIG_IsOK(res1)) {
40658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetAutoLayout" "', expected argument " "1"" of type '" "wxWindow *""'");
40659 }
40660 arg1 = reinterpret_cast< wxWindow * >(argp1);
40661 ecode2 = SWIG_AsVal_bool(obj1, &val2);
40662 if (!SWIG_IsOK(ecode2)) {
40663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetAutoLayout" "', expected argument " "2"" of type '" "bool""'");
40664 }
40665 arg2 = static_cast< bool >(val2);
40666 {
40667 PyThreadState* __tstate = wxPyBeginAllowThreads();
40668 (arg1)->SetAutoLayout(arg2);
40669 wxPyEndAllowThreads(__tstate);
40670 if (PyErr_Occurred()) SWIG_fail;
40671 }
40672 resultobj = SWIG_Py_Void();
40673 return resultobj;
40674fail:
40675 return NULL;
53aa7709
RD
40676}
40677
40678
1bd55598
RD
40679SWIGINTERN PyObject *_wrap_Window_GetAutoLayout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40680 PyObject *resultobj = 0;
40681 wxWindow *arg1 = (wxWindow *) 0 ;
40682 bool result;
40683 void *argp1 = 0 ;
40684 int res1 = 0 ;
40685 PyObject *swig_obj[1] ;
40686
40687 if (!args) SWIG_fail;
40688 swig_obj[0] = args;
40689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40690 if (!SWIG_IsOK(res1)) {
40691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetAutoLayout" "', expected argument " "1"" of type '" "wxWindow const *""'");
40692 }
40693 arg1 = reinterpret_cast< wxWindow * >(argp1);
40694 {
40695 PyThreadState* __tstate = wxPyBeginAllowThreads();
40696 result = (bool)((wxWindow const *)arg1)->GetAutoLayout();
40697 wxPyEndAllowThreads(__tstate);
40698 if (PyErr_Occurred()) SWIG_fail;
40699 }
40700 {
40701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40702 }
40703 return resultobj;
40704fail:
40705 return NULL;
53aa7709
RD
40706}
40707
40708
1bd55598
RD
40709SWIGINTERN PyObject *_wrap_Window_Layout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40710 PyObject *resultobj = 0;
40711 wxWindow *arg1 = (wxWindow *) 0 ;
40712 bool result;
40713 void *argp1 = 0 ;
40714 int res1 = 0 ;
40715 PyObject *swig_obj[1] ;
40716
40717 if (!args) SWIG_fail;
40718 swig_obj[0] = args;
40719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40720 if (!SWIG_IsOK(res1)) {
40721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Layout" "', expected argument " "1"" of type '" "wxWindow *""'");
40722 }
40723 arg1 = reinterpret_cast< wxWindow * >(argp1);
40724 {
40725 PyThreadState* __tstate = wxPyBeginAllowThreads();
40726 result = (bool)(arg1)->Layout();
40727 wxPyEndAllowThreads(__tstate);
40728 if (PyErr_Occurred()) SWIG_fail;
40729 }
40730 {
40731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40732 }
40733 return resultobj;
40734fail:
40735 return NULL;
40736}
40737
40738
40739SWIGINTERN PyObject *_wrap_Window_SetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40740 PyObject *resultobj = 0;
40741 wxWindow *arg1 = (wxWindow *) 0 ;
40742 wxSizer *arg2 = (wxSizer *) 0 ;
40743 bool arg3 = (bool) true ;
40744 void *argp1 = 0 ;
40745 int res1 = 0 ;
40746 int res2 = 0 ;
40747 bool val3 ;
40748 int ecode3 = 0 ;
40749 PyObject * obj0 = 0 ;
40750 PyObject * obj1 = 0 ;
40751 PyObject * obj2 = 0 ;
40752 char * kwnames[] = {
40753 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
40754 };
40755
40756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40758 if (!SWIG_IsOK(res1)) {
40759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSizer" "', expected argument " "1"" of type '" "wxWindow *""'");
40760 }
40761 arg1 = reinterpret_cast< wxWindow * >(argp1);
40762 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
40763 if (!SWIG_IsOK(res2)) {
40764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetSizer" "', expected argument " "2"" of type '" "wxSizer *""'");
40765 }
40766 if (obj2) {
40767 ecode3 = SWIG_AsVal_bool(obj2, &val3);
40768 if (!SWIG_IsOK(ecode3)) {
40769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetSizer" "', expected argument " "3"" of type '" "bool""'");
40770 }
40771 arg3 = static_cast< bool >(val3);
40772 }
40773 {
40774 PyThreadState* __tstate = wxPyBeginAllowThreads();
40775 (arg1)->SetSizer(arg2,arg3);
40776 wxPyEndAllowThreads(__tstate);
40777 if (PyErr_Occurred()) SWIG_fail;
40778 }
40779 resultobj = SWIG_Py_Void();
40780 return resultobj;
40781fail:
40782 return NULL;
40783}
40784
40785
40786SWIGINTERN PyObject *_wrap_Window_SetSizerAndFit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40787 PyObject *resultobj = 0;
40788 wxWindow *arg1 = (wxWindow *) 0 ;
40789 wxSizer *arg2 = (wxSizer *) 0 ;
40790 bool arg3 = (bool) true ;
40791 void *argp1 = 0 ;
40792 int res1 = 0 ;
40793 int res2 = 0 ;
40794 bool val3 ;
40795 int ecode3 = 0 ;
40796 PyObject * obj0 = 0 ;
40797 PyObject * obj1 = 0 ;
40798 PyObject * obj2 = 0 ;
40799 char * kwnames[] = {
40800 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
40801 };
40802
40803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40805 if (!SWIG_IsOK(res1)) {
40806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSizerAndFit" "', expected argument " "1"" of type '" "wxWindow *""'");
40807 }
40808 arg1 = reinterpret_cast< wxWindow * >(argp1);
40809 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
40810 if (!SWIG_IsOK(res2)) {
40811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetSizerAndFit" "', expected argument " "2"" of type '" "wxSizer *""'");
40812 }
40813 if (obj2) {
40814 ecode3 = SWIG_AsVal_bool(obj2, &val3);
40815 if (!SWIG_IsOK(ecode3)) {
40816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetSizerAndFit" "', expected argument " "3"" of type '" "bool""'");
40817 }
40818 arg3 = static_cast< bool >(val3);
40819 }
40820 {
40821 PyThreadState* __tstate = wxPyBeginAllowThreads();
40822 (arg1)->SetSizerAndFit(arg2,arg3);
40823 wxPyEndAllowThreads(__tstate);
40824 if (PyErr_Occurred()) SWIG_fail;
40825 }
40826 resultobj = SWIG_Py_Void();
40827 return resultobj;
40828fail:
40829 return NULL;
d55e5bfc
RD
40830}
40831
40832
1bd55598
RD
40833SWIGINTERN PyObject *_wrap_Window_GetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40834 PyObject *resultobj = 0;
40835 wxWindow *arg1 = (wxWindow *) 0 ;
40836 wxSizer *result = 0 ;
40837 void *argp1 = 0 ;
40838 int res1 = 0 ;
40839 PyObject *swig_obj[1] ;
40840
40841 if (!args) SWIG_fail;
40842 swig_obj[0] = args;
40843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40844 if (!SWIG_IsOK(res1)) {
40845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetSizer" "', expected argument " "1"" of type '" "wxWindow const *""'");
40846 }
40847 arg1 = reinterpret_cast< wxWindow * >(argp1);
40848 {
40849 PyThreadState* __tstate = wxPyBeginAllowThreads();
40850 result = (wxSizer *)((wxWindow const *)arg1)->GetSizer();
40851 wxPyEndAllowThreads(__tstate);
40852 if (PyErr_Occurred()) SWIG_fail;
40853 }
40854 {
40855 resultobj = wxPyMake_wxObject(result, (bool)0);
40856 }
40857 return resultobj;
40858fail:
40859 return NULL;
40860}
40861
40862
40863SWIGINTERN PyObject *_wrap_Window_SetContainingSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40864 PyObject *resultobj = 0;
40865 wxWindow *arg1 = (wxWindow *) 0 ;
40866 wxSizer *arg2 = (wxSizer *) 0 ;
40867 void *argp1 = 0 ;
40868 int res1 = 0 ;
40869 void *argp2 = 0 ;
40870 int res2 = 0 ;
40871 PyObject * obj0 = 0 ;
40872 PyObject * obj1 = 0 ;
40873 char * kwnames[] = {
40874 (char *) "self",(char *) "sizer", NULL
40875 };
40876
40877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) SWIG_fail;
40878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40879 if (!SWIG_IsOK(res1)) {
40880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetContainingSizer" "', expected argument " "1"" of type '" "wxWindow *""'");
40881 }
40882 arg1 = reinterpret_cast< wxWindow * >(argp1);
40883 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
40884 if (!SWIG_IsOK(res2)) {
40885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetContainingSizer" "', expected argument " "2"" of type '" "wxSizer *""'");
40886 }
40887 arg2 = reinterpret_cast< wxSizer * >(argp2);
40888 {
40889 PyThreadState* __tstate = wxPyBeginAllowThreads();
40890 (arg1)->SetContainingSizer(arg2);
40891 wxPyEndAllowThreads(__tstate);
40892 if (PyErr_Occurred()) SWIG_fail;
40893 }
40894 resultobj = SWIG_Py_Void();
40895 return resultobj;
40896fail:
40897 return NULL;
d55e5bfc
RD
40898}
40899
40900
1bd55598
RD
40901SWIGINTERN PyObject *_wrap_Window_GetContainingSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40902 PyObject *resultobj = 0;
40903 wxWindow *arg1 = (wxWindow *) 0 ;
40904 wxSizer *result = 0 ;
40905 void *argp1 = 0 ;
40906 int res1 = 0 ;
40907 PyObject *swig_obj[1] ;
40908
40909 if (!args) SWIG_fail;
40910 swig_obj[0] = args;
40911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40912 if (!SWIG_IsOK(res1)) {
40913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetContainingSizer" "', expected argument " "1"" of type '" "wxWindow const *""'");
40914 }
40915 arg1 = reinterpret_cast< wxWindow * >(argp1);
40916 {
40917 PyThreadState* __tstate = wxPyBeginAllowThreads();
40918 result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer();
40919 wxPyEndAllowThreads(__tstate);
40920 if (PyErr_Occurred()) SWIG_fail;
40921 }
40922 {
40923 resultobj = wxPyMake_wxObject(result, (bool)0);
40924 }
40925 return resultobj;
40926fail:
40927 return NULL;
d55e5bfc
RD
40928}
40929
40930
1bd55598
RD
40931SWIGINTERN PyObject *_wrap_Window_InheritAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40932 PyObject *resultobj = 0;
40933 wxWindow *arg1 = (wxWindow *) 0 ;
40934 void *argp1 = 0 ;
40935 int res1 = 0 ;
40936 PyObject *swig_obj[1] ;
40937
40938 if (!args) SWIG_fail;
40939 swig_obj[0] = args;
40940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40941 if (!SWIG_IsOK(res1)) {
40942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_InheritAttributes" "', expected argument " "1"" of type '" "wxWindow *""'");
40943 }
40944 arg1 = reinterpret_cast< wxWindow * >(argp1);
40945 {
40946 PyThreadState* __tstate = wxPyBeginAllowThreads();
40947 (arg1)->InheritAttributes();
40948 wxPyEndAllowThreads(__tstate);
40949 if (PyErr_Occurred()) SWIG_fail;
40950 }
40951 resultobj = SWIG_Py_Void();
40952 return resultobj;
40953fail:
40954 return NULL;
d55e5bfc
RD
40955}
40956
40957
1bd55598
RD
40958SWIGINTERN PyObject *_wrap_Window_ShouldInheritColours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40959 PyObject *resultobj = 0;
40960 wxWindow *arg1 = (wxWindow *) 0 ;
40961 bool result;
40962 void *argp1 = 0 ;
40963 int res1 = 0 ;
40964 PyObject *swig_obj[1] ;
40965
40966 if (!args) SWIG_fail;
40967 swig_obj[0] = args;
40968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40969 if (!SWIG_IsOK(res1)) {
40970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ShouldInheritColours" "', expected argument " "1"" of type '" "wxWindow const *""'");
40971 }
40972 arg1 = reinterpret_cast< wxWindow * >(argp1);
40973 {
40974 PyThreadState* __tstate = wxPyBeginAllowThreads();
40975 result = (bool)((wxWindow const *)arg1)->ShouldInheritColours();
40976 wxPyEndAllowThreads(__tstate);
40977 if (PyErr_Occurred()) SWIG_fail;
40978 }
40979 {
40980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40981 }
40982 return resultobj;
40983fail:
40984 return NULL;
d55e5bfc
RD
40985}
40986
40987
fc46b7f3
RD
40988SWIGINTERN PyObject *_wrap_Window_CanSetTransparent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40989 PyObject *resultobj = 0;
40990 wxWindow *arg1 = (wxWindow *) 0 ;
40991 bool result;
40992 void *argp1 = 0 ;
40993 int res1 = 0 ;
40994 PyObject *swig_obj[1] ;
40995
40996 if (!args) SWIG_fail;
40997 swig_obj[0] = args;
40998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40999 if (!SWIG_IsOK(res1)) {
41000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_CanSetTransparent" "', expected argument " "1"" of type '" "wxWindow *""'");
41001 }
41002 arg1 = reinterpret_cast< wxWindow * >(argp1);
41003 {
41004 PyThreadState* __tstate = wxPyBeginAllowThreads();
41005 result = (bool)(arg1)->CanSetTransparent();
41006 wxPyEndAllowThreads(__tstate);
41007 if (PyErr_Occurred()) SWIG_fail;
41008 }
41009 {
41010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41011 }
41012 return resultobj;
41013fail:
41014 return NULL;
41015}
41016
41017
41018SWIGINTERN PyObject *_wrap_Window_SetTransparent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41019 PyObject *resultobj = 0;
41020 wxWindow *arg1 = (wxWindow *) 0 ;
41021 byte arg2 ;
41022 bool result;
41023 void *argp1 = 0 ;
41024 int res1 = 0 ;
41025 unsigned char val2 ;
41026 int ecode2 = 0 ;
41027 PyObject * obj0 = 0 ;
41028 PyObject * obj1 = 0 ;
41029 char * kwnames[] = {
41030 (char *) "self",(char *) "alpha", NULL
41031 };
41032
41033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTransparent",kwnames,&obj0,&obj1)) SWIG_fail;
41034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41035 if (!SWIG_IsOK(res1)) {
41036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetTransparent" "', expected argument " "1"" of type '" "wxWindow *""'");
41037 }
41038 arg1 = reinterpret_cast< wxWindow * >(argp1);
41039 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
41040 if (!SWIG_IsOK(ecode2)) {
41041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetTransparent" "', expected argument " "2"" of type '" "byte""'");
41042 }
41043 arg2 = static_cast< byte >(val2);
41044 {
41045 PyThreadState* __tstate = wxPyBeginAllowThreads();
41046 result = (bool)(arg1)->SetTransparent(arg2);
41047 wxPyEndAllowThreads(__tstate);
41048 if (PyErr_Occurred()) SWIG_fail;
41049 }
41050 {
41051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41052 }
41053 return resultobj;
41054fail:
41055 return NULL;
41056}
41057
41058
1bd55598
RD
41059SWIGINTERN PyObject *Window_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41060 PyObject *obj;
41061 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41062 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindow, SWIG_NewClientData(obj));
41063 return SWIG_Py_Void();
d55e5bfc
RD
41064}
41065
1bd55598
RD
41066SWIGINTERN PyObject *Window_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41067 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41068}
41069
1bd55598
RD
41070SWIGINTERN PyObject *_wrap_FindWindowById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41071 PyObject *resultobj = 0;
41072 long arg1 ;
41073 wxWindow *arg2 = (wxWindow *) NULL ;
41074 wxWindow *result = 0 ;
41075 long val1 ;
41076 int ecode1 = 0 ;
41077 void *argp2 = 0 ;
41078 int res2 = 0 ;
41079 PyObject * obj0 = 0 ;
41080 PyObject * obj1 = 0 ;
41081 char * kwnames[] = {
41082 (char *) "id",(char *) "parent", NULL
41083 };
41084
41085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) SWIG_fail;
41086 ecode1 = SWIG_AsVal_long(obj0, &val1);
41087 if (!SWIG_IsOK(ecode1)) {
41088 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FindWindowById" "', expected argument " "1"" of type '" "long""'");
41089 }
41090 arg1 = static_cast< long >(val1);
41091 if (obj1) {
41092 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41093 if (!SWIG_IsOK(res2)) {
41094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindWindowById" "', expected argument " "2"" of type '" "wxWindow const *""'");
d55e5bfc 41095 }
1bd55598
RD
41096 arg2 = reinterpret_cast< wxWindow * >(argp2);
41097 }
41098 {
41099 if (!wxPyCheckForApp()) SWIG_fail;
41100 PyThreadState* __tstate = wxPyBeginAllowThreads();
41101 result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2);
41102 wxPyEndAllowThreads(__tstate);
41103 if (PyErr_Occurred()) SWIG_fail;
41104 }
41105 {
41106 resultobj = wxPyMake_wxObject(result, 0);
41107 }
41108 return resultobj;
41109fail:
41110 return NULL;
41111}
41112
41113
41114SWIGINTERN PyObject *_wrap_FindWindowByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41115 PyObject *resultobj = 0;
41116 wxString *arg1 = 0 ;
41117 wxWindow *arg2 = (wxWindow *) NULL ;
41118 wxWindow *result = 0 ;
41119 bool temp1 = false ;
41120 void *argp2 = 0 ;
41121 int res2 = 0 ;
41122 PyObject * obj0 = 0 ;
41123 PyObject * obj1 = 0 ;
41124 char * kwnames[] = {
41125 (char *) "name",(char *) "parent", NULL
41126 };
41127
41128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) SWIG_fail;
41129 {
41130 arg1 = wxString_in_helper(obj0);
41131 if (arg1 == NULL) SWIG_fail;
41132 temp1 = true;
41133 }
41134 if (obj1) {
41135 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41136 if (!SWIG_IsOK(res2)) {
41137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindWindowByName" "', expected argument " "2"" of type '" "wxWindow const *""'");
d55e5bfc 41138 }
1bd55598
RD
41139 arg2 = reinterpret_cast< wxWindow * >(argp2);
41140 }
41141 {
41142 if (!wxPyCheckForApp()) SWIG_fail;
41143 PyThreadState* __tstate = wxPyBeginAllowThreads();
41144 result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2);
41145 wxPyEndAllowThreads(__tstate);
41146 if (PyErr_Occurred()) SWIG_fail;
41147 }
41148 {
41149 resultobj = wxPyMake_wxObject(result, 0);
41150 }
41151 {
41152 if (temp1)
41153 delete arg1;
41154 }
41155 return resultobj;
41156fail:
41157 {
41158 if (temp1)
41159 delete arg1;
41160 }
41161 return NULL;
41162}
41163
41164
41165SWIGINTERN PyObject *_wrap_FindWindowByLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41166 PyObject *resultobj = 0;
41167 wxString *arg1 = 0 ;
41168 wxWindow *arg2 = (wxWindow *) NULL ;
41169 wxWindow *result = 0 ;
41170 bool temp1 = false ;
41171 void *argp2 = 0 ;
41172 int res2 = 0 ;
41173 PyObject * obj0 = 0 ;
41174 PyObject * obj1 = 0 ;
41175 char * kwnames[] = {
41176 (char *) "label",(char *) "parent", NULL
41177 };
41178
41179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) SWIG_fail;
41180 {
41181 arg1 = wxString_in_helper(obj0);
41182 if (arg1 == NULL) SWIG_fail;
41183 temp1 = true;
41184 }
41185 if (obj1) {
41186 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41187 if (!SWIG_IsOK(res2)) {
41188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindWindowByLabel" "', expected argument " "2"" of type '" "wxWindow const *""'");
41189 }
41190 arg2 = reinterpret_cast< wxWindow * >(argp2);
41191 }
41192 {
41193 if (!wxPyCheckForApp()) SWIG_fail;
41194 PyThreadState* __tstate = wxPyBeginAllowThreads();
41195 result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2);
41196 wxPyEndAllowThreads(__tstate);
41197 if (PyErr_Occurred()) SWIG_fail;
41198 }
41199 {
41200 resultobj = wxPyMake_wxObject(result, 0);
41201 }
41202 {
41203 if (temp1)
41204 delete arg1;
41205 }
41206 return resultobj;
41207fail:
41208 {
41209 if (temp1)
41210 delete arg1;
41211 }
41212 return NULL;
41213}
41214
41215
41216SWIGINTERN PyObject *_wrap_Window_FromHWND(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41217 PyObject *resultobj = 0;
41218 wxWindow *arg1 = (wxWindow *) 0 ;
41219 unsigned long arg2 ;
41220 wxWindow *result = 0 ;
41221 void *argp1 = 0 ;
41222 int res1 = 0 ;
41223 unsigned long val2 ;
41224 int ecode2 = 0 ;
41225 PyObject * obj0 = 0 ;
41226 PyObject * obj1 = 0 ;
41227 char * kwnames[] = {
41228 (char *) "parent",(char *) "_hWnd", NULL
41229 };
41230
41231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) SWIG_fail;
41232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41233 if (!SWIG_IsOK(res1)) {
41234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_FromHWND" "', expected argument " "1"" of type '" "wxWindow *""'");
41235 }
41236 arg1 = reinterpret_cast< wxWindow * >(argp1);
41237 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
41238 if (!SWIG_IsOK(ecode2)) {
41239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_FromHWND" "', expected argument " "2"" of type '" "unsigned long""'");
41240 }
41241 arg2 = static_cast< unsigned long >(val2);
41242 {
41243 PyThreadState* __tstate = wxPyBeginAllowThreads();
41244 result = (wxWindow *)wxWindow_FromHWND(arg1,arg2);
41245 wxPyEndAllowThreads(__tstate);
41246 if (PyErr_Occurred()) SWIG_fail;
41247 }
41248 {
41249 resultobj = wxPyMake_wxObject(result, 0);
41250 }
41251 return resultobj;
41252fail:
41253 return NULL;
d55e5bfc
RD
41254}
41255
41256
1bd55598
RD
41257SWIGINTERN PyObject *_wrap_GetTopLevelWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41258 PyObject *resultobj = 0;
41259 PyObject *result = 0 ;
41260
41261 if (!SWIG_Python_UnpackTuple(args,"GetTopLevelWindows",0,0,0)) SWIG_fail;
41262 {
41263 PyThreadState* __tstate = wxPyBeginAllowThreads();
41264 result = (PyObject *)GetTopLevelWindows();
41265 wxPyEndAllowThreads(__tstate);
41266 if (PyErr_Occurred()) SWIG_fail;
41267 }
41268 resultobj = result;
41269 return resultobj;
41270fail:
41271 return NULL;
d55e5bfc
RD
41272}
41273
41274
1bd55598
RD
41275SWIGINTERN PyObject *_wrap_new_Validator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41276 PyObject *resultobj = 0;
41277 wxValidator *result = 0 ;
41278
41279 if (!SWIG_Python_UnpackTuple(args,"new_Validator",0,0,0)) SWIG_fail;
41280 {
41281 PyThreadState* __tstate = wxPyBeginAllowThreads();
41282 result = (wxValidator *)new wxValidator();
41283 wxPyEndAllowThreads(__tstate);
41284 if (PyErr_Occurred()) SWIG_fail;
41285 }
41286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxValidator, SWIG_POINTER_NEW | 0 );
41287 return resultobj;
41288fail:
41289 return NULL;
d55e5bfc
RD
41290}
41291
41292
1bd55598
RD
41293SWIGINTERN PyObject *_wrap_Validator_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41294 PyObject *resultobj = 0;
41295 wxValidator *arg1 = (wxValidator *) 0 ;
41296 wxValidator *result = 0 ;
41297 void *argp1 = 0 ;
41298 int res1 = 0 ;
41299 PyObject *swig_obj[1] ;
41300
41301 if (!args) SWIG_fail;
41302 swig_obj[0] = args;
41303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
41304 if (!SWIG_IsOK(res1)) {
41305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_Clone" "', expected argument " "1"" of type '" "wxValidator *""'");
41306 }
41307 arg1 = reinterpret_cast< wxValidator * >(argp1);
41308 {
41309 PyThreadState* __tstate = wxPyBeginAllowThreads();
41310 result = (wxValidator *)(arg1)->Clone();
41311 wxPyEndAllowThreads(__tstate);
41312 if (PyErr_Occurred()) SWIG_fail;
41313 }
41314 {
41315 resultobj = wxPyMake_wxObject(result, 0);
41316 }
41317 return resultobj;
41318fail:
41319 return NULL;
41320}
41321
41322
41323SWIGINTERN PyObject *_wrap_Validator_Validate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41324 PyObject *resultobj = 0;
41325 wxValidator *arg1 = (wxValidator *) 0 ;
41326 wxWindow *arg2 = (wxWindow *) 0 ;
41327 bool result;
41328 void *argp1 = 0 ;
41329 int res1 = 0 ;
41330 void *argp2 = 0 ;
41331 int res2 = 0 ;
41332 PyObject * obj0 = 0 ;
41333 PyObject * obj1 = 0 ;
41334 char * kwnames[] = {
41335 (char *) "self",(char *) "parent", NULL
41336 };
41337
41338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) SWIG_fail;
41339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
41340 if (!SWIG_IsOK(res1)) {
41341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_Validate" "', expected argument " "1"" of type '" "wxValidator *""'");
41342 }
41343 arg1 = reinterpret_cast< wxValidator * >(argp1);
41344 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41345 if (!SWIG_IsOK(res2)) {
41346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Validator_Validate" "', expected argument " "2"" of type '" "wxWindow *""'");
41347 }
41348 arg2 = reinterpret_cast< wxWindow * >(argp2);
41349 {
41350 PyThreadState* __tstate = wxPyBeginAllowThreads();
41351 result = (bool)(arg1)->Validate(arg2);
41352 wxPyEndAllowThreads(__tstate);
41353 if (PyErr_Occurred()) SWIG_fail;
41354 }
41355 {
41356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41357 }
41358 return resultobj;
41359fail:
41360 return NULL;
d55e5bfc
RD
41361}
41362
41363
1bd55598
RD
41364SWIGINTERN PyObject *_wrap_Validator_TransferToWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41365 PyObject *resultobj = 0;
41366 wxValidator *arg1 = (wxValidator *) 0 ;
41367 bool result;
41368 void *argp1 = 0 ;
41369 int res1 = 0 ;
41370 PyObject *swig_obj[1] ;
41371
41372 if (!args) SWIG_fail;
41373 swig_obj[0] = args;
41374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
41375 if (!SWIG_IsOK(res1)) {
41376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_TransferToWindow" "', expected argument " "1"" of type '" "wxValidator *""'");
41377 }
41378 arg1 = reinterpret_cast< wxValidator * >(argp1);
41379 {
41380 PyThreadState* __tstate = wxPyBeginAllowThreads();
41381 result = (bool)(arg1)->TransferToWindow();
41382 wxPyEndAllowThreads(__tstate);
41383 if (PyErr_Occurred()) SWIG_fail;
41384 }
41385 {
41386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41387 }
41388 return resultobj;
41389fail:
41390 return NULL;
d55e5bfc
RD
41391}
41392
41393
1bd55598
RD
41394SWIGINTERN PyObject *_wrap_Validator_TransferFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41395 PyObject *resultobj = 0;
41396 wxValidator *arg1 = (wxValidator *) 0 ;
41397 bool result;
41398 void *argp1 = 0 ;
41399 int res1 = 0 ;
41400 PyObject *swig_obj[1] ;
41401
41402 if (!args) SWIG_fail;
41403 swig_obj[0] = args;
41404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
41405 if (!SWIG_IsOK(res1)) {
41406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_TransferFromWindow" "', expected argument " "1"" of type '" "wxValidator *""'");
41407 }
41408 arg1 = reinterpret_cast< wxValidator * >(argp1);
41409 {
41410 PyThreadState* __tstate = wxPyBeginAllowThreads();
41411 result = (bool)(arg1)->TransferFromWindow();
41412 wxPyEndAllowThreads(__tstate);
41413 if (PyErr_Occurred()) SWIG_fail;
41414 }
41415 {
41416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41417 }
41418 return resultobj;
41419fail:
41420 return NULL;
d55e5bfc
RD
41421}
41422
41423
1bd55598
RD
41424SWIGINTERN PyObject *_wrap_Validator_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41425 PyObject *resultobj = 0;
41426 wxValidator *arg1 = (wxValidator *) 0 ;
41427 wxWindow *result = 0 ;
41428 void *argp1 = 0 ;
41429 int res1 = 0 ;
41430 PyObject *swig_obj[1] ;
41431
41432 if (!args) SWIG_fail;
41433 swig_obj[0] = args;
41434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
41435 if (!SWIG_IsOK(res1)) {
41436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_GetWindow" "', expected argument " "1"" of type '" "wxValidator *""'");
41437 }
41438 arg1 = reinterpret_cast< wxValidator * >(argp1);
41439 {
41440 PyThreadState* __tstate = wxPyBeginAllowThreads();
41441 result = (wxWindow *)(arg1)->GetWindow();
41442 wxPyEndAllowThreads(__tstate);
41443 if (PyErr_Occurred()) SWIG_fail;
41444 }
41445 {
41446 resultobj = wxPyMake_wxObject(result, 0);
41447 }
41448 return resultobj;
41449fail:
41450 return NULL;
41451}
41452
41453
41454SWIGINTERN PyObject *_wrap_Validator_SetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41455 PyObject *resultobj = 0;
41456 wxValidator *arg1 = (wxValidator *) 0 ;
41457 wxWindow *arg2 = (wxWindow *) 0 ;
41458 void *argp1 = 0 ;
41459 int res1 = 0 ;
41460 void *argp2 = 0 ;
41461 int res2 = 0 ;
41462 PyObject * obj0 = 0 ;
41463 PyObject * obj1 = 0 ;
41464 char * kwnames[] = {
41465 (char *) "self",(char *) "window", NULL
41466 };
41467
41468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) SWIG_fail;
41469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
41470 if (!SWIG_IsOK(res1)) {
41471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_SetWindow" "', expected argument " "1"" of type '" "wxValidator *""'");
41472 }
41473 arg1 = reinterpret_cast< wxValidator * >(argp1);
41474 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41475 if (!SWIG_IsOK(res2)) {
41476 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Validator_SetWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
41477 }
41478 arg2 = reinterpret_cast< wxWindow * >(argp2);
41479 {
41480 PyThreadState* __tstate = wxPyBeginAllowThreads();
41481 (arg1)->SetWindow(arg2);
41482 wxPyEndAllowThreads(__tstate);
41483 if (PyErr_Occurred()) SWIG_fail;
41484 }
41485 resultobj = SWIG_Py_Void();
41486 return resultobj;
41487fail:
41488 return NULL;
84f85550
RD
41489}
41490
41491
1bd55598
RD
41492SWIGINTERN PyObject *_wrap_Validator_IsSilent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41493 PyObject *resultobj = 0;
41494 bool result;
41495
41496 if (!SWIG_Python_UnpackTuple(args,"Validator_IsSilent",0,0,0)) SWIG_fail;
41497 {
41498 PyThreadState* __tstate = wxPyBeginAllowThreads();
41499 result = (bool)wxValidator::IsSilent();
41500 wxPyEndAllowThreads(__tstate);
41501 if (PyErr_Occurred()) SWIG_fail;
41502 }
41503 {
41504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41505 }
41506 return resultobj;
41507fail:
41508 return NULL;
d55e5bfc
RD
41509}
41510
41511
1bd55598
RD
41512SWIGINTERN PyObject *_wrap_Validator_SetBellOnError(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41513 PyObject *resultobj = 0;
41514 int arg1 = (int) true ;
41515 int val1 ;
41516 int ecode1 = 0 ;
41517 PyObject * obj0 = 0 ;
41518 char * kwnames[] = {
41519 (char *) "doIt", NULL
41520 };
41521
41522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) SWIG_fail;
41523 if (obj0) {
41524 ecode1 = SWIG_AsVal_int(obj0, &val1);
41525 if (!SWIG_IsOK(ecode1)) {
41526 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Validator_SetBellOnError" "', expected argument " "1"" of type '" "int""'");
41527 }
41528 arg1 = static_cast< int >(val1);
41529 }
41530 {
41531 PyThreadState* __tstate = wxPyBeginAllowThreads();
41532 wxValidator::SetBellOnError(arg1);
41533 wxPyEndAllowThreads(__tstate);
41534 if (PyErr_Occurred()) SWIG_fail;
41535 }
41536 resultobj = SWIG_Py_Void();
41537 return resultobj;
41538fail:
41539 return NULL;
d55e5bfc
RD
41540}
41541
41542
1bd55598
RD
41543SWIGINTERN PyObject *Validator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41544 PyObject *obj;
41545 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41546 SWIG_TypeNewClientData(SWIGTYPE_p_wxValidator, SWIG_NewClientData(obj));
41547 return SWIG_Py_Void();
d55e5bfc
RD
41548}
41549
1bd55598
RD
41550SWIGINTERN PyObject *Validator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41551 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41552}
41553
1bd55598
RD
41554SWIGINTERN PyObject *_wrap_new_PyValidator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41555 PyObject *resultobj = 0;
41556 wxPyValidator *result = 0 ;
41557
41558 if (!SWIG_Python_UnpackTuple(args,"new_PyValidator",0,0,0)) SWIG_fail;
41559 {
41560 PyThreadState* __tstate = wxPyBeginAllowThreads();
41561 result = (wxPyValidator *)new wxPyValidator();
41562 wxPyEndAllowThreads(__tstate);
41563 if (PyErr_Occurred()) SWIG_fail;
41564 }
41565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyValidator, SWIG_POINTER_NEW | 0 );
41566 return resultobj;
41567fail:
41568 return NULL;
41569}
41570
41571
41572SWIGINTERN PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41573 PyObject *resultobj = 0;
41574 wxPyValidator *arg1 = (wxPyValidator *) 0 ;
41575 PyObject *arg2 = (PyObject *) 0 ;
41576 PyObject *arg3 = (PyObject *) 0 ;
41577 int arg4 = (int) true ;
41578 void *argp1 = 0 ;
41579 int res1 = 0 ;
41580 int val4 ;
41581 int ecode4 = 0 ;
41582 PyObject * obj0 = 0 ;
41583 PyObject * obj1 = 0 ;
41584 PyObject * obj2 = 0 ;
41585 PyObject * obj3 = 0 ;
41586 char * kwnames[] = {
41587 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
41588 };
41589
41590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyValidator, 0 | 0 );
41592 if (!SWIG_IsOK(res1)) {
41593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyValidator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyValidator *""'");
41594 }
41595 arg1 = reinterpret_cast< wxPyValidator * >(argp1);
41596 arg2 = obj1;
41597 arg3 = obj2;
41598 if (obj3) {
41599 ecode4 = SWIG_AsVal_int(obj3, &val4);
41600 if (!SWIG_IsOK(ecode4)) {
41601 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyValidator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
41602 }
41603 arg4 = static_cast< int >(val4);
41604 }
41605 {
41606 PyThreadState* __tstate = wxPyBeginAllowThreads();
41607 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
41608 wxPyEndAllowThreads(__tstate);
41609 if (PyErr_Occurred()) SWIG_fail;
41610 }
41611 resultobj = SWIG_Py_Void();
41612 return resultobj;
41613fail:
41614 return NULL;
d55e5bfc
RD
41615}
41616
41617
1bd55598
RD
41618SWIGINTERN PyObject *PyValidator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41619 PyObject *obj;
41620 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41621 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyValidator, SWIG_NewClientData(obj));
41622 return SWIG_Py_Void();
d55e5bfc
RD
41623}
41624
1bd55598
RD
41625SWIGINTERN PyObject *PyValidator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41626 return SWIG_Python_InitShadowInstance(args);
41627}
d55e5bfc 41628
1bd55598
RD
41629SWIGINTERN int DefaultValidator_set(PyObject *) {
41630 SWIG_Error(SWIG_AttributeError,"Variable DefaultValidator is read-only.");
41631 return 1;
d55e5bfc
RD
41632}
41633
41634
1bd55598
RD
41635SWIGINTERN PyObject *DefaultValidator_get(void) {
41636 PyObject *pyobj = 0;
41637
41638 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0 );
41639 return pyobj;
41640}
41641
41642
41643SWIGINTERN PyObject *_wrap_new_Menu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41644 PyObject *resultobj = 0;
41645 wxString const &arg1_defvalue = wxPyEmptyString ;
41646 wxString *arg1 = (wxString *) &arg1_defvalue ;
41647 long arg2 = (long) 0 ;
41648 wxMenu *result = 0 ;
41649 bool temp1 = false ;
41650 long val2 ;
41651 int ecode2 = 0 ;
41652 PyObject * obj0 = 0 ;
41653 PyObject * obj1 = 0 ;
41654 char * kwnames[] = {
41655 (char *) "title",(char *) "style", NULL
41656 };
41657
41658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) SWIG_fail;
41659 if (obj0) {
d55e5bfc 41660 {
1bd55598
RD
41661 arg1 = wxString_in_helper(obj0);
41662 if (arg1 == NULL) SWIG_fail;
41663 temp1 = true;
d55e5bfc 41664 }
1bd55598
RD
41665 }
41666 if (obj1) {
41667 ecode2 = SWIG_AsVal_long(obj1, &val2);
41668 if (!SWIG_IsOK(ecode2)) {
41669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Menu" "', expected argument " "2"" of type '" "long""'");
41670 }
41671 arg2 = static_cast< long >(val2);
41672 }
41673 {
41674 if (!wxPyCheckForApp()) SWIG_fail;
41675 PyThreadState* __tstate = wxPyBeginAllowThreads();
41676 result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2);
41677 wxPyEndAllowThreads(__tstate);
41678 if (PyErr_Occurred()) SWIG_fail;
41679 }
41680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMenu, SWIG_POINTER_NEW | 0 );
41681 {
41682 if (temp1)
41683 delete arg1;
41684 }
41685 return resultobj;
41686fail:
41687 {
41688 if (temp1)
41689 delete arg1;
41690 }
41691 return NULL;
41692}
41693
41694
41695SWIGINTERN PyObject *_wrap_Menu_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41696 PyObject *resultobj = 0;
41697 wxMenu *arg1 = (wxMenu *) 0 ;
41698 int arg2 ;
ac5d357a
RD
41699 wxString const &arg3_defvalue = wxPyEmptyString ;
41700 wxString *arg3 = (wxString *) &arg3_defvalue ;
1bd55598
RD
41701 wxString const &arg4_defvalue = wxPyEmptyString ;
41702 wxString *arg4 = (wxString *) &arg4_defvalue ;
41703 wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ;
41704 wxMenuItem *result = 0 ;
41705 void *argp1 = 0 ;
41706 int res1 = 0 ;
41707 int val2 ;
41708 int ecode2 = 0 ;
41709 bool temp3 = false ;
41710 bool temp4 = false ;
41711 int val5 ;
41712 int ecode5 = 0 ;
41713 PyObject * obj0 = 0 ;
41714 PyObject * obj1 = 0 ;
41715 PyObject * obj2 = 0 ;
41716 PyObject * obj3 = 0 ;
41717 PyObject * obj4 = 0 ;
41718 char * kwnames[] = {
41719 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
41720 };
41721
ac5d357a 41722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
41723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
41724 if (!SWIG_IsOK(res1)) {
41725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Append" "', expected argument " "1"" of type '" "wxMenu *""'");
41726 }
41727 arg1 = reinterpret_cast< wxMenu * >(argp1);
41728 ecode2 = SWIG_AsVal_int(obj1, &val2);
41729 if (!SWIG_IsOK(ecode2)) {
41730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Append" "', expected argument " "2"" of type '" "int""'");
41731 }
41732 arg2 = static_cast< int >(val2);
ac5d357a
RD
41733 if (obj2) {
41734 {
41735 arg3 = wxString_in_helper(obj2);
41736 if (arg3 == NULL) SWIG_fail;
41737 temp3 = true;
41738 }
1bd55598
RD
41739 }
41740 if (obj3) {
d55e5bfc 41741 {
1bd55598
RD
41742 arg4 = wxString_in_helper(obj3);
41743 if (arg4 == NULL) SWIG_fail;
41744 temp4 = true;
d55e5bfc 41745 }
1bd55598
RD
41746 }
41747 if (obj4) {
41748 ecode5 = SWIG_AsVal_int(obj4, &val5);
41749 if (!SWIG_IsOK(ecode5)) {
41750 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Menu_Append" "', expected argument " "5"" of type '" "wxItemKind""'");
41751 }
41752 arg5 = static_cast< wxItemKind >(val5);
41753 }
41754 {
41755 PyThreadState* __tstate = wxPyBeginAllowThreads();
41756 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
41757 wxPyEndAllowThreads(__tstate);
41758 if (PyErr_Occurred()) SWIG_fail;
41759 }
41760 {
41761 resultobj = wxPyMake_wxObject(result, (bool)0);
41762 }
41763 {
41764 if (temp3)
41765 delete arg3;
41766 }
41767 {
41768 if (temp4)
41769 delete arg4;
41770 }
41771 return resultobj;
41772fail:
41773 {
41774 if (temp3)
41775 delete arg3;
41776 }
41777 {
41778 if (temp4)
41779 delete arg4;
41780 }
41781 return NULL;
d55e5bfc
RD
41782}
41783
41784
1bd55598
RD
41785SWIGINTERN PyObject *_wrap_Menu_AppendSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41786 PyObject *resultobj = 0;
41787 wxMenu *arg1 = (wxMenu *) 0 ;
41788 wxMenuItem *result = 0 ;
41789 void *argp1 = 0 ;
41790 int res1 = 0 ;
41791 PyObject *swig_obj[1] ;
41792
41793 if (!args) SWIG_fail;
41794 swig_obj[0] = args;
41795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
41796 if (!SWIG_IsOK(res1)) {
41797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendSeparator" "', expected argument " "1"" of type '" "wxMenu *""'");
41798 }
41799 arg1 = reinterpret_cast< wxMenu * >(argp1);
41800 {
41801 PyThreadState* __tstate = wxPyBeginAllowThreads();
41802 result = (wxMenuItem *)(arg1)->AppendSeparator();
41803 wxPyEndAllowThreads(__tstate);
41804 if (PyErr_Occurred()) SWIG_fail;
41805 }
41806 {
41807 resultobj = wxPyMake_wxObject(result, (bool)0);
41808 }
41809 return resultobj;
41810fail:
41811 return NULL;
41812}
41813
41814
41815SWIGINTERN PyObject *_wrap_Menu_AppendCheckItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41816 PyObject *resultobj = 0;
41817 wxMenu *arg1 = (wxMenu *) 0 ;
41818 int arg2 ;
41819 wxString *arg3 = 0 ;
41820 wxString const &arg4_defvalue = wxPyEmptyString ;
41821 wxString *arg4 = (wxString *) &arg4_defvalue ;
41822 wxMenuItem *result = 0 ;
41823 void *argp1 = 0 ;
41824 int res1 = 0 ;
41825 int val2 ;
41826 int ecode2 = 0 ;
41827 bool temp3 = false ;
41828 bool temp4 = false ;
41829 PyObject * obj0 = 0 ;
41830 PyObject * obj1 = 0 ;
41831 PyObject * obj2 = 0 ;
41832 PyObject * obj3 = 0 ;
41833 char * kwnames[] = {
41834 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
41835 };
41836
41837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
41839 if (!SWIG_IsOK(res1)) {
41840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendCheckItem" "', expected argument " "1"" of type '" "wxMenu *""'");
41841 }
41842 arg1 = reinterpret_cast< wxMenu * >(argp1);
41843 ecode2 = SWIG_AsVal_int(obj1, &val2);
41844 if (!SWIG_IsOK(ecode2)) {
41845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_AppendCheckItem" "', expected argument " "2"" of type '" "int""'");
41846 }
41847 arg2 = static_cast< int >(val2);
41848 {
41849 arg3 = wxString_in_helper(obj2);
41850 if (arg3 == NULL) SWIG_fail;
41851 temp3 = true;
41852 }
41853 if (obj3) {
d55e5bfc 41854 {
1bd55598
RD
41855 arg4 = wxString_in_helper(obj3);
41856 if (arg4 == NULL) SWIG_fail;
41857 temp4 = true;
d55e5bfc 41858 }
1bd55598
RD
41859 }
41860 {
41861 PyThreadState* __tstate = wxPyBeginAllowThreads();
41862 result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
41863 wxPyEndAllowThreads(__tstate);
41864 if (PyErr_Occurred()) SWIG_fail;
41865 }
41866 {
41867 resultobj = wxPyMake_wxObject(result, (bool)0);
41868 }
41869 {
41870 if (temp3)
41871 delete arg3;
41872 }
41873 {
41874 if (temp4)
41875 delete arg4;
41876 }
41877 return resultobj;
41878fail:
41879 {
41880 if (temp3)
41881 delete arg3;
41882 }
41883 {
41884 if (temp4)
41885 delete arg4;
41886 }
41887 return NULL;
41888}
41889
41890
41891SWIGINTERN PyObject *_wrap_Menu_AppendRadioItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41892 PyObject *resultobj = 0;
41893 wxMenu *arg1 = (wxMenu *) 0 ;
41894 int arg2 ;
41895 wxString *arg3 = 0 ;
41896 wxString const &arg4_defvalue = wxPyEmptyString ;
41897 wxString *arg4 = (wxString *) &arg4_defvalue ;
41898 wxMenuItem *result = 0 ;
41899 void *argp1 = 0 ;
41900 int res1 = 0 ;
41901 int val2 ;
41902 int ecode2 = 0 ;
41903 bool temp3 = false ;
41904 bool temp4 = false ;
41905 PyObject * obj0 = 0 ;
41906 PyObject * obj1 = 0 ;
41907 PyObject * obj2 = 0 ;
41908 PyObject * obj3 = 0 ;
41909 char * kwnames[] = {
41910 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
41911 };
41912
41913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
41915 if (!SWIG_IsOK(res1)) {
41916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendRadioItem" "', expected argument " "1"" of type '" "wxMenu *""'");
41917 }
41918 arg1 = reinterpret_cast< wxMenu * >(argp1);
41919 ecode2 = SWIG_AsVal_int(obj1, &val2);
41920 if (!SWIG_IsOK(ecode2)) {
41921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_AppendRadioItem" "', expected argument " "2"" of type '" "int""'");
41922 }
41923 arg2 = static_cast< int >(val2);
41924 {
41925 arg3 = wxString_in_helper(obj2);
41926 if (arg3 == NULL) SWIG_fail;
41927 temp3 = true;
41928 }
41929 if (obj3) {
36ed4f51 41930 {
1bd55598
RD
41931 arg4 = wxString_in_helper(obj3);
41932 if (arg4 == NULL) SWIG_fail;
41933 temp4 = true;
36ed4f51 41934 }
1bd55598
RD
41935 }
41936 {
41937 PyThreadState* __tstate = wxPyBeginAllowThreads();
41938 result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
41939 wxPyEndAllowThreads(__tstate);
41940 if (PyErr_Occurred()) SWIG_fail;
41941 }
41942 {
41943 resultobj = wxPyMake_wxObject(result, (bool)0);
41944 }
41945 {
41946 if (temp3)
41947 delete arg3;
41948 }
41949 {
41950 if (temp4)
41951 delete arg4;
41952 }
41953 return resultobj;
41954fail:
41955 {
41956 if (temp3)
41957 delete arg3;
41958 }
41959 {
41960 if (temp4)
41961 delete arg4;
41962 }
41963 return NULL;
41964}
41965
41966
41967SWIGINTERN PyObject *_wrap_Menu_AppendMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41968 PyObject *resultobj = 0;
41969 wxMenu *arg1 = (wxMenu *) 0 ;
41970 int arg2 ;
41971 wxString *arg3 = 0 ;
41972 wxMenu *arg4 = (wxMenu *) 0 ;
41973 wxString const &arg5_defvalue = wxPyEmptyString ;
41974 wxString *arg5 = (wxString *) &arg5_defvalue ;
41975 wxMenuItem *result = 0 ;
41976 void *argp1 = 0 ;
41977 int res1 = 0 ;
41978 int val2 ;
41979 int ecode2 = 0 ;
41980 bool temp3 = false ;
41981 void *argp4 = 0 ;
41982 int res4 = 0 ;
41983 bool temp5 = false ;
41984 PyObject * obj0 = 0 ;
41985 PyObject * obj1 = 0 ;
41986 PyObject * obj2 = 0 ;
41987 PyObject * obj3 = 0 ;
41988 PyObject * obj4 = 0 ;
41989 char * kwnames[] = {
41990 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
41991 };
41992
41993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
41995 if (!SWIG_IsOK(res1)) {
41996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendMenu" "', expected argument " "1"" of type '" "wxMenu *""'");
41997 }
41998 arg1 = reinterpret_cast< wxMenu * >(argp1);
41999 ecode2 = SWIG_AsVal_int(obj1, &val2);
42000 if (!SWIG_IsOK(ecode2)) {
42001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_AppendMenu" "', expected argument " "2"" of type '" "int""'");
42002 }
42003 arg2 = static_cast< int >(val2);
42004 {
42005 arg3 = wxString_in_helper(obj2);
42006 if (arg3 == NULL) SWIG_fail;
42007 temp3 = true;
42008 }
42009 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxMenu, 0 | 0 );
42010 if (!SWIG_IsOK(res4)) {
42011 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Menu_AppendMenu" "', expected argument " "4"" of type '" "wxMenu *""'");
42012 }
42013 arg4 = reinterpret_cast< wxMenu * >(argp4);
42014 if (obj4) {
d55e5bfc 42015 {
1bd55598
RD
42016 arg5 = wxString_in_helper(obj4);
42017 if (arg5 == NULL) SWIG_fail;
42018 temp5 = true;
d55e5bfc 42019 }
1bd55598
RD
42020 }
42021 {
42022 PyThreadState* __tstate = wxPyBeginAllowThreads();
42023 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
42024 wxPyEndAllowThreads(__tstate);
42025 if (PyErr_Occurred()) SWIG_fail;
42026 }
42027 {
42028 resultobj = wxPyMake_wxObject(result, (bool)0);
42029 }
42030 {
42031 if (temp3)
42032 delete arg3;
42033 }
42034 {
42035 if (temp5)
42036 delete arg5;
42037 }
42038 return resultobj;
42039fail:
42040 {
42041 if (temp3)
42042 delete arg3;
42043 }
42044 {
42045 if (temp5)
42046 delete arg5;
42047 }
42048 return NULL;
42049}
42050
42051
da91cb0f
RD
42052SWIGINTERN PyObject *_wrap_Menu_AppendSubMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42053 PyObject *resultobj = 0;
42054 wxMenu *arg1 = (wxMenu *) 0 ;
42055 wxMenu *arg2 = (wxMenu *) 0 ;
42056 wxString *arg3 = 0 ;
42057 wxString const &arg4_defvalue = wxPyEmptyString ;
42058 wxString *arg4 = (wxString *) &arg4_defvalue ;
42059 wxMenuItem *result = 0 ;
42060 void *argp1 = 0 ;
42061 int res1 = 0 ;
42062 void *argp2 = 0 ;
42063 int res2 = 0 ;
42064 bool temp3 = false ;
42065 bool temp4 = false ;
42066 PyObject * obj0 = 0 ;
42067 PyObject * obj1 = 0 ;
42068 PyObject * obj2 = 0 ;
42069 PyObject * obj3 = 0 ;
42070 char * kwnames[] = {
42071 (char *) "self",(char *) "submenu",(char *) "text",(char *) "help", NULL
42072 };
42073
42074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendSubMenu",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
42075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42076 if (!SWIG_IsOK(res1)) {
42077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendSubMenu" "', expected argument " "1"" of type '" "wxMenu *""'");
42078 }
42079 arg1 = reinterpret_cast< wxMenu * >(argp1);
42080 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
42081 if (!SWIG_IsOK(res2)) {
42082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_AppendSubMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
42083 }
42084 arg2 = reinterpret_cast< wxMenu * >(argp2);
42085 {
42086 arg3 = wxString_in_helper(obj2);
42087 if (arg3 == NULL) SWIG_fail;
42088 temp3 = true;
42089 }
42090 if (obj3) {
42091 {
42092 arg4 = wxString_in_helper(obj3);
42093 if (arg4 == NULL) SWIG_fail;
42094 temp4 = true;
42095 }
42096 }
42097 {
42098 PyThreadState* __tstate = wxPyBeginAllowThreads();
42099 result = (wxMenuItem *)(arg1)->AppendSubMenu(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
42100 wxPyEndAllowThreads(__tstate);
42101 if (PyErr_Occurred()) SWIG_fail;
42102 }
42103 {
42104 resultobj = wxPyMake_wxObject(result, (bool)0);
42105 }
42106 {
42107 if (temp3)
42108 delete arg3;
42109 }
42110 {
42111 if (temp4)
42112 delete arg4;
42113 }
42114 return resultobj;
42115fail:
42116 {
42117 if (temp3)
42118 delete arg3;
42119 }
42120 {
42121 if (temp4)
42122 delete arg4;
42123 }
42124 return NULL;
42125}
42126
42127
1bd55598
RD
42128SWIGINTERN PyObject *_wrap_Menu_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42129 PyObject *resultobj = 0;
42130 wxMenu *arg1 = (wxMenu *) 0 ;
42131 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
42132 wxMenuItem *result = 0 ;
42133 void *argp1 = 0 ;
42134 int res1 = 0 ;
42135 int res2 = 0 ;
42136 PyObject * obj0 = 0 ;
42137 PyObject * obj1 = 0 ;
42138 char * kwnames[] = {
42139 (char *) "self",(char *) "item", NULL
42140 };
42141
42142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) SWIG_fail;
42143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42144 if (!SWIG_IsOK(res1)) {
42145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendItem" "', expected argument " "1"" of type '" "wxMenu *""'");
42146 }
42147 arg1 = reinterpret_cast< wxMenu * >(argp1);
42148 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMenuItem, SWIG_POINTER_DISOWN | 0 );
42149 if (!SWIG_IsOK(res2)) {
42150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_AppendItem" "', expected argument " "2"" of type '" "wxMenuItem *""'");
42151 }
42152 {
42153 PyThreadState* __tstate = wxPyBeginAllowThreads();
42154 result = (wxMenuItem *)(arg1)->Append(arg2);
42155 wxPyEndAllowThreads(__tstate);
42156 if (PyErr_Occurred()) SWIG_fail;
42157 }
42158 {
42159 resultobj = wxPyMake_wxObject(result, (bool)0);
42160 }
42161 return resultobj;
42162fail:
42163 return NULL;
42164}
42165
42166
42167SWIGINTERN PyObject *_wrap_Menu_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42168 PyObject *resultobj = 0;
42169 wxMenu *arg1 = (wxMenu *) 0 ;
42170 size_t arg2 ;
42171 wxMenuItem *arg3 = (wxMenuItem *) 0 ;
42172 wxMenuItem *result = 0 ;
42173 void *argp1 = 0 ;
42174 int res1 = 0 ;
42175 size_t val2 ;
42176 int ecode2 = 0 ;
42177 int res3 = 0 ;
42178 PyObject * obj0 = 0 ;
42179 PyObject * obj1 = 0 ;
42180 PyObject * obj2 = 0 ;
42181 char * kwnames[] = {
42182 (char *) "self",(char *) "pos",(char *) "item", NULL
42183 };
42184
42185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42187 if (!SWIG_IsOK(res1)) {
42188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_InsertItem" "', expected argument " "1"" of type '" "wxMenu *""'");
42189 }
42190 arg1 = reinterpret_cast< wxMenu * >(argp1);
42191 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
42192 if (!SWIG_IsOK(ecode2)) {
42193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_InsertItem" "', expected argument " "2"" of type '" "size_t""'");
42194 }
42195 arg2 = static_cast< size_t >(val2);
42196 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxMenuItem, SWIG_POINTER_DISOWN | 0 );
42197 if (!SWIG_IsOK(res3)) {
42198 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Menu_InsertItem" "', expected argument " "3"" of type '" "wxMenuItem *""'");
42199 }
42200 {
42201 PyThreadState* __tstate = wxPyBeginAllowThreads();
42202 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3);
42203 wxPyEndAllowThreads(__tstate);
42204 if (PyErr_Occurred()) SWIG_fail;
42205 }
42206 {
42207 resultobj = wxPyMake_wxObject(result, (bool)0);
42208 }
42209 return resultobj;
42210fail:
42211 return NULL;
42212}
42213
42214
42215SWIGINTERN PyObject *_wrap_Menu_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42216 PyObject *resultobj = 0;
42217 wxMenu *arg1 = (wxMenu *) 0 ;
42218 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
42219 wxMenuItem *result = 0 ;
42220 void *argp1 = 0 ;
42221 int res1 = 0 ;
42222 int res2 = 0 ;
42223 PyObject * obj0 = 0 ;
42224 PyObject * obj1 = 0 ;
42225 char * kwnames[] = {
42226 (char *) "self",(char *) "item", NULL
42227 };
42228
42229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) SWIG_fail;
42230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42231 if (!SWIG_IsOK(res1)) {
42232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_PrependItem" "', expected argument " "1"" of type '" "wxMenu *""'");
42233 }
42234 arg1 = reinterpret_cast< wxMenu * >(argp1);
42235 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMenuItem, SWIG_POINTER_DISOWN | 0 );
42236 if (!SWIG_IsOK(res2)) {
42237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_PrependItem" "', expected argument " "2"" of type '" "wxMenuItem *""'");
42238 }
42239 {
42240 PyThreadState* __tstate = wxPyBeginAllowThreads();
42241 result = (wxMenuItem *)(arg1)->Prepend(arg2);
42242 wxPyEndAllowThreads(__tstate);
42243 if (PyErr_Occurred()) SWIG_fail;
42244 }
42245 {
42246 resultobj = wxPyMake_wxObject(result, (bool)0);
42247 }
42248 return resultobj;
42249fail:
42250 return NULL;
d55e5bfc
RD
42251}
42252
42253
1bd55598
RD
42254SWIGINTERN PyObject *_wrap_Menu_Break(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42255 PyObject *resultobj = 0;
42256 wxMenu *arg1 = (wxMenu *) 0 ;
42257 void *argp1 = 0 ;
42258 int res1 = 0 ;
42259 PyObject *swig_obj[1] ;
42260
42261 if (!args) SWIG_fail;
42262 swig_obj[0] = args;
42263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42264 if (!SWIG_IsOK(res1)) {
42265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Break" "', expected argument " "1"" of type '" "wxMenu *""'");
42266 }
42267 arg1 = reinterpret_cast< wxMenu * >(argp1);
42268 {
42269 PyThreadState* __tstate = wxPyBeginAllowThreads();
42270 (arg1)->Break();
42271 wxPyEndAllowThreads(__tstate);
42272 if (PyErr_Occurred()) SWIG_fail;
42273 }
42274 resultobj = SWIG_Py_Void();
42275 return resultobj;
42276fail:
42277 return NULL;
42278}
42279
42280
42281SWIGINTERN PyObject *_wrap_Menu_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42282 PyObject *resultobj = 0;
42283 wxMenu *arg1 = (wxMenu *) 0 ;
42284 size_t arg2 ;
42285 int arg3 ;
ac5d357a
RD
42286 wxString const &arg4_defvalue = wxPyEmptyString ;
42287 wxString *arg4 = (wxString *) &arg4_defvalue ;
1bd55598
RD
42288 wxString const &arg5_defvalue = wxPyEmptyString ;
42289 wxString *arg5 = (wxString *) &arg5_defvalue ;
42290 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
42291 wxMenuItem *result = 0 ;
42292 void *argp1 = 0 ;
42293 int res1 = 0 ;
42294 size_t val2 ;
42295 int ecode2 = 0 ;
42296 int val3 ;
42297 int ecode3 = 0 ;
42298 bool temp4 = false ;
42299 bool temp5 = false ;
42300 int val6 ;
42301 int ecode6 = 0 ;
42302 PyObject * obj0 = 0 ;
42303 PyObject * obj1 = 0 ;
42304 PyObject * obj2 = 0 ;
42305 PyObject * obj3 = 0 ;
42306 PyObject * obj4 = 0 ;
42307 PyObject * obj5 = 0 ;
42308 char * kwnames[] = {
42309 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
42310 };
42311
ac5d357a 42312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
1bd55598
RD
42313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42314 if (!SWIG_IsOK(res1)) {
42315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Insert" "', expected argument " "1"" of type '" "wxMenu *""'");
42316 }
42317 arg1 = reinterpret_cast< wxMenu * >(argp1);
42318 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
42319 if (!SWIG_IsOK(ecode2)) {
42320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Insert" "', expected argument " "2"" of type '" "size_t""'");
42321 }
42322 arg2 = static_cast< size_t >(val2);
42323 ecode3 = SWIG_AsVal_int(obj2, &val3);
42324 if (!SWIG_IsOK(ecode3)) {
42325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_Insert" "', expected argument " "3"" of type '" "int""'");
42326 }
42327 arg3 = static_cast< int >(val3);
ac5d357a
RD
42328 if (obj3) {
42329 {
42330 arg4 = wxString_in_helper(obj3);
42331 if (arg4 == NULL) SWIG_fail;
42332 temp4 = true;
42333 }
1bd55598
RD
42334 }
42335 if (obj4) {
d55e5bfc 42336 {
1bd55598
RD
42337 arg5 = wxString_in_helper(obj4);
42338 if (arg5 == NULL) SWIG_fail;
42339 temp5 = true;
d55e5bfc 42340 }
1bd55598
RD
42341 }
42342 if (obj5) {
42343 ecode6 = SWIG_AsVal_int(obj5, &val6);
42344 if (!SWIG_IsOK(ecode6)) {
42345 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Menu_Insert" "', expected argument " "6"" of type '" "wxItemKind""'");
42346 }
42347 arg6 = static_cast< wxItemKind >(val6);
42348 }
42349 {
42350 PyThreadState* __tstate = wxPyBeginAllowThreads();
42351 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6);
42352 wxPyEndAllowThreads(__tstate);
42353 if (PyErr_Occurred()) SWIG_fail;
42354 }
42355 {
42356 resultobj = wxPyMake_wxObject(result, (bool)0);
42357 }
42358 {
42359 if (temp4)
42360 delete arg4;
42361 }
42362 {
42363 if (temp5)
42364 delete arg5;
42365 }
42366 return resultobj;
42367fail:
42368 {
42369 if (temp4)
42370 delete arg4;
42371 }
42372 {
42373 if (temp5)
42374 delete arg5;
42375 }
42376 return NULL;
42377}
42378
42379
42380SWIGINTERN PyObject *_wrap_Menu_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42381 PyObject *resultobj = 0;
42382 wxMenu *arg1 = (wxMenu *) 0 ;
42383 size_t arg2 ;
42384 wxMenuItem *result = 0 ;
42385 void *argp1 = 0 ;
42386 int res1 = 0 ;
42387 size_t val2 ;
42388 int ecode2 = 0 ;
42389 PyObject * obj0 = 0 ;
42390 PyObject * obj1 = 0 ;
42391 char * kwnames[] = {
42392 (char *) "self",(char *) "pos", NULL
42393 };
42394
42395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
42396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42397 if (!SWIG_IsOK(res1)) {
42398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_InsertSeparator" "', expected argument " "1"" of type '" "wxMenu *""'");
42399 }
42400 arg1 = reinterpret_cast< wxMenu * >(argp1);
42401 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
42402 if (!SWIG_IsOK(ecode2)) {
42403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
42404 }
42405 arg2 = static_cast< size_t >(val2);
42406 {
42407 PyThreadState* __tstate = wxPyBeginAllowThreads();
42408 result = (wxMenuItem *)(arg1)->InsertSeparator(arg2);
42409 wxPyEndAllowThreads(__tstate);
42410 if (PyErr_Occurred()) SWIG_fail;
42411 }
42412 {
42413 resultobj = wxPyMake_wxObject(result, (bool)0);
42414 }
42415 return resultobj;
42416fail:
42417 return NULL;
42418}
42419
42420
42421SWIGINTERN PyObject *_wrap_Menu_InsertCheckItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42422 PyObject *resultobj = 0;
42423 wxMenu *arg1 = (wxMenu *) 0 ;
42424 size_t arg2 ;
42425 int arg3 ;
42426 wxString *arg4 = 0 ;
42427 wxString const &arg5_defvalue = wxPyEmptyString ;
42428 wxString *arg5 = (wxString *) &arg5_defvalue ;
42429 wxMenuItem *result = 0 ;
42430 void *argp1 = 0 ;
42431 int res1 = 0 ;
42432 size_t val2 ;
42433 int ecode2 = 0 ;
42434 int val3 ;
42435 int ecode3 = 0 ;
42436 bool temp4 = false ;
42437 bool temp5 = false ;
42438 PyObject * obj0 = 0 ;
42439 PyObject * obj1 = 0 ;
42440 PyObject * obj2 = 0 ;
42441 PyObject * obj3 = 0 ;
42442 PyObject * obj4 = 0 ;
42443 char * kwnames[] = {
42444 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
42445 };
42446
42447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
42448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42449 if (!SWIG_IsOK(res1)) {
42450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_InsertCheckItem" "', expected argument " "1"" of type '" "wxMenu *""'");
42451 }
42452 arg1 = reinterpret_cast< wxMenu * >(argp1);
42453 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
42454 if (!SWIG_IsOK(ecode2)) {
42455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_InsertCheckItem" "', expected argument " "2"" of type '" "size_t""'");
42456 }
42457 arg2 = static_cast< size_t >(val2);
42458 ecode3 = SWIG_AsVal_int(obj2, &val3);
42459 if (!SWIG_IsOK(ecode3)) {
42460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_InsertCheckItem" "', expected argument " "3"" of type '" "int""'");
42461 }
42462 arg3 = static_cast< int >(val3);
42463 {
42464 arg4 = wxString_in_helper(obj3);
42465 if (arg4 == NULL) SWIG_fail;
42466 temp4 = true;
42467 }
42468 if (obj4) {
d55e5bfc 42469 {
1bd55598
RD
42470 arg5 = wxString_in_helper(obj4);
42471 if (arg5 == NULL) SWIG_fail;
42472 temp5 = true;
36ed4f51 42473 }
1bd55598
RD
42474 }
42475 {
42476 PyThreadState* __tstate = wxPyBeginAllowThreads();
42477 result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
42478 wxPyEndAllowThreads(__tstate);
42479 if (PyErr_Occurred()) SWIG_fail;
42480 }
42481 {
42482 resultobj = wxPyMake_wxObject(result, (bool)0);
42483 }
42484 {
42485 if (temp4)
42486 delete arg4;
42487 }
42488 {
42489 if (temp5)
42490 delete arg5;
42491 }
42492 return resultobj;
42493fail:
42494 {
42495 if (temp4)
42496 delete arg4;
42497 }
42498 {
42499 if (temp5)
42500 delete arg5;
42501 }
42502 return NULL;
42503}
42504
42505
42506SWIGINTERN PyObject *_wrap_Menu_InsertRadioItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42507 PyObject *resultobj = 0;
42508 wxMenu *arg1 = (wxMenu *) 0 ;
42509 size_t arg2 ;
42510 int arg3 ;
42511 wxString *arg4 = 0 ;
42512 wxString const &arg5_defvalue = wxPyEmptyString ;
42513 wxString *arg5 = (wxString *) &arg5_defvalue ;
42514 wxMenuItem *result = 0 ;
42515 void *argp1 = 0 ;
42516 int res1 = 0 ;
42517 size_t val2 ;
42518 int ecode2 = 0 ;
42519 int val3 ;
42520 int ecode3 = 0 ;
42521 bool temp4 = false ;
42522 bool temp5 = false ;
42523 PyObject * obj0 = 0 ;
42524 PyObject * obj1 = 0 ;
42525 PyObject * obj2 = 0 ;
42526 PyObject * obj3 = 0 ;
42527 PyObject * obj4 = 0 ;
42528 char * kwnames[] = {
42529 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
42530 };
42531
42532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
42533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42534 if (!SWIG_IsOK(res1)) {
42535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_InsertRadioItem" "', expected argument " "1"" of type '" "wxMenu *""'");
42536 }
42537 arg1 = reinterpret_cast< wxMenu * >(argp1);
42538 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
42539 if (!SWIG_IsOK(ecode2)) {
42540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_InsertRadioItem" "', expected argument " "2"" of type '" "size_t""'");
42541 }
42542 arg2 = static_cast< size_t >(val2);
42543 ecode3 = SWIG_AsVal_int(obj2, &val3);
42544 if (!SWIG_IsOK(ecode3)) {
42545 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_InsertRadioItem" "', expected argument " "3"" of type '" "int""'");
42546 }
42547 arg3 = static_cast< int >(val3);
42548 {
42549 arg4 = wxString_in_helper(obj3);
42550 if (arg4 == NULL) SWIG_fail;
42551 temp4 = true;
42552 }
42553 if (obj4) {
d55e5bfc 42554 {
1bd55598
RD
42555 arg5 = wxString_in_helper(obj4);
42556 if (arg5 == NULL) SWIG_fail;
42557 temp5 = true;
d55e5bfc 42558 }
1bd55598
RD
42559 }
42560 {
42561 PyThreadState* __tstate = wxPyBeginAllowThreads();
42562 result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
42563 wxPyEndAllowThreads(__tstate);
42564 if (PyErr_Occurred()) SWIG_fail;
42565 }
42566 {
42567 resultobj = wxPyMake_wxObject(result, (bool)0);
42568 }
42569 {
42570 if (temp4)
42571 delete arg4;
42572 }
42573 {
42574 if (temp5)
42575 delete arg5;
42576 }
42577 return resultobj;
42578fail:
42579 {
42580 if (temp4)
42581 delete arg4;
42582 }
42583 {
42584 if (temp5)
42585 delete arg5;
42586 }
42587 return NULL;
42588}
42589
42590
42591SWIGINTERN PyObject *_wrap_Menu_InsertMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42592 PyObject *resultobj = 0;
42593 wxMenu *arg1 = (wxMenu *) 0 ;
42594 size_t arg2 ;
42595 int arg3 ;
42596 wxString *arg4 = 0 ;
42597 wxMenu *arg5 = (wxMenu *) 0 ;
42598 wxString const &arg6_defvalue = wxPyEmptyString ;
42599 wxString *arg6 = (wxString *) &arg6_defvalue ;
42600 wxMenuItem *result = 0 ;
42601 void *argp1 = 0 ;
42602 int res1 = 0 ;
42603 size_t val2 ;
42604 int ecode2 = 0 ;
42605 int val3 ;
42606 int ecode3 = 0 ;
42607 bool temp4 = false ;
42608 void *argp5 = 0 ;
42609 int res5 = 0 ;
42610 bool temp6 = false ;
42611 PyObject * obj0 = 0 ;
42612 PyObject * obj1 = 0 ;
42613 PyObject * obj2 = 0 ;
42614 PyObject * obj3 = 0 ;
42615 PyObject * obj4 = 0 ;
42616 PyObject * obj5 = 0 ;
42617 char * kwnames[] = {
42618 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
42619 };
42620
42621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
42622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42623 if (!SWIG_IsOK(res1)) {
42624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_InsertMenu" "', expected argument " "1"" of type '" "wxMenu *""'");
42625 }
42626 arg1 = reinterpret_cast< wxMenu * >(argp1);
42627 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
42628 if (!SWIG_IsOK(ecode2)) {
42629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_InsertMenu" "', expected argument " "2"" of type '" "size_t""'");
42630 }
42631 arg2 = static_cast< size_t >(val2);
42632 ecode3 = SWIG_AsVal_int(obj2, &val3);
42633 if (!SWIG_IsOK(ecode3)) {
42634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_InsertMenu" "', expected argument " "3"" of type '" "int""'");
42635 }
42636 arg3 = static_cast< int >(val3);
42637 {
42638 arg4 = wxString_in_helper(obj3);
42639 if (arg4 == NULL) SWIG_fail;
42640 temp4 = true;
42641 }
42642 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxMenu, 0 | 0 );
42643 if (!SWIG_IsOK(res5)) {
42644 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Menu_InsertMenu" "', expected argument " "5"" of type '" "wxMenu *""'");
42645 }
42646 arg5 = reinterpret_cast< wxMenu * >(argp5);
42647 if (obj5) {
d55e5bfc 42648 {
1bd55598
RD
42649 arg6 = wxString_in_helper(obj5);
42650 if (arg6 == NULL) SWIG_fail;
42651 temp6 = true;
d55e5bfc 42652 }
1bd55598
RD
42653 }
42654 {
42655 PyThreadState* __tstate = wxPyBeginAllowThreads();
42656 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6);
42657 wxPyEndAllowThreads(__tstate);
42658 if (PyErr_Occurred()) SWIG_fail;
42659 }
42660 {
42661 resultobj = wxPyMake_wxObject(result, (bool)0);
42662 }
42663 {
42664 if (temp4)
42665 delete arg4;
42666 }
42667 {
42668 if (temp6)
42669 delete arg6;
42670 }
42671 return resultobj;
42672fail:
42673 {
42674 if (temp4)
42675 delete arg4;
42676 }
42677 {
42678 if (temp6)
42679 delete arg6;
42680 }
42681 return NULL;
42682}
42683
42684
42685SWIGINTERN PyObject *_wrap_Menu_Prepend(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42686 PyObject *resultobj = 0;
42687 wxMenu *arg1 = (wxMenu *) 0 ;
42688 int arg2 ;
ac5d357a
RD
42689 wxString const &arg3_defvalue = wxPyEmptyString ;
42690 wxString *arg3 = (wxString *) &arg3_defvalue ;
1bd55598
RD
42691 wxString const &arg4_defvalue = wxPyEmptyString ;
42692 wxString *arg4 = (wxString *) &arg4_defvalue ;
42693 wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ;
42694 wxMenuItem *result = 0 ;
42695 void *argp1 = 0 ;
42696 int res1 = 0 ;
42697 int val2 ;
42698 int ecode2 = 0 ;
42699 bool temp3 = false ;
42700 bool temp4 = false ;
42701 int val5 ;
42702 int ecode5 = 0 ;
42703 PyObject * obj0 = 0 ;
42704 PyObject * obj1 = 0 ;
42705 PyObject * obj2 = 0 ;
42706 PyObject * obj3 = 0 ;
42707 PyObject * obj4 = 0 ;
42708 char * kwnames[] = {
42709 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
42710 };
42711
ac5d357a 42712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
42713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42714 if (!SWIG_IsOK(res1)) {
42715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Prepend" "', expected argument " "1"" of type '" "wxMenu *""'");
42716 }
42717 arg1 = reinterpret_cast< wxMenu * >(argp1);
42718 ecode2 = SWIG_AsVal_int(obj1, &val2);
42719 if (!SWIG_IsOK(ecode2)) {
42720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Prepend" "', expected argument " "2"" of type '" "int""'");
42721 }
42722 arg2 = static_cast< int >(val2);
ac5d357a
RD
42723 if (obj2) {
42724 {
42725 arg3 = wxString_in_helper(obj2);
42726 if (arg3 == NULL) SWIG_fail;
42727 temp3 = true;
42728 }
1bd55598
RD
42729 }
42730 if (obj3) {
36ed4f51 42731 {
1bd55598
RD
42732 arg4 = wxString_in_helper(obj3);
42733 if (arg4 == NULL) SWIG_fail;
42734 temp4 = true;
36ed4f51 42735 }
1bd55598
RD
42736 }
42737 if (obj4) {
42738 ecode5 = SWIG_AsVal_int(obj4, &val5);
42739 if (!SWIG_IsOK(ecode5)) {
42740 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Menu_Prepend" "', expected argument " "5"" of type '" "wxItemKind""'");
42741 }
42742 arg5 = static_cast< wxItemKind >(val5);
42743 }
42744 {
42745 PyThreadState* __tstate = wxPyBeginAllowThreads();
42746 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
42747 wxPyEndAllowThreads(__tstate);
42748 if (PyErr_Occurred()) SWIG_fail;
42749 }
42750 {
42751 resultobj = wxPyMake_wxObject(result, (bool)0);
42752 }
42753 {
42754 if (temp3)
42755 delete arg3;
42756 }
42757 {
42758 if (temp4)
42759 delete arg4;
42760 }
42761 return resultobj;
42762fail:
42763 {
42764 if (temp3)
42765 delete arg3;
42766 }
42767 {
42768 if (temp4)
42769 delete arg4;
42770 }
42771 return NULL;
d55e5bfc
RD
42772}
42773
42774
1bd55598
RD
42775SWIGINTERN PyObject *_wrap_Menu_PrependSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42776 PyObject *resultobj = 0;
42777 wxMenu *arg1 = (wxMenu *) 0 ;
42778 wxMenuItem *result = 0 ;
42779 void *argp1 = 0 ;
42780 int res1 = 0 ;
42781 PyObject *swig_obj[1] ;
42782
42783 if (!args) SWIG_fail;
42784 swig_obj[0] = args;
42785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42786 if (!SWIG_IsOK(res1)) {
42787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_PrependSeparator" "', expected argument " "1"" of type '" "wxMenu *""'");
42788 }
42789 arg1 = reinterpret_cast< wxMenu * >(argp1);
42790 {
42791 PyThreadState* __tstate = wxPyBeginAllowThreads();
42792 result = (wxMenuItem *)(arg1)->PrependSeparator();
42793 wxPyEndAllowThreads(__tstate);
42794 if (PyErr_Occurred()) SWIG_fail;
42795 }
42796 {
42797 resultobj = wxPyMake_wxObject(result, (bool)0);
42798 }
42799 return resultobj;
42800fail:
42801 return NULL;
42802}
42803
42804
42805SWIGINTERN PyObject *_wrap_Menu_PrependCheckItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42806 PyObject *resultobj = 0;
42807 wxMenu *arg1 = (wxMenu *) 0 ;
42808 int arg2 ;
42809 wxString *arg3 = 0 ;
42810 wxString const &arg4_defvalue = wxPyEmptyString ;
42811 wxString *arg4 = (wxString *) &arg4_defvalue ;
42812 wxMenuItem *result = 0 ;
42813 void *argp1 = 0 ;
42814 int res1 = 0 ;
42815 int val2 ;
42816 int ecode2 = 0 ;
42817 bool temp3 = false ;
42818 bool temp4 = false ;
42819 PyObject * obj0 = 0 ;
42820 PyObject * obj1 = 0 ;
42821 PyObject * obj2 = 0 ;
42822 PyObject * obj3 = 0 ;
42823 char * kwnames[] = {
42824 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
42825 };
42826
42827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
42828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42829 if (!SWIG_IsOK(res1)) {
42830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_PrependCheckItem" "', expected argument " "1"" of type '" "wxMenu *""'");
42831 }
42832 arg1 = reinterpret_cast< wxMenu * >(argp1);
42833 ecode2 = SWIG_AsVal_int(obj1, &val2);
42834 if (!SWIG_IsOK(ecode2)) {
42835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_PrependCheckItem" "', expected argument " "2"" of type '" "int""'");
42836 }
42837 arg2 = static_cast< int >(val2);
42838 {
42839 arg3 = wxString_in_helper(obj2);
42840 if (arg3 == NULL) SWIG_fail;
42841 temp3 = true;
42842 }
42843 if (obj3) {
d55e5bfc 42844 {
1bd55598
RD
42845 arg4 = wxString_in_helper(obj3);
42846 if (arg4 == NULL) SWIG_fail;
42847 temp4 = true;
d55e5bfc 42848 }
1bd55598
RD
42849 }
42850 {
42851 PyThreadState* __tstate = wxPyBeginAllowThreads();
42852 result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
42853 wxPyEndAllowThreads(__tstate);
42854 if (PyErr_Occurred()) SWIG_fail;
42855 }
42856 {
42857 resultobj = wxPyMake_wxObject(result, (bool)0);
42858 }
42859 {
42860 if (temp3)
42861 delete arg3;
42862 }
42863 {
42864 if (temp4)
42865 delete arg4;
42866 }
42867 return resultobj;
42868fail:
42869 {
42870 if (temp3)
42871 delete arg3;
42872 }
42873 {
42874 if (temp4)
42875 delete arg4;
42876 }
42877 return NULL;
42878}
42879
42880
42881SWIGINTERN PyObject *_wrap_Menu_PrependRadioItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42882 PyObject *resultobj = 0;
42883 wxMenu *arg1 = (wxMenu *) 0 ;
42884 int arg2 ;
42885 wxString *arg3 = 0 ;
42886 wxString const &arg4_defvalue = wxPyEmptyString ;
42887 wxString *arg4 = (wxString *) &arg4_defvalue ;
42888 wxMenuItem *result = 0 ;
42889 void *argp1 = 0 ;
42890 int res1 = 0 ;
42891 int val2 ;
42892 int ecode2 = 0 ;
42893 bool temp3 = false ;
42894 bool temp4 = false ;
42895 PyObject * obj0 = 0 ;
42896 PyObject * obj1 = 0 ;
42897 PyObject * obj2 = 0 ;
42898 PyObject * obj3 = 0 ;
42899 char * kwnames[] = {
42900 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
42901 };
42902
42903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
42904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42905 if (!SWIG_IsOK(res1)) {
42906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_PrependRadioItem" "', expected argument " "1"" of type '" "wxMenu *""'");
42907 }
42908 arg1 = reinterpret_cast< wxMenu * >(argp1);
42909 ecode2 = SWIG_AsVal_int(obj1, &val2);
42910 if (!SWIG_IsOK(ecode2)) {
42911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_PrependRadioItem" "', expected argument " "2"" of type '" "int""'");
42912 }
42913 arg2 = static_cast< int >(val2);
42914 {
42915 arg3 = wxString_in_helper(obj2);
42916 if (arg3 == NULL) SWIG_fail;
42917 temp3 = true;
42918 }
42919 if (obj3) {
d55e5bfc 42920 {
1bd55598
RD
42921 arg4 = wxString_in_helper(obj3);
42922 if (arg4 == NULL) SWIG_fail;
42923 temp4 = true;
d55e5bfc 42924 }
1bd55598
RD
42925 }
42926 {
42927 PyThreadState* __tstate = wxPyBeginAllowThreads();
42928 result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
42929 wxPyEndAllowThreads(__tstate);
42930 if (PyErr_Occurred()) SWIG_fail;
42931 }
42932 {
42933 resultobj = wxPyMake_wxObject(result, (bool)0);
42934 }
42935 {
42936 if (temp3)
42937 delete arg3;
42938 }
42939 {
42940 if (temp4)
42941 delete arg4;
42942 }
42943 return resultobj;
42944fail:
42945 {
42946 if (temp3)
42947 delete arg3;
42948 }
42949 {
42950 if (temp4)
42951 delete arg4;
42952 }
42953 return NULL;
42954}
42955
42956
42957SWIGINTERN PyObject *_wrap_Menu_PrependMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42958 PyObject *resultobj = 0;
42959 wxMenu *arg1 = (wxMenu *) 0 ;
42960 int arg2 ;
42961 wxString *arg3 = 0 ;
42962 wxMenu *arg4 = (wxMenu *) 0 ;
42963 wxString const &arg5_defvalue = wxPyEmptyString ;
42964 wxString *arg5 = (wxString *) &arg5_defvalue ;
42965 wxMenuItem *result = 0 ;
42966 void *argp1 = 0 ;
42967 int res1 = 0 ;
42968 int val2 ;
42969 int ecode2 = 0 ;
42970 bool temp3 = false ;
42971 void *argp4 = 0 ;
42972 int res4 = 0 ;
42973 bool temp5 = false ;
42974 PyObject * obj0 = 0 ;
42975 PyObject * obj1 = 0 ;
42976 PyObject * obj2 = 0 ;
42977 PyObject * obj3 = 0 ;
42978 PyObject * obj4 = 0 ;
42979 char * kwnames[] = {
42980 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
42981 };
42982
42983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
42984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
42985 if (!SWIG_IsOK(res1)) {
42986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_PrependMenu" "', expected argument " "1"" of type '" "wxMenu *""'");
42987 }
42988 arg1 = reinterpret_cast< wxMenu * >(argp1);
42989 ecode2 = SWIG_AsVal_int(obj1, &val2);
42990 if (!SWIG_IsOK(ecode2)) {
42991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_PrependMenu" "', expected argument " "2"" of type '" "int""'");
42992 }
42993 arg2 = static_cast< int >(val2);
42994 {
42995 arg3 = wxString_in_helper(obj2);
42996 if (arg3 == NULL) SWIG_fail;
42997 temp3 = true;
42998 }
42999 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxMenu, 0 | 0 );
43000 if (!SWIG_IsOK(res4)) {
43001 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Menu_PrependMenu" "', expected argument " "4"" of type '" "wxMenu *""'");
43002 }
43003 arg4 = reinterpret_cast< wxMenu * >(argp4);
43004 if (obj4) {
36ed4f51 43005 {
1bd55598
RD
43006 arg5 = wxString_in_helper(obj4);
43007 if (arg5 == NULL) SWIG_fail;
43008 temp5 = true;
36ed4f51 43009 }
1bd55598
RD
43010 }
43011 {
43012 PyThreadState* __tstate = wxPyBeginAllowThreads();
43013 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
43014 wxPyEndAllowThreads(__tstate);
43015 if (PyErr_Occurred()) SWIG_fail;
43016 }
43017 {
43018 resultobj = wxPyMake_wxObject(result, (bool)0);
43019 }
43020 {
43021 if (temp3)
43022 delete arg3;
43023 }
43024 {
43025 if (temp5)
43026 delete arg5;
43027 }
43028 return resultobj;
43029fail:
43030 {
43031 if (temp3)
43032 delete arg3;
43033 }
43034 {
43035 if (temp5)
43036 delete arg5;
43037 }
43038 return NULL;
43039}
43040
43041
43042SWIGINTERN PyObject *_wrap_Menu_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43043 PyObject *resultobj = 0;
43044 wxMenu *arg1 = (wxMenu *) 0 ;
43045 int arg2 ;
43046 wxMenuItem *result = 0 ;
43047 void *argp1 = 0 ;
43048 int res1 = 0 ;
43049 int val2 ;
43050 int ecode2 = 0 ;
43051 PyObject * obj0 = 0 ;
43052 PyObject * obj1 = 0 ;
43053 char * kwnames[] = {
43054 (char *) "self",(char *) "id", NULL
43055 };
43056
43057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
43058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43059 if (!SWIG_IsOK(res1)) {
43060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Remove" "', expected argument " "1"" of type '" "wxMenu *""'");
43061 }
43062 arg1 = reinterpret_cast< wxMenu * >(argp1);
43063 ecode2 = SWIG_AsVal_int(obj1, &val2);
43064 if (!SWIG_IsOK(ecode2)) {
43065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Remove" "', expected argument " "2"" of type '" "int""'");
43066 }
43067 arg2 = static_cast< int >(val2);
43068 {
43069 PyThreadState* __tstate = wxPyBeginAllowThreads();
43070 result = (wxMenuItem *)(arg1)->Remove(arg2);
43071 wxPyEndAllowThreads(__tstate);
43072 if (PyErr_Occurred()) SWIG_fail;
43073 }
43074 {
43075 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
43076 }
43077 return resultobj;
43078fail:
43079 return NULL;
43080}
43081
43082
43083SWIGINTERN PyObject *_wrap_Menu_RemoveItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43084 PyObject *resultobj = 0;
43085 wxMenu *arg1 = (wxMenu *) 0 ;
43086 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
43087 wxMenuItem *result = 0 ;
43088 void *argp1 = 0 ;
43089 int res1 = 0 ;
43090 void *argp2 = 0 ;
43091 int res2 = 0 ;
43092 PyObject * obj0 = 0 ;
43093 PyObject * obj1 = 0 ;
43094 char * kwnames[] = {
43095 (char *) "self",(char *) "item", NULL
43096 };
43097
43098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) SWIG_fail;
43099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43100 if (!SWIG_IsOK(res1)) {
43101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_RemoveItem" "', expected argument " "1"" of type '" "wxMenu *""'");
43102 }
43103 arg1 = reinterpret_cast< wxMenu * >(argp1);
43104 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuItem, 0 | 0 );
43105 if (!SWIG_IsOK(res2)) {
43106 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_RemoveItem" "', expected argument " "2"" of type '" "wxMenuItem *""'");
43107 }
43108 arg2 = reinterpret_cast< wxMenuItem * >(argp2);
43109 {
43110 PyThreadState* __tstate = wxPyBeginAllowThreads();
43111 result = (wxMenuItem *)(arg1)->Remove(arg2);
43112 wxPyEndAllowThreads(__tstate);
43113 if (PyErr_Occurred()) SWIG_fail;
43114 }
43115 {
43116 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
43117 }
43118 return resultobj;
43119fail:
43120 return NULL;
43121}
43122
43123
43124SWIGINTERN PyObject *_wrap_Menu_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43125 PyObject *resultobj = 0;
43126 wxMenu *arg1 = (wxMenu *) 0 ;
43127 int arg2 ;
43128 bool result;
43129 void *argp1 = 0 ;
43130 int res1 = 0 ;
43131 int val2 ;
43132 int ecode2 = 0 ;
43133 PyObject * obj0 = 0 ;
43134 PyObject * obj1 = 0 ;
43135 char * kwnames[] = {
43136 (char *) "self",(char *) "id", NULL
43137 };
43138
43139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
43140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43141 if (!SWIG_IsOK(res1)) {
43142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Delete" "', expected argument " "1"" of type '" "wxMenu *""'");
43143 }
43144 arg1 = reinterpret_cast< wxMenu * >(argp1);
43145 ecode2 = SWIG_AsVal_int(obj1, &val2);
43146 if (!SWIG_IsOK(ecode2)) {
43147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Delete" "', expected argument " "2"" of type '" "int""'");
43148 }
43149 arg2 = static_cast< int >(val2);
43150 {
43151 PyThreadState* __tstate = wxPyBeginAllowThreads();
43152 result = (bool)(arg1)->Delete(arg2);
43153 wxPyEndAllowThreads(__tstate);
43154 if (PyErr_Occurred()) SWIG_fail;
43155 }
43156 {
43157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43158 }
43159 return resultobj;
43160fail:
43161 return NULL;
43162}
43163
43164
43165SWIGINTERN PyObject *_wrap_Menu_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43166 PyObject *resultobj = 0;
43167 wxMenu *arg1 = (wxMenu *) 0 ;
43168 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
43169 bool result;
43170 void *argp1 = 0 ;
43171 int res1 = 0 ;
43172 void *argp2 = 0 ;
43173 int res2 = 0 ;
43174 PyObject * obj0 = 0 ;
43175 PyObject * obj1 = 0 ;
43176 char * kwnames[] = {
43177 (char *) "self",(char *) "item", NULL
43178 };
43179
43180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
43181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43182 if (!SWIG_IsOK(res1)) {
43183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_DeleteItem" "', expected argument " "1"" of type '" "wxMenu *""'");
43184 }
43185 arg1 = reinterpret_cast< wxMenu * >(argp1);
43186 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuItem, 0 | 0 );
43187 if (!SWIG_IsOK(res2)) {
43188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_DeleteItem" "', expected argument " "2"" of type '" "wxMenuItem *""'");
43189 }
43190 arg2 = reinterpret_cast< wxMenuItem * >(argp2);
43191 {
43192 PyThreadState* __tstate = wxPyBeginAllowThreads();
43193 result = (bool)(arg1)->Delete(arg2);
43194 wxPyEndAllowThreads(__tstate);
43195 if (PyErr_Occurred()) SWIG_fail;
43196 }
43197 {
43198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43199 }
43200 return resultobj;
43201fail:
43202 return NULL;
d55e5bfc
RD
43203}
43204
43205
1bd55598
RD
43206SWIGINTERN PyObject *_wrap_Menu_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43207 PyObject *resultobj = 0;
43208 wxMenu *arg1 = (wxMenu *) 0 ;
43209 void *argp1 = 0 ;
43210 int res1 = 0 ;
43211 PyObject *swig_obj[1] ;
43212
43213 if (!args) SWIG_fail;
43214 swig_obj[0] = args;
43215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43216 if (!SWIG_IsOK(res1)) {
43217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Destroy" "', expected argument " "1"" of type '" "wxMenu *""'");
43218 }
43219 arg1 = reinterpret_cast< wxMenu * >(argp1);
43220 {
43221 PyThreadState* __tstate = wxPyBeginAllowThreads();
43222 wxMenu_Destroy(arg1);
43223 wxPyEndAllowThreads(__tstate);
43224 if (PyErr_Occurred()) SWIG_fail;
43225 }
43226 resultobj = SWIG_Py_Void();
43227 return resultobj;
43228fail:
43229 return NULL;
43230}
43231
43232
43233SWIGINTERN PyObject *_wrap_Menu_DestroyId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43234 PyObject *resultobj = 0;
43235 wxMenu *arg1 = (wxMenu *) 0 ;
43236 int arg2 ;
43237 bool result;
43238 void *argp1 = 0 ;
43239 int res1 = 0 ;
43240 int val2 ;
43241 int ecode2 = 0 ;
43242 PyObject * obj0 = 0 ;
43243 PyObject * obj1 = 0 ;
43244 char * kwnames[] = {
43245 (char *) "self",(char *) "id", NULL
43246 };
43247
43248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) SWIG_fail;
43249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43250 if (!SWIG_IsOK(res1)) {
43251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_DestroyId" "', expected argument " "1"" of type '" "wxMenu *""'");
43252 }
43253 arg1 = reinterpret_cast< wxMenu * >(argp1);
43254 ecode2 = SWIG_AsVal_int(obj1, &val2);
43255 if (!SWIG_IsOK(ecode2)) {
43256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_DestroyId" "', expected argument " "2"" of type '" "int""'");
43257 }
43258 arg2 = static_cast< int >(val2);
43259 {
43260 PyThreadState* __tstate = wxPyBeginAllowThreads();
43261 result = (bool)(arg1)->Destroy(arg2);
43262 wxPyEndAllowThreads(__tstate);
43263 if (PyErr_Occurred()) SWIG_fail;
43264 }
43265 {
43266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43267 }
43268 return resultobj;
43269fail:
43270 return NULL;
43271}
43272
43273
43274SWIGINTERN PyObject *_wrap_Menu_DestroyItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43275 PyObject *resultobj = 0;
43276 wxMenu *arg1 = (wxMenu *) 0 ;
43277 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
43278 bool result;
43279 void *argp1 = 0 ;
43280 int res1 = 0 ;
43281 void *argp2 = 0 ;
43282 int res2 = 0 ;
43283 PyObject * obj0 = 0 ;
43284 PyObject * obj1 = 0 ;
43285 char * kwnames[] = {
43286 (char *) "self",(char *) "item", NULL
43287 };
43288
43289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) SWIG_fail;
43290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43291 if (!SWIG_IsOK(res1)) {
43292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_DestroyItem" "', expected argument " "1"" of type '" "wxMenu *""'");
43293 }
43294 arg1 = reinterpret_cast< wxMenu * >(argp1);
43295 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuItem, 0 | 0 );
43296 if (!SWIG_IsOK(res2)) {
43297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_DestroyItem" "', expected argument " "2"" of type '" "wxMenuItem *""'");
43298 }
43299 arg2 = reinterpret_cast< wxMenuItem * >(argp2);
43300 {
43301 PyThreadState* __tstate = wxPyBeginAllowThreads();
43302 result = (bool)(arg1)->Destroy(arg2);
43303 wxPyEndAllowThreads(__tstate);
43304 if (PyErr_Occurred()) SWIG_fail;
43305 }
43306 {
43307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43308 }
43309 return resultobj;
43310fail:
43311 return NULL;
d55e5bfc
RD
43312}
43313
43314
1bd55598
RD
43315SWIGINTERN PyObject *_wrap_Menu_GetMenuItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43316 PyObject *resultobj = 0;
43317 wxMenu *arg1 = (wxMenu *) 0 ;
43318 size_t result;
43319 void *argp1 = 0 ;
43320 int res1 = 0 ;
43321 PyObject *swig_obj[1] ;
43322
43323 if (!args) SWIG_fail;
43324 swig_obj[0] = args;
43325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43326 if (!SWIG_IsOK(res1)) {
43327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetMenuItemCount" "', expected argument " "1"" of type '" "wxMenu const *""'");
43328 }
43329 arg1 = reinterpret_cast< wxMenu * >(argp1);
43330 {
43331 PyThreadState* __tstate = wxPyBeginAllowThreads();
43332 result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount();
43333 wxPyEndAllowThreads(__tstate);
43334 if (PyErr_Occurred()) SWIG_fail;
43335 }
43336 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
43337 return resultobj;
43338fail:
43339 return NULL;
d55e5bfc
RD
43340}
43341
43342
1bd55598
RD
43343SWIGINTERN PyObject *_wrap_Menu_GetMenuItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43344 PyObject *resultobj = 0;
43345 wxMenu *arg1 = (wxMenu *) 0 ;
43346 PyObject *result = 0 ;
43347 void *argp1 = 0 ;
43348 int res1 = 0 ;
43349 PyObject *swig_obj[1] ;
43350
43351 if (!args) SWIG_fail;
43352 swig_obj[0] = args;
43353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43354 if (!SWIG_IsOK(res1)) {
43355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetMenuItems" "', expected argument " "1"" of type '" "wxMenu *""'");
43356 }
43357 arg1 = reinterpret_cast< wxMenu * >(argp1);
43358 {
43359 PyThreadState* __tstate = wxPyBeginAllowThreads();
43360 result = (PyObject *)wxMenu_GetMenuItems(arg1);
43361 wxPyEndAllowThreads(__tstate);
43362 if (PyErr_Occurred()) SWIG_fail;
43363 }
43364 resultobj = result;
43365 return resultobj;
43366fail:
43367 return NULL;
43368}
43369
43370
43371SWIGINTERN PyObject *_wrap_Menu_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43372 PyObject *resultobj = 0;
43373 wxMenu *arg1 = (wxMenu *) 0 ;
43374 wxString *arg2 = 0 ;
43375 int result;
43376 void *argp1 = 0 ;
43377 int res1 = 0 ;
43378 bool temp2 = false ;
43379 PyObject * obj0 = 0 ;
43380 PyObject * obj1 = 0 ;
43381 char * kwnames[] = {
43382 (char *) "self",(char *) "item", NULL
43383 };
43384
43385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) SWIG_fail;
43386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43387 if (!SWIG_IsOK(res1)) {
43388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_FindItem" "', expected argument " "1"" of type '" "wxMenu const *""'");
43389 }
43390 arg1 = reinterpret_cast< wxMenu * >(argp1);
43391 {
43392 arg2 = wxString_in_helper(obj1);
43393 if (arg2 == NULL) SWIG_fail;
43394 temp2 = true;
43395 }
43396 {
43397 PyThreadState* __tstate = wxPyBeginAllowThreads();
43398 result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2);
43399 wxPyEndAllowThreads(__tstate);
43400 if (PyErr_Occurred()) SWIG_fail;
43401 }
43402 resultobj = SWIG_From_int(static_cast< int >(result));
43403 {
43404 if (temp2)
43405 delete arg2;
43406 }
43407 return resultobj;
43408fail:
43409 {
43410 if (temp2)
43411 delete arg2;
43412 }
43413 return NULL;
43414}
43415
43416
43417SWIGINTERN PyObject *_wrap_Menu_FindItemById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43418 PyObject *resultobj = 0;
43419 wxMenu *arg1 = (wxMenu *) 0 ;
43420 int arg2 ;
43421 wxMenuItem *result = 0 ;
43422 void *argp1 = 0 ;
43423 int res1 = 0 ;
43424 int val2 ;
43425 int ecode2 = 0 ;
43426 PyObject * obj0 = 0 ;
43427 PyObject * obj1 = 0 ;
43428 char * kwnames[] = {
43429 (char *) "self",(char *) "id", NULL
43430 };
43431
43432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) SWIG_fail;
43433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43434 if (!SWIG_IsOK(res1)) {
43435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_FindItemById" "', expected argument " "1"" of type '" "wxMenu const *""'");
43436 }
43437 arg1 = reinterpret_cast< wxMenu * >(argp1);
43438 ecode2 = SWIG_AsVal_int(obj1, &val2);
43439 if (!SWIG_IsOK(ecode2)) {
43440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_FindItemById" "', expected argument " "2"" of type '" "int""'");
43441 }
43442 arg2 = static_cast< int >(val2);
43443 {
43444 PyThreadState* __tstate = wxPyBeginAllowThreads();
43445 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2);
43446 wxPyEndAllowThreads(__tstate);
43447 if (PyErr_Occurred()) SWIG_fail;
43448 }
43449 {
43450 resultobj = wxPyMake_wxObject(result, (bool)0);
43451 }
43452 return resultobj;
43453fail:
43454 return NULL;
43455}
43456
43457
43458SWIGINTERN PyObject *_wrap_Menu_FindItemByPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43459 PyObject *resultobj = 0;
43460 wxMenu *arg1 = (wxMenu *) 0 ;
43461 size_t arg2 ;
43462 wxMenuItem *result = 0 ;
43463 void *argp1 = 0 ;
43464 int res1 = 0 ;
43465 size_t val2 ;
43466 int ecode2 = 0 ;
43467 PyObject * obj0 = 0 ;
43468 PyObject * obj1 = 0 ;
43469 char * kwnames[] = {
43470 (char *) "self",(char *) "position", NULL
43471 };
43472
43473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) SWIG_fail;
43474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43475 if (!SWIG_IsOK(res1)) {
43476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_FindItemByPosition" "', expected argument " "1"" of type '" "wxMenu const *""'");
43477 }
43478 arg1 = reinterpret_cast< wxMenu * >(argp1);
43479 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
43480 if (!SWIG_IsOK(ecode2)) {
43481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_FindItemByPosition" "', expected argument " "2"" of type '" "size_t""'");
43482 }
43483 arg2 = static_cast< size_t >(val2);
43484 {
43485 PyThreadState* __tstate = wxPyBeginAllowThreads();
43486 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2);
43487 wxPyEndAllowThreads(__tstate);
43488 if (PyErr_Occurred()) SWIG_fail;
43489 }
43490 {
43491 resultobj = wxPyMake_wxObject(result, (bool)0);
43492 }
43493 return resultobj;
43494fail:
43495 return NULL;
43496}
43497
43498
43499SWIGINTERN PyObject *_wrap_Menu_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43500 PyObject *resultobj = 0;
43501 wxMenu *arg1 = (wxMenu *) 0 ;
43502 int arg2 ;
43503 bool arg3 ;
43504 void *argp1 = 0 ;
43505 int res1 = 0 ;
43506 int val2 ;
43507 int ecode2 = 0 ;
43508 bool val3 ;
43509 int ecode3 = 0 ;
43510 PyObject * obj0 = 0 ;
43511 PyObject * obj1 = 0 ;
43512 PyObject * obj2 = 0 ;
43513 char * kwnames[] = {
43514 (char *) "self",(char *) "id",(char *) "enable", NULL
43515 };
43516
43517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43519 if (!SWIG_IsOK(res1)) {
43520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Enable" "', expected argument " "1"" of type '" "wxMenu *""'");
43521 }
43522 arg1 = reinterpret_cast< wxMenu * >(argp1);
43523 ecode2 = SWIG_AsVal_int(obj1, &val2);
43524 if (!SWIG_IsOK(ecode2)) {
43525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Enable" "', expected argument " "2"" of type '" "int""'");
43526 }
43527 arg2 = static_cast< int >(val2);
43528 ecode3 = SWIG_AsVal_bool(obj2, &val3);
43529 if (!SWIG_IsOK(ecode3)) {
43530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_Enable" "', expected argument " "3"" of type '" "bool""'");
43531 }
43532 arg3 = static_cast< bool >(val3);
43533 {
43534 PyThreadState* __tstate = wxPyBeginAllowThreads();
43535 (arg1)->Enable(arg2,arg3);
43536 wxPyEndAllowThreads(__tstate);
43537 if (PyErr_Occurred()) SWIG_fail;
43538 }
43539 resultobj = SWIG_Py_Void();
43540 return resultobj;
43541fail:
43542 return NULL;
43543}
43544
43545
43546SWIGINTERN PyObject *_wrap_Menu_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43547 PyObject *resultobj = 0;
43548 wxMenu *arg1 = (wxMenu *) 0 ;
43549 int arg2 ;
43550 bool result;
43551 void *argp1 = 0 ;
43552 int res1 = 0 ;
43553 int val2 ;
43554 int ecode2 = 0 ;
43555 PyObject * obj0 = 0 ;
43556 PyObject * obj1 = 0 ;
43557 char * kwnames[] = {
43558 (char *) "self",(char *) "id", NULL
43559 };
43560
43561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
43562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43563 if (!SWIG_IsOK(res1)) {
43564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_IsEnabled" "', expected argument " "1"" of type '" "wxMenu const *""'");
43565 }
43566 arg1 = reinterpret_cast< wxMenu * >(argp1);
43567 ecode2 = SWIG_AsVal_int(obj1, &val2);
43568 if (!SWIG_IsOK(ecode2)) {
43569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_IsEnabled" "', expected argument " "2"" of type '" "int""'");
43570 }
43571 arg2 = static_cast< int >(val2);
43572 {
43573 PyThreadState* __tstate = wxPyBeginAllowThreads();
43574 result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2);
43575 wxPyEndAllowThreads(__tstate);
43576 if (PyErr_Occurred()) SWIG_fail;
43577 }
43578 {
43579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43580 }
43581 return resultobj;
43582fail:
43583 return NULL;
43584}
43585
43586
43587SWIGINTERN PyObject *_wrap_Menu_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43588 PyObject *resultobj = 0;
43589 wxMenu *arg1 = (wxMenu *) 0 ;
43590 int arg2 ;
43591 bool arg3 ;
43592 void *argp1 = 0 ;
43593 int res1 = 0 ;
43594 int val2 ;
43595 int ecode2 = 0 ;
43596 bool val3 ;
43597 int ecode3 = 0 ;
43598 PyObject * obj0 = 0 ;
43599 PyObject * obj1 = 0 ;
43600 PyObject * obj2 = 0 ;
43601 char * kwnames[] = {
43602 (char *) "self",(char *) "id",(char *) "check", NULL
43603 };
43604
43605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43607 if (!SWIG_IsOK(res1)) {
43608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Check" "', expected argument " "1"" of type '" "wxMenu *""'");
43609 }
43610 arg1 = reinterpret_cast< wxMenu * >(argp1);
43611 ecode2 = SWIG_AsVal_int(obj1, &val2);
43612 if (!SWIG_IsOK(ecode2)) {
43613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Check" "', expected argument " "2"" of type '" "int""'");
43614 }
43615 arg2 = static_cast< int >(val2);
43616 ecode3 = SWIG_AsVal_bool(obj2, &val3);
43617 if (!SWIG_IsOK(ecode3)) {
43618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_Check" "', expected argument " "3"" of type '" "bool""'");
43619 }
43620 arg3 = static_cast< bool >(val3);
43621 {
43622 PyThreadState* __tstate = wxPyBeginAllowThreads();
43623 (arg1)->Check(arg2,arg3);
43624 wxPyEndAllowThreads(__tstate);
43625 if (PyErr_Occurred()) SWIG_fail;
43626 }
43627 resultobj = SWIG_Py_Void();
43628 return resultobj;
43629fail:
43630 return NULL;
43631}
43632
43633
43634SWIGINTERN PyObject *_wrap_Menu_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43635 PyObject *resultobj = 0;
43636 wxMenu *arg1 = (wxMenu *) 0 ;
43637 int arg2 ;
43638 bool result;
43639 void *argp1 = 0 ;
43640 int res1 = 0 ;
43641 int val2 ;
43642 int ecode2 = 0 ;
43643 PyObject * obj0 = 0 ;
43644 PyObject * obj1 = 0 ;
43645 char * kwnames[] = {
43646 (char *) "self",(char *) "id", NULL
43647 };
43648
43649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
43650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43651 if (!SWIG_IsOK(res1)) {
43652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_IsChecked" "', expected argument " "1"" of type '" "wxMenu const *""'");
43653 }
43654 arg1 = reinterpret_cast< wxMenu * >(argp1);
43655 ecode2 = SWIG_AsVal_int(obj1, &val2);
43656 if (!SWIG_IsOK(ecode2)) {
43657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_IsChecked" "', expected argument " "2"" of type '" "int""'");
43658 }
43659 arg2 = static_cast< int >(val2);
43660 {
43661 PyThreadState* __tstate = wxPyBeginAllowThreads();
43662 result = (bool)((wxMenu const *)arg1)->IsChecked(arg2);
43663 wxPyEndAllowThreads(__tstate);
43664 if (PyErr_Occurred()) SWIG_fail;
43665 }
43666 {
43667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43668 }
43669 return resultobj;
43670fail:
43671 return NULL;
43672}
43673
43674
43675SWIGINTERN PyObject *_wrap_Menu_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43676 PyObject *resultobj = 0;
43677 wxMenu *arg1 = (wxMenu *) 0 ;
43678 int arg2 ;
43679 wxString *arg3 = 0 ;
43680 void *argp1 = 0 ;
43681 int res1 = 0 ;
43682 int val2 ;
43683 int ecode2 = 0 ;
43684 bool temp3 = false ;
43685 PyObject * obj0 = 0 ;
43686 PyObject * obj1 = 0 ;
43687 PyObject * obj2 = 0 ;
43688 char * kwnames[] = {
43689 (char *) "self",(char *) "id",(char *) "label", NULL
43690 };
43691
43692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43694 if (!SWIG_IsOK(res1)) {
43695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetLabel" "', expected argument " "1"" of type '" "wxMenu *""'");
43696 }
43697 arg1 = reinterpret_cast< wxMenu * >(argp1);
43698 ecode2 = SWIG_AsVal_int(obj1, &val2);
43699 if (!SWIG_IsOK(ecode2)) {
43700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_SetLabel" "', expected argument " "2"" of type '" "int""'");
43701 }
43702 arg2 = static_cast< int >(val2);
43703 {
43704 arg3 = wxString_in_helper(obj2);
43705 if (arg3 == NULL) SWIG_fail;
43706 temp3 = true;
43707 }
43708 {
43709 PyThreadState* __tstate = wxPyBeginAllowThreads();
43710 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
43711 wxPyEndAllowThreads(__tstate);
43712 if (PyErr_Occurred()) SWIG_fail;
43713 }
43714 resultobj = SWIG_Py_Void();
43715 {
43716 if (temp3)
43717 delete arg3;
43718 }
43719 return resultobj;
43720fail:
43721 {
43722 if (temp3)
43723 delete arg3;
43724 }
43725 return NULL;
43726}
43727
43728
43729SWIGINTERN PyObject *_wrap_Menu_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43730 PyObject *resultobj = 0;
43731 wxMenu *arg1 = (wxMenu *) 0 ;
43732 int arg2 ;
43733 wxString result;
43734 void *argp1 = 0 ;
43735 int res1 = 0 ;
43736 int val2 ;
43737 int ecode2 = 0 ;
43738 PyObject * obj0 = 0 ;
43739 PyObject * obj1 = 0 ;
43740 char * kwnames[] = {
43741 (char *) "self",(char *) "id", NULL
43742 };
43743
43744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
43745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43746 if (!SWIG_IsOK(res1)) {
43747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetLabel" "', expected argument " "1"" of type '" "wxMenu const *""'");
43748 }
43749 arg1 = reinterpret_cast< wxMenu * >(argp1);
43750 ecode2 = SWIG_AsVal_int(obj1, &val2);
43751 if (!SWIG_IsOK(ecode2)) {
43752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_GetLabel" "', expected argument " "2"" of type '" "int""'");
43753 }
43754 arg2 = static_cast< int >(val2);
43755 {
43756 PyThreadState* __tstate = wxPyBeginAllowThreads();
43757 result = ((wxMenu const *)arg1)->GetLabel(arg2);
43758 wxPyEndAllowThreads(__tstate);
43759 if (PyErr_Occurred()) SWIG_fail;
43760 }
43761 {
43762#if wxUSE_UNICODE
43763 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43764#else
43765 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43766#endif
43767 }
43768 return resultobj;
43769fail:
43770 return NULL;
43771}
43772
43773
43774SWIGINTERN PyObject *_wrap_Menu_SetHelpString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43775 PyObject *resultobj = 0;
43776 wxMenu *arg1 = (wxMenu *) 0 ;
43777 int arg2 ;
43778 wxString *arg3 = 0 ;
43779 void *argp1 = 0 ;
43780 int res1 = 0 ;
43781 int val2 ;
43782 int ecode2 = 0 ;
43783 bool temp3 = false ;
43784 PyObject * obj0 = 0 ;
43785 PyObject * obj1 = 0 ;
43786 PyObject * obj2 = 0 ;
43787 char * kwnames[] = {
43788 (char *) "self",(char *) "id",(char *) "helpString", NULL
43789 };
43790
43791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43793 if (!SWIG_IsOK(res1)) {
43794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetHelpString" "', expected argument " "1"" of type '" "wxMenu *""'");
43795 }
43796 arg1 = reinterpret_cast< wxMenu * >(argp1);
43797 ecode2 = SWIG_AsVal_int(obj1, &val2);
43798 if (!SWIG_IsOK(ecode2)) {
43799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_SetHelpString" "', expected argument " "2"" of type '" "int""'");
43800 }
43801 arg2 = static_cast< int >(val2);
43802 {
43803 arg3 = wxString_in_helper(obj2);
43804 if (arg3 == NULL) SWIG_fail;
43805 temp3 = true;
43806 }
43807 {
43808 PyThreadState* __tstate = wxPyBeginAllowThreads();
43809 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
43810 wxPyEndAllowThreads(__tstate);
43811 if (PyErr_Occurred()) SWIG_fail;
43812 }
43813 resultobj = SWIG_Py_Void();
43814 {
43815 if (temp3)
43816 delete arg3;
43817 }
43818 return resultobj;
43819fail:
43820 {
43821 if (temp3)
43822 delete arg3;
43823 }
43824 return NULL;
43825}
43826
43827
43828SWIGINTERN PyObject *_wrap_Menu_GetHelpString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43829 PyObject *resultobj = 0;
43830 wxMenu *arg1 = (wxMenu *) 0 ;
43831 int arg2 ;
43832 wxString result;
43833 void *argp1 = 0 ;
43834 int res1 = 0 ;
43835 int val2 ;
43836 int ecode2 = 0 ;
43837 PyObject * obj0 = 0 ;
43838 PyObject * obj1 = 0 ;
43839 char * kwnames[] = {
43840 (char *) "self",(char *) "id", NULL
43841 };
43842
43843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) SWIG_fail;
43844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43845 if (!SWIG_IsOK(res1)) {
43846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetHelpString" "', expected argument " "1"" of type '" "wxMenu const *""'");
43847 }
43848 arg1 = reinterpret_cast< wxMenu * >(argp1);
43849 ecode2 = SWIG_AsVal_int(obj1, &val2);
43850 if (!SWIG_IsOK(ecode2)) {
43851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_GetHelpString" "', expected argument " "2"" of type '" "int""'");
43852 }
43853 arg2 = static_cast< int >(val2);
43854 {
43855 PyThreadState* __tstate = wxPyBeginAllowThreads();
43856 result = ((wxMenu const *)arg1)->GetHelpString(arg2);
43857 wxPyEndAllowThreads(__tstate);
43858 if (PyErr_Occurred()) SWIG_fail;
43859 }
43860 {
43861#if wxUSE_UNICODE
43862 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43863#else
43864 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43865#endif
43866 }
43867 return resultobj;
43868fail:
43869 return NULL;
43870}
43871
43872
43873SWIGINTERN PyObject *_wrap_Menu_SetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43874 PyObject *resultobj = 0;
43875 wxMenu *arg1 = (wxMenu *) 0 ;
43876 wxString *arg2 = 0 ;
43877 void *argp1 = 0 ;
43878 int res1 = 0 ;
43879 bool temp2 = false ;
43880 PyObject * obj0 = 0 ;
43881 PyObject * obj1 = 0 ;
43882 char * kwnames[] = {
43883 (char *) "self",(char *) "title", NULL
43884 };
43885
43886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) SWIG_fail;
43887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43888 if (!SWIG_IsOK(res1)) {
43889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetTitle" "', expected argument " "1"" of type '" "wxMenu *""'");
43890 }
43891 arg1 = reinterpret_cast< wxMenu * >(argp1);
43892 {
43893 arg2 = wxString_in_helper(obj1);
43894 if (arg2 == NULL) SWIG_fail;
43895 temp2 = true;
43896 }
43897 {
43898 PyThreadState* __tstate = wxPyBeginAllowThreads();
43899 (arg1)->SetTitle((wxString const &)*arg2);
43900 wxPyEndAllowThreads(__tstate);
43901 if (PyErr_Occurred()) SWIG_fail;
43902 }
43903 resultobj = SWIG_Py_Void();
43904 {
43905 if (temp2)
43906 delete arg2;
43907 }
43908 return resultobj;
43909fail:
43910 {
43911 if (temp2)
43912 delete arg2;
43913 }
43914 return NULL;
d55e5bfc
RD
43915}
43916
43917
1bd55598
RD
43918SWIGINTERN PyObject *_wrap_Menu_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43919 PyObject *resultobj = 0;
43920 wxMenu *arg1 = (wxMenu *) 0 ;
43921 wxString result;
43922 void *argp1 = 0 ;
43923 int res1 = 0 ;
43924 PyObject *swig_obj[1] ;
43925
43926 if (!args) SWIG_fail;
43927 swig_obj[0] = args;
43928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43929 if (!SWIG_IsOK(res1)) {
43930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetTitle" "', expected argument " "1"" of type '" "wxMenu const *""'");
43931 }
43932 arg1 = reinterpret_cast< wxMenu * >(argp1);
43933 {
43934 PyThreadState* __tstate = wxPyBeginAllowThreads();
43935 result = ((wxMenu const *)arg1)->GetTitle();
43936 wxPyEndAllowThreads(__tstate);
43937 if (PyErr_Occurred()) SWIG_fail;
43938 }
43939 {
d55e5bfc 43940#if wxUSE_UNICODE
1bd55598 43941 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 43942#else
1bd55598 43943 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 43944#endif
1bd55598
RD
43945 }
43946 return resultobj;
43947fail:
43948 return NULL;
43949}
43950
43951
43952SWIGINTERN PyObject *_wrap_Menu_SetEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43953 PyObject *resultobj = 0;
43954 wxMenu *arg1 = (wxMenu *) 0 ;
43955 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
43956 void *argp1 = 0 ;
43957 int res1 = 0 ;
43958 void *argp2 = 0 ;
43959 int res2 = 0 ;
43960 PyObject * obj0 = 0 ;
43961 PyObject * obj1 = 0 ;
43962 char * kwnames[] = {
43963 (char *) "self",(char *) "handler", NULL
43964 };
43965
43966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) SWIG_fail;
43967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
43968 if (!SWIG_IsOK(res1)) {
43969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetEventHandler" "', expected argument " "1"" of type '" "wxMenu *""'");
43970 }
43971 arg1 = reinterpret_cast< wxMenu * >(argp1);
43972 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
43973 if (!SWIG_IsOK(res2)) {
43974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_SetEventHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
43975 }
43976 arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
43977 {
43978 PyThreadState* __tstate = wxPyBeginAllowThreads();
43979 (arg1)->SetEventHandler(arg2);
43980 wxPyEndAllowThreads(__tstate);
43981 if (PyErr_Occurred()) SWIG_fail;
43982 }
43983 resultobj = SWIG_Py_Void();
43984 return resultobj;
43985fail:
43986 return NULL;
d55e5bfc
RD
43987}
43988
43989
1bd55598
RD
43990SWIGINTERN PyObject *_wrap_Menu_GetEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43991 PyObject *resultobj = 0;
43992 wxMenu *arg1 = (wxMenu *) 0 ;
43993 wxEvtHandler *result = 0 ;
43994 void *argp1 = 0 ;
43995 int res1 = 0 ;
43996 PyObject *swig_obj[1] ;
43997
43998 if (!args) SWIG_fail;
43999 swig_obj[0] = args;
44000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44001 if (!SWIG_IsOK(res1)) {
44002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetEventHandler" "', expected argument " "1"" of type '" "wxMenu const *""'");
44003 }
44004 arg1 = reinterpret_cast< wxMenu * >(argp1);
44005 {
44006 PyThreadState* __tstate = wxPyBeginAllowThreads();
44007 result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler();
44008 wxPyEndAllowThreads(__tstate);
44009 if (PyErr_Occurred()) SWIG_fail;
44010 }
44011 {
44012 resultobj = wxPyMake_wxObject(result, 0);
44013 }
44014 return resultobj;
44015fail:
44016 return NULL;
44017}
44018
44019
44020SWIGINTERN PyObject *_wrap_Menu_SetInvokingWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44021 PyObject *resultobj = 0;
44022 wxMenu *arg1 = (wxMenu *) 0 ;
44023 wxWindow *arg2 = (wxWindow *) 0 ;
44024 void *argp1 = 0 ;
44025 int res1 = 0 ;
44026 void *argp2 = 0 ;
44027 int res2 = 0 ;
44028 PyObject * obj0 = 0 ;
44029 PyObject * obj1 = 0 ;
44030 char * kwnames[] = {
44031 (char *) "self",(char *) "win", NULL
44032 };
44033
44034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) SWIG_fail;
44035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44036 if (!SWIG_IsOK(res1)) {
44037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetInvokingWindow" "', expected argument " "1"" of type '" "wxMenu *""'");
44038 }
44039 arg1 = reinterpret_cast< wxMenu * >(argp1);
44040 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44041 if (!SWIG_IsOK(res2)) {
44042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_SetInvokingWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
44043 }
44044 arg2 = reinterpret_cast< wxWindow * >(argp2);
44045 {
44046 PyThreadState* __tstate = wxPyBeginAllowThreads();
44047 (arg1)->SetInvokingWindow(arg2);
44048 wxPyEndAllowThreads(__tstate);
44049 if (PyErr_Occurred()) SWIG_fail;
44050 }
44051 resultobj = SWIG_Py_Void();
44052 return resultobj;
44053fail:
44054 return NULL;
d55e5bfc
RD
44055}
44056
44057
1bd55598
RD
44058SWIGINTERN PyObject *_wrap_Menu_GetInvokingWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44059 PyObject *resultobj = 0;
44060 wxMenu *arg1 = (wxMenu *) 0 ;
44061 wxWindow *result = 0 ;
44062 void *argp1 = 0 ;
44063 int res1 = 0 ;
44064 PyObject *swig_obj[1] ;
44065
44066 if (!args) SWIG_fail;
44067 swig_obj[0] = args;
44068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44069 if (!SWIG_IsOK(res1)) {
44070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetInvokingWindow" "', expected argument " "1"" of type '" "wxMenu const *""'");
44071 }
44072 arg1 = reinterpret_cast< wxMenu * >(argp1);
44073 {
44074 PyThreadState* __tstate = wxPyBeginAllowThreads();
44075 result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow();
44076 wxPyEndAllowThreads(__tstate);
44077 if (PyErr_Occurred()) SWIG_fail;
44078 }
44079 {
44080 resultobj = wxPyMake_wxObject(result, 0);
44081 }
44082 return resultobj;
44083fail:
44084 return NULL;
d55e5bfc
RD
44085}
44086
44087
1bd55598
RD
44088SWIGINTERN PyObject *_wrap_Menu_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44089 PyObject *resultobj = 0;
44090 wxMenu *arg1 = (wxMenu *) 0 ;
44091 long result;
44092 void *argp1 = 0 ;
44093 int res1 = 0 ;
44094 PyObject *swig_obj[1] ;
44095
44096 if (!args) SWIG_fail;
44097 swig_obj[0] = args;
44098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44099 if (!SWIG_IsOK(res1)) {
44100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetStyle" "', expected argument " "1"" of type '" "wxMenu const *""'");
44101 }
44102 arg1 = reinterpret_cast< wxMenu * >(argp1);
44103 {
44104 PyThreadState* __tstate = wxPyBeginAllowThreads();
44105 result = (long)((wxMenu const *)arg1)->GetStyle();
44106 wxPyEndAllowThreads(__tstate);
44107 if (PyErr_Occurred()) SWIG_fail;
44108 }
44109 resultobj = SWIG_From_long(static_cast< long >(result));
44110 return resultobj;
44111fail:
44112 return NULL;
44113}
44114
44115
44116SWIGINTERN PyObject *_wrap_Menu_UpdateUI(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44117 PyObject *resultobj = 0;
44118 wxMenu *arg1 = (wxMenu *) 0 ;
44119 wxEvtHandler *arg2 = (wxEvtHandler *) NULL ;
44120 void *argp1 = 0 ;
44121 int res1 = 0 ;
44122 void *argp2 = 0 ;
44123 int res2 = 0 ;
44124 PyObject * obj0 = 0 ;
44125 PyObject * obj1 = 0 ;
44126 char * kwnames[] = {
44127 (char *) "self",(char *) "source", NULL
44128 };
44129
44130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) SWIG_fail;
44131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44132 if (!SWIG_IsOK(res1)) {
44133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_UpdateUI" "', expected argument " "1"" of type '" "wxMenu *""'");
44134 }
44135 arg1 = reinterpret_cast< wxMenu * >(argp1);
44136 if (obj1) {
44137 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
44138 if (!SWIG_IsOK(res2)) {
44139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_UpdateUI" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
d55e5bfc 44140 }
1bd55598
RD
44141 arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
44142 }
44143 {
44144 PyThreadState* __tstate = wxPyBeginAllowThreads();
44145 (arg1)->UpdateUI(arg2);
44146 wxPyEndAllowThreads(__tstate);
44147 if (PyErr_Occurred()) SWIG_fail;
44148 }
44149 resultobj = SWIG_Py_Void();
44150 return resultobj;
44151fail:
44152 return NULL;
d55e5bfc
RD
44153}
44154
44155
1bd55598
RD
44156SWIGINTERN PyObject *_wrap_Menu_GetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44157 PyObject *resultobj = 0;
44158 wxMenu *arg1 = (wxMenu *) 0 ;
44159 wxMenuBar *result = 0 ;
44160 void *argp1 = 0 ;
44161 int res1 = 0 ;
44162 PyObject *swig_obj[1] ;
44163
44164 if (!args) SWIG_fail;
44165 swig_obj[0] = args;
44166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44167 if (!SWIG_IsOK(res1)) {
44168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetMenuBar" "', expected argument " "1"" of type '" "wxMenu const *""'");
44169 }
44170 arg1 = reinterpret_cast< wxMenu * >(argp1);
44171 {
44172 PyThreadState* __tstate = wxPyBeginAllowThreads();
44173 result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar();
44174 wxPyEndAllowThreads(__tstate);
44175 if (PyErr_Occurred()) SWIG_fail;
44176 }
44177 {
44178 resultobj = wxPyMake_wxObject(result, (bool)0);
44179 }
44180 return resultobj;
44181fail:
44182 return NULL;
44183}
44184
44185
44186SWIGINTERN PyObject *_wrap_Menu_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44187 PyObject *resultobj = 0;
44188 wxMenu *arg1 = (wxMenu *) 0 ;
44189 wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ;
44190 void *argp1 = 0 ;
44191 int res1 = 0 ;
44192 void *argp2 = 0 ;
44193 int res2 = 0 ;
44194 PyObject * obj0 = 0 ;
44195 PyObject * obj1 = 0 ;
44196 char * kwnames[] = {
44197 (char *) "self",(char *) "menubar", NULL
44198 };
44199
44200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
44201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44202 if (!SWIG_IsOK(res1)) {
44203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Attach" "', expected argument " "1"" of type '" "wxMenu *""'");
44204 }
44205 arg1 = reinterpret_cast< wxMenu * >(argp1);
44206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuBarBase, 0 | 0 );
44207 if (!SWIG_IsOK(res2)) {
44208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_Attach" "', expected argument " "2"" of type '" "wxMenuBarBase *""'");
44209 }
44210 arg2 = reinterpret_cast< wxMenuBarBase * >(argp2);
44211 {
44212 PyThreadState* __tstate = wxPyBeginAllowThreads();
44213 (arg1)->Attach(arg2);
44214 wxPyEndAllowThreads(__tstate);
44215 if (PyErr_Occurred()) SWIG_fail;
44216 }
44217 resultobj = SWIG_Py_Void();
44218 return resultobj;
44219fail:
44220 return NULL;
d55e5bfc
RD
44221}
44222
44223
1bd55598
RD
44224SWIGINTERN PyObject *_wrap_Menu_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44225 PyObject *resultobj = 0;
44226 wxMenu *arg1 = (wxMenu *) 0 ;
44227 void *argp1 = 0 ;
44228 int res1 = 0 ;
44229 PyObject *swig_obj[1] ;
44230
44231 if (!args) SWIG_fail;
44232 swig_obj[0] = args;
44233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44234 if (!SWIG_IsOK(res1)) {
44235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Detach" "', expected argument " "1"" of type '" "wxMenu *""'");
44236 }
44237 arg1 = reinterpret_cast< wxMenu * >(argp1);
44238 {
44239 PyThreadState* __tstate = wxPyBeginAllowThreads();
44240 (arg1)->Detach();
44241 wxPyEndAllowThreads(__tstate);
44242 if (PyErr_Occurred()) SWIG_fail;
44243 }
44244 resultobj = SWIG_Py_Void();
44245 return resultobj;
44246fail:
44247 return NULL;
d55e5bfc
RD
44248}
44249
44250
1bd55598
RD
44251SWIGINTERN PyObject *_wrap_Menu_IsAttached(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44252 PyObject *resultobj = 0;
44253 wxMenu *arg1 = (wxMenu *) 0 ;
44254 bool result;
44255 void *argp1 = 0 ;
44256 int res1 = 0 ;
44257 PyObject *swig_obj[1] ;
44258
44259 if (!args) SWIG_fail;
44260 swig_obj[0] = args;
44261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44262 if (!SWIG_IsOK(res1)) {
44263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_IsAttached" "', expected argument " "1"" of type '" "wxMenu const *""'");
44264 }
44265 arg1 = reinterpret_cast< wxMenu * >(argp1);
44266 {
44267 PyThreadState* __tstate = wxPyBeginAllowThreads();
44268 result = (bool)((wxMenu const *)arg1)->IsAttached();
44269 wxPyEndAllowThreads(__tstate);
44270 if (PyErr_Occurred()) SWIG_fail;
44271 }
44272 {
44273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44274 }
44275 return resultobj;
44276fail:
44277 return NULL;
44278}
44279
44280
44281SWIGINTERN PyObject *_wrap_Menu_SetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44282 PyObject *resultobj = 0;
44283 wxMenu *arg1 = (wxMenu *) 0 ;
44284 wxMenu *arg2 = (wxMenu *) 0 ;
44285 void *argp1 = 0 ;
44286 int res1 = 0 ;
44287 void *argp2 = 0 ;
44288 int res2 = 0 ;
44289 PyObject * obj0 = 0 ;
44290 PyObject * obj1 = 0 ;
44291 char * kwnames[] = {
44292 (char *) "self",(char *) "parent", NULL
44293 };
44294
44295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) SWIG_fail;
44296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44297 if (!SWIG_IsOK(res1)) {
44298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetParent" "', expected argument " "1"" of type '" "wxMenu *""'");
44299 }
44300 arg1 = reinterpret_cast< wxMenu * >(argp1);
44301 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
44302 if (!SWIG_IsOK(res2)) {
44303 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_SetParent" "', expected argument " "2"" of type '" "wxMenu *""'");
44304 }
44305 arg2 = reinterpret_cast< wxMenu * >(argp2);
44306 {
44307 PyThreadState* __tstate = wxPyBeginAllowThreads();
44308 (arg1)->SetParent(arg2);
44309 wxPyEndAllowThreads(__tstate);
44310 if (PyErr_Occurred()) SWIG_fail;
44311 }
44312 resultobj = SWIG_Py_Void();
44313 return resultobj;
44314fail:
44315 return NULL;
d55e5bfc
RD
44316}
44317
44318
1bd55598
RD
44319SWIGINTERN PyObject *_wrap_Menu_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44320 PyObject *resultobj = 0;
44321 wxMenu *arg1 = (wxMenu *) 0 ;
44322 wxMenu *result = 0 ;
44323 void *argp1 = 0 ;
44324 int res1 = 0 ;
44325 PyObject *swig_obj[1] ;
44326
44327 if (!args) SWIG_fail;
44328 swig_obj[0] = args;
44329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
44330 if (!SWIG_IsOK(res1)) {
44331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetParent" "', expected argument " "1"" of type '" "wxMenu const *""'");
44332 }
44333 arg1 = reinterpret_cast< wxMenu * >(argp1);
44334 {
44335 PyThreadState* __tstate = wxPyBeginAllowThreads();
44336 result = (wxMenu *)((wxMenu const *)arg1)->GetParent();
44337 wxPyEndAllowThreads(__tstate);
44338 if (PyErr_Occurred()) SWIG_fail;
44339 }
44340 {
44341 resultobj = wxPyMake_wxObject(result, 0);
44342 }
44343 return resultobj;
44344fail:
44345 return NULL;
d55e5bfc
RD
44346}
44347
44348
1bd55598
RD
44349SWIGINTERN PyObject *Menu_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44350 PyObject *obj;
44351 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44352 SWIG_TypeNewClientData(SWIGTYPE_p_wxMenu, SWIG_NewClientData(obj));
44353 return SWIG_Py_Void();
d55e5bfc 44354}
1bd55598
RD
44355
44356SWIGINTERN PyObject *Menu_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44357 return SWIG_Python_InitShadowInstance(args);
44358}
44359
44360SWIGINTERN PyObject *_wrap_new_MenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44361 PyObject *resultobj = 0;
44362 long arg1 = (long) 0 ;
44363 wxMenuBar *result = 0 ;
44364 long val1 ;
44365 int ecode1 = 0 ;
44366 PyObject * obj0 = 0 ;
44367 char * kwnames[] = {
44368 (char *) "style", NULL
44369 };
44370
44371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) SWIG_fail;
44372 if (obj0) {
44373 ecode1 = SWIG_AsVal_long(obj0, &val1);
44374 if (!SWIG_IsOK(ecode1)) {
44375 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MenuBar" "', expected argument " "1"" of type '" "long""'");
44376 }
44377 arg1 = static_cast< long >(val1);
44378 }
44379 {
44380 if (!wxPyCheckForApp()) SWIG_fail;
44381 PyThreadState* __tstate = wxPyBeginAllowThreads();
44382 result = (wxMenuBar *)new wxMenuBar(arg1);
44383 wxPyEndAllowThreads(__tstate);
44384 if (PyErr_Occurred()) SWIG_fail;
44385 }
44386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMenuBar, SWIG_POINTER_NEW | 0 );
44387 return resultobj;
44388fail:
44389 return NULL;
44390}
44391
44392
44393SWIGINTERN PyObject *_wrap_MenuBar_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44394 PyObject *resultobj = 0;
44395 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44396 wxMenu *arg2 = (wxMenu *) 0 ;
44397 wxString *arg3 = 0 ;
44398 bool result;
44399 void *argp1 = 0 ;
44400 int res1 = 0 ;
44401 void *argp2 = 0 ;
44402 int res2 = 0 ;
44403 bool temp3 = false ;
44404 PyObject * obj0 = 0 ;
44405 PyObject * obj1 = 0 ;
44406 PyObject * obj2 = 0 ;
44407 char * kwnames[] = {
44408 (char *) "self",(char *) "menu",(char *) "title", NULL
44409 };
44410
44411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
44412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44413 if (!SWIG_IsOK(res1)) {
44414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Append" "', expected argument " "1"" of type '" "wxMenuBar *""'");
44415 }
44416 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44417 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
44418 if (!SWIG_IsOK(res2)) {
44419 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuBar_Append" "', expected argument " "2"" of type '" "wxMenu *""'");
44420 }
44421 arg2 = reinterpret_cast< wxMenu * >(argp2);
44422 {
44423 arg3 = wxString_in_helper(obj2);
44424 if (arg3 == NULL) SWIG_fail;
44425 temp3 = true;
44426 }
44427 {
44428 PyThreadState* __tstate = wxPyBeginAllowThreads();
44429 result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3);
44430 wxPyEndAllowThreads(__tstate);
44431 if (PyErr_Occurred()) SWIG_fail;
44432 }
44433 {
44434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44435 }
44436 {
44437 if (temp3)
44438 delete arg3;
44439 }
44440 return resultobj;
44441fail:
44442 {
44443 if (temp3)
44444 delete arg3;
44445 }
44446 return NULL;
44447}
44448
44449
44450SWIGINTERN PyObject *_wrap_MenuBar_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44451 PyObject *resultobj = 0;
44452 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44453 size_t arg2 ;
44454 wxMenu *arg3 = (wxMenu *) 0 ;
44455 wxString *arg4 = 0 ;
44456 bool result;
44457 void *argp1 = 0 ;
44458 int res1 = 0 ;
44459 size_t val2 ;
44460 int ecode2 = 0 ;
44461 void *argp3 = 0 ;
44462 int res3 = 0 ;
44463 bool temp4 = false ;
44464 PyObject * obj0 = 0 ;
44465 PyObject * obj1 = 0 ;
44466 PyObject * obj2 = 0 ;
44467 PyObject * obj3 = 0 ;
44468 char * kwnames[] = {
44469 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
44470 };
44471
44472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44474 if (!SWIG_IsOK(res1)) {
44475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Insert" "', expected argument " "1"" of type '" "wxMenuBar *""'");
44476 }
44477 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44478 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44479 if (!SWIG_IsOK(ecode2)) {
44480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_Insert" "', expected argument " "2"" of type '" "size_t""'");
44481 }
44482 arg2 = static_cast< size_t >(val2);
44483 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxMenu, 0 | 0 );
44484 if (!SWIG_IsOK(res3)) {
44485 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MenuBar_Insert" "', expected argument " "3"" of type '" "wxMenu *""'");
44486 }
44487 arg3 = reinterpret_cast< wxMenu * >(argp3);
44488 {
44489 arg4 = wxString_in_helper(obj3);
44490 if (arg4 == NULL) SWIG_fail;
44491 temp4 = true;
44492 }
44493 {
44494 PyThreadState* __tstate = wxPyBeginAllowThreads();
44495 result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4);
44496 wxPyEndAllowThreads(__tstate);
44497 if (PyErr_Occurred()) SWIG_fail;
44498 }
44499 {
44500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44501 }
44502 {
44503 if (temp4)
44504 delete arg4;
44505 }
44506 return resultobj;
44507fail:
44508 {
44509 if (temp4)
44510 delete arg4;
44511 }
44512 return NULL;
d55e5bfc
RD
44513}
44514
44515
1bd55598
RD
44516SWIGINTERN PyObject *_wrap_MenuBar_GetMenuCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44517 PyObject *resultobj = 0;
44518 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44519 size_t result;
44520 void *argp1 = 0 ;
44521 int res1 = 0 ;
44522 PyObject *swig_obj[1] ;
44523
44524 if (!args) SWIG_fail;
44525 swig_obj[0] = args;
44526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44527 if (!SWIG_IsOK(res1)) {
44528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetMenuCount" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
44529 }
44530 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44531 {
44532 PyThreadState* __tstate = wxPyBeginAllowThreads();
44533 result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount();
44534 wxPyEndAllowThreads(__tstate);
44535 if (PyErr_Occurred()) SWIG_fail;
44536 }
44537 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
44538 return resultobj;
44539fail:
44540 return NULL;
44541}
44542
44543
44544SWIGINTERN PyObject *_wrap_MenuBar_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44545 PyObject *resultobj = 0;
44546 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44547 size_t arg2 ;
44548 wxMenu *result = 0 ;
44549 void *argp1 = 0 ;
44550 int res1 = 0 ;
44551 size_t val2 ;
44552 int ecode2 = 0 ;
44553 PyObject * obj0 = 0 ;
44554 PyObject * obj1 = 0 ;
44555 char * kwnames[] = {
44556 (char *) "self",(char *) "pos", NULL
44557 };
44558
44559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
44560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44561 if (!SWIG_IsOK(res1)) {
44562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetMenu" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
44563 }
44564 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44565 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44566 if (!SWIG_IsOK(ecode2)) {
44567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_GetMenu" "', expected argument " "2"" of type '" "size_t""'");
44568 }
44569 arg2 = static_cast< size_t >(val2);
44570 {
44571 PyThreadState* __tstate = wxPyBeginAllowThreads();
44572 result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2);
44573 wxPyEndAllowThreads(__tstate);
44574 if (PyErr_Occurred()) SWIG_fail;
44575 }
44576 {
44577 resultobj = wxPyMake_wxObject(result, 0);
44578 }
44579 return resultobj;
44580fail:
44581 return NULL;
44582}
44583
44584
44585SWIGINTERN PyObject *_wrap_MenuBar_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44586 PyObject *resultobj = 0;
44587 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44588 size_t arg2 ;
44589 wxMenu *arg3 = (wxMenu *) 0 ;
44590 wxString *arg4 = 0 ;
44591 wxMenu *result = 0 ;
44592 void *argp1 = 0 ;
44593 int res1 = 0 ;
44594 size_t val2 ;
44595 int ecode2 = 0 ;
44596 void *argp3 = 0 ;
44597 int res3 = 0 ;
44598 bool temp4 = false ;
44599 PyObject * obj0 = 0 ;
44600 PyObject * obj1 = 0 ;
44601 PyObject * obj2 = 0 ;
44602 PyObject * obj3 = 0 ;
44603 char * kwnames[] = {
44604 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
44605 };
44606
44607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44609 if (!SWIG_IsOK(res1)) {
44610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Replace" "', expected argument " "1"" of type '" "wxMenuBar *""'");
44611 }
44612 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44613 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44614 if (!SWIG_IsOK(ecode2)) {
44615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_Replace" "', expected argument " "2"" of type '" "size_t""'");
44616 }
44617 arg2 = static_cast< size_t >(val2);
44618 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxMenu, 0 | 0 );
44619 if (!SWIG_IsOK(res3)) {
44620 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MenuBar_Replace" "', expected argument " "3"" of type '" "wxMenu *""'");
44621 }
44622 arg3 = reinterpret_cast< wxMenu * >(argp3);
44623 {
44624 arg4 = wxString_in_helper(obj3);
44625 if (arg4 == NULL) SWIG_fail;
44626 temp4 = true;
44627 }
44628 {
44629 PyThreadState* __tstate = wxPyBeginAllowThreads();
44630 result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
44631 wxPyEndAllowThreads(__tstate);
44632 if (PyErr_Occurred()) SWIG_fail;
44633 }
44634 {
44635 resultobj = wxPyMake_wxObject(result, 0);
44636 }
44637 {
44638 if (temp4)
44639 delete arg4;
44640 }
44641 return resultobj;
44642fail:
44643 {
44644 if (temp4)
44645 delete arg4;
44646 }
44647 return NULL;
44648}
44649
44650
44651SWIGINTERN PyObject *_wrap_MenuBar_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44652 PyObject *resultobj = 0;
44653 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44654 size_t arg2 ;
44655 wxMenu *result = 0 ;
44656 void *argp1 = 0 ;
44657 int res1 = 0 ;
44658 size_t val2 ;
44659 int ecode2 = 0 ;
44660 PyObject * obj0 = 0 ;
44661 PyObject * obj1 = 0 ;
44662 char * kwnames[] = {
44663 (char *) "self",(char *) "pos", NULL
44664 };
44665
44666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
44667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44668 if (!SWIG_IsOK(res1)) {
44669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Remove" "', expected argument " "1"" of type '" "wxMenuBar *""'");
44670 }
44671 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44672 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44673 if (!SWIG_IsOK(ecode2)) {
44674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_Remove" "', expected argument " "2"" of type '" "size_t""'");
44675 }
44676 arg2 = static_cast< size_t >(val2);
44677 {
44678 PyThreadState* __tstate = wxPyBeginAllowThreads();
44679 result = (wxMenu *)(arg1)->Remove(arg2);
44680 wxPyEndAllowThreads(__tstate);
44681 if (PyErr_Occurred()) SWIG_fail;
44682 }
44683 {
44684 resultobj = wxPyMake_wxObject(result, 0);
44685 }
44686 return resultobj;
44687fail:
44688 return NULL;
44689}
44690
44691
44692SWIGINTERN PyObject *_wrap_MenuBar_EnableTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44693 PyObject *resultobj = 0;
44694 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44695 size_t arg2 ;
44696 bool arg3 ;
44697 void *argp1 = 0 ;
44698 int res1 = 0 ;
44699 size_t val2 ;
44700 int ecode2 = 0 ;
44701 bool val3 ;
44702 int ecode3 = 0 ;
44703 PyObject * obj0 = 0 ;
44704 PyObject * obj1 = 0 ;
44705 PyObject * obj2 = 0 ;
44706 char * kwnames[] = {
44707 (char *) "self",(char *) "pos",(char *) "enable", NULL
44708 };
44709
44710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
44711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44712 if (!SWIG_IsOK(res1)) {
44713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_EnableTop" "', expected argument " "1"" of type '" "wxMenuBar *""'");
44714 }
44715 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44716 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44717 if (!SWIG_IsOK(ecode2)) {
44718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_EnableTop" "', expected argument " "2"" of type '" "size_t""'");
44719 }
44720 arg2 = static_cast< size_t >(val2);
44721 ecode3 = SWIG_AsVal_bool(obj2, &val3);
44722 if (!SWIG_IsOK(ecode3)) {
44723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MenuBar_EnableTop" "', expected argument " "3"" of type '" "bool""'");
44724 }
44725 arg3 = static_cast< bool >(val3);
44726 {
44727 PyThreadState* __tstate = wxPyBeginAllowThreads();
44728 (arg1)->EnableTop(arg2,arg3);
44729 wxPyEndAllowThreads(__tstate);
44730 if (PyErr_Occurred()) SWIG_fail;
44731 }
44732 resultobj = SWIG_Py_Void();
44733 return resultobj;
44734fail:
44735 return NULL;
44736}
44737
44738
44739SWIGINTERN PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44740 PyObject *resultobj = 0;
44741 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44742 size_t arg2 ;
44743 bool result;
44744 void *argp1 = 0 ;
44745 int res1 = 0 ;
44746 size_t val2 ;
44747 int ecode2 = 0 ;
44748 PyObject * obj0 = 0 ;
44749 PyObject * obj1 = 0 ;
44750 char * kwnames[] = {
44751 (char *) "self",(char *) "pos", NULL
44752 };
44753
44754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) SWIG_fail;
44755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44756 if (!SWIG_IsOK(res1)) {
44757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_IsEnabledTop" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
44758 }
44759 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44760 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44761 if (!SWIG_IsOK(ecode2)) {
44762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_IsEnabledTop" "', expected argument " "2"" of type '" "size_t""'");
44763 }
44764 arg2 = static_cast< size_t >(val2);
44765 {
44766 PyThreadState* __tstate = wxPyBeginAllowThreads();
44767 result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2);
44768 wxPyEndAllowThreads(__tstate);
44769 if (PyErr_Occurred()) SWIG_fail;
44770 }
44771 {
44772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44773 }
44774 return resultobj;
44775fail:
44776 return NULL;
44777}
44778
44779
44780SWIGINTERN PyObject *_wrap_MenuBar_SetLabelTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44781 PyObject *resultobj = 0;
44782 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44783 size_t arg2 ;
44784 wxString *arg3 = 0 ;
44785 void *argp1 = 0 ;
44786 int res1 = 0 ;
44787 size_t val2 ;
44788 int ecode2 = 0 ;
44789 bool temp3 = false ;
44790 PyObject * obj0 = 0 ;
44791 PyObject * obj1 = 0 ;
44792 PyObject * obj2 = 0 ;
44793 char * kwnames[] = {
44794 (char *) "self",(char *) "pos",(char *) "label", NULL
44795 };
44796
44797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
44798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44799 if (!SWIG_IsOK(res1)) {
44800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_SetLabelTop" "', expected argument " "1"" of type '" "wxMenuBar *""'");
44801 }
44802 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44803 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44804 if (!SWIG_IsOK(ecode2)) {
44805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_SetLabelTop" "', expected argument " "2"" of type '" "size_t""'");
44806 }
44807 arg2 = static_cast< size_t >(val2);
44808 {
44809 arg3 = wxString_in_helper(obj2);
44810 if (arg3 == NULL) SWIG_fail;
44811 temp3 = true;
44812 }
44813 {
44814 PyThreadState* __tstate = wxPyBeginAllowThreads();
44815 (arg1)->SetLabelTop(arg2,(wxString const &)*arg3);
44816 wxPyEndAllowThreads(__tstate);
44817 if (PyErr_Occurred()) SWIG_fail;
44818 }
44819 resultobj = SWIG_Py_Void();
44820 {
44821 if (temp3)
44822 delete arg3;
44823 }
44824 return resultobj;
44825fail:
44826 {
44827 if (temp3)
44828 delete arg3;
44829 }
44830 return NULL;
44831}
44832
44833
44834SWIGINTERN PyObject *_wrap_MenuBar_GetLabelTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44835 PyObject *resultobj = 0;
44836 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44837 size_t arg2 ;
44838 wxString result;
44839 void *argp1 = 0 ;
44840 int res1 = 0 ;
44841 size_t val2 ;
44842 int ecode2 = 0 ;
44843 PyObject * obj0 = 0 ;
44844 PyObject * obj1 = 0 ;
44845 char * kwnames[] = {
44846 (char *) "self",(char *) "pos", NULL
44847 };
44848
44849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) SWIG_fail;
44850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44851 if (!SWIG_IsOK(res1)) {
44852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetLabelTop" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
44853 }
44854 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44855 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
44856 if (!SWIG_IsOK(ecode2)) {
44857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_GetLabelTop" "', expected argument " "2"" of type '" "size_t""'");
44858 }
44859 arg2 = static_cast< size_t >(val2);
44860 {
44861 PyThreadState* __tstate = wxPyBeginAllowThreads();
44862 result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2);
44863 wxPyEndAllowThreads(__tstate);
44864 if (PyErr_Occurred()) SWIG_fail;
44865 }
44866 {
44867#if wxUSE_UNICODE
44868 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44869#else
44870 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44871#endif
44872 }
44873 return resultobj;
44874fail:
44875 return NULL;
44876}
44877
44878
44879SWIGINTERN PyObject *_wrap_MenuBar_FindMenuItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44880 PyObject *resultobj = 0;
44881 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44882 wxString *arg2 = 0 ;
44883 wxString *arg3 = 0 ;
44884 int result;
44885 void *argp1 = 0 ;
44886 int res1 = 0 ;
44887 bool temp2 = false ;
44888 bool temp3 = false ;
44889 PyObject * obj0 = 0 ;
44890 PyObject * obj1 = 0 ;
44891 PyObject * obj2 = 0 ;
44892 char * kwnames[] = {
44893 (char *) "self",(char *) "menu",(char *) "item", NULL
44894 };
44895
44896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
44897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44898 if (!SWIG_IsOK(res1)) {
44899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_FindMenuItem" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
44900 }
44901 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44902 {
44903 arg2 = wxString_in_helper(obj1);
44904 if (arg2 == NULL) SWIG_fail;
44905 temp2 = true;
44906 }
44907 {
44908 arg3 = wxString_in_helper(obj2);
44909 if (arg3 == NULL) SWIG_fail;
44910 temp3 = true;
44911 }
44912 {
44913 PyThreadState* __tstate = wxPyBeginAllowThreads();
44914 result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3);
44915 wxPyEndAllowThreads(__tstate);
44916 if (PyErr_Occurred()) SWIG_fail;
44917 }
44918 resultobj = SWIG_From_int(static_cast< int >(result));
44919 {
44920 if (temp2)
44921 delete arg2;
44922 }
44923 {
44924 if (temp3)
44925 delete arg3;
44926 }
44927 return resultobj;
44928fail:
44929 {
44930 if (temp2)
44931 delete arg2;
44932 }
44933 {
44934 if (temp3)
44935 delete arg3;
44936 }
44937 return NULL;
44938}
44939
44940
44941SWIGINTERN PyObject *_wrap_MenuBar_FindItemById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44942 PyObject *resultobj = 0;
44943 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44944 int arg2 ;
44945 wxMenuItem *result = 0 ;
44946 void *argp1 = 0 ;
44947 int res1 = 0 ;
44948 int val2 ;
44949 int ecode2 = 0 ;
44950 PyObject * obj0 = 0 ;
44951 PyObject * obj1 = 0 ;
44952 char * kwnames[] = {
44953 (char *) "self",(char *) "id", NULL
44954 };
44955
44956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) SWIG_fail;
44957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44958 if (!SWIG_IsOK(res1)) {
44959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_FindItemById" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
44960 }
44961 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
44962 ecode2 = SWIG_AsVal_int(obj1, &val2);
44963 if (!SWIG_IsOK(ecode2)) {
44964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_FindItemById" "', expected argument " "2"" of type '" "int""'");
44965 }
44966 arg2 = static_cast< int >(val2);
44967 {
44968 PyThreadState* __tstate = wxPyBeginAllowThreads();
44969 result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2);
44970 wxPyEndAllowThreads(__tstate);
44971 if (PyErr_Occurred()) SWIG_fail;
44972 }
44973 {
44974 resultobj = wxPyMake_wxObject(result, (bool)0);
44975 }
44976 return resultobj;
44977fail:
44978 return NULL;
44979}
44980
44981
44982SWIGINTERN PyObject *_wrap_MenuBar_FindMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44983 PyObject *resultobj = 0;
44984 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
44985 wxString *arg2 = 0 ;
44986 int result;
44987 void *argp1 = 0 ;
44988 int res1 = 0 ;
44989 bool temp2 = false ;
44990 PyObject * obj0 = 0 ;
44991 PyObject * obj1 = 0 ;
44992 char * kwnames[] = {
44993 (char *) "self",(char *) "title", NULL
44994 };
44995
44996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) SWIG_fail;
44997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
44998 if (!SWIG_IsOK(res1)) {
44999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_FindMenu" "', expected argument " "1"" of type '" "wxMenuBar *""'");
45000 }
45001 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45002 {
45003 arg2 = wxString_in_helper(obj1);
45004 if (arg2 == NULL) SWIG_fail;
45005 temp2 = true;
45006 }
45007 {
45008 PyThreadState* __tstate = wxPyBeginAllowThreads();
45009 result = (int)(arg1)->FindMenu((wxString const &)*arg2);
45010 wxPyEndAllowThreads(__tstate);
45011 if (PyErr_Occurred()) SWIG_fail;
45012 }
45013 resultobj = SWIG_From_int(static_cast< int >(result));
45014 {
45015 if (temp2)
45016 delete arg2;
45017 }
45018 return resultobj;
45019fail:
45020 {
45021 if (temp2)
45022 delete arg2;
45023 }
45024 return NULL;
45025}
45026
45027
45028SWIGINTERN PyObject *_wrap_MenuBar_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45029 PyObject *resultobj = 0;
45030 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45031 int arg2 ;
45032 bool arg3 ;
45033 void *argp1 = 0 ;
45034 int res1 = 0 ;
45035 int val2 ;
45036 int ecode2 = 0 ;
45037 bool val3 ;
45038 int ecode3 = 0 ;
45039 PyObject * obj0 = 0 ;
45040 PyObject * obj1 = 0 ;
45041 PyObject * obj2 = 0 ;
45042 char * kwnames[] = {
45043 (char *) "self",(char *) "id",(char *) "enable", NULL
45044 };
45045
45046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45048 if (!SWIG_IsOK(res1)) {
45049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Enable" "', expected argument " "1"" of type '" "wxMenuBar *""'");
45050 }
45051 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45052 ecode2 = SWIG_AsVal_int(obj1, &val2);
45053 if (!SWIG_IsOK(ecode2)) {
45054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_Enable" "', expected argument " "2"" of type '" "int""'");
45055 }
45056 arg2 = static_cast< int >(val2);
45057 ecode3 = SWIG_AsVal_bool(obj2, &val3);
45058 if (!SWIG_IsOK(ecode3)) {
45059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MenuBar_Enable" "', expected argument " "3"" of type '" "bool""'");
45060 }
45061 arg3 = static_cast< bool >(val3);
45062 {
45063 PyThreadState* __tstate = wxPyBeginAllowThreads();
45064 (arg1)->Enable(arg2,arg3);
45065 wxPyEndAllowThreads(__tstate);
45066 if (PyErr_Occurred()) SWIG_fail;
45067 }
45068 resultobj = SWIG_Py_Void();
45069 return resultobj;
45070fail:
45071 return NULL;
45072}
45073
45074
45075SWIGINTERN PyObject *_wrap_MenuBar_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45076 PyObject *resultobj = 0;
45077 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45078 int arg2 ;
45079 bool arg3 ;
45080 void *argp1 = 0 ;
45081 int res1 = 0 ;
45082 int val2 ;
45083 int ecode2 = 0 ;
45084 bool val3 ;
45085 int ecode3 = 0 ;
45086 PyObject * obj0 = 0 ;
45087 PyObject * obj1 = 0 ;
45088 PyObject * obj2 = 0 ;
45089 char * kwnames[] = {
45090 (char *) "self",(char *) "id",(char *) "check", NULL
45091 };
45092
45093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45095 if (!SWIG_IsOK(res1)) {
45096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Check" "', expected argument " "1"" of type '" "wxMenuBar *""'");
45097 }
45098 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45099 ecode2 = SWIG_AsVal_int(obj1, &val2);
45100 if (!SWIG_IsOK(ecode2)) {
45101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_Check" "', expected argument " "2"" of type '" "int""'");
45102 }
45103 arg2 = static_cast< int >(val2);
45104 ecode3 = SWIG_AsVal_bool(obj2, &val3);
45105 if (!SWIG_IsOK(ecode3)) {
45106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MenuBar_Check" "', expected argument " "3"" of type '" "bool""'");
45107 }
45108 arg3 = static_cast< bool >(val3);
45109 {
45110 PyThreadState* __tstate = wxPyBeginAllowThreads();
45111 (arg1)->Check(arg2,arg3);
45112 wxPyEndAllowThreads(__tstate);
45113 if (PyErr_Occurred()) SWIG_fail;
45114 }
45115 resultobj = SWIG_Py_Void();
45116 return resultobj;
45117fail:
45118 return NULL;
45119}
45120
45121
45122SWIGINTERN PyObject *_wrap_MenuBar_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45123 PyObject *resultobj = 0;
45124 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45125 int arg2 ;
45126 bool result;
45127 void *argp1 = 0 ;
45128 int res1 = 0 ;
45129 int val2 ;
45130 int ecode2 = 0 ;
45131 PyObject * obj0 = 0 ;
45132 PyObject * obj1 = 0 ;
45133 char * kwnames[] = {
45134 (char *) "self",(char *) "id", NULL
45135 };
45136
45137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
45138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45139 if (!SWIG_IsOK(res1)) {
45140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_IsChecked" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
45141 }
45142 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45143 ecode2 = SWIG_AsVal_int(obj1, &val2);
45144 if (!SWIG_IsOK(ecode2)) {
45145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_IsChecked" "', expected argument " "2"" of type '" "int""'");
45146 }
45147 arg2 = static_cast< int >(val2);
45148 {
45149 PyThreadState* __tstate = wxPyBeginAllowThreads();
45150 result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2);
45151 wxPyEndAllowThreads(__tstate);
45152 if (PyErr_Occurred()) SWIG_fail;
45153 }
45154 {
45155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45156 }
45157 return resultobj;
45158fail:
45159 return NULL;
45160}
45161
45162
45163SWIGINTERN PyObject *_wrap_MenuBar_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45164 PyObject *resultobj = 0;
45165 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45166 int arg2 ;
45167 bool result;
45168 void *argp1 = 0 ;
45169 int res1 = 0 ;
45170 int val2 ;
45171 int ecode2 = 0 ;
45172 PyObject * obj0 = 0 ;
45173 PyObject * obj1 = 0 ;
45174 char * kwnames[] = {
45175 (char *) "self",(char *) "id", NULL
45176 };
45177
45178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
45179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45180 if (!SWIG_IsOK(res1)) {
45181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_IsEnabled" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
45182 }
45183 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45184 ecode2 = SWIG_AsVal_int(obj1, &val2);
45185 if (!SWIG_IsOK(ecode2)) {
45186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_IsEnabled" "', expected argument " "2"" of type '" "int""'");
45187 }
45188 arg2 = static_cast< int >(val2);
45189 {
45190 PyThreadState* __tstate = wxPyBeginAllowThreads();
45191 result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2);
45192 wxPyEndAllowThreads(__tstate);
45193 if (PyErr_Occurred()) SWIG_fail;
45194 }
45195 {
45196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45197 }
45198 return resultobj;
45199fail:
45200 return NULL;
45201}
45202
45203
45204SWIGINTERN PyObject *_wrap_MenuBar_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45205 PyObject *resultobj = 0;
45206 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45207 int arg2 ;
45208 wxString *arg3 = 0 ;
45209 void *argp1 = 0 ;
45210 int res1 = 0 ;
45211 int val2 ;
45212 int ecode2 = 0 ;
45213 bool temp3 = false ;
45214 PyObject * obj0 = 0 ;
45215 PyObject * obj1 = 0 ;
45216 PyObject * obj2 = 0 ;
45217 char * kwnames[] = {
45218 (char *) "self",(char *) "id",(char *) "label", NULL
45219 };
45220
45221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45223 if (!SWIG_IsOK(res1)) {
45224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_SetLabel" "', expected argument " "1"" of type '" "wxMenuBar *""'");
45225 }
45226 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45227 ecode2 = SWIG_AsVal_int(obj1, &val2);
45228 if (!SWIG_IsOK(ecode2)) {
45229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_SetLabel" "', expected argument " "2"" of type '" "int""'");
45230 }
45231 arg2 = static_cast< int >(val2);
45232 {
45233 arg3 = wxString_in_helper(obj2);
45234 if (arg3 == NULL) SWIG_fail;
45235 temp3 = true;
45236 }
45237 {
45238 PyThreadState* __tstate = wxPyBeginAllowThreads();
45239 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
45240 wxPyEndAllowThreads(__tstate);
45241 if (PyErr_Occurred()) SWIG_fail;
45242 }
45243 resultobj = SWIG_Py_Void();
45244 {
45245 if (temp3)
45246 delete arg3;
45247 }
45248 return resultobj;
45249fail:
45250 {
45251 if (temp3)
45252 delete arg3;
45253 }
45254 return NULL;
45255}
45256
45257
45258SWIGINTERN PyObject *_wrap_MenuBar_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45259 PyObject *resultobj = 0;
45260 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45261 int arg2 ;
45262 wxString result;
45263 void *argp1 = 0 ;
45264 int res1 = 0 ;
45265 int val2 ;
45266 int ecode2 = 0 ;
45267 PyObject * obj0 = 0 ;
45268 PyObject * obj1 = 0 ;
45269 char * kwnames[] = {
45270 (char *) "self",(char *) "id", NULL
45271 };
45272
45273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
45274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45275 if (!SWIG_IsOK(res1)) {
45276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetLabel" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
45277 }
45278 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45279 ecode2 = SWIG_AsVal_int(obj1, &val2);
45280 if (!SWIG_IsOK(ecode2)) {
45281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_GetLabel" "', expected argument " "2"" of type '" "int""'");
45282 }
45283 arg2 = static_cast< int >(val2);
45284 {
45285 PyThreadState* __tstate = wxPyBeginAllowThreads();
45286 result = ((wxMenuBar const *)arg1)->GetLabel(arg2);
45287 wxPyEndAllowThreads(__tstate);
45288 if (PyErr_Occurred()) SWIG_fail;
45289 }
45290 {
45291#if wxUSE_UNICODE
45292 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45293#else
45294 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45295#endif
45296 }
45297 return resultobj;
45298fail:
45299 return NULL;
45300}
45301
45302
45303SWIGINTERN PyObject *_wrap_MenuBar_SetHelpString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45304 PyObject *resultobj = 0;
45305 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45306 int arg2 ;
45307 wxString *arg3 = 0 ;
45308 void *argp1 = 0 ;
45309 int res1 = 0 ;
45310 int val2 ;
45311 int ecode2 = 0 ;
45312 bool temp3 = false ;
45313 PyObject * obj0 = 0 ;
45314 PyObject * obj1 = 0 ;
45315 PyObject * obj2 = 0 ;
45316 char * kwnames[] = {
45317 (char *) "self",(char *) "id",(char *) "helpString", NULL
45318 };
45319
45320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45322 if (!SWIG_IsOK(res1)) {
45323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_SetHelpString" "', expected argument " "1"" of type '" "wxMenuBar *""'");
45324 }
45325 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45326 ecode2 = SWIG_AsVal_int(obj1, &val2);
45327 if (!SWIG_IsOK(ecode2)) {
45328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_SetHelpString" "', expected argument " "2"" of type '" "int""'");
45329 }
45330 arg2 = static_cast< int >(val2);
45331 {
45332 arg3 = wxString_in_helper(obj2);
45333 if (arg3 == NULL) SWIG_fail;
45334 temp3 = true;
45335 }
45336 {
45337 PyThreadState* __tstate = wxPyBeginAllowThreads();
45338 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
45339 wxPyEndAllowThreads(__tstate);
45340 if (PyErr_Occurred()) SWIG_fail;
45341 }
45342 resultobj = SWIG_Py_Void();
45343 {
45344 if (temp3)
45345 delete arg3;
45346 }
45347 return resultobj;
45348fail:
45349 {
45350 if (temp3)
45351 delete arg3;
45352 }
45353 return NULL;
45354}
45355
45356
45357SWIGINTERN PyObject *_wrap_MenuBar_GetHelpString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45358 PyObject *resultobj = 0;
45359 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45360 int arg2 ;
45361 wxString result;
45362 void *argp1 = 0 ;
45363 int res1 = 0 ;
45364 int val2 ;
45365 int ecode2 = 0 ;
45366 PyObject * obj0 = 0 ;
45367 PyObject * obj1 = 0 ;
45368 char * kwnames[] = {
45369 (char *) "self",(char *) "id", NULL
45370 };
45371
45372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) SWIG_fail;
45373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45374 if (!SWIG_IsOK(res1)) {
45375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetHelpString" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
45376 }
45377 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45378 ecode2 = SWIG_AsVal_int(obj1, &val2);
45379 if (!SWIG_IsOK(ecode2)) {
45380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_GetHelpString" "', expected argument " "2"" of type '" "int""'");
45381 }
45382 arg2 = static_cast< int >(val2);
45383 {
45384 PyThreadState* __tstate = wxPyBeginAllowThreads();
45385 result = ((wxMenuBar const *)arg1)->GetHelpString(arg2);
45386 wxPyEndAllowThreads(__tstate);
45387 if (PyErr_Occurred()) SWIG_fail;
45388 }
45389 {
45390#if wxUSE_UNICODE
45391 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45392#else
45393 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45394#endif
45395 }
45396 return resultobj;
45397fail:
45398 return NULL;
d55e5bfc
RD
45399}
45400
45401
1bd55598
RD
45402SWIGINTERN PyObject *_wrap_MenuBar_GetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45403 PyObject *resultobj = 0;
45404 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45405 wxFrame *result = 0 ;
45406 void *argp1 = 0 ;
45407 int res1 = 0 ;
45408 PyObject *swig_obj[1] ;
45409
45410 if (!args) SWIG_fail;
45411 swig_obj[0] = args;
45412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45413 if (!SWIG_IsOK(res1)) {
45414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetFrame" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
45415 }
45416 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45417 {
45418 PyThreadState* __tstate = wxPyBeginAllowThreads();
45419 result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame();
45420 wxPyEndAllowThreads(__tstate);
45421 if (PyErr_Occurred()) SWIG_fail;
45422 }
45423 {
45424 resultobj = wxPyMake_wxObject(result, (bool)0);
45425 }
45426 return resultobj;
45427fail:
45428 return NULL;
d55e5bfc
RD
45429}
45430
45431
1bd55598
RD
45432SWIGINTERN PyObject *_wrap_MenuBar_IsAttached(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45433 PyObject *resultobj = 0;
45434 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45435 bool result;
45436 void *argp1 = 0 ;
45437 int res1 = 0 ;
45438 PyObject *swig_obj[1] ;
45439
45440 if (!args) SWIG_fail;
45441 swig_obj[0] = args;
45442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45443 if (!SWIG_IsOK(res1)) {
45444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_IsAttached" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
45445 }
45446 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45447 {
45448 PyThreadState* __tstate = wxPyBeginAllowThreads();
45449 result = (bool)((wxMenuBar const *)arg1)->IsAttached();
45450 wxPyEndAllowThreads(__tstate);
45451 if (PyErr_Occurred()) SWIG_fail;
45452 }
45453 {
45454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45455 }
45456 return resultobj;
45457fail:
45458 return NULL;
45459}
45460
45461
45462SWIGINTERN PyObject *_wrap_MenuBar_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45463 PyObject *resultobj = 0;
45464 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45465 wxFrame *arg2 = (wxFrame *) 0 ;
45466 void *argp1 = 0 ;
45467 int res1 = 0 ;
45468 void *argp2 = 0 ;
45469 int res2 = 0 ;
45470 PyObject * obj0 = 0 ;
45471 PyObject * obj1 = 0 ;
45472 char * kwnames[] = {
45473 (char *) "self",(char *) "frame", NULL
45474 };
45475
45476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
45477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45478 if (!SWIG_IsOK(res1)) {
45479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Attach" "', expected argument " "1"" of type '" "wxMenuBar *""'");
45480 }
45481 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45482 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 );
45483 if (!SWIG_IsOK(res2)) {
45484 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuBar_Attach" "', expected argument " "2"" of type '" "wxFrame *""'");
45485 }
45486 arg2 = reinterpret_cast< wxFrame * >(argp2);
45487 {
45488 PyThreadState* __tstate = wxPyBeginAllowThreads();
45489 (arg1)->Attach(arg2);
45490 wxPyEndAllowThreads(__tstate);
45491 if (PyErr_Occurred()) SWIG_fail;
45492 }
45493 resultobj = SWIG_Py_Void();
45494 return resultobj;
45495fail:
45496 return NULL;
d55e5bfc
RD
45497}
45498
45499
1bd55598
RD
45500SWIGINTERN PyObject *_wrap_MenuBar_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45501 PyObject *resultobj = 0;
45502 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45503 void *argp1 = 0 ;
45504 int res1 = 0 ;
45505 PyObject *swig_obj[1] ;
45506
45507 if (!args) SWIG_fail;
45508 swig_obj[0] = args;
45509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45510 if (!SWIG_IsOK(res1)) {
45511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Detach" "', expected argument " "1"" of type '" "wxMenuBar *""'");
45512 }
45513 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45514 {
45515 PyThreadState* __tstate = wxPyBeginAllowThreads();
45516 (arg1)->Detach();
45517 wxPyEndAllowThreads(__tstate);
45518 if (PyErr_Occurred()) SWIG_fail;
45519 }
45520 resultobj = SWIG_Py_Void();
45521 return resultobj;
45522fail:
45523 return NULL;
d55e5bfc
RD
45524}
45525
45526
587d0f36
RD
45527SWIGINTERN PyObject *_wrap_MenuBar_UpdateMenus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45528 PyObject *resultobj = 0;
45529 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
45530 void *argp1 = 0 ;
45531 int res1 = 0 ;
45532 PyObject *swig_obj[1] ;
45533
45534 if (!args) SWIG_fail;
45535 swig_obj[0] = args;
45536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
45537 if (!SWIG_IsOK(res1)) {
45538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_UpdateMenus" "', expected argument " "1"" of type '" "wxMenuBar *""'");
45539 }
45540 arg1 = reinterpret_cast< wxMenuBar * >(argp1);
45541 {
45542 PyThreadState* __tstate = wxPyBeginAllowThreads();
45543 (arg1)->UpdateMenus();
45544 wxPyEndAllowThreads(__tstate);
45545 if (PyErr_Occurred()) SWIG_fail;
45546 }
45547 resultobj = SWIG_Py_Void();
45548 return resultobj;
45549fail:
45550 return NULL;
45551}
45552
45553
1bd55598
RD
45554SWIGINTERN PyObject *_wrap_MenuBar_SetAutoWindowMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45555 PyObject *resultobj = 0;
45556 bool arg1 ;
45557 bool val1 ;
45558 int ecode1 = 0 ;
45559 PyObject * obj0 = 0 ;
45560 char * kwnames[] = {
45561 (char *) "enable", NULL
45562 };
45563
45564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_SetAutoWindowMenu",kwnames,&obj0)) SWIG_fail;
45565 ecode1 = SWIG_AsVal_bool(obj0, &val1);
45566 if (!SWIG_IsOK(ecode1)) {
45567 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MenuBar_SetAutoWindowMenu" "', expected argument " "1"" of type '" "bool""'");
45568 }
45569 arg1 = static_cast< bool >(val1);
45570 {
45571 PyThreadState* __tstate = wxPyBeginAllowThreads();
45572 wxMenuBar::SetAutoWindowMenu(arg1);
45573 wxPyEndAllowThreads(__tstate);
45574 if (PyErr_Occurred()) SWIG_fail;
45575 }
45576 resultobj = SWIG_Py_Void();
45577 return resultobj;
45578fail:
45579 return NULL;
d55e5bfc
RD
45580}
45581
45582
1bd55598
RD
45583SWIGINTERN PyObject *_wrap_MenuBar_GetAutoWindowMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45584 PyObject *resultobj = 0;
45585 bool result;
45586
45587 if (!SWIG_Python_UnpackTuple(args,"MenuBar_GetAutoWindowMenu",0,0,0)) SWIG_fail;
45588 {
45589 PyThreadState* __tstate = wxPyBeginAllowThreads();
45590 result = (bool)wxMenuBar::GetAutoWindowMenu();
45591 wxPyEndAllowThreads(__tstate);
45592 if (PyErr_Occurred()) SWIG_fail;
45593 }
45594 {
45595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45596 }
45597 return resultobj;
45598fail:
45599 return NULL;
45600}
45601
45602
45603SWIGINTERN PyObject *MenuBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45604 PyObject *obj;
45605 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45606 SWIG_TypeNewClientData(SWIGTYPE_p_wxMenuBar, SWIG_NewClientData(obj));
45607 return SWIG_Py_Void();
45608}
45609
45610SWIGINTERN PyObject *MenuBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45611 return SWIG_Python_InitShadowInstance(args);
45612}
45613
45614SWIGINTERN PyObject *_wrap_new_MenuItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45615 PyObject *resultobj = 0;
45616 wxMenu *arg1 = (wxMenu *) NULL ;
45617 int arg2 = (int) wxID_ANY ;
45618 wxString const &arg3_defvalue = wxPyEmptyString ;
45619 wxString *arg3 = (wxString *) &arg3_defvalue ;
45620 wxString const &arg4_defvalue = wxPyEmptyString ;
45621 wxString *arg4 = (wxString *) &arg4_defvalue ;
45622 wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ;
45623 wxMenu *arg6 = (wxMenu *) NULL ;
45624 wxMenuItem *result = 0 ;
45625 void *argp1 = 0 ;
45626 int res1 = 0 ;
45627 int val2 ;
45628 int ecode2 = 0 ;
45629 bool temp3 = false ;
45630 bool temp4 = false ;
45631 int val5 ;
45632 int ecode5 = 0 ;
45633 void *argp6 = 0 ;
45634 int res6 = 0 ;
45635 PyObject * obj0 = 0 ;
45636 PyObject * obj1 = 0 ;
45637 PyObject * obj2 = 0 ;
45638 PyObject * obj3 = 0 ;
45639 PyObject * obj4 = 0 ;
45640 PyObject * obj5 = 0 ;
45641 char * kwnames[] = {
45642 (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL
45643 };
45644
45645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
45646 if (obj0) {
45647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
45648 if (!SWIG_IsOK(res1)) {
45649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MenuItem" "', expected argument " "1"" of type '" "wxMenu *""'");
d55e5bfc 45650 }
1bd55598
RD
45651 arg1 = reinterpret_cast< wxMenu * >(argp1);
45652 }
45653 if (obj1) {
45654 ecode2 = SWIG_AsVal_int(obj1, &val2);
45655 if (!SWIG_IsOK(ecode2)) {
45656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MenuItem" "', expected argument " "2"" of type '" "int""'");
45657 }
45658 arg2 = static_cast< int >(val2);
45659 }
45660 if (obj2) {
d55e5bfc 45661 {
1bd55598
RD
45662 arg3 = wxString_in_helper(obj2);
45663 if (arg3 == NULL) SWIG_fail;
45664 temp3 = true;
d55e5bfc 45665 }
1bd55598
RD
45666 }
45667 if (obj3) {
d55e5bfc 45668 {
1bd55598
RD
45669 arg4 = wxString_in_helper(obj3);
45670 if (arg4 == NULL) SWIG_fail;
45671 temp4 = true;
36ed4f51 45672 }
1bd55598
RD
45673 }
45674 if (obj4) {
45675 ecode5 = SWIG_AsVal_int(obj4, &val5);
45676 if (!SWIG_IsOK(ecode5)) {
45677 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_MenuItem" "', expected argument " "5"" of type '" "wxItemKind""'");
45678 }
45679 arg5 = static_cast< wxItemKind >(val5);
45680 }
45681 if (obj5) {
45682 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxMenu, 0 | 0 );
45683 if (!SWIG_IsOK(res6)) {
45684 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_MenuItem" "', expected argument " "6"" of type '" "wxMenu *""'");
5cbf236d 45685 }
1bd55598
RD
45686 arg6 = reinterpret_cast< wxMenu * >(argp6);
45687 }
45688 {
45689 PyThreadState* __tstate = wxPyBeginAllowThreads();
45690 result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
45691 wxPyEndAllowThreads(__tstate);
45692 if (PyErr_Occurred()) SWIG_fail;
45693 }
3ecece7e 45694 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMenuItem, SWIG_POINTER_NEW | 0 );
1bd55598
RD
45695 {
45696 if (temp3)
45697 delete arg3;
45698 }
45699 {
45700 if (temp4)
45701 delete arg4;
45702 }
45703 return resultobj;
45704fail:
45705 {
45706 if (temp3)
45707 delete arg3;
45708 }
45709 {
45710 if (temp4)
45711 delete arg4;
45712 }
45713 return NULL;
5cbf236d
RD
45714}
45715
45716
1bd55598
RD
45717SWIGINTERN PyObject *_wrap_delete_MenuItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45718 PyObject *resultobj = 0;
45719 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45720 void *argp1 = 0 ;
45721 int res1 = 0 ;
45722 PyObject *swig_obj[1] ;
45723
45724 if (!args) SWIG_fail;
45725 swig_obj[0] = args;
45726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, SWIG_POINTER_DISOWN | 0 );
45727 if (!SWIG_IsOK(res1)) {
45728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MenuItem" "', expected argument " "1"" of type '" "wxMenuItem *""'");
45729 }
45730 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45731 {
45732 PyThreadState* __tstate = wxPyBeginAllowThreads();
45733 delete arg1;
5cbf236d 45734
1bd55598
RD
45735 wxPyEndAllowThreads(__tstate);
45736 if (PyErr_Occurred()) SWIG_fail;
45737 }
45738 resultobj = SWIG_Py_Void();
45739 return resultobj;
45740fail:
45741 return NULL;
5cbf236d
RD
45742}
45743
45744
1bd55598
RD
45745SWIGINTERN PyObject *_wrap_MenuItem_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45746 PyObject *resultobj = 0;
45747 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45748 wxMenu *result = 0 ;
45749 void *argp1 = 0 ;
45750 int res1 = 0 ;
45751 PyObject *swig_obj[1] ;
45752
45753 if (!args) SWIG_fail;
45754 swig_obj[0] = args;
45755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
45756 if (!SWIG_IsOK(res1)) {
45757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetMenu" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
45758 }
45759 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45760 {
45761 PyThreadState* __tstate = wxPyBeginAllowThreads();
45762 result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu();
45763 wxPyEndAllowThreads(__tstate);
45764 if (PyErr_Occurred()) SWIG_fail;
45765 }
45766 {
45767 resultobj = wxPyMake_wxObject(result, 0);
45768 }
45769 return resultobj;
45770fail:
45771 return NULL;
45772}
45773
45774
45775SWIGINTERN PyObject *_wrap_MenuItem_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45776 PyObject *resultobj = 0;
45777 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45778 wxMenu *arg2 = (wxMenu *) 0 ;
45779 void *argp1 = 0 ;
45780 int res1 = 0 ;
45781 void *argp2 = 0 ;
45782 int res2 = 0 ;
45783 PyObject * obj0 = 0 ;
45784 PyObject * obj1 = 0 ;
45785 char * kwnames[] = {
45786 (char *) "self",(char *) "menu", NULL
45787 };
45788
45789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
45790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
45791 if (!SWIG_IsOK(res1)) {
45792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetMenu" "', expected argument " "1"" of type '" "wxMenuItem *""'");
45793 }
45794 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45795 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
45796 if (!SWIG_IsOK(res2)) {
45797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
45798 }
45799 arg2 = reinterpret_cast< wxMenu * >(argp2);
45800 {
45801 PyThreadState* __tstate = wxPyBeginAllowThreads();
45802 (arg1)->SetMenu(arg2);
45803 wxPyEndAllowThreads(__tstate);
45804 if (PyErr_Occurred()) SWIG_fail;
45805 }
45806 resultobj = SWIG_Py_Void();
45807 return resultobj;
45808fail:
45809 return NULL;
45810}
45811
45812
45813SWIGINTERN PyObject *_wrap_MenuItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45814 PyObject *resultobj = 0;
45815 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45816 int arg2 ;
45817 void *argp1 = 0 ;
45818 int res1 = 0 ;
45819 int val2 ;
45820 int ecode2 = 0 ;
45821 PyObject * obj0 = 0 ;
45822 PyObject * obj1 = 0 ;
45823 char * kwnames[] = {
45824 (char *) "self",(char *) "id", NULL
45825 };
45826
45827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
45828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
45829 if (!SWIG_IsOK(res1)) {
45830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetId" "', expected argument " "1"" of type '" "wxMenuItem *""'");
45831 }
45832 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45833 ecode2 = SWIG_AsVal_int(obj1, &val2);
45834 if (!SWIG_IsOK(ecode2)) {
45835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_SetId" "', expected argument " "2"" of type '" "int""'");
45836 }
45837 arg2 = static_cast< int >(val2);
45838 {
45839 PyThreadState* __tstate = wxPyBeginAllowThreads();
45840 (arg1)->SetId(arg2);
45841 wxPyEndAllowThreads(__tstate);
45842 if (PyErr_Occurred()) SWIG_fail;
45843 }
45844 resultobj = SWIG_Py_Void();
45845 return resultobj;
45846fail:
45847 return NULL;
b411df4a
RD
45848}
45849
45850
1bd55598
RD
45851SWIGINTERN PyObject *_wrap_MenuItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45852 PyObject *resultobj = 0;
45853 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45854 int result;
45855 void *argp1 = 0 ;
45856 int res1 = 0 ;
45857 PyObject *swig_obj[1] ;
45858
45859 if (!args) SWIG_fail;
45860 swig_obj[0] = args;
45861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
45862 if (!SWIG_IsOK(res1)) {
45863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetId" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
45864 }
45865 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45866 {
45867 PyThreadState* __tstate = wxPyBeginAllowThreads();
45868 result = (int)((wxMenuItem const *)arg1)->GetId();
45869 wxPyEndAllowThreads(__tstate);
45870 if (PyErr_Occurred()) SWIG_fail;
45871 }
45872 resultobj = SWIG_From_int(static_cast< int >(result));
45873 return resultobj;
45874fail:
45875 return NULL;
b411df4a
RD
45876}
45877
45878
1bd55598
RD
45879SWIGINTERN PyObject *_wrap_MenuItem_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45880 PyObject *resultobj = 0;
45881 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45882 bool result;
45883 void *argp1 = 0 ;
45884 int res1 = 0 ;
45885 PyObject *swig_obj[1] ;
45886
45887 if (!args) SWIG_fail;
45888 swig_obj[0] = args;
45889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
45890 if (!SWIG_IsOK(res1)) {
45891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsSeparator" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
45892 }
45893 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45894 {
45895 PyThreadState* __tstate = wxPyBeginAllowThreads();
45896 result = (bool)((wxMenuItem const *)arg1)->IsSeparator();
45897 wxPyEndAllowThreads(__tstate);
45898 if (PyErr_Occurred()) SWIG_fail;
45899 }
45900 {
45901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45902 }
45903 return resultobj;
45904fail:
45905 return NULL;
45906}
45907
45908
45909SWIGINTERN PyObject *_wrap_MenuItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45910 PyObject *resultobj = 0;
45911 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45912 wxString *arg2 = 0 ;
45913 void *argp1 = 0 ;
45914 int res1 = 0 ;
45915 bool temp2 = false ;
45916 PyObject * obj0 = 0 ;
45917 PyObject * obj1 = 0 ;
45918 char * kwnames[] = {
45919 (char *) "self",(char *) "str", NULL
45920 };
45921
45922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
45923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
45924 if (!SWIG_IsOK(res1)) {
45925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetText" "', expected argument " "1"" of type '" "wxMenuItem *""'");
45926 }
45927 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45928 {
45929 arg2 = wxString_in_helper(obj1);
45930 if (arg2 == NULL) SWIG_fail;
45931 temp2 = true;
45932 }
45933 {
45934 PyThreadState* __tstate = wxPyBeginAllowThreads();
45935 (arg1)->SetText((wxString const &)*arg2);
45936 wxPyEndAllowThreads(__tstate);
45937 if (PyErr_Occurred()) SWIG_fail;
45938 }
45939 resultobj = SWIG_Py_Void();
45940 {
45941 if (temp2)
45942 delete arg2;
45943 }
45944 return resultobj;
45945fail:
45946 {
45947 if (temp2)
45948 delete arg2;
45949 }
45950 return NULL;
b411df4a
RD
45951}
45952
45953
1bd55598
RD
45954SWIGINTERN PyObject *_wrap_MenuItem_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45955 PyObject *resultobj = 0;
45956 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45957 wxString result;
45958 void *argp1 = 0 ;
45959 int res1 = 0 ;
45960 PyObject *swig_obj[1] ;
45961
45962 if (!args) SWIG_fail;
45963 swig_obj[0] = args;
45964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
45965 if (!SWIG_IsOK(res1)) {
45966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetLabel" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
45967 }
45968 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
45969 {
45970 PyThreadState* __tstate = wxPyBeginAllowThreads();
45971 result = ((wxMenuItem const *)arg1)->GetLabel();
45972 wxPyEndAllowThreads(__tstate);
45973 if (PyErr_Occurred()) SWIG_fail;
45974 }
45975 {
45976#if wxUSE_UNICODE
45977 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45978#else
45979 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45980#endif
45981 }
45982 return resultobj;
45983fail:
45984 return NULL;
b411df4a
RD
45985}
45986
45987
1bd55598
RD
45988SWIGINTERN PyObject *_wrap_MenuItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45989 PyObject *resultobj = 0;
45990 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
45991 wxString *result = 0 ;
45992 void *argp1 = 0 ;
45993 int res1 = 0 ;
45994 PyObject *swig_obj[1] ;
45995
45996 if (!args) SWIG_fail;
45997 swig_obj[0] = args;
45998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
45999 if (!SWIG_IsOK(res1)) {
46000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetText" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46001 }
46002 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46003 {
46004 PyThreadState* __tstate = wxPyBeginAllowThreads();
b411df4a 46005 {
1bd55598
RD
46006 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText();
46007 result = (wxString *) &_result_ref;
b411df4a 46008 }
1bd55598
RD
46009 wxPyEndAllowThreads(__tstate);
46010 if (PyErr_Occurred()) SWIG_fail;
46011 }
46012 {
46013#if wxUSE_UNICODE
46014 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
46015#else
46016 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
46017#endif
46018 }
46019 return resultobj;
46020fail:
46021 return NULL;
b411df4a
RD
46022}
46023
46024
1bd55598
RD
46025SWIGINTERN PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46026 PyObject *resultobj = 0;
46027 wxString *arg1 = 0 ;
46028 wxString result;
46029 bool temp1 = false ;
46030 PyObject * obj0 = 0 ;
46031 char * kwnames[] = {
46032 (char *) "text", NULL
46033 };
46034
46035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) SWIG_fail;
46036 {
46037 arg1 = wxString_in_helper(obj0);
46038 if (arg1 == NULL) SWIG_fail;
46039 temp1 = true;
46040 }
46041 {
46042 PyThreadState* __tstate = wxPyBeginAllowThreads();
46043 result = wxMenuItem::GetLabelFromText((wxString const &)*arg1);
46044 wxPyEndAllowThreads(__tstate);
46045 if (PyErr_Occurred()) SWIG_fail;
46046 }
46047 {
46048#if wxUSE_UNICODE
46049 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
46050#else
46051 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
46052#endif
46053 }
46054 {
46055 if (temp1)
46056 delete arg1;
46057 }
46058 return resultobj;
46059fail:
46060 {
46061 if (temp1)
46062 delete arg1;
46063 }
46064 return NULL;
b411df4a
RD
46065}
46066
46067
1bd55598
RD
46068SWIGINTERN PyObject *_wrap_MenuItem_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46069 PyObject *resultobj = 0;
46070 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46071 wxItemKind result;
46072 void *argp1 = 0 ;
46073 int res1 = 0 ;
46074 PyObject *swig_obj[1] ;
46075
46076 if (!args) SWIG_fail;
46077 swig_obj[0] = args;
46078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46079 if (!SWIG_IsOK(res1)) {
46080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetKind" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46081 }
46082 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46083 {
46084 PyThreadState* __tstate = wxPyBeginAllowThreads();
46085 result = (wxItemKind)((wxMenuItem const *)arg1)->GetKind();
46086 wxPyEndAllowThreads(__tstate);
46087 if (PyErr_Occurred()) SWIG_fail;
46088 }
46089 resultobj = SWIG_From_int(static_cast< int >(result));
46090 return resultobj;
46091fail:
46092 return NULL;
46093}
46094
46095
46096SWIGINTERN PyObject *_wrap_MenuItem_SetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46097 PyObject *resultobj = 0;
46098 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46099 wxItemKind arg2 ;
46100 void *argp1 = 0 ;
46101 int res1 = 0 ;
46102 int val2 ;
46103 int ecode2 = 0 ;
46104 PyObject * obj0 = 0 ;
46105 PyObject * obj1 = 0 ;
46106 char * kwnames[] = {
46107 (char *) "self",(char *) "kind", NULL
46108 };
46109
46110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) SWIG_fail;
46111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46112 if (!SWIG_IsOK(res1)) {
46113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetKind" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46114 }
46115 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46116 ecode2 = SWIG_AsVal_int(obj1, &val2);
46117 if (!SWIG_IsOK(ecode2)) {
46118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_SetKind" "', expected argument " "2"" of type '" "wxItemKind""'");
46119 }
46120 arg2 = static_cast< wxItemKind >(val2);
46121 {
46122 PyThreadState* __tstate = wxPyBeginAllowThreads();
46123 (arg1)->SetKind(arg2);
46124 wxPyEndAllowThreads(__tstate);
46125 if (PyErr_Occurred()) SWIG_fail;
46126 }
46127 resultobj = SWIG_Py_Void();
46128 return resultobj;
46129fail:
46130 return NULL;
46131}
46132
46133
46134SWIGINTERN PyObject *_wrap_MenuItem_SetCheckable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46135 PyObject *resultobj = 0;
46136 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46137 bool arg2 ;
46138 void *argp1 = 0 ;
46139 int res1 = 0 ;
46140 bool val2 ;
46141 int ecode2 = 0 ;
46142 PyObject * obj0 = 0 ;
46143 PyObject * obj1 = 0 ;
46144 char * kwnames[] = {
46145 (char *) "self",(char *) "checkable", NULL
46146 };
46147
46148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) SWIG_fail;
46149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46150 if (!SWIG_IsOK(res1)) {
46151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetCheckable" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46152 }
46153 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46154 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46155 if (!SWIG_IsOK(ecode2)) {
46156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_SetCheckable" "', expected argument " "2"" of type '" "bool""'");
46157 }
46158 arg2 = static_cast< bool >(val2);
46159 {
46160 PyThreadState* __tstate = wxPyBeginAllowThreads();
46161 (arg1)->SetCheckable(arg2);
46162 wxPyEndAllowThreads(__tstate);
46163 if (PyErr_Occurred()) SWIG_fail;
46164 }
46165 resultobj = SWIG_Py_Void();
46166 return resultobj;
46167fail:
46168 return NULL;
b411df4a
RD
46169}
46170
46171
1bd55598
RD
46172SWIGINTERN PyObject *_wrap_MenuItem_IsCheckable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46173 PyObject *resultobj = 0;
46174 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46175 bool result;
46176 void *argp1 = 0 ;
46177 int res1 = 0 ;
46178 PyObject *swig_obj[1] ;
46179
46180 if (!args) SWIG_fail;
46181 swig_obj[0] = args;
46182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46183 if (!SWIG_IsOK(res1)) {
46184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsCheckable" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46185 }
46186 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46187 {
46188 PyThreadState* __tstate = wxPyBeginAllowThreads();
46189 result = (bool)((wxMenuItem const *)arg1)->IsCheckable();
46190 wxPyEndAllowThreads(__tstate);
46191 if (PyErr_Occurred()) SWIG_fail;
46192 }
46193 {
46194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46195 }
46196 return resultobj;
46197fail:
46198 return NULL;
b411df4a
RD
46199}
46200
46201
1bd55598
RD
46202SWIGINTERN PyObject *_wrap_MenuItem_IsSubMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46203 PyObject *resultobj = 0;
46204 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46205 bool result;
46206 void *argp1 = 0 ;
46207 int res1 = 0 ;
46208 PyObject *swig_obj[1] ;
46209
46210 if (!args) SWIG_fail;
46211 swig_obj[0] = args;
46212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46213 if (!SWIG_IsOK(res1)) {
46214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsSubMenu" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46215 }
46216 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46217 {
46218 PyThreadState* __tstate = wxPyBeginAllowThreads();
46219 result = (bool)((wxMenuItem const *)arg1)->IsSubMenu();
46220 wxPyEndAllowThreads(__tstate);
46221 if (PyErr_Occurred()) SWIG_fail;
46222 }
46223 {
46224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46225 }
46226 return resultobj;
46227fail:
46228 return NULL;
46229}
46230
46231
46232SWIGINTERN PyObject *_wrap_MenuItem_SetSubMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46233 PyObject *resultobj = 0;
46234 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46235 wxMenu *arg2 = (wxMenu *) 0 ;
46236 void *argp1 = 0 ;
46237 int res1 = 0 ;
46238 void *argp2 = 0 ;
46239 int res2 = 0 ;
46240 PyObject * obj0 = 0 ;
46241 PyObject * obj1 = 0 ;
46242 char * kwnames[] = {
46243 (char *) "self",(char *) "menu", NULL
46244 };
46245
46246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) SWIG_fail;
46247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46248 if (!SWIG_IsOK(res1)) {
46249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetSubMenu" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46250 }
46251 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46252 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
46253 if (!SWIG_IsOK(res2)) {
46254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetSubMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
46255 }
46256 arg2 = reinterpret_cast< wxMenu * >(argp2);
46257 {
46258 PyThreadState* __tstate = wxPyBeginAllowThreads();
46259 (arg1)->SetSubMenu(arg2);
46260 wxPyEndAllowThreads(__tstate);
46261 if (PyErr_Occurred()) SWIG_fail;
46262 }
46263 resultobj = SWIG_Py_Void();
46264 return resultobj;
46265fail:
46266 return NULL;
b411df4a
RD
46267}
46268
46269
1bd55598
RD
46270SWIGINTERN PyObject *_wrap_MenuItem_GetSubMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46271 PyObject *resultobj = 0;
46272 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46273 wxMenu *result = 0 ;
46274 void *argp1 = 0 ;
46275 int res1 = 0 ;
46276 PyObject *swig_obj[1] ;
46277
46278 if (!args) SWIG_fail;
46279 swig_obj[0] = args;
46280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46281 if (!SWIG_IsOK(res1)) {
46282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetSubMenu" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46283 }
46284 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46285 {
46286 PyThreadState* __tstate = wxPyBeginAllowThreads();
46287 result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu();
46288 wxPyEndAllowThreads(__tstate);
46289 if (PyErr_Occurred()) SWIG_fail;
46290 }
46291 {
46292 resultobj = wxPyMake_wxObject(result, 0);
46293 }
46294 return resultobj;
46295fail:
46296 return NULL;
46297}
46298
46299
46300SWIGINTERN PyObject *_wrap_MenuItem_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46301 PyObject *resultobj = 0;
46302 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46303 bool arg2 = (bool) true ;
46304 void *argp1 = 0 ;
46305 int res1 = 0 ;
46306 bool val2 ;
46307 int ecode2 = 0 ;
46308 PyObject * obj0 = 0 ;
46309 PyObject * obj1 = 0 ;
46310 char * kwnames[] = {
46311 (char *) "self",(char *) "enable", NULL
46312 };
46313
46314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
46315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46316 if (!SWIG_IsOK(res1)) {
46317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_Enable" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46318 }
46319 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46320 if (obj1) {
46321 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46322 if (!SWIG_IsOK(ecode2)) {
46323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_Enable" "', expected argument " "2"" of type '" "bool""'");
46324 }
46325 arg2 = static_cast< bool >(val2);
46326 }
46327 {
46328 PyThreadState* __tstate = wxPyBeginAllowThreads();
46329 (arg1)->Enable(arg2);
46330 wxPyEndAllowThreads(__tstate);
46331 if (PyErr_Occurred()) SWIG_fail;
46332 }
46333 resultobj = SWIG_Py_Void();
46334 return resultobj;
46335fail:
46336 return NULL;
32fe5131
RD
46337}
46338
46339
1bd55598
RD
46340SWIGINTERN PyObject *_wrap_MenuItem_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46341 PyObject *resultobj = 0;
46342 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46343 bool result;
46344 void *argp1 = 0 ;
46345 int res1 = 0 ;
46346 PyObject *swig_obj[1] ;
46347
46348 if (!args) SWIG_fail;
46349 swig_obj[0] = args;
46350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46351 if (!SWIG_IsOK(res1)) {
46352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsEnabled" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46353 }
46354 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46355 {
46356 PyThreadState* __tstate = wxPyBeginAllowThreads();
46357 result = (bool)((wxMenuItem const *)arg1)->IsEnabled();
46358 wxPyEndAllowThreads(__tstate);
46359 if (PyErr_Occurred()) SWIG_fail;
46360 }
46361 {
46362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46363 }
46364 return resultobj;
46365fail:
46366 return NULL;
46367}
46368
46369
46370SWIGINTERN PyObject *_wrap_MenuItem_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46371 PyObject *resultobj = 0;
46372 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46373 bool arg2 = (bool) true ;
46374 void *argp1 = 0 ;
46375 int res1 = 0 ;
46376 bool val2 ;
46377 int ecode2 = 0 ;
46378 PyObject * obj0 = 0 ;
46379 PyObject * obj1 = 0 ;
46380 char * kwnames[] = {
46381 (char *) "self",(char *) "check", NULL
46382 };
46383
46384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) SWIG_fail;
46385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46386 if (!SWIG_IsOK(res1)) {
46387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_Check" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46388 }
46389 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46390 if (obj1) {
46391 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46392 if (!SWIG_IsOK(ecode2)) {
46393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_Check" "', expected argument " "2"" of type '" "bool""'");
46394 }
46395 arg2 = static_cast< bool >(val2);
46396 }
46397 {
46398 PyThreadState* __tstate = wxPyBeginAllowThreads();
46399 (arg1)->Check(arg2);
46400 wxPyEndAllowThreads(__tstate);
46401 if (PyErr_Occurred()) SWIG_fail;
46402 }
46403 resultobj = SWIG_Py_Void();
46404 return resultobj;
46405fail:
46406 return NULL;
32fe5131
RD
46407}
46408
46409
1bd55598
RD
46410SWIGINTERN PyObject *_wrap_MenuItem_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46411 PyObject *resultobj = 0;
46412 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46413 bool result;
46414 void *argp1 = 0 ;
46415 int res1 = 0 ;
46416 PyObject *swig_obj[1] ;
46417
46418 if (!args) SWIG_fail;
46419 swig_obj[0] = args;
46420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46421 if (!SWIG_IsOK(res1)) {
46422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsChecked" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46423 }
46424 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46425 {
46426 PyThreadState* __tstate = wxPyBeginAllowThreads();
46427 result = (bool)((wxMenuItem const *)arg1)->IsChecked();
46428 wxPyEndAllowThreads(__tstate);
46429 if (PyErr_Occurred()) SWIG_fail;
46430 }
46431 {
46432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46433 }
46434 return resultobj;
46435fail:
46436 return NULL;
d55e5bfc
RD
46437}
46438
46439
1bd55598
RD
46440SWIGINTERN PyObject *_wrap_MenuItem_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46441 PyObject *resultobj = 0;
46442 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46443 void *argp1 = 0 ;
46444 int res1 = 0 ;
46445 PyObject *swig_obj[1] ;
46446
46447 if (!args) SWIG_fail;
46448 swig_obj[0] = args;
46449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46450 if (!SWIG_IsOK(res1)) {
46451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_Toggle" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46452 }
46453 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46454 {
46455 PyThreadState* __tstate = wxPyBeginAllowThreads();
46456 (arg1)->Toggle();
46457 wxPyEndAllowThreads(__tstate);
46458 if (PyErr_Occurred()) SWIG_fail;
46459 }
46460 resultobj = SWIG_Py_Void();
46461 return resultobj;
46462fail:
46463 return NULL;
46464}
46465
46466
46467SWIGINTERN PyObject *_wrap_MenuItem_SetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46468 PyObject *resultobj = 0;
46469 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46470 wxString *arg2 = 0 ;
46471 void *argp1 = 0 ;
46472 int res1 = 0 ;
46473 bool temp2 = false ;
46474 PyObject * obj0 = 0 ;
46475 PyObject * obj1 = 0 ;
46476 char * kwnames[] = {
46477 (char *) "self",(char *) "str", NULL
46478 };
46479
46480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
46481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46482 if (!SWIG_IsOK(res1)) {
46483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetHelp" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46484 }
46485 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46486 {
46487 arg2 = wxString_in_helper(obj1);
46488 if (arg2 == NULL) SWIG_fail;
46489 temp2 = true;
46490 }
46491 {
46492 PyThreadState* __tstate = wxPyBeginAllowThreads();
46493 (arg1)->SetHelp((wxString const &)*arg2);
46494 wxPyEndAllowThreads(__tstate);
46495 if (PyErr_Occurred()) SWIG_fail;
46496 }
46497 resultobj = SWIG_Py_Void();
46498 {
46499 if (temp2)
46500 delete arg2;
46501 }
46502 return resultobj;
46503fail:
46504 {
46505 if (temp2)
46506 delete arg2;
46507 }
46508 return NULL;
d55e5bfc
RD
46509}
46510
46511
1bd55598
RD
46512SWIGINTERN PyObject *_wrap_MenuItem_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46513 PyObject *resultobj = 0;
46514 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46515 wxString *result = 0 ;
46516 void *argp1 = 0 ;
46517 int res1 = 0 ;
46518 PyObject *swig_obj[1] ;
46519
46520 if (!args) SWIG_fail;
46521 swig_obj[0] = args;
46522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46523 if (!SWIG_IsOK(res1)) {
46524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetHelp" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46525 }
46526 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46527 {
46528 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 46529 {
1bd55598
RD
46530 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp();
46531 result = (wxString *) &_result_ref;
d55e5bfc 46532 }
1bd55598
RD
46533 wxPyEndAllowThreads(__tstate);
46534 if (PyErr_Occurred()) SWIG_fail;
46535 }
46536 {
46537#if wxUSE_UNICODE
46538 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
46539#else
46540 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
46541#endif
46542 }
46543 return resultobj;
46544fail:
46545 return NULL;
d55e5bfc
RD
46546}
46547
46548
1bd55598
RD
46549SWIGINTERN PyObject *_wrap_MenuItem_GetAccel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46550 PyObject *resultobj = 0;
46551 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46552 wxAcceleratorEntry *result = 0 ;
46553 void *argp1 = 0 ;
46554 int res1 = 0 ;
46555 PyObject *swig_obj[1] ;
46556
46557 if (!args) SWIG_fail;
46558 swig_obj[0] = args;
46559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46560 if (!SWIG_IsOK(res1)) {
46561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetAccel" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46562 }
46563 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46564 {
46565 PyThreadState* __tstate = wxPyBeginAllowThreads();
46566 result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel();
46567 wxPyEndAllowThreads(__tstate);
46568 if (PyErr_Occurred()) SWIG_fail;
46569 }
46570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
46571 return resultobj;
46572fail:
46573 return NULL;
46574}
46575
46576
46577SWIGINTERN PyObject *_wrap_MenuItem_SetAccel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46578 PyObject *resultobj = 0;
46579 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46580 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
46581 void *argp1 = 0 ;
46582 int res1 = 0 ;
46583 void *argp2 = 0 ;
46584 int res2 = 0 ;
46585 PyObject * obj0 = 0 ;
46586 PyObject * obj1 = 0 ;
46587 char * kwnames[] = {
46588 (char *) "self",(char *) "accel", NULL
46589 };
46590
46591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) SWIG_fail;
46592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46593 if (!SWIG_IsOK(res1)) {
46594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetAccel" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46595 }
46596 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46597 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
46598 if (!SWIG_IsOK(res2)) {
46599 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetAccel" "', expected argument " "2"" of type '" "wxAcceleratorEntry *""'");
46600 }
46601 arg2 = reinterpret_cast< wxAcceleratorEntry * >(argp2);
46602 {
46603 PyThreadState* __tstate = wxPyBeginAllowThreads();
46604 (arg1)->SetAccel(arg2);
46605 wxPyEndAllowThreads(__tstate);
46606 if (PyErr_Occurred()) SWIG_fail;
46607 }
46608 resultobj = SWIG_Py_Void();
46609 return resultobj;
46610fail:
46611 return NULL;
46612}
46613
46614
46615SWIGINTERN PyObject *_wrap_MenuItem_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46616 PyObject *resultobj = 0;
46617 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46618 wxBitmap *arg2 = 0 ;
46619 void *argp1 = 0 ;
46620 int res1 = 0 ;
46621 void *argp2 = 0 ;
46622 int res2 = 0 ;
46623 PyObject * obj0 = 0 ;
46624 PyObject * obj1 = 0 ;
46625 char * kwnames[] = {
46626 (char *) "self",(char *) "bitmap", NULL
46627 };
46628
46629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46631 if (!SWIG_IsOK(res1)) {
46632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetBitmap" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46633 }
46634 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46635 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46636 if (!SWIG_IsOK(res2)) {
46637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46638 }
46639 if (!argp2) {
46640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MenuItem_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46641 }
46642 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46643 {
46644 PyThreadState* __tstate = wxPyBeginAllowThreads();
46645 (arg1)->SetBitmap((wxBitmap const &)*arg2);
46646 wxPyEndAllowThreads(__tstate);
46647 if (PyErr_Occurred()) SWIG_fail;
46648 }
46649 resultobj = SWIG_Py_Void();
46650 return resultobj;
46651fail:
46652 return NULL;
d55e5bfc
RD
46653}
46654
46655
1bd55598
RD
46656SWIGINTERN PyObject *_wrap_MenuItem_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46657 PyObject *resultobj = 0;
46658 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46659 wxBitmap *result = 0 ;
46660 void *argp1 = 0 ;
46661 int res1 = 0 ;
46662 PyObject *swig_obj[1] ;
46663
46664 if (!args) SWIG_fail;
46665 swig_obj[0] = args;
46666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46667 if (!SWIG_IsOK(res1)) {
46668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetBitmap" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46669 }
46670 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46671 {
46672 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 46673 {
1bd55598
RD
46674 wxBitmap const &_result_ref = (arg1)->GetBitmap();
46675 result = (wxBitmap *) &_result_ref;
36ed4f51 46676 }
1bd55598
RD
46677 wxPyEndAllowThreads(__tstate);
46678 if (PyErr_Occurred()) SWIG_fail;
46679 }
46680 {
46681 wxBitmap* resultptr = new wxBitmap(*result);
46682 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
46683 }
46684 return resultobj;
46685fail:
46686 return NULL;
46687}
46688
46689
46690SWIGINTERN PyObject *_wrap_MenuItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46691 PyObject *resultobj = 0;
46692 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46693 wxFont *arg2 = 0 ;
46694 void *argp1 = 0 ;
46695 int res1 = 0 ;
46696 void *argp2 = 0 ;
46697 int res2 = 0 ;
46698 PyObject * obj0 = 0 ;
46699 PyObject * obj1 = 0 ;
46700 char * kwnames[] = {
46701 (char *) "self",(char *) "font", NULL
46702 };
46703
46704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
46705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46706 if (!SWIG_IsOK(res1)) {
46707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetFont" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46708 }
46709 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46710 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
46711 if (!SWIG_IsOK(res2)) {
46712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
46713 }
46714 if (!argp2) {
46715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MenuItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
46716 }
46717 arg2 = reinterpret_cast< wxFont * >(argp2);
46718 {
46719 PyThreadState* __tstate = wxPyBeginAllowThreads();
46720 wxMenuItem_SetFont(arg1,(wxFont const &)*arg2);
46721 wxPyEndAllowThreads(__tstate);
46722 if (PyErr_Occurred()) SWIG_fail;
46723 }
46724 resultobj = SWIG_Py_Void();
46725 return resultobj;
46726fail:
46727 return NULL;
d55e5bfc
RD
46728}
46729
46730
1bd55598
RD
46731SWIGINTERN PyObject *_wrap_MenuItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46732 PyObject *resultobj = 0;
46733 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46734 wxFont result;
46735 void *argp1 = 0 ;
46736 int res1 = 0 ;
46737 PyObject *swig_obj[1] ;
46738
46739 if (!args) SWIG_fail;
46740 swig_obj[0] = args;
46741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46742 if (!SWIG_IsOK(res1)) {
46743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetFont" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46744 }
46745 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46746 {
46747 PyThreadState* __tstate = wxPyBeginAllowThreads();
46748 result = wxMenuItem_GetFont(arg1);
46749 wxPyEndAllowThreads(__tstate);
46750 if (PyErr_Occurred()) SWIG_fail;
46751 }
46752 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
46753 return resultobj;
46754fail:
46755 return NULL;
46756}
46757
46758
46759SWIGINTERN PyObject *_wrap_MenuItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46760 PyObject *resultobj = 0;
46761 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46762 wxColour *arg2 = 0 ;
46763 void *argp1 = 0 ;
46764 int res1 = 0 ;
46765 wxColour temp2 ;
46766 PyObject * obj0 = 0 ;
46767 PyObject * obj1 = 0 ;
46768 char * kwnames[] = {
46769 (char *) "self",(char *) "colText", NULL
46770 };
46771
46772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
46773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46774 if (!SWIG_IsOK(res1)) {
46775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetTextColour" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46776 }
46777 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46778 {
46779 arg2 = &temp2;
46780 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
46781 }
46782 {
46783 PyThreadState* __tstate = wxPyBeginAllowThreads();
46784 wxMenuItem_SetTextColour(arg1,(wxColour const &)*arg2);
46785 wxPyEndAllowThreads(__tstate);
46786 if (PyErr_Occurred()) SWIG_fail;
46787 }
46788 resultobj = SWIG_Py_Void();
46789 return resultobj;
46790fail:
46791 return NULL;
d55e5bfc
RD
46792}
46793
46794
1bd55598
RD
46795SWIGINTERN PyObject *_wrap_MenuItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46796 PyObject *resultobj = 0;
46797 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46798 wxColour result;
46799 void *argp1 = 0 ;
46800 int res1 = 0 ;
46801 PyObject *swig_obj[1] ;
46802
46803 if (!args) SWIG_fail;
46804 swig_obj[0] = args;
46805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46806 if (!SWIG_IsOK(res1)) {
46807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetTextColour" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46808 }
46809 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46810 {
46811 PyThreadState* __tstate = wxPyBeginAllowThreads();
46812 result = wxMenuItem_GetTextColour(arg1);
46813 wxPyEndAllowThreads(__tstate);
46814 if (PyErr_Occurred()) SWIG_fail;
46815 }
46816 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
46817 return resultobj;
46818fail:
46819 return NULL;
46820}
46821
46822
46823SWIGINTERN PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46824 PyObject *resultobj = 0;
46825 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46826 wxColour *arg2 = 0 ;
46827 void *argp1 = 0 ;
46828 int res1 = 0 ;
46829 wxColour temp2 ;
46830 PyObject * obj0 = 0 ;
46831 PyObject * obj1 = 0 ;
46832 char * kwnames[] = {
46833 (char *) "self",(char *) "colBack", NULL
46834 };
46835
46836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
46837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46838 if (!SWIG_IsOK(res1)) {
46839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46840 }
46841 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46842 {
46843 arg2 = &temp2;
46844 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
46845 }
46846 {
46847 PyThreadState* __tstate = wxPyBeginAllowThreads();
46848 wxMenuItem_SetBackgroundColour(arg1,(wxColour const &)*arg2);
46849 wxPyEndAllowThreads(__tstate);
46850 if (PyErr_Occurred()) SWIG_fail;
46851 }
46852 resultobj = SWIG_Py_Void();
46853 return resultobj;
46854fail:
46855 return NULL;
d55e5bfc 46856}
1bd55598
RD
46857
46858
46859SWIGINTERN PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46860 PyObject *resultobj = 0;
46861 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46862 wxColour result;
46863 void *argp1 = 0 ;
46864 int res1 = 0 ;
46865 PyObject *swig_obj[1] ;
46866
46867 if (!args) SWIG_fail;
46868 swig_obj[0] = args;
46869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46870 if (!SWIG_IsOK(res1)) {
46871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46872 }
46873 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46874 {
46875 PyThreadState* __tstate = wxPyBeginAllowThreads();
46876 result = wxMenuItem_GetBackgroundColour(arg1);
46877 wxPyEndAllowThreads(__tstate);
46878 if (PyErr_Occurred()) SWIG_fail;
46879 }
46880 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
46881 return resultobj;
46882fail:
46883 return NULL;
46884}
46885
46886
46887SWIGINTERN PyObject *_wrap_MenuItem_SetBitmaps(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46888 PyObject *resultobj = 0;
46889 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46890 wxBitmap *arg2 = 0 ;
46891 wxBitmap const &arg3_defvalue = wxNullBitmap ;
46892 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
46893 void *argp1 = 0 ;
46894 int res1 = 0 ;
46895 void *argp2 = 0 ;
46896 int res2 = 0 ;
46897 void *argp3 = 0 ;
46898 int res3 = 0 ;
46899 PyObject * obj0 = 0 ;
46900 PyObject * obj1 = 0 ;
46901 PyObject * obj2 = 0 ;
46902 char * kwnames[] = {
46903 (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL
46904 };
46905
46906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
46907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46908 if (!SWIG_IsOK(res1)) {
46909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetBitmaps" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46910 }
46911 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46912 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46913 if (!SWIG_IsOK(res2)) {
46914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetBitmaps" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46915 }
46916 if (!argp2) {
46917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MenuItem_SetBitmaps" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46918 }
46919 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46920 if (obj2) {
46921 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
46922 if (!SWIG_IsOK(res3)) {
46923 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MenuItem_SetBitmaps" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 46924 }
1bd55598
RD
46925 if (!argp3) {
46926 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MenuItem_SetBitmaps" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 46927 }
1bd55598
RD
46928 arg3 = reinterpret_cast< wxBitmap * >(argp3);
46929 }
46930 {
46931 PyThreadState* __tstate = wxPyBeginAllowThreads();
46932 wxMenuItem_SetBitmaps(arg1,(wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
46933 wxPyEndAllowThreads(__tstate);
46934 if (PyErr_Occurred()) SWIG_fail;
46935 }
46936 resultobj = SWIG_Py_Void();
46937 return resultobj;
46938fail:
46939 return NULL;
46940}
46941
46942
46943SWIGINTERN PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46944 PyObject *resultobj = 0;
46945 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46946 wxBitmap *arg2 = 0 ;
46947 void *argp1 = 0 ;
46948 int res1 = 0 ;
46949 void *argp2 = 0 ;
46950 int res2 = 0 ;
46951 PyObject * obj0 = 0 ;
46952 PyObject * obj1 = 0 ;
46953 char * kwnames[] = {
46954 (char *) "self",(char *) "bmpDisabled", NULL
46955 };
46956
46957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46959 if (!SWIG_IsOK(res1)) {
46960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxMenuItem *""'");
46961 }
46962 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46963 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46964 if (!SWIG_IsOK(res2)) {
46965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46966 }
46967 if (!argp2) {
46968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MenuItem_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46969 }
46970 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46971 {
46972 PyThreadState* __tstate = wxPyBeginAllowThreads();
46973 wxMenuItem_SetDisabledBitmap(arg1,(wxBitmap const &)*arg2);
46974 wxPyEndAllowThreads(__tstate);
46975 if (PyErr_Occurred()) SWIG_fail;
46976 }
46977 resultobj = SWIG_Py_Void();
46978 return resultobj;
46979fail:
46980 return NULL;
d55e5bfc
RD
46981}
46982
46983
1bd55598
RD
46984SWIGINTERN PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46985 PyObject *resultobj = 0;
46986 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
46987 wxBitmap *result = 0 ;
46988 void *argp1 = 0 ;
46989 int res1 = 0 ;
46990 PyObject *swig_obj[1] ;
46991
46992 if (!args) SWIG_fail;
46993 swig_obj[0] = args;
46994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
46995 if (!SWIG_IsOK(res1)) {
46996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
46997 }
46998 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
46999 {
47000 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 47001 {
1bd55598
RD
47002 wxBitmap const &_result_ref = wxMenuItem_GetDisabledBitmap((wxMenuItem const *)arg1);
47003 result = (wxBitmap *) &_result_ref;
d55e5bfc 47004 }
1bd55598
RD
47005 wxPyEndAllowThreads(__tstate);
47006 if (PyErr_Occurred()) SWIG_fail;
47007 }
47008 {
47009 wxBitmap* resultptr = new wxBitmap(*result);
47010 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
47011 }
47012 return resultobj;
47013fail:
47014 return NULL;
47015}
47016
47017
47018SWIGINTERN PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47019 PyObject *resultobj = 0;
47020 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
47021 int arg2 ;
47022 void *argp1 = 0 ;
47023 int res1 = 0 ;
47024 int val2 ;
47025 int ecode2 = 0 ;
47026 PyObject * obj0 = 0 ;
47027 PyObject * obj1 = 0 ;
47028 char * kwnames[] = {
47029 (char *) "self",(char *) "nWidth", NULL
47030 };
47031
47032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) SWIG_fail;
47033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
47034 if (!SWIG_IsOK(res1)) {
47035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetMarginWidth" "', expected argument " "1"" of type '" "wxMenuItem *""'");
47036 }
47037 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
47038 ecode2 = SWIG_AsVal_int(obj1, &val2);
47039 if (!SWIG_IsOK(ecode2)) {
47040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_SetMarginWidth" "', expected argument " "2"" of type '" "int""'");
47041 }
47042 arg2 = static_cast< int >(val2);
47043 {
47044 PyThreadState* __tstate = wxPyBeginAllowThreads();
47045 wxMenuItem_SetMarginWidth(arg1,arg2);
47046 wxPyEndAllowThreads(__tstate);
47047 if (PyErr_Occurred()) SWIG_fail;
47048 }
47049 resultobj = SWIG_Py_Void();
47050 return resultobj;
47051fail:
47052 return NULL;
d55e5bfc
RD
47053}
47054
47055
1bd55598
RD
47056SWIGINTERN PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47057 PyObject *resultobj = 0;
47058 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
47059 int result;
47060 void *argp1 = 0 ;
47061 int res1 = 0 ;
47062 PyObject *swig_obj[1] ;
47063
47064 if (!args) SWIG_fail;
47065 swig_obj[0] = args;
47066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
47067 if (!SWIG_IsOK(res1)) {
47068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetMarginWidth" "', expected argument " "1"" of type '" "wxMenuItem *""'");
47069 }
47070 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
47071 {
47072 PyThreadState* __tstate = wxPyBeginAllowThreads();
47073 result = (int)wxMenuItem_GetMarginWidth(arg1);
47074 wxPyEndAllowThreads(__tstate);
47075 if (PyErr_Occurred()) SWIG_fail;
47076 }
47077 resultobj = SWIG_From_int(static_cast< int >(result));
47078 return resultobj;
47079fail:
47080 return NULL;
d55e5bfc
RD
47081}
47082
47083
1bd55598
RD
47084SWIGINTERN PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47085 PyObject *resultobj = 0;
47086 int result;
47087
47088 if (!SWIG_Python_UnpackTuple(args,"MenuItem_GetDefaultMarginWidth",0,0,0)) SWIG_fail;
47089 {
47090 PyThreadState* __tstate = wxPyBeginAllowThreads();
47091 result = (int)wxMenuItem_GetDefaultMarginWidth();
47092 wxPyEndAllowThreads(__tstate);
47093 if (PyErr_Occurred()) SWIG_fail;
47094 }
47095 resultobj = SWIG_From_int(static_cast< int >(result));
47096 return resultobj;
47097fail:
47098 return NULL;
d55e5bfc 47099}
1bd55598
RD
47100
47101
47102SWIGINTERN PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47103 PyObject *resultobj = 0;
47104 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
47105 bool result;
47106 void *argp1 = 0 ;
47107 int res1 = 0 ;
47108 PyObject *swig_obj[1] ;
47109
47110 if (!args) SWIG_fail;
47111 swig_obj[0] = args;
47112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
47113 if (!SWIG_IsOK(res1)) {
47114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsOwnerDrawn" "', expected argument " "1"" of type '" "wxMenuItem *""'");
47115 }
47116 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
47117 {
47118 PyThreadState* __tstate = wxPyBeginAllowThreads();
47119 result = (bool)wxMenuItem_IsOwnerDrawn(arg1);
47120 wxPyEndAllowThreads(__tstate);
47121 if (PyErr_Occurred()) SWIG_fail;
47122 }
47123 {
47124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
47125 }
47126 return resultobj;
47127fail:
47128 return NULL;
47129}
47130
47131
47132SWIGINTERN PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47133 PyObject *resultobj = 0;
47134 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
47135 bool arg2 = (bool) true ;
47136 void *argp1 = 0 ;
47137 int res1 = 0 ;
47138 bool val2 ;
47139 int ecode2 = 0 ;
47140 PyObject * obj0 = 0 ;
47141 PyObject * obj1 = 0 ;
47142 char * kwnames[] = {
47143 (char *) "self",(char *) "ownerDrawn", NULL
47144 };
47145
47146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) SWIG_fail;
47147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
47148 if (!SWIG_IsOK(res1)) {
47149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetOwnerDrawn" "', expected argument " "1"" of type '" "wxMenuItem *""'");
47150 }
47151 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
47152 if (obj1) {
47153 ecode2 = SWIG_AsVal_bool(obj1, &val2);
47154 if (!SWIG_IsOK(ecode2)) {
47155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_SetOwnerDrawn" "', expected argument " "2"" of type '" "bool""'");
47156 }
47157 arg2 = static_cast< bool >(val2);
47158 }
47159 {
47160 PyThreadState* __tstate = wxPyBeginAllowThreads();
47161 wxMenuItem_SetOwnerDrawn(arg1,arg2);
47162 wxPyEndAllowThreads(__tstate);
47163 if (PyErr_Occurred()) SWIG_fail;
47164 }
47165 resultobj = SWIG_Py_Void();
47166 return resultobj;
47167fail:
47168 return NULL;
d55e5bfc
RD
47169}
47170
47171
1bd55598
RD
47172SWIGINTERN PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47173 PyObject *resultobj = 0;
47174 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
47175 void *argp1 = 0 ;
47176 int res1 = 0 ;
47177 PyObject *swig_obj[1] ;
47178
47179 if (!args) SWIG_fail;
47180 swig_obj[0] = args;
47181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
47182 if (!SWIG_IsOK(res1)) {
47183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_ResetOwnerDrawn" "', expected argument " "1"" of type '" "wxMenuItem *""'");
47184 }
47185 arg1 = reinterpret_cast< wxMenuItem * >(argp1);
47186 {
47187 PyThreadState* __tstate = wxPyBeginAllowThreads();
47188 wxMenuItem_ResetOwnerDrawn(arg1);
47189 wxPyEndAllowThreads(__tstate);
47190 if (PyErr_Occurred()) SWIG_fail;
47191 }
47192 resultobj = SWIG_Py_Void();
47193 return resultobj;
47194fail:
47195 return NULL;
d55e5bfc
RD
47196}
47197
47198
1bd55598
RD
47199SWIGINTERN PyObject *MenuItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47200 PyObject *obj;
47201 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
47202 SWIG_TypeNewClientData(SWIGTYPE_p_wxMenuItem, SWIG_NewClientData(obj));
47203 return SWIG_Py_Void();
d55e5bfc
RD
47204}
47205
1bd55598
RD
47206SWIGINTERN PyObject *MenuItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47207 return SWIG_Python_InitShadowInstance(args);
47208}
d55e5bfc 47209
1bd55598
RD
47210SWIGINTERN int ControlNameStr_set(PyObject *) {
47211 SWIG_Error(SWIG_AttributeError,"Variable ControlNameStr is read-only.");
47212 return 1;
d55e5bfc
RD
47213}
47214
47215
1bd55598
RD
47216SWIGINTERN PyObject *ControlNameStr_get(void) {
47217 PyObject *pyobj = 0;
47218
47219 {
d55e5bfc 47220#if wxUSE_UNICODE
1bd55598 47221 pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
d55e5bfc 47222#else
1bd55598 47223 pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
d55e5bfc 47224#endif
1bd55598
RD
47225 }
47226 return pyobj;
47227}
47228
47229
47230SWIGINTERN PyObject *_wrap_new_Control(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47231 PyObject *resultobj = 0;
47232 wxWindow *arg1 = (wxWindow *) 0 ;
47233 int arg2 = (int) -1 ;
47234 wxPoint const &arg3_defvalue = wxDefaultPosition ;
47235 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
47236 wxSize const &arg4_defvalue = wxDefaultSize ;
47237 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
47238 long arg5 = (long) 0 ;
47239 wxValidator const &arg6_defvalue = wxDefaultValidator ;
47240 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
47241 wxString const &arg7_defvalue = wxPyControlNameStr ;
47242 wxString *arg7 = (wxString *) &arg7_defvalue ;
47243 wxControl *result = 0 ;
47244 void *argp1 = 0 ;
47245 int res1 = 0 ;
47246 int val2 ;
47247 int ecode2 = 0 ;
47248 wxPoint temp3 ;
47249 wxSize temp4 ;
47250 long val5 ;
47251 int ecode5 = 0 ;
47252 void *argp6 = 0 ;
47253 int res6 = 0 ;
47254 bool temp7 = false ;
47255 PyObject * obj0 = 0 ;
47256 PyObject * obj1 = 0 ;
47257 PyObject * obj2 = 0 ;
47258 PyObject * obj3 = 0 ;
47259 PyObject * obj4 = 0 ;
47260 PyObject * obj5 = 0 ;
47261 PyObject * obj6 = 0 ;
47262 char * kwnames[] = {
47263 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
47264 };
47265
47266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
47267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
47268 if (!SWIG_IsOK(res1)) {
47269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Control" "', expected argument " "1"" of type '" "wxWindow *""'");
47270 }
47271 arg1 = reinterpret_cast< wxWindow * >(argp1);
47272 if (obj1) {
47273 ecode2 = SWIG_AsVal_int(obj1, &val2);
47274 if (!SWIG_IsOK(ecode2)) {
47275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Control" "', expected argument " "2"" of type '" "int""'");
47276 }
47277 arg2 = static_cast< int >(val2);
47278 }
47279 if (obj2) {
d55e5bfc 47280 {
1bd55598
RD
47281 arg3 = &temp3;
47282 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 47283 }
1bd55598
RD
47284 }
47285 if (obj3) {
d55e5bfc 47286 {
1bd55598
RD
47287 arg4 = &temp4;
47288 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 47289 }
1bd55598
RD
47290 }
47291 if (obj4) {
47292 ecode5 = SWIG_AsVal_long(obj4, &val5);
47293 if (!SWIG_IsOK(ecode5)) {
47294 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Control" "', expected argument " "5"" of type '" "long""'");
47295 }
47296 arg5 = static_cast< long >(val5);
47297 }
47298 if (obj5) {
47299 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
47300 if (!SWIG_IsOK(res6)) {
47301 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_Control" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 47302 }
1bd55598
RD
47303 if (!argp6) {
47304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Control" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 47305 }
1bd55598
RD
47306 arg6 = reinterpret_cast< wxValidator * >(argp6);
47307 }
47308 if (obj6) {
d55e5bfc 47309 {
1bd55598
RD
47310 arg7 = wxString_in_helper(obj6);
47311 if (arg7 == NULL) SWIG_fail;
47312 temp7 = true;
d55e5bfc 47313 }
1bd55598
RD
47314 }
47315 {
47316 if (!wxPyCheckForApp()) SWIG_fail;
47317 PyThreadState* __tstate = wxPyBeginAllowThreads();
47318 result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
47319 wxPyEndAllowThreads(__tstate);
47320 if (PyErr_Occurred()) SWIG_fail;
47321 }
47322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxControl, SWIG_POINTER_NEW | 0 );
47323 {
47324 if (temp7)
47325 delete arg7;
47326 }
47327 return resultobj;
47328fail:
47329 {
47330 if (temp7)
47331 delete arg7;
47332 }
47333 return NULL;
d55e5bfc
RD
47334}
47335
47336
1bd55598
RD
47337SWIGINTERN PyObject *_wrap_new_PreControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47338 PyObject *resultobj = 0;
47339 wxControl *result = 0 ;
47340
47341 if (!SWIG_Python_UnpackTuple(args,"new_PreControl",0,0,0)) SWIG_fail;
47342 {
47343 if (!wxPyCheckForApp()) SWIG_fail;
47344 PyThreadState* __tstate = wxPyBeginAllowThreads();
47345 result = (wxControl *)new wxControl();
47346 wxPyEndAllowThreads(__tstate);
47347 if (PyErr_Occurred()) SWIG_fail;
47348 }
47349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxControl, SWIG_POINTER_OWN | 0 );
47350 return resultobj;
47351fail:
47352 return NULL;
47353}
47354
47355
47356SWIGINTERN PyObject *_wrap_Control_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47357 PyObject *resultobj = 0;
47358 wxControl *arg1 = (wxControl *) 0 ;
47359 wxWindow *arg2 = (wxWindow *) 0 ;
47360 int arg3 = (int) -1 ;
47361 wxPoint const &arg4_defvalue = wxDefaultPosition ;
47362 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
47363 wxSize const &arg5_defvalue = wxDefaultSize ;
47364 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
47365 long arg6 = (long) 0 ;
47366 wxValidator const &arg7_defvalue = wxDefaultValidator ;
47367 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
47368 wxString const &arg8_defvalue = wxPyControlNameStr ;
47369 wxString *arg8 = (wxString *) &arg8_defvalue ;
47370 bool result;
47371 void *argp1 = 0 ;
47372 int res1 = 0 ;
47373 void *argp2 = 0 ;
47374 int res2 = 0 ;
47375 int val3 ;
47376 int ecode3 = 0 ;
47377 wxPoint temp4 ;
47378 wxSize temp5 ;
47379 long val6 ;
47380 int ecode6 = 0 ;
47381 void *argp7 = 0 ;
47382 int res7 = 0 ;
47383 bool temp8 = false ;
47384 PyObject * obj0 = 0 ;
47385 PyObject * obj1 = 0 ;
47386 PyObject * obj2 = 0 ;
47387 PyObject * obj3 = 0 ;
47388 PyObject * obj4 = 0 ;
47389 PyObject * obj5 = 0 ;
47390 PyObject * obj6 = 0 ;
47391 PyObject * obj7 = 0 ;
47392 char * kwnames[] = {
47393 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
47394 };
47395
47396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
47397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxControl, 0 | 0 );
47398 if (!SWIG_IsOK(res1)) {
47399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Control_Create" "', expected argument " "1"" of type '" "wxControl *""'");
47400 }
47401 arg1 = reinterpret_cast< wxControl * >(argp1);
47402 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
47403 if (!SWIG_IsOK(res2)) {
47404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Control_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
47405 }
47406 arg2 = reinterpret_cast< wxWindow * >(argp2);
47407 if (obj2) {
47408 ecode3 = SWIG_AsVal_int(obj2, &val3);
47409 if (!SWIG_IsOK(ecode3)) {
47410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Control_Create" "', expected argument " "3"" of type '" "int""'");
47411 }
47412 arg3 = static_cast< int >(val3);
47413 }
47414 if (obj3) {
d55e5bfc 47415 {
1bd55598
RD
47416 arg4 = &temp4;
47417 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 47418 }
1bd55598
RD
47419 }
47420 if (obj4) {
d55e5bfc 47421 {
1bd55598
RD
47422 arg5 = &temp5;
47423 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 47424 }
1bd55598
RD
47425 }
47426 if (obj5) {
47427 ecode6 = SWIG_AsVal_long(obj5, &val6);
47428 if (!SWIG_IsOK(ecode6)) {
47429 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Control_Create" "', expected argument " "6"" of type '" "long""'");
47430 }
47431 arg6 = static_cast< long >(val6);
47432 }
47433 if (obj6) {
47434 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
47435 if (!SWIG_IsOK(res7)) {
47436 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Control_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 47437 }
1bd55598
RD
47438 if (!argp7) {
47439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Control_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 47440 }
1bd55598
RD
47441 arg7 = reinterpret_cast< wxValidator * >(argp7);
47442 }
47443 if (obj7) {
d55e5bfc 47444 {
1bd55598
RD
47445 arg8 = wxString_in_helper(obj7);
47446 if (arg8 == NULL) SWIG_fail;
47447 temp8 = true;
d55e5bfc 47448 }
1bd55598
RD
47449 }
47450 {
47451 PyThreadState* __tstate = wxPyBeginAllowThreads();
47452 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
47453 wxPyEndAllowThreads(__tstate);
47454 if (PyErr_Occurred()) SWIG_fail;
47455 }
47456 {
47457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
47458 }
47459 {
47460 if (temp8)
47461 delete arg8;
47462 }
47463 return resultobj;
47464fail:
47465 {
47466 if (temp8)
47467 delete arg8;
47468 }
47469 return NULL;
47470}
47471
47472
1eeb270e
RD
47473SWIGINTERN PyObject *_wrap_Control_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47474 PyObject *resultobj = 0;
47475 wxControl *arg1 = (wxControl *) 0 ;
47476 int result;
47477 void *argp1 = 0 ;
47478 int res1 = 0 ;
47479 PyObject *swig_obj[1] ;
47480
47481 if (!args) SWIG_fail;
47482 swig_obj[0] = args;
47483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxControl, 0 | 0 );
47484 if (!SWIG_IsOK(res1)) {
47485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Control_GetAlignment" "', expected argument " "1"" of type '" "wxControl const *""'");
47486 }
47487 arg1 = reinterpret_cast< wxControl * >(argp1);
47488 {
47489 PyThreadState* __tstate = wxPyBeginAllowThreads();
47490 result = (int)((wxControl const *)arg1)->GetAlignment();
47491 wxPyEndAllowThreads(__tstate);
47492 if (PyErr_Occurred()) SWIG_fail;
47493 }
47494 resultobj = SWIG_From_int(static_cast< int >(result));
47495 return resultobj;
47496fail:
47497 return NULL;
47498}
47499
47500
34e0a3bb 47501SWIGINTERN PyObject *_wrap_Control_GetLabelText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1eeb270e
RD
47502 PyObject *resultobj = 0;
47503 wxControl *arg1 = (wxControl *) 0 ;
47504 wxString result;
47505 void *argp1 = 0 ;
47506 int res1 = 0 ;
34e0a3bb 47507 PyObject *swig_obj[1] ;
1eeb270e 47508
34e0a3bb
RD
47509 if (!args) SWIG_fail;
47510 swig_obj[0] = args;
1eeb270e
RD
47511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxControl, 0 | 0 );
47512 if (!SWIG_IsOK(res1)) {
47513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Control_GetLabelText" "', expected argument " "1"" of type '" "wxControl const *""'");
47514 }
47515 arg1 = reinterpret_cast< wxControl * >(argp1);
47516 {
47517 PyThreadState* __tstate = wxPyBeginAllowThreads();
47518 result = ((wxControl const *)arg1)->GetLabelText();
47519 wxPyEndAllowThreads(__tstate);
47520 if (PyErr_Occurred()) SWIG_fail;
47521 }
47522 {
47523#if wxUSE_UNICODE
47524 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
47525#else
47526 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
47527#endif
47528 }
47529 return resultobj;
47530fail:
47531 return NULL;
47532}
47533
47534
1bd55598
RD
47535SWIGINTERN PyObject *_wrap_Control_Command(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47536 PyObject *resultobj = 0;
47537 wxControl *arg1 = (wxControl *) 0 ;
47538 wxCommandEvent *arg2 = 0 ;
47539 void *argp1 = 0 ;
47540 int res1 = 0 ;
47541 void *argp2 = 0 ;
47542 int res2 = 0 ;
47543 PyObject * obj0 = 0 ;
47544 PyObject * obj1 = 0 ;
47545 char * kwnames[] = {
47546 (char *) "self",(char *) "event", NULL
47547 };
47548
47549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) SWIG_fail;
47550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxControl, 0 | 0 );
47551 if (!SWIG_IsOK(res1)) {
47552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Control_Command" "', expected argument " "1"" of type '" "wxControl *""'");
47553 }
47554 arg1 = reinterpret_cast< wxControl * >(argp1);
47555 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCommandEvent, 0 );
47556 if (!SWIG_IsOK(res2)) {
47557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Control_Command" "', expected argument " "2"" of type '" "wxCommandEvent &""'");
47558 }
47559 if (!argp2) {
47560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Control_Command" "', expected argument " "2"" of type '" "wxCommandEvent &""'");
47561 }
47562 arg2 = reinterpret_cast< wxCommandEvent * >(argp2);
47563 {
47564 PyThreadState* __tstate = wxPyBeginAllowThreads();
47565 (arg1)->Command(*arg2);
47566 wxPyEndAllowThreads(__tstate);
47567 if (PyErr_Occurred()) SWIG_fail;
47568 }
47569 resultobj = SWIG_Py_Void();
47570 return resultobj;
47571fail:
47572 return NULL;
d55e5bfc
RD
47573}
47574
47575
1bd55598
RD
47576SWIGINTERN PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47577 PyObject *resultobj = 0;
47578 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
47579 SwigValueWrapper<wxVisualAttributes > result;
47580 int val1 ;
47581 int ecode1 = 0 ;
47582 PyObject * obj0 = 0 ;
47583 char * kwnames[] = {
47584 (char *) "variant", NULL
47585 };
47586
47587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
47588 if (obj0) {
47589 ecode1 = SWIG_AsVal_int(obj0, &val1);
47590 if (!SWIG_IsOK(ecode1)) {
47591 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Control_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
47592 }
47593 arg1 = static_cast< wxWindowVariant >(val1);
47594 }
47595 {
47596 if (!wxPyCheckForApp()) SWIG_fail;
47597 PyThreadState* __tstate = wxPyBeginAllowThreads();
47598 result = wxControl::GetClassDefaultAttributes(arg1);
47599 wxPyEndAllowThreads(__tstate);
47600 if (PyErr_Occurred()) SWIG_fail;
47601 }
47602 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
47603 return resultobj;
47604fail:
47605 return NULL;
47606}
47607
47608
47609SWIGINTERN PyObject *Control_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47610 PyObject *obj;
47611 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
47612 SWIG_TypeNewClientData(SWIGTYPE_p_wxControl, SWIG_NewClientData(obj));
47613 return SWIG_Py_Void();
47614}
47615
47616SWIGINTERN PyObject *Control_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47617 return SWIG_Python_InitShadowInstance(args);
47618}
47619
47620SWIGINTERN PyObject *_wrap_ItemContainer_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47621 PyObject *resultobj = 0;
47622 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
47623 wxString *arg2 = 0 ;
47624 PyObject *arg3 = (PyObject *) NULL ;
47625 int result;
47626 void *argp1 = 0 ;
47627 int res1 = 0 ;
47628 bool temp2 = false ;
47629 PyObject * obj0 = 0 ;
47630 PyObject * obj1 = 0 ;
47631 PyObject * obj2 = 0 ;
47632 char * kwnames[] = {
47633 (char *) "self",(char *) "item",(char *) "clientData", NULL
47634 };
47635
47636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
47637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47638 if (!SWIG_IsOK(res1)) {
47639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_Append" "', expected argument " "1"" of type '" "wxItemContainer *""'");
47640 }
47641 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
47642 {
47643 arg2 = wxString_in_helper(obj1);
47644 if (arg2 == NULL) SWIG_fail;
47645 temp2 = true;
47646 }
47647 if (obj2) {
47648 arg3 = obj2;
47649 }
47650 {
47651 PyThreadState* __tstate = wxPyBeginAllowThreads();
47652 result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3);
47653 wxPyEndAllowThreads(__tstate);
47654 if (PyErr_Occurred()) SWIG_fail;
47655 }
47656 resultobj = SWIG_From_int(static_cast< int >(result));
47657 {
47658 if (temp2)
47659 delete arg2;
47660 }
47661 return resultobj;
47662fail:
47663 {
47664 if (temp2)
47665 delete arg2;
47666 }
47667 return NULL;
d55e5bfc
RD
47668}
47669
47670
1bd55598
RD
47671SWIGINTERN PyObject *_wrap_ItemContainer_AppendItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47672 PyObject *resultobj = 0;
47673 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
47674 wxArrayString *arg2 = 0 ;
47675 void *argp1 = 0 ;
47676 int res1 = 0 ;
47677 bool temp2 = false ;
47678 PyObject * obj0 = 0 ;
47679 PyObject * obj1 = 0 ;
47680 char * kwnames[] = {
47681 (char *) "self",(char *) "strings", NULL
47682 };
47683
47684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) SWIG_fail;
47685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47686 if (!SWIG_IsOK(res1)) {
47687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_AppendItems" "', expected argument " "1"" of type '" "wxItemContainer *""'");
47688 }
47689 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
47690 {
47691 if (! PySequence_Check(obj1)) {
47692 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
47693 SWIG_fail;
47694 }
47695 arg2 = new wxArrayString;
47696 temp2 = true;
47697 int i, len=PySequence_Length(obj1);
47698 for (i=0; i<len; i++) {
47699 PyObject* item = PySequence_GetItem(obj1, i);
47700 wxString* s = wxString_in_helper(item);
47701 if (PyErr_Occurred()) SWIG_fail;
47702 arg2->Add(*s);
47703 delete s;
47704 Py_DECREF(item);
d55e5bfc 47705 }
1bd55598
RD
47706 }
47707 {
47708 PyThreadState* __tstate = wxPyBeginAllowThreads();
47709 (arg1)->Append((wxArrayString const &)*arg2);
47710 wxPyEndAllowThreads(__tstate);
47711 if (PyErr_Occurred()) SWIG_fail;
47712 }
47713 resultobj = SWIG_Py_Void();
47714 {
47715 if (temp2) delete arg2;
47716 }
47717 return resultobj;
47718fail:
47719 {
47720 if (temp2) delete arg2;
47721 }
47722 return NULL;
47723}
47724
47725
47726SWIGINTERN PyObject *_wrap_ItemContainer_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47727 PyObject *resultobj = 0;
47728 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
47729 wxString *arg2 = 0 ;
50f151d7 47730 unsigned int arg3 ;
1bd55598
RD
47731 PyObject *arg4 = (PyObject *) NULL ;
47732 int result;
47733 void *argp1 = 0 ;
47734 int res1 = 0 ;
47735 bool temp2 = false ;
50f151d7 47736 unsigned int val3 ;
1bd55598
RD
47737 int ecode3 = 0 ;
47738 PyObject * obj0 = 0 ;
47739 PyObject * obj1 = 0 ;
47740 PyObject * obj2 = 0 ;
47741 PyObject * obj3 = 0 ;
47742 char * kwnames[] = {
47743 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
47744 };
47745
47746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
47747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47748 if (!SWIG_IsOK(res1)) {
47749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_Insert" "', expected argument " "1"" of type '" "wxItemContainer *""'");
47750 }
47751 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
47752 {
47753 arg2 = wxString_in_helper(obj1);
47754 if (arg2 == NULL) SWIG_fail;
47755 temp2 = true;
47756 }
50f151d7 47757 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
1bd55598 47758 if (!SWIG_IsOK(ecode3)) {
50f151d7 47759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ItemContainer_Insert" "', expected argument " "3"" of type '" "unsigned int""'");
1bd55598 47760 }
50f151d7 47761 arg3 = static_cast< unsigned int >(val3);
1bd55598
RD
47762 if (obj3) {
47763 arg4 = obj3;
47764 }
47765 {
47766 PyThreadState* __tstate = wxPyBeginAllowThreads();
47767 result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
47768 wxPyEndAllowThreads(__tstate);
47769 if (PyErr_Occurred()) SWIG_fail;
47770 }
47771 resultobj = SWIG_From_int(static_cast< int >(result));
47772 {
47773 if (temp2)
47774 delete arg2;
47775 }
47776 return resultobj;
47777fail:
47778 {
47779 if (temp2)
47780 delete arg2;
47781 }
47782 return NULL;
d55e5bfc
RD
47783}
47784
47785
1bd55598
RD
47786SWIGINTERN PyObject *_wrap_ItemContainer_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47787 PyObject *resultobj = 0;
47788 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
47789 void *argp1 = 0 ;
47790 int res1 = 0 ;
47791 PyObject *swig_obj[1] ;
47792
47793 if (!args) SWIG_fail;
47794 swig_obj[0] = args;
47795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47796 if (!SWIG_IsOK(res1)) {
47797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_Clear" "', expected argument " "1"" of type '" "wxItemContainer *""'");
47798 }
47799 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
47800 {
47801 PyThreadState* __tstate = wxPyBeginAllowThreads();
47802 (arg1)->Clear();
47803 wxPyEndAllowThreads(__tstate);
47804 if (PyErr_Occurred()) SWIG_fail;
47805 }
47806 resultobj = SWIG_Py_Void();
47807 return resultobj;
47808fail:
47809 return NULL;
47810}
47811
47812
47813SWIGINTERN PyObject *_wrap_ItemContainer_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47814 PyObject *resultobj = 0;
47815 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
50f151d7 47816 unsigned int arg2 ;
1bd55598
RD
47817 void *argp1 = 0 ;
47818 int res1 = 0 ;
50f151d7 47819 unsigned int val2 ;
1bd55598
RD
47820 int ecode2 = 0 ;
47821 PyObject * obj0 = 0 ;
47822 PyObject * obj1 = 0 ;
47823 char * kwnames[] = {
47824 (char *) "self",(char *) "n", NULL
47825 };
47826
47827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
47828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47829 if (!SWIG_IsOK(res1)) {
47830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_Delete" "', expected argument " "1"" of type '" "wxItemContainer *""'");
47831 }
47832 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
50f151d7 47833 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 47834 if (!SWIG_IsOK(ecode2)) {
50f151d7 47835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_Delete" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 47836 }
50f151d7 47837 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
47838 {
47839 PyThreadState* __tstate = wxPyBeginAllowThreads();
47840 (arg1)->Delete(arg2);
47841 wxPyEndAllowThreads(__tstate);
47842 if (PyErr_Occurred()) SWIG_fail;
47843 }
47844 resultobj = SWIG_Py_Void();
47845 return resultobj;
47846fail:
47847 return NULL;
47848}
47849
47850
47851SWIGINTERN PyObject *_wrap_ItemContainer_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47852 PyObject *resultobj = 0;
47853 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
50f151d7 47854 unsigned int arg2 ;
1bd55598
RD
47855 PyObject *result = 0 ;
47856 void *argp1 = 0 ;
47857 int res1 = 0 ;
50f151d7 47858 unsigned int val2 ;
1bd55598
RD
47859 int ecode2 = 0 ;
47860 PyObject * obj0 = 0 ;
47861 PyObject * obj1 = 0 ;
47862 char * kwnames[] = {
47863 (char *) "self",(char *) "n", NULL
47864 };
47865
47866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
47867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47868 if (!SWIG_IsOK(res1)) {
47869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetClientData" "', expected argument " "1"" of type '" "wxItemContainer *""'");
47870 }
47871 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
50f151d7 47872 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 47873 if (!SWIG_IsOK(ecode2)) {
50f151d7 47874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_GetClientData" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 47875 }
50f151d7 47876 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
47877 {
47878 PyThreadState* __tstate = wxPyBeginAllowThreads();
47879 result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2);
47880 wxPyEndAllowThreads(__tstate);
47881 if (PyErr_Occurred()) SWIG_fail;
47882 }
47883 resultobj = result;
47884 return resultobj;
47885fail:
47886 return NULL;
47887}
47888
47889
47890SWIGINTERN PyObject *_wrap_ItemContainer_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47891 PyObject *resultobj = 0;
47892 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
50f151d7 47893 unsigned int arg2 ;
1bd55598
RD
47894 PyObject *arg3 = (PyObject *) 0 ;
47895 void *argp1 = 0 ;
47896 int res1 = 0 ;
50f151d7 47897 unsigned int val2 ;
1bd55598
RD
47898 int ecode2 = 0 ;
47899 PyObject * obj0 = 0 ;
47900 PyObject * obj1 = 0 ;
47901 PyObject * obj2 = 0 ;
47902 char * kwnames[] = {
47903 (char *) "self",(char *) "n",(char *) "clientData", NULL
47904 };
47905
47906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
47907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47908 if (!SWIG_IsOK(res1)) {
47909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_SetClientData" "', expected argument " "1"" of type '" "wxItemContainer *""'");
47910 }
47911 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
50f151d7 47912 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 47913 if (!SWIG_IsOK(ecode2)) {
50f151d7 47914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_SetClientData" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 47915 }
50f151d7 47916 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
47917 arg3 = obj2;
47918 {
47919 PyThreadState* __tstate = wxPyBeginAllowThreads();
47920 wxItemContainer_SetClientData(arg1,arg2,arg3);
47921 wxPyEndAllowThreads(__tstate);
47922 if (PyErr_Occurred()) SWIG_fail;
47923 }
47924 resultobj = SWIG_Py_Void();
47925 return resultobj;
47926fail:
47927 return NULL;
d55e5bfc
RD
47928}
47929
47930
1bd55598
RD
47931SWIGINTERN PyObject *_wrap_ItemContainer_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47932 PyObject *resultobj = 0;
47933 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
50f151d7 47934 unsigned int result;
1bd55598
RD
47935 void *argp1 = 0 ;
47936 int res1 = 0 ;
47937 PyObject *swig_obj[1] ;
47938
47939 if (!args) SWIG_fail;
47940 swig_obj[0] = args;
47941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47942 if (!SWIG_IsOK(res1)) {
47943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetCount" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
47944 }
47945 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
47946 {
47947 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 47948 result = (unsigned int)((wxItemContainer const *)arg1)->GetCount();
1bd55598
RD
47949 wxPyEndAllowThreads(__tstate);
47950 if (PyErr_Occurred()) SWIG_fail;
47951 }
50f151d7 47952 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
47953 return resultobj;
47954fail:
47955 return NULL;
d55e5bfc
RD
47956}
47957
47958
1bd55598
RD
47959SWIGINTERN PyObject *_wrap_ItemContainer_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47960 PyObject *resultobj = 0;
47961 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
47962 bool result;
47963 void *argp1 = 0 ;
47964 int res1 = 0 ;
47965 PyObject *swig_obj[1] ;
47966
47967 if (!args) SWIG_fail;
47968 swig_obj[0] = args;
47969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
47970 if (!SWIG_IsOK(res1)) {
47971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_IsEmpty" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
47972 }
47973 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
47974 {
47975 PyThreadState* __tstate = wxPyBeginAllowThreads();
47976 result = (bool)((wxItemContainer const *)arg1)->IsEmpty();
47977 wxPyEndAllowThreads(__tstate);
47978 if (PyErr_Occurred()) SWIG_fail;
47979 }
47980 {
47981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
47982 }
47983 return resultobj;
47984fail:
47985 return NULL;
47986}
47987
47988
47989SWIGINTERN PyObject *_wrap_ItemContainer_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47990 PyObject *resultobj = 0;
47991 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
50f151d7 47992 unsigned int arg2 ;
1bd55598
RD
47993 wxString result;
47994 void *argp1 = 0 ;
47995 int res1 = 0 ;
50f151d7 47996 unsigned int val2 ;
1bd55598
RD
47997 int ecode2 = 0 ;
47998 PyObject * obj0 = 0 ;
47999 PyObject * obj1 = 0 ;
48000 char * kwnames[] = {
48001 (char *) "self",(char *) "n", NULL
48002 };
48003
48004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
48005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
48006 if (!SWIG_IsOK(res1)) {
48007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetString" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
48008 }
48009 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
50f151d7 48010 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 48011 if (!SWIG_IsOK(ecode2)) {
50f151d7 48012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_GetString" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 48013 }
50f151d7 48014 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
48015 {
48016 PyThreadState* __tstate = wxPyBeginAllowThreads();
48017 result = ((wxItemContainer const *)arg1)->GetString(arg2);
48018 wxPyEndAllowThreads(__tstate);
48019 if (PyErr_Occurred()) SWIG_fail;
48020 }
48021 {
48022#if wxUSE_UNICODE
48023 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
48024#else
48025 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
48026#endif
48027 }
48028 return resultobj;
48029fail:
48030 return NULL;
d55e5bfc
RD
48031}
48032
48033
1bd55598
RD
48034SWIGINTERN PyObject *_wrap_ItemContainer_GetStrings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48035 PyObject *resultobj = 0;
48036 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
48037 wxArrayString result;
48038 void *argp1 = 0 ;
48039 int res1 = 0 ;
48040 PyObject *swig_obj[1] ;
48041
48042 if (!args) SWIG_fail;
48043 swig_obj[0] = args;
48044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
48045 if (!SWIG_IsOK(res1)) {
48046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetStrings" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
48047 }
48048 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
48049 {
48050 PyThreadState* __tstate = wxPyBeginAllowThreads();
48051 result = ((wxItemContainer const *)arg1)->GetStrings();
48052 wxPyEndAllowThreads(__tstate);
48053 if (PyErr_Occurred()) SWIG_fail;
48054 }
48055 {
48056 resultobj = wxArrayString2PyList_helper(result);
48057 }
48058 return resultobj;
48059fail:
48060 return NULL;
48061}
48062
48063
48064SWIGINTERN PyObject *_wrap_ItemContainer_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48065 PyObject *resultobj = 0;
48066 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
50f151d7 48067 unsigned int arg2 ;
1bd55598
RD
48068 wxString *arg3 = 0 ;
48069 void *argp1 = 0 ;
48070 int res1 = 0 ;
50f151d7 48071 unsigned int val2 ;
1bd55598
RD
48072 int ecode2 = 0 ;
48073 bool temp3 = false ;
48074 PyObject * obj0 = 0 ;
48075 PyObject * obj1 = 0 ;
48076 PyObject * obj2 = 0 ;
48077 char * kwnames[] = {
48078 (char *) "self",(char *) "n",(char *) "s", NULL
48079 };
48080
48081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
48082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
48083 if (!SWIG_IsOK(res1)) {
48084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_SetString" "', expected argument " "1"" of type '" "wxItemContainer *""'");
48085 }
48086 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
50f151d7 48087 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 48088 if (!SWIG_IsOK(ecode2)) {
50f151d7 48089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_SetString" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 48090 }
50f151d7 48091 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
48092 {
48093 arg3 = wxString_in_helper(obj2);
48094 if (arg3 == NULL) SWIG_fail;
48095 temp3 = true;
48096 }
48097 {
48098 PyThreadState* __tstate = wxPyBeginAllowThreads();
48099 (arg1)->SetString(arg2,(wxString const &)*arg3);
48100 wxPyEndAllowThreads(__tstate);
48101 if (PyErr_Occurred()) SWIG_fail;
48102 }
48103 resultobj = SWIG_Py_Void();
48104 {
48105 if (temp3)
48106 delete arg3;
48107 }
48108 return resultobj;
48109fail:
48110 {
48111 if (temp3)
48112 delete arg3;
48113 }
48114 return NULL;
48115}
48116
48117
48118SWIGINTERN PyObject *_wrap_ItemContainer_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48119 PyObject *resultobj = 0;
48120 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
48121 wxString *arg2 = 0 ;
48122 int result;
48123 void *argp1 = 0 ;
48124 int res1 = 0 ;
48125 bool temp2 = false ;
48126 PyObject * obj0 = 0 ;
48127 PyObject * obj1 = 0 ;
48128 char * kwnames[] = {
48129 (char *) "self",(char *) "s", NULL
48130 };
48131
48132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
48133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
48134 if (!SWIG_IsOK(res1)) {
48135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_FindString" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
48136 }
48137 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
48138 {
48139 arg2 = wxString_in_helper(obj1);
48140 if (arg2 == NULL) SWIG_fail;
48141 temp2 = true;
48142 }
48143 {
48144 PyThreadState* __tstate = wxPyBeginAllowThreads();
48145 result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2);
48146 wxPyEndAllowThreads(__tstate);
48147 if (PyErr_Occurred()) SWIG_fail;
48148 }
48149 resultobj = SWIG_From_int(static_cast< int >(result));
48150 {
48151 if (temp2)
48152 delete arg2;
48153 }
48154 return resultobj;
48155fail:
48156 {
48157 if (temp2)
48158 delete arg2;
48159 }
48160 return NULL;
48161}
48162
48163
48164SWIGINTERN PyObject *_wrap_ItemContainer_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48165 PyObject *resultobj = 0;
48166 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
48167 int arg2 ;
48168 void *argp1 = 0 ;
48169 int res1 = 0 ;
48170 int val2 ;
48171 int ecode2 = 0 ;
48172 PyObject * obj0 = 0 ;
48173 PyObject * obj1 = 0 ;
48174 char * kwnames[] = {
48175 (char *) "self",(char *) "n", NULL
48176 };
48177
48178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
48179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
48180 if (!SWIG_IsOK(res1)) {
48181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_SetSelection" "', expected argument " "1"" of type '" "wxItemContainer *""'");
48182 }
48183 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
48184 ecode2 = SWIG_AsVal_int(obj1, &val2);
48185 if (!SWIG_IsOK(ecode2)) {
48186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_SetSelection" "', expected argument " "2"" of type '" "int""'");
48187 }
48188 arg2 = static_cast< int >(val2);
48189 {
48190 PyThreadState* __tstate = wxPyBeginAllowThreads();
48191 (arg1)->SetSelection(arg2);
48192 wxPyEndAllowThreads(__tstate);
48193 if (PyErr_Occurred()) SWIG_fail;
48194 }
48195 resultobj = SWIG_Py_Void();
48196 return resultobj;
48197fail:
48198 return NULL;
d55e5bfc
RD
48199}
48200
48201
1bd55598
RD
48202SWIGINTERN PyObject *_wrap_ItemContainer_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48203 PyObject *resultobj = 0;
48204 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
48205 int result;
48206 void *argp1 = 0 ;
48207 int res1 = 0 ;
48208 PyObject *swig_obj[1] ;
48209
48210 if (!args) SWIG_fail;
48211 swig_obj[0] = args;
48212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
48213 if (!SWIG_IsOK(res1)) {
48214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetSelection" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
48215 }
48216 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
48217 {
48218 PyThreadState* __tstate = wxPyBeginAllowThreads();
48219 result = (int)((wxItemContainer const *)arg1)->GetSelection();
48220 wxPyEndAllowThreads(__tstate);
48221 if (PyErr_Occurred()) SWIG_fail;
48222 }
48223 resultobj = SWIG_From_int(static_cast< int >(result));
48224 return resultobj;
48225fail:
48226 return NULL;
48227}
48228
48229
48230SWIGINTERN PyObject *_wrap_ItemContainer_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48231 PyObject *resultobj = 0;
48232 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
48233 wxString *arg2 = 0 ;
48234 bool result;
48235 void *argp1 = 0 ;
48236 int res1 = 0 ;
48237 bool temp2 = false ;
48238 PyObject * obj0 = 0 ;
48239 PyObject * obj1 = 0 ;
48240 char * kwnames[] = {
48241 (char *) "self",(char *) "s", NULL
48242 };
48243
48244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
48245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
48246 if (!SWIG_IsOK(res1)) {
48247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_SetStringSelection" "', expected argument " "1"" of type '" "wxItemContainer *""'");
48248 }
48249 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
48250 {
48251 arg2 = wxString_in_helper(obj1);
48252 if (arg2 == NULL) SWIG_fail;
48253 temp2 = true;
48254 }
48255 {
48256 PyThreadState* __tstate = wxPyBeginAllowThreads();
48257 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
48258 wxPyEndAllowThreads(__tstate);
48259 if (PyErr_Occurred()) SWIG_fail;
48260 }
48261 {
48262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
48263 }
48264 {
48265 if (temp2)
48266 delete arg2;
48267 }
48268 return resultobj;
48269fail:
48270 {
48271 if (temp2)
48272 delete arg2;
48273 }
48274 return NULL;
d55e5bfc
RD
48275}
48276
48277
1bd55598
RD
48278SWIGINTERN PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48279 PyObject *resultobj = 0;
48280 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
48281 wxString result;
48282 void *argp1 = 0 ;
48283 int res1 = 0 ;
48284 PyObject *swig_obj[1] ;
48285
48286 if (!args) SWIG_fail;
48287 swig_obj[0] = args;
48288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
48289 if (!SWIG_IsOK(res1)) {
48290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetStringSelection" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
48291 }
48292 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
48293 {
48294 PyThreadState* __tstate = wxPyBeginAllowThreads();
48295 result = ((wxItemContainer const *)arg1)->GetStringSelection();
48296 wxPyEndAllowThreads(__tstate);
48297 if (PyErr_Occurred()) SWIG_fail;
48298 }
48299 {
48300#if wxUSE_UNICODE
48301 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
48302#else
48303 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
48304#endif
48305 }
48306 return resultobj;
48307fail:
48308 return NULL;
48309}
48310
48311
48312SWIGINTERN PyObject *_wrap_ItemContainer_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48313 PyObject *resultobj = 0;
48314 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
48315 int arg2 ;
48316 void *argp1 = 0 ;
48317 int res1 = 0 ;
48318 int val2 ;
48319 int ecode2 = 0 ;
48320 PyObject * obj0 = 0 ;
48321 PyObject * obj1 = 0 ;
48322 char * kwnames[] = {
48323 (char *) "self",(char *) "n", NULL
48324 };
48325
48326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) SWIG_fail;
48327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
48328 if (!SWIG_IsOK(res1)) {
48329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_Select" "', expected argument " "1"" of type '" "wxItemContainer *""'");
48330 }
48331 arg1 = reinterpret_cast< wxItemContainer * >(argp1);
48332 ecode2 = SWIG_AsVal_int(obj1, &val2);
48333 if (!SWIG_IsOK(ecode2)) {
48334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_Select" "', expected argument " "2"" of type '" "int""'");
48335 }
48336 arg2 = static_cast< int >(val2);
48337 {
48338 PyThreadState* __tstate = wxPyBeginAllowThreads();
48339 (arg1)->Select(arg2);
48340 wxPyEndAllowThreads(__tstate);
48341 if (PyErr_Occurred()) SWIG_fail;
48342 }
48343 resultobj = SWIG_Py_Void();
48344 return resultobj;
48345fail:
48346 return NULL;
d55e5bfc
RD
48347}
48348
48349
1bd55598
RD
48350SWIGINTERN PyObject *ItemContainer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48351 PyObject *obj;
48352 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
48353 SWIG_TypeNewClientData(SWIGTYPE_p_wxItemContainer, SWIG_NewClientData(obj));
48354 return SWIG_Py_Void();
d55e5bfc
RD
48355}
48356
1bd55598
RD
48357SWIGINTERN PyObject *ControlWithItems_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48358 PyObject *obj;
48359 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
48360 SWIG_TypeNewClientData(SWIGTYPE_p_wxControlWithItems, SWIG_NewClientData(obj));
48361 return SWIG_Py_Void();
d55e5bfc
RD
48362}
48363
1bd55598
RD
48364SWIGINTERN PyObject *_wrap_new_SizerItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48365 PyObject *resultobj = 0;
48366 wxSizerItem *result = 0 ;
48367
48368 if (!SWIG_Python_UnpackTuple(args,"new_SizerItem",0,0,0)) SWIG_fail;
48369 {
48370 PyThreadState* __tstate = wxPyBeginAllowThreads();
48371 result = (wxSizerItem *)new wxSizerItem();
48372 wxPyEndAllowThreads(__tstate);
48373 if (PyErr_Occurred()) SWIG_fail;
48374 }
48375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_NEW | 0 );
48376 return resultobj;
48377fail:
48378 return NULL;
d55e5bfc
RD
48379}
48380
48381
1bd55598
RD
48382SWIGINTERN PyObject *_wrap_delete_SizerItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48383 PyObject *resultobj = 0;
48384 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48385 void *argp1 = 0 ;
48386 int res1 = 0 ;
48387 PyObject *swig_obj[1] ;
48388
48389 if (!args) SWIG_fail;
48390 swig_obj[0] = args;
48391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, SWIG_POINTER_DISOWN | 0 );
48392 if (!SWIG_IsOK(res1)) {
48393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SizerItem" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48394 }
48395 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48396 {
48397 PyThreadState* __tstate = wxPyBeginAllowThreads();
48398 delete arg1;
d55e5bfc 48399
1bd55598
RD
48400 wxPyEndAllowThreads(__tstate);
48401 if (PyErr_Occurred()) SWIG_fail;
48402 }
48403 resultobj = SWIG_Py_Void();
48404 return resultobj;
48405fail:
48406 return NULL;
48407}
48408
48409
48410SWIGINTERN PyObject *_wrap_new_SizerItemWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48411 PyObject *resultobj = 0;
48412 wxWindow *arg1 = (wxWindow *) 0 ;
48413 int arg2 ;
48414 int arg3 ;
48415 int arg4 ;
48416 PyObject *arg5 = (PyObject *) NULL ;
48417 wxSizerItem *result = 0 ;
48418 void *argp1 = 0 ;
48419 int res1 = 0 ;
48420 int val2 ;
48421 int ecode2 = 0 ;
48422 int val3 ;
48423 int ecode3 = 0 ;
48424 int val4 ;
48425 int ecode4 = 0 ;
48426 PyObject * obj0 = 0 ;
48427 PyObject * obj1 = 0 ;
48428 PyObject * obj2 = 0 ;
48429 PyObject * obj3 = 0 ;
48430 PyObject * obj4 = 0 ;
48431 char * kwnames[] = {
48432 (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
48433 };
48434
48435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
48436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
48437 if (!SWIG_IsOK(res1)) {
48438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SizerItemWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
48439 }
48440 arg1 = reinterpret_cast< wxWindow * >(argp1);
48441 ecode2 = SWIG_AsVal_int(obj1, &val2);
48442 if (!SWIG_IsOK(ecode2)) {
48443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SizerItemWindow" "', expected argument " "2"" of type '" "int""'");
48444 }
48445 arg2 = static_cast< int >(val2);
48446 ecode3 = SWIG_AsVal_int(obj2, &val3);
48447 if (!SWIG_IsOK(ecode3)) {
48448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SizerItemWindow" "', expected argument " "3"" of type '" "int""'");
48449 }
48450 arg3 = static_cast< int >(val3);
48451 ecode4 = SWIG_AsVal_int(obj3, &val4);
48452 if (!SWIG_IsOK(ecode4)) {
48453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SizerItemWindow" "', expected argument " "4"" of type '" "int""'");
48454 }
48455 arg4 = static_cast< int >(val4);
48456 if (obj4) {
48457 arg5 = obj4;
48458 }
48459 {
48460 PyThreadState* __tstate = wxPyBeginAllowThreads();
48461 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
48462 wxPyEndAllowThreads(__tstate);
48463 if (PyErr_Occurred()) SWIG_fail;
48464 }
48465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_OWN | 0 );
48466 return resultobj;
48467fail:
48468 return NULL;
48469}
48470
48471
48472SWIGINTERN PyObject *_wrap_new_SizerItemSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48473 PyObject *resultobj = 0;
48474 int arg1 ;
48475 int arg2 ;
48476 int arg3 ;
48477 int arg4 ;
48478 int arg5 ;
48479 PyObject *arg6 = (PyObject *) NULL ;
48480 wxSizerItem *result = 0 ;
48481 int val1 ;
48482 int ecode1 = 0 ;
48483 int val2 ;
48484 int ecode2 = 0 ;
48485 int val3 ;
48486 int ecode3 = 0 ;
48487 int val4 ;
48488 int ecode4 = 0 ;
48489 int val5 ;
48490 int ecode5 = 0 ;
48491 PyObject * obj0 = 0 ;
48492 PyObject * obj1 = 0 ;
48493 PyObject * obj2 = 0 ;
48494 PyObject * obj3 = 0 ;
48495 PyObject * obj4 = 0 ;
48496 PyObject * obj5 = 0 ;
48497 char * kwnames[] = {
48498 (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
48499 };
48500
48501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
48502 ecode1 = SWIG_AsVal_int(obj0, &val1);
48503 if (!SWIG_IsOK(ecode1)) {
48504 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SizerItemSpacer" "', expected argument " "1"" of type '" "int""'");
48505 }
48506 arg1 = static_cast< int >(val1);
48507 ecode2 = SWIG_AsVal_int(obj1, &val2);
48508 if (!SWIG_IsOK(ecode2)) {
48509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SizerItemSpacer" "', expected argument " "2"" of type '" "int""'");
48510 }
48511 arg2 = static_cast< int >(val2);
48512 ecode3 = SWIG_AsVal_int(obj2, &val3);
48513 if (!SWIG_IsOK(ecode3)) {
48514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SizerItemSpacer" "', expected argument " "3"" of type '" "int""'");
48515 }
48516 arg3 = static_cast< int >(val3);
48517 ecode4 = SWIG_AsVal_int(obj3, &val4);
48518 if (!SWIG_IsOK(ecode4)) {
48519 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SizerItemSpacer" "', expected argument " "4"" of type '" "int""'");
48520 }
48521 arg4 = static_cast< int >(val4);
48522 ecode5 = SWIG_AsVal_int(obj4, &val5);
48523 if (!SWIG_IsOK(ecode5)) {
48524 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SizerItemSpacer" "', expected argument " "5"" of type '" "int""'");
48525 }
48526 arg5 = static_cast< int >(val5);
48527 if (obj5) {
48528 arg6 = obj5;
48529 }
48530 {
48531 PyThreadState* __tstate = wxPyBeginAllowThreads();
48532 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6);
48533 wxPyEndAllowThreads(__tstate);
48534 if (PyErr_Occurred()) SWIG_fail;
48535 }
48536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_OWN | 0 );
48537 return resultobj;
48538fail:
48539 return NULL;
48540}
48541
48542
48543SWIGINTERN PyObject *_wrap_new_SizerItemSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48544 PyObject *resultobj = 0;
48545 wxSizer *arg1 = (wxSizer *) 0 ;
48546 int arg2 ;
48547 int arg3 ;
48548 int arg4 ;
48549 PyObject *arg5 = (PyObject *) NULL ;
48550 wxSizerItem *result = 0 ;
48551 int res1 = 0 ;
48552 int val2 ;
48553 int ecode2 = 0 ;
48554 int val3 ;
48555 int ecode3 = 0 ;
48556 int val4 ;
48557 int ecode4 = 0 ;
48558 PyObject * obj0 = 0 ;
48559 PyObject * obj1 = 0 ;
48560 PyObject * obj2 = 0 ;
48561 PyObject * obj3 = 0 ;
48562 PyObject * obj4 = 0 ;
48563 char * kwnames[] = {
48564 (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
48565 };
48566
48567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
48568 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
48569 if (!SWIG_IsOK(res1)) {
48570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SizerItemSizer" "', expected argument " "1"" of type '" "wxSizer *""'");
48571 }
48572 ecode2 = SWIG_AsVal_int(obj1, &val2);
48573 if (!SWIG_IsOK(ecode2)) {
48574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SizerItemSizer" "', expected argument " "2"" of type '" "int""'");
48575 }
48576 arg2 = static_cast< int >(val2);
48577 ecode3 = SWIG_AsVal_int(obj2, &val3);
48578 if (!SWIG_IsOK(ecode3)) {
48579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SizerItemSizer" "', expected argument " "3"" of type '" "int""'");
48580 }
48581 arg3 = static_cast< int >(val3);
48582 ecode4 = SWIG_AsVal_int(obj3, &val4);
48583 if (!SWIG_IsOK(ecode4)) {
48584 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SizerItemSizer" "', expected argument " "4"" of type '" "int""'");
48585 }
48586 arg4 = static_cast< int >(val4);
48587 if (obj4) {
48588 arg5 = obj4;
48589 }
48590 {
48591 PyThreadState* __tstate = wxPyBeginAllowThreads();
48592 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
48593 wxPyEndAllowThreads(__tstate);
48594 if (PyErr_Occurred()) SWIG_fail;
48595 }
48596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_OWN | 0 );
48597 return resultobj;
48598fail:
48599 return NULL;
d55e5bfc
RD
48600}
48601
48602
1bd55598
RD
48603SWIGINTERN PyObject *_wrap_SizerItem_DeleteWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48604 PyObject *resultobj = 0;
48605 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48606 void *argp1 = 0 ;
48607 int res1 = 0 ;
48608 PyObject *swig_obj[1] ;
48609
48610 if (!args) SWIG_fail;
48611 swig_obj[0] = args;
48612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48613 if (!SWIG_IsOK(res1)) {
48614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_DeleteWindows" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48615 }
48616 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48617 {
48618 PyThreadState* __tstate = wxPyBeginAllowThreads();
48619 (arg1)->DeleteWindows();
48620 wxPyEndAllowThreads(__tstate);
48621 if (PyErr_Occurred()) SWIG_fail;
48622 }
48623 resultobj = SWIG_Py_Void();
48624 return resultobj;
48625fail:
48626 return NULL;
d55e5bfc
RD
48627}
48628
48629
1bd55598
RD
48630SWIGINTERN PyObject *_wrap_SizerItem_DetachSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48631 PyObject *resultobj = 0;
48632 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48633 void *argp1 = 0 ;
48634 int res1 = 0 ;
48635 PyObject *swig_obj[1] ;
48636
48637 if (!args) SWIG_fail;
48638 swig_obj[0] = args;
48639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48640 if (!SWIG_IsOK(res1)) {
48641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_DetachSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48642 }
48643 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48644 {
48645 PyThreadState* __tstate = wxPyBeginAllowThreads();
48646 (arg1)->DetachSizer();
48647 wxPyEndAllowThreads(__tstate);
48648 if (PyErr_Occurred()) SWIG_fail;
48649 }
48650 resultobj = SWIG_Py_Void();
48651 return resultobj;
48652fail:
48653 return NULL;
d55e5bfc
RD
48654}
48655
48656
1bd55598
RD
48657SWIGINTERN PyObject *_wrap_SizerItem_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48658 PyObject *resultobj = 0;
48659 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48660 wxSize result;
48661 void *argp1 = 0 ;
48662 int res1 = 0 ;
48663 PyObject *swig_obj[1] ;
48664
48665 if (!args) SWIG_fail;
48666 swig_obj[0] = args;
48667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48668 if (!SWIG_IsOK(res1)) {
48669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSize" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48670 }
48671 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48672 {
48673 PyThreadState* __tstate = wxPyBeginAllowThreads();
48674 result = (arg1)->GetSize();
48675 wxPyEndAllowThreads(__tstate);
48676 if (PyErr_Occurred()) SWIG_fail;
48677 }
48678 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
48679 return resultobj;
48680fail:
48681 return NULL;
d55e5bfc
RD
48682}
48683
48684
1bd55598
RD
48685SWIGINTERN PyObject *_wrap_SizerItem_CalcMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48686 PyObject *resultobj = 0;
48687 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48688 wxSize result;
48689 void *argp1 = 0 ;
48690 int res1 = 0 ;
48691 PyObject *swig_obj[1] ;
48692
48693 if (!args) SWIG_fail;
48694 swig_obj[0] = args;
48695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48696 if (!SWIG_IsOK(res1)) {
48697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_CalcMin" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48698 }
48699 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48700 {
48701 PyThreadState* __tstate = wxPyBeginAllowThreads();
48702 result = (arg1)->CalcMin();
48703 wxPyEndAllowThreads(__tstate);
48704 if (PyErr_Occurred()) SWIG_fail;
48705 }
48706 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
48707 return resultobj;
48708fail:
48709 return NULL;
48710}
48711
48712
48713SWIGINTERN PyObject *_wrap_SizerItem_SetDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48714 PyObject *resultobj = 0;
48715 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48716 wxPoint *arg2 = 0 ;
48717 wxSize *arg3 = 0 ;
48718 void *argp1 = 0 ;
48719 int res1 = 0 ;
48720 wxPoint temp2 ;
48721 wxSize temp3 ;
48722 PyObject * obj0 = 0 ;
48723 PyObject * obj1 = 0 ;
48724 PyObject * obj2 = 0 ;
48725 char * kwnames[] = {
48726 (char *) "self",(char *) "pos",(char *) "size", NULL
48727 };
48728
48729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
48730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48731 if (!SWIG_IsOK(res1)) {
48732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetDimension" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48733 }
48734 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48735 {
48736 arg2 = &temp2;
48737 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
48738 }
48739 {
48740 arg3 = &temp3;
48741 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
48742 }
48743 {
48744 PyThreadState* __tstate = wxPyBeginAllowThreads();
48745 (arg1)->SetDimension((wxPoint const &)*arg2,(wxSize const &)*arg3);
48746 wxPyEndAllowThreads(__tstate);
48747 if (PyErr_Occurred()) SWIG_fail;
48748 }
48749 resultobj = SWIG_Py_Void();
48750 return resultobj;
48751fail:
48752 return NULL;
d55e5bfc
RD
48753}
48754
48755
1bd55598
RD
48756SWIGINTERN PyObject *_wrap_SizerItem_GetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48757 PyObject *resultobj = 0;
48758 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48759 wxSize result;
48760 void *argp1 = 0 ;
48761 int res1 = 0 ;
48762 PyObject *swig_obj[1] ;
48763
48764 if (!args) SWIG_fail;
48765 swig_obj[0] = args;
48766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48767 if (!SWIG_IsOK(res1)) {
48768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetMinSize" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48769 }
48770 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48771 {
48772 PyThreadState* __tstate = wxPyBeginAllowThreads();
48773 result = (arg1)->GetMinSize();
48774 wxPyEndAllowThreads(__tstate);
48775 if (PyErr_Occurred()) SWIG_fail;
48776 }
48777 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
48778 return resultobj;
48779fail:
48780 return NULL;
d55e5bfc
RD
48781}
48782
48783
1bd55598
RD
48784SWIGINTERN PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48785 PyObject *resultobj = 0;
48786 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48787 wxSize result;
48788 void *argp1 = 0 ;
48789 int res1 = 0 ;
48790 PyObject *swig_obj[1] ;
48791
48792 if (!args) SWIG_fail;
48793 swig_obj[0] = args;
48794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48795 if (!SWIG_IsOK(res1)) {
48796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetMinSizeWithBorder" "', expected argument " "1"" of type '" "wxSizerItem const *""'");
48797 }
48798 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48799 {
48800 PyThreadState* __tstate = wxPyBeginAllowThreads();
48801 result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder();
48802 wxPyEndAllowThreads(__tstate);
48803 if (PyErr_Occurred()) SWIG_fail;
48804 }
48805 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
48806 return resultobj;
48807fail:
48808 return NULL;
48809}
48810
48811
48812SWIGINTERN PyObject *_wrap_SizerItem_SetInitSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48813 PyObject *resultobj = 0;
48814 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48815 int arg2 ;
48816 int arg3 ;
48817 void *argp1 = 0 ;
48818 int res1 = 0 ;
48819 int val2 ;
48820 int ecode2 = 0 ;
48821 int val3 ;
48822 int ecode3 = 0 ;
48823 PyObject * obj0 = 0 ;
48824 PyObject * obj1 = 0 ;
48825 PyObject * obj2 = 0 ;
48826 char * kwnames[] = {
48827 (char *) "self",(char *) "x",(char *) "y", NULL
48828 };
48829
48830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
48831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48832 if (!SWIG_IsOK(res1)) {
48833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetInitSize" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48834 }
48835 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48836 ecode2 = SWIG_AsVal_int(obj1, &val2);
48837 if (!SWIG_IsOK(ecode2)) {
48838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetInitSize" "', expected argument " "2"" of type '" "int""'");
48839 }
48840 arg2 = static_cast< int >(val2);
48841 ecode3 = SWIG_AsVal_int(obj2, &val3);
48842 if (!SWIG_IsOK(ecode3)) {
48843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SizerItem_SetInitSize" "', expected argument " "3"" of type '" "int""'");
48844 }
48845 arg3 = static_cast< int >(val3);
48846 {
48847 PyThreadState* __tstate = wxPyBeginAllowThreads();
48848 (arg1)->SetInitSize(arg2,arg3);
48849 wxPyEndAllowThreads(__tstate);
48850 if (PyErr_Occurred()) SWIG_fail;
48851 }
48852 resultobj = SWIG_Py_Void();
48853 return resultobj;
48854fail:
48855 return NULL;
48856}
48857
48858
48859SWIGINTERN PyObject *_wrap_SizerItem_SetRatioWH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48860 PyObject *resultobj = 0;
48861 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48862 int arg2 ;
48863 int arg3 ;
48864 void *argp1 = 0 ;
48865 int res1 = 0 ;
48866 int val2 ;
48867 int ecode2 = 0 ;
48868 int val3 ;
48869 int ecode3 = 0 ;
48870 PyObject * obj0 = 0 ;
48871 PyObject * obj1 = 0 ;
48872 PyObject * obj2 = 0 ;
48873 char * kwnames[] = {
48874 (char *) "self",(char *) "width",(char *) "height", NULL
48875 };
48876
48877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
48878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48879 if (!SWIG_IsOK(res1)) {
48880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetRatioWH" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48881 }
48882 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48883 ecode2 = SWIG_AsVal_int(obj1, &val2);
48884 if (!SWIG_IsOK(ecode2)) {
48885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetRatioWH" "', expected argument " "2"" of type '" "int""'");
48886 }
48887 arg2 = static_cast< int >(val2);
48888 ecode3 = SWIG_AsVal_int(obj2, &val3);
48889 if (!SWIG_IsOK(ecode3)) {
48890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SizerItem_SetRatioWH" "', expected argument " "3"" of type '" "int""'");
48891 }
48892 arg3 = static_cast< int >(val3);
48893 {
48894 PyThreadState* __tstate = wxPyBeginAllowThreads();
48895 (arg1)->SetRatio(arg2,arg3);
48896 wxPyEndAllowThreads(__tstate);
48897 if (PyErr_Occurred()) SWIG_fail;
48898 }
48899 resultobj = SWIG_Py_Void();
48900 return resultobj;
48901fail:
48902 return NULL;
48903}
48904
48905
48906SWIGINTERN PyObject *_wrap_SizerItem_SetRatioSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48907 PyObject *resultobj = 0;
48908 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48909 wxSize *arg2 = 0 ;
48910 void *argp1 = 0 ;
48911 int res1 = 0 ;
48912 wxSize temp2 ;
48913 PyObject * obj0 = 0 ;
48914 PyObject * obj1 = 0 ;
48915 char * kwnames[] = {
48916 (char *) "self",(char *) "size", NULL
48917 };
48918
48919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) SWIG_fail;
48920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48921 if (!SWIG_IsOK(res1)) {
48922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetRatioSize" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48923 }
48924 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48925 {
48926 arg2 = &temp2;
48927 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
48928 }
48929 {
48930 PyThreadState* __tstate = wxPyBeginAllowThreads();
48931 (arg1)->SetRatio((wxSize const &)*arg2);
48932 wxPyEndAllowThreads(__tstate);
48933 if (PyErr_Occurred()) SWIG_fail;
48934 }
48935 resultobj = SWIG_Py_Void();
48936 return resultobj;
48937fail:
48938 return NULL;
48939}
48940
48941
48942SWIGINTERN PyObject *_wrap_SizerItem_SetRatio(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
48943 PyObject *resultobj = 0;
48944 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48945 float arg2 ;
48946 void *argp1 = 0 ;
48947 int res1 = 0 ;
48948 float val2 ;
48949 int ecode2 = 0 ;
48950 PyObject * obj0 = 0 ;
48951 PyObject * obj1 = 0 ;
48952 char * kwnames[] = {
48953 (char *) "self",(char *) "ratio", NULL
48954 };
48955
48956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) SWIG_fail;
48957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48958 if (!SWIG_IsOK(res1)) {
48959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetRatio" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48960 }
48961 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48962 ecode2 = SWIG_AsVal_float(obj1, &val2);
48963 if (!SWIG_IsOK(ecode2)) {
48964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetRatio" "', expected argument " "2"" of type '" "float""'");
48965 }
48966 arg2 = static_cast< float >(val2);
48967 {
48968 PyThreadState* __tstate = wxPyBeginAllowThreads();
48969 (arg1)->SetRatio(arg2);
48970 wxPyEndAllowThreads(__tstate);
48971 if (PyErr_Occurred()) SWIG_fail;
48972 }
48973 resultobj = SWIG_Py_Void();
48974 return resultobj;
48975fail:
48976 return NULL;
d55e5bfc
RD
48977}
48978
48979
1bd55598
RD
48980SWIGINTERN PyObject *_wrap_SizerItem_GetRatio(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
48981 PyObject *resultobj = 0;
48982 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
48983 float result;
48984 void *argp1 = 0 ;
48985 int res1 = 0 ;
48986 PyObject *swig_obj[1] ;
48987
48988 if (!args) SWIG_fail;
48989 swig_obj[0] = args;
48990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
48991 if (!SWIG_IsOK(res1)) {
48992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetRatio" "', expected argument " "1"" of type '" "wxSizerItem *""'");
48993 }
48994 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
48995 {
48996 PyThreadState* __tstate = wxPyBeginAllowThreads();
48997 result = (float)(arg1)->GetRatio();
48998 wxPyEndAllowThreads(__tstate);
48999 if (PyErr_Occurred()) SWIG_fail;
49000 }
49001 resultobj = SWIG_From_float(static_cast< float >(result));
49002 return resultobj;
49003fail:
49004 return NULL;
d55e5bfc
RD
49005}
49006
49007
1bd55598
RD
49008SWIGINTERN PyObject *_wrap_SizerItem_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49009 PyObject *resultobj = 0;
49010 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49011 wxRect result;
49012 void *argp1 = 0 ;
49013 int res1 = 0 ;
49014 PyObject *swig_obj[1] ;
49015
49016 if (!args) SWIG_fail;
49017 swig_obj[0] = args;
49018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49019 if (!SWIG_IsOK(res1)) {
49020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetRect" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49021 }
49022 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49023 {
49024 PyThreadState* __tstate = wxPyBeginAllowThreads();
49025 result = (arg1)->GetRect();
49026 wxPyEndAllowThreads(__tstate);
49027 if (PyErr_Occurred()) SWIG_fail;
49028 }
49029 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
49030 return resultobj;
49031fail:
49032 return NULL;
d55e5bfc
RD
49033}
49034
49035
1bd55598
RD
49036SWIGINTERN PyObject *_wrap_SizerItem_IsWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49037 PyObject *resultobj = 0;
49038 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49039 bool result;
49040 void *argp1 = 0 ;
49041 int res1 = 0 ;
49042 PyObject *swig_obj[1] ;
49043
49044 if (!args) SWIG_fail;
49045 swig_obj[0] = args;
49046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49047 if (!SWIG_IsOK(res1)) {
49048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_IsWindow" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49049 }
49050 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49051 {
49052 PyThreadState* __tstate = wxPyBeginAllowThreads();
49053 result = (bool)(arg1)->IsWindow();
49054 wxPyEndAllowThreads(__tstate);
49055 if (PyErr_Occurred()) SWIG_fail;
49056 }
49057 {
49058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
49059 }
49060 return resultobj;
49061fail:
49062 return NULL;
f8167d6e
RD
49063}
49064
49065
1bd55598
RD
49066SWIGINTERN PyObject *_wrap_SizerItem_IsSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49067 PyObject *resultobj = 0;
49068 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49069 bool result;
49070 void *argp1 = 0 ;
49071 int res1 = 0 ;
49072 PyObject *swig_obj[1] ;
49073
49074 if (!args) SWIG_fail;
49075 swig_obj[0] = args;
49076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49077 if (!SWIG_IsOK(res1)) {
49078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_IsSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49079 }
49080 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49081 {
49082 PyThreadState* __tstate = wxPyBeginAllowThreads();
49083 result = (bool)(arg1)->IsSizer();
49084 wxPyEndAllowThreads(__tstate);
49085 if (PyErr_Occurred()) SWIG_fail;
49086 }
49087 {
49088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
49089 }
49090 return resultobj;
49091fail:
49092 return NULL;
d55e5bfc
RD
49093}
49094
49095
1bd55598
RD
49096SWIGINTERN PyObject *_wrap_SizerItem_IsSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49097 PyObject *resultobj = 0;
49098 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49099 bool result;
49100 void *argp1 = 0 ;
49101 int res1 = 0 ;
49102 PyObject *swig_obj[1] ;
49103
49104 if (!args) SWIG_fail;
49105 swig_obj[0] = args;
49106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49107 if (!SWIG_IsOK(res1)) {
49108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_IsSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49109 }
49110 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49111 {
49112 PyThreadState* __tstate = wxPyBeginAllowThreads();
49113 result = (bool)(arg1)->IsSpacer();
49114 wxPyEndAllowThreads(__tstate);
49115 if (PyErr_Occurred()) SWIG_fail;
49116 }
49117 {
49118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
49119 }
49120 return resultobj;
49121fail:
49122 return NULL;
49123}
49124
49125
49126SWIGINTERN PyObject *_wrap_SizerItem_SetProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49127 PyObject *resultobj = 0;
49128 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49129 int arg2 ;
49130 void *argp1 = 0 ;
49131 int res1 = 0 ;
49132 int val2 ;
49133 int ecode2 = 0 ;
49134 PyObject * obj0 = 0 ;
49135 PyObject * obj1 = 0 ;
49136 char * kwnames[] = {
49137 (char *) "self",(char *) "proportion", NULL
49138 };
49139
49140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) SWIG_fail;
49141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49142 if (!SWIG_IsOK(res1)) {
49143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetProportion" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49144 }
49145 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49146 ecode2 = SWIG_AsVal_int(obj1, &val2);
49147 if (!SWIG_IsOK(ecode2)) {
49148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetProportion" "', expected argument " "2"" of type '" "int""'");
49149 }
49150 arg2 = static_cast< int >(val2);
49151 {
49152 PyThreadState* __tstate = wxPyBeginAllowThreads();
49153 (arg1)->SetProportion(arg2);
49154 wxPyEndAllowThreads(__tstate);
49155 if (PyErr_Occurred()) SWIG_fail;
49156 }
49157 resultobj = SWIG_Py_Void();
49158 return resultobj;
49159fail:
49160 return NULL;
d55e5bfc
RD
49161}
49162
49163
1bd55598
RD
49164SWIGINTERN PyObject *_wrap_SizerItem_GetProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49165 PyObject *resultobj = 0;
49166 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49167 int result;
49168 void *argp1 = 0 ;
49169 int res1 = 0 ;
49170 PyObject *swig_obj[1] ;
49171
49172 if (!args) SWIG_fail;
49173 swig_obj[0] = args;
49174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49175 if (!SWIG_IsOK(res1)) {
49176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetProportion" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49177 }
49178 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49179 {
49180 PyThreadState* __tstate = wxPyBeginAllowThreads();
49181 result = (int)(arg1)->GetProportion();
49182 wxPyEndAllowThreads(__tstate);
49183 if (PyErr_Occurred()) SWIG_fail;
49184 }
49185 resultobj = SWIG_From_int(static_cast< int >(result));
49186 return resultobj;
49187fail:
49188 return NULL;
49189}
49190
49191
49192SWIGINTERN PyObject *_wrap_SizerItem_SetFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49193 PyObject *resultobj = 0;
49194 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49195 int arg2 ;
49196 void *argp1 = 0 ;
49197 int res1 = 0 ;
49198 int val2 ;
49199 int ecode2 = 0 ;
49200 PyObject * obj0 = 0 ;
49201 PyObject * obj1 = 0 ;
49202 char * kwnames[] = {
49203 (char *) "self",(char *) "flag", NULL
49204 };
49205
49206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) SWIG_fail;
49207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49208 if (!SWIG_IsOK(res1)) {
49209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetFlag" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49210 }
49211 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49212 ecode2 = SWIG_AsVal_int(obj1, &val2);
49213 if (!SWIG_IsOK(ecode2)) {
49214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetFlag" "', expected argument " "2"" of type '" "int""'");
49215 }
49216 arg2 = static_cast< int >(val2);
49217 {
49218 PyThreadState* __tstate = wxPyBeginAllowThreads();
49219 (arg1)->SetFlag(arg2);
49220 wxPyEndAllowThreads(__tstate);
49221 if (PyErr_Occurred()) SWIG_fail;
49222 }
49223 resultobj = SWIG_Py_Void();
49224 return resultobj;
49225fail:
49226 return NULL;
d55e5bfc
RD
49227}
49228
49229
1bd55598
RD
49230SWIGINTERN PyObject *_wrap_SizerItem_GetFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49231 PyObject *resultobj = 0;
49232 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49233 int result;
49234 void *argp1 = 0 ;
49235 int res1 = 0 ;
49236 PyObject *swig_obj[1] ;
49237
49238 if (!args) SWIG_fail;
49239 swig_obj[0] = args;
49240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49241 if (!SWIG_IsOK(res1)) {
49242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetFlag" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49243 }
49244 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49245 {
49246 PyThreadState* __tstate = wxPyBeginAllowThreads();
49247 result = (int)(arg1)->GetFlag();
49248 wxPyEndAllowThreads(__tstate);
49249 if (PyErr_Occurred()) SWIG_fail;
49250 }
49251 resultobj = SWIG_From_int(static_cast< int >(result));
49252 return resultobj;
49253fail:
49254 return NULL;
49255}
49256
49257
49258SWIGINTERN PyObject *_wrap_SizerItem_SetBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49259 PyObject *resultobj = 0;
49260 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49261 int arg2 ;
49262 void *argp1 = 0 ;
49263 int res1 = 0 ;
49264 int val2 ;
49265 int ecode2 = 0 ;
49266 PyObject * obj0 = 0 ;
49267 PyObject * obj1 = 0 ;
49268 char * kwnames[] = {
49269 (char *) "self",(char *) "border", NULL
49270 };
49271
49272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) SWIG_fail;
49273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49274 if (!SWIG_IsOK(res1)) {
49275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetBorder" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49276 }
49277 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49278 ecode2 = SWIG_AsVal_int(obj1, &val2);
49279 if (!SWIG_IsOK(ecode2)) {
49280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetBorder" "', expected argument " "2"" of type '" "int""'");
49281 }
49282 arg2 = static_cast< int >(val2);
49283 {
49284 PyThreadState* __tstate = wxPyBeginAllowThreads();
49285 (arg1)->SetBorder(arg2);
49286 wxPyEndAllowThreads(__tstate);
49287 if (PyErr_Occurred()) SWIG_fail;
49288 }
49289 resultobj = SWIG_Py_Void();
49290 return resultobj;
49291fail:
49292 return NULL;
d55e5bfc
RD
49293}
49294
49295
1bd55598
RD
49296SWIGINTERN PyObject *_wrap_SizerItem_GetBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49297 PyObject *resultobj = 0;
49298 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49299 int result;
49300 void *argp1 = 0 ;
49301 int res1 = 0 ;
49302 PyObject *swig_obj[1] ;
49303
49304 if (!args) SWIG_fail;
49305 swig_obj[0] = args;
49306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49307 if (!SWIG_IsOK(res1)) {
49308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetBorder" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49309 }
49310 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49311 {
49312 PyThreadState* __tstate = wxPyBeginAllowThreads();
49313 result = (int)(arg1)->GetBorder();
49314 wxPyEndAllowThreads(__tstate);
49315 if (PyErr_Occurred()) SWIG_fail;
49316 }
49317 resultobj = SWIG_From_int(static_cast< int >(result));
49318 return resultobj;
49319fail:
49320 return NULL;
d55e5bfc
RD
49321}
49322
49323
1bd55598
RD
49324SWIGINTERN PyObject *_wrap_SizerItem_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49325 PyObject *resultobj = 0;
49326 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49327 wxWindow *result = 0 ;
49328 void *argp1 = 0 ;
49329 int res1 = 0 ;
49330 PyObject *swig_obj[1] ;
49331
49332 if (!args) SWIG_fail;
49333 swig_obj[0] = args;
49334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49335 if (!SWIG_IsOK(res1)) {
49336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetWindow" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49337 }
49338 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49339 {
49340 PyThreadState* __tstate = wxPyBeginAllowThreads();
49341 result = (wxWindow *)(arg1)->GetWindow();
49342 wxPyEndAllowThreads(__tstate);
49343 if (PyErr_Occurred()) SWIG_fail;
49344 }
49345 {
49346 resultobj = wxPyMake_wxObject(result, 0);
49347 }
49348 return resultobj;
49349fail:
49350 return NULL;
49351}
49352
49353
49354SWIGINTERN PyObject *_wrap_SizerItem_SetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49355 PyObject *resultobj = 0;
49356 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49357 wxWindow *arg2 = (wxWindow *) 0 ;
49358 void *argp1 = 0 ;
49359 int res1 = 0 ;
49360 void *argp2 = 0 ;
49361 int res2 = 0 ;
49362 PyObject * obj0 = 0 ;
49363 PyObject * obj1 = 0 ;
49364 char * kwnames[] = {
49365 (char *) "self",(char *) "window", NULL
49366 };
49367
49368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) SWIG_fail;
49369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49370 if (!SWIG_IsOK(res1)) {
49371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetWindow" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49372 }
49373 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49374 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
49375 if (!SWIG_IsOK(res2)) {
49376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizerItem_SetWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
49377 }
49378 arg2 = reinterpret_cast< wxWindow * >(argp2);
49379 {
49380 PyThreadState* __tstate = wxPyBeginAllowThreads();
49381 (arg1)->SetWindow(arg2);
49382 wxPyEndAllowThreads(__tstate);
49383 if (PyErr_Occurred()) SWIG_fail;
49384 }
49385 resultobj = SWIG_Py_Void();
49386 return resultobj;
49387fail:
49388 return NULL;
d55e5bfc
RD
49389}
49390
49391
1bd55598
RD
49392SWIGINTERN PyObject *_wrap_SizerItem_GetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49393 PyObject *resultobj = 0;
49394 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49395 wxSizer *result = 0 ;
49396 void *argp1 = 0 ;
49397 int res1 = 0 ;
49398 PyObject *swig_obj[1] ;
49399
49400 if (!args) SWIG_fail;
49401 swig_obj[0] = args;
49402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49403 if (!SWIG_IsOK(res1)) {
49404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49405 }
49406 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49407 {
49408 PyThreadState* __tstate = wxPyBeginAllowThreads();
49409 result = (wxSizer *)(arg1)->GetSizer();
49410 wxPyEndAllowThreads(__tstate);
49411 if (PyErr_Occurred()) SWIG_fail;
49412 }
49413 {
49414 resultobj = wxPyMake_wxObject(result, (bool)0);
49415 }
49416 return resultobj;
49417fail:
49418 return NULL;
49419}
49420
49421
49422SWIGINTERN PyObject *_wrap_SizerItem_SetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49423 PyObject *resultobj = 0;
49424 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49425 wxSizer *arg2 = (wxSizer *) 0 ;
49426 void *argp1 = 0 ;
49427 int res1 = 0 ;
49428 int res2 = 0 ;
49429 PyObject * obj0 = 0 ;
49430 PyObject * obj1 = 0 ;
49431 char * kwnames[] = {
49432 (char *) "self",(char *) "sizer", NULL
49433 };
49434
49435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) SWIG_fail;
49436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49437 if (!SWIG_IsOK(res1)) {
49438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49439 }
49440 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49441 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
49442 if (!SWIG_IsOK(res2)) {
49443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizerItem_SetSizer" "', expected argument " "2"" of type '" "wxSizer *""'");
49444 }
49445 {
49446 PyThreadState* __tstate = wxPyBeginAllowThreads();
49447 (arg1)->SetSizer(arg2);
49448 wxPyEndAllowThreads(__tstate);
49449 if (PyErr_Occurred()) SWIG_fail;
49450 }
49451 resultobj = SWIG_Py_Void();
49452 return resultobj;
49453fail:
49454 return NULL;
d55e5bfc
RD
49455}
49456
49457
1bd55598
RD
49458SWIGINTERN PyObject *_wrap_SizerItem_GetSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49459 PyObject *resultobj = 0;
49460 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
7753ca6b 49461 wxSize result;
1bd55598
RD
49462 void *argp1 = 0 ;
49463 int res1 = 0 ;
49464 PyObject *swig_obj[1] ;
49465
49466 if (!args) SWIG_fail;
49467 swig_obj[0] = args;
49468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49469 if (!SWIG_IsOK(res1)) {
49470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49471 }
49472 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49473 {
49474 PyThreadState* __tstate = wxPyBeginAllowThreads();
7753ca6b 49475 result = (arg1)->GetSpacer();
1bd55598
RD
49476 wxPyEndAllowThreads(__tstate);
49477 if (PyErr_Occurred()) SWIG_fail;
49478 }
7753ca6b 49479 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
1bd55598
RD
49480 return resultobj;
49481fail:
49482 return NULL;
49483}
49484
49485
49486SWIGINTERN PyObject *_wrap_SizerItem_SetSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49487 PyObject *resultobj = 0;
49488 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49489 wxSize *arg2 = 0 ;
49490 void *argp1 = 0 ;
49491 int res1 = 0 ;
49492 wxSize temp2 ;
49493 PyObject * obj0 = 0 ;
49494 PyObject * obj1 = 0 ;
49495 char * kwnames[] = {
49496 (char *) "self",(char *) "size", NULL
49497 };
49498
49499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) SWIG_fail;
49500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49501 if (!SWIG_IsOK(res1)) {
49502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49503 }
49504 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49505 {
49506 arg2 = &temp2;
49507 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
49508 }
49509 {
49510 PyThreadState* __tstate = wxPyBeginAllowThreads();
49511 (arg1)->SetSpacer((wxSize const &)*arg2);
49512 wxPyEndAllowThreads(__tstate);
49513 if (PyErr_Occurred()) SWIG_fail;
49514 }
49515 resultobj = SWIG_Py_Void();
49516 return resultobj;
49517fail:
49518 return NULL;
49519}
49520
49521
49522SWIGINTERN PyObject *_wrap_SizerItem_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49523 PyObject *resultobj = 0;
49524 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49525 bool arg2 ;
49526 void *argp1 = 0 ;
49527 int res1 = 0 ;
49528 bool val2 ;
49529 int ecode2 = 0 ;
49530 PyObject * obj0 = 0 ;
49531 PyObject * obj1 = 0 ;
49532 char * kwnames[] = {
49533 (char *) "self",(char *) "show", NULL
49534 };
49535
49536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) SWIG_fail;
49537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49538 if (!SWIG_IsOK(res1)) {
49539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_Show" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49540 }
49541 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49542 ecode2 = SWIG_AsVal_bool(obj1, &val2);
49543 if (!SWIG_IsOK(ecode2)) {
49544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_Show" "', expected argument " "2"" of type '" "bool""'");
49545 }
49546 arg2 = static_cast< bool >(val2);
49547 {
49548 PyThreadState* __tstate = wxPyBeginAllowThreads();
49549 (arg1)->Show(arg2);
49550 wxPyEndAllowThreads(__tstate);
49551 if (PyErr_Occurred()) SWIG_fail;
49552 }
49553 resultobj = SWIG_Py_Void();
49554 return resultobj;
49555fail:
49556 return NULL;
d55e5bfc
RD
49557}
49558
49559
1bd55598
RD
49560SWIGINTERN PyObject *_wrap_SizerItem_IsShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49561 PyObject *resultobj = 0;
49562 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49563 bool result;
49564 void *argp1 = 0 ;
49565 int res1 = 0 ;
49566 PyObject *swig_obj[1] ;
49567
49568 if (!args) SWIG_fail;
49569 swig_obj[0] = args;
49570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49571 if (!SWIG_IsOK(res1)) {
49572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_IsShown" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49573 }
49574 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49575 {
49576 PyThreadState* __tstate = wxPyBeginAllowThreads();
49577 result = (bool)(arg1)->IsShown();
49578 wxPyEndAllowThreads(__tstate);
49579 if (PyErr_Occurred()) SWIG_fail;
49580 }
49581 {
49582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
49583 }
49584 return resultobj;
49585fail:
49586 return NULL;
d55e5bfc
RD
49587}
49588
49589
1bd55598
RD
49590SWIGINTERN PyObject *_wrap_SizerItem_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49591 PyObject *resultobj = 0;
49592 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49593 wxPoint result;
49594 void *argp1 = 0 ;
49595 int res1 = 0 ;
49596 PyObject *swig_obj[1] ;
49597
49598 if (!args) SWIG_fail;
49599 swig_obj[0] = args;
49600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49601 if (!SWIG_IsOK(res1)) {
49602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetPosition" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49603 }
49604 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49605 {
49606 PyThreadState* __tstate = wxPyBeginAllowThreads();
49607 result = (arg1)->GetPosition();
49608 wxPyEndAllowThreads(__tstate);
49609 if (PyErr_Occurred()) SWIG_fail;
49610 }
49611 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
49612 return resultobj;
49613fail:
49614 return NULL;
d55e5bfc
RD
49615}
49616
49617
1bd55598
RD
49618SWIGINTERN PyObject *_wrap_SizerItem_GetUserData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49619 PyObject *resultobj = 0;
49620 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49621 PyObject *result = 0 ;
49622 void *argp1 = 0 ;
49623 int res1 = 0 ;
49624 PyObject *swig_obj[1] ;
49625
49626 if (!args) SWIG_fail;
49627 swig_obj[0] = args;
49628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49629 if (!SWIG_IsOK(res1)) {
49630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetUserData" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49631 }
49632 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49633 {
49634 PyThreadState* __tstate = wxPyBeginAllowThreads();
49635 result = (PyObject *)wxSizerItem_GetUserData(arg1);
49636 wxPyEndAllowThreads(__tstate);
49637 if (PyErr_Occurred()) SWIG_fail;
49638 }
49639 resultobj = result;
49640 return resultobj;
49641fail:
49642 return NULL;
49643}
49644
49645
49646SWIGINTERN PyObject *_wrap_SizerItem_SetUserData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49647 PyObject *resultobj = 0;
49648 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
49649 PyObject *arg2 = (PyObject *) 0 ;
49650 void *argp1 = 0 ;
49651 int res1 = 0 ;
49652 PyObject * obj0 = 0 ;
49653 PyObject * obj1 = 0 ;
49654 char * kwnames[] = {
49655 (char *) "self",(char *) "userData", NULL
49656 };
49657
49658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetUserData",kwnames,&obj0,&obj1)) SWIG_fail;
49659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
49660 if (!SWIG_IsOK(res1)) {
49661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetUserData" "', expected argument " "1"" of type '" "wxSizerItem *""'");
49662 }
49663 arg1 = reinterpret_cast< wxSizerItem * >(argp1);
49664 arg2 = obj1;
49665 {
49666 PyThreadState* __tstate = wxPyBeginAllowThreads();
49667 wxSizerItem_SetUserData(arg1,arg2);
49668 wxPyEndAllowThreads(__tstate);
49669 if (PyErr_Occurred()) SWIG_fail;
49670 }
49671 resultobj = SWIG_Py_Void();
49672 return resultobj;
49673fail:
49674 return NULL;
d55e5bfc
RD
49675}
49676
49677
1bd55598
RD
49678SWIGINTERN PyObject *SizerItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49679 PyObject *obj;
49680 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
49681 SWIG_TypeNewClientData(SWIGTYPE_p_wxSizerItem, SWIG_NewClientData(obj));
49682 return SWIG_Py_Void();
d55e5bfc
RD
49683}
49684
1bd55598
RD
49685SWIGINTERN PyObject *SizerItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49686 return SWIG_Python_InitShadowInstance(args);
49687}
d55e5bfc 49688
1bd55598
RD
49689SWIGINTERN PyObject *_wrap_delete_Sizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
49690 PyObject *resultobj = 0;
49691 wxSizer *arg1 = (wxSizer *) 0 ;
49692 void *argp1 = 0 ;
49693 int res1 = 0 ;
49694 PyObject *swig_obj[1] ;
49695
49696 if (!args) SWIG_fail;
49697 swig_obj[0] = args;
49698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
49699 if (!SWIG_IsOK(res1)) {
49700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Sizer" "', expected argument " "1"" of type '" "wxSizer *""'");
49701 }
49702 arg1 = reinterpret_cast< wxSizer * >(argp1);
49703 {
49704 PyThreadState* __tstate = wxPyBeginAllowThreads();
49705 delete arg1;
d55e5bfc 49706
1bd55598
RD
49707 wxPyEndAllowThreads(__tstate);
49708 if (PyErr_Occurred()) SWIG_fail;
49709 }
49710 resultobj = SWIG_Py_Void();
49711 return resultobj;
49712fail:
49713 return NULL;
49714}
49715
49716
49717SWIGINTERN PyObject *_wrap_Sizer__setOORInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49718 PyObject *resultobj = 0;
49719 wxSizer *arg1 = (wxSizer *) 0 ;
49720 PyObject *arg2 = (PyObject *) 0 ;
49721 void *argp1 = 0 ;
49722 int res1 = 0 ;
49723 PyObject * obj0 = 0 ;
49724 PyObject * obj1 = 0 ;
49725 char * kwnames[] = {
49726 (char *) "self",(char *) "_self", NULL
49727 };
49728
49729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) SWIG_fail;
49730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
49731 if (!SWIG_IsOK(res1)) {
49732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer__setOORInfo" "', expected argument " "1"" of type '" "wxSizer *""'");
49733 }
49734 arg1 = reinterpret_cast< wxSizer * >(argp1);
49735 arg2 = obj1;
49736 {
49737 PyThreadState* __tstate = wxPyBeginAllowThreads();
49738 wxSizer__setOORInfo(arg1,arg2);
49739 wxPyEndAllowThreads(__tstate);
49740 if (PyErr_Occurred()) SWIG_fail;
49741 }
49742 resultobj = SWIG_Py_Void();
49743 return resultobj;
49744fail:
49745 return NULL;
49746}
49747
49748
49749SWIGINTERN PyObject *_wrap_Sizer_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49750 PyObject *resultobj = 0;
49751 wxSizer *arg1 = (wxSizer *) 0 ;
49752 PyObject *arg2 = (PyObject *) 0 ;
49753 int arg3 = (int) 0 ;
49754 int arg4 = (int) 0 ;
49755 int arg5 = (int) 0 ;
49756 PyObject *arg6 = (PyObject *) NULL ;
49757 wxSizerItem *result = 0 ;
49758 void *argp1 = 0 ;
49759 int res1 = 0 ;
49760 int val3 ;
49761 int ecode3 = 0 ;
49762 int val4 ;
49763 int ecode4 = 0 ;
49764 int val5 ;
49765 int ecode5 = 0 ;
49766 PyObject * obj0 = 0 ;
49767 PyObject * obj1 = 0 ;
49768 PyObject * obj2 = 0 ;
49769 PyObject * obj3 = 0 ;
49770 PyObject * obj4 = 0 ;
49771 PyObject * obj5 = 0 ;
49772 char * kwnames[] = {
49773 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
49774 };
49775
49776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
49777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
49778 if (!SWIG_IsOK(res1)) {
49779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Add" "', expected argument " "1"" of type '" "wxSizer *""'");
49780 }
49781 arg1 = reinterpret_cast< wxSizer * >(argp1);
49782 arg2 = obj1;
49783 if (obj2) {
49784 ecode3 = SWIG_AsVal_int(obj2, &val3);
49785 if (!SWIG_IsOK(ecode3)) {
49786 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Sizer_Add" "', expected argument " "3"" of type '" "int""'");
49787 }
49788 arg3 = static_cast< int >(val3);
49789 }
49790 if (obj3) {
49791 ecode4 = SWIG_AsVal_int(obj3, &val4);
49792 if (!SWIG_IsOK(ecode4)) {
49793 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer_Add" "', expected argument " "4"" of type '" "int""'");
49794 }
49795 arg4 = static_cast< int >(val4);
49796 }
49797 if (obj4) {
49798 ecode5 = SWIG_AsVal_int(obj4, &val5);
49799 if (!SWIG_IsOK(ecode5)) {
49800 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Sizer_Add" "', expected argument " "5"" of type '" "int""'");
49801 }
49802 arg5 = static_cast< int >(val5);
49803 }
49804 if (obj5) {
49805 arg6 = obj5;
49806 }
49807 {
49808 PyThreadState* __tstate = wxPyBeginAllowThreads();
49809 result = (wxSizerItem *)wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6);
49810 wxPyEndAllowThreads(__tstate);
49811 if (PyErr_Occurred()) SWIG_fail;
49812 }
49813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
49814 return resultobj;
49815fail:
49816 return NULL;
49817}
49818
49819
49820SWIGINTERN PyObject *_wrap_Sizer_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49821 PyObject *resultobj = 0;
49822 wxSizer *arg1 = (wxSizer *) 0 ;
49823 int arg2 ;
49824 PyObject *arg3 = (PyObject *) 0 ;
49825 int arg4 = (int) 0 ;
49826 int arg5 = (int) 0 ;
49827 int arg6 = (int) 0 ;
49828 PyObject *arg7 = (PyObject *) NULL ;
49829 wxSizerItem *result = 0 ;
49830 void *argp1 = 0 ;
49831 int res1 = 0 ;
49832 int val2 ;
49833 int ecode2 = 0 ;
49834 int val4 ;
49835 int ecode4 = 0 ;
49836 int val5 ;
49837 int ecode5 = 0 ;
49838 int val6 ;
49839 int ecode6 = 0 ;
49840 PyObject * obj0 = 0 ;
49841 PyObject * obj1 = 0 ;
49842 PyObject * obj2 = 0 ;
49843 PyObject * obj3 = 0 ;
49844 PyObject * obj4 = 0 ;
49845 PyObject * obj5 = 0 ;
49846 PyObject * obj6 = 0 ;
49847 char * kwnames[] = {
49848 (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
49849 };
49850
49851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
49852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
49853 if (!SWIG_IsOK(res1)) {
49854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Insert" "', expected argument " "1"" of type '" "wxSizer *""'");
49855 }
49856 arg1 = reinterpret_cast< wxSizer * >(argp1);
49857 ecode2 = SWIG_AsVal_int(obj1, &val2);
49858 if (!SWIG_IsOK(ecode2)) {
49859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer_Insert" "', expected argument " "2"" of type '" "int""'");
49860 }
49861 arg2 = static_cast< int >(val2);
49862 arg3 = obj2;
49863 if (obj3) {
49864 ecode4 = SWIG_AsVal_int(obj3, &val4);
49865 if (!SWIG_IsOK(ecode4)) {
49866 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer_Insert" "', expected argument " "4"" of type '" "int""'");
49867 }
49868 arg4 = static_cast< int >(val4);
49869 }
49870 if (obj4) {
49871 ecode5 = SWIG_AsVal_int(obj4, &val5);
49872 if (!SWIG_IsOK(ecode5)) {
49873 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Sizer_Insert" "', expected argument " "5"" of type '" "int""'");
49874 }
49875 arg5 = static_cast< int >(val5);
49876 }
49877 if (obj5) {
49878 ecode6 = SWIG_AsVal_int(obj5, &val6);
49879 if (!SWIG_IsOK(ecode6)) {
49880 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Sizer_Insert" "', expected argument " "6"" of type '" "int""'");
49881 }
49882 arg6 = static_cast< int >(val6);
49883 }
49884 if (obj6) {
49885 arg7 = obj6;
49886 }
49887 {
49888 PyThreadState* __tstate = wxPyBeginAllowThreads();
49889 result = (wxSizerItem *)wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
49890 wxPyEndAllowThreads(__tstate);
49891 if (PyErr_Occurred()) SWIG_fail;
49892 }
49893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
49894 return resultobj;
49895fail:
49896 return NULL;
49897}
49898
49899
49900SWIGINTERN PyObject *_wrap_Sizer_Prepend(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49901 PyObject *resultobj = 0;
49902 wxSizer *arg1 = (wxSizer *) 0 ;
49903 PyObject *arg2 = (PyObject *) 0 ;
49904 int arg3 = (int) 0 ;
49905 int arg4 = (int) 0 ;
49906 int arg5 = (int) 0 ;
49907 PyObject *arg6 = (PyObject *) NULL ;
49908 wxSizerItem *result = 0 ;
49909 void *argp1 = 0 ;
49910 int res1 = 0 ;
49911 int val3 ;
49912 int ecode3 = 0 ;
49913 int val4 ;
49914 int ecode4 = 0 ;
49915 int val5 ;
49916 int ecode5 = 0 ;
49917 PyObject * obj0 = 0 ;
49918 PyObject * obj1 = 0 ;
49919 PyObject * obj2 = 0 ;
49920 PyObject * obj3 = 0 ;
49921 PyObject * obj4 = 0 ;
49922 PyObject * obj5 = 0 ;
49923 char * kwnames[] = {
49924 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
49925 };
49926
49927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
49928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
49929 if (!SWIG_IsOK(res1)) {
49930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Prepend" "', expected argument " "1"" of type '" "wxSizer *""'");
49931 }
49932 arg1 = reinterpret_cast< wxSizer * >(argp1);
49933 arg2 = obj1;
49934 if (obj2) {
49935 ecode3 = SWIG_AsVal_int(obj2, &val3);
49936 if (!SWIG_IsOK(ecode3)) {
49937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Sizer_Prepend" "', expected argument " "3"" of type '" "int""'");
49938 }
49939 arg3 = static_cast< int >(val3);
49940 }
49941 if (obj3) {
49942 ecode4 = SWIG_AsVal_int(obj3, &val4);
49943 if (!SWIG_IsOK(ecode4)) {
49944 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer_Prepend" "', expected argument " "4"" of type '" "int""'");
49945 }
49946 arg4 = static_cast< int >(val4);
49947 }
49948 if (obj4) {
49949 ecode5 = SWIG_AsVal_int(obj4, &val5);
49950 if (!SWIG_IsOK(ecode5)) {
49951 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Sizer_Prepend" "', expected argument " "5"" of type '" "int""'");
49952 }
49953 arg5 = static_cast< int >(val5);
49954 }
49955 if (obj5) {
49956 arg6 = obj5;
49957 }
49958 {
49959 PyThreadState* __tstate = wxPyBeginAllowThreads();
49960 result = (wxSizerItem *)wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6);
49961 wxPyEndAllowThreads(__tstate);
49962 if (PyErr_Occurred()) SWIG_fail;
49963 }
49964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
49965 return resultobj;
49966fail:
49967 return NULL;
49968}
49969
49970
49971SWIGINTERN PyObject *_wrap_Sizer_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
49972 PyObject *resultobj = 0;
49973 wxSizer *arg1 = (wxSizer *) 0 ;
49974 PyObject *arg2 = (PyObject *) 0 ;
49975 bool result;
49976 void *argp1 = 0 ;
49977 int res1 = 0 ;
49978 PyObject * obj0 = 0 ;
49979 PyObject * obj1 = 0 ;
49980 char * kwnames[] = {
49981 (char *) "self",(char *) "item", NULL
49982 };
49983
49984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
49985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
49986 if (!SWIG_IsOK(res1)) {
49987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Remove" "', expected argument " "1"" of type '" "wxSizer *""'");
49988 }
49989 arg1 = reinterpret_cast< wxSizer * >(argp1);
49990 arg2 = obj1;
49991 {
49992 PyThreadState* __tstate = wxPyBeginAllowThreads();
49993 result = (bool)wxSizer_Remove(arg1,arg2);
49994 wxPyEndAllowThreads(__tstate);
49995 if (PyErr_Occurred()) SWIG_fail;
49996 }
49997 {
49998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
49999 }
50000 return resultobj;
50001fail:
50002 return NULL;
50003}
50004
50005
50006SWIGINTERN PyObject *_wrap_Sizer_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50007 PyObject *resultobj = 0;
50008 wxSizer *arg1 = (wxSizer *) 0 ;
50009 PyObject *arg2 = (PyObject *) 0 ;
50010 bool result;
50011 void *argp1 = 0 ;
50012 int res1 = 0 ;
50013 PyObject * obj0 = 0 ;
50014 PyObject * obj1 = 0 ;
50015 char * kwnames[] = {
50016 (char *) "self",(char *) "item", NULL
50017 };
50018
50019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) SWIG_fail;
50020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50021 if (!SWIG_IsOK(res1)) {
50022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Detach" "', expected argument " "1"" of type '" "wxSizer *""'");
50023 }
50024 arg1 = reinterpret_cast< wxSizer * >(argp1);
50025 arg2 = obj1;
50026 {
50027 PyThreadState* __tstate = wxPyBeginAllowThreads();
50028 result = (bool)wxSizer_Detach(arg1,arg2);
50029 wxPyEndAllowThreads(__tstate);
50030 if (PyErr_Occurred()) SWIG_fail;
50031 }
50032 {
50033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
50034 }
50035 return resultobj;
50036fail:
50037 return NULL;
50038}
50039
50040
50041SWIGINTERN PyObject *_wrap_Sizer_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50042 PyObject *resultobj = 0;
50043 wxSizer *arg1 = (wxSizer *) 0 ;
50044 PyObject *arg2 = (PyObject *) 0 ;
50045 wxSizerItem *result = 0 ;
50046 void *argp1 = 0 ;
50047 int res1 = 0 ;
50048 PyObject * obj0 = 0 ;
50049 PyObject * obj1 = 0 ;
50050 char * kwnames[] = {
50051 (char *) "self",(char *) "item", NULL
50052 };
50053
50054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_GetItem",kwnames,&obj0,&obj1)) SWIG_fail;
50055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50056 if (!SWIG_IsOK(res1)) {
50057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetItem" "', expected argument " "1"" of type '" "wxSizer *""'");
50058 }
50059 arg1 = reinterpret_cast< wxSizer * >(argp1);
50060 arg2 = obj1;
50061 {
50062 PyThreadState* __tstate = wxPyBeginAllowThreads();
50063 result = (wxSizerItem *)wxSizer_GetItem(arg1,arg2);
50064 wxPyEndAllowThreads(__tstate);
50065 if (PyErr_Occurred()) SWIG_fail;
50066 }
50067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
50068 return resultobj;
50069fail:
50070 return NULL;
50071}
50072
50073
50074SWIGINTERN PyObject *_wrap_Sizer__SetItemMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50075 PyObject *resultobj = 0;
50076 wxSizer *arg1 = (wxSizer *) 0 ;
50077 PyObject *arg2 = (PyObject *) 0 ;
50078 wxSize *arg3 = 0 ;
50079 void *argp1 = 0 ;
50080 int res1 = 0 ;
50081 wxSize temp3 ;
50082 PyObject * obj0 = 0 ;
50083 PyObject * obj1 = 0 ;
50084 PyObject * obj2 = 0 ;
50085 char * kwnames[] = {
50086 (char *) "self",(char *) "item",(char *) "size", NULL
50087 };
50088
50089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
50090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50091 if (!SWIG_IsOK(res1)) {
50092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer__SetItemMinSize" "', expected argument " "1"" of type '" "wxSizer *""'");
50093 }
50094 arg1 = reinterpret_cast< wxSizer * >(argp1);
50095 arg2 = obj1;
50096 {
50097 arg3 = &temp3;
50098 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
50099 }
50100 {
50101 PyThreadState* __tstate = wxPyBeginAllowThreads();
50102 wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3);
50103 wxPyEndAllowThreads(__tstate);
50104 if (PyErr_Occurred()) SWIG_fail;
50105 }
50106 resultobj = SWIG_Py_Void();
50107 return resultobj;
50108fail:
50109 return NULL;
50110}
50111
50112
ac5d357a
RD
50113SWIGINTERN PyObject *_wrap_Sizer__ReplaceWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50114 PyObject *resultobj = 0;
50115 wxSizer *arg1 = (wxSizer *) 0 ;
50116 wxWindow *arg2 = (wxWindow *) 0 ;
50117 wxWindow *arg3 = (wxWindow *) 0 ;
50118 bool arg4 = (bool) false ;
50119 bool result;
50120 void *argp1 = 0 ;
50121 int res1 = 0 ;
50122 void *argp2 = 0 ;
50123 int res2 = 0 ;
50124 void *argp3 = 0 ;
50125 int res3 = 0 ;
50126 bool val4 ;
50127 int ecode4 = 0 ;
50128 PyObject * obj0 = 0 ;
50129 PyObject * obj1 = 0 ;
50130 PyObject * obj2 = 0 ;
50131 PyObject * obj3 = 0 ;
50132 char * kwnames[] = {
50133 (char *) "self",(char *) "oldwin",(char *) "newwin",(char *) "recursive", NULL
50134 };
50135
50136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Sizer__ReplaceWin",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
50137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50138 if (!SWIG_IsOK(res1)) {
50139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer__ReplaceWin" "', expected argument " "1"" of type '" "wxSizer *""'");
50140 }
50141 arg1 = reinterpret_cast< wxSizer * >(argp1);
50142 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
50143 if (!SWIG_IsOK(res2)) {
50144 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer__ReplaceWin" "', expected argument " "2"" of type '" "wxWindow *""'");
50145 }
50146 arg2 = reinterpret_cast< wxWindow * >(argp2);
50147 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
50148 if (!SWIG_IsOK(res3)) {
50149 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Sizer__ReplaceWin" "', expected argument " "3"" of type '" "wxWindow *""'");
50150 }
50151 arg3 = reinterpret_cast< wxWindow * >(argp3);
50152 if (obj3) {
50153 ecode4 = SWIG_AsVal_bool(obj3, &val4);
50154 if (!SWIG_IsOK(ecode4)) {
50155 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer__ReplaceWin" "', expected argument " "4"" of type '" "bool""'");
50156 }
50157 arg4 = static_cast< bool >(val4);
50158 }
50159 {
50160 PyThreadState* __tstate = wxPyBeginAllowThreads();
50161 result = (bool)(arg1)->Replace(arg2,arg3,arg4);
50162 wxPyEndAllowThreads(__tstate);
50163 if (PyErr_Occurred()) SWIG_fail;
50164 }
50165 {
50166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
50167 }
50168 return resultobj;
50169fail:
50170 return NULL;
50171}
50172
50173
50174SWIGINTERN PyObject *_wrap_Sizer__ReplaceSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50175 PyObject *resultobj = 0;
50176 wxSizer *arg1 = (wxSizer *) 0 ;
50177 wxSizer *arg2 = (wxSizer *) 0 ;
50178 wxSizer *arg3 = (wxSizer *) 0 ;
50179 bool arg4 = (bool) false ;
50180 bool result;
50181 void *argp1 = 0 ;
50182 int res1 = 0 ;
50183 void *argp2 = 0 ;
50184 int res2 = 0 ;
50185 void *argp3 = 0 ;
50186 int res3 = 0 ;
50187 bool val4 ;
50188 int ecode4 = 0 ;
50189 PyObject * obj0 = 0 ;
50190 PyObject * obj1 = 0 ;
50191 PyObject * obj2 = 0 ;
50192 PyObject * obj3 = 0 ;
50193 char * kwnames[] = {
50194 (char *) "self",(char *) "oldsz",(char *) "newsz",(char *) "recursive", NULL
50195 };
50196
50197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Sizer__ReplaceSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
50198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50199 if (!SWIG_IsOK(res1)) {
50200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer__ReplaceSizer" "', expected argument " "1"" of type '" "wxSizer *""'");
50201 }
50202 arg1 = reinterpret_cast< wxSizer * >(argp1);
50203 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
50204 if (!SWIG_IsOK(res2)) {
50205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer__ReplaceSizer" "', expected argument " "2"" of type '" "wxSizer *""'");
50206 }
50207 arg2 = reinterpret_cast< wxSizer * >(argp2);
50208 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxSizer, 0 | 0 );
50209 if (!SWIG_IsOK(res3)) {
50210 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Sizer__ReplaceSizer" "', expected argument " "3"" of type '" "wxSizer *""'");
50211 }
50212 arg3 = reinterpret_cast< wxSizer * >(argp3);
50213 if (obj3) {
50214 ecode4 = SWIG_AsVal_bool(obj3, &val4);
50215 if (!SWIG_IsOK(ecode4)) {
50216 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer__ReplaceSizer" "', expected argument " "4"" of type '" "bool""'");
50217 }
50218 arg4 = static_cast< bool >(val4);
50219 }
50220 {
50221 PyThreadState* __tstate = wxPyBeginAllowThreads();
50222 result = (bool)(arg1)->Replace(arg2,arg3,arg4);
50223 wxPyEndAllowThreads(__tstate);
50224 if (PyErr_Occurred()) SWIG_fail;
50225 }
50226 {
50227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
50228 }
50229 return resultobj;
50230fail:
50231 return NULL;
50232}
50233
50234
50235SWIGINTERN PyObject *_wrap_Sizer__ReplaceItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50236 PyObject *resultobj = 0;
50237 wxSizer *arg1 = (wxSizer *) 0 ;
50238 size_t arg2 ;
50239 wxSizerItem *arg3 = (wxSizerItem *) 0 ;
50240 bool result;
50241 void *argp1 = 0 ;
50242 int res1 = 0 ;
50243 size_t val2 ;
50244 int ecode2 = 0 ;
50245 void *argp3 = 0 ;
50246 int res3 = 0 ;
50247 PyObject * obj0 = 0 ;
50248 PyObject * obj1 = 0 ;
50249 PyObject * obj2 = 0 ;
50250 char * kwnames[] = {
50251 (char *) "self",(char *) "index",(char *) "newitem", NULL
50252 };
50253
50254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__ReplaceItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
50255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50256 if (!SWIG_IsOK(res1)) {
50257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer__ReplaceItem" "', expected argument " "1"" of type '" "wxSizer *""'");
50258 }
50259 arg1 = reinterpret_cast< wxSizer * >(argp1);
50260 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
50261 if (!SWIG_IsOK(ecode2)) {
50262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer__ReplaceItem" "', expected argument " "2"" of type '" "size_t""'");
50263 }
50264 arg2 = static_cast< size_t >(val2);
50265 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxSizerItem, 0 | 0 );
50266 if (!SWIG_IsOK(res3)) {
50267 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Sizer__ReplaceItem" "', expected argument " "3"" of type '" "wxSizerItem *""'");
50268 }
50269 arg3 = reinterpret_cast< wxSizerItem * >(argp3);
50270 {
50271 PyThreadState* __tstate = wxPyBeginAllowThreads();
50272 result = (bool)(arg1)->Replace(arg2,arg3);
50273 wxPyEndAllowThreads(__tstate);
50274 if (PyErr_Occurred()) SWIG_fail;
50275 }
50276 {
50277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
50278 }
50279 return resultobj;
50280fail:
50281 return NULL;
50282}
50283
50284
50285SWIGINTERN PyObject *_wrap_Sizer_SetContainingWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50286 PyObject *resultobj = 0;
50287 wxSizer *arg1 = (wxSizer *) 0 ;
50288 wxWindow *arg2 = (wxWindow *) 0 ;
50289 void *argp1 = 0 ;
50290 int res1 = 0 ;
50291 void *argp2 = 0 ;
50292 int res2 = 0 ;
50293 PyObject * obj0 = 0 ;
50294 PyObject * obj1 = 0 ;
50295 char * kwnames[] = {
50296 (char *) "self",(char *) "window", NULL
50297 };
50298
50299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetContainingWindow",kwnames,&obj0,&obj1)) SWIG_fail;
50300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50301 if (!SWIG_IsOK(res1)) {
50302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_SetContainingWindow" "', expected argument " "1"" of type '" "wxSizer *""'");
50303 }
50304 arg1 = reinterpret_cast< wxSizer * >(argp1);
50305 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
50306 if (!SWIG_IsOK(res2)) {
50307 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_SetContainingWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
50308 }
50309 arg2 = reinterpret_cast< wxWindow * >(argp2);
50310 {
50311 PyThreadState* __tstate = wxPyBeginAllowThreads();
50312 (arg1)->SetContainingWindow(arg2);
50313 wxPyEndAllowThreads(__tstate);
50314 if (PyErr_Occurred()) SWIG_fail;
50315 }
50316 resultobj = SWIG_Py_Void();
50317 return resultobj;
50318fail:
50319 return NULL;
50320}
50321
50322
50323SWIGINTERN PyObject *_wrap_Sizer_GetContainingWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50324 PyObject *resultobj = 0;
50325 wxSizer *arg1 = (wxSizer *) 0 ;
50326 wxWindow *result = 0 ;
50327 void *argp1 = 0 ;
50328 int res1 = 0 ;
50329 PyObject *swig_obj[1] ;
50330
50331 if (!args) SWIG_fail;
50332 swig_obj[0] = args;
50333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50334 if (!SWIG_IsOK(res1)) {
50335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetContainingWindow" "', expected argument " "1"" of type '" "wxSizer const *""'");
50336 }
50337 arg1 = reinterpret_cast< wxSizer * >(argp1);
50338 {
50339 PyThreadState* __tstate = wxPyBeginAllowThreads();
50340 result = (wxWindow *)((wxSizer const *)arg1)->GetContainingWindow();
50341 wxPyEndAllowThreads(__tstate);
50342 if (PyErr_Occurred()) SWIG_fail;
50343 }
50344 {
50345 resultobj = wxPyMake_wxObject(result, 0);
50346 }
50347 return resultobj;
50348fail:
50349 return NULL;
50350}
50351
50352
1bd55598
RD
50353SWIGINTERN PyObject *_wrap_Sizer_AddItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50354 PyObject *resultobj = 0;
50355 wxSizer *arg1 = (wxSizer *) 0 ;
50356 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
50357 wxSizerItem *result = 0 ;
50358 void *argp1 = 0 ;
50359 int res1 = 0 ;
50360 int res2 = 0 ;
50361 PyObject * obj0 = 0 ;
50362 PyObject * obj1 = 0 ;
50363 char * kwnames[] = {
50364 (char *) "self",(char *) "item", NULL
50365 };
50366
50367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) SWIG_fail;
50368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50369 if (!SWIG_IsOK(res1)) {
50370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_AddItem" "', expected argument " "1"" of type '" "wxSizer *""'");
50371 }
50372 arg1 = reinterpret_cast< wxSizer * >(argp1);
50373 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_DISOWN | 0 );
50374 if (!SWIG_IsOK(res2)) {
50375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_AddItem" "', expected argument " "2"" of type '" "wxSizerItem *""'");
50376 }
50377 {
50378 PyThreadState* __tstate = wxPyBeginAllowThreads();
50379 result = (wxSizerItem *)(arg1)->Add(arg2);
50380 wxPyEndAllowThreads(__tstate);
50381 if (PyErr_Occurred()) SWIG_fail;
50382 }
50383 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
50384 return resultobj;
50385fail:
50386 return NULL;
50387}
50388
50389
50390SWIGINTERN PyObject *_wrap_Sizer_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50391 PyObject *resultobj = 0;
50392 wxSizer *arg1 = (wxSizer *) 0 ;
50393 size_t arg2 ;
50394 wxSizerItem *arg3 = (wxSizerItem *) 0 ;
50395 wxSizerItem *result = 0 ;
50396 void *argp1 = 0 ;
50397 int res1 = 0 ;
50398 size_t val2 ;
50399 int ecode2 = 0 ;
50400 int res3 = 0 ;
50401 PyObject * obj0 = 0 ;
50402 PyObject * obj1 = 0 ;
50403 PyObject * obj2 = 0 ;
50404 char * kwnames[] = {
50405 (char *) "self",(char *) "index",(char *) "item", NULL
50406 };
50407
50408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
50409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50410 if (!SWIG_IsOK(res1)) {
50411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_InsertItem" "', expected argument " "1"" of type '" "wxSizer *""'");
50412 }
50413 arg1 = reinterpret_cast< wxSizer * >(argp1);
50414 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
50415 if (!SWIG_IsOK(ecode2)) {
50416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer_InsertItem" "', expected argument " "2"" of type '" "size_t""'");
50417 }
50418 arg2 = static_cast< size_t >(val2);
50419 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_DISOWN | 0 );
50420 if (!SWIG_IsOK(res3)) {
50421 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Sizer_InsertItem" "', expected argument " "3"" of type '" "wxSizerItem *""'");
50422 }
50423 {
50424 PyThreadState* __tstate = wxPyBeginAllowThreads();
50425 result = (wxSizerItem *)(arg1)->Insert(arg2,arg3);
50426 wxPyEndAllowThreads(__tstate);
50427 if (PyErr_Occurred()) SWIG_fail;
50428 }
50429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
50430 return resultobj;
50431fail:
50432 return NULL;
50433}
50434
50435
50436SWIGINTERN PyObject *_wrap_Sizer_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50437 PyObject *resultobj = 0;
50438 wxSizer *arg1 = (wxSizer *) 0 ;
50439 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
50440 wxSizerItem *result = 0 ;
50441 void *argp1 = 0 ;
50442 int res1 = 0 ;
50443 int res2 = 0 ;
50444 PyObject * obj0 = 0 ;
50445 PyObject * obj1 = 0 ;
50446 char * kwnames[] = {
50447 (char *) "self",(char *) "item", NULL
50448 };
50449
50450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) 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_PrependItem" "', expected argument " "1"" of type '" "wxSizer *""'");
50454 }
50455 arg1 = reinterpret_cast< wxSizer * >(argp1);
50456 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_DISOWN | 0 );
50457 if (!SWIG_IsOK(res2)) {
50458 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_PrependItem" "', expected argument " "2"" of type '" "wxSizerItem *""'");
50459 }
50460 {
50461 PyThreadState* __tstate = wxPyBeginAllowThreads();
50462 result = (wxSizerItem *)(arg1)->Prepend(arg2);
50463 wxPyEndAllowThreads(__tstate);
50464 if (PyErr_Occurred()) SWIG_fail;
50465 }
50466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
50467 return resultobj;
50468fail:
50469 return NULL;
50470}
50471
50472
50473SWIGINTERN PyObject *_wrap_Sizer_SetDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50474 PyObject *resultobj = 0;
50475 wxSizer *arg1 = (wxSizer *) 0 ;
50476 int arg2 ;
50477 int arg3 ;
50478 int arg4 ;
50479 int arg5 ;
50480 void *argp1 = 0 ;
50481 int res1 = 0 ;
50482 int val2 ;
50483 int ecode2 = 0 ;
50484 int val3 ;
50485 int ecode3 = 0 ;
50486 int val4 ;
50487 int ecode4 = 0 ;
50488 int val5 ;
50489 int ecode5 = 0 ;
50490 PyObject * obj0 = 0 ;
50491 PyObject * obj1 = 0 ;
50492 PyObject * obj2 = 0 ;
50493 PyObject * obj3 = 0 ;
50494 PyObject * obj4 = 0 ;
50495 char * kwnames[] = {
50496 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
50497 };
50498
50499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50501 if (!SWIG_IsOK(res1)) {
50502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_SetDimension" "', expected argument " "1"" of type '" "wxSizer *""'");
50503 }
50504 arg1 = reinterpret_cast< wxSizer * >(argp1);
50505 ecode2 = SWIG_AsVal_int(obj1, &val2);
50506 if (!SWIG_IsOK(ecode2)) {
50507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer_SetDimension" "', expected argument " "2"" of type '" "int""'");
50508 }
50509 arg2 = static_cast< int >(val2);
50510 ecode3 = SWIG_AsVal_int(obj2, &val3);
50511 if (!SWIG_IsOK(ecode3)) {
50512 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Sizer_SetDimension" "', expected argument " "3"" of type '" "int""'");
50513 }
50514 arg3 = static_cast< int >(val3);
50515 ecode4 = SWIG_AsVal_int(obj3, &val4);
50516 if (!SWIG_IsOK(ecode4)) {
50517 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer_SetDimension" "', expected argument " "4"" of type '" "int""'");
50518 }
50519 arg4 = static_cast< int >(val4);
50520 ecode5 = SWIG_AsVal_int(obj4, &val5);
50521 if (!SWIG_IsOK(ecode5)) {
50522 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Sizer_SetDimension" "', expected argument " "5"" of type '" "int""'");
50523 }
50524 arg5 = static_cast< int >(val5);
50525 {
50526 PyThreadState* __tstate = wxPyBeginAllowThreads();
50527 (arg1)->SetDimension(arg2,arg3,arg4,arg5);
50528 wxPyEndAllowThreads(__tstate);
50529 if (PyErr_Occurred()) SWIG_fail;
50530 }
50531 resultobj = SWIG_Py_Void();
50532 return resultobj;
50533fail:
50534 return NULL;
50535}
50536
50537
50538SWIGINTERN PyObject *_wrap_Sizer_SetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50539 PyObject *resultobj = 0;
50540 wxSizer *arg1 = (wxSizer *) 0 ;
50541 wxSize *arg2 = 0 ;
50542 void *argp1 = 0 ;
50543 int res1 = 0 ;
50544 wxSize temp2 ;
50545 PyObject * obj0 = 0 ;
50546 PyObject * obj1 = 0 ;
50547 char * kwnames[] = {
50548 (char *) "self",(char *) "size", NULL
50549 };
50550
50551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) SWIG_fail;
50552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50553 if (!SWIG_IsOK(res1)) {
50554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_SetMinSize" "', expected argument " "1"" of type '" "wxSizer *""'");
50555 }
50556 arg1 = reinterpret_cast< wxSizer * >(argp1);
50557 {
50558 arg2 = &temp2;
50559 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
50560 }
50561 {
50562 PyThreadState* __tstate = wxPyBeginAllowThreads();
50563 (arg1)->SetMinSize((wxSize const &)*arg2);
50564 wxPyEndAllowThreads(__tstate);
50565 if (PyErr_Occurred()) SWIG_fail;
50566 }
50567 resultobj = SWIG_Py_Void();
50568 return resultobj;
50569fail:
50570 return NULL;
d55e5bfc
RD
50571}
50572
50573
1bd55598
RD
50574SWIGINTERN PyObject *_wrap_Sizer_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50575 PyObject *resultobj = 0;
50576 wxSizer *arg1 = (wxSizer *) 0 ;
50577 wxSize result;
50578 void *argp1 = 0 ;
50579 int res1 = 0 ;
50580 PyObject *swig_obj[1] ;
50581
50582 if (!args) SWIG_fail;
50583 swig_obj[0] = args;
50584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50585 if (!SWIG_IsOK(res1)) {
50586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetSize" "', expected argument " "1"" of type '" "wxSizer *""'");
50587 }
50588 arg1 = reinterpret_cast< wxSizer * >(argp1);
50589 {
50590 PyThreadState* __tstate = wxPyBeginAllowThreads();
50591 result = (arg1)->GetSize();
50592 wxPyEndAllowThreads(__tstate);
50593 if (PyErr_Occurred()) SWIG_fail;
50594 }
50595 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
50596 return resultobj;
50597fail:
50598 return NULL;
d55e5bfc
RD
50599}
50600
50601
1bd55598
RD
50602SWIGINTERN PyObject *_wrap_Sizer_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50603 PyObject *resultobj = 0;
50604 wxSizer *arg1 = (wxSizer *) 0 ;
50605 wxPoint result;
50606 void *argp1 = 0 ;
50607 int res1 = 0 ;
50608 PyObject *swig_obj[1] ;
50609
50610 if (!args) SWIG_fail;
50611 swig_obj[0] = args;
50612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50613 if (!SWIG_IsOK(res1)) {
50614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetPosition" "', expected argument " "1"" of type '" "wxSizer *""'");
50615 }
50616 arg1 = reinterpret_cast< wxSizer * >(argp1);
50617 {
50618 PyThreadState* __tstate = wxPyBeginAllowThreads();
50619 result = (arg1)->GetPosition();
50620 wxPyEndAllowThreads(__tstate);
50621 if (PyErr_Occurred()) SWIG_fail;
50622 }
50623 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
50624 return resultobj;
50625fail:
50626 return NULL;
d55e5bfc
RD
50627}
50628
50629
1bd55598
RD
50630SWIGINTERN PyObject *_wrap_Sizer_GetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50631 PyObject *resultobj = 0;
50632 wxSizer *arg1 = (wxSizer *) 0 ;
50633 wxSize result;
50634 void *argp1 = 0 ;
50635 int res1 = 0 ;
50636 PyObject *swig_obj[1] ;
50637
50638 if (!args) SWIG_fail;
50639 swig_obj[0] = args;
50640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50641 if (!SWIG_IsOK(res1)) {
50642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetMinSize" "', expected argument " "1"" of type '" "wxSizer *""'");
50643 }
50644 arg1 = reinterpret_cast< wxSizer * >(argp1);
50645 {
50646 PyThreadState* __tstate = wxPyBeginAllowThreads();
50647 result = (arg1)->GetMinSize();
50648 wxPyEndAllowThreads(__tstate);
50649 if (PyErr_Occurred()) SWIG_fail;
50650 }
50651 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
50652 return resultobj;
50653fail:
50654 return NULL;
d55e5bfc
RD
50655}
50656
50657
1bd55598
RD
50658SWIGINTERN PyObject *_wrap_Sizer_RecalcSizes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50659 PyObject *resultobj = 0;
50660 wxSizer *arg1 = (wxSizer *) 0 ;
50661 void *argp1 = 0 ;
50662 int res1 = 0 ;
50663 PyObject *swig_obj[1] ;
50664
50665 if (!args) SWIG_fail;
50666 swig_obj[0] = args;
50667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50668 if (!SWIG_IsOK(res1)) {
50669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_RecalcSizes" "', expected argument " "1"" of type '" "wxSizer *""'");
50670 }
50671 arg1 = reinterpret_cast< wxSizer * >(argp1);
50672 {
50673 PyThreadState* __tstate = wxPyBeginAllowThreads();
50674 (arg1)->RecalcSizes();
50675 wxPyEndAllowThreads(__tstate);
50676 if (PyErr_Occurred()) SWIG_fail;
50677 }
50678 resultobj = SWIG_Py_Void();
50679 return resultobj;
50680fail:
50681 return NULL;
a001823c
RD
50682}
50683
50684
1bd55598
RD
50685SWIGINTERN PyObject *_wrap_Sizer_CalcMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50686 PyObject *resultobj = 0;
50687 wxSizer *arg1 = (wxSizer *) 0 ;
50688 wxSize result;
50689 void *argp1 = 0 ;
50690 int res1 = 0 ;
50691 PyObject *swig_obj[1] ;
50692
50693 if (!args) SWIG_fail;
50694 swig_obj[0] = args;
50695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50696 if (!SWIG_IsOK(res1)) {
50697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_CalcMin" "', expected argument " "1"" of type '" "wxSizer *""'");
50698 }
50699 arg1 = reinterpret_cast< wxSizer * >(argp1);
50700 {
50701 PyThreadState* __tstate = wxPyBeginAllowThreads();
50702 result = (arg1)->CalcMin();
50703 wxPyEndAllowThreads(__tstate);
50704 if (PyErr_Occurred()) SWIG_fail;
50705 }
50706 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
50707 return resultobj;
50708fail:
50709 return NULL;
e2813725
RD
50710}
50711
50712
1bd55598
RD
50713SWIGINTERN PyObject *_wrap_Sizer_Layout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50714 PyObject *resultobj = 0;
50715 wxSizer *arg1 = (wxSizer *) 0 ;
50716 void *argp1 = 0 ;
50717 int res1 = 0 ;
50718 PyObject *swig_obj[1] ;
50719
50720 if (!args) SWIG_fail;
50721 swig_obj[0] = args;
50722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50723 if (!SWIG_IsOK(res1)) {
50724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Layout" "', expected argument " "1"" of type '" "wxSizer *""'");
50725 }
50726 arg1 = reinterpret_cast< wxSizer * >(argp1);
50727 {
50728 PyThreadState* __tstate = wxPyBeginAllowThreads();
50729 (arg1)->Layout();
50730 wxPyEndAllowThreads(__tstate);
50731 if (PyErr_Occurred()) SWIG_fail;
50732 }
50733 resultobj = SWIG_Py_Void();
50734 return resultobj;
50735fail:
50736 return NULL;
50737}
50738
50739
50740SWIGINTERN PyObject *_wrap_Sizer_Fit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50741 PyObject *resultobj = 0;
50742 wxSizer *arg1 = (wxSizer *) 0 ;
50743 wxWindow *arg2 = (wxWindow *) 0 ;
50744 wxSize result;
50745 void *argp1 = 0 ;
50746 int res1 = 0 ;
50747 void *argp2 = 0 ;
50748 int res2 = 0 ;
50749 PyObject * obj0 = 0 ;
50750 PyObject * obj1 = 0 ;
50751 char * kwnames[] = {
50752 (char *) "self",(char *) "window", NULL
50753 };
50754
50755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) SWIG_fail;
50756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50757 if (!SWIG_IsOK(res1)) {
50758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Fit" "', expected argument " "1"" of type '" "wxSizer *""'");
50759 }
50760 arg1 = reinterpret_cast< wxSizer * >(argp1);
50761 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
50762 if (!SWIG_IsOK(res2)) {
50763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_Fit" "', expected argument " "2"" of type '" "wxWindow *""'");
50764 }
50765 arg2 = reinterpret_cast< wxWindow * >(argp2);
50766 {
50767 PyThreadState* __tstate = wxPyBeginAllowThreads();
50768 result = (arg1)->Fit(arg2);
50769 wxPyEndAllowThreads(__tstate);
50770 if (PyErr_Occurred()) SWIG_fail;
50771 }
50772 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
50773 return resultobj;
50774fail:
50775 return NULL;
50776}
50777
50778
50779SWIGINTERN PyObject *_wrap_Sizer_FitInside(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50780 PyObject *resultobj = 0;
50781 wxSizer *arg1 = (wxSizer *) 0 ;
50782 wxWindow *arg2 = (wxWindow *) 0 ;
50783 void *argp1 = 0 ;
50784 int res1 = 0 ;
50785 void *argp2 = 0 ;
50786 int res2 = 0 ;
50787 PyObject * obj0 = 0 ;
50788 PyObject * obj1 = 0 ;
50789 char * kwnames[] = {
50790 (char *) "self",(char *) "window", NULL
50791 };
50792
50793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) SWIG_fail;
50794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50795 if (!SWIG_IsOK(res1)) {
50796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_FitInside" "', expected argument " "1"" of type '" "wxSizer *""'");
50797 }
50798 arg1 = reinterpret_cast< wxSizer * >(argp1);
50799 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
50800 if (!SWIG_IsOK(res2)) {
50801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_FitInside" "', expected argument " "2"" of type '" "wxWindow *""'");
50802 }
50803 arg2 = reinterpret_cast< wxWindow * >(argp2);
50804 {
50805 PyThreadState* __tstate = wxPyBeginAllowThreads();
50806 (arg1)->FitInside(arg2);
50807 wxPyEndAllowThreads(__tstate);
50808 if (PyErr_Occurred()) SWIG_fail;
50809 }
50810 resultobj = SWIG_Py_Void();
50811 return resultobj;
50812fail:
50813 return NULL;
50814}
50815
50816
50817SWIGINTERN PyObject *_wrap_Sizer_SetSizeHints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50818 PyObject *resultobj = 0;
50819 wxSizer *arg1 = (wxSizer *) 0 ;
50820 wxWindow *arg2 = (wxWindow *) 0 ;
50821 void *argp1 = 0 ;
50822 int res1 = 0 ;
50823 void *argp2 = 0 ;
50824 int res2 = 0 ;
50825 PyObject * obj0 = 0 ;
50826 PyObject * obj1 = 0 ;
50827 char * kwnames[] = {
50828 (char *) "self",(char *) "window", NULL
50829 };
50830
50831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) SWIG_fail;
50832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50833 if (!SWIG_IsOK(res1)) {
50834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_SetSizeHints" "', expected argument " "1"" of type '" "wxSizer *""'");
50835 }
50836 arg1 = reinterpret_cast< wxSizer * >(argp1);
50837 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
50838 if (!SWIG_IsOK(res2)) {
50839 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_SetSizeHints" "', expected argument " "2"" of type '" "wxWindow *""'");
50840 }
50841 arg2 = reinterpret_cast< wxWindow * >(argp2);
50842 {
50843 PyThreadState* __tstate = wxPyBeginAllowThreads();
50844 (arg1)->SetSizeHints(arg2);
50845 wxPyEndAllowThreads(__tstate);
50846 if (PyErr_Occurred()) SWIG_fail;
50847 }
50848 resultobj = SWIG_Py_Void();
50849 return resultobj;
50850fail:
50851 return NULL;
50852}
50853
50854
50855SWIGINTERN PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50856 PyObject *resultobj = 0;
50857 wxSizer *arg1 = (wxSizer *) 0 ;
50858 wxWindow *arg2 = (wxWindow *) 0 ;
50859 void *argp1 = 0 ;
50860 int res1 = 0 ;
50861 void *argp2 = 0 ;
50862 int res2 = 0 ;
50863 PyObject * obj0 = 0 ;
50864 PyObject * obj1 = 0 ;
50865 char * kwnames[] = {
50866 (char *) "self",(char *) "window", NULL
50867 };
50868
50869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) SWIG_fail;
50870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50871 if (!SWIG_IsOK(res1)) {
50872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_SetVirtualSizeHints" "', expected argument " "1"" of type '" "wxSizer *""'");
50873 }
50874 arg1 = reinterpret_cast< wxSizer * >(argp1);
50875 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
50876 if (!SWIG_IsOK(res2)) {
50877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_SetVirtualSizeHints" "', expected argument " "2"" of type '" "wxWindow *""'");
50878 }
50879 arg2 = reinterpret_cast< wxWindow * >(argp2);
50880 {
50881 PyThreadState* __tstate = wxPyBeginAllowThreads();
50882 (arg1)->SetVirtualSizeHints(arg2);
50883 wxPyEndAllowThreads(__tstate);
50884 if (PyErr_Occurred()) SWIG_fail;
50885 }
50886 resultobj = SWIG_Py_Void();
50887 return resultobj;
50888fail:
50889 return NULL;
50890}
50891
50892
50893SWIGINTERN PyObject *_wrap_Sizer_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50894 PyObject *resultobj = 0;
50895 wxSizer *arg1 = (wxSizer *) 0 ;
50896 bool arg2 = (bool) false ;
50897 void *argp1 = 0 ;
50898 int res1 = 0 ;
50899 bool val2 ;
50900 int ecode2 = 0 ;
50901 PyObject * obj0 = 0 ;
50902 PyObject * obj1 = 0 ;
50903 char * kwnames[] = {
50904 (char *) "self",(char *) "deleteWindows", NULL
50905 };
50906
50907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) SWIG_fail;
50908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50909 if (!SWIG_IsOK(res1)) {
50910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Clear" "', expected argument " "1"" of type '" "wxSizer *""'");
50911 }
50912 arg1 = reinterpret_cast< wxSizer * >(argp1);
50913 if (obj1) {
50914 ecode2 = SWIG_AsVal_bool(obj1, &val2);
50915 if (!SWIG_IsOK(ecode2)) {
50916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer_Clear" "', expected argument " "2"" of type '" "bool""'");
50917 }
50918 arg2 = static_cast< bool >(val2);
50919 }
50920 {
50921 PyThreadState* __tstate = wxPyBeginAllowThreads();
50922 (arg1)->Clear(arg2);
50923 wxPyEndAllowThreads(__tstate);
50924 if (PyErr_Occurred()) SWIG_fail;
50925 }
50926 resultobj = SWIG_Py_Void();
50927 return resultobj;
50928fail:
50929 return NULL;
a001823c
RD
50930}
50931
50932
1bd55598
RD
50933SWIGINTERN PyObject *_wrap_Sizer_DeleteWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50934 PyObject *resultobj = 0;
50935 wxSizer *arg1 = (wxSizer *) 0 ;
50936 void *argp1 = 0 ;
50937 int res1 = 0 ;
50938 PyObject *swig_obj[1] ;
50939
50940 if (!args) SWIG_fail;
50941 swig_obj[0] = args;
50942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50943 if (!SWIG_IsOK(res1)) {
50944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_DeleteWindows" "', expected argument " "1"" of type '" "wxSizer *""'");
50945 }
50946 arg1 = reinterpret_cast< wxSizer * >(argp1);
50947 {
50948 PyThreadState* __tstate = wxPyBeginAllowThreads();
50949 (arg1)->DeleteWindows();
50950 wxPyEndAllowThreads(__tstate);
50951 if (PyErr_Occurred()) SWIG_fail;
50952 }
50953 resultobj = SWIG_Py_Void();
50954 return resultobj;
50955fail:
50956 return NULL;
d55e5bfc
RD
50957}
50958
50959
1bd55598
RD
50960SWIGINTERN PyObject *_wrap_Sizer_GetChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
50961 PyObject *resultobj = 0;
50962 wxSizer *arg1 = (wxSizer *) 0 ;
50963 PyObject *result = 0 ;
50964 void *argp1 = 0 ;
50965 int res1 = 0 ;
50966 PyObject *swig_obj[1] ;
50967
50968 if (!args) SWIG_fail;
50969 swig_obj[0] = args;
50970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
50971 if (!SWIG_IsOK(res1)) {
50972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetChildren" "', expected argument " "1"" of type '" "wxSizer *""'");
50973 }
50974 arg1 = reinterpret_cast< wxSizer * >(argp1);
50975 {
50976 PyThreadState* __tstate = wxPyBeginAllowThreads();
50977 result = (PyObject *)wxSizer_GetChildren(arg1);
50978 wxPyEndAllowThreads(__tstate);
50979 if (PyErr_Occurred()) SWIG_fail;
50980 }
50981 resultobj = result;
50982 return resultobj;
50983fail:
50984 return NULL;
50985}
50986
50987
50988SWIGINTERN PyObject *_wrap_Sizer_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50989 PyObject *resultobj = 0;
50990 wxSizer *arg1 = (wxSizer *) 0 ;
50991 PyObject *arg2 = (PyObject *) 0 ;
50992 bool arg3 = (bool) true ;
50993 bool arg4 = (bool) false ;
50994 bool result;
50995 void *argp1 = 0 ;
50996 int res1 = 0 ;
50997 bool val3 ;
50998 int ecode3 = 0 ;
50999 bool val4 ;
51000 int ecode4 = 0 ;
51001 PyObject * obj0 = 0 ;
51002 PyObject * obj1 = 0 ;
51003 PyObject * obj2 = 0 ;
51004 PyObject * obj3 = 0 ;
51005 char * kwnames[] = {
51006 (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL
51007 };
51008
51009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_Show" "', expected argument " "1"" of type '" "wxSizer *""'");
51013 }
51014 arg1 = reinterpret_cast< wxSizer * >(argp1);
51015 arg2 = obj1;
51016 if (obj2) {
51017 ecode3 = SWIG_AsVal_bool(obj2, &val3);
51018 if (!SWIG_IsOK(ecode3)) {
51019 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Sizer_Show" "', expected argument " "3"" of type '" "bool""'");
51020 }
51021 arg3 = static_cast< bool >(val3);
51022 }
51023 if (obj3) {
51024 ecode4 = SWIG_AsVal_bool(obj3, &val4);
51025 if (!SWIG_IsOK(ecode4)) {
51026 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer_Show" "', expected argument " "4"" of type '" "bool""'");
51027 }
51028 arg4 = static_cast< bool >(val4);
51029 }
51030 {
51031 PyThreadState* __tstate = wxPyBeginAllowThreads();
51032 result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4);
51033 wxPyEndAllowThreads(__tstate);
51034 if (PyErr_Occurred()) SWIG_fail;
51035 }
51036 {
51037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
51038 }
51039 return resultobj;
51040fail:
51041 return NULL;
51042}
51043
51044
51045SWIGINTERN PyObject *_wrap_Sizer_IsShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51046 PyObject *resultobj = 0;
51047 wxSizer *arg1 = (wxSizer *) 0 ;
51048 PyObject *arg2 = (PyObject *) 0 ;
51049 bool result;
51050 void *argp1 = 0 ;
51051 int res1 = 0 ;
51052 PyObject * obj0 = 0 ;
51053 PyObject * obj1 = 0 ;
51054 char * kwnames[] = {
51055 (char *) "self",(char *) "item", NULL
51056 };
51057
51058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) SWIG_fail;
51059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
51060 if (!SWIG_IsOK(res1)) {
51061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_IsShown" "', expected argument " "1"" of type '" "wxSizer *""'");
51062 }
51063 arg1 = reinterpret_cast< wxSizer * >(argp1);
51064 arg2 = obj1;
51065 {
51066 PyThreadState* __tstate = wxPyBeginAllowThreads();
51067 result = (bool)wxSizer_IsShown(arg1,arg2);
51068 wxPyEndAllowThreads(__tstate);
51069 if (PyErr_Occurred()) SWIG_fail;
51070 }
51071 {
51072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
51073 }
51074 return resultobj;
51075fail:
51076 return NULL;
51077}
51078
51079
51080SWIGINTERN PyObject *_wrap_Sizer_ShowItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51081 PyObject *resultobj = 0;
51082 wxSizer *arg1 = (wxSizer *) 0 ;
51083 bool arg2 ;
51084 void *argp1 = 0 ;
51085 int res1 = 0 ;
51086 bool val2 ;
51087 int ecode2 = 0 ;
51088 PyObject * obj0 = 0 ;
51089 PyObject * obj1 = 0 ;
51090 char * kwnames[] = {
51091 (char *) "self",(char *) "show", NULL
51092 };
51093
51094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) SWIG_fail;
51095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
51096 if (!SWIG_IsOK(res1)) {
51097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_ShowItems" "', expected argument " "1"" of type '" "wxSizer *""'");
51098 }
51099 arg1 = reinterpret_cast< wxSizer * >(argp1);
51100 ecode2 = SWIG_AsVal_bool(obj1, &val2);
51101 if (!SWIG_IsOK(ecode2)) {
51102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer_ShowItems" "', expected argument " "2"" of type '" "bool""'");
51103 }
51104 arg2 = static_cast< bool >(val2);
51105 {
51106 PyThreadState* __tstate = wxPyBeginAllowThreads();
51107 (arg1)->ShowItems(arg2);
51108 wxPyEndAllowThreads(__tstate);
51109 if (PyErr_Occurred()) SWIG_fail;
51110 }
51111 resultobj = SWIG_Py_Void();
51112 return resultobj;
51113fail:
51114 return NULL;
d55e5bfc
RD
51115}
51116
51117
1bd55598
RD
51118SWIGINTERN PyObject *Sizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51119 PyObject *obj;
51120 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
51121 SWIG_TypeNewClientData(SWIGTYPE_p_wxSizer, SWIG_NewClientData(obj));
51122 return SWIG_Py_Void();
d55e5bfc
RD
51123}
51124
1bd55598
RD
51125SWIGINTERN PyObject *_wrap_new_PySizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51126 PyObject *resultobj = 0;
51127 wxPySizer *result = 0 ;
51128
51129 if (!SWIG_Python_UnpackTuple(args,"new_PySizer",0,0,0)) SWIG_fail;
51130 {
51131 PyThreadState* __tstate = wxPyBeginAllowThreads();
51132 result = (wxPySizer *)new wxPySizer();
51133 wxPyEndAllowThreads(__tstate);
51134 if (PyErr_Occurred()) SWIG_fail;
51135 }
51136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPySizer, SWIG_POINTER_NEW | 0 );
51137 return resultobj;
51138fail:
51139 return NULL;
51140}
51141
51142
51143SWIGINTERN PyObject *_wrap_PySizer__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51144 PyObject *resultobj = 0;
51145 wxPySizer *arg1 = (wxPySizer *) 0 ;
51146 PyObject *arg2 = (PyObject *) 0 ;
51147 PyObject *arg3 = (PyObject *) 0 ;
51148 void *argp1 = 0 ;
51149 int res1 = 0 ;
51150 PyObject * obj0 = 0 ;
51151 PyObject * obj1 = 0 ;
51152 PyObject * obj2 = 0 ;
51153 char * kwnames[] = {
51154 (char *) "self",(char *) "self",(char *) "_class", NULL
51155 };
51156
51157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
51158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPySizer, 0 | 0 );
51159 if (!SWIG_IsOK(res1)) {
51160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySizer__setCallbackInfo" "', expected argument " "1"" of type '" "wxPySizer *""'");
51161 }
51162 arg1 = reinterpret_cast< wxPySizer * >(argp1);
51163 arg2 = obj1;
51164 arg3 = obj2;
51165 {
51166 PyThreadState* __tstate = wxPyBeginAllowThreads();
51167 (arg1)->_setCallbackInfo(arg2,arg3);
51168 wxPyEndAllowThreads(__tstate);
51169 if (PyErr_Occurred()) SWIG_fail;
51170 }
51171 resultobj = SWIG_Py_Void();
51172 return resultobj;
51173fail:
51174 return NULL;
51175}
d55e5bfc 51176
1bd55598
RD
51177
51178SWIGINTERN PyObject *PySizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51179 PyObject *obj;
51180 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
51181 SWIG_TypeNewClientData(SWIGTYPE_p_wxPySizer, SWIG_NewClientData(obj));
51182 return SWIG_Py_Void();
d55e5bfc
RD
51183}
51184
1bd55598
RD
51185SWIGINTERN PyObject *PySizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51186 return SWIG_Python_InitShadowInstance(args);
51187}
d55e5bfc 51188
1bd55598
RD
51189SWIGINTERN PyObject *_wrap_new_BoxSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51190 PyObject *resultobj = 0;
51191 int arg1 = (int) wxHORIZONTAL ;
51192 wxBoxSizer *result = 0 ;
51193 int val1 ;
51194 int ecode1 = 0 ;
51195 PyObject * obj0 = 0 ;
51196 char * kwnames[] = {
51197 (char *) "orient", NULL
51198 };
51199
51200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) SWIG_fail;
51201 if (obj0) {
51202 ecode1 = SWIG_AsVal_int(obj0, &val1);
51203 if (!SWIG_IsOK(ecode1)) {
51204 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BoxSizer" "', expected argument " "1"" of type '" "int""'");
51205 }
51206 arg1 = static_cast< int >(val1);
51207 }
51208 {
51209 PyThreadState* __tstate = wxPyBeginAllowThreads();
51210 result = (wxBoxSizer *)new wxBoxSizer(arg1);
51211 wxPyEndAllowThreads(__tstate);
51212 if (PyErr_Occurred()) SWIG_fail;
51213 }
51214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBoxSizer, SWIG_POINTER_NEW | 0 );
51215 return resultobj;
51216fail:
51217 return NULL;
d55e5bfc
RD
51218}
51219
51220
1bd55598
RD
51221SWIGINTERN PyObject *_wrap_BoxSizer_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51222 PyObject *resultobj = 0;
51223 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
51224 int result;
51225 void *argp1 = 0 ;
51226 int res1 = 0 ;
51227 PyObject *swig_obj[1] ;
51228
51229 if (!args) SWIG_fail;
51230 swig_obj[0] = args;
51231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBoxSizer, 0 | 0 );
51232 if (!SWIG_IsOK(res1)) {
51233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoxSizer_GetOrientation" "', expected argument " "1"" of type '" "wxBoxSizer *""'");
51234 }
51235 arg1 = reinterpret_cast< wxBoxSizer * >(argp1);
51236 {
51237 PyThreadState* __tstate = wxPyBeginAllowThreads();
51238 result = (int)(arg1)->GetOrientation();
51239 wxPyEndAllowThreads(__tstate);
51240 if (PyErr_Occurred()) SWIG_fail;
51241 }
51242 resultobj = SWIG_From_int(static_cast< int >(result));
51243 return resultobj;
51244fail:
51245 return NULL;
51246}
51247
51248
51249SWIGINTERN PyObject *_wrap_BoxSizer_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51250 PyObject *resultobj = 0;
51251 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
51252 int arg2 ;
51253 void *argp1 = 0 ;
51254 int res1 = 0 ;
51255 int val2 ;
51256 int ecode2 = 0 ;
51257 PyObject * obj0 = 0 ;
51258 PyObject * obj1 = 0 ;
51259 char * kwnames[] = {
51260 (char *) "self",(char *) "orient", NULL
51261 };
51262
51263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail;
51264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBoxSizer, 0 | 0 );
51265 if (!SWIG_IsOK(res1)) {
51266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoxSizer_SetOrientation" "', expected argument " "1"" of type '" "wxBoxSizer *""'");
51267 }
51268 arg1 = reinterpret_cast< wxBoxSizer * >(argp1);
51269 ecode2 = SWIG_AsVal_int(obj1, &val2);
51270 if (!SWIG_IsOK(ecode2)) {
51271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoxSizer_SetOrientation" "', expected argument " "2"" of type '" "int""'");
51272 }
51273 arg2 = static_cast< int >(val2);
51274 {
51275 PyThreadState* __tstate = wxPyBeginAllowThreads();
51276 (arg1)->SetOrientation(arg2);
51277 wxPyEndAllowThreads(__tstate);
51278 if (PyErr_Occurred()) SWIG_fail;
51279 }
51280 resultobj = SWIG_Py_Void();
51281 return resultobj;
51282fail:
51283 return NULL;
d55e5bfc
RD
51284}
51285
51286
1bd55598
RD
51287SWIGINTERN PyObject *BoxSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51288 PyObject *obj;
51289 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
51290 SWIG_TypeNewClientData(SWIGTYPE_p_wxBoxSizer, SWIG_NewClientData(obj));
51291 return SWIG_Py_Void();
d55e5bfc
RD
51292}
51293
1bd55598
RD
51294SWIGINTERN PyObject *BoxSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51295 return SWIG_Python_InitShadowInstance(args);
51296}
d55e5bfc 51297
1bd55598
RD
51298SWIGINTERN PyObject *_wrap_new_StaticBoxSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51299 PyObject *resultobj = 0;
51300 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
51301 int arg2 = (int) wxHORIZONTAL ;
51302 wxStaticBoxSizer *result = 0 ;
51303 void *argp1 = 0 ;
51304 int res1 = 0 ;
51305 int val2 ;
51306 int ecode2 = 0 ;
51307 PyObject * obj0 = 0 ;
51308 PyObject * obj1 = 0 ;
51309 char * kwnames[] = {
51310 (char *) "box",(char *) "orient", NULL
51311 };
51312
51313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) SWIG_fail;
51314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
51315 if (!SWIG_IsOK(res1)) {
51316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBoxSizer" "', expected argument " "1"" of type '" "wxStaticBox *""'");
51317 }
51318 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
51319 if (obj1) {
51320 ecode2 = SWIG_AsVal_int(obj1, &val2);
51321 if (!SWIG_IsOK(ecode2)) {
51322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBoxSizer" "', expected argument " "2"" of type '" "int""'");
51323 }
51324 arg2 = static_cast< int >(val2);
51325 }
51326 {
51327 PyThreadState* __tstate = wxPyBeginAllowThreads();
51328 result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2);
51329 wxPyEndAllowThreads(__tstate);
51330 if (PyErr_Occurred()) SWIG_fail;
51331 }
51332 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBoxSizer, SWIG_POINTER_NEW | 0 );
51333 return resultobj;
51334fail:
51335 return NULL;
d55e5bfc
RD
51336}
51337
51338
1bd55598
RD
51339SWIGINTERN PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51340 PyObject *resultobj = 0;
51341 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
51342 wxStaticBox *result = 0 ;
51343 void *argp1 = 0 ;
51344 int res1 = 0 ;
51345 PyObject *swig_obj[1] ;
51346
51347 if (!args) SWIG_fail;
51348 swig_obj[0] = args;
51349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBoxSizer, 0 | 0 );
51350 if (!SWIG_IsOK(res1)) {
51351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBoxSizer_GetStaticBox" "', expected argument " "1"" of type '" "wxStaticBoxSizer *""'");
51352 }
51353 arg1 = reinterpret_cast< wxStaticBoxSizer * >(argp1);
51354 {
51355 PyThreadState* __tstate = wxPyBeginAllowThreads();
51356 result = (wxStaticBox *)(arg1)->GetStaticBox();
51357 wxPyEndAllowThreads(__tstate);
51358 if (PyErr_Occurred()) SWIG_fail;
51359 }
51360 {
51361 resultobj = wxPyMake_wxObject(result, (bool)0);
51362 }
51363 return resultobj;
51364fail:
51365 return NULL;
51366}
51367
51368
51369SWIGINTERN PyObject *StaticBoxSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51370 PyObject *obj;
51371 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
51372 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBoxSizer, SWIG_NewClientData(obj));
51373 return SWIG_Py_Void();
51374}
51375
51376SWIGINTERN PyObject *StaticBoxSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51377 return SWIG_Python_InitShadowInstance(args);
51378}
51379
51380SWIGINTERN PyObject *_wrap_new_GridSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51381 PyObject *resultobj = 0;
51382 int arg1 = (int) 1 ;
51383 int arg2 = (int) 0 ;
51384 int arg3 = (int) 0 ;
51385 int arg4 = (int) 0 ;
51386 wxGridSizer *result = 0 ;
51387 int val1 ;
51388 int ecode1 = 0 ;
51389 int val2 ;
51390 int ecode2 = 0 ;
51391 int val3 ;
51392 int ecode3 = 0 ;
51393 int val4 ;
51394 int ecode4 = 0 ;
51395 PyObject * obj0 = 0 ;
51396 PyObject * obj1 = 0 ;
51397 PyObject * obj2 = 0 ;
51398 PyObject * obj3 = 0 ;
51399 char * kwnames[] = {
51400 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
51401 };
51402
51403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
51404 if (obj0) {
51405 ecode1 = SWIG_AsVal_int(obj0, &val1);
51406 if (!SWIG_IsOK(ecode1)) {
51407 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GridSizer" "', expected argument " "1"" of type '" "int""'");
51408 }
51409 arg1 = static_cast< int >(val1);
51410 }
51411 if (obj1) {
51412 ecode2 = SWIG_AsVal_int(obj1, &val2);
51413 if (!SWIG_IsOK(ecode2)) {
51414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GridSizer" "', expected argument " "2"" of type '" "int""'");
51415 }
51416 arg2 = static_cast< int >(val2);
51417 }
51418 if (obj2) {
51419 ecode3 = SWIG_AsVal_int(obj2, &val3);
51420 if (!SWIG_IsOK(ecode3)) {
51421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GridSizer" "', expected argument " "3"" of type '" "int""'");
51422 }
51423 arg3 = static_cast< int >(val3);
51424 }
51425 if (obj3) {
51426 ecode4 = SWIG_AsVal_int(obj3, &val4);
51427 if (!SWIG_IsOK(ecode4)) {
51428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GridSizer" "', expected argument " "4"" of type '" "int""'");
51429 }
51430 arg4 = static_cast< int >(val4);
51431 }
51432 {
51433 PyThreadState* __tstate = wxPyBeginAllowThreads();
51434 result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4);
51435 wxPyEndAllowThreads(__tstate);
51436 if (PyErr_Occurred()) SWIG_fail;
51437 }
51438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGridSizer, SWIG_POINTER_NEW | 0 );
51439 return resultobj;
51440fail:
51441 return NULL;
51442}
51443
51444
51445SWIGINTERN PyObject *_wrap_GridSizer_SetCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51446 PyObject *resultobj = 0;
51447 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
51448 int arg2 ;
51449 void *argp1 = 0 ;
51450 int res1 = 0 ;
51451 int val2 ;
51452 int ecode2 = 0 ;
51453 PyObject * obj0 = 0 ;
51454 PyObject * obj1 = 0 ;
51455 char * kwnames[] = {
51456 (char *) "self",(char *) "cols", NULL
51457 };
51458
51459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) SWIG_fail;
51460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
51461 if (!SWIG_IsOK(res1)) {
51462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_SetCols" "', expected argument " "1"" of type '" "wxGridSizer *""'");
51463 }
51464 arg1 = reinterpret_cast< wxGridSizer * >(argp1);
51465 ecode2 = SWIG_AsVal_int(obj1, &val2);
51466 if (!SWIG_IsOK(ecode2)) {
51467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridSizer_SetCols" "', expected argument " "2"" of type '" "int""'");
51468 }
51469 arg2 = static_cast< int >(val2);
51470 {
51471 PyThreadState* __tstate = wxPyBeginAllowThreads();
51472 (arg1)->SetCols(arg2);
51473 wxPyEndAllowThreads(__tstate);
51474 if (PyErr_Occurred()) SWIG_fail;
51475 }
51476 resultobj = SWIG_Py_Void();
51477 return resultobj;
51478fail:
51479 return NULL;
51480}
51481
51482
51483SWIGINTERN PyObject *_wrap_GridSizer_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51484 PyObject *resultobj = 0;
51485 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
51486 int arg2 ;
51487 void *argp1 = 0 ;
51488 int res1 = 0 ;
51489 int val2 ;
51490 int ecode2 = 0 ;
51491 PyObject * obj0 = 0 ;
51492 PyObject * obj1 = 0 ;
51493 char * kwnames[] = {
51494 (char *) "self",(char *) "rows", NULL
51495 };
51496
51497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
51498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
51499 if (!SWIG_IsOK(res1)) {
51500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_SetRows" "', expected argument " "1"" of type '" "wxGridSizer *""'");
51501 }
51502 arg1 = reinterpret_cast< wxGridSizer * >(argp1);
51503 ecode2 = SWIG_AsVal_int(obj1, &val2);
51504 if (!SWIG_IsOK(ecode2)) {
51505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridSizer_SetRows" "', expected argument " "2"" of type '" "int""'");
51506 }
51507 arg2 = static_cast< int >(val2);
51508 {
51509 PyThreadState* __tstate = wxPyBeginAllowThreads();
51510 (arg1)->SetRows(arg2);
51511 wxPyEndAllowThreads(__tstate);
51512 if (PyErr_Occurred()) SWIG_fail;
51513 }
51514 resultobj = SWIG_Py_Void();
51515 return resultobj;
51516fail:
51517 return NULL;
51518}
51519
51520
51521SWIGINTERN PyObject *_wrap_GridSizer_SetVGap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51522 PyObject *resultobj = 0;
51523 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
51524 int arg2 ;
51525 void *argp1 = 0 ;
51526 int res1 = 0 ;
51527 int val2 ;
51528 int ecode2 = 0 ;
51529 PyObject * obj0 = 0 ;
51530 PyObject * obj1 = 0 ;
51531 char * kwnames[] = {
51532 (char *) "self",(char *) "gap", NULL
51533 };
51534
51535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) SWIG_fail;
51536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
51537 if (!SWIG_IsOK(res1)) {
51538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_SetVGap" "', expected argument " "1"" of type '" "wxGridSizer *""'");
51539 }
51540 arg1 = reinterpret_cast< wxGridSizer * >(argp1);
51541 ecode2 = SWIG_AsVal_int(obj1, &val2);
51542 if (!SWIG_IsOK(ecode2)) {
51543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridSizer_SetVGap" "', expected argument " "2"" of type '" "int""'");
51544 }
51545 arg2 = static_cast< int >(val2);
51546 {
51547 PyThreadState* __tstate = wxPyBeginAllowThreads();
51548 (arg1)->SetVGap(arg2);
51549 wxPyEndAllowThreads(__tstate);
51550 if (PyErr_Occurred()) SWIG_fail;
51551 }
51552 resultobj = SWIG_Py_Void();
51553 return resultobj;
51554fail:
51555 return NULL;
51556}
51557
51558
51559SWIGINTERN PyObject *_wrap_GridSizer_SetHGap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51560 PyObject *resultobj = 0;
51561 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
51562 int arg2 ;
51563 void *argp1 = 0 ;
51564 int res1 = 0 ;
51565 int val2 ;
51566 int ecode2 = 0 ;
51567 PyObject * obj0 = 0 ;
51568 PyObject * obj1 = 0 ;
51569 char * kwnames[] = {
51570 (char *) "self",(char *) "gap", NULL
51571 };
51572
51573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) SWIG_fail;
51574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
51575 if (!SWIG_IsOK(res1)) {
51576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_SetHGap" "', expected argument " "1"" of type '" "wxGridSizer *""'");
51577 }
51578 arg1 = reinterpret_cast< wxGridSizer * >(argp1);
51579 ecode2 = SWIG_AsVal_int(obj1, &val2);
51580 if (!SWIG_IsOK(ecode2)) {
51581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridSizer_SetHGap" "', expected argument " "2"" of type '" "int""'");
51582 }
51583 arg2 = static_cast< int >(val2);
51584 {
51585 PyThreadState* __tstate = wxPyBeginAllowThreads();
51586 (arg1)->SetHGap(arg2);
51587 wxPyEndAllowThreads(__tstate);
51588 if (PyErr_Occurred()) SWIG_fail;
51589 }
51590 resultobj = SWIG_Py_Void();
51591 return resultobj;
51592fail:
51593 return NULL;
d55e5bfc
RD
51594}
51595
51596
1bd55598
RD
51597SWIGINTERN PyObject *_wrap_GridSizer_GetCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51598 PyObject *resultobj = 0;
51599 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
51600 int result;
51601 void *argp1 = 0 ;
51602 int res1 = 0 ;
51603 PyObject *swig_obj[1] ;
51604
51605 if (!args) SWIG_fail;
51606 swig_obj[0] = args;
51607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
51608 if (!SWIG_IsOK(res1)) {
51609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_GetCols" "', expected argument " "1"" of type '" "wxGridSizer *""'");
51610 }
51611 arg1 = reinterpret_cast< wxGridSizer * >(argp1);
51612 {
51613 PyThreadState* __tstate = wxPyBeginAllowThreads();
51614 result = (int)(arg1)->GetCols();
51615 wxPyEndAllowThreads(__tstate);
51616 if (PyErr_Occurred()) SWIG_fail;
51617 }
51618 resultobj = SWIG_From_int(static_cast< int >(result));
51619 return resultobj;
51620fail:
51621 return NULL;
d55e5bfc
RD
51622}
51623
51624
1bd55598
RD
51625SWIGINTERN PyObject *_wrap_GridSizer_GetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51626 PyObject *resultobj = 0;
51627 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
51628 int result;
51629 void *argp1 = 0 ;
51630 int res1 = 0 ;
51631 PyObject *swig_obj[1] ;
51632
51633 if (!args) SWIG_fail;
51634 swig_obj[0] = args;
51635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
51636 if (!SWIG_IsOK(res1)) {
51637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_GetRows" "', expected argument " "1"" of type '" "wxGridSizer *""'");
51638 }
51639 arg1 = reinterpret_cast< wxGridSizer * >(argp1);
51640 {
51641 PyThreadState* __tstate = wxPyBeginAllowThreads();
51642 result = (int)(arg1)->GetRows();
51643 wxPyEndAllowThreads(__tstate);
51644 if (PyErr_Occurred()) SWIG_fail;
51645 }
51646 resultobj = SWIG_From_int(static_cast< int >(result));
51647 return resultobj;
51648fail:
51649 return NULL;
d55e5bfc
RD
51650}
51651
51652
1bd55598
RD
51653SWIGINTERN PyObject *_wrap_GridSizer_GetVGap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51654 PyObject *resultobj = 0;
51655 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
51656 int result;
51657 void *argp1 = 0 ;
51658 int res1 = 0 ;
51659 PyObject *swig_obj[1] ;
51660
51661 if (!args) SWIG_fail;
51662 swig_obj[0] = args;
51663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
51664 if (!SWIG_IsOK(res1)) {
51665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_GetVGap" "', expected argument " "1"" of type '" "wxGridSizer *""'");
51666 }
51667 arg1 = reinterpret_cast< wxGridSizer * >(argp1);
51668 {
51669 PyThreadState* __tstate = wxPyBeginAllowThreads();
51670 result = (int)(arg1)->GetVGap();
51671 wxPyEndAllowThreads(__tstate);
51672 if (PyErr_Occurred()) SWIG_fail;
51673 }
51674 resultobj = SWIG_From_int(static_cast< int >(result));
51675 return resultobj;
51676fail:
51677 return NULL;
908b74cd
RD
51678}
51679
51680
1bd55598
RD
51681SWIGINTERN PyObject *_wrap_GridSizer_GetHGap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51682 PyObject *resultobj = 0;
51683 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
51684 int result;
51685 void *argp1 = 0 ;
51686 int res1 = 0 ;
51687 PyObject *swig_obj[1] ;
51688
51689 if (!args) SWIG_fail;
51690 swig_obj[0] = args;
51691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
51692 if (!SWIG_IsOK(res1)) {
51693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_GetHGap" "', expected argument " "1"" of type '" "wxGridSizer *""'");
51694 }
51695 arg1 = reinterpret_cast< wxGridSizer * >(argp1);
51696 {
51697 PyThreadState* __tstate = wxPyBeginAllowThreads();
51698 result = (int)(arg1)->GetHGap();
51699 wxPyEndAllowThreads(__tstate);
51700 if (PyErr_Occurred()) SWIG_fail;
51701 }
51702 resultobj = SWIG_From_int(static_cast< int >(result));
51703 return resultobj;
51704fail:
51705 return NULL;
51706}
51707
51708
51709SWIGINTERN PyObject *GridSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51710 PyObject *obj;
51711 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
51712 SWIG_TypeNewClientData(SWIGTYPE_p_wxGridSizer, SWIG_NewClientData(obj));
51713 return SWIG_Py_Void();
51714}
51715
51716SWIGINTERN PyObject *GridSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51717 return SWIG_Python_InitShadowInstance(args);
51718}
51719
51720SWIGINTERN PyObject *_wrap_new_FlexGridSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51721 PyObject *resultobj = 0;
51722 int arg1 = (int) 1 ;
51723 int arg2 = (int) 0 ;
51724 int arg3 = (int) 0 ;
51725 int arg4 = (int) 0 ;
51726 wxFlexGridSizer *result = 0 ;
51727 int val1 ;
51728 int ecode1 = 0 ;
51729 int val2 ;
51730 int ecode2 = 0 ;
51731 int val3 ;
51732 int ecode3 = 0 ;
51733 int val4 ;
51734 int ecode4 = 0 ;
51735 PyObject * obj0 = 0 ;
51736 PyObject * obj1 = 0 ;
51737 PyObject * obj2 = 0 ;
51738 PyObject * obj3 = 0 ;
51739 char * kwnames[] = {
51740 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
51741 };
51742
51743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
51744 if (obj0) {
51745 ecode1 = SWIG_AsVal_int(obj0, &val1);
51746 if (!SWIG_IsOK(ecode1)) {
51747 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FlexGridSizer" "', expected argument " "1"" of type '" "int""'");
51748 }
51749 arg1 = static_cast< int >(val1);
51750 }
51751 if (obj1) {
51752 ecode2 = SWIG_AsVal_int(obj1, &val2);
51753 if (!SWIG_IsOK(ecode2)) {
51754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FlexGridSizer" "', expected argument " "2"" of type '" "int""'");
51755 }
51756 arg2 = static_cast< int >(val2);
51757 }
51758 if (obj2) {
51759 ecode3 = SWIG_AsVal_int(obj2, &val3);
51760 if (!SWIG_IsOK(ecode3)) {
51761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FlexGridSizer" "', expected argument " "3"" of type '" "int""'");
51762 }
51763 arg3 = static_cast< int >(val3);
51764 }
51765 if (obj3) {
51766 ecode4 = SWIG_AsVal_int(obj3, &val4);
51767 if (!SWIG_IsOK(ecode4)) {
51768 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FlexGridSizer" "', expected argument " "4"" of type '" "int""'");
51769 }
51770 arg4 = static_cast< int >(val4);
51771 }
51772 {
51773 PyThreadState* __tstate = wxPyBeginAllowThreads();
51774 result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4);
51775 wxPyEndAllowThreads(__tstate);
51776 if (PyErr_Occurred()) SWIG_fail;
51777 }
51778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_NEW | 0 );
51779 return resultobj;
51780fail:
51781 return NULL;
51782}
51783
51784
51785SWIGINTERN PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51786 PyObject *resultobj = 0;
51787 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
51788 size_t arg2 ;
51789 int arg3 = (int) 0 ;
51790 void *argp1 = 0 ;
51791 int res1 = 0 ;
51792 size_t val2 ;
51793 int ecode2 = 0 ;
51794 int val3 ;
51795 int ecode3 = 0 ;
51796 PyObject * obj0 = 0 ;
51797 PyObject * obj1 = 0 ;
51798 PyObject * obj2 = 0 ;
51799 char * kwnames[] = {
51800 (char *) "self",(char *) "idx",(char *) "proportion", NULL
51801 };
51802
51803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
51804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
51805 if (!SWIG_IsOK(res1)) {
51806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_AddGrowableRow" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
51807 }
51808 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
51809 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51810 if (!SWIG_IsOK(ecode2)) {
51811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_AddGrowableRow" "', expected argument " "2"" of type '" "size_t""'");
51812 }
51813 arg2 = static_cast< size_t >(val2);
51814 if (obj2) {
51815 ecode3 = SWIG_AsVal_int(obj2, &val3);
51816 if (!SWIG_IsOK(ecode3)) {
51817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FlexGridSizer_AddGrowableRow" "', expected argument " "3"" of type '" "int""'");
51818 }
51819 arg3 = static_cast< int >(val3);
51820 }
51821 {
51822 PyThreadState* __tstate = wxPyBeginAllowThreads();
51823 (arg1)->AddGrowableRow(arg2,arg3);
51824 wxPyEndAllowThreads(__tstate);
51825 if (PyErr_Occurred()) SWIG_fail;
51826 }
51827 resultobj = SWIG_Py_Void();
51828 return resultobj;
51829fail:
51830 return NULL;
51831}
51832
51833
51834SWIGINTERN PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51835 PyObject *resultobj = 0;
51836 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
51837 size_t arg2 ;
51838 void *argp1 = 0 ;
51839 int res1 = 0 ;
51840 size_t val2 ;
51841 int ecode2 = 0 ;
51842 PyObject * obj0 = 0 ;
51843 PyObject * obj1 = 0 ;
51844 char * kwnames[] = {
51845 (char *) "self",(char *) "idx", NULL
51846 };
51847
51848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) SWIG_fail;
51849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
51850 if (!SWIG_IsOK(res1)) {
51851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_RemoveGrowableRow" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
51852 }
51853 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
51854 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51855 if (!SWIG_IsOK(ecode2)) {
51856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_RemoveGrowableRow" "', expected argument " "2"" of type '" "size_t""'");
51857 }
51858 arg2 = static_cast< size_t >(val2);
51859 {
51860 PyThreadState* __tstate = wxPyBeginAllowThreads();
51861 (arg1)->RemoveGrowableRow(arg2);
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_AddGrowableCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51873 PyObject *resultobj = 0;
51874 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
51875 size_t arg2 ;
51876 int arg3 = (int) 0 ;
51877 void *argp1 = 0 ;
51878 int res1 = 0 ;
51879 size_t val2 ;
51880 int ecode2 = 0 ;
51881 int val3 ;
51882 int ecode3 = 0 ;
51883 PyObject * obj0 = 0 ;
51884 PyObject * obj1 = 0 ;
51885 PyObject * obj2 = 0 ;
51886 char * kwnames[] = {
51887 (char *) "self",(char *) "idx",(char *) "proportion", NULL
51888 };
51889
51890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
51891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
51892 if (!SWIG_IsOK(res1)) {
51893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_AddGrowableCol" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
51894 }
51895 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
51896 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51897 if (!SWIG_IsOK(ecode2)) {
51898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_AddGrowableCol" "', expected argument " "2"" of type '" "size_t""'");
51899 }
51900 arg2 = static_cast< size_t >(val2);
51901 if (obj2) {
51902 ecode3 = SWIG_AsVal_int(obj2, &val3);
51903 if (!SWIG_IsOK(ecode3)) {
51904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FlexGridSizer_AddGrowableCol" "', expected argument " "3"" of type '" "int""'");
51905 }
51906 arg3 = static_cast< int >(val3);
51907 }
51908 {
51909 PyThreadState* __tstate = wxPyBeginAllowThreads();
51910 (arg1)->AddGrowableCol(arg2,arg3);
51911 wxPyEndAllowThreads(__tstate);
51912 if (PyErr_Occurred()) SWIG_fail;
51913 }
51914 resultobj = SWIG_Py_Void();
51915 return resultobj;
51916fail:
51917 return NULL;
51918}
51919
51920
51921SWIGINTERN PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51922 PyObject *resultobj = 0;
51923 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
51924 size_t arg2 ;
51925 void *argp1 = 0 ;
51926 int res1 = 0 ;
51927 size_t val2 ;
51928 int ecode2 = 0 ;
51929 PyObject * obj0 = 0 ;
51930 PyObject * obj1 = 0 ;
51931 char * kwnames[] = {
51932 (char *) "self",(char *) "idx", NULL
51933 };
51934
51935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) SWIG_fail;
51936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
51937 if (!SWIG_IsOK(res1)) {
51938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_RemoveGrowableCol" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
51939 }
51940 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
51941 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
51942 if (!SWIG_IsOK(ecode2)) {
51943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_RemoveGrowableCol" "', expected argument " "2"" of type '" "size_t""'");
51944 }
51945 arg2 = static_cast< size_t >(val2);
51946 {
51947 PyThreadState* __tstate = wxPyBeginAllowThreads();
51948 (arg1)->RemoveGrowableCol(arg2);
51949 wxPyEndAllowThreads(__tstate);
51950 if (PyErr_Occurred()) SWIG_fail;
51951 }
51952 resultobj = SWIG_Py_Void();
51953 return resultobj;
51954fail:
51955 return NULL;
51956}
51957
51958
51959SWIGINTERN PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
51960 PyObject *resultobj = 0;
51961 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
51962 int arg2 ;
51963 void *argp1 = 0 ;
51964 int res1 = 0 ;
51965 int val2 ;
51966 int ecode2 = 0 ;
51967 PyObject * obj0 = 0 ;
51968 PyObject * obj1 = 0 ;
51969 char * kwnames[] = {
51970 (char *) "self",(char *) "direction", NULL
51971 };
51972
51973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) SWIG_fail;
51974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
51975 if (!SWIG_IsOK(res1)) {
51976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_SetFlexibleDirection" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
51977 }
51978 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
51979 ecode2 = SWIG_AsVal_int(obj1, &val2);
51980 if (!SWIG_IsOK(ecode2)) {
51981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_SetFlexibleDirection" "', expected argument " "2"" of type '" "int""'");
51982 }
51983 arg2 = static_cast< int >(val2);
51984 {
51985 PyThreadState* __tstate = wxPyBeginAllowThreads();
51986 (arg1)->SetFlexibleDirection(arg2);
51987 wxPyEndAllowThreads(__tstate);
51988 if (PyErr_Occurred()) SWIG_fail;
51989 }
51990 resultobj = SWIG_Py_Void();
51991 return resultobj;
51992fail:
51993 return NULL;
908b74cd
RD
51994}
51995
51996
1bd55598
RD
51997SWIGINTERN PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
51998 PyObject *resultobj = 0;
51999 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
52000 int result;
52001 void *argp1 = 0 ;
52002 int res1 = 0 ;
52003 PyObject *swig_obj[1] ;
52004
52005 if (!args) SWIG_fail;
52006 swig_obj[0] = args;
52007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
52008 if (!SWIG_IsOK(res1)) {
52009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_GetFlexibleDirection" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
52010 }
52011 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
52012 {
52013 PyThreadState* __tstate = wxPyBeginAllowThreads();
52014 result = (int)(arg1)->GetFlexibleDirection();
52015 wxPyEndAllowThreads(__tstate);
52016 if (PyErr_Occurred()) SWIG_fail;
52017 }
52018 resultobj = SWIG_From_int(static_cast< int >(result));
52019 return resultobj;
52020fail:
52021 return NULL;
52022}
52023
52024
52025SWIGINTERN PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52026 PyObject *resultobj = 0;
52027 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
52028 wxFlexSizerGrowMode arg2 ;
52029 void *argp1 = 0 ;
52030 int res1 = 0 ;
52031 int val2 ;
52032 int ecode2 = 0 ;
52033 PyObject * obj0 = 0 ;
52034 PyObject * obj1 = 0 ;
52035 char * kwnames[] = {
52036 (char *) "self",(char *) "mode", NULL
52037 };
52038
52039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) SWIG_fail;
52040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
52041 if (!SWIG_IsOK(res1)) {
52042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_SetNonFlexibleGrowMode" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
52043 }
52044 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
52045 ecode2 = SWIG_AsVal_int(obj1, &val2);
52046 if (!SWIG_IsOK(ecode2)) {
52047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_SetNonFlexibleGrowMode" "', expected argument " "2"" of type '" "wxFlexSizerGrowMode""'");
52048 }
52049 arg2 = static_cast< wxFlexSizerGrowMode >(val2);
52050 {
52051 PyThreadState* __tstate = wxPyBeginAllowThreads();
52052 (arg1)->SetNonFlexibleGrowMode(arg2);
52053 wxPyEndAllowThreads(__tstate);
52054 if (PyErr_Occurred()) SWIG_fail;
52055 }
52056 resultobj = SWIG_Py_Void();
52057 return resultobj;
52058fail:
52059 return NULL;
d55e5bfc
RD
52060}
52061
52062
1bd55598
RD
52063SWIGINTERN PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52064 PyObject *resultobj = 0;
52065 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
52066 wxFlexSizerGrowMode result;
52067 void *argp1 = 0 ;
52068 int res1 = 0 ;
52069 PyObject *swig_obj[1] ;
52070
52071 if (!args) SWIG_fail;
52072 swig_obj[0] = args;
52073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
52074 if (!SWIG_IsOK(res1)) {
52075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_GetNonFlexibleGrowMode" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
52076 }
52077 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
52078 {
52079 PyThreadState* __tstate = wxPyBeginAllowThreads();
52080 result = (wxFlexSizerGrowMode)(arg1)->GetNonFlexibleGrowMode();
52081 wxPyEndAllowThreads(__tstate);
52082 if (PyErr_Occurred()) SWIG_fail;
52083 }
52084 resultobj = SWIG_From_int(static_cast< int >(result));
52085 return resultobj;
52086fail:
52087 return NULL;
d55e5bfc
RD
52088}
52089
52090
1bd55598
RD
52091SWIGINTERN PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52092 PyObject *resultobj = 0;
52093 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
52094 wxArrayInt *result = 0 ;
52095 void *argp1 = 0 ;
52096 int res1 = 0 ;
52097 PyObject *swig_obj[1] ;
52098
52099 if (!args) SWIG_fail;
52100 swig_obj[0] = args;
52101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
52102 if (!SWIG_IsOK(res1)) {
52103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_GetRowHeights" "', expected argument " "1"" of type '" "wxFlexGridSizer const *""'");
52104 }
52105 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
52106 {
52107 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 52108 {
1bd55598
RD
52109 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights();
52110 result = (wxArrayInt *) &_result_ref;
d55e5bfc 52111 }
1bd55598
RD
52112 wxPyEndAllowThreads(__tstate);
52113 if (PyErr_Occurred()) SWIG_fail;
52114 }
52115 {
b39fe951 52116 resultobj = wxArrayInt2PyList_helper(*result);
1bd55598
RD
52117 }
52118 return resultobj;
52119fail:
52120 return NULL;
d55e5bfc
RD
52121}
52122
52123
1bd55598
RD
52124SWIGINTERN PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52125 PyObject *resultobj = 0;
52126 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
52127 wxArrayInt *result = 0 ;
52128 void *argp1 = 0 ;
52129 int res1 = 0 ;
52130 PyObject *swig_obj[1] ;
52131
52132 if (!args) SWIG_fail;
52133 swig_obj[0] = args;
52134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
52135 if (!SWIG_IsOK(res1)) {
52136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_GetColWidths" "', expected argument " "1"" of type '" "wxFlexGridSizer const *""'");
52137 }
52138 arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
52139 {
52140 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 52141 {
1bd55598
RD
52142 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths();
52143 result = (wxArrayInt *) &_result_ref;
d55e5bfc 52144 }
1bd55598
RD
52145 wxPyEndAllowThreads(__tstate);
52146 if (PyErr_Occurred()) SWIG_fail;
52147 }
52148 {
b39fe951 52149 resultobj = wxArrayInt2PyList_helper(*result);
1bd55598
RD
52150 }
52151 return resultobj;
52152fail:
52153 return NULL;
d55e5bfc
RD
52154}
52155
52156
1bd55598
RD
52157SWIGINTERN PyObject *FlexGridSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52158 PyObject *obj;
52159 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
52160 SWIG_TypeNewClientData(SWIGTYPE_p_wxFlexGridSizer, SWIG_NewClientData(obj));
52161 return SWIG_Py_Void();
d55e5bfc
RD
52162}
52163
1bd55598
RD
52164SWIGINTERN PyObject *FlexGridSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52165 return SWIG_Python_InitShadowInstance(args);
52166}
d55e5bfc 52167
1bd55598
RD
52168SWIGINTERN PyObject *_wrap_new_StdDialogButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52169 PyObject *resultobj = 0;
52170 wxStdDialogButtonSizer *result = 0 ;
52171
52172 if (!SWIG_Python_UnpackTuple(args,"new_StdDialogButtonSizer",0,0,0)) SWIG_fail;
52173 {
52174 PyThreadState* __tstate = wxPyBeginAllowThreads();
52175 result = (wxStdDialogButtonSizer *)new wxStdDialogButtonSizer();
52176 wxPyEndAllowThreads(__tstate);
52177 if (PyErr_Occurred()) SWIG_fail;
52178 }
52179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_NEW | 0 );
52180 return resultobj;
52181fail:
52182 return NULL;
52183}
52184
52185
52186SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_AddButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52187 PyObject *resultobj = 0;
52188 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52189 wxButton *arg2 = (wxButton *) 0 ;
52190 void *argp1 = 0 ;
52191 int res1 = 0 ;
52192 void *argp2 = 0 ;
52193 int res2 = 0 ;
52194 PyObject * obj0 = 0 ;
52195 PyObject * obj1 = 0 ;
52196 char * kwnames[] = {
52197 (char *) "self",(char *) "button", NULL
52198 };
52199
52200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_AddButton",kwnames,&obj0,&obj1)) SWIG_fail;
52201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52202 if (!SWIG_IsOK(res1)) {
52203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_AddButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer *""'");
52204 }
52205 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxButton, 0 | 0 );
52207 if (!SWIG_IsOK(res2)) {
52208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StdDialogButtonSizer_AddButton" "', expected argument " "2"" of type '" "wxButton *""'");
52209 }
52210 arg2 = reinterpret_cast< wxButton * >(argp2);
52211 {
52212 PyThreadState* __tstate = wxPyBeginAllowThreads();
52213 (arg1)->AddButton(arg2);
52214 wxPyEndAllowThreads(__tstate);
52215 if (PyErr_Occurred()) SWIG_fail;
52216 }
52217 resultobj = SWIG_Py_Void();
52218 return resultobj;
52219fail:
52220 return NULL;
d55e5bfc
RD
52221}
52222
52223
1bd55598
RD
52224SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52225 PyObject *resultobj = 0;
52226 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52227 void *argp1 = 0 ;
52228 int res1 = 0 ;
52229 PyObject *swig_obj[1] ;
52230
52231 if (!args) SWIG_fail;
52232 swig_obj[0] = args;
52233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52234 if (!SWIG_IsOK(res1)) {
52235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_Realize" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer *""'");
52236 }
52237 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52238 {
52239 PyThreadState* __tstate = wxPyBeginAllowThreads();
52240 (arg1)->Realize();
52241 wxPyEndAllowThreads(__tstate);
52242 if (PyErr_Occurred()) SWIG_fail;
52243 }
52244 resultobj = SWIG_Py_Void();
52245 return resultobj;
52246fail:
52247 return NULL;
52248}
52249
52250
52251SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_SetAffirmativeButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52252 PyObject *resultobj = 0;
52253 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52254 wxButton *arg2 = (wxButton *) 0 ;
52255 void *argp1 = 0 ;
52256 int res1 = 0 ;
52257 void *argp2 = 0 ;
52258 int res2 = 0 ;
52259 PyObject * obj0 = 0 ;
52260 PyObject * obj1 = 0 ;
52261 char * kwnames[] = {
52262 (char *) "self",(char *) "button", NULL
52263 };
52264
52265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetAffirmativeButton",kwnames,&obj0,&obj1)) SWIG_fail;
52266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52267 if (!SWIG_IsOK(res1)) {
52268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_SetAffirmativeButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer *""'");
52269 }
52270 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52271 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxButton, 0 | 0 );
52272 if (!SWIG_IsOK(res2)) {
52273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StdDialogButtonSizer_SetAffirmativeButton" "', expected argument " "2"" of type '" "wxButton *""'");
52274 }
52275 arg2 = reinterpret_cast< wxButton * >(argp2);
52276 {
52277 PyThreadState* __tstate = wxPyBeginAllowThreads();
52278 (arg1)->SetAffirmativeButton(arg2);
52279 wxPyEndAllowThreads(__tstate);
52280 if (PyErr_Occurred()) SWIG_fail;
52281 }
52282 resultobj = SWIG_Py_Void();
52283 return resultobj;
52284fail:
52285 return NULL;
52286}
52287
52288
52289SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_SetNegativeButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52290 PyObject *resultobj = 0;
52291 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52292 wxButton *arg2 = (wxButton *) 0 ;
52293 void *argp1 = 0 ;
52294 int res1 = 0 ;
52295 void *argp2 = 0 ;
52296 int res2 = 0 ;
52297 PyObject * obj0 = 0 ;
52298 PyObject * obj1 = 0 ;
52299 char * kwnames[] = {
52300 (char *) "self",(char *) "button", NULL
52301 };
52302
52303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetNegativeButton",kwnames,&obj0,&obj1)) SWIG_fail;
52304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52305 if (!SWIG_IsOK(res1)) {
52306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_SetNegativeButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer *""'");
52307 }
52308 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxButton, 0 | 0 );
52310 if (!SWIG_IsOK(res2)) {
52311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StdDialogButtonSizer_SetNegativeButton" "', expected argument " "2"" of type '" "wxButton *""'");
52312 }
52313 arg2 = reinterpret_cast< wxButton * >(argp2);
52314 {
52315 PyThreadState* __tstate = wxPyBeginAllowThreads();
52316 (arg1)->SetNegativeButton(arg2);
52317 wxPyEndAllowThreads(__tstate);
52318 if (PyErr_Occurred()) SWIG_fail;
52319 }
52320 resultobj = SWIG_Py_Void();
52321 return resultobj;
52322fail:
52323 return NULL;
52324}
52325
52326
52327SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_SetCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52328 PyObject *resultobj = 0;
52329 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52330 wxButton *arg2 = (wxButton *) 0 ;
52331 void *argp1 = 0 ;
52332 int res1 = 0 ;
52333 void *argp2 = 0 ;
52334 int res2 = 0 ;
52335 PyObject * obj0 = 0 ;
52336 PyObject * obj1 = 0 ;
52337 char * kwnames[] = {
52338 (char *) "self",(char *) "button", NULL
52339 };
52340
52341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetCancelButton",kwnames,&obj0,&obj1)) SWIG_fail;
52342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52343 if (!SWIG_IsOK(res1)) {
52344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_SetCancelButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer *""'");
52345 }
52346 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52347 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxButton, 0 | 0 );
52348 if (!SWIG_IsOK(res2)) {
52349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StdDialogButtonSizer_SetCancelButton" "', expected argument " "2"" of type '" "wxButton *""'");
52350 }
52351 arg2 = reinterpret_cast< wxButton * >(argp2);
52352 {
52353 PyThreadState* __tstate = wxPyBeginAllowThreads();
52354 (arg1)->SetCancelButton(arg2);
52355 wxPyEndAllowThreads(__tstate);
52356 if (PyErr_Occurred()) SWIG_fail;
52357 }
52358 resultobj = SWIG_Py_Void();
52359 return resultobj;
52360fail:
52361 return NULL;
d55e5bfc
RD
52362}
52363
52364
1bd55598
RD
52365SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_GetAffirmativeButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52366 PyObject *resultobj = 0;
52367 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52368 wxButton *result = 0 ;
52369 void *argp1 = 0 ;
52370 int res1 = 0 ;
52371 PyObject *swig_obj[1] ;
52372
52373 if (!args) SWIG_fail;
52374 swig_obj[0] = args;
52375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52376 if (!SWIG_IsOK(res1)) {
52377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_GetAffirmativeButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer const *""'");
52378 }
52379 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52380 {
52381 PyThreadState* __tstate = wxPyBeginAllowThreads();
52382 result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetAffirmativeButton();
52383 wxPyEndAllowThreads(__tstate);
52384 if (PyErr_Occurred()) SWIG_fail;
52385 }
52386 {
52387 resultobj = wxPyMake_wxObject(result, (bool)0);
52388 }
52389 return resultobj;
52390fail:
52391 return NULL;
d55e5bfc
RD
52392}
52393
52394
1bd55598
RD
52395SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_GetApplyButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52396 PyObject *resultobj = 0;
52397 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52398 wxButton *result = 0 ;
52399 void *argp1 = 0 ;
52400 int res1 = 0 ;
52401 PyObject *swig_obj[1] ;
52402
52403 if (!args) SWIG_fail;
52404 swig_obj[0] = args;
52405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52406 if (!SWIG_IsOK(res1)) {
52407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_GetApplyButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer const *""'");
52408 }
52409 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52410 {
52411 PyThreadState* __tstate = wxPyBeginAllowThreads();
52412 result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetApplyButton();
52413 wxPyEndAllowThreads(__tstate);
52414 if (PyErr_Occurred()) SWIG_fail;
52415 }
52416 {
52417 resultobj = wxPyMake_wxObject(result, (bool)0);
52418 }
52419 return resultobj;
52420fail:
52421 return NULL;
d55e5bfc
RD
52422}
52423
52424
1bd55598
RD
52425SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_GetNegativeButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52426 PyObject *resultobj = 0;
52427 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52428 wxButton *result = 0 ;
52429 void *argp1 = 0 ;
52430 int res1 = 0 ;
52431 PyObject *swig_obj[1] ;
52432
52433 if (!args) SWIG_fail;
52434 swig_obj[0] = args;
52435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52436 if (!SWIG_IsOK(res1)) {
52437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_GetNegativeButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer const *""'");
52438 }
52439 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52440 {
52441 PyThreadState* __tstate = wxPyBeginAllowThreads();
52442 result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetNegativeButton();
52443 wxPyEndAllowThreads(__tstate);
52444 if (PyErr_Occurred()) SWIG_fail;
52445 }
52446 {
52447 resultobj = wxPyMake_wxObject(result, (bool)0);
52448 }
52449 return resultobj;
52450fail:
52451 return NULL;
d55e5bfc
RD
52452}
52453
52454
1bd55598
RD
52455SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_GetCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52456 PyObject *resultobj = 0;
52457 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52458 wxButton *result = 0 ;
52459 void *argp1 = 0 ;
52460 int res1 = 0 ;
52461 PyObject *swig_obj[1] ;
52462
52463 if (!args) SWIG_fail;
52464 swig_obj[0] = args;
52465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52466 if (!SWIG_IsOK(res1)) {
52467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_GetCancelButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer const *""'");
52468 }
52469 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52470 {
52471 PyThreadState* __tstate = wxPyBeginAllowThreads();
52472 result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetCancelButton();
52473 wxPyEndAllowThreads(__tstate);
52474 if (PyErr_Occurred()) SWIG_fail;
52475 }
52476 {
52477 resultobj = wxPyMake_wxObject(result, (bool)0);
52478 }
52479 return resultobj;
52480fail:
52481 return NULL;
d55e5bfc
RD
52482}
52483
52484
1bd55598
RD
52485SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_GetHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52486 PyObject *resultobj = 0;
52487 wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
52488 wxButton *result = 0 ;
52489 void *argp1 = 0 ;
52490 int res1 = 0 ;
52491 PyObject *swig_obj[1] ;
52492
52493 if (!args) SWIG_fail;
52494 swig_obj[0] = args;
52495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
52496 if (!SWIG_IsOK(res1)) {
52497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_GetHelpButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer const *""'");
52498 }
52499 arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
52500 {
52501 PyThreadState* __tstate = wxPyBeginAllowThreads();
52502 result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetHelpButton();
52503 wxPyEndAllowThreads(__tstate);
52504 if (PyErr_Occurred()) SWIG_fail;
52505 }
52506 {
52507 resultobj = wxPyMake_wxObject(result, (bool)0);
52508 }
52509 return resultobj;
52510fail:
52511 return NULL;
d55e5bfc
RD
52512}
52513
52514
1bd55598
RD
52515SWIGINTERN PyObject *StdDialogButtonSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52516 PyObject *obj;
52517 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
52518 SWIG_TypeNewClientData(SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_NewClientData(obj));
52519 return SWIG_Py_Void();
d55e5bfc
RD
52520}
52521
1bd55598
RD
52522SWIGINTERN PyObject *StdDialogButtonSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52523 return SWIG_Python_InitShadowInstance(args);
52524}
d55e5bfc 52525
1bd55598
RD
52526SWIGINTERN PyObject *_wrap_new_GBPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52527 PyObject *resultobj = 0;
52528 int arg1 = (int) 0 ;
52529 int arg2 = (int) 0 ;
52530 wxGBPosition *result = 0 ;
52531 int val1 ;
52532 int ecode1 = 0 ;
52533 int val2 ;
52534 int ecode2 = 0 ;
52535 PyObject * obj0 = 0 ;
52536 PyObject * obj1 = 0 ;
52537 char * kwnames[] = {
52538 (char *) "row",(char *) "col", NULL
52539 };
52540
52541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) SWIG_fail;
52542 if (obj0) {
52543 ecode1 = SWIG_AsVal_int(obj0, &val1);
52544 if (!SWIG_IsOK(ecode1)) {
52545 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GBPosition" "', expected argument " "1"" of type '" "int""'");
52546 }
52547 arg1 = static_cast< int >(val1);
52548 }
52549 if (obj1) {
52550 ecode2 = SWIG_AsVal_int(obj1, &val2);
52551 if (!SWIG_IsOK(ecode2)) {
52552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GBPosition" "', expected argument " "2"" of type '" "int""'");
52553 }
52554 arg2 = static_cast< int >(val2);
52555 }
52556 {
52557 PyThreadState* __tstate = wxPyBeginAllowThreads();
52558 result = (wxGBPosition *)new wxGBPosition(arg1,arg2);
52559 wxPyEndAllowThreads(__tstate);
52560 if (PyErr_Occurred()) SWIG_fail;
52561 }
52562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_NEW | 0 );
52563 return resultobj;
52564fail:
52565 return NULL;
d55e5bfc
RD
52566}
52567
52568
1bd55598
RD
52569SWIGINTERN PyObject *_wrap_delete_GBPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52570 PyObject *resultobj = 0;
52571 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
52572 void *argp1 = 0 ;
52573 int res1 = 0 ;
52574 PyObject *swig_obj[1] ;
52575
52576 if (!args) SWIG_fail;
52577 swig_obj[0] = args;
52578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBPosition, SWIG_POINTER_DISOWN | 0 );
52579 if (!SWIG_IsOK(res1)) {
52580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GBPosition" "', expected argument " "1"" of type '" "wxGBPosition *""'");
52581 }
52582 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
52583 {
52584 PyThreadState* __tstate = wxPyBeginAllowThreads();
52585 delete arg1;
d55e5bfc 52586
1bd55598
RD
52587 wxPyEndAllowThreads(__tstate);
52588 if (PyErr_Occurred()) SWIG_fail;
52589 }
52590 resultobj = SWIG_Py_Void();
52591 return resultobj;
52592fail:
52593 return NULL;
d55e5bfc
RD
52594}
52595
52596
1bd55598
RD
52597SWIGINTERN PyObject *_wrap_GBPosition_GetRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52598 PyObject *resultobj = 0;
52599 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
52600 int result;
52601 void *argp1 = 0 ;
52602 int res1 = 0 ;
52603 PyObject *swig_obj[1] ;
52604
52605 if (!args) SWIG_fail;
52606 swig_obj[0] = args;
52607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
52608 if (!SWIG_IsOK(res1)) {
52609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_GetRow" "', expected argument " "1"" of type '" "wxGBPosition const *""'");
52610 }
52611 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
52612 {
52613 PyThreadState* __tstate = wxPyBeginAllowThreads();
52614 result = (int)((wxGBPosition const *)arg1)->GetRow();
52615 wxPyEndAllowThreads(__tstate);
52616 if (PyErr_Occurred()) SWIG_fail;
52617 }
52618 resultobj = SWIG_From_int(static_cast< int >(result));
52619 return resultobj;
52620fail:
52621 return NULL;
d55e5bfc
RD
52622}
52623
52624
1bd55598
RD
52625SWIGINTERN PyObject *_wrap_GBPosition_GetCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52626 PyObject *resultobj = 0;
52627 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
52628 int result;
52629 void *argp1 = 0 ;
52630 int res1 = 0 ;
52631 PyObject *swig_obj[1] ;
52632
52633 if (!args) SWIG_fail;
52634 swig_obj[0] = args;
52635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
52636 if (!SWIG_IsOK(res1)) {
52637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_GetCol" "', expected argument " "1"" of type '" "wxGBPosition const *""'");
52638 }
52639 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
52640 {
52641 PyThreadState* __tstate = wxPyBeginAllowThreads();
52642 result = (int)((wxGBPosition const *)arg1)->GetCol();
52643 wxPyEndAllowThreads(__tstate);
52644 if (PyErr_Occurred()) SWIG_fail;
52645 }
52646 resultobj = SWIG_From_int(static_cast< int >(result));
52647 return resultobj;
52648fail:
52649 return NULL;
52650}
52651
52652
52653SWIGINTERN PyObject *_wrap_GBPosition_SetRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52654 PyObject *resultobj = 0;
52655 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
52656 int arg2 ;
52657 void *argp1 = 0 ;
52658 int res1 = 0 ;
52659 int val2 ;
52660 int ecode2 = 0 ;
52661 PyObject * obj0 = 0 ;
52662 PyObject * obj1 = 0 ;
52663 char * kwnames[] = {
52664 (char *) "self",(char *) "row", NULL
52665 };
52666
52667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) SWIG_fail;
52668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
52669 if (!SWIG_IsOK(res1)) {
52670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_SetRow" "', expected argument " "1"" of type '" "wxGBPosition *""'");
52671 }
52672 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
52673 ecode2 = SWIG_AsVal_int(obj1, &val2);
52674 if (!SWIG_IsOK(ecode2)) {
52675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBPosition_SetRow" "', expected argument " "2"" of type '" "int""'");
52676 }
52677 arg2 = static_cast< int >(val2);
52678 {
52679 PyThreadState* __tstate = wxPyBeginAllowThreads();
52680 (arg1)->SetRow(arg2);
52681 wxPyEndAllowThreads(__tstate);
52682 if (PyErr_Occurred()) SWIG_fail;
52683 }
52684 resultobj = SWIG_Py_Void();
52685 return resultobj;
52686fail:
52687 return NULL;
52688}
52689
52690
52691SWIGINTERN PyObject *_wrap_GBPosition_SetCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52692 PyObject *resultobj = 0;
52693 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
52694 int arg2 ;
52695 void *argp1 = 0 ;
52696 int res1 = 0 ;
52697 int val2 ;
52698 int ecode2 = 0 ;
52699 PyObject * obj0 = 0 ;
52700 PyObject * obj1 = 0 ;
52701 char * kwnames[] = {
52702 (char *) "self",(char *) "col", NULL
52703 };
52704
52705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) SWIG_fail;
52706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
52707 if (!SWIG_IsOK(res1)) {
52708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_SetCol" "', expected argument " "1"" of type '" "wxGBPosition *""'");
52709 }
52710 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
52711 ecode2 = SWIG_AsVal_int(obj1, &val2);
52712 if (!SWIG_IsOK(ecode2)) {
52713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBPosition_SetCol" "', expected argument " "2"" of type '" "int""'");
52714 }
52715 arg2 = static_cast< int >(val2);
52716 {
52717 PyThreadState* __tstate = wxPyBeginAllowThreads();
52718 (arg1)->SetCol(arg2);
52719 wxPyEndAllowThreads(__tstate);
52720 if (PyErr_Occurred()) SWIG_fail;
52721 }
52722 resultobj = SWIG_Py_Void();
52723 return resultobj;
52724fail:
52725 return NULL;
52726}
52727
52728
52729SWIGINTERN PyObject *_wrap_GBPosition___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52730 PyObject *resultobj = 0;
52731 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
e9d6f3a4 52732 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
52733 bool result;
52734 void *argp1 = 0 ;
52735 int res1 = 0 ;
1bd55598
RD
52736 PyObject * obj0 = 0 ;
52737 PyObject * obj1 = 0 ;
52738 char * kwnames[] = {
52739 (char *) "self",(char *) "other", NULL
52740 };
52741
52742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
52743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
52744 if (!SWIG_IsOK(res1)) {
52745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition___eq__" "', expected argument " "1"" of type '" "wxGBPosition *""'");
52746 }
52747 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
e9d6f3a4 52748 arg2 = obj1;
1bd55598 52749 {
e9d6f3a4 52750 result = (bool)wxGBPosition___eq__(arg1,arg2);
1bd55598
RD
52751 if (PyErr_Occurred()) SWIG_fail;
52752 }
52753 {
52754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
52755 }
52756 return resultobj;
52757fail:
52758 return NULL;
52759}
52760
52761
52762SWIGINTERN PyObject *_wrap_GBPosition___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52763 PyObject *resultobj = 0;
52764 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
e9d6f3a4 52765 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
52766 bool result;
52767 void *argp1 = 0 ;
52768 int res1 = 0 ;
1bd55598
RD
52769 PyObject * obj0 = 0 ;
52770 PyObject * obj1 = 0 ;
52771 char * kwnames[] = {
52772 (char *) "self",(char *) "other", NULL
52773 };
52774
52775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
52776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
52777 if (!SWIG_IsOK(res1)) {
52778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition___ne__" "', expected argument " "1"" of type '" "wxGBPosition *""'");
52779 }
52780 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
e9d6f3a4 52781 arg2 = obj1;
1bd55598 52782 {
e9d6f3a4 52783 result = (bool)wxGBPosition___ne__(arg1,arg2);
1bd55598
RD
52784 if (PyErr_Occurred()) SWIG_fail;
52785 }
52786 {
52787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
52788 }
52789 return resultobj;
52790fail:
52791 return NULL;
52792}
52793
52794
52795SWIGINTERN PyObject *_wrap_GBPosition_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52796 PyObject *resultobj = 0;
52797 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
52798 int arg2 = (int) 0 ;
52799 int arg3 = (int) 0 ;
52800 void *argp1 = 0 ;
52801 int res1 = 0 ;
52802 int val2 ;
52803 int ecode2 = 0 ;
52804 int val3 ;
52805 int ecode3 = 0 ;
52806 PyObject * obj0 = 0 ;
52807 PyObject * obj1 = 0 ;
52808 PyObject * obj2 = 0 ;
52809 char * kwnames[] = {
52810 (char *) "self",(char *) "row",(char *) "col", NULL
52811 };
52812
52813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
52814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
52815 if (!SWIG_IsOK(res1)) {
52816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_Set" "', expected argument " "1"" of type '" "wxGBPosition *""'");
52817 }
52818 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
52819 if (obj1) {
52820 ecode2 = SWIG_AsVal_int(obj1, &val2);
52821 if (!SWIG_IsOK(ecode2)) {
52822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBPosition_Set" "', expected argument " "2"" of type '" "int""'");
52823 }
52824 arg2 = static_cast< int >(val2);
52825 }
52826 if (obj2) {
52827 ecode3 = SWIG_AsVal_int(obj2, &val3);
52828 if (!SWIG_IsOK(ecode3)) {
52829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GBPosition_Set" "', expected argument " "3"" of type '" "int""'");
52830 }
52831 arg3 = static_cast< int >(val3);
52832 }
52833 {
52834 PyThreadState* __tstate = wxPyBeginAllowThreads();
52835 wxGBPosition_Set(arg1,arg2,arg3);
52836 wxPyEndAllowThreads(__tstate);
52837 if (PyErr_Occurred()) SWIG_fail;
52838 }
52839 resultobj = SWIG_Py_Void();
52840 return resultobj;
52841fail:
52842 return NULL;
d55e5bfc
RD
52843}
52844
52845
1bd55598
RD
52846SWIGINTERN PyObject *_wrap_GBPosition_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52847 PyObject *resultobj = 0;
52848 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
52849 PyObject *result = 0 ;
52850 void *argp1 = 0 ;
52851 int res1 = 0 ;
52852 PyObject *swig_obj[1] ;
52853
52854 if (!args) SWIG_fail;
52855 swig_obj[0] = args;
52856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
52857 if (!SWIG_IsOK(res1)) {
52858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_Get" "', expected argument " "1"" of type '" "wxGBPosition *""'");
52859 }
52860 arg1 = reinterpret_cast< wxGBPosition * >(argp1);
52861 {
52862 PyThreadState* __tstate = wxPyBeginAllowThreads();
52863 result = (PyObject *)wxGBPosition_Get(arg1);
52864 wxPyEndAllowThreads(__tstate);
52865 if (PyErr_Occurred()) SWIG_fail;
52866 }
52867 resultobj = result;
52868 return resultobj;
52869fail:
52870 return NULL;
d55e5bfc
RD
52871}
52872
52873
1bd55598
RD
52874SWIGINTERN PyObject *GBPosition_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52875 PyObject *obj;
52876 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
52877 SWIG_TypeNewClientData(SWIGTYPE_p_wxGBPosition, SWIG_NewClientData(obj));
52878 return SWIG_Py_Void();
d55e5bfc
RD
52879}
52880
1bd55598
RD
52881SWIGINTERN PyObject *GBPosition_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52882 return SWIG_Python_InitShadowInstance(args);
52883}
d55e5bfc 52884
1bd55598
RD
52885SWIGINTERN PyObject *_wrap_new_GBSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
52886 PyObject *resultobj = 0;
52887 int arg1 = (int) 1 ;
52888 int arg2 = (int) 1 ;
52889 wxGBSpan *result = 0 ;
52890 int val1 ;
52891 int ecode1 = 0 ;
52892 int val2 ;
52893 int ecode2 = 0 ;
52894 PyObject * obj0 = 0 ;
52895 PyObject * obj1 = 0 ;
52896 char * kwnames[] = {
52897 (char *) "rowspan",(char *) "colspan", NULL
52898 };
52899
52900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) SWIG_fail;
52901 if (obj0) {
52902 ecode1 = SWIG_AsVal_int(obj0, &val1);
52903 if (!SWIG_IsOK(ecode1)) {
52904 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GBSpan" "', expected argument " "1"" of type '" "int""'");
52905 }
52906 arg1 = static_cast< int >(val1);
52907 }
52908 if (obj1) {
52909 ecode2 = SWIG_AsVal_int(obj1, &val2);
52910 if (!SWIG_IsOK(ecode2)) {
52911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GBSpan" "', expected argument " "2"" of type '" "int""'");
52912 }
52913 arg2 = static_cast< int >(val2);
52914 }
52915 {
52916 PyThreadState* __tstate = wxPyBeginAllowThreads();
52917 result = (wxGBSpan *)new wxGBSpan(arg1,arg2);
52918 wxPyEndAllowThreads(__tstate);
52919 if (PyErr_Occurred()) SWIG_fail;
52920 }
52921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSpan, SWIG_POINTER_NEW | 0 );
52922 return resultobj;
52923fail:
52924 return NULL;
d55e5bfc
RD
52925}
52926
52927
1bd55598
RD
52928SWIGINTERN PyObject *_wrap_delete_GBSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52929 PyObject *resultobj = 0;
52930 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
52931 void *argp1 = 0 ;
52932 int res1 = 0 ;
52933 PyObject *swig_obj[1] ;
52934
52935 if (!args) SWIG_fail;
52936 swig_obj[0] = args;
52937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSpan, SWIG_POINTER_DISOWN | 0 );
52938 if (!SWIG_IsOK(res1)) {
52939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GBSpan" "', expected argument " "1"" of type '" "wxGBSpan *""'");
52940 }
52941 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
52942 {
52943 PyThreadState* __tstate = wxPyBeginAllowThreads();
52944 delete arg1;
d55e5bfc 52945
1bd55598
RD
52946 wxPyEndAllowThreads(__tstate);
52947 if (PyErr_Occurred()) SWIG_fail;
52948 }
52949 resultobj = SWIG_Py_Void();
52950 return resultobj;
52951fail:
52952 return NULL;
d55e5bfc
RD
52953}
52954
52955
1bd55598
RD
52956SWIGINTERN PyObject *_wrap_GBSpan_GetRowspan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52957 PyObject *resultobj = 0;
52958 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
52959 int result;
52960 void *argp1 = 0 ;
52961 int res1 = 0 ;
52962 PyObject *swig_obj[1] ;
52963
52964 if (!args) SWIG_fail;
52965 swig_obj[0] = args;
52966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
52967 if (!SWIG_IsOK(res1)) {
52968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_GetRowspan" "', expected argument " "1"" of type '" "wxGBSpan const *""'");
52969 }
52970 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
52971 {
52972 PyThreadState* __tstate = wxPyBeginAllowThreads();
52973 result = (int)((wxGBSpan const *)arg1)->GetRowspan();
52974 wxPyEndAllowThreads(__tstate);
52975 if (PyErr_Occurred()) SWIG_fail;
52976 }
52977 resultobj = SWIG_From_int(static_cast< int >(result));
52978 return resultobj;
52979fail:
52980 return NULL;
d55e5bfc
RD
52981}
52982
52983
1bd55598
RD
52984SWIGINTERN PyObject *_wrap_GBSpan_GetColspan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
52985 PyObject *resultobj = 0;
52986 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
52987 int result;
52988 void *argp1 = 0 ;
52989 int res1 = 0 ;
52990 PyObject *swig_obj[1] ;
52991
52992 if (!args) SWIG_fail;
52993 swig_obj[0] = args;
52994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
52995 if (!SWIG_IsOK(res1)) {
52996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_GetColspan" "', expected argument " "1"" of type '" "wxGBSpan const *""'");
52997 }
52998 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
52999 {
53000 PyThreadState* __tstate = wxPyBeginAllowThreads();
53001 result = (int)((wxGBSpan const *)arg1)->GetColspan();
53002 wxPyEndAllowThreads(__tstate);
53003 if (PyErr_Occurred()) SWIG_fail;
53004 }
53005 resultobj = SWIG_From_int(static_cast< int >(result));
53006 return resultobj;
53007fail:
53008 return NULL;
53009}
53010
53011
53012SWIGINTERN PyObject *_wrap_GBSpan_SetRowspan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53013 PyObject *resultobj = 0;
53014 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
53015 int arg2 ;
53016 void *argp1 = 0 ;
53017 int res1 = 0 ;
53018 int val2 ;
53019 int ecode2 = 0 ;
53020 PyObject * obj0 = 0 ;
53021 PyObject * obj1 = 0 ;
53022 char * kwnames[] = {
53023 (char *) "self",(char *) "rowspan", NULL
53024 };
53025
53026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) SWIG_fail;
53027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
53028 if (!SWIG_IsOK(res1)) {
53029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_SetRowspan" "', expected argument " "1"" of type '" "wxGBSpan *""'");
53030 }
53031 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
53032 ecode2 = SWIG_AsVal_int(obj1, &val2);
53033 if (!SWIG_IsOK(ecode2)) {
53034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBSpan_SetRowspan" "', expected argument " "2"" of type '" "int""'");
53035 }
53036 arg2 = static_cast< int >(val2);
53037 {
53038 PyThreadState* __tstate = wxPyBeginAllowThreads();
53039 (arg1)->SetRowspan(arg2);
53040 wxPyEndAllowThreads(__tstate);
53041 if (PyErr_Occurred()) SWIG_fail;
53042 }
53043 resultobj = SWIG_Py_Void();
53044 return resultobj;
53045fail:
53046 return NULL;
53047}
53048
53049
53050SWIGINTERN PyObject *_wrap_GBSpan_SetColspan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53051 PyObject *resultobj = 0;
53052 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
53053 int arg2 ;
53054 void *argp1 = 0 ;
53055 int res1 = 0 ;
53056 int val2 ;
53057 int ecode2 = 0 ;
53058 PyObject * obj0 = 0 ;
53059 PyObject * obj1 = 0 ;
53060 char * kwnames[] = {
53061 (char *) "self",(char *) "colspan", NULL
53062 };
53063
53064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) SWIG_fail;
53065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
53066 if (!SWIG_IsOK(res1)) {
53067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_SetColspan" "', expected argument " "1"" of type '" "wxGBSpan *""'");
53068 }
53069 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
53070 ecode2 = SWIG_AsVal_int(obj1, &val2);
53071 if (!SWIG_IsOK(ecode2)) {
53072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBSpan_SetColspan" "', expected argument " "2"" of type '" "int""'");
53073 }
53074 arg2 = static_cast< int >(val2);
53075 {
53076 PyThreadState* __tstate = wxPyBeginAllowThreads();
53077 (arg1)->SetColspan(arg2);
53078 wxPyEndAllowThreads(__tstate);
53079 if (PyErr_Occurred()) SWIG_fail;
53080 }
53081 resultobj = SWIG_Py_Void();
53082 return resultobj;
53083fail:
53084 return NULL;
53085}
53086
53087
53088SWIGINTERN PyObject *_wrap_GBSpan___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53089 PyObject *resultobj = 0;
53090 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
e9d6f3a4 53091 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
53092 bool result;
53093 void *argp1 = 0 ;
53094 int res1 = 0 ;
1bd55598
RD
53095 PyObject * obj0 = 0 ;
53096 PyObject * obj1 = 0 ;
53097 char * kwnames[] = {
53098 (char *) "self",(char *) "other", NULL
53099 };
53100
53101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
53102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
53103 if (!SWIG_IsOK(res1)) {
53104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan___eq__" "', expected argument " "1"" of type '" "wxGBSpan *""'");
53105 }
53106 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
e9d6f3a4 53107 arg2 = obj1;
1bd55598 53108 {
e9d6f3a4 53109 result = (bool)wxGBSpan___eq__(arg1,arg2);
1bd55598
RD
53110 if (PyErr_Occurred()) SWIG_fail;
53111 }
53112 {
53113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
53114 }
53115 return resultobj;
53116fail:
53117 return NULL;
53118}
53119
53120
53121SWIGINTERN PyObject *_wrap_GBSpan___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53122 PyObject *resultobj = 0;
53123 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
e9d6f3a4 53124 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
53125 bool result;
53126 void *argp1 = 0 ;
53127 int res1 = 0 ;
1bd55598
RD
53128 PyObject * obj0 = 0 ;
53129 PyObject * obj1 = 0 ;
53130 char * kwnames[] = {
53131 (char *) "self",(char *) "other", NULL
53132 };
53133
53134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
53135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
53136 if (!SWIG_IsOK(res1)) {
53137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan___ne__" "', expected argument " "1"" of type '" "wxGBSpan *""'");
53138 }
53139 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
e9d6f3a4 53140 arg2 = obj1;
1bd55598 53141 {
e9d6f3a4 53142 result = (bool)wxGBSpan___ne__(arg1,arg2);
1bd55598
RD
53143 if (PyErr_Occurred()) SWIG_fail;
53144 }
53145 {
53146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
53147 }
53148 return resultobj;
53149fail:
53150 return NULL;
53151}
53152
53153
53154SWIGINTERN PyObject *_wrap_GBSpan_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53155 PyObject *resultobj = 0;
53156 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
53157 int arg2 = (int) 1 ;
53158 int arg3 = (int) 1 ;
53159 void *argp1 = 0 ;
53160 int res1 = 0 ;
53161 int val2 ;
53162 int ecode2 = 0 ;
53163 int val3 ;
53164 int ecode3 = 0 ;
53165 PyObject * obj0 = 0 ;
53166 PyObject * obj1 = 0 ;
53167 PyObject * obj2 = 0 ;
53168 char * kwnames[] = {
53169 (char *) "self",(char *) "rowspan",(char *) "colspan", NULL
53170 };
53171
53172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
53173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
53174 if (!SWIG_IsOK(res1)) {
53175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_Set" "', expected argument " "1"" of type '" "wxGBSpan *""'");
53176 }
53177 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
53178 if (obj1) {
53179 ecode2 = SWIG_AsVal_int(obj1, &val2);
53180 if (!SWIG_IsOK(ecode2)) {
53181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBSpan_Set" "', expected argument " "2"" of type '" "int""'");
53182 }
53183 arg2 = static_cast< int >(val2);
53184 }
53185 if (obj2) {
53186 ecode3 = SWIG_AsVal_int(obj2, &val3);
53187 if (!SWIG_IsOK(ecode3)) {
53188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GBSpan_Set" "', expected argument " "3"" of type '" "int""'");
53189 }
53190 arg3 = static_cast< int >(val3);
53191 }
53192 {
53193 PyThreadState* __tstate = wxPyBeginAllowThreads();
53194 wxGBSpan_Set(arg1,arg2,arg3);
53195 wxPyEndAllowThreads(__tstate);
53196 if (PyErr_Occurred()) SWIG_fail;
53197 }
53198 resultobj = SWIG_Py_Void();
53199 return resultobj;
53200fail:
53201 return NULL;
d55e5bfc
RD
53202}
53203
53204
1bd55598
RD
53205SWIGINTERN PyObject *_wrap_GBSpan_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53206 PyObject *resultobj = 0;
53207 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
53208 PyObject *result = 0 ;
53209 void *argp1 = 0 ;
53210 int res1 = 0 ;
53211 PyObject *swig_obj[1] ;
53212
53213 if (!args) SWIG_fail;
53214 swig_obj[0] = args;
53215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
53216 if (!SWIG_IsOK(res1)) {
53217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_Get" "', expected argument " "1"" of type '" "wxGBSpan *""'");
53218 }
53219 arg1 = reinterpret_cast< wxGBSpan * >(argp1);
53220 {
53221 PyThreadState* __tstate = wxPyBeginAllowThreads();
53222 result = (PyObject *)wxGBSpan_Get(arg1);
53223 wxPyEndAllowThreads(__tstate);
53224 if (PyErr_Occurred()) SWIG_fail;
53225 }
53226 resultobj = result;
53227 return resultobj;
53228fail:
53229 return NULL;
d55e5bfc
RD
53230}
53231
53232
1bd55598
RD
53233SWIGINTERN PyObject *GBSpan_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53234 PyObject *obj;
53235 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
53236 SWIG_TypeNewClientData(SWIGTYPE_p_wxGBSpan, SWIG_NewClientData(obj));
53237 return SWIG_Py_Void();
d55e5bfc
RD
53238}
53239
1bd55598
RD
53240SWIGINTERN PyObject *GBSpan_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53241 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
53242}
53243
1bd55598
RD
53244SWIGINTERN int DefaultSpan_set(PyObject *) {
53245 SWIG_Error(SWIG_AttributeError,"Variable DefaultSpan is read-only.");
53246 return 1;
d55e5bfc
RD
53247}
53248
53249
1bd55598
RD
53250SWIGINTERN PyObject *DefaultSpan_get(void) {
53251 PyObject *pyobj = 0;
53252
53253 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0 );
53254 return pyobj;
d55e5bfc
RD
53255}
53256
53257
1bd55598
RD
53258SWIGINTERN PyObject *_wrap_new_GBSizerItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53259 PyObject *resultobj = 0;
53260 wxGBSizerItem *result = 0 ;
53261
53262 if (!SWIG_Python_UnpackTuple(args,"new_GBSizerItem",0,0,0)) SWIG_fail;
53263 {
53264 PyThreadState* __tstate = wxPyBeginAllowThreads();
53265 result = (wxGBSizerItem *)new wxGBSizerItem();
53266 wxPyEndAllowThreads(__tstate);
53267 if (PyErr_Occurred()) SWIG_fail;
53268 }
53269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_NEW | 0 );
53270 return resultobj;
53271fail:
53272 return NULL;
d55e5bfc
RD
53273}
53274
53275
1bd55598
RD
53276SWIGINTERN PyObject *_wrap_delete_GBSizerItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53277 PyObject *resultobj = 0;
53278 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53279 void *argp1 = 0 ;
53280 int res1 = 0 ;
53281 PyObject *swig_obj[1] ;
53282
53283 if (!args) SWIG_fail;
53284 swig_obj[0] = args;
53285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_DISOWN | 0 );
53286 if (!SWIG_IsOK(res1)) {
53287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GBSizerItem" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
53288 }
53289 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53290 {
53291 PyThreadState* __tstate = wxPyBeginAllowThreads();
53292 delete arg1;
d55e5bfc 53293
1bd55598
RD
53294 wxPyEndAllowThreads(__tstate);
53295 if (PyErr_Occurred()) SWIG_fail;
53296 }
53297 resultobj = SWIG_Py_Void();
53298 return resultobj;
53299fail:
53300 return NULL;
53301}
53302
53303
53304SWIGINTERN PyObject *_wrap_new_GBSizerItemWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53305 PyObject *resultobj = 0;
53306 wxWindow *arg1 = (wxWindow *) 0 ;
53307 wxGBPosition *arg2 = 0 ;
53308 wxGBSpan *arg3 = 0 ;
53309 int arg4 ;
53310 int arg5 ;
53311 PyObject *arg6 = (PyObject *) NULL ;
53312 wxGBSizerItem *result = 0 ;
53313 void *argp1 = 0 ;
53314 int res1 = 0 ;
53315 wxGBPosition temp2 ;
53316 wxGBSpan temp3 ;
53317 int val4 ;
53318 int ecode4 = 0 ;
53319 int val5 ;
53320 int ecode5 = 0 ;
53321 PyObject * obj0 = 0 ;
53322 PyObject * obj1 = 0 ;
53323 PyObject * obj2 = 0 ;
53324 PyObject * obj3 = 0 ;
53325 PyObject * obj4 = 0 ;
53326 PyObject * obj5 = 0 ;
53327 char * kwnames[] = {
53328 (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
53329 };
53330
53331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
53332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
53333 if (!SWIG_IsOK(res1)) {
53334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GBSizerItemWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
53335 }
53336 arg1 = reinterpret_cast< wxWindow * >(argp1);
53337 {
53338 arg2 = &temp2;
53339 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
53340 }
53341 {
53342 arg3 = &temp3;
53343 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
53344 }
53345 ecode4 = SWIG_AsVal_int(obj3, &val4);
53346 if (!SWIG_IsOK(ecode4)) {
53347 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GBSizerItemWindow" "', expected argument " "4"" of type '" "int""'");
53348 }
53349 arg4 = static_cast< int >(val4);
53350 ecode5 = SWIG_AsVal_int(obj4, &val5);
53351 if (!SWIG_IsOK(ecode5)) {
53352 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GBSizerItemWindow" "', expected argument " "5"" of type '" "int""'");
53353 }
53354 arg5 = static_cast< int >(val5);
53355 if (obj5) {
53356 arg6 = obj5;
53357 }
53358 {
53359 PyThreadState* __tstate = wxPyBeginAllowThreads();
53360 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
53361 wxPyEndAllowThreads(__tstate);
53362 if (PyErr_Occurred()) SWIG_fail;
53363 }
53364 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_OWN | 0 );
53365 return resultobj;
53366fail:
53367 return NULL;
53368}
53369
53370
53371SWIGINTERN PyObject *_wrap_new_GBSizerItemSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53372 PyObject *resultobj = 0;
53373 wxSizer *arg1 = (wxSizer *) 0 ;
53374 wxGBPosition *arg2 = 0 ;
53375 wxGBSpan *arg3 = 0 ;
53376 int arg4 ;
53377 int arg5 ;
53378 PyObject *arg6 = (PyObject *) NULL ;
53379 wxGBSizerItem *result = 0 ;
53380 int res1 = 0 ;
53381 wxGBPosition temp2 ;
53382 wxGBSpan temp3 ;
53383 int val4 ;
53384 int ecode4 = 0 ;
53385 int val5 ;
53386 int ecode5 = 0 ;
53387 PyObject * obj0 = 0 ;
53388 PyObject * obj1 = 0 ;
53389 PyObject * obj2 = 0 ;
53390 PyObject * obj3 = 0 ;
53391 PyObject * obj4 = 0 ;
53392 PyObject * obj5 = 0 ;
53393 char * kwnames[] = {
53394 (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
53395 };
53396
53397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
53398 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
53399 if (!SWIG_IsOK(res1)) {
53400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GBSizerItemSizer" "', expected argument " "1"" of type '" "wxSizer *""'");
53401 }
53402 {
53403 arg2 = &temp2;
53404 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
53405 }
53406 {
53407 arg3 = &temp3;
53408 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
53409 }
53410 ecode4 = SWIG_AsVal_int(obj3, &val4);
53411 if (!SWIG_IsOK(ecode4)) {
53412 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GBSizerItemSizer" "', expected argument " "4"" of type '" "int""'");
53413 }
53414 arg4 = static_cast< int >(val4);
53415 ecode5 = SWIG_AsVal_int(obj4, &val5);
53416 if (!SWIG_IsOK(ecode5)) {
53417 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GBSizerItemSizer" "', expected argument " "5"" of type '" "int""'");
53418 }
53419 arg5 = static_cast< int >(val5);
53420 if (obj5) {
53421 arg6 = obj5;
53422 }
53423 {
53424 PyThreadState* __tstate = wxPyBeginAllowThreads();
53425 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
53426 wxPyEndAllowThreads(__tstate);
53427 if (PyErr_Occurred()) SWIG_fail;
53428 }
53429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_OWN | 0 );
53430 return resultobj;
53431fail:
53432 return NULL;
53433}
53434
53435
53436SWIGINTERN PyObject *_wrap_new_GBSizerItemSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53437 PyObject *resultobj = 0;
53438 int arg1 ;
53439 int arg2 ;
53440 wxGBPosition *arg3 = 0 ;
53441 wxGBSpan *arg4 = 0 ;
53442 int arg5 ;
53443 int arg6 ;
53444 PyObject *arg7 = (PyObject *) NULL ;
53445 wxGBSizerItem *result = 0 ;
53446 int val1 ;
53447 int ecode1 = 0 ;
53448 int val2 ;
53449 int ecode2 = 0 ;
53450 wxGBPosition temp3 ;
53451 wxGBSpan temp4 ;
53452 int val5 ;
53453 int ecode5 = 0 ;
53454 int val6 ;
53455 int ecode6 = 0 ;
53456 PyObject * obj0 = 0 ;
53457 PyObject * obj1 = 0 ;
53458 PyObject * obj2 = 0 ;
53459 PyObject * obj3 = 0 ;
53460 PyObject * obj4 = 0 ;
53461 PyObject * obj5 = 0 ;
53462 PyObject * obj6 = 0 ;
53463 char * kwnames[] = {
53464 (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
53465 };
53466
53467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
53468 ecode1 = SWIG_AsVal_int(obj0, &val1);
53469 if (!SWIG_IsOK(ecode1)) {
53470 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GBSizerItemSpacer" "', expected argument " "1"" of type '" "int""'");
53471 }
53472 arg1 = static_cast< int >(val1);
53473 ecode2 = SWIG_AsVal_int(obj1, &val2);
53474 if (!SWIG_IsOK(ecode2)) {
53475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GBSizerItemSpacer" "', expected argument " "2"" of type '" "int""'");
53476 }
53477 arg2 = static_cast< int >(val2);
53478 {
53479 arg3 = &temp3;
53480 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
53481 }
53482 {
53483 arg4 = &temp4;
53484 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
53485 }
53486 ecode5 = SWIG_AsVal_int(obj4, &val5);
53487 if (!SWIG_IsOK(ecode5)) {
53488 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GBSizerItemSpacer" "', expected argument " "5"" of type '" "int""'");
53489 }
53490 arg5 = static_cast< int >(val5);
53491 ecode6 = SWIG_AsVal_int(obj5, &val6);
53492 if (!SWIG_IsOK(ecode6)) {
53493 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GBSizerItemSpacer" "', expected argument " "6"" of type '" "int""'");
53494 }
53495 arg6 = static_cast< int >(val6);
53496 if (obj6) {
53497 arg7 = obj6;
53498 }
53499 {
53500 PyThreadState* __tstate = wxPyBeginAllowThreads();
53501 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
53502 wxPyEndAllowThreads(__tstate);
53503 if (PyErr_Occurred()) SWIG_fail;
53504 }
53505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_OWN | 0 );
53506 return resultobj;
53507fail:
53508 return NULL;
d55e5bfc
RD
53509}
53510
53511
1bd55598
RD
53512SWIGINTERN PyObject *_wrap_GBSizerItem_GetPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53513 PyObject *resultobj = 0;
53514 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53515 wxGBPosition result;
53516 void *argp1 = 0 ;
53517 int res1 = 0 ;
53518 PyObject *swig_obj[1] ;
53519
53520 if (!args) SWIG_fail;
53521 swig_obj[0] = args;
53522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53523 if (!SWIG_IsOK(res1)) {
53524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_GetPos" "', expected argument " "1"" of type '" "wxGBSizerItem const *""'");
53525 }
53526 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53527 {
53528 PyThreadState* __tstate = wxPyBeginAllowThreads();
53529 result = ((wxGBSizerItem const *)arg1)->GetPos();
53530 wxPyEndAllowThreads(__tstate);
53531 if (PyErr_Occurred()) SWIG_fail;
53532 }
53533 resultobj = SWIG_NewPointerObj((new wxGBPosition(static_cast< const wxGBPosition& >(result))), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_OWN | 0 );
53534 return resultobj;
53535fail:
53536 return NULL;
d55e5bfc
RD
53537}
53538
53539
1bd55598
RD
53540SWIGINTERN PyObject *_wrap_GBSizerItem_GetSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53541 PyObject *resultobj = 0;
53542 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53543 wxGBSpan result;
53544 void *argp1 = 0 ;
53545 int res1 = 0 ;
53546 PyObject *swig_obj[1] ;
53547
53548 if (!args) SWIG_fail;
53549 swig_obj[0] = args;
53550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53551 if (!SWIG_IsOK(res1)) {
53552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_GetSpan" "', expected argument " "1"" of type '" "wxGBSizerItem const *""'");
53553 }
53554 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53555 {
53556 PyThreadState* __tstate = wxPyBeginAllowThreads();
53557 result = ((wxGBSizerItem const *)arg1)->GetSpan();
53558 wxPyEndAllowThreads(__tstate);
53559 if (PyErr_Occurred()) SWIG_fail;
53560 }
53561 resultobj = SWIG_NewPointerObj((new wxGBSpan(static_cast< const wxGBSpan& >(result))), SWIGTYPE_p_wxGBSpan, SWIG_POINTER_OWN | 0 );
53562 return resultobj;
53563fail:
53564 return NULL;
53565}
53566
53567
53568SWIGINTERN PyObject *_wrap_GBSizerItem_SetPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53569 PyObject *resultobj = 0;
53570 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53571 wxGBPosition *arg2 = 0 ;
53572 bool result;
53573 void *argp1 = 0 ;
53574 int res1 = 0 ;
53575 wxGBPosition temp2 ;
53576 PyObject * obj0 = 0 ;
53577 PyObject * obj1 = 0 ;
53578 char * kwnames[] = {
53579 (char *) "self",(char *) "pos", NULL
53580 };
53581
53582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) SWIG_fail;
53583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53584 if (!SWIG_IsOK(res1)) {
53585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_SetPos" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
53586 }
53587 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53588 {
53589 arg2 = &temp2;
53590 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
53591 }
53592 {
53593 PyThreadState* __tstate = wxPyBeginAllowThreads();
53594 result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2);
53595 wxPyEndAllowThreads(__tstate);
53596 if (PyErr_Occurred()) SWIG_fail;
53597 }
53598 {
53599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
53600 }
53601 return resultobj;
53602fail:
53603 return NULL;
53604}
53605
53606
53607SWIGINTERN PyObject *_wrap_GBSizerItem_SetSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53608 PyObject *resultobj = 0;
53609 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53610 wxGBSpan *arg2 = 0 ;
53611 bool result;
53612 void *argp1 = 0 ;
53613 int res1 = 0 ;
53614 wxGBSpan temp2 ;
53615 PyObject * obj0 = 0 ;
53616 PyObject * obj1 = 0 ;
53617 char * kwnames[] = {
53618 (char *) "self",(char *) "span", NULL
53619 };
53620
53621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) SWIG_fail;
53622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53623 if (!SWIG_IsOK(res1)) {
53624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_SetSpan" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
53625 }
53626 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53627 {
53628 arg2 = &temp2;
53629 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
53630 }
53631 {
53632 PyThreadState* __tstate = wxPyBeginAllowThreads();
53633 result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2);
53634 wxPyEndAllowThreads(__tstate);
53635 if (PyErr_Occurred()) SWIG_fail;
53636 }
53637 {
53638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
53639 }
53640 return resultobj;
53641fail:
53642 return NULL;
53643}
53644
53645
53646SWIGINTERN PyObject *_wrap_GBSizerItem_Intersects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53647 PyObject *resultobj = 0;
53648 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53649 wxGBSizerItem *arg2 = 0 ;
53650 bool result;
53651 void *argp1 = 0 ;
53652 int res1 = 0 ;
53653 void *argp2 = 0 ;
53654 int res2 = 0 ;
53655 PyObject * obj0 = 0 ;
53656 PyObject * obj1 = 0 ;
53657 char * kwnames[] = {
53658 (char *) "self",(char *) "other", NULL
53659 };
53660
53661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) SWIG_fail;
53662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53663 if (!SWIG_IsOK(res1)) {
53664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_Intersects" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
53665 }
53666 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53667 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGBSizerItem, 0 | 0);
53668 if (!SWIG_IsOK(res2)) {
53669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GBSizerItem_Intersects" "', expected argument " "2"" of type '" "wxGBSizerItem const &""'");
53670 }
53671 if (!argp2) {
53672 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GBSizerItem_Intersects" "', expected argument " "2"" of type '" "wxGBSizerItem const &""'");
53673 }
53674 arg2 = reinterpret_cast< wxGBSizerItem * >(argp2);
53675 {
53676 PyThreadState* __tstate = wxPyBeginAllowThreads();
53677 result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2);
53678 wxPyEndAllowThreads(__tstate);
53679 if (PyErr_Occurred()) SWIG_fail;
53680 }
53681 {
53682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
53683 }
53684 return resultobj;
53685fail:
53686 return NULL;
53687}
53688
53689
53690SWIGINTERN PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53691 PyObject *resultobj = 0;
53692 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53693 wxGBPosition *arg2 = 0 ;
53694 wxGBSpan *arg3 = 0 ;
53695 bool result;
53696 void *argp1 = 0 ;
53697 int res1 = 0 ;
53698 wxGBPosition temp2 ;
53699 wxGBSpan temp3 ;
53700 PyObject * obj0 = 0 ;
53701 PyObject * obj1 = 0 ;
53702 PyObject * obj2 = 0 ;
53703 char * kwnames[] = {
53704 (char *) "self",(char *) "pos",(char *) "span", NULL
53705 };
53706
53707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
53708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53709 if (!SWIG_IsOK(res1)) {
53710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_IntersectsPos" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
53711 }
53712 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53713 {
53714 arg2 = &temp2;
53715 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
53716 }
53717 {
53718 arg3 = &temp3;
53719 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
53720 }
53721 {
53722 PyThreadState* __tstate = wxPyBeginAllowThreads();
53723 result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3);
53724 wxPyEndAllowThreads(__tstate);
53725 if (PyErr_Occurred()) SWIG_fail;
53726 }
53727 {
53728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
53729 }
53730 return resultobj;
53731fail:
53732 return NULL;
d55e5bfc
RD
53733}
53734
53735
1bd55598
RD
53736SWIGINTERN PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53737 PyObject *resultobj = 0;
53738 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53739 wxGBPosition result;
53740 void *argp1 = 0 ;
53741 int res1 = 0 ;
53742 PyObject *swig_obj[1] ;
53743
53744 if (!args) SWIG_fail;
53745 swig_obj[0] = args;
53746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53747 if (!SWIG_IsOK(res1)) {
53748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_GetEndPos" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
53749 }
53750 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53751 {
53752 PyThreadState* __tstate = wxPyBeginAllowThreads();
53753 result = wxGBSizerItem_GetEndPos(arg1);
53754 wxPyEndAllowThreads(__tstate);
53755 if (PyErr_Occurred()) SWIG_fail;
53756 }
53757 resultobj = SWIG_NewPointerObj((new wxGBPosition(static_cast< const wxGBPosition& >(result))), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_OWN | 0 );
53758 return resultobj;
53759fail:
53760 return NULL;
908b74cd
RD
53761}
53762
53763
1bd55598
RD
53764SWIGINTERN PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53765 PyObject *resultobj = 0;
53766 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53767 wxGridBagSizer *result = 0 ;
53768 void *argp1 = 0 ;
53769 int res1 = 0 ;
53770 PyObject *swig_obj[1] ;
53771
53772 if (!args) SWIG_fail;
53773 swig_obj[0] = args;
53774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53775 if (!SWIG_IsOK(res1)) {
53776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_GetGBSizer" "', expected argument " "1"" of type '" "wxGBSizerItem const *""'");
53777 }
53778 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53779 {
53780 PyThreadState* __tstate = wxPyBeginAllowThreads();
53781 result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer();
53782 wxPyEndAllowThreads(__tstate);
53783 if (PyErr_Occurred()) SWIG_fail;
53784 }
53785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
53786 return resultobj;
53787fail:
53788 return NULL;
53789}
53790
53791
53792SWIGINTERN PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53793 PyObject *resultobj = 0;
53794 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
53795 wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ;
53796 void *argp1 = 0 ;
53797 int res1 = 0 ;
53798 void *argp2 = 0 ;
53799 int res2 = 0 ;
53800 PyObject * obj0 = 0 ;
53801 PyObject * obj1 = 0 ;
53802 char * kwnames[] = {
53803 (char *) "self",(char *) "sizer", NULL
53804 };
53805
53806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) SWIG_fail;
53807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53808 if (!SWIG_IsOK(res1)) {
53809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_SetGBSizer" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
53810 }
53811 arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
53812 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
53813 if (!SWIG_IsOK(res2)) {
53814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GBSizerItem_SetGBSizer" "', expected argument " "2"" of type '" "wxGridBagSizer *""'");
53815 }
53816 arg2 = reinterpret_cast< wxGridBagSizer * >(argp2);
53817 {
53818 PyThreadState* __tstate = wxPyBeginAllowThreads();
53819 (arg1)->SetGBSizer(arg2);
53820 wxPyEndAllowThreads(__tstate);
53821 if (PyErr_Occurred()) SWIG_fail;
53822 }
53823 resultobj = SWIG_Py_Void();
53824 return resultobj;
53825fail:
53826 return NULL;
bf26d883
RD
53827}
53828
53829
1bd55598
RD
53830SWIGINTERN PyObject *GBSizerItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53831 PyObject *obj;
53832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
53833 SWIG_TypeNewClientData(SWIGTYPE_p_wxGBSizerItem, SWIG_NewClientData(obj));
53834 return SWIG_Py_Void();
bf26d883
RD
53835}
53836
1bd55598
RD
53837SWIGINTERN PyObject *GBSizerItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
53838 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
53839}
53840
1bd55598
RD
53841SWIGINTERN PyObject *_wrap_new_GridBagSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53842 PyObject *resultobj = 0;
53843 int arg1 = (int) 0 ;
53844 int arg2 = (int) 0 ;
53845 wxGridBagSizer *result = 0 ;
53846 int val1 ;
53847 int ecode1 = 0 ;
53848 int val2 ;
53849 int ecode2 = 0 ;
53850 PyObject * obj0 = 0 ;
53851 PyObject * obj1 = 0 ;
53852 char * kwnames[] = {
53853 (char *) "vgap",(char *) "hgap", NULL
53854 };
53855
53856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) SWIG_fail;
53857 if (obj0) {
53858 ecode1 = SWIG_AsVal_int(obj0, &val1);
53859 if (!SWIG_IsOK(ecode1)) {
53860 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GridBagSizer" "', expected argument " "1"" of type '" "int""'");
53861 }
53862 arg1 = static_cast< int >(val1);
53863 }
53864 if (obj1) {
53865 ecode2 = SWIG_AsVal_int(obj1, &val2);
53866 if (!SWIG_IsOK(ecode2)) {
53867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GridBagSizer" "', expected argument " "2"" of type '" "int""'");
53868 }
53869 arg2 = static_cast< int >(val2);
53870 }
53871 {
53872 PyThreadState* __tstate = wxPyBeginAllowThreads();
53873 result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2);
53874 wxPyEndAllowThreads(__tstate);
53875 if (PyErr_Occurred()) SWIG_fail;
53876 }
53877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_NEW | 0 );
53878 return resultobj;
53879fail:
53880 return NULL;
53881}
53882
53883
53884SWIGINTERN PyObject *_wrap_GridBagSizer_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53885 PyObject *resultobj = 0;
53886 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
53887 PyObject *arg2 = (PyObject *) 0 ;
53888 wxGBPosition *arg3 = 0 ;
53889 wxGBSpan const &arg4_defvalue = wxDefaultSpan ;
53890 wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ;
53891 int arg5 = (int) 0 ;
53892 int arg6 = (int) 0 ;
53893 PyObject *arg7 = (PyObject *) NULL ;
53894 wxGBSizerItem *result = 0 ;
53895 void *argp1 = 0 ;
53896 int res1 = 0 ;
53897 wxGBPosition temp3 ;
53898 wxGBSpan temp4 ;
53899 int val5 ;
53900 int ecode5 = 0 ;
53901 int val6 ;
53902 int ecode6 = 0 ;
53903 PyObject * obj0 = 0 ;
53904 PyObject * obj1 = 0 ;
53905 PyObject * obj2 = 0 ;
53906 PyObject * obj3 = 0 ;
53907 PyObject * obj4 = 0 ;
53908 PyObject * obj5 = 0 ;
53909 PyObject * obj6 = 0 ;
53910 char * kwnames[] = {
53911 (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
53912 };
53913
53914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
53915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
53916 if (!SWIG_IsOK(res1)) {
53917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_Add" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
53918 }
53919 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
53920 arg2 = obj1;
53921 {
53922 arg3 = &temp3;
53923 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
53924 }
53925 if (obj3) {
d55e5bfc 53926 {
1bd55598
RD
53927 arg4 = &temp4;
53928 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 53929 }
1bd55598
RD
53930 }
53931 if (obj4) {
53932 ecode5 = SWIG_AsVal_int(obj4, &val5);
53933 if (!SWIG_IsOK(ecode5)) {
53934 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GridBagSizer_Add" "', expected argument " "5"" of type '" "int""'");
53935 }
53936 arg5 = static_cast< int >(val5);
53937 }
53938 if (obj5) {
53939 ecode6 = SWIG_AsVal_int(obj5, &val6);
53940 if (!SWIG_IsOK(ecode6)) {
53941 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GridBagSizer_Add" "', expected argument " "6"" of type '" "int""'");
53942 }
53943 arg6 = static_cast< int >(val6);
53944 }
53945 if (obj6) {
53946 arg7 = obj6;
53947 }
53948 {
53949 PyThreadState* __tstate = wxPyBeginAllowThreads();
53950 result = (wxGBSizerItem *)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
53951 wxPyEndAllowThreads(__tstate);
53952 if (PyErr_Occurred()) SWIG_fail;
53953 }
53954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53955 return resultobj;
53956fail:
53957 return NULL;
53958}
53959
53960
53961SWIGINTERN PyObject *_wrap_GridBagSizer_AddItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53962 PyObject *resultobj = 0;
53963 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
53964 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
53965 wxGBSizerItem *result = 0 ;
53966 void *argp1 = 0 ;
53967 int res1 = 0 ;
53968 int res2 = 0 ;
53969 PyObject * obj0 = 0 ;
53970 PyObject * obj1 = 0 ;
53971 char * kwnames[] = {
53972 (char *) "self",(char *) "item", NULL
53973 };
53974
53975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) SWIG_fail;
53976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
53977 if (!SWIG_IsOK(res1)) {
53978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_AddItem" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
53979 }
53980 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
53981 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_DISOWN | 0 );
53982 if (!SWIG_IsOK(res2)) {
53983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_AddItem" "', expected argument " "2"" of type '" "wxGBSizerItem *""'");
53984 }
53985 {
53986 PyThreadState* __tstate = wxPyBeginAllowThreads();
53987 result = (wxGBSizerItem *)(arg1)->Add(arg2);
53988 wxPyEndAllowThreads(__tstate);
53989 if (PyErr_Occurred()) SWIG_fail;
53990 }
53991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
53992 return resultobj;
53993fail:
53994 return NULL;
53995}
53996
53997
53998SWIGINTERN PyObject *_wrap_GridBagSizer_GetCellSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
53999 PyObject *resultobj = 0;
54000 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54001 int arg2 ;
54002 int arg3 ;
54003 wxSize result;
54004 void *argp1 = 0 ;
54005 int res1 = 0 ;
54006 int val2 ;
54007 int ecode2 = 0 ;
54008 int val3 ;
54009 int ecode3 = 0 ;
54010 PyObject * obj0 = 0 ;
54011 PyObject * obj1 = 0 ;
54012 PyObject * obj2 = 0 ;
54013 char * kwnames[] = {
54014 (char *) "self",(char *) "row",(char *) "col", NULL
54015 };
54016
54017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridBagSizer_GetCellSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
54018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54019 if (!SWIG_IsOK(res1)) {
54020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetCellSize" "', expected argument " "1"" of type '" "wxGridBagSizer const *""'");
54021 }
54022 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54023 ecode2 = SWIG_AsVal_int(obj1, &val2);
54024 if (!SWIG_IsOK(ecode2)) {
54025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridBagSizer_GetCellSize" "', expected argument " "2"" of type '" "int""'");
54026 }
54027 arg2 = static_cast< int >(val2);
54028 ecode3 = SWIG_AsVal_int(obj2, &val3);
54029 if (!SWIG_IsOK(ecode3)) {
54030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GridBagSizer_GetCellSize" "', expected argument " "3"" of type '" "int""'");
54031 }
54032 arg3 = static_cast< int >(val3);
54033 {
54034 PyThreadState* __tstate = wxPyBeginAllowThreads();
54035 result = ((wxGridBagSizer const *)arg1)->GetCellSize(arg2,arg3);
54036 wxPyEndAllowThreads(__tstate);
54037 if (PyErr_Occurred()) SWIG_fail;
54038 }
54039 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
54040 return resultobj;
54041fail:
54042 return NULL;
d55e5bfc
RD
54043}
54044
54045
1bd55598
RD
54046SWIGINTERN PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
54047 PyObject *resultobj = 0;
54048 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54049 wxSize result;
54050 void *argp1 = 0 ;
54051 int res1 = 0 ;
54052 PyObject *swig_obj[1] ;
54053
54054 if (!args) SWIG_fail;
54055 swig_obj[0] = args;
54056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54057 if (!SWIG_IsOK(res1)) {
54058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetEmptyCellSize" "', expected argument " "1"" of type '" "wxGridBagSizer const *""'");
54059 }
54060 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54061 {
54062 PyThreadState* __tstate = wxPyBeginAllowThreads();
54063 result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize();
54064 wxPyEndAllowThreads(__tstate);
54065 if (PyErr_Occurred()) SWIG_fail;
54066 }
54067 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
54068 return resultobj;
54069fail:
54070 return NULL;
54071}
54072
54073
54074SWIGINTERN PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
54075 PyObject *resultobj = 0;
54076 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54077 wxSize *arg2 = 0 ;
54078 void *argp1 = 0 ;
54079 int res1 = 0 ;
54080 wxSize temp2 ;
54081 PyObject * obj0 = 0 ;
54082 PyObject * obj1 = 0 ;
54083 char * kwnames[] = {
54084 (char *) "self",(char *) "sz", NULL
54085 };
54086
54087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) SWIG_fail;
54088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54089 if (!SWIG_IsOK(res1)) {
54090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetEmptyCellSize" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54091 }
54092 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54093 {
54094 arg2 = &temp2;
54095 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
54096 }
54097 {
54098 PyThreadState* __tstate = wxPyBeginAllowThreads();
54099 (arg1)->SetEmptyCellSize((wxSize const &)*arg2);
54100 wxPyEndAllowThreads(__tstate);
54101 if (PyErr_Occurred()) SWIG_fail;
54102 }
54103 resultobj = SWIG_Py_Void();
54104 return resultobj;
54105fail:
54106 return NULL;
54107}
54108
54109
54110SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54111 PyObject *resultobj = 0;
54112 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54113 wxWindow *arg2 = (wxWindow *) 0 ;
54114 wxGBPosition result;
54115 void *argp1 = 0 ;
54116 int res1 = 0 ;
54117 void *argp2 = 0 ;
54118 int res2 = 0 ;
54119
54120 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54122 if (!SWIG_IsOK(res1)) {
54123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54124 }
54125 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54126 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
54127 if (!SWIG_IsOK(res2)) {
54128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "2"" of type '" "wxWindow *""'");
54129 }
54130 arg2 = reinterpret_cast< wxWindow * >(argp2);
54131 {
54132 PyThreadState* __tstate = wxPyBeginAllowThreads();
54133 result = (arg1)->GetItemPosition(arg2);
54134 wxPyEndAllowThreads(__tstate);
54135 if (PyErr_Occurred()) SWIG_fail;
54136 }
54137 resultobj = SWIG_NewPointerObj((new wxGBPosition(static_cast< const wxGBPosition& >(result))), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_OWN | 0 );
54138 return resultobj;
54139fail:
54140 return NULL;
54141}
54142
54143
54144SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54145 PyObject *resultobj = 0;
54146 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54147 wxSizer *arg2 = (wxSizer *) 0 ;
54148 wxGBPosition result;
54149 void *argp1 = 0 ;
54150 int res1 = 0 ;
54151 void *argp2 = 0 ;
54152 int res2 = 0 ;
54153
54154 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54156 if (!SWIG_IsOK(res1)) {
54157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54158 }
54159 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54160 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
54161 if (!SWIG_IsOK(res2)) {
54162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "2"" of type '" "wxSizer *""'");
54163 }
54164 arg2 = reinterpret_cast< wxSizer * >(argp2);
54165 {
54166 PyThreadState* __tstate = wxPyBeginAllowThreads();
54167 result = (arg1)->GetItemPosition(arg2);
54168 wxPyEndAllowThreads(__tstate);
54169 if (PyErr_Occurred()) SWIG_fail;
54170 }
54171 resultobj = SWIG_NewPointerObj((new wxGBPosition(static_cast< const wxGBPosition& >(result))), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_OWN | 0 );
54172 return resultobj;
54173fail:
54174 return NULL;
54175}
54176
54177
54178SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54179 PyObject *resultobj = 0;
54180 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54181 size_t arg2 ;
54182 wxGBPosition result;
54183 void *argp1 = 0 ;
54184 int res1 = 0 ;
54185 size_t val2 ;
54186 int ecode2 = 0 ;
54187
54188 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54190 if (!SWIG_IsOK(res1)) {
54191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54192 }
54193 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54194 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
54195 if (!SWIG_IsOK(ecode2)) {
54196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "2"" of type '" "size_t""'");
54197 }
54198 arg2 = static_cast< size_t >(val2);
54199 {
54200 PyThreadState* __tstate = wxPyBeginAllowThreads();
54201 result = (arg1)->GetItemPosition(arg2);
54202 wxPyEndAllowThreads(__tstate);
54203 if (PyErr_Occurred()) SWIG_fail;
54204 }
54205 resultobj = SWIG_NewPointerObj((new wxGBPosition(static_cast< const wxGBPosition& >(result))), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_OWN | 0 );
54206 return resultobj;
54207fail:
54208 return NULL;
d55e5bfc
RD
54209}
54210
54211
1bd55598
RD
54212SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) {
54213 int argc;
54214 PyObject *argv[3];
54215
54216 if (!(argc = SWIG_Python_UnpackTuple(args,"GridBagSizer_GetItemPosition",0,2,argv))) SWIG_fail;
54217 --argc;
54218 if (argc == 2) {
54219 int _v = 0;
d55e5bfc 54220 {
1bd55598
RD
54221 void *vptr = 0;
54222 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxWindow, 0);
54223 _v = SWIG_CheckState(res);
d55e5bfc 54224 }
1bd55598
RD
54225 if (!_v) goto check_1;
54226 return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self, argc, argv);
54227 }
54228check_1:
54229
54230 if (argc == 2) {
54231 int _v = 0;
d55e5bfc 54232 {
1bd55598
RD
54233 void *vptr = 0;
54234 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxSizer, 0);
54235 _v = SWIG_CheckState(res);
d55e5bfc 54236 }
1bd55598
RD
54237 if (!_v) goto check_2;
54238 return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self, argc, argv);
54239 }
54240check_2:
54241
54242 if (argc == 2) {
54243 return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self, argc, argv);
54244 }
54245
54246fail:
54247 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'");
54248 return NULL;
54249}
54250
54251
54252SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54253 PyObject *resultobj = 0;
54254 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54255 wxWindow *arg2 = (wxWindow *) 0 ;
54256 wxGBPosition *arg3 = 0 ;
54257 bool result;
54258 void *argp1 = 0 ;
54259 int res1 = 0 ;
54260 void *argp2 = 0 ;
54261 int res2 = 0 ;
54262 wxGBPosition temp3 ;
54263
54264 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
54265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54266 if (!SWIG_IsOK(res1)) {
54267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54268 }
54269 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54270 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
54271 if (!SWIG_IsOK(res2)) {
54272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "2"" of type '" "wxWindow *""'");
54273 }
54274 arg2 = reinterpret_cast< wxWindow * >(argp2);
54275 {
54276 arg3 = &temp3;
54277 if ( ! wxGBPosition_helper(swig_obj[2], &arg3)) SWIG_fail;
54278 }
54279 {
54280 PyThreadState* __tstate = wxPyBeginAllowThreads();
54281 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
54282 wxPyEndAllowThreads(__tstate);
54283 if (PyErr_Occurred()) SWIG_fail;
54284 }
54285 {
54286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
54287 }
54288 return resultobj;
54289fail:
54290 return NULL;
54291}
54292
54293
54294SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54295 PyObject *resultobj = 0;
54296 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54297 wxSizer *arg2 = (wxSizer *) 0 ;
54298 wxGBPosition *arg3 = 0 ;
54299 bool result;
54300 void *argp1 = 0 ;
54301 int res1 = 0 ;
54302 void *argp2 = 0 ;
54303 int res2 = 0 ;
54304 wxGBPosition temp3 ;
54305
54306 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
54307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54308 if (!SWIG_IsOK(res1)) {
54309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54310 }
54311 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54312 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
54313 if (!SWIG_IsOK(res2)) {
54314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "2"" of type '" "wxSizer *""'");
54315 }
54316 arg2 = reinterpret_cast< wxSizer * >(argp2);
54317 {
54318 arg3 = &temp3;
54319 if ( ! wxGBPosition_helper(swig_obj[2], &arg3)) SWIG_fail;
54320 }
54321 {
54322 PyThreadState* __tstate = wxPyBeginAllowThreads();
54323 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
54324 wxPyEndAllowThreads(__tstate);
54325 if (PyErr_Occurred()) SWIG_fail;
54326 }
54327 {
54328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
54329 }
54330 return resultobj;
54331fail:
54332 return NULL;
54333}
54334
54335
54336SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54337 PyObject *resultobj = 0;
54338 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54339 size_t arg2 ;
54340 wxGBPosition *arg3 = 0 ;
54341 bool result;
54342 void *argp1 = 0 ;
54343 int res1 = 0 ;
54344 size_t val2 ;
54345 int ecode2 = 0 ;
54346 wxGBPosition temp3 ;
54347
54348 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
54349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54350 if (!SWIG_IsOK(res1)) {
54351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54352 }
54353 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54354 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
54355 if (!SWIG_IsOK(ecode2)) {
54356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "2"" of type '" "size_t""'");
54357 }
54358 arg2 = static_cast< size_t >(val2);
54359 {
54360 arg3 = &temp3;
54361 if ( ! wxGBPosition_helper(swig_obj[2], &arg3)) SWIG_fail;
54362 }
54363 {
54364 PyThreadState* __tstate = wxPyBeginAllowThreads();
54365 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
54366 wxPyEndAllowThreads(__tstate);
54367 if (PyErr_Occurred()) SWIG_fail;
54368 }
54369 {
54370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
54371 }
54372 return resultobj;
54373fail:
54374 return NULL;
d55e5bfc
RD
54375}
54376
54377
1bd55598
RD
54378SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) {
54379 int argc;
54380 PyObject *argv[4];
54381
54382 if (!(argc = SWIG_Python_UnpackTuple(args,"GridBagSizer_SetItemPosition",0,3,argv))) SWIG_fail;
54383 --argc;
54384 if (argc == 3) {
54385 int _v = 0;
d55e5bfc 54386 {
1bd55598
RD
54387 void *vptr = 0;
54388 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxWindow, 0);
54389 _v = SWIG_CheckState(res);
d55e5bfc 54390 }
1bd55598
RD
54391 if (!_v) goto check_1;
54392 return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self, argc, argv);
54393 }
54394check_1:
54395
54396 if (argc == 3) {
54397 int _v = 0;
d55e5bfc 54398 {
1bd55598
RD
54399 void *vptr = 0;
54400 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxSizer, 0);
54401 _v = SWIG_CheckState(res);
d55e5bfc 54402 }
1bd55598
RD
54403 if (!_v) goto check_2;
54404 return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self, argc, argv);
54405 }
54406check_2:
54407
54408 if (argc == 3) {
54409 return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self, argc, argv);
54410 }
54411
54412fail:
54413 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'");
54414 return NULL;
d55e5bfc
RD
54415}
54416
54417
1bd55598
RD
54418SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54419 PyObject *resultobj = 0;
54420 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54421 wxWindow *arg2 = (wxWindow *) 0 ;
54422 wxGBSpan result;
54423 void *argp1 = 0 ;
54424 int res1 = 0 ;
54425 void *argp2 = 0 ;
54426 int res2 = 0 ;
54427
54428 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54430 if (!SWIG_IsOK(res1)) {
54431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54432 }
54433 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54434 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
54435 if (!SWIG_IsOK(res2)) {
54436 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "2"" of type '" "wxWindow *""'");
54437 }
54438 arg2 = reinterpret_cast< wxWindow * >(argp2);
54439 {
54440 PyThreadState* __tstate = wxPyBeginAllowThreads();
54441 result = (arg1)->GetItemSpan(arg2);
54442 wxPyEndAllowThreads(__tstate);
54443 if (PyErr_Occurred()) SWIG_fail;
54444 }
54445 resultobj = SWIG_NewPointerObj((new wxGBSpan(static_cast< const wxGBSpan& >(result))), SWIGTYPE_p_wxGBSpan, SWIG_POINTER_OWN | 0 );
54446 return resultobj;
54447fail:
54448 return NULL;
54449}
54450
54451
54452SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54453 PyObject *resultobj = 0;
54454 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54455 wxSizer *arg2 = (wxSizer *) 0 ;
54456 wxGBSpan result;
54457 void *argp1 = 0 ;
54458 int res1 = 0 ;
54459 void *argp2 = 0 ;
54460 int res2 = 0 ;
54461
54462 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54464 if (!SWIG_IsOK(res1)) {
54465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54466 }
54467 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54468 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
54469 if (!SWIG_IsOK(res2)) {
54470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "2"" of type '" "wxSizer *""'");
54471 }
54472 arg2 = reinterpret_cast< wxSizer * >(argp2);
54473 {
54474 PyThreadState* __tstate = wxPyBeginAllowThreads();
54475 result = (arg1)->GetItemSpan(arg2);
54476 wxPyEndAllowThreads(__tstate);
54477 if (PyErr_Occurred()) SWIG_fail;
54478 }
54479 resultobj = SWIG_NewPointerObj((new wxGBSpan(static_cast< const wxGBSpan& >(result))), SWIGTYPE_p_wxGBSpan, SWIG_POINTER_OWN | 0 );
54480 return resultobj;
54481fail:
54482 return NULL;
54483}
54484
54485
54486SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54487 PyObject *resultobj = 0;
54488 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54489 size_t arg2 ;
54490 wxGBSpan result;
54491 void *argp1 = 0 ;
54492 int res1 = 0 ;
54493 size_t val2 ;
54494 int ecode2 = 0 ;
54495
54496 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54498 if (!SWIG_IsOK(res1)) {
54499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54500 }
54501 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54502 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
54503 if (!SWIG_IsOK(ecode2)) {
54504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "2"" of type '" "size_t""'");
54505 }
54506 arg2 = static_cast< size_t >(val2);
54507 {
54508 PyThreadState* __tstate = wxPyBeginAllowThreads();
54509 result = (arg1)->GetItemSpan(arg2);
54510 wxPyEndAllowThreads(__tstate);
54511 if (PyErr_Occurred()) SWIG_fail;
54512 }
54513 resultobj = SWIG_NewPointerObj((new wxGBSpan(static_cast< const wxGBSpan& >(result))), SWIGTYPE_p_wxGBSpan, SWIG_POINTER_OWN | 0 );
54514 return resultobj;
54515fail:
54516 return NULL;
d55e5bfc
RD
54517}
54518
54519
1bd55598
RD
54520SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) {
54521 int argc;
54522 PyObject *argv[3];
54523
54524 if (!(argc = SWIG_Python_UnpackTuple(args,"GridBagSizer_GetItemSpan",0,2,argv))) SWIG_fail;
54525 --argc;
54526 if (argc == 2) {
54527 int _v = 0;
d55e5bfc 54528 {
1bd55598
RD
54529 void *vptr = 0;
54530 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxWindow, 0);
54531 _v = SWIG_CheckState(res);
d55e5bfc 54532 }
1bd55598
RD
54533 if (!_v) goto check_1;
54534 return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self, argc, argv);
54535 }
54536check_1:
54537
54538 if (argc == 2) {
54539 int _v = 0;
d55e5bfc 54540 {
1bd55598
RD
54541 void *vptr = 0;
54542 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxSizer, 0);
54543 _v = SWIG_CheckState(res);
d55e5bfc 54544 }
1bd55598
RD
54545 if (!_v) goto check_2;
54546 return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self, argc, argv);
54547 }
54548check_2:
54549
54550 if (argc == 2) {
54551 return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self, argc, argv);
54552 }
54553
54554fail:
54555 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'");
54556 return NULL;
54557}
54558
54559
54560SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54561 PyObject *resultobj = 0;
54562 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54563 wxWindow *arg2 = (wxWindow *) 0 ;
54564 wxGBSpan *arg3 = 0 ;
54565 bool result;
54566 void *argp1 = 0 ;
54567 int res1 = 0 ;
54568 void *argp2 = 0 ;
54569 int res2 = 0 ;
54570 wxGBSpan temp3 ;
54571
54572 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
54573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54574 if (!SWIG_IsOK(res1)) {
54575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54576 }
54577 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54578 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
54579 if (!SWIG_IsOK(res2)) {
54580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "2"" of type '" "wxWindow *""'");
54581 }
54582 arg2 = reinterpret_cast< wxWindow * >(argp2);
54583 {
54584 arg3 = &temp3;
54585 if ( ! wxGBSpan_helper(swig_obj[2], &arg3)) SWIG_fail;
54586 }
54587 {
54588 PyThreadState* __tstate = wxPyBeginAllowThreads();
54589 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
54590 wxPyEndAllowThreads(__tstate);
54591 if (PyErr_Occurred()) SWIG_fail;
54592 }
54593 {
54594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
54595 }
54596 return resultobj;
54597fail:
54598 return NULL;
54599}
54600
54601
54602SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54603 PyObject *resultobj = 0;
54604 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54605 wxSizer *arg2 = (wxSizer *) 0 ;
54606 wxGBSpan *arg3 = 0 ;
54607 bool result;
54608 void *argp1 = 0 ;
54609 int res1 = 0 ;
54610 void *argp2 = 0 ;
54611 int res2 = 0 ;
54612 wxGBSpan temp3 ;
54613
54614 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
54615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54616 if (!SWIG_IsOK(res1)) {
54617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54618 }
54619 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54620 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
54621 if (!SWIG_IsOK(res2)) {
54622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "2"" of type '" "wxSizer *""'");
54623 }
54624 arg2 = reinterpret_cast< wxSizer * >(argp2);
54625 {
54626 arg3 = &temp3;
54627 if ( ! wxGBSpan_helper(swig_obj[2], &arg3)) SWIG_fail;
54628 }
54629 {
54630 PyThreadState* __tstate = wxPyBeginAllowThreads();
54631 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
54632 wxPyEndAllowThreads(__tstate);
54633 if (PyErr_Occurred()) SWIG_fail;
54634 }
54635 {
54636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
54637 }
54638 return resultobj;
54639fail:
54640 return NULL;
54641}
54642
54643
54644SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54645 PyObject *resultobj = 0;
54646 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54647 size_t arg2 ;
54648 wxGBSpan *arg3 = 0 ;
54649 bool result;
54650 void *argp1 = 0 ;
54651 int res1 = 0 ;
54652 size_t val2 ;
54653 int ecode2 = 0 ;
54654 wxGBSpan temp3 ;
54655
54656 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
54657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54658 if (!SWIG_IsOK(res1)) {
54659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54660 }
54661 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54662 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
54663 if (!SWIG_IsOK(ecode2)) {
54664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "2"" of type '" "size_t""'");
54665 }
54666 arg2 = static_cast< size_t >(val2);
54667 {
54668 arg3 = &temp3;
54669 if ( ! wxGBSpan_helper(swig_obj[2], &arg3)) SWIG_fail;
54670 }
54671 {
54672 PyThreadState* __tstate = wxPyBeginAllowThreads();
54673 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
54674 wxPyEndAllowThreads(__tstate);
54675 if (PyErr_Occurred()) SWIG_fail;
54676 }
54677 {
54678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
54679 }
54680 return resultobj;
54681fail:
54682 return NULL;
d55e5bfc
RD
54683}
54684
54685
1bd55598
RD
54686SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) {
54687 int argc;
54688 PyObject *argv[4];
54689
54690 if (!(argc = SWIG_Python_UnpackTuple(args,"GridBagSizer_SetItemSpan",0,3,argv))) SWIG_fail;
54691 --argc;
54692 if (argc == 3) {
54693 int _v = 0;
d55e5bfc 54694 {
1bd55598
RD
54695 void *vptr = 0;
54696 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxWindow, 0);
54697 _v = SWIG_CheckState(res);
d55e5bfc 54698 }
1bd55598
RD
54699 if (!_v) goto check_1;
54700 return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self, argc, argv);
54701 }
54702check_1:
54703
54704 if (argc == 3) {
54705 int _v = 0;
d55e5bfc 54706 {
1bd55598
RD
54707 void *vptr = 0;
54708 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxSizer, 0);
54709 _v = SWIG_CheckState(res);
d55e5bfc 54710 }
1bd55598
RD
54711 if (!_v) goto check_2;
54712 return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self, argc, argv);
54713 }
54714check_2:
54715
54716 if (argc == 3) {
54717 return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self, argc, argv);
54718 }
54719
54720fail:
54721 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'");
54722 return NULL;
d55e5bfc
RD
54723}
54724
54725
1bd55598
RD
54726SWIGINTERN PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54727 PyObject *resultobj = 0;
54728 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54729 wxWindow *arg2 = (wxWindow *) 0 ;
54730 wxGBSizerItem *result = 0 ;
54731 void *argp1 = 0 ;
54732 int res1 = 0 ;
54733 void *argp2 = 0 ;
54734 int res2 = 0 ;
54735
54736 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54738 if (!SWIG_IsOK(res1)) {
54739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_FindItem" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54740 }
54741 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54742 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
54743 if (!SWIG_IsOK(res2)) {
54744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_FindItem" "', expected argument " "2"" of type '" "wxWindow *""'");
54745 }
54746 arg2 = reinterpret_cast< wxWindow * >(argp2);
54747 {
54748 PyThreadState* __tstate = wxPyBeginAllowThreads();
54749 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
54750 wxPyEndAllowThreads(__tstate);
54751 if (PyErr_Occurred()) SWIG_fail;
54752 }
54753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
54754 return resultobj;
54755fail:
54756 return NULL;
54757}
54758
54759
54760SWIGINTERN PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
54761 PyObject *resultobj = 0;
54762 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54763 wxSizer *arg2 = (wxSizer *) 0 ;
54764 wxGBSizerItem *result = 0 ;
54765 void *argp1 = 0 ;
54766 int res1 = 0 ;
54767 void *argp2 = 0 ;
54768 int res2 = 0 ;
54769
54770 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
54771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54772 if (!SWIG_IsOK(res1)) {
54773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_FindItem" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54774 }
54775 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54776 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
54777 if (!SWIG_IsOK(res2)) {
54778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_FindItem" "', expected argument " "2"" of type '" "wxSizer *""'");
54779 }
54780 arg2 = reinterpret_cast< wxSizer * >(argp2);
54781 {
54782 PyThreadState* __tstate = wxPyBeginAllowThreads();
54783 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
54784 wxPyEndAllowThreads(__tstate);
54785 if (PyErr_Occurred()) SWIG_fail;
54786 }
54787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
54788 return resultobj;
54789fail:
54790 return NULL;
d55e5bfc
RD
54791}
54792
54793
1bd55598
RD
54794SWIGINTERN PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) {
54795 int argc;
54796 PyObject *argv[3];
54797
54798 if (!(argc = SWIG_Python_UnpackTuple(args,"GridBagSizer_FindItem",0,2,argv))) SWIG_fail;
54799 --argc;
54800 if (argc == 2) {
54801 int _v = 0;
d55e5bfc 54802 {
1bd55598
RD
54803 void *vptr = 0;
54804 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxWindow, 0);
54805 _v = SWIG_CheckState(res);
d55e5bfc 54806 }
1bd55598
RD
54807 if (!_v) goto check_1;
54808 return _wrap_GridBagSizer_FindItem__SWIG_0(self, argc, argv);
54809 }
54810check_1:
54811
54812 if (argc == 2) {
54813 return _wrap_GridBagSizer_FindItem__SWIG_1(self, argc, argv);
54814 }
54815
54816fail:
54817 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_FindItem'");
54818 return NULL;
54819}
54820
54821
54822SWIGINTERN PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
54823 PyObject *resultobj = 0;
54824 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54825 wxGBPosition *arg2 = 0 ;
54826 wxGBSizerItem *result = 0 ;
54827 void *argp1 = 0 ;
54828 int res1 = 0 ;
54829 wxGBPosition temp2 ;
54830 PyObject * obj0 = 0 ;
54831 PyObject * obj1 = 0 ;
54832 char * kwnames[] = {
54833 (char *) "self",(char *) "pos", NULL
54834 };
54835
54836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) SWIG_fail;
54837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54838 if (!SWIG_IsOK(res1)) {
54839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_FindItemAtPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54840 }
54841 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54842 {
54843 arg2 = &temp2;
54844 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
54845 }
54846 {
54847 PyThreadState* __tstate = wxPyBeginAllowThreads();
54848 result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2);
54849 wxPyEndAllowThreads(__tstate);
54850 if (PyErr_Occurred()) SWIG_fail;
54851 }
54852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
54853 return resultobj;
54854fail:
54855 return NULL;
54856}
54857
54858
54859SWIGINTERN PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
54860 PyObject *resultobj = 0;
54861 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54862 wxPoint *arg2 = 0 ;
54863 wxGBSizerItem *result = 0 ;
54864 void *argp1 = 0 ;
54865 int res1 = 0 ;
54866 wxPoint temp2 ;
54867 PyObject * obj0 = 0 ;
54868 PyObject * obj1 = 0 ;
54869 char * kwnames[] = {
54870 (char *) "self",(char *) "pt", NULL
54871 };
54872
54873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) SWIG_fail;
54874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54875 if (!SWIG_IsOK(res1)) {
54876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_FindItemAtPoint" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54877 }
54878 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54879 {
54880 arg2 = &temp2;
54881 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
54882 }
54883 {
54884 PyThreadState* __tstate = wxPyBeginAllowThreads();
54885 result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2);
54886 wxPyEndAllowThreads(__tstate);
54887 if (PyErr_Occurred()) SWIG_fail;
54888 }
54889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
54890 return resultobj;
54891fail:
54892 return NULL;
54893}
54894
54895
54896SWIGINTERN PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
54897 PyObject *resultobj = 0;
54898 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54899 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
54900 wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ;
54901 bool result;
54902 void *argp1 = 0 ;
54903 int res1 = 0 ;
54904 void *argp2 = 0 ;
54905 int res2 = 0 ;
54906 void *argp3 = 0 ;
54907 int res3 = 0 ;
54908 PyObject * obj0 = 0 ;
54909 PyObject * obj1 = 0 ;
54910 PyObject * obj2 = 0 ;
54911 char * kwnames[] = {
54912 (char *) "self",(char *) "item",(char *) "excludeItem", NULL
54913 };
54914
54915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
54916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54917 if (!SWIG_IsOK(res1)) {
54918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_CheckForIntersection" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54919 }
54920 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54921 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
54922 if (!SWIG_IsOK(res2)) {
54923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_CheckForIntersection" "', expected argument " "2"" of type '" "wxGBSizerItem *""'");
54924 }
54925 arg2 = reinterpret_cast< wxGBSizerItem * >(argp2);
54926 if (obj2) {
54927 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
54928 if (!SWIG_IsOK(res3)) {
54929 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GridBagSizer_CheckForIntersection" "', expected argument " "3"" of type '" "wxGBSizerItem *""'");
d55e5bfc 54930 }
1bd55598
RD
54931 arg3 = reinterpret_cast< wxGBSizerItem * >(argp3);
54932 }
54933 {
54934 PyThreadState* __tstate = wxPyBeginAllowThreads();
54935 result = (bool)(arg1)->CheckForIntersection(arg2,arg3);
54936 wxPyEndAllowThreads(__tstate);
54937 if (PyErr_Occurred()) SWIG_fail;
54938 }
54939 {
54940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
54941 }
54942 return resultobj;
54943fail:
54944 return NULL;
54945}
54946
54947
54948SWIGINTERN PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
54949 PyObject *resultobj = 0;
54950 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
54951 wxGBPosition *arg2 = 0 ;
54952 wxGBSpan *arg3 = 0 ;
54953 wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ;
54954 bool result;
54955 void *argp1 = 0 ;
54956 int res1 = 0 ;
54957 wxGBPosition temp2 ;
54958 wxGBSpan temp3 ;
54959 void *argp4 = 0 ;
54960 int res4 = 0 ;
54961 PyObject * obj0 = 0 ;
54962 PyObject * obj1 = 0 ;
54963 PyObject * obj2 = 0 ;
54964 PyObject * obj3 = 0 ;
54965 char * kwnames[] = {
54966 (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL
54967 };
54968
54969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
54970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
54971 if (!SWIG_IsOK(res1)) {
54972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_CheckForIntersectionPos" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
54973 }
54974 arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
54975 {
54976 arg2 = &temp2;
54977 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
54978 }
54979 {
54980 arg3 = &temp3;
54981 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
54982 }
54983 if (obj3) {
54984 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
54985 if (!SWIG_IsOK(res4)) {
54986 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GridBagSizer_CheckForIntersectionPos" "', expected argument " "4"" of type '" "wxGBSizerItem *""'");
54987 }
54988 arg4 = reinterpret_cast< wxGBSizerItem * >(argp4);
54989 }
54990 {
54991 PyThreadState* __tstate = wxPyBeginAllowThreads();
54992 result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4);
54993 wxPyEndAllowThreads(__tstate);
54994 if (PyErr_Occurred()) SWIG_fail;
54995 }
54996 {
54997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
54998 }
54999 return resultobj;
55000fail:
55001 return NULL;
55002}
55003
55004
55005SWIGINTERN PyObject *GridBagSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55006 PyObject *obj;
55007 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
55008 SWIG_TypeNewClientData(SWIGTYPE_p_wxGridBagSizer, SWIG_NewClientData(obj));
55009 return SWIG_Py_Void();
55010}
55011
55012SWIGINTERN PyObject *GridBagSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55013 return SWIG_Python_InitShadowInstance(args);
55014}
55015
55016SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55017 PyObject *resultobj = 0;
55018 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55019 wxRelationship arg2 ;
55020 wxWindow *arg3 = (wxWindow *) 0 ;
55021 wxEdge arg4 ;
55022 int arg5 = (int) 0 ;
55023 int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ;
55024 void *argp1 = 0 ;
55025 int res1 = 0 ;
55026 int val2 ;
55027 int ecode2 = 0 ;
55028 void *argp3 = 0 ;
55029 int res3 = 0 ;
55030 int val4 ;
55031 int ecode4 = 0 ;
55032 int val5 ;
55033 int ecode5 = 0 ;
55034 int val6 ;
55035 int ecode6 = 0 ;
55036 PyObject * obj0 = 0 ;
55037 PyObject * obj1 = 0 ;
55038 PyObject * obj2 = 0 ;
55039 PyObject * obj3 = 0 ;
55040 PyObject * obj4 = 0 ;
55041 PyObject * obj5 = 0 ;
55042 char * kwnames[] = {
55043 (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL
55044 };
55045
55046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
55047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55048 if (!SWIG_IsOK(res1)) {
55049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55050 }
55051 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55052 ecode2 = SWIG_AsVal_int(obj1, &val2);
55053 if (!SWIG_IsOK(ecode2)) {
55054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "2"" of type '" "wxRelationship""'");
55055 }
55056 arg2 = static_cast< wxRelationship >(val2);
55057 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
55058 if (!SWIG_IsOK(res3)) {
55059 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "3"" of type '" "wxWindow *""'");
55060 }
55061 arg3 = reinterpret_cast< wxWindow * >(argp3);
55062 ecode4 = SWIG_AsVal_int(obj3, &val4);
55063 if (!SWIG_IsOK(ecode4)) {
55064 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "4"" of type '" "wxEdge""'");
55065 }
55066 arg4 = static_cast< wxEdge >(val4);
55067 if (obj4) {
55068 ecode5 = SWIG_AsVal_int(obj4, &val5);
55069 if (!SWIG_IsOK(ecode5)) {
55070 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "5"" of type '" "int""'");
55071 }
55072 arg5 = static_cast< int >(val5);
55073 }
55074 if (obj5) {
55075 ecode6 = SWIG_AsVal_int(obj5, &val6);
55076 if (!SWIG_IsOK(ecode6)) {
55077 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "6"" of type '" "int""'");
55078 }
55079 arg6 = static_cast< int >(val6);
55080 }
55081 {
55082 PyThreadState* __tstate = wxPyBeginAllowThreads();
55083 (arg1)->Set(arg2,arg3,arg4,arg5,arg6);
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_LeftOf(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_LeftOf",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_LeftOf" "', 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_LeftOf" "', 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_LeftOf" "', expected argument " "3"" of type '" "int""'");
55127 }
55128 arg3 = static_cast< int >(val3);
55129 }
55130 {
55131 PyThreadState* __tstate = wxPyBeginAllowThreads();
55132 (arg1)->LeftOf(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_RightOf(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_RightOf",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_RightOf" "', 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_RightOf" "', 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_RightOf" "', expected argument " "3"" of type '" "int""'");
55176 }
55177 arg3 = static_cast< int >(val3);
55178 }
55179 {
55180 PyThreadState* __tstate = wxPyBeginAllowThreads();
55181 (arg1)->RightOf(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_Above(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_Above",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_Above" "', 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_Above" "', 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_Above" "', expected argument " "3"" of type '" "int""'");
55225 }
55226 arg3 = static_cast< int >(val3);
55227 }
55228 {
55229 PyThreadState* __tstate = wxPyBeginAllowThreads();
55230 (arg1)->Above(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_Below(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55242 PyObject *resultobj = 0;
55243 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55244 wxWindow *arg2 = (wxWindow *) 0 ;
55245 int arg3 = (int) 0 ;
55246 void *argp1 = 0 ;
55247 int res1 = 0 ;
55248 void *argp2 = 0 ;
55249 int res2 = 0 ;
55250 int val3 ;
55251 int ecode3 = 0 ;
55252 PyObject * obj0 = 0 ;
55253 PyObject * obj1 = 0 ;
55254 PyObject * obj2 = 0 ;
55255 char * kwnames[] = {
55256 (char *) "self",(char *) "sibling",(char *) "marg", NULL
55257 };
55258
55259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
55260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55261 if (!SWIG_IsOK(res1)) {
55262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_Below" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55263 }
55264 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55265 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
55266 if (!SWIG_IsOK(res2)) {
55267 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_Below" "', expected argument " "2"" of type '" "wxWindow *""'");
55268 }
55269 arg2 = reinterpret_cast< wxWindow * >(argp2);
55270 if (obj2) {
55271 ecode3 = SWIG_AsVal_int(obj2, &val3);
55272 if (!SWIG_IsOK(ecode3)) {
55273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IndividualLayoutConstraint_Below" "', expected argument " "3"" of type '" "int""'");
55274 }
55275 arg3 = static_cast< int >(val3);
55276 }
55277 {
55278 PyThreadState* __tstate = wxPyBeginAllowThreads();
55279 (arg1)->Below(arg2,arg3);
55280 wxPyEndAllowThreads(__tstate);
55281 if (PyErr_Occurred()) SWIG_fail;
55282 }
55283 resultobj = SWIG_Py_Void();
55284 return resultobj;
55285fail:
55286 return NULL;
55287}
55288
55289
55290SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55291 PyObject *resultobj = 0;
55292 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55293 wxWindow *arg2 = (wxWindow *) 0 ;
55294 wxEdge arg3 ;
55295 int arg4 = (int) 0 ;
55296 void *argp1 = 0 ;
55297 int res1 = 0 ;
55298 void *argp2 = 0 ;
55299 int res2 = 0 ;
55300 int val3 ;
55301 int ecode3 = 0 ;
55302 int val4 ;
55303 int ecode4 = 0 ;
55304 PyObject * obj0 = 0 ;
55305 PyObject * obj1 = 0 ;
55306 PyObject * obj2 = 0 ;
55307 PyObject * obj3 = 0 ;
55308 char * kwnames[] = {
55309 (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL
55310 };
55311
55312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
55313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55314 if (!SWIG_IsOK(res1)) {
55315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SameAs" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55316 }
55317 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55318 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
55319 if (!SWIG_IsOK(res2)) {
55320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_SameAs" "', expected argument " "2"" of type '" "wxWindow *""'");
55321 }
55322 arg2 = reinterpret_cast< wxWindow * >(argp2);
55323 ecode3 = SWIG_AsVal_int(obj2, &val3);
55324 if (!SWIG_IsOK(ecode3)) {
55325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IndividualLayoutConstraint_SameAs" "', expected argument " "3"" of type '" "wxEdge""'");
55326 }
55327 arg3 = static_cast< wxEdge >(val3);
55328 if (obj3) {
55329 ecode4 = SWIG_AsVal_int(obj3, &val4);
55330 if (!SWIG_IsOK(ecode4)) {
55331 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IndividualLayoutConstraint_SameAs" "', expected argument " "4"" of type '" "int""'");
55332 }
55333 arg4 = static_cast< int >(val4);
55334 }
55335 {
55336 PyThreadState* __tstate = wxPyBeginAllowThreads();
55337 (arg1)->SameAs(arg2,arg3,arg4);
55338 wxPyEndAllowThreads(__tstate);
55339 if (PyErr_Occurred()) SWIG_fail;
55340 }
55341 resultobj = SWIG_Py_Void();
55342 return resultobj;
55343fail:
55344 return NULL;
55345}
55346
55347
55348SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55349 PyObject *resultobj = 0;
55350 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55351 wxWindow *arg2 = (wxWindow *) 0 ;
55352 wxEdge arg3 ;
55353 int arg4 ;
55354 void *argp1 = 0 ;
55355 int res1 = 0 ;
55356 void *argp2 = 0 ;
55357 int res2 = 0 ;
55358 int val3 ;
55359 int ecode3 = 0 ;
55360 int val4 ;
55361 int ecode4 = 0 ;
55362 PyObject * obj0 = 0 ;
55363 PyObject * obj1 = 0 ;
55364 PyObject * obj2 = 0 ;
55365 PyObject * obj3 = 0 ;
55366 char * kwnames[] = {
55367 (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL
55368 };
55369
55370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
55371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55372 if (!SWIG_IsOK(res1)) {
55373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_PercentOf" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55374 }
55375 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55376 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
55377 if (!SWIG_IsOK(res2)) {
55378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_PercentOf" "', expected argument " "2"" of type '" "wxWindow *""'");
55379 }
55380 arg2 = reinterpret_cast< wxWindow * >(argp2);
55381 ecode3 = SWIG_AsVal_int(obj2, &val3);
55382 if (!SWIG_IsOK(ecode3)) {
55383 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IndividualLayoutConstraint_PercentOf" "', expected argument " "3"" of type '" "wxEdge""'");
55384 }
55385 arg3 = static_cast< wxEdge >(val3);
55386 ecode4 = SWIG_AsVal_int(obj3, &val4);
55387 if (!SWIG_IsOK(ecode4)) {
55388 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IndividualLayoutConstraint_PercentOf" "', expected argument " "4"" of type '" "int""'");
55389 }
55390 arg4 = static_cast< int >(val4);
55391 {
55392 PyThreadState* __tstate = wxPyBeginAllowThreads();
55393 (arg1)->PercentOf(arg2,arg3,arg4);
55394 wxPyEndAllowThreads(__tstate);
55395 if (PyErr_Occurred()) SWIG_fail;
55396 }
55397 resultobj = SWIG_Py_Void();
55398 return resultobj;
55399fail:
55400 return NULL;
55401}
55402
55403
55404SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55405 PyObject *resultobj = 0;
55406 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55407 int arg2 ;
55408 void *argp1 = 0 ;
55409 int res1 = 0 ;
55410 int val2 ;
55411 int ecode2 = 0 ;
55412 PyObject * obj0 = 0 ;
55413 PyObject * obj1 = 0 ;
55414 char * kwnames[] = {
55415 (char *) "self",(char *) "val", NULL
55416 };
55417
55418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) SWIG_fail;
55419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55420 if (!SWIG_IsOK(res1)) {
55421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_Absolute" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55422 }
55423 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55424 ecode2 = SWIG_AsVal_int(obj1, &val2);
55425 if (!SWIG_IsOK(ecode2)) {
55426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_Absolute" "', expected argument " "2"" of type '" "int""'");
55427 }
55428 arg2 = static_cast< int >(val2);
55429 {
55430 PyThreadState* __tstate = wxPyBeginAllowThreads();
55431 (arg1)->Absolute(arg2);
55432 wxPyEndAllowThreads(__tstate);
55433 if (PyErr_Occurred()) SWIG_fail;
55434 }
55435 resultobj = SWIG_Py_Void();
55436 return resultobj;
55437fail:
55438 return NULL;
55439}
d55e5bfc
RD
55440
55441
1bd55598
RD
55442SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55443 PyObject *resultobj = 0;
55444 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55445 void *argp1 = 0 ;
55446 int res1 = 0 ;
55447 PyObject *swig_obj[1] ;
55448
55449 if (!args) SWIG_fail;
55450 swig_obj[0] = args;
55451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55452 if (!SWIG_IsOK(res1)) {
55453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_Unconstrained" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55454 }
55455 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55456 {
55457 PyThreadState* __tstate = wxPyBeginAllowThreads();
55458 (arg1)->Unconstrained();
55459 wxPyEndAllowThreads(__tstate);
55460 if (PyErr_Occurred()) SWIG_fail;
55461 }
55462 resultobj = SWIG_Py_Void();
55463 return resultobj;
55464fail:
55465 return NULL;
d55e5bfc
RD
55466}
55467
55468
1bd55598
RD
55469SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55470 PyObject *resultobj = 0;
55471 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55472 void *argp1 = 0 ;
55473 int res1 = 0 ;
55474 PyObject *swig_obj[1] ;
55475
55476 if (!args) SWIG_fail;
55477 swig_obj[0] = args;
55478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55479 if (!SWIG_IsOK(res1)) {
55480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_AsIs" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55481 }
55482 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55483 {
55484 PyThreadState* __tstate = wxPyBeginAllowThreads();
55485 (arg1)->AsIs();
55486 wxPyEndAllowThreads(__tstate);
55487 if (PyErr_Occurred()) SWIG_fail;
55488 }
55489 resultobj = SWIG_Py_Void();
55490 return resultobj;
55491fail:
55492 return NULL;
d55e5bfc
RD
55493}
55494
55495
1bd55598
RD
55496SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55497 PyObject *resultobj = 0;
55498 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55499 wxWindow *result = 0 ;
55500 void *argp1 = 0 ;
55501 int res1 = 0 ;
55502 PyObject *swig_obj[1] ;
55503
55504 if (!args) SWIG_fail;
55505 swig_obj[0] = args;
55506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55507 if (!SWIG_IsOK(res1)) {
55508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetOtherWindow" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55509 }
55510 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55511 {
55512 PyThreadState* __tstate = wxPyBeginAllowThreads();
55513 result = (wxWindow *)(arg1)->GetOtherWindow();
55514 wxPyEndAllowThreads(__tstate);
55515 if (PyErr_Occurred()) SWIG_fail;
55516 }
55517 {
55518 resultobj = wxPyMake_wxObject(result, 0);
55519 }
55520 return resultobj;
55521fail:
55522 return NULL;
d55e5bfc
RD
55523}
55524
55525
1bd55598
RD
55526SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55527 PyObject *resultobj = 0;
55528 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55529 wxEdge result;
55530 void *argp1 = 0 ;
55531 int res1 = 0 ;
55532 PyObject *swig_obj[1] ;
55533
55534 if (!args) SWIG_fail;
55535 swig_obj[0] = args;
55536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55537 if (!SWIG_IsOK(res1)) {
55538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetMyEdge" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
55539 }
55540 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55541 {
55542 PyThreadState* __tstate = wxPyBeginAllowThreads();
55543 result = (wxEdge)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge();
55544 wxPyEndAllowThreads(__tstate);
55545 if (PyErr_Occurred()) SWIG_fail;
55546 }
55547 resultobj = SWIG_From_int(static_cast< int >(result));
55548 return resultobj;
55549fail:
55550 return NULL;
55551}
55552
55553
55554SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55555 PyObject *resultobj = 0;
55556 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55557 wxEdge arg2 ;
55558 void *argp1 = 0 ;
55559 int res1 = 0 ;
55560 int val2 ;
55561 int ecode2 = 0 ;
55562 PyObject * obj0 = 0 ;
55563 PyObject * obj1 = 0 ;
55564 char * kwnames[] = {
55565 (char *) "self",(char *) "which", NULL
55566 };
55567
55568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) SWIG_fail;
55569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55570 if (!SWIG_IsOK(res1)) {
55571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SetEdge" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55572 }
55573 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55574 ecode2 = SWIG_AsVal_int(obj1, &val2);
55575 if (!SWIG_IsOK(ecode2)) {
55576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_SetEdge" "', expected argument " "2"" of type '" "wxEdge""'");
55577 }
55578 arg2 = static_cast< wxEdge >(val2);
55579 {
55580 PyThreadState* __tstate = wxPyBeginAllowThreads();
55581 (arg1)->SetEdge(arg2);
55582 wxPyEndAllowThreads(__tstate);
55583 if (PyErr_Occurred()) SWIG_fail;
55584 }
55585 resultobj = SWIG_Py_Void();
55586 return resultobj;
55587fail:
55588 return NULL;
55589}
55590
55591
55592SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55593 PyObject *resultobj = 0;
55594 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55595 int arg2 ;
55596 void *argp1 = 0 ;
55597 int res1 = 0 ;
55598 int val2 ;
55599 int ecode2 = 0 ;
55600 PyObject * obj0 = 0 ;
55601 PyObject * obj1 = 0 ;
55602 char * kwnames[] = {
55603 (char *) "self",(char *) "v", NULL
55604 };
55605
55606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
55607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55608 if (!SWIG_IsOK(res1)) {
55609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SetValue" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55610 }
55611 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55612 ecode2 = SWIG_AsVal_int(obj1, &val2);
55613 if (!SWIG_IsOK(ecode2)) {
55614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_SetValue" "', expected argument " "2"" of type '" "int""'");
55615 }
55616 arg2 = static_cast< int >(val2);
55617 {
55618 PyThreadState* __tstate = wxPyBeginAllowThreads();
55619 (arg1)->SetValue(arg2);
55620 wxPyEndAllowThreads(__tstate);
55621 if (PyErr_Occurred()) SWIG_fail;
55622 }
55623 resultobj = SWIG_Py_Void();
55624 return resultobj;
55625fail:
55626 return NULL;
d55e5bfc
RD
55627}
55628
55629
1bd55598
RD
55630SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55631 PyObject *resultobj = 0;
55632 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55633 int result;
55634 void *argp1 = 0 ;
55635 int res1 = 0 ;
55636 PyObject *swig_obj[1] ;
55637
55638 if (!args) SWIG_fail;
55639 swig_obj[0] = args;
55640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55641 if (!SWIG_IsOK(res1)) {
55642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetMargin" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55643 }
55644 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55645 {
55646 PyThreadState* __tstate = wxPyBeginAllowThreads();
55647 result = (int)(arg1)->GetMargin();
55648 wxPyEndAllowThreads(__tstate);
55649 if (PyErr_Occurred()) SWIG_fail;
55650 }
55651 resultobj = SWIG_From_int(static_cast< int >(result));
55652 return resultobj;
55653fail:
55654 return NULL;
55655}
55656
55657
55658SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55659 PyObject *resultobj = 0;
55660 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55661 int arg2 ;
55662 void *argp1 = 0 ;
55663 int res1 = 0 ;
55664 int val2 ;
55665 int ecode2 = 0 ;
55666 PyObject * obj0 = 0 ;
55667 PyObject * obj1 = 0 ;
55668 char * kwnames[] = {
55669 (char *) "self",(char *) "m", NULL
55670 };
55671
55672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) SWIG_fail;
55673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55674 if (!SWIG_IsOK(res1)) {
55675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SetMargin" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55676 }
55677 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55678 ecode2 = SWIG_AsVal_int(obj1, &val2);
55679 if (!SWIG_IsOK(ecode2)) {
55680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_SetMargin" "', expected argument " "2"" of type '" "int""'");
55681 }
55682 arg2 = static_cast< int >(val2);
55683 {
55684 PyThreadState* __tstate = wxPyBeginAllowThreads();
55685 (arg1)->SetMargin(arg2);
55686 wxPyEndAllowThreads(__tstate);
55687 if (PyErr_Occurred()) SWIG_fail;
55688 }
55689 resultobj = SWIG_Py_Void();
55690 return resultobj;
55691fail:
55692 return NULL;
d55e5bfc
RD
55693}
55694
55695
1bd55598
RD
55696SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55697 PyObject *resultobj = 0;
55698 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55699 int result;
55700 void *argp1 = 0 ;
55701 int res1 = 0 ;
55702 PyObject *swig_obj[1] ;
55703
55704 if (!args) SWIG_fail;
55705 swig_obj[0] = args;
55706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55707 if (!SWIG_IsOK(res1)) {
55708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetValue" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
55709 }
55710 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55711 {
55712 PyThreadState* __tstate = wxPyBeginAllowThreads();
55713 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue();
55714 wxPyEndAllowThreads(__tstate);
55715 if (PyErr_Occurred()) SWIG_fail;
55716 }
55717 resultobj = SWIG_From_int(static_cast< int >(result));
55718 return resultobj;
55719fail:
55720 return NULL;
d55e5bfc
RD
55721}
55722
55723
1bd55598
RD
55724SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55725 PyObject *resultobj = 0;
55726 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55727 int result;
55728 void *argp1 = 0 ;
55729 int res1 = 0 ;
55730 PyObject *swig_obj[1] ;
55731
55732 if (!args) SWIG_fail;
55733 swig_obj[0] = args;
55734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55735 if (!SWIG_IsOK(res1)) {
55736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetPercent" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
55737 }
55738 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55739 {
55740 PyThreadState* __tstate = wxPyBeginAllowThreads();
55741 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent();
55742 wxPyEndAllowThreads(__tstate);
55743 if (PyErr_Occurred()) SWIG_fail;
55744 }
55745 resultobj = SWIG_From_int(static_cast< int >(result));
55746 return resultobj;
55747fail:
55748 return NULL;
d55e5bfc
RD
55749}
55750
55751
1bd55598
RD
55752SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55753 PyObject *resultobj = 0;
55754 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55755 int result;
55756 void *argp1 = 0 ;
55757 int res1 = 0 ;
55758 PyObject *swig_obj[1] ;
55759
55760 if (!args) SWIG_fail;
55761 swig_obj[0] = args;
55762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55763 if (!SWIG_IsOK(res1)) {
55764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetOtherEdge" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
55765 }
55766 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55767 {
55768 PyThreadState* __tstate = wxPyBeginAllowThreads();
55769 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge();
55770 wxPyEndAllowThreads(__tstate);
55771 if (PyErr_Occurred()) SWIG_fail;
55772 }
55773 resultobj = SWIG_From_int(static_cast< int >(result));
55774 return resultobj;
55775fail:
55776 return NULL;
d55e5bfc
RD
55777}
55778
55779
1bd55598
RD
55780SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55781 PyObject *resultobj = 0;
55782 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55783 bool result;
55784 void *argp1 = 0 ;
55785 int res1 = 0 ;
55786 PyObject *swig_obj[1] ;
55787
55788 if (!args) SWIG_fail;
55789 swig_obj[0] = args;
55790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55791 if (!SWIG_IsOK(res1)) {
55792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetDone" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
55793 }
55794 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55795 {
55796 PyThreadState* __tstate = wxPyBeginAllowThreads();
55797 result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone();
55798 wxPyEndAllowThreads(__tstate);
55799 if (PyErr_Occurred()) SWIG_fail;
55800 }
55801 {
55802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
55803 }
55804 return resultobj;
55805fail:
55806 return NULL;
55807}
55808
55809
55810SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55811 PyObject *resultobj = 0;
55812 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55813 bool arg2 ;
55814 void *argp1 = 0 ;
55815 int res1 = 0 ;
55816 bool val2 ;
55817 int ecode2 = 0 ;
55818 PyObject * obj0 = 0 ;
55819 PyObject * obj1 = 0 ;
55820 char * kwnames[] = {
55821 (char *) "self",(char *) "d", NULL
55822 };
55823
55824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) SWIG_fail;
55825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55826 if (!SWIG_IsOK(res1)) {
55827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SetDone" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55828 }
55829 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55830 ecode2 = SWIG_AsVal_bool(obj1, &val2);
55831 if (!SWIG_IsOK(ecode2)) {
55832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_SetDone" "', expected argument " "2"" of type '" "bool""'");
55833 }
55834 arg2 = static_cast< bool >(val2);
55835 {
55836 PyThreadState* __tstate = wxPyBeginAllowThreads();
55837 (arg1)->SetDone(arg2);
55838 wxPyEndAllowThreads(__tstate);
55839 if (PyErr_Occurred()) SWIG_fail;
55840 }
55841 resultobj = SWIG_Py_Void();
55842 return resultobj;
55843fail:
55844 return NULL;
d55e5bfc
RD
55845}
55846
55847
1bd55598
RD
55848SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
55849 PyObject *resultobj = 0;
55850 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55851 wxRelationship result;
55852 void *argp1 = 0 ;
55853 int res1 = 0 ;
55854 PyObject *swig_obj[1] ;
55855
55856 if (!args) SWIG_fail;
55857 swig_obj[0] = args;
55858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55859 if (!SWIG_IsOK(res1)) {
55860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetRelationship" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55861 }
55862 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55863 {
55864 PyThreadState* __tstate = wxPyBeginAllowThreads();
55865 result = (wxRelationship)(arg1)->GetRelationship();
55866 wxPyEndAllowThreads(__tstate);
55867 if (PyErr_Occurred()) SWIG_fail;
55868 }
55869 resultobj = SWIG_From_int(static_cast< int >(result));
55870 return resultobj;
55871fail:
55872 return NULL;
55873}
55874
55875
55876SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55877 PyObject *resultobj = 0;
55878 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55879 wxRelationship arg2 ;
55880 void *argp1 = 0 ;
55881 int res1 = 0 ;
55882 int val2 ;
55883 int ecode2 = 0 ;
55884 PyObject * obj0 = 0 ;
55885 PyObject * obj1 = 0 ;
55886 char * kwnames[] = {
55887 (char *) "self",(char *) "r", NULL
55888 };
55889
55890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) SWIG_fail;
55891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55892 if (!SWIG_IsOK(res1)) {
55893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SetRelationship" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55894 }
55895 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55896 ecode2 = SWIG_AsVal_int(obj1, &val2);
55897 if (!SWIG_IsOK(ecode2)) {
55898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_SetRelationship" "', expected argument " "2"" of type '" "wxRelationship""'");
55899 }
55900 arg2 = static_cast< wxRelationship >(val2);
55901 {
55902 PyThreadState* __tstate = wxPyBeginAllowThreads();
55903 (arg1)->SetRelationship(arg2);
55904 wxPyEndAllowThreads(__tstate);
55905 if (PyErr_Occurred()) SWIG_fail;
55906 }
55907 resultobj = SWIG_Py_Void();
55908 return resultobj;
55909fail:
55910 return NULL;
55911}
55912
55913
55914SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55915 PyObject *resultobj = 0;
55916 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55917 wxWindow *arg2 = (wxWindow *) 0 ;
55918 bool result;
55919 void *argp1 = 0 ;
55920 int res1 = 0 ;
55921 void *argp2 = 0 ;
55922 int res2 = 0 ;
55923 PyObject * obj0 = 0 ;
55924 PyObject * obj1 = 0 ;
55925 char * kwnames[] = {
55926 (char *) "self",(char *) "otherW", NULL
55927 };
55928
55929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) SWIG_fail;
55930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55931 if (!SWIG_IsOK(res1)) {
55932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_ResetIfWin" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55933 }
55934 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55935 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
55936 if (!SWIG_IsOK(res2)) {
55937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_ResetIfWin" "', expected argument " "2"" of type '" "wxWindow *""'");
55938 }
55939 arg2 = reinterpret_cast< wxWindow * >(argp2);
55940 {
55941 PyThreadState* __tstate = wxPyBeginAllowThreads();
55942 result = (bool)(arg1)->ResetIfWin(arg2);
55943 wxPyEndAllowThreads(__tstate);
55944 if (PyErr_Occurred()) SWIG_fail;
55945 }
55946 {
55947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
55948 }
55949 return resultobj;
55950fail:
55951 return NULL;
55952}
55953
55954
55955SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
55956 PyObject *resultobj = 0;
55957 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
55958 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
55959 wxWindow *arg3 = (wxWindow *) 0 ;
55960 bool result;
55961 void *argp1 = 0 ;
55962 int res1 = 0 ;
55963 void *argp2 = 0 ;
55964 int res2 = 0 ;
55965 void *argp3 = 0 ;
55966 int res3 = 0 ;
55967 PyObject * obj0 = 0 ;
55968 PyObject * obj1 = 0 ;
55969 PyObject * obj2 = 0 ;
55970 char * kwnames[] = {
55971 (char *) "self",(char *) "constraints",(char *) "win", NULL
55972 };
55973
55974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
55975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
55976 if (!SWIG_IsOK(res1)) {
55977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SatisfyConstraint" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
55978 }
55979 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
55980 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
55981 if (!SWIG_IsOK(res2)) {
55982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_SatisfyConstraint" "', expected argument " "2"" of type '" "wxLayoutConstraints *""'");
55983 }
55984 arg2 = reinterpret_cast< wxLayoutConstraints * >(argp2);
55985 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
55986 if (!SWIG_IsOK(res3)) {
55987 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IndividualLayoutConstraint_SatisfyConstraint" "', expected argument " "3"" of type '" "wxWindow *""'");
55988 }
55989 arg3 = reinterpret_cast< wxWindow * >(argp3);
55990 {
55991 PyThreadState* __tstate = wxPyBeginAllowThreads();
55992 result = (bool)(arg1)->SatisfyConstraint(arg2,arg3);
55993 wxPyEndAllowThreads(__tstate);
55994 if (PyErr_Occurred()) SWIG_fail;
55995 }
55996 {
55997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
55998 }
55999 return resultobj;
56000fail:
56001 return NULL;
56002}
56003
56004
56005SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
56006 PyObject *resultobj = 0;
56007 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
56008 wxEdge arg2 ;
56009 wxWindow *arg3 = (wxWindow *) 0 ;
56010 wxWindow *arg4 = (wxWindow *) 0 ;
56011 int result;
56012 void *argp1 = 0 ;
56013 int res1 = 0 ;
56014 int val2 ;
56015 int ecode2 = 0 ;
56016 void *argp3 = 0 ;
56017 int res3 = 0 ;
56018 void *argp4 = 0 ;
56019 int res4 = 0 ;
56020 PyObject * obj0 = 0 ;
56021 PyObject * obj1 = 0 ;
56022 PyObject * obj2 = 0 ;
56023 PyObject * obj3 = 0 ;
56024 char * kwnames[] = {
56025 (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL
56026 };
56027
56028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
56029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56030 if (!SWIG_IsOK(res1)) {
56031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetEdge" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
56032 }
56033 arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
56034 ecode2 = SWIG_AsVal_int(obj1, &val2);
56035 if (!SWIG_IsOK(ecode2)) {
56036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_GetEdge" "', expected argument " "2"" of type '" "wxEdge""'");
56037 }
56038 arg2 = static_cast< wxEdge >(val2);
56039 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
56040 if (!SWIG_IsOK(res3)) {
56041 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IndividualLayoutConstraint_GetEdge" "', expected argument " "3"" of type '" "wxWindow *""'");
56042 }
56043 arg3 = reinterpret_cast< wxWindow * >(argp3);
56044 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
56045 if (!SWIG_IsOK(res4)) {
56046 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IndividualLayoutConstraint_GetEdge" "', expected argument " "4"" of type '" "wxWindow *""'");
56047 }
56048 arg4 = reinterpret_cast< wxWindow * >(argp4);
56049 {
56050 PyThreadState* __tstate = wxPyBeginAllowThreads();
56051 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge(arg2,arg3,arg4);
56052 wxPyEndAllowThreads(__tstate);
56053 if (PyErr_Occurred()) SWIG_fail;
56054 }
56055 resultobj = SWIG_From_int(static_cast< int >(result));
56056 return resultobj;
56057fail:
56058 return NULL;
d55e5bfc
RD
56059}
56060
56061
1bd55598
RD
56062SWIGINTERN PyObject *IndividualLayoutConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56063 PyObject *obj;
56064 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
56065 SWIG_TypeNewClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_NewClientData(obj));
56066 return SWIG_Py_Void();
d55e5bfc
RD
56067}
56068
1bd55598
RD
56069SWIGINTERN PyObject *_wrap_LayoutConstraints_left_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56070 PyObject *resultobj = 0;
56071 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56072 wxIndividualLayoutConstraint *result = 0 ;
56073 void *argp1 = 0 ;
56074 int res1 = 0 ;
56075 PyObject *swig_obj[1] ;
56076
56077 if (!args) SWIG_fail;
56078 swig_obj[0] = args;
56079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56080 if (!SWIG_IsOK(res1)) {
56081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_left_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56082 }
56083 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56084 result = (wxIndividualLayoutConstraint *)& ((arg1)->left);
56085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56086 return resultobj;
56087fail:
56088 return NULL;
56089}
56090
56091
56092SWIGINTERN PyObject *_wrap_LayoutConstraints_top_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56093 PyObject *resultobj = 0;
56094 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56095 wxIndividualLayoutConstraint *result = 0 ;
56096 void *argp1 = 0 ;
56097 int res1 = 0 ;
56098 PyObject *swig_obj[1] ;
56099
56100 if (!args) SWIG_fail;
56101 swig_obj[0] = args;
56102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56103 if (!SWIG_IsOK(res1)) {
56104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_top_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56105 }
56106 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56107 result = (wxIndividualLayoutConstraint *)& ((arg1)->top);
56108 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56109 return resultobj;
56110fail:
56111 return NULL;
56112}
56113
56114
56115SWIGINTERN PyObject *_wrap_LayoutConstraints_right_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56116 PyObject *resultobj = 0;
56117 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56118 wxIndividualLayoutConstraint *result = 0 ;
56119 void *argp1 = 0 ;
56120 int res1 = 0 ;
56121 PyObject *swig_obj[1] ;
56122
56123 if (!args) SWIG_fail;
56124 swig_obj[0] = args;
56125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56126 if (!SWIG_IsOK(res1)) {
56127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_right_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56128 }
56129 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56130 result = (wxIndividualLayoutConstraint *)& ((arg1)->right);
56131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56132 return resultobj;
56133fail:
56134 return NULL;
56135}
56136
56137
56138SWIGINTERN PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56139 PyObject *resultobj = 0;
56140 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56141 wxIndividualLayoutConstraint *result = 0 ;
56142 void *argp1 = 0 ;
56143 int res1 = 0 ;
56144 PyObject *swig_obj[1] ;
56145
56146 if (!args) SWIG_fail;
56147 swig_obj[0] = args;
56148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56149 if (!SWIG_IsOK(res1)) {
56150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_bottom_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56151 }
56152 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56153 result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom);
56154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56155 return resultobj;
56156fail:
56157 return NULL;
56158}
56159
56160
56161SWIGINTERN PyObject *_wrap_LayoutConstraints_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56162 PyObject *resultobj = 0;
56163 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56164 wxIndividualLayoutConstraint *result = 0 ;
56165 void *argp1 = 0 ;
56166 int res1 = 0 ;
56167 PyObject *swig_obj[1] ;
56168
56169 if (!args) SWIG_fail;
56170 swig_obj[0] = args;
56171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56172 if (!SWIG_IsOK(res1)) {
56173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_width_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56174 }
56175 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56176 result = (wxIndividualLayoutConstraint *)& ((arg1)->width);
56177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56178 return resultobj;
56179fail:
56180 return NULL;
56181}
56182
56183
56184SWIGINTERN PyObject *_wrap_LayoutConstraints_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56185 PyObject *resultobj = 0;
56186 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56187 wxIndividualLayoutConstraint *result = 0 ;
56188 void *argp1 = 0 ;
56189 int res1 = 0 ;
56190 PyObject *swig_obj[1] ;
56191
56192 if (!args) SWIG_fail;
56193 swig_obj[0] = args;
56194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56195 if (!SWIG_IsOK(res1)) {
56196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_height_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56197 }
56198 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56199 result = (wxIndividualLayoutConstraint *)& ((arg1)->height);
56200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56201 return resultobj;
56202fail:
56203 return NULL;
56204}
56205
56206
56207SWIGINTERN PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56208 PyObject *resultobj = 0;
56209 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56210 wxIndividualLayoutConstraint *result = 0 ;
56211 void *argp1 = 0 ;
56212 int res1 = 0 ;
56213 PyObject *swig_obj[1] ;
56214
56215 if (!args) SWIG_fail;
56216 swig_obj[0] = args;
56217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56218 if (!SWIG_IsOK(res1)) {
56219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_centreX_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56220 }
56221 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56222 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX);
56223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56224 return resultobj;
56225fail:
56226 return NULL;
56227}
56228
56229
56230SWIGINTERN PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56231 PyObject *resultobj = 0;
56232 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56233 wxIndividualLayoutConstraint *result = 0 ;
56234 void *argp1 = 0 ;
56235 int res1 = 0 ;
56236 PyObject *swig_obj[1] ;
56237
56238 if (!args) SWIG_fail;
56239 swig_obj[0] = args;
56240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56241 if (!SWIG_IsOK(res1)) {
56242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_centreY_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56243 }
56244 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56245 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY);
56246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
56247 return resultobj;
56248fail:
56249 return NULL;
d55e5bfc
RD
56250}
56251
56252
1bd55598
RD
56253SWIGINTERN PyObject *_wrap_new_LayoutConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56254 PyObject *resultobj = 0;
56255 wxLayoutConstraints *result = 0 ;
56256
56257 if (!SWIG_Python_UnpackTuple(args,"new_LayoutConstraints",0,0,0)) SWIG_fail;
56258 {
56259 PyThreadState* __tstate = wxPyBeginAllowThreads();
56260 result = (wxLayoutConstraints *)new wxLayoutConstraints();
56261 wxPyEndAllowThreads(__tstate);
56262 if (PyErr_Occurred()) SWIG_fail;
56263 }
56264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_NEW | 0 );
56265 return resultobj;
56266fail:
56267 return NULL;
d55e5bfc
RD
56268}
56269
56270
1bd55598
RD
56271SWIGINTERN PyObject *_wrap_delete_LayoutConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56272 PyObject *resultobj = 0;
56273 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56274 void *argp1 = 0 ;
56275 int res1 = 0 ;
56276 PyObject *swig_obj[1] ;
56277
56278 if (!args) SWIG_fail;
56279 swig_obj[0] = args;
56280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_DISOWN | 0 );
56281 if (!SWIG_IsOK(res1)) {
56282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LayoutConstraints" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56283 }
56284 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56285 {
56286 PyThreadState* __tstate = wxPyBeginAllowThreads();
56287 delete arg1;
d55e5bfc 56288
1bd55598
RD
56289 wxPyEndAllowThreads(__tstate);
56290 if (PyErr_Occurred()) SWIG_fail;
56291 }
56292 resultobj = SWIG_Py_Void();
56293 return resultobj;
56294fail:
56295 return NULL;
56296}
56297
56298
56299SWIGINTERN PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
56300 PyObject *resultobj = 0;
56301 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56302 wxWindow *arg2 = (wxWindow *) 0 ;
56303 int *arg3 = (int *) 0 ;
56304 bool result;
56305 void *argp1 = 0 ;
56306 int res1 = 0 ;
56307 void *argp2 = 0 ;
56308 int res2 = 0 ;
56309 int temp3 ;
56310 int res3 = SWIG_TMPOBJ ;
56311 PyObject * obj0 = 0 ;
56312 PyObject * obj1 = 0 ;
56313 char * kwnames[] = {
56314 (char *) "self",(char *) "win", NULL
56315 };
56316
56317 arg3 = &temp3;
56318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) SWIG_fail;
56319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56320 if (!SWIG_IsOK(res1)) {
56321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_SatisfyConstraints" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
56322 }
56323 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56324 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
56325 if (!SWIG_IsOK(res2)) {
56326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutConstraints_SatisfyConstraints" "', expected argument " "2"" of type '" "wxWindow *""'");
56327 }
56328 arg2 = reinterpret_cast< wxWindow * >(argp2);
56329 {
56330 PyThreadState* __tstate = wxPyBeginAllowThreads();
56331 result = (bool)(arg1)->SatisfyConstraints(arg2,arg3);
56332 wxPyEndAllowThreads(__tstate);
56333 if (PyErr_Occurred()) SWIG_fail;
56334 }
56335 {
56336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
56337 }
56338 if (SWIG_IsTmpObj(res3)) {
56339 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
56340 } else {
56341 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
56342 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
56343 }
56344 return resultobj;
56345fail:
56346 return NULL;
d55e5bfc
RD
56347}
56348
56349
1bd55598
RD
56350SWIGINTERN PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56351 PyObject *resultobj = 0;
56352 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
56353 bool result;
56354 void *argp1 = 0 ;
56355 int res1 = 0 ;
56356 PyObject *swig_obj[1] ;
56357
56358 if (!args) SWIG_fail;
56359 swig_obj[0] = args;
56360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
56361 if (!SWIG_IsOK(res1)) {
56362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_AreSatisfied" "', expected argument " "1"" of type '" "wxLayoutConstraints const *""'");
56363 }
56364 arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
56365 {
56366 PyThreadState* __tstate = wxPyBeginAllowThreads();
56367 result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied();
56368 wxPyEndAllowThreads(__tstate);
56369 if (PyErr_Occurred()) SWIG_fail;
56370 }
56371 {
56372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
56373 }
56374 return resultobj;
56375fail:
56376 return NULL;
d55e5bfc
RD
56377}
56378
56379
1bd55598
RD
56380SWIGINTERN PyObject *LayoutConstraints_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56381 PyObject *obj;
56382 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
56383 SWIG_TypeNewClientData(SWIGTYPE_p_wxLayoutConstraints, SWIG_NewClientData(obj));
56384 return SWIG_Py_Void();
d55e5bfc
RD
56385}
56386
1bd55598
RD
56387SWIGINTERN PyObject *LayoutConstraints_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
56388 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
56389}
56390
1bd55598
RD
56391static PyMethodDef SwigMethods[] = {
56392 { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL},
1bd55598
RD
56393 { (char *)"Object_GetClassName", (PyCFunction)_wrap_Object_GetClassName, METH_O, NULL},
56394 { (char *)"Object_Destroy", (PyCFunction)_wrap_Object_Destroy, METH_O, NULL},
56395 { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL},
56396 { (char *)"Size_width_set", _wrap_Size_width_set, METH_VARARGS, NULL},
56397 { (char *)"Size_width_get", (PyCFunction)_wrap_Size_width_get, METH_O, NULL},
56398 { (char *)"Size_height_set", _wrap_Size_height_set, METH_VARARGS, NULL},
56399 { (char *)"Size_height_get", (PyCFunction)_wrap_Size_height_get, METH_O, NULL},
56400 { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL},
56401 { (char *)"delete_Size", (PyCFunction)_wrap_delete_Size, METH_O, NULL},
56402 { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
56403 { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
56404 { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL},
56405 { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
56406 { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL},
56407 { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL},
f5263701
RD
56408 { (char *)"Size_IncBy", (PyCFunction) _wrap_Size_IncBy, METH_VARARGS | METH_KEYWORDS, NULL},
56409 { (char *)"Size_DecBy", (PyCFunction) _wrap_Size_DecBy, METH_VARARGS | METH_KEYWORDS, NULL},
1eeb270e 56410 { (char *)"Size_Scale", (PyCFunction) _wrap_Size_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
56411 { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL},
56412 { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
56413 { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
56414 { (char *)"Size_GetWidth", (PyCFunction)_wrap_Size_GetWidth, METH_O, NULL},
56415 { (char *)"Size_GetHeight", (PyCFunction)_wrap_Size_GetHeight, METH_O, NULL},
56416 { (char *)"Size_IsFullySpecified", (PyCFunction)_wrap_Size_IsFullySpecified, METH_O, NULL},
56417 { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL},
56418 { (char *)"Size_Get", (PyCFunction)_wrap_Size_Get, METH_O, NULL},
56419 { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL},
56420 { (char *)"Size_swiginit", Size_swiginit, METH_VARARGS, NULL},
56421 { (char *)"RealPoint_x_set", _wrap_RealPoint_x_set, METH_VARARGS, NULL},
56422 { (char *)"RealPoint_x_get", (PyCFunction)_wrap_RealPoint_x_get, METH_O, NULL},
56423 { (char *)"RealPoint_y_set", _wrap_RealPoint_y_set, METH_VARARGS, NULL},
56424 { (char *)"RealPoint_y_get", (PyCFunction)_wrap_RealPoint_y_get, METH_O, NULL},
56425 { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL},
56426 { (char *)"delete_RealPoint", (PyCFunction)_wrap_delete_RealPoint, METH_O, NULL},
56427 { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
56428 { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
56429 { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL},
56430 { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
56431 { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL},
56432 { (char *)"RealPoint_Get", (PyCFunction)_wrap_RealPoint_Get, METH_O, NULL},
56433 { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL},
56434 { (char *)"RealPoint_swiginit", RealPoint_swiginit, METH_VARARGS, NULL},
56435 { (char *)"Point_x_set", _wrap_Point_x_set, METH_VARARGS, NULL},
56436 { (char *)"Point_x_get", (PyCFunction)_wrap_Point_x_get, METH_O, NULL},
56437 { (char *)"Point_y_set", _wrap_Point_y_set, METH_VARARGS, NULL},
56438 { (char *)"Point_y_get", (PyCFunction)_wrap_Point_y_get, METH_O, NULL},
56439 { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL},
56440 { (char *)"delete_Point", (PyCFunction)_wrap_delete_Point, METH_O, NULL},
56441 { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
56442 { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
56443 { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL},
56444 { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
56445 { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
56446 { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
56447 { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL},
56448 { (char *)"Point_Get", (PyCFunction)_wrap_Point_Get, METH_O, NULL},
56449 { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL},
56450 { (char *)"Point_swiginit", Point_swiginit, METH_VARARGS, NULL},
56451 { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL},
56452 { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL},
56453 { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL},
56454 { (char *)"new_RectS", (PyCFunction) _wrap_new_RectS, METH_VARARGS | METH_KEYWORDS, NULL},
56455 { (char *)"delete_Rect", (PyCFunction)_wrap_delete_Rect, METH_O, NULL},
56456 { (char *)"Rect_GetX", (PyCFunction)_wrap_Rect_GetX, METH_O, NULL},
56457 { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL},
56458 { (char *)"Rect_GetY", (PyCFunction)_wrap_Rect_GetY, METH_O, NULL},
56459 { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL},
56460 { (char *)"Rect_GetWidth", (PyCFunction)_wrap_Rect_GetWidth, METH_O, NULL},
56461 { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
56462 { (char *)"Rect_GetHeight", (PyCFunction)_wrap_Rect_GetHeight, METH_O, NULL},
56463 { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
56464 { (char *)"Rect_GetPosition", (PyCFunction)_wrap_Rect_GetPosition, METH_O, NULL},
56465 { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
56466 { (char *)"Rect_GetSize", (PyCFunction)_wrap_Rect_GetSize, METH_O, NULL},
56467 { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
56468 { (char *)"Rect_IsEmpty", (PyCFunction)_wrap_Rect_IsEmpty, METH_O, NULL},
56469 { (char *)"Rect_GetTopLeft", (PyCFunction)_wrap_Rect_GetTopLeft, METH_O, NULL},
56470 { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL},
56471 { (char *)"Rect_GetBottomRight", (PyCFunction)_wrap_Rect_GetBottomRight, METH_O, NULL},
56472 { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL},
5acb46e0
RD
56473 { (char *)"Rect_GetTopRight", (PyCFunction)_wrap_Rect_GetTopRight, METH_O, NULL},
56474 { (char *)"Rect_SetTopRight", (PyCFunction) _wrap_Rect_SetTopRight, METH_VARARGS | METH_KEYWORDS, NULL},
56475 { (char *)"Rect_GetBottomLeft", (PyCFunction)_wrap_Rect_GetBottomLeft, METH_O, NULL},
56476 { (char *)"Rect_SetBottomLeft", (PyCFunction) _wrap_Rect_SetBottomLeft, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
56477 { (char *)"Rect_GetLeft", (PyCFunction)_wrap_Rect_GetLeft, METH_O, NULL},
56478 { (char *)"Rect_GetTop", (PyCFunction)_wrap_Rect_GetTop, METH_O, NULL},
56479 { (char *)"Rect_GetBottom", (PyCFunction)_wrap_Rect_GetBottom, METH_O, NULL},
56480 { (char *)"Rect_GetRight", (PyCFunction)_wrap_Rect_GetRight, METH_O, NULL},
56481 { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL},
56482 { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL},
56483 { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL},
56484 { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL},
56485 { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL},
56486 { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL},
56487 { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL},
56488 { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
56489 { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
56490 { (char *)"Rect_Union", (PyCFunction) _wrap_Rect_Union, METH_VARARGS | METH_KEYWORDS, NULL},
56491 { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL},
56492 { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
56493 { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
56494 { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
56495 { (char *)"Rect_ContainsXY", (PyCFunction) _wrap_Rect_ContainsXY, METH_VARARGS | METH_KEYWORDS, NULL},
56496 { (char *)"Rect_Contains", (PyCFunction) _wrap_Rect_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
56497 { (char *)"Rect_ContainsRect", (PyCFunction) _wrap_Rect_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
56498 { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL},
56499 { (char *)"Rect_CenterIn", (PyCFunction) _wrap_Rect_CenterIn, METH_VARARGS | METH_KEYWORDS, NULL},
56500 { (char *)"Rect_x_set", _wrap_Rect_x_set, METH_VARARGS, NULL},
56501 { (char *)"Rect_x_get", (PyCFunction)_wrap_Rect_x_get, METH_O, NULL},
56502 { (char *)"Rect_y_set", _wrap_Rect_y_set, METH_VARARGS, NULL},
56503 { (char *)"Rect_y_get", (PyCFunction)_wrap_Rect_y_get, METH_O, NULL},
56504 { (char *)"Rect_width_set", _wrap_Rect_width_set, METH_VARARGS, NULL},
56505 { (char *)"Rect_width_get", (PyCFunction)_wrap_Rect_width_get, METH_O, NULL},
56506 { (char *)"Rect_height_set", _wrap_Rect_height_set, METH_VARARGS, NULL},
56507 { (char *)"Rect_height_get", (PyCFunction)_wrap_Rect_height_get, METH_O, NULL},
56508 { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL},
56509 { (char *)"Rect_Get", (PyCFunction)_wrap_Rect_Get, METH_O, NULL},
56510 { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL},
56511 { (char *)"Rect_swiginit", Rect_swiginit, METH_VARARGS, NULL},
56512 { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
56513 { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL},
56514 { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL},
56515 { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 56516 { (char *)"delete_Point2D", (PyCFunction)_wrap_delete_Point2D, METH_O, NULL},
1bd55598
RD
56517 { (char *)"Point2D_GetFloor", (PyCFunction)_wrap_Point2D_GetFloor, METH_O, NULL},
56518 { (char *)"Point2D_GetRounded", (PyCFunction)_wrap_Point2D_GetRounded, METH_O, NULL},
56519 { (char *)"Point2D_GetVectorLength", (PyCFunction)_wrap_Point2D_GetVectorLength, METH_O, NULL},
56520 { (char *)"Point2D_GetVectorAngle", (PyCFunction)_wrap_Point2D_GetVectorAngle, METH_O, NULL},
56521 { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL},
56522 { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL},
56523 { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL},
56524 { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL},
56525 { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL},
56526 { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL},
56527 { (char *)"Point2D___neg__", (PyCFunction)_wrap_Point2D___neg__, METH_O, NULL},
56528 { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
56529 { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
56530 { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL},
56531 { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL},
56532 { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
56533 { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
56534 { (char *)"Point2D_x_set", _wrap_Point2D_x_set, METH_VARARGS, NULL},
56535 { (char *)"Point2D_x_get", (PyCFunction)_wrap_Point2D_x_get, METH_O, NULL},
56536 { (char *)"Point2D_y_set", _wrap_Point2D_y_set, METH_VARARGS, NULL},
56537 { (char *)"Point2D_y_get", (PyCFunction)_wrap_Point2D_y_get, METH_O, NULL},
56538 { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL},
56539 { (char *)"Point2D_Get", (PyCFunction)_wrap_Point2D_Get, METH_O, NULL},
56540 { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL},
56541 { (char *)"Point2D_swiginit", Point2D_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
56542 { (char *)"new_Rect2D", (PyCFunction) _wrap_new_Rect2D, METH_VARARGS | METH_KEYWORDS, NULL},
56543 { (char *)"delete_Rect2D", (PyCFunction)_wrap_delete_Rect2D, METH_O, NULL},
56544 { (char *)"Rect2D_GetPosition", (PyCFunction)_wrap_Rect2D_GetPosition, METH_O, NULL},
56545 { (char *)"Rect2D_GetSize", (PyCFunction)_wrap_Rect2D_GetSize, METH_O, NULL},
56546 { (char *)"Rect2D_GetLeft", (PyCFunction)_wrap_Rect2D_GetLeft, METH_O, NULL},
56547 { (char *)"Rect2D_SetLeft", (PyCFunction) _wrap_Rect2D_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL},
56548 { (char *)"Rect2D_MoveLeftTo", (PyCFunction) _wrap_Rect2D_MoveLeftTo, METH_VARARGS | METH_KEYWORDS, NULL},
56549 { (char *)"Rect2D_GetTop", (PyCFunction)_wrap_Rect2D_GetTop, METH_O, NULL},
56550 { (char *)"Rect2D_SetTop", (PyCFunction) _wrap_Rect2D_SetTop, METH_VARARGS | METH_KEYWORDS, NULL},
56551 { (char *)"Rect2D_MoveTopTo", (PyCFunction) _wrap_Rect2D_MoveTopTo, METH_VARARGS | METH_KEYWORDS, NULL},
56552 { (char *)"Rect2D_GetBottom", (PyCFunction)_wrap_Rect2D_GetBottom, METH_O, NULL},
56553 { (char *)"Rect2D_SetBottom", (PyCFunction) _wrap_Rect2D_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL},
56554 { (char *)"Rect2D_MoveBottomTo", (PyCFunction) _wrap_Rect2D_MoveBottomTo, METH_VARARGS | METH_KEYWORDS, NULL},
56555 { (char *)"Rect2D_GetRight", (PyCFunction)_wrap_Rect2D_GetRight, METH_O, NULL},
56556 { (char *)"Rect2D_SetRight", (PyCFunction) _wrap_Rect2D_SetRight, METH_VARARGS | METH_KEYWORDS, NULL},
56557 { (char *)"Rect2D_MoveRightTo", (PyCFunction) _wrap_Rect2D_MoveRightTo, METH_VARARGS | METH_KEYWORDS, NULL},
56558 { (char *)"Rect2D_GetLeftTop", (PyCFunction)_wrap_Rect2D_GetLeftTop, METH_O, NULL},
56559 { (char *)"Rect2D_SetLeftTop", (PyCFunction) _wrap_Rect2D_SetLeftTop, METH_VARARGS | METH_KEYWORDS, NULL},
56560 { (char *)"Rect2D_MoveLeftTopTo", (PyCFunction) _wrap_Rect2D_MoveLeftTopTo, METH_VARARGS | METH_KEYWORDS, NULL},
56561 { (char *)"Rect2D_GetLeftBottom", (PyCFunction)_wrap_Rect2D_GetLeftBottom, METH_O, NULL},
56562 { (char *)"Rect2D_SetLeftBottom", (PyCFunction) _wrap_Rect2D_SetLeftBottom, METH_VARARGS | METH_KEYWORDS, NULL},
56563 { (char *)"Rect2D_MoveLeftBottomTo", (PyCFunction) _wrap_Rect2D_MoveLeftBottomTo, METH_VARARGS | METH_KEYWORDS, NULL},
56564 { (char *)"Rect2D_GetRightTop", (PyCFunction)_wrap_Rect2D_GetRightTop, METH_O, NULL},
56565 { (char *)"Rect2D_SetRightTop", (PyCFunction) _wrap_Rect2D_SetRightTop, METH_VARARGS | METH_KEYWORDS, NULL},
56566 { (char *)"Rect2D_MoveRightTopTo", (PyCFunction) _wrap_Rect2D_MoveRightTopTo, METH_VARARGS | METH_KEYWORDS, NULL},
56567 { (char *)"Rect2D_GetRightBottom", (PyCFunction)_wrap_Rect2D_GetRightBottom, METH_O, NULL},
56568 { (char *)"Rect2D_SetRightBottom", (PyCFunction) _wrap_Rect2D_SetRightBottom, METH_VARARGS | METH_KEYWORDS, NULL},
56569 { (char *)"Rect2D_MoveRightBottomTo", (PyCFunction) _wrap_Rect2D_MoveRightBottomTo, METH_VARARGS | METH_KEYWORDS, NULL},
56570 { (char *)"Rect2D_GetCentre", (PyCFunction)_wrap_Rect2D_GetCentre, METH_O, NULL},
56571 { (char *)"Rect2D_SetCentre", (PyCFunction) _wrap_Rect2D_SetCentre, METH_VARARGS | METH_KEYWORDS, NULL},
56572 { (char *)"Rect2D_MoveCentreTo", (PyCFunction) _wrap_Rect2D_MoveCentreTo, METH_VARARGS | METH_KEYWORDS, NULL},
56573 { (char *)"Rect2D_GetOutcode", (PyCFunction) _wrap_Rect2D_GetOutcode, METH_VARARGS | METH_KEYWORDS, NULL},
56574 { (char *)"Rect2D_Contains", (PyCFunction) _wrap_Rect2D_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
56575 { (char *)"Rect2D_ContainsRect", (PyCFunction) _wrap_Rect2D_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
56576 { (char *)"Rect2D_IsEmpty", (PyCFunction)_wrap_Rect2D_IsEmpty, METH_O, NULL},
56577 { (char *)"Rect2D_HaveEqualSize", (PyCFunction) _wrap_Rect2D_HaveEqualSize, METH_VARARGS | METH_KEYWORDS, NULL},
56578 { (char *)"Rect2D_Inset", _wrap_Rect2D_Inset, METH_VARARGS, NULL},
56579 { (char *)"Rect2D_Offset", (PyCFunction) _wrap_Rect2D_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
56580 { (char *)"Rect2D_ConstrainTo", (PyCFunction) _wrap_Rect2D_ConstrainTo, METH_VARARGS | METH_KEYWORDS, NULL},
56581 { (char *)"Rect2D_Interpolate", (PyCFunction) _wrap_Rect2D_Interpolate, METH_VARARGS | METH_KEYWORDS, NULL},
56582 { (char *)"Rect2D_Intersect", (PyCFunction) _wrap_Rect2D_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
56583 { (char *)"Rect2D_CreateIntersection", (PyCFunction) _wrap_Rect2D_CreateIntersection, METH_VARARGS | METH_KEYWORDS, NULL},
56584 { (char *)"Rect2D_Intersects", (PyCFunction) _wrap_Rect2D_Intersects, METH_VARARGS | METH_KEYWORDS, NULL},
56585 { (char *)"Rect2D_Union", (PyCFunction) _wrap_Rect2D_Union, METH_VARARGS | METH_KEYWORDS, NULL},
56586 { (char *)"Rect2D_CreateUnion", (PyCFunction) _wrap_Rect2D_CreateUnion, METH_VARARGS | METH_KEYWORDS, NULL},
56587 { (char *)"Rect2D_Scale", _wrap_Rect2D_Scale, METH_VARARGS, NULL},
56588 { (char *)"Rect2D___eq__", (PyCFunction) _wrap_Rect2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
56589 { (char *)"Rect2D___ne__", (PyCFunction) _wrap_Rect2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
56590 { (char *)"Rect2D_x_set", _wrap_Rect2D_x_set, METH_VARARGS, NULL},
56591 { (char *)"Rect2D_x_get", (PyCFunction)_wrap_Rect2D_x_get, METH_O, NULL},
56592 { (char *)"Rect2D_y_set", _wrap_Rect2D_y_set, METH_VARARGS, NULL},
56593 { (char *)"Rect2D_y_get", (PyCFunction)_wrap_Rect2D_y_get, METH_O, NULL},
56594 { (char *)"Rect2D_width_set", _wrap_Rect2D_width_set, METH_VARARGS, NULL},
56595 { (char *)"Rect2D_width_get", (PyCFunction)_wrap_Rect2D_width_get, METH_O, NULL},
56596 { (char *)"Rect2D_height_set", _wrap_Rect2D_height_set, METH_VARARGS, NULL},
56597 { (char *)"Rect2D_height_get", (PyCFunction)_wrap_Rect2D_height_get, METH_O, NULL},
56598 { (char *)"Rect2D_Set", (PyCFunction) _wrap_Rect2D_Set, METH_VARARGS | METH_KEYWORDS, NULL},
56599 { (char *)"Rect2D_Get", (PyCFunction)_wrap_Rect2D_Get, METH_O, NULL},
56600 { (char *)"Rect2D_swigregister", Rect2D_swigregister, METH_VARARGS, NULL},
56601 { (char *)"Rect2D_swiginit", Rect2D_swiginit, METH_VARARGS, NULL},
1bd55598
RD
56602 { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL},
56603 { (char *)"delete_InputStream", (PyCFunction)_wrap_delete_InputStream, METH_O, NULL},
56604 { (char *)"InputStream_close", (PyCFunction)_wrap_InputStream_close, METH_O, NULL},
56605 { (char *)"InputStream_flush", (PyCFunction)_wrap_InputStream_flush, METH_O, NULL},
56606 { (char *)"InputStream_eof", (PyCFunction)_wrap_InputStream_eof, METH_O, NULL},
56607 { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL},
56608 { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL},
56609 { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL},
56610 { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL},
56611 { (char *)"InputStream_tell", (PyCFunction)_wrap_InputStream_tell, METH_O, NULL},
56612 { (char *)"InputStream_Peek", (PyCFunction)_wrap_InputStream_Peek, METH_O, NULL},
56613 { (char *)"InputStream_GetC", (PyCFunction)_wrap_InputStream_GetC, METH_O, NULL},
56614 { (char *)"InputStream_LastRead", (PyCFunction)_wrap_InputStream_LastRead, METH_O, NULL},
56615 { (char *)"InputStream_CanRead", (PyCFunction)_wrap_InputStream_CanRead, METH_O, NULL},
56616 { (char *)"InputStream_Eof", (PyCFunction)_wrap_InputStream_Eof, METH_O, NULL},
56617 { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL},
56618 { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL},
56619 { (char *)"InputStream_TellI", (PyCFunction)_wrap_InputStream_TellI, METH_O, NULL},
56620 { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL},
56621 { (char *)"InputStream_swiginit", InputStream_swiginit, METH_VARARGS, NULL},
56622 { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL},
56623 { (char *)"OutputStream_LastWrite", (PyCFunction)_wrap_OutputStream_LastWrite, METH_O, NULL},
56624 { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL},
56625 { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL},
56626 { (char *)"delete_FSFile", (PyCFunction)_wrap_delete_FSFile, METH_O, NULL},
56627 { (char *)"FSFile_GetStream", (PyCFunction)_wrap_FSFile_GetStream, METH_O, NULL},
ac5d357a 56628 { (char *)"FSFile_DetachStream", (PyCFunction)_wrap_FSFile_DetachStream, METH_O, NULL},
1bd55598
RD
56629 { (char *)"FSFile_GetMimeType", (PyCFunction)_wrap_FSFile_GetMimeType, METH_O, NULL},
56630 { (char *)"FSFile_GetLocation", (PyCFunction)_wrap_FSFile_GetLocation, METH_O, NULL},
56631 { (char *)"FSFile_GetAnchor", (PyCFunction)_wrap_FSFile_GetAnchor, METH_O, NULL},
56632 { (char *)"FSFile_GetModificationTime", (PyCFunction)_wrap_FSFile_GetModificationTime, METH_O, NULL},
56633 { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL},
56634 { (char *)"FSFile_swiginit", FSFile_swiginit, METH_VARARGS, NULL},
50f151d7 56635 { (char *)"delete_CPPFileSystemHandler", (PyCFunction)_wrap_delete_CPPFileSystemHandler, METH_O, NULL},
1bd55598
RD
56636 { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL},
56637 { (char *)"new_FileSystemHandler", (PyCFunction)_wrap_new_FileSystemHandler, METH_NOARGS, NULL},
56638 { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
56639 { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL},
56640 { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
56641 { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL},
56642 { (char *)"FileSystemHandler_FindNext", (PyCFunction)_wrap_FileSystemHandler_FindNext, METH_O, NULL},
56643 { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL},
56644 { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL},
56645 { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL},
56646 { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL},
56647 { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL},
56648 { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL},
56649 { (char *)"FileSystemHandler_swiginit", FileSystemHandler_swiginit, METH_VARARGS, NULL},
56650 { (char *)"new_FileSystem", (PyCFunction)_wrap_new_FileSystem, METH_NOARGS, NULL},
56651 { (char *)"delete_FileSystem", (PyCFunction)_wrap_delete_FileSystem, METH_O, NULL},
56652 { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL},
56653 { (char *)"FileSystem_GetPath", (PyCFunction)_wrap_FileSystem_GetPath, METH_O, NULL},
56654 { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
56655 { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL},
56656 { (char *)"FileSystem_FindNext", (PyCFunction)_wrap_FileSystem_FindNext, METH_O, NULL},
56657 { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL},
ac5d357a 56658 { (char *)"FileSystem_RemoveHandler", (PyCFunction) _wrap_FileSystem_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
56659 { (char *)"FileSystem_CleanUpHandlers", (PyCFunction)_wrap_FileSystem_CleanUpHandlers, METH_NOARGS, NULL},
56660 { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL},
56661 { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL},
56662 { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL},
56663 { (char *)"FileSystem_swiginit", FileSystem_swiginit, METH_VARARGS, NULL},
56664 { (char *)"new_InternetFSHandler", (PyCFunction)_wrap_new_InternetFSHandler, METH_NOARGS, NULL},
56665 { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL},
56666 { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
56667 { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL},
56668 { (char *)"InternetFSHandler_swiginit", InternetFSHandler_swiginit, METH_VARARGS, NULL},
56669 { (char *)"new_ZipFSHandler", (PyCFunction)_wrap_new_ZipFSHandler, METH_NOARGS, NULL},
56670 { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL},
56671 { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
56672 { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL},
56673 { (char *)"ZipFSHandler_FindNext", (PyCFunction)_wrap_ZipFSHandler_FindNext, METH_O, NULL},
56674 { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL},
56675 { (char *)"ZipFSHandler_swiginit", ZipFSHandler_swiginit, METH_VARARGS, NULL},
56676 { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL},
56677 { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
56678 { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL},
56679 { (char *)"new_MemoryFSHandler", (PyCFunction)_wrap_new_MemoryFSHandler, METH_NOARGS, NULL},
56680 { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL},
56681 { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL},
56682 { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
56683 { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL},
56684 { (char *)"MemoryFSHandler_FindNext", (PyCFunction)_wrap_MemoryFSHandler_FindNext, METH_O, NULL},
56685 { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL},
56686 { (char *)"MemoryFSHandler_swiginit", MemoryFSHandler_swiginit, METH_VARARGS, NULL},
56687 { (char *)"ImageHandler_GetName", (PyCFunction)_wrap_ImageHandler_GetName, METH_O, NULL},
56688 { (char *)"ImageHandler_GetExtension", (PyCFunction)_wrap_ImageHandler_GetExtension, METH_O, NULL},
56689 { (char *)"ImageHandler_GetType", (PyCFunction)_wrap_ImageHandler_GetType, METH_O, NULL},
56690 { (char *)"ImageHandler_GetMimeType", (PyCFunction)_wrap_ImageHandler_GetMimeType, METH_O, NULL},
56691 { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8 56692 { (char *)"ImageHandler_CanReadStream", (PyCFunction) _wrap_ImageHandler_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
56693 { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL},
56694 { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL},
56695 { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL},
56696 { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
56697 { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL},
56698 { (char *)"new_PyImageHandler", (PyCFunction)_wrap_new_PyImageHandler, METH_NOARGS, NULL},
56699 { (char *)"PyImageHandler__SetSelf", (PyCFunction) _wrap_PyImageHandler__SetSelf, METH_VARARGS | METH_KEYWORDS, NULL},
56700 { (char *)"PyImageHandler_swigregister", PyImageHandler_swigregister, METH_VARARGS, NULL},
56701 { (char *)"PyImageHandler_swiginit", PyImageHandler_swiginit, METH_VARARGS, NULL},
56702 { (char *)"new_ImageHistogram", (PyCFunction)_wrap_new_ImageHistogram, METH_NOARGS, NULL},
56703 { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL},
56704 { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL},
56705 { (char *)"ImageHistogram_GetCount", (PyCFunction) _wrap_ImageHistogram_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
56706 { (char *)"ImageHistogram_GetCountRGB", (PyCFunction) _wrap_ImageHistogram_GetCountRGB, METH_VARARGS | METH_KEYWORDS, NULL},
56707 { (char *)"ImageHistogram_GetCountColour", (PyCFunction) _wrap_ImageHistogram_GetCountColour, METH_VARARGS | METH_KEYWORDS, NULL},
56708 { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL},
56709 { (char *)"ImageHistogram_swiginit", ImageHistogram_swiginit, METH_VARARGS, NULL},
56710 { (char *)"new_Image_RGBValue", (PyCFunction) _wrap_new_Image_RGBValue, METH_VARARGS | METH_KEYWORDS, NULL},
56711 { (char *)"Image_RGBValue_red_set", _wrap_Image_RGBValue_red_set, METH_VARARGS, NULL},
56712 { (char *)"Image_RGBValue_red_get", (PyCFunction)_wrap_Image_RGBValue_red_get, METH_O, NULL},
56713 { (char *)"Image_RGBValue_green_set", _wrap_Image_RGBValue_green_set, METH_VARARGS, NULL},
56714 { (char *)"Image_RGBValue_green_get", (PyCFunction)_wrap_Image_RGBValue_green_get, METH_O, NULL},
56715 { (char *)"Image_RGBValue_blue_set", _wrap_Image_RGBValue_blue_set, METH_VARARGS, NULL},
56716 { (char *)"Image_RGBValue_blue_get", (PyCFunction)_wrap_Image_RGBValue_blue_get, METH_O, NULL},
56717 { (char *)"Image_RGBValue_swigregister", Image_RGBValue_swigregister, METH_VARARGS, NULL},
56718 { (char *)"Image_RGBValue_swiginit", Image_RGBValue_swiginit, METH_VARARGS, NULL},
56719 { (char *)"new_Image_HSVValue", (PyCFunction) _wrap_new_Image_HSVValue, METH_VARARGS | METH_KEYWORDS, NULL},
56720 { (char *)"Image_HSVValue_hue_set", _wrap_Image_HSVValue_hue_set, METH_VARARGS, NULL},
56721 { (char *)"Image_HSVValue_hue_get", (PyCFunction)_wrap_Image_HSVValue_hue_get, METH_O, NULL},
56722 { (char *)"Image_HSVValue_saturation_set", _wrap_Image_HSVValue_saturation_set, METH_VARARGS, NULL},
56723 { (char *)"Image_HSVValue_saturation_get", (PyCFunction)_wrap_Image_HSVValue_saturation_get, METH_O, NULL},
56724 { (char *)"Image_HSVValue_value_set", _wrap_Image_HSVValue_value_set, METH_VARARGS, NULL},
56725 { (char *)"Image_HSVValue_value_get", (PyCFunction)_wrap_Image_HSVValue_value_get, METH_O, NULL},
56726 { (char *)"Image_HSVValue_swigregister", Image_HSVValue_swigregister, METH_VARARGS, NULL},
56727 { (char *)"Image_HSVValue_swiginit", Image_HSVValue_swiginit, METH_VARARGS, NULL},
56728 { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL},
56729 { (char *)"delete_Image", (PyCFunction)_wrap_delete_Image, METH_O, NULL},
56730 { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL},
56731 { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL},
56732 { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL},
56733 { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL},
56734 { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
56735 { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL},
56736 { (char *)"new_ImageFromDataWithAlpha", (PyCFunction) _wrap_new_ImageFromDataWithAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
56737 { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL},
56738 { (char *)"Image_Destroy", (PyCFunction)_wrap_Image_Destroy, METH_O, NULL},
56739 { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
f5263701
RD
56740 { (char *)"Image_ResampleBox", (PyCFunction) _wrap_Image_ResampleBox, METH_VARARGS | METH_KEYWORDS, NULL},
56741 { (char *)"Image_ResampleBicubic", (PyCFunction) _wrap_Image_ResampleBicubic, METH_VARARGS | METH_KEYWORDS, NULL},
56742 { (char *)"Image_Blur", (PyCFunction) _wrap_Image_Blur, METH_VARARGS | METH_KEYWORDS, NULL},
56743 { (char *)"Image_BlurHorizontal", (PyCFunction) _wrap_Image_BlurHorizontal, METH_VARARGS | METH_KEYWORDS, NULL},
56744 { (char *)"Image_BlurVertical", (PyCFunction) _wrap_Image_BlurVertical, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
56745 { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL},
56746 { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL},
56747 { (char *)"Image_Resize", (PyCFunction) _wrap_Image_Resize, METH_VARARGS | METH_KEYWORDS, NULL},
56748 { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
56749 { (char *)"Image_SetRGBRect", (PyCFunction) _wrap_Image_SetRGBRect, METH_VARARGS | METH_KEYWORDS, NULL},
56750 { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL},
56751 { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL},
56752 { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL},
56753 { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
56754 { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
56755 { (char *)"Image_HasAlpha", (PyCFunction)_wrap_Image_HasAlpha, METH_O, NULL},
56756 { (char *)"Image_InitAlpha", (PyCFunction)_wrap_Image_InitAlpha, METH_O, NULL},
56757 { (char *)"Image_IsTransparent", (PyCFunction) _wrap_Image_IsTransparent, METH_VARARGS | METH_KEYWORDS, NULL},
56758 { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL},
56759 { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL},
56760 { (char *)"Image_ConvertColourToAlpha", (PyCFunction) _wrap_Image_ConvertColourToAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
56761 { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
56762 { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL},
56763 { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL},
56764 { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
56765 { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL},
56766 { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
56767 { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL},
56768 { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL},
56769 { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL},
56770 { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 56771 { (char *)"Image_IsOk", (PyCFunction)_wrap_Image_IsOk, METH_O, NULL},
1bd55598
RD
56772 { (char *)"Image_GetWidth", (PyCFunction)_wrap_Image_GetWidth, METH_O, NULL},
56773 { (char *)"Image_GetHeight", (PyCFunction)_wrap_Image_GetHeight, METH_O, NULL},
56774 { (char *)"Image_GetSize", (PyCFunction)_wrap_Image_GetSize, METH_O, NULL},
56775 { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL},
56776 { (char *)"Image_Size", (PyCFunction) _wrap_Image_Size, METH_VARARGS | METH_KEYWORDS, NULL},
56777 { (char *)"Image_Copy", (PyCFunction)_wrap_Image_Copy, METH_O, NULL},
56778 { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL},
56779 { (char *)"Image_GetData", (PyCFunction)_wrap_Image_GetData, METH_O, NULL},
56780 { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
56781 { (char *)"Image_GetDataBuffer", (PyCFunction)_wrap_Image_GetDataBuffer, METH_O, NULL},
56782 { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
56783 { (char *)"Image_GetAlphaData", (PyCFunction)_wrap_Image_GetAlphaData, METH_O, NULL},
56784 { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL},
56785 { (char *)"Image_GetAlphaBuffer", (PyCFunction)_wrap_Image_GetAlphaBuffer, METH_O, NULL},
56786 { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
56787 { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
56788 { (char *)"Image_GetOrFindMaskColour", (PyCFunction)_wrap_Image_GetOrFindMaskColour, METH_O, NULL},
56789 { (char *)"Image_GetMaskRed", (PyCFunction)_wrap_Image_GetMaskRed, METH_O, NULL},
56790 { (char *)"Image_GetMaskGreen", (PyCFunction)_wrap_Image_GetMaskGreen, METH_O, NULL},
56791 { (char *)"Image_GetMaskBlue", (PyCFunction)_wrap_Image_GetMaskBlue, METH_O, NULL},
56792 { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
56793 { (char *)"Image_HasMask", (PyCFunction)_wrap_Image_HasMask, METH_O, NULL},
56794 { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
56795 { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL},
56796 { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL},
56797 { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
56798 { (char *)"Image_ConvertToGreyscale", (PyCFunction) _wrap_Image_ConvertToGreyscale, METH_VARARGS | METH_KEYWORDS, NULL},
56799 { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL},
56800 { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL},
56801 { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
56802 { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL},
56803 { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
56804 { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL},
56805 { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL},
56806 { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL},
56807 { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL},
56808 { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL},
56809 { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL},
56810 { (char *)"Image_GetHandlers", (PyCFunction)_wrap_Image_GetHandlers, METH_NOARGS, NULL},
56811 { (char *)"Image_GetImageExtWildcard", (PyCFunction)_wrap_Image_GetImageExtWildcard, METH_NOARGS, NULL},
56812 { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
56813 { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
56814 { (char *)"Image_RotateHue", (PyCFunction) _wrap_Image_RotateHue, METH_VARARGS | METH_KEYWORDS, NULL},
56815 { (char *)"Image_RGBtoHSV", (PyCFunction) _wrap_Image_RGBtoHSV, METH_VARARGS | METH_KEYWORDS, NULL},
56816 { (char *)"Image_HSVtoRGB", (PyCFunction) _wrap_Image_HSVtoRGB, METH_VARARGS | METH_KEYWORDS, NULL},
56817 { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL},
56818 { (char *)"Image_swiginit", Image_swiginit, METH_VARARGS, NULL},
fc46b7f3 56819 { (char *)"_ImageFromBuffer", (PyCFunction) _wrap__ImageFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
56820 { (char *)"new_BMPHandler", (PyCFunction)_wrap_new_BMPHandler, METH_NOARGS, NULL},
56821 { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL},
56822 { (char *)"BMPHandler_swiginit", BMPHandler_swiginit, METH_VARARGS, NULL},
56823 { (char *)"new_ICOHandler", (PyCFunction)_wrap_new_ICOHandler, METH_NOARGS, NULL},
56824 { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL},
56825 { (char *)"ICOHandler_swiginit", ICOHandler_swiginit, METH_VARARGS, NULL},
56826 { (char *)"new_CURHandler", (PyCFunction)_wrap_new_CURHandler, METH_NOARGS, NULL},
56827 { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL},
56828 { (char *)"CURHandler_swiginit", CURHandler_swiginit, METH_VARARGS, NULL},
56829 { (char *)"new_ANIHandler", (PyCFunction)_wrap_new_ANIHandler, METH_NOARGS, NULL},
56830 { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL},
56831 { (char *)"ANIHandler_swiginit", ANIHandler_swiginit, METH_VARARGS, NULL},
56832 { (char *)"new_PNGHandler", (PyCFunction)_wrap_new_PNGHandler, METH_NOARGS, NULL},
56833 { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL},
56834 { (char *)"PNGHandler_swiginit", PNGHandler_swiginit, METH_VARARGS, NULL},
56835 { (char *)"new_GIFHandler", (PyCFunction)_wrap_new_GIFHandler, METH_NOARGS, NULL},
56836 { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL},
56837 { (char *)"GIFHandler_swiginit", GIFHandler_swiginit, METH_VARARGS, NULL},
56838 { (char *)"new_PCXHandler", (PyCFunction)_wrap_new_PCXHandler, METH_NOARGS, NULL},
56839 { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL},
56840 { (char *)"PCXHandler_swiginit", PCXHandler_swiginit, METH_VARARGS, NULL},
56841 { (char *)"new_JPEGHandler", (PyCFunction)_wrap_new_JPEGHandler, METH_NOARGS, NULL},
56842 { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL},
56843 { (char *)"JPEGHandler_swiginit", JPEGHandler_swiginit, METH_VARARGS, NULL},
56844 { (char *)"new_PNMHandler", (PyCFunction)_wrap_new_PNMHandler, METH_NOARGS, NULL},
56845 { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL},
56846 { (char *)"PNMHandler_swiginit", PNMHandler_swiginit, METH_VARARGS, NULL},
56847 { (char *)"new_XPMHandler", (PyCFunction)_wrap_new_XPMHandler, METH_NOARGS, NULL},
56848 { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL},
56849 { (char *)"XPMHandler_swiginit", XPMHandler_swiginit, METH_VARARGS, NULL},
56850 { (char *)"new_TIFFHandler", (PyCFunction)_wrap_new_TIFFHandler, METH_NOARGS, NULL},
56851 { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL},
56852 { (char *)"TIFFHandler_swiginit", TIFFHandler_swiginit, METH_VARARGS, NULL},
56853 { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL},
56854 { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL},
56855 { (char *)"new_EvtHandler", (PyCFunction)_wrap_new_EvtHandler, METH_NOARGS, NULL},
56856 { (char *)"EvtHandler_GetNextHandler", (PyCFunction)_wrap_EvtHandler_GetNextHandler, METH_O, NULL},
56857 { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction)_wrap_EvtHandler_GetPreviousHandler, METH_O, NULL},
56858 { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL},
56859 { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL},
56860 { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction)_wrap_EvtHandler_GetEvtHandlerEnabled, METH_O, NULL},
56861 { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
56862 { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56863 { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56864 { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction)_wrap_EvtHandler_ProcessPendingEvents, METH_O, NULL},
b39fe951
RD
56865 { (char *)"EvtHandler_AllowReentrance", (PyCFunction) _wrap_EvtHandler_AllowReentrance, METH_VARARGS | METH_KEYWORDS, NULL},
56866 { (char *)"EvtHandler_IsReentranceAllowed", (PyCFunction)_wrap_EvtHandler_IsReentranceAllowed, METH_O, NULL},
56867 { (char *)"EvtHandler_IsEventHandlingInProgress", (PyCFunction)_wrap_EvtHandler_IsEventHandlingInProgress, METH_O, NULL},
1bd55598
RD
56868 { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL},
56869 { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL},
56870 { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL},
56871 { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL},
56872 { (char *)"EvtHandler_swiginit", EvtHandler_swiginit, METH_VARARGS, NULL},
56873 { (char *)"NewEventType", (PyCFunction)_wrap_NewEventType, METH_NOARGS, NULL},
56874 { (char *)"delete_Event", (PyCFunction)_wrap_delete_Event, METH_O, NULL},
56875 { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL},
56876 { (char *)"Event_GetEventType", (PyCFunction)_wrap_Event_GetEventType, METH_O, NULL},
56877 { (char *)"Event_GetEventObject", (PyCFunction)_wrap_Event_GetEventObject, METH_O, NULL},
56878 { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL},
56879 { (char *)"Event_GetTimestamp", (PyCFunction)_wrap_Event_GetTimestamp, METH_O, NULL},
56880 { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL},
56881 { (char *)"Event_GetId", (PyCFunction)_wrap_Event_GetId, METH_O, NULL},
56882 { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
56883 { (char *)"Event_IsCommandEvent", (PyCFunction)_wrap_Event_IsCommandEvent, METH_O, NULL},
56884 { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL},
56885 { (char *)"Event_GetSkipped", (PyCFunction)_wrap_Event_GetSkipped, METH_O, NULL},
56886 { (char *)"Event_ShouldPropagate", (PyCFunction)_wrap_Event_ShouldPropagate, METH_O, NULL},
56887 { (char *)"Event_StopPropagation", (PyCFunction)_wrap_Event_StopPropagation, METH_O, NULL},
56888 { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL},
56889 { (char *)"Event_Clone", (PyCFunction)_wrap_Event_Clone, METH_O, NULL},
56890 { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL},
56891 { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL},
56892 { (char *)"delete_PropagationDisabler", (PyCFunction)_wrap_delete_PropagationDisabler, METH_O, NULL},
56893 { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL},
56894 { (char *)"PropagationDisabler_swiginit", PropagationDisabler_swiginit, METH_VARARGS, NULL},
56895 { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL},
56896 { (char *)"delete_PropagateOnce", (PyCFunction)_wrap_delete_PropagateOnce, METH_O, NULL},
56897 { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL},
56898 { (char *)"PropagateOnce_swiginit", PropagateOnce_swiginit, METH_VARARGS, NULL},
56899 { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56900 { (char *)"CommandEvent_GetSelection", (PyCFunction)_wrap_CommandEvent_GetSelection, METH_O, NULL},
56901 { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
56902 { (char *)"CommandEvent_GetString", (PyCFunction)_wrap_CommandEvent_GetString, METH_O, NULL},
56903 { (char *)"CommandEvent_IsChecked", (PyCFunction)_wrap_CommandEvent_IsChecked, METH_O, NULL},
56904 { (char *)"CommandEvent_IsSelection", (PyCFunction)_wrap_CommandEvent_IsSelection, METH_O, NULL},
56905 { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL},
56906 { (char *)"CommandEvent_GetExtraLong", (PyCFunction)_wrap_CommandEvent_GetExtraLong, METH_O, NULL},
56907 { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL},
56908 { (char *)"CommandEvent_GetInt", (PyCFunction)_wrap_CommandEvent_GetInt, METH_O, NULL},
56909 { (char *)"CommandEvent_GetClientData", (PyCFunction)_wrap_CommandEvent_GetClientData, METH_O, NULL},
56910 { (char *)"CommandEvent_SetClientData", (PyCFunction) _wrap_CommandEvent_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
56911 { (char *)"CommandEvent_Clone", (PyCFunction)_wrap_CommandEvent_Clone, METH_O, NULL},
56912 { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL},
56913 { (char *)"CommandEvent_swiginit", CommandEvent_swiginit, METH_VARARGS, NULL},
56914 { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56915 { (char *)"NotifyEvent_Veto", (PyCFunction)_wrap_NotifyEvent_Veto, METH_O, NULL},
56916 { (char *)"NotifyEvent_Allow", (PyCFunction)_wrap_NotifyEvent_Allow, METH_O, NULL},
56917 { (char *)"NotifyEvent_IsAllowed", (PyCFunction)_wrap_NotifyEvent_IsAllowed, METH_O, NULL},
56918 { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL},
56919 { (char *)"NotifyEvent_swiginit", NotifyEvent_swiginit, METH_VARARGS, NULL},
56920 { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56921 { (char *)"ScrollEvent_GetOrientation", (PyCFunction)_wrap_ScrollEvent_GetOrientation, METH_O, NULL},
56922 { (char *)"ScrollEvent_GetPosition", (PyCFunction)_wrap_ScrollEvent_GetPosition, METH_O, NULL},
56923 { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
56924 { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
56925 { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL},
56926 { (char *)"ScrollEvent_swiginit", ScrollEvent_swiginit, METH_VARARGS, NULL},
56927 { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56928 { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction)_wrap_ScrollWinEvent_GetOrientation, METH_O, NULL},
56929 { (char *)"ScrollWinEvent_GetPosition", (PyCFunction)_wrap_ScrollWinEvent_GetPosition, METH_O, NULL},
56930 { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
56931 { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
56932 { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL},
56933 { (char *)"ScrollWinEvent_swiginit", ScrollWinEvent_swiginit, METH_VARARGS, NULL},
56934 { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56935 { (char *)"MouseEvent_IsButton", (PyCFunction)_wrap_MouseEvent_IsButton, METH_O, NULL},
56936 { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL},
56937 { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL},
56938 { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL},
56939 { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL},
56940 { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL},
56941 { (char *)"MouseEvent_GetButton", (PyCFunction)_wrap_MouseEvent_GetButton, METH_O, NULL},
56942 { (char *)"MouseEvent_ControlDown", (PyCFunction)_wrap_MouseEvent_ControlDown, METH_O, NULL},
56943 { (char *)"MouseEvent_MetaDown", (PyCFunction)_wrap_MouseEvent_MetaDown, METH_O, NULL},
56944 { (char *)"MouseEvent_AltDown", (PyCFunction)_wrap_MouseEvent_AltDown, METH_O, NULL},
56945 { (char *)"MouseEvent_ShiftDown", (PyCFunction)_wrap_MouseEvent_ShiftDown, METH_O, NULL},
56946 { (char *)"MouseEvent_CmdDown", (PyCFunction)_wrap_MouseEvent_CmdDown, METH_O, NULL},
56947 { (char *)"MouseEvent_LeftDown", (PyCFunction)_wrap_MouseEvent_LeftDown, METH_O, NULL},
56948 { (char *)"MouseEvent_MiddleDown", (PyCFunction)_wrap_MouseEvent_MiddleDown, METH_O, NULL},
56949 { (char *)"MouseEvent_RightDown", (PyCFunction)_wrap_MouseEvent_RightDown, METH_O, NULL},
56950 { (char *)"MouseEvent_LeftUp", (PyCFunction)_wrap_MouseEvent_LeftUp, METH_O, NULL},
56951 { (char *)"MouseEvent_MiddleUp", (PyCFunction)_wrap_MouseEvent_MiddleUp, METH_O, NULL},
56952 { (char *)"MouseEvent_RightUp", (PyCFunction)_wrap_MouseEvent_RightUp, METH_O, NULL},
56953 { (char *)"MouseEvent_LeftDClick", (PyCFunction)_wrap_MouseEvent_LeftDClick, METH_O, NULL},
56954 { (char *)"MouseEvent_MiddleDClick", (PyCFunction)_wrap_MouseEvent_MiddleDClick, METH_O, NULL},
56955 { (char *)"MouseEvent_RightDClick", (PyCFunction)_wrap_MouseEvent_RightDClick, METH_O, NULL},
56956 { (char *)"MouseEvent_LeftIsDown", (PyCFunction)_wrap_MouseEvent_LeftIsDown, METH_O, NULL},
56957 { (char *)"MouseEvent_MiddleIsDown", (PyCFunction)_wrap_MouseEvent_MiddleIsDown, METH_O, NULL},
56958 { (char *)"MouseEvent_RightIsDown", (PyCFunction)_wrap_MouseEvent_RightIsDown, METH_O, NULL},
56959 { (char *)"MouseEvent_Dragging", (PyCFunction)_wrap_MouseEvent_Dragging, METH_O, NULL},
56960 { (char *)"MouseEvent_Moving", (PyCFunction)_wrap_MouseEvent_Moving, METH_O, NULL},
56961 { (char *)"MouseEvent_Entering", (PyCFunction)_wrap_MouseEvent_Entering, METH_O, NULL},
56962 { (char *)"MouseEvent_Leaving", (PyCFunction)_wrap_MouseEvent_Leaving, METH_O, NULL},
56963 { (char *)"MouseEvent_GetPosition", (PyCFunction)_wrap_MouseEvent_GetPosition, METH_O, NULL},
56964 { (char *)"MouseEvent_GetPositionTuple", (PyCFunction)_wrap_MouseEvent_GetPositionTuple, METH_O, NULL},
56965 { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL},
56966 { (char *)"MouseEvent_GetX", (PyCFunction)_wrap_MouseEvent_GetX, METH_O, NULL},
56967 { (char *)"MouseEvent_GetY", (PyCFunction)_wrap_MouseEvent_GetY, METH_O, NULL},
56968 { (char *)"MouseEvent_GetWheelRotation", (PyCFunction)_wrap_MouseEvent_GetWheelRotation, METH_O, NULL},
56969 { (char *)"MouseEvent_GetWheelDelta", (PyCFunction)_wrap_MouseEvent_GetWheelDelta, METH_O, NULL},
56970 { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction)_wrap_MouseEvent_GetLinesPerAction, METH_O, NULL},
56971 { (char *)"MouseEvent_IsPageScroll", (PyCFunction)_wrap_MouseEvent_IsPageScroll, METH_O, NULL},
56972 { (char *)"MouseEvent_m_x_set", _wrap_MouseEvent_m_x_set, METH_VARARGS, NULL},
56973 { (char *)"MouseEvent_m_x_get", (PyCFunction)_wrap_MouseEvent_m_x_get, METH_O, NULL},
56974 { (char *)"MouseEvent_m_y_set", _wrap_MouseEvent_m_y_set, METH_VARARGS, NULL},
56975 { (char *)"MouseEvent_m_y_get", (PyCFunction)_wrap_MouseEvent_m_y_get, METH_O, NULL},
56976 { (char *)"MouseEvent_m_leftDown_set", _wrap_MouseEvent_m_leftDown_set, METH_VARARGS, NULL},
56977 { (char *)"MouseEvent_m_leftDown_get", (PyCFunction)_wrap_MouseEvent_m_leftDown_get, METH_O, NULL},
56978 { (char *)"MouseEvent_m_middleDown_set", _wrap_MouseEvent_m_middleDown_set, METH_VARARGS, NULL},
56979 { (char *)"MouseEvent_m_middleDown_get", (PyCFunction)_wrap_MouseEvent_m_middleDown_get, METH_O, NULL},
56980 { (char *)"MouseEvent_m_rightDown_set", _wrap_MouseEvent_m_rightDown_set, METH_VARARGS, NULL},
56981 { (char *)"MouseEvent_m_rightDown_get", (PyCFunction)_wrap_MouseEvent_m_rightDown_get, METH_O, NULL},
56982 { (char *)"MouseEvent_m_controlDown_set", _wrap_MouseEvent_m_controlDown_set, METH_VARARGS, NULL},
56983 { (char *)"MouseEvent_m_controlDown_get", (PyCFunction)_wrap_MouseEvent_m_controlDown_get, METH_O, NULL},
56984 { (char *)"MouseEvent_m_shiftDown_set", _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS, NULL},
56985 { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction)_wrap_MouseEvent_m_shiftDown_get, METH_O, NULL},
56986 { (char *)"MouseEvent_m_altDown_set", _wrap_MouseEvent_m_altDown_set, METH_VARARGS, NULL},
56987 { (char *)"MouseEvent_m_altDown_get", (PyCFunction)_wrap_MouseEvent_m_altDown_get, METH_O, NULL},
56988 { (char *)"MouseEvent_m_metaDown_set", _wrap_MouseEvent_m_metaDown_set, METH_VARARGS, NULL},
56989 { (char *)"MouseEvent_m_metaDown_get", (PyCFunction)_wrap_MouseEvent_m_metaDown_get, METH_O, NULL},
56990 { (char *)"MouseEvent_m_wheelRotation_set", _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS, NULL},
56991 { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction)_wrap_MouseEvent_m_wheelRotation_get, METH_O, NULL},
56992 { (char *)"MouseEvent_m_wheelDelta_set", _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS, NULL},
56993 { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction)_wrap_MouseEvent_m_wheelDelta_get, METH_O, NULL},
56994 { (char *)"MouseEvent_m_linesPerAction_set", _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS, NULL},
56995 { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction)_wrap_MouseEvent_m_linesPerAction_get, METH_O, NULL},
56996 { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL},
56997 { (char *)"MouseEvent_swiginit", MouseEvent_swiginit, METH_VARARGS, NULL},
56998 { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL},
56999 { (char *)"SetCursorEvent_GetX", (PyCFunction)_wrap_SetCursorEvent_GetX, METH_O, NULL},
57000 { (char *)"SetCursorEvent_GetY", (PyCFunction)_wrap_SetCursorEvent_GetY, METH_O, NULL},
57001 { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
57002 { (char *)"SetCursorEvent_GetCursor", (PyCFunction)_wrap_SetCursorEvent_GetCursor, METH_O, NULL},
57003 { (char *)"SetCursorEvent_HasCursor", (PyCFunction)_wrap_SetCursorEvent_HasCursor, METH_O, NULL},
57004 { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL},
57005 { (char *)"SetCursorEvent_swiginit", SetCursorEvent_swiginit, METH_VARARGS, NULL},
57006 { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57007 { (char *)"KeyEvent_GetModifiers", (PyCFunction)_wrap_KeyEvent_GetModifiers, METH_O, NULL},
57008 { (char *)"KeyEvent_ControlDown", (PyCFunction)_wrap_KeyEvent_ControlDown, METH_O, NULL},
57009 { (char *)"KeyEvent_MetaDown", (PyCFunction)_wrap_KeyEvent_MetaDown, METH_O, NULL},
57010 { (char *)"KeyEvent_AltDown", (PyCFunction)_wrap_KeyEvent_AltDown, METH_O, NULL},
57011 { (char *)"KeyEvent_ShiftDown", (PyCFunction)_wrap_KeyEvent_ShiftDown, METH_O, NULL},
57012 { (char *)"KeyEvent_CmdDown", (PyCFunction)_wrap_KeyEvent_CmdDown, METH_O, NULL},
57013 { (char *)"KeyEvent_HasModifiers", (PyCFunction)_wrap_KeyEvent_HasModifiers, METH_O, NULL},
57014 { (char *)"KeyEvent_GetKeyCode", (PyCFunction)_wrap_KeyEvent_GetKeyCode, METH_O, NULL},
57015 { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction)_wrap_KeyEvent_GetUnicodeKey, METH_O, NULL},
b850e7f3 57016 { (char *)"KeyEvent_SetUnicodeKey", (PyCFunction) _wrap_KeyEvent_SetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57017 { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction)_wrap_KeyEvent_GetRawKeyCode, METH_O, NULL},
57018 { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction)_wrap_KeyEvent_GetRawKeyFlags, METH_O, NULL},
57019 { (char *)"KeyEvent_GetPosition", (PyCFunction)_wrap_KeyEvent_GetPosition, METH_O, NULL},
57020 { (char *)"KeyEvent_GetPositionTuple", (PyCFunction)_wrap_KeyEvent_GetPositionTuple, METH_O, NULL},
57021 { (char *)"KeyEvent_GetX", (PyCFunction)_wrap_KeyEvent_GetX, METH_O, NULL},
57022 { (char *)"KeyEvent_GetY", (PyCFunction)_wrap_KeyEvent_GetY, METH_O, NULL},
57023 { (char *)"KeyEvent_m_x_set", _wrap_KeyEvent_m_x_set, METH_VARARGS, NULL},
57024 { (char *)"KeyEvent_m_x_get", (PyCFunction)_wrap_KeyEvent_m_x_get, METH_O, NULL},
57025 { (char *)"KeyEvent_m_y_set", _wrap_KeyEvent_m_y_set, METH_VARARGS, NULL},
57026 { (char *)"KeyEvent_m_y_get", (PyCFunction)_wrap_KeyEvent_m_y_get, METH_O, NULL},
57027 { (char *)"KeyEvent_m_keyCode_set", _wrap_KeyEvent_m_keyCode_set, METH_VARARGS, NULL},
57028 { (char *)"KeyEvent_m_keyCode_get", (PyCFunction)_wrap_KeyEvent_m_keyCode_get, METH_O, NULL},
57029 { (char *)"KeyEvent_m_controlDown_set", _wrap_KeyEvent_m_controlDown_set, METH_VARARGS, NULL},
57030 { (char *)"KeyEvent_m_controlDown_get", (PyCFunction)_wrap_KeyEvent_m_controlDown_get, METH_O, NULL},
57031 { (char *)"KeyEvent_m_shiftDown_set", _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS, NULL},
57032 { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction)_wrap_KeyEvent_m_shiftDown_get, METH_O, NULL},
57033 { (char *)"KeyEvent_m_altDown_set", _wrap_KeyEvent_m_altDown_set, METH_VARARGS, NULL},
57034 { (char *)"KeyEvent_m_altDown_get", (PyCFunction)_wrap_KeyEvent_m_altDown_get, METH_O, NULL},
57035 { (char *)"KeyEvent_m_metaDown_set", _wrap_KeyEvent_m_metaDown_set, METH_VARARGS, NULL},
57036 { (char *)"KeyEvent_m_metaDown_get", (PyCFunction)_wrap_KeyEvent_m_metaDown_get, METH_O, NULL},
57037 { (char *)"KeyEvent_m_scanCode_set", _wrap_KeyEvent_m_scanCode_set, METH_VARARGS, NULL},
57038 { (char *)"KeyEvent_m_scanCode_get", (PyCFunction)_wrap_KeyEvent_m_scanCode_get, METH_O, NULL},
57039 { (char *)"KeyEvent_m_rawCode_set", _wrap_KeyEvent_m_rawCode_set, METH_VARARGS, NULL},
57040 { (char *)"KeyEvent_m_rawCode_get", (PyCFunction)_wrap_KeyEvent_m_rawCode_get, METH_O, NULL},
57041 { (char *)"KeyEvent_m_rawFlags_set", _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS, NULL},
57042 { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction)_wrap_KeyEvent_m_rawFlags_get, METH_O, NULL},
57043 { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL},
57044 { (char *)"KeyEvent_swiginit", KeyEvent_swiginit, METH_VARARGS, NULL},
57045 { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57046 { (char *)"SizeEvent_GetSize", (PyCFunction)_wrap_SizeEvent_GetSize, METH_O, NULL},
57047 { (char *)"SizeEvent_GetRect", (PyCFunction)_wrap_SizeEvent_GetRect, METH_O, NULL},
57048 { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL},
57049 { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
57050 { (char *)"SizeEvent_m_size_set", _wrap_SizeEvent_m_size_set, METH_VARARGS, NULL},
57051 { (char *)"SizeEvent_m_size_get", (PyCFunction)_wrap_SizeEvent_m_size_get, METH_O, NULL},
57052 { (char *)"SizeEvent_m_rect_set", _wrap_SizeEvent_m_rect_set, METH_VARARGS, NULL},
57053 { (char *)"SizeEvent_m_rect_get", (PyCFunction)_wrap_SizeEvent_m_rect_get, METH_O, NULL},
57054 { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL},
57055 { (char *)"SizeEvent_swiginit", SizeEvent_swiginit, METH_VARARGS, NULL},
57056 { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57057 { (char *)"MoveEvent_GetPosition", (PyCFunction)_wrap_MoveEvent_GetPosition, METH_O, NULL},
57058 { (char *)"MoveEvent_GetRect", (PyCFunction)_wrap_MoveEvent_GetRect, METH_O, NULL},
57059 { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL},
57060 { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
57061 { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL},
57062 { (char *)"MoveEvent_swiginit", MoveEvent_swiginit, METH_VARARGS, NULL},
57063 { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57064 { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL},
57065 { (char *)"PaintEvent_swiginit", PaintEvent_swiginit, METH_VARARGS, NULL},
57066 { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57067 { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL},
57068 { (char *)"NcPaintEvent_swiginit", NcPaintEvent_swiginit, METH_VARARGS, NULL},
57069 { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57070 { (char *)"EraseEvent_GetDC", (PyCFunction)_wrap_EraseEvent_GetDC, METH_O, NULL},
57071 { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL},
57072 { (char *)"EraseEvent_swiginit", EraseEvent_swiginit, METH_VARARGS, NULL},
57073 { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57074 { (char *)"FocusEvent_GetWindow", (PyCFunction)_wrap_FocusEvent_GetWindow, METH_O, NULL},
57075 { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57076 { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL},
57077 { (char *)"FocusEvent_swiginit", FocusEvent_swiginit, METH_VARARGS, NULL},
57078 { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57079 { (char *)"ChildFocusEvent_GetWindow", (PyCFunction)_wrap_ChildFocusEvent_GetWindow, METH_O, NULL},
57080 { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL},
57081 { (char *)"ChildFocusEvent_swiginit", ChildFocusEvent_swiginit, METH_VARARGS, NULL},
57082 { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57083 { (char *)"ActivateEvent_GetActive", (PyCFunction)_wrap_ActivateEvent_GetActive, METH_O, NULL},
57084 { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL},
57085 { (char *)"ActivateEvent_swiginit", ActivateEvent_swiginit, METH_VARARGS, NULL},
57086 { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57087 { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL},
57088 { (char *)"InitDialogEvent_swiginit", InitDialogEvent_swiginit, METH_VARARGS, NULL},
57089 { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57090 { (char *)"MenuEvent_GetMenuId", (PyCFunction)_wrap_MenuEvent_GetMenuId, METH_O, NULL},
57091 { (char *)"MenuEvent_IsPopup", (PyCFunction)_wrap_MenuEvent_IsPopup, METH_O, NULL},
57092 { (char *)"MenuEvent_GetMenu", (PyCFunction)_wrap_MenuEvent_GetMenu, METH_O, NULL},
57093 { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL},
57094 { (char *)"MenuEvent_swiginit", MenuEvent_swiginit, METH_VARARGS, NULL},
57095 { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57096 { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL},
57097 { (char *)"CloseEvent_GetLoggingOff", (PyCFunction)_wrap_CloseEvent_GetLoggingOff, METH_O, NULL},
57098 { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL},
57099 { (char *)"CloseEvent_GetVeto", (PyCFunction)_wrap_CloseEvent_GetVeto, METH_O, NULL},
57100 { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL},
57101 { (char *)"CloseEvent_CanVeto", (PyCFunction)_wrap_CloseEvent_CanVeto, METH_O, NULL},
57102 { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL},
57103 { (char *)"CloseEvent_swiginit", CloseEvent_swiginit, METH_VARARGS, NULL},
57104 { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57105 { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL},
57106 { (char *)"ShowEvent_GetShow", (PyCFunction)_wrap_ShowEvent_GetShow, METH_O, NULL},
57107 { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL},
57108 { (char *)"ShowEvent_swiginit", ShowEvent_swiginit, METH_VARARGS, NULL},
57109 { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57110 { (char *)"IconizeEvent_Iconized", (PyCFunction)_wrap_IconizeEvent_Iconized, METH_O, NULL},
57111 { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL},
57112 { (char *)"IconizeEvent_swiginit", IconizeEvent_swiginit, METH_VARARGS, NULL},
57113 { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57114 { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL},
57115 { (char *)"MaximizeEvent_swiginit", MaximizeEvent_swiginit, METH_VARARGS, NULL},
57116 { (char *)"DropFilesEvent_GetPosition", (PyCFunction)_wrap_DropFilesEvent_GetPosition, METH_O, NULL},
57117 { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction)_wrap_DropFilesEvent_GetNumberOfFiles, METH_O, NULL},
57118 { (char *)"DropFilesEvent_GetFiles", (PyCFunction)_wrap_DropFilesEvent_GetFiles, METH_O, NULL},
57119 { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL},
57120 { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57121 { (char *)"UpdateUIEvent_GetChecked", (PyCFunction)_wrap_UpdateUIEvent_GetChecked, METH_O, NULL},
57122 { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction)_wrap_UpdateUIEvent_GetEnabled, METH_O, NULL},
57123 { (char *)"UpdateUIEvent_GetShown", (PyCFunction)_wrap_UpdateUIEvent_GetShown, METH_O, NULL},
57124 { (char *)"UpdateUIEvent_GetText", (PyCFunction)_wrap_UpdateUIEvent_GetText, METH_O, NULL},
57125 { (char *)"UpdateUIEvent_GetSetText", (PyCFunction)_wrap_UpdateUIEvent_GetSetText, METH_O, NULL},
57126 { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction)_wrap_UpdateUIEvent_GetSetChecked, METH_O, NULL},
57127 { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction)_wrap_UpdateUIEvent_GetSetEnabled, METH_O, NULL},
57128 { (char *)"UpdateUIEvent_GetSetShown", (PyCFunction)_wrap_UpdateUIEvent_GetSetShown, METH_O, NULL},
57129 { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL},
57130 { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
57131 { (char *)"UpdateUIEvent_Show", (PyCFunction) _wrap_UpdateUIEvent_Show, METH_VARARGS | METH_KEYWORDS, NULL},
57132 { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
57133 { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL},
57134 { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction)_wrap_UpdateUIEvent_GetUpdateInterval, METH_NOARGS, NULL},
57135 { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL},
57136 { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction)_wrap_UpdateUIEvent_ResetUpdateTime, METH_NOARGS, NULL},
57137 { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL},
57138 { (char *)"UpdateUIEvent_GetMode", (PyCFunction)_wrap_UpdateUIEvent_GetMode, METH_NOARGS, NULL},
57139 { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL},
57140 { (char *)"UpdateUIEvent_swiginit", UpdateUIEvent_swiginit, METH_VARARGS, NULL},
57141 { (char *)"new_SysColourChangedEvent", (PyCFunction)_wrap_new_SysColourChangedEvent, METH_NOARGS, NULL},
57142 { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL},
57143 { (char *)"SysColourChangedEvent_swiginit", SysColourChangedEvent_swiginit, METH_VARARGS, NULL},
57144 { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57145 { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction)_wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_O, NULL},
57146 { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL},
57147 { (char *)"MouseCaptureChangedEvent_swiginit", MouseCaptureChangedEvent_swiginit, METH_VARARGS, NULL},
34e0a3bb
RD
57148 { (char *)"new_MouseCaptureLostEvent", (PyCFunction) _wrap_new_MouseCaptureLostEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57149 { (char *)"MouseCaptureLostEvent_swigregister", MouseCaptureLostEvent_swigregister, METH_VARARGS, NULL},
57150 { (char *)"MouseCaptureLostEvent_swiginit", MouseCaptureLostEvent_swiginit, METH_VARARGS, NULL},
1bd55598
RD
57151 { (char *)"new_DisplayChangedEvent", (PyCFunction)_wrap_new_DisplayChangedEvent, METH_NOARGS, NULL},
57152 { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL},
57153 { (char *)"DisplayChangedEvent_swiginit", DisplayChangedEvent_swiginit, METH_VARARGS, NULL},
57154 { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57155 { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57156 { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction)_wrap_PaletteChangedEvent_GetChangedWindow, METH_O, NULL},
57157 { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL},
57158 { (char *)"PaletteChangedEvent_swiginit", PaletteChangedEvent_swiginit, METH_VARARGS, NULL},
57159 { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57160 { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL},
57161 { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction)_wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_O, NULL},
57162 { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL},
57163 { (char *)"QueryNewPaletteEvent_swiginit", QueryNewPaletteEvent_swiginit, METH_VARARGS, NULL},
57164 { (char *)"new_NavigationKeyEvent", (PyCFunction)_wrap_new_NavigationKeyEvent, METH_NOARGS, NULL},
57165 { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction)_wrap_NavigationKeyEvent_GetDirection, METH_O, NULL},
57166 { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL},
57167 { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction)_wrap_NavigationKeyEvent_IsWindowChange, METH_O, NULL},
57168 { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL},
57169 { (char *)"NavigationKeyEvent_IsFromTab", (PyCFunction)_wrap_NavigationKeyEvent_IsFromTab, METH_O, NULL},
57170 { (char *)"NavigationKeyEvent_SetFromTab", (PyCFunction) _wrap_NavigationKeyEvent_SetFromTab, METH_VARARGS | METH_KEYWORDS, NULL},
57171 { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
57172 { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction)_wrap_NavigationKeyEvent_GetCurrentFocus, METH_O, NULL},
57173 { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL},
57174 { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL},
57175 { (char *)"NavigationKeyEvent_swiginit", NavigationKeyEvent_swiginit, METH_VARARGS, NULL},
57176 { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57177 { (char *)"WindowCreateEvent_GetWindow", (PyCFunction)_wrap_WindowCreateEvent_GetWindow, METH_O, NULL},
57178 { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL},
57179 { (char *)"WindowCreateEvent_swiginit", WindowCreateEvent_swiginit, METH_VARARGS, NULL},
57180 { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57181 { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction)_wrap_WindowDestroyEvent_GetWindow, METH_O, NULL},
57182 { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL},
57183 { (char *)"WindowDestroyEvent_swiginit", WindowDestroyEvent_swiginit, METH_VARARGS, NULL},
57184 { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57185 { (char *)"ContextMenuEvent_GetPosition", (PyCFunction)_wrap_ContextMenuEvent_GetPosition, METH_O, NULL},
57186 { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
57187 { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL},
57188 { (char *)"ContextMenuEvent_swiginit", ContextMenuEvent_swiginit, METH_VARARGS, NULL},
57189 { (char *)"new_IdleEvent", (PyCFunction)_wrap_new_IdleEvent, METH_NOARGS, NULL},
57190 { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL},
57191 { (char *)"IdleEvent_MoreRequested", (PyCFunction)_wrap_IdleEvent_MoreRequested, METH_O, NULL},
57192 { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL},
57193 { (char *)"IdleEvent_GetMode", (PyCFunction)_wrap_IdleEvent_GetMode, METH_NOARGS, NULL},
57194 { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL},
57195 { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL},
57196 { (char *)"IdleEvent_swiginit", IdleEvent_swiginit, METH_VARARGS, NULL},
2131d850
RD
57197 { (char *)"new_ClipboardTextEvent", (PyCFunction) _wrap_new_ClipboardTextEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57198 { (char *)"ClipboardTextEvent_swigregister", ClipboardTextEvent_swigregister, METH_VARARGS, NULL},
57199 { (char *)"ClipboardTextEvent_swiginit", ClipboardTextEvent_swiginit, METH_VARARGS, NULL},
1bd55598
RD
57200 { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57201 { (char *)"delete_PyEvent", (PyCFunction)_wrap_delete_PyEvent, METH_O, NULL},
57202 { (char *)"PyEvent__SetSelf", (PyCFunction) _wrap_PyEvent__SetSelf, METH_VARARGS | METH_KEYWORDS, NULL},
57203 { (char *)"PyEvent__GetSelf", (PyCFunction)_wrap_PyEvent__GetSelf, METH_O, NULL},
57204 { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL},
57205 { (char *)"PyEvent_swiginit", PyEvent_swiginit, METH_VARARGS, NULL},
57206 { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57207 { (char *)"delete_PyCommandEvent", (PyCFunction)_wrap_delete_PyCommandEvent, METH_O, NULL},
57208 { (char *)"PyCommandEvent__SetSelf", (PyCFunction) _wrap_PyCommandEvent__SetSelf, METH_VARARGS | METH_KEYWORDS, NULL},
57209 { (char *)"PyCommandEvent__GetSelf", (PyCFunction)_wrap_PyCommandEvent__GetSelf, METH_O, NULL},
57210 { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL},
57211 { (char *)"PyCommandEvent_swiginit", PyCommandEvent_swiginit, METH_VARARGS, NULL},
57212 { (char *)"new_DateEvent", (PyCFunction) _wrap_new_DateEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57213 { (char *)"DateEvent_GetDate", (PyCFunction)_wrap_DateEvent_GetDate, METH_O, NULL},
57214 { (char *)"DateEvent_SetDate", (PyCFunction) _wrap_DateEvent_SetDate, METH_VARARGS | METH_KEYWORDS, NULL},
57215 { (char *)"DateEvent_swigregister", DateEvent_swigregister, METH_VARARGS, NULL},
57216 { (char *)"DateEvent_swiginit", DateEvent_swiginit, METH_VARARGS, NULL},
57217 { (char *)"new_PyApp", (PyCFunction)_wrap_new_PyApp, METH_NOARGS, NULL},
57218 { (char *)"delete_PyApp", (PyCFunction)_wrap_delete_PyApp, METH_O, NULL},
57219 { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
57220 { (char *)"PyApp_GetAppName", (PyCFunction)_wrap_PyApp_GetAppName, METH_O, NULL},
57221 { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL},
57222 { (char *)"PyApp_GetClassName", (PyCFunction)_wrap_PyApp_GetClassName, METH_O, NULL},
57223 { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL},
57224 { (char *)"PyApp_GetVendorName", (PyCFunction)_wrap_PyApp_GetVendorName, METH_O, NULL},
57225 { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL},
57226 { (char *)"PyApp_GetTraits", (PyCFunction)_wrap_PyApp_GetTraits, METH_O, NULL},
57227 { (char *)"PyApp_ProcessPendingEvents", (PyCFunction)_wrap_PyApp_ProcessPendingEvents, METH_O, NULL},
57228 { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL},
57229 { (char *)"PyApp_WakeUpIdle", (PyCFunction)_wrap_PyApp_WakeUpIdle, METH_O, NULL},
57230 { (char *)"PyApp_IsMainLoopRunning", (PyCFunction)_wrap_PyApp_IsMainLoopRunning, METH_NOARGS, NULL},
57231 { (char *)"PyApp_MainLoop", (PyCFunction)_wrap_PyApp_MainLoop, METH_O, NULL},
57232 { (char *)"PyApp_Exit", (PyCFunction)_wrap_PyApp_Exit, METH_O, NULL},
ac5d357a 57233 { (char *)"PyApp_GetLayoutDirection", (PyCFunction)_wrap_PyApp_GetLayoutDirection, METH_O, NULL},
1bd55598
RD
57234 { (char *)"PyApp_ExitMainLoop", (PyCFunction)_wrap_PyApp_ExitMainLoop, METH_O, NULL},
57235 { (char *)"PyApp_Pending", (PyCFunction)_wrap_PyApp_Pending, METH_O, NULL},
57236 { (char *)"PyApp_Dispatch", (PyCFunction)_wrap_PyApp_Dispatch, METH_O, NULL},
57237 { (char *)"PyApp_ProcessIdle", (PyCFunction)_wrap_PyApp_ProcessIdle, METH_O, NULL},
57238 { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL},
57239 { (char *)"PyApp_IsActive", (PyCFunction)_wrap_PyApp_IsActive, METH_O, NULL},
57240 { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57241 { (char *)"PyApp_GetTopWindow", (PyCFunction)_wrap_PyApp_GetTopWindow, METH_O, NULL},
57242 { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL},
57243 { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction)_wrap_PyApp_GetExitOnFrameDelete, METH_O, NULL},
57244 { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL},
57245 { (char *)"PyApp_GetUseBestVisual", (PyCFunction)_wrap_PyApp_GetUseBestVisual, METH_O, NULL},
57246 { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL},
57247 { (char *)"PyApp_GetPrintMode", (PyCFunction)_wrap_PyApp_GetPrintMode, METH_O, NULL},
57248 { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL},
57249 { (char *)"PyApp_GetAssertMode", (PyCFunction)_wrap_PyApp_GetAssertMode, METH_O, NULL},
57250 { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction)_wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_NOARGS, NULL},
57251 { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction)_wrap_PyApp_GetMacAboutMenuItemId, METH_NOARGS, NULL},
57252 { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction)_wrap_PyApp_GetMacPreferencesMenuItemId, METH_NOARGS, NULL},
57253 { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction)_wrap_PyApp_GetMacExitMenuItemId, METH_NOARGS, NULL},
57254 { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction)_wrap_PyApp_GetMacHelpMenuTitleName, METH_NOARGS, NULL},
57255 { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL},
57256 { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL},
57257 { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL},
57258 { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL},
57259 { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL},
57260 { (char *)"PyApp__BootstrapApp", (PyCFunction)_wrap_PyApp__BootstrapApp, METH_O, NULL},
57261 { (char *)"PyApp_GetComCtl32Version", (PyCFunction)_wrap_PyApp_GetComCtl32Version, METH_NOARGS, NULL},
33d6fd3b 57262 { (char *)"PyApp_IsDisplayAvailable", (PyCFunction)_wrap_PyApp_IsDisplayAvailable, METH_NOARGS, NULL},
1bd55598
RD
57263 { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL},
57264 { (char *)"PyApp_swiginit", PyApp_swiginit, METH_VARARGS, NULL},
57265 { (char *)"Exit", (PyCFunction)_wrap_Exit, METH_NOARGS, NULL},
57266 { (char *)"Yield", (PyCFunction)_wrap_Yield, METH_NOARGS, NULL},
57267 { (char *)"YieldIfNeeded", (PyCFunction)_wrap_YieldIfNeeded, METH_NOARGS, NULL},
57268 { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL},
57269 { (char *)"WakeUpIdle", (PyCFunction)_wrap_WakeUpIdle, METH_NOARGS, NULL},
57270 { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL},
57271 { (char *)"App_CleanUp", (PyCFunction)_wrap_App_CleanUp, METH_NOARGS, NULL},
57272 { (char *)"GetApp", (PyCFunction)_wrap_GetApp, METH_NOARGS, NULL},
57273 { (char *)"SetDefaultPyEncoding", (PyCFunction) _wrap_SetDefaultPyEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
57274 { (char *)"GetDefaultPyEncoding", (PyCFunction)_wrap_GetDefaultPyEncoding, METH_NOARGS, NULL},
57275 { (char *)"new_EventLoop", (PyCFunction)_wrap_new_EventLoop, METH_NOARGS, NULL},
57276 { (char *)"delete_EventLoop", (PyCFunction)_wrap_delete_EventLoop, METH_O, NULL},
57277 { (char *)"EventLoop_Run", (PyCFunction)_wrap_EventLoop_Run, METH_O, NULL},
57278 { (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL},
57279 { (char *)"EventLoop_Pending", (PyCFunction)_wrap_EventLoop_Pending, METH_O, NULL},
57280 { (char *)"EventLoop_Dispatch", (PyCFunction)_wrap_EventLoop_Dispatch, METH_O, NULL},
57281 { (char *)"EventLoop_IsRunning", (PyCFunction)_wrap_EventLoop_IsRunning, METH_O, NULL},
57282 { (char *)"EventLoop_GetActive", (PyCFunction)_wrap_EventLoop_GetActive, METH_NOARGS, NULL},
57283 { (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL},
57284 { (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL},
57285 { (char *)"EventLoop_swiginit", EventLoop_swiginit, METH_VARARGS, NULL},
57286 { (char *)"new_EventLoopActivator", (PyCFunction) _wrap_new_EventLoopActivator, METH_VARARGS | METH_KEYWORDS, NULL},
57287 { (char *)"delete_EventLoopActivator", (PyCFunction)_wrap_delete_EventLoopActivator, METH_O, NULL},
57288 { (char *)"EventLoopActivator_swigregister", EventLoopActivator_swigregister, METH_VARARGS, NULL},
57289 { (char *)"EventLoopActivator_swiginit", EventLoopActivator_swiginit, METH_VARARGS, NULL},
57290 { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL},
57291 { (char *)"delete_AcceleratorEntry", (PyCFunction)_wrap_delete_AcceleratorEntry, METH_O, NULL},
57292 { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL},
ac5d357a 57293 { (char *)"AcceleratorEntry_Create", (PyCFunction) _wrap_AcceleratorEntry_Create, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57294 { (char *)"AcceleratorEntry_GetFlags", (PyCFunction)_wrap_AcceleratorEntry_GetFlags, METH_O, NULL},
57295 { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction)_wrap_AcceleratorEntry_GetKeyCode, METH_O, NULL},
57296 { (char *)"AcceleratorEntry_GetCommand", (PyCFunction)_wrap_AcceleratorEntry_GetCommand, METH_O, NULL},
ac5d357a
RD
57297 { (char *)"AcceleratorEntry_IsOk", (PyCFunction)_wrap_AcceleratorEntry_IsOk, METH_O, NULL},
57298 { (char *)"AcceleratorEntry_ToString", (PyCFunction)_wrap_AcceleratorEntry_ToString, METH_O, NULL},
57299 { (char *)"AcceleratorEntry_FromString", (PyCFunction) _wrap_AcceleratorEntry_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57300 { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL},
57301 { (char *)"AcceleratorEntry_swiginit", AcceleratorEntry_swiginit, METH_VARARGS, NULL},
57302 { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL},
57303 { (char *)"delete_AcceleratorTable", (PyCFunction)_wrap_delete_AcceleratorTable, METH_O, NULL},
b39fe951 57304 { (char *)"AcceleratorTable_IsOk", (PyCFunction)_wrap_AcceleratorTable_IsOk, METH_O, NULL},
1bd55598
RD
57305 { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL},
57306 { (char *)"AcceleratorTable_swiginit", AcceleratorTable_swiginit, METH_VARARGS, NULL},
57307 { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL},
57308 { (char *)"new_VisualAttributes", (PyCFunction)_wrap_new_VisualAttributes, METH_NOARGS, NULL},
57309 { (char *)"delete_VisualAttributes", (PyCFunction)_wrap_delete_VisualAttributes, METH_O, NULL},
57310 { (char *)"VisualAttributes_font_set", _wrap_VisualAttributes_font_set, METH_VARARGS, NULL},
57311 { (char *)"VisualAttributes_font_get", (PyCFunction)_wrap_VisualAttributes_font_get, METH_O, NULL},
57312 { (char *)"VisualAttributes_colFg_set", _wrap_VisualAttributes_colFg_set, METH_VARARGS, NULL},
57313 { (char *)"VisualAttributes_colFg_get", (PyCFunction)_wrap_VisualAttributes_colFg_get, METH_O, NULL},
57314 { (char *)"VisualAttributes_colBg_set", _wrap_VisualAttributes_colBg_set, METH_VARARGS, NULL},
57315 { (char *)"VisualAttributes_colBg_get", (PyCFunction)_wrap_VisualAttributes_colBg_get, METH_O, NULL},
57316 { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL},
57317 { (char *)"VisualAttributes_swiginit", VisualAttributes_swiginit, METH_VARARGS, NULL},
57318 { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL},
57319 { (char *)"new_PreWindow", (PyCFunction)_wrap_new_PreWindow, METH_NOARGS, NULL},
57320 { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL},
57321 { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL},
57322 { (char *)"Window_Destroy", (PyCFunction)_wrap_Window_Destroy, METH_O, NULL},
57323 { (char *)"Window_DestroyChildren", (PyCFunction)_wrap_Window_DestroyChildren, METH_O, NULL},
57324 { (char *)"Window_IsBeingDeleted", (PyCFunction)_wrap_Window_IsBeingDeleted, METH_O, NULL},
57325 { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
57326 { (char *)"Window_GetLabel", (PyCFunction)_wrap_Window_GetLabel, METH_O, NULL},
57327 { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL},
57328 { (char *)"Window_GetName", (PyCFunction)_wrap_Window_GetName, METH_O, NULL},
57329 { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL},
57330 { (char *)"Window_GetWindowVariant", (PyCFunction)_wrap_Window_GetWindowVariant, METH_O, NULL},
57331 { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
57332 { (char *)"Window_GetId", (PyCFunction)_wrap_Window_GetId, METH_O, NULL},
57333 { (char *)"Window_NewControlId", (PyCFunction)_wrap_Window_NewControlId, METH_NOARGS, NULL},
57334 { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL},
57335 { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL},
ac5d357a
RD
57336 { (char *)"Window_GetLayoutDirection", (PyCFunction)_wrap_Window_GetLayoutDirection, METH_O, NULL},
57337 { (char *)"Window_SetLayoutDirection", (PyCFunction) _wrap_Window_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
57338 { (char *)"Window_AdjustForLayoutDirection", (PyCFunction) _wrap_Window_AdjustForLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57339 { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
57340 { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL},
57341 { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL},
57342 { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
57343 { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL},
57344 { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL},
57345 { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL},
57346 { (char *)"Window_Raise", (PyCFunction)_wrap_Window_Raise, METH_O, NULL},
57347 { (char *)"Window_Lower", (PyCFunction)_wrap_Window_Lower, METH_O, NULL},
57348 { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
57349 { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
57350 { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL},
57351 { (char *)"Window_GetPosition", (PyCFunction)_wrap_Window_GetPosition, METH_O, NULL},
57352 { (char *)"Window_GetPositionTuple", (PyCFunction)_wrap_Window_GetPositionTuple, METH_O, NULL},
1c71765a
RD
57353 { (char *)"Window_GetScreenPosition", (PyCFunction)_wrap_Window_GetScreenPosition, METH_O, NULL},
57354 { (char *)"Window_GetScreenPositionTuple", (PyCFunction)_wrap_Window_GetScreenPositionTuple, METH_O, NULL},
57355 { (char *)"Window_GetScreenRect", (PyCFunction)_wrap_Window_GetScreenRect, METH_O, NULL},
1bd55598
RD
57356 { (char *)"Window_GetSize", (PyCFunction)_wrap_Window_GetSize, METH_O, NULL},
57357 { (char *)"Window_GetSizeTuple", (PyCFunction)_wrap_Window_GetSizeTuple, METH_O, NULL},
57358 { (char *)"Window_GetRect", (PyCFunction)_wrap_Window_GetRect, METH_O, NULL},
57359 { (char *)"Window_GetClientSize", (PyCFunction)_wrap_Window_GetClientSize, METH_O, NULL},
57360 { (char *)"Window_GetClientSizeTuple", (PyCFunction)_wrap_Window_GetClientSizeTuple, METH_O, NULL},
57361 { (char *)"Window_GetClientAreaOrigin", (PyCFunction)_wrap_Window_GetClientAreaOrigin, METH_O, NULL},
57362 { (char *)"Window_GetClientRect", (PyCFunction)_wrap_Window_GetClientRect, METH_O, NULL},
57363 { (char *)"Window_GetBestSize", (PyCFunction)_wrap_Window_GetBestSize, METH_O, NULL},
57364 { (char *)"Window_GetBestSizeTuple", (PyCFunction)_wrap_Window_GetBestSizeTuple, METH_O, NULL},
57365 { (char *)"Window_InvalidateBestSize", (PyCFunction)_wrap_Window_InvalidateBestSize, METH_O, NULL},
57366 { (char *)"Window_CacheBestSize", (PyCFunction) _wrap_Window_CacheBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
57367 { (char *)"Window_GetBestFittingSize", (PyCFunction)_wrap_Window_GetBestFittingSize, METH_O, NULL},
57368 { (char *)"Window_GetAdjustedBestSize", (PyCFunction)_wrap_Window_GetAdjustedBestSize, METH_O, NULL},
57369 { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL},
57370 { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL},
57371 { (char *)"Window_Fit", (PyCFunction)_wrap_Window_Fit, METH_O, NULL},
57372 { (char *)"Window_FitInside", (PyCFunction)_wrap_Window_FitInside, METH_O, NULL},
57373 { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL},
57374 { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL},
57375 { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL},
57376 { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL},
57377 { (char *)"Window_GetMaxSize", (PyCFunction)_wrap_Window_GetMaxSize, METH_O, NULL},
57378 { (char *)"Window_GetMinSize", (PyCFunction)_wrap_Window_GetMinSize, METH_O, NULL},
57379 { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL},
57380 { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL},
57381 { (char *)"Window_GetMinWidth", (PyCFunction)_wrap_Window_GetMinWidth, METH_O, NULL},
57382 { (char *)"Window_GetMinHeight", (PyCFunction)_wrap_Window_GetMinHeight, METH_O, NULL},
57383 { (char *)"Window_GetMaxWidth", (PyCFunction)_wrap_Window_GetMaxWidth, METH_O, NULL},
57384 { (char *)"Window_GetMaxHeight", (PyCFunction)_wrap_Window_GetMaxHeight, METH_O, NULL},
57385 { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
57386 { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
57387 { (char *)"Window_GetVirtualSize", (PyCFunction)_wrap_Window_GetVirtualSize, METH_O, NULL},
57388 { (char *)"Window_GetVirtualSizeTuple", (PyCFunction)_wrap_Window_GetVirtualSizeTuple, METH_O, NULL},
57389 { (char *)"Window_GetBestVirtualSize", (PyCFunction)_wrap_Window_GetBestVirtualSize, METH_O, NULL},
57390 { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL},
57391 { (char *)"Window_Hide", (PyCFunction)_wrap_Window_Hide, METH_O, NULL},
57392 { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
57393 { (char *)"Window_Disable", (PyCFunction)_wrap_Window_Disable, METH_O, NULL},
57394 { (char *)"Window_IsShown", (PyCFunction)_wrap_Window_IsShown, METH_O, NULL},
57395 { (char *)"Window_IsEnabled", (PyCFunction)_wrap_Window_IsEnabled, METH_O, NULL},
33d6fd3b 57396 { (char *)"Window_IsShownOnScreen", (PyCFunction)_wrap_Window_IsShownOnScreen, METH_O, NULL},
1bd55598
RD
57397 { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL},
57398 { (char *)"Window_GetWindowStyleFlag", (PyCFunction)_wrap_Window_GetWindowStyleFlag, METH_O, NULL},
57399 { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
57400 { (char *)"Window_IsRetained", (PyCFunction)_wrap_Window_IsRetained, METH_O, NULL},
57401 { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL},
57402 { (char *)"Window_GetExtraStyle", (PyCFunction)_wrap_Window_GetExtraStyle, METH_O, NULL},
57403 { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL},
57404 { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
57405 { (char *)"Window_GetThemeEnabled", (PyCFunction)_wrap_Window_GetThemeEnabled, METH_O, NULL},
57406 { (char *)"Window_SetFocus", (PyCFunction)_wrap_Window_SetFocus, METH_O, NULL},
57407 { (char *)"Window_SetFocusFromKbd", (PyCFunction)_wrap_Window_SetFocusFromKbd, METH_O, NULL},
57408 { (char *)"Window_FindFocus", (PyCFunction)_wrap_Window_FindFocus, METH_NOARGS, NULL},
57409 { (char *)"Window_AcceptsFocus", (PyCFunction)_wrap_Window_AcceptsFocus, METH_O, NULL},
57410 { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction)_wrap_Window_AcceptsFocusFromKeyboard, METH_O, NULL},
1bd55598
RD
57411 { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL},
57412 { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL},
57413 { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL},
57414 { (char *)"Window_GetChildren", (PyCFunction)_wrap_Window_GetChildren, METH_O, NULL},
57415 { (char *)"Window_GetParent", (PyCFunction)_wrap_Window_GetParent, METH_O, NULL},
57416 { (char *)"Window_GetGrandParent", (PyCFunction)_wrap_Window_GetGrandParent, METH_O, NULL},
57417 { (char *)"Window_IsTopLevel", (PyCFunction)_wrap_Window_IsTopLevel, METH_O, NULL},
57418 { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL},
57419 { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL},
57420 { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 57421 { (char *)"Window_SetDoubleBuffered", (PyCFunction) _wrap_Window_SetDoubleBuffered, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57422 { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL},
57423 { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL},
57424 { (char *)"Window_GetEventHandler", (PyCFunction)_wrap_Window_GetEventHandler, METH_O, NULL},
57425 { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
57426 { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
57427 { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
57428 { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
57429 { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL},
57430 { (char *)"Window_GetValidator", (PyCFunction)_wrap_Window_GetValidator, METH_O, NULL},
57431 { (char *)"Window_Validate", (PyCFunction)_wrap_Window_Validate, METH_O, NULL},
57432 { (char *)"Window_TransferDataToWindow", (PyCFunction)_wrap_Window_TransferDataToWindow, METH_O, NULL},
57433 { (char *)"Window_TransferDataFromWindow", (PyCFunction)_wrap_Window_TransferDataFromWindow, METH_O, NULL},
57434 { (char *)"Window_InitDialog", (PyCFunction)_wrap_Window_InitDialog, METH_O, NULL},
57435 { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL},
57436 { (char *)"Window_GetAcceleratorTable", (PyCFunction)_wrap_Window_GetAcceleratorTable, METH_O, NULL},
57437 { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL},
57438 { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL},
57439 { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL},
57440 { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL},
57441 { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL},
57442 { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL},
57443 { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL},
57444 { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL},
57445 { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL},
57446 { (char *)"Window_CaptureMouse", (PyCFunction)_wrap_Window_CaptureMouse, METH_O, NULL},
57447 { (char *)"Window_ReleaseMouse", (PyCFunction)_wrap_Window_ReleaseMouse, METH_O, NULL},
57448 { (char *)"Window_GetCapture", (PyCFunction)_wrap_Window_GetCapture, METH_NOARGS, NULL},
57449 { (char *)"Window_HasCapture", (PyCFunction)_wrap_Window_HasCapture, METH_O, NULL},
57450 { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL},
57451 { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL},
57452 { (char *)"Window_Update", (PyCFunction)_wrap_Window_Update, METH_O, NULL},
57453 { (char *)"Window_ClearBackground", (PyCFunction)_wrap_Window_ClearBackground, METH_O, NULL},
57454 { (char *)"Window_Freeze", (PyCFunction)_wrap_Window_Freeze, METH_O, NULL},
33d6fd3b 57455 { (char *)"Window_IsFrozen", (PyCFunction)_wrap_Window_IsFrozen, METH_O, NULL},
1bd55598
RD
57456 { (char *)"Window_Thaw", (PyCFunction)_wrap_Window_Thaw, METH_O, NULL},
57457 { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 57458 { (char *)"Window_IsDoubleBuffered", (PyCFunction)_wrap_Window_IsDoubleBuffered, METH_O, NULL},
1bd55598
RD
57459 { (char *)"Window_GetUpdateRegion", (PyCFunction)_wrap_Window_GetUpdateRegion, METH_O, NULL},
57460 { (char *)"Window_GetUpdateClientRect", (PyCFunction)_wrap_Window_GetUpdateClientRect, METH_O, NULL},
57461 { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL},
57462 { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL},
57463 { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL},
57464 { (char *)"Window_GetDefaultAttributes", (PyCFunction)_wrap_Window_GetDefaultAttributes, METH_O, NULL},
57465 { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
57466 { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
57467 { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
57468 { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
57469 { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
57470 { (char *)"Window_GetBackgroundColour", (PyCFunction)_wrap_Window_GetBackgroundColour, METH_O, NULL},
57471 { (char *)"Window_GetForegroundColour", (PyCFunction)_wrap_Window_GetForegroundColour, METH_O, NULL},
57472 { (char *)"Window_InheritsBackgroundColour", (PyCFunction)_wrap_Window_InheritsBackgroundColour, METH_O, NULL},
57473 { (char *)"Window_UseBgCol", (PyCFunction)_wrap_Window_UseBgCol, METH_O, NULL},
57474 { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL},
57475 { (char *)"Window_GetBackgroundStyle", (PyCFunction)_wrap_Window_GetBackgroundStyle, METH_O, NULL},
57476 { (char *)"Window_HasTransparentBackground", (PyCFunction)_wrap_Window_HasTransparentBackground, METH_O, NULL},
57477 { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
57478 { (char *)"Window_GetCursor", (PyCFunction)_wrap_Window_GetCursor, METH_O, NULL},
57479 { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
57480 { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL},
57481 { (char *)"Window_GetFont", (PyCFunction)_wrap_Window_GetFont, METH_O, NULL},
57482 { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL},
57483 { (char *)"Window_GetCaret", (PyCFunction)_wrap_Window_GetCaret, METH_O, NULL},
57484 { (char *)"Window_GetCharHeight", (PyCFunction)_wrap_Window_GetCharHeight, METH_O, NULL},
57485 { (char *)"Window_GetCharWidth", (PyCFunction)_wrap_Window_GetCharWidth, METH_O, NULL},
57486 { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
57487 { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
57488 { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL},
57489 { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL},
57490 { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL},
57491 { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL},
57492 { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL},
57493 { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
57494 { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL},
57495 { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL},
57496 { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL},
57497 { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL},
1eeb270e 57498 { (char *)"Window_HasMultiplePages", (PyCFunction)_wrap_Window_HasMultiplePages, METH_O, NULL},
1bd55598
RD
57499 { (char *)"Window_GetHandle", (PyCFunction)_wrap_Window_GetHandle, METH_O, NULL},
57500 { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL},
57501 { (char *)"Window_DissociateHandle", (PyCFunction)_wrap_Window_DissociateHandle, METH_O, NULL},
57502 { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL},
57503 { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL},
57504 { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL},
57505 { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL},
57506 { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL},
57507 { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL},
57508 { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57509 { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL},
57510 { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL},
57511 { (char *)"Window_LineUp", (PyCFunction)_wrap_Window_LineUp, METH_O, NULL},
57512 { (char *)"Window_LineDown", (PyCFunction)_wrap_Window_LineDown, METH_O, NULL},
57513 { (char *)"Window_PageUp", (PyCFunction)_wrap_Window_PageUp, METH_O, NULL},
57514 { (char *)"Window_PageDown", (PyCFunction)_wrap_Window_PageDown, METH_O, NULL},
57515 { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
57516 { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 57517 { (char *)"Window_GetHelpTextAtPoint", (PyCFunction) _wrap_Window_GetHelpTextAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57518 { (char *)"Window_GetHelpText", (PyCFunction)_wrap_Window_GetHelpText, METH_O, NULL},
57519 { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL},
57520 { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
57521 { (char *)"Window_GetToolTip", (PyCFunction)_wrap_Window_GetToolTip, METH_O, NULL},
57522 { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
57523 { (char *)"Window_GetDropTarget", (PyCFunction)_wrap_Window_GetDropTarget, METH_O, NULL},
57524 { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS, NULL},
57525 { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL},
57526 { (char *)"Window_GetConstraints", (PyCFunction)_wrap_Window_GetConstraints, METH_O, NULL},
57527 { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL},
57528 { (char *)"Window_GetAutoLayout", (PyCFunction)_wrap_Window_GetAutoLayout, METH_O, NULL},
57529 { (char *)"Window_Layout", (PyCFunction)_wrap_Window_Layout, METH_O, NULL},
57530 { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57531 { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL},
57532 { (char *)"Window_GetSizer", (PyCFunction)_wrap_Window_GetSizer, METH_O, NULL},
57533 { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57534 { (char *)"Window_GetContainingSizer", (PyCFunction)_wrap_Window_GetContainingSizer, METH_O, NULL},
57535 { (char *)"Window_InheritAttributes", (PyCFunction)_wrap_Window_InheritAttributes, METH_O, NULL},
57536 { (char *)"Window_ShouldInheritColours", (PyCFunction)_wrap_Window_ShouldInheritColours, METH_O, NULL},
fc46b7f3
RD
57537 { (char *)"Window_CanSetTransparent", (PyCFunction)_wrap_Window_CanSetTransparent, METH_O, NULL},
57538 { (char *)"Window_SetTransparent", (PyCFunction) _wrap_Window_SetTransparent, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57539 { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL},
57540 { (char *)"Window_swiginit", Window_swiginit, METH_VARARGS, NULL},
57541 { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL},
57542 { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL},
57543 { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL},
57544 { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL},
57545 { (char *)"GetTopLevelWindows", (PyCFunction)_wrap_GetTopLevelWindows, METH_NOARGS, NULL},
57546 { (char *)"new_Validator", (PyCFunction)_wrap_new_Validator, METH_NOARGS, NULL},
57547 { (char *)"Validator_Clone", (PyCFunction)_wrap_Validator_Clone, METH_O, NULL},
57548 { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL},
57549 { (char *)"Validator_TransferToWindow", (PyCFunction)_wrap_Validator_TransferToWindow, METH_O, NULL},
57550 { (char *)"Validator_TransferFromWindow", (PyCFunction)_wrap_Validator_TransferFromWindow, METH_O, NULL},
57551 { (char *)"Validator_GetWindow", (PyCFunction)_wrap_Validator_GetWindow, METH_O, NULL},
57552 { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57553 { (char *)"Validator_IsSilent", (PyCFunction)_wrap_Validator_IsSilent, METH_NOARGS, NULL},
57554 { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL},
57555 { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL},
57556 { (char *)"Validator_swiginit", Validator_swiginit, METH_VARARGS, NULL},
57557 { (char *)"new_PyValidator", (PyCFunction)_wrap_new_PyValidator, METH_NOARGS, NULL},
57558 { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
57559 { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL},
57560 { (char *)"PyValidator_swiginit", PyValidator_swiginit, METH_VARARGS, NULL},
57561 { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL},
57562 { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL},
57563 { (char *)"Menu_AppendSeparator", (PyCFunction)_wrap_Menu_AppendSeparator, METH_O, NULL},
57564 { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL},
57565 { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL},
57566 { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 57567 { (char *)"Menu_AppendSubMenu", (PyCFunction) _wrap_Menu_AppendSubMenu, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57568 { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
57569 { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
57570 { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
57571 { (char *)"Menu_Break", (PyCFunction)_wrap_Menu_Break, METH_O, NULL},
57572 { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
57573 { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
57574 { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL},
57575 { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL},
57576 { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL},
57577 { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL},
57578 { (char *)"Menu_PrependSeparator", (PyCFunction)_wrap_Menu_PrependSeparator, METH_O, NULL},
57579 { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL},
57580 { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL},
57581 { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL},
57582 { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
57583 { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL},
57584 { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
57585 { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
57586 { (char *)"Menu_Destroy", (PyCFunction)_wrap_Menu_Destroy, METH_O, NULL},
57587 { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL},
57588 { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL},
57589 { (char *)"Menu_GetMenuItemCount", (PyCFunction)_wrap_Menu_GetMenuItemCount, METH_O, NULL},
57590 { (char *)"Menu_GetMenuItems", (PyCFunction)_wrap_Menu_GetMenuItems, METH_O, NULL},
57591 { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
57592 { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL},
57593 { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL},
57594 { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
57595 { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
57596 { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL},
57597 { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
57598 { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
57599 { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
57600 { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
57601 { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
57602 { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL},
57603 { (char *)"Menu_GetTitle", (PyCFunction)_wrap_Menu_GetTitle, METH_O, NULL},
57604 { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
57605 { (char *)"Menu_GetEventHandler", (PyCFunction)_wrap_Menu_GetEventHandler, METH_O, NULL},
57606 { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57607 { (char *)"Menu_GetInvokingWindow", (PyCFunction)_wrap_Menu_GetInvokingWindow, METH_O, NULL},
57608 { (char *)"Menu_GetStyle", (PyCFunction)_wrap_Menu_GetStyle, METH_O, NULL},
57609 { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL},
57610 { (char *)"Menu_GetMenuBar", (PyCFunction)_wrap_Menu_GetMenuBar, METH_O, NULL},
57611 { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
57612 { (char *)"Menu_Detach", (PyCFunction)_wrap_Menu_Detach, METH_O, NULL},
57613 { (char *)"Menu_IsAttached", (PyCFunction)_wrap_Menu_IsAttached, METH_O, NULL},
57614 { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL},
57615 { (char *)"Menu_GetParent", (PyCFunction)_wrap_Menu_GetParent, METH_O, NULL},
57616 { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL},
57617 { (char *)"Menu_swiginit", Menu_swiginit, METH_VARARGS, NULL},
57618 { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL},
57619 { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL},
57620 { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
57621 { (char *)"MenuBar_GetMenuCount", (PyCFunction)_wrap_MenuBar_GetMenuCount, METH_O, NULL},
57622 { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
57623 { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
57624 { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
57625 { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL},
57626 { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL},
57627 { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL},
57628 { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL},
57629 { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL},
57630 { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL},
57631 { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL},
57632 { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
57633 { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL},
57634 { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
57635 { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
57636 { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
57637 { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
57638 { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
57639 { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
57640 { (char *)"MenuBar_GetFrame", (PyCFunction)_wrap_MenuBar_GetFrame, METH_O, NULL},
57641 { (char *)"MenuBar_IsAttached", (PyCFunction)_wrap_MenuBar_IsAttached, METH_O, NULL},
57642 { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
57643 { (char *)"MenuBar_Detach", (PyCFunction)_wrap_MenuBar_Detach, METH_O, NULL},
587d0f36 57644 { (char *)"MenuBar_UpdateMenus", (PyCFunction)_wrap_MenuBar_UpdateMenus, METH_O, NULL},
1bd55598
RD
57645 { (char *)"MenuBar_SetAutoWindowMenu", (PyCFunction) _wrap_MenuBar_SetAutoWindowMenu, METH_VARARGS | METH_KEYWORDS, NULL},
57646 { (char *)"MenuBar_GetAutoWindowMenu", (PyCFunction)_wrap_MenuBar_GetAutoWindowMenu, METH_NOARGS, NULL},
57647 { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL},
57648 { (char *)"MenuBar_swiginit", MenuBar_swiginit, METH_VARARGS, NULL},
57649 { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL},
57650 { (char *)"delete_MenuItem", (PyCFunction)_wrap_delete_MenuItem, METH_O, NULL},
57651 { (char *)"MenuItem_GetMenu", (PyCFunction)_wrap_MenuItem_GetMenu, METH_O, NULL},
57652 { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
57653 { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
57654 { (char *)"MenuItem_GetId", (PyCFunction)_wrap_MenuItem_GetId, METH_O, NULL},
57655 { (char *)"MenuItem_IsSeparator", (PyCFunction)_wrap_MenuItem_IsSeparator, METH_O, NULL},
57656 { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
57657 { (char *)"MenuItem_GetLabel", (PyCFunction)_wrap_MenuItem_GetLabel, METH_O, NULL},
57658 { (char *)"MenuItem_GetText", (PyCFunction)_wrap_MenuItem_GetText, METH_O, NULL},
57659 { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL},
57660 { (char *)"MenuItem_GetKind", (PyCFunction)_wrap_MenuItem_GetKind, METH_O, NULL},
57661 { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL},
57662 { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL},
57663 { (char *)"MenuItem_IsCheckable", (PyCFunction)_wrap_MenuItem_IsCheckable, METH_O, NULL},
57664 { (char *)"MenuItem_IsSubMenu", (PyCFunction)_wrap_MenuItem_IsSubMenu, METH_O, NULL},
57665 { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL},
57666 { (char *)"MenuItem_GetSubMenu", (PyCFunction)_wrap_MenuItem_GetSubMenu, METH_O, NULL},
57667 { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
57668 { (char *)"MenuItem_IsEnabled", (PyCFunction)_wrap_MenuItem_IsEnabled, METH_O, NULL},
57669 { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL},
57670 { (char *)"MenuItem_IsChecked", (PyCFunction)_wrap_MenuItem_IsChecked, METH_O, NULL},
57671 { (char *)"MenuItem_Toggle", (PyCFunction)_wrap_MenuItem_Toggle, METH_O, NULL},
57672 { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
57673 { (char *)"MenuItem_GetHelp", (PyCFunction)_wrap_MenuItem_GetHelp, METH_O, NULL},
57674 { (char *)"MenuItem_GetAccel", (PyCFunction)_wrap_MenuItem_GetAccel, METH_O, NULL},
57675 { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL},
57676 { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
57677 { (char *)"MenuItem_GetBitmap", (PyCFunction)_wrap_MenuItem_GetBitmap, METH_O, NULL},
57678 { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
57679 { (char *)"MenuItem_GetFont", (PyCFunction)_wrap_MenuItem_GetFont, METH_O, NULL},
57680 { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
57681 { (char *)"MenuItem_GetTextColour", (PyCFunction)_wrap_MenuItem_GetTextColour, METH_O, NULL},
57682 { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
57683 { (char *)"MenuItem_GetBackgroundColour", (PyCFunction)_wrap_MenuItem_GetBackgroundColour, METH_O, NULL},
57684 { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS, NULL},
57685 { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
57686 { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction)_wrap_MenuItem_GetDisabledBitmap, METH_O, NULL},
57687 { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL},
57688 { (char *)"MenuItem_GetMarginWidth", (PyCFunction)_wrap_MenuItem_GetMarginWidth, METH_O, NULL},
57689 { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction)_wrap_MenuItem_GetDefaultMarginWidth, METH_NOARGS, NULL},
57690 { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction)_wrap_MenuItem_IsOwnerDrawn, METH_O, NULL},
57691 { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL},
57692 { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction)_wrap_MenuItem_ResetOwnerDrawn, METH_O, NULL},
57693 { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL},
57694 { (char *)"MenuItem_swiginit", MenuItem_swiginit, METH_VARARGS, NULL},
57695 { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL},
57696 { (char *)"new_PreControl", (PyCFunction)_wrap_new_PreControl, METH_NOARGS, NULL},
57697 { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL},
1eeb270e 57698 { (char *)"Control_GetAlignment", (PyCFunction)_wrap_Control_GetAlignment, METH_O, NULL},
34e0a3bb 57699 { (char *)"Control_GetLabelText", (PyCFunction)_wrap_Control_GetLabelText, METH_O, NULL},
1bd55598 57700 { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
57701 { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
57702 { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL},
57703 { (char *)"Control_swiginit", Control_swiginit, METH_VARARGS, NULL},
57704 { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL},
57705 { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL},
57706 { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
57707 { (char *)"ItemContainer_Clear", (PyCFunction)_wrap_ItemContainer_Clear, METH_O, NULL},
57708 { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
57709 { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
57710 { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
57711 { (char *)"ItemContainer_GetCount", (PyCFunction)_wrap_ItemContainer_GetCount, METH_O, NULL},
57712 { (char *)"ItemContainer_IsEmpty", (PyCFunction)_wrap_ItemContainer_IsEmpty, METH_O, NULL},
57713 { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
57714 { (char *)"ItemContainer_GetStrings", (PyCFunction)_wrap_ItemContainer_GetStrings, METH_O, NULL},
57715 { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
57716 { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
57717 { (char *)"ItemContainer_SetSelection", (PyCFunction) _wrap_ItemContainer_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
57718 { (char *)"ItemContainer_GetSelection", (PyCFunction)_wrap_ItemContainer_GetSelection, METH_O, NULL},
57719 { (char *)"ItemContainer_SetStringSelection", (PyCFunction) _wrap_ItemContainer_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
57720 { (char *)"ItemContainer_GetStringSelection", (PyCFunction)_wrap_ItemContainer_GetStringSelection, METH_O, NULL},
57721 { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL},
57722 { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL},
57723 { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL},
57724 { (char *)"new_SizerItem", (PyCFunction)_wrap_new_SizerItem, METH_NOARGS, NULL},
57725 { (char *)"delete_SizerItem", (PyCFunction)_wrap_delete_SizerItem, METH_O, NULL},
57726 { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57727 { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
57728 { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57729 { (char *)"SizerItem_DeleteWindows", (PyCFunction)_wrap_SizerItem_DeleteWindows, METH_O, NULL},
57730 { (char *)"SizerItem_DetachSizer", (PyCFunction)_wrap_SizerItem_DetachSizer, METH_O, NULL},
57731 { (char *)"SizerItem_GetSize", (PyCFunction)_wrap_SizerItem_GetSize, METH_O, NULL},
57732 { (char *)"SizerItem_CalcMin", (PyCFunction)_wrap_SizerItem_CalcMin, METH_O, NULL},
57733 { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL},
57734 { (char *)"SizerItem_GetMinSize", (PyCFunction)_wrap_SizerItem_GetMinSize, METH_O, NULL},
57735 { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction)_wrap_SizerItem_GetMinSizeWithBorder, METH_O, NULL},
57736 { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL},
57737 { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL},
57738 { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL},
57739 { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL},
57740 { (char *)"SizerItem_GetRatio", (PyCFunction)_wrap_SizerItem_GetRatio, METH_O, NULL},
57741 { (char *)"SizerItem_GetRect", (PyCFunction)_wrap_SizerItem_GetRect, METH_O, NULL},
57742 { (char *)"SizerItem_IsWindow", (PyCFunction)_wrap_SizerItem_IsWindow, METH_O, NULL},
57743 { (char *)"SizerItem_IsSizer", (PyCFunction)_wrap_SizerItem_IsSizer, METH_O, NULL},
57744 { (char *)"SizerItem_IsSpacer", (PyCFunction)_wrap_SizerItem_IsSpacer, METH_O, NULL},
57745 { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL},
57746 { (char *)"SizerItem_GetProportion", (PyCFunction)_wrap_SizerItem_GetProportion, METH_O, NULL},
57747 { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL},
57748 { (char *)"SizerItem_GetFlag", (PyCFunction)_wrap_SizerItem_GetFlag, METH_O, NULL},
57749 { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL},
57750 { (char *)"SizerItem_GetBorder", (PyCFunction)_wrap_SizerItem_GetBorder, METH_O, NULL},
57751 { (char *)"SizerItem_GetWindow", (PyCFunction)_wrap_SizerItem_GetWindow, METH_O, NULL},
57752 { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57753 { (char *)"SizerItem_GetSizer", (PyCFunction)_wrap_SizerItem_GetSizer, METH_O, NULL},
57754 { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57755 { (char *)"SizerItem_GetSpacer", (PyCFunction)_wrap_SizerItem_GetSpacer, METH_O, NULL},
57756 { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
57757 { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL},
57758 { (char *)"SizerItem_IsShown", (PyCFunction)_wrap_SizerItem_IsShown, METH_O, NULL},
57759 { (char *)"SizerItem_GetPosition", (PyCFunction)_wrap_SizerItem_GetPosition, METH_O, NULL},
57760 { (char *)"SizerItem_GetUserData", (PyCFunction)_wrap_SizerItem_GetUserData, METH_O, NULL},
57761 { (char *)"SizerItem_SetUserData", (PyCFunction) _wrap_SizerItem_SetUserData, METH_VARARGS | METH_KEYWORDS, NULL},
57762 { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL},
57763 { (char *)"SizerItem_swiginit", SizerItem_swiginit, METH_VARARGS, NULL},
57764 { (char *)"delete_Sizer", (PyCFunction)_wrap_delete_Sizer, METH_O, NULL},
57765 { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL},
57766 { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL},
57767 { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
57768 { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL},
57769 { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
57770 { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL},
57771 { (char *)"Sizer_GetItem", (PyCFunction) _wrap_Sizer_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
57772 { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL},
ac5d357a
RD
57773 { (char *)"Sizer__ReplaceWin", (PyCFunction) _wrap_Sizer__ReplaceWin, METH_VARARGS | METH_KEYWORDS, NULL},
57774 { (char *)"Sizer__ReplaceSizer", (PyCFunction) _wrap_Sizer__ReplaceSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57775 { (char *)"Sizer__ReplaceItem", (PyCFunction) _wrap_Sizer__ReplaceItem, METH_VARARGS | METH_KEYWORDS, NULL},
57776 { (char *)"Sizer_SetContainingWindow", (PyCFunction) _wrap_Sizer_SetContainingWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57777 { (char *)"Sizer_GetContainingWindow", (PyCFunction)_wrap_Sizer_GetContainingWindow, METH_O, NULL},
1bd55598
RD
57778 { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL},
57779 { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
57780 { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
57781 { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL},
57782 { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL},
57783 { (char *)"Sizer_GetSize", (PyCFunction)_wrap_Sizer_GetSize, METH_O, NULL},
57784 { (char *)"Sizer_GetPosition", (PyCFunction)_wrap_Sizer_GetPosition, METH_O, NULL},
57785 { (char *)"Sizer_GetMinSize", (PyCFunction)_wrap_Sizer_GetMinSize, METH_O, NULL},
57786 { (char *)"Sizer_RecalcSizes", (PyCFunction)_wrap_Sizer_RecalcSizes, METH_O, NULL},
57787 { (char *)"Sizer_CalcMin", (PyCFunction)_wrap_Sizer_CalcMin, METH_O, NULL},
57788 { (char *)"Sizer_Layout", (PyCFunction)_wrap_Sizer_Layout, METH_O, NULL},
57789 { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL},
57790 { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL},
57791 { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL},
57792 { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL},
57793 { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
57794 { (char *)"Sizer_DeleteWindows", (PyCFunction)_wrap_Sizer_DeleteWindows, METH_O, NULL},
57795 { (char *)"Sizer_GetChildren", (PyCFunction)_wrap_Sizer_GetChildren, METH_O, NULL},
57796 { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL},
57797 { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL},
57798 { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL},
57799 { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL},
57800 { (char *)"new_PySizer", (PyCFunction)_wrap_new_PySizer, METH_NOARGS, NULL},
57801 { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
57802 { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL},
57803 { (char *)"PySizer_swiginit", PySizer_swiginit, METH_VARARGS, NULL},
57804 { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57805 { (char *)"BoxSizer_GetOrientation", (PyCFunction)_wrap_BoxSizer_GetOrientation, METH_O, NULL},
57806 { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
57807 { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL},
57808 { (char *)"BoxSizer_swiginit", BoxSizer_swiginit, METH_VARARGS, NULL},
57809 { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57810 { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction)_wrap_StaticBoxSizer_GetStaticBox, METH_O, NULL},
57811 { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL},
57812 { (char *)"StaticBoxSizer_swiginit", StaticBoxSizer_swiginit, METH_VARARGS, NULL},
57813 { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57814 { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL},
57815 { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
57816 { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL},
57817 { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL},
57818 { (char *)"GridSizer_GetCols", (PyCFunction)_wrap_GridSizer_GetCols, METH_O, NULL},
57819 { (char *)"GridSizer_GetRows", (PyCFunction)_wrap_GridSizer_GetRows, METH_O, NULL},
57820 { (char *)"GridSizer_GetVGap", (PyCFunction)_wrap_GridSizer_GetVGap, METH_O, NULL},
57821 { (char *)"GridSizer_GetHGap", (PyCFunction)_wrap_GridSizer_GetHGap, METH_O, NULL},
57822 { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL},
57823 { (char *)"GridSizer_swiginit", GridSizer_swiginit, METH_VARARGS, NULL},
57824 { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57825 { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL},
57826 { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL},
57827 { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL},
57828 { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL},
57829 { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL},
57830 { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction)_wrap_FlexGridSizer_GetFlexibleDirection, METH_O, NULL},
57831 { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL},
57832 { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction)_wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_O, NULL},
57833 { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction)_wrap_FlexGridSizer_GetRowHeights, METH_O, NULL},
57834 { (char *)"FlexGridSizer_GetColWidths", (PyCFunction)_wrap_FlexGridSizer_GetColWidths, METH_O, NULL},
57835 { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL},
57836 { (char *)"FlexGridSizer_swiginit", FlexGridSizer_swiginit, METH_VARARGS, NULL},
57837 { (char *)"new_StdDialogButtonSizer", (PyCFunction)_wrap_new_StdDialogButtonSizer, METH_NOARGS, NULL},
57838 { (char *)"StdDialogButtonSizer_AddButton", (PyCFunction) _wrap_StdDialogButtonSizer_AddButton, METH_VARARGS | METH_KEYWORDS, NULL},
57839 { (char *)"StdDialogButtonSizer_Realize", (PyCFunction)_wrap_StdDialogButtonSizer_Realize, METH_O, NULL},
57840 { (char *)"StdDialogButtonSizer_SetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
57841 { (char *)"StdDialogButtonSizer_SetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
57842 { (char *)"StdDialogButtonSizer_SetCancelButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
57843 { (char *)"StdDialogButtonSizer_GetAffirmativeButton", (PyCFunction)_wrap_StdDialogButtonSizer_GetAffirmativeButton, METH_O, NULL},
57844 { (char *)"StdDialogButtonSizer_GetApplyButton", (PyCFunction)_wrap_StdDialogButtonSizer_GetApplyButton, METH_O, NULL},
57845 { (char *)"StdDialogButtonSizer_GetNegativeButton", (PyCFunction)_wrap_StdDialogButtonSizer_GetNegativeButton, METH_O, NULL},
57846 { (char *)"StdDialogButtonSizer_GetCancelButton", (PyCFunction)_wrap_StdDialogButtonSizer_GetCancelButton, METH_O, NULL},
57847 { (char *)"StdDialogButtonSizer_GetHelpButton", (PyCFunction)_wrap_StdDialogButtonSizer_GetHelpButton, METH_O, NULL},
57848 { (char *)"StdDialogButtonSizer_swigregister", StdDialogButtonSizer_swigregister, METH_VARARGS, NULL},
57849 { (char *)"StdDialogButtonSizer_swiginit", StdDialogButtonSizer_swiginit, METH_VARARGS, NULL},
57850 { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL},
57851 { (char *)"delete_GBPosition", (PyCFunction)_wrap_delete_GBPosition, METH_O, NULL},
57852 { (char *)"GBPosition_GetRow", (PyCFunction)_wrap_GBPosition_GetRow, METH_O, NULL},
57853 { (char *)"GBPosition_GetCol", (PyCFunction)_wrap_GBPosition_GetCol, METH_O, NULL},
57854 { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL},
57855 { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL},
57856 { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
57857 { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
57858 { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL},
57859 { (char *)"GBPosition_Get", (PyCFunction)_wrap_GBPosition_Get, METH_O, NULL},
57860 { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL},
57861 { (char *)"GBPosition_swiginit", GBPosition_swiginit, METH_VARARGS, NULL},
57862 { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL},
57863 { (char *)"delete_GBSpan", (PyCFunction)_wrap_delete_GBSpan, METH_O, NULL},
57864 { (char *)"GBSpan_GetRowspan", (PyCFunction)_wrap_GBSpan_GetRowspan, METH_O, NULL},
57865 { (char *)"GBSpan_GetColspan", (PyCFunction)_wrap_GBSpan_GetColspan, METH_O, NULL},
57866 { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL},
57867 { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL},
57868 { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
57869 { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
57870 { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL},
57871 { (char *)"GBSpan_Get", (PyCFunction)_wrap_GBSpan_Get, METH_O, NULL},
57872 { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL},
57873 { (char *)"GBSpan_swiginit", GBSpan_swiginit, METH_VARARGS, NULL},
57874 { (char *)"new_GBSizerItem", (PyCFunction)_wrap_new_GBSizerItem, METH_NOARGS, NULL},
57875 { (char *)"delete_GBSizerItem", (PyCFunction)_wrap_delete_GBSizerItem, METH_O, NULL},
57876 { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL},
57877 { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57878 { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
57879 { (char *)"GBSizerItem_GetPos", (PyCFunction)_wrap_GBSizerItem_GetPos, METH_O, NULL},
57880 { (char *)"GBSizerItem_GetSpan", (PyCFunction)_wrap_GBSizerItem_GetSpan, METH_O, NULL},
57881 { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL},
57882 { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL},
57883 { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL},
57884 { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL},
57885 { (char *)"GBSizerItem_GetEndPos", (PyCFunction)_wrap_GBSizerItem_GetEndPos, METH_O, NULL},
57886 { (char *)"GBSizerItem_GetGBSizer", (PyCFunction)_wrap_GBSizerItem_GetGBSizer, METH_O, NULL},
57887 { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57888 { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL},
57889 { (char *)"GBSizerItem_swiginit", GBSizerItem_swiginit, METH_VARARGS, NULL},
57890 { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL},
57891 { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL},
57892 { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL},
57893 { (char *)"GridBagSizer_GetCellSize", (PyCFunction) _wrap_GridBagSizer_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL},
57894 { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction)_wrap_GridBagSizer_GetEmptyCellSize, METH_O, NULL},
57895 { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL},
57896 { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL},
57897 { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL},
57898 { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL},
57899 { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL},
57900 { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL},
57901 { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL},
57902 { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
57903 { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL},
57904 { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL},
57905 { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL},
57906 { (char *)"GridBagSizer_swiginit", GridBagSizer_swiginit, METH_VARARGS, NULL},
57907 { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL},
57908 { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL},
57909 { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL},
57910 { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL},
57911 { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL},
57912 { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL},
57913 { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL},
57914 { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL},
57915 { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction)_wrap_IndividualLayoutConstraint_Unconstrained, METH_O, NULL},
57916 { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction)_wrap_IndividualLayoutConstraint_AsIs, METH_O, NULL},
57917 { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction)_wrap_IndividualLayoutConstraint_GetOtherWindow, METH_O, NULL},
57918 { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction)_wrap_IndividualLayoutConstraint_GetMyEdge, METH_O, NULL},
57919 { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL},
57920 { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
57921 { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction)_wrap_IndividualLayoutConstraint_GetMargin, METH_O, NULL},
57922 { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL},
57923 { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction)_wrap_IndividualLayoutConstraint_GetValue, METH_O, NULL},
57924 { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction)_wrap_IndividualLayoutConstraint_GetPercent, METH_O, NULL},
57925 { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction)_wrap_IndividualLayoutConstraint_GetOtherEdge, METH_O, NULL},
57926 { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction)_wrap_IndividualLayoutConstraint_GetDone, METH_O, NULL},
57927 { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL},
57928 { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction)_wrap_IndividualLayoutConstraint_GetRelationship, METH_O, NULL},
57929 { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL},
57930 { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL},
57931 { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL},
57932 { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL},
57933 { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL},
57934 { (char *)"LayoutConstraints_left_get", (PyCFunction)_wrap_LayoutConstraints_left_get, METH_O, NULL},
57935 { (char *)"LayoutConstraints_top_get", (PyCFunction)_wrap_LayoutConstraints_top_get, METH_O, NULL},
57936 { (char *)"LayoutConstraints_right_get", (PyCFunction)_wrap_LayoutConstraints_right_get, METH_O, NULL},
57937 { (char *)"LayoutConstraints_bottom_get", (PyCFunction)_wrap_LayoutConstraints_bottom_get, METH_O, NULL},
57938 { (char *)"LayoutConstraints_width_get", (PyCFunction)_wrap_LayoutConstraints_width_get, METH_O, NULL},
57939 { (char *)"LayoutConstraints_height_get", (PyCFunction)_wrap_LayoutConstraints_height_get, METH_O, NULL},
57940 { (char *)"LayoutConstraints_centreX_get", (PyCFunction)_wrap_LayoutConstraints_centreX_get, METH_O, NULL},
57941 { (char *)"LayoutConstraints_centreY_get", (PyCFunction)_wrap_LayoutConstraints_centreY_get, METH_O, NULL},
57942 { (char *)"new_LayoutConstraints", (PyCFunction)_wrap_new_LayoutConstraints, METH_NOARGS, NULL},
57943 { (char *)"delete_LayoutConstraints", (PyCFunction)_wrap_delete_LayoutConstraints, METH_O, NULL},
57944 { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL},
57945 { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction)_wrap_LayoutConstraints_AreSatisfied, METH_O, NULL},
57946 { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL},
57947 { (char *)"LayoutConstraints_swiginit", LayoutConstraints_swiginit, METH_VARARGS, NULL},
57948 { NULL, NULL, 0, NULL }
57949};
57950
57951
57952/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
57953
57954static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) {
57955 return (void *)((wxSizerItem *) ((wxGBSizerItem *) x));
57956}
57957static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
57958 return (void *)((wxSizer *) ((wxBoxSizer *) x));
57959}
57960static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
57961 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
57962}
57963static void *_p_wxStdDialogButtonSizerTo_p_wxSizer(void *x) {
57964 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
57965}
57966static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
57967 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
57968}
57969static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
57970 return (void *)((wxSizer *) ((wxGridSizer *) x));
57971}
57972static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
57973 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
57974}
57975static void *_p_wxPySizerTo_p_wxSizer(void *x) {
57976 return (void *)((wxSizer *) ((wxPySizer *) x));
57977}
57978static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) {
57979 return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x));
57980}
57981static void *_p_wxStdDialogButtonSizerTo_p_wxBoxSizer(void *x) {
57982 return (void *)((wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
57983}
57984static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
57985 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
57986}
57987static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
57988 return (void *)((wxEvent *) ((wxMenuEvent *) x));
57989}
57990static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
57991 return (void *)((wxEvent *) ((wxCloseEvent *) x));
57992}
57993static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
57994 return (void *)((wxEvent *) ((wxMouseEvent *) x));
57995}
57996static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
57997 return (void *)((wxEvent *) ((wxEraseEvent *) x));
57998}
57999static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
58000 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
58001}
58002static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
58003 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
58004}
58005static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
58006 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
58007}
1bd55598
RD
58008static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
58009 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
58010}
34e0a3bb
RD
58011static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
58012 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
58013}
2131d850
RD
58014static void *_p_wxPyEventTo_p_wxEvent(void *x) {
58015 return (void *)((wxEvent *) ((wxPyEvent *) x));
58016}
1bd55598
RD
58017static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
58018 return (void *)((wxEvent *) ((wxIdleEvent *) x));
58019}
58020static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
58021 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
58022}
58023static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
58024 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
58025}
58026static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
58027 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
58028}
58029static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
58030 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
58031}
58032static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
58033 return (void *)((wxEvent *) ((wxActivateEvent *) x));
58034}
58035static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
58036 return (void *)((wxEvent *) ((wxSizeEvent *) x));
58037}
58038static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
58039 return (void *)((wxEvent *) ((wxMoveEvent *) x));
58040}
58041static void *_p_wxDateEventTo_p_wxEvent(void *x) {
58042 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
58043}
58044static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
58045 return (void *)((wxEvent *) ((wxPaintEvent *) x));
58046}
58047static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
58048 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
58049}
34e0a3bb
RD
58050static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
58051 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
58052}
1bd55598
RD
58053static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
58054 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
58055}
58056static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
58057 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
58058}
58059static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
58060 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
58061}
58062static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
58063 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
58064}
58065static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
58066 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
58067}
58068static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
58069 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
58070}
58071static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
58072 return (void *)((wxEvent *) ((wxFocusEvent *) x));
58073}
58074static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
58075 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
58076}
58077static void *_p_wxShowEventTo_p_wxEvent(void *x) {
58078 return (void *)((wxEvent *) ((wxShowEvent *) x));
58079}
58080static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
58081 return (void *)((wxEvent *) ((wxCommandEvent *) x));
58082}
58083static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
58084 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
58085}
58086static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
58087 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
58088}
58089static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
58090 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
58091}
58092static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
58093 return (void *)((wxEvent *) ((wxKeyEvent *) x));
58094}
58095static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
58096 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
58097}
58098static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) {
58099 return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x));
58100}
58101static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) {
58102 return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x));
58103}
58104static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) {
58105 return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x));
58106}
58107static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
58108 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
58109}
58110static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
58111 return (void *)((wxControl *) ((wxControlWithItems *) x));
58112}
58113static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
58114 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
58115}
58116static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
58117 return (void *)((wxEvtHandler *) ((wxWindow *) x));
58118}
58119static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
58120 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
58121}
58122static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
58123 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
58124}
58125static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
58126 return (void *)((wxEvtHandler *) ((wxValidator *) x));
58127}
58128static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
58129 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
58130}
58131static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
58132 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
58133}
58134static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
58135 return (void *)((wxEvtHandler *) ((wxMenu *) x));
58136}
58137static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) {
58138 return (void *)((wxCURHandler *) ((wxANIHandler *) x));
58139}
58140static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) {
58141 return (void *)((wxICOHandler *) ((wxCURHandler *) x));
58142}
58143static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) {
58144 return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x));
58145}
58146static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) {
58147 return (void *)((wxBMPHandler *) ((wxICOHandler *) x));
58148}
58149static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) {
58150 return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x));
58151}
58152static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) {
58153 return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
58154}
58155static void *_p_wxPyImageHandlerTo_p_wxImageHandler(void *x) {
58156 return (void *)((wxImageHandler *) ((wxPyImageHandler *) x));
58157}
58158static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) {
58159 return (void *)((wxImageHandler *) ((wxBMPHandler *) x));
58160}
58161static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) {
58162 return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x));
58163}
58164static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) {
58165 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
58166}
58167static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) {
58168 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
58169}
58170static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) {
58171 return (void *)((wxImageHandler *) ((wxPNGHandler *) x));
58172}
58173static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) {
58174 return (void *)((wxImageHandler *) ((wxGIFHandler *) x));
58175}
58176static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) {
58177 return (void *)((wxImageHandler *) ((wxPCXHandler *) x));
58178}
58179static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) {
58180 return (void *)((wxImageHandler *) ((wxJPEGHandler *) x));
58181}
58182static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) {
58183 return (void *)((wxImageHandler *) ((wxPNMHandler *) x));
58184}
58185static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) {
58186 return (void *)((wxImageHandler *) ((wxXPMHandler *) x));
58187}
58188static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) {
58189 return (void *)((wxImageHandler *) ((wxTIFFHandler *) x));
58190}
58191static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) {
58192 return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x));
58193}
58194static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) {
58195 return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x));
58196}
58197static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) {
58198 return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x));
58199}
58200static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) {
58201 return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x));
58202}
58203static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
58204 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
58205}
1bd55598
RD
58206static void *_p_wxSizerItemTo_p_wxObject(void *x) {
58207 return (void *)((wxObject *) ((wxSizerItem *) x));
58208}
34e0a3bb
RD
58209static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
58210 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
58211}
1bd55598
RD
58212static void *_p_wxScrollEventTo_p_wxObject(void *x) {
58213 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
58214}
58215static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
58216 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
58217}
58218static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
58219 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
58220}
58221static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
58222 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
58223}
58224static void *_p_wxSizerTo_p_wxObject(void *x) {
58225 return (void *)((wxObject *) ((wxSizer *) x));
58226}
58227static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
58228 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
58229}
58230static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
58231 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
58232}
58233static void *_p_wxEventTo_p_wxObject(void *x) {
58234 return (void *)((wxObject *) ((wxEvent *) x));
58235}
58236static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
58237 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
58238}
58239static void *_p_wxGridSizerTo_p_wxObject(void *x) {
58240 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
58241}
58242static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
58243 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
58244}
2131d850
RD
58245static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
58246 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
58247}
1bd55598
RD
58248static void *_p_wxPaintEventTo_p_wxObject(void *x) {
58249 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
58250}
58251static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
58252 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
58253}
58254static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
58255 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
58256}
58257static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
58258 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
58259}
58260static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
58261 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
58262}
58263static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
58264 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
58265}
58266static void *_p_wxControlTo_p_wxObject(void *x) {
58267 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
58268}
58269static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
58270 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
58271}
58272static void *_p_wxFSFileTo_p_wxObject(void *x) {
58273 return (void *)((wxObject *) ((wxFSFile *) x));
58274}
58275static void *_p_wxPySizerTo_p_wxObject(void *x) {
58276 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
58277}
58278static void *_p_wxPyEventTo_p_wxObject(void *x) {
58279 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
58280}
58281static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
58282 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
58283}
58284static void *_p_wxShowEventTo_p_wxObject(void *x) {
58285 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
58286}
58287static void *_p_wxMenuItemTo_p_wxObject(void *x) {
58288 return (void *)((wxObject *) ((wxMenuItem *) x));
58289}
58290static void *_p_wxDateEventTo_p_wxObject(void *x) {
58291 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
58292}
58293static void *_p_wxIdleEventTo_p_wxObject(void *x) {
58294 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
58295}
58296static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
58297 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
58298}
58299static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
58300 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
58301}
58302static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
58303 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
58304}
58305static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
58306 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
58307}
58308static void *_p_wxSizeEventTo_p_wxObject(void *x) {
58309 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
58310}
58311static void *_p_wxMoveEventTo_p_wxObject(void *x) {
58312 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
58313}
58314static void *_p_wxActivateEventTo_p_wxObject(void *x) {
58315 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
58316}
58317static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
58318 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
58319}
58320static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
58321 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
58322}
58323static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
58324 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
58325}
58326static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
58327 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
58328}
58329static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
58330 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
58331}
58332static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
58333 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
58334}
58335static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
58336 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
58337}
58338static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
58339 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
58340}
58341static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
58342 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
58343}
58344static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
58345 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
58346}
58347static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
58348 return (void *)((wxObject *) ((wxImageHandler *) x));
58349}
58350static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
58351 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
58352}
58353static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
58354 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
58355}
58356static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
58357 return (void *)((wxObject *) ((wxEvtHandler *) x));
58358}
34e0a3bb
RD
58359static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
58360 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
58361}
1bd55598
RD
58362static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
58363 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
58364}
58365static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
58366 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
58367}
58368static void *_p_wxImageTo_p_wxObject(void *x) {
58369 return (void *)((wxObject *) ((wxImage *) x));
58370}
58371static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
58372 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
58373}
58374static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
58375 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
58376}
58377static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
58378 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
58379}
58380static void *_p_wxKeyEventTo_p_wxObject(void *x) {
58381 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
58382}
58383static void *_p_wxWindowTo_p_wxObject(void *x) {
58384 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
58385}
58386static void *_p_wxMenuTo_p_wxObject(void *x) {
58387 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
58388}
58389static void *_p_wxMenuBarTo_p_wxObject(void *x) {
58390 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
58391}
58392static void *_p_wxFileSystemTo_p_wxObject(void *x) {
58393 return (void *)((wxObject *) ((wxFileSystem *) x));
58394}
58395static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
58396 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
58397}
58398static void *_p_wxMenuEventTo_p_wxObject(void *x) {
58399 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
58400}
58401static void *_p_wxPyAppTo_p_wxObject(void *x) {
58402 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
58403}
58404static void *_p_wxCloseEventTo_p_wxObject(void *x) {
58405 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
58406}
58407static void *_p_wxMouseEventTo_p_wxObject(void *x) {
58408 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
58409}
58410static void *_p_wxEraseEventTo_p_wxObject(void *x) {
58411 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
58412}
58413static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
58414 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
58415}
58416static void *_p_wxCommandEventTo_p_wxObject(void *x) {
58417 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
58418}
58419static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
58420 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
58421}
58422static void *_p_wxFocusEventTo_p_wxObject(void *x) {
58423 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
58424}
58425static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
58426 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
58427}
58428static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
58429 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
58430}
58431static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
58432 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
58433}
58434static void *_p_wxValidatorTo_p_wxObject(void *x) {
58435 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
58436}
58437static void *_p_wxControlTo_p_wxWindow(void *x) {
58438 return (void *)((wxWindow *) ((wxControl *) x));
58439}
58440static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
58441 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
58442}
58443static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
58444 return (void *)((wxWindow *) ((wxMenuBar *) x));
58445}
58446static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
58447 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
58448}
58449static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
58450 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
58451}
58452static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
58453 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
58454}
58455static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
58456 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
58457}
58458static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
58459 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
58460}
2131d850
RD
58461static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
58462 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
58463}
1bd55598
RD
58464static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
58465 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
58466}
58467static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
58468 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
58469}
58470static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
58471 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
58472}
58473static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
58474 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
58475}
58476static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
58477 return (void *)((wxValidator *) ((wxPyValidator *) x));
58478}
58479static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
58480static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
58481static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
58482static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
58483static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
58484static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
58485static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
58486static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
58487static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", "wxANIHandler *", 0, 0, (void*)0, 0};
58488static swig_type_info _swigt__p_wxAcceleratorEntry = {"_p_wxAcceleratorEntry", "wxAcceleratorEntry *", 0, 0, (void*)0, 0};
58489static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", "wxAcceleratorTable *", 0, 0, (void*)0, 0};
58490static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", "wxActivateEvent *", 0, 0, (void*)0, 0};
58491static swig_type_info _swigt__p_wxAppTraits = {"_p_wxAppTraits", "wxAppTraits *", 0, 0, (void*)0, 0};
58492static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
58493static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", "wxBMPHandler *", 0, 0, (void*)0, 0};
58494static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
58495static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", "wxBoxSizer *", 0, 0, (void*)0, 0};
58496static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
58497static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", "wxCURHandler *", 0, 0, (void*)0, 0};
58498static swig_type_info _swigt__p_wxCaret = {"_p_wxCaret", "wxCaret *", 0, 0, (void*)0, 0};
58499static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", "wxChildFocusEvent *", 0, 0, (void*)0, 0};
2131d850 58500static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", "wxClipboardTextEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
58501static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", "wxCloseEvent *", 0, 0, (void*)0, 0};
58502static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
58503static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
58504static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", "wxContextMenuEvent *", 0, 0, (void*)0, 0};
58505static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
58506static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
58507static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
58508static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
58509static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", "wxDateEvent *", 0, 0, (void*)0, 0};
58510static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
58511static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", "wxDisplayChangedEvent *", 0, 0, (void*)0, 0};
70d7cb34 58512static swig_type_info _swigt__p_wxDouble = {"_p_wxDouble", "wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
58513static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", "wxDropFilesEvent *", 0, 0, (void*)0, 0};
58514static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
58515static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", "wxEraseEvent *", 0, 0, (void*)0, 0};
58516static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
58517static swig_type_info _swigt__p_wxEventLoop = {"_p_wxEventLoop", "wxEventLoop *", 0, 0, (void*)0, 0};
58518static swig_type_info _swigt__p_wxEventLoopActivator = {"_p_wxEventLoopActivator", "wxEventLoopActivator *", 0, 0, (void*)0, 0};
58519static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
58520static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", "wxFSFile *", 0, 0, (void*)0, 0};
58521static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0};
58522static swig_type_info _swigt__p_wxFileSystemHandler = {"_p_wxFileSystemHandler", "wxFileSystemHandler *", 0, 0, (void*)0, 0};
58523static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", "wxFlexGridSizer *", 0, 0, (void*)0, 0};
58524static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", "wxFocusEvent *", 0, 0, (void*)0, 0};
58525static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
58526static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0};
58527static swig_type_info _swigt__p_wxGBPosition = {"_p_wxGBPosition", "wxGBPosition *", 0, 0, (void*)0, 0};
58528static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", "wxGBSizerItem *", 0, 0, (void*)0, 0};
58529static swig_type_info _swigt__p_wxGBSpan = {"_p_wxGBSpan", "wxGBSpan *", 0, 0, (void*)0, 0};
58530static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", "wxGIFHandler *", 0, 0, (void*)0, 0};
58531static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", "wxGridBagSizer *", 0, 0, (void*)0, 0};
58532static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", "wxGridSizer *", 0, 0, (void*)0, 0};
b850e7f3 58533static swig_type_info _swigt__p_wxHelpEvent__Origin = {"_p_wxHelpEvent__Origin", "wxHelpEvent::Origin *", 0, 0, (void*)0, 0};
1bd55598
RD
58534static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", "wxICOHandler *", 0, 0, (void*)0, 0};
58535static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", "wxIconizeEvent *", 0, 0, (void*)0, 0};
58536static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", "wxIdleEvent *", 0, 0, (void*)0, 0};
58537static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
58538static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", "wxImageHandler *", 0, 0, (void*)0, 0};
58539static swig_type_info _swigt__p_wxImageHistogram = {"_p_wxImageHistogram", "wxImageHistogram *", 0, 0, (void*)0, 0};
58540static swig_type_info _swigt__p_wxImage_HSVValue = {"_p_wxImage_HSVValue", "wxImage_HSVValue *", 0, 0, (void*)0, 0};
58541static swig_type_info _swigt__p_wxImage_RGBValue = {"_p_wxImage_RGBValue", "wxImage_RGBValue *", 0, 0, (void*)0, 0};
58542static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", "wxIndividualLayoutConstraint *", 0, 0, (void*)0, 0};
58543static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", "wxInitDialogEvent *", 0, 0, (void*)0, 0};
58544static swig_type_info _swigt__p_wxInputStream = {"_p_wxInputStream", "wxInputStream *", 0, 0, (void*)0, 0};
58545static swig_type_info _swigt__p_wxInternetFSHandler = {"_p_wxInternetFSHandler", "wxInternetFSHandler *", 0, 0, (void*)0, 0};
58546static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
58547static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", "wxJPEGHandler *", 0, 0, (void*)0, 0};
58548static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
58549static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", "wxLayoutConstraints *", 0, 0, (void*)0, 0};
58550static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", "wxMaximizeEvent *", 0, 0, (void*)0, 0};
58551static swig_type_info _swigt__p_wxMemoryFSHandler = {"_p_wxMemoryFSHandler", "wxMemoryFSHandler *", 0, 0, (void*)0, 0};
58552static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
58553static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", "wxMenuBar *", 0, 0, (void*)0, 0};
58554static swig_type_info _swigt__p_wxMenuBarBase = {"_p_wxMenuBarBase", "wxMenuBarBase *", 0, 0, (void*)0, 0};
58555static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", "wxMenuEvent *", 0, 0, (void*)0, 0};
58556static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", "wxMenuItem *", 0, 0, (void*)0, 0};
58557static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", "wxMouseCaptureChangedEvent *", 0, 0, (void*)0, 0};
34e0a3bb 58558static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", "wxMouseCaptureLostEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
58559static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
58560static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", "wxMoveEvent *", 0, 0, (void*)0, 0};
58561static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", "wxNavigationKeyEvent *", 0, 0, (void*)0, 0};
58562static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", "wxNcPaintEvent *", 0, 0, (void*)0, 0};
58563static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
58564static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
58565static swig_type_info _swigt__p_wxOutputStream = {"_p_wxOutputStream", "wxOutputStream *", 0, 0, (void*)0, 0};
58566static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", "wxPCXHandler *", 0, 0, (void*)0, 0};
58567static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", "wxPNGHandler *", 0, 0, (void*)0, 0};
58568static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", "wxPNMHandler *", 0, 0, (void*)0, 0};
58569static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", "wxPaintEvent *", 0, 0, (void*)0, 0};
58570static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", "wxPaletteChangedEvent *", 0, 0, (void*)0, 0};
58571static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
58572static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
58573static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
58574static swig_type_info _swigt__p_wxPropagateOnce = {"_p_wxPropagateOnce", "wxPropagateOnce *", 0, 0, (void*)0, 0};
58575static swig_type_info _swigt__p_wxPropagationDisabler = {"_p_wxPropagationDisabler", "wxPropagationDisabler *", 0, 0, (void*)0, 0};
58576static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", "wxPyApp *", 0, 0, (void*)0, 0};
58577static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", "wxPyCommandEvent *", 0, 0, (void*)0, 0};
58578static swig_type_info _swigt__p_wxPyDropTarget = {"_p_wxPyDropTarget", "wxPyDropTarget *", 0, 0, (void*)0, 0};
58579static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", "wxPyEvent *", 0, 0, (void*)0, 0};
58580static swig_type_info _swigt__p_wxPyFileSystemHandler = {"_p_wxPyFileSystemHandler", "wxPyFileSystemHandler *", 0, 0, (void*)0, 0};
58581static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", "wxPyImageHandler *", 0, 0, (void*)0, 0};
58582static swig_type_info _swigt__p_wxPyInputStream = {"_p_wxPyInputStream", "wxPyInputStream *", 0, 0, (void*)0, 0};
58583static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", "wxPySizer *", 0, 0, (void*)0, 0};
58584static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", "wxPyValidator *", 0, 0, (void*)0, 0};
58585static swig_type_info _swigt__p_wxQuantize = {"_p_wxQuantize", "wxQuantize *", 0, 0, (void*)0, 0};
58586static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", "wxQueryNewPaletteEvent *", 0, 0, (void*)0, 0};
58587static swig_type_info _swigt__p_wxRealPoint = {"_p_wxRealPoint", "wxRealPoint *", 0, 0, (void*)0, 0};
58588static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 58589static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
1bd55598
RD
58590static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
58591static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", "wxScrollEvent *", 0, 0, (void*)0, 0};
58592static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", "wxScrollWinEvent *", 0, 0, (void*)0, 0};
58593static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", "wxSetCursorEvent *", 0, 0, (void*)0, 0};
58594static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", "wxShowEvent *", 0, 0, (void*)0, 0};
58595static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
58596static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", "wxSizeEvent *", 0, 0, (void*)0, 0};
58597static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", "wxSizer *", 0, 0, (void*)0, 0};
58598static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", "wxSizerItem *", 0, 0, (void*)0, 0};
58599static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
58600static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", "wxStaticBoxSizer *", 0, 0, (void*)0, 0};
58601static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", "wxStdDialogButtonSizer *", 0, 0, (void*)0, 0};
58602static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", "wxSysColourChangedEvent *", 0, 0, (void*)0, 0};
58603static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", "wxTIFFHandler *", 0, 0, (void*)0, 0};
58604static swig_type_info _swigt__p_wxToolTip = {"_p_wxToolTip", "wxToolTip *", 0, 0, (void*)0, 0};
58605static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", "wxUpdateUIEvent *", 0, 0, (void*)0, 0};
58606static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
58607static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
58608static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
58609static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", "wxWindowCreateEvent *", 0, 0, (void*)0, 0};
58610static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", "wxWindowDestroyEvent *", 0, 0, (void*)0, 0};
58611static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", "wxXPMHandler *", 0, 0, (void*)0, 0};
58612static swig_type_info _swigt__p_wxZipFSHandler = {"_p_wxZipFSHandler", "wxZipFSHandler *", 0, 0, (void*)0, 0};
58613
58614static swig_type_info *swig_type_initial[] = {
58615 &_swigt__p_buffer,
58616 &_swigt__p_char,
58617 &_swigt__p_form_ops_t,
58618 &_swigt__p_int,
58619 &_swigt__p_long,
58620 &_swigt__p_unsigned_char,
58621 &_swigt__p_unsigned_int,
58622 &_swigt__p_unsigned_long,
58623 &_swigt__p_wxANIHandler,
58624 &_swigt__p_wxAcceleratorEntry,
58625 &_swigt__p_wxAcceleratorTable,
58626 &_swigt__p_wxActivateEvent,
58627 &_swigt__p_wxAppTraits,
58628 &_swigt__p_wxArrayString,
58629 &_swigt__p_wxBMPHandler,
58630 &_swigt__p_wxBitmap,
58631 &_swigt__p_wxBoxSizer,
58632 &_swigt__p_wxButton,
58633 &_swigt__p_wxCURHandler,
58634 &_swigt__p_wxCaret,
58635 &_swigt__p_wxChildFocusEvent,
2131d850 58636 &_swigt__p_wxClipboardTextEvent,
1bd55598
RD
58637 &_swigt__p_wxCloseEvent,
58638 &_swigt__p_wxColour,
58639 &_swigt__p_wxCommandEvent,
58640 &_swigt__p_wxContextMenuEvent,
58641 &_swigt__p_wxControl,
58642 &_swigt__p_wxControlWithItems,
58643 &_swigt__p_wxCursor,
58644 &_swigt__p_wxDC,
58645 &_swigt__p_wxDateEvent,
58646 &_swigt__p_wxDateTime,
58647 &_swigt__p_wxDisplayChangedEvent,
70d7cb34 58648 &_swigt__p_wxDouble,
1bd55598
RD
58649 &_swigt__p_wxDropFilesEvent,
58650 &_swigt__p_wxDuplexMode,
58651 &_swigt__p_wxEraseEvent,
58652 &_swigt__p_wxEvent,
58653 &_swigt__p_wxEventLoop,
58654 &_swigt__p_wxEventLoopActivator,
58655 &_swigt__p_wxEvtHandler,
58656 &_swigt__p_wxFSFile,
58657 &_swigt__p_wxFileSystem,
58658 &_swigt__p_wxFileSystemHandler,
58659 &_swigt__p_wxFlexGridSizer,
58660 &_swigt__p_wxFocusEvent,
58661 &_swigt__p_wxFont,
58662 &_swigt__p_wxFrame,
58663 &_swigt__p_wxGBPosition,
58664 &_swigt__p_wxGBSizerItem,
58665 &_swigt__p_wxGBSpan,
58666 &_swigt__p_wxGIFHandler,
58667 &_swigt__p_wxGridBagSizer,
58668 &_swigt__p_wxGridSizer,
b850e7f3 58669 &_swigt__p_wxHelpEvent__Origin,
1bd55598
RD
58670 &_swigt__p_wxICOHandler,
58671 &_swigt__p_wxIconizeEvent,
58672 &_swigt__p_wxIdleEvent,
58673 &_swigt__p_wxImage,
58674 &_swigt__p_wxImageHandler,
58675 &_swigt__p_wxImageHistogram,
58676 &_swigt__p_wxImage_HSVValue,
58677 &_swigt__p_wxImage_RGBValue,
58678 &_swigt__p_wxIndividualLayoutConstraint,
58679 &_swigt__p_wxInitDialogEvent,
58680 &_swigt__p_wxInputStream,
58681 &_swigt__p_wxInternetFSHandler,
58682 &_swigt__p_wxItemContainer,
58683 &_swigt__p_wxJPEGHandler,
58684 &_swigt__p_wxKeyEvent,
58685 &_swigt__p_wxLayoutConstraints,
58686 &_swigt__p_wxMaximizeEvent,
58687 &_swigt__p_wxMemoryFSHandler,
58688 &_swigt__p_wxMenu,
58689 &_swigt__p_wxMenuBar,
58690 &_swigt__p_wxMenuBarBase,
58691 &_swigt__p_wxMenuEvent,
58692 &_swigt__p_wxMenuItem,
58693 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 58694 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
58695 &_swigt__p_wxMouseEvent,
58696 &_swigt__p_wxMoveEvent,
58697 &_swigt__p_wxNavigationKeyEvent,
58698 &_swigt__p_wxNcPaintEvent,
58699 &_swigt__p_wxNotifyEvent,
58700 &_swigt__p_wxObject,
58701 &_swigt__p_wxOutputStream,
58702 &_swigt__p_wxPCXHandler,
58703 &_swigt__p_wxPNGHandler,
58704 &_swigt__p_wxPNMHandler,
58705 &_swigt__p_wxPaintEvent,
58706 &_swigt__p_wxPaletteChangedEvent,
58707 &_swigt__p_wxPaperSize,
58708 &_swigt__p_wxPoint,
58709 &_swigt__p_wxPoint2D,
58710 &_swigt__p_wxPropagateOnce,
58711 &_swigt__p_wxPropagationDisabler,
58712 &_swigt__p_wxPyApp,
58713 &_swigt__p_wxPyCommandEvent,
58714 &_swigt__p_wxPyDropTarget,
58715 &_swigt__p_wxPyEvent,
58716 &_swigt__p_wxPyFileSystemHandler,
58717 &_swigt__p_wxPyImageHandler,
58718 &_swigt__p_wxPyInputStream,
58719 &_swigt__p_wxPySizer,
58720 &_swigt__p_wxPyValidator,
58721 &_swigt__p_wxQuantize,
58722 &_swigt__p_wxQueryNewPaletteEvent,
58723 &_swigt__p_wxRealPoint,
58724 &_swigt__p_wxRect,
70d7cb34 58725 &_swigt__p_wxRect2D,
1bd55598
RD
58726 &_swigt__p_wxRegion,
58727 &_swigt__p_wxScrollEvent,
58728 &_swigt__p_wxScrollWinEvent,
58729 &_swigt__p_wxSetCursorEvent,
58730 &_swigt__p_wxShowEvent,
58731 &_swigt__p_wxSize,
58732 &_swigt__p_wxSizeEvent,
58733 &_swigt__p_wxSizer,
58734 &_swigt__p_wxSizerItem,
58735 &_swigt__p_wxStaticBox,
58736 &_swigt__p_wxStaticBoxSizer,
58737 &_swigt__p_wxStdDialogButtonSizer,
58738 &_swigt__p_wxSysColourChangedEvent,
58739 &_swigt__p_wxTIFFHandler,
58740 &_swigt__p_wxToolTip,
58741 &_swigt__p_wxUpdateUIEvent,
58742 &_swigt__p_wxValidator,
58743 &_swigt__p_wxVisualAttributes,
58744 &_swigt__p_wxWindow,
58745 &_swigt__p_wxWindowCreateEvent,
58746 &_swigt__p_wxWindowDestroyEvent,
58747 &_swigt__p_wxXPMHandler,
58748 &_swigt__p_wxZipFSHandler,
58749};
58750
58751static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
58752static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
58753static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
58754static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
58755static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
58756static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
58757static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
58758static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
58759static swig_cast_info _swigc__p_wxANIHandler[] = { {&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
58760static swig_cast_info _swigc__p_wxAcceleratorEntry[] = { {&_swigt__p_wxAcceleratorEntry, 0, 0, 0},{0, 0, 0, 0}};
58761static swig_cast_info _swigc__p_wxAcceleratorTable[] = { {&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
58762static swig_cast_info _swigc__p_wxActivateEvent[] = { {&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
58763static swig_cast_info _swigc__p_wxAppTraits[] = { {&_swigt__p_wxAppTraits, 0, 0, 0},{0, 0, 0, 0}};
58764static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
58765static 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}};
58766static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
58767static 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}};
58768static swig_cast_info _swigc__p_wxButton[] = { {&_swigt__p_wxButton, 0, 0, 0},{0, 0, 0, 0}};
58769static 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}};
58770static swig_cast_info _swigc__p_wxCaret[] = { {&_swigt__p_wxCaret, 0, 0, 0},{0, 0, 0, 0}};
58771static swig_cast_info _swigc__p_wxChildFocusEvent[] = { {&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 58772static swig_cast_info _swigc__p_wxClipboardTextEvent[] = { {&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
58773static swig_cast_info _swigc__p_wxCloseEvent[] = { {&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
58774static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
2131d850 58775static 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
58776static swig_cast_info _swigc__p_wxContextMenuEvent[] = { {&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
58777static 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}};
58778static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
58779static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
58780static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
58781static swig_cast_info _swigc__p_wxDateEvent[] = { {&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
58782static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
58783static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = { {&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 58784static swig_cast_info _swigc__p_wxDouble[] = { {&_swigt__p_wxDouble, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
58785static swig_cast_info _swigc__p_wxDropFilesEvent[] = { {&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
58786static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
58787static swig_cast_info _swigc__p_wxEraseEvent[] = { {&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 58788static 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
58789static swig_cast_info _swigc__p_wxEventLoop[] = { {&_swigt__p_wxEventLoop, 0, 0, 0},{0, 0, 0, 0}};
58790static swig_cast_info _swigc__p_wxEventLoopActivator[] = { {&_swigt__p_wxEventLoopActivator, 0, 0, 0},{0, 0, 0, 0}};
58791static 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}};
58792static swig_cast_info _swigc__p_wxFSFile[] = { {&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
58793static swig_cast_info _swigc__p_wxFileSystem[] = { {&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
58794static 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}};
58795static 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}};
58796static swig_cast_info _swigc__p_wxFocusEvent[] = { {&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
58797static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
58798static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}};
58799static swig_cast_info _swigc__p_wxGBPosition[] = { {&_swigt__p_wxGBPosition, 0, 0, 0},{0, 0, 0, 0}};
58800static swig_cast_info _swigc__p_wxGBSizerItem[] = { {&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
58801static swig_cast_info _swigc__p_wxGBSpan[] = { {&_swigt__p_wxGBSpan, 0, 0, 0},{0, 0, 0, 0}};
58802static swig_cast_info _swigc__p_wxGIFHandler[] = { {&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
58803static swig_cast_info _swigc__p_wxGridBagSizer[] = { {&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
58804static 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 58805static swig_cast_info _swigc__p_wxHelpEvent__Origin[] = { {&_swigt__p_wxHelpEvent__Origin, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
58806static 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}};
58807static swig_cast_info _swigc__p_wxIconizeEvent[] = { {&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
58808static swig_cast_info _swigc__p_wxIdleEvent[] = { {&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
58809static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
58810static swig_cast_info _swigc__p_wxImageHandler[] = { {&_swigt__p_wxImageHandler, 0, 0, 0}, {&_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},{0, 0, 0, 0}};
58811static swig_cast_info _swigc__p_wxImageHistogram[] = { {&_swigt__p_wxImageHistogram, 0, 0, 0},{0, 0, 0, 0}};
58812static swig_cast_info _swigc__p_wxImage_HSVValue[] = { {&_swigt__p_wxImage_HSVValue, 0, 0, 0},{0, 0, 0, 0}};
58813static swig_cast_info _swigc__p_wxImage_RGBValue[] = { {&_swigt__p_wxImage_RGBValue, 0, 0, 0},{0, 0, 0, 0}};
58814static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = { {&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
58815static swig_cast_info _swigc__p_wxInitDialogEvent[] = { {&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
58816static swig_cast_info _swigc__p_wxInputStream[] = { {&_swigt__p_wxInputStream, 0, 0, 0},{0, 0, 0, 0}};
58817static swig_cast_info _swigc__p_wxInternetFSHandler[] = { {&_swigt__p_wxInternetFSHandler, 0, 0, 0},{0, 0, 0, 0}};
58818static 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}};
58819static swig_cast_info _swigc__p_wxJPEGHandler[] = { {&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
58820static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
58821static swig_cast_info _swigc__p_wxLayoutConstraints[] = { {&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
58822static swig_cast_info _swigc__p_wxMaximizeEvent[] = { {&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
58823static swig_cast_info _swigc__p_wxMemoryFSHandler[] = { {&_swigt__p_wxMemoryFSHandler, 0, 0, 0},{0, 0, 0, 0}};
58824static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
58825static swig_cast_info _swigc__p_wxMenuBar[] = { {&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
58826static swig_cast_info _swigc__p_wxMenuBarBase[] = { {&_swigt__p_wxMenuBarBase, 0, 0, 0},{0, 0, 0, 0}};
58827static swig_cast_info _swigc__p_wxMenuEvent[] = { {&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
58828static swig_cast_info _swigc__p_wxMenuItem[] = { {&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
58829static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = { {&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 58830static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = { {&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
58831static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
58832static swig_cast_info _swigc__p_wxMoveEvent[] = { {&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
58833static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = { {&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
58834static swig_cast_info _swigc__p_wxNcPaintEvent[] = { {&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
58835static swig_cast_info _swigc__p_wxNotifyEvent[] = { {&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 58836static 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_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_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_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_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_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
58837static swig_cast_info _swigc__p_wxOutputStream[] = { {&_swigt__p_wxOutputStream, 0, 0, 0},{0, 0, 0, 0}};
58838static swig_cast_info _swigc__p_wxPCXHandler[] = { {&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
58839static swig_cast_info _swigc__p_wxPNGHandler[] = { {&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
58840static swig_cast_info _swigc__p_wxPNMHandler[] = { {&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
58841static swig_cast_info _swigc__p_wxPaintEvent[] = { {&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
58842static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = { {&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
58843static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
58844static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
58845static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
58846static swig_cast_info _swigc__p_wxPropagateOnce[] = { {&_swigt__p_wxPropagateOnce, 0, 0, 0},{0, 0, 0, 0}};
58847static swig_cast_info _swigc__p_wxPropagationDisabler[] = { {&_swigt__p_wxPropagationDisabler, 0, 0, 0},{0, 0, 0, 0}};
58848static swig_cast_info _swigc__p_wxPyApp[] = { {&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
58849static swig_cast_info _swigc__p_wxPyCommandEvent[] = { {&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
58850static swig_cast_info _swigc__p_wxPyDropTarget[] = { {&_swigt__p_wxPyDropTarget, 0, 0, 0},{0, 0, 0, 0}};
58851static swig_cast_info _swigc__p_wxPyEvent[] = { {&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
58852static swig_cast_info _swigc__p_wxPyFileSystemHandler[] = { {&_swigt__p_wxPyFileSystemHandler, 0, 0, 0},{0, 0, 0, 0}};
58853static swig_cast_info _swigc__p_wxPyImageHandler[] = { {&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
58854static swig_cast_info _swigc__p_wxPyInputStream[] = { {&_swigt__p_wxPyInputStream, 0, 0, 0},{0, 0, 0, 0}};
58855static swig_cast_info _swigc__p_wxPySizer[] = { {&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
58856static swig_cast_info _swigc__p_wxPyValidator[] = { {&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
58857static swig_cast_info _swigc__p_wxQuantize[] = { {&_swigt__p_wxQuantize, 0, 0, 0},{0, 0, 0, 0}};
58858static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = { {&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
58859static swig_cast_info _swigc__p_wxRealPoint[] = { {&_swigt__p_wxRealPoint, 0, 0, 0},{0, 0, 0, 0}};
58860static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 58861static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
58862static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
58863static swig_cast_info _swigc__p_wxScrollEvent[] = { {&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
58864static swig_cast_info _swigc__p_wxScrollWinEvent[] = { {&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
58865static swig_cast_info _swigc__p_wxSetCursorEvent[] = { {&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
58866static swig_cast_info _swigc__p_wxShowEvent[] = { {&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
58867static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
58868static swig_cast_info _swigc__p_wxSizeEvent[] = { {&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
58869static 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}};
58870static 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}};
58871static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
58872static swig_cast_info _swigc__p_wxStaticBoxSizer[] = { {&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
58873static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = { {&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
58874static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = { {&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
58875static swig_cast_info _swigc__p_wxTIFFHandler[] = { {&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
58876static swig_cast_info _swigc__p_wxToolTip[] = { {&_swigt__p_wxToolTip, 0, 0, 0},{0, 0, 0, 0}};
58877static swig_cast_info _swigc__p_wxUpdateUIEvent[] = { {&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
58878static 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}};
58879static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
58880static 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}};
58881static swig_cast_info _swigc__p_wxWindowCreateEvent[] = { {&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
58882static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = { {&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
58883static swig_cast_info _swigc__p_wxXPMHandler[] = { {&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
58884static swig_cast_info _swigc__p_wxZipFSHandler[] = { {&_swigt__p_wxZipFSHandler, 0, 0, 0},{0, 0, 0, 0}};
58885
58886static swig_cast_info *swig_cast_initial[] = {
58887 _swigc__p_buffer,
58888 _swigc__p_char,
58889 _swigc__p_form_ops_t,
58890 _swigc__p_int,
58891 _swigc__p_long,
58892 _swigc__p_unsigned_char,
58893 _swigc__p_unsigned_int,
58894 _swigc__p_unsigned_long,
58895 _swigc__p_wxANIHandler,
58896 _swigc__p_wxAcceleratorEntry,
58897 _swigc__p_wxAcceleratorTable,
58898 _swigc__p_wxActivateEvent,
58899 _swigc__p_wxAppTraits,
58900 _swigc__p_wxArrayString,
58901 _swigc__p_wxBMPHandler,
58902 _swigc__p_wxBitmap,
58903 _swigc__p_wxBoxSizer,
58904 _swigc__p_wxButton,
58905 _swigc__p_wxCURHandler,
58906 _swigc__p_wxCaret,
58907 _swigc__p_wxChildFocusEvent,
2131d850 58908 _swigc__p_wxClipboardTextEvent,
1bd55598
RD
58909 _swigc__p_wxCloseEvent,
58910 _swigc__p_wxColour,
58911 _swigc__p_wxCommandEvent,
58912 _swigc__p_wxContextMenuEvent,
58913 _swigc__p_wxControl,
58914 _swigc__p_wxControlWithItems,
58915 _swigc__p_wxCursor,
58916 _swigc__p_wxDC,
58917 _swigc__p_wxDateEvent,
58918 _swigc__p_wxDateTime,
58919 _swigc__p_wxDisplayChangedEvent,
70d7cb34 58920 _swigc__p_wxDouble,
1bd55598
RD
58921 _swigc__p_wxDropFilesEvent,
58922 _swigc__p_wxDuplexMode,
58923 _swigc__p_wxEraseEvent,
58924 _swigc__p_wxEvent,
58925 _swigc__p_wxEventLoop,
58926 _swigc__p_wxEventLoopActivator,
58927 _swigc__p_wxEvtHandler,
58928 _swigc__p_wxFSFile,
58929 _swigc__p_wxFileSystem,
58930 _swigc__p_wxFileSystemHandler,
58931 _swigc__p_wxFlexGridSizer,
58932 _swigc__p_wxFocusEvent,
58933 _swigc__p_wxFont,
58934 _swigc__p_wxFrame,
58935 _swigc__p_wxGBPosition,
58936 _swigc__p_wxGBSizerItem,
58937 _swigc__p_wxGBSpan,
58938 _swigc__p_wxGIFHandler,
58939 _swigc__p_wxGridBagSizer,
58940 _swigc__p_wxGridSizer,
b850e7f3 58941 _swigc__p_wxHelpEvent__Origin,
1bd55598
RD
58942 _swigc__p_wxICOHandler,
58943 _swigc__p_wxIconizeEvent,
58944 _swigc__p_wxIdleEvent,
58945 _swigc__p_wxImage,
58946 _swigc__p_wxImageHandler,
58947 _swigc__p_wxImageHistogram,
58948 _swigc__p_wxImage_HSVValue,
58949 _swigc__p_wxImage_RGBValue,
58950 _swigc__p_wxIndividualLayoutConstraint,
58951 _swigc__p_wxInitDialogEvent,
58952 _swigc__p_wxInputStream,
58953 _swigc__p_wxInternetFSHandler,
58954 _swigc__p_wxItemContainer,
58955 _swigc__p_wxJPEGHandler,
58956 _swigc__p_wxKeyEvent,
58957 _swigc__p_wxLayoutConstraints,
58958 _swigc__p_wxMaximizeEvent,
58959 _swigc__p_wxMemoryFSHandler,
58960 _swigc__p_wxMenu,
58961 _swigc__p_wxMenuBar,
58962 _swigc__p_wxMenuBarBase,
58963 _swigc__p_wxMenuEvent,
58964 _swigc__p_wxMenuItem,
58965 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 58966 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
58967 _swigc__p_wxMouseEvent,
58968 _swigc__p_wxMoveEvent,
58969 _swigc__p_wxNavigationKeyEvent,
58970 _swigc__p_wxNcPaintEvent,
58971 _swigc__p_wxNotifyEvent,
58972 _swigc__p_wxObject,
58973 _swigc__p_wxOutputStream,
58974 _swigc__p_wxPCXHandler,
58975 _swigc__p_wxPNGHandler,
58976 _swigc__p_wxPNMHandler,
58977 _swigc__p_wxPaintEvent,
58978 _swigc__p_wxPaletteChangedEvent,
58979 _swigc__p_wxPaperSize,
58980 _swigc__p_wxPoint,
58981 _swigc__p_wxPoint2D,
58982 _swigc__p_wxPropagateOnce,
58983 _swigc__p_wxPropagationDisabler,
58984 _swigc__p_wxPyApp,
58985 _swigc__p_wxPyCommandEvent,
58986 _swigc__p_wxPyDropTarget,
58987 _swigc__p_wxPyEvent,
58988 _swigc__p_wxPyFileSystemHandler,
58989 _swigc__p_wxPyImageHandler,
58990 _swigc__p_wxPyInputStream,
58991 _swigc__p_wxPySizer,
58992 _swigc__p_wxPyValidator,
58993 _swigc__p_wxQuantize,
58994 _swigc__p_wxQueryNewPaletteEvent,
58995 _swigc__p_wxRealPoint,
58996 _swigc__p_wxRect,
70d7cb34 58997 _swigc__p_wxRect2D,
1bd55598
RD
58998 _swigc__p_wxRegion,
58999 _swigc__p_wxScrollEvent,
59000 _swigc__p_wxScrollWinEvent,
59001 _swigc__p_wxSetCursorEvent,
59002 _swigc__p_wxShowEvent,
59003 _swigc__p_wxSize,
59004 _swigc__p_wxSizeEvent,
59005 _swigc__p_wxSizer,
59006 _swigc__p_wxSizerItem,
59007 _swigc__p_wxStaticBox,
59008 _swigc__p_wxStaticBoxSizer,
59009 _swigc__p_wxStdDialogButtonSizer,
59010 _swigc__p_wxSysColourChangedEvent,
59011 _swigc__p_wxTIFFHandler,
59012 _swigc__p_wxToolTip,
59013 _swigc__p_wxUpdateUIEvent,
59014 _swigc__p_wxValidator,
59015 _swigc__p_wxVisualAttributes,
59016 _swigc__p_wxWindow,
59017 _swigc__p_wxWindowCreateEvent,
59018 _swigc__p_wxWindowDestroyEvent,
59019 _swigc__p_wxXPMHandler,
59020 _swigc__p_wxZipFSHandler,
59021};
59022
59023
59024/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
59025
59026static swig_const_info swig_const_table[] = {
59027{0, 0, 0, 0.0, 0, 0}};
59028
59029#ifdef __cplusplus
59030}
59031#endif
59032/* -----------------------------------------------------------------------------
59033 * Type initialization:
59034 * This problem is tough by the requirement that no dynamic
59035 * memory is used. Also, since swig_type_info structures store pointers to
59036 * swig_cast_info structures and swig_cast_info structures store pointers back
59037 * to swig_type_info structures, we need some lookup code at initialization.
59038 * The idea is that swig generates all the structures that are needed.
59039 * The runtime then collects these partially filled structures.
59040 * The SWIG_InitializeModule function takes these initial arrays out of
59041 * swig_module, and does all the lookup, filling in the swig_module.types
59042 * array with the correct data and linking the correct swig_cast_info
59043 * structures together.
59044 *
59045 * The generated swig_type_info structures are assigned staticly to an initial
59046 * array. We just loop though that array, and handle each type individually.
59047 * First we lookup if this type has been already loaded, and if so, use the
59048 * loaded structure instead of the generated one. Then we have to fill in the
59049 * cast linked list. The cast data is initially stored in something like a
59050 * two-dimensional array. Each row corresponds to a type (there are the same
59051 * number of rows as there are in the swig_type_initial array). Each entry in
59052 * a column is one of the swig_cast_info structures for that type.
59053 * The cast_initial array is actually an array of arrays, because each row has
59054 * a variable number of columns. So to actually build the cast linked list,
59055 * we find the array of casts associated with the type, and loop through it
59056 * adding the casts to the list. The one last trick we need to do is making
59057 * sure the type pointer in the swig_cast_info struct is correct.
59058 *
59059 * First off, we lookup the cast->type name to see if it is already loaded.
59060 * There are three cases to handle:
59061 * 1) If the cast->type has already been loaded AND the type we are adding
59062 * casting info to has not been loaded (it is in this module), THEN we
59063 * replace the cast->type pointer with the type pointer that has already
59064 * been loaded.
59065 * 2) If BOTH types (the one we are adding casting info to, and the
59066 * cast->type) are loaded, THEN the cast info has already been loaded by
59067 * the previous module so we just ignore it.
59068 * 3) Finally, if cast->type has not already been loaded, then we add that
59069 * swig_cast_info to the linked list (because the cast->type) pointer will
59070 * be correct.
59071 * ----------------------------------------------------------------------------- */
59072
59073#ifdef __cplusplus
59074extern "C" {
59075#if 0
59076} /* c-mode */
59077#endif
59078#endif
59079
59080#if 0
59081#define SWIGRUNTIME_DEBUG
59082#endif
59083
59084SWIGRUNTIME void
59085SWIG_InitializeModule(void *clientdata) {
59086 size_t i;
59087 swig_module_info *module_head;
59088 static int init_run = 0;
59089
59090 clientdata = clientdata;
59091
59092 if (init_run) return;
59093 init_run = 1;
59094
59095 /* Initialize the swig_module */
59096 swig_module.type_initial = swig_type_initial;
59097 swig_module.cast_initial = swig_cast_initial;
59098
59099 /* Try and load any already created modules */
59100 module_head = SWIG_GetModule(clientdata);
59101 if (module_head) {
59102 swig_module.next = module_head->next;
59103 module_head->next = &swig_module;
59104 } else {
59105 /* This is the first module loaded */
59106 swig_module.next = &swig_module;
59107 SWIG_SetModule(clientdata, &swig_module);
59108 }
59109
59110 /* Now work on filling in swig_module.types */
59111#ifdef SWIGRUNTIME_DEBUG
59112 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
59113#endif
59114 for (i = 0; i < swig_module.size; ++i) {
59115 swig_type_info *type = 0;
59116 swig_type_info *ret;
59117 swig_cast_info *cast;
59118
59119#ifdef SWIGRUNTIME_DEBUG
59120 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
59121#endif
59122
59123 /* if there is another module already loaded */
59124 if (swig_module.next != &swig_module) {
59125 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36ed4f51 59126 }
1bd55598
RD
59127 if (type) {
59128 /* Overwrite clientdata field */
59129#ifdef SWIGRUNTIME_DEBUG
59130 printf("SWIG_InitializeModule: found type %s\n", type->name);
59131#endif
59132 if (swig_module.type_initial[i]->clientdata) {
59133 type->clientdata = swig_module.type_initial[i]->clientdata;
59134#ifdef SWIGRUNTIME_DEBUG
59135 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
59136#endif
59137 }
59138 } else {
59139 type = swig_module.type_initial[i];
36ed4f51 59140 }
1bd55598
RD
59141
59142 /* Insert casting types */
59143 cast = swig_module.cast_initial[i];
59144 while (cast->type) {
59145 /* Don't need to add information already in the list */
59146 ret = 0;
59147#ifdef SWIGRUNTIME_DEBUG
59148 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
59149#endif
59150 if (swig_module.next != &swig_module) {
59151 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
59152#ifdef SWIGRUNTIME_DEBUG
59153 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
59154#endif
59155 }
59156 if (ret) {
59157 if (type == swig_module.type_initial[i]) {
59158#ifdef SWIGRUNTIME_DEBUG
59159 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
59160#endif
59161 cast->type = ret;
59162 ret = 0;
59163 } else {
59164 /* Check for casting already in the list */
59165 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
59166#ifdef SWIGRUNTIME_DEBUG
59167 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
59168#endif
59169 if (!ocast) ret = 0;
59170 }
59171 }
59172
59173 if (!ret) {
59174#ifdef SWIGRUNTIME_DEBUG
59175 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
59176#endif
59177 if (type->cast) {
59178 type->cast->prev = cast;
59179 cast->next = type->cast;
59180 }
59181 type->cast = cast;
59182 }
59183 cast++;
36ed4f51 59184 }
1bd55598
RD
59185 /* Set entry in modules->types array equal to the type */
59186 swig_module.types[i] = type;
59187 }
59188 swig_module.types[i] = 0;
59189
59190#ifdef SWIGRUNTIME_DEBUG
59191 printf("**** SWIG_InitializeModule: Cast List ******\n");
59192 for (i = 0; i < swig_module.size; ++i) {
59193 int j = 0;
59194 swig_cast_info *cast = swig_module.cast_initial[i];
59195 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
59196 while (cast->type) {
59197 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
59198 cast++;
59199 ++j;
59200 }
59201 printf("---- Total casts: %d\n",j);
59202 }
59203 printf("**** SWIG_InitializeModule: Cast List ******\n");
59204#endif
59205}
59206
59207/* This function will propagate the clientdata field of type to
59208* any new swig_type_info structures that have been added into the list
59209* of equivalent types. It is like calling
59210* SWIG_TypeClientData(type, clientdata) a second time.
59211*/
59212SWIGRUNTIME void
59213SWIG_PropagateClientData(void) {
59214 size_t i;
59215 swig_cast_info *equiv;
59216 static int init_run = 0;
59217
59218 if (init_run) return;
59219 init_run = 1;
59220
59221 for (i = 0; i < swig_module.size; i++) {
59222 if (swig_module.types[i]->clientdata) {
59223 equiv = swig_module.types[i]->cast;
59224 while (equiv) {
59225 if (!equiv->converter) {
59226 if (equiv->type && !equiv->type->clientdata)
59227 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
59228 }
59229 equiv = equiv->next;
59230 }
36ed4f51 59231 }
1bd55598
RD
59232 }
59233}
59234
59235#ifdef __cplusplus
59236#if 0
59237{
59238 /* c-mode */
59239#endif
59240}
59241#endif
59242
59243
59244
59245#ifdef __cplusplus
59246extern "C" {
59247#endif
59248
59249 /* Python-specific SWIG API */
59250#define SWIG_newvarlink() SWIG_Python_newvarlink()
59251#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
59252#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
59253
59254 /* -----------------------------------------------------------------------------
59255 * global variable support code.
59256 * ----------------------------------------------------------------------------- */
59257
59258 typedef struct swig_globalvar {
59259 char *name; /* Name of global variable */
59260 PyObject *(*get_attr)(void); /* Return the current value */
59261 int (*set_attr)(PyObject *); /* Set the value */
59262 struct swig_globalvar *next;
59263 } swig_globalvar;
59264
59265 typedef struct swig_varlinkobject {
59266 PyObject_HEAD
59267 swig_globalvar *vars;
59268 } swig_varlinkobject;
59269
59270 SWIGINTERN PyObject *
59271 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
59272 return PyString_FromString("<Swig global variables>");
59273 }
59274
59275 SWIGINTERN PyObject *
59276 swig_varlink_str(swig_varlinkobject *v) {
59277 PyObject *str = PyString_FromString("(");
59278 swig_globalvar *var;
59279 for (var = v->vars; var; var=var->next) {
59280 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
59281 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
59282 }
59283 PyString_ConcatAndDel(&str,PyString_FromString(")"));
59284 return str;
59285 }
59286
59287 SWIGINTERN int
59288 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
59289 PyObject *str = swig_varlink_str(v);
59290 fprintf(fp,"Swig global variables ");
59291 fprintf(fp,"%s\n", PyString_AsString(str));
59292 Py_DECREF(str);
59293 return 0;
59294 }
59295
59296 SWIGINTERN void
59297 swig_varlink_dealloc(swig_varlinkobject *v) {
59298 swig_globalvar *var = v->vars;
59299 while (var) {
59300 swig_globalvar *n = var->next;
59301 free(var->name);
59302 free(var);
59303 var = n;
36ed4f51 59304 }
1bd55598
RD
59305 }
59306
59307 SWIGINTERN PyObject *
59308 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
59309 PyObject *res = NULL;
59310 swig_globalvar *var = v->vars;
59311 while (var) {
59312 if (strcmp(var->name,n) == 0) {
59313 res = (*var->get_attr)();
59314 break;
59315 }
59316 var = var->next;
36ed4f51 59317 }
1bd55598
RD
59318 if (res == NULL && !PyErr_Occurred()) {
59319 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36ed4f51 59320 }
1bd55598
RD
59321 return res;
59322 }
59323
59324 SWIGINTERN int
59325 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
59326 int res = 1;
59327 swig_globalvar *var = v->vars;
59328 while (var) {
59329 if (strcmp(var->name,n) == 0) {
59330 res = (*var->set_attr)(p);
59331 break;
59332 }
59333 var = var->next;
36ed4f51 59334 }
1bd55598
RD
59335 if (res == 1 && !PyErr_Occurred()) {
59336 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36ed4f51 59337 }
1bd55598
RD
59338 return res;
59339 }
59340
59341 SWIGINTERN PyTypeObject*
59342 swig_varlink_type(void) {
59343 static char varlink__doc__[] = "Swig var link object";
59344 static PyTypeObject varlink_type;
59345 static int type_init = 0;
59346 if (!type_init) {
59347 const PyTypeObject tmp
59348 = {
59349 PyObject_HEAD_INIT(NULL)
59350 0, /* Number of items in variable part (ob_size) */
59351 (char *)"swigvarlink", /* Type name (tp_name) */
59352 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
59353 0, /* Itemsize (tp_itemsize) */
59354 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
59355 (printfunc) swig_varlink_print, /* Print (tp_print) */
59356 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
59357 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
59358 0, /* tp_compare */
59359 (reprfunc) swig_varlink_repr, /* tp_repr */
59360 0, /* tp_as_number */
59361 0, /* tp_as_sequence */
59362 0, /* tp_as_mapping */
59363 0, /* tp_hash */
59364 0, /* tp_call */
59365 (reprfunc)swig_varlink_str, /* tp_str */
59366 0, /* tp_getattro */
59367 0, /* tp_setattro */
59368 0, /* tp_as_buffer */
59369 0, /* tp_flags */
59370 varlink__doc__, /* tp_doc */
59371 0, /* tp_traverse */
59372 0, /* tp_clear */
59373 0, /* tp_richcompare */
59374 0, /* tp_weaklistoffset */
59375#if PY_VERSION_HEX >= 0x02020000
59376 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
59377#endif
59378#if PY_VERSION_HEX >= 0x02030000
59379 0, /* tp_del */
59380#endif
59381#ifdef COUNT_ALLOCS
59382 0,0,0,0 /* tp_alloc -> tp_next */
59383#endif
59384 };
59385 varlink_type = tmp;
59386 varlink_type.ob_type = &PyType_Type;
59387 type_init = 1;
36ed4f51 59388 }
1bd55598
RD
59389 return &varlink_type;
59390 }
59391
59392 /* Create a variable linking object for use later */
59393 SWIGINTERN PyObject *
59394 SWIG_Python_newvarlink(void) {
59395 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
59396 if (result) {
59397 result->vars = 0;
59398 }
59399 return ((PyObject*) result);
59400 }
59401
59402 SWIGINTERN void
59403 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
59404 swig_varlinkobject *v = (swig_varlinkobject *) p;
59405 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
59406 if (gv) {
59407 size_t size = strlen(name)+1;
59408 gv->name = (char *)malloc(size);
59409 if (gv->name) {
59410 strncpy(gv->name,name,size);
59411 gv->get_attr = get_attr;
59412 gv->set_attr = set_attr;
59413 gv->next = v->vars;
59414 }
36ed4f51 59415 }
1bd55598
RD
59416 v->vars = gv;
59417 }
59418
59419 SWIGINTERN PyObject *
59420 SWIG_globals() {
59421 static PyObject *_SWIG_globals = 0;
59422 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
59423 return _SWIG_globals;
59424 }
59425
59426 /* -----------------------------------------------------------------------------
59427 * constants/methods manipulation
59428 * ----------------------------------------------------------------------------- */
59429
59430 /* Install Constants */
59431 SWIGINTERN void
59432 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
59433 PyObject *obj = 0;
59434 size_t i;
59435 for (i = 0; constants[i].type; ++i) {
59436 switch(constants[i].type) {
59437 case SWIG_PY_POINTER:
59438 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
59439 break;
59440 case SWIG_PY_BINARY:
59441 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
59442 break;
59443 default:
59444 obj = 0;
59445 break;
59446 }
59447 if (obj) {
59448 PyDict_SetItemString(d, constants[i].name, obj);
59449 Py_DECREF(obj);
59450 }
36ed4f51 59451 }
1bd55598
RD
59452 }
59453
59454 /* -----------------------------------------------------------------------------*/
59455 /* Fix SwigMethods to carry the callback ptrs when needed */
59456 /* -----------------------------------------------------------------------------*/
59457
59458 SWIGINTERN void
59459 SWIG_Python_FixMethods(PyMethodDef *methods,
59460 swig_const_info *const_table,
59461 swig_type_info **types,
59462 swig_type_info **types_initial) {
59463 size_t i;
59464 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 59465 const char *c = methods[i].ml_doc;
1bd55598
RD
59466 if (c && (c = strstr(c, "swig_ptr: "))) {
59467 int j;
59468 swig_const_info *ci = 0;
3d6c9062 59469 const char *name = c + 10;
1bd55598
RD
59470 for (j = 0; const_table[j].type; ++j) {
59471 if (strncmp(const_table[j].name, name,
59472 strlen(const_table[j].name)) == 0) {
59473 ci = &(const_table[j]);
59474 break;
59475 }
59476 }
59477 if (ci) {
59478 size_t shift = (ci->ptype) - types;
59479 swig_type_info *ty = types_initial[shift];
59480 size_t ldoc = (c - methods[i].ml_doc);
59481 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
59482 char *ndoc = (char*)malloc(ldoc + lptr + 10);
59483 if (ndoc) {
59484 char *buff = ndoc;
59485 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
59486 if (ptr) {
59487 strncpy(buff, methods[i].ml_doc, ldoc);
59488 buff += ldoc;
59489 strncpy(buff, "swig_ptr: ", 10);
59490 buff += 10;
59491 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
59492 methods[i].ml_doc = ndoc;
59493 }
59494 }
59495 }
59496 }
36ed4f51 59497 }
1bd55598
RD
59498 }
59499
59500#ifdef __cplusplus
59501}
59502#endif
59503
59504/* -----------------------------------------------------------------------------*
59505 * Partial Init method
59506 * -----------------------------------------------------------------------------*/
59507
59508#ifdef __cplusplus
59509extern "C"
59510#endif
59511SWIGEXPORT void SWIG_init(void) {
59512 PyObject *m, *d;
59513
59514 /* Fix SwigMethods to carry the callback ptrs when needed */
59515 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
59516
59517 m = Py_InitModule((char *) SWIG_name, SwigMethods);
59518 d = PyModule_GetDict(m);
59519
59520 SWIG_InitializeModule(0);
59521 SWIG_InstallConstants(d,swig_const_table);
59522
59523
59524
59525#ifndef wxPyUSE_EXPORT
59526 // Make our API structure a CObject so other modules can import it
59527 // from this module.
59528 PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL);
59529 PyDict_SetItemString(d,"_wxPyCoreAPI", cobj);
59530 Py_XDECREF(cobj);
59531#endif
59532
59533 SWIG_Python_SetConstant(d, "NOT_FOUND",SWIG_From_int(static_cast< int >(wxNOT_FOUND)));
59534 SWIG_Python_SetConstant(d, "VSCROLL",SWIG_From_int(static_cast< int >(wxVSCROLL)));
59535 SWIG_Python_SetConstant(d, "HSCROLL",SWIG_From_int(static_cast< int >(wxHSCROLL)));
59536 SWIG_Python_SetConstant(d, "CAPTION",SWIG_From_int(static_cast< int >(wxCAPTION)));
59537 SWIG_Python_SetConstant(d, "DOUBLE_BORDER",SWIG_From_int(static_cast< int >(wxDOUBLE_BORDER)));
59538 SWIG_Python_SetConstant(d, "SUNKEN_BORDER",SWIG_From_int(static_cast< int >(wxSUNKEN_BORDER)));
59539 SWIG_Python_SetConstant(d, "RAISED_BORDER",SWIG_From_int(static_cast< int >(wxRAISED_BORDER)));
59540 SWIG_Python_SetConstant(d, "BORDER",SWIG_From_int(static_cast< int >(wxBORDER)));
59541 SWIG_Python_SetConstant(d, "SIMPLE_BORDER",SWIG_From_int(static_cast< int >(wxSIMPLE_BORDER)));
59542 SWIG_Python_SetConstant(d, "STATIC_BORDER",SWIG_From_int(static_cast< int >(wxSTATIC_BORDER)));
59543 SWIG_Python_SetConstant(d, "TRANSPARENT_WINDOW",SWIG_From_int(static_cast< int >(wxTRANSPARENT_WINDOW)));
59544 SWIG_Python_SetConstant(d, "NO_BORDER",SWIG_From_int(static_cast< int >(wxNO_BORDER)));
59545 SWIG_Python_SetConstant(d, "DEFAULT_CONTROL_BORDER",SWIG_From_int(static_cast< int >(wxDEFAULT_CONTROL_BORDER)));
59546 SWIG_Python_SetConstant(d, "DEFAULT_STATUSBAR_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_STATUSBAR_STYLE)));
59547 SWIG_Python_SetConstant(d, "TAB_TRAVERSAL",SWIG_From_int(static_cast< int >(wxTAB_TRAVERSAL)));
59548 SWIG_Python_SetConstant(d, "WANTS_CHARS",SWIG_From_int(static_cast< int >(wxWANTS_CHARS)));
59549 SWIG_Python_SetConstant(d, "POPUP_WINDOW",SWIG_From_int(static_cast< int >(wxPOPUP_WINDOW)));
59550 SWIG_Python_SetConstant(d, "CENTER_FRAME",SWIG_From_int(static_cast< int >(wxCENTER_FRAME)));
59551 SWIG_Python_SetConstant(d, "CENTRE_ON_SCREEN",SWIG_From_int(static_cast< int >(wxCENTRE_ON_SCREEN)));
59552 SWIG_Python_SetConstant(d, "CENTER_ON_SCREEN",SWIG_From_int(static_cast< int >(wxCENTER_ON_SCREEN)));
59553 SWIG_Python_SetConstant(d, "CLIP_CHILDREN",SWIG_From_int(static_cast< int >(wxCLIP_CHILDREN)));
59554 SWIG_Python_SetConstant(d, "CLIP_SIBLINGS",SWIG_From_int(static_cast< int >(wxCLIP_SIBLINGS)));
092f0ed7 59555 SWIG_Python_SetConstant(d, "WINDOW_STYLE_MASK",SWIG_From_int(static_cast< int >(wxWINDOW_STYLE_MASK)));
1bd55598
RD
59556 SWIG_Python_SetConstant(d, "ALWAYS_SHOW_SB",SWIG_From_int(static_cast< int >(wxALWAYS_SHOW_SB)));
59557 SWIG_Python_SetConstant(d, "RETAINED",SWIG_From_int(static_cast< int >(wxRETAINED)));
59558 SWIG_Python_SetConstant(d, "BACKINGSTORE",SWIG_From_int(static_cast< int >(wxBACKINGSTORE)));
59559 SWIG_Python_SetConstant(d, "COLOURED",SWIG_From_int(static_cast< int >(wxCOLOURED)));
59560 SWIG_Python_SetConstant(d, "FIXED_LENGTH",SWIG_From_int(static_cast< int >(wxFIXED_LENGTH)));
59561 SWIG_Python_SetConstant(d, "LB_NEEDED_SB",SWIG_From_int(static_cast< int >(wxLB_NEEDED_SB)));
59562 SWIG_Python_SetConstant(d, "LB_ALWAYS_SB",SWIG_From_int(static_cast< int >(wxLB_ALWAYS_SB)));
59563 SWIG_Python_SetConstant(d, "LB_SORT",SWIG_From_int(static_cast< int >(wxLB_SORT)));
59564 SWIG_Python_SetConstant(d, "LB_SINGLE",SWIG_From_int(static_cast< int >(wxLB_SINGLE)));
59565 SWIG_Python_SetConstant(d, "LB_MULTIPLE",SWIG_From_int(static_cast< int >(wxLB_MULTIPLE)));
59566 SWIG_Python_SetConstant(d, "LB_EXTENDED",SWIG_From_int(static_cast< int >(wxLB_EXTENDED)));
59567 SWIG_Python_SetConstant(d, "LB_OWNERDRAW",SWIG_From_int(static_cast< int >(wxLB_OWNERDRAW)));
59568 SWIG_Python_SetConstant(d, "LB_HSCROLL",SWIG_From_int(static_cast< int >(wxLB_HSCROLL)));
59569 SWIG_Python_SetConstant(d, "PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxPROCESS_ENTER)));
59570 SWIG_Python_SetConstant(d, "PASSWORD",SWIG_From_int(static_cast< int >(wxPASSWORD)));
59571 SWIG_Python_SetConstant(d, "CB_SIMPLE",SWIG_From_int(static_cast< int >(wxCB_SIMPLE)));
59572 SWIG_Python_SetConstant(d, "CB_DROPDOWN",SWIG_From_int(static_cast< int >(wxCB_DROPDOWN)));
59573 SWIG_Python_SetConstant(d, "CB_SORT",SWIG_From_int(static_cast< int >(wxCB_SORT)));
59574 SWIG_Python_SetConstant(d, "CB_READONLY",SWIG_From_int(static_cast< int >(wxCB_READONLY)));
59575 SWIG_Python_SetConstant(d, "RA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxRA_HORIZONTAL)));
59576 SWIG_Python_SetConstant(d, "RA_VERTICAL",SWIG_From_int(static_cast< int >(wxRA_VERTICAL)));
59577 SWIG_Python_SetConstant(d, "RA_SPECIFY_ROWS",SWIG_From_int(static_cast< int >(wxRA_SPECIFY_ROWS)));
59578 SWIG_Python_SetConstant(d, "RA_SPECIFY_COLS",SWIG_From_int(static_cast< int >(wxRA_SPECIFY_COLS)));
59579 SWIG_Python_SetConstant(d, "RA_USE_CHECKBOX",SWIG_From_int(static_cast< int >(wxRA_USE_CHECKBOX)));
59580 SWIG_Python_SetConstant(d, "RB_GROUP",SWIG_From_int(static_cast< int >(wxRB_GROUP)));
59581 SWIG_Python_SetConstant(d, "RB_SINGLE",SWIG_From_int(static_cast< int >(wxRB_SINGLE)));
59582 SWIG_Python_SetConstant(d, "SB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSB_HORIZONTAL)));
59583 SWIG_Python_SetConstant(d, "SB_VERTICAL",SWIG_From_int(static_cast< int >(wxSB_VERTICAL)));
59584 SWIG_Python_SetConstant(d, "RB_USE_CHECKBOX",SWIG_From_int(static_cast< int >(wxRB_USE_CHECKBOX)));
59585 SWIG_Python_SetConstant(d, "ST_SIZEGRIP",SWIG_From_int(static_cast< int >(wxST_SIZEGRIP)));
59586 SWIG_Python_SetConstant(d, "ST_NO_AUTORESIZE",SWIG_From_int(static_cast< int >(wxST_NO_AUTORESIZE)));
e9d6f3a4
RD
59587 SWIG_Python_SetConstant(d, "ST_DOTS_MIDDLE",SWIG_From_int(static_cast< int >(wxST_DOTS_MIDDLE)));
59588 SWIG_Python_SetConstant(d, "ST_DOTS_END",SWIG_From_int(static_cast< int >(wxST_DOTS_END)));
1bd55598
RD
59589 SWIG_Python_SetConstant(d, "FLOOD_SURFACE",SWIG_From_int(static_cast< int >(wxFLOOD_SURFACE)));
59590 SWIG_Python_SetConstant(d, "FLOOD_BORDER",SWIG_From_int(static_cast< int >(wxFLOOD_BORDER)));
59591 SWIG_Python_SetConstant(d, "ODDEVEN_RULE",SWIG_From_int(static_cast< int >(wxODDEVEN_RULE)));
59592 SWIG_Python_SetConstant(d, "WINDING_RULE",SWIG_From_int(static_cast< int >(wxWINDING_RULE)));
59593 SWIG_Python_SetConstant(d, "TOOL_TOP",SWIG_From_int(static_cast< int >(wxTOOL_TOP)));
59594 SWIG_Python_SetConstant(d, "TOOL_BOTTOM",SWIG_From_int(static_cast< int >(wxTOOL_BOTTOM)));
59595 SWIG_Python_SetConstant(d, "TOOL_LEFT",SWIG_From_int(static_cast< int >(wxTOOL_LEFT)));
59596 SWIG_Python_SetConstant(d, "TOOL_RIGHT",SWIG_From_int(static_cast< int >(wxTOOL_RIGHT)));
59597 SWIG_Python_SetConstant(d, "OK",SWIG_From_int(static_cast< int >(wxOK)));
59598 SWIG_Python_SetConstant(d, "YES_NO",SWIG_From_int(static_cast< int >(wxYES_NO)));
59599 SWIG_Python_SetConstant(d, "CANCEL",SWIG_From_int(static_cast< int >(wxCANCEL)));
59600 SWIG_Python_SetConstant(d, "YES",SWIG_From_int(static_cast< int >(wxYES)));
59601 SWIG_Python_SetConstant(d, "NO",SWIG_From_int(static_cast< int >(wxNO)));
59602 SWIG_Python_SetConstant(d, "NO_DEFAULT",SWIG_From_int(static_cast< int >(wxNO_DEFAULT)));
59603 SWIG_Python_SetConstant(d, "YES_DEFAULT",SWIG_From_int(static_cast< int >(wxYES_DEFAULT)));
59604 SWIG_Python_SetConstant(d, "ICON_EXCLAMATION",SWIG_From_int(static_cast< int >(wxICON_EXCLAMATION)));
59605 SWIG_Python_SetConstant(d, "ICON_HAND",SWIG_From_int(static_cast< int >(wxICON_HAND)));
59606 SWIG_Python_SetConstant(d, "ICON_QUESTION",SWIG_From_int(static_cast< int >(wxICON_QUESTION)));
59607 SWIG_Python_SetConstant(d, "ICON_INFORMATION",SWIG_From_int(static_cast< int >(wxICON_INFORMATION)));
59608 SWIG_Python_SetConstant(d, "ICON_STOP",SWIG_From_int(static_cast< int >(wxICON_STOP)));
59609 SWIG_Python_SetConstant(d, "ICON_ASTERISK",SWIG_From_int(static_cast< int >(wxICON_ASTERISK)));
59610 SWIG_Python_SetConstant(d, "ICON_MASK",SWIG_From_int(static_cast< int >(wxICON_MASK)));
59611 SWIG_Python_SetConstant(d, "ICON_WARNING",SWIG_From_int(static_cast< int >(wxICON_WARNING)));
59612 SWIG_Python_SetConstant(d, "ICON_ERROR",SWIG_From_int(static_cast< int >(wxICON_ERROR)));
59613 SWIG_Python_SetConstant(d, "FORWARD",SWIG_From_int(static_cast< int >(wxFORWARD)));
59614 SWIG_Python_SetConstant(d, "BACKWARD",SWIG_From_int(static_cast< int >(wxBACKWARD)));
59615 SWIG_Python_SetConstant(d, "RESET",SWIG_From_int(static_cast< int >(wxRESET)));
59616 SWIG_Python_SetConstant(d, "HELP",SWIG_From_int(static_cast< int >(wxHELP)));
59617 SWIG_Python_SetConstant(d, "MORE",SWIG_From_int(static_cast< int >(wxMORE)));
59618 SWIG_Python_SetConstant(d, "SETUP",SWIG_From_int(static_cast< int >(wxSETUP)));
59619 SWIG_Python_SetConstant(d, "SIZE_AUTO_WIDTH",SWIG_From_int(static_cast< int >(wxSIZE_AUTO_WIDTH)));
59620 SWIG_Python_SetConstant(d, "SIZE_AUTO_HEIGHT",SWIG_From_int(static_cast< int >(wxSIZE_AUTO_HEIGHT)));
59621 SWIG_Python_SetConstant(d, "SIZE_AUTO",SWIG_From_int(static_cast< int >(wxSIZE_AUTO)));
59622 SWIG_Python_SetConstant(d, "SIZE_USE_EXISTING",SWIG_From_int(static_cast< int >(wxSIZE_USE_EXISTING)));
59623 SWIG_Python_SetConstant(d, "SIZE_ALLOW_MINUS_ONE",SWIG_From_int(static_cast< int >(wxSIZE_ALLOW_MINUS_ONE)));
59624 SWIG_Python_SetConstant(d, "SIZE_FORCE",SWIG_From_int(static_cast< int >(wxSIZE_FORCE)));
59625 SWIG_Python_SetConstant(d, "PORTRAIT",SWIG_From_int(static_cast< int >(wxPORTRAIT)));
59626 SWIG_Python_SetConstant(d, "LANDSCAPE",SWIG_From_int(static_cast< int >(wxLANDSCAPE)));
59627 SWIG_Python_SetConstant(d, "PRINT_QUALITY_HIGH",SWIG_From_int(static_cast< int >(wxPRINT_QUALITY_HIGH)));
59628 SWIG_Python_SetConstant(d, "PRINT_QUALITY_MEDIUM",SWIG_From_int(static_cast< int >(wxPRINT_QUALITY_MEDIUM)));
59629 SWIG_Python_SetConstant(d, "PRINT_QUALITY_LOW",SWIG_From_int(static_cast< int >(wxPRINT_QUALITY_LOW)));
59630 SWIG_Python_SetConstant(d, "PRINT_QUALITY_DRAFT",SWIG_From_int(static_cast< int >(wxPRINT_QUALITY_DRAFT)));
59631 SWIG_Python_SetConstant(d, "ID_ANY",SWIG_From_int(static_cast< int >(wxID_ANY)));
59632 SWIG_Python_SetConstant(d, "ID_SEPARATOR",SWIG_From_int(static_cast< int >(wxID_SEPARATOR)));
59633 SWIG_Python_SetConstant(d, "ID_NONE",SWIG_From_int(static_cast< int >(wxID_NONE)));
59634 SWIG_Python_SetConstant(d, "ID_LOWEST",SWIG_From_int(static_cast< int >(wxID_LOWEST)));
59635 SWIG_Python_SetConstant(d, "ID_OPEN",SWIG_From_int(static_cast< int >(wxID_OPEN)));
59636 SWIG_Python_SetConstant(d, "ID_CLOSE",SWIG_From_int(static_cast< int >(wxID_CLOSE)));
59637 SWIG_Python_SetConstant(d, "ID_NEW",SWIG_From_int(static_cast< int >(wxID_NEW)));
59638 SWIG_Python_SetConstant(d, "ID_SAVE",SWIG_From_int(static_cast< int >(wxID_SAVE)));
59639 SWIG_Python_SetConstant(d, "ID_SAVEAS",SWIG_From_int(static_cast< int >(wxID_SAVEAS)));
59640 SWIG_Python_SetConstant(d, "ID_REVERT",SWIG_From_int(static_cast< int >(wxID_REVERT)));
59641 SWIG_Python_SetConstant(d, "ID_EXIT",SWIG_From_int(static_cast< int >(wxID_EXIT)));
59642 SWIG_Python_SetConstant(d, "ID_UNDO",SWIG_From_int(static_cast< int >(wxID_UNDO)));
59643 SWIG_Python_SetConstant(d, "ID_REDO",SWIG_From_int(static_cast< int >(wxID_REDO)));
59644 SWIG_Python_SetConstant(d, "ID_HELP",SWIG_From_int(static_cast< int >(wxID_HELP)));
59645 SWIG_Python_SetConstant(d, "ID_PRINT",SWIG_From_int(static_cast< int >(wxID_PRINT)));
59646 SWIG_Python_SetConstant(d, "ID_PRINT_SETUP",SWIG_From_int(static_cast< int >(wxID_PRINT_SETUP)));
fc46b7f3 59647 SWIG_Python_SetConstant(d, "ID_PAGE_SETUP",SWIG_From_int(static_cast< int >(wxID_PAGE_SETUP)));
1bd55598
RD
59648 SWIG_Python_SetConstant(d, "ID_PREVIEW",SWIG_From_int(static_cast< int >(wxID_PREVIEW)));
59649 SWIG_Python_SetConstant(d, "ID_ABOUT",SWIG_From_int(static_cast< int >(wxID_ABOUT)));
59650 SWIG_Python_SetConstant(d, "ID_HELP_CONTENTS",SWIG_From_int(static_cast< int >(wxID_HELP_CONTENTS)));
59651 SWIG_Python_SetConstant(d, "ID_HELP_COMMANDS",SWIG_From_int(static_cast< int >(wxID_HELP_COMMANDS)));
59652 SWIG_Python_SetConstant(d, "ID_HELP_PROCEDURES",SWIG_From_int(static_cast< int >(wxID_HELP_PROCEDURES)));
59653 SWIG_Python_SetConstant(d, "ID_HELP_CONTEXT",SWIG_From_int(static_cast< int >(wxID_HELP_CONTEXT)));
1eeb270e
RD
59654 SWIG_Python_SetConstant(d, "ID_HELP_INDEX",SWIG_From_int(static_cast< int >(wxID_HELP_INDEX)));
59655 SWIG_Python_SetConstant(d, "ID_HELP_SEARCH",SWIG_From_int(static_cast< int >(wxID_HELP_SEARCH)));
1bd55598
RD
59656 SWIG_Python_SetConstant(d, "ID_CLOSE_ALL",SWIG_From_int(static_cast< int >(wxID_CLOSE_ALL)));
59657 SWIG_Python_SetConstant(d, "ID_PREFERENCES",SWIG_From_int(static_cast< int >(wxID_PREFERENCES)));
ac5d357a 59658 SWIG_Python_SetConstant(d, "ID_EDIT",SWIG_From_int(static_cast< int >(wxID_EDIT)));
1bd55598
RD
59659 SWIG_Python_SetConstant(d, "ID_CUT",SWIG_From_int(static_cast< int >(wxID_CUT)));
59660 SWIG_Python_SetConstant(d, "ID_COPY",SWIG_From_int(static_cast< int >(wxID_COPY)));
59661 SWIG_Python_SetConstant(d, "ID_PASTE",SWIG_From_int(static_cast< int >(wxID_PASTE)));
59662 SWIG_Python_SetConstant(d, "ID_CLEAR",SWIG_From_int(static_cast< int >(wxID_CLEAR)));
59663 SWIG_Python_SetConstant(d, "ID_FIND",SWIG_From_int(static_cast< int >(wxID_FIND)));
59664 SWIG_Python_SetConstant(d, "ID_DUPLICATE",SWIG_From_int(static_cast< int >(wxID_DUPLICATE)));
59665 SWIG_Python_SetConstant(d, "ID_SELECTALL",SWIG_From_int(static_cast< int >(wxID_SELECTALL)));
59666 SWIG_Python_SetConstant(d, "ID_DELETE",SWIG_From_int(static_cast< int >(wxID_DELETE)));
59667 SWIG_Python_SetConstant(d, "ID_REPLACE",SWIG_From_int(static_cast< int >(wxID_REPLACE)));
59668 SWIG_Python_SetConstant(d, "ID_REPLACE_ALL",SWIG_From_int(static_cast< int >(wxID_REPLACE_ALL)));
59669 SWIG_Python_SetConstant(d, "ID_PROPERTIES",SWIG_From_int(static_cast< int >(wxID_PROPERTIES)));
59670 SWIG_Python_SetConstant(d, "ID_VIEW_DETAILS",SWIG_From_int(static_cast< int >(wxID_VIEW_DETAILS)));
59671 SWIG_Python_SetConstant(d, "ID_VIEW_LARGEICONS",SWIG_From_int(static_cast< int >(wxID_VIEW_LARGEICONS)));
59672 SWIG_Python_SetConstant(d, "ID_VIEW_SMALLICONS",SWIG_From_int(static_cast< int >(wxID_VIEW_SMALLICONS)));
59673 SWIG_Python_SetConstant(d, "ID_VIEW_LIST",SWIG_From_int(static_cast< int >(wxID_VIEW_LIST)));
59674 SWIG_Python_SetConstant(d, "ID_VIEW_SORTDATE",SWIG_From_int(static_cast< int >(wxID_VIEW_SORTDATE)));
59675 SWIG_Python_SetConstant(d, "ID_VIEW_SORTNAME",SWIG_From_int(static_cast< int >(wxID_VIEW_SORTNAME)));
59676 SWIG_Python_SetConstant(d, "ID_VIEW_SORTSIZE",SWIG_From_int(static_cast< int >(wxID_VIEW_SORTSIZE)));
59677 SWIG_Python_SetConstant(d, "ID_VIEW_SORTTYPE",SWIG_From_int(static_cast< int >(wxID_VIEW_SORTTYPE)));
ac5d357a 59678 SWIG_Python_SetConstant(d, "ID_FILE",SWIG_From_int(static_cast< int >(wxID_FILE)));
1bd55598
RD
59679 SWIG_Python_SetConstant(d, "ID_FILE1",SWIG_From_int(static_cast< int >(wxID_FILE1)));
59680 SWIG_Python_SetConstant(d, "ID_FILE2",SWIG_From_int(static_cast< int >(wxID_FILE2)));
59681 SWIG_Python_SetConstant(d, "ID_FILE3",SWIG_From_int(static_cast< int >(wxID_FILE3)));
59682 SWIG_Python_SetConstant(d, "ID_FILE4",SWIG_From_int(static_cast< int >(wxID_FILE4)));
59683 SWIG_Python_SetConstant(d, "ID_FILE5",SWIG_From_int(static_cast< int >(wxID_FILE5)));
59684 SWIG_Python_SetConstant(d, "ID_FILE6",SWIG_From_int(static_cast< int >(wxID_FILE6)));
59685 SWIG_Python_SetConstant(d, "ID_FILE7",SWIG_From_int(static_cast< int >(wxID_FILE7)));
59686 SWIG_Python_SetConstant(d, "ID_FILE8",SWIG_From_int(static_cast< int >(wxID_FILE8)));
59687 SWIG_Python_SetConstant(d, "ID_FILE9",SWIG_From_int(static_cast< int >(wxID_FILE9)));
59688 SWIG_Python_SetConstant(d, "ID_OK",SWIG_From_int(static_cast< int >(wxID_OK)));
59689 SWIG_Python_SetConstant(d, "ID_CANCEL",SWIG_From_int(static_cast< int >(wxID_CANCEL)));
59690 SWIG_Python_SetConstant(d, "ID_APPLY",SWIG_From_int(static_cast< int >(wxID_APPLY)));
59691 SWIG_Python_SetConstant(d, "ID_YES",SWIG_From_int(static_cast< int >(wxID_YES)));
59692 SWIG_Python_SetConstant(d, "ID_NO",SWIG_From_int(static_cast< int >(wxID_NO)));
59693 SWIG_Python_SetConstant(d, "ID_STATIC",SWIG_From_int(static_cast< int >(wxID_STATIC)));
59694 SWIG_Python_SetConstant(d, "ID_FORWARD",SWIG_From_int(static_cast< int >(wxID_FORWARD)));
59695 SWIG_Python_SetConstant(d, "ID_BACKWARD",SWIG_From_int(static_cast< int >(wxID_BACKWARD)));
59696 SWIG_Python_SetConstant(d, "ID_DEFAULT",SWIG_From_int(static_cast< int >(wxID_DEFAULT)));
59697 SWIG_Python_SetConstant(d, "ID_MORE",SWIG_From_int(static_cast< int >(wxID_MORE)));
59698 SWIG_Python_SetConstant(d, "ID_SETUP",SWIG_From_int(static_cast< int >(wxID_SETUP)));
59699 SWIG_Python_SetConstant(d, "ID_RESET",SWIG_From_int(static_cast< int >(wxID_RESET)));
59700 SWIG_Python_SetConstant(d, "ID_CONTEXT_HELP",SWIG_From_int(static_cast< int >(wxID_CONTEXT_HELP)));
59701 SWIG_Python_SetConstant(d, "ID_YESTOALL",SWIG_From_int(static_cast< int >(wxID_YESTOALL)));
59702 SWIG_Python_SetConstant(d, "ID_NOTOALL",SWIG_From_int(static_cast< int >(wxID_NOTOALL)));
59703 SWIG_Python_SetConstant(d, "ID_ABORT",SWIG_From_int(static_cast< int >(wxID_ABORT)));
59704 SWIG_Python_SetConstant(d, "ID_RETRY",SWIG_From_int(static_cast< int >(wxID_RETRY)));
59705 SWIG_Python_SetConstant(d, "ID_IGNORE",SWIG_From_int(static_cast< int >(wxID_IGNORE)));
59706 SWIG_Python_SetConstant(d, "ID_ADD",SWIG_From_int(static_cast< int >(wxID_ADD)));
59707 SWIG_Python_SetConstant(d, "ID_REMOVE",SWIG_From_int(static_cast< int >(wxID_REMOVE)));
59708 SWIG_Python_SetConstant(d, "ID_UP",SWIG_From_int(static_cast< int >(wxID_UP)));
59709 SWIG_Python_SetConstant(d, "ID_DOWN",SWIG_From_int(static_cast< int >(wxID_DOWN)));
59710 SWIG_Python_SetConstant(d, "ID_HOME",SWIG_From_int(static_cast< int >(wxID_HOME)));
59711 SWIG_Python_SetConstant(d, "ID_REFRESH",SWIG_From_int(static_cast< int >(wxID_REFRESH)));
59712 SWIG_Python_SetConstant(d, "ID_STOP",SWIG_From_int(static_cast< int >(wxID_STOP)));
59713 SWIG_Python_SetConstant(d, "ID_INDEX",SWIG_From_int(static_cast< int >(wxID_INDEX)));
59714 SWIG_Python_SetConstant(d, "ID_BOLD",SWIG_From_int(static_cast< int >(wxID_BOLD)));
59715 SWIG_Python_SetConstant(d, "ID_ITALIC",SWIG_From_int(static_cast< int >(wxID_ITALIC)));
59716 SWIG_Python_SetConstant(d, "ID_JUSTIFY_CENTER",SWIG_From_int(static_cast< int >(wxID_JUSTIFY_CENTER)));
59717 SWIG_Python_SetConstant(d, "ID_JUSTIFY_FILL",SWIG_From_int(static_cast< int >(wxID_JUSTIFY_FILL)));
59718 SWIG_Python_SetConstant(d, "ID_JUSTIFY_RIGHT",SWIG_From_int(static_cast< int >(wxID_JUSTIFY_RIGHT)));
59719 SWIG_Python_SetConstant(d, "ID_JUSTIFY_LEFT",SWIG_From_int(static_cast< int >(wxID_JUSTIFY_LEFT)));
59720 SWIG_Python_SetConstant(d, "ID_UNDERLINE",SWIG_From_int(static_cast< int >(wxID_UNDERLINE)));
59721 SWIG_Python_SetConstant(d, "ID_INDENT",SWIG_From_int(static_cast< int >(wxID_INDENT)));
59722 SWIG_Python_SetConstant(d, "ID_UNINDENT",SWIG_From_int(static_cast< int >(wxID_UNINDENT)));
59723 SWIG_Python_SetConstant(d, "ID_ZOOM_100",SWIG_From_int(static_cast< int >(wxID_ZOOM_100)));
59724 SWIG_Python_SetConstant(d, "ID_ZOOM_FIT",SWIG_From_int(static_cast< int >(wxID_ZOOM_FIT)));
59725 SWIG_Python_SetConstant(d, "ID_ZOOM_IN",SWIG_From_int(static_cast< int >(wxID_ZOOM_IN)));
59726 SWIG_Python_SetConstant(d, "ID_ZOOM_OUT",SWIG_From_int(static_cast< int >(wxID_ZOOM_OUT)));
59727 SWIG_Python_SetConstant(d, "ID_UNDELETE",SWIG_From_int(static_cast< int >(wxID_UNDELETE)));
59728 SWIG_Python_SetConstant(d, "ID_REVERT_TO_SAVED",SWIG_From_int(static_cast< int >(wxID_REVERT_TO_SAVED)));
59729 SWIG_Python_SetConstant(d, "ID_HIGHEST",SWIG_From_int(static_cast< int >(wxID_HIGHEST)));
1bd55598
RD
59730 SWIG_Python_SetConstant(d, "MENU_TEAROFF",SWIG_From_int(static_cast< int >(wxMENU_TEAROFF)));
59731 SWIG_Python_SetConstant(d, "MB_DOCKABLE",SWIG_From_int(static_cast< int >(wxMB_DOCKABLE)));
59732 SWIG_Python_SetConstant(d, "NO_FULL_REPAINT_ON_RESIZE",SWIG_From_int(static_cast< int >(wxNO_FULL_REPAINT_ON_RESIZE)));
59733 SWIG_Python_SetConstant(d, "FULL_REPAINT_ON_RESIZE",SWIG_From_int(static_cast< int >(wxFULL_REPAINT_ON_RESIZE)));
59734 SWIG_Python_SetConstant(d, "LI_HORIZONTAL",SWIG_From_int(static_cast< int >(wxLI_HORIZONTAL)));
59735 SWIG_Python_SetConstant(d, "LI_VERTICAL",SWIG_From_int(static_cast< int >(wxLI_VERTICAL)));
59736 SWIG_Python_SetConstant(d, "WS_EX_VALIDATE_RECURSIVELY",SWIG_From_int(static_cast< int >(wxWS_EX_VALIDATE_RECURSIVELY)));
59737 SWIG_Python_SetConstant(d, "WS_EX_BLOCK_EVENTS",SWIG_From_int(static_cast< int >(wxWS_EX_BLOCK_EVENTS)));
59738 SWIG_Python_SetConstant(d, "WS_EX_TRANSIENT",SWIG_From_int(static_cast< int >(wxWS_EX_TRANSIENT)));
59739 SWIG_Python_SetConstant(d, "WS_EX_THEMED_BACKGROUND",SWIG_From_int(static_cast< int >(wxWS_EX_THEMED_BACKGROUND)));
59740 SWIG_Python_SetConstant(d, "WS_EX_PROCESS_IDLE",SWIG_From_int(static_cast< int >(wxWS_EX_PROCESS_IDLE)));
59741 SWIG_Python_SetConstant(d, "WS_EX_PROCESS_UI_UPDATES",SWIG_From_int(static_cast< int >(wxWS_EX_PROCESS_UI_UPDATES)));
59742 SWIG_Python_SetConstant(d, "MM_TEXT",SWIG_From_int(static_cast< int >(wxMM_TEXT)));
59743 SWIG_Python_SetConstant(d, "MM_LOMETRIC",SWIG_From_int(static_cast< int >(wxMM_LOMETRIC)));
59744 SWIG_Python_SetConstant(d, "MM_HIMETRIC",SWIG_From_int(static_cast< int >(wxMM_HIMETRIC)));
59745 SWIG_Python_SetConstant(d, "MM_LOENGLISH",SWIG_From_int(static_cast< int >(wxMM_LOENGLISH)));
59746 SWIG_Python_SetConstant(d, "MM_HIENGLISH",SWIG_From_int(static_cast< int >(wxMM_HIENGLISH)));
59747 SWIG_Python_SetConstant(d, "MM_TWIPS",SWIG_From_int(static_cast< int >(wxMM_TWIPS)));
59748 SWIG_Python_SetConstant(d, "MM_ISOTROPIC",SWIG_From_int(static_cast< int >(wxMM_ISOTROPIC)));
59749 SWIG_Python_SetConstant(d, "MM_ANISOTROPIC",SWIG_From_int(static_cast< int >(wxMM_ANISOTROPIC)));
59750 SWIG_Python_SetConstant(d, "MM_POINTS",SWIG_From_int(static_cast< int >(wxMM_POINTS)));
59751 SWIG_Python_SetConstant(d, "MM_METRIC",SWIG_From_int(static_cast< int >(wxMM_METRIC)));
59752 SWIG_Python_SetConstant(d, "CENTRE",SWIG_From_int(static_cast< int >(wxCENTRE)));
59753 SWIG_Python_SetConstant(d, "CENTER",SWIG_From_int(static_cast< int >(wxCENTER)));
59754 SWIG_Python_SetConstant(d, "HORIZONTAL",SWIG_From_int(static_cast< int >(wxHORIZONTAL)));
59755 SWIG_Python_SetConstant(d, "VERTICAL",SWIG_From_int(static_cast< int >(wxVERTICAL)));
59756 SWIG_Python_SetConstant(d, "BOTH",SWIG_From_int(static_cast< int >(wxBOTH)));
59757 SWIG_Python_SetConstant(d, "LEFT",SWIG_From_int(static_cast< int >(wxLEFT)));
59758 SWIG_Python_SetConstant(d, "RIGHT",SWIG_From_int(static_cast< int >(wxRIGHT)));
59759 SWIG_Python_SetConstant(d, "UP",SWIG_From_int(static_cast< int >(wxUP)));
59760 SWIG_Python_SetConstant(d, "DOWN",SWIG_From_int(static_cast< int >(wxDOWN)));
59761 SWIG_Python_SetConstant(d, "TOP",SWIG_From_int(static_cast< int >(wxTOP)));
59762 SWIG_Python_SetConstant(d, "BOTTOM",SWIG_From_int(static_cast< int >(wxBOTTOM)));
59763 SWIG_Python_SetConstant(d, "NORTH",SWIG_From_int(static_cast< int >(wxNORTH)));
59764 SWIG_Python_SetConstant(d, "SOUTH",SWIG_From_int(static_cast< int >(wxSOUTH)));
59765 SWIG_Python_SetConstant(d, "WEST",SWIG_From_int(static_cast< int >(wxWEST)));
59766 SWIG_Python_SetConstant(d, "EAST",SWIG_From_int(static_cast< int >(wxEAST)));
59767 SWIG_Python_SetConstant(d, "ALL",SWIG_From_int(static_cast< int >(wxALL)));
59768 SWIG_Python_SetConstant(d, "ALIGN_NOT",SWIG_From_int(static_cast< int >(wxALIGN_NOT)));
59769 SWIG_Python_SetConstant(d, "ALIGN_CENTER_HORIZONTAL",SWIG_From_int(static_cast< int >(wxALIGN_CENTER_HORIZONTAL)));
59770 SWIG_Python_SetConstant(d, "ALIGN_CENTRE_HORIZONTAL",SWIG_From_int(static_cast< int >(wxALIGN_CENTRE_HORIZONTAL)));
59771 SWIG_Python_SetConstant(d, "ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxALIGN_LEFT)));
59772 SWIG_Python_SetConstant(d, "ALIGN_TOP",SWIG_From_int(static_cast< int >(wxALIGN_TOP)));
59773 SWIG_Python_SetConstant(d, "ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxALIGN_RIGHT)));
59774 SWIG_Python_SetConstant(d, "ALIGN_BOTTOM",SWIG_From_int(static_cast< int >(wxALIGN_BOTTOM)));
59775 SWIG_Python_SetConstant(d, "ALIGN_CENTER_VERTICAL",SWIG_From_int(static_cast< int >(wxALIGN_CENTER_VERTICAL)));
59776 SWIG_Python_SetConstant(d, "ALIGN_CENTRE_VERTICAL",SWIG_From_int(static_cast< int >(wxALIGN_CENTRE_VERTICAL)));
59777 SWIG_Python_SetConstant(d, "ALIGN_CENTER",SWIG_From_int(static_cast< int >(wxALIGN_CENTER)));
59778 SWIG_Python_SetConstant(d, "ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxALIGN_CENTRE)));
59779 SWIG_Python_SetConstant(d, "ALIGN_MASK",SWIG_From_int(static_cast< int >(wxALIGN_MASK)));
59780 SWIG_Python_SetConstant(d, "STRETCH_NOT",SWIG_From_int(static_cast< int >(wxSTRETCH_NOT)));
59781 SWIG_Python_SetConstant(d, "SHRINK",SWIG_From_int(static_cast< int >(wxSHRINK)));
59782 SWIG_Python_SetConstant(d, "GROW",SWIG_From_int(static_cast< int >(wxGROW)));
59783 SWIG_Python_SetConstant(d, "EXPAND",SWIG_From_int(static_cast< int >(wxEXPAND)));
59784 SWIG_Python_SetConstant(d, "SHAPED",SWIG_From_int(static_cast< int >(wxSHAPED)));
59785 SWIG_Python_SetConstant(d, "FIXED_MINSIZE",SWIG_From_int(static_cast< int >(wxFIXED_MINSIZE)));
59786 SWIG_Python_SetConstant(d, "TILE",SWIG_From_int(static_cast< int >(wxTILE)));
59787 SWIG_Python_SetConstant(d, "ADJUST_MINSIZE",SWIG_From_int(static_cast< int >(wxADJUST_MINSIZE)));
59788 SWIG_Python_SetConstant(d, "BORDER_DEFAULT",SWIG_From_int(static_cast< int >(wxBORDER_DEFAULT)));
59789 SWIG_Python_SetConstant(d, "BORDER_NONE",SWIG_From_int(static_cast< int >(wxBORDER_NONE)));
59790 SWIG_Python_SetConstant(d, "BORDER_STATIC",SWIG_From_int(static_cast< int >(wxBORDER_STATIC)));
59791 SWIG_Python_SetConstant(d, "BORDER_SIMPLE",SWIG_From_int(static_cast< int >(wxBORDER_SIMPLE)));
59792 SWIG_Python_SetConstant(d, "BORDER_RAISED",SWIG_From_int(static_cast< int >(wxBORDER_RAISED)));
59793 SWIG_Python_SetConstant(d, "BORDER_SUNKEN",SWIG_From_int(static_cast< int >(wxBORDER_SUNKEN)));
59794 SWIG_Python_SetConstant(d, "BORDER_DOUBLE",SWIG_From_int(static_cast< int >(wxBORDER_DOUBLE)));
59795 SWIG_Python_SetConstant(d, "BORDER_MASK",SWIG_From_int(static_cast< int >(wxBORDER_MASK)));
59796 SWIG_Python_SetConstant(d, "BG_STYLE_SYSTEM",SWIG_From_int(static_cast< int >(wxBG_STYLE_SYSTEM)));
59797 SWIG_Python_SetConstant(d, "BG_STYLE_COLOUR",SWIG_From_int(static_cast< int >(wxBG_STYLE_COLOUR)));
59798 SWIG_Python_SetConstant(d, "BG_STYLE_CUSTOM",SWIG_From_int(static_cast< int >(wxBG_STYLE_CUSTOM)));
59799 SWIG_Python_SetConstant(d, "DEFAULT",SWIG_From_int(static_cast< int >(wxDEFAULT)));
59800 SWIG_Python_SetConstant(d, "DECORATIVE",SWIG_From_int(static_cast< int >(wxDECORATIVE)));
59801 SWIG_Python_SetConstant(d, "ROMAN",SWIG_From_int(static_cast< int >(wxROMAN)));
59802 SWIG_Python_SetConstant(d, "SCRIPT",SWIG_From_int(static_cast< int >(wxSCRIPT)));
59803 SWIG_Python_SetConstant(d, "SWISS",SWIG_From_int(static_cast< int >(wxSWISS)));
59804 SWIG_Python_SetConstant(d, "MODERN",SWIG_From_int(static_cast< int >(wxMODERN)));
59805 SWIG_Python_SetConstant(d, "TELETYPE",SWIG_From_int(static_cast< int >(wxTELETYPE)));
59806 SWIG_Python_SetConstant(d, "VARIABLE",SWIG_From_int(static_cast< int >(wxVARIABLE)));
59807 SWIG_Python_SetConstant(d, "FIXED",SWIG_From_int(static_cast< int >(wxFIXED)));
59808 SWIG_Python_SetConstant(d, "NORMAL",SWIG_From_int(static_cast< int >(wxNORMAL)));
59809 SWIG_Python_SetConstant(d, "LIGHT",SWIG_From_int(static_cast< int >(wxLIGHT)));
59810 SWIG_Python_SetConstant(d, "BOLD",SWIG_From_int(static_cast< int >(wxBOLD)));
59811 SWIG_Python_SetConstant(d, "ITALIC",SWIG_From_int(static_cast< int >(wxITALIC)));
59812 SWIG_Python_SetConstant(d, "SLANT",SWIG_From_int(static_cast< int >(wxSLANT)));
59813 SWIG_Python_SetConstant(d, "SOLID",SWIG_From_int(static_cast< int >(wxSOLID)));
59814 SWIG_Python_SetConstant(d, "DOT",SWIG_From_int(static_cast< int >(wxDOT)));
59815 SWIG_Python_SetConstant(d, "LONG_DASH",SWIG_From_int(static_cast< int >(wxLONG_DASH)));
59816 SWIG_Python_SetConstant(d, "SHORT_DASH",SWIG_From_int(static_cast< int >(wxSHORT_DASH)));
59817 SWIG_Python_SetConstant(d, "DOT_DASH",SWIG_From_int(static_cast< int >(wxDOT_DASH)));
59818 SWIG_Python_SetConstant(d, "USER_DASH",SWIG_From_int(static_cast< int >(wxUSER_DASH)));
59819 SWIG_Python_SetConstant(d, "TRANSPARENT",SWIG_From_int(static_cast< int >(wxTRANSPARENT)));
59820 SWIG_Python_SetConstant(d, "STIPPLE",SWIG_From_int(static_cast< int >(wxSTIPPLE)));
59821 SWIG_Python_SetConstant(d, "STIPPLE_MASK",SWIG_From_int(static_cast< int >(wxSTIPPLE_MASK)));
59822 SWIG_Python_SetConstant(d, "STIPPLE_MASK_OPAQUE",SWIG_From_int(static_cast< int >(wxSTIPPLE_MASK_OPAQUE)));
59823 SWIG_Python_SetConstant(d, "BDIAGONAL_HATCH",SWIG_From_int(static_cast< int >(wxBDIAGONAL_HATCH)));
59824 SWIG_Python_SetConstant(d, "CROSSDIAG_HATCH",SWIG_From_int(static_cast< int >(wxCROSSDIAG_HATCH)));
59825 SWIG_Python_SetConstant(d, "FDIAGONAL_HATCH",SWIG_From_int(static_cast< int >(wxFDIAGONAL_HATCH)));
59826 SWIG_Python_SetConstant(d, "CROSS_HATCH",SWIG_From_int(static_cast< int >(wxCROSS_HATCH)));
59827 SWIG_Python_SetConstant(d, "HORIZONTAL_HATCH",SWIG_From_int(static_cast< int >(wxHORIZONTAL_HATCH)));
59828 SWIG_Python_SetConstant(d, "VERTICAL_HATCH",SWIG_From_int(static_cast< int >(wxVERTICAL_HATCH)));
59829 SWIG_Python_SetConstant(d, "JOIN_BEVEL",SWIG_From_int(static_cast< int >(wxJOIN_BEVEL)));
59830 SWIG_Python_SetConstant(d, "JOIN_MITER",SWIG_From_int(static_cast< int >(wxJOIN_MITER)));
59831 SWIG_Python_SetConstant(d, "JOIN_ROUND",SWIG_From_int(static_cast< int >(wxJOIN_ROUND)));
59832 SWIG_Python_SetConstant(d, "CAP_ROUND",SWIG_From_int(static_cast< int >(wxCAP_ROUND)));
59833 SWIG_Python_SetConstant(d, "CAP_PROJECTING",SWIG_From_int(static_cast< int >(wxCAP_PROJECTING)));
59834 SWIG_Python_SetConstant(d, "CAP_BUTT",SWIG_From_int(static_cast< int >(wxCAP_BUTT)));
59835 SWIG_Python_SetConstant(d, "CLEAR",SWIG_From_int(static_cast< int >(wxCLEAR)));
59836 SWIG_Python_SetConstant(d, "XOR",SWIG_From_int(static_cast< int >(wxXOR)));
59837 SWIG_Python_SetConstant(d, "INVERT",SWIG_From_int(static_cast< int >(wxINVERT)));
59838 SWIG_Python_SetConstant(d, "OR_REVERSE",SWIG_From_int(static_cast< int >(wxOR_REVERSE)));
59839 SWIG_Python_SetConstant(d, "AND_REVERSE",SWIG_From_int(static_cast< int >(wxAND_REVERSE)));
59840 SWIG_Python_SetConstant(d, "COPY",SWIG_From_int(static_cast< int >(wxCOPY)));
59841 SWIG_Python_SetConstant(d, "AND",SWIG_From_int(static_cast< int >(wxAND)));
59842 SWIG_Python_SetConstant(d, "AND_INVERT",SWIG_From_int(static_cast< int >(wxAND_INVERT)));
59843 SWIG_Python_SetConstant(d, "NO_OP",SWIG_From_int(static_cast< int >(wxNO_OP)));
59844 SWIG_Python_SetConstant(d, "NOR",SWIG_From_int(static_cast< int >(wxNOR)));
59845 SWIG_Python_SetConstant(d, "EQUIV",SWIG_From_int(static_cast< int >(wxEQUIV)));
59846 SWIG_Python_SetConstant(d, "SRC_INVERT",SWIG_From_int(static_cast< int >(wxSRC_INVERT)));
59847 SWIG_Python_SetConstant(d, "OR_INVERT",SWIG_From_int(static_cast< int >(wxOR_INVERT)));
59848 SWIG_Python_SetConstant(d, "NAND",SWIG_From_int(static_cast< int >(wxNAND)));
59849 SWIG_Python_SetConstant(d, "OR",SWIG_From_int(static_cast< int >(wxOR)));
59850 SWIG_Python_SetConstant(d, "SET",SWIG_From_int(static_cast< int >(wxSET)));
59851 SWIG_Python_SetConstant(d, "WXK_BACK",SWIG_From_int(static_cast< int >(WXK_BACK)));
59852 SWIG_Python_SetConstant(d, "WXK_TAB",SWIG_From_int(static_cast< int >(WXK_TAB)));
59853 SWIG_Python_SetConstant(d, "WXK_RETURN",SWIG_From_int(static_cast< int >(WXK_RETURN)));
59854 SWIG_Python_SetConstant(d, "WXK_ESCAPE",SWIG_From_int(static_cast< int >(WXK_ESCAPE)));
59855 SWIG_Python_SetConstant(d, "WXK_SPACE",SWIG_From_int(static_cast< int >(WXK_SPACE)));
59856 SWIG_Python_SetConstant(d, "WXK_DELETE",SWIG_From_int(static_cast< int >(WXK_DELETE)));
59857 SWIG_Python_SetConstant(d, "WXK_START",SWIG_From_int(static_cast< int >(WXK_START)));
59858 SWIG_Python_SetConstant(d, "WXK_LBUTTON",SWIG_From_int(static_cast< int >(WXK_LBUTTON)));
59859 SWIG_Python_SetConstant(d, "WXK_RBUTTON",SWIG_From_int(static_cast< int >(WXK_RBUTTON)));
59860 SWIG_Python_SetConstant(d, "WXK_CANCEL",SWIG_From_int(static_cast< int >(WXK_CANCEL)));
59861 SWIG_Python_SetConstant(d, "WXK_MBUTTON",SWIG_From_int(static_cast< int >(WXK_MBUTTON)));
59862 SWIG_Python_SetConstant(d, "WXK_CLEAR",SWIG_From_int(static_cast< int >(WXK_CLEAR)));
59863 SWIG_Python_SetConstant(d, "WXK_SHIFT",SWIG_From_int(static_cast< int >(WXK_SHIFT)));
59864 SWIG_Python_SetConstant(d, "WXK_ALT",SWIG_From_int(static_cast< int >(WXK_ALT)));
59865 SWIG_Python_SetConstant(d, "WXK_CONTROL",SWIG_From_int(static_cast< int >(WXK_CONTROL)));
59866 SWIG_Python_SetConstant(d, "WXK_MENU",SWIG_From_int(static_cast< int >(WXK_MENU)));
59867 SWIG_Python_SetConstant(d, "WXK_PAUSE",SWIG_From_int(static_cast< int >(WXK_PAUSE)));
59868 SWIG_Python_SetConstant(d, "WXK_CAPITAL",SWIG_From_int(static_cast< int >(WXK_CAPITAL)));
59869 SWIG_Python_SetConstant(d, "WXK_PRIOR",SWIG_From_int(static_cast< int >(WXK_PRIOR)));
59870 SWIG_Python_SetConstant(d, "WXK_NEXT",SWIG_From_int(static_cast< int >(WXK_NEXT)));
59871 SWIG_Python_SetConstant(d, "WXK_END",SWIG_From_int(static_cast< int >(WXK_END)));
59872 SWIG_Python_SetConstant(d, "WXK_HOME",SWIG_From_int(static_cast< int >(WXK_HOME)));
59873 SWIG_Python_SetConstant(d, "WXK_LEFT",SWIG_From_int(static_cast< int >(WXK_LEFT)));
59874 SWIG_Python_SetConstant(d, "WXK_UP",SWIG_From_int(static_cast< int >(WXK_UP)));
59875 SWIG_Python_SetConstant(d, "WXK_RIGHT",SWIG_From_int(static_cast< int >(WXK_RIGHT)));
59876 SWIG_Python_SetConstant(d, "WXK_DOWN",SWIG_From_int(static_cast< int >(WXK_DOWN)));
59877 SWIG_Python_SetConstant(d, "WXK_SELECT",SWIG_From_int(static_cast< int >(WXK_SELECT)));
59878 SWIG_Python_SetConstant(d, "WXK_PRINT",SWIG_From_int(static_cast< int >(WXK_PRINT)));
59879 SWIG_Python_SetConstant(d, "WXK_EXECUTE",SWIG_From_int(static_cast< int >(WXK_EXECUTE)));
59880 SWIG_Python_SetConstant(d, "WXK_SNAPSHOT",SWIG_From_int(static_cast< int >(WXK_SNAPSHOT)));
59881 SWIG_Python_SetConstant(d, "WXK_INSERT",SWIG_From_int(static_cast< int >(WXK_INSERT)));
59882 SWIG_Python_SetConstant(d, "WXK_HELP",SWIG_From_int(static_cast< int >(WXK_HELP)));
59883 SWIG_Python_SetConstant(d, "WXK_NUMPAD0",SWIG_From_int(static_cast< int >(WXK_NUMPAD0)));
59884 SWIG_Python_SetConstant(d, "WXK_NUMPAD1",SWIG_From_int(static_cast< int >(WXK_NUMPAD1)));
59885 SWIG_Python_SetConstant(d, "WXK_NUMPAD2",SWIG_From_int(static_cast< int >(WXK_NUMPAD2)));
59886 SWIG_Python_SetConstant(d, "WXK_NUMPAD3",SWIG_From_int(static_cast< int >(WXK_NUMPAD3)));
59887 SWIG_Python_SetConstant(d, "WXK_NUMPAD4",SWIG_From_int(static_cast< int >(WXK_NUMPAD4)));
59888 SWIG_Python_SetConstant(d, "WXK_NUMPAD5",SWIG_From_int(static_cast< int >(WXK_NUMPAD5)));
59889 SWIG_Python_SetConstant(d, "WXK_NUMPAD6",SWIG_From_int(static_cast< int >(WXK_NUMPAD6)));
59890 SWIG_Python_SetConstant(d, "WXK_NUMPAD7",SWIG_From_int(static_cast< int >(WXK_NUMPAD7)));
59891 SWIG_Python_SetConstant(d, "WXK_NUMPAD8",SWIG_From_int(static_cast< int >(WXK_NUMPAD8)));
59892 SWIG_Python_SetConstant(d, "WXK_NUMPAD9",SWIG_From_int(static_cast< int >(WXK_NUMPAD9)));
59893 SWIG_Python_SetConstant(d, "WXK_MULTIPLY",SWIG_From_int(static_cast< int >(WXK_MULTIPLY)));
59894 SWIG_Python_SetConstant(d, "WXK_ADD",SWIG_From_int(static_cast< int >(WXK_ADD)));
59895 SWIG_Python_SetConstant(d, "WXK_SEPARATOR",SWIG_From_int(static_cast< int >(WXK_SEPARATOR)));
59896 SWIG_Python_SetConstant(d, "WXK_SUBTRACT",SWIG_From_int(static_cast< int >(WXK_SUBTRACT)));
59897 SWIG_Python_SetConstant(d, "WXK_DECIMAL",SWIG_From_int(static_cast< int >(WXK_DECIMAL)));
59898 SWIG_Python_SetConstant(d, "WXK_DIVIDE",SWIG_From_int(static_cast< int >(WXK_DIVIDE)));
59899 SWIG_Python_SetConstant(d, "WXK_F1",SWIG_From_int(static_cast< int >(WXK_F1)));
59900 SWIG_Python_SetConstant(d, "WXK_F2",SWIG_From_int(static_cast< int >(WXK_F2)));
59901 SWIG_Python_SetConstant(d, "WXK_F3",SWIG_From_int(static_cast< int >(WXK_F3)));
59902 SWIG_Python_SetConstant(d, "WXK_F4",SWIG_From_int(static_cast< int >(WXK_F4)));
59903 SWIG_Python_SetConstant(d, "WXK_F5",SWIG_From_int(static_cast< int >(WXK_F5)));
59904 SWIG_Python_SetConstant(d, "WXK_F6",SWIG_From_int(static_cast< int >(WXK_F6)));
59905 SWIG_Python_SetConstant(d, "WXK_F7",SWIG_From_int(static_cast< int >(WXK_F7)));
59906 SWIG_Python_SetConstant(d, "WXK_F8",SWIG_From_int(static_cast< int >(WXK_F8)));
59907 SWIG_Python_SetConstant(d, "WXK_F9",SWIG_From_int(static_cast< int >(WXK_F9)));
59908 SWIG_Python_SetConstant(d, "WXK_F10",SWIG_From_int(static_cast< int >(WXK_F10)));
59909 SWIG_Python_SetConstant(d, "WXK_F11",SWIG_From_int(static_cast< int >(WXK_F11)));
59910 SWIG_Python_SetConstant(d, "WXK_F12",SWIG_From_int(static_cast< int >(WXK_F12)));
59911 SWIG_Python_SetConstant(d, "WXK_F13",SWIG_From_int(static_cast< int >(WXK_F13)));
59912 SWIG_Python_SetConstant(d, "WXK_F14",SWIG_From_int(static_cast< int >(WXK_F14)));
59913 SWIG_Python_SetConstant(d, "WXK_F15",SWIG_From_int(static_cast< int >(WXK_F15)));
59914 SWIG_Python_SetConstant(d, "WXK_F16",SWIG_From_int(static_cast< int >(WXK_F16)));
59915 SWIG_Python_SetConstant(d, "WXK_F17",SWIG_From_int(static_cast< int >(WXK_F17)));
59916 SWIG_Python_SetConstant(d, "WXK_F18",SWIG_From_int(static_cast< int >(WXK_F18)));
59917 SWIG_Python_SetConstant(d, "WXK_F19",SWIG_From_int(static_cast< int >(WXK_F19)));
59918 SWIG_Python_SetConstant(d, "WXK_F20",SWIG_From_int(static_cast< int >(WXK_F20)));
59919 SWIG_Python_SetConstant(d, "WXK_F21",SWIG_From_int(static_cast< int >(WXK_F21)));
59920 SWIG_Python_SetConstant(d, "WXK_F22",SWIG_From_int(static_cast< int >(WXK_F22)));
59921 SWIG_Python_SetConstant(d, "WXK_F23",SWIG_From_int(static_cast< int >(WXK_F23)));
59922 SWIG_Python_SetConstant(d, "WXK_F24",SWIG_From_int(static_cast< int >(WXK_F24)));
59923 SWIG_Python_SetConstant(d, "WXK_NUMLOCK",SWIG_From_int(static_cast< int >(WXK_NUMLOCK)));
59924 SWIG_Python_SetConstant(d, "WXK_SCROLL",SWIG_From_int(static_cast< int >(WXK_SCROLL)));
59925 SWIG_Python_SetConstant(d, "WXK_PAGEUP",SWIG_From_int(static_cast< int >(WXK_PAGEUP)));
59926 SWIG_Python_SetConstant(d, "WXK_PAGEDOWN",SWIG_From_int(static_cast< int >(WXK_PAGEDOWN)));
59927 SWIG_Python_SetConstant(d, "WXK_NUMPAD_SPACE",SWIG_From_int(static_cast< int >(WXK_NUMPAD_SPACE)));
59928 SWIG_Python_SetConstant(d, "WXK_NUMPAD_TAB",SWIG_From_int(static_cast< int >(WXK_NUMPAD_TAB)));
59929 SWIG_Python_SetConstant(d, "WXK_NUMPAD_ENTER",SWIG_From_int(static_cast< int >(WXK_NUMPAD_ENTER)));
59930 SWIG_Python_SetConstant(d, "WXK_NUMPAD_F1",SWIG_From_int(static_cast< int >(WXK_NUMPAD_F1)));
59931 SWIG_Python_SetConstant(d, "WXK_NUMPAD_F2",SWIG_From_int(static_cast< int >(WXK_NUMPAD_F2)));
59932 SWIG_Python_SetConstant(d, "WXK_NUMPAD_F3",SWIG_From_int(static_cast< int >(WXK_NUMPAD_F3)));
59933 SWIG_Python_SetConstant(d, "WXK_NUMPAD_F4",SWIG_From_int(static_cast< int >(WXK_NUMPAD_F4)));
59934 SWIG_Python_SetConstant(d, "WXK_NUMPAD_HOME",SWIG_From_int(static_cast< int >(WXK_NUMPAD_HOME)));
59935 SWIG_Python_SetConstant(d, "WXK_NUMPAD_LEFT",SWIG_From_int(static_cast< int >(WXK_NUMPAD_LEFT)));
59936 SWIG_Python_SetConstant(d, "WXK_NUMPAD_UP",SWIG_From_int(static_cast< int >(WXK_NUMPAD_UP)));
59937 SWIG_Python_SetConstant(d, "WXK_NUMPAD_RIGHT",SWIG_From_int(static_cast< int >(WXK_NUMPAD_RIGHT)));
59938 SWIG_Python_SetConstant(d, "WXK_NUMPAD_DOWN",SWIG_From_int(static_cast< int >(WXK_NUMPAD_DOWN)));
59939 SWIG_Python_SetConstant(d, "WXK_NUMPAD_PRIOR",SWIG_From_int(static_cast< int >(WXK_NUMPAD_PRIOR)));
59940 SWIG_Python_SetConstant(d, "WXK_NUMPAD_PAGEUP",SWIG_From_int(static_cast< int >(WXK_NUMPAD_PAGEUP)));
59941 SWIG_Python_SetConstant(d, "WXK_NUMPAD_NEXT",SWIG_From_int(static_cast< int >(WXK_NUMPAD_NEXT)));
59942 SWIG_Python_SetConstant(d, "WXK_NUMPAD_PAGEDOWN",SWIG_From_int(static_cast< int >(WXK_NUMPAD_PAGEDOWN)));
59943 SWIG_Python_SetConstant(d, "WXK_NUMPAD_END",SWIG_From_int(static_cast< int >(WXK_NUMPAD_END)));
59944 SWIG_Python_SetConstant(d, "WXK_NUMPAD_BEGIN",SWIG_From_int(static_cast< int >(WXK_NUMPAD_BEGIN)));
59945 SWIG_Python_SetConstant(d, "WXK_NUMPAD_INSERT",SWIG_From_int(static_cast< int >(WXK_NUMPAD_INSERT)));
59946 SWIG_Python_SetConstant(d, "WXK_NUMPAD_DELETE",SWIG_From_int(static_cast< int >(WXK_NUMPAD_DELETE)));
59947 SWIG_Python_SetConstant(d, "WXK_NUMPAD_EQUAL",SWIG_From_int(static_cast< int >(WXK_NUMPAD_EQUAL)));
59948 SWIG_Python_SetConstant(d, "WXK_NUMPAD_MULTIPLY",SWIG_From_int(static_cast< int >(WXK_NUMPAD_MULTIPLY)));
59949 SWIG_Python_SetConstant(d, "WXK_NUMPAD_ADD",SWIG_From_int(static_cast< int >(WXK_NUMPAD_ADD)));
59950 SWIG_Python_SetConstant(d, "WXK_NUMPAD_SEPARATOR",SWIG_From_int(static_cast< int >(WXK_NUMPAD_SEPARATOR)));
59951 SWIG_Python_SetConstant(d, "WXK_NUMPAD_SUBTRACT",SWIG_From_int(static_cast< int >(WXK_NUMPAD_SUBTRACT)));
59952 SWIG_Python_SetConstant(d, "WXK_NUMPAD_DECIMAL",SWIG_From_int(static_cast< int >(WXK_NUMPAD_DECIMAL)));
59953 SWIG_Python_SetConstant(d, "WXK_NUMPAD_DIVIDE",SWIG_From_int(static_cast< int >(WXK_NUMPAD_DIVIDE)));
59954 SWIG_Python_SetConstant(d, "WXK_WINDOWS_LEFT",SWIG_From_int(static_cast< int >(WXK_WINDOWS_LEFT)));
59955 SWIG_Python_SetConstant(d, "WXK_WINDOWS_RIGHT",SWIG_From_int(static_cast< int >(WXK_WINDOWS_RIGHT)));
59956 SWIG_Python_SetConstant(d, "WXK_WINDOWS_MENU",SWIG_From_int(static_cast< int >(WXK_WINDOWS_MENU)));
59957 SWIG_Python_SetConstant(d, "WXK_COMMAND",SWIG_From_int(static_cast< int >(WXK_COMMAND)));
59958 SWIG_Python_SetConstant(d, "WXK_SPECIAL1",SWIG_From_int(static_cast< int >(WXK_SPECIAL1)));
59959 SWIG_Python_SetConstant(d, "WXK_SPECIAL2",SWIG_From_int(static_cast< int >(WXK_SPECIAL2)));
59960 SWIG_Python_SetConstant(d, "WXK_SPECIAL3",SWIG_From_int(static_cast< int >(WXK_SPECIAL3)));
59961 SWIG_Python_SetConstant(d, "WXK_SPECIAL4",SWIG_From_int(static_cast< int >(WXK_SPECIAL4)));
59962 SWIG_Python_SetConstant(d, "WXK_SPECIAL5",SWIG_From_int(static_cast< int >(WXK_SPECIAL5)));
59963 SWIG_Python_SetConstant(d, "WXK_SPECIAL6",SWIG_From_int(static_cast< int >(WXK_SPECIAL6)));
59964 SWIG_Python_SetConstant(d, "WXK_SPECIAL7",SWIG_From_int(static_cast< int >(WXK_SPECIAL7)));
59965 SWIG_Python_SetConstant(d, "WXK_SPECIAL8",SWIG_From_int(static_cast< int >(WXK_SPECIAL8)));
59966 SWIG_Python_SetConstant(d, "WXK_SPECIAL9",SWIG_From_int(static_cast< int >(WXK_SPECIAL9)));
59967 SWIG_Python_SetConstant(d, "WXK_SPECIAL10",SWIG_From_int(static_cast< int >(WXK_SPECIAL10)));
59968 SWIG_Python_SetConstant(d, "WXK_SPECIAL11",SWIG_From_int(static_cast< int >(WXK_SPECIAL11)));
59969 SWIG_Python_SetConstant(d, "WXK_SPECIAL12",SWIG_From_int(static_cast< int >(WXK_SPECIAL12)));
59970 SWIG_Python_SetConstant(d, "WXK_SPECIAL13",SWIG_From_int(static_cast< int >(WXK_SPECIAL13)));
59971 SWIG_Python_SetConstant(d, "WXK_SPECIAL14",SWIG_From_int(static_cast< int >(WXK_SPECIAL14)));
59972 SWIG_Python_SetConstant(d, "WXK_SPECIAL15",SWIG_From_int(static_cast< int >(WXK_SPECIAL15)));
59973 SWIG_Python_SetConstant(d, "WXK_SPECIAL16",SWIG_From_int(static_cast< int >(WXK_SPECIAL16)));
59974 SWIG_Python_SetConstant(d, "WXK_SPECIAL17",SWIG_From_int(static_cast< int >(WXK_SPECIAL17)));
59975 SWIG_Python_SetConstant(d, "WXK_SPECIAL18",SWIG_From_int(static_cast< int >(WXK_SPECIAL18)));
59976 SWIG_Python_SetConstant(d, "WXK_SPECIAL19",SWIG_From_int(static_cast< int >(WXK_SPECIAL19)));
59977 SWIG_Python_SetConstant(d, "WXK_SPECIAL20",SWIG_From_int(static_cast< int >(WXK_SPECIAL20)));
59978 SWIG_Python_SetConstant(d, "PAPER_NONE",SWIG_From_int(static_cast< int >(wxPAPER_NONE)));
59979 SWIG_Python_SetConstant(d, "PAPER_LETTER",SWIG_From_int(static_cast< int >(wxPAPER_LETTER)));
59980 SWIG_Python_SetConstant(d, "PAPER_LEGAL",SWIG_From_int(static_cast< int >(wxPAPER_LEGAL)));
59981 SWIG_Python_SetConstant(d, "PAPER_A4",SWIG_From_int(static_cast< int >(wxPAPER_A4)));
59982 SWIG_Python_SetConstant(d, "PAPER_CSHEET",SWIG_From_int(static_cast< int >(wxPAPER_CSHEET)));
59983 SWIG_Python_SetConstant(d, "PAPER_DSHEET",SWIG_From_int(static_cast< int >(wxPAPER_DSHEET)));
59984 SWIG_Python_SetConstant(d, "PAPER_ESHEET",SWIG_From_int(static_cast< int >(wxPAPER_ESHEET)));
59985 SWIG_Python_SetConstant(d, "PAPER_LETTERSMALL",SWIG_From_int(static_cast< int >(wxPAPER_LETTERSMALL)));
59986 SWIG_Python_SetConstant(d, "PAPER_TABLOID",SWIG_From_int(static_cast< int >(wxPAPER_TABLOID)));
59987 SWIG_Python_SetConstant(d, "PAPER_LEDGER",SWIG_From_int(static_cast< int >(wxPAPER_LEDGER)));
59988 SWIG_Python_SetConstant(d, "PAPER_STATEMENT",SWIG_From_int(static_cast< int >(wxPAPER_STATEMENT)));
59989 SWIG_Python_SetConstant(d, "PAPER_EXECUTIVE",SWIG_From_int(static_cast< int >(wxPAPER_EXECUTIVE)));
59990 SWIG_Python_SetConstant(d, "PAPER_A3",SWIG_From_int(static_cast< int >(wxPAPER_A3)));
59991 SWIG_Python_SetConstant(d, "PAPER_A4SMALL",SWIG_From_int(static_cast< int >(wxPAPER_A4SMALL)));
59992 SWIG_Python_SetConstant(d, "PAPER_A5",SWIG_From_int(static_cast< int >(wxPAPER_A5)));
59993 SWIG_Python_SetConstant(d, "PAPER_B4",SWIG_From_int(static_cast< int >(wxPAPER_B4)));
59994 SWIG_Python_SetConstant(d, "PAPER_B5",SWIG_From_int(static_cast< int >(wxPAPER_B5)));
59995 SWIG_Python_SetConstant(d, "PAPER_FOLIO",SWIG_From_int(static_cast< int >(wxPAPER_FOLIO)));
59996 SWIG_Python_SetConstant(d, "PAPER_QUARTO",SWIG_From_int(static_cast< int >(wxPAPER_QUARTO)));
59997 SWIG_Python_SetConstant(d, "PAPER_10X14",SWIG_From_int(static_cast< int >(wxPAPER_10X14)));
59998 SWIG_Python_SetConstant(d, "PAPER_11X17",SWIG_From_int(static_cast< int >(wxPAPER_11X17)));
59999 SWIG_Python_SetConstant(d, "PAPER_NOTE",SWIG_From_int(static_cast< int >(wxPAPER_NOTE)));
60000 SWIG_Python_SetConstant(d, "PAPER_ENV_9",SWIG_From_int(static_cast< int >(wxPAPER_ENV_9)));
60001 SWIG_Python_SetConstant(d, "PAPER_ENV_10",SWIG_From_int(static_cast< int >(wxPAPER_ENV_10)));
60002 SWIG_Python_SetConstant(d, "PAPER_ENV_11",SWIG_From_int(static_cast< int >(wxPAPER_ENV_11)));
60003 SWIG_Python_SetConstant(d, "PAPER_ENV_12",SWIG_From_int(static_cast< int >(wxPAPER_ENV_12)));
60004 SWIG_Python_SetConstant(d, "PAPER_ENV_14",SWIG_From_int(static_cast< int >(wxPAPER_ENV_14)));
60005 SWIG_Python_SetConstant(d, "PAPER_ENV_DL",SWIG_From_int(static_cast< int >(wxPAPER_ENV_DL)));
60006 SWIG_Python_SetConstant(d, "PAPER_ENV_C5",SWIG_From_int(static_cast< int >(wxPAPER_ENV_C5)));
60007 SWIG_Python_SetConstant(d, "PAPER_ENV_C3",SWIG_From_int(static_cast< int >(wxPAPER_ENV_C3)));
60008 SWIG_Python_SetConstant(d, "PAPER_ENV_C4",SWIG_From_int(static_cast< int >(wxPAPER_ENV_C4)));
60009 SWIG_Python_SetConstant(d, "PAPER_ENV_C6",SWIG_From_int(static_cast< int >(wxPAPER_ENV_C6)));
60010 SWIG_Python_SetConstant(d, "PAPER_ENV_C65",SWIG_From_int(static_cast< int >(wxPAPER_ENV_C65)));
60011 SWIG_Python_SetConstant(d, "PAPER_ENV_B4",SWIG_From_int(static_cast< int >(wxPAPER_ENV_B4)));
60012 SWIG_Python_SetConstant(d, "PAPER_ENV_B5",SWIG_From_int(static_cast< int >(wxPAPER_ENV_B5)));
60013 SWIG_Python_SetConstant(d, "PAPER_ENV_B6",SWIG_From_int(static_cast< int >(wxPAPER_ENV_B6)));
60014 SWIG_Python_SetConstant(d, "PAPER_ENV_ITALY",SWIG_From_int(static_cast< int >(wxPAPER_ENV_ITALY)));
60015 SWIG_Python_SetConstant(d, "PAPER_ENV_MONARCH",SWIG_From_int(static_cast< int >(wxPAPER_ENV_MONARCH)));
60016 SWIG_Python_SetConstant(d, "PAPER_ENV_PERSONAL",SWIG_From_int(static_cast< int >(wxPAPER_ENV_PERSONAL)));
60017 SWIG_Python_SetConstant(d, "PAPER_FANFOLD_US",SWIG_From_int(static_cast< int >(wxPAPER_FANFOLD_US)));
60018 SWIG_Python_SetConstant(d, "PAPER_FANFOLD_STD_GERMAN",SWIG_From_int(static_cast< int >(wxPAPER_FANFOLD_STD_GERMAN)));
60019 SWIG_Python_SetConstant(d, "PAPER_FANFOLD_LGL_GERMAN",SWIG_From_int(static_cast< int >(wxPAPER_FANFOLD_LGL_GERMAN)));
60020 SWIG_Python_SetConstant(d, "PAPER_ISO_B4",SWIG_From_int(static_cast< int >(wxPAPER_ISO_B4)));
60021 SWIG_Python_SetConstant(d, "PAPER_JAPANESE_POSTCARD",SWIG_From_int(static_cast< int >(wxPAPER_JAPANESE_POSTCARD)));
60022 SWIG_Python_SetConstant(d, "PAPER_9X11",SWIG_From_int(static_cast< int >(wxPAPER_9X11)));
60023 SWIG_Python_SetConstant(d, "PAPER_10X11",SWIG_From_int(static_cast< int >(wxPAPER_10X11)));
60024 SWIG_Python_SetConstant(d, "PAPER_15X11",SWIG_From_int(static_cast< int >(wxPAPER_15X11)));
60025 SWIG_Python_SetConstant(d, "PAPER_ENV_INVITE",SWIG_From_int(static_cast< int >(wxPAPER_ENV_INVITE)));
60026 SWIG_Python_SetConstant(d, "PAPER_LETTER_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_LETTER_EXTRA)));
60027 SWIG_Python_SetConstant(d, "PAPER_LEGAL_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_LEGAL_EXTRA)));
60028 SWIG_Python_SetConstant(d, "PAPER_TABLOID_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_TABLOID_EXTRA)));
60029 SWIG_Python_SetConstant(d, "PAPER_A4_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_A4_EXTRA)));
60030 SWIG_Python_SetConstant(d, "PAPER_LETTER_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_LETTER_TRANSVERSE)));
60031 SWIG_Python_SetConstant(d, "PAPER_A4_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_A4_TRANSVERSE)));
60032 SWIG_Python_SetConstant(d, "PAPER_LETTER_EXTRA_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_LETTER_EXTRA_TRANSVERSE)));
60033 SWIG_Python_SetConstant(d, "PAPER_A_PLUS",SWIG_From_int(static_cast< int >(wxPAPER_A_PLUS)));
60034 SWIG_Python_SetConstant(d, "PAPER_B_PLUS",SWIG_From_int(static_cast< int >(wxPAPER_B_PLUS)));
60035 SWIG_Python_SetConstant(d, "PAPER_LETTER_PLUS",SWIG_From_int(static_cast< int >(wxPAPER_LETTER_PLUS)));
60036 SWIG_Python_SetConstant(d, "PAPER_A4_PLUS",SWIG_From_int(static_cast< int >(wxPAPER_A4_PLUS)));
60037 SWIG_Python_SetConstant(d, "PAPER_A5_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_A5_TRANSVERSE)));
60038 SWIG_Python_SetConstant(d, "PAPER_B5_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_B5_TRANSVERSE)));
60039 SWIG_Python_SetConstant(d, "PAPER_A3_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_A3_EXTRA)));
60040 SWIG_Python_SetConstant(d, "PAPER_A5_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_A5_EXTRA)));
60041 SWIG_Python_SetConstant(d, "PAPER_B5_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_B5_EXTRA)));
60042 SWIG_Python_SetConstant(d, "PAPER_A2",SWIG_From_int(static_cast< int >(wxPAPER_A2)));
60043 SWIG_Python_SetConstant(d, "PAPER_A3_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_A3_TRANSVERSE)));
60044 SWIG_Python_SetConstant(d, "PAPER_A3_EXTRA_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_A3_EXTRA_TRANSVERSE)));
60045 SWIG_Python_SetConstant(d, "PAPER_DBL_JAPANESE_POSTCARD",SWIG_From_int(static_cast< int >(wxPAPER_DBL_JAPANESE_POSTCARD)));
60046 SWIG_Python_SetConstant(d, "PAPER_A6",SWIG_From_int(static_cast< int >(wxPAPER_A6)));
60047 SWIG_Python_SetConstant(d, "PAPER_JENV_KAKU2",SWIG_From_int(static_cast< int >(wxPAPER_JENV_KAKU2)));
60048 SWIG_Python_SetConstant(d, "PAPER_JENV_KAKU3",SWIG_From_int(static_cast< int >(wxPAPER_JENV_KAKU3)));
60049 SWIG_Python_SetConstant(d, "PAPER_JENV_CHOU3",SWIG_From_int(static_cast< int >(wxPAPER_JENV_CHOU3)));
60050 SWIG_Python_SetConstant(d, "PAPER_JENV_CHOU4",SWIG_From_int(static_cast< int >(wxPAPER_JENV_CHOU4)));
60051 SWIG_Python_SetConstant(d, "PAPER_LETTER_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_LETTER_ROTATED)));
60052 SWIG_Python_SetConstant(d, "PAPER_A3_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_A3_ROTATED)));
60053 SWIG_Python_SetConstant(d, "PAPER_A4_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_A4_ROTATED)));
60054 SWIG_Python_SetConstant(d, "PAPER_A5_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_A5_ROTATED)));
60055 SWIG_Python_SetConstant(d, "PAPER_B4_JIS_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_B4_JIS_ROTATED)));
60056 SWIG_Python_SetConstant(d, "PAPER_B5_JIS_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_B5_JIS_ROTATED)));
60057 SWIG_Python_SetConstant(d, "PAPER_JAPANESE_POSTCARD_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JAPANESE_POSTCARD_ROTATED)));
60058 SWIG_Python_SetConstant(d, "PAPER_DBL_JAPANESE_POSTCARD_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_DBL_JAPANESE_POSTCARD_ROTATED)));
60059 SWIG_Python_SetConstant(d, "PAPER_A6_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_A6_ROTATED)));
60060 SWIG_Python_SetConstant(d, "PAPER_JENV_KAKU2_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JENV_KAKU2_ROTATED)));
60061 SWIG_Python_SetConstant(d, "PAPER_JENV_KAKU3_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JENV_KAKU3_ROTATED)));
60062 SWIG_Python_SetConstant(d, "PAPER_JENV_CHOU3_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JENV_CHOU3_ROTATED)));
60063 SWIG_Python_SetConstant(d, "PAPER_JENV_CHOU4_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JENV_CHOU4_ROTATED)));
60064 SWIG_Python_SetConstant(d, "PAPER_B6_JIS",SWIG_From_int(static_cast< int >(wxPAPER_B6_JIS)));
60065 SWIG_Python_SetConstant(d, "PAPER_B6_JIS_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_B6_JIS_ROTATED)));
60066 SWIG_Python_SetConstant(d, "PAPER_12X11",SWIG_From_int(static_cast< int >(wxPAPER_12X11)));
60067 SWIG_Python_SetConstant(d, "PAPER_JENV_YOU4",SWIG_From_int(static_cast< int >(wxPAPER_JENV_YOU4)));
60068 SWIG_Python_SetConstant(d, "PAPER_JENV_YOU4_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JENV_YOU4_ROTATED)));
60069 SWIG_Python_SetConstant(d, "PAPER_P16K",SWIG_From_int(static_cast< int >(wxPAPER_P16K)));
60070 SWIG_Python_SetConstant(d, "PAPER_P32K",SWIG_From_int(static_cast< int >(wxPAPER_P32K)));
60071 SWIG_Python_SetConstant(d, "PAPER_P32KBIG",SWIG_From_int(static_cast< int >(wxPAPER_P32KBIG)));
60072 SWIG_Python_SetConstant(d, "PAPER_PENV_1",SWIG_From_int(static_cast< int >(wxPAPER_PENV_1)));
60073 SWIG_Python_SetConstant(d, "PAPER_PENV_2",SWIG_From_int(static_cast< int >(wxPAPER_PENV_2)));
60074 SWIG_Python_SetConstant(d, "PAPER_PENV_3",SWIG_From_int(static_cast< int >(wxPAPER_PENV_3)));
60075 SWIG_Python_SetConstant(d, "PAPER_PENV_4",SWIG_From_int(static_cast< int >(wxPAPER_PENV_4)));
60076 SWIG_Python_SetConstant(d, "PAPER_PENV_5",SWIG_From_int(static_cast< int >(wxPAPER_PENV_5)));
60077 SWIG_Python_SetConstant(d, "PAPER_PENV_6",SWIG_From_int(static_cast< int >(wxPAPER_PENV_6)));
60078 SWIG_Python_SetConstant(d, "PAPER_PENV_7",SWIG_From_int(static_cast< int >(wxPAPER_PENV_7)));
60079 SWIG_Python_SetConstant(d, "PAPER_PENV_8",SWIG_From_int(static_cast< int >(wxPAPER_PENV_8)));
60080 SWIG_Python_SetConstant(d, "PAPER_PENV_9",SWIG_From_int(static_cast< int >(wxPAPER_PENV_9)));
60081 SWIG_Python_SetConstant(d, "PAPER_PENV_10",SWIG_From_int(static_cast< int >(wxPAPER_PENV_10)));
60082 SWIG_Python_SetConstant(d, "PAPER_P16K_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_P16K_ROTATED)));
60083 SWIG_Python_SetConstant(d, "PAPER_P32K_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_P32K_ROTATED)));
60084 SWIG_Python_SetConstant(d, "PAPER_P32KBIG_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_P32KBIG_ROTATED)));
60085 SWIG_Python_SetConstant(d, "PAPER_PENV_1_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_1_ROTATED)));
60086 SWIG_Python_SetConstant(d, "PAPER_PENV_2_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_2_ROTATED)));
60087 SWIG_Python_SetConstant(d, "PAPER_PENV_3_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_3_ROTATED)));
60088 SWIG_Python_SetConstant(d, "PAPER_PENV_4_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_4_ROTATED)));
60089 SWIG_Python_SetConstant(d, "PAPER_PENV_5_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_5_ROTATED)));
60090 SWIG_Python_SetConstant(d, "PAPER_PENV_6_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_6_ROTATED)));
60091 SWIG_Python_SetConstant(d, "PAPER_PENV_7_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_7_ROTATED)));
60092 SWIG_Python_SetConstant(d, "PAPER_PENV_8_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_8_ROTATED)));
60093 SWIG_Python_SetConstant(d, "PAPER_PENV_9_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_9_ROTATED)));
60094 SWIG_Python_SetConstant(d, "PAPER_PENV_10_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_10_ROTATED)));
60095 SWIG_Python_SetConstant(d, "DUPLEX_SIMPLEX",SWIG_From_int(static_cast< int >(wxDUPLEX_SIMPLEX)));
60096 SWIG_Python_SetConstant(d, "DUPLEX_HORIZONTAL",SWIG_From_int(static_cast< int >(wxDUPLEX_HORIZONTAL)));
60097 SWIG_Python_SetConstant(d, "DUPLEX_VERTICAL",SWIG_From_int(static_cast< int >(wxDUPLEX_VERTICAL)));
60098 SWIG_Python_SetConstant(d, "ITEM_SEPARATOR",SWIG_From_int(static_cast< int >(wxITEM_SEPARATOR)));
60099 SWIG_Python_SetConstant(d, "ITEM_NORMAL",SWIG_From_int(static_cast< int >(wxITEM_NORMAL)));
60100 SWIG_Python_SetConstant(d, "ITEM_CHECK",SWIG_From_int(static_cast< int >(wxITEM_CHECK)));
60101 SWIG_Python_SetConstant(d, "ITEM_RADIO",SWIG_From_int(static_cast< int >(wxITEM_RADIO)));
60102 SWIG_Python_SetConstant(d, "ITEM_MAX",SWIG_From_int(static_cast< int >(wxITEM_MAX)));
60103 SWIG_Python_SetConstant(d, "HT_NOWHERE",SWIG_From_int(static_cast< int >(wxHT_NOWHERE)));
60104 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_FIRST",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_FIRST)));
60105 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_ARROW_LINE_1",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_ARROW_LINE_1)));
60106 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_ARROW_LINE_2",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_ARROW_LINE_2)));
60107 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_ARROW_PAGE_1",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_ARROW_PAGE_1)));
60108 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_ARROW_PAGE_2",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_ARROW_PAGE_2)));
60109 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_THUMB",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_THUMB)));
60110 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_BAR_1",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_BAR_1)));
60111 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_BAR_2",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_BAR_2)));
60112 SWIG_Python_SetConstant(d, "HT_SCROLLBAR_LAST",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_LAST)));
60113 SWIG_Python_SetConstant(d, "HT_WINDOW_OUTSIDE",SWIG_From_int(static_cast< int >(wxHT_WINDOW_OUTSIDE)));
60114 SWIG_Python_SetConstant(d, "HT_WINDOW_INSIDE",SWIG_From_int(static_cast< int >(wxHT_WINDOW_INSIDE)));
60115 SWIG_Python_SetConstant(d, "HT_WINDOW_VERT_SCROLLBAR",SWIG_From_int(static_cast< int >(wxHT_WINDOW_VERT_SCROLLBAR)));
60116 SWIG_Python_SetConstant(d, "HT_WINDOW_HORZ_SCROLLBAR",SWIG_From_int(static_cast< int >(wxHT_WINDOW_HORZ_SCROLLBAR)));
60117 SWIG_Python_SetConstant(d, "HT_WINDOW_CORNER",SWIG_From_int(static_cast< int >(wxHT_WINDOW_CORNER)));
60118 SWIG_Python_SetConstant(d, "HT_MAX",SWIG_From_int(static_cast< int >(wxHT_MAX)));
60119 SWIG_Python_SetConstant(d, "MOD_NONE",SWIG_From_int(static_cast< int >(wxMOD_NONE)));
60120 SWIG_Python_SetConstant(d, "MOD_ALT",SWIG_From_int(static_cast< int >(wxMOD_ALT)));
60121 SWIG_Python_SetConstant(d, "MOD_CONTROL",SWIG_From_int(static_cast< int >(wxMOD_CONTROL)));
60122 SWIG_Python_SetConstant(d, "MOD_ALTGR",SWIG_From_int(static_cast< int >(wxMOD_ALTGR)));
60123 SWIG_Python_SetConstant(d, "MOD_SHIFT",SWIG_From_int(static_cast< int >(wxMOD_SHIFT)));
60124 SWIG_Python_SetConstant(d, "MOD_META",SWIG_From_int(static_cast< int >(wxMOD_META)));
60125 SWIG_Python_SetConstant(d, "MOD_WIN",SWIG_From_int(static_cast< int >(wxMOD_WIN)));
60126 SWIG_Python_SetConstant(d, "MOD_CMD",SWIG_From_int(static_cast< int >(wxMOD_CMD)));
60127 SWIG_Python_SetConstant(d, "MOD_ALL",SWIG_From_int(static_cast< int >(wxMOD_ALL)));
60128 SWIG_Python_SetConstant(d, "UPDATE_UI_NONE",SWIG_From_int(static_cast< int >(wxUPDATE_UI_NONE)));
60129 SWIG_Python_SetConstant(d, "UPDATE_UI_RECURSE",SWIG_From_int(static_cast< int >(wxUPDATE_UI_RECURSE)));
60130 SWIG_Python_SetConstant(d, "UPDATE_UI_FROMIDLE",SWIG_From_int(static_cast< int >(wxUPDATE_UI_FROMIDLE)));
994453b8
RD
60131 SWIG_Python_SetConstant(d, "Layout_Default",SWIG_From_int(static_cast< int >(wxLayout_Default)));
60132 SWIG_Python_SetConstant(d, "Layout_LeftToRight",SWIG_From_int(static_cast< int >(wxLayout_LeftToRight)));
60133 SWIG_Python_SetConstant(d, "Layout_RightToLeft",SWIG_From_int(static_cast< int >(wxLayout_RightToLeft)));
1bd55598
RD
60134 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
60135 SWIG_addvarlink(SWIG_globals(),(char*)"EmptyString",EmptyString_get, EmptyString_set);
60136 SWIG_Python_SetConstant(d, "BITMAP_TYPE_INVALID",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_INVALID)));
60137 SWIG_Python_SetConstant(d, "BITMAP_TYPE_BMP",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_BMP)));
60138 SWIG_Python_SetConstant(d, "BITMAP_TYPE_ICO",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_ICO)));
60139 SWIG_Python_SetConstant(d, "BITMAP_TYPE_CUR",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_CUR)));
60140 SWIG_Python_SetConstant(d, "BITMAP_TYPE_XBM",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_XBM)));
60141 SWIG_Python_SetConstant(d, "BITMAP_TYPE_XBM_DATA",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_XBM_DATA)));
60142 SWIG_Python_SetConstant(d, "BITMAP_TYPE_XPM",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_XPM)));
60143 SWIG_Python_SetConstant(d, "BITMAP_TYPE_XPM_DATA",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_XPM_DATA)));
60144 SWIG_Python_SetConstant(d, "BITMAP_TYPE_TIF",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_TIF)));
60145 SWIG_Python_SetConstant(d, "BITMAP_TYPE_GIF",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_GIF)));
60146 SWIG_Python_SetConstant(d, "BITMAP_TYPE_PNG",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_PNG)));
60147 SWIG_Python_SetConstant(d, "BITMAP_TYPE_JPEG",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_JPEG)));
60148 SWIG_Python_SetConstant(d, "BITMAP_TYPE_PNM",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_PNM)));
60149 SWIG_Python_SetConstant(d, "BITMAP_TYPE_PCX",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_PCX)));
60150 SWIG_Python_SetConstant(d, "BITMAP_TYPE_PICT",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_PICT)));
60151 SWIG_Python_SetConstant(d, "BITMAP_TYPE_ICON",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_ICON)));
60152 SWIG_Python_SetConstant(d, "BITMAP_TYPE_ANI",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_ANI)));
60153 SWIG_Python_SetConstant(d, "BITMAP_TYPE_IFF",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_IFF)));
60154 SWIG_Python_SetConstant(d, "BITMAP_TYPE_MACCURSOR",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_MACCURSOR)));
60155 SWIG_Python_SetConstant(d, "BITMAP_TYPE_ANY",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_ANY)));
60156 SWIG_Python_SetConstant(d, "CURSOR_NONE",SWIG_From_int(static_cast< int >(wxCURSOR_NONE)));
60157 SWIG_Python_SetConstant(d, "CURSOR_ARROW",SWIG_From_int(static_cast< int >(wxCURSOR_ARROW)));
60158 SWIG_Python_SetConstant(d, "CURSOR_RIGHT_ARROW",SWIG_From_int(static_cast< int >(wxCURSOR_RIGHT_ARROW)));
60159 SWIG_Python_SetConstant(d, "CURSOR_BULLSEYE",SWIG_From_int(static_cast< int >(wxCURSOR_BULLSEYE)));
60160 SWIG_Python_SetConstant(d, "CURSOR_CHAR",SWIG_From_int(static_cast< int >(wxCURSOR_CHAR)));
60161 SWIG_Python_SetConstant(d, "CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxCURSOR_CROSS)));
60162 SWIG_Python_SetConstant(d, "CURSOR_HAND",SWIG_From_int(static_cast< int >(wxCURSOR_HAND)));
60163 SWIG_Python_SetConstant(d, "CURSOR_IBEAM",SWIG_From_int(static_cast< int >(wxCURSOR_IBEAM)));
60164 SWIG_Python_SetConstant(d, "CURSOR_LEFT_BUTTON",SWIG_From_int(static_cast< int >(wxCURSOR_LEFT_BUTTON)));
60165 SWIG_Python_SetConstant(d, "CURSOR_MAGNIFIER",SWIG_From_int(static_cast< int >(wxCURSOR_MAGNIFIER)));
60166 SWIG_Python_SetConstant(d, "CURSOR_MIDDLE_BUTTON",SWIG_From_int(static_cast< int >(wxCURSOR_MIDDLE_BUTTON)));
60167 SWIG_Python_SetConstant(d, "CURSOR_NO_ENTRY",SWIG_From_int(static_cast< int >(wxCURSOR_NO_ENTRY)));
60168 SWIG_Python_SetConstant(d, "CURSOR_PAINT_BRUSH",SWIG_From_int(static_cast< int >(wxCURSOR_PAINT_BRUSH)));
60169 SWIG_Python_SetConstant(d, "CURSOR_PENCIL",SWIG_From_int(static_cast< int >(wxCURSOR_PENCIL)));
60170 SWIG_Python_SetConstant(d, "CURSOR_POINT_LEFT",SWIG_From_int(static_cast< int >(wxCURSOR_POINT_LEFT)));
60171 SWIG_Python_SetConstant(d, "CURSOR_POINT_RIGHT",SWIG_From_int(static_cast< int >(wxCURSOR_POINT_RIGHT)));
60172 SWIG_Python_SetConstant(d, "CURSOR_QUESTION_ARROW",SWIG_From_int(static_cast< int >(wxCURSOR_QUESTION_ARROW)));
60173 SWIG_Python_SetConstant(d, "CURSOR_RIGHT_BUTTON",SWIG_From_int(static_cast< int >(wxCURSOR_RIGHT_BUTTON)));
60174 SWIG_Python_SetConstant(d, "CURSOR_SIZENESW",SWIG_From_int(static_cast< int >(wxCURSOR_SIZENESW)));
60175 SWIG_Python_SetConstant(d, "CURSOR_SIZENS",SWIG_From_int(static_cast< int >(wxCURSOR_SIZENS)));
60176 SWIG_Python_SetConstant(d, "CURSOR_SIZENWSE",SWIG_From_int(static_cast< int >(wxCURSOR_SIZENWSE)));
60177 SWIG_Python_SetConstant(d, "CURSOR_SIZEWE",SWIG_From_int(static_cast< int >(wxCURSOR_SIZEWE)));
60178 SWIG_Python_SetConstant(d, "CURSOR_SIZING",SWIG_From_int(static_cast< int >(wxCURSOR_SIZING)));
60179 SWIG_Python_SetConstant(d, "CURSOR_SPRAYCAN",SWIG_From_int(static_cast< int >(wxCURSOR_SPRAYCAN)));
60180 SWIG_Python_SetConstant(d, "CURSOR_WAIT",SWIG_From_int(static_cast< int >(wxCURSOR_WAIT)));
60181 SWIG_Python_SetConstant(d, "CURSOR_WATCH",SWIG_From_int(static_cast< int >(wxCURSOR_WATCH)));
60182 SWIG_Python_SetConstant(d, "CURSOR_BLANK",SWIG_From_int(static_cast< int >(wxCURSOR_BLANK)));
60183 SWIG_Python_SetConstant(d, "CURSOR_DEFAULT",SWIG_From_int(static_cast< int >(wxCURSOR_DEFAULT)));
60184 SWIG_Python_SetConstant(d, "CURSOR_COPY_ARROW",SWIG_From_int(static_cast< int >(wxCURSOR_COPY_ARROW)));
60185 SWIG_Python_SetConstant(d, "CURSOR_ARROWWAIT",SWIG_From_int(static_cast< int >(wxCURSOR_ARROWWAIT)));
60186 SWIG_Python_SetConstant(d, "CURSOR_MAX",SWIG_From_int(static_cast< int >(wxCURSOR_MAX)));
70d7cb34
RD
60187 SWIG_Python_SetConstant(d, "Inside",SWIG_From_int(static_cast< int >(wxInside)));
60188 SWIG_Python_SetConstant(d, "OutLeft",SWIG_From_int(static_cast< int >(wxOutLeft)));
60189 SWIG_Python_SetConstant(d, "OutRight",SWIG_From_int(static_cast< int >(wxOutRight)));
60190 SWIG_Python_SetConstant(d, "OutTop",SWIG_From_int(static_cast< int >(wxOutTop)));
60191 SWIG_Python_SetConstant(d, "OutBottom",SWIG_From_int(static_cast< int >(wxOutBottom)));
1bd55598
RD
60192 SWIG_addvarlink(SWIG_globals(),(char*)"DefaultPosition",DefaultPosition_get, DefaultPosition_set);
60193 SWIG_addvarlink(SWIG_globals(),(char*)"DefaultSize",DefaultSize_get, DefaultSize_set);
60194 SWIG_Python_SetConstant(d, "FromStart",SWIG_From_int(static_cast< int >(wxFromStart)));
60195 SWIG_Python_SetConstant(d, "FromCurrent",SWIG_From_int(static_cast< int >(wxFromCurrent)));
60196 SWIG_Python_SetConstant(d, "FromEnd",SWIG_From_int(static_cast< int >(wxFromEnd)));
60197
60198 wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
60199
60200
60201 wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
60202
60203 SWIG_Python_SetConstant(d, "IMAGE_ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGE_ALPHA_TRANSPARENT)));
60204 SWIG_Python_SetConstant(d, "IMAGE_ALPHA_THRESHOLD",SWIG_From_int(static_cast< int >(wxIMAGE_ALPHA_THRESHOLD)));
60205 SWIG_Python_SetConstant(d, "IMAGE_ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxIMAGE_ALPHA_OPAQUE)));
f5263701
RD
60206 SWIG_Python_SetConstant(d, "IMAGE_QUALITY_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_QUALITY_NORMAL)));
60207 SWIG_Python_SetConstant(d, "IMAGE_QUALITY_HIGH",SWIG_From_int(static_cast< int >(wxIMAGE_QUALITY_HIGH)));
1bd55598
RD
60208 SWIG_addvarlink(SWIG_globals(),(char*)"NullImage",NullImage_get, NullImage_set);
60209 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_FILENAME",IMAGE_OPTION_FILENAME_get, IMAGE_OPTION_FILENAME_set);
60210 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_BMP_FORMAT",IMAGE_OPTION_BMP_FORMAT_get, IMAGE_OPTION_BMP_FORMAT_set);
60211 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",IMAGE_OPTION_CUR_HOTSPOT_X_get, IMAGE_OPTION_CUR_HOTSPOT_X_set);
60212 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",IMAGE_OPTION_CUR_HOTSPOT_Y_get, IMAGE_OPTION_CUR_HOTSPOT_Y_set);
60213 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_RESOLUTION",IMAGE_OPTION_RESOLUTION_get, IMAGE_OPTION_RESOLUTION_set);
60214 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_RESOLUTIONX",IMAGE_OPTION_RESOLUTIONX_get, IMAGE_OPTION_RESOLUTIONX_set);
60215 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_RESOLUTIONY",IMAGE_OPTION_RESOLUTIONY_get, IMAGE_OPTION_RESOLUTIONY_set);
60216 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_RESOLUTIONUNIT",IMAGE_OPTION_RESOLUTIONUNIT_get, IMAGE_OPTION_RESOLUTIONUNIT_set);
60217 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_QUALITY",IMAGE_OPTION_QUALITY_get, IMAGE_OPTION_QUALITY_set);
60218 SWIG_Python_SetConstant(d, "IMAGE_RESOLUTION_INCHES",SWIG_From_int(static_cast< int >(wxIMAGE_RESOLUTION_INCHES)));
60219 SWIG_Python_SetConstant(d, "IMAGE_RESOLUTION_CM",SWIG_From_int(static_cast< int >(wxIMAGE_RESOLUTION_CM)));
60220 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_BITSPERSAMPLE",IMAGE_OPTION_BITSPERSAMPLE_get, IMAGE_OPTION_BITSPERSAMPLE_set);
60221 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_SAMPLESPERPIXEL",IMAGE_OPTION_SAMPLESPERPIXEL_get, IMAGE_OPTION_SAMPLESPERPIXEL_set);
60222 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_COMPRESSION",IMAGE_OPTION_COMPRESSION_get, IMAGE_OPTION_COMPRESSION_set);
60223 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_IMAGEDESCRIPTOR",IMAGE_OPTION_IMAGEDESCRIPTOR_get, IMAGE_OPTION_IMAGEDESCRIPTOR_set);
60224 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_PNG_FORMAT",IMAGE_OPTION_PNG_FORMAT_get, IMAGE_OPTION_PNG_FORMAT_set);
60225 SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_PNG_BITDEPTH",IMAGE_OPTION_PNG_BITDEPTH_get, IMAGE_OPTION_PNG_BITDEPTH_set);
60226 SWIG_Python_SetConstant(d, "PNG_TYPE_COLOUR",SWIG_From_int(static_cast< int >(wxPNG_TYPE_COLOUR)));
60227 SWIG_Python_SetConstant(d, "PNG_TYPE_GREY",SWIG_From_int(static_cast< int >(wxPNG_TYPE_GREY)));
60228 SWIG_Python_SetConstant(d, "PNG_TYPE_GREY_RED",SWIG_From_int(static_cast< int >(wxPNG_TYPE_GREY_RED)));
60229 SWIG_Python_SetConstant(d, "BMP_24BPP",SWIG_From_int(static_cast< int >(wxBMP_24BPP)));
60230 SWIG_Python_SetConstant(d, "BMP_8BPP",SWIG_From_int(static_cast< int >(wxBMP_8BPP)));
60231 SWIG_Python_SetConstant(d, "BMP_8BPP_GREY",SWIG_From_int(static_cast< int >(wxBMP_8BPP_GREY)));
60232 SWIG_Python_SetConstant(d, "BMP_8BPP_GRAY",SWIG_From_int(static_cast< int >(wxBMP_8BPP_GRAY)));
60233 SWIG_Python_SetConstant(d, "BMP_8BPP_RED",SWIG_From_int(static_cast< int >(wxBMP_8BPP_RED)));
60234 SWIG_Python_SetConstant(d, "BMP_8BPP_PALETTE",SWIG_From_int(static_cast< int >(wxBMP_8BPP_PALETTE)));
60235 SWIG_Python_SetConstant(d, "BMP_4BPP",SWIG_From_int(static_cast< int >(wxBMP_4BPP)));
60236 SWIG_Python_SetConstant(d, "BMP_1BPP",SWIG_From_int(static_cast< int >(wxBMP_1BPP)));
60237 SWIG_Python_SetConstant(d, "BMP_1BPP_BW",SWIG_From_int(static_cast< int >(wxBMP_1BPP_BW)));
60238 SWIG_Python_SetConstant(d, "QUANTIZE_INCLUDE_WINDOWS_COLOURS",SWIG_From_int(static_cast< int >(wxQUANTIZE_INCLUDE_WINDOWS_COLOURS)));
60239 SWIG_Python_SetConstant(d, "QUANTIZE_FILL_DESTINATION_IMAGE",SWIG_From_int(static_cast< int >(wxQUANTIZE_FILL_DESTINATION_IMAGE)));
60240 SWIG_Python_SetConstant(d, "EVENT_PROPAGATE_NONE",SWIG_From_int(static_cast< int >(wxEVENT_PROPAGATE_NONE)));
60241 SWIG_Python_SetConstant(d, "EVENT_PROPAGATE_MAX",SWIG_From_int(static_cast< int >(wxEVENT_PROPAGATE_MAX)));
60242 PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL));
60243 PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST));
60244 PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST));
60245 PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED));
60246 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED));
60247 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED));
60248 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED));
60249 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED));
60250 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED));
60251 PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED));
60252 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED));
60253 PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED));
60254 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED));
60255 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED));
60256 PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED));
60257 PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED));
60258 PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED));
60259 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED));
60260 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER));
60261 PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN));
60262 PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP));
60263 PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN));
60264 PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP));
60265 PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN));
60266 PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP));
60267 PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION));
60268 PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW));
60269 PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW));
60270 PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK));
60271 PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK));
60272 PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK));
60273 PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS));
60274 PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS));
60275 PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS));
60276 PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL));
60277 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN));
60278 PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP));
60279 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN));
60280 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP));
60281 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN));
60282 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP));
60283 PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION));
60284 PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW));
60285 PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW));
60286 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK));
60287 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK));
60288 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK));
60289 PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR));
60290 PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK));
60291 PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY));
60292 PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN));
60293 PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP));
60294 PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY));
60295 PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR));
60296 PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP));
60297 PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM));
60298 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP));
60299 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN));
60300 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP));
60301 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN));
60302 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK));
60303 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE));
60304 PyDict_SetItemString(d, "wxEVT_SCROLL_CHANGED", PyInt_FromLong(wxEVT_SCROLL_CHANGED));
60305 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP));
60306 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM));
60307 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP));
60308 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN));
60309 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP));
60310 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN));
60311 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK));
60312 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE));
60313 PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE));
60314 PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE));
60315 PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW));
60316 PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION));
60317 PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION));
60318 PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP));
1bd55598
RD
60319 PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE));
60320 PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE));
60321 PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY));
60322 PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW));
60323 PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE));
60324 PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE));
60325 PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED));
34e0a3bb 60326 PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_LOST", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_LOST));
1bd55598
RD
60327 PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT));
60328 PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND));
60329 PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT));
60330 PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON));
60331 PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN));
60332 PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE));
60333 PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT));
60334 PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU));
60335 PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED));
60336 PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED));
60337 PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED));
60338 PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE));
60339 PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED));
60340 PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES));
60341 PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM));
60342 PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM));
60343 PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM));
60344 PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG));
60345 PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE));
60346 PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI));
60347 PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING));
60348 PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING));
60349 PyDict_SetItemString(d, "wxEVT_HIBERNATE", PyInt_FromLong(wxEVT_HIBERNATE));
2131d850
RD
60350 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_COPY", PyInt_FromLong(wxEVT_COMMAND_TEXT_COPY));
60351 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_CUT", PyInt_FromLong(wxEVT_COMMAND_TEXT_CUT));
60352 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_PASTE", PyInt_FromLong(wxEVT_COMMAND_TEXT_PASTE));
1bd55598
RD
60353 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK));
60354 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK));
60355 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK));
60356 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK));
60357 PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS));
60358 PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS));
60359 PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER));
60360 SWIG_Python_SetConstant(d, "MOUSE_BTN_ANY",SWIG_From_int(static_cast< int >(wxMOUSE_BTN_ANY)));
60361 SWIG_Python_SetConstant(d, "MOUSE_BTN_NONE",SWIG_From_int(static_cast< int >(wxMOUSE_BTN_NONE)));
60362 SWIG_Python_SetConstant(d, "MOUSE_BTN_LEFT",SWIG_From_int(static_cast< int >(wxMOUSE_BTN_LEFT)));
60363 SWIG_Python_SetConstant(d, "MOUSE_BTN_MIDDLE",SWIG_From_int(static_cast< int >(wxMOUSE_BTN_MIDDLE)));
60364 SWIG_Python_SetConstant(d, "MOUSE_BTN_RIGHT",SWIG_From_int(static_cast< int >(wxMOUSE_BTN_RIGHT)));
60365 SWIG_Python_SetConstant(d, "UPDATE_UI_PROCESS_ALL",SWIG_From_int(static_cast< int >(wxUPDATE_UI_PROCESS_ALL)));
60366 SWIG_Python_SetConstant(d, "UPDATE_UI_PROCESS_SPECIFIED",SWIG_From_int(static_cast< int >(wxUPDATE_UI_PROCESS_SPECIFIED)));
60367 SWIG_Python_SetConstant(d, "NavigationKeyEvent_IsBackward",SWIG_From_int(static_cast< int >(wxNavigationKeyEvent::IsBackward)));
60368 SWIG_Python_SetConstant(d, "NavigationKeyEvent_IsForward",SWIG_From_int(static_cast< int >(wxNavigationKeyEvent::IsForward)));
60369 SWIG_Python_SetConstant(d, "NavigationKeyEvent_WinChange",SWIG_From_int(static_cast< int >(wxNavigationKeyEvent::WinChange)));
60370 SWIG_Python_SetConstant(d, "NavigationKeyEvent_FromTab",SWIG_From_int(static_cast< int >(wxNavigationKeyEvent::FromTab)));
60371 SWIG_Python_SetConstant(d, "IDLE_PROCESS_ALL",SWIG_From_int(static_cast< int >(wxIDLE_PROCESS_ALL)));
60372 SWIG_Python_SetConstant(d, "IDLE_PROCESS_SPECIFIED",SWIG_From_int(static_cast< int >(wxIDLE_PROCESS_SPECIFIED)));
60373 PyDict_SetItemString(d, "wxEVT_DATE_CHANGED", PyInt_FromLong(wxEVT_DATE_CHANGED));
60374 SWIG_Python_SetConstant(d, "PYAPP_ASSERT_SUPPRESS",SWIG_From_int(static_cast< int >(wxPYAPP_ASSERT_SUPPRESS)));
60375 SWIG_Python_SetConstant(d, "PYAPP_ASSERT_EXCEPTION",SWIG_From_int(static_cast< int >(wxPYAPP_ASSERT_EXCEPTION)));
60376 SWIG_Python_SetConstant(d, "PYAPP_ASSERT_DIALOG",SWIG_From_int(static_cast< int >(wxPYAPP_ASSERT_DIALOG)));
60377 SWIG_Python_SetConstant(d, "PYAPP_ASSERT_LOG",SWIG_From_int(static_cast< int >(wxPYAPP_ASSERT_LOG)));
60378 SWIG_Python_SetConstant(d, "PRINT_WINDOWS",SWIG_From_int(static_cast< int >(wxPRINT_WINDOWS)));
60379 SWIG_Python_SetConstant(d, "PRINT_POSTSCRIPT",SWIG_From_int(static_cast< int >(wxPRINT_POSTSCRIPT)));
eec1c382
RD
60380 SWIG_Python_SetConstant(d, "ACCEL_ALT",SWIG_From_int(static_cast< int >(wxACCEL_ALT)));
60381 SWIG_Python_SetConstant(d, "ACCEL_CTRL",SWIG_From_int(static_cast< int >(wxACCEL_CTRL)));
60382 SWIG_Python_SetConstant(d, "ACCEL_SHIFT",SWIG_From_int(static_cast< int >(wxACCEL_SHIFT)));
60383 SWIG_Python_SetConstant(d, "ACCEL_NORMAL",SWIG_From_int(static_cast< int >(wxACCEL_NORMAL)));
60384 SWIG_Python_SetConstant(d, "ACCEL_CMD",SWIG_From_int(static_cast< int >(wxACCEL_CMD)));
1bd55598
RD
60385 SWIG_addvarlink(SWIG_globals(),(char*)"NullAcceleratorTable",NullAcceleratorTable_get, NullAcceleratorTable_set);
60386 SWIG_addvarlink(SWIG_globals(),(char*)"PanelNameStr",PanelNameStr_get, PanelNameStr_set);
60387 SWIG_Python_SetConstant(d, "WINDOW_VARIANT_NORMAL",SWIG_From_int(static_cast< int >(wxWINDOW_VARIANT_NORMAL)));
60388 SWIG_Python_SetConstant(d, "WINDOW_VARIANT_SMALL",SWIG_From_int(static_cast< int >(wxWINDOW_VARIANT_SMALL)));
60389 SWIG_Python_SetConstant(d, "WINDOW_VARIANT_MINI",SWIG_From_int(static_cast< int >(wxWINDOW_VARIANT_MINI)));
60390 SWIG_Python_SetConstant(d, "WINDOW_VARIANT_LARGE",SWIG_From_int(static_cast< int >(wxWINDOW_VARIANT_LARGE)));
60391 SWIG_Python_SetConstant(d, "WINDOW_VARIANT_MAX",SWIG_From_int(static_cast< int >(wxWINDOW_VARIANT_MAX)));
60392 SWIG_addvarlink(SWIG_globals(),(char*)"DefaultValidator",DefaultValidator_get, DefaultValidator_set);
60393 SWIG_addvarlink(SWIG_globals(),(char*)"ControlNameStr",ControlNameStr_get, ControlNameStr_set);
60394 SWIG_Python_SetConstant(d, "FLEX_GROWMODE_NONE",SWIG_From_int(static_cast< int >(wxFLEX_GROWMODE_NONE)));
60395 SWIG_Python_SetConstant(d, "FLEX_GROWMODE_SPECIFIED",SWIG_From_int(static_cast< int >(wxFLEX_GROWMODE_SPECIFIED)));
60396 SWIG_Python_SetConstant(d, "FLEX_GROWMODE_ALL",SWIG_From_int(static_cast< int >(wxFLEX_GROWMODE_ALL)));
60397 SWIG_addvarlink(SWIG_globals(),(char*)"DefaultSpan",DefaultSpan_get, DefaultSpan_set);
60398 SWIG_Python_SetConstant(d, "Left",SWIG_From_int(static_cast< int >(wxLeft)));
60399 SWIG_Python_SetConstant(d, "Top",SWIG_From_int(static_cast< int >(wxTop)));
60400 SWIG_Python_SetConstant(d, "Right",SWIG_From_int(static_cast< int >(wxRight)));
60401 SWIG_Python_SetConstant(d, "Bottom",SWIG_From_int(static_cast< int >(wxBottom)));
60402 SWIG_Python_SetConstant(d, "Width",SWIG_From_int(static_cast< int >(wxWidth)));
60403 SWIG_Python_SetConstant(d, "Height",SWIG_From_int(static_cast< int >(wxHeight)));
60404 SWIG_Python_SetConstant(d, "Centre",SWIG_From_int(static_cast< int >(wxCentre)));
60405 SWIG_Python_SetConstant(d, "Center",SWIG_From_int(static_cast< int >(wxCenter)));
60406 SWIG_Python_SetConstant(d, "CentreX",SWIG_From_int(static_cast< int >(wxCentreX)));
60407 SWIG_Python_SetConstant(d, "CentreY",SWIG_From_int(static_cast< int >(wxCentreY)));
60408 SWIG_Python_SetConstant(d, "Unconstrained",SWIG_From_int(static_cast< int >(wxUnconstrained)));
60409 SWIG_Python_SetConstant(d, "AsIs",SWIG_From_int(static_cast< int >(wxAsIs)));
60410 SWIG_Python_SetConstant(d, "PercentOf",SWIG_From_int(static_cast< int >(wxPercentOf)));
60411 SWIG_Python_SetConstant(d, "Above",SWIG_From_int(static_cast< int >(wxAbove)));
60412 SWIG_Python_SetConstant(d, "Below",SWIG_From_int(static_cast< int >(wxBelow)));
60413 SWIG_Python_SetConstant(d, "LeftOf",SWIG_From_int(static_cast< int >(wxLeftOf)));
60414 SWIG_Python_SetConstant(d, "RightOf",SWIG_From_int(static_cast< int >(wxRightOf)));
60415 SWIG_Python_SetConstant(d, "SameAs",SWIG_From_int(static_cast< int >(wxSameAs)));
60416 SWIG_Python_SetConstant(d, "Absolute",SWIG_From_int(static_cast< int >(wxAbsolute)));
60417
60418 // Initialize threading, some globals and such
60419 __wxPyPreStart(d);
60420
60421
60422 // Although these are defined in __version__ they need to be here too so
60423 // that an assert can be done to ensure that the wxPython and the wxWindows
60424 // versions match.
60425 PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION ));
60426 PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION ));
60427 PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER ));
60428
d55e5bfc
RD
60429}
60430