]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_controls_wrap.cpp
implemented DrawCheckButton() for XP renderer; code cleanup
[wxWidgets.git] / wxPython / src / mac / _controls_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
RD
439}
440
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}
d55e5bfc 682
36ed4f51
RD
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
d55e5bfc 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
36ed4f51 764#endif
1bd55598
RD
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}
797#endif
798
c370783e 799
36ed4f51 800/* -----------------------------------------------------------------------------
1bd55598 801 * error manipulation
36ed4f51 802 * ----------------------------------------------------------------------------- */
d55e5bfc 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}
d55e5bfc 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 935#endif
d55e5bfc 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 * ----------------------------------------------------------------------------- */
d55e5bfc 951
36ed4f51 952/* Constant Types */
36ed4f51
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
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;
36ed4f51 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
1bd55598
RD
967#if 0
968{ /* cc-mode */
969#endif
36ed4f51
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 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 * ----------------------------------------------------------------------------- */
d55e5bfc 985
36ed4f51 986/* Common SWIG API */
d55e5bfc 987
1bd55598
RD
988/* for raw pointers */
989#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995#define swig_owntype int
d55e5bfc 996
1bd55598
RD
997/* for raw packed data */
998#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1000
1bd55598
RD
1001/* for class or struct pointers */
1002#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1004
1bd55598
RD
1005/* for C or C++ function pointers */
1006#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1008
1bd55598
RD
1009/* for C++ member pointers, ie, member methods */
1010#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1012
d55e5bfc 1013
1bd55598 1014/* Runtime API */
d55e5bfc 1015
1bd55598
RD
1016#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1019
1bd55598
RD
1020#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024#define SWIG_fail goto fail
32fe5131 1025
d55e5bfc 1026
1bd55598 1027/* Runtime API implementation */
36ed4f51 1028
1bd55598 1029/* Error manipulation */
36ed4f51 1030
1bd55598
RD
1031SWIGINTERN void
1032SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
d55e5bfc
RD
1037}
1038
1bd55598
RD
1039SWIGINTERN void
1040SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
36ed4f51 1044}
d55e5bfc 1045
1bd55598 1046#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1047
1bd55598 1048/* Set a constant value */
36ed4f51 1049
1bd55598
RD
1050SWIGINTERN void
1051SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
d55e5bfc
RD
1054}
1055
1bd55598 1056/* Append a value to the result obj */
d55e5bfc 1057
1bd55598
RD
1058SWIGINTERN PyObject*
1059SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076#else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
c370783e 1084 } else {
1bd55598
RD
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
c370783e 1096 }
1bd55598
RD
1097 return result;
1098#endif
d55e5bfc 1099}
36ed4f51 1100
1bd55598 1101/* Unpack the argument tuple */
36ed4f51 1102
1bd55598
RD
1103SWIGINTERN int
1104SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105{
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139}
1140
1141/* A functor is a function object with one single object argument */
1142#if PY_VERSION_HEX >= 0x02020000
1143#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144#else
1145#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146#endif
1147
1148/*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151*/
1152#ifdef __cplusplus
1153#define SWIG_STATIC_POINTER(var) var
1154#else
1155#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156#endif
1157
1158/* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162/* Flags for new pointer objects */
1163#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168#ifdef __cplusplus
1169extern "C" {
1170#if 0
1171} /* cc-mode */
1172#endif
1173#endif
1174
1175/* How to access Py_None */
1176#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177# ifndef SWIG_PYTHON_NO_BUILD_NONE
1178# ifndef SWIG_PYTHON_BUILD_NONE
1179# define SWIG_PYTHON_BUILD_NONE
1180# endif
1181# endif
1182#endif
1183
1184#ifdef SWIG_PYTHON_BUILD_NONE
1185# ifdef Py_None
1186# undef Py_None
1187# define Py_None SWIG_Py_None()
1188# endif
1189SWIGRUNTIMEINLINE PyObject *
1190_SWIG_Py_None(void)
1191{
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195}
1196SWIGRUNTIME PyObject *
1197SWIG_Py_None(void)
1198{
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201}
1202#endif
1203
1204/* The python void return value */
1205
1206SWIGRUNTIMEINLINE PyObject *
1207SWIG_Py_Void(void)
1208{
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212}
1213
1214/* PySwigClientData */
1215
1216typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223} PySwigClientData;
1224
1225SWIGRUNTIMEINLINE int
1226SWIG_Python_CheckImplicit(swig_type_info *ty)
1227{
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230}
1231
1232SWIGRUNTIMEINLINE PyObject *
1233SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237}
1238
1239
1240SWIGRUNTIME PySwigClientData *
1241PySwigClientData_New(PyObject* obj)
1242{
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256#if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258#else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260#endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280#ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282#else
1283 data->delargs = 0;
1284#endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291}
1292
1293SWIGRUNTIME void
1294PySwigClientData_Del(PySwigClientData* data)
1295{
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299}
1300
1301/* =============== PySwigObject =====================*/
1302
1303typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309} PySwigObject;
1310
1311SWIGRUNTIME PyObject *
1312PySwigObject_long(PySwigObject *v)
1313{
1314 return PyLong_FromVoidPtr(v->ptr);
1315}
1316
1317SWIGRUNTIME PyObject *
1318PySwigObject_format(const char* fmt, PySwigObject *v)
1319{
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333}
1334
1335SWIGRUNTIME PyObject *
1336PySwigObject_oct(PySwigObject *v)
1337{
1338 return PySwigObject_format("%o",v);
1339}
1340
1341SWIGRUNTIME PyObject *
1342PySwigObject_hex(PySwigObject *v)
1343{
1344 return PySwigObject_format("%x",v);
1345}
1346
1347SWIGRUNTIME PyObject *
1348#ifdef METH_NOARGS
1349PySwigObject_repr(PySwigObject *v)
1350#else
1351PySwigObject_repr(PySwigObject *v, PyObject *args)
1352#endif
1353{
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359#ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361#else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363#endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367}
1368
1369SWIGRUNTIME int
1370PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371{
1372#ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374#else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376#endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384}
1385
1386SWIGRUNTIME PyObject *
1387PySwigObject_str(PySwigObject *v)
1388{
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392}
1393
1394SWIGRUNTIME int
1395PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396{
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400}
1401
1402SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404SWIGRUNTIME PyTypeObject*
1405PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408}
1409
1410SWIGRUNTIMEINLINE int
1411PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414}
1415
1416SWIGRUNTIME PyObject *
1417PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419SWIGRUNTIME void
1420PySwigObject_dealloc(PyObject *v)
1421{
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446#endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451}
1452
1453SWIGRUNTIME PyObject*
1454PySwigObject_append(PyObject* v, PyObject* next)
1455{
1456 PySwigObject *sobj = (PySwigObject *) v;
1457#ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461#endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468}
1469
1470SWIGRUNTIME PyObject*
1471#ifdef METH_NOARGS
1472PySwigObject_next(PyObject* v)
1473#else
1474PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475#endif
1476{
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484}
1485
1486SWIGINTERN PyObject*
1487#ifdef METH_NOARGS
1488PySwigObject_disown(PyObject *v)
1489#else
1490PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491#endif
1492{
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496}
1497
1498SWIGINTERN PyObject*
1499#ifdef METH_NOARGS
1500PySwigObject_acquire(PyObject *v)
1501#else
1502PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503#endif
1504{
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508}
1509
1510SWIGINTERN PyObject*
1511PySwigObject_own(PyObject *v, PyObject *args)
1512{
1513 PyObject *val = 0;
1514#if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516#else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518#endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527#ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533#else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539#endif
1540 }
1541 return obj;
1542 }
1543}
1544
1545#ifdef METH_O
1546static PyMethodDef
1547swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555};
1556#else
1557static PyMethodDef
1558swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566};
1567#endif
1568
1569#if PY_VERSION_HEX < 0x02020000
1570SWIGINTERN PyObject *
1571PySwigObject_getattr(PySwigObject *sobj,char *name)
1572{
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574}
1575#endif
1576
1577SWIGRUNTIME PyTypeObject*
1578_PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
36ed4f51
RD
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1605#if PY_VERSION_HEX >= 0x02020000
36ed4f51 1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1607#elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
1609#endif
1610 };
1611
1bd55598 1612 static PyTypeObject pyswigobject_type;
32fe5131 1613 static int type_init = 0;
36ed4f51 1614 if (!type_init) {
1bd55598
RD
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624#if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626#else
1627 (getattrfunc)0, /* tp_getattr */
36ed4f51 1628#endif
1bd55598
RD
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
36ed4f51 1647#if PY_VERSION_HEX >= 0x02020000
1bd55598
RD
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
d55e5bfc 1668#endif
36ed4f51 1669#if PY_VERSION_HEX >= 0x02030000
1bd55598 1670 0, /* tp_del */
36ed4f51
RD
1671#endif
1672#ifdef COUNT_ALLOCS
1bd55598 1673 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1674#endif
1bd55598 1675 };
32fe5131 1676 pyswigobject_type = tmp;
1bd55598 1677 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51
RD
1678 type_init = 1;
1679 }
32fe5131 1680 return &pyswigobject_type;
36ed4f51
RD
1681}
1682
1683SWIGRUNTIME PyObject *
1bd55598 1684PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1685{
1bd55598
RD
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
32fe5131 1692 }
1bd55598 1693 return (PyObject *)sobj;
36ed4f51
RD
1694}
1695
1696/* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1bd55598 1703 swig_type_info *ty;
36ed4f51
RD
1704 size_t size;
1705} PySwigPacked;
1706
1707SWIGRUNTIME int
1bd55598 1708PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
36ed4f51
RD
1709{
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1bd55598 1716 fputs(v->ty->name,fp);
36ed4f51
RD
1717 fputs(">", fp);
1718 return 0;
1719}
1720
1721SWIGRUNTIME PyObject *
1722PySwigPacked_repr(PySwigPacked *v)
1723{
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1bd55598 1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1727 } else {
1bd55598 1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51
RD
1729 }
1730}
1731
1732SWIGRUNTIME PyObject *
1733PySwigPacked_str(PySwigPacked *v)
1734{
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1bd55598 1737 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1738 } else {
1bd55598 1739 return PyString_FromString(v->ty->name);
36ed4f51
RD
1740 }
1741}
1742
1743SWIGRUNTIME int
1744PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745{
1bd55598
RD
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
36ed4f51
RD
1750}
1751
1bd55598 1752SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
36ed4f51
RD
1753
1754SWIGRUNTIME PyTypeObject*
32fe5131 1755PySwigPacked_type(void) {
1bd55598
RD
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758}
1759
1760SWIGRUNTIMEINLINE int
1761PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764}
1765
1766SWIGRUNTIME void
1767PySwigPacked_dealloc(PyObject *v)
1768{
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774}
1775
1776SWIGRUNTIME PyTypeObject*
1777_PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810#if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
36ed4f51
RD
1831#endif
1832#if PY_VERSION_HEX >= 0x02030000
1bd55598 1833 0, /* tp_del */
36ed4f51
RD
1834#endif
1835#ifdef COUNT_ALLOCS
1bd55598 1836 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1837#endif
1bd55598 1838 };
32fe5131 1839 pyswigpacked_type = tmp;
1bd55598 1840 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1841 type_init = 1;
1842 }
32fe5131 1843 return &pyswigpacked_type;
36ed4f51
RD
1844}
1845
1846SWIGRUNTIME PyObject *
1bd55598 1847PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
36ed4f51 1848{
1bd55598
RD
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
36ed4f51 1851 void *pack = malloc(size);
32fe5131
RD
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1bd55598
RD
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
32fe5131 1860 }
36ed4f51 1861 }
1bd55598 1862 return (PyObject *) sobj;
36ed4f51
RD
1863}
1864
1bd55598 1865SWIGRUNTIME swig_type_info *
36ed4f51
RD
1866PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867{
1bd55598
RD
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
36ed4f51
RD
1876}
1877
36ed4f51 1878/* -----------------------------------------------------------------------------
1bd55598 1879 * pointers/data manipulation
36ed4f51
RD
1880 * ----------------------------------------------------------------------------- */
1881
1bd55598
RD
1882SWIGRUNTIMEINLINE PyObject *
1883_SWIG_This(void)
1884{
1885 return PyString_FromString("this");
1886}
36ed4f51 1887
1bd55598
RD
1888SWIGRUNTIME PyObject *
1889SWIG_This(void)
1890{
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893}
36ed4f51 1894
1bd55598 1895/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1896
1bd55598
RD
1897SWIGRUNTIME PySwigObject *
1898SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1899{
1bd55598
RD
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913#ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918#endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
36ed4f51 1922 } else {
1bd55598
RD
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
36ed4f51 1925 }
36ed4f51 1926 }
1bd55598
RD
1927 }
1928#else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936#endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
36ed4f51
RD
1943 }
1944}
1945
1bd55598
RD
1946/* Acquire a pointer value */
1947
1948SWIGRUNTIME int
1949SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
36ed4f51 1957 }
1bd55598 1958 return 0;
36ed4f51
RD
1959}
1960
1bd55598
RD
1961/* Convert a pointer value */
1962
36ed4f51 1963SWIGRUNTIME int
1bd55598
RD
1964SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
36ed4f51 1988 } else {
1bd55598
RD
1989 if (ptr) *ptr = vptr;
1990 break;
36ed4f51 1991 }
36ed4f51 1992 }
1bd55598
RD
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
36ed4f51
RD
2038 }
2039}
2040
1bd55598
RD
2041/* Convert a function ptr value */
2042
36ed4f51 2043SWIGRUNTIME int
1bd55598
RD
2044SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
36ed4f51 2047 } else {
1bd55598
RD
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
36ed4f51
RD
2065 }
2066}
2067
1bd55598 2068/* Convert a packed value value */
36ed4f51 2069
36ed4f51 2070SWIGRUNTIME int
1bd55598
RD
2071SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
36ed4f51 2080 }
1bd55598
RD
2081 return SWIG_OK;
2082}
36ed4f51 2083
1bd55598
RD
2084/* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
36ed4f51 2087
1bd55598
RD
2088/*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091*/
36ed4f51 2092
1bd55598
RD
2093SWIGRUNTIME PyObject*
2094SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095{
2096#if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
36ed4f51 2111 }
1bd55598
RD
2112#else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115#endif
36ed4f51 2116 }
1bd55598
RD
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
36ed4f51 2122 }
1bd55598
RD
2123 return inst;
2124#else
2125#if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132#else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
36ed4f51 2136 }
1bd55598
RD
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
36ed4f51 2143 }
1bd55598
RD
2144#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146#endif
2147#ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149#endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152#endif
2153#endif
36ed4f51
RD
2154}
2155
1bd55598
RD
2156SWIGRUNTIME void
2157SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158{
2159 PyObject *dict;
2160#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
36ed4f51 2171#endif
1bd55598
RD
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175}
36ed4f51 2176
1bd55598
RD
2177
2178SWIGINTERN PyObject *
2179SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
36ed4f51 2187 } else {
1bd55598 2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2189 }
1bd55598 2190 return SWIG_Py_Void();
36ed4f51 2191 }
1bd55598
RD
2192}
2193
2194/* Create a new pointer object */
36ed4f51 2195
36ed4f51 2196SWIGRUNTIME PyObject *
1bd55598 2197SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2198 if (!ptr) {
1bd55598
RD
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
36ed4f51 2209 }
36ed4f51 2210 }
1bd55598 2211 return robj;
36ed4f51 2212 }
36ed4f51
RD
2213}
2214
1bd55598
RD
2215/* Create a new packed object */
2216
2217SWIGRUNTIMEINLINE PyObject *
36ed4f51 2218SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
36ed4f51
RD
2220}
2221
2222/* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226#ifdef SWIG_LINK_RUNTIME
2227void *SWIG_ReturnGlobalTypeList(void *);
2228#endif
2229
32fe5131
RD
2230SWIGRUNTIME swig_module_info *
2231SWIG_Python_GetModule(void) {
36ed4f51
RD
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235#ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237#else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
36ed4f51 2244#endif
32fe5131
RD
2245 }
2246 return (swig_module_info *) type_pointer;
36ed4f51
RD
2247}
2248
32fe5131
RD
2249#if PY_MAJOR_VERSION < 2
2250/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 2251 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2252SWIGINTERN int
2253PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254{
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
1bd55598 2259 return SWIG_ERROR;
32fe5131
RD
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
1bd55598 2264 return SWIG_ERROR;
32fe5131
RD
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
1bd55598 2272 return SWIG_ERROR;
32fe5131
RD
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
1bd55598 2275 return SWIG_ERROR;
32fe5131 2276 Py_DECREF(o);
1bd55598 2277 return SWIG_OK;
36ed4f51 2278}
32fe5131 2279#endif
36ed4f51 2280
1bd55598
RD
2281SWIGRUNTIME void
2282SWIG_Python_DestroyModule(void *vptr)
2283{
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295}
2296
32fe5131
RD
2297SWIGRUNTIME void
2298SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
1bd55598 2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1bd55598
RD
2306 } else {
2307 Py_XDECREF(pointer);
32fe5131
RD
2308 }
2309}
36ed4f51 2310
1bd55598
RD
2311/* The python cached type query */
2312SWIGRUNTIME PyObject *
2313SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
36ed4f51 2316}
36ed4f51 2317
1bd55598
RD
2318SWIGRUNTIME swig_type_info *
2319SWIG_Python_TypeQuery(const char *type)
2320{
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338}
2339
2340/*
2341 For backward compatibility only
2342*/
2343#define SWIG_POINTER_EXCEPTION 0
2344#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347SWIGRUNTIME int
2348SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349{
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370}
2371
2372SWIGRUNTIME int
2373SWIG_Python_ArgFail(int argnum)
2374{
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383}
2384
2385SWIGRUNTIMEINLINE const char *
2386PySwigObject_GetDesc(PyObject *self)
2387{
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391}
2392
2393SWIGRUNTIME void
2394SWIG_Python_TypeError(const char *type, PyObject *obj)
2395{
2396 if (type) {
2397#if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406#endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427}
2428
2429
2430/* Convert a pointer value, signal an exception on a type mismatch */
2431SWIGRUNTIME void *
2432SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442}
2443
2444
2445#ifdef __cplusplus
2446#if 0
2447{ /* cc-mode */
2448#endif
2449}
2450#endif
2451
2452
2453
2454#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460/* -------- TYPES TABLE (BEGIN) -------- */
2461
2462#define SWIGTYPE_p_bool swig_types[0]
2463#define SWIGTYPE_p_char swig_types[1]
32fe5131
RD
2464#define SWIGTYPE_p_form_ops_t swig_types[2]
2465#define SWIGTYPE_p_int swig_types[3]
2466#define SWIGTYPE_p_long swig_types[4]
2467#define SWIGTYPE_p_unsigned_char swig_types[5]
2468#define SWIGTYPE_p_unsigned_int swig_types[6]
2469#define SWIGTYPE_p_unsigned_long swig_types[7]
2470#define SWIGTYPE_p_void swig_types[8]
2471#define SWIGTYPE_p_wxANIHandler swig_types[9]
2472#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2473#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2474#define SWIGTYPE_p_wxArrayInt swig_types[12]
2475#define SWIGTYPE_p_wxArrayString swig_types[13]
2476#define SWIGTYPE_p_wxBMPHandler swig_types[14]
2477#define SWIGTYPE_p_wxBitmap swig_types[15]
2478#define SWIGTYPE_p_wxBitmapButton swig_types[16]
2479#define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2480#define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2481#define SWIGTYPE_p_wxBoxSizer swig_types[19]
2482#define SWIGTYPE_p_wxButton swig_types[20]
2483#define SWIGTYPE_p_wxCURHandler swig_types[21]
2484#define SWIGTYPE_p_wxCheckBox swig_types[22]
2485#define SWIGTYPE_p_wxCheckListBox swig_types[23]
2486#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2487#define SWIGTYPE_p_wxChoice swig_types[25]
2488#define SWIGTYPE_p_wxChoicebook swig_types[26]
2489#define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2490#define SWIGTYPE_p_wxCloseEvent swig_types[28]
2491#define SWIGTYPE_p_wxColour swig_types[29]
2492#define SWIGTYPE_p_wxComboBox swig_types[30]
2493#define SWIGTYPE_p_wxCommandEvent swig_types[31]
2494#define SWIGTYPE_p_wxContextHelp swig_types[32]
2495#define SWIGTYPE_p_wxContextHelpButton swig_types[33]
2496#define SWIGTYPE_p_wxContextMenuEvent swig_types[34]
2497#define SWIGTYPE_p_wxControl swig_types[35]
2498#define SWIGTYPE_p_wxControlWithItems swig_types[36]
2499#define SWIGTYPE_p_wxCursor swig_types[37]
2500#define SWIGTYPE_p_wxDC swig_types[38]
2501#define SWIGTYPE_p_wxDateEvent swig_types[39]
2502#define SWIGTYPE_p_wxDatePickerCtrl swig_types[40]
2503#define SWIGTYPE_p_wxDateTime swig_types[41]
2504#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[42]
2505#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[43]
2506#define SWIGTYPE_p_wxDropFilesEvent swig_types[44]
2507#define SWIGTYPE_p_wxDuplexMode swig_types[45]
2508#define SWIGTYPE_p_wxEraseEvent swig_types[46]
2509#define SWIGTYPE_p_wxEvent swig_types[47]
2510#define SWIGTYPE_p_wxEvtHandler swig_types[48]
2511#define SWIGTYPE_p_wxFSFile swig_types[49]
2512#define SWIGTYPE_p_wxFileSystem swig_types[50]
2513#define SWIGTYPE_p_wxFlexGridSizer swig_types[51]
2514#define SWIGTYPE_p_wxFocusEvent swig_types[52]
2515#define SWIGTYPE_p_wxFont swig_types[53]
2516#define SWIGTYPE_p_wxGBSizerItem swig_types[54]
2517#define SWIGTYPE_p_wxGIFHandler swig_types[55]
2518#define SWIGTYPE_p_wxGauge swig_types[56]
2519#define SWIGTYPE_p_wxGenericDirCtrl swig_types[57]
2520#define SWIGTYPE_p_wxGenericDragImage swig_types[58]
2521#define SWIGTYPE_p_wxGridBagSizer swig_types[59]
2522#define SWIGTYPE_p_wxGridSizer swig_types[60]
2523#define SWIGTYPE_p_wxHelpEvent swig_types[61]
2524#define SWIGTYPE_p_wxHelpProvider swig_types[62]
2525#define SWIGTYPE_p_wxICOHandler swig_types[63]
2526#define SWIGTYPE_p_wxIcon swig_types[64]
2527#define SWIGTYPE_p_wxIconizeEvent swig_types[65]
2528#define SWIGTYPE_p_wxIdleEvent swig_types[66]
2529#define SWIGTYPE_p_wxImage swig_types[67]
2530#define SWIGTYPE_p_wxImageHandler swig_types[68]
2531#define SWIGTYPE_p_wxImageList swig_types[69]
2532#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[70]
2533#define SWIGTYPE_p_wxInitDialogEvent swig_types[71]
2534#define SWIGTYPE_p_wxItemContainer swig_types[72]
2535#define SWIGTYPE_p_wxJPEGHandler swig_types[73]
2536#define SWIGTYPE_p_wxKeyEvent swig_types[74]
2537#define SWIGTYPE_p_wxLayoutConstraints swig_types[75]
2538#define SWIGTYPE_p_wxListBox swig_types[76]
2539#define SWIGTYPE_p_wxListEvent swig_types[77]
2540#define SWIGTYPE_p_wxListItem swig_types[78]
2541#define SWIGTYPE_p_wxListItemAttr swig_types[79]
2542#define SWIGTYPE_p_wxListView swig_types[80]
2543#define SWIGTYPE_p_wxListbook swig_types[81]
2544#define SWIGTYPE_p_wxListbookEvent swig_types[82]
2545#define SWIGTYPE_p_wxMaximizeEvent swig_types[83]
2546#define SWIGTYPE_p_wxMemoryDC swig_types[84]
2547#define SWIGTYPE_p_wxMenu swig_types[85]
2548#define SWIGTYPE_p_wxMenuBar swig_types[86]
2549#define SWIGTYPE_p_wxMenuEvent swig_types[87]
2550#define SWIGTYPE_p_wxMenuItem swig_types[88]
2551#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[89]
2552#define SWIGTYPE_p_wxMouseEvent swig_types[90]
2553#define SWIGTYPE_p_wxMoveEvent swig_types[91]
2554#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92]
2555#define SWIGTYPE_p_wxNcPaintEvent swig_types[93]
2556#define SWIGTYPE_p_wxNotebook swig_types[94]
2557#define SWIGTYPE_p_wxNotebookEvent swig_types[95]
2558#define SWIGTYPE_p_wxNotifyEvent swig_types[96]
2559#define SWIGTYPE_p_wxObject swig_types[97]
2560#define SWIGTYPE_p_wxPCXHandler swig_types[98]
2561#define SWIGTYPE_p_wxPNGHandler swig_types[99]
2562#define SWIGTYPE_p_wxPNMHandler swig_types[100]
2563#define SWIGTYPE_p_wxPaintEvent swig_types[101]
2564#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[102]
2565#define SWIGTYPE_p_wxPaperSize swig_types[103]
2566#define SWIGTYPE_p_wxPoint swig_types[104]
2567#define SWIGTYPE_p_wxPyApp swig_types[105]
2568#define SWIGTYPE_p_wxPyCommandEvent swig_types[106]
2569#define SWIGTYPE_p_wxPyControl swig_types[107]
2570#define SWIGTYPE_p_wxPyEvent swig_types[108]
2571#define SWIGTYPE_p_wxPyImageHandler swig_types[109]
2572#define SWIGTYPE_p_wxPyListCtrl swig_types[110]
2573#define SWIGTYPE_p_wxPySizer swig_types[111]
2574#define SWIGTYPE_p_wxPyTreeCtrl swig_types[112]
2575#define SWIGTYPE_p_wxPyTreeItemData swig_types[113]
2576#define SWIGTYPE_p_wxPyValidator swig_types[114]
2577#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[115]
2578#define SWIGTYPE_p_wxRadioBox swig_types[116]
2579#define SWIGTYPE_p_wxRadioButton swig_types[117]
2580#define SWIGTYPE_p_wxRect swig_types[118]
2581#define SWIGTYPE_p_wxScrollBar swig_types[119]
2582#define SWIGTYPE_p_wxScrollEvent swig_types[120]
2583#define SWIGTYPE_p_wxScrollWinEvent swig_types[121]
2584#define SWIGTYPE_p_wxSetCursorEvent swig_types[122]
2585#define SWIGTYPE_p_wxShowEvent swig_types[123]
2586#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[124]
2587#define SWIGTYPE_p_wxSize swig_types[125]
2588#define SWIGTYPE_p_wxSizeEvent swig_types[126]
2589#define SWIGTYPE_p_wxSizer swig_types[127]
2590#define SWIGTYPE_p_wxSizerItem swig_types[128]
2591#define SWIGTYPE_p_wxSlider swig_types[129]
2592#define SWIGTYPE_p_wxSpinButton swig_types[130]
2593#define SWIGTYPE_p_wxSpinCtrl swig_types[131]
2594#define SWIGTYPE_p_wxSpinEvent swig_types[132]
2595#define SWIGTYPE_p_wxStaticBitmap swig_types[133]
2596#define SWIGTYPE_p_wxStaticBox swig_types[134]
2597#define SWIGTYPE_p_wxStaticBoxSizer swig_types[135]
2598#define SWIGTYPE_p_wxStaticLine swig_types[136]
2599#define SWIGTYPE_p_wxStaticText swig_types[137]
2600#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[138]
2601#define SWIGTYPE_p_wxString swig_types[139]
2602#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[140]
2603#define SWIGTYPE_p_wxTIFFHandler swig_types[141]
2604#define SWIGTYPE_p_wxTextAttr swig_types[142]
2605#define SWIGTYPE_p_wxTextCtrl swig_types[143]
2606#define SWIGTYPE_p_wxTextUrlEvent swig_types[144]
2607#define SWIGTYPE_p_wxToggleButton swig_types[145]
2608#define SWIGTYPE_p_wxToolBar swig_types[146]
2609#define SWIGTYPE_p_wxToolBarBase swig_types[147]
2610#define SWIGTYPE_p_wxToolBarToolBase swig_types[148]
7e08d4ef
RD
2611#define SWIGTYPE_p_wxToolbook swig_types[149]
2612#define SWIGTYPE_p_wxToolbookEvent swig_types[150]
2613#define SWIGTYPE_p_wxTreeCtrl swig_types[151]
2614#define SWIGTYPE_p_wxTreeEvent swig_types[152]
2615#define SWIGTYPE_p_wxTreeItemId swig_types[153]
2616#define SWIGTYPE_p_wxTreebook swig_types[154]
2617#define SWIGTYPE_p_wxTreebookEvent swig_types[155]
2618#define SWIGTYPE_p_wxUpdateUIEvent swig_types[156]
2619#define SWIGTYPE_p_wxValidator swig_types[157]
2620#define SWIGTYPE_p_wxVisualAttributes swig_types[158]
2621#define SWIGTYPE_p_wxWindow swig_types[159]
2622#define SWIGTYPE_p_wxWindowCreateEvent swig_types[160]
2623#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[161]
2624#define SWIGTYPE_p_wxXPMHandler swig_types[162]
1bd55598
RD
2625static swig_type_info *swig_types[164];
2626static swig_module_info swig_module = {swig_types, 163, 0, 0, 0, 0};
32fe5131
RD
2627#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2628#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
36ed4f51
RD
2629
2630/* -------- TYPES TABLE (END) -------- */
2631
1bd55598
RD
2632#if (PY_VERSION_HEX <= 0x02000000)
2633# if !defined(SWIG_PYTHON_CLASSIC)
2634# error "This python version requires to use swig with the '-classic' option"
2635# endif
2636#endif
2637#if (PY_VERSION_HEX <= 0x02020000)
2638# error "This python version requires to use swig with the '-nomodern' option"
2639#endif
2640#if (PY_VERSION_HEX <= 0x02020000)
2641# error "This python version requires to use swig with the '-nomodernargs' option"
2642#endif
2643#ifndef METH_O
2644# error "This python version requires to use swig with the '-nofastunpack' option"
2645#endif
36ed4f51
RD
2646
2647/*-----------------------------------------------
2648 @(target):= _controls_.so
2649 ------------------------------------------------*/
2650#define SWIG_init init_controls_
2651
2652#define SWIG_name "_controls_"
2653
1bd55598
RD
2654#define SWIGVERSION 0x010329
2655
2656
2657#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2658#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2659
2660
2661#include <stdexcept>
2662
2663
2664namespace swig {
2665 class PyObject_ptr {
2666 protected:
2667 PyObject *_obj;
2668
2669 public:
2670 PyObject_ptr() :_obj(0)
2671 {
2672 }
2673
2674 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2675 {
2676 Py_XINCREF(_obj);
2677 }
2678
2679 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2680 {
2681 if (initial_ref) Py_XINCREF(_obj);
2682 }
2683
2684 PyObject_ptr & operator=(const PyObject_ptr& item)
2685 {
2686 Py_XINCREF(item._obj);
2687 Py_XDECREF(_obj);
2688 _obj = item._obj;
2689 return *this;
2690 }
2691
2692 ~PyObject_ptr()
2693 {
2694 Py_XDECREF(_obj);
2695 }
2696
2697 operator PyObject *() const
2698 {
2699 return _obj;
2700 }
2701
2702 PyObject *operator->() const
2703 {
2704 return _obj;
2705 }
2706 };
2707}
2708
2709
2710namespace swig {
2711 struct PyObject_var : PyObject_ptr {
2712 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2713
2714 PyObject_var & operator = (PyObject* obj)
2715 {
2716 Py_XDECREF(_obj);
2717 _obj = obj;
2718 return *this;
2719 }
2720 };
2721}
2722
2723
36ed4f51
RD
2724#include "wx/wxPython/wxPython.h"
2725#include "wx/wxPython/pyclasses.h"
2726
2727 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2728 static const wxString wxPyEmptyString(wxEmptyString);
2729 static const wxString wxPyControlNameStr(wxControlNameStr);
2730
2731 const wxArrayString wxPyEmptyStringArray;
2732
2733 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2734
1bd55598 2735 #define SWIG_From_long PyInt_FromLong
36ed4f51
RD
2736
2737
1bd55598
RD
2738SWIGINTERNINLINE PyObject *
2739SWIG_From_int (int value)
2740{
2741 return SWIG_From_long (value);
2742}
36ed4f51
RD
2743
2744
1bd55598
RD
2745#include <limits.h>
2746#ifndef LLONG_MIN
2747# define LLONG_MIN LONG_LONG_MIN
2748#endif
2749#ifndef LLONG_MAX
2750# define LLONG_MAX LONG_LONG_MAX
2751#endif
2752#ifndef ULLONG_MAX
2753# define ULLONG_MAX ULONG_LONG_MAX
2754#endif
36ed4f51
RD
2755
2756
2757SWIGINTERN int
1bd55598 2758SWIG_AsVal_long (PyObject* obj, long* val)
36ed4f51
RD
2759{
2760 if (PyNumber_Check(obj)) {
2761 if (val) *val = PyInt_AsLong(obj);
1bd55598 2762 return SWIG_OK;
36ed4f51 2763 }
1bd55598 2764 return SWIG_TypeError;
36ed4f51
RD
2765}
2766
2767
36ed4f51 2768SWIGINTERN int
1bd55598
RD
2769SWIG_AsVal_int (PyObject * obj, int *val)
2770{
36ed4f51 2771 long v;
1bd55598
RD
2772 int res = SWIG_AsVal_long (obj, &v);
2773 if (SWIG_IsOK(res)) {
2774 if ((v < INT_MIN || v > INT_MAX)) {
2775 return SWIG_OverflowError;
36ed4f51 2776 } else {
1bd55598 2777 if (val) *val = static_cast< int >(v);
36ed4f51 2778 }
1bd55598
RD
2779 }
2780 return res;
d55e5bfc
RD
2781}
2782
c370783e 2783 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
d55e5bfc 2784
36ed4f51 2785SWIGINTERN int
1bd55598 2786SWIG_AsVal_bool (PyObject *obj, bool *val)
d55e5bfc 2787{
c370783e
RD
2788 if (obj == Py_True) {
2789 if (val) *val = true;
1bd55598
RD
2790 return SWIG_OK;
2791 } else if (obj == Py_False) {
c370783e 2792 if (val) *val = false;
1bd55598 2793 return SWIG_OK;
36ed4f51 2794 } else {
1bd55598
RD
2795 long v = 0;
2796 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2797 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2798 return res;
c370783e 2799 }
d55e5bfc
RD
2800}
2801
2802 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2803 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2804 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2805 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2806 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2807 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2808
2809#include <wx/checklst.h>
d55e5bfc
RD
2810
2811 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
1bd55598 2812SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2813 if (clientData)
2814 {
d55e5bfc
RD
2815 wxPyClientData* data = new wxPyClientData(clientData);
2816 self->Insert(item, pos, data);
e9d6f3a4
RD
2817 }
2818 else
d55e5bfc
RD
2819 self->Insert(item, pos);
2820 }
50f151d7
RD
2821
2822SWIGINTERN int
2823SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2824{
2825 long v = 0;
2826 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2827 return SWIG_TypeError;
2828 }
2829 else if (val)
2830 *val = (unsigned long)v;
2831 return SWIG_OK;
2832}
2833
2834
2835SWIGINTERN int
2836SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2837{
2838 unsigned long v;
2839 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2840 if (SWIG_IsOK(res)) {
2841 if ((v > UINT_MAX)) {
2842 return SWIG_OverflowError;
2843 } else {
2844 if (val) *val = static_cast< unsigned int >(v);
2845 }
2846 }
2847 return res;
2848}
2849
1bd55598 2850SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2851 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2852 wxArrayInt lst;
2853 self->GetSelections(lst);
2854 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2855 for (size_t i=0; i<lst.GetCount(); i++)
2856 {
7e08d4ef
RD
2857 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2858 }
e9d6f3a4 2859 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2860 return tup;
2861 }
1bd55598 2862SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2863 #ifdef __WXMSW__
2864 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2865 self->GetItem(item)->SetTextColour(c);
2866 #endif
2867 }
1bd55598 2868SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2869 #ifdef __WXMSW__
2870 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2871 self->GetItem(item)->SetBackgroundColour(c);
2872 #endif
2873 }
1bd55598 2874SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
d55e5bfc
RD
2875 #ifdef __WXMSW__
2876 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2877 self->GetItem(item)->SetFont(f);
2878 #endif
2879 }
2880 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
1bd55598 2881SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d55e5bfc
RD
2882 self->AppendText(text);
2883 }
1bd55598 2884SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d55e5bfc
RD
2885 return self->GetValue().Mid(from, to - from);
2886 }
2887 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2888 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2889 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2890 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2891 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2892
1c71765a
RD
2893SWIGINTERNINLINE PyObject*
2894SWIG_From_unsigned_SS_long (unsigned long value)
2895{
2896 return (value > LONG_MAX) ?
2897 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2898}
2899
2900
2901SWIGINTERNINLINE PyObject *
2902SWIG_From_size_t (size_t value)
2903{
2904 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2905}
2906
2907
50f151d7
RD
2908SWIGINTERNINLINE PyObject *
2909SWIG_From_unsigned_SS_int (unsigned int value)
2910{
2911 return SWIG_From_unsigned_SS_long (value);
2912}
2913
2914
d55e5bfc
RD
2915#include <wx/slider.h>
2916
2917
2918 static const wxString wxPySliderNameStr(wxSliderNameStr);
2919 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2920
2921#if !wxUSE_TOGGLEBTN
2922// implement dummy items for platforms that don't have this class
2923
2924#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2925
2926class wxToggleButton : public wxControl
2927{
2928public:
2929 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2930 const wxPoint&, const wxSize&, long,
2931 const wxValidator&, const wxString&)
2932 { wxPyRaiseNotImplemented(); }
2933
2934 wxToggleButton()
2935 { wxPyRaiseNotImplemented(); }
2936};
2937#endif
2938
51b83b37 2939 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
d55e5bfc 2940
7e08d4ef 2941SWIGINTERNINLINE int
1bd55598 2942SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2943{
7e08d4ef 2944 unsigned long v;
1bd55598
RD
2945 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2946 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2947 return res;
7e08d4ef 2948}
7e08d4ef 2949
d55e5bfc 2950 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
1bd55598 2951SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d55e5bfc
RD
2952 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2953 if (udata) {
2954 Py_INCREF(udata->m_obj);
2955 return udata->m_obj;
2956 } else {
2957 Py_INCREF(Py_None);
2958 return Py_None;
2959 }
2960 }
1bd55598 2961SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d55e5bfc
RD
2962 self->SetClientData(new wxPyUserData(clientData));
2963 }
1bd55598 2964SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
d55e5bfc
RD
2965 wxPyUserData* udata = NULL;
2966 if (clientData && clientData != Py_None)
2967 udata = new wxPyUserData(clientData);
2968 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2969 shortHelp, longHelp, udata);
2970 }
1bd55598 2971SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
d55e5bfc
RD
2972 wxPyUserData* udata = NULL;
2973 if (clientData && clientData != Py_None)
2974 udata = new wxPyUserData(clientData);
2975 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2976 shortHelp, longHelp, udata);
2977 }
1bd55598 2978SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d55e5bfc
RD
2979 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2980 if (udata) {
2981 Py_INCREF(udata->m_obj);
2982 return udata->m_obj;
2983 } else {
2984 Py_INCREF(Py_None);
2985 return Py_None;
2986 }
2987 }
1bd55598 2988SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d55e5bfc
RD
2989 self->SetToolClientData(id, new wxPyUserData(clientData));
2990 }
2991
2992#include <wx/listctrl.h>
2993
fef4c27a 2994 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
1bd55598 2995SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d55e5bfc
RD
2996 // Python aware sorting function for wxPyListCtrl
2997 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
2998 int retval = 0;
2999 PyObject* func = (PyObject*)funcPtr;
5a446332 3000 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3001
3002 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3003 PyObject* result = PyEval_CallObject(func, args);
3004 Py_DECREF(args);
3005 if (result) {
3006 retval = PyInt_AsLong(result);
3007 Py_DECREF(result);
3008 }
3009
3010 wxPyEndBlockThreads(blocked);
3011 return retval;
3012 }
3013
3014 // C++ Version of a Python aware class
3015class wxPyListCtrl : public wxListCtrl {
32fe5131 3016 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d55e5bfc
RD
3017public:
3018 wxPyListCtrl() : wxListCtrl() {}
3019 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3020 const wxPoint& pos,
3021 const wxSize& size,
3022 long style,
3023 const wxValidator& validator,
3024 const wxString& name) :
3025 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3026
3027 bool Create(wxWindow* parent, wxWindowID id,
3028 const wxPoint& pos,
3029 const wxSize& size,
3030 long style,
3031 const wxValidator& validator,
3032 const wxString& name) {
3033 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3034 }
3035
3036 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d55e5bfc
RD
3037 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3038
84f85550
RD
3039 // use the virtual version to avoid a confusing assert in the base class
3040 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3041 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3042
d55e5bfc
RD
3043 PYPRIVATE;
3044};
3045
3046IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3047
3048IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d55e5bfc 3049IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3050IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
7e08d4ef
RD
3051IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3052
d55e5bfc 3053
1bd55598 3054SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d55e5bfc
RD
3055 wxListItem item;
3056 item.SetMask( wxLIST_MASK_STATE |
3057 wxLIST_MASK_TEXT |
3058 wxLIST_MASK_IMAGE |
3059 wxLIST_MASK_DATA |
3060 wxLIST_SET_ITEM |
3061 wxLIST_MASK_WIDTH |
3062 wxLIST_MASK_FORMAT
3063 );
3064 if (self->GetColumn(col, item))
3065 return new wxListItem(item);
3066 else
3067 return NULL;
3068 }
1bd55598 3069SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d55e5bfc
RD
3070 wxListItem* info = new wxListItem;
3071 info->m_itemId = itemId;
3072 info->m_col = col;
3073 info->m_mask = 0xFFFF;
3074 self->GetItem(*info);
3075 return info;
3076 }
1bd55598 3077SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d55e5bfc
RD
3078 wxPoint pos;
3079 self->GetItemPosition(item, pos);
3080 return pos;
3081 }
1bd55598 3082SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d55e5bfc
RD
3083 wxRect rect;
3084 self->GetItemRect(item, rect, code);
3085 return rect;
3086 }
1bd55598 3087SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d55e5bfc 3088 if (!PyCallable_Check(func))
b411df4a 3089 return false;
d55e5bfc
RD
3090 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3091 }
1bd55598 3092SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d55e5bfc
RD
3093
3094
3095
3096 return (wxWindow*)self->m_mainWin;
3097
3098 }
3099
3100#include <wx/treectrl.h>
3101#include "wx/wxPython/pytree.h"
3102
3103 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
1bd55598
RD
3104SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3105SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3106SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
d55e5bfc
RD
3107 // C++ version of Python aware wxTreeCtrl
3108class wxPyTreeCtrl : public wxTreeCtrl {
32fe5131 3109 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d55e5bfc
RD
3110public:
3111 wxPyTreeCtrl() : wxTreeCtrl() {}
3112 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3113 const wxPoint& pos,
3114 const wxSize& size,
3115 long style,
3116 const wxValidator& validator,
3117 const wxString& name) :
3118 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3119
3120 bool Create(wxWindow *parent, wxWindowID id,
3121 const wxPoint& pos,
3122 const wxSize& size,
3123 long style,
3124 const wxValidator& validator,
3125 const wxString& name) {
3126 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3127 }
3128
3129
3130 int OnCompareItems(const wxTreeItemId& item1,
3131 const wxTreeItemId& item2) {
3132 int rval = 0;
3133 bool found;
5a446332 3134 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3135 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
b411df4a
RD
3136 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3137 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d55e5bfc
RD
3138 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3139 Py_DECREF(o1);
3140 Py_DECREF(o2);
3141 }
3142 wxPyEndBlockThreads(blocked);
3143 if (! found)
3144 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3145 return rval;
3146 }
3147 PYPRIVATE;
3148};
3149
3150IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3151
3152
1bd55598 3153SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3154 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3155 if (data == NULL) {
3156 data = new wxPyTreeItemData();
3157 data->SetId(item); // set the id
3158 self->SetItemData(item, data);
3159 }
3160 return data;
3161 }
1bd55598 3162SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3163 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3164 if (data == NULL) {
3165 data = new wxPyTreeItemData();
3166 data->SetId(item); // set the id
3167 self->SetItemData(item, data);
3168 }
3169 return data->GetData();
3170 }
1bd55598 3171SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d55e5bfc
RD
3172 data->SetId(item); // set the id
3173 self->SetItemData(item, data);
3174 }
1bd55598 3175SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d55e5bfc
RD
3176 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3177 if (data == NULL) {
3178 data = new wxPyTreeItemData(obj);
3179 data->SetId(item); // set the id
3180 self->SetItemData(item, data);
3181 } else
3182 data->SetData(obj);
3183 }
1bd55598 3184SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3185 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3186 PyObject* rval = PyList_New(0);
3187 wxArrayTreeItemIds array;
3188 size_t num, x;
3189 num = self->GetSelections(array);
3190 for (x=0; x < num; x++) {
3191 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
b411df4a 3192 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d55e5bfc 3193 PyList_Append(rval, item);
68e533f8 3194 Py_DECREF(item);
d55e5bfc
RD
3195 }
3196 wxPyEndBlockThreads(blocked);
3197 return rval;
3198 }
1bd55598 3199SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3200 void* cookie = 0;
3201 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3202 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3203 PyObject* tup = PyTuple_New(2);
b411df4a 3204 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3205 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3206 wxPyEndBlockThreads(blocked);
3207 return tup;
3208 }
1bd55598 3209SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
d55e5bfc 3210 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3211 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3212 PyObject* tup = PyTuple_New(2);
b411df4a 3213 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3214 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3215 wxPyEndBlockThreads(blocked);
3216 return tup;
3217 }
1bd55598 3218SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d55e5bfc
RD
3219 wxRect rect;
3220 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3221 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3222 wxRect* r = new wxRect(rect);
b411df4a 3223 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
d55e5bfc
RD
3224 wxPyEndBlockThreads(blocked);
3225 return val;
3226 }
3227 else
3228 RETURN_NONE();
3229 }
3230 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c370783e 3231
32fe5131 3232SWIGINTERNINLINE PyObject*
1bd55598 3233 SWIG_From_bool (bool value)
c370783e 3234{
1bd55598 3235 return PyBool_FromLong(value ? 1 : 0);
c370783e
RD
3236}
3237
d55e5bfc
RD
3238 // C++ version of Python aware wxControl
3239class wxPyControl : public wxControl
3240{
3241 DECLARE_DYNAMIC_CLASS(wxPyControl)
3242public:
3243 wxPyControl() : wxControl() {}
3244 wxPyControl(wxWindow* parent, const wxWindowID id,
3245 const wxPoint& pos = wxDefaultPosition,
3246 const wxSize& size = wxDefaultSize,
3247 long style = 0,
3248 const wxValidator& validator=wxDefaultValidator,
3249 const wxString& name = wxPyControlNameStr)
3250 : wxControl(parent, id, pos, size, style, validator, name) {}
3251
a5ee0656 3252 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
d55e5bfc 3253
976dbff5
RD
3254 bool DoEraseBackground(wxDC* dc) {
3255#ifdef __WXMSW__
3256 return wxWindow::DoEraseBackground(dc->GetHDC());
3257#else
3258 dc->SetBackground(wxBrush(GetBackgroundColour()));
3259 dc->Clear();
3260 return true;
3261#endif
3262 }
3263
d55e5bfc
RD
3264 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3265 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3266 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3267 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3268
3269 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3270 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3271 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3272
3273 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3274 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3275
3276 DEC_PYCALLBACK__(InitDialog);
3277 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3278 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3279 DEC_PYCALLBACK_BOOL_(Validate);
3280
3281 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3282 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3283 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3284
3285 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3286 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3287
a5ee0656 3288 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
a5ee0656 3289 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
d55e5bfc 3290
51b83b37
RD
3291 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3292
8d38bd1d
RD
3293 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3294
d55e5bfc
RD
3295 PYPRIVATE;
3296};
3297
3298IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3299
3300IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3301IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3302IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3303IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3304
3305IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3306IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3307IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3308
3309IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3310IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3311
3312IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3313IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3314IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3315IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3316
3317IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3318IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3319IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3320
3321IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3322IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3323
a5ee0656 3324IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
a5ee0656 3325IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d55e5bfc 3326
51b83b37 3327IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3328
3329IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3330
d55e5bfc
RD
3331
3332
1bd55598 3333SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
d55e5bfc
RD
3334
3335#include <wx/generic/dragimgg.h>
3336
53aa7709 3337 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
1bd55598 3338SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3339 wxDateTime rv;
3340 self->GetRange(&rv, NULL);
3341 return rv;
3342 }
1bd55598 3343SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3344 wxDateTime rv;
3345 self->GetRange(NULL, &rv);
3346 return rv;
3347 }
d55e5bfc
RD
3348#ifdef __cplusplus
3349extern "C" {
3350#endif
1bd55598
RD
3351SWIGINTERN int ButtonNameStr_set(PyObject *) {
3352 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3353 return 1;
d55e5bfc
RD
3354}
3355
3356
1bd55598
RD
3357SWIGINTERN PyObject *ButtonNameStr_get(void) {
3358 PyObject *pyobj = 0;
3359
3360 {
d55e5bfc 3361#if wxUSE_UNICODE
1bd55598 3362 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3363#else
1bd55598 3364 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3365#endif
1bd55598
RD
3366 }
3367 return pyobj;
3368}
3369
3370
3371SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3372 PyObject *resultobj = 0;
3373 wxWindow *arg1 = (wxWindow *) 0 ;
3374 int arg2 = (int) -1 ;
3375 wxString const &arg3_defvalue = wxPyEmptyString ;
3376 wxString *arg3 = (wxString *) &arg3_defvalue ;
3377 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3378 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3379 wxSize const &arg5_defvalue = wxDefaultSize ;
3380 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3381 long arg6 = (long) 0 ;
3382 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3383 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3384 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3385 wxString *arg8 = (wxString *) &arg8_defvalue ;
3386 wxButton *result = 0 ;
3387 void *argp1 = 0 ;
3388 int res1 = 0 ;
3389 int val2 ;
3390 int ecode2 = 0 ;
3391 bool temp3 = false ;
3392 wxPoint temp4 ;
3393 wxSize temp5 ;
3394 long val6 ;
3395 int ecode6 = 0 ;
3396 void *argp7 = 0 ;
3397 int res7 = 0 ;
3398 bool temp8 = false ;
3399 PyObject * obj0 = 0 ;
3400 PyObject * obj1 = 0 ;
3401 PyObject * obj2 = 0 ;
3402 PyObject * obj3 = 0 ;
3403 PyObject * obj4 = 0 ;
3404 PyObject * obj5 = 0 ;
3405 PyObject * obj6 = 0 ;
3406 PyObject * obj7 = 0 ;
3407 char * kwnames[] = {
3408 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3409 };
3410
3411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3413 if (!SWIG_IsOK(res1)) {
3414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3415 }
3416 arg1 = reinterpret_cast< wxWindow * >(argp1);
3417 if (obj1) {
3418 ecode2 = SWIG_AsVal_int(obj1, &val2);
3419 if (!SWIG_IsOK(ecode2)) {
3420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3421 }
3422 arg2 = static_cast< int >(val2);
3423 }
3424 if (obj2) {
d55e5bfc 3425 {
1bd55598
RD
3426 arg3 = wxString_in_helper(obj2);
3427 if (arg3 == NULL) SWIG_fail;
3428 temp3 = true;
d55e5bfc 3429 }
1bd55598
RD
3430 }
3431 if (obj3) {
d55e5bfc 3432 {
1bd55598
RD
3433 arg4 = &temp4;
3434 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3435 }
1bd55598
RD
3436 }
3437 if (obj4) {
d55e5bfc 3438 {
1bd55598
RD
3439 arg5 = &temp5;
3440 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3441 }
1bd55598
RD
3442 }
3443 if (obj5) {
3444 ecode6 = SWIG_AsVal_long(obj5, &val6);
3445 if (!SWIG_IsOK(ecode6)) {
3446 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3447 }
3448 arg6 = static_cast< long >(val6);
3449 }
3450 if (obj6) {
3451 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3452 if (!SWIG_IsOK(res7)) {
3453 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3454 }
1bd55598
RD
3455 if (!argp7) {
3456 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3457 }
1bd55598
RD
3458 arg7 = reinterpret_cast< wxValidator * >(argp7);
3459 }
3460 if (obj7) {
d55e5bfc 3461 {
1bd55598
RD
3462 arg8 = wxString_in_helper(obj7);
3463 if (arg8 == NULL) SWIG_fail;
3464 temp8 = true;
d55e5bfc 3465 }
1bd55598
RD
3466 }
3467 {
3468 if (!wxPyCheckForApp()) SWIG_fail;
3469 PyThreadState* __tstate = wxPyBeginAllowThreads();
3470 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3471 wxPyEndAllowThreads(__tstate);
3472 if (PyErr_Occurred()) SWIG_fail;
3473 }
3474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3475 {
3476 if (temp3)
3477 delete arg3;
3478 }
3479 {
3480 if (temp8)
3481 delete arg8;
3482 }
3483 return resultobj;
3484fail:
3485 {
3486 if (temp3)
3487 delete arg3;
3488 }
3489 {
3490 if (temp8)
3491 delete arg8;
3492 }
3493 return NULL;
d55e5bfc
RD
3494}
3495
3496
1bd55598
RD
3497SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3498 PyObject *resultobj = 0;
3499 wxButton *result = 0 ;
3500
3501 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3502 {
3503 if (!wxPyCheckForApp()) SWIG_fail;
3504 PyThreadState* __tstate = wxPyBeginAllowThreads();
3505 result = (wxButton *)new wxButton();
3506 wxPyEndAllowThreads(__tstate);
3507 if (PyErr_Occurred()) SWIG_fail;
3508 }
3509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3510 return resultobj;
3511fail:
3512 return NULL;
3513}
3514
3515
3516SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3517 PyObject *resultobj = 0;
3518 wxButton *arg1 = (wxButton *) 0 ;
3519 wxWindow *arg2 = (wxWindow *) 0 ;
3520 int arg3 = (int) -1 ;
3521 wxString const &arg4_defvalue = wxPyEmptyString ;
3522 wxString *arg4 = (wxString *) &arg4_defvalue ;
3523 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3524 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3525 wxSize const &arg6_defvalue = wxDefaultSize ;
3526 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3527 long arg7 = (long) 0 ;
3528 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3529 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3530 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3531 wxString *arg9 = (wxString *) &arg9_defvalue ;
3532 bool result;
3533 void *argp1 = 0 ;
3534 int res1 = 0 ;
3535 void *argp2 = 0 ;
3536 int res2 = 0 ;
3537 int val3 ;
3538 int ecode3 = 0 ;
3539 bool temp4 = false ;
3540 wxPoint temp5 ;
3541 wxSize temp6 ;
3542 long val7 ;
3543 int ecode7 = 0 ;
3544 void *argp8 = 0 ;
3545 int res8 = 0 ;
3546 bool temp9 = false ;
3547 PyObject * obj0 = 0 ;
3548 PyObject * obj1 = 0 ;
3549 PyObject * obj2 = 0 ;
3550 PyObject * obj3 = 0 ;
3551 PyObject * obj4 = 0 ;
3552 PyObject * obj5 = 0 ;
3553 PyObject * obj6 = 0 ;
3554 PyObject * obj7 = 0 ;
3555 PyObject * obj8 = 0 ;
3556 char * kwnames[] = {
3557 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3558 };
3559
3560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3562 if (!SWIG_IsOK(res1)) {
3563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3564 }
3565 arg1 = reinterpret_cast< wxButton * >(argp1);
3566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3567 if (!SWIG_IsOK(res2)) {
3568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3569 }
3570 arg2 = reinterpret_cast< wxWindow * >(argp2);
3571 if (obj2) {
3572 ecode3 = SWIG_AsVal_int(obj2, &val3);
3573 if (!SWIG_IsOK(ecode3)) {
3574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3575 }
3576 arg3 = static_cast< int >(val3);
3577 }
3578 if (obj3) {
d55e5bfc 3579 {
1bd55598
RD
3580 arg4 = wxString_in_helper(obj3);
3581 if (arg4 == NULL) SWIG_fail;
3582 temp4 = true;
d55e5bfc 3583 }
1bd55598
RD
3584 }
3585 if (obj4) {
d55e5bfc 3586 {
1bd55598
RD
3587 arg5 = &temp5;
3588 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3589 }
1bd55598
RD
3590 }
3591 if (obj5) {
d55e5bfc 3592 {
1bd55598
RD
3593 arg6 = &temp6;
3594 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 3595 }
1bd55598
RD
3596 }
3597 if (obj6) {
3598 ecode7 = SWIG_AsVal_long(obj6, &val7);
3599 if (!SWIG_IsOK(ecode7)) {
3600 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3601 }
3602 arg7 = static_cast< long >(val7);
3603 }
3604 if (obj7) {
3605 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3606 if (!SWIG_IsOK(res8)) {
3607 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3608 }
1bd55598
RD
3609 if (!argp8) {
3610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3611 }
1bd55598
RD
3612 arg8 = reinterpret_cast< wxValidator * >(argp8);
3613 }
3614 if (obj8) {
d55e5bfc 3615 {
1bd55598
RD
3616 arg9 = wxString_in_helper(obj8);
3617 if (arg9 == NULL) SWIG_fail;
3618 temp9 = true;
d55e5bfc 3619 }
1bd55598
RD
3620 }
3621 {
3622 PyThreadState* __tstate = wxPyBeginAllowThreads();
3623 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3624 wxPyEndAllowThreads(__tstate);
3625 if (PyErr_Occurred()) SWIG_fail;
3626 }
3627 {
3628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3629 }
3630 {
3631 if (temp4)
3632 delete arg4;
3633 }
3634 {
3635 if (temp9)
3636 delete arg9;
3637 }
3638 return resultobj;
3639fail:
3640 {
3641 if (temp4)
3642 delete arg4;
3643 }
3644 {
3645 if (temp9)
3646 delete arg9;
3647 }
3648 return NULL;
d55e5bfc
RD
3649}
3650
3651
1bd55598
RD
3652SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3653 PyObject *resultobj = 0;
3654 wxButton *arg1 = (wxButton *) 0 ;
3655 void *argp1 = 0 ;
3656 int res1 = 0 ;
3657 PyObject *swig_obj[1] ;
3658
3659 if (!args) SWIG_fail;
3660 swig_obj[0] = args;
3661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3662 if (!SWIG_IsOK(res1)) {
3663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3664 }
3665 arg1 = reinterpret_cast< wxButton * >(argp1);
3666 {
3667 PyThreadState* __tstate = wxPyBeginAllowThreads();
3668 (arg1)->SetDefault();
3669 wxPyEndAllowThreads(__tstate);
3670 if (PyErr_Occurred()) SWIG_fail;
3671 }
3672 resultobj = SWIG_Py_Void();
3673 return resultobj;
3674fail:
3675 return NULL;
d55e5bfc
RD
3676}
3677
3678
1bd55598
RD
3679SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3680 PyObject *resultobj = 0;
3681 wxSize result;
3682
3683 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3684 {
3685 PyThreadState* __tstate = wxPyBeginAllowThreads();
3686 result = wxButton::GetDefaultSize();
3687 wxPyEndAllowThreads(__tstate);
3688 if (PyErr_Occurred()) SWIG_fail;
3689 }
3690 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3691 return resultobj;
3692fail:
3693 return NULL;
3694}
3695
3696
3697SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3698 PyObject *resultobj = 0;
3699 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3700 SwigValueWrapper<wxVisualAttributes > result;
3701 int val1 ;
3702 int ecode1 = 0 ;
3703 PyObject * obj0 = 0 ;
3704 char * kwnames[] = {
3705 (char *) "variant", NULL
3706 };
3707
3708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3709 if (obj0) {
3710 ecode1 = SWIG_AsVal_int(obj0, &val1);
3711 if (!SWIG_IsOK(ecode1)) {
3712 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3713 }
3714 arg1 = static_cast< wxWindowVariant >(val1);
3715 }
3716 {
3717 if (!wxPyCheckForApp()) SWIG_fail;
3718 PyThreadState* __tstate = wxPyBeginAllowThreads();
3719 result = wxButton::GetClassDefaultAttributes(arg1);
3720 wxPyEndAllowThreads(__tstate);
3721 if (PyErr_Occurred()) SWIG_fail;
3722 }
3723 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3724 return resultobj;
3725fail:
3726 return NULL;
3727}
3728
3729
3730SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3731 PyObject *obj;
3732 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3733 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3734 return SWIG_Py_Void();
3735}
3736
3737SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3738 return SWIG_Python_InitShadowInstance(args);
3739}
3740
3741SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3742 PyObject *resultobj = 0;
3743 wxWindow *arg1 = (wxWindow *) 0 ;
3744 int arg2 = (int) -1 ;
3745 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3746 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3747 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3748 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3749 wxSize const &arg5_defvalue = wxDefaultSize ;
3750 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3751 long arg6 = (long) wxBU_AUTODRAW ;
3752 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3753 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3754 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3755 wxString *arg8 = (wxString *) &arg8_defvalue ;
3756 wxBitmapButton *result = 0 ;
3757 void *argp1 = 0 ;
3758 int res1 = 0 ;
3759 int val2 ;
3760 int ecode2 = 0 ;
3761 void *argp3 = 0 ;
3762 int res3 = 0 ;
3763 wxPoint temp4 ;
3764 wxSize temp5 ;
3765 long val6 ;
3766 int ecode6 = 0 ;
3767 void *argp7 = 0 ;
3768 int res7 = 0 ;
3769 bool temp8 = false ;
3770 PyObject * obj0 = 0 ;
3771 PyObject * obj1 = 0 ;
3772 PyObject * obj2 = 0 ;
3773 PyObject * obj3 = 0 ;
3774 PyObject * obj4 = 0 ;
3775 PyObject * obj5 = 0 ;
3776 PyObject * obj6 = 0 ;
3777 PyObject * obj7 = 0 ;
3778 char * kwnames[] = {
3779 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3780 };
3781
3782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3784 if (!SWIG_IsOK(res1)) {
3785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3786 }
3787 arg1 = reinterpret_cast< wxWindow * >(argp1);
3788 if (obj1) {
3789 ecode2 = SWIG_AsVal_int(obj1, &val2);
3790 if (!SWIG_IsOK(ecode2)) {
3791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3792 }
3793 arg2 = static_cast< int >(val2);
3794 }
3795 if (obj2) {
3796 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3797 if (!SWIG_IsOK(res3)) {
3798 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3799 }
3800 if (!argp3) {
3801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3802 }
3803 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3804 }
3805 if (obj3) {
d55e5bfc 3806 {
1bd55598
RD
3807 arg4 = &temp4;
3808 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3809 }
1bd55598
RD
3810 }
3811 if (obj4) {
d55e5bfc 3812 {
1bd55598
RD
3813 arg5 = &temp5;
3814 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3815 }
1bd55598
RD
3816 }
3817 if (obj5) {
3818 ecode6 = SWIG_AsVal_long(obj5, &val6);
3819 if (!SWIG_IsOK(ecode6)) {
3820 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3821 }
3822 arg6 = static_cast< long >(val6);
3823 }
3824 if (obj6) {
3825 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3826 if (!SWIG_IsOK(res7)) {
3827 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3828 }
1bd55598
RD
3829 if (!argp7) {
3830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3831 }
1bd55598
RD
3832 arg7 = reinterpret_cast< wxValidator * >(argp7);
3833 }
3834 if (obj7) {
f20a2e1f 3835 {
1bd55598
RD
3836 arg8 = wxString_in_helper(obj7);
3837 if (arg8 == NULL) SWIG_fail;
3838 temp8 = true;
f20a2e1f 3839 }
1bd55598
RD
3840 }
3841 {
3842 if (!wxPyCheckForApp()) SWIG_fail;
3843 PyThreadState* __tstate = wxPyBeginAllowThreads();
3844 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3845 wxPyEndAllowThreads(__tstate);
3846 if (PyErr_Occurred()) SWIG_fail;
3847 }
3848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3849 {
3850 if (temp8)
3851 delete arg8;
3852 }
3853 return resultobj;
3854fail:
3855 {
3856 if (temp8)
3857 delete arg8;
3858 }
3859 return NULL;
f20a2e1f
RD
3860}
3861
3862
1bd55598
RD
3863SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3864 PyObject *resultobj = 0;
3865 wxBitmapButton *result = 0 ;
3866
3867 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3868 {
3869 if (!wxPyCheckForApp()) SWIG_fail;
3870 PyThreadState* __tstate = wxPyBeginAllowThreads();
3871 result = (wxBitmapButton *)new wxBitmapButton();
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
3874 }
3875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3876 return resultobj;
3877fail:
3878 return NULL;
3879}
3880
3881
3882SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3883 PyObject *resultobj = 0;
3884 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3885 wxWindow *arg2 = (wxWindow *) 0 ;
3886 int arg3 = (int) -1 ;
3887 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3888 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3889 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3890 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3891 wxSize const &arg6_defvalue = wxDefaultSize ;
3892 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3893 long arg7 = (long) wxBU_AUTODRAW ;
3894 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3895 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3896 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3897 wxString *arg9 = (wxString *) &arg9_defvalue ;
3898 bool result;
3899 void *argp1 = 0 ;
3900 int res1 = 0 ;
3901 void *argp2 = 0 ;
3902 int res2 = 0 ;
3903 int val3 ;
3904 int ecode3 = 0 ;
3905 void *argp4 = 0 ;
3906 int res4 = 0 ;
3907 wxPoint temp5 ;
3908 wxSize temp6 ;
3909 long val7 ;
3910 int ecode7 = 0 ;
3911 void *argp8 = 0 ;
3912 int res8 = 0 ;
3913 bool temp9 = false ;
3914 PyObject * obj0 = 0 ;
3915 PyObject * obj1 = 0 ;
3916 PyObject * obj2 = 0 ;
3917 PyObject * obj3 = 0 ;
3918 PyObject * obj4 = 0 ;
3919 PyObject * obj5 = 0 ;
3920 PyObject * obj6 = 0 ;
3921 PyObject * obj7 = 0 ;
3922 PyObject * obj8 = 0 ;
3923 char * kwnames[] = {
3924 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3925 };
3926
3927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3929 if (!SWIG_IsOK(res1)) {
3930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3931 }
3932 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3933 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3934 if (!SWIG_IsOK(res2)) {
3935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3936 }
3937 arg2 = reinterpret_cast< wxWindow * >(argp2);
3938 if (obj2) {
3939 ecode3 = SWIG_AsVal_int(obj2, &val3);
3940 if (!SWIG_IsOK(ecode3)) {
3941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3942 }
3943 arg3 = static_cast< int >(val3);
3944 }
3945 if (obj3) {
3946 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3947 if (!SWIG_IsOK(res4)) {
3948 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3949 }
1bd55598
RD
3950 if (!argp4) {
3951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3952 }
1bd55598
RD
3953 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3954 }
3955 if (obj4) {
d55e5bfc 3956 {
1bd55598
RD
3957 arg5 = &temp5;
3958 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3959 }
1bd55598
RD
3960 }
3961 if (obj5) {
d55e5bfc 3962 {
1bd55598
RD
3963 arg6 = &temp6;
3964 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3965 }
3966 }
3967 if (obj6) {
3968 ecode7 = SWIG_AsVal_long(obj6, &val7);
3969 if (!SWIG_IsOK(ecode7)) {
3970 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3971 }
3972 arg7 = static_cast< long >(val7);
3973 }
3974 if (obj7) {
3975 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3976 if (!SWIG_IsOK(res8)) {
3977 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3978 }
3979 if (!argp8) {
3980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3981 }
1bd55598
RD
3982 arg8 = reinterpret_cast< wxValidator * >(argp8);
3983 }
3984 if (obj8) {
d55e5bfc 3985 {
1bd55598
RD
3986 arg9 = wxString_in_helper(obj8);
3987 if (arg9 == NULL) SWIG_fail;
3988 temp9 = true;
d55e5bfc 3989 }
1bd55598
RD
3990 }
3991 {
3992 PyThreadState* __tstate = wxPyBeginAllowThreads();
3993 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3994 wxPyEndAllowThreads(__tstate);
3995 if (PyErr_Occurred()) SWIG_fail;
3996 }
3997 {
3998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3999 }
4000 {
4001 if (temp9)
4002 delete arg9;
4003 }
4004 return resultobj;
4005fail:
4006 {
4007 if (temp9)
4008 delete arg9;
4009 }
4010 return NULL;
d55e5bfc
RD
4011}
4012
4013
1bd55598
RD
4014SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4015 PyObject *resultobj = 0;
4016 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4017 wxBitmap result;
4018 void *argp1 = 0 ;
4019 int res1 = 0 ;
4020 PyObject *swig_obj[1] ;
4021
4022 if (!args) SWIG_fail;
4023 swig_obj[0] = args;
4024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4025 if (!SWIG_IsOK(res1)) {
4026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4027 }
4028 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4029 {
4030 PyThreadState* __tstate = wxPyBeginAllowThreads();
4031 result = (arg1)->GetBitmapLabel();
4032 wxPyEndAllowThreads(__tstate);
4033 if (PyErr_Occurred()) SWIG_fail;
4034 }
4035 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4036 return resultobj;
4037fail:
4038 return NULL;
d55e5bfc
RD
4039}
4040
4041
1bd55598
RD
4042SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4043 PyObject *resultobj = 0;
4044 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4045 wxBitmap result;
4046 void *argp1 = 0 ;
4047 int res1 = 0 ;
4048 PyObject *swig_obj[1] ;
4049
4050 if (!args) SWIG_fail;
4051 swig_obj[0] = args;
4052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4053 if (!SWIG_IsOK(res1)) {
4054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4055 }
4056 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4057 {
4058 PyThreadState* __tstate = wxPyBeginAllowThreads();
4059 result = (arg1)->GetBitmapDisabled();
4060 wxPyEndAllowThreads(__tstate);
4061 if (PyErr_Occurred()) SWIG_fail;
4062 }
4063 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4064 return resultobj;
4065fail:
4066 return NULL;
d55e5bfc
RD
4067}
4068
4069
1bd55598
RD
4070SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4071 PyObject *resultobj = 0;
4072 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4073 wxBitmap result;
4074 void *argp1 = 0 ;
4075 int res1 = 0 ;
4076 PyObject *swig_obj[1] ;
4077
4078 if (!args) SWIG_fail;
4079 swig_obj[0] = args;
4080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4081 if (!SWIG_IsOK(res1)) {
4082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4083 }
4084 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4085 {
4086 PyThreadState* __tstate = wxPyBeginAllowThreads();
4087 result = (arg1)->GetBitmapFocus();
4088 wxPyEndAllowThreads(__tstate);
4089 if (PyErr_Occurred()) SWIG_fail;
4090 }
4091 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4092 return resultobj;
4093fail:
4094 return NULL;
d55e5bfc
RD
4095}
4096
4097
1bd55598
RD
4098SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4099 PyObject *resultobj = 0;
4100 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4101 wxBitmap result;
4102 void *argp1 = 0 ;
4103 int res1 = 0 ;
4104 PyObject *swig_obj[1] ;
4105
4106 if (!args) SWIG_fail;
4107 swig_obj[0] = args;
4108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4109 if (!SWIG_IsOK(res1)) {
4110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4111 }
4112 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4113 {
4114 PyThreadState* __tstate = wxPyBeginAllowThreads();
4115 result = (arg1)->GetBitmapSelected();
4116 wxPyEndAllowThreads(__tstate);
4117 if (PyErr_Occurred()) SWIG_fail;
4118 }
4119 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4120 return resultobj;
4121fail:
4122 return NULL;
d55e5bfc
RD
4123}
4124
4125
1bd55598
RD
4126SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4127 PyObject *resultobj = 0;
4128 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4129 wxBitmap result;
4130 void *argp1 = 0 ;
4131 int res1 = 0 ;
4132 PyObject *swig_obj[1] ;
4133
4134 if (!args) SWIG_fail;
4135 swig_obj[0] = args;
4136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4137 if (!SWIG_IsOK(res1)) {
4138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4139 }
4140 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4141 {
4142 PyThreadState* __tstate = wxPyBeginAllowThreads();
4143 result = (arg1)->GetBitmapHover();
4144 wxPyEndAllowThreads(__tstate);
4145 if (PyErr_Occurred()) SWIG_fail;
4146 }
4147 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4148 return resultobj;
4149fail:
4150 return NULL;
4151}
4152
4153
4154SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4155 PyObject *resultobj = 0;
4156 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4157 wxBitmap *arg2 = 0 ;
4158 void *argp1 = 0 ;
4159 int res1 = 0 ;
4160 void *argp2 = 0 ;
4161 int res2 = 0 ;
4162 PyObject * obj0 = 0 ;
4163 PyObject * obj1 = 0 ;
4164 char * kwnames[] = {
4165 (char *) "self",(char *) "bitmap", NULL
4166 };
4167
4168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4170 if (!SWIG_IsOK(res1)) {
4171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4172 }
4173 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4174 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4175 if (!SWIG_IsOK(res2)) {
4176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4177 }
4178 if (!argp2) {
4179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4180 }
4181 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4182 {
4183 PyThreadState* __tstate = wxPyBeginAllowThreads();
4184 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4185 wxPyEndAllowThreads(__tstate);
4186 if (PyErr_Occurred()) SWIG_fail;
4187 }
4188 resultobj = SWIG_Py_Void();
4189 return resultobj;
4190fail:
4191 return NULL;
4192}
4193
4194
4195SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4196 PyObject *resultobj = 0;
4197 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4198 wxBitmap *arg2 = 0 ;
4199 void *argp1 = 0 ;
4200 int res1 = 0 ;
4201 void *argp2 = 0 ;
4202 int res2 = 0 ;
4203 PyObject * obj0 = 0 ;
4204 PyObject * obj1 = 0 ;
4205 char * kwnames[] = {
4206 (char *) "self",(char *) "bitmap", NULL
4207 };
4208
4209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4211 if (!SWIG_IsOK(res1)) {
4212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4213 }
4214 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4215 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4216 if (!SWIG_IsOK(res2)) {
4217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4218 }
4219 if (!argp2) {
4220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4221 }
4222 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4223 {
4224 PyThreadState* __tstate = wxPyBeginAllowThreads();
4225 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4226 wxPyEndAllowThreads(__tstate);
4227 if (PyErr_Occurred()) SWIG_fail;
4228 }
4229 resultobj = SWIG_Py_Void();
4230 return resultobj;
4231fail:
4232 return NULL;
4233}
4234
4235
4236SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4237 PyObject *resultobj = 0;
4238 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4239 wxBitmap *arg2 = 0 ;
4240 void *argp1 = 0 ;
4241 int res1 = 0 ;
4242 void *argp2 = 0 ;
4243 int res2 = 0 ;
4244 PyObject * obj0 = 0 ;
4245 PyObject * obj1 = 0 ;
4246 char * kwnames[] = {
4247 (char *) "self",(char *) "bitmap", NULL
4248 };
4249
4250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4252 if (!SWIG_IsOK(res1)) {
4253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4254 }
4255 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4256 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4257 if (!SWIG_IsOK(res2)) {
4258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4259 }
4260 if (!argp2) {
4261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4262 }
4263 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4264 {
4265 PyThreadState* __tstate = wxPyBeginAllowThreads();
4266 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4267 wxPyEndAllowThreads(__tstate);
4268 if (PyErr_Occurred()) SWIG_fail;
4269 }
4270 resultobj = SWIG_Py_Void();
4271 return resultobj;
4272fail:
4273 return NULL;
4274}
4275
4276
4277SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4278 PyObject *resultobj = 0;
4279 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4280 wxBitmap *arg2 = 0 ;
4281 void *argp1 = 0 ;
4282 int res1 = 0 ;
4283 void *argp2 = 0 ;
4284 int res2 = 0 ;
4285 PyObject * obj0 = 0 ;
4286 PyObject * obj1 = 0 ;
4287 char * kwnames[] = {
4288 (char *) "self",(char *) "bitmap", NULL
4289 };
4290
4291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4293 if (!SWIG_IsOK(res1)) {
4294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4295 }
4296 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4297 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4298 if (!SWIG_IsOK(res2)) {
4299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4300 }
4301 if (!argp2) {
4302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4303 }
4304 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4305 {
4306 PyThreadState* __tstate = wxPyBeginAllowThreads();
4307 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4308 wxPyEndAllowThreads(__tstate);
4309 if (PyErr_Occurred()) SWIG_fail;
4310 }
4311 resultobj = SWIG_Py_Void();
4312 return resultobj;
4313fail:
4314 return NULL;
4315}
4316
4317
4318SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4319 PyObject *resultobj = 0;
4320 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4321 wxBitmap *arg2 = 0 ;
4322 void *argp1 = 0 ;
4323 int res1 = 0 ;
4324 void *argp2 = 0 ;
4325 int res2 = 0 ;
4326 PyObject * obj0 = 0 ;
4327 PyObject * obj1 = 0 ;
4328 char * kwnames[] = {
4329 (char *) "self",(char *) "hover", NULL
4330 };
4331
4332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4334 if (!SWIG_IsOK(res1)) {
4335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4336 }
4337 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4338 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4339 if (!SWIG_IsOK(res2)) {
4340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4341 }
4342 if (!argp2) {
4343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4344 }
4345 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4346 {
4347 PyThreadState* __tstate = wxPyBeginAllowThreads();
4348 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4349 wxPyEndAllowThreads(__tstate);
4350 if (PyErr_Occurred()) SWIG_fail;
4351 }
4352 resultobj = SWIG_Py_Void();
4353 return resultobj;
4354fail:
4355 return NULL;
4356}
4357
4358
4359SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4360 PyObject *resultobj = 0;
4361 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4362 int arg2 ;
4363 int arg3 ;
4364 void *argp1 = 0 ;
4365 int res1 = 0 ;
4366 int val2 ;
4367 int ecode2 = 0 ;
4368 int val3 ;
4369 int ecode3 = 0 ;
4370 PyObject * obj0 = 0 ;
4371 PyObject * obj1 = 0 ;
4372 PyObject * obj2 = 0 ;
4373 char * kwnames[] = {
4374 (char *) "self",(char *) "x",(char *) "y", NULL
4375 };
4376
4377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4379 if (!SWIG_IsOK(res1)) {
4380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4381 }
4382 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4383 ecode2 = SWIG_AsVal_int(obj1, &val2);
4384 if (!SWIG_IsOK(ecode2)) {
4385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4386 }
4387 arg2 = static_cast< int >(val2);
4388 ecode3 = SWIG_AsVal_int(obj2, &val3);
4389 if (!SWIG_IsOK(ecode3)) {
4390 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4391 }
4392 arg3 = static_cast< int >(val3);
4393 {
4394 PyThreadState* __tstate = wxPyBeginAllowThreads();
4395 (arg1)->SetMargins(arg2,arg3);
4396 wxPyEndAllowThreads(__tstate);
4397 if (PyErr_Occurred()) SWIG_fail;
4398 }
4399 resultobj = SWIG_Py_Void();
4400 return resultobj;
4401fail:
4402 return NULL;
d55e5bfc
RD
4403}
4404
4405
1bd55598
RD
4406SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4407 PyObject *resultobj = 0;
4408 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4409 int result;
4410 void *argp1 = 0 ;
4411 int res1 = 0 ;
4412 PyObject *swig_obj[1] ;
4413
4414 if (!args) SWIG_fail;
4415 swig_obj[0] = args;
4416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4417 if (!SWIG_IsOK(res1)) {
4418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4419 }
4420 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4421 {
4422 PyThreadState* __tstate = wxPyBeginAllowThreads();
4423 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4424 wxPyEndAllowThreads(__tstate);
4425 if (PyErr_Occurred()) SWIG_fail;
4426 }
4427 resultobj = SWIG_From_int(static_cast< int >(result));
4428 return resultobj;
4429fail:
4430 return NULL;
d55e5bfc
RD
4431}
4432
4433
1bd55598
RD
4434SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4435 PyObject *resultobj = 0;
4436 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4437 int result;
4438 void *argp1 = 0 ;
4439 int res1 = 0 ;
4440 PyObject *swig_obj[1] ;
4441
4442 if (!args) SWIG_fail;
4443 swig_obj[0] = args;
4444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4445 if (!SWIG_IsOK(res1)) {
4446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4447 }
4448 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4449 {
4450 PyThreadState* __tstate = wxPyBeginAllowThreads();
4451 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4452 wxPyEndAllowThreads(__tstate);
4453 if (PyErr_Occurred()) SWIG_fail;
4454 }
4455 resultobj = SWIG_From_int(static_cast< int >(result));
4456 return resultobj;
4457fail:
4458 return NULL;
b1fcee84
RD
4459}
4460
4461
1bd55598
RD
4462SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4463 PyObject *obj;
4464 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4465 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4466 return SWIG_Py_Void();
d55e5bfc
RD
4467}
4468
1bd55598
RD
4469SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4470 return SWIG_Python_InitShadowInstance(args);
4471}
d55e5bfc 4472
1bd55598
RD
4473SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4474 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4475 return 1;
d55e5bfc
RD
4476}
4477
4478
1bd55598
RD
4479SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4480 PyObject *pyobj = 0;
4481
4482 {
4483#if wxUSE_UNICODE
4484 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4485#else
4486 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4487#endif
4488 }
4489 return pyobj;
4490}
4491
4492
4493SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4494 PyObject *resultobj = 0;
4495 wxWindow *arg1 = (wxWindow *) 0 ;
4496 int arg2 = (int) -1 ;
4497 wxString const &arg3_defvalue = wxPyEmptyString ;
4498 wxString *arg3 = (wxString *) &arg3_defvalue ;
4499 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4500 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4501 wxSize const &arg5_defvalue = wxDefaultSize ;
4502 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4503 long arg6 = (long) 0 ;
4504 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4505 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4506 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4507 wxString *arg8 = (wxString *) &arg8_defvalue ;
4508 wxCheckBox *result = 0 ;
4509 void *argp1 = 0 ;
4510 int res1 = 0 ;
4511 int val2 ;
4512 int ecode2 = 0 ;
4513 bool temp3 = false ;
4514 wxPoint temp4 ;
4515 wxSize temp5 ;
4516 long val6 ;
4517 int ecode6 = 0 ;
4518 void *argp7 = 0 ;
4519 int res7 = 0 ;
4520 bool temp8 = false ;
4521 PyObject * obj0 = 0 ;
4522 PyObject * obj1 = 0 ;
4523 PyObject * obj2 = 0 ;
4524 PyObject * obj3 = 0 ;
4525 PyObject * obj4 = 0 ;
4526 PyObject * obj5 = 0 ;
4527 PyObject * obj6 = 0 ;
4528 PyObject * obj7 = 0 ;
4529 char * kwnames[] = {
4530 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4531 };
4532
4533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4535 if (!SWIG_IsOK(res1)) {
4536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4537 }
4538 arg1 = reinterpret_cast< wxWindow * >(argp1);
4539 if (obj1) {
4540 ecode2 = SWIG_AsVal_int(obj1, &val2);
4541 if (!SWIG_IsOK(ecode2)) {
4542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4543 }
4544 arg2 = static_cast< int >(val2);
4545 }
4546 if (obj2) {
d55e5bfc 4547 {
1bd55598
RD
4548 arg3 = wxString_in_helper(obj2);
4549 if (arg3 == NULL) SWIG_fail;
4550 temp3 = true;
d55e5bfc 4551 }
1bd55598
RD
4552 }
4553 if (obj3) {
4554 {
4555 arg4 = &temp4;
4556 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 4557 }
1bd55598
RD
4558 }
4559 if (obj4) {
d55e5bfc 4560 {
1bd55598
RD
4561 arg5 = &temp5;
4562 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 4563 }
1bd55598
RD
4564 }
4565 if (obj5) {
4566 ecode6 = SWIG_AsVal_long(obj5, &val6);
4567 if (!SWIG_IsOK(ecode6)) {
4568 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4569 }
4570 arg6 = static_cast< long >(val6);
4571 }
4572 if (obj6) {
4573 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4574 if (!SWIG_IsOK(res7)) {
4575 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4576 }
1bd55598
RD
4577 if (!argp7) {
4578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4579 }
4580 arg7 = reinterpret_cast< wxValidator * >(argp7);
4581 }
4582 if (obj7) {
b1fcee84 4583 {
1bd55598
RD
4584 arg8 = wxString_in_helper(obj7);
4585 if (arg8 == NULL) SWIG_fail;
4586 temp8 = true;
b1fcee84 4587 }
1bd55598
RD
4588 }
4589 {
4590 if (!wxPyCheckForApp()) SWIG_fail;
4591 PyThreadState* __tstate = wxPyBeginAllowThreads();
4592 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4593 wxPyEndAllowThreads(__tstate);
4594 if (PyErr_Occurred()) SWIG_fail;
4595 }
4596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4597 {
4598 if (temp3)
4599 delete arg3;
4600 }
4601 {
4602 if (temp8)
4603 delete arg8;
4604 }
4605 return resultobj;
4606fail:
4607 {
4608 if (temp3)
4609 delete arg3;
4610 }
4611 {
4612 if (temp8)
4613 delete arg8;
4614 }
4615 return NULL;
b1fcee84
RD
4616}
4617
4618
1bd55598
RD
4619SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4620 PyObject *resultobj = 0;
4621 wxCheckBox *result = 0 ;
4622
4623 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4624 {
4625 if (!wxPyCheckForApp()) SWIG_fail;
4626 PyThreadState* __tstate = wxPyBeginAllowThreads();
4627 result = (wxCheckBox *)new wxCheckBox();
4628 wxPyEndAllowThreads(__tstate);
4629 if (PyErr_Occurred()) SWIG_fail;
4630 }
4631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4632 return resultobj;
4633fail:
4634 return NULL;
4635}
4636
4637
4638SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4639 PyObject *resultobj = 0;
4640 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4641 wxWindow *arg2 = (wxWindow *) 0 ;
4642 int arg3 = (int) -1 ;
4643 wxString const &arg4_defvalue = wxPyEmptyString ;
4644 wxString *arg4 = (wxString *) &arg4_defvalue ;
4645 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4646 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4647 wxSize const &arg6_defvalue = wxDefaultSize ;
4648 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4649 long arg7 = (long) 0 ;
4650 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4651 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4652 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4653 wxString *arg9 = (wxString *) &arg9_defvalue ;
4654 bool result;
4655 void *argp1 = 0 ;
4656 int res1 = 0 ;
4657 void *argp2 = 0 ;
4658 int res2 = 0 ;
4659 int val3 ;
4660 int ecode3 = 0 ;
4661 bool temp4 = false ;
4662 wxPoint temp5 ;
4663 wxSize temp6 ;
4664 long val7 ;
4665 int ecode7 = 0 ;
4666 void *argp8 = 0 ;
4667 int res8 = 0 ;
4668 bool temp9 = false ;
4669 PyObject * obj0 = 0 ;
4670 PyObject * obj1 = 0 ;
4671 PyObject * obj2 = 0 ;
4672 PyObject * obj3 = 0 ;
4673 PyObject * obj4 = 0 ;
4674 PyObject * obj5 = 0 ;
4675 PyObject * obj6 = 0 ;
4676 PyObject * obj7 = 0 ;
4677 PyObject * obj8 = 0 ;
4678 char * kwnames[] = {
4679 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4680 };
4681
4682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4684 if (!SWIG_IsOK(res1)) {
4685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4686 }
4687 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4688 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4689 if (!SWIG_IsOK(res2)) {
4690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4691 }
4692 arg2 = reinterpret_cast< wxWindow * >(argp2);
4693 if (obj2) {
4694 ecode3 = SWIG_AsVal_int(obj2, &val3);
4695 if (!SWIG_IsOK(ecode3)) {
4696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4697 }
4698 arg3 = static_cast< int >(val3);
4699 }
4700 if (obj3) {
36ed4f51 4701 {
1bd55598
RD
4702 arg4 = wxString_in_helper(obj3);
4703 if (arg4 == NULL) SWIG_fail;
4704 temp4 = true;
36ed4f51 4705 }
1bd55598
RD
4706 }
4707 if (obj4) {
36ed4f51 4708 {
1bd55598
RD
4709 arg5 = &temp5;
4710 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 4711 }
1bd55598
RD
4712 }
4713 if (obj5) {
d55e5bfc 4714 {
1bd55598
RD
4715 arg6 = &temp6;
4716 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 4717 }
1bd55598
RD
4718 }
4719 if (obj6) {
4720 ecode7 = SWIG_AsVal_long(obj6, &val7);
4721 if (!SWIG_IsOK(ecode7)) {
4722 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4723 }
4724 arg7 = static_cast< long >(val7);
4725 }
4726 if (obj7) {
4727 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4728 if (!SWIG_IsOK(res8)) {
4729 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4730 }
1bd55598
RD
4731 if (!argp8) {
4732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4733 }
4734 arg8 = reinterpret_cast< wxValidator * >(argp8);
4735 }
4736 if (obj8) {
36ed4f51 4737 {
1bd55598
RD
4738 arg9 = wxString_in_helper(obj8);
4739 if (arg9 == NULL) SWIG_fail;
4740 temp9 = true;
36ed4f51 4741 }
1bd55598
RD
4742 }
4743 {
4744 PyThreadState* __tstate = wxPyBeginAllowThreads();
4745 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4746 wxPyEndAllowThreads(__tstate);
4747 if (PyErr_Occurred()) SWIG_fail;
4748 }
4749 {
4750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4751 }
4752 {
4753 if (temp4)
4754 delete arg4;
4755 }
4756 {
4757 if (temp9)
4758 delete arg9;
4759 }
4760 return resultobj;
4761fail:
4762 {
4763 if (temp4)
4764 delete arg4;
4765 }
4766 {
4767 if (temp9)
4768 delete arg9;
4769 }
4770 return NULL;
d55e5bfc
RD
4771}
4772
4773
1bd55598
RD
4774SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4775 PyObject *resultobj = 0;
4776 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4777 bool result;
4778 void *argp1 = 0 ;
4779 int res1 = 0 ;
4780 PyObject *swig_obj[1] ;
4781
4782 if (!args) SWIG_fail;
4783 swig_obj[0] = args;
4784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4785 if (!SWIG_IsOK(res1)) {
4786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4787 }
4788 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4789 {
4790 PyThreadState* __tstate = wxPyBeginAllowThreads();
4791 result = (bool)(arg1)->GetValue();
4792 wxPyEndAllowThreads(__tstate);
4793 if (PyErr_Occurred()) SWIG_fail;
4794 }
4795 {
4796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4797 }
4798 return resultobj;
4799fail:
4800 return NULL;
d55e5bfc
RD
4801}
4802
4803
1bd55598
RD
4804SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4805 PyObject *resultobj = 0;
4806 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4807 bool result;
4808 void *argp1 = 0 ;
4809 int res1 = 0 ;
4810 PyObject *swig_obj[1] ;
4811
4812 if (!args) SWIG_fail;
4813 swig_obj[0] = args;
4814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4815 if (!SWIG_IsOK(res1)) {
4816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4817 }
4818 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4819 {
4820 PyThreadState* __tstate = wxPyBeginAllowThreads();
4821 result = (bool)(arg1)->IsChecked();
4822 wxPyEndAllowThreads(__tstate);
4823 if (PyErr_Occurred()) SWIG_fail;
4824 }
4825 {
4826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4827 }
4828 return resultobj;
4829fail:
4830 return NULL;
4831}
4832
4833
4834SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4835 PyObject *resultobj = 0;
4836 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4837 bool arg2 ;
4838 void *argp1 = 0 ;
4839 int res1 = 0 ;
4840 bool val2 ;
4841 int ecode2 = 0 ;
4842 PyObject * obj0 = 0 ;
4843 PyObject * obj1 = 0 ;
4844 char * kwnames[] = {
4845 (char *) "self",(char *) "state", NULL
4846 };
4847
4848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4850 if (!SWIG_IsOK(res1)) {
4851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4852 }
4853 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4854 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4855 if (!SWIG_IsOK(ecode2)) {
4856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4857 }
4858 arg2 = static_cast< bool >(val2);
4859 {
4860 PyThreadState* __tstate = wxPyBeginAllowThreads();
4861 (arg1)->SetValue(arg2);
4862 wxPyEndAllowThreads(__tstate);
4863 if (PyErr_Occurred()) SWIG_fail;
4864 }
4865 resultobj = SWIG_Py_Void();
4866 return resultobj;
4867fail:
4868 return NULL;
d55e5bfc 4869}
1bd55598
RD
4870
4871
4872SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4873 PyObject *resultobj = 0;
4874 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4875 wxCheckBoxState result;
4876 void *argp1 = 0 ;
4877 int res1 = 0 ;
4878 PyObject *swig_obj[1] ;
4879
4880 if (!args) SWIG_fail;
4881 swig_obj[0] = args;
4882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4883 if (!SWIG_IsOK(res1)) {
4884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4885 }
4886 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4887 {
4888 PyThreadState* __tstate = wxPyBeginAllowThreads();
4889 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4890 wxPyEndAllowThreads(__tstate);
4891 if (PyErr_Occurred()) SWIG_fail;
4892 }
4893 resultobj = SWIG_From_int(static_cast< int >(result));
4894 return resultobj;
4895fail:
4896 return NULL;
4897}
4898
4899
4900SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4901 PyObject *resultobj = 0;
4902 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4903 wxCheckBoxState arg2 ;
4904 void *argp1 = 0 ;
4905 int res1 = 0 ;
4906 int val2 ;
4907 int ecode2 = 0 ;
4908 PyObject * obj0 = 0 ;
4909 PyObject * obj1 = 0 ;
4910 char * kwnames[] = {
4911 (char *) "self",(char *) "state", NULL
4912 };
4913
4914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4916 if (!SWIG_IsOK(res1)) {
4917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4918 }
4919 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4920 ecode2 = SWIG_AsVal_int(obj1, &val2);
4921 if (!SWIG_IsOK(ecode2)) {
4922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4923 }
4924 arg2 = static_cast< wxCheckBoxState >(val2);
4925 {
4926 PyThreadState* __tstate = wxPyBeginAllowThreads();
4927 (arg1)->Set3StateValue(arg2);
4928 wxPyEndAllowThreads(__tstate);
4929 if (PyErr_Occurred()) SWIG_fail;
4930 }
4931 resultobj = SWIG_Py_Void();
4932 return resultobj;
4933fail:
4934 return NULL;
d55e5bfc
RD
4935}
4936
4937
1bd55598
RD
4938SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4939 PyObject *resultobj = 0;
4940 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4941 bool result;
4942 void *argp1 = 0 ;
4943 int res1 = 0 ;
4944 PyObject *swig_obj[1] ;
4945
4946 if (!args) SWIG_fail;
4947 swig_obj[0] = args;
4948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4949 if (!SWIG_IsOK(res1)) {
4950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4951 }
4952 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4953 {
4954 PyThreadState* __tstate = wxPyBeginAllowThreads();
4955 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4956 wxPyEndAllowThreads(__tstate);
4957 if (PyErr_Occurred()) SWIG_fail;
4958 }
4959 {
4960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4961 }
4962 return resultobj;
4963fail:
4964 return NULL;
d55e5bfc
RD
4965}
4966
4967
1bd55598
RD
4968SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4969 PyObject *resultobj = 0;
4970 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4971 bool result;
4972 void *argp1 = 0 ;
4973 int res1 = 0 ;
4974 PyObject *swig_obj[1] ;
4975
4976 if (!args) SWIG_fail;
4977 swig_obj[0] = args;
4978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4979 if (!SWIG_IsOK(res1)) {
4980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4981 }
4982 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4983 {
4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
4985 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
4986 wxPyEndAllowThreads(__tstate);
4987 if (PyErr_Occurred()) SWIG_fail;
4988 }
4989 {
4990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4991 }
4992 return resultobj;
4993fail:
4994 return NULL;
d55e5bfc
RD
4995}
4996
4997
1bd55598
RD
4998SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4999 PyObject *resultobj = 0;
5000 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5001 SwigValueWrapper<wxVisualAttributes > result;
5002 int val1 ;
5003 int ecode1 = 0 ;
5004 PyObject * obj0 = 0 ;
5005 char * kwnames[] = {
5006 (char *) "variant", NULL
5007 };
5008
5009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5010 if (obj0) {
5011 ecode1 = SWIG_AsVal_int(obj0, &val1);
5012 if (!SWIG_IsOK(ecode1)) {
5013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5014 }
5015 arg1 = static_cast< wxWindowVariant >(val1);
5016 }
5017 {
5018 if (!wxPyCheckForApp()) SWIG_fail;
5019 PyThreadState* __tstate = wxPyBeginAllowThreads();
5020 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5021 wxPyEndAllowThreads(__tstate);
5022 if (PyErr_Occurred()) SWIG_fail;
5023 }
5024 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5025 return resultobj;
5026fail:
5027 return NULL;
d55e5bfc
RD
5028}
5029
5030
1bd55598
RD
5031SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5032 PyObject *obj;
5033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5034 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5035 return SWIG_Py_Void();
d55e5bfc
RD
5036}
5037
1bd55598
RD
5038SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5039 return SWIG_Python_InitShadowInstance(args);
5040}
d55e5bfc 5041
1bd55598
RD
5042SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5043 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5044 return 1;
d55e5bfc
RD
5045}
5046
5047
1bd55598
RD
5048SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5049 PyObject *pyobj = 0;
5050
5051 {
5052#if wxUSE_UNICODE
5053 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5054#else
5055 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5056#endif
5057 }
5058 return pyobj;
5059}
5060
5061
5062SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5063 PyObject *resultobj = 0;
5064 wxWindow *arg1 = (wxWindow *) 0 ;
5065 int arg2 = (int) -1 ;
5066 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5067 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5068 wxSize const &arg4_defvalue = wxDefaultSize ;
5069 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5070 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5071 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5072 long arg6 = (long) 0 ;
5073 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5074 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5075 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5076 wxString *arg8 = (wxString *) &arg8_defvalue ;
5077 wxChoice *result = 0 ;
5078 void *argp1 = 0 ;
5079 int res1 = 0 ;
5080 int val2 ;
5081 int ecode2 = 0 ;
5082 wxPoint temp3 ;
5083 wxSize temp4 ;
5084 bool temp5 = false ;
5085 long val6 ;
5086 int ecode6 = 0 ;
5087 void *argp7 = 0 ;
5088 int res7 = 0 ;
5089 bool temp8 = false ;
5090 PyObject * obj0 = 0 ;
5091 PyObject * obj1 = 0 ;
5092 PyObject * obj2 = 0 ;
5093 PyObject * obj3 = 0 ;
5094 PyObject * obj4 = 0 ;
5095 PyObject * obj5 = 0 ;
5096 PyObject * obj6 = 0 ;
5097 PyObject * obj7 = 0 ;
5098 char * kwnames[] = {
5099 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5100 };
5101
5102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5104 if (!SWIG_IsOK(res1)) {
5105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5106 }
5107 arg1 = reinterpret_cast< wxWindow * >(argp1);
5108 if (obj1) {
5109 ecode2 = SWIG_AsVal_int(obj1, &val2);
5110 if (!SWIG_IsOK(ecode2)) {
5111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5112 }
5113 arg2 = static_cast< int >(val2);
5114 }
5115 if (obj2) {
36ed4f51 5116 {
1bd55598
RD
5117 arg3 = &temp3;
5118 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 5119 }
1bd55598
RD
5120 }
5121 if (obj3) {
d55e5bfc 5122 {
1bd55598
RD
5123 arg4 = &temp4;
5124 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5125 }
1bd55598
RD
5126 }
5127 if (obj4) {
d55e5bfc 5128 {
1bd55598
RD
5129 if (! PySequence_Check(obj4)) {
5130 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5131 SWIG_fail;
5132 }
5133 arg5 = new wxArrayString;
5134 temp5 = true;
5135 int i, len=PySequence_Length(obj4);
5136 for (i=0; i<len; i++) {
5137 PyObject* item = PySequence_GetItem(obj4, i);
5138 wxString* s = wxString_in_helper(item);
5139 if (PyErr_Occurred()) SWIG_fail;
5140 arg5->Add(*s);
5141 delete s;
5142 Py_DECREF(item);
5143 }
d55e5bfc 5144 }
1bd55598
RD
5145 }
5146 if (obj5) {
5147 ecode6 = SWIG_AsVal_long(obj5, &val6);
5148 if (!SWIG_IsOK(ecode6)) {
5149 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5150 }
5151 arg6 = static_cast< long >(val6);
5152 }
5153 if (obj6) {
5154 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5155 if (!SWIG_IsOK(res7)) {
5156 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 5157 }
1bd55598
RD
5158 if (!argp7) {
5159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5160 }
5161 arg7 = reinterpret_cast< wxValidator * >(argp7);
5162 }
5163 if (obj7) {
d55e5bfc 5164 {
1bd55598
RD
5165 arg8 = wxString_in_helper(obj7);
5166 if (arg8 == NULL) SWIG_fail;
5167 temp8 = true;
d55e5bfc 5168 }
1bd55598
RD
5169 }
5170 {
5171 if (!wxPyCheckForApp()) SWIG_fail;
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5174 wxPyEndAllowThreads(__tstate);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 }
5177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5178 {
5179 if (temp5) delete arg5;
5180 }
5181 {
5182 if (temp8)
5183 delete arg8;
5184 }
5185 return resultobj;
5186fail:
5187 {
5188 if (temp5) delete arg5;
5189 }
5190 {
5191 if (temp8)
5192 delete arg8;
5193 }
5194 return NULL;
d55e5bfc
RD
5195}
5196
5197
1bd55598
RD
5198SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5199 PyObject *resultobj = 0;
5200 wxChoice *result = 0 ;
5201
5202 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5203 {
5204 if (!wxPyCheckForApp()) SWIG_fail;
5205 PyThreadState* __tstate = wxPyBeginAllowThreads();
5206 result = (wxChoice *)new wxChoice();
5207 wxPyEndAllowThreads(__tstate);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 }
5210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5211 return resultobj;
5212fail:
5213 return NULL;
5214}
5215
5216
5217SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5218 PyObject *resultobj = 0;
5219 wxChoice *arg1 = (wxChoice *) 0 ;
5220 wxWindow *arg2 = (wxWindow *) 0 ;
5221 int arg3 = (int) -1 ;
5222 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5223 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5224 wxSize const &arg5_defvalue = wxDefaultSize ;
5225 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5226 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5227 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5228 long arg7 = (long) 0 ;
5229 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5230 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5231 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5232 wxString *arg9 = (wxString *) &arg9_defvalue ;
5233 bool result;
5234 void *argp1 = 0 ;
5235 int res1 = 0 ;
5236 void *argp2 = 0 ;
5237 int res2 = 0 ;
5238 int val3 ;
5239 int ecode3 = 0 ;
5240 wxPoint temp4 ;
5241 wxSize temp5 ;
5242 bool temp6 = false ;
5243 long val7 ;
5244 int ecode7 = 0 ;
5245 void *argp8 = 0 ;
5246 int res8 = 0 ;
5247 bool temp9 = false ;
5248 PyObject * obj0 = 0 ;
5249 PyObject * obj1 = 0 ;
5250 PyObject * obj2 = 0 ;
5251 PyObject * obj3 = 0 ;
5252 PyObject * obj4 = 0 ;
5253 PyObject * obj5 = 0 ;
5254 PyObject * obj6 = 0 ;
5255 PyObject * obj7 = 0 ;
5256 PyObject * obj8 = 0 ;
5257 char * kwnames[] = {
5258 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5259 };
5260
5261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5263 if (!SWIG_IsOK(res1)) {
5264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5265 }
5266 arg1 = reinterpret_cast< wxChoice * >(argp1);
5267 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5268 if (!SWIG_IsOK(res2)) {
5269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5270 }
5271 arg2 = reinterpret_cast< wxWindow * >(argp2);
5272 if (obj2) {
5273 ecode3 = SWIG_AsVal_int(obj2, &val3);
5274 if (!SWIG_IsOK(ecode3)) {
5275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5276 }
5277 arg3 = static_cast< int >(val3);
5278 }
5279 if (obj3) {
d55e5bfc 5280 {
1bd55598
RD
5281 arg4 = &temp4;
5282 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5283 }
1bd55598
RD
5284 }
5285 if (obj4) {
d55e5bfc 5286 {
1bd55598
RD
5287 arg5 = &temp5;
5288 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5289 }
1bd55598
RD
5290 }
5291 if (obj5) {
d55e5bfc 5292 {
1bd55598
RD
5293 if (! PySequence_Check(obj5)) {
5294 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5295 SWIG_fail;
5296 }
5297 arg6 = new wxArrayString;
5298 temp6 = true;
5299 int i, len=PySequence_Length(obj5);
5300 for (i=0; i<len; i++) {
5301 PyObject* item = PySequence_GetItem(obj5, i);
5302 wxString* s = wxString_in_helper(item);
5303 if (PyErr_Occurred()) SWIG_fail;
5304 arg6->Add(*s);
5305 delete s;
5306 Py_DECREF(item);
5307 }
5308 }
5309 }
5310 if (obj6) {
5311 ecode7 = SWIG_AsVal_long(obj6, &val7);
5312 if (!SWIG_IsOK(ecode7)) {
5313 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5314 }
5315 arg7 = static_cast< long >(val7);
5316 }
5317 if (obj7) {
5318 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5319 if (!SWIG_IsOK(res8)) {
5320 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 5321 }
1bd55598
RD
5322 if (!argp8) {
5323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5324 }
5325 arg8 = reinterpret_cast< wxValidator * >(argp8);
5326 }
5327 if (obj8) {
d55e5bfc 5328 {
1bd55598
RD
5329 arg9 = wxString_in_helper(obj8);
5330 if (arg9 == NULL) SWIG_fail;
5331 temp9 = true;
d55e5bfc 5332 }
1bd55598
RD
5333 }
5334 {
5335 PyThreadState* __tstate = wxPyBeginAllowThreads();
5336 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5337 wxPyEndAllowThreads(__tstate);
5338 if (PyErr_Occurred()) SWIG_fail;
5339 }
5340 {
5341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5342 }
5343 {
5344 if (temp6) delete arg6;
5345 }
5346 {
5347 if (temp9)
5348 delete arg9;
5349 }
5350 return resultobj;
5351fail:
5352 {
5353 if (temp6) delete arg6;
5354 }
5355 {
5356 if (temp9)
5357 delete arg9;
5358 }
5359 return NULL;
d55e5bfc
RD
5360}
5361
5362
1bd55598
RD
5363SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5364 PyObject *resultobj = 0;
5365 wxChoice *arg1 = (wxChoice *) 0 ;
5366 int result;
5367 void *argp1 = 0 ;
5368 int res1 = 0 ;
5369 PyObject *swig_obj[1] ;
5370
5371 if (!args) SWIG_fail;
5372 swig_obj[0] = args;
5373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5374 if (!SWIG_IsOK(res1)) {
5375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5376 }
5377 arg1 = reinterpret_cast< wxChoice * >(argp1);
5378 {
5379 PyThreadState* __tstate = wxPyBeginAllowThreads();
5380 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5381 wxPyEndAllowThreads(__tstate);
5382 if (PyErr_Occurred()) SWIG_fail;
5383 }
5384 resultobj = SWIG_From_int(static_cast< int >(result));
5385 return resultobj;
5386fail:
5387 return NULL;
5388}
5389
5390
5391SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5392 PyObject *resultobj = 0;
5393 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5394 SwigValueWrapper<wxVisualAttributes > result;
5395 int val1 ;
5396 int ecode1 = 0 ;
5397 PyObject * obj0 = 0 ;
5398 char * kwnames[] = {
5399 (char *) "variant", NULL
5400 };
5401
5402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5403 if (obj0) {
5404 ecode1 = SWIG_AsVal_int(obj0, &val1);
5405 if (!SWIG_IsOK(ecode1)) {
5406 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5407 }
5408 arg1 = static_cast< wxWindowVariant >(val1);
5409 }
5410 {
5411 if (!wxPyCheckForApp()) SWIG_fail;
5412 PyThreadState* __tstate = wxPyBeginAllowThreads();
5413 result = wxChoice::GetClassDefaultAttributes(arg1);
5414 wxPyEndAllowThreads(__tstate);
5415 if (PyErr_Occurred()) SWIG_fail;
5416 }
5417 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5418 return resultobj;
5419fail:
5420 return NULL;
f20a2e1f
RD
5421}
5422
5423
1bd55598
RD
5424SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5425 PyObject *obj;
5426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5427 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5428 return SWIG_Py_Void();
d55e5bfc 5429}
1bd55598
RD
5430
5431SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5432 return SWIG_Python_InitShadowInstance(args);
5433}
5434
5435SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5436 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5437 return 1;
d55e5bfc
RD
5438}
5439
5440
1bd55598
RD
5441SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5442 PyObject *pyobj = 0;
5443
5444 {
d55e5bfc 5445#if wxUSE_UNICODE
1bd55598 5446 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5447#else
1bd55598 5448 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5449#endif
1bd55598
RD
5450 }
5451 return pyobj;
5452}
5453
5454
5455SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5456 PyObject *resultobj = 0;
5457 wxWindow *arg1 = (wxWindow *) 0 ;
5458 int arg2 = (int) -1 ;
5459 wxString const &arg3_defvalue = wxPyEmptyString ;
5460 wxString *arg3 = (wxString *) &arg3_defvalue ;
5461 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5462 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5463 wxSize const &arg5_defvalue = wxDefaultSize ;
5464 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5465 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5466 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5467 long arg7 = (long) 0 ;
5468 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5469 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5470 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5471 wxString *arg9 = (wxString *) &arg9_defvalue ;
5472 wxComboBox *result = 0 ;
5473 void *argp1 = 0 ;
5474 int res1 = 0 ;
5475 int val2 ;
5476 int ecode2 = 0 ;
5477 bool temp3 = false ;
5478 wxPoint temp4 ;
5479 wxSize temp5 ;
5480 bool temp6 = false ;
5481 long val7 ;
5482 int ecode7 = 0 ;
5483 void *argp8 = 0 ;
5484 int res8 = 0 ;
5485 bool temp9 = false ;
5486 PyObject * obj0 = 0 ;
5487 PyObject * obj1 = 0 ;
5488 PyObject * obj2 = 0 ;
5489 PyObject * obj3 = 0 ;
5490 PyObject * obj4 = 0 ;
5491 PyObject * obj5 = 0 ;
5492 PyObject * obj6 = 0 ;
5493 PyObject * obj7 = 0 ;
5494 PyObject * obj8 = 0 ;
5495 char * kwnames[] = {
5496 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5497 };
5498
5499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5501 if (!SWIG_IsOK(res1)) {
5502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5503 }
5504 arg1 = reinterpret_cast< wxWindow * >(argp1);
5505 if (obj1) {
5506 ecode2 = SWIG_AsVal_int(obj1, &val2);
5507 if (!SWIG_IsOK(ecode2)) {
5508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5509 }
5510 arg2 = static_cast< int >(val2);
5511 }
5512 if (obj2) {
d55e5bfc 5513 {
1bd55598
RD
5514 arg3 = wxString_in_helper(obj2);
5515 if (arg3 == NULL) SWIG_fail;
5516 temp3 = true;
d55e5bfc 5517 }
1bd55598
RD
5518 }
5519 if (obj3) {
d55e5bfc 5520 {
1bd55598
RD
5521 arg4 = &temp4;
5522 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5523 }
1bd55598
RD
5524 }
5525 if (obj4) {
d55e5bfc 5526 {
1bd55598
RD
5527 arg5 = &temp5;
5528 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5529 }
1bd55598
RD
5530 }
5531 if (obj5) {
d55e5bfc 5532 {
1bd55598
RD
5533 if (! PySequence_Check(obj5)) {
5534 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5535 SWIG_fail;
5536 }
5537 arg6 = new wxArrayString;
5538 temp6 = true;
5539 int i, len=PySequence_Length(obj5);
5540 for (i=0; i<len; i++) {
5541 PyObject* item = PySequence_GetItem(obj5, i);
5542 wxString* s = wxString_in_helper(item);
5543 if (PyErr_Occurred()) SWIG_fail;
5544 arg6->Add(*s);
5545 delete s;
5546 Py_DECREF(item);
5547 }
d55e5bfc 5548 }
1bd55598
RD
5549 }
5550 if (obj6) {
5551 ecode7 = SWIG_AsVal_long(obj6, &val7);
5552 if (!SWIG_IsOK(ecode7)) {
5553 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5554 }
5555 arg7 = static_cast< long >(val7);
5556 }
5557 if (obj7) {
5558 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5559 if (!SWIG_IsOK(res8)) {
5560 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5561 }
5562 if (!argp8) {
5563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5564 }
5565 arg8 = reinterpret_cast< wxValidator * >(argp8);
5566 }
5567 if (obj8) {
d55e5bfc 5568 {
1bd55598
RD
5569 arg9 = wxString_in_helper(obj8);
5570 if (arg9 == NULL) SWIG_fail;
5571 temp9 = true;
d55e5bfc 5572 }
1bd55598
RD
5573 }
5574 {
5575 if (!wxPyCheckForApp()) SWIG_fail;
5576 PyThreadState* __tstate = wxPyBeginAllowThreads();
5577 result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5578 wxPyEndAllowThreads(__tstate);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 }
5581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5582 {
5583 if (temp3)
5584 delete arg3;
5585 }
5586 {
5587 if (temp6) delete arg6;
5588 }
5589 {
5590 if (temp9)
5591 delete arg9;
5592 }
5593 return resultobj;
5594fail:
5595 {
5596 if (temp3)
5597 delete arg3;
5598 }
5599 {
5600 if (temp6) delete arg6;
5601 }
5602 {
5603 if (temp9)
5604 delete arg9;
5605 }
5606 return NULL;
d55e5bfc
RD
5607}
5608
5609
1bd55598
RD
5610SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5611 PyObject *resultobj = 0;
5612 wxComboBox *result = 0 ;
5613
5614 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5615 {
5616 if (!wxPyCheckForApp()) SWIG_fail;
5617 PyThreadState* __tstate = wxPyBeginAllowThreads();
5618 result = (wxComboBox *)new wxComboBox();
5619 wxPyEndAllowThreads(__tstate);
5620 if (PyErr_Occurred()) SWIG_fail;
5621 }
5622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5623 return resultobj;
5624fail:
5625 return NULL;
5626}
5627
5628
5629SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5630 PyObject *resultobj = 0;
5631 wxComboBox *arg1 = (wxComboBox *) 0 ;
5632 wxWindow *arg2 = (wxWindow *) 0 ;
5633 int arg3 = (int) -1 ;
5634 wxString const &arg4_defvalue = wxPyEmptyString ;
5635 wxString *arg4 = (wxString *) &arg4_defvalue ;
5636 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5637 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5638 wxSize const &arg6_defvalue = wxDefaultSize ;
5639 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5640 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5641 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5642 long arg8 = (long) 0 ;
5643 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5644 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5645 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5646 wxString *arg10 = (wxString *) &arg10_defvalue ;
5647 bool result;
5648 void *argp1 = 0 ;
5649 int res1 = 0 ;
5650 void *argp2 = 0 ;
5651 int res2 = 0 ;
5652 int val3 ;
5653 int ecode3 = 0 ;
5654 bool temp4 = false ;
5655 wxPoint temp5 ;
5656 wxSize temp6 ;
5657 bool temp7 = false ;
5658 long val8 ;
5659 int ecode8 = 0 ;
5660 void *argp9 = 0 ;
5661 int res9 = 0 ;
5662 bool temp10 = false ;
5663 PyObject * obj0 = 0 ;
5664 PyObject * obj1 = 0 ;
5665 PyObject * obj2 = 0 ;
5666 PyObject * obj3 = 0 ;
5667 PyObject * obj4 = 0 ;
5668 PyObject * obj5 = 0 ;
5669 PyObject * obj6 = 0 ;
5670 PyObject * obj7 = 0 ;
5671 PyObject * obj8 = 0 ;
5672 PyObject * obj9 = 0 ;
5673 char * kwnames[] = {
5674 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5675 };
5676
5677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5679 if (!SWIG_IsOK(res1)) {
5680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5681 }
5682 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5683 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5684 if (!SWIG_IsOK(res2)) {
5685 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5686 }
5687 arg2 = reinterpret_cast< wxWindow * >(argp2);
5688 if (obj2) {
5689 ecode3 = SWIG_AsVal_int(obj2, &val3);
5690 if (!SWIG_IsOK(ecode3)) {
5691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5692 }
5693 arg3 = static_cast< int >(val3);
5694 }
5695 if (obj3) {
d55e5bfc 5696 {
1bd55598
RD
5697 arg4 = wxString_in_helper(obj3);
5698 if (arg4 == NULL) SWIG_fail;
5699 temp4 = true;
d55e5bfc 5700 }
1bd55598
RD
5701 }
5702 if (obj4) {
d55e5bfc 5703 {
1bd55598
RD
5704 arg5 = &temp5;
5705 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5706 }
1bd55598
RD
5707 }
5708 if (obj5) {
d55e5bfc 5709 {
1bd55598
RD
5710 arg6 = &temp6;
5711 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 5712 }
1bd55598
RD
5713 }
5714 if (obj6) {
d55e5bfc 5715 {
1bd55598
RD
5716 if (! PySequence_Check(obj6)) {
5717 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5718 SWIG_fail;
5719 }
5720 arg7 = new wxArrayString;
5721 temp7 = true;
5722 int i, len=PySequence_Length(obj6);
5723 for (i=0; i<len; i++) {
5724 PyObject* item = PySequence_GetItem(obj6, i);
5725 wxString* s = wxString_in_helper(item);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 arg7->Add(*s);
5728 delete s;
5729 Py_DECREF(item);
5730 }
d55e5bfc 5731 }
1bd55598
RD
5732 }
5733 if (obj7) {
5734 ecode8 = SWIG_AsVal_long(obj7, &val8);
5735 if (!SWIG_IsOK(ecode8)) {
5736 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5737 }
5738 arg8 = static_cast< long >(val8);
5739 }
5740 if (obj8) {
5741 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5742 if (!SWIG_IsOK(res9)) {
5743 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5744 }
1bd55598
RD
5745 if (!argp9) {
5746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5747 }
1bd55598
RD
5748 arg9 = reinterpret_cast< wxValidator * >(argp9);
5749 }
5750 if (obj9) {
d55e5bfc 5751 {
1bd55598
RD
5752 arg10 = wxString_in_helper(obj9);
5753 if (arg10 == NULL) SWIG_fail;
5754 temp10 = true;
d55e5bfc 5755 }
1bd55598
RD
5756 }
5757 {
5758 PyThreadState* __tstate = wxPyBeginAllowThreads();
5759 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
5760 wxPyEndAllowThreads(__tstate);
5761 if (PyErr_Occurred()) SWIG_fail;
5762 }
5763 {
5764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5765 }
5766 {
5767 if (temp4)
5768 delete arg4;
5769 }
5770 {
5771 if (temp7) delete arg7;
5772 }
5773 {
5774 if (temp10)
5775 delete arg10;
5776 }
5777 return resultobj;
5778fail:
5779 {
5780 if (temp4)
5781 delete arg4;
5782 }
5783 {
5784 if (temp7) delete arg7;
5785 }
5786 {
5787 if (temp10)
5788 delete arg10;
5789 }
5790 return NULL;
d55e5bfc
RD
5791}
5792
5793
1bd55598
RD
5794SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5795 PyObject *resultobj = 0;
5796 wxComboBox *arg1 = (wxComboBox *) 0 ;
5797 wxString result;
5798 void *argp1 = 0 ;
5799 int res1 = 0 ;
5800 PyObject *swig_obj[1] ;
5801
5802 if (!args) SWIG_fail;
5803 swig_obj[0] = args;
5804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5805 if (!SWIG_IsOK(res1)) {
5806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5807 }
5808 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5809 {
5810 PyThreadState* __tstate = wxPyBeginAllowThreads();
5811 result = ((wxComboBox const *)arg1)->GetValue();
5812 wxPyEndAllowThreads(__tstate);
5813 if (PyErr_Occurred()) SWIG_fail;
5814 }
5815 {
d55e5bfc 5816#if wxUSE_UNICODE
1bd55598 5817 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 5818#else
1bd55598 5819 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 5820#endif
1bd55598
RD
5821 }
5822 return resultobj;
5823fail:
5824 return NULL;
5825}
5826
5827
5828SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5829 PyObject *resultobj = 0;
5830 wxComboBox *arg1 = (wxComboBox *) 0 ;
5831 wxString *arg2 = 0 ;
5832 void *argp1 = 0 ;
5833 int res1 = 0 ;
5834 bool temp2 = false ;
5835 PyObject * obj0 = 0 ;
5836 PyObject * obj1 = 0 ;
5837 char * kwnames[] = {
5838 (char *) "self",(char *) "value", NULL
5839 };
5840
5841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5843 if (!SWIG_IsOK(res1)) {
5844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5845 }
5846 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5847 {
5848 arg2 = wxString_in_helper(obj1);
5849 if (arg2 == NULL) SWIG_fail;
5850 temp2 = true;
5851 }
5852 {
5853 PyThreadState* __tstate = wxPyBeginAllowThreads();
5854 (arg1)->SetValue((wxString const &)*arg2);
5855 wxPyEndAllowThreads(__tstate);
5856 if (PyErr_Occurred()) SWIG_fail;
5857 }
5858 resultobj = SWIG_Py_Void();
5859 {
5860 if (temp2)
5861 delete arg2;
5862 }
5863 return resultobj;
5864fail:
5865 {
5866 if (temp2)
5867 delete arg2;
5868 }
5869 return NULL;
d55e5bfc
RD
5870}
5871
5872
1bd55598
RD
5873SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5874 PyObject *resultobj = 0;
5875 wxComboBox *arg1 = (wxComboBox *) 0 ;
5876 void *argp1 = 0 ;
5877 int res1 = 0 ;
5878 PyObject *swig_obj[1] ;
5879
5880 if (!args) SWIG_fail;
5881 swig_obj[0] = args;
5882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5883 if (!SWIG_IsOK(res1)) {
5884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5885 }
5886 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5887 {
5888 PyThreadState* __tstate = wxPyBeginAllowThreads();
5889 (arg1)->Copy();
5890 wxPyEndAllowThreads(__tstate);
5891 if (PyErr_Occurred()) SWIG_fail;
5892 }
5893 resultobj = SWIG_Py_Void();
5894 return resultobj;
5895fail:
5896 return NULL;
d55e5bfc
RD
5897}
5898
5899
1bd55598
RD
5900SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5901 PyObject *resultobj = 0;
5902 wxComboBox *arg1 = (wxComboBox *) 0 ;
5903 void *argp1 = 0 ;
5904 int res1 = 0 ;
5905 PyObject *swig_obj[1] ;
5906
5907 if (!args) SWIG_fail;
5908 swig_obj[0] = args;
5909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5910 if (!SWIG_IsOK(res1)) {
5911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5912 }
5913 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 (arg1)->Cut();
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_Py_Void();
5921 return resultobj;
5922fail:
5923 return NULL;
d55e5bfc
RD
5924}
5925
5926
1bd55598
RD
5927SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5928 PyObject *resultobj = 0;
5929 wxComboBox *arg1 = (wxComboBox *) 0 ;
5930 void *argp1 = 0 ;
5931 int res1 = 0 ;
5932 PyObject *swig_obj[1] ;
5933
5934 if (!args) SWIG_fail;
5935 swig_obj[0] = args;
5936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5937 if (!SWIG_IsOK(res1)) {
5938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5939 }
5940 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 (arg1)->Paste();
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_Py_Void();
5948 return resultobj;
5949fail:
5950 return NULL;
5951}
5952
5953
5954SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5955 PyObject *resultobj = 0;
5956 wxComboBox *arg1 = (wxComboBox *) 0 ;
5957 long arg2 ;
5958 void *argp1 = 0 ;
5959 int res1 = 0 ;
5960 long val2 ;
5961 int ecode2 = 0 ;
5962 PyObject * obj0 = 0 ;
5963 PyObject * obj1 = 0 ;
5964 char * kwnames[] = {
5965 (char *) "self",(char *) "pos", NULL
5966 };
5967
5968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5970 if (!SWIG_IsOK(res1)) {
5971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5972 }
5973 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5974 ecode2 = SWIG_AsVal_long(obj1, &val2);
5975 if (!SWIG_IsOK(ecode2)) {
5976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
5977 }
5978 arg2 = static_cast< long >(val2);
5979 {
5980 PyThreadState* __tstate = wxPyBeginAllowThreads();
5981 (arg1)->SetInsertionPoint(arg2);
5982 wxPyEndAllowThreads(__tstate);
5983 if (PyErr_Occurred()) SWIG_fail;
5984 }
5985 resultobj = SWIG_Py_Void();
5986 return resultobj;
5987fail:
5988 return NULL;
d55e5bfc
RD
5989}
5990
5991
1bd55598
RD
5992SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5993 PyObject *resultobj = 0;
5994 wxComboBox *arg1 = (wxComboBox *) 0 ;
5995 long result;
5996 void *argp1 = 0 ;
5997 int res1 = 0 ;
5998 PyObject *swig_obj[1] ;
5999
6000 if (!args) SWIG_fail;
6001 swig_obj[0] = args;
6002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6003 if (!SWIG_IsOK(res1)) {
6004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6005 }
6006 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6007 {
6008 PyThreadState* __tstate = wxPyBeginAllowThreads();
6009 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6010 wxPyEndAllowThreads(__tstate);
6011 if (PyErr_Occurred()) SWIG_fail;
6012 }
6013 resultobj = SWIG_From_long(static_cast< long >(result));
6014 return resultobj;
6015fail:
6016 return NULL;
d55e5bfc
RD
6017}
6018
6019
1bd55598
RD
6020SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6021 PyObject *resultobj = 0;
6022 wxComboBox *arg1 = (wxComboBox *) 0 ;
6023 long result;
6024 void *argp1 = 0 ;
6025 int res1 = 0 ;
6026 PyObject *swig_obj[1] ;
6027
6028 if (!args) SWIG_fail;
6029 swig_obj[0] = args;
6030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6031 if (!SWIG_IsOK(res1)) {
6032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6033 }
6034 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6035 {
6036 PyThreadState* __tstate = wxPyBeginAllowThreads();
6037 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6038 wxPyEndAllowThreads(__tstate);
6039 if (PyErr_Occurred()) SWIG_fail;
6040 }
6041 resultobj = SWIG_From_long(static_cast< long >(result));
6042 return resultobj;
6043fail:
6044 return NULL;
6045}
6046
6047
6048SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6049 PyObject *resultobj = 0;
6050 wxComboBox *arg1 = (wxComboBox *) 0 ;
6051 long arg2 ;
6052 long arg3 ;
6053 wxString *arg4 = 0 ;
6054 void *argp1 = 0 ;
6055 int res1 = 0 ;
6056 long val2 ;
6057 int ecode2 = 0 ;
6058 long val3 ;
6059 int ecode3 = 0 ;
6060 bool temp4 = false ;
6061 PyObject * obj0 = 0 ;
6062 PyObject * obj1 = 0 ;
6063 PyObject * obj2 = 0 ;
6064 PyObject * obj3 = 0 ;
6065 char * kwnames[] = {
6066 (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL
6067 };
6068
6069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6071 if (!SWIG_IsOK(res1)) {
6072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6073 }
6074 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6075 ecode2 = SWIG_AsVal_long(obj1, &val2);
6076 if (!SWIG_IsOK(ecode2)) {
6077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6078 }
6079 arg2 = static_cast< long >(val2);
6080 ecode3 = SWIG_AsVal_long(obj2, &val3);
6081 if (!SWIG_IsOK(ecode3)) {
6082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6083 }
6084 arg3 = static_cast< long >(val3);
6085 {
6086 arg4 = wxString_in_helper(obj3);
6087 if (arg4 == NULL) SWIG_fail;
6088 temp4 = true;
6089 }
6090 {
6091 PyThreadState* __tstate = wxPyBeginAllowThreads();
6092 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6093 wxPyEndAllowThreads(__tstate);
6094 if (PyErr_Occurred()) SWIG_fail;
6095 }
6096 resultobj = SWIG_Py_Void();
6097 {
6098 if (temp4)
6099 delete arg4;
6100 }
6101 return resultobj;
6102fail:
6103 {
6104 if (temp4)
6105 delete arg4;
6106 }
6107 return NULL;
6108}
6109
6110
6111SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6112 PyObject *resultobj = 0;
6113 wxComboBox *arg1 = (wxComboBox *) 0 ;
6114 long arg2 ;
6115 long arg3 ;
6116 void *argp1 = 0 ;
6117 int res1 = 0 ;
6118 long val2 ;
6119 int ecode2 = 0 ;
6120 long val3 ;
6121 int ecode3 = 0 ;
6122 PyObject * obj0 = 0 ;
6123 PyObject * obj1 = 0 ;
6124 PyObject * obj2 = 0 ;
6125 char * kwnames[] = {
6126 (char *) "self",(char *) "_from",(char *) "to", NULL
6127 };
6128
6129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6131 if (!SWIG_IsOK(res1)) {
6132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6133 }
6134 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6135 ecode2 = SWIG_AsVal_long(obj1, &val2);
6136 if (!SWIG_IsOK(ecode2)) {
6137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6138 }
6139 arg2 = static_cast< long >(val2);
6140 ecode3 = SWIG_AsVal_long(obj2, &val3);
6141 if (!SWIG_IsOK(ecode3)) {
6142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6143 }
6144 arg3 = static_cast< long >(val3);
6145 {
6146 PyThreadState* __tstate = wxPyBeginAllowThreads();
6147 (arg1)->SetSelection(arg2,arg3);
6148 wxPyEndAllowThreads(__tstate);
6149 if (PyErr_Occurred()) SWIG_fail;
6150 }
6151 resultobj = SWIG_Py_Void();
6152 return resultobj;
6153fail:
6154 return NULL;
d55e5bfc
RD
6155}
6156
6157
1bd55598
RD
6158SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6159 PyObject *resultobj = 0;
6160 wxComboBox *arg1 = (wxComboBox *) 0 ;
6161 int result;
6162 void *argp1 = 0 ;
6163 int res1 = 0 ;
6164 PyObject *swig_obj[1] ;
6165
6166 if (!args) SWIG_fail;
6167 swig_obj[0] = args;
6168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6169 if (!SWIG_IsOK(res1)) {
6170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6171 }
6172 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6173 {
6174 PyThreadState* __tstate = wxPyBeginAllowThreads();
6175 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6176 wxPyEndAllowThreads(__tstate);
6177 if (PyErr_Occurred()) SWIG_fail;
6178 }
6179 resultobj = SWIG_From_int(static_cast< int >(result));
6180 return resultobj;
6181fail:
6182 return NULL;
6183}
6184
6185
6186SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6187 PyObject *resultobj = 0;
6188 wxComboBox *arg1 = (wxComboBox *) 0 ;
6189 wxString *arg2 = 0 ;
6190 bool result;
6191 void *argp1 = 0 ;
6192 int res1 = 0 ;
6193 bool temp2 = false ;
6194 PyObject * obj0 = 0 ;
6195 PyObject * obj1 = 0 ;
6196 char * kwnames[] = {
6197 (char *) "self",(char *) "string", NULL
6198 };
6199
6200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6202 if (!SWIG_IsOK(res1)) {
6203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6204 }
6205 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6206 {
6207 arg2 = wxString_in_helper(obj1);
6208 if (arg2 == NULL) SWIG_fail;
6209 temp2 = true;
6210 }
6211 {
6212 PyThreadState* __tstate = wxPyBeginAllowThreads();
6213 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6214 wxPyEndAllowThreads(__tstate);
6215 if (PyErr_Occurred()) SWIG_fail;
6216 }
6217 {
6218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6219 }
6220 {
6221 if (temp2)
6222 delete arg2;
6223 }
6224 return resultobj;
6225fail:
6226 {
6227 if (temp2)
6228 delete arg2;
6229 }
6230 return NULL;
6231}
6232
6233
50f151d7
RD
6234SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6235 PyObject *resultobj = 0;
6236 wxComboBox *arg1 = (wxComboBox *) 0 ;
6237 int arg2 ;
6238 wxString *arg3 = 0 ;
6239 void *argp1 = 0 ;
6240 int res1 = 0 ;
6241 int val2 ;
6242 int ecode2 = 0 ;
6243 bool temp3 = false ;
6244 PyObject * obj0 = 0 ;
6245 PyObject * obj1 = 0 ;
6246 PyObject * obj2 = 0 ;
6247 char * kwnames[] = {
6248 (char *) "self",(char *) "n",(char *) "string", NULL
6249 };
6250
6251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6253 if (!SWIG_IsOK(res1)) {
6254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6255 }
6256 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6257 ecode2 = SWIG_AsVal_int(obj1, &val2);
6258 if (!SWIG_IsOK(ecode2)) {
6259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6260 }
6261 arg2 = static_cast< int >(val2);
6262 {
6263 arg3 = wxString_in_helper(obj2);
6264 if (arg3 == NULL) SWIG_fail;
6265 temp3 = true;
6266 }
6267 {
6268 PyThreadState* __tstate = wxPyBeginAllowThreads();
6269 (arg1)->SetString(arg2,(wxString const &)*arg3);
6270 wxPyEndAllowThreads(__tstate);
6271 if (PyErr_Occurred()) SWIG_fail;
6272 }
6273 resultobj = SWIG_Py_Void();
6274 {
6275 if (temp3)
6276 delete arg3;
6277 }
6278 return resultobj;
6279fail:
6280 {
6281 if (temp3)
6282 delete arg3;
6283 }
6284 return NULL;
6285}
6286
6287
1bd55598
RD
6288SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6289 PyObject *resultobj = 0;
6290 wxComboBox *arg1 = (wxComboBox *) 0 ;
6291 bool arg2 ;
6292 void *argp1 = 0 ;
6293 int res1 = 0 ;
6294 bool val2 ;
6295 int ecode2 = 0 ;
6296 PyObject * obj0 = 0 ;
6297 PyObject * obj1 = 0 ;
6298 char * kwnames[] = {
6299 (char *) "self",(char *) "editable", NULL
6300 };
6301
6302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6304 if (!SWIG_IsOK(res1)) {
6305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6306 }
6307 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6308 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6309 if (!SWIG_IsOK(ecode2)) {
6310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6311 }
6312 arg2 = static_cast< bool >(val2);
6313 {
6314 PyThreadState* __tstate = wxPyBeginAllowThreads();
6315 (arg1)->SetEditable(arg2);
6316 wxPyEndAllowThreads(__tstate);
6317 if (PyErr_Occurred()) SWIG_fail;
6318 }
6319 resultobj = SWIG_Py_Void();
6320 return resultobj;
6321fail:
6322 return NULL;
d55e5bfc
RD
6323}
6324
6325
1bd55598
RD
6326SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6327 PyObject *resultobj = 0;
6328 wxComboBox *arg1 = (wxComboBox *) 0 ;
6329 void *argp1 = 0 ;
6330 int res1 = 0 ;
6331 PyObject *swig_obj[1] ;
6332
6333 if (!args) SWIG_fail;
6334 swig_obj[0] = args;
6335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6336 if (!SWIG_IsOK(res1)) {
6337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6338 }
6339 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6340 {
6341 PyThreadState* __tstate = wxPyBeginAllowThreads();
6342 (arg1)->SetInsertionPointEnd();
6343 wxPyEndAllowThreads(__tstate);
6344 if (PyErr_Occurred()) SWIG_fail;
6345 }
6346 resultobj = SWIG_Py_Void();
6347 return resultobj;
6348fail:
6349 return NULL;
6350}
6351
6352
6353SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6354 PyObject *resultobj = 0;
6355 wxComboBox *arg1 = (wxComboBox *) 0 ;
6356 long arg2 ;
6357 long arg3 ;
6358 void *argp1 = 0 ;
6359 int res1 = 0 ;
6360 long val2 ;
6361 int ecode2 = 0 ;
6362 long val3 ;
6363 int ecode3 = 0 ;
6364 PyObject * obj0 = 0 ;
6365 PyObject * obj1 = 0 ;
6366 PyObject * obj2 = 0 ;
6367 char * kwnames[] = {
6368 (char *) "self",(char *) "_from",(char *) "to", NULL
6369 };
6370
6371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6373 if (!SWIG_IsOK(res1)) {
6374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6375 }
6376 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6377 ecode2 = SWIG_AsVal_long(obj1, &val2);
6378 if (!SWIG_IsOK(ecode2)) {
6379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6380 }
6381 arg2 = static_cast< long >(val2);
6382 ecode3 = SWIG_AsVal_long(obj2, &val3);
6383 if (!SWIG_IsOK(ecode3)) {
6384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6385 }
6386 arg3 = static_cast< long >(val3);
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 (arg1)->Remove(arg2,arg3);
6390 wxPyEndAllowThreads(__tstate);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 resultobj = SWIG_Py_Void();
6394 return resultobj;
6395fail:
6396 return NULL;
d55e5bfc
RD
6397}
6398
6399
1bd55598
RD
6400SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6401 PyObject *resultobj = 0;
6402 wxComboBox *arg1 = (wxComboBox *) 0 ;
6403 bool result;
6404 void *argp1 = 0 ;
6405 int res1 = 0 ;
6406 PyObject *swig_obj[1] ;
6407
6408 if (!args) SWIG_fail;
6409 swig_obj[0] = args;
6410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6411 if (!SWIG_IsOK(res1)) {
6412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6413 }
6414 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6415 {
6416 PyThreadState* __tstate = wxPyBeginAllowThreads();
6417 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6418 wxPyEndAllowThreads(__tstate);
6419 if (PyErr_Occurred()) SWIG_fail;
6420 }
6421 {
6422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6423 }
6424 return resultobj;
6425fail:
6426 return NULL;
d55e5bfc
RD
6427}
6428
6429
1bd55598
RD
6430SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6431 PyObject *resultobj = 0;
6432 wxComboBox *arg1 = (wxComboBox *) 0 ;
6433 void *argp1 = 0 ;
6434 int res1 = 0 ;
6435 PyObject *swig_obj[1] ;
6436
6437 if (!args) SWIG_fail;
6438 swig_obj[0] = args;
6439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6440 if (!SWIG_IsOK(res1)) {
6441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6442 }
6443 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6444 {
6445 PyThreadState* __tstate = wxPyBeginAllowThreads();
6446 (arg1)->Undo();
6447 wxPyEndAllowThreads(__tstate);
6448 if (PyErr_Occurred()) SWIG_fail;
6449 }
6450 resultobj = SWIG_Py_Void();
6451 return resultobj;
6452fail:
6453 return NULL;
d55e5bfc
RD
6454}
6455
6456
1bd55598
RD
6457SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6458 PyObject *resultobj = 0;
6459 wxComboBox *arg1 = (wxComboBox *) 0 ;
6460 void *argp1 = 0 ;
6461 int res1 = 0 ;
6462 PyObject *swig_obj[1] ;
6463
6464 if (!args) SWIG_fail;
6465 swig_obj[0] = args;
6466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6467 if (!SWIG_IsOK(res1)) {
6468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6469 }
6470 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6471 {
6472 PyThreadState* __tstate = wxPyBeginAllowThreads();
6473 (arg1)->Redo();
6474 wxPyEndAllowThreads(__tstate);
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 resultobj = SWIG_Py_Void();
6478 return resultobj;
6479fail:
6480 return NULL;
d55e5bfc
RD
6481}
6482
6483
1bd55598
RD
6484SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6485 PyObject *resultobj = 0;
6486 wxComboBox *arg1 = (wxComboBox *) 0 ;
6487 void *argp1 = 0 ;
6488 int res1 = 0 ;
6489 PyObject *swig_obj[1] ;
6490
6491 if (!args) SWIG_fail;
6492 swig_obj[0] = args;
6493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6494 if (!SWIG_IsOK(res1)) {
6495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6496 }
6497 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6498 {
6499 PyThreadState* __tstate = wxPyBeginAllowThreads();
6500 (arg1)->SelectAll();
6501 wxPyEndAllowThreads(__tstate);
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 resultobj = SWIG_Py_Void();
6505 return resultobj;
6506fail:
6507 return NULL;
943e8dfd
RD
6508}
6509
6510
1bd55598
RD
6511SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6512 PyObject *resultobj = 0;
6513 wxComboBox *arg1 = (wxComboBox *) 0 ;
6514 bool result;
6515 void *argp1 = 0 ;
6516 int res1 = 0 ;
6517 PyObject *swig_obj[1] ;
6518
6519 if (!args) SWIG_fail;
6520 swig_obj[0] = args;
6521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6522 if (!SWIG_IsOK(res1)) {
6523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6524 }
6525 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6526 {
6527 PyThreadState* __tstate = wxPyBeginAllowThreads();
6528 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6529 wxPyEndAllowThreads(__tstate);
6530 if (PyErr_Occurred()) SWIG_fail;
6531 }
6532 {
6533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6534 }
6535 return resultobj;
6536fail:
6537 return NULL;
121b9a67
RD
6538}
6539
6540
1bd55598
RD
6541SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6542 PyObject *resultobj = 0;
6543 wxComboBox *arg1 = (wxComboBox *) 0 ;
6544 bool result;
6545 void *argp1 = 0 ;
6546 int res1 = 0 ;
6547 PyObject *swig_obj[1] ;
6548
6549 if (!args) SWIG_fail;
6550 swig_obj[0] = args;
6551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6552 if (!SWIG_IsOK(res1)) {
6553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6554 }
6555 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6556 {
6557 PyThreadState* __tstate = wxPyBeginAllowThreads();
6558 result = (bool)((wxComboBox const *)arg1)->CanCut();
6559 wxPyEndAllowThreads(__tstate);
6560 if (PyErr_Occurred()) SWIG_fail;
6561 }
6562 {
6563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6564 }
6565 return resultobj;
6566fail:
6567 return NULL;
121b9a67
RD
6568}
6569
6570
1bd55598
RD
6571SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6572 PyObject *resultobj = 0;
6573 wxComboBox *arg1 = (wxComboBox *) 0 ;
6574 bool result;
6575 void *argp1 = 0 ;
6576 int res1 = 0 ;
6577 PyObject *swig_obj[1] ;
6578
6579 if (!args) SWIG_fail;
6580 swig_obj[0] = args;
6581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6582 if (!SWIG_IsOK(res1)) {
6583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6584 }
6585 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6586 {
6587 PyThreadState* __tstate = wxPyBeginAllowThreads();
6588 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6589 wxPyEndAllowThreads(__tstate);
6590 if (PyErr_Occurred()) SWIG_fail;
6591 }
6592 {
6593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6594 }
6595 return resultobj;
6596fail:
6597 return NULL;
d55e5bfc
RD
6598}
6599
6600
1bd55598
RD
6601SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6602 PyObject *resultobj = 0;
6603 wxComboBox *arg1 = (wxComboBox *) 0 ;
6604 bool result;
6605 void *argp1 = 0 ;
6606 int res1 = 0 ;
6607 PyObject *swig_obj[1] ;
6608
6609 if (!args) SWIG_fail;
6610 swig_obj[0] = args;
6611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6612 if (!SWIG_IsOK(res1)) {
6613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6614 }
6615 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6616 {
6617 PyThreadState* __tstate = wxPyBeginAllowThreads();
6618 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6619 wxPyEndAllowThreads(__tstate);
6620 if (PyErr_Occurred()) SWIG_fail;
6621 }
6622 {
6623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6624 }
6625 return resultobj;
6626fail:
6627 return NULL;
d55e5bfc
RD
6628}
6629
6630
1bd55598
RD
6631SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6632 PyObject *resultobj = 0;
6633 wxComboBox *arg1 = (wxComboBox *) 0 ;
6634 bool result;
6635 void *argp1 = 0 ;
6636 int res1 = 0 ;
6637 PyObject *swig_obj[1] ;
6638
6639 if (!args) SWIG_fail;
6640 swig_obj[0] = args;
6641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6642 if (!SWIG_IsOK(res1)) {
6643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6644 }
6645 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6646 {
6647 PyThreadState* __tstate = wxPyBeginAllowThreads();
6648 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6649 wxPyEndAllowThreads(__tstate);
6650 if (PyErr_Occurred()) SWIG_fail;
6651 }
6652 {
6653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6654 }
6655 return resultobj;
6656fail:
6657 return NULL;
d55e5bfc
RD
6658}
6659
6660
1bd55598
RD
6661SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6662 PyObject *resultobj = 0;
6663 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6664 SwigValueWrapper<wxVisualAttributes > result;
6665 int val1 ;
6666 int ecode1 = 0 ;
6667 PyObject * obj0 = 0 ;
6668 char * kwnames[] = {
6669 (char *) "variant", NULL
6670 };
6671
6672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6673 if (obj0) {
6674 ecode1 = SWIG_AsVal_int(obj0, &val1);
6675 if (!SWIG_IsOK(ecode1)) {
6676 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6677 }
6678 arg1 = static_cast< wxWindowVariant >(val1);
6679 }
6680 {
6681 if (!wxPyCheckForApp()) SWIG_fail;
6682 PyThreadState* __tstate = wxPyBeginAllowThreads();
6683 result = wxComboBox::GetClassDefaultAttributes(arg1);
6684 wxPyEndAllowThreads(__tstate);
6685 if (PyErr_Occurred()) SWIG_fail;
6686 }
6687 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6688 return resultobj;
6689fail:
6690 return NULL;
5cbf236d
RD
6691}
6692
6693
1bd55598
RD
6694SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6695 PyObject *obj;
6696 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6697 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6698 return SWIG_Py_Void();
5cbf236d
RD
6699}
6700
1bd55598
RD
6701SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6702 return SWIG_Python_InitShadowInstance(args);
5cbf236d
RD
6703}
6704
1bd55598
RD
6705SWIGINTERN int GaugeNameStr_set(PyObject *) {
6706 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6707 return 1;
5cbf236d
RD
6708}
6709
6710
1bd55598
RD
6711SWIGINTERN PyObject *GaugeNameStr_get(void) {
6712 PyObject *pyobj = 0;
6713
6714 {
6715#if wxUSE_UNICODE
6716 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6717#else
6718 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6719#endif
6720 }
6721 return pyobj;
6722}
6723
6724
6725SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6726 PyObject *resultobj = 0;
6727 wxWindow *arg1 = (wxWindow *) 0 ;
6728 int arg2 = (int) -1 ;
6729 int arg3 = (int) 100 ;
6730 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6731 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6732 wxSize const &arg5_defvalue = wxDefaultSize ;
6733 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6734 long arg6 = (long) wxGA_HORIZONTAL ;
6735 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6736 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6737 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6738 wxString *arg8 = (wxString *) &arg8_defvalue ;
6739 wxGauge *result = 0 ;
6740 void *argp1 = 0 ;
6741 int res1 = 0 ;
6742 int val2 ;
6743 int ecode2 = 0 ;
6744 int val3 ;
6745 int ecode3 = 0 ;
6746 wxPoint temp4 ;
6747 wxSize temp5 ;
6748 long val6 ;
6749 int ecode6 = 0 ;
6750 void *argp7 = 0 ;
6751 int res7 = 0 ;
6752 bool temp8 = false ;
6753 PyObject * obj0 = 0 ;
6754 PyObject * obj1 = 0 ;
6755 PyObject * obj2 = 0 ;
6756 PyObject * obj3 = 0 ;
6757 PyObject * obj4 = 0 ;
6758 PyObject * obj5 = 0 ;
6759 PyObject * obj6 = 0 ;
6760 PyObject * obj7 = 0 ;
6761 char * kwnames[] = {
6762 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6763 };
6764
6765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6767 if (!SWIG_IsOK(res1)) {
6768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6769 }
6770 arg1 = reinterpret_cast< wxWindow * >(argp1);
6771 if (obj1) {
6772 ecode2 = SWIG_AsVal_int(obj1, &val2);
6773 if (!SWIG_IsOK(ecode2)) {
6774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6775 }
6776 arg2 = static_cast< int >(val2);
6777 }
6778 if (obj2) {
6779 ecode3 = SWIG_AsVal_int(obj2, &val3);
6780 if (!SWIG_IsOK(ecode3)) {
6781 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6782 }
6783 arg3 = static_cast< int >(val3);
6784 }
6785 if (obj3) {
5cbf236d 6786 {
1bd55598
RD
6787 arg4 = &temp4;
6788 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5cbf236d 6789 }
1bd55598
RD
6790 }
6791 if (obj4) {
5cbf236d 6792 {
1bd55598
RD
6793 arg5 = &temp5;
6794 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6795 }
1bd55598
RD
6796 }
6797 if (obj5) {
6798 ecode6 = SWIG_AsVal_long(obj5, &val6);
6799 if (!SWIG_IsOK(ecode6)) {
6800 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6801 }
6802 arg6 = static_cast< long >(val6);
6803 }
6804 if (obj6) {
6805 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6806 if (!SWIG_IsOK(res7)) {
6807 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6808 }
6809 if (!argp7) {
6810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
5cbf236d 6811 }
1bd55598
RD
6812 arg7 = reinterpret_cast< wxValidator * >(argp7);
6813 }
6814 if (obj7) {
5cbf236d 6815 {
1bd55598
RD
6816 arg8 = wxString_in_helper(obj7);
6817 if (arg8 == NULL) SWIG_fail;
6818 temp8 = true;
5cbf236d 6819 }
1bd55598
RD
6820 }
6821 {
6822 if (!wxPyCheckForApp()) SWIG_fail;
6823 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6825 wxPyEndAllowThreads(__tstate);
6826 if (PyErr_Occurred()) SWIG_fail;
6827 }
6828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6829 {
6830 if (temp8)
6831 delete arg8;
6832 }
6833 return resultobj;
6834fail:
6835 {
6836 if (temp8)
6837 delete arg8;
6838 }
6839 return NULL;
5cbf236d
RD
6840}
6841
6842
1bd55598
RD
6843SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6844 PyObject *resultobj = 0;
6845 wxGauge *result = 0 ;
6846
6847 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6848 {
6849 if (!wxPyCheckForApp()) SWIG_fail;
6850 PyThreadState* __tstate = wxPyBeginAllowThreads();
6851 result = (wxGauge *)new wxGauge();
6852 wxPyEndAllowThreads(__tstate);
6853 if (PyErr_Occurred()) SWIG_fail;
6854 }
6855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6856 return resultobj;
6857fail:
6858 return NULL;
6859}
6860
6861
6862SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6863 PyObject *resultobj = 0;
6864 wxGauge *arg1 = (wxGauge *) 0 ;
6865 wxWindow *arg2 = (wxWindow *) 0 ;
6866 int arg3 = (int) -1 ;
6867 int arg4 = (int) 100 ;
6868 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6869 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6870 wxSize const &arg6_defvalue = wxDefaultSize ;
6871 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6872 long arg7 = (long) wxGA_HORIZONTAL ;
6873 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6874 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6875 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6876 wxString *arg9 = (wxString *) &arg9_defvalue ;
6877 bool result;
6878 void *argp1 = 0 ;
6879 int res1 = 0 ;
6880 void *argp2 = 0 ;
6881 int res2 = 0 ;
6882 int val3 ;
6883 int ecode3 = 0 ;
6884 int val4 ;
6885 int ecode4 = 0 ;
6886 wxPoint temp5 ;
6887 wxSize temp6 ;
6888 long val7 ;
6889 int ecode7 = 0 ;
6890 void *argp8 = 0 ;
6891 int res8 = 0 ;
6892 bool temp9 = false ;
6893 PyObject * obj0 = 0 ;
6894 PyObject * obj1 = 0 ;
6895 PyObject * obj2 = 0 ;
6896 PyObject * obj3 = 0 ;
6897 PyObject * obj4 = 0 ;
6898 PyObject * obj5 = 0 ;
6899 PyObject * obj6 = 0 ;
6900 PyObject * obj7 = 0 ;
6901 PyObject * obj8 = 0 ;
6902 char * kwnames[] = {
6903 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6904 };
6905
6906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6908 if (!SWIG_IsOK(res1)) {
6909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6910 }
6911 arg1 = reinterpret_cast< wxGauge * >(argp1);
6912 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6913 if (!SWIG_IsOK(res2)) {
6914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6915 }
6916 arg2 = reinterpret_cast< wxWindow * >(argp2);
6917 if (obj2) {
6918 ecode3 = SWIG_AsVal_int(obj2, &val3);
6919 if (!SWIG_IsOK(ecode3)) {
6920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6921 }
6922 arg3 = static_cast< int >(val3);
6923 }
6924 if (obj3) {
6925 ecode4 = SWIG_AsVal_int(obj3, &val4);
6926 if (!SWIG_IsOK(ecode4)) {
6927 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6928 }
6929 arg4 = static_cast< int >(val4);
6930 }
6931 if (obj4) {
5cbf236d 6932 {
1bd55598
RD
6933 arg5 = &temp5;
6934 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6935 }
1bd55598
RD
6936 }
6937 if (obj5) {
5cbf236d 6938 {
1bd55598
RD
6939 arg6 = &temp6;
6940 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5cbf236d 6941 }
1bd55598
RD
6942 }
6943 if (obj6) {
6944 ecode7 = SWIG_AsVal_long(obj6, &val7);
6945 if (!SWIG_IsOK(ecode7)) {
6946 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6947 }
6948 arg7 = static_cast< long >(val7);
6949 }
6950 if (obj7) {
6951 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6952 if (!SWIG_IsOK(res8)) {
6953 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5cbf236d 6954 }
1bd55598
RD
6955 if (!argp8) {
6956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6957 }
6958 arg8 = reinterpret_cast< wxValidator * >(argp8);
6959 }
6960 if (obj8) {
5cbf236d 6961 {
1bd55598
RD
6962 arg9 = wxString_in_helper(obj8);
6963 if (arg9 == NULL) SWIG_fail;
6964 temp9 = true;
5cbf236d 6965 }
1bd55598
RD
6966 }
6967 {
6968 PyThreadState* __tstate = wxPyBeginAllowThreads();
6969 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6970 wxPyEndAllowThreads(__tstate);
6971 if (PyErr_Occurred()) SWIG_fail;
6972 }
6973 {
6974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6975 }
6976 {
6977 if (temp9)
6978 delete arg9;
6979 }
6980 return resultobj;
6981fail:
6982 {
6983 if (temp9)
6984 delete arg9;
6985 }
6986 return NULL;
6987}
6988
6989
6990SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6991 PyObject *resultobj = 0;
6992 wxGauge *arg1 = (wxGauge *) 0 ;
6993 int arg2 ;
6994 void *argp1 = 0 ;
6995 int res1 = 0 ;
6996 int val2 ;
6997 int ecode2 = 0 ;
6998 PyObject * obj0 = 0 ;
6999 PyObject * obj1 = 0 ;
7000 char * kwnames[] = {
7001 (char *) "self",(char *) "range", NULL
7002 };
7003
7004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7006 if (!SWIG_IsOK(res1)) {
7007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7008 }
7009 arg1 = reinterpret_cast< wxGauge * >(argp1);
7010 ecode2 = SWIG_AsVal_int(obj1, &val2);
7011 if (!SWIG_IsOK(ecode2)) {
7012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7013 }
7014 arg2 = static_cast< int >(val2);
7015 {
7016 PyThreadState* __tstate = wxPyBeginAllowThreads();
7017 (arg1)->SetRange(arg2);
7018 wxPyEndAllowThreads(__tstate);
7019 if (PyErr_Occurred()) SWIG_fail;
7020 }
7021 resultobj = SWIG_Py_Void();
7022 return resultobj;
7023fail:
7024 return NULL;
5cbf236d
RD
7025}
7026
7027
1bd55598
RD
7028SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7029 PyObject *resultobj = 0;
7030 wxGauge *arg1 = (wxGauge *) 0 ;
7031 int result;
7032 void *argp1 = 0 ;
7033 int res1 = 0 ;
7034 PyObject *swig_obj[1] ;
7035
7036 if (!args) SWIG_fail;
7037 swig_obj[0] = args;
7038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7039 if (!SWIG_IsOK(res1)) {
7040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7041 }
7042 arg1 = reinterpret_cast< wxGauge * >(argp1);
7043 {
7044 PyThreadState* __tstate = wxPyBeginAllowThreads();
7045 result = (int)((wxGauge const *)arg1)->GetRange();
7046 wxPyEndAllowThreads(__tstate);
7047 if (PyErr_Occurred()) SWIG_fail;
7048 }
7049 resultobj = SWIG_From_int(static_cast< int >(result));
7050 return resultobj;
7051fail:
7052 return NULL;
7053}
7054
7055
7056SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7057 PyObject *resultobj = 0;
7058 wxGauge *arg1 = (wxGauge *) 0 ;
7059 int arg2 ;
7060 void *argp1 = 0 ;
7061 int res1 = 0 ;
7062 int val2 ;
7063 int ecode2 = 0 ;
7064 PyObject * obj0 = 0 ;
7065 PyObject * obj1 = 0 ;
7066 char * kwnames[] = {
7067 (char *) "self",(char *) "pos", NULL
7068 };
7069
7070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7072 if (!SWIG_IsOK(res1)) {
7073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7074 }
7075 arg1 = reinterpret_cast< wxGauge * >(argp1);
7076 ecode2 = SWIG_AsVal_int(obj1, &val2);
7077 if (!SWIG_IsOK(ecode2)) {
7078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7079 }
7080 arg2 = static_cast< int >(val2);
7081 {
7082 PyThreadState* __tstate = wxPyBeginAllowThreads();
7083 (arg1)->SetValue(arg2);
7084 wxPyEndAllowThreads(__tstate);
7085 if (PyErr_Occurred()) SWIG_fail;
7086 }
7087 resultobj = SWIG_Py_Void();
7088 return resultobj;
7089fail:
7090 return NULL;
5cbf236d
RD
7091}
7092
7093
1bd55598
RD
7094SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7095 PyObject *resultobj = 0;
7096 wxGauge *arg1 = (wxGauge *) 0 ;
7097 int result;
7098 void *argp1 = 0 ;
7099 int res1 = 0 ;
7100 PyObject *swig_obj[1] ;
7101
7102 if (!args) SWIG_fail;
7103 swig_obj[0] = args;
7104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7105 if (!SWIG_IsOK(res1)) {
7106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7107 }
7108 arg1 = reinterpret_cast< wxGauge * >(argp1);
7109 {
7110 PyThreadState* __tstate = wxPyBeginAllowThreads();
7111 result = (int)((wxGauge const *)arg1)->GetValue();
7112 wxPyEndAllowThreads(__tstate);
7113 if (PyErr_Occurred()) SWIG_fail;
7114 }
7115 resultobj = SWIG_From_int(static_cast< int >(result));
7116 return resultobj;
7117fail:
7118 return NULL;
f20a2e1f
RD
7119}
7120
7121
1bd55598
RD
7122SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7123 PyObject *resultobj = 0;
7124 wxGauge *arg1 = (wxGauge *) 0 ;
7125 bool result;
7126 void *argp1 = 0 ;
7127 int res1 = 0 ;
7128 PyObject *swig_obj[1] ;
7129
7130 if (!args) SWIG_fail;
7131 swig_obj[0] = args;
7132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7133 if (!SWIG_IsOK(res1)) {
7134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7135 }
7136 arg1 = reinterpret_cast< wxGauge * >(argp1);
7137 {
7138 PyThreadState* __tstate = wxPyBeginAllowThreads();
7139 result = (bool)((wxGauge const *)arg1)->IsVertical();
7140 wxPyEndAllowThreads(__tstate);
7141 if (PyErr_Occurred()) SWIG_fail;
7142 }
7143 {
7144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7145 }
7146 return resultobj;
7147fail:
7148 return NULL;
7149}
7150
7151
7152SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7153 PyObject *resultobj = 0;
7154 wxGauge *arg1 = (wxGauge *) 0 ;
7155 int arg2 ;
7156 void *argp1 = 0 ;
7157 int res1 = 0 ;
7158 int val2 ;
7159 int ecode2 = 0 ;
7160 PyObject * obj0 = 0 ;
7161 PyObject * obj1 = 0 ;
7162 char * kwnames[] = {
7163 (char *) "self",(char *) "w", NULL
7164 };
7165
7166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7168 if (!SWIG_IsOK(res1)) {
7169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7170 }
7171 arg1 = reinterpret_cast< wxGauge * >(argp1);
7172 ecode2 = SWIG_AsVal_int(obj1, &val2);
7173 if (!SWIG_IsOK(ecode2)) {
7174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7175 }
7176 arg2 = static_cast< int >(val2);
7177 {
7178 PyThreadState* __tstate = wxPyBeginAllowThreads();
7179 (arg1)->SetShadowWidth(arg2);
7180 wxPyEndAllowThreads(__tstate);
7181 if (PyErr_Occurred()) SWIG_fail;
7182 }
7183 resultobj = SWIG_Py_Void();
7184 return resultobj;
7185fail:
7186 return NULL;
d55e5bfc
RD
7187}
7188
7189
1bd55598
RD
7190SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7191 PyObject *resultobj = 0;
7192 wxGauge *arg1 = (wxGauge *) 0 ;
7193 int result;
7194 void *argp1 = 0 ;
7195 int res1 = 0 ;
7196 PyObject *swig_obj[1] ;
7197
7198 if (!args) SWIG_fail;
7199 swig_obj[0] = args;
7200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7201 if (!SWIG_IsOK(res1)) {
7202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7203 }
7204 arg1 = reinterpret_cast< wxGauge * >(argp1);
7205 {
7206 PyThreadState* __tstate = wxPyBeginAllowThreads();
7207 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7208 wxPyEndAllowThreads(__tstate);
7209 if (PyErr_Occurred()) SWIG_fail;
7210 }
7211 resultobj = SWIG_From_int(static_cast< int >(result));
7212 return resultobj;
7213fail:
7214 return NULL;
7215}
7216
7217
7218SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7219 PyObject *resultobj = 0;
7220 wxGauge *arg1 = (wxGauge *) 0 ;
7221 int arg2 ;
7222 void *argp1 = 0 ;
7223 int res1 = 0 ;
7224 int val2 ;
7225 int ecode2 = 0 ;
7226 PyObject * obj0 = 0 ;
7227 PyObject * obj1 = 0 ;
7228 char * kwnames[] = {
7229 (char *) "self",(char *) "w", NULL
7230 };
7231
7232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7234 if (!SWIG_IsOK(res1)) {
7235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7236 }
7237 arg1 = reinterpret_cast< wxGauge * >(argp1);
7238 ecode2 = SWIG_AsVal_int(obj1, &val2);
7239 if (!SWIG_IsOK(ecode2)) {
7240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7241 }
7242 arg2 = static_cast< int >(val2);
7243 {
7244 PyThreadState* __tstate = wxPyBeginAllowThreads();
7245 (arg1)->SetBezelFace(arg2);
7246 wxPyEndAllowThreads(__tstate);
7247 if (PyErr_Occurred()) SWIG_fail;
7248 }
7249 resultobj = SWIG_Py_Void();
7250 return resultobj;
7251fail:
7252 return NULL;
d55e5bfc
RD
7253}
7254
7255
1bd55598
RD
7256SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7257 PyObject *resultobj = 0;
7258 wxGauge *arg1 = (wxGauge *) 0 ;
7259 int result;
7260 void *argp1 = 0 ;
7261 int res1 = 0 ;
7262 PyObject *swig_obj[1] ;
7263
7264 if (!args) SWIG_fail;
7265 swig_obj[0] = args;
7266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7267 if (!SWIG_IsOK(res1)) {
7268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7269 }
7270 arg1 = reinterpret_cast< wxGauge * >(argp1);
7271 {
7272 PyThreadState* __tstate = wxPyBeginAllowThreads();
7273 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7274 wxPyEndAllowThreads(__tstate);
7275 if (PyErr_Occurred()) SWIG_fail;
7276 }
7277 resultobj = SWIG_From_int(static_cast< int >(result));
7278 return resultobj;
7279fail:
7280 return NULL;
7281}
7282
7283
7284SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7285 PyObject *resultobj = 0;
7286 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7287 SwigValueWrapper<wxVisualAttributes > result;
7288 int val1 ;
7289 int ecode1 = 0 ;
7290 PyObject * obj0 = 0 ;
7291 char * kwnames[] = {
7292 (char *) "variant", NULL
7293 };
7294
7295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7296 if (obj0) {
7297 ecode1 = SWIG_AsVal_int(obj0, &val1);
7298 if (!SWIG_IsOK(ecode1)) {
7299 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7300 }
7301 arg1 = static_cast< wxWindowVariant >(val1);
7302 }
7303 {
7304 if (!wxPyCheckForApp()) SWIG_fail;
7305 PyThreadState* __tstate = wxPyBeginAllowThreads();
7306 result = wxGauge::GetClassDefaultAttributes(arg1);
7307 wxPyEndAllowThreads(__tstate);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 }
7310 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7311 return resultobj;
7312fail:
7313 return NULL;
d55e5bfc
RD
7314}
7315
7316
1bd55598
RD
7317SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7318 PyObject *obj;
7319 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7320 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7321 return SWIG_Py_Void();
d55e5bfc
RD
7322}
7323
1bd55598
RD
7324SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7325 return SWIG_Python_InitShadowInstance(args);
7326}
d55e5bfc 7327
1bd55598
RD
7328SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7329 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7330 return 1;
d55e5bfc
RD
7331}
7332
7333
1bd55598
RD
7334SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7335 PyObject *pyobj = 0;
7336
7337 {
7338#if wxUSE_UNICODE
7339 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7340#else
7341 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7342#endif
7343 }
7344 return pyobj;
d55e5bfc
RD
7345}
7346
7347
1bd55598
RD
7348SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7349 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7350 return 1;
d55e5bfc
RD
7351}
7352
7353
1bd55598
RD
7354SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7355 PyObject *pyobj = 0;
7356
7357 {
7358#if wxUSE_UNICODE
7359 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7360#else
7361 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7362#endif
7363 }
7364 return pyobj;
d55e5bfc
RD
7365}
7366
7367
1bd55598
RD
7368SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7369 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7370 return 1;
d55e5bfc
RD
7371}
7372
7373
1bd55598
RD
7374SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7375 PyObject *pyobj = 0;
7376
7377 {
7378#if wxUSE_UNICODE
7379 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7380#else
7381 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7382#endif
7383 }
7384 return pyobj;
7385}
7386
7387
7388SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7389 PyObject *resultobj = 0;
7390 wxWindow *arg1 = (wxWindow *) 0 ;
7391 int arg2 = (int) -1 ;
7392 wxString const &arg3_defvalue = wxPyEmptyString ;
7393 wxString *arg3 = (wxString *) &arg3_defvalue ;
7394 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7395 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7396 wxSize const &arg5_defvalue = wxDefaultSize ;
7397 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7398 long arg6 = (long) 0 ;
7399 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7400 wxString *arg7 = (wxString *) &arg7_defvalue ;
7401 wxStaticBox *result = 0 ;
7402 void *argp1 = 0 ;
7403 int res1 = 0 ;
7404 int val2 ;
7405 int ecode2 = 0 ;
7406 bool temp3 = false ;
7407 wxPoint temp4 ;
7408 wxSize temp5 ;
7409 long val6 ;
7410 int ecode6 = 0 ;
7411 bool temp7 = false ;
7412 PyObject * obj0 = 0 ;
7413 PyObject * obj1 = 0 ;
7414 PyObject * obj2 = 0 ;
7415 PyObject * obj3 = 0 ;
7416 PyObject * obj4 = 0 ;
7417 PyObject * obj5 = 0 ;
7418 PyObject * obj6 = 0 ;
7419 char * kwnames[] = {
7420 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7421 };
7422
7423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7425 if (!SWIG_IsOK(res1)) {
7426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7427 }
7428 arg1 = reinterpret_cast< wxWindow * >(argp1);
7429 if (obj1) {
7430 ecode2 = SWIG_AsVal_int(obj1, &val2);
7431 if (!SWIG_IsOK(ecode2)) {
7432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7433 }
7434 arg2 = static_cast< int >(val2);
7435 }
7436 if (obj2) {
36ed4f51 7437 {
1bd55598
RD
7438 arg3 = wxString_in_helper(obj2);
7439 if (arg3 == NULL) SWIG_fail;
7440 temp3 = true;
36ed4f51 7441 }
1bd55598
RD
7442 }
7443 if (obj3) {
d55e5bfc 7444 {
1bd55598
RD
7445 arg4 = &temp4;
7446 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7447 }
1bd55598
RD
7448 }
7449 if (obj4) {
d55e5bfc 7450 {
1bd55598
RD
7451 arg5 = &temp5;
7452 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7453 }
1bd55598
RD
7454 }
7455 if (obj5) {
7456 ecode6 = SWIG_AsVal_long(obj5, &val6);
7457 if (!SWIG_IsOK(ecode6)) {
7458 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7459 }
7460 arg6 = static_cast< long >(val6);
7461 }
7462 if (obj6) {
36ed4f51 7463 {
1bd55598
RD
7464 arg7 = wxString_in_helper(obj6);
7465 if (arg7 == NULL) SWIG_fail;
7466 temp7 = true;
36ed4f51 7467 }
1bd55598
RD
7468 }
7469 {
7470 if (!wxPyCheckForApp()) SWIG_fail;
7471 PyThreadState* __tstate = wxPyBeginAllowThreads();
7472 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7473 wxPyEndAllowThreads(__tstate);
7474 if (PyErr_Occurred()) SWIG_fail;
7475 }
7476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7477 {
7478 if (temp3)
7479 delete arg3;
7480 }
7481 {
7482 if (temp7)
7483 delete arg7;
7484 }
7485 return resultobj;
7486fail:
7487 {
7488 if (temp3)
7489 delete arg3;
7490 }
7491 {
7492 if (temp7)
7493 delete arg7;
7494 }
7495 return NULL;
7496}
d55e5bfc 7497
1bd55598
RD
7498
7499SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7500 PyObject *resultobj = 0;
7501 wxStaticBox *result = 0 ;
7502
7503 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7504 {
7505 if (!wxPyCheckForApp()) SWIG_fail;
7506 PyThreadState* __tstate = wxPyBeginAllowThreads();
7507 result = (wxStaticBox *)new wxStaticBox();
7508 wxPyEndAllowThreads(__tstate);
7509 if (PyErr_Occurred()) SWIG_fail;
7510 }
7511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7512 return resultobj;
7513fail:
7514 return NULL;
7515}
7516
7517
7518SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7519 PyObject *resultobj = 0;
7520 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7521 wxWindow *arg2 = (wxWindow *) 0 ;
7522 int arg3 = (int) -1 ;
7523 wxString const &arg4_defvalue = wxPyEmptyString ;
7524 wxString *arg4 = (wxString *) &arg4_defvalue ;
7525 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7526 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7527 wxSize const &arg6_defvalue = wxDefaultSize ;
7528 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7529 long arg7 = (long) 0 ;
7530 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7531 wxString *arg8 = (wxString *) &arg8_defvalue ;
7532 bool result;
7533 void *argp1 = 0 ;
7534 int res1 = 0 ;
7535 void *argp2 = 0 ;
7536 int res2 = 0 ;
7537 int val3 ;
7538 int ecode3 = 0 ;
7539 bool temp4 = false ;
7540 wxPoint temp5 ;
7541 wxSize temp6 ;
7542 long val7 ;
7543 int ecode7 = 0 ;
7544 bool temp8 = false ;
7545 PyObject * obj0 = 0 ;
7546 PyObject * obj1 = 0 ;
7547 PyObject * obj2 = 0 ;
7548 PyObject * obj3 = 0 ;
7549 PyObject * obj4 = 0 ;
7550 PyObject * obj5 = 0 ;
7551 PyObject * obj6 = 0 ;
7552 PyObject * obj7 = 0 ;
7553 char * kwnames[] = {
7554 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7555 };
7556
7557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7559 if (!SWIG_IsOK(res1)) {
7560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7561 }
7562 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7563 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7564 if (!SWIG_IsOK(res2)) {
7565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7566 }
7567 arg2 = reinterpret_cast< wxWindow * >(argp2);
7568 if (obj2) {
7569 ecode3 = SWIG_AsVal_int(obj2, &val3);
7570 if (!SWIG_IsOK(ecode3)) {
7571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7572 }
7573 arg3 = static_cast< int >(val3);
7574 }
7575 if (obj3) {
36ed4f51 7576 {
1bd55598
RD
7577 arg4 = wxString_in_helper(obj3);
7578 if (arg4 == NULL) SWIG_fail;
7579 temp4 = true;
36ed4f51 7580 }
1bd55598
RD
7581 }
7582 if (obj4) {
d55e5bfc 7583 {
1bd55598
RD
7584 arg5 = &temp5;
7585 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7586 }
1bd55598
RD
7587 }
7588 if (obj5) {
d55e5bfc 7589 {
1bd55598
RD
7590 arg6 = &temp6;
7591 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 7592 }
1bd55598
RD
7593 }
7594 if (obj6) {
7595 ecode7 = SWIG_AsVal_long(obj6, &val7);
7596 if (!SWIG_IsOK(ecode7)) {
7597 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7598 }
7599 arg7 = static_cast< long >(val7);
7600 }
7601 if (obj7) {
36ed4f51 7602 {
1bd55598
RD
7603 arg8 = wxString_in_helper(obj7);
7604 if (arg8 == NULL) SWIG_fail;
7605 temp8 = true;
36ed4f51 7606 }
1bd55598
RD
7607 }
7608 {
7609 PyThreadState* __tstate = wxPyBeginAllowThreads();
7610 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7611 wxPyEndAllowThreads(__tstate);
7612 if (PyErr_Occurred()) SWIG_fail;
7613 }
7614 {
7615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7616 }
7617 {
7618 if (temp4)
7619 delete arg4;
7620 }
7621 {
7622 if (temp8)
7623 delete arg8;
7624 }
7625 return resultobj;
7626fail:
7627 {
7628 if (temp4)
7629 delete arg4;
7630 }
7631 {
7632 if (temp8)
7633 delete arg8;
7634 }
7635 return NULL;
d55e5bfc
RD
7636}
7637
7638
1bd55598
RD
7639SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7640 PyObject *resultobj = 0;
7641 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7642 SwigValueWrapper<wxVisualAttributes > result;
7643 int val1 ;
7644 int ecode1 = 0 ;
7645 PyObject * obj0 = 0 ;
7646 char * kwnames[] = {
7647 (char *) "variant", NULL
7648 };
7649
7650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7651 if (obj0) {
7652 ecode1 = SWIG_AsVal_int(obj0, &val1);
7653 if (!SWIG_IsOK(ecode1)) {
7654 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7655 }
7656 arg1 = static_cast< wxWindowVariant >(val1);
7657 }
7658 {
7659 if (!wxPyCheckForApp()) SWIG_fail;
7660 PyThreadState* __tstate = wxPyBeginAllowThreads();
7661 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7662 wxPyEndAllowThreads(__tstate);
7663 if (PyErr_Occurred()) SWIG_fail;
7664 }
7665 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7666 return resultobj;
7667fail:
7668 return NULL;
7669}
7670
7671
7672SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7673 PyObject *obj;
7674 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7675 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7676 return SWIG_Py_Void();
7677}
7678
7679SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7680 return SWIG_Python_InitShadowInstance(args);
7681}
7682
7683SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7684 PyObject *resultobj = 0;
7685 wxWindow *arg1 = (wxWindow *) 0 ;
7686 int arg2 = (int) -1 ;
7687 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7688 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7689 wxSize const &arg4_defvalue = wxDefaultSize ;
7690 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7691 long arg5 = (long) wxLI_HORIZONTAL ;
7692 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7693 wxString *arg6 = (wxString *) &arg6_defvalue ;
7694 wxStaticLine *result = 0 ;
7695 void *argp1 = 0 ;
7696 int res1 = 0 ;
7697 int val2 ;
7698 int ecode2 = 0 ;
7699 wxPoint temp3 ;
7700 wxSize temp4 ;
7701 long val5 ;
7702 int ecode5 = 0 ;
7703 bool temp6 = false ;
7704 PyObject * obj0 = 0 ;
7705 PyObject * obj1 = 0 ;
7706 PyObject * obj2 = 0 ;
7707 PyObject * obj3 = 0 ;
7708 PyObject * obj4 = 0 ;
7709 PyObject * obj5 = 0 ;
7710 char * kwnames[] = {
7711 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7712 };
7713
7714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7716 if (!SWIG_IsOK(res1)) {
7717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7718 }
7719 arg1 = reinterpret_cast< wxWindow * >(argp1);
7720 if (obj1) {
7721 ecode2 = SWIG_AsVal_int(obj1, &val2);
7722 if (!SWIG_IsOK(ecode2)) {
7723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7724 }
7725 arg2 = static_cast< int >(val2);
7726 }
7727 if (obj2) {
7728 {
7729 arg3 = &temp3;
7730 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
f20a2e1f 7731 }
1bd55598
RD
7732 }
7733 if (obj3) {
f20a2e1f 7734 {
1bd55598
RD
7735 arg4 = &temp4;
7736 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 7737 }
1bd55598
RD
7738 }
7739 if (obj4) {
7740 ecode5 = SWIG_AsVal_long(obj4, &val5);
7741 if (!SWIG_IsOK(ecode5)) {
7742 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7743 }
7744 arg5 = static_cast< long >(val5);
7745 }
7746 if (obj5) {
f20a2e1f 7747 {
1bd55598
RD
7748 arg6 = wxString_in_helper(obj5);
7749 if (arg6 == NULL) SWIG_fail;
7750 temp6 = true;
f20a2e1f 7751 }
1bd55598
RD
7752 }
7753 {
7754 if (!wxPyCheckForApp()) SWIG_fail;
7755 PyThreadState* __tstate = wxPyBeginAllowThreads();
7756 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7757 wxPyEndAllowThreads(__tstate);
7758 if (PyErr_Occurred()) SWIG_fail;
7759 }
7760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7761 {
7762 if (temp6)
7763 delete arg6;
7764 }
7765 return resultobj;
7766fail:
7767 {
7768 if (temp6)
7769 delete arg6;
7770 }
7771 return NULL;
d55e5bfc
RD
7772}
7773
7774
1bd55598
RD
7775SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7776 PyObject *resultobj = 0;
7777 wxStaticLine *result = 0 ;
7778
7779 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7780 {
7781 if (!wxPyCheckForApp()) SWIG_fail;
7782 PyThreadState* __tstate = wxPyBeginAllowThreads();
7783 result = (wxStaticLine *)new wxStaticLine();
7784 wxPyEndAllowThreads(__tstate);
7785 if (PyErr_Occurred()) SWIG_fail;
7786 }
7787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7788 return resultobj;
7789fail:
7790 return NULL;
7791}
7792
7793
7794SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7795 PyObject *resultobj = 0;
7796 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7797 wxWindow *arg2 = (wxWindow *) 0 ;
7798 int arg3 = (int) -1 ;
7799 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7800 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7801 wxSize const &arg5_defvalue = wxDefaultSize ;
7802 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7803 long arg6 = (long) wxLI_HORIZONTAL ;
7804 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7805 wxString *arg7 = (wxString *) &arg7_defvalue ;
7806 bool result;
7807 void *argp1 = 0 ;
7808 int res1 = 0 ;
7809 void *argp2 = 0 ;
7810 int res2 = 0 ;
7811 int val3 ;
7812 int ecode3 = 0 ;
7813 wxPoint temp4 ;
7814 wxSize temp5 ;
7815 long val6 ;
7816 int ecode6 = 0 ;
7817 bool temp7 = false ;
7818 PyObject * obj0 = 0 ;
7819 PyObject * obj1 = 0 ;
7820 PyObject * obj2 = 0 ;
7821 PyObject * obj3 = 0 ;
7822 PyObject * obj4 = 0 ;
7823 PyObject * obj5 = 0 ;
7824 PyObject * obj6 = 0 ;
7825 char * kwnames[] = {
7826 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7827 };
7828
7829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7831 if (!SWIG_IsOK(res1)) {
7832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7833 }
7834 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7835 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7836 if (!SWIG_IsOK(res2)) {
7837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7838 }
7839 arg2 = reinterpret_cast< wxWindow * >(argp2);
7840 if (obj2) {
7841 ecode3 = SWIG_AsVal_int(obj2, &val3);
7842 if (!SWIG_IsOK(ecode3)) {
7843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7844 }
7845 arg3 = static_cast< int >(val3);
7846 }
7847 if (obj3) {
d55e5bfc 7848 {
1bd55598
RD
7849 arg4 = &temp4;
7850 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7851 }
1bd55598
RD
7852 }
7853 if (obj4) {
d55e5bfc 7854 {
1bd55598
RD
7855 arg5 = &temp5;
7856 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7857 }
7858 }
7859 if (obj5) {
7860 ecode6 = SWIG_AsVal_long(obj5, &val6);
7861 if (!SWIG_IsOK(ecode6)) {
7862 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7863 }
7864 arg6 = static_cast< long >(val6);
7865 }
7866 if (obj6) {
7867 {
7868 arg7 = wxString_in_helper(obj6);
7869 if (arg7 == NULL) SWIG_fail;
7870 temp7 = true;
d55e5bfc 7871 }
1bd55598
RD
7872 }
7873 {
7874 PyThreadState* __tstate = wxPyBeginAllowThreads();
7875 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7876 wxPyEndAllowThreads(__tstate);
7877 if (PyErr_Occurred()) SWIG_fail;
7878 }
7879 {
7880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7881 }
7882 {
7883 if (temp7)
7884 delete arg7;
7885 }
7886 return resultobj;
7887fail:
7888 {
7889 if (temp7)
7890 delete arg7;
7891 }
7892 return NULL;
d55e5bfc
RD
7893}
7894
7895
1bd55598
RD
7896SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7897 PyObject *resultobj = 0;
7898 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7899 bool result;
7900 void *argp1 = 0 ;
7901 int res1 = 0 ;
7902 PyObject *swig_obj[1] ;
7903
7904 if (!args) SWIG_fail;
7905 swig_obj[0] = args;
7906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7907 if (!SWIG_IsOK(res1)) {
7908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7909 }
7910 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7911 {
7912 PyThreadState* __tstate = wxPyBeginAllowThreads();
7913 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7914 wxPyEndAllowThreads(__tstate);
7915 if (PyErr_Occurred()) SWIG_fail;
7916 }
7917 {
7918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7919 }
7920 return resultobj;
7921fail:
7922 return NULL;
d55e5bfc
RD
7923}
7924
7925
1bd55598
RD
7926SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7927 PyObject *resultobj = 0;
7928 int result;
7929
7930 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7931 {
7932 PyThreadState* __tstate = wxPyBeginAllowThreads();
7933 result = (int)wxStaticLine::GetDefaultSize();
7934 wxPyEndAllowThreads(__tstate);
7935 if (PyErr_Occurred()) SWIG_fail;
7936 }
7937 resultobj = SWIG_From_int(static_cast< int >(result));
7938 return resultobj;
7939fail:
7940 return NULL;
7941}
7942
7943
7944SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7945 PyObject *resultobj = 0;
7946 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7947 SwigValueWrapper<wxVisualAttributes > result;
7948 int val1 ;
7949 int ecode1 = 0 ;
7950 PyObject * obj0 = 0 ;
7951 char * kwnames[] = {
7952 (char *) "variant", NULL
7953 };
7954
7955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7956 if (obj0) {
7957 ecode1 = SWIG_AsVal_int(obj0, &val1);
7958 if (!SWIG_IsOK(ecode1)) {
7959 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7960 }
7961 arg1 = static_cast< wxWindowVariant >(val1);
7962 }
7963 {
7964 if (!wxPyCheckForApp()) SWIG_fail;
7965 PyThreadState* __tstate = wxPyBeginAllowThreads();
7966 result = wxStaticLine::GetClassDefaultAttributes(arg1);
7967 wxPyEndAllowThreads(__tstate);
7968 if (PyErr_Occurred()) SWIG_fail;
7969 }
7970 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7971 return resultobj;
7972fail:
7973 return NULL;
7974}
7975
7976
7977SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7978 PyObject *obj;
7979 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7980 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
7981 return SWIG_Py_Void();
7982}
7983
7984SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7985 return SWIG_Python_InitShadowInstance(args);
7986}
7987
7988SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7989 PyObject *resultobj = 0;
7990 wxWindow *arg1 = (wxWindow *) 0 ;
7991 int arg2 = (int) -1 ;
7992 wxString const &arg3_defvalue = wxPyEmptyString ;
7993 wxString *arg3 = (wxString *) &arg3_defvalue ;
7994 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7995 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7996 wxSize const &arg5_defvalue = wxDefaultSize ;
7997 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7998 long arg6 = (long) 0 ;
7999 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8000 wxString *arg7 = (wxString *) &arg7_defvalue ;
8001 wxStaticText *result = 0 ;
8002 void *argp1 = 0 ;
8003 int res1 = 0 ;
8004 int val2 ;
8005 int ecode2 = 0 ;
8006 bool temp3 = false ;
8007 wxPoint temp4 ;
8008 wxSize temp5 ;
8009 long val6 ;
8010 int ecode6 = 0 ;
8011 bool temp7 = false ;
8012 PyObject * obj0 = 0 ;
8013 PyObject * obj1 = 0 ;
8014 PyObject * obj2 = 0 ;
8015 PyObject * obj3 = 0 ;
8016 PyObject * obj4 = 0 ;
8017 PyObject * obj5 = 0 ;
8018 PyObject * obj6 = 0 ;
8019 char * kwnames[] = {
8020 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8021 };
8022
8023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8025 if (!SWIG_IsOK(res1)) {
8026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8027 }
8028 arg1 = reinterpret_cast< wxWindow * >(argp1);
8029 if (obj1) {
8030 ecode2 = SWIG_AsVal_int(obj1, &val2);
8031 if (!SWIG_IsOK(ecode2)) {
8032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8033 }
8034 arg2 = static_cast< int >(val2);
8035 }
8036 if (obj2) {
d55e5bfc 8037 {
1bd55598
RD
8038 arg3 = wxString_in_helper(obj2);
8039 if (arg3 == NULL) SWIG_fail;
8040 temp3 = true;
d55e5bfc 8041 }
1bd55598
RD
8042 }
8043 if (obj3) {
d55e5bfc 8044 {
1bd55598
RD
8045 arg4 = &temp4;
8046 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8047 }
1bd55598
RD
8048 }
8049 if (obj4) {
d55e5bfc 8050 {
1bd55598
RD
8051 arg5 = &temp5;
8052 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8053 }
1bd55598
RD
8054 }
8055 if (obj5) {
8056 ecode6 = SWIG_AsVal_long(obj5, &val6);
8057 if (!SWIG_IsOK(ecode6)) {
8058 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8059 }
8060 arg6 = static_cast< long >(val6);
8061 }
8062 if (obj6) {
d55e5bfc 8063 {
1bd55598
RD
8064 arg7 = wxString_in_helper(obj6);
8065 if (arg7 == NULL) SWIG_fail;
8066 temp7 = true;
d55e5bfc 8067 }
1bd55598
RD
8068 }
8069 {
8070 if (!wxPyCheckForApp()) SWIG_fail;
8071 PyThreadState* __tstate = wxPyBeginAllowThreads();
8072 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8073 wxPyEndAllowThreads(__tstate);
8074 if (PyErr_Occurred()) SWIG_fail;
8075 }
8076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8077 {
8078 if (temp3)
8079 delete arg3;
8080 }
8081 {
8082 if (temp7)
8083 delete arg7;
8084 }
8085 return resultobj;
8086fail:
8087 {
8088 if (temp3)
8089 delete arg3;
8090 }
8091 {
8092 if (temp7)
8093 delete arg7;
8094 }
8095 return NULL;
d55e5bfc
RD
8096}
8097
8098
1bd55598
RD
8099SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8100 PyObject *resultobj = 0;
8101 wxStaticText *result = 0 ;
8102
8103 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8104 {
8105 if (!wxPyCheckForApp()) SWIG_fail;
8106 PyThreadState* __tstate = wxPyBeginAllowThreads();
8107 result = (wxStaticText *)new wxStaticText();
8108 wxPyEndAllowThreads(__tstate);
8109 if (PyErr_Occurred()) SWIG_fail;
8110 }
8111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8112 return resultobj;
8113fail:
8114 return NULL;
8115}
8116
8117
8118SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8119 PyObject *resultobj = 0;
8120 wxStaticText *arg1 = (wxStaticText *) 0 ;
8121 wxWindow *arg2 = (wxWindow *) 0 ;
8122 int arg3 = (int) -1 ;
8123 wxString const &arg4_defvalue = wxPyEmptyString ;
8124 wxString *arg4 = (wxString *) &arg4_defvalue ;
8125 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8126 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8127 wxSize const &arg6_defvalue = wxDefaultSize ;
8128 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8129 long arg7 = (long) 0 ;
8130 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8131 wxString *arg8 = (wxString *) &arg8_defvalue ;
8132 bool result;
8133 void *argp1 = 0 ;
8134 int res1 = 0 ;
8135 void *argp2 = 0 ;
8136 int res2 = 0 ;
8137 int val3 ;
8138 int ecode3 = 0 ;
8139 bool temp4 = false ;
8140 wxPoint temp5 ;
8141 wxSize temp6 ;
8142 long val7 ;
8143 int ecode7 = 0 ;
8144 bool temp8 = false ;
8145 PyObject * obj0 = 0 ;
8146 PyObject * obj1 = 0 ;
8147 PyObject * obj2 = 0 ;
8148 PyObject * obj3 = 0 ;
8149 PyObject * obj4 = 0 ;
8150 PyObject * obj5 = 0 ;
8151 PyObject * obj6 = 0 ;
8152 PyObject * obj7 = 0 ;
8153 char * kwnames[] = {
8154 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8155 };
8156
8157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8159 if (!SWIG_IsOK(res1)) {
8160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8161 }
8162 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8163 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8164 if (!SWIG_IsOK(res2)) {
8165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8166 }
8167 arg2 = reinterpret_cast< wxWindow * >(argp2);
8168 if (obj2) {
8169 ecode3 = SWIG_AsVal_int(obj2, &val3);
8170 if (!SWIG_IsOK(ecode3)) {
8171 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8172 }
8173 arg3 = static_cast< int >(val3);
8174 }
8175 if (obj3) {
d55e5bfc 8176 {
1bd55598
RD
8177 arg4 = wxString_in_helper(obj3);
8178 if (arg4 == NULL) SWIG_fail;
8179 temp4 = true;
d55e5bfc 8180 }
1bd55598
RD
8181 }
8182 if (obj4) {
d55e5bfc 8183 {
1bd55598
RD
8184 arg5 = &temp5;
8185 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8186 }
1bd55598
RD
8187 }
8188 if (obj5) {
d55e5bfc 8189 {
1bd55598
RD
8190 arg6 = &temp6;
8191 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 8192 }
1bd55598
RD
8193 }
8194 if (obj6) {
8195 ecode7 = SWIG_AsVal_long(obj6, &val7);
8196 if (!SWIG_IsOK(ecode7)) {
8197 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8198 }
8199 arg7 = static_cast< long >(val7);
8200 }
8201 if (obj7) {
d55e5bfc 8202 {
1bd55598
RD
8203 arg8 = wxString_in_helper(obj7);
8204 if (arg8 == NULL) SWIG_fail;
8205 temp8 = true;
d55e5bfc 8206 }
1bd55598
RD
8207 }
8208 {
8209 PyThreadState* __tstate = wxPyBeginAllowThreads();
8210 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8211 wxPyEndAllowThreads(__tstate);
8212 if (PyErr_Occurred()) SWIG_fail;
8213 }
8214 {
8215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8216 }
8217 {
8218 if (temp4)
8219 delete arg4;
8220 }
8221 {
8222 if (temp8)
8223 delete arg8;
8224 }
8225 return resultobj;
8226fail:
8227 {
8228 if (temp4)
8229 delete arg4;
8230 }
8231 {
8232 if (temp8)
8233 delete arg8;
8234 }
8235 return NULL;
8236}
8237
8238
8239SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8240 PyObject *resultobj = 0;
8241 wxStaticText *arg1 = (wxStaticText *) 0 ;
8242 int arg2 ;
8243 void *argp1 = 0 ;
8244 int res1 = 0 ;
8245 int val2 ;
8246 int ecode2 = 0 ;
8247 PyObject * obj0 = 0 ;
8248 PyObject * obj1 = 0 ;
8249 char * kwnames[] = {
8250 (char *) "self",(char *) "width", NULL
8251 };
8252
8253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8255 if (!SWIG_IsOK(res1)) {
8256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8257 }
8258 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8259 ecode2 = SWIG_AsVal_int(obj1, &val2);
8260 if (!SWIG_IsOK(ecode2)) {
8261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8262 }
8263 arg2 = static_cast< int >(val2);
8264 {
8265 PyThreadState* __tstate = wxPyBeginAllowThreads();
8266 (arg1)->Wrap(arg2);
8267 wxPyEndAllowThreads(__tstate);
8268 if (PyErr_Occurred()) SWIG_fail;
8269 }
8270 resultobj = SWIG_Py_Void();
8271 return resultobj;
8272fail:
8273 return NULL;
8274}
8275
8276
8277SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8278 PyObject *resultobj = 0;
8279 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8280 SwigValueWrapper<wxVisualAttributes > result;
8281 int val1 ;
8282 int ecode1 = 0 ;
8283 PyObject * obj0 = 0 ;
8284 char * kwnames[] = {
8285 (char *) "variant", NULL
8286 };
8287
8288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8289 if (obj0) {
8290 ecode1 = SWIG_AsVal_int(obj0, &val1);
8291 if (!SWIG_IsOK(ecode1)) {
8292 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8293 }
8294 arg1 = static_cast< wxWindowVariant >(val1);
8295 }
8296 {
8297 if (!wxPyCheckForApp()) SWIG_fail;
8298 PyThreadState* __tstate = wxPyBeginAllowThreads();
8299 result = wxStaticText::GetClassDefaultAttributes(arg1);
8300 wxPyEndAllowThreads(__tstate);
8301 if (PyErr_Occurred()) SWIG_fail;
8302 }
8303 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8304 return resultobj;
8305fail:
8306 return NULL;
8307}
8308
8309
8310SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8311 PyObject *obj;
8312 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8313 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8314 return SWIG_Py_Void();
8315}
8316
8317SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8318 return SWIG_Python_InitShadowInstance(args);
8319}
8320
8321SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8322 PyObject *resultobj = 0;
8323 wxWindow *arg1 = (wxWindow *) 0 ;
8324 int arg2 = (int) -1 ;
8325 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8326 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8327 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8328 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8329 wxSize const &arg5_defvalue = wxDefaultSize ;
8330 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8331 long arg6 = (long) 0 ;
8332 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8333 wxString *arg7 = (wxString *) &arg7_defvalue ;
8334 wxStaticBitmap *result = 0 ;
8335 void *argp1 = 0 ;
8336 int res1 = 0 ;
8337 int val2 ;
8338 int ecode2 = 0 ;
8339 void *argp3 = 0 ;
8340 int res3 = 0 ;
8341 wxPoint temp4 ;
8342 wxSize temp5 ;
8343 long val6 ;
8344 int ecode6 = 0 ;
8345 bool temp7 = false ;
8346 PyObject * obj0 = 0 ;
8347 PyObject * obj1 = 0 ;
8348 PyObject * obj2 = 0 ;
8349 PyObject * obj3 = 0 ;
8350 PyObject * obj4 = 0 ;
8351 PyObject * obj5 = 0 ;
8352 PyObject * obj6 = 0 ;
8353 char * kwnames[] = {
8354 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8355 };
8356
8357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8359 if (!SWIG_IsOK(res1)) {
8360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8361 }
8362 arg1 = reinterpret_cast< wxWindow * >(argp1);
8363 if (obj1) {
8364 ecode2 = SWIG_AsVal_int(obj1, &val2);
8365 if (!SWIG_IsOK(ecode2)) {
8366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8367 }
8368 arg2 = static_cast< int >(val2);
8369 }
8370 if (obj2) {
8371 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8372 if (!SWIG_IsOK(res3)) {
8373 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 8374 }
1bd55598
RD
8375 if (!argp3) {
8376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 8377 }
1bd55598
RD
8378 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8379 }
8380 if (obj3) {
d55e5bfc 8381 {
1bd55598
RD
8382 arg4 = &temp4;
8383 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 8384 }
1bd55598
RD
8385 }
8386 if (obj4) {
f20a2e1f 8387 {
1bd55598
RD
8388 arg5 = &temp5;
8389 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 8390 }
1bd55598
RD
8391 }
8392 if (obj5) {
8393 ecode6 = SWIG_AsVal_long(obj5, &val6);
8394 if (!SWIG_IsOK(ecode6)) {
8395 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8396 }
8397 arg6 = static_cast< long >(val6);
8398 }
8399 if (obj6) {
f20a2e1f 8400 {
1bd55598
RD
8401 arg7 = wxString_in_helper(obj6);
8402 if (arg7 == NULL) SWIG_fail;
8403 temp7 = true;
f20a2e1f 8404 }
1bd55598
RD
8405 }
8406 {
8407 if (!wxPyCheckForApp()) SWIG_fail;
8408 PyThreadState* __tstate = wxPyBeginAllowThreads();
8409 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8410 wxPyEndAllowThreads(__tstate);
8411 if (PyErr_Occurred()) SWIG_fail;
8412 }
8413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8414 {
8415 if (temp7)
8416 delete arg7;
8417 }
8418 return resultobj;
8419fail:
8420 {
8421 if (temp7)
8422 delete arg7;
8423 }
8424 return NULL;
f20a2e1f
RD
8425}
8426
8427
1bd55598
RD
8428SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8429 PyObject *resultobj = 0;
8430 wxStaticBitmap *result = 0 ;
8431
8432 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8433 {
8434 if (!wxPyCheckForApp()) SWIG_fail;
8435 PyThreadState* __tstate = wxPyBeginAllowThreads();
8436 result = (wxStaticBitmap *)new wxStaticBitmap();
8437 wxPyEndAllowThreads(__tstate);
8438 if (PyErr_Occurred()) SWIG_fail;
8439 }
8440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8441 return resultobj;
8442fail:
8443 return NULL;
8444}
8445
8446
8447SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8448 PyObject *resultobj = 0;
8449 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8450 wxWindow *arg2 = (wxWindow *) 0 ;
8451 int arg3 = (int) -1 ;
8452 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8453 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8454 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8455 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8456 wxSize const &arg6_defvalue = wxDefaultSize ;
8457 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8458 long arg7 = (long) 0 ;
8459 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8460 wxString *arg8 = (wxString *) &arg8_defvalue ;
8461 bool result;
8462 void *argp1 = 0 ;
8463 int res1 = 0 ;
8464 void *argp2 = 0 ;
8465 int res2 = 0 ;
8466 int val3 ;
8467 int ecode3 = 0 ;
8468 void *argp4 = 0 ;
8469 int res4 = 0 ;
8470 wxPoint temp5 ;
8471 wxSize temp6 ;
8472 long val7 ;
8473 int ecode7 = 0 ;
8474 bool temp8 = false ;
8475 PyObject * obj0 = 0 ;
8476 PyObject * obj1 = 0 ;
8477 PyObject * obj2 = 0 ;
8478 PyObject * obj3 = 0 ;
8479 PyObject * obj4 = 0 ;
8480 PyObject * obj5 = 0 ;
8481 PyObject * obj6 = 0 ;
8482 PyObject * obj7 = 0 ;
8483 char * kwnames[] = {
8484 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8485 };
8486
8487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8489 if (!SWIG_IsOK(res1)) {
8490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8491 }
8492 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8493 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8494 if (!SWIG_IsOK(res2)) {
8495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8496 }
8497 arg2 = reinterpret_cast< wxWindow * >(argp2);
8498 if (obj2) {
8499 ecode3 = SWIG_AsVal_int(obj2, &val3);
8500 if (!SWIG_IsOK(ecode3)) {
8501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8502 }
8503 arg3 = static_cast< int >(val3);
8504 }
8505 if (obj3) {
8506 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8507 if (!SWIG_IsOK(res4)) {
8508 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 8509 }
1bd55598
RD
8510 if (!argp4) {
8511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 8512 }
1bd55598
RD
8513 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8514 }
8515 if (obj4) {
d55e5bfc 8516 {
1bd55598
RD
8517 arg5 = &temp5;
8518 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8519 }
1bd55598
RD
8520 }
8521 if (obj5) {
d55e5bfc 8522 {
1bd55598
RD
8523 arg6 = &temp6;
8524 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 8525 }
1bd55598
RD
8526 }
8527 if (obj6) {
8528 ecode7 = SWIG_AsVal_long(obj6, &val7);
8529 if (!SWIG_IsOK(ecode7)) {
8530 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8531 }
8532 arg7 = static_cast< long >(val7);
8533 }
8534 if (obj7) {
d55e5bfc 8535 {
1bd55598
RD
8536 arg8 = wxString_in_helper(obj7);
8537 if (arg8 == NULL) SWIG_fail;
8538 temp8 = true;
d55e5bfc 8539 }
1bd55598
RD
8540 }
8541 {
8542 PyThreadState* __tstate = wxPyBeginAllowThreads();
8543 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8544 wxPyEndAllowThreads(__tstate);
8545 if (PyErr_Occurred()) SWIG_fail;
8546 }
8547 {
8548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8549 }
8550 {
8551 if (temp8)
8552 delete arg8;
8553 }
8554 return resultobj;
8555fail:
8556 {
8557 if (temp8)
8558 delete arg8;
8559 }
8560 return NULL;
d55e5bfc
RD
8561}
8562
8563
1bd55598
RD
8564SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8565 PyObject *resultobj = 0;
8566 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8567 wxBitmap result;
8568 void *argp1 = 0 ;
8569 int res1 = 0 ;
8570 PyObject *swig_obj[1] ;
8571
8572 if (!args) SWIG_fail;
8573 swig_obj[0] = args;
8574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8575 if (!SWIG_IsOK(res1)) {
8576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8577 }
8578 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8579 {
8580 PyThreadState* __tstate = wxPyBeginAllowThreads();
8581 result = (arg1)->GetBitmap();
8582 wxPyEndAllowThreads(__tstate);
8583 if (PyErr_Occurred()) SWIG_fail;
8584 }
8585 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8586 return resultobj;
8587fail:
8588 return NULL;
8589}
8590
8591
8592SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8593 PyObject *resultobj = 0;
8594 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8595 wxBitmap *arg2 = 0 ;
8596 void *argp1 = 0 ;
8597 int res1 = 0 ;
8598 void *argp2 = 0 ;
8599 int res2 = 0 ;
8600 PyObject * obj0 = 0 ;
8601 PyObject * obj1 = 0 ;
8602 char * kwnames[] = {
8603 (char *) "self",(char *) "bitmap", NULL
8604 };
8605
8606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8608 if (!SWIG_IsOK(res1)) {
8609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8610 }
8611 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8612 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8613 if (!SWIG_IsOK(res2)) {
8614 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8615 }
8616 if (!argp2) {
8617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8618 }
8619 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8620 {
8621 PyThreadState* __tstate = wxPyBeginAllowThreads();
8622 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8623 wxPyEndAllowThreads(__tstate);
8624 if (PyErr_Occurred()) SWIG_fail;
8625 }
8626 resultobj = SWIG_Py_Void();
8627 return resultobj;
8628fail:
8629 return NULL;
8630}
8631
8632
8633SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8634 PyObject *resultobj = 0;
8635 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8636 wxIcon *arg2 = 0 ;
8637 void *argp1 = 0 ;
8638 int res1 = 0 ;
8639 void *argp2 = 0 ;
8640 int res2 = 0 ;
8641 PyObject * obj0 = 0 ;
8642 PyObject * obj1 = 0 ;
8643 char * kwnames[] = {
8644 (char *) "self",(char *) "icon", NULL
8645 };
8646
8647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8649 if (!SWIG_IsOK(res1)) {
8650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8651 }
8652 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8653 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8654 if (!SWIG_IsOK(res2)) {
8655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8656 }
8657 if (!argp2) {
8658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8659 }
8660 arg2 = reinterpret_cast< wxIcon * >(argp2);
8661 {
8662 PyThreadState* __tstate = wxPyBeginAllowThreads();
8663 (arg1)->SetIcon((wxIcon const &)*arg2);
8664 wxPyEndAllowThreads(__tstate);
8665 if (PyErr_Occurred()) SWIG_fail;
8666 }
8667 resultobj = SWIG_Py_Void();
8668 return resultobj;
8669fail:
8670 return NULL;
8671}
8672
8673
8674SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8675 PyObject *resultobj = 0;
8676 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8677 SwigValueWrapper<wxVisualAttributes > result;
8678 int val1 ;
8679 int ecode1 = 0 ;
8680 PyObject * obj0 = 0 ;
8681 char * kwnames[] = {
8682 (char *) "variant", NULL
8683 };
8684
8685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8686 if (obj0) {
8687 ecode1 = SWIG_AsVal_int(obj0, &val1);
8688 if (!SWIG_IsOK(ecode1)) {
8689 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8690 }
8691 arg1 = static_cast< wxWindowVariant >(val1);
8692 }
8693 {
8694 if (!wxPyCheckForApp()) SWIG_fail;
8695 PyThreadState* __tstate = wxPyBeginAllowThreads();
8696 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8697 wxPyEndAllowThreads(__tstate);
8698 if (PyErr_Occurred()) SWIG_fail;
8699 }
8700 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8701 return resultobj;
8702fail:
8703 return NULL;
d55e5bfc
RD
8704}
8705
8706
1bd55598
RD
8707SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8708 PyObject *obj;
8709 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8710 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8711 return SWIG_Py_Void();
d55e5bfc
RD
8712}
8713
1bd55598
RD
8714SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8715 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8716}
8717
1bd55598
RD
8718SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8719 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8720 return 1;
f20a2e1f
RD
8721}
8722
8723
1bd55598
RD
8724SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8725 PyObject *pyobj = 0;
8726
8727 {
8728#if wxUSE_UNICODE
8729 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8730#else
8731 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8732#endif
8733 }
8734 return pyobj;
8735}
8736
8737
8738SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8739 PyObject *resultobj = 0;
8740 wxWindow *arg1 = (wxWindow *) 0 ;
8741 int arg2 = (int) -1 ;
8742 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8743 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8744 wxSize const &arg4_defvalue = wxDefaultSize ;
8745 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8746 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8747 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8748 long arg6 = (long) 0 ;
8749 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8750 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8751 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8752 wxString *arg8 = (wxString *) &arg8_defvalue ;
8753 wxListBox *result = 0 ;
8754 void *argp1 = 0 ;
8755 int res1 = 0 ;
8756 int val2 ;
8757 int ecode2 = 0 ;
8758 wxPoint temp3 ;
8759 wxSize temp4 ;
8760 bool temp5 = false ;
8761 long val6 ;
8762 int ecode6 = 0 ;
8763 void *argp7 = 0 ;
8764 int res7 = 0 ;
8765 bool temp8 = false ;
8766 PyObject * obj0 = 0 ;
8767 PyObject * obj1 = 0 ;
8768 PyObject * obj2 = 0 ;
8769 PyObject * obj3 = 0 ;
8770 PyObject * obj4 = 0 ;
8771 PyObject * obj5 = 0 ;
8772 PyObject * obj6 = 0 ;
8773 PyObject * obj7 = 0 ;
8774 char * kwnames[] = {
8775 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8776 };
8777
8778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8780 if (!SWIG_IsOK(res1)) {
8781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8782 }
8783 arg1 = reinterpret_cast< wxWindow * >(argp1);
8784 if (obj1) {
8785 ecode2 = SWIG_AsVal_int(obj1, &val2);
8786 if (!SWIG_IsOK(ecode2)) {
8787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8788 }
8789 arg2 = static_cast< int >(val2);
8790 }
8791 if (obj2) {
d55e5bfc 8792 {
1bd55598
RD
8793 arg3 = &temp3;
8794 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 8795 }
1bd55598
RD
8796 }
8797 if (obj3) {
d55e5bfc 8798 {
1bd55598
RD
8799 arg4 = &temp4;
8800 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8801 }
1bd55598
RD
8802 }
8803 if (obj4) {
d55e5bfc 8804 {
1bd55598
RD
8805 if (! PySequence_Check(obj4)) {
8806 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8807 SWIG_fail;
8808 }
8809 arg5 = new wxArrayString;
8810 temp5 = true;
8811 int i, len=PySequence_Length(obj4);
8812 for (i=0; i<len; i++) {
8813 PyObject* item = PySequence_GetItem(obj4, i);
8814 wxString* s = wxString_in_helper(item);
8815 if (PyErr_Occurred()) SWIG_fail;
8816 arg5->Add(*s);
8817 delete s;
8818 Py_DECREF(item);
8819 }
d55e5bfc 8820 }
1bd55598
RD
8821 }
8822 if (obj5) {
8823 ecode6 = SWIG_AsVal_long(obj5, &val6);
8824 if (!SWIG_IsOK(ecode6)) {
8825 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8826 }
8827 arg6 = static_cast< long >(val6);
8828 }
8829 if (obj6) {
8830 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8831 if (!SWIG_IsOK(res7)) {
8832 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8833 }
1bd55598
RD
8834 if (!argp7) {
8835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8836 }
1bd55598
RD
8837 arg7 = reinterpret_cast< wxValidator * >(argp7);
8838 }
8839 if (obj7) {
d55e5bfc 8840 {
1bd55598
RD
8841 arg8 = wxString_in_helper(obj7);
8842 if (arg8 == NULL) SWIG_fail;
8843 temp8 = true;
d55e5bfc 8844 }
1bd55598
RD
8845 }
8846 {
8847 if (!wxPyCheckForApp()) SWIG_fail;
8848 PyThreadState* __tstate = wxPyBeginAllowThreads();
8849 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8850 wxPyEndAllowThreads(__tstate);
8851 if (PyErr_Occurred()) SWIG_fail;
8852 }
8853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8854 {
8855 if (temp5) delete arg5;
8856 }
8857 {
8858 if (temp8)
8859 delete arg8;
8860 }
8861 return resultobj;
8862fail:
8863 {
8864 if (temp5) delete arg5;
8865 }
8866 {
8867 if (temp8)
8868 delete arg8;
8869 }
8870 return NULL;
d55e5bfc
RD
8871}
8872
8873
1bd55598
RD
8874SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8875 PyObject *resultobj = 0;
8876 wxListBox *result = 0 ;
8877
8878 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8879 {
8880 if (!wxPyCheckForApp()) SWIG_fail;
8881 PyThreadState* __tstate = wxPyBeginAllowThreads();
8882 result = (wxListBox *)new wxListBox();
8883 wxPyEndAllowThreads(__tstate);
8884 if (PyErr_Occurred()) SWIG_fail;
8885 }
8886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8887 return resultobj;
8888fail:
8889 return NULL;
8890}
8891
8892
8893SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8894 PyObject *resultobj = 0;
8895 wxListBox *arg1 = (wxListBox *) 0 ;
8896 wxWindow *arg2 = (wxWindow *) 0 ;
8897 int arg3 = (int) -1 ;
8898 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8899 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8900 wxSize const &arg5_defvalue = wxDefaultSize ;
8901 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8902 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8903 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8904 long arg7 = (long) 0 ;
8905 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8906 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8907 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8908 wxString *arg9 = (wxString *) &arg9_defvalue ;
8909 bool result;
8910 void *argp1 = 0 ;
8911 int res1 = 0 ;
8912 void *argp2 = 0 ;
8913 int res2 = 0 ;
8914 int val3 ;
8915 int ecode3 = 0 ;
8916 wxPoint temp4 ;
8917 wxSize temp5 ;
8918 bool temp6 = false ;
8919 long val7 ;
8920 int ecode7 = 0 ;
8921 void *argp8 = 0 ;
8922 int res8 = 0 ;
8923 bool temp9 = false ;
8924 PyObject * obj0 = 0 ;
8925 PyObject * obj1 = 0 ;
8926 PyObject * obj2 = 0 ;
8927 PyObject * obj3 = 0 ;
8928 PyObject * obj4 = 0 ;
8929 PyObject * obj5 = 0 ;
8930 PyObject * obj6 = 0 ;
8931 PyObject * obj7 = 0 ;
8932 PyObject * obj8 = 0 ;
8933 char * kwnames[] = {
8934 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8935 };
8936
8937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8939 if (!SWIG_IsOK(res1)) {
8940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8941 }
8942 arg1 = reinterpret_cast< wxListBox * >(argp1);
8943 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8944 if (!SWIG_IsOK(res2)) {
8945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8946 }
8947 arg2 = reinterpret_cast< wxWindow * >(argp2);
8948 if (obj2) {
8949 ecode3 = SWIG_AsVal_int(obj2, &val3);
8950 if (!SWIG_IsOK(ecode3)) {
8951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8952 }
8953 arg3 = static_cast< int >(val3);
8954 }
8955 if (obj3) {
d55e5bfc 8956 {
1bd55598
RD
8957 arg4 = &temp4;
8958 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8959 }
1bd55598
RD
8960 }
8961 if (obj4) {
d55e5bfc 8962 {
1bd55598
RD
8963 arg5 = &temp5;
8964 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8965 }
1bd55598
RD
8966 }
8967 if (obj5) {
943e8dfd 8968 {
1bd55598
RD
8969 if (! PySequence_Check(obj5)) {
8970 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8971 SWIG_fail;
8972 }
8973 arg6 = new wxArrayString;
8974 temp6 = true;
8975 int i, len=PySequence_Length(obj5);
8976 for (i=0; i<len; i++) {
8977 PyObject* item = PySequence_GetItem(obj5, i);
8978 wxString* s = wxString_in_helper(item);
8979 if (PyErr_Occurred()) SWIG_fail;
8980 arg6->Add(*s);
8981 delete s;
8982 Py_DECREF(item);
8983 }
943e8dfd 8984 }
1bd55598
RD
8985 }
8986 if (obj6) {
8987 ecode7 = SWIG_AsVal_long(obj6, &val7);
8988 if (!SWIG_IsOK(ecode7)) {
8989 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
8990 }
8991 arg7 = static_cast< long >(val7);
8992 }
8993 if (obj7) {
8994 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
8995 if (!SWIG_IsOK(res8)) {
8996 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
943e8dfd 8997 }
1bd55598
RD
8998 if (!argp8) {
8999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
f20a2e1f 9000 }
1bd55598
RD
9001 arg8 = reinterpret_cast< wxValidator * >(argp8);
9002 }
9003 if (obj8) {
f20a2e1f 9004 {
1bd55598
RD
9005 arg9 = wxString_in_helper(obj8);
9006 if (arg9 == NULL) SWIG_fail;
9007 temp9 = true;
f20a2e1f 9008 }
1bd55598
RD
9009 }
9010 {
9011 PyThreadState* __tstate = wxPyBeginAllowThreads();
9012 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9013 wxPyEndAllowThreads(__tstate);
9014 if (PyErr_Occurred()) SWIG_fail;
9015 }
9016 {
9017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9018 }
9019 {
9020 if (temp6) delete arg6;
9021 }
9022 {
9023 if (temp9)
9024 delete arg9;
9025 }
9026 return resultobj;
9027fail:
9028 {
9029 if (temp6) delete arg6;
9030 }
9031 {
9032 if (temp9)
9033 delete arg9;
9034 }
9035 return NULL;
9036}
9037
9038
9039SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9040 PyObject *resultobj = 0;
9041 wxListBox *arg1 = (wxListBox *) 0 ;
9042 wxString *arg2 = 0 ;
9043 int arg3 ;
9044 PyObject *arg4 = (PyObject *) NULL ;
9045 void *argp1 = 0 ;
9046 int res1 = 0 ;
9047 bool temp2 = false ;
9048 int val3 ;
9049 int ecode3 = 0 ;
9050 PyObject * obj0 = 0 ;
9051 PyObject * obj1 = 0 ;
9052 PyObject * obj2 = 0 ;
9053 PyObject * obj3 = 0 ;
9054 char * kwnames[] = {
9055 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9056 };
9057
9058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9060 if (!SWIG_IsOK(res1)) {
9061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9062 }
9063 arg1 = reinterpret_cast< wxListBox * >(argp1);
9064 {
9065 arg2 = wxString_in_helper(obj1);
9066 if (arg2 == NULL) SWIG_fail;
9067 temp2 = true;
9068 }
9069 ecode3 = SWIG_AsVal_int(obj2, &val3);
9070 if (!SWIG_IsOK(ecode3)) {
9071 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9072 }
9073 arg3 = static_cast< int >(val3);
9074 if (obj3) {
9075 arg4 = obj3;
9076 }
9077 {
9078 PyThreadState* __tstate = wxPyBeginAllowThreads();
9079 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9080 wxPyEndAllowThreads(__tstate);
9081 if (PyErr_Occurred()) SWIG_fail;
9082 }
9083 resultobj = SWIG_Py_Void();
9084 {
9085 if (temp2)
9086 delete arg2;
9087 }
9088 return resultobj;
9089fail:
9090 {
9091 if (temp2)
9092 delete arg2;
9093 }
9094 return NULL;
9095}
9096
9097
9098SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9099 PyObject *resultobj = 0;
9100 wxListBox *arg1 = (wxListBox *) 0 ;
9101 wxArrayString *arg2 = 0 ;
50f151d7 9102 unsigned int arg3 ;
1bd55598
RD
9103 void *argp1 = 0 ;
9104 int res1 = 0 ;
9105 bool temp2 = false ;
50f151d7 9106 unsigned int val3 ;
1bd55598
RD
9107 int ecode3 = 0 ;
9108 PyObject * obj0 = 0 ;
9109 PyObject * obj1 = 0 ;
9110 PyObject * obj2 = 0 ;
9111 char * kwnames[] = {
9112 (char *) "self",(char *) "items",(char *) "pos", NULL
9113 };
9114
9115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9117 if (!SWIG_IsOK(res1)) {
9118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9119 }
9120 arg1 = reinterpret_cast< wxListBox * >(argp1);
9121 {
9122 if (! PySequence_Check(obj1)) {
9123 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9124 SWIG_fail;
9125 }
9126 arg2 = new wxArrayString;
9127 temp2 = true;
9128 int i, len=PySequence_Length(obj1);
9129 for (i=0; i<len; i++) {
9130 PyObject* item = PySequence_GetItem(obj1, i);
9131 wxString* s = wxString_in_helper(item);
9132 if (PyErr_Occurred()) SWIG_fail;
9133 arg2->Add(*s);
9134 delete s;
9135 Py_DECREF(item);
f20a2e1f 9136 }
1bd55598 9137 }
50f151d7 9138 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
1bd55598 9139 if (!SWIG_IsOK(ecode3)) {
50f151d7 9140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
1bd55598 9141 }
50f151d7 9142 arg3 = static_cast< unsigned int >(val3);
1bd55598
RD
9143 {
9144 PyThreadState* __tstate = wxPyBeginAllowThreads();
9145 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9146 wxPyEndAllowThreads(__tstate);
9147 if (PyErr_Occurred()) SWIG_fail;
9148 }
9149 resultobj = SWIG_Py_Void();
9150 {
9151 if (temp2) delete arg2;
9152 }
9153 return resultobj;
9154fail:
9155 {
9156 if (temp2) delete arg2;
9157 }
9158 return NULL;
f20a2e1f
RD
9159}
9160
9161
1bd55598
RD
9162SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9163 PyObject *resultobj = 0;
9164 wxListBox *arg1 = (wxListBox *) 0 ;
9165 wxArrayString *arg2 = 0 ;
9166 void *argp1 = 0 ;
9167 int res1 = 0 ;
9168 bool temp2 = false ;
9169 PyObject * obj0 = 0 ;
9170 PyObject * obj1 = 0 ;
9171 char * kwnames[] = {
9172 (char *) "self",(char *) "items", NULL
9173 };
9174
9175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9177 if (!SWIG_IsOK(res1)) {
9178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9179 }
9180 arg1 = reinterpret_cast< wxListBox * >(argp1);
9181 {
9182 if (! PySequence_Check(obj1)) {
9183 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9184 SWIG_fail;
9185 }
9186 arg2 = new wxArrayString;
9187 temp2 = true;
9188 int i, len=PySequence_Length(obj1);
9189 for (i=0; i<len; i++) {
9190 PyObject* item = PySequence_GetItem(obj1, i);
9191 wxString* s = wxString_in_helper(item);
9192 if (PyErr_Occurred()) SWIG_fail;
9193 arg2->Add(*s);
9194 delete s;
9195 Py_DECREF(item);
bfddbb17 9196 }
1bd55598
RD
9197 }
9198 {
9199 PyThreadState* __tstate = wxPyBeginAllowThreads();
9200 (arg1)->Set((wxArrayString const &)*arg2);
9201 wxPyEndAllowThreads(__tstate);
9202 if (PyErr_Occurred()) SWIG_fail;
9203 }
9204 resultobj = SWIG_Py_Void();
9205 {
9206 if (temp2) delete arg2;
9207 }
9208 return resultobj;
9209fail:
9210 {
9211 if (temp2) delete arg2;
9212 }
9213 return NULL;
9214}
9215
9216
9217SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9218 PyObject *resultobj = 0;
9219 wxListBox *arg1 = (wxListBox *) 0 ;
9220 int arg2 ;
9221 bool result;
9222 void *argp1 = 0 ;
9223 int res1 = 0 ;
9224 int val2 ;
9225 int ecode2 = 0 ;
9226 PyObject * obj0 = 0 ;
9227 PyObject * obj1 = 0 ;
9228 char * kwnames[] = {
9229 (char *) "self",(char *) "n", NULL
9230 };
9231
9232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9234 if (!SWIG_IsOK(res1)) {
9235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9236 }
9237 arg1 = reinterpret_cast< wxListBox * >(argp1);
9238 ecode2 = SWIG_AsVal_int(obj1, &val2);
9239 if (!SWIG_IsOK(ecode2)) {
9240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9241 }
9242 arg2 = static_cast< int >(val2);
9243 {
9244 PyThreadState* __tstate = wxPyBeginAllowThreads();
9245 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9246 wxPyEndAllowThreads(__tstate);
9247 if (PyErr_Occurred()) SWIG_fail;
9248 }
9249 {
9250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9251 }
9252 return resultobj;
9253fail:
9254 return NULL;
9255}
9256
9257
9258SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9259 PyObject *resultobj = 0;
9260 wxListBox *arg1 = (wxListBox *) 0 ;
9261 int arg2 ;
9262 bool arg3 = (bool) true ;
9263 void *argp1 = 0 ;
9264 int res1 = 0 ;
9265 int val2 ;
9266 int ecode2 = 0 ;
9267 bool val3 ;
9268 int ecode3 = 0 ;
9269 PyObject * obj0 = 0 ;
9270 PyObject * obj1 = 0 ;
9271 PyObject * obj2 = 0 ;
9272 char * kwnames[] = {
9273 (char *) "self",(char *) "n",(char *) "select", NULL
9274 };
9275
9276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9278 if (!SWIG_IsOK(res1)) {
9279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9280 }
9281 arg1 = reinterpret_cast< wxListBox * >(argp1);
9282 ecode2 = SWIG_AsVal_int(obj1, &val2);
9283 if (!SWIG_IsOK(ecode2)) {
9284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9285 }
9286 arg2 = static_cast< int >(val2);
9287 if (obj2) {
9288 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9289 if (!SWIG_IsOK(ecode3)) {
9290 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9291 }
9292 arg3 = static_cast< bool >(val3);
9293 }
9294 {
9295 PyThreadState* __tstate = wxPyBeginAllowThreads();
9296 (arg1)->SetSelection(arg2,arg3);
9297 wxPyEndAllowThreads(__tstate);
9298 if (PyErr_Occurred()) SWIG_fail;
9299 }
9300 resultobj = SWIG_Py_Void();
9301 return resultobj;
9302fail:
9303 return NULL;
9304}
9305
9306
9307SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9308 PyObject *resultobj = 0;
9309 wxListBox *arg1 = (wxListBox *) 0 ;
9310 int arg2 ;
9311 void *argp1 = 0 ;
9312 int res1 = 0 ;
9313 int val2 ;
9314 int ecode2 = 0 ;
9315 PyObject * obj0 = 0 ;
9316 PyObject * obj1 = 0 ;
9317 char * kwnames[] = {
9318 (char *) "self",(char *) "n", NULL
9319 };
9320
9321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9323 if (!SWIG_IsOK(res1)) {
9324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9325 }
9326 arg1 = reinterpret_cast< wxListBox * >(argp1);
9327 ecode2 = SWIG_AsVal_int(obj1, &val2);
9328 if (!SWIG_IsOK(ecode2)) {
9329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9330 }
9331 arg2 = static_cast< int >(val2);
9332 {
9333 PyThreadState* __tstate = wxPyBeginAllowThreads();
9334 (arg1)->Select(arg2);
9335 wxPyEndAllowThreads(__tstate);
9336 if (PyErr_Occurred()) SWIG_fail;
9337 }
9338 resultobj = SWIG_Py_Void();
9339 return resultobj;
9340fail:
9341 return NULL;
9342}
9343
9344
9345SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9346 PyObject *resultobj = 0;
9347 wxListBox *arg1 = (wxListBox *) 0 ;
9348 int arg2 ;
9349 void *argp1 = 0 ;
9350 int res1 = 0 ;
9351 int val2 ;
9352 int ecode2 = 0 ;
9353 PyObject * obj0 = 0 ;
9354 PyObject * obj1 = 0 ;
9355 char * kwnames[] = {
9356 (char *) "self",(char *) "n", NULL
9357 };
9358
9359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9361 if (!SWIG_IsOK(res1)) {
9362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9363 }
9364 arg1 = reinterpret_cast< wxListBox * >(argp1);
9365 ecode2 = SWIG_AsVal_int(obj1, &val2);
9366 if (!SWIG_IsOK(ecode2)) {
9367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9368 }
9369 arg2 = static_cast< int >(val2);
9370 {
9371 PyThreadState* __tstate = wxPyBeginAllowThreads();
9372 (arg1)->Deselect(arg2);
9373 wxPyEndAllowThreads(__tstate);
9374 if (PyErr_Occurred()) SWIG_fail;
9375 }
9376 resultobj = SWIG_Py_Void();
9377 return resultobj;
9378fail:
9379 return NULL;
9380}
9381
9382
9383SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9384 PyObject *resultobj = 0;
9385 wxListBox *arg1 = (wxListBox *) 0 ;
9386 int arg2 = (int) -1 ;
9387 void *argp1 = 0 ;
9388 int res1 = 0 ;
9389 int val2 ;
9390 int ecode2 = 0 ;
9391 PyObject * obj0 = 0 ;
9392 PyObject * obj1 = 0 ;
9393 char * kwnames[] = {
9394 (char *) "self",(char *) "itemToLeaveSelected", NULL
9395 };
9396
9397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9399 if (!SWIG_IsOK(res1)) {
9400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9401 }
9402 arg1 = reinterpret_cast< wxListBox * >(argp1);
9403 if (obj1) {
9404 ecode2 = SWIG_AsVal_int(obj1, &val2);
9405 if (!SWIG_IsOK(ecode2)) {
9406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9407 }
9408 arg2 = static_cast< int >(val2);
9409 }
9410 {
9411 PyThreadState* __tstate = wxPyBeginAllowThreads();
9412 (arg1)->DeselectAll(arg2);
9413 wxPyEndAllowThreads(__tstate);
9414 if (PyErr_Occurred()) SWIG_fail;
9415 }
9416 resultobj = SWIG_Py_Void();
9417 return resultobj;
9418fail:
9419 return NULL;
9420}
9421
9422
9423SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9424 PyObject *resultobj = 0;
9425 wxListBox *arg1 = (wxListBox *) 0 ;
9426 wxString *arg2 = 0 ;
9427 bool arg3 = (bool) true ;
9428 bool result;
9429 void *argp1 = 0 ;
9430 int res1 = 0 ;
9431 bool temp2 = false ;
9432 bool val3 ;
9433 int ecode3 = 0 ;
9434 PyObject * obj0 = 0 ;
9435 PyObject * obj1 = 0 ;
9436 PyObject * obj2 = 0 ;
9437 char * kwnames[] = {
9438 (char *) "self",(char *) "s",(char *) "select", NULL
9439 };
9440
9441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9443 if (!SWIG_IsOK(res1)) {
9444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9445 }
9446 arg1 = reinterpret_cast< wxListBox * >(argp1);
9447 {
9448 arg2 = wxString_in_helper(obj1);
9449 if (arg2 == NULL) SWIG_fail;
9450 temp2 = true;
9451 }
9452 if (obj2) {
9453 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9454 if (!SWIG_IsOK(ecode3)) {
9455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9456 }
9457 arg3 = static_cast< bool >(val3);
9458 }
9459 {
9460 PyThreadState* __tstate = wxPyBeginAllowThreads();
9461 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9462 wxPyEndAllowThreads(__tstate);
9463 if (PyErr_Occurred()) SWIG_fail;
9464 }
9465 {
9466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9467 }
9468 {
9469 if (temp2)
9470 delete arg2;
9471 }
9472 return resultobj;
9473fail:
9474 {
9475 if (temp2)
9476 delete arg2;
9477 }
9478 return NULL;
d55e5bfc
RD
9479}
9480
9481
1bd55598
RD
9482SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9483 PyObject *resultobj = 0;
9484 wxListBox *arg1 = (wxListBox *) 0 ;
9485 PyObject *result = 0 ;
9486 void *argp1 = 0 ;
9487 int res1 = 0 ;
9488 PyObject *swig_obj[1] ;
9489
9490 if (!args) SWIG_fail;
9491 swig_obj[0] = args;
9492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9493 if (!SWIG_IsOK(res1)) {
9494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9495 }
9496 arg1 = reinterpret_cast< wxListBox * >(argp1);
9497 {
9498 PyThreadState* __tstate = wxPyBeginAllowThreads();
9499 result = (PyObject *)wxListBox_GetSelections(arg1);
9500 wxPyEndAllowThreads(__tstate);
9501 if (PyErr_Occurred()) SWIG_fail;
9502 }
9503 resultobj = result;
9504 return resultobj;
9505fail:
9506 return NULL;
9507}
9508
9509
9510SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9511 PyObject *resultobj = 0;
9512 wxListBox *arg1 = (wxListBox *) 0 ;
9513 int arg2 ;
9514 void *argp1 = 0 ;
9515 int res1 = 0 ;
9516 int val2 ;
9517 int ecode2 = 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:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9526 if (!SWIG_IsOK(res1)) {
9527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9528 }
9529 arg1 = reinterpret_cast< wxListBox * >(argp1);
9530 ecode2 = SWIG_AsVal_int(obj1, &val2);
9531 if (!SWIG_IsOK(ecode2)) {
9532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9533 }
9534 arg2 = static_cast< int >(val2);
9535 {
9536 PyThreadState* __tstate = wxPyBeginAllowThreads();
9537 (arg1)->SetFirstItem(arg2);
9538 wxPyEndAllowThreads(__tstate);
9539 if (PyErr_Occurred()) SWIG_fail;
9540 }
9541 resultobj = SWIG_Py_Void();
9542 return resultobj;
9543fail:
9544 return NULL;
9545}
9546
9547
9548SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9549 PyObject *resultobj = 0;
9550 wxListBox *arg1 = (wxListBox *) 0 ;
9551 wxString *arg2 = 0 ;
9552 void *argp1 = 0 ;
9553 int res1 = 0 ;
9554 bool temp2 = false ;
9555 PyObject * obj0 = 0 ;
9556 PyObject * obj1 = 0 ;
9557 char * kwnames[] = {
9558 (char *) "self",(char *) "s", NULL
9559 };
9560
9561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9563 if (!SWIG_IsOK(res1)) {
9564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9565 }
9566 arg1 = reinterpret_cast< wxListBox * >(argp1);
9567 {
9568 arg2 = wxString_in_helper(obj1);
9569 if (arg2 == NULL) SWIG_fail;
9570 temp2 = true;
9571 }
9572 {
9573 PyThreadState* __tstate = wxPyBeginAllowThreads();
9574 (arg1)->SetFirstItem((wxString const &)*arg2);
9575 wxPyEndAllowThreads(__tstate);
9576 if (PyErr_Occurred()) SWIG_fail;
9577 }
9578 resultobj = SWIG_Py_Void();
9579 {
9580 if (temp2)
9581 delete arg2;
9582 }
9583 return resultobj;
9584fail:
9585 {
9586 if (temp2)
9587 delete arg2;
9588 }
9589 return NULL;
9590}
9591
9592
9593SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9594 PyObject *resultobj = 0;
9595 wxListBox *arg1 = (wxListBox *) 0 ;
9596 int arg2 ;
9597 void *argp1 = 0 ;
9598 int res1 = 0 ;
9599 int val2 ;
9600 int ecode2 = 0 ;
9601 PyObject * obj0 = 0 ;
9602 PyObject * obj1 = 0 ;
9603 char * kwnames[] = {
9604 (char *) "self",(char *) "n", NULL
9605 };
9606
9607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9609 if (!SWIG_IsOK(res1)) {
9610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9611 }
9612 arg1 = reinterpret_cast< wxListBox * >(argp1);
9613 ecode2 = SWIG_AsVal_int(obj1, &val2);
9614 if (!SWIG_IsOK(ecode2)) {
9615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9616 }
9617 arg2 = static_cast< int >(val2);
9618 {
9619 PyThreadState* __tstate = wxPyBeginAllowThreads();
9620 (arg1)->EnsureVisible(arg2);
9621 wxPyEndAllowThreads(__tstate);
9622 if (PyErr_Occurred()) SWIG_fail;
9623 }
9624 resultobj = SWIG_Py_Void();
9625 return resultobj;
9626fail:
9627 return NULL;
9628}
9629
9630
9631SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9632 PyObject *resultobj = 0;
9633 wxListBox *arg1 = (wxListBox *) 0 ;
9634 wxString *arg2 = 0 ;
9635 void *argp1 = 0 ;
9636 int res1 = 0 ;
9637 bool temp2 = false ;
9638 PyObject * obj0 = 0 ;
9639 PyObject * obj1 = 0 ;
9640 char * kwnames[] = {
9641 (char *) "self",(char *) "s", NULL
9642 };
9643
9644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9646 if (!SWIG_IsOK(res1)) {
9647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9648 }
9649 arg1 = reinterpret_cast< wxListBox * >(argp1);
9650 {
9651 arg2 = wxString_in_helper(obj1);
9652 if (arg2 == NULL) SWIG_fail;
9653 temp2 = true;
9654 }
9655 {
9656 PyThreadState* __tstate = wxPyBeginAllowThreads();
9657 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9658 wxPyEndAllowThreads(__tstate);
9659 if (PyErr_Occurred()) SWIG_fail;
9660 }
9661 resultobj = SWIG_Py_Void();
9662 {
9663 if (temp2)
9664 delete arg2;
9665 }
9666 return resultobj;
9667fail:
9668 {
9669 if (temp2)
9670 delete arg2;
9671 }
9672 return NULL;
d55e5bfc
RD
9673}
9674
9675
1bd55598
RD
9676SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9677 PyObject *resultobj = 0;
9678 wxListBox *arg1 = (wxListBox *) 0 ;
9679 bool result;
9680 void *argp1 = 0 ;
9681 int res1 = 0 ;
9682 PyObject *swig_obj[1] ;
9683
9684 if (!args) SWIG_fail;
9685 swig_obj[0] = args;
9686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9687 if (!SWIG_IsOK(res1)) {
9688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9689 }
9690 arg1 = reinterpret_cast< wxListBox * >(argp1);
9691 {
9692 PyThreadState* __tstate = wxPyBeginAllowThreads();
9693 result = (bool)((wxListBox const *)arg1)->IsSorted();
9694 wxPyEndAllowThreads(__tstate);
9695 if (PyErr_Occurred()) SWIG_fail;
9696 }
9697 {
9698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9699 }
9700 return resultobj;
9701fail:
9702 return NULL;
9703}
9704
9705
9706SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9707 PyObject *resultobj = 0;
9708 wxListBox *arg1 = (wxListBox *) 0 ;
9709 wxPoint *arg2 = 0 ;
9710 int result;
9711 void *argp1 = 0 ;
9712 int res1 = 0 ;
9713 wxPoint temp2 ;
9714 PyObject * obj0 = 0 ;
9715 PyObject * obj1 = 0 ;
9716 char * kwnames[] = {
9717 (char *) "self",(char *) "pt", NULL
9718 };
9719
9720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9722 if (!SWIG_IsOK(res1)) {
9723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9724 }
9725 arg1 = reinterpret_cast< wxListBox * >(argp1);
9726 {
9727 arg2 = &temp2;
9728 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9729 }
9730 {
9731 PyThreadState* __tstate = wxPyBeginAllowThreads();
9732 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9733 wxPyEndAllowThreads(__tstate);
9734 if (PyErr_Occurred()) SWIG_fail;
9735 }
9736 resultobj = SWIG_From_int(static_cast< int >(result));
9737 return resultobj;
9738fail:
9739 return NULL;
9740}
9741
9742
9743SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9744 PyObject *resultobj = 0;
9745 wxListBox *arg1 = (wxListBox *) 0 ;
9746 int arg2 ;
9747 wxColour *arg3 = 0 ;
9748 void *argp1 = 0 ;
9749 int res1 = 0 ;
9750 int val2 ;
9751 int ecode2 = 0 ;
9752 wxColour temp3 ;
9753 PyObject * obj0 = 0 ;
9754 PyObject * obj1 = 0 ;
9755 PyObject * obj2 = 0 ;
9756 char * kwnames[] = {
9757 (char *) "self",(char *) "item",(char *) "c", NULL
9758 };
9759
9760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9762 if (!SWIG_IsOK(res1)) {
9763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9764 }
9765 arg1 = reinterpret_cast< wxListBox * >(argp1);
9766 ecode2 = SWIG_AsVal_int(obj1, &val2);
9767 if (!SWIG_IsOK(ecode2)) {
9768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9769 }
9770 arg2 = static_cast< int >(val2);
9771 {
9772 arg3 = &temp3;
9773 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9774 }
9775 {
9776 PyThreadState* __tstate = wxPyBeginAllowThreads();
9777 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9778 wxPyEndAllowThreads(__tstate);
9779 if (PyErr_Occurred()) SWIG_fail;
9780 }
9781 resultobj = SWIG_Py_Void();
9782 return resultobj;
9783fail:
9784 return NULL;
9785}
9786
9787
9788SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9789 PyObject *resultobj = 0;
9790 wxListBox *arg1 = (wxListBox *) 0 ;
9791 int arg2 ;
9792 wxColour *arg3 = 0 ;
9793 void *argp1 = 0 ;
9794 int res1 = 0 ;
9795 int val2 ;
9796 int ecode2 = 0 ;
9797 wxColour temp3 ;
9798 PyObject * obj0 = 0 ;
9799 PyObject * obj1 = 0 ;
9800 PyObject * obj2 = 0 ;
9801 char * kwnames[] = {
9802 (char *) "self",(char *) "item",(char *) "c", NULL
9803 };
9804
9805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9807 if (!SWIG_IsOK(res1)) {
9808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9809 }
9810 arg1 = reinterpret_cast< wxListBox * >(argp1);
9811 ecode2 = SWIG_AsVal_int(obj1, &val2);
9812 if (!SWIG_IsOK(ecode2)) {
9813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9814 }
9815 arg2 = static_cast< int >(val2);
9816 {
9817 arg3 = &temp3;
9818 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9819 }
9820 {
9821 PyThreadState* __tstate = wxPyBeginAllowThreads();
9822 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9823 wxPyEndAllowThreads(__tstate);
9824 if (PyErr_Occurred()) SWIG_fail;
9825 }
9826 resultobj = SWIG_Py_Void();
9827 return resultobj;
9828fail:
9829 return NULL;
9830}
9831
9832
9833SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9834 PyObject *resultobj = 0;
9835 wxListBox *arg1 = (wxListBox *) 0 ;
9836 int arg2 ;
9837 wxFont *arg3 = 0 ;
9838 void *argp1 = 0 ;
9839 int res1 = 0 ;
9840 int val2 ;
9841 int ecode2 = 0 ;
9842 void *argp3 = 0 ;
9843 int res3 = 0 ;
9844 PyObject * obj0 = 0 ;
9845 PyObject * obj1 = 0 ;
9846 PyObject * obj2 = 0 ;
9847 char * kwnames[] = {
9848 (char *) "self",(char *) "item",(char *) "f", NULL
9849 };
9850
9851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9853 if (!SWIG_IsOK(res1)) {
9854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9855 }
9856 arg1 = reinterpret_cast< wxListBox * >(argp1);
9857 ecode2 = SWIG_AsVal_int(obj1, &val2);
9858 if (!SWIG_IsOK(ecode2)) {
9859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9860 }
9861 arg2 = static_cast< int >(val2);
9862 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9863 if (!SWIG_IsOK(res3)) {
9864 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9865 }
9866 if (!argp3) {
9867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9868 }
9869 arg3 = reinterpret_cast< wxFont * >(argp3);
9870 {
9871 PyThreadState* __tstate = wxPyBeginAllowThreads();
9872 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9873 wxPyEndAllowThreads(__tstate);
9874 if (PyErr_Occurred()) SWIG_fail;
9875 }
9876 resultobj = SWIG_Py_Void();
9877 return resultobj;
9878fail:
9879 return NULL;
9880}
9881
9882
9883SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9884 PyObject *resultobj = 0;
9885 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9886 SwigValueWrapper<wxVisualAttributes > result;
9887 int val1 ;
9888 int ecode1 = 0 ;
9889 PyObject * obj0 = 0 ;
9890 char * kwnames[] = {
9891 (char *) "variant", NULL
9892 };
9893
9894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9895 if (obj0) {
9896 ecode1 = SWIG_AsVal_int(obj0, &val1);
9897 if (!SWIG_IsOK(ecode1)) {
9898 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9899 }
9900 arg1 = static_cast< wxWindowVariant >(val1);
9901 }
9902 {
9903 if (!wxPyCheckForApp()) SWIG_fail;
9904 PyThreadState* __tstate = wxPyBeginAllowThreads();
9905 result = wxListBox::GetClassDefaultAttributes(arg1);
9906 wxPyEndAllowThreads(__tstate);
9907 if (PyErr_Occurred()) SWIG_fail;
9908 }
9909 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9910 return resultobj;
9911fail:
9912 return NULL;
9913}
9914
9915
9916SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9917 PyObject *obj;
9918 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9919 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9920 return SWIG_Py_Void();
9921}
9922
9923SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9924 return SWIG_Python_InitShadowInstance(args);
9925}
9926
9927SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9928 PyObject *resultobj = 0;
9929 wxWindow *arg1 = (wxWindow *) 0 ;
9930 int arg2 = (int) -1 ;
9931 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9932 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9933 wxSize const &arg4_defvalue = wxDefaultSize ;
9934 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9935 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9936 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9937 long arg6 = (long) 0 ;
9938 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9939 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9940 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9941 wxString *arg8 = (wxString *) &arg8_defvalue ;
9942 wxCheckListBox *result = 0 ;
9943 void *argp1 = 0 ;
9944 int res1 = 0 ;
9945 int val2 ;
9946 int ecode2 = 0 ;
9947 wxPoint temp3 ;
9948 wxSize temp4 ;
9949 bool temp5 = false ;
9950 long val6 ;
9951 int ecode6 = 0 ;
9952 void *argp7 = 0 ;
9953 int res7 = 0 ;
9954 bool temp8 = false ;
9955 PyObject * obj0 = 0 ;
9956 PyObject * obj1 = 0 ;
9957 PyObject * obj2 = 0 ;
9958 PyObject * obj3 = 0 ;
9959 PyObject * obj4 = 0 ;
9960 PyObject * obj5 = 0 ;
9961 PyObject * obj6 = 0 ;
9962 PyObject * obj7 = 0 ;
9963 char * kwnames[] = {
9964 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9965 };
9966
9967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
9968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9969 if (!SWIG_IsOK(res1)) {
9970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
9971 }
9972 arg1 = reinterpret_cast< wxWindow * >(argp1);
9973 if (obj1) {
9974 ecode2 = SWIG_AsVal_int(obj1, &val2);
9975 if (!SWIG_IsOK(ecode2)) {
9976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
9977 }
9978 arg2 = static_cast< int >(val2);
9979 }
9980 if (obj2) {
9981 {
9982 arg3 = &temp3;
9983 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
bfddbb17 9984 }
1bd55598
RD
9985 }
9986 if (obj3) {
9987 {
9988 arg4 = &temp4;
9989 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 9990 }
1bd55598
RD
9991 }
9992 if (obj4) {
9993 {
9994 if (! PySequence_Check(obj4)) {
9995 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9996 SWIG_fail;
9997 }
9998 arg5 = new wxArrayString;
9999 temp5 = true;
10000 int i, len=PySequence_Length(obj4);
10001 for (i=0; i<len; i++) {
10002 PyObject* item = PySequence_GetItem(obj4, i);
10003 wxString* s = wxString_in_helper(item);
10004 if (PyErr_Occurred()) SWIG_fail;
10005 arg5->Add(*s);
10006 delete s;
10007 Py_DECREF(item);
10008 }
d55e5bfc 10009 }
1bd55598
RD
10010 }
10011 if (obj5) {
10012 ecode6 = SWIG_AsVal_long(obj5, &val6);
10013 if (!SWIG_IsOK(ecode6)) {
10014 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10015 }
10016 arg6 = static_cast< long >(val6);
10017 }
10018 if (obj6) {
10019 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10020 if (!SWIG_IsOK(res7)) {
10021 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10022 }
1bd55598
RD
10023 if (!argp7) {
10024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10025 }
1bd55598
RD
10026 arg7 = reinterpret_cast< wxValidator * >(argp7);
10027 }
10028 if (obj7) {
10029 {
10030 arg8 = wxString_in_helper(obj7);
10031 if (arg8 == NULL) SWIG_fail;
10032 temp8 = true;
d55e5bfc 10033 }
1bd55598
RD
10034 }
10035 {
10036 if (!wxPyCheckForApp()) SWIG_fail;
10037 PyThreadState* __tstate = wxPyBeginAllowThreads();
10038 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10039 wxPyEndAllowThreads(__tstate);
10040 if (PyErr_Occurred()) SWIG_fail;
10041 }
10042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10043 {
10044 if (temp5) delete arg5;
10045 }
10046 {
10047 if (temp8)
10048 delete arg8;
10049 }
10050 return resultobj;
10051fail:
10052 {
10053 if (temp5) delete arg5;
10054 }
10055 {
10056 if (temp8)
10057 delete arg8;
10058 }
10059 return NULL;
10060}
10061
10062
10063SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10064 PyObject *resultobj = 0;
10065 wxCheckListBox *result = 0 ;
10066
10067 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10068 {
10069 if (!wxPyCheckForApp()) SWIG_fail;
10070 PyThreadState* __tstate = wxPyBeginAllowThreads();
10071 result = (wxCheckListBox *)new wxCheckListBox();
10072 wxPyEndAllowThreads(__tstate);
10073 if (PyErr_Occurred()) SWIG_fail;
10074 }
10075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10076 return resultobj;
10077fail:
10078 return NULL;
10079}
10080
10081
10082SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10083 PyObject *resultobj = 0;
10084 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10085 wxWindow *arg2 = (wxWindow *) 0 ;
10086 int arg3 = (int) -1 ;
10087 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10088 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10089 wxSize const &arg5_defvalue = wxDefaultSize ;
10090 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10091 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10092 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10093 long arg7 = (long) 0 ;
10094 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10095 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10096 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10097 wxString *arg9 = (wxString *) &arg9_defvalue ;
10098 bool result;
10099 void *argp1 = 0 ;
10100 int res1 = 0 ;
10101 void *argp2 = 0 ;
10102 int res2 = 0 ;
10103 int val3 ;
10104 int ecode3 = 0 ;
10105 wxPoint temp4 ;
10106 wxSize temp5 ;
10107 bool temp6 = false ;
10108 long val7 ;
10109 int ecode7 = 0 ;
10110 void *argp8 = 0 ;
10111 int res8 = 0 ;
10112 bool temp9 = false ;
10113 PyObject * obj0 = 0 ;
10114 PyObject * obj1 = 0 ;
10115 PyObject * obj2 = 0 ;
10116 PyObject * obj3 = 0 ;
10117 PyObject * obj4 = 0 ;
10118 PyObject * obj5 = 0 ;
10119 PyObject * obj6 = 0 ;
10120 PyObject * obj7 = 0 ;
10121 PyObject * obj8 = 0 ;
10122 char * kwnames[] = {
10123 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10124 };
10125
10126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10128 if (!SWIG_IsOK(res1)) {
10129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10130 }
10131 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10132 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10133 if (!SWIG_IsOK(res2)) {
10134 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10135 }
10136 arg2 = reinterpret_cast< wxWindow * >(argp2);
10137 if (obj2) {
10138 ecode3 = SWIG_AsVal_int(obj2, &val3);
10139 if (!SWIG_IsOK(ecode3)) {
10140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10141 }
10142 arg3 = static_cast< int >(val3);
10143 }
10144 if (obj3) {
d55e5bfc 10145 {
1bd55598
RD
10146 arg4 = &temp4;
10147 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10148 }
1bd55598
RD
10149 }
10150 if (obj4) {
d55e5bfc 10151 {
1bd55598
RD
10152 arg5 = &temp5;
10153 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 10154 }
1bd55598
RD
10155 }
10156 if (obj5) {
d55e5bfc 10157 {
1bd55598
RD
10158 if (! PySequence_Check(obj5)) {
10159 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10160 SWIG_fail;
10161 }
10162 arg6 = new wxArrayString;
10163 temp6 = true;
10164 int i, len=PySequence_Length(obj5);
10165 for (i=0; i<len; i++) {
10166 PyObject* item = PySequence_GetItem(obj5, i);
10167 wxString* s = wxString_in_helper(item);
10168 if (PyErr_Occurred()) SWIG_fail;
10169 arg6->Add(*s);
10170 delete s;
10171 Py_DECREF(item);
10172 }
10173 }
10174 }
10175 if (obj6) {
10176 ecode7 = SWIG_AsVal_long(obj6, &val7);
10177 if (!SWIG_IsOK(ecode7)) {
10178 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10179 }
10180 arg7 = static_cast< long >(val7);
10181 }
10182 if (obj7) {
10183 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10184 if (!SWIG_IsOK(res8)) {
10185 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10186 }
10187 if (!argp8) {
10188 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10189 }
1bd55598
RD
10190 arg8 = reinterpret_cast< wxValidator * >(argp8);
10191 }
10192 if (obj8) {
d55e5bfc 10193 {
1bd55598
RD
10194 arg9 = wxString_in_helper(obj8);
10195 if (arg9 == NULL) SWIG_fail;
10196 temp9 = true;
d55e5bfc 10197 }
1bd55598
RD
10198 }
10199 {
10200 PyThreadState* __tstate = wxPyBeginAllowThreads();
10201 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10202 wxPyEndAllowThreads(__tstate);
10203 if (PyErr_Occurred()) SWIG_fail;
10204 }
10205 {
10206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10207 }
10208 {
10209 if (temp6) delete arg6;
10210 }
10211 {
10212 if (temp9)
10213 delete arg9;
10214 }
10215 return resultobj;
10216fail:
10217 {
10218 if (temp6) delete arg6;
10219 }
10220 {
10221 if (temp9)
10222 delete arg9;
10223 }
10224 return NULL;
10225}
10226
10227
10228SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10229 PyObject *resultobj = 0;
10230 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10231 unsigned int arg2 ;
1bd55598
RD
10232 bool result;
10233 void *argp1 = 0 ;
10234 int res1 = 0 ;
50f151d7 10235 unsigned int val2 ;
1bd55598
RD
10236 int ecode2 = 0 ;
10237 PyObject * obj0 = 0 ;
10238 PyObject * obj1 = 0 ;
10239 char * kwnames[] = {
10240 (char *) "self",(char *) "index", NULL
10241 };
10242
10243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10245 if (!SWIG_IsOK(res1)) {
10246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10247 }
10248 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10249 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 10250 if (!SWIG_IsOK(ecode2)) {
50f151d7 10251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 10252 }
50f151d7 10253 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
10254 {
10255 PyThreadState* __tstate = wxPyBeginAllowThreads();
10256 result = (bool)(arg1)->IsChecked(arg2);
10257 wxPyEndAllowThreads(__tstate);
10258 if (PyErr_Occurred()) SWIG_fail;
10259 }
10260 {
10261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10262 }
10263 return resultobj;
10264fail:
10265 return NULL;
10266}
10267
10268
10269SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10270 PyObject *resultobj = 0;
10271 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10272 unsigned int arg2 ;
1bd55598
RD
10273 int arg3 = (int) true ;
10274 void *argp1 = 0 ;
10275 int res1 = 0 ;
50f151d7 10276 unsigned int val2 ;
1bd55598
RD
10277 int ecode2 = 0 ;
10278 int val3 ;
10279 int ecode3 = 0 ;
10280 PyObject * obj0 = 0 ;
10281 PyObject * obj1 = 0 ;
10282 PyObject * obj2 = 0 ;
10283 char * kwnames[] = {
10284 (char *) "self",(char *) "index",(char *) "check", NULL
10285 };
10286
10287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10289 if (!SWIG_IsOK(res1)) {
10290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10291 }
10292 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10293 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 10294 if (!SWIG_IsOK(ecode2)) {
50f151d7 10295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 10296 }
50f151d7 10297 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
10298 if (obj2) {
10299 ecode3 = SWIG_AsVal_int(obj2, &val3);
10300 if (!SWIG_IsOK(ecode3)) {
10301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10302 }
10303 arg3 = static_cast< int >(val3);
10304 }
10305 {
10306 PyThreadState* __tstate = wxPyBeginAllowThreads();
10307 (arg1)->Check(arg2,arg3);
10308 wxPyEndAllowThreads(__tstate);
10309 if (PyErr_Occurred()) SWIG_fail;
10310 }
10311 resultobj = SWIG_Py_Void();
10312 return resultobj;
10313fail:
10314 return NULL;
d55e5bfc
RD
10315}
10316
10317
1bd55598
RD
10318SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10319 PyObject *obj;
10320 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10321 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10322 return SWIG_Py_Void();
d55e5bfc
RD
10323}
10324
1bd55598
RD
10325SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10326 return SWIG_Python_InitShadowInstance(args);
10327}
d55e5bfc 10328
1bd55598
RD
10329SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10330 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10331 return 1;
d55e5bfc
RD
10332}
10333
10334
1bd55598
RD
10335SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10336 PyObject *pyobj = 0;
10337
10338 {
d55e5bfc 10339#if wxUSE_UNICODE
1bd55598 10340 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
d55e5bfc 10341#else
1bd55598 10342 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
d55e5bfc 10343#endif
1bd55598
RD
10344 }
10345 return pyobj;
10346}
10347
10348
10349SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10350 PyObject *resultobj = 0;
10351 wxColour const &arg1_defvalue = wxNullColour ;
10352 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10353 wxColour const &arg2_defvalue = wxNullColour ;
10354 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10355 wxFont const &arg3_defvalue = wxNullFont ;
10356 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10357 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10358 wxTextAttr *result = 0 ;
10359 wxColour temp1 ;
10360 wxColour temp2 ;
10361 void *argp3 = 0 ;
10362 int res3 = 0 ;
10363 int val4 ;
10364 int ecode4 = 0 ;
10365 PyObject * obj0 = 0 ;
10366 PyObject * obj1 = 0 ;
10367 PyObject * obj2 = 0 ;
10368 PyObject * obj3 = 0 ;
10369 char * kwnames[] = {
10370 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10371 };
10372
10373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10374 if (obj0) {
d55e5bfc 10375 {
1bd55598
RD
10376 arg1 = &temp1;
10377 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 10378 }
1bd55598
RD
10379 }
10380 if (obj1) {
d55e5bfc 10381 {
1bd55598
RD
10382 arg2 = &temp2;
10383 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 10384 }
1bd55598
RD
10385 }
10386 if (obj2) {
10387 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10388 if (!SWIG_IsOK(res3)) {
10389 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10390 }
1bd55598
RD
10391 if (!argp3) {
10392 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10393 }
1bd55598
RD
10394 arg3 = reinterpret_cast< wxFont * >(argp3);
10395 }
10396 if (obj3) {
10397 ecode4 = SWIG_AsVal_int(obj3, &val4);
10398 if (!SWIG_IsOK(ecode4)) {
10399 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10400 }
10401 arg4 = static_cast< wxTextAttrAlignment >(val4);
10402 }
10403 {
10404 PyThreadState* __tstate = wxPyBeginAllowThreads();
10405 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10406 wxPyEndAllowThreads(__tstate);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10410 return resultobj;
10411fail:
10412 return NULL;
d55e5bfc
RD
10413}
10414
10415
1bd55598
RD
10416SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10417 PyObject *resultobj = 0;
10418 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10419 void *argp1 = 0 ;
10420 int res1 = 0 ;
10421 PyObject *swig_obj[1] ;
10422
10423 if (!args) SWIG_fail;
10424 swig_obj[0] = args;
10425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10426 if (!SWIG_IsOK(res1)) {
10427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10428 }
10429 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10430 {
10431 PyThreadState* __tstate = wxPyBeginAllowThreads();
10432 delete arg1;
d55e5bfc 10433
1bd55598
RD
10434 wxPyEndAllowThreads(__tstate);
10435 if (PyErr_Occurred()) SWIG_fail;
10436 }
10437 resultobj = SWIG_Py_Void();
10438 return resultobj;
10439fail:
10440 return NULL;
d55e5bfc
RD
10441}
10442
10443
1bd55598
RD
10444SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10445 PyObject *resultobj = 0;
10446 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10447 void *argp1 = 0 ;
10448 int res1 = 0 ;
10449 PyObject *swig_obj[1] ;
10450
10451 if (!args) SWIG_fail;
10452 swig_obj[0] = args;
10453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10454 if (!SWIG_IsOK(res1)) {
10455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10456 }
10457 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10458 {
10459 PyThreadState* __tstate = wxPyBeginAllowThreads();
10460 (arg1)->Init();
10461 wxPyEndAllowThreads(__tstate);
10462 if (PyErr_Occurred()) SWIG_fail;
10463 }
10464 resultobj = SWIG_Py_Void();
10465 return resultobj;
10466fail:
10467 return NULL;
10468}
10469
10470
10471SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10472 PyObject *resultobj = 0;
10473 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10474 wxColour *arg2 = 0 ;
10475 void *argp1 = 0 ;
10476 int res1 = 0 ;
10477 wxColour temp2 ;
10478 PyObject * obj0 = 0 ;
10479 PyObject * obj1 = 0 ;
10480 char * kwnames[] = {
10481 (char *) "self",(char *) "colText", NULL
10482 };
10483
10484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10486 if (!SWIG_IsOK(res1)) {
10487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10488 }
10489 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10490 {
10491 arg2 = &temp2;
10492 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10493 }
10494 {
10495 PyThreadState* __tstate = wxPyBeginAllowThreads();
10496 (arg1)->SetTextColour((wxColour const &)*arg2);
10497 wxPyEndAllowThreads(__tstate);
10498 if (PyErr_Occurred()) SWIG_fail;
10499 }
10500 resultobj = SWIG_Py_Void();
10501 return resultobj;
10502fail:
10503 return NULL;
10504}
10505
10506
10507SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10508 PyObject *resultobj = 0;
10509 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10510 wxColour *arg2 = 0 ;
10511 void *argp1 = 0 ;
10512 int res1 = 0 ;
10513 wxColour temp2 ;
10514 PyObject * obj0 = 0 ;
10515 PyObject * obj1 = 0 ;
10516 char * kwnames[] = {
10517 (char *) "self",(char *) "colBack", NULL
10518 };
10519
10520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10522 if (!SWIG_IsOK(res1)) {
10523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10524 }
10525 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10526 {
10527 arg2 = &temp2;
10528 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10529 }
10530 {
10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
10532 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10533 wxPyEndAllowThreads(__tstate);
10534 if (PyErr_Occurred()) SWIG_fail;
10535 }
10536 resultobj = SWIG_Py_Void();
10537 return resultobj;
10538fail:
10539 return NULL;
10540}
10541
10542
10543SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10544 PyObject *resultobj = 0;
10545 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10546 wxFont *arg2 = 0 ;
10547 long arg3 = (long) wxTEXT_ATTR_FONT ;
10548 void *argp1 = 0 ;
10549 int res1 = 0 ;
10550 void *argp2 = 0 ;
10551 int res2 = 0 ;
10552 long val3 ;
10553 int ecode3 = 0 ;
10554 PyObject * obj0 = 0 ;
10555 PyObject * obj1 = 0 ;
10556 PyObject * obj2 = 0 ;
10557 char * kwnames[] = {
10558 (char *) "self",(char *) "font",(char *) "flags", NULL
10559 };
10560
10561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10563 if (!SWIG_IsOK(res1)) {
10564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10565 }
10566 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10567 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10568 if (!SWIG_IsOK(res2)) {
10569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10570 }
10571 if (!argp2) {
10572 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10573 }
10574 arg2 = reinterpret_cast< wxFont * >(argp2);
10575 if (obj2) {
10576 ecode3 = SWIG_AsVal_long(obj2, &val3);
10577 if (!SWIG_IsOK(ecode3)) {
10578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10579 }
10580 arg3 = static_cast< long >(val3);
10581 }
10582 {
10583 PyThreadState* __tstate = wxPyBeginAllowThreads();
10584 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10585 wxPyEndAllowThreads(__tstate);
10586 if (PyErr_Occurred()) SWIG_fail;
10587 }
10588 resultobj = SWIG_Py_Void();
10589 return resultobj;
10590fail:
10591 return NULL;
10592}
10593
10594
10595SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10596 PyObject *resultobj = 0;
10597 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10598 wxTextAttrAlignment arg2 ;
10599 void *argp1 = 0 ;
10600 int res1 = 0 ;
10601 int val2 ;
10602 int ecode2 = 0 ;
10603 PyObject * obj0 = 0 ;
10604 PyObject * obj1 = 0 ;
10605 char * kwnames[] = {
10606 (char *) "self",(char *) "alignment", NULL
10607 };
10608
10609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10611 if (!SWIG_IsOK(res1)) {
10612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10613 }
10614 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10615 ecode2 = SWIG_AsVal_int(obj1, &val2);
10616 if (!SWIG_IsOK(ecode2)) {
10617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10618 }
10619 arg2 = static_cast< wxTextAttrAlignment >(val2);
10620 {
10621 PyThreadState* __tstate = wxPyBeginAllowThreads();
10622 (arg1)->SetAlignment(arg2);
10623 wxPyEndAllowThreads(__tstate);
10624 if (PyErr_Occurred()) SWIG_fail;
10625 }
10626 resultobj = SWIG_Py_Void();
10627 return resultobj;
10628fail:
10629 return NULL;
10630}
10631
10632
10633SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10634 PyObject *resultobj = 0;
10635 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10636 wxArrayInt *arg2 = 0 ;
10637 void *argp1 = 0 ;
10638 int res1 = 0 ;
10639 bool temp2 = false ;
10640 PyObject * obj0 = 0 ;
10641 PyObject * obj1 = 0 ;
10642 char * kwnames[] = {
10643 (char *) "self",(char *) "tabs", NULL
10644 };
10645
10646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10648 if (!SWIG_IsOK(res1)) {
10649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10650 }
10651 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10652 {
10653 if (! PySequence_Check(obj1)) {
10654 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10655 SWIG_fail;
10656 }
10657 arg2 = new wxArrayInt;
10658 temp2 = true;
10659 int i, len=PySequence_Length(obj1);
10660 for (i=0; i<len; i++) {
10661 PyObject* item = PySequence_GetItem(obj1, i);
10662 PyObject* number = PyNumber_Int(item);
10663 arg2->Add(PyInt_AS_LONG(number));
10664 Py_DECREF(item);
10665 Py_DECREF(number);
d55e5bfc 10666 }
1bd55598
RD
10667 }
10668 {
10669 PyThreadState* __tstate = wxPyBeginAllowThreads();
10670 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10671 wxPyEndAllowThreads(__tstate);
10672 if (PyErr_Occurred()) SWIG_fail;
10673 }
10674 resultobj = SWIG_Py_Void();
10675 {
10676 if (temp2) delete arg2;
10677 }
10678 return resultobj;
10679fail:
10680 {
10681 if (temp2) delete arg2;
10682 }
10683 return NULL;
10684}
10685
10686
10687SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10688 PyObject *resultobj = 0;
10689 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10690 int arg2 ;
10691 int arg3 = (int) 0 ;
10692 void *argp1 = 0 ;
10693 int res1 = 0 ;
10694 int val2 ;
10695 int ecode2 = 0 ;
10696 int val3 ;
10697 int ecode3 = 0 ;
10698 PyObject * obj0 = 0 ;
10699 PyObject * obj1 = 0 ;
10700 PyObject * obj2 = 0 ;
10701 char * kwnames[] = {
10702 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10703 };
10704
10705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10707 if (!SWIG_IsOK(res1)) {
10708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10709 }
10710 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10711 ecode2 = SWIG_AsVal_int(obj1, &val2);
10712 if (!SWIG_IsOK(ecode2)) {
10713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10714 }
10715 arg2 = static_cast< int >(val2);
10716 if (obj2) {
10717 ecode3 = SWIG_AsVal_int(obj2, &val3);
10718 if (!SWIG_IsOK(ecode3)) {
10719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10720 }
10721 arg3 = static_cast< int >(val3);
10722 }
10723 {
10724 PyThreadState* __tstate = wxPyBeginAllowThreads();
10725 (arg1)->SetLeftIndent(arg2,arg3);
10726 wxPyEndAllowThreads(__tstate);
10727 if (PyErr_Occurred()) SWIG_fail;
10728 }
10729 resultobj = SWIG_Py_Void();
10730 return resultobj;
10731fail:
10732 return NULL;
10733}
10734
10735
10736SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10737 PyObject *resultobj = 0;
10738 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10739 int arg2 ;
10740 void *argp1 = 0 ;
10741 int res1 = 0 ;
10742 int val2 ;
10743 int ecode2 = 0 ;
10744 PyObject * obj0 = 0 ;
10745 PyObject * obj1 = 0 ;
10746 char * kwnames[] = {
10747 (char *) "self",(char *) "indent", NULL
10748 };
10749
10750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10752 if (!SWIG_IsOK(res1)) {
10753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10754 }
10755 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10756 ecode2 = SWIG_AsVal_int(obj1, &val2);
10757 if (!SWIG_IsOK(ecode2)) {
10758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10759 }
10760 arg2 = static_cast< int >(val2);
10761 {
10762 PyThreadState* __tstate = wxPyBeginAllowThreads();
10763 (arg1)->SetRightIndent(arg2);
10764 wxPyEndAllowThreads(__tstate);
10765 if (PyErr_Occurred()) SWIG_fail;
10766 }
10767 resultobj = SWIG_Py_Void();
10768 return resultobj;
10769fail:
10770 return NULL;
10771}
10772
10773
10774SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10775 PyObject *resultobj = 0;
10776 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10777 long arg2 ;
10778 void *argp1 = 0 ;
10779 int res1 = 0 ;
10780 long val2 ;
10781 int ecode2 = 0 ;
10782 PyObject * obj0 = 0 ;
10783 PyObject * obj1 = 0 ;
10784 char * kwnames[] = {
10785 (char *) "self",(char *) "flags", NULL
10786 };
10787
10788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10790 if (!SWIG_IsOK(res1)) {
10791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10792 }
10793 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10794 ecode2 = SWIG_AsVal_long(obj1, &val2);
10795 if (!SWIG_IsOK(ecode2)) {
10796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10797 }
10798 arg2 = static_cast< long >(val2);
10799 {
10800 PyThreadState* __tstate = wxPyBeginAllowThreads();
10801 (arg1)->SetFlags(arg2);
10802 wxPyEndAllowThreads(__tstate);
10803 if (PyErr_Occurred()) SWIG_fail;
10804 }
10805 resultobj = SWIG_Py_Void();
10806 return resultobj;
10807fail:
10808 return NULL;
d55e5bfc
RD
10809}
10810
10811
1bd55598
RD
10812SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10813 PyObject *resultobj = 0;
10814 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10815 bool result;
10816 void *argp1 = 0 ;
10817 int res1 = 0 ;
10818 PyObject *swig_obj[1] ;
10819
10820 if (!args) SWIG_fail;
10821 swig_obj[0] = args;
10822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10823 if (!SWIG_IsOK(res1)) {
10824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10825 }
10826 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10827 {
10828 PyThreadState* __tstate = wxPyBeginAllowThreads();
10829 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10830 wxPyEndAllowThreads(__tstate);
10831 if (PyErr_Occurred()) SWIG_fail;
10832 }
10833 {
10834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10835 }
10836 return resultobj;
10837fail:
10838 return NULL;
d55e5bfc
RD
10839}
10840
10841
1bd55598
RD
10842SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10843 PyObject *resultobj = 0;
10844 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10845 bool result;
10846 void *argp1 = 0 ;
10847 int res1 = 0 ;
10848 PyObject *swig_obj[1] ;
10849
10850 if (!args) SWIG_fail;
10851 swig_obj[0] = args;
10852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10853 if (!SWIG_IsOK(res1)) {
10854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10855 }
10856 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10857 {
10858 PyThreadState* __tstate = wxPyBeginAllowThreads();
10859 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10860 wxPyEndAllowThreads(__tstate);
10861 if (PyErr_Occurred()) SWIG_fail;
10862 }
10863 {
10864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10865 }
10866 return resultobj;
10867fail:
10868 return NULL;
d55e5bfc
RD
10869}
10870
10871
1bd55598
RD
10872SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10873 PyObject *resultobj = 0;
10874 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10875 bool result;
10876 void *argp1 = 0 ;
10877 int res1 = 0 ;
10878 PyObject *swig_obj[1] ;
10879
10880 if (!args) SWIG_fail;
10881 swig_obj[0] = args;
10882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10883 if (!SWIG_IsOK(res1)) {
10884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10885 }
10886 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10887 {
10888 PyThreadState* __tstate = wxPyBeginAllowThreads();
10889 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10890 wxPyEndAllowThreads(__tstate);
10891 if (PyErr_Occurred()) SWIG_fail;
10892 }
10893 {
10894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10895 }
10896 return resultobj;
10897fail:
10898 return NULL;
d55e5bfc
RD
10899}
10900
10901
1bd55598
RD
10902SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10903 PyObject *resultobj = 0;
10904 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10905 bool result;
10906 void *argp1 = 0 ;
10907 int res1 = 0 ;
10908 PyObject *swig_obj[1] ;
10909
10910 if (!args) SWIG_fail;
10911 swig_obj[0] = args;
10912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10913 if (!SWIG_IsOK(res1)) {
10914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10915 }
10916 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10917 {
10918 PyThreadState* __tstate = wxPyBeginAllowThreads();
10919 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
10920 wxPyEndAllowThreads(__tstate);
10921 if (PyErr_Occurred()) SWIG_fail;
10922 }
10923 {
10924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10925 }
10926 return resultobj;
10927fail:
10928 return NULL;
d55e5bfc
RD
10929}
10930
10931
1bd55598
RD
10932SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10933 PyObject *resultobj = 0;
10934 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10935 bool result;
10936 void *argp1 = 0 ;
10937 int res1 = 0 ;
10938 PyObject *swig_obj[1] ;
10939
10940 if (!args) SWIG_fail;
10941 swig_obj[0] = args;
10942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10943 if (!SWIG_IsOK(res1)) {
10944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10945 }
10946 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10947 {
10948 PyThreadState* __tstate = wxPyBeginAllowThreads();
10949 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
10950 wxPyEndAllowThreads(__tstate);
10951 if (PyErr_Occurred()) SWIG_fail;
10952 }
10953 {
10954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10955 }
10956 return resultobj;
10957fail:
10958 return NULL;
d55e5bfc
RD
10959}
10960
10961
1bd55598
RD
10962SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10963 PyObject *resultobj = 0;
10964 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10965 bool result;
10966 void *argp1 = 0 ;
10967 int res1 = 0 ;
10968 PyObject *swig_obj[1] ;
10969
10970 if (!args) SWIG_fail;
10971 swig_obj[0] = args;
10972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10973 if (!SWIG_IsOK(res1)) {
10974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10975 }
10976 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10977 {
10978 PyThreadState* __tstate = wxPyBeginAllowThreads();
10979 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
10980 wxPyEndAllowThreads(__tstate);
10981 if (PyErr_Occurred()) SWIG_fail;
10982 }
10983 {
10984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10985 }
10986 return resultobj;
10987fail:
10988 return NULL;
d55e5bfc
RD
10989}
10990
10991
1bd55598
RD
10992SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10993 PyObject *resultobj = 0;
10994 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10995 bool result;
10996 void *argp1 = 0 ;
10997 int res1 = 0 ;
10998 PyObject *swig_obj[1] ;
10999
11000 if (!args) SWIG_fail;
11001 swig_obj[0] = args;
11002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11003 if (!SWIG_IsOK(res1)) {
11004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11005 }
11006 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11007 {
11008 PyThreadState* __tstate = wxPyBeginAllowThreads();
11009 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11010 wxPyEndAllowThreads(__tstate);
11011 if (PyErr_Occurred()) SWIG_fail;
11012 }
11013 {
11014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11015 }
11016 return resultobj;
11017fail:
11018 return NULL;
11019}
11020
11021
11022SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11023 PyObject *resultobj = 0;
11024 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11025 long arg2 ;
11026 bool result;
11027 void *argp1 = 0 ;
11028 int res1 = 0 ;
11029 long val2 ;
11030 int ecode2 = 0 ;
11031 PyObject * obj0 = 0 ;
11032 PyObject * obj1 = 0 ;
11033 char * kwnames[] = {
11034 (char *) "self",(char *) "flag", NULL
11035 };
11036
11037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11039 if (!SWIG_IsOK(res1)) {
11040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11041 }
11042 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11043 ecode2 = SWIG_AsVal_long(obj1, &val2);
11044 if (!SWIG_IsOK(ecode2)) {
11045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11046 }
11047 arg2 = static_cast< long >(val2);
11048 {
11049 PyThreadState* __tstate = wxPyBeginAllowThreads();
11050 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11051 wxPyEndAllowThreads(__tstate);
11052 if (PyErr_Occurred()) SWIG_fail;
11053 }
11054 {
11055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11056 }
11057 return resultobj;
11058fail:
11059 return NULL;
d55e5bfc
RD
11060}
11061
11062
1bd55598
RD
11063SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11064 PyObject *resultobj = 0;
11065 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11066 wxColour *result = 0 ;
11067 void *argp1 = 0 ;
11068 int res1 = 0 ;
11069 PyObject *swig_obj[1] ;
11070
11071 if (!args) SWIG_fail;
11072 swig_obj[0] = args;
11073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11074 if (!SWIG_IsOK(res1)) {
11075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11076 }
11077 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11078 {
11079 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11080 {
1bd55598
RD
11081 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11082 result = (wxColour *) &_result_ref;
d55e5bfc 11083 }
1bd55598
RD
11084 wxPyEndAllowThreads(__tstate);
11085 if (PyErr_Occurred()) SWIG_fail;
11086 }
11087 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11088 return resultobj;
11089fail:
11090 return NULL;
d55e5bfc
RD
11091}
11092
11093
1bd55598
RD
11094SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11095 PyObject *resultobj = 0;
11096 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11097 wxColour *result = 0 ;
11098 void *argp1 = 0 ;
11099 int res1 = 0 ;
11100 PyObject *swig_obj[1] ;
11101
11102 if (!args) SWIG_fail;
11103 swig_obj[0] = args;
11104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11105 if (!SWIG_IsOK(res1)) {
11106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11107 }
11108 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11109 {
11110 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11111 {
1bd55598
RD
11112 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11113 result = (wxColour *) &_result_ref;
d55e5bfc 11114 }
1bd55598
RD
11115 wxPyEndAllowThreads(__tstate);
11116 if (PyErr_Occurred()) SWIG_fail;
11117 }
11118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11119 return resultobj;
11120fail:
11121 return NULL;
d55e5bfc
RD
11122}
11123
11124
1bd55598
RD
11125SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11126 PyObject *resultobj = 0;
11127 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11128 wxFont *result = 0 ;
11129 void *argp1 = 0 ;
11130 int res1 = 0 ;
11131 PyObject *swig_obj[1] ;
11132
11133 if (!args) SWIG_fail;
11134 swig_obj[0] = args;
11135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11136 if (!SWIG_IsOK(res1)) {
11137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11138 }
11139 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11140 {
11141 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11142 {
1bd55598
RD
11143 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11144 result = (wxFont *) &_result_ref;
d55e5bfc 11145 }
1bd55598
RD
11146 wxPyEndAllowThreads(__tstate);
11147 if (PyErr_Occurred()) SWIG_fail;
11148 }
11149 {
11150 wxFont* resultptr = new wxFont(*result);
11151 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11152 }
11153 return resultobj;
11154fail:
11155 return NULL;
d55e5bfc
RD
11156}
11157
11158
1bd55598
RD
11159SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11160 PyObject *resultobj = 0;
11161 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11162 wxTextAttrAlignment result;
11163 void *argp1 = 0 ;
11164 int res1 = 0 ;
11165 PyObject *swig_obj[1] ;
11166
11167 if (!args) SWIG_fail;
11168 swig_obj[0] = args;
11169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11170 if (!SWIG_IsOK(res1)) {
11171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11172 }
11173 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11174 {
11175 PyThreadState* __tstate = wxPyBeginAllowThreads();
11176 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11177 wxPyEndAllowThreads(__tstate);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 resultobj = SWIG_From_int(static_cast< int >(result));
11181 return resultobj;
11182fail:
11183 return NULL;
d55e5bfc
RD
11184}
11185
11186
1bd55598
RD
11187SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11188 PyObject *resultobj = 0;
11189 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11190 wxArrayInt *result = 0 ;
11191 void *argp1 = 0 ;
11192 int res1 = 0 ;
11193 PyObject *swig_obj[1] ;
11194
11195 if (!args) SWIG_fail;
11196 swig_obj[0] = args;
11197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11198 if (!SWIG_IsOK(res1)) {
11199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11200 }
11201 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11202 {
11203 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 11204 {
1bd55598
RD
11205 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11206 result = (wxArrayInt *) &_result_ref;
36ed4f51 11207 }
1bd55598
RD
11208 wxPyEndAllowThreads(__tstate);
11209 if (PyErr_Occurred()) SWIG_fail;
11210 }
11211 {
11212 resultobj = PyList_New(0);
11213 size_t idx;
11214 for (idx = 0; idx < result->GetCount(); idx += 1) {
11215 PyObject* val = PyInt_FromLong( result->Item(idx) );
11216 PyList_Append(resultobj, val);
11217 Py_DECREF(val);
d55e5bfc 11218 }
1bd55598
RD
11219 }
11220 return resultobj;
11221fail:
11222 return NULL;
d55e5bfc
RD
11223}
11224
11225
1bd55598
RD
11226SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11227 PyObject *resultobj = 0;
11228 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11229 long result;
11230 void *argp1 = 0 ;
11231 int res1 = 0 ;
11232 PyObject *swig_obj[1] ;
11233
11234 if (!args) SWIG_fail;
11235 swig_obj[0] = args;
11236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11237 if (!SWIG_IsOK(res1)) {
11238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11239 }
11240 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11241 {
11242 PyThreadState* __tstate = wxPyBeginAllowThreads();
11243 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11244 wxPyEndAllowThreads(__tstate);
11245 if (PyErr_Occurred()) SWIG_fail;
11246 }
11247 resultobj = SWIG_From_long(static_cast< long >(result));
11248 return resultobj;
11249fail:
11250 return NULL;
d55e5bfc
RD
11251}
11252
11253
1bd55598
RD
11254SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11255 PyObject *resultobj = 0;
11256 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11257 long result;
11258 void *argp1 = 0 ;
11259 int res1 = 0 ;
11260 PyObject *swig_obj[1] ;
11261
11262 if (!args) SWIG_fail;
11263 swig_obj[0] = args;
11264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11265 if (!SWIG_IsOK(res1)) {
11266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11267 }
11268 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11269 {
11270 PyThreadState* __tstate = wxPyBeginAllowThreads();
11271 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11272 wxPyEndAllowThreads(__tstate);
11273 if (PyErr_Occurred()) SWIG_fail;
11274 }
11275 resultobj = SWIG_From_long(static_cast< long >(result));
11276 return resultobj;
11277fail:
11278 return NULL;
d55e5bfc
RD
11279}
11280
11281
1bd55598
RD
11282SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11283 PyObject *resultobj = 0;
11284 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11285 long result;
11286 void *argp1 = 0 ;
11287 int res1 = 0 ;
11288 PyObject *swig_obj[1] ;
11289
11290 if (!args) SWIG_fail;
11291 swig_obj[0] = args;
11292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11293 if (!SWIG_IsOK(res1)) {
11294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11295 }
11296 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11297 {
11298 PyThreadState* __tstate = wxPyBeginAllowThreads();
11299 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11300 wxPyEndAllowThreads(__tstate);
11301 if (PyErr_Occurred()) SWIG_fail;
11302 }
11303 resultobj = SWIG_From_long(static_cast< long >(result));
11304 return resultobj;
11305fail:
11306 return NULL;
d55e5bfc
RD
11307}
11308
11309
1bd55598
RD
11310SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11311 PyObject *resultobj = 0;
11312 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11313 long result;
11314 void *argp1 = 0 ;
11315 int res1 = 0 ;
11316 PyObject *swig_obj[1] ;
11317
11318 if (!args) SWIG_fail;
11319 swig_obj[0] = args;
11320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11321 if (!SWIG_IsOK(res1)) {
11322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11323 }
11324 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11325 {
11326 PyThreadState* __tstate = wxPyBeginAllowThreads();
11327 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11328 wxPyEndAllowThreads(__tstate);
11329 if (PyErr_Occurred()) SWIG_fail;
11330 }
11331 resultobj = SWIG_From_long(static_cast< long >(result));
11332 return resultobj;
11333fail:
11334 return NULL;
d55e5bfc
RD
11335}
11336
11337
1bd55598
RD
11338SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11339 PyObject *resultobj = 0;
11340 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11341 bool result;
11342 void *argp1 = 0 ;
11343 int res1 = 0 ;
11344 PyObject *swig_obj[1] ;
11345
11346 if (!args) SWIG_fail;
11347 swig_obj[0] = args;
11348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11349 if (!SWIG_IsOK(res1)) {
11350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11351 }
11352 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11353 {
11354 PyThreadState* __tstate = wxPyBeginAllowThreads();
11355 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11356 wxPyEndAllowThreads(__tstate);
11357 if (PyErr_Occurred()) SWIG_fail;
11358 }
11359 {
11360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11361 }
11362 return resultobj;
11363fail:
11364 return NULL;
11365}
11366
11367
11368SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11369 PyObject *resultobj = 0;
11370 wxTextAttr *arg1 = 0 ;
11371 wxTextAttr *arg2 = 0 ;
11372 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11373 wxTextAttr result;
11374 void *argp1 = 0 ;
11375 int res1 = 0 ;
11376 void *argp2 = 0 ;
11377 int res2 = 0 ;
11378 void *argp3 = 0 ;
11379 int res3 = 0 ;
11380 PyObject * obj0 = 0 ;
11381 PyObject * obj1 = 0 ;
11382 PyObject * obj2 = 0 ;
11383 char * kwnames[] = {
11384 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11385 };
11386
11387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11388 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11389 if (!SWIG_IsOK(res1)) {
11390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11391 }
11392 if (!argp1) {
11393 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11394 }
11395 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11396 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11397 if (!SWIG_IsOK(res2)) {
11398 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11399 }
11400 if (!argp2) {
11401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11402 }
11403 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11404 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11405 if (!SWIG_IsOK(res3)) {
11406 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11407 }
11408 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11409 {
11410 PyThreadState* __tstate = wxPyBeginAllowThreads();
11411 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11412 wxPyEndAllowThreads(__tstate);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 }
11415 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11416 return resultobj;
11417fail:
11418 return NULL;
11419}
11420
11421
11422SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11423 PyObject *obj;
11424 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11425 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11426 return SWIG_Py_Void();
11427}
11428
11429SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11430 return SWIG_Python_InitShadowInstance(args);
11431}
11432
11433SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11434 PyObject *resultobj = 0;
11435 wxWindow *arg1 = (wxWindow *) 0 ;
11436 int arg2 = (int) -1 ;
11437 wxString const &arg3_defvalue = wxPyEmptyString ;
11438 wxString *arg3 = (wxString *) &arg3_defvalue ;
11439 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11440 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11441 wxSize const &arg5_defvalue = wxDefaultSize ;
11442 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11443 long arg6 = (long) 0 ;
11444 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11445 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11446 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11447 wxString *arg8 = (wxString *) &arg8_defvalue ;
11448 wxTextCtrl *result = 0 ;
11449 void *argp1 = 0 ;
11450 int res1 = 0 ;
11451 int val2 ;
11452 int ecode2 = 0 ;
11453 bool temp3 = false ;
11454 wxPoint temp4 ;
11455 wxSize temp5 ;
11456 long val6 ;
11457 int ecode6 = 0 ;
11458 void *argp7 = 0 ;
11459 int res7 = 0 ;
11460 bool temp8 = false ;
11461 PyObject * obj0 = 0 ;
11462 PyObject * obj1 = 0 ;
11463 PyObject * obj2 = 0 ;
11464 PyObject * obj3 = 0 ;
11465 PyObject * obj4 = 0 ;
11466 PyObject * obj5 = 0 ;
11467 PyObject * obj6 = 0 ;
11468 PyObject * obj7 = 0 ;
11469 char * kwnames[] = {
11470 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11471 };
11472
11473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11475 if (!SWIG_IsOK(res1)) {
11476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11477 }
11478 arg1 = reinterpret_cast< wxWindow * >(argp1);
11479 if (obj1) {
11480 ecode2 = SWIG_AsVal_int(obj1, &val2);
11481 if (!SWIG_IsOK(ecode2)) {
11482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11483 }
11484 arg2 = static_cast< int >(val2);
11485 }
11486 if (obj2) {
36ed4f51 11487 {
1bd55598
RD
11488 arg3 = wxString_in_helper(obj2);
11489 if (arg3 == NULL) SWIG_fail;
11490 temp3 = true;
36ed4f51 11491 }
1bd55598
RD
11492 }
11493 if (obj3) {
36ed4f51 11494 {
1bd55598
RD
11495 arg4 = &temp4;
11496 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 11497 }
1bd55598
RD
11498 }
11499 if (obj4) {
d55e5bfc 11500 {
1bd55598
RD
11501 arg5 = &temp5;
11502 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11503 }
1bd55598
RD
11504 }
11505 if (obj5) {
11506 ecode6 = SWIG_AsVal_long(obj5, &val6);
11507 if (!SWIG_IsOK(ecode6)) {
11508 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11509 }
11510 arg6 = static_cast< long >(val6);
11511 }
11512 if (obj6) {
11513 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11514 if (!SWIG_IsOK(res7)) {
11515 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11516 }
1bd55598
RD
11517 if (!argp7) {
11518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11519 }
1bd55598
RD
11520 arg7 = reinterpret_cast< wxValidator * >(argp7);
11521 }
11522 if (obj7) {
d55e5bfc 11523 {
1bd55598
RD
11524 arg8 = wxString_in_helper(obj7);
11525 if (arg8 == NULL) SWIG_fail;
11526 temp8 = true;
d55e5bfc 11527 }
1bd55598
RD
11528 }
11529 {
11530 if (!wxPyCheckForApp()) SWIG_fail;
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11533 wxPyEndAllowThreads(__tstate);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 }
11536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11537 {
11538 if (temp3)
11539 delete arg3;
11540 }
11541 {
11542 if (temp8)
11543 delete arg8;
11544 }
11545 return resultobj;
11546fail:
11547 {
11548 if (temp3)
11549 delete arg3;
11550 }
11551 {
11552 if (temp8)
11553 delete arg8;
11554 }
11555 return NULL;
d55e5bfc
RD
11556}
11557
11558
1bd55598
RD
11559SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11560 PyObject *resultobj = 0;
11561 wxTextCtrl *result = 0 ;
11562
11563 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11564 {
11565 if (!wxPyCheckForApp()) SWIG_fail;
11566 PyThreadState* __tstate = wxPyBeginAllowThreads();
11567 result = (wxTextCtrl *)new wxTextCtrl();
11568 wxPyEndAllowThreads(__tstate);
11569 if (PyErr_Occurred()) SWIG_fail;
11570 }
11571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11572 return resultobj;
11573fail:
11574 return NULL;
11575}
11576
11577
11578SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11579 PyObject *resultobj = 0;
11580 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11581 wxWindow *arg2 = (wxWindow *) 0 ;
11582 int arg3 = (int) -1 ;
11583 wxString const &arg4_defvalue = wxPyEmptyString ;
11584 wxString *arg4 = (wxString *) &arg4_defvalue ;
11585 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11586 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11587 wxSize const &arg6_defvalue = wxDefaultSize ;
11588 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11589 long arg7 = (long) 0 ;
11590 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11591 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11592 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11593 wxString *arg9 = (wxString *) &arg9_defvalue ;
11594 bool result;
11595 void *argp1 = 0 ;
11596 int res1 = 0 ;
11597 void *argp2 = 0 ;
11598 int res2 = 0 ;
11599 int val3 ;
11600 int ecode3 = 0 ;
11601 bool temp4 = false ;
11602 wxPoint temp5 ;
11603 wxSize temp6 ;
11604 long val7 ;
11605 int ecode7 = 0 ;
11606 void *argp8 = 0 ;
11607 int res8 = 0 ;
11608 bool temp9 = false ;
11609 PyObject * obj0 = 0 ;
11610 PyObject * obj1 = 0 ;
11611 PyObject * obj2 = 0 ;
11612 PyObject * obj3 = 0 ;
11613 PyObject * obj4 = 0 ;
11614 PyObject * obj5 = 0 ;
11615 PyObject * obj6 = 0 ;
11616 PyObject * obj7 = 0 ;
11617 PyObject * obj8 = 0 ;
11618 char * kwnames[] = {
11619 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11620 };
11621
11622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11624 if (!SWIG_IsOK(res1)) {
11625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11626 }
11627 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11628 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11629 if (!SWIG_IsOK(res2)) {
11630 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11631 }
11632 arg2 = reinterpret_cast< wxWindow * >(argp2);
11633 if (obj2) {
11634 ecode3 = SWIG_AsVal_int(obj2, &val3);
11635 if (!SWIG_IsOK(ecode3)) {
11636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11637 }
11638 arg3 = static_cast< int >(val3);
11639 }
11640 if (obj3) {
d55e5bfc 11641 {
1bd55598
RD
11642 arg4 = wxString_in_helper(obj3);
11643 if (arg4 == NULL) SWIG_fail;
11644 temp4 = true;
d55e5bfc 11645 }
1bd55598
RD
11646 }
11647 if (obj4) {
d55e5bfc 11648 {
1bd55598
RD
11649 arg5 = &temp5;
11650 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11651 }
1bd55598
RD
11652 }
11653 if (obj5) {
d55e5bfc 11654 {
1bd55598
RD
11655 arg6 = &temp6;
11656 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 11657 }
1bd55598
RD
11658 }
11659 if (obj6) {
11660 ecode7 = SWIG_AsVal_long(obj6, &val7);
11661 if (!SWIG_IsOK(ecode7)) {
11662 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11663 }
11664 arg7 = static_cast< long >(val7);
11665 }
11666 if (obj7) {
11667 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11668 if (!SWIG_IsOK(res8)) {
11669 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 11670 }
1bd55598
RD
11671 if (!argp8) {
11672 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11673 }
11674 arg8 = reinterpret_cast< wxValidator * >(argp8);
11675 }
11676 if (obj8) {
d55e5bfc 11677 {
1bd55598
RD
11678 arg9 = wxString_in_helper(obj8);
11679 if (arg9 == NULL) SWIG_fail;
11680 temp9 = true;
d55e5bfc 11681 }
1bd55598
RD
11682 }
11683 {
11684 PyThreadState* __tstate = wxPyBeginAllowThreads();
11685 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11686 wxPyEndAllowThreads(__tstate);
11687 if (PyErr_Occurred()) SWIG_fail;
11688 }
11689 {
11690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11691 }
11692 {
11693 if (temp4)
11694 delete arg4;
11695 }
11696 {
11697 if (temp9)
11698 delete arg9;
11699 }
11700 return resultobj;
11701fail:
11702 {
11703 if (temp4)
11704 delete arg4;
11705 }
11706 {
11707 if (temp9)
11708 delete arg9;
11709 }
11710 return NULL;
d55e5bfc
RD
11711}
11712
11713
1bd55598
RD
11714SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11715 PyObject *resultobj = 0;
11716 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11717 wxString result;
11718 void *argp1 = 0 ;
11719 int res1 = 0 ;
11720 PyObject *swig_obj[1] ;
11721
11722 if (!args) SWIG_fail;
11723 swig_obj[0] = args;
11724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11725 if (!SWIG_IsOK(res1)) {
11726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11727 }
11728 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 result = ((wxTextCtrl const *)arg1)->GetValue();
11732 wxPyEndAllowThreads(__tstate);
11733 if (PyErr_Occurred()) SWIG_fail;
11734 }
11735 {
11736#if wxUSE_UNICODE
11737 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11738#else
11739 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11740#endif
11741 }
11742 return resultobj;
11743fail:
11744 return NULL;
11745}
11746
11747
11748SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11749 PyObject *resultobj = 0;
11750 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11751 wxString *arg2 = 0 ;
11752 void *argp1 = 0 ;
11753 int res1 = 0 ;
11754 bool temp2 = false ;
11755 PyObject * obj0 = 0 ;
11756 PyObject * obj1 = 0 ;
11757 char * kwnames[] = {
11758 (char *) "self",(char *) "value", NULL
11759 };
11760
11761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11763 if (!SWIG_IsOK(res1)) {
11764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11765 }
11766 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11767 {
11768 arg2 = wxString_in_helper(obj1);
11769 if (arg2 == NULL) SWIG_fail;
11770 temp2 = true;
11771 }
11772 {
11773 PyThreadState* __tstate = wxPyBeginAllowThreads();
11774 (arg1)->SetValue((wxString const &)*arg2);
11775 wxPyEndAllowThreads(__tstate);
11776 if (PyErr_Occurred()) SWIG_fail;
11777 }
11778 resultobj = SWIG_Py_Void();
11779 {
11780 if (temp2)
11781 delete arg2;
11782 }
11783 return resultobj;
11784fail:
11785 {
11786 if (temp2)
11787 delete arg2;
11788 }
11789 return NULL;
11790}
11791
11792
11793SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11794 PyObject *resultobj = 0;
11795 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11796 long arg2 ;
11797 long arg3 ;
11798 wxString result;
11799 void *argp1 = 0 ;
11800 int res1 = 0 ;
11801 long val2 ;
11802 int ecode2 = 0 ;
11803 long val3 ;
11804 int ecode3 = 0 ;
11805 PyObject * obj0 = 0 ;
11806 PyObject * obj1 = 0 ;
11807 PyObject * obj2 = 0 ;
11808 char * kwnames[] = {
11809 (char *) "self",(char *) "_from",(char *) "to", NULL
11810 };
11811
11812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11814 if (!SWIG_IsOK(res1)) {
11815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11816 }
11817 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11818 ecode2 = SWIG_AsVal_long(obj1, &val2);
11819 if (!SWIG_IsOK(ecode2)) {
11820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11821 }
11822 arg2 = static_cast< long >(val2);
11823 ecode3 = SWIG_AsVal_long(obj2, &val3);
11824 if (!SWIG_IsOK(ecode3)) {
11825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11826 }
11827 arg3 = static_cast< long >(val3);
11828 {
11829 PyThreadState* __tstate = wxPyBeginAllowThreads();
11830 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11831 wxPyEndAllowThreads(__tstate);
11832 if (PyErr_Occurred()) SWIG_fail;
11833 }
11834 {
11835#if wxUSE_UNICODE
11836 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11837#else
11838 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11839#endif
11840 }
11841 return resultobj;
11842fail:
11843 return NULL;
11844}
11845
11846
11847SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11848 PyObject *resultobj = 0;
11849 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11850 long arg2 ;
11851 int result;
11852 void *argp1 = 0 ;
11853 int res1 = 0 ;
11854 long val2 ;
11855 int ecode2 = 0 ;
11856 PyObject * obj0 = 0 ;
11857 PyObject * obj1 = 0 ;
11858 char * kwnames[] = {
11859 (char *) "self",(char *) "lineNo", NULL
11860 };
11861
11862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11864 if (!SWIG_IsOK(res1)) {
11865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11866 }
11867 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11868 ecode2 = SWIG_AsVal_long(obj1, &val2);
11869 if (!SWIG_IsOK(ecode2)) {
11870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11871 }
11872 arg2 = static_cast< long >(val2);
11873 {
11874 PyThreadState* __tstate = wxPyBeginAllowThreads();
11875 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11876 wxPyEndAllowThreads(__tstate);
11877 if (PyErr_Occurred()) SWIG_fail;
11878 }
11879 resultobj = SWIG_From_int(static_cast< int >(result));
11880 return resultobj;
11881fail:
11882 return NULL;
11883}
11884
11885
11886SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11887 PyObject *resultobj = 0;
11888 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11889 long arg2 ;
11890 wxString result;
11891 void *argp1 = 0 ;
11892 int res1 = 0 ;
11893 long val2 ;
11894 int ecode2 = 0 ;
11895 PyObject * obj0 = 0 ;
11896 PyObject * obj1 = 0 ;
11897 char * kwnames[] = {
11898 (char *) "self",(char *) "lineNo", NULL
11899 };
11900
11901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
11902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11903 if (!SWIG_IsOK(res1)) {
11904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11905 }
11906 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11907 ecode2 = SWIG_AsVal_long(obj1, &val2);
11908 if (!SWIG_IsOK(ecode2)) {
11909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
11910 }
11911 arg2 = static_cast< long >(val2);
11912 {
11913 PyThreadState* __tstate = wxPyBeginAllowThreads();
11914 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
11915 wxPyEndAllowThreads(__tstate);
11916 if (PyErr_Occurred()) SWIG_fail;
11917 }
11918 {
11919#if wxUSE_UNICODE
11920 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11921#else
11922 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11923#endif
11924 }
11925 return resultobj;
11926fail:
11927 return NULL;
d55e5bfc
RD
11928}
11929
11930
1bd55598
RD
11931SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11932 PyObject *resultobj = 0;
11933 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11934 int result;
11935 void *argp1 = 0 ;
11936 int res1 = 0 ;
11937 PyObject *swig_obj[1] ;
11938
11939 if (!args) SWIG_fail;
11940 swig_obj[0] = args;
11941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11942 if (!SWIG_IsOK(res1)) {
11943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11944 }
11945 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11946 {
11947 PyThreadState* __tstate = wxPyBeginAllowThreads();
11948 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
11949 wxPyEndAllowThreads(__tstate);
11950 if (PyErr_Occurred()) SWIG_fail;
11951 }
11952 resultobj = SWIG_From_int(static_cast< int >(result));
11953 return resultobj;
11954fail:
11955 return NULL;
d55e5bfc
RD
11956}
11957
11958
1bd55598
RD
11959SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11960 PyObject *resultobj = 0;
11961 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11962 bool result;
11963 void *argp1 = 0 ;
11964 int res1 = 0 ;
11965 PyObject *swig_obj[1] ;
11966
11967 if (!args) SWIG_fail;
11968 swig_obj[0] = args;
11969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11970 if (!SWIG_IsOK(res1)) {
11971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11972 }
11973 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11974 {
11975 PyThreadState* __tstate = wxPyBeginAllowThreads();
11976 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
11977 wxPyEndAllowThreads(__tstate);
11978 if (PyErr_Occurred()) SWIG_fail;
11979 }
11980 {
11981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11982 }
11983 return resultobj;
11984fail:
11985 return NULL;
d55e5bfc
RD
11986}
11987
11988
1bd55598
RD
11989SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11990 PyObject *resultobj = 0;
11991 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11992 bool result;
11993 void *argp1 = 0 ;
11994 int res1 = 0 ;
11995 PyObject *swig_obj[1] ;
11996
11997 if (!args) SWIG_fail;
11998 swig_obj[0] = args;
11999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12000 if (!SWIG_IsOK(res1)) {
12001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12002 }
12003 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12004 {
12005 PyThreadState* __tstate = wxPyBeginAllowThreads();
12006 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12007 wxPyEndAllowThreads(__tstate);
12008 if (PyErr_Occurred()) SWIG_fail;
12009 }
12010 {
12011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12012 }
12013 return resultobj;
12014fail:
12015 return NULL;
d55e5bfc
RD
12016}
12017
12018
1bd55598
RD
12019SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12020 PyObject *resultobj = 0;
12021 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12022 bool result;
12023 void *argp1 = 0 ;
12024 int res1 = 0 ;
12025 PyObject *swig_obj[1] ;
12026
12027 if (!args) SWIG_fail;
12028 swig_obj[0] = args;
12029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12030 if (!SWIG_IsOK(res1)) {
12031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12032 }
12033 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12034 {
12035 PyThreadState* __tstate = wxPyBeginAllowThreads();
12036 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12037 wxPyEndAllowThreads(__tstate);
12038 if (PyErr_Occurred()) SWIG_fail;
12039 }
12040 {
12041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12042 }
12043 return resultobj;
12044fail:
12045 return NULL;
d55e5bfc
RD
12046}
12047
12048
1bd55598
RD
12049SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12050 PyObject *resultobj = 0;
12051 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12052 bool result;
12053 void *argp1 = 0 ;
12054 int res1 = 0 ;
12055 PyObject *swig_obj[1] ;
12056
12057 if (!args) SWIG_fail;
12058 swig_obj[0] = args;
12059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12060 if (!SWIG_IsOK(res1)) {
12061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12062 }
12063 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12064 {
12065 PyThreadState* __tstate = wxPyBeginAllowThreads();
12066 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12067 wxPyEndAllowThreads(__tstate);
12068 if (PyErr_Occurred()) SWIG_fail;
12069 }
12070 {
12071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12072 }
12073 return resultobj;
12074fail:
12075 return NULL;
12076}
12077
12078
12079SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12080 PyObject *resultobj = 0;
12081 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12082 long *arg2 = (long *) 0 ;
12083 long *arg3 = (long *) 0 ;
12084 void *argp1 = 0 ;
12085 int res1 = 0 ;
12086 long temp2 ;
12087 int res2 = SWIG_TMPOBJ ;
12088 long temp3 ;
12089 int res3 = SWIG_TMPOBJ ;
12090 PyObject *swig_obj[1] ;
12091
12092 arg2 = &temp2;
12093 arg3 = &temp3;
12094 if (!args) SWIG_fail;
12095 swig_obj[0] = args;
12096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12097 if (!SWIG_IsOK(res1)) {
12098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12099 }
12100 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12101 {
12102 PyThreadState* __tstate = wxPyBeginAllowThreads();
12103 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12104 wxPyEndAllowThreads(__tstate);
12105 if (PyErr_Occurred()) SWIG_fail;
12106 }
12107 resultobj = SWIG_Py_Void();
12108 if (SWIG_IsTmpObj(res2)) {
12109 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12110 } else {
12111 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12112 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12113 }
12114 if (SWIG_IsTmpObj(res3)) {
12115 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12116 } else {
12117 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12118 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12119 }
12120 return resultobj;
12121fail:
12122 return NULL;
d55e5bfc
RD
12123}
12124
12125
1bd55598
RD
12126SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12127 PyObject *resultobj = 0;
12128 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12129 wxString result;
12130 void *argp1 = 0 ;
12131 int res1 = 0 ;
12132 PyObject *swig_obj[1] ;
12133
12134 if (!args) SWIG_fail;
12135 swig_obj[0] = args;
12136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12137 if (!SWIG_IsOK(res1)) {
12138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12139 }
12140 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12141 {
12142 PyThreadState* __tstate = wxPyBeginAllowThreads();
12143 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12144 wxPyEndAllowThreads(__tstate);
12145 if (PyErr_Occurred()) SWIG_fail;
12146 }
12147 {
d55e5bfc 12148#if wxUSE_UNICODE
1bd55598 12149 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 12150#else
1bd55598 12151 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 12152#endif
1bd55598
RD
12153 }
12154 return resultobj;
12155fail:
12156 return NULL;
d55e5bfc
RD
12157}
12158
12159
1bd55598
RD
12160SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12161 PyObject *resultobj = 0;
12162 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12163 void *argp1 = 0 ;
12164 int res1 = 0 ;
12165 PyObject *swig_obj[1] ;
12166
12167 if (!args) SWIG_fail;
12168 swig_obj[0] = args;
12169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12170 if (!SWIG_IsOK(res1)) {
12171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12172 }
12173 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12174 {
12175 PyThreadState* __tstate = wxPyBeginAllowThreads();
12176 (arg1)->Clear();
12177 wxPyEndAllowThreads(__tstate);
12178 if (PyErr_Occurred()) SWIG_fail;
12179 }
12180 resultobj = SWIG_Py_Void();
12181 return resultobj;
12182fail:
12183 return NULL;
12184}
12185
12186
12187SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12188 PyObject *resultobj = 0;
12189 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12190 long arg2 ;
12191 long arg3 ;
12192 wxString *arg4 = 0 ;
12193 void *argp1 = 0 ;
12194 int res1 = 0 ;
12195 long val2 ;
12196 int ecode2 = 0 ;
12197 long val3 ;
12198 int ecode3 = 0 ;
12199 bool temp4 = false ;
12200 PyObject * obj0 = 0 ;
12201 PyObject * obj1 = 0 ;
12202 PyObject * obj2 = 0 ;
12203 PyObject * obj3 = 0 ;
12204 char * kwnames[] = {
12205 (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL
12206 };
12207
12208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12210 if (!SWIG_IsOK(res1)) {
12211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12212 }
12213 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12214 ecode2 = SWIG_AsVal_long(obj1, &val2);
12215 if (!SWIG_IsOK(ecode2)) {
12216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12217 }
12218 arg2 = static_cast< long >(val2);
12219 ecode3 = SWIG_AsVal_long(obj2, &val3);
12220 if (!SWIG_IsOK(ecode3)) {
12221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12222 }
12223 arg3 = static_cast< long >(val3);
12224 {
12225 arg4 = wxString_in_helper(obj3);
12226 if (arg4 == NULL) SWIG_fail;
12227 temp4 = true;
12228 }
12229 {
12230 PyThreadState* __tstate = wxPyBeginAllowThreads();
12231 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12232 wxPyEndAllowThreads(__tstate);
12233 if (PyErr_Occurred()) SWIG_fail;
12234 }
12235 resultobj = SWIG_Py_Void();
12236 {
12237 if (temp4)
12238 delete arg4;
12239 }
12240 return resultobj;
12241fail:
12242 {
12243 if (temp4)
12244 delete arg4;
12245 }
12246 return NULL;
12247}
12248
12249
12250SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12251 PyObject *resultobj = 0;
12252 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12253 long arg2 ;
12254 long arg3 ;
12255 void *argp1 = 0 ;
12256 int res1 = 0 ;
12257 long val2 ;
12258 int ecode2 = 0 ;
12259 long val3 ;
12260 int ecode3 = 0 ;
12261 PyObject * obj0 = 0 ;
12262 PyObject * obj1 = 0 ;
12263 PyObject * obj2 = 0 ;
12264 char * kwnames[] = {
12265 (char *) "self",(char *) "_from",(char *) "to", NULL
12266 };
12267
12268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12270 if (!SWIG_IsOK(res1)) {
12271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12272 }
12273 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12274 ecode2 = SWIG_AsVal_long(obj1, &val2);
12275 if (!SWIG_IsOK(ecode2)) {
12276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12277 }
12278 arg2 = static_cast< long >(val2);
12279 ecode3 = SWIG_AsVal_long(obj2, &val3);
12280 if (!SWIG_IsOK(ecode3)) {
12281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12282 }
12283 arg3 = static_cast< long >(val3);
12284 {
12285 PyThreadState* __tstate = wxPyBeginAllowThreads();
12286 (arg1)->Remove(arg2,arg3);
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 resultobj = SWIG_Py_Void();
12291 return resultobj;
12292fail:
12293 return NULL;
12294}
12295
12296
12297SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12298 PyObject *resultobj = 0;
12299 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12300 wxString *arg2 = 0 ;
12301 bool result;
12302 void *argp1 = 0 ;
12303 int res1 = 0 ;
12304 bool temp2 = false ;
12305 PyObject * obj0 = 0 ;
12306 PyObject * obj1 = 0 ;
12307 char * kwnames[] = {
12308 (char *) "self",(char *) "file", NULL
12309 };
12310
12311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12313 if (!SWIG_IsOK(res1)) {
12314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12315 }
12316 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12317 {
12318 arg2 = wxString_in_helper(obj1);
12319 if (arg2 == NULL) SWIG_fail;
12320 temp2 = true;
12321 }
12322 {
12323 PyThreadState* __tstate = wxPyBeginAllowThreads();
12324 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12325 wxPyEndAllowThreads(__tstate);
12326 if (PyErr_Occurred()) SWIG_fail;
12327 }
12328 {
12329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12330 }
12331 {
12332 if (temp2)
12333 delete arg2;
12334 }
12335 return resultobj;
12336fail:
12337 {
12338 if (temp2)
12339 delete arg2;
12340 }
12341 return NULL;
12342}
12343
12344
12345SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12346 PyObject *resultobj = 0;
12347 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12348 wxString const &arg2_defvalue = wxPyEmptyString ;
12349 wxString *arg2 = (wxString *) &arg2_defvalue ;
12350 bool result;
12351 void *argp1 = 0 ;
12352 int res1 = 0 ;
12353 bool temp2 = false ;
12354 PyObject * obj0 = 0 ;
12355 PyObject * obj1 = 0 ;
12356 char * kwnames[] = {
12357 (char *) "self",(char *) "file", NULL
12358 };
12359
12360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12362 if (!SWIG_IsOK(res1)) {
12363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12364 }
12365 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12366 if (obj1) {
d55e5bfc 12367 {
1bd55598
RD
12368 arg2 = wxString_in_helper(obj1);
12369 if (arg2 == NULL) SWIG_fail;
12370 temp2 = true;
d55e5bfc 12371 }
1bd55598
RD
12372 }
12373 {
12374 PyThreadState* __tstate = wxPyBeginAllowThreads();
12375 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12376 wxPyEndAllowThreads(__tstate);
12377 if (PyErr_Occurred()) SWIG_fail;
12378 }
12379 {
12380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12381 }
12382 {
12383 if (temp2)
12384 delete arg2;
12385 }
12386 return resultobj;
12387fail:
12388 {
12389 if (temp2)
12390 delete arg2;
12391 }
12392 return NULL;
d55e5bfc
RD
12393}
12394
12395
1bd55598
RD
12396SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12397 PyObject *resultobj = 0;
12398 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12399 void *argp1 = 0 ;
12400 int res1 = 0 ;
12401 PyObject *swig_obj[1] ;
12402
12403 if (!args) SWIG_fail;
12404 swig_obj[0] = args;
12405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12406 if (!SWIG_IsOK(res1)) {
12407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12408 }
12409 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12410 {
12411 PyThreadState* __tstate = wxPyBeginAllowThreads();
12412 (arg1)->MarkDirty();
12413 wxPyEndAllowThreads(__tstate);
12414 if (PyErr_Occurred()) SWIG_fail;
12415 }
12416 resultobj = SWIG_Py_Void();
12417 return resultobj;
12418fail:
12419 return NULL;
d55e5bfc
RD
12420}
12421
12422
1bd55598
RD
12423SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12424 PyObject *resultobj = 0;
12425 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12426 void *argp1 = 0 ;
12427 int res1 = 0 ;
12428 PyObject *swig_obj[1] ;
12429
12430 if (!args) SWIG_fail;
12431 swig_obj[0] = args;
12432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12433 if (!SWIG_IsOK(res1)) {
12434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12435 }
12436 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12437 {
12438 PyThreadState* __tstate = wxPyBeginAllowThreads();
12439 (arg1)->DiscardEdits();
12440 wxPyEndAllowThreads(__tstate);
12441 if (PyErr_Occurred()) SWIG_fail;
12442 }
12443 resultobj = SWIG_Py_Void();
12444 return resultobj;
12445fail:
12446 return NULL;
12447}
12448
12449
12450SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12451 PyObject *resultobj = 0;
12452 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12453 unsigned long arg2 ;
12454 void *argp1 = 0 ;
12455 int res1 = 0 ;
12456 unsigned long val2 ;
12457 int ecode2 = 0 ;
12458 PyObject * obj0 = 0 ;
12459 PyObject * obj1 = 0 ;
12460 char * kwnames[] = {
12461 (char *) "self",(char *) "len", NULL
12462 };
12463
12464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12466 if (!SWIG_IsOK(res1)) {
12467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12468 }
12469 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12470 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12471 if (!SWIG_IsOK(ecode2)) {
12472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12473 }
12474 arg2 = static_cast< unsigned long >(val2);
12475 {
12476 PyThreadState* __tstate = wxPyBeginAllowThreads();
12477 (arg1)->SetMaxLength(arg2);
12478 wxPyEndAllowThreads(__tstate);
12479 if (PyErr_Occurred()) SWIG_fail;
12480 }
12481 resultobj = SWIG_Py_Void();
12482 return resultobj;
12483fail:
12484 return NULL;
12485}
12486
12487
12488SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12489 PyObject *resultobj = 0;
12490 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12491 wxString *arg2 = 0 ;
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 *) "text", NULL
12499 };
12500
12501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12503 if (!SWIG_IsOK(res1)) {
12504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12505 }
12506 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12507 {
12508 arg2 = wxString_in_helper(obj1);
12509 if (arg2 == NULL) SWIG_fail;
12510 temp2 = true;
12511 }
12512 {
12513 PyThreadState* __tstate = wxPyBeginAllowThreads();
12514 (arg1)->WriteText((wxString const &)*arg2);
12515 wxPyEndAllowThreads(__tstate);
12516 if (PyErr_Occurred()) SWIG_fail;
12517 }
12518 resultobj = SWIG_Py_Void();
12519 {
12520 if (temp2)
12521 delete arg2;
12522 }
12523 return resultobj;
12524fail:
12525 {
12526 if (temp2)
12527 delete arg2;
12528 }
12529 return NULL;
d55e5bfc
RD
12530}
12531
12532
1bd55598
RD
12533SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12534 PyObject *resultobj = 0;
12535 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12536 wxString *arg2 = 0 ;
12537 void *argp1 = 0 ;
12538 int res1 = 0 ;
12539 bool temp2 = false ;
12540 PyObject * obj0 = 0 ;
12541 PyObject * obj1 = 0 ;
12542 char * kwnames[] = {
12543 (char *) "self",(char *) "text", NULL
12544 };
12545
12546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12548 if (!SWIG_IsOK(res1)) {
12549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12550 }
12551 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12552 {
12553 arg2 = wxString_in_helper(obj1);
12554 if (arg2 == NULL) SWIG_fail;
12555 temp2 = true;
12556 }
12557 {
12558 PyThreadState* __tstate = wxPyBeginAllowThreads();
12559 (arg1)->AppendText((wxString const &)*arg2);
12560 wxPyEndAllowThreads(__tstate);
12561 if (PyErr_Occurred()) SWIG_fail;
12562 }
12563 resultobj = SWIG_Py_Void();
12564 {
12565 if (temp2)
12566 delete arg2;
12567 }
12568 return resultobj;
12569fail:
12570 {
12571 if (temp2)
12572 delete arg2;
12573 }
12574 return NULL;
12575}
12576
12577
12578SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12579 PyObject *resultobj = 0;
12580 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12581 wxKeyEvent *arg2 = 0 ;
12582 bool result;
12583 void *argp1 = 0 ;
12584 int res1 = 0 ;
12585 void *argp2 = 0 ;
12586 int res2 = 0 ;
12587 PyObject * obj0 = 0 ;
12588 PyObject * obj1 = 0 ;
12589 char * kwnames[] = {
12590 (char *) "self",(char *) "event", NULL
12591 };
12592
12593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12595 if (!SWIG_IsOK(res1)) {
12596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12597 }
12598 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12599 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12600 if (!SWIG_IsOK(res2)) {
12601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12602 }
12603 if (!argp2) {
12604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12605 }
12606 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12607 {
12608 PyThreadState* __tstate = wxPyBeginAllowThreads();
12609 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12610 wxPyEndAllowThreads(__tstate);
12611 if (PyErr_Occurred()) SWIG_fail;
12612 }
12613 {
12614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12615 }
12616 return resultobj;
12617fail:
12618 return NULL;
12619}
12620
12621
12622SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12623 PyObject *resultobj = 0;
12624 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12625 long arg2 ;
12626 long arg3 ;
12627 wxTextAttr *arg4 = 0 ;
12628 bool result;
12629 void *argp1 = 0 ;
12630 int res1 = 0 ;
12631 long val2 ;
12632 int ecode2 = 0 ;
12633 long val3 ;
12634 int ecode3 = 0 ;
12635 void *argp4 = 0 ;
12636 int res4 = 0 ;
12637 PyObject * obj0 = 0 ;
12638 PyObject * obj1 = 0 ;
12639 PyObject * obj2 = 0 ;
12640 PyObject * obj3 = 0 ;
12641 char * kwnames[] = {
12642 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12643 };
12644
12645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12647 if (!SWIG_IsOK(res1)) {
12648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12649 }
12650 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12651 ecode2 = SWIG_AsVal_long(obj1, &val2);
12652 if (!SWIG_IsOK(ecode2)) {
12653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12654 }
12655 arg2 = static_cast< long >(val2);
12656 ecode3 = SWIG_AsVal_long(obj2, &val3);
12657 if (!SWIG_IsOK(ecode3)) {
12658 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12659 }
12660 arg3 = static_cast< long >(val3);
12661 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12662 if (!SWIG_IsOK(res4)) {
12663 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12664 }
12665 if (!argp4) {
12666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12667 }
12668 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12669 {
12670 PyThreadState* __tstate = wxPyBeginAllowThreads();
12671 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12672 wxPyEndAllowThreads(__tstate);
12673 if (PyErr_Occurred()) SWIG_fail;
12674 }
12675 {
12676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12677 }
12678 return resultobj;
12679fail:
12680 return NULL;
12681}
12682
12683
12684SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12685 PyObject *resultobj = 0;
12686 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12687 long arg2 ;
12688 wxTextAttr *arg3 = 0 ;
12689 bool result;
12690 void *argp1 = 0 ;
12691 int res1 = 0 ;
12692 long val2 ;
12693 int ecode2 = 0 ;
12694 void *argp3 = 0 ;
12695 int res3 = 0 ;
12696 PyObject * obj0 = 0 ;
12697 PyObject * obj1 = 0 ;
12698 PyObject * obj2 = 0 ;
12699 char * kwnames[] = {
12700 (char *) "self",(char *) "position",(char *) "style", NULL
12701 };
12702
12703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12705 if (!SWIG_IsOK(res1)) {
12706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12707 }
12708 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12709 ecode2 = SWIG_AsVal_long(obj1, &val2);
12710 if (!SWIG_IsOK(ecode2)) {
12711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12712 }
12713 arg2 = static_cast< long >(val2);
12714 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12715 if (!SWIG_IsOK(res3)) {
12716 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12717 }
12718 if (!argp3) {
12719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12720 }
12721 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12722 {
12723 PyThreadState* __tstate = wxPyBeginAllowThreads();
12724 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12725 wxPyEndAllowThreads(__tstate);
12726 if (PyErr_Occurred()) SWIG_fail;
12727 }
12728 {
12729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12730 }
12731 return resultobj;
12732fail:
12733 return NULL;
12734}
12735
12736
12737SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12738 PyObject *resultobj = 0;
12739 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12740 wxTextAttr *arg2 = 0 ;
12741 bool result;
12742 void *argp1 = 0 ;
12743 int res1 = 0 ;
12744 void *argp2 = 0 ;
12745 int res2 = 0 ;
12746 PyObject * obj0 = 0 ;
12747 PyObject * obj1 = 0 ;
12748 char * kwnames[] = {
12749 (char *) "self",(char *) "style", NULL
12750 };
12751
12752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12754 if (!SWIG_IsOK(res1)) {
12755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12756 }
12757 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12758 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12759 if (!SWIG_IsOK(res2)) {
12760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12761 }
12762 if (!argp2) {
12763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12764 }
12765 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12766 {
12767 PyThreadState* __tstate = wxPyBeginAllowThreads();
12768 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12769 wxPyEndAllowThreads(__tstate);
12770 if (PyErr_Occurred()) SWIG_fail;
12771 }
12772 {
12773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12774 }
12775 return resultobj;
12776fail:
12777 return NULL;
d55e5bfc
RD
12778}
12779
12780
1bd55598
RD
12781SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12782 PyObject *resultobj = 0;
12783 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12784 wxTextAttr *result = 0 ;
12785 void *argp1 = 0 ;
12786 int res1 = 0 ;
12787 PyObject *swig_obj[1] ;
12788
12789 if (!args) SWIG_fail;
12790 swig_obj[0] = args;
12791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12792 if (!SWIG_IsOK(res1)) {
12793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12794 }
12795 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12796 {
12797 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 12798 {
1bd55598
RD
12799 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12800 result = (wxTextAttr *) &_result_ref;
d55e5bfc 12801 }
1bd55598
RD
12802 wxPyEndAllowThreads(__tstate);
12803 if (PyErr_Occurred()) SWIG_fail;
12804 }
12805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12806 return resultobj;
12807fail:
12808 return NULL;
12809}
12810
12811
12812SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12813 PyObject *resultobj = 0;
12814 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12815 long arg2 ;
12816 long arg3 ;
12817 long result;
12818 void *argp1 = 0 ;
12819 int res1 = 0 ;
12820 long val2 ;
12821 int ecode2 = 0 ;
12822 long val3 ;
12823 int ecode3 = 0 ;
12824 PyObject * obj0 = 0 ;
12825 PyObject * obj1 = 0 ;
12826 PyObject * obj2 = 0 ;
12827 char * kwnames[] = {
12828 (char *) "self",(char *) "x",(char *) "y", NULL
12829 };
12830
12831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12833 if (!SWIG_IsOK(res1)) {
12834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12835 }
12836 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12837 ecode2 = SWIG_AsVal_long(obj1, &val2);
12838 if (!SWIG_IsOK(ecode2)) {
12839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12840 }
12841 arg2 = static_cast< long >(val2);
12842 ecode3 = SWIG_AsVal_long(obj2, &val3);
12843 if (!SWIG_IsOK(ecode3)) {
12844 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12845 }
12846 arg3 = static_cast< long >(val3);
12847 {
12848 PyThreadState* __tstate = wxPyBeginAllowThreads();
12849 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12850 wxPyEndAllowThreads(__tstate);
12851 if (PyErr_Occurred()) SWIG_fail;
12852 }
12853 resultobj = SWIG_From_long(static_cast< long >(result));
12854 return resultobj;
12855fail:
12856 return NULL;
12857}
12858
12859
12860SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12861 PyObject *resultobj = 0;
12862 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12863 long arg2 ;
12864 long *arg3 = (long *) 0 ;
12865 long *arg4 = (long *) 0 ;
12866 void *argp1 = 0 ;
12867 int res1 = 0 ;
12868 long val2 ;
12869 int ecode2 = 0 ;
12870 long temp3 ;
12871 int res3 = SWIG_TMPOBJ ;
12872 long temp4 ;
12873 int res4 = SWIG_TMPOBJ ;
12874 PyObject * obj0 = 0 ;
12875 PyObject * obj1 = 0 ;
12876 char * kwnames[] = {
12877 (char *) "self",(char *) "pos", NULL
12878 };
12879
12880 arg3 = &temp3;
12881 arg4 = &temp4;
12882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
12883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12884 if (!SWIG_IsOK(res1)) {
12885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12886 }
12887 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12888 ecode2 = SWIG_AsVal_long(obj1, &val2);
12889 if (!SWIG_IsOK(ecode2)) {
12890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
12891 }
12892 arg2 = static_cast< long >(val2);
12893 {
12894 PyThreadState* __tstate = wxPyBeginAllowThreads();
12895 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
12896 wxPyEndAllowThreads(__tstate);
12897 if (PyErr_Occurred()) SWIG_fail;
12898 }
12899 resultobj = SWIG_Py_Void();
12900 if (SWIG_IsTmpObj(res3)) {
12901 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12902 } else {
12903 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12904 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12905 }
12906 if (SWIG_IsTmpObj(res4)) {
12907 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
12908 } else {
12909 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12910 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
12911 }
12912 return resultobj;
12913fail:
12914 return NULL;
12915}
12916
12917
12918SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12919 PyObject *resultobj = 0;
12920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12921 long arg2 ;
12922 void *argp1 = 0 ;
12923 int res1 = 0 ;
12924 long val2 ;
12925 int ecode2 = 0 ;
12926 PyObject * obj0 = 0 ;
12927 PyObject * obj1 = 0 ;
12928 char * kwnames[] = {
12929 (char *) "self",(char *) "pos", NULL
12930 };
12931
12932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
12933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12934 if (!SWIG_IsOK(res1)) {
12935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12936 }
12937 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12938 ecode2 = SWIG_AsVal_long(obj1, &val2);
12939 if (!SWIG_IsOK(ecode2)) {
12940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
12941 }
12942 arg2 = static_cast< long >(val2);
12943 {
12944 PyThreadState* __tstate = wxPyBeginAllowThreads();
12945 (arg1)->ShowPosition(arg2);
12946 wxPyEndAllowThreads(__tstate);
12947 if (PyErr_Occurred()) SWIG_fail;
12948 }
12949 resultobj = SWIG_Py_Void();
12950 return resultobj;
12951fail:
12952 return NULL;
12953}
12954
12955
12956SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12957 PyObject *resultobj = 0;
12958 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12959 wxPoint *arg2 = 0 ;
12960 long *arg3 = (long *) 0 ;
12961 long *arg4 = (long *) 0 ;
12962 wxTextCtrlHitTestResult result;
12963 void *argp1 = 0 ;
12964 int res1 = 0 ;
12965 wxPoint temp2 ;
12966 long temp3 ;
12967 int res3 = SWIG_TMPOBJ ;
12968 long temp4 ;
12969 int res4 = SWIG_TMPOBJ ;
12970 PyObject * obj0 = 0 ;
12971 PyObject * obj1 = 0 ;
12972 char * kwnames[] = {
12973 (char *) "self",(char *) "pt", NULL
12974 };
12975
12976 arg3 = &temp3;
12977 arg4 = &temp4;
12978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
12979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12980 if (!SWIG_IsOK(res1)) {
12981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12982 }
12983 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12984 {
12985 arg2 = &temp2;
12986 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12987 }
12988 {
12989 PyThreadState* __tstate = wxPyBeginAllowThreads();
12990 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
12991 wxPyEndAllowThreads(__tstate);
12992 if (PyErr_Occurred()) SWIG_fail;
12993 }
12994 resultobj = SWIG_From_int(static_cast< int >(result));
12995 if (SWIG_IsTmpObj(res3)) {
12996 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12997 } else {
12998 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12999 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13000 }
13001 if (SWIG_IsTmpObj(res4)) {
13002 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13003 } else {
13004 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13005 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13006 }
13007 return resultobj;
13008fail:
13009 return NULL;
13010}
13011
13012
13013SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13014 PyObject *resultobj = 0;
13015 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13016 wxPoint *arg2 = 0 ;
13017 long *arg3 = (long *) 0 ;
13018 wxTextCtrlHitTestResult result;
13019 void *argp1 = 0 ;
13020 int res1 = 0 ;
13021 wxPoint temp2 ;
13022 long temp3 ;
13023 int res3 = SWIG_TMPOBJ ;
13024 PyObject * obj0 = 0 ;
13025 PyObject * obj1 = 0 ;
13026 char * kwnames[] = {
13027 (char *) "self",(char *) "pt", NULL
13028 };
13029
13030 arg3 = &temp3;
13031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13033 if (!SWIG_IsOK(res1)) {
13034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13035 }
13036 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13037 {
13038 arg2 = &temp2;
13039 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13040 }
13041 {
13042 PyThreadState* __tstate = wxPyBeginAllowThreads();
13043 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13044 wxPyEndAllowThreads(__tstate);
13045 if (PyErr_Occurred()) SWIG_fail;
13046 }
13047 resultobj = SWIG_From_int(static_cast< int >(result));
13048 if (SWIG_IsTmpObj(res3)) {
13049 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13050 } else {
13051 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13052 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13053 }
13054 return resultobj;
13055fail:
13056 return NULL;
d55e5bfc
RD
13057}
13058
13059
1bd55598
RD
13060SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13061 PyObject *resultobj = 0;
13062 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13063 void *argp1 = 0 ;
13064 int res1 = 0 ;
13065 PyObject *swig_obj[1] ;
13066
13067 if (!args) SWIG_fail;
13068 swig_obj[0] = args;
13069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13070 if (!SWIG_IsOK(res1)) {
13071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13072 }
13073 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13074 {
13075 PyThreadState* __tstate = wxPyBeginAllowThreads();
13076 (arg1)->Copy();
13077 wxPyEndAllowThreads(__tstate);
13078 if (PyErr_Occurred()) SWIG_fail;
13079 }
13080 resultobj = SWIG_Py_Void();
13081 return resultobj;
13082fail:
13083 return NULL;
d55e5bfc
RD
13084}
13085
13086
1bd55598
RD
13087SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13088 PyObject *resultobj = 0;
13089 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13090 void *argp1 = 0 ;
13091 int res1 = 0 ;
13092 PyObject *swig_obj[1] ;
13093
13094 if (!args) SWIG_fail;
13095 swig_obj[0] = args;
13096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13097 if (!SWIG_IsOK(res1)) {
13098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13099 }
13100 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13101 {
13102 PyThreadState* __tstate = wxPyBeginAllowThreads();
13103 (arg1)->Cut();
13104 wxPyEndAllowThreads(__tstate);
13105 if (PyErr_Occurred()) SWIG_fail;
13106 }
13107 resultobj = SWIG_Py_Void();
13108 return resultobj;
13109fail:
13110 return NULL;
d55e5bfc
RD
13111}
13112
13113
1bd55598
RD
13114SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13115 PyObject *resultobj = 0;
13116 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13117 void *argp1 = 0 ;
13118 int res1 = 0 ;
13119 PyObject *swig_obj[1] ;
13120
13121 if (!args) SWIG_fail;
13122 swig_obj[0] = args;
13123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13124 if (!SWIG_IsOK(res1)) {
13125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13126 }
13127 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13128 {
13129 PyThreadState* __tstate = wxPyBeginAllowThreads();
13130 (arg1)->Paste();
13131 wxPyEndAllowThreads(__tstate);
13132 if (PyErr_Occurred()) SWIG_fail;
13133 }
13134 resultobj = SWIG_Py_Void();
13135 return resultobj;
13136fail:
13137 return NULL;
d55e5bfc
RD
13138}
13139
13140
1bd55598
RD
13141SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13142 PyObject *resultobj = 0;
13143 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13144 bool result;
13145 void *argp1 = 0 ;
13146 int res1 = 0 ;
13147 PyObject *swig_obj[1] ;
13148
13149 if (!args) SWIG_fail;
13150 swig_obj[0] = args;
13151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13152 if (!SWIG_IsOK(res1)) {
13153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13154 }
13155 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13156 {
13157 PyThreadState* __tstate = wxPyBeginAllowThreads();
13158 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13159 wxPyEndAllowThreads(__tstate);
13160 if (PyErr_Occurred()) SWIG_fail;
13161 }
13162 {
13163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13164 }
13165 return resultobj;
13166fail:
13167 return NULL;
d55e5bfc
RD
13168}
13169
13170
1bd55598
RD
13171SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13172 PyObject *resultobj = 0;
13173 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13174 bool result;
13175 void *argp1 = 0 ;
13176 int res1 = 0 ;
13177 PyObject *swig_obj[1] ;
13178
13179 if (!args) SWIG_fail;
13180 swig_obj[0] = args;
13181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13182 if (!SWIG_IsOK(res1)) {
13183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13184 }
13185 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13186 {
13187 PyThreadState* __tstate = wxPyBeginAllowThreads();
13188 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13189 wxPyEndAllowThreads(__tstate);
13190 if (PyErr_Occurred()) SWIG_fail;
13191 }
13192 {
13193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13194 }
13195 return resultobj;
13196fail:
13197 return NULL;
d55e5bfc
RD
13198}
13199
13200
1bd55598
RD
13201SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13202 PyObject *resultobj = 0;
13203 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13204 bool result;
13205 void *argp1 = 0 ;
13206 int res1 = 0 ;
13207 PyObject *swig_obj[1] ;
13208
13209 if (!args) SWIG_fail;
13210 swig_obj[0] = args;
13211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13212 if (!SWIG_IsOK(res1)) {
13213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13214 }
13215 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13216 {
13217 PyThreadState* __tstate = wxPyBeginAllowThreads();
13218 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13219 wxPyEndAllowThreads(__tstate);
13220 if (PyErr_Occurred()) SWIG_fail;
13221 }
13222 {
13223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13224 }
13225 return resultobj;
13226fail:
13227 return NULL;
d55e5bfc
RD
13228}
13229
13230
1bd55598
RD
13231SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13232 PyObject *resultobj = 0;
13233 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13234 void *argp1 = 0 ;
13235 int res1 = 0 ;
13236 PyObject *swig_obj[1] ;
13237
13238 if (!args) SWIG_fail;
13239 swig_obj[0] = args;
13240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13241 if (!SWIG_IsOK(res1)) {
13242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13243 }
13244 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13245 {
13246 PyThreadState* __tstate = wxPyBeginAllowThreads();
13247 (arg1)->Undo();
13248 wxPyEndAllowThreads(__tstate);
13249 if (PyErr_Occurred()) SWIG_fail;
13250 }
13251 resultobj = SWIG_Py_Void();
13252 return resultobj;
13253fail:
13254 return NULL;
d55e5bfc
RD
13255}
13256
13257
1bd55598
RD
13258SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13259 PyObject *resultobj = 0;
13260 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13261 void *argp1 = 0 ;
13262 int res1 = 0 ;
13263 PyObject *swig_obj[1] ;
13264
13265 if (!args) SWIG_fail;
13266 swig_obj[0] = args;
13267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13268 if (!SWIG_IsOK(res1)) {
13269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13270 }
13271 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13272 {
13273 PyThreadState* __tstate = wxPyBeginAllowThreads();
13274 (arg1)->Redo();
13275 wxPyEndAllowThreads(__tstate);
13276 if (PyErr_Occurred()) SWIG_fail;
13277 }
13278 resultobj = SWIG_Py_Void();
13279 return resultobj;
13280fail:
13281 return NULL;
d55e5bfc
RD
13282}
13283
13284
1bd55598
RD
13285SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13286 PyObject *resultobj = 0;
13287 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13288 bool result;
13289 void *argp1 = 0 ;
13290 int res1 = 0 ;
13291 PyObject *swig_obj[1] ;
13292
13293 if (!args) SWIG_fail;
13294 swig_obj[0] = args;
13295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13296 if (!SWIG_IsOK(res1)) {
13297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13298 }
13299 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13300 {
13301 PyThreadState* __tstate = wxPyBeginAllowThreads();
13302 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13303 wxPyEndAllowThreads(__tstate);
13304 if (PyErr_Occurred()) SWIG_fail;
13305 }
13306 {
13307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13308 }
13309 return resultobj;
13310fail:
13311 return NULL;
d55e5bfc
RD
13312}
13313
13314
1bd55598
RD
13315SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13316 PyObject *resultobj = 0;
13317 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13318 bool result;
13319 void *argp1 = 0 ;
13320 int res1 = 0 ;
13321 PyObject *swig_obj[1] ;
13322
13323 if (!args) SWIG_fail;
13324 swig_obj[0] = args;
13325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13326 if (!SWIG_IsOK(res1)) {
13327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13328 }
13329 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13330 {
13331 PyThreadState* __tstate = wxPyBeginAllowThreads();
13332 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13333 wxPyEndAllowThreads(__tstate);
13334 if (PyErr_Occurred()) SWIG_fail;
13335 }
13336 {
13337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13338 }
13339 return resultobj;
13340fail:
13341 return NULL;
13342}
13343
13344
13345SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13346 PyObject *resultobj = 0;
13347 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13348 long arg2 ;
13349 void *argp1 = 0 ;
13350 int res1 = 0 ;
13351 long val2 ;
13352 int ecode2 = 0 ;
13353 PyObject * obj0 = 0 ;
13354 PyObject * obj1 = 0 ;
13355 char * kwnames[] = {
13356 (char *) "self",(char *) "pos", NULL
13357 };
13358
13359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13361 if (!SWIG_IsOK(res1)) {
13362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13363 }
13364 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13365 ecode2 = SWIG_AsVal_long(obj1, &val2);
13366 if (!SWIG_IsOK(ecode2)) {
13367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13368 }
13369 arg2 = static_cast< long >(val2);
13370 {
13371 PyThreadState* __tstate = wxPyBeginAllowThreads();
13372 (arg1)->SetInsertionPoint(arg2);
13373 wxPyEndAllowThreads(__tstate);
13374 if (PyErr_Occurred()) SWIG_fail;
13375 }
13376 resultobj = SWIG_Py_Void();
13377 return resultobj;
13378fail:
13379 return NULL;
d55e5bfc
RD
13380}
13381
13382
1bd55598
RD
13383SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13384 PyObject *resultobj = 0;
13385 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13386 void *argp1 = 0 ;
13387 int res1 = 0 ;
13388 PyObject *swig_obj[1] ;
13389
13390 if (!args) SWIG_fail;
13391 swig_obj[0] = args;
13392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13393 if (!SWIG_IsOK(res1)) {
13394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13395 }
13396 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13397 {
13398 PyThreadState* __tstate = wxPyBeginAllowThreads();
13399 (arg1)->SetInsertionPointEnd();
13400 wxPyEndAllowThreads(__tstate);
13401 if (PyErr_Occurred()) SWIG_fail;
13402 }
13403 resultobj = SWIG_Py_Void();
13404 return resultobj;
13405fail:
13406 return NULL;
d55e5bfc
RD
13407}
13408
13409
1bd55598
RD
13410SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13411 PyObject *resultobj = 0;
13412 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13413 long result;
13414 void *argp1 = 0 ;
13415 int res1 = 0 ;
13416 PyObject *swig_obj[1] ;
13417
13418 if (!args) SWIG_fail;
13419 swig_obj[0] = args;
13420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13421 if (!SWIG_IsOK(res1)) {
13422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13423 }
13424 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13425 {
13426 PyThreadState* __tstate = wxPyBeginAllowThreads();
13427 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13428 wxPyEndAllowThreads(__tstate);
13429 if (PyErr_Occurred()) SWIG_fail;
13430 }
13431 resultobj = SWIG_From_long(static_cast< long >(result));
13432 return resultobj;
13433fail:
13434 return NULL;
d55e5bfc
RD
13435}
13436
13437
1bd55598
RD
13438SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13439 PyObject *resultobj = 0;
13440 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13441 long result;
13442 void *argp1 = 0 ;
13443 int res1 = 0 ;
13444 PyObject *swig_obj[1] ;
13445
13446 if (!args) SWIG_fail;
13447 swig_obj[0] = args;
13448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13449 if (!SWIG_IsOK(res1)) {
13450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13451 }
13452 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13453 {
13454 PyThreadState* __tstate = wxPyBeginAllowThreads();
13455 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13456 wxPyEndAllowThreads(__tstate);
13457 if (PyErr_Occurred()) SWIG_fail;
13458 }
13459 resultobj = SWIG_From_long(static_cast< long >(result));
13460 return resultobj;
13461fail:
13462 return NULL;
13463}
13464
13465
13466SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13467 PyObject *resultobj = 0;
13468 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13469 long arg2 ;
13470 long arg3 ;
13471 void *argp1 = 0 ;
13472 int res1 = 0 ;
13473 long val2 ;
13474 int ecode2 = 0 ;
13475 long val3 ;
13476 int ecode3 = 0 ;
13477 PyObject * obj0 = 0 ;
13478 PyObject * obj1 = 0 ;
13479 PyObject * obj2 = 0 ;
13480 char * kwnames[] = {
13481 (char *) "self",(char *) "_from",(char *) "to", NULL
13482 };
13483
13484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13486 if (!SWIG_IsOK(res1)) {
13487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13488 }
13489 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13490 ecode2 = SWIG_AsVal_long(obj1, &val2);
13491 if (!SWIG_IsOK(ecode2)) {
13492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13493 }
13494 arg2 = static_cast< long >(val2);
13495 ecode3 = SWIG_AsVal_long(obj2, &val3);
13496 if (!SWIG_IsOK(ecode3)) {
13497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13498 }
13499 arg3 = static_cast< long >(val3);
13500 {
13501 PyThreadState* __tstate = wxPyBeginAllowThreads();
13502 (arg1)->SetSelection(arg2,arg3);
13503 wxPyEndAllowThreads(__tstate);
13504 if (PyErr_Occurred()) SWIG_fail;
13505 }
13506 resultobj = SWIG_Py_Void();
13507 return resultobj;
13508fail:
13509 return NULL;
d55e5bfc
RD
13510}
13511
13512
1bd55598
RD
13513SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13514 PyObject *resultobj = 0;
13515 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13516 void *argp1 = 0 ;
13517 int res1 = 0 ;
13518 PyObject *swig_obj[1] ;
13519
13520 if (!args) SWIG_fail;
13521 swig_obj[0] = args;
13522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13523 if (!SWIG_IsOK(res1)) {
13524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13525 }
13526 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13527 {
13528 PyThreadState* __tstate = wxPyBeginAllowThreads();
13529 (arg1)->SelectAll();
13530 wxPyEndAllowThreads(__tstate);
13531 if (PyErr_Occurred()) SWIG_fail;
13532 }
13533 resultobj = SWIG_Py_Void();
13534 return resultobj;
13535fail:
13536 return NULL;
13537}
13538
13539
13540SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13541 PyObject *resultobj = 0;
13542 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13543 bool arg2 ;
13544 void *argp1 = 0 ;
13545 int res1 = 0 ;
13546 bool val2 ;
13547 int ecode2 = 0 ;
13548 PyObject * obj0 = 0 ;
13549 PyObject * obj1 = 0 ;
13550 char * kwnames[] = {
13551 (char *) "self",(char *) "editable", NULL
13552 };
13553
13554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13556 if (!SWIG_IsOK(res1)) {
13557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13558 }
13559 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13560 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13561 if (!SWIG_IsOK(ecode2)) {
13562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13563 }
13564 arg2 = static_cast< bool >(val2);
13565 {
13566 PyThreadState* __tstate = wxPyBeginAllowThreads();
13567 (arg1)->SetEditable(arg2);
13568 wxPyEndAllowThreads(__tstate);
13569 if (PyErr_Occurred()) SWIG_fail;
13570 }
13571 resultobj = SWIG_Py_Void();
13572 return resultobj;
13573fail:
13574 return NULL;
13575}
13576
13577
13578SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13579 PyObject *resultobj = 0;
13580 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13581 wxString *arg2 = 0 ;
13582 void *argp1 = 0 ;
13583 int res1 = 0 ;
13584 bool temp2 = false ;
13585 PyObject * obj0 = 0 ;
13586 PyObject * obj1 = 0 ;
13587 char * kwnames[] = {
13588 (char *) "self",(char *) "text", NULL
13589 };
13590
13591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13593 if (!SWIG_IsOK(res1)) {
13594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13595 }
13596 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13597 {
13598 arg2 = wxString_in_helper(obj1);
13599 if (arg2 == NULL) SWIG_fail;
13600 temp2 = true;
13601 }
13602 {
13603 PyThreadState* __tstate = wxPyBeginAllowThreads();
13604 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13605 wxPyEndAllowThreads(__tstate);
13606 if (PyErr_Occurred()) SWIG_fail;
13607 }
13608 resultobj = SWIG_Py_Void();
13609 {
13610 if (temp2)
13611 delete arg2;
13612 }
13613 return resultobj;
13614fail:
13615 {
13616 if (temp2)
13617 delete arg2;
13618 }
13619 return NULL;
13620}
13621
13622
13623SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13624 PyObject *resultobj = 0;
13625 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13626 long arg2 ;
13627 long arg3 ;
13628 wxString result;
13629 void *argp1 = 0 ;
13630 int res1 = 0 ;
13631 long val2 ;
13632 int ecode2 = 0 ;
13633 long val3 ;
13634 int ecode3 = 0 ;
13635 PyObject * obj0 = 0 ;
13636 PyObject * obj1 = 0 ;
13637 PyObject * obj2 = 0 ;
13638 char * kwnames[] = {
13639 (char *) "self",(char *) "_from",(char *) "to", NULL
13640 };
13641
13642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13644 if (!SWIG_IsOK(res1)) {
13645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13646 }
13647 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13648 ecode2 = SWIG_AsVal_long(obj1, &val2);
13649 if (!SWIG_IsOK(ecode2)) {
13650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13651 }
13652 arg2 = static_cast< long >(val2);
13653 ecode3 = SWIG_AsVal_long(obj2, &val3);
13654 if (!SWIG_IsOK(ecode3)) {
13655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13656 }
13657 arg3 = static_cast< long >(val3);
13658 {
13659 PyThreadState* __tstate = wxPyBeginAllowThreads();
13660 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13661 wxPyEndAllowThreads(__tstate);
13662 if (PyErr_Occurred()) SWIG_fail;
13663 }
13664 {
13665#if wxUSE_UNICODE
13666 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13667#else
13668 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13669#endif
13670 }
13671 return resultobj;
13672fail:
13673 return NULL;
d55e5bfc
RD
13674}
13675
13676
1bd55598
RD
13677SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13678 PyObject *resultobj = 0;
13679 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13680 SwigValueWrapper<wxVisualAttributes > result;
13681 int val1 ;
13682 int ecode1 = 0 ;
13683 PyObject * obj0 = 0 ;
13684 char * kwnames[] = {
13685 (char *) "variant", NULL
13686 };
13687
13688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13689 if (obj0) {
13690 ecode1 = SWIG_AsVal_int(obj0, &val1);
13691 if (!SWIG_IsOK(ecode1)) {
13692 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13693 }
13694 arg1 = static_cast< wxWindowVariant >(val1);
13695 }
13696 {
13697 if (!wxPyCheckForApp()) SWIG_fail;
13698 PyThreadState* __tstate = wxPyBeginAllowThreads();
13699 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13700 wxPyEndAllowThreads(__tstate);
13701 if (PyErr_Occurred()) SWIG_fail;
13702 }
13703 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13704 return resultobj;
13705fail:
13706 return NULL;
13707}
13708
13709
13710SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13711 PyObject *obj;
13712 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13713 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13714 return SWIG_Py_Void();
13715}
13716
13717SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13718 return SWIG_Python_InitShadowInstance(args);
13719}
13720
13721SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13722 PyObject *resultobj = 0;
13723 int arg1 ;
13724 wxMouseEvent *arg2 = 0 ;
13725 long arg3 ;
13726 long arg4 ;
13727 wxTextUrlEvent *result = 0 ;
13728 int val1 ;
13729 int ecode1 = 0 ;
13730 void *argp2 = 0 ;
13731 int res2 = 0 ;
13732 long val3 ;
13733 int ecode3 = 0 ;
13734 long val4 ;
13735 int ecode4 = 0 ;
13736 PyObject * obj0 = 0 ;
13737 PyObject * obj1 = 0 ;
13738 PyObject * obj2 = 0 ;
13739 PyObject * obj3 = 0 ;
13740 char * kwnames[] = {
13741 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13742 };
13743
13744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13745 ecode1 = SWIG_AsVal_int(obj0, &val1);
13746 if (!SWIG_IsOK(ecode1)) {
13747 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13748 }
13749 arg1 = static_cast< int >(val1);
13750 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13751 if (!SWIG_IsOK(res2)) {
13752 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13753 }
13754 if (!argp2) {
13755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13756 }
13757 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13758 ecode3 = SWIG_AsVal_long(obj2, &val3);
13759 if (!SWIG_IsOK(ecode3)) {
13760 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13761 }
13762 arg3 = static_cast< long >(val3);
13763 ecode4 = SWIG_AsVal_long(obj3, &val4);
13764 if (!SWIG_IsOK(ecode4)) {
13765 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13766 }
13767 arg4 = static_cast< long >(val4);
13768 {
13769 PyThreadState* __tstate = wxPyBeginAllowThreads();
13770 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13771 wxPyEndAllowThreads(__tstate);
13772 if (PyErr_Occurred()) SWIG_fail;
13773 }
13774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13775 return resultobj;
13776fail:
13777 return NULL;
d55e5bfc
RD
13778}
13779
13780
1bd55598
RD
13781SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13782 PyObject *resultobj = 0;
13783 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13784 wxMouseEvent *result = 0 ;
13785 void *argp1 = 0 ;
13786 int res1 = 0 ;
13787 PyObject *swig_obj[1] ;
13788
13789 if (!args) SWIG_fail;
13790 swig_obj[0] = args;
13791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13792 if (!SWIG_IsOK(res1)) {
13793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13794 }
13795 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13796 {
13797 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 13798 {
1bd55598
RD
13799 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13800 result = (wxMouseEvent *) &_result_ref;
d55e5bfc 13801 }
1bd55598
RD
13802 wxPyEndAllowThreads(__tstate);
13803 if (PyErr_Occurred()) SWIG_fail;
13804 }
13805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13806 return resultobj;
13807fail:
13808 return NULL;
d55e5bfc
RD
13809}
13810
13811
1bd55598
RD
13812SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13813 PyObject *resultobj = 0;
13814 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13815 long result;
13816 void *argp1 = 0 ;
13817 int res1 = 0 ;
13818 PyObject *swig_obj[1] ;
13819
13820 if (!args) SWIG_fail;
13821 swig_obj[0] = args;
13822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13823 if (!SWIG_IsOK(res1)) {
13824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13825 }
13826 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13827 {
13828 PyThreadState* __tstate = wxPyBeginAllowThreads();
13829 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13830 wxPyEndAllowThreads(__tstate);
13831 if (PyErr_Occurred()) SWIG_fail;
13832 }
13833 resultobj = SWIG_From_long(static_cast< long >(result));
13834 return resultobj;
13835fail:
13836 return NULL;
d55e5bfc
RD
13837}
13838
13839
1bd55598
RD
13840SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13841 PyObject *resultobj = 0;
13842 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13843 long result;
13844 void *argp1 = 0 ;
13845 int res1 = 0 ;
13846 PyObject *swig_obj[1] ;
13847
13848 if (!args) SWIG_fail;
13849 swig_obj[0] = args;
13850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13851 if (!SWIG_IsOK(res1)) {
13852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13853 }
13854 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13855 {
13856 PyThreadState* __tstate = wxPyBeginAllowThreads();
13857 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
13858 wxPyEndAllowThreads(__tstate);
13859 if (PyErr_Occurred()) SWIG_fail;
13860 }
13861 resultobj = SWIG_From_long(static_cast< long >(result));
13862 return resultobj;
13863fail:
13864 return NULL;
d55e5bfc
RD
13865}
13866
13867
1bd55598
RD
13868SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13869 PyObject *obj;
13870 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13871 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
13872 return SWIG_Py_Void();
68e533f8
RD
13873}
13874
1bd55598
RD
13875SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13876 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
13877}
13878
1bd55598
RD
13879SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
13880 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
13881 return 1;
d55e5bfc
RD
13882}
13883
13884
1bd55598
RD
13885SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
13886 PyObject *pyobj = 0;
13887
13888 {
13889#if wxUSE_UNICODE
13890 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
13891#else
13892 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
13893#endif
13894 }
13895 return pyobj;
13896}
13897
13898
13899SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13900 PyObject *resultobj = 0;
13901 wxWindow *arg1 = (wxWindow *) 0 ;
13902 int arg2 = (int) -1 ;
13903 wxPoint const &arg3_defvalue = wxDefaultPosition ;
13904 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
13905 wxSize const &arg4_defvalue = wxDefaultSize ;
13906 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
13907 long arg5 = (long) wxSB_HORIZONTAL ;
13908 wxValidator const &arg6_defvalue = wxDefaultValidator ;
13909 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
13910 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
13911 wxString *arg7 = (wxString *) &arg7_defvalue ;
13912 wxScrollBar *result = 0 ;
13913 void *argp1 = 0 ;
13914 int res1 = 0 ;
13915 int val2 ;
13916 int ecode2 = 0 ;
13917 wxPoint temp3 ;
13918 wxSize temp4 ;
13919 long val5 ;
13920 int ecode5 = 0 ;
13921 void *argp6 = 0 ;
13922 int res6 = 0 ;
13923 bool temp7 = false ;
13924 PyObject * obj0 = 0 ;
13925 PyObject * obj1 = 0 ;
13926 PyObject * obj2 = 0 ;
13927 PyObject * obj3 = 0 ;
13928 PyObject * obj4 = 0 ;
13929 PyObject * obj5 = 0 ;
13930 PyObject * obj6 = 0 ;
13931 char * kwnames[] = {
13932 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13933 };
13934
13935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
13937 if (!SWIG_IsOK(res1)) {
13938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
13939 }
13940 arg1 = reinterpret_cast< wxWindow * >(argp1);
13941 if (obj1) {
13942 ecode2 = SWIG_AsVal_int(obj1, &val2);
13943 if (!SWIG_IsOK(ecode2)) {
13944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
13945 }
13946 arg2 = static_cast< int >(val2);
13947 }
13948 if (obj2) {
d55e5bfc 13949 {
1bd55598
RD
13950 arg3 = &temp3;
13951 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 13952 }
1bd55598
RD
13953 }
13954 if (obj3) {
36ed4f51 13955 {
1bd55598
RD
13956 arg4 = &temp4;
13957 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 13958 }
1bd55598
RD
13959 }
13960 if (obj4) {
13961 ecode5 = SWIG_AsVal_long(obj4, &val5);
13962 if (!SWIG_IsOK(ecode5)) {
13963 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
13964 }
13965 arg5 = static_cast< long >(val5);
13966 }
13967 if (obj5) {
13968 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
13969 if (!SWIG_IsOK(res6)) {
13970 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 13971 }
1bd55598
RD
13972 if (!argp6) {
13973 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 13974 }
1bd55598
RD
13975 arg6 = reinterpret_cast< wxValidator * >(argp6);
13976 }
13977 if (obj6) {
d55e5bfc 13978 {
1bd55598
RD
13979 arg7 = wxString_in_helper(obj6);
13980 if (arg7 == NULL) SWIG_fail;
13981 temp7 = true;
d55e5bfc 13982 }
1bd55598
RD
13983 }
13984 {
13985 if (!wxPyCheckForApp()) SWIG_fail;
13986 PyThreadState* __tstate = wxPyBeginAllowThreads();
13987 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
13988 wxPyEndAllowThreads(__tstate);
13989 if (PyErr_Occurred()) SWIG_fail;
13990 }
13991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
13992 {
13993 if (temp7)
13994 delete arg7;
13995 }
13996 return resultobj;
13997fail:
13998 {
13999 if (temp7)
14000 delete arg7;
14001 }
14002 return NULL;
d55e5bfc
RD
14003}
14004
14005
1bd55598
RD
14006SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14007 PyObject *resultobj = 0;
14008 wxScrollBar *result = 0 ;
14009
14010 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14011 {
14012 if (!wxPyCheckForApp()) SWIG_fail;
14013 PyThreadState* __tstate = wxPyBeginAllowThreads();
14014 result = (wxScrollBar *)new wxScrollBar();
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14019 return resultobj;
14020fail:
14021 return NULL;
14022}
14023
14024
14025SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14026 PyObject *resultobj = 0;
14027 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14028 wxWindow *arg2 = (wxWindow *) 0 ;
14029 int arg3 = (int) -1 ;
14030 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14031 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14032 wxSize const &arg5_defvalue = wxDefaultSize ;
14033 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14034 long arg6 = (long) wxSB_HORIZONTAL ;
14035 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14036 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14037 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14038 wxString *arg8 = (wxString *) &arg8_defvalue ;
14039 bool result;
14040 void *argp1 = 0 ;
14041 int res1 = 0 ;
14042 void *argp2 = 0 ;
14043 int res2 = 0 ;
14044 int val3 ;
14045 int ecode3 = 0 ;
14046 wxPoint temp4 ;
14047 wxSize temp5 ;
14048 long val6 ;
14049 int ecode6 = 0 ;
14050 void *argp7 = 0 ;
14051 int res7 = 0 ;
14052 bool temp8 = false ;
14053 PyObject * obj0 = 0 ;
14054 PyObject * obj1 = 0 ;
14055 PyObject * obj2 = 0 ;
14056 PyObject * obj3 = 0 ;
14057 PyObject * obj4 = 0 ;
14058 PyObject * obj5 = 0 ;
14059 PyObject * obj6 = 0 ;
14060 PyObject * obj7 = 0 ;
14061 char * kwnames[] = {
14062 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14063 };
14064
14065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14067 if (!SWIG_IsOK(res1)) {
14068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14069 }
14070 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14071 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14072 if (!SWIG_IsOK(res2)) {
14073 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14074 }
14075 arg2 = reinterpret_cast< wxWindow * >(argp2);
14076 if (obj2) {
14077 ecode3 = SWIG_AsVal_int(obj2, &val3);
14078 if (!SWIG_IsOK(ecode3)) {
14079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14080 }
14081 arg3 = static_cast< int >(val3);
14082 }
14083 if (obj3) {
d55e5bfc 14084 {
1bd55598
RD
14085 arg4 = &temp4;
14086 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14087 }
1bd55598
RD
14088 }
14089 if (obj4) {
d55e5bfc 14090 {
1bd55598
RD
14091 arg5 = &temp5;
14092 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14093 }
1bd55598
RD
14094 }
14095 if (obj5) {
14096 ecode6 = SWIG_AsVal_long(obj5, &val6);
14097 if (!SWIG_IsOK(ecode6)) {
14098 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14099 }
14100 arg6 = static_cast< long >(val6);
14101 }
14102 if (obj6) {
14103 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14104 if (!SWIG_IsOK(res7)) {
14105 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14106 }
1bd55598
RD
14107 if (!argp7) {
14108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14109 }
1bd55598
RD
14110 arg7 = reinterpret_cast< wxValidator * >(argp7);
14111 }
14112 if (obj7) {
d55e5bfc 14113 {
1bd55598
RD
14114 arg8 = wxString_in_helper(obj7);
14115 if (arg8 == NULL) SWIG_fail;
14116 temp8 = true;
d55e5bfc 14117 }
1bd55598
RD
14118 }
14119 {
14120 PyThreadState* __tstate = wxPyBeginAllowThreads();
14121 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14122 wxPyEndAllowThreads(__tstate);
14123 if (PyErr_Occurred()) SWIG_fail;
14124 }
14125 {
14126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14127 }
14128 {
14129 if (temp8)
14130 delete arg8;
14131 }
14132 return resultobj;
14133fail:
14134 {
14135 if (temp8)
14136 delete arg8;
14137 }
14138 return NULL;
d55e5bfc
RD
14139}
14140
14141
1bd55598
RD
14142SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14143 PyObject *resultobj = 0;
14144 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14145 int result;
14146 void *argp1 = 0 ;
14147 int res1 = 0 ;
14148 PyObject *swig_obj[1] ;
14149
14150 if (!args) SWIG_fail;
14151 swig_obj[0] = args;
14152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14153 if (!SWIG_IsOK(res1)) {
14154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14155 }
14156 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14157 {
14158 PyThreadState* __tstate = wxPyBeginAllowThreads();
14159 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14160 wxPyEndAllowThreads(__tstate);
14161 if (PyErr_Occurred()) SWIG_fail;
14162 }
14163 resultobj = SWIG_From_int(static_cast< int >(result));
14164 return resultobj;
14165fail:
14166 return NULL;
d55e5bfc
RD
14167}
14168
14169
1bd55598
RD
14170SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14171 PyObject *resultobj = 0;
14172 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14173 int result;
14174 void *argp1 = 0 ;
14175 int res1 = 0 ;
14176 PyObject *swig_obj[1] ;
14177
14178 if (!args) SWIG_fail;
14179 swig_obj[0] = args;
14180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14181 if (!SWIG_IsOK(res1)) {
14182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14183 }
14184 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14185 {
14186 PyThreadState* __tstate = wxPyBeginAllowThreads();
14187 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14188 wxPyEndAllowThreads(__tstate);
14189 if (PyErr_Occurred()) SWIG_fail;
14190 }
14191 resultobj = SWIG_From_int(static_cast< int >(result));
14192 return resultobj;
14193fail:
14194 return NULL;
d55e5bfc
RD
14195}
14196
14197
1bd55598
RD
14198SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14199 PyObject *resultobj = 0;
14200 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14201 int result;
14202 void *argp1 = 0 ;
14203 int res1 = 0 ;
14204 PyObject *swig_obj[1] ;
14205
14206 if (!args) SWIG_fail;
14207 swig_obj[0] = args;
14208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14209 if (!SWIG_IsOK(res1)) {
14210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14211 }
14212 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14213 {
14214 PyThreadState* __tstate = wxPyBeginAllowThreads();
14215 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14216 wxPyEndAllowThreads(__tstate);
14217 if (PyErr_Occurred()) SWIG_fail;
14218 }
14219 resultobj = SWIG_From_int(static_cast< int >(result));
14220 return resultobj;
14221fail:
14222 return NULL;
d55e5bfc
RD
14223}
14224
14225
1bd55598
RD
14226SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14227 PyObject *resultobj = 0;
14228 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14229 int result;
14230 void *argp1 = 0 ;
14231 int res1 = 0 ;
14232 PyObject *swig_obj[1] ;
14233
14234 if (!args) SWIG_fail;
14235 swig_obj[0] = args;
14236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14237 if (!SWIG_IsOK(res1)) {
14238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14239 }
14240 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14241 {
14242 PyThreadState* __tstate = wxPyBeginAllowThreads();
14243 result = (int)((wxScrollBar const *)arg1)->GetRange();
14244 wxPyEndAllowThreads(__tstate);
14245 if (PyErr_Occurred()) SWIG_fail;
14246 }
14247 resultobj = SWIG_From_int(static_cast< int >(result));
14248 return resultobj;
14249fail:
14250 return NULL;
d55e5bfc
RD
14251}
14252
14253
1bd55598
RD
14254SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14255 PyObject *resultobj = 0;
14256 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14257 bool result;
14258 void *argp1 = 0 ;
14259 int res1 = 0 ;
14260 PyObject *swig_obj[1] ;
14261
14262 if (!args) SWIG_fail;
14263 swig_obj[0] = args;
14264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14265 if (!SWIG_IsOK(res1)) {
14266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14267 }
14268 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14269 {
14270 PyThreadState* __tstate = wxPyBeginAllowThreads();
14271 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14272 wxPyEndAllowThreads(__tstate);
14273 if (PyErr_Occurred()) SWIG_fail;
14274 }
14275 {
14276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14277 }
14278 return resultobj;
14279fail:
14280 return NULL;
14281}
14282
14283
14284SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14285 PyObject *resultobj = 0;
14286 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14287 int arg2 ;
14288 void *argp1 = 0 ;
14289 int res1 = 0 ;
14290 int val2 ;
14291 int ecode2 = 0 ;
14292 PyObject * obj0 = 0 ;
14293 PyObject * obj1 = 0 ;
14294 char * kwnames[] = {
14295 (char *) "self",(char *) "viewStart", NULL
14296 };
14297
14298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14300 if (!SWIG_IsOK(res1)) {
14301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14302 }
14303 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14304 ecode2 = SWIG_AsVal_int(obj1, &val2);
14305 if (!SWIG_IsOK(ecode2)) {
14306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14307 }
14308 arg2 = static_cast< int >(val2);
14309 {
14310 PyThreadState* __tstate = wxPyBeginAllowThreads();
14311 (arg1)->SetThumbPosition(arg2);
14312 wxPyEndAllowThreads(__tstate);
14313 if (PyErr_Occurred()) SWIG_fail;
14314 }
14315 resultobj = SWIG_Py_Void();
14316 return resultobj;
14317fail:
14318 return NULL;
14319}
14320
14321
14322SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14323 PyObject *resultobj = 0;
14324 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14325 SwigValueWrapper<wxVisualAttributes > result;
14326 int val1 ;
14327 int ecode1 = 0 ;
14328 PyObject * obj0 = 0 ;
14329 char * kwnames[] = {
14330 (char *) "variant", NULL
14331 };
14332
14333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14334 if (obj0) {
14335 ecode1 = SWIG_AsVal_int(obj0, &val1);
14336 if (!SWIG_IsOK(ecode1)) {
14337 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14338 }
14339 arg1 = static_cast< wxWindowVariant >(val1);
14340 }
14341 {
14342 if (!wxPyCheckForApp()) SWIG_fail;
14343 PyThreadState* __tstate = wxPyBeginAllowThreads();
14344 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14345 wxPyEndAllowThreads(__tstate);
14346 if (PyErr_Occurred()) SWIG_fail;
14347 }
14348 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14349 return resultobj;
14350fail:
14351 return NULL;
d55e5bfc
RD
14352}
14353
14354
1bd55598
RD
14355SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14356 PyObject *obj;
14357 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14358 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14359 return SWIG_Py_Void();
d55e5bfc
RD
14360}
14361
1bd55598
RD
14362SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14363 return SWIG_Python_InitShadowInstance(args);
14364}
d55e5bfc 14365
1bd55598
RD
14366SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14367 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14368 return 1;
14369}
14370
14371
14372SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14373 PyObject *pyobj = 0;
14374
14375 {
d55e5bfc 14376#if wxUSE_UNICODE
1bd55598 14377 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14378#else
1bd55598 14379 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14380#endif
1bd55598
RD
14381 }
14382 return pyobj;
d55e5bfc
RD
14383}
14384
14385
1bd55598
RD
14386SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14387 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14388 return 1;
d55e5bfc
RD
14389}
14390
14391
1bd55598
RD
14392SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14393 PyObject *pyobj = 0;
14394
14395 {
14396#if wxUSE_UNICODE
14397 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14398#else
14399 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14400#endif
14401 }
14402 return pyobj;
14403}
14404
14405
14406SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14407 PyObject *resultobj = 0;
14408 wxWindow *arg1 = (wxWindow *) 0 ;
14409 int arg2 = (int) -1 ;
14410 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14411 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14412 wxSize const &arg4_defvalue = wxDefaultSize ;
14413 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14414 long arg5 = (long) wxSP_HORIZONTAL ;
14415 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14416 wxString *arg6 = (wxString *) &arg6_defvalue ;
14417 wxSpinButton *result = 0 ;
14418 void *argp1 = 0 ;
14419 int res1 = 0 ;
14420 int val2 ;
14421 int ecode2 = 0 ;
14422 wxPoint temp3 ;
14423 wxSize temp4 ;
14424 long val5 ;
14425 int ecode5 = 0 ;
14426 bool temp6 = false ;
14427 PyObject * obj0 = 0 ;
14428 PyObject * obj1 = 0 ;
14429 PyObject * obj2 = 0 ;
14430 PyObject * obj3 = 0 ;
14431 PyObject * obj4 = 0 ;
14432 PyObject * obj5 = 0 ;
14433 char * kwnames[] = {
14434 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14435 };
14436
14437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14439 if (!SWIG_IsOK(res1)) {
14440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14441 }
14442 arg1 = reinterpret_cast< wxWindow * >(argp1);
14443 if (obj1) {
14444 ecode2 = SWIG_AsVal_int(obj1, &val2);
14445 if (!SWIG_IsOK(ecode2)) {
14446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14447 }
14448 arg2 = static_cast< int >(val2);
14449 }
14450 if (obj2) {
d55e5bfc 14451 {
1bd55598
RD
14452 arg3 = &temp3;
14453 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14454 }
1bd55598
RD
14455 }
14456 if (obj3) {
d55e5bfc 14457 {
1bd55598
RD
14458 arg4 = &temp4;
14459 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14460 }
1bd55598
RD
14461 }
14462 if (obj4) {
14463 ecode5 = SWIG_AsVal_long(obj4, &val5);
14464 if (!SWIG_IsOK(ecode5)) {
14465 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14466 }
14467 arg5 = static_cast< long >(val5);
14468 }
14469 if (obj5) {
d55e5bfc 14470 {
1bd55598
RD
14471 arg6 = wxString_in_helper(obj5);
14472 if (arg6 == NULL) SWIG_fail;
14473 temp6 = true;
d55e5bfc 14474 }
1bd55598
RD
14475 }
14476 {
14477 if (!wxPyCheckForApp()) SWIG_fail;
14478 PyThreadState* __tstate = wxPyBeginAllowThreads();
14479 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14480 wxPyEndAllowThreads(__tstate);
14481 if (PyErr_Occurred()) SWIG_fail;
14482 }
14483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14484 {
14485 if (temp6)
14486 delete arg6;
14487 }
14488 return resultobj;
14489fail:
14490 {
14491 if (temp6)
14492 delete arg6;
14493 }
14494 return NULL;
d55e5bfc
RD
14495}
14496
14497
1bd55598
RD
14498SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14499 PyObject *resultobj = 0;
14500 wxSpinButton *result = 0 ;
14501
14502 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14503 {
14504 if (!wxPyCheckForApp()) SWIG_fail;
14505 PyThreadState* __tstate = wxPyBeginAllowThreads();
14506 result = (wxSpinButton *)new wxSpinButton();
14507 wxPyEndAllowThreads(__tstate);
14508 if (PyErr_Occurred()) SWIG_fail;
14509 }
14510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14511 return resultobj;
14512fail:
14513 return NULL;
14514}
14515
14516
14517SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14518 PyObject *resultobj = 0;
14519 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14520 wxWindow *arg2 = (wxWindow *) 0 ;
14521 int arg3 = (int) -1 ;
14522 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14523 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14524 wxSize const &arg5_defvalue = wxDefaultSize ;
14525 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14526 long arg6 = (long) wxSP_HORIZONTAL ;
14527 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14528 wxString *arg7 = (wxString *) &arg7_defvalue ;
14529 bool result;
14530 void *argp1 = 0 ;
14531 int res1 = 0 ;
14532 void *argp2 = 0 ;
14533 int res2 = 0 ;
14534 int val3 ;
14535 int ecode3 = 0 ;
14536 wxPoint temp4 ;
14537 wxSize temp5 ;
14538 long val6 ;
14539 int ecode6 = 0 ;
14540 bool temp7 = false ;
14541 PyObject * obj0 = 0 ;
14542 PyObject * obj1 = 0 ;
14543 PyObject * obj2 = 0 ;
14544 PyObject * obj3 = 0 ;
14545 PyObject * obj4 = 0 ;
14546 PyObject * obj5 = 0 ;
14547 PyObject * obj6 = 0 ;
14548 char * kwnames[] = {
14549 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14550 };
14551
14552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14554 if (!SWIG_IsOK(res1)) {
14555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14556 }
14557 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14558 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14559 if (!SWIG_IsOK(res2)) {
14560 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14561 }
14562 arg2 = reinterpret_cast< wxWindow * >(argp2);
14563 if (obj2) {
14564 ecode3 = SWIG_AsVal_int(obj2, &val3);
14565 if (!SWIG_IsOK(ecode3)) {
14566 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14567 }
14568 arg3 = static_cast< int >(val3);
14569 }
14570 if (obj3) {
d55e5bfc 14571 {
1bd55598
RD
14572 arg4 = &temp4;
14573 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14574 }
1bd55598
RD
14575 }
14576 if (obj4) {
d55e5bfc 14577 {
1bd55598
RD
14578 arg5 = &temp5;
14579 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14580 }
1bd55598
RD
14581 }
14582 if (obj5) {
14583 ecode6 = SWIG_AsVal_long(obj5, &val6);
14584 if (!SWIG_IsOK(ecode6)) {
14585 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14586 }
14587 arg6 = static_cast< long >(val6);
14588 }
14589 if (obj6) {
14590 {
14591 arg7 = wxString_in_helper(obj6);
14592 if (arg7 == NULL) SWIG_fail;
14593 temp7 = true;
14594 }
14595 }
14596 {
14597 PyThreadState* __tstate = wxPyBeginAllowThreads();
14598 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14599 wxPyEndAllowThreads(__tstate);
14600 if (PyErr_Occurred()) SWIG_fail;
14601 }
14602 {
14603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14604 }
14605 {
14606 if (temp7)
14607 delete arg7;
14608 }
14609 return resultobj;
14610fail:
14611 {
14612 if (temp7)
14613 delete arg7;
14614 }
14615 return NULL;
d55e5bfc
RD
14616}
14617
14618
1bd55598
RD
14619SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14620 PyObject *resultobj = 0;
14621 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14622 int result;
14623 void *argp1 = 0 ;
14624 int res1 = 0 ;
14625 PyObject *swig_obj[1] ;
14626
14627 if (!args) SWIG_fail;
14628 swig_obj[0] = args;
14629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14630 if (!SWIG_IsOK(res1)) {
14631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14632 }
14633 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14634 {
14635 PyThreadState* __tstate = wxPyBeginAllowThreads();
14636 result = (int)((wxSpinButton const *)arg1)->GetValue();
14637 wxPyEndAllowThreads(__tstate);
14638 if (PyErr_Occurred()) SWIG_fail;
14639 }
14640 resultobj = SWIG_From_int(static_cast< int >(result));
14641 return resultobj;
14642fail:
14643 return NULL;
d55e5bfc
RD
14644}
14645
14646
1bd55598
RD
14647SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14648 PyObject *resultobj = 0;
14649 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14650 int result;
14651 void *argp1 = 0 ;
14652 int res1 = 0 ;
14653 PyObject *swig_obj[1] ;
14654
14655 if (!args) SWIG_fail;
14656 swig_obj[0] = args;
14657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14658 if (!SWIG_IsOK(res1)) {
14659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14660 }
14661 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14662 {
14663 PyThreadState* __tstate = wxPyBeginAllowThreads();
14664 result = (int)((wxSpinButton const *)arg1)->GetMin();
14665 wxPyEndAllowThreads(__tstate);
14666 if (PyErr_Occurred()) SWIG_fail;
14667 }
14668 resultobj = SWIG_From_int(static_cast< int >(result));
14669 return resultobj;
14670fail:
14671 return NULL;
d55e5bfc
RD
14672}
14673
14674
1bd55598
RD
14675SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14676 PyObject *resultobj = 0;
14677 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14678 int result;
14679 void *argp1 = 0 ;
14680 int res1 = 0 ;
14681 PyObject *swig_obj[1] ;
14682
14683 if (!args) SWIG_fail;
14684 swig_obj[0] = args;
14685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14686 if (!SWIG_IsOK(res1)) {
14687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14688 }
14689 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14690 {
14691 PyThreadState* __tstate = wxPyBeginAllowThreads();
14692 result = (int)((wxSpinButton const *)arg1)->GetMax();
14693 wxPyEndAllowThreads(__tstate);
14694 if (PyErr_Occurred()) SWIG_fail;
14695 }
14696 resultobj = SWIG_From_int(static_cast< int >(result));
14697 return resultobj;
14698fail:
14699 return NULL;
14700}
14701
14702
14703SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14704 PyObject *resultobj = 0;
14705 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14706 int arg2 ;
14707 void *argp1 = 0 ;
14708 int res1 = 0 ;
14709 int val2 ;
14710 int ecode2 = 0 ;
14711 PyObject * obj0 = 0 ;
14712 PyObject * obj1 = 0 ;
14713 char * kwnames[] = {
14714 (char *) "self",(char *) "val", NULL
14715 };
14716
14717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14719 if (!SWIG_IsOK(res1)) {
14720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14721 }
14722 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14723 ecode2 = SWIG_AsVal_int(obj1, &val2);
14724 if (!SWIG_IsOK(ecode2)) {
14725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14726 }
14727 arg2 = static_cast< int >(val2);
14728 {
14729 PyThreadState* __tstate = wxPyBeginAllowThreads();
14730 (arg1)->SetValue(arg2);
14731 wxPyEndAllowThreads(__tstate);
14732 if (PyErr_Occurred()) SWIG_fail;
14733 }
14734 resultobj = SWIG_Py_Void();
14735 return resultobj;
14736fail:
14737 return NULL;
14738}
14739
14740
14741SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14742 PyObject *resultobj = 0;
14743 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14744 int arg2 ;
14745 void *argp1 = 0 ;
14746 int res1 = 0 ;
14747 int val2 ;
14748 int ecode2 = 0 ;
14749 PyObject * obj0 = 0 ;
14750 PyObject * obj1 = 0 ;
14751 char * kwnames[] = {
14752 (char *) "self",(char *) "minVal", NULL
14753 };
14754
14755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14757 if (!SWIG_IsOK(res1)) {
14758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14759 }
14760 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14761 ecode2 = SWIG_AsVal_int(obj1, &val2);
14762 if (!SWIG_IsOK(ecode2)) {
14763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14764 }
14765 arg2 = static_cast< int >(val2);
14766 {
14767 PyThreadState* __tstate = wxPyBeginAllowThreads();
14768 (arg1)->SetMin(arg2);
14769 wxPyEndAllowThreads(__tstate);
14770 if (PyErr_Occurred()) SWIG_fail;
14771 }
14772 resultobj = SWIG_Py_Void();
14773 return resultobj;
14774fail:
14775 return NULL;
14776}
14777
14778
14779SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14780 PyObject *resultobj = 0;
14781 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14782 int arg2 ;
14783 void *argp1 = 0 ;
14784 int res1 = 0 ;
14785 int val2 ;
14786 int ecode2 = 0 ;
14787 PyObject * obj0 = 0 ;
14788 PyObject * obj1 = 0 ;
14789 char * kwnames[] = {
14790 (char *) "self",(char *) "maxVal", NULL
14791 };
14792
14793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14795 if (!SWIG_IsOK(res1)) {
14796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14797 }
14798 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14799 ecode2 = SWIG_AsVal_int(obj1, &val2);
14800 if (!SWIG_IsOK(ecode2)) {
14801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14802 }
14803 arg2 = static_cast< int >(val2);
14804 {
14805 PyThreadState* __tstate = wxPyBeginAllowThreads();
14806 (arg1)->SetMax(arg2);
14807 wxPyEndAllowThreads(__tstate);
14808 if (PyErr_Occurred()) SWIG_fail;
14809 }
14810 resultobj = SWIG_Py_Void();
14811 return resultobj;
14812fail:
14813 return NULL;
14814}
14815
14816
14817SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14818 PyObject *resultobj = 0;
14819 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14820 int arg2 ;
14821 int arg3 ;
14822 void *argp1 = 0 ;
14823 int res1 = 0 ;
14824 int val2 ;
14825 int ecode2 = 0 ;
14826 int val3 ;
14827 int ecode3 = 0 ;
14828 PyObject * obj0 = 0 ;
14829 PyObject * obj1 = 0 ;
14830 PyObject * obj2 = 0 ;
14831 char * kwnames[] = {
14832 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14833 };
14834
14835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14837 if (!SWIG_IsOK(res1)) {
14838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14839 }
14840 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14841 ecode2 = SWIG_AsVal_int(obj1, &val2);
14842 if (!SWIG_IsOK(ecode2)) {
14843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14844 }
14845 arg2 = static_cast< int >(val2);
14846 ecode3 = SWIG_AsVal_int(obj2, &val3);
14847 if (!SWIG_IsOK(ecode3)) {
14848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14849 }
14850 arg3 = static_cast< int >(val3);
14851 {
14852 PyThreadState* __tstate = wxPyBeginAllowThreads();
14853 (arg1)->SetRange(arg2,arg3);
14854 wxPyEndAllowThreads(__tstate);
14855 if (PyErr_Occurred()) SWIG_fail;
14856 }
14857 resultobj = SWIG_Py_Void();
14858 return resultobj;
14859fail:
14860 return NULL;
d55e5bfc
RD
14861}
14862
14863
1bd55598
RD
14864SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14865 PyObject *resultobj = 0;
14866 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14867 bool result;
14868 void *argp1 = 0 ;
14869 int res1 = 0 ;
14870 PyObject *swig_obj[1] ;
14871
14872 if (!args) SWIG_fail;
14873 swig_obj[0] = args;
14874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14875 if (!SWIG_IsOK(res1)) {
14876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14877 }
14878 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14879 {
14880 PyThreadState* __tstate = wxPyBeginAllowThreads();
14881 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
14882 wxPyEndAllowThreads(__tstate);
14883 if (PyErr_Occurred()) SWIG_fail;
14884 }
14885 {
14886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14887 }
14888 return resultobj;
14889fail:
14890 return NULL;
d55e5bfc
RD
14891}
14892
14893
1bd55598
RD
14894SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14895 PyObject *resultobj = 0;
14896 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14897 SwigValueWrapper<wxVisualAttributes > result;
14898 int val1 ;
14899 int ecode1 = 0 ;
14900 PyObject * obj0 = 0 ;
14901 char * kwnames[] = {
14902 (char *) "variant", NULL
14903 };
14904
14905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14906 if (obj0) {
14907 ecode1 = SWIG_AsVal_int(obj0, &val1);
14908 if (!SWIG_IsOK(ecode1)) {
14909 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14910 }
14911 arg1 = static_cast< wxWindowVariant >(val1);
14912 }
14913 {
14914 if (!wxPyCheckForApp()) SWIG_fail;
14915 PyThreadState* __tstate = wxPyBeginAllowThreads();
14916 result = wxSpinButton::GetClassDefaultAttributes(arg1);
14917 wxPyEndAllowThreads(__tstate);
14918 if (PyErr_Occurred()) SWIG_fail;
14919 }
14920 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14921 return resultobj;
14922fail:
14923 return NULL;
14924}
14925
14926
14927SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14928 PyObject *obj;
14929 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14930 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
14931 return SWIG_Py_Void();
14932}
14933
14934SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14935 return SWIG_Python_InitShadowInstance(args);
14936}
14937
14938SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14939 PyObject *resultobj = 0;
14940 wxWindow *arg1 = (wxWindow *) 0 ;
14941 int arg2 = (int) -1 ;
14942 wxString const &arg3_defvalue = wxPyEmptyString ;
14943 wxString *arg3 = (wxString *) &arg3_defvalue ;
14944 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14945 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14946 wxSize const &arg5_defvalue = wxDefaultSize ;
14947 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14948 long arg6 = (long) wxSP_ARROW_KEYS ;
14949 int arg7 = (int) 0 ;
14950 int arg8 = (int) 100 ;
14951 int arg9 = (int) 0 ;
14952 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
14953 wxString *arg10 = (wxString *) &arg10_defvalue ;
14954 wxSpinCtrl *result = 0 ;
14955 void *argp1 = 0 ;
14956 int res1 = 0 ;
14957 int val2 ;
14958 int ecode2 = 0 ;
14959 bool temp3 = false ;
14960 wxPoint temp4 ;
14961 wxSize temp5 ;
14962 long val6 ;
14963 int ecode6 = 0 ;
14964 int val7 ;
14965 int ecode7 = 0 ;
14966 int val8 ;
14967 int ecode8 = 0 ;
14968 int val9 ;
14969 int ecode9 = 0 ;
14970 bool temp10 = false ;
14971 PyObject * obj0 = 0 ;
14972 PyObject * obj1 = 0 ;
14973 PyObject * obj2 = 0 ;
14974 PyObject * obj3 = 0 ;
14975 PyObject * obj4 = 0 ;
14976 PyObject * obj5 = 0 ;
14977 PyObject * obj6 = 0 ;
14978 PyObject * obj7 = 0 ;
14979 PyObject * obj8 = 0 ;
14980 PyObject * obj9 = 0 ;
14981 char * kwnames[] = {
14982 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
14983 };
14984
14985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
14986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14987 if (!SWIG_IsOK(res1)) {
14988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
14989 }
14990 arg1 = reinterpret_cast< wxWindow * >(argp1);
14991 if (obj1) {
14992 ecode2 = SWIG_AsVal_int(obj1, &val2);
14993 if (!SWIG_IsOK(ecode2)) {
14994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
14995 }
14996 arg2 = static_cast< int >(val2);
14997 }
14998 if (obj2) {
d55e5bfc 14999 {
1bd55598
RD
15000 arg3 = wxString_in_helper(obj2);
15001 if (arg3 == NULL) SWIG_fail;
15002 temp3 = true;
d55e5bfc 15003 }
1bd55598
RD
15004 }
15005 if (obj3) {
d55e5bfc 15006 {
1bd55598
RD
15007 arg4 = &temp4;
15008 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15009 }
1bd55598
RD
15010 }
15011 if (obj4) {
d55e5bfc 15012 {
1bd55598
RD
15013 arg5 = &temp5;
15014 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15015 }
1bd55598
RD
15016 }
15017 if (obj5) {
15018 ecode6 = SWIG_AsVal_long(obj5, &val6);
15019 if (!SWIG_IsOK(ecode6)) {
15020 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15021 }
15022 arg6 = static_cast< long >(val6);
15023 }
15024 if (obj6) {
15025 ecode7 = SWIG_AsVal_int(obj6, &val7);
15026 if (!SWIG_IsOK(ecode7)) {
15027 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15028 }
15029 arg7 = static_cast< int >(val7);
15030 }
15031 if (obj7) {
15032 ecode8 = SWIG_AsVal_int(obj7, &val8);
15033 if (!SWIG_IsOK(ecode8)) {
15034 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15035 }
15036 arg8 = static_cast< int >(val8);
15037 }
15038 if (obj8) {
15039 ecode9 = SWIG_AsVal_int(obj8, &val9);
15040 if (!SWIG_IsOK(ecode9)) {
15041 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15042 }
15043 arg9 = static_cast< int >(val9);
15044 }
15045 if (obj9) {
d55e5bfc 15046 {
1bd55598
RD
15047 arg10 = wxString_in_helper(obj9);
15048 if (arg10 == NULL) SWIG_fail;
15049 temp10 = true;
d55e5bfc 15050 }
1bd55598
RD
15051 }
15052 {
15053 if (!wxPyCheckForApp()) SWIG_fail;
15054 PyThreadState* __tstate = wxPyBeginAllowThreads();
15055 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15056 wxPyEndAllowThreads(__tstate);
15057 if (PyErr_Occurred()) SWIG_fail;
15058 }
15059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15060 {
15061 if (temp3)
15062 delete arg3;
15063 }
15064 {
15065 if (temp10)
15066 delete arg10;
15067 }
15068 return resultobj;
15069fail:
15070 {
15071 if (temp3)
15072 delete arg3;
15073 }
15074 {
15075 if (temp10)
15076 delete arg10;
15077 }
15078 return NULL;
d55e5bfc
RD
15079}
15080
15081
1bd55598
RD
15082SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15083 PyObject *resultobj = 0;
15084 wxSpinCtrl *result = 0 ;
15085
15086 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15087 {
15088 if (!wxPyCheckForApp()) SWIG_fail;
15089 PyThreadState* __tstate = wxPyBeginAllowThreads();
15090 result = (wxSpinCtrl *)new wxSpinCtrl();
15091 wxPyEndAllowThreads(__tstate);
15092 if (PyErr_Occurred()) SWIG_fail;
15093 }
15094 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15095 return resultobj;
15096fail:
15097 return NULL;
15098}
15099
15100
15101SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15102 PyObject *resultobj = 0;
15103 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15104 wxWindow *arg2 = (wxWindow *) 0 ;
15105 int arg3 = (int) -1 ;
15106 wxString const &arg4_defvalue = wxPyEmptyString ;
15107 wxString *arg4 = (wxString *) &arg4_defvalue ;
15108 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15109 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15110 wxSize const &arg6_defvalue = wxDefaultSize ;
15111 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15112 long arg7 = (long) wxSP_ARROW_KEYS ;
15113 int arg8 = (int) 0 ;
15114 int arg9 = (int) 100 ;
15115 int arg10 = (int) 0 ;
15116 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15117 wxString *arg11 = (wxString *) &arg11_defvalue ;
15118 bool result;
15119 void *argp1 = 0 ;
15120 int res1 = 0 ;
15121 void *argp2 = 0 ;
15122 int res2 = 0 ;
15123 int val3 ;
15124 int ecode3 = 0 ;
15125 bool temp4 = false ;
15126 wxPoint temp5 ;
15127 wxSize temp6 ;
15128 long val7 ;
15129 int ecode7 = 0 ;
15130 int val8 ;
15131 int ecode8 = 0 ;
15132 int val9 ;
15133 int ecode9 = 0 ;
15134 int val10 ;
15135 int ecode10 = 0 ;
15136 bool temp11 = false ;
15137 PyObject * obj0 = 0 ;
15138 PyObject * obj1 = 0 ;
15139 PyObject * obj2 = 0 ;
15140 PyObject * obj3 = 0 ;
15141 PyObject * obj4 = 0 ;
15142 PyObject * obj5 = 0 ;
15143 PyObject * obj6 = 0 ;
15144 PyObject * obj7 = 0 ;
15145 PyObject * obj8 = 0 ;
15146 PyObject * obj9 = 0 ;
15147 PyObject * obj10 = 0 ;
15148 char * kwnames[] = {
15149 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15150 };
15151
15152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15154 if (!SWIG_IsOK(res1)) {
15155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15156 }
15157 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15158 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15159 if (!SWIG_IsOK(res2)) {
15160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15161 }
15162 arg2 = reinterpret_cast< wxWindow * >(argp2);
15163 if (obj2) {
15164 ecode3 = SWIG_AsVal_int(obj2, &val3);
15165 if (!SWIG_IsOK(ecode3)) {
15166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15167 }
15168 arg3 = static_cast< int >(val3);
15169 }
15170 if (obj3) {
36ed4f51 15171 {
1bd55598
RD
15172 arg4 = wxString_in_helper(obj3);
15173 if (arg4 == NULL) SWIG_fail;
15174 temp4 = true;
36ed4f51 15175 }
1bd55598
RD
15176 }
15177 if (obj4) {
36ed4f51 15178 {
1bd55598
RD
15179 arg5 = &temp5;
15180 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 15181 }
1bd55598
RD
15182 }
15183 if (obj5) {
d55e5bfc 15184 {
1bd55598
RD
15185 arg6 = &temp6;
15186 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 15187 }
1bd55598
RD
15188 }
15189 if (obj6) {
15190 ecode7 = SWIG_AsVal_long(obj6, &val7);
15191 if (!SWIG_IsOK(ecode7)) {
15192 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15193 }
15194 arg7 = static_cast< long >(val7);
15195 }
15196 if (obj7) {
15197 ecode8 = SWIG_AsVal_int(obj7, &val8);
15198 if (!SWIG_IsOK(ecode8)) {
15199 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15200 }
15201 arg8 = static_cast< int >(val8);
15202 }
15203 if (obj8) {
15204 ecode9 = SWIG_AsVal_int(obj8, &val9);
15205 if (!SWIG_IsOK(ecode9)) {
15206 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15207 }
15208 arg9 = static_cast< int >(val9);
15209 }
15210 if (obj9) {
15211 ecode10 = SWIG_AsVal_int(obj9, &val10);
15212 if (!SWIG_IsOK(ecode10)) {
15213 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15214 }
15215 arg10 = static_cast< int >(val10);
15216 }
15217 if (obj10) {
15218 {
15219 arg11 = wxString_in_helper(obj10);
15220 if (arg11 == NULL) SWIG_fail;
15221 temp11 = true;
15222 }
15223 }
15224 {
15225 PyThreadState* __tstate = wxPyBeginAllowThreads();
15226 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15227 wxPyEndAllowThreads(__tstate);
15228 if (PyErr_Occurred()) SWIG_fail;
15229 }
15230 {
15231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15232 }
15233 {
15234 if (temp4)
15235 delete arg4;
15236 }
15237 {
15238 if (temp11)
15239 delete arg11;
15240 }
15241 return resultobj;
15242fail:
15243 {
15244 if (temp4)
15245 delete arg4;
15246 }
15247 {
15248 if (temp11)
15249 delete arg11;
15250 }
15251 return NULL;
d55e5bfc
RD
15252}
15253
15254
1bd55598
RD
15255SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15256 PyObject *resultobj = 0;
15257 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15258 int result;
15259 void *argp1 = 0 ;
15260 int res1 = 0 ;
15261 PyObject *swig_obj[1] ;
15262
15263 if (!args) SWIG_fail;
15264 swig_obj[0] = args;
15265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15266 if (!SWIG_IsOK(res1)) {
15267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15268 }
15269 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15270 {
15271 PyThreadState* __tstate = wxPyBeginAllowThreads();
15272 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15273 wxPyEndAllowThreads(__tstate);
15274 if (PyErr_Occurred()) SWIG_fail;
15275 }
15276 resultobj = SWIG_From_int(static_cast< int >(result));
15277 return resultobj;
15278fail:
15279 return NULL;
15280}
15281
15282
15283SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15284 PyObject *resultobj = 0;
15285 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15286 int arg2 ;
15287 void *argp1 = 0 ;
15288 int res1 = 0 ;
15289 int val2 ;
15290 int ecode2 = 0 ;
15291 PyObject * obj0 = 0 ;
15292 PyObject * obj1 = 0 ;
15293 char * kwnames[] = {
15294 (char *) "self",(char *) "value", NULL
15295 };
15296
15297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15299 if (!SWIG_IsOK(res1)) {
15300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15301 }
15302 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15303 ecode2 = SWIG_AsVal_int(obj1, &val2);
15304 if (!SWIG_IsOK(ecode2)) {
15305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15306 }
15307 arg2 = static_cast< int >(val2);
15308 {
15309 PyThreadState* __tstate = wxPyBeginAllowThreads();
15310 (arg1)->SetValue(arg2);
15311 wxPyEndAllowThreads(__tstate);
15312 if (PyErr_Occurred()) SWIG_fail;
15313 }
15314 resultobj = SWIG_Py_Void();
15315 return resultobj;
15316fail:
15317 return NULL;
15318}
15319
15320
15321SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15322 PyObject *resultobj = 0;
15323 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15324 wxString *arg2 = 0 ;
15325 void *argp1 = 0 ;
15326 int res1 = 0 ;
15327 bool temp2 = false ;
15328 PyObject * obj0 = 0 ;
15329 PyObject * obj1 = 0 ;
15330 char * kwnames[] = {
15331 (char *) "self",(char *) "text", NULL
15332 };
15333
15334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15336 if (!SWIG_IsOK(res1)) {
15337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15338 }
15339 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15340 {
15341 arg2 = wxString_in_helper(obj1);
15342 if (arg2 == NULL) SWIG_fail;
15343 temp2 = true;
15344 }
15345 {
15346 PyThreadState* __tstate = wxPyBeginAllowThreads();
15347 (arg1)->SetValue((wxString const &)*arg2);
15348 wxPyEndAllowThreads(__tstate);
15349 if (PyErr_Occurred()) SWIG_fail;
15350 }
15351 resultobj = SWIG_Py_Void();
15352 {
15353 if (temp2)
15354 delete arg2;
15355 }
15356 return resultobj;
15357fail:
15358 {
15359 if (temp2)
15360 delete arg2;
15361 }
15362 return NULL;
15363}
15364
15365
15366SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15367 PyObject *resultobj = 0;
15368 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15369 int arg2 ;
15370 int arg3 ;
15371 void *argp1 = 0 ;
15372 int res1 = 0 ;
15373 int val2 ;
15374 int ecode2 = 0 ;
15375 int val3 ;
15376 int ecode3 = 0 ;
15377 PyObject * obj0 = 0 ;
15378 PyObject * obj1 = 0 ;
15379 PyObject * obj2 = 0 ;
15380 char * kwnames[] = {
15381 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15382 };
15383
15384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15386 if (!SWIG_IsOK(res1)) {
15387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15388 }
15389 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15390 ecode2 = SWIG_AsVal_int(obj1, &val2);
15391 if (!SWIG_IsOK(ecode2)) {
15392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15393 }
15394 arg2 = static_cast< int >(val2);
15395 ecode3 = SWIG_AsVal_int(obj2, &val3);
15396 if (!SWIG_IsOK(ecode3)) {
15397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15398 }
15399 arg3 = static_cast< int >(val3);
15400 {
15401 PyThreadState* __tstate = wxPyBeginAllowThreads();
15402 (arg1)->SetRange(arg2,arg3);
15403 wxPyEndAllowThreads(__tstate);
15404 if (PyErr_Occurred()) SWIG_fail;
15405 }
15406 resultobj = SWIG_Py_Void();
15407 return resultobj;
15408fail:
15409 return NULL;
d55e5bfc
RD
15410}
15411
15412
1bd55598
RD
15413SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15414 PyObject *resultobj = 0;
15415 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15416 int result;
15417 void *argp1 = 0 ;
15418 int res1 = 0 ;
15419 PyObject *swig_obj[1] ;
15420
15421 if (!args) SWIG_fail;
15422 swig_obj[0] = args;
15423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15424 if (!SWIG_IsOK(res1)) {
15425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15426 }
15427 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15428 {
15429 PyThreadState* __tstate = wxPyBeginAllowThreads();
15430 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15431 wxPyEndAllowThreads(__tstate);
15432 if (PyErr_Occurred()) SWIG_fail;
15433 }
15434 resultobj = SWIG_From_int(static_cast< int >(result));
15435 return resultobj;
15436fail:
15437 return NULL;
d55e5bfc
RD
15438}
15439
15440
1bd55598
RD
15441SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15442 PyObject *resultobj = 0;
15443 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15444 int result;
15445 void *argp1 = 0 ;
15446 int res1 = 0 ;
15447 PyObject *swig_obj[1] ;
15448
15449 if (!args) SWIG_fail;
15450 swig_obj[0] = args;
15451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15452 if (!SWIG_IsOK(res1)) {
15453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15454 }
15455 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15456 {
15457 PyThreadState* __tstate = wxPyBeginAllowThreads();
15458 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15459 wxPyEndAllowThreads(__tstate);
15460 if (PyErr_Occurred()) SWIG_fail;
15461 }
15462 resultobj = SWIG_From_int(static_cast< int >(result));
15463 return resultobj;
15464fail:
15465 return NULL;
15466}
15467
15468
15469SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15470 PyObject *resultobj = 0;
15471 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15472 long arg2 ;
15473 long arg3 ;
15474 void *argp1 = 0 ;
15475 int res1 = 0 ;
15476 long val2 ;
15477 int ecode2 = 0 ;
15478 long val3 ;
15479 int ecode3 = 0 ;
15480 PyObject * obj0 = 0 ;
15481 PyObject * obj1 = 0 ;
15482 PyObject * obj2 = 0 ;
15483 char * kwnames[] = {
15484 (char *) "self",(char *) "_from",(char *) "to", NULL
15485 };
15486
15487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15489 if (!SWIG_IsOK(res1)) {
15490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15491 }
15492 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15493 ecode2 = SWIG_AsVal_long(obj1, &val2);
15494 if (!SWIG_IsOK(ecode2)) {
15495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15496 }
15497 arg2 = static_cast< long >(val2);
15498 ecode3 = SWIG_AsVal_long(obj2, &val3);
15499 if (!SWIG_IsOK(ecode3)) {
15500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15501 }
15502 arg3 = static_cast< long >(val3);
15503 {
15504 PyThreadState* __tstate = wxPyBeginAllowThreads();
15505 (arg1)->SetSelection(arg2,arg3);
15506 wxPyEndAllowThreads(__tstate);
15507 if (PyErr_Occurred()) SWIG_fail;
15508 }
15509 resultobj = SWIG_Py_Void();
15510 return resultobj;
15511fail:
15512 return NULL;
15513}
15514
15515
15516SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15517 PyObject *resultobj = 0;
15518 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15519 SwigValueWrapper<wxVisualAttributes > result;
15520 int val1 ;
15521 int ecode1 = 0 ;
15522 PyObject * obj0 = 0 ;
15523 char * kwnames[] = {
15524 (char *) "variant", NULL
15525 };
15526
15527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15528 if (obj0) {
15529 ecode1 = SWIG_AsVal_int(obj0, &val1);
15530 if (!SWIG_IsOK(ecode1)) {
15531 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15532 }
15533 arg1 = static_cast< wxWindowVariant >(val1);
15534 }
15535 {
15536 if (!wxPyCheckForApp()) SWIG_fail;
15537 PyThreadState* __tstate = wxPyBeginAllowThreads();
15538 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15539 wxPyEndAllowThreads(__tstate);
15540 if (PyErr_Occurred()) SWIG_fail;
15541 }
15542 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15543 return resultobj;
15544fail:
15545 return NULL;
d55e5bfc
RD
15546}
15547
15548
1bd55598
RD
15549SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15550 PyObject *obj;
15551 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15552 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15553 return SWIG_Py_Void();
d55e5bfc
RD
15554}
15555
1bd55598
RD
15556SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15557 return SWIG_Python_InitShadowInstance(args);
15558}
d55e5bfc 15559
1bd55598
RD
15560SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15561 PyObject *resultobj = 0;
15562 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15563 int arg2 = (int) 0 ;
15564 wxSpinEvent *result = 0 ;
15565 int val1 ;
15566 int ecode1 = 0 ;
15567 int val2 ;
15568 int ecode2 = 0 ;
15569 PyObject * obj0 = 0 ;
15570 PyObject * obj1 = 0 ;
15571 char * kwnames[] = {
15572 (char *) "commandType",(char *) "winid", NULL
15573 };
15574
15575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15576 if (obj0) {
15577 ecode1 = SWIG_AsVal_int(obj0, &val1);
15578 if (!SWIG_IsOK(ecode1)) {
15579 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15580 }
15581 arg1 = static_cast< wxEventType >(val1);
15582 }
15583 if (obj1) {
15584 ecode2 = SWIG_AsVal_int(obj1, &val2);
15585 if (!SWIG_IsOK(ecode2)) {
15586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15587 }
15588 arg2 = static_cast< int >(val2);
15589 }
15590 {
15591 PyThreadState* __tstate = wxPyBeginAllowThreads();
15592 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15593 wxPyEndAllowThreads(__tstate);
15594 if (PyErr_Occurred()) SWIG_fail;
15595 }
15596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15597 return resultobj;
15598fail:
15599 return NULL;
d55e5bfc
RD
15600}
15601
15602
1bd55598
RD
15603SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15604 PyObject *resultobj = 0;
15605 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15606 int result;
15607 void *argp1 = 0 ;
15608 int res1 = 0 ;
15609 PyObject *swig_obj[1] ;
15610
15611 if (!args) SWIG_fail;
15612 swig_obj[0] = args;
15613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15614 if (!SWIG_IsOK(res1)) {
15615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15616 }
15617 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15618 {
15619 PyThreadState* __tstate = wxPyBeginAllowThreads();
15620 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15621 wxPyEndAllowThreads(__tstate);
15622 if (PyErr_Occurred()) SWIG_fail;
15623 }
15624 resultobj = SWIG_From_int(static_cast< int >(result));
15625 return resultobj;
15626fail:
15627 return NULL;
15628}
15629
15630
15631SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15632 PyObject *resultobj = 0;
15633 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15634 int arg2 ;
15635 void *argp1 = 0 ;
15636 int res1 = 0 ;
15637 int val2 ;
15638 int ecode2 = 0 ;
15639 PyObject * obj0 = 0 ;
15640 PyObject * obj1 = 0 ;
15641 char * kwnames[] = {
15642 (char *) "self",(char *) "pos", NULL
15643 };
15644
15645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15647 if (!SWIG_IsOK(res1)) {
15648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15649 }
15650 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15651 ecode2 = SWIG_AsVal_int(obj1, &val2);
15652 if (!SWIG_IsOK(ecode2)) {
15653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15654 }
15655 arg2 = static_cast< int >(val2);
15656 {
15657 PyThreadState* __tstate = wxPyBeginAllowThreads();
15658 (arg1)->SetPosition(arg2);
15659 wxPyEndAllowThreads(__tstate);
15660 if (PyErr_Occurred()) SWIG_fail;
15661 }
15662 resultobj = SWIG_Py_Void();
15663 return resultobj;
15664fail:
15665 return NULL;
d55e5bfc
RD
15666}
15667
15668
1bd55598
RD
15669SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15670 PyObject *obj;
15671 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15672 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15673 return SWIG_Py_Void();
d55e5bfc
RD
15674}
15675
1bd55598
RD
15676SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15677 return SWIG_Python_InitShadowInstance(args);
15678}
d55e5bfc 15679
1bd55598
RD
15680SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15681 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15682 return 1;
d55e5bfc
RD
15683}
15684
15685
1bd55598
RD
15686SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15687 PyObject *pyobj = 0;
15688
15689 {
15690#if wxUSE_UNICODE
15691 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15692#else
15693 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15694#endif
15695 }
15696 return pyobj;
d55e5bfc
RD
15697}
15698
15699
1bd55598
RD
15700SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15701 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15702 return 1;
15703}
15704
15705
15706SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15707 PyObject *pyobj = 0;
15708
15709 {
15710#if wxUSE_UNICODE
15711 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15712#else
15713 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15714#endif
15715 }
15716 return pyobj;
15717}
15718
15719
15720SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15721 PyObject *resultobj = 0;
15722 wxWindow *arg1 = (wxWindow *) 0 ;
15723 int arg2 = (int) -1 ;
15724 wxString const &arg3_defvalue = wxPyEmptyString ;
15725 wxString *arg3 = (wxString *) &arg3_defvalue ;
15726 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15727 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15728 wxSize const &arg5_defvalue = wxDefaultSize ;
15729 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15730 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15731 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15732 int arg7 = (int) 0 ;
15733 long arg8 = (long) wxRA_HORIZONTAL ;
15734 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15735 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15736 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15737 wxString *arg10 = (wxString *) &arg10_defvalue ;
15738 wxRadioBox *result = 0 ;
15739 void *argp1 = 0 ;
15740 int res1 = 0 ;
15741 int val2 ;
15742 int ecode2 = 0 ;
15743 bool temp3 = false ;
15744 wxPoint temp4 ;
15745 wxSize temp5 ;
15746 bool temp6 = false ;
15747 int val7 ;
15748 int ecode7 = 0 ;
15749 long val8 ;
15750 int ecode8 = 0 ;
15751 void *argp9 = 0 ;
15752 int res9 = 0 ;
15753 bool temp10 = false ;
15754 PyObject * obj0 = 0 ;
15755 PyObject * obj1 = 0 ;
15756 PyObject * obj2 = 0 ;
15757 PyObject * obj3 = 0 ;
15758 PyObject * obj4 = 0 ;
15759 PyObject * obj5 = 0 ;
15760 PyObject * obj6 = 0 ;
15761 PyObject * obj7 = 0 ;
15762 PyObject * obj8 = 0 ;
15763 PyObject * obj9 = 0 ;
15764 char * kwnames[] = {
15765 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15766 };
15767
15768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15770 if (!SWIG_IsOK(res1)) {
15771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15772 }
15773 arg1 = reinterpret_cast< wxWindow * >(argp1);
15774 if (obj1) {
15775 ecode2 = SWIG_AsVal_int(obj1, &val2);
15776 if (!SWIG_IsOK(ecode2)) {
15777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15778 }
15779 arg2 = static_cast< int >(val2);
15780 }
15781 if (obj2) {
36ed4f51 15782 {
1bd55598
RD
15783 arg3 = wxString_in_helper(obj2);
15784 if (arg3 == NULL) SWIG_fail;
15785 temp3 = true;
36ed4f51 15786 }
1bd55598
RD
15787 }
15788 if (obj3) {
36ed4f51 15789 {
1bd55598
RD
15790 arg4 = &temp4;
15791 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15792 }
1bd55598
RD
15793 }
15794 if (obj4) {
d55e5bfc 15795 {
1bd55598
RD
15796 arg5 = &temp5;
15797 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15798 }
1bd55598
RD
15799 }
15800 if (obj5) {
d55e5bfc 15801 {
1bd55598
RD
15802 if (! PySequence_Check(obj5)) {
15803 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15804 SWIG_fail;
15805 }
15806 arg6 = new wxArrayString;
15807 temp6 = true;
15808 int i, len=PySequence_Length(obj5);
15809 for (i=0; i<len; i++) {
15810 PyObject* item = PySequence_GetItem(obj5, i);
15811 wxString* s = wxString_in_helper(item);
15812 if (PyErr_Occurred()) SWIG_fail;
15813 arg6->Add(*s);
15814 delete s;
15815 Py_DECREF(item);
15816 }
d55e5bfc 15817 }
1bd55598
RD
15818 }
15819 if (obj6) {
15820 ecode7 = SWIG_AsVal_int(obj6, &val7);
15821 if (!SWIG_IsOK(ecode7)) {
15822 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15823 }
15824 arg7 = static_cast< int >(val7);
15825 }
15826 if (obj7) {
15827 ecode8 = SWIG_AsVal_long(obj7, &val8);
15828 if (!SWIG_IsOK(ecode8)) {
15829 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15830 }
15831 arg8 = static_cast< long >(val8);
15832 }
15833 if (obj8) {
15834 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15835 if (!SWIG_IsOK(res9)) {
15836 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 15837 }
1bd55598
RD
15838 if (!argp9) {
15839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 15840 }
1bd55598
RD
15841 arg9 = reinterpret_cast< wxValidator * >(argp9);
15842 }
15843 if (obj9) {
d55e5bfc 15844 {
1bd55598
RD
15845 arg10 = wxString_in_helper(obj9);
15846 if (arg10 == NULL) SWIG_fail;
15847 temp10 = true;
d55e5bfc 15848 }
1bd55598
RD
15849 }
15850 {
15851 if (!wxPyCheckForApp()) SWIG_fail;
15852 PyThreadState* __tstate = wxPyBeginAllowThreads();
15853 result = (wxRadioBox *)new wxRadioBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
15854 wxPyEndAllowThreads(__tstate);
15855 if (PyErr_Occurred()) SWIG_fail;
15856 }
15857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
15858 {
15859 if (temp3)
15860 delete arg3;
15861 }
15862 {
15863 if (temp6) delete arg6;
15864 }
15865 {
15866 if (temp10)
15867 delete arg10;
15868 }
15869 return resultobj;
15870fail:
15871 {
15872 if (temp3)
15873 delete arg3;
15874 }
15875 {
15876 if (temp6) delete arg6;
15877 }
15878 {
15879 if (temp10)
15880 delete arg10;
15881 }
15882 return NULL;
d55e5bfc
RD
15883}
15884
15885
1bd55598
RD
15886SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15887 PyObject *resultobj = 0;
15888 wxRadioBox *result = 0 ;
15889
15890 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
15891 {
15892 if (!wxPyCheckForApp()) SWIG_fail;
15893 PyThreadState* __tstate = wxPyBeginAllowThreads();
15894 result = (wxRadioBox *)new wxRadioBox();
15895 wxPyEndAllowThreads(__tstate);
15896 if (PyErr_Occurred()) SWIG_fail;
15897 }
15898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
15899 return resultobj;
15900fail:
15901 return NULL;
15902}
15903
15904
15905SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15906 PyObject *resultobj = 0;
15907 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
15908 wxWindow *arg2 = (wxWindow *) 0 ;
15909 int arg3 = (int) -1 ;
15910 wxString const &arg4_defvalue = wxPyEmptyString ;
15911 wxString *arg4 = (wxString *) &arg4_defvalue ;
15912 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15913 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15914 wxSize const &arg6_defvalue = wxDefaultSize ;
15915 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15916 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
15917 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
15918 int arg8 = (int) 0 ;
15919 long arg9 = (long) wxRA_HORIZONTAL ;
15920 wxValidator const &arg10_defvalue = wxDefaultValidator ;
15921 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
15922 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
15923 wxString *arg11 = (wxString *) &arg11_defvalue ;
15924 bool result;
15925 void *argp1 = 0 ;
15926 int res1 = 0 ;
15927 void *argp2 = 0 ;
15928 int res2 = 0 ;
15929 int val3 ;
15930 int ecode3 = 0 ;
15931 bool temp4 = false ;
15932 wxPoint temp5 ;
15933 wxSize temp6 ;
15934 bool temp7 = false ;
15935 int val8 ;
15936 int ecode8 = 0 ;
15937 long val9 ;
15938 int ecode9 = 0 ;
15939 void *argp10 = 0 ;
15940 int res10 = 0 ;
15941 bool temp11 = false ;
15942 PyObject * obj0 = 0 ;
15943 PyObject * obj1 = 0 ;
15944 PyObject * obj2 = 0 ;
15945 PyObject * obj3 = 0 ;
15946 PyObject * obj4 = 0 ;
15947 PyObject * obj5 = 0 ;
15948 PyObject * obj6 = 0 ;
15949 PyObject * obj7 = 0 ;
15950 PyObject * obj8 = 0 ;
15951 PyObject * obj9 = 0 ;
15952 PyObject * obj10 = 0 ;
15953 char * kwnames[] = {
15954 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15955 };
15956
15957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
15959 if (!SWIG_IsOK(res1)) {
15960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
15961 }
15962 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
15963 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15964 if (!SWIG_IsOK(res2)) {
15965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15966 }
15967 arg2 = reinterpret_cast< wxWindow * >(argp2);
15968 if (obj2) {
15969 ecode3 = SWIG_AsVal_int(obj2, &val3);
15970 if (!SWIG_IsOK(ecode3)) {
15971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
15972 }
15973 arg3 = static_cast< int >(val3);
15974 }
15975 if (obj3) {
36ed4f51 15976 {
1bd55598
RD
15977 arg4 = wxString_in_helper(obj3);
15978 if (arg4 == NULL) SWIG_fail;
15979 temp4 = true;
36ed4f51 15980 }
1bd55598
RD
15981 }
15982 if (obj4) {
36ed4f51 15983 {
1bd55598
RD
15984 arg5 = &temp5;
15985 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 15986 }
1bd55598
RD
15987 }
15988 if (obj5) {
d55e5bfc 15989 {
1bd55598
RD
15990 arg6 = &temp6;
15991 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 15992 }
1bd55598
RD
15993 }
15994 if (obj6) {
36ed4f51 15995 {
1bd55598
RD
15996 if (! PySequence_Check(obj6)) {
15997 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15998 SWIG_fail;
15999 }
16000 arg7 = new wxArrayString;
16001 temp7 = true;
16002 int i, len=PySequence_Length(obj6);
16003 for (i=0; i<len; i++) {
16004 PyObject* item = PySequence_GetItem(obj6, i);
16005 wxString* s = wxString_in_helper(item);
16006 if (PyErr_Occurred()) SWIG_fail;
16007 arg7->Add(*s);
16008 delete s;
16009 Py_DECREF(item);
16010 }
36ed4f51 16011 }
1bd55598
RD
16012 }
16013 if (obj7) {
16014 ecode8 = SWIG_AsVal_int(obj7, &val8);
16015 if (!SWIG_IsOK(ecode8)) {
16016 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16017 }
16018 arg8 = static_cast< int >(val8);
16019 }
16020 if (obj8) {
16021 ecode9 = SWIG_AsVal_long(obj8, &val9);
16022 if (!SWIG_IsOK(ecode9)) {
16023 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16024 }
16025 arg9 = static_cast< long >(val9);
16026 }
16027 if (obj9) {
16028 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16029 if (!SWIG_IsOK(res10)) {
16030 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16031 }
1bd55598
RD
16032 if (!argp10) {
16033 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16034 }
1bd55598
RD
16035 arg10 = reinterpret_cast< wxValidator * >(argp10);
16036 }
16037 if (obj10) {
d55e5bfc 16038 {
1bd55598
RD
16039 arg11 = wxString_in_helper(obj10);
16040 if (arg11 == NULL) SWIG_fail;
16041 temp11 = true;
d55e5bfc 16042 }
1bd55598
RD
16043 }
16044 {
16045 PyThreadState* __tstate = wxPyBeginAllowThreads();
16046 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
16047 wxPyEndAllowThreads(__tstate);
16048 if (PyErr_Occurred()) SWIG_fail;
16049 }
16050 {
16051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16052 }
16053 {
16054 if (temp4)
16055 delete arg4;
16056 }
16057 {
16058 if (temp7) delete arg7;
16059 }
16060 {
16061 if (temp11)
16062 delete arg11;
16063 }
16064 return resultobj;
16065fail:
16066 {
16067 if (temp4)
16068 delete arg4;
16069 }
16070 {
16071 if (temp7) delete arg7;
16072 }
16073 {
16074 if (temp11)
16075 delete arg11;
16076 }
16077 return NULL;
16078}
16079
16080
16081SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16082 PyObject *resultobj = 0;
16083 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16084 int arg2 ;
16085 void *argp1 = 0 ;
16086 int res1 = 0 ;
16087 int val2 ;
16088 int ecode2 = 0 ;
16089 PyObject * obj0 = 0 ;
16090 PyObject * obj1 = 0 ;
16091 char * kwnames[] = {
16092 (char *) "self",(char *) "n", NULL
16093 };
16094
16095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16097 if (!SWIG_IsOK(res1)) {
16098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16099 }
16100 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16101 ecode2 = SWIG_AsVal_int(obj1, &val2);
16102 if (!SWIG_IsOK(ecode2)) {
16103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16104 }
16105 arg2 = static_cast< int >(val2);
16106 {
16107 PyThreadState* __tstate = wxPyBeginAllowThreads();
16108 (arg1)->SetSelection(arg2);
16109 wxPyEndAllowThreads(__tstate);
16110 if (PyErr_Occurred()) SWIG_fail;
16111 }
16112 resultobj = SWIG_Py_Void();
16113 return resultobj;
16114fail:
16115 return NULL;
d55e5bfc
RD
16116}
16117
16118
1bd55598
RD
16119SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16120 PyObject *resultobj = 0;
16121 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16122 int result;
16123 void *argp1 = 0 ;
16124 int res1 = 0 ;
16125 PyObject *swig_obj[1] ;
16126
16127 if (!args) SWIG_fail;
16128 swig_obj[0] = args;
16129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16130 if (!SWIG_IsOK(res1)) {
16131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16132 }
16133 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16134 {
16135 PyThreadState* __tstate = wxPyBeginAllowThreads();
16136 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16137 wxPyEndAllowThreads(__tstate);
16138 if (PyErr_Occurred()) SWIG_fail;
16139 }
16140 resultobj = SWIG_From_int(static_cast< int >(result));
16141 return resultobj;
16142fail:
16143 return NULL;
d55e5bfc
RD
16144}
16145
16146
1bd55598
RD
16147SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16148 PyObject *resultobj = 0;
16149 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16150 wxString result;
16151 void *argp1 = 0 ;
16152 int res1 = 0 ;
16153 PyObject *swig_obj[1] ;
16154
16155 if (!args) SWIG_fail;
16156 swig_obj[0] = args;
16157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16158 if (!SWIG_IsOK(res1)) {
16159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16160 }
16161 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16162 {
16163 PyThreadState* __tstate = wxPyBeginAllowThreads();
16164 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16165 wxPyEndAllowThreads(__tstate);
16166 if (PyErr_Occurred()) SWIG_fail;
16167 }
16168 {
16169#if wxUSE_UNICODE
16170 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16171#else
16172 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16173#endif
16174 }
16175 return resultobj;
16176fail:
16177 return NULL;
16178}
16179
16180
16181SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16182 PyObject *resultobj = 0;
16183 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16184 wxString *arg2 = 0 ;
16185 bool result;
16186 void *argp1 = 0 ;
16187 int res1 = 0 ;
16188 bool temp2 = false ;
16189 PyObject * obj0 = 0 ;
16190 PyObject * obj1 = 0 ;
16191 char * kwnames[] = {
16192 (char *) "self",(char *) "s", NULL
16193 };
16194
16195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16197 if (!SWIG_IsOK(res1)) {
16198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16199 }
16200 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16201 {
16202 arg2 = wxString_in_helper(obj1);
16203 if (arg2 == NULL) SWIG_fail;
16204 temp2 = true;
16205 }
16206 {
16207 PyThreadState* __tstate = wxPyBeginAllowThreads();
16208 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16209 wxPyEndAllowThreads(__tstate);
16210 if (PyErr_Occurred()) SWIG_fail;
16211 }
16212 {
16213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16214 }
16215 {
16216 if (temp2)
16217 delete arg2;
16218 }
16219 return resultobj;
16220fail:
16221 {
16222 if (temp2)
16223 delete arg2;
16224 }
16225 return NULL;
4896ac9e
RD
16226}
16227
16228
1bd55598
RD
16229SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16230 PyObject *resultobj = 0;
16231 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
1c71765a 16232 size_t result;
1bd55598
RD
16233 void *argp1 = 0 ;
16234 int res1 = 0 ;
16235 PyObject *swig_obj[1] ;
16236
16237 if (!args) SWIG_fail;
16238 swig_obj[0] = args;
16239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16240 if (!SWIG_IsOK(res1)) {
16241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16242 }
16243 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16244 {
16245 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a 16246 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
1bd55598
RD
16247 wxPyEndAllowThreads(__tstate);
16248 if (PyErr_Occurred()) SWIG_fail;
16249 }
1c71765a 16250 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
1bd55598
RD
16251 return resultobj;
16252fail:
16253 return NULL;
16254}
16255
16256
16257SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16258 PyObject *resultobj = 0;
16259 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16260 wxString *arg2 = 0 ;
16261 int result;
16262 void *argp1 = 0 ;
16263 int res1 = 0 ;
16264 bool temp2 = false ;
16265 PyObject * obj0 = 0 ;
16266 PyObject * obj1 = 0 ;
16267 char * kwnames[] = {
16268 (char *) "self",(char *) "s", NULL
16269 };
16270
16271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16273 if (!SWIG_IsOK(res1)) {
16274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16275 }
16276 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16277 {
16278 arg2 = wxString_in_helper(obj1);
16279 if (arg2 == NULL) SWIG_fail;
16280 temp2 = true;
16281 }
16282 {
16283 PyThreadState* __tstate = wxPyBeginAllowThreads();
16284 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16285 wxPyEndAllowThreads(__tstate);
16286 if (PyErr_Occurred()) SWIG_fail;
16287 }
16288 resultobj = SWIG_From_int(static_cast< int >(result));
16289 {
16290 if (temp2)
16291 delete arg2;
16292 }
16293 return resultobj;
16294fail:
16295 {
16296 if (temp2)
16297 delete arg2;
16298 }
16299 return NULL;
16300}
16301
16302
16303SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16304 PyObject *resultobj = 0;
16305 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16306 int arg2 ;
16307 wxString result;
16308 void *argp1 = 0 ;
16309 int res1 = 0 ;
16310 int val2 ;
16311 int ecode2 = 0 ;
16312 PyObject * obj0 = 0 ;
16313 PyObject * obj1 = 0 ;
16314 char * kwnames[] = {
16315 (char *) "self",(char *) "n", NULL
16316 };
16317
16318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16320 if (!SWIG_IsOK(res1)) {
16321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16322 }
16323 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16324 ecode2 = SWIG_AsVal_int(obj1, &val2);
16325 if (!SWIG_IsOK(ecode2)) {
16326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16327 }
16328 arg2 = static_cast< int >(val2);
16329 {
16330 PyThreadState* __tstate = wxPyBeginAllowThreads();
16331 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16332 wxPyEndAllowThreads(__tstate);
16333 if (PyErr_Occurred()) SWIG_fail;
16334 }
16335 {
16336#if wxUSE_UNICODE
16337 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16338#else
16339 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16340#endif
16341 }
16342 return resultobj;
16343fail:
16344 return NULL;
16345}
16346
16347
16348SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16349 PyObject *resultobj = 0;
16350 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16351 int arg2 ;
16352 wxString *arg3 = 0 ;
16353 void *argp1 = 0 ;
16354 int res1 = 0 ;
16355 int val2 ;
16356 int ecode2 = 0 ;
16357 bool temp3 = false ;
16358 PyObject * obj0 = 0 ;
16359 PyObject * obj1 = 0 ;
16360 PyObject * obj2 = 0 ;
16361 char * kwnames[] = {
16362 (char *) "self",(char *) "n",(char *) "label", NULL
16363 };
16364
16365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16367 if (!SWIG_IsOK(res1)) {
16368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16369 }
16370 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16371 ecode2 = SWIG_AsVal_int(obj1, &val2);
16372 if (!SWIG_IsOK(ecode2)) {
16373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16374 }
16375 arg2 = static_cast< int >(val2);
16376 {
16377 arg3 = wxString_in_helper(obj2);
16378 if (arg3 == NULL) SWIG_fail;
16379 temp3 = true;
16380 }
16381 {
16382 PyThreadState* __tstate = wxPyBeginAllowThreads();
16383 (arg1)->SetString(arg2,(wxString const &)*arg3);
16384 wxPyEndAllowThreads(__tstate);
16385 if (PyErr_Occurred()) SWIG_fail;
16386 }
16387 resultobj = SWIG_Py_Void();
16388 {
16389 if (temp3)
16390 delete arg3;
16391 }
16392 return resultobj;
16393fail:
16394 {
16395 if (temp3)
16396 delete arg3;
16397 }
16398 return NULL;
16399}
16400
16401
16402SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16403 PyObject *resultobj = 0;
16404 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16405 unsigned int arg2 ;
1bd55598
RD
16406 bool arg3 = (bool) true ;
16407 void *argp1 = 0 ;
16408 int res1 = 0 ;
50f151d7 16409 unsigned int val2 ;
1bd55598
RD
16410 int ecode2 = 0 ;
16411 bool val3 ;
16412 int ecode3 = 0 ;
16413 PyObject * obj0 = 0 ;
16414 PyObject * obj1 = 0 ;
16415 PyObject * obj2 = 0 ;
16416 char * kwnames[] = {
16417 (char *) "self",(char *) "n",(char *) "enable", NULL
16418 };
16419
16420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16422 if (!SWIG_IsOK(res1)) {
16423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16424 }
16425 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16426 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16427 if (!SWIG_IsOK(ecode2)) {
50f151d7 16428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16429 }
50f151d7 16430 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16431 if (obj2) {
16432 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16433 if (!SWIG_IsOK(ecode3)) {
16434 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16435 }
16436 arg3 = static_cast< bool >(val3);
16437 }
16438 {
16439 PyThreadState* __tstate = wxPyBeginAllowThreads();
16440 (arg1)->Enable(arg2,arg3);
16441 wxPyEndAllowThreads(__tstate);
16442 if (PyErr_Occurred()) SWIG_fail;
16443 }
16444 resultobj = SWIG_Py_Void();
16445 return resultobj;
16446fail:
16447 return NULL;
16448}
16449
16450
16451SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16452 PyObject *resultobj = 0;
16453 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16454 unsigned int arg2 ;
1bd55598
RD
16455 bool arg3 = (bool) true ;
16456 void *argp1 = 0 ;
16457 int res1 = 0 ;
50f151d7 16458 unsigned int val2 ;
1bd55598
RD
16459 int ecode2 = 0 ;
16460 bool val3 ;
16461 int ecode3 = 0 ;
16462 PyObject * obj0 = 0 ;
16463 PyObject * obj1 = 0 ;
16464 PyObject * obj2 = 0 ;
16465 char * kwnames[] = {
16466 (char *) "self",(char *) "n",(char *) "show", NULL
16467 };
16468
16469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16471 if (!SWIG_IsOK(res1)) {
16472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16473 }
16474 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16475 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16476 if (!SWIG_IsOK(ecode2)) {
50f151d7 16477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16478 }
50f151d7 16479 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16480 if (obj2) {
16481 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16482 if (!SWIG_IsOK(ecode3)) {
16483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16484 }
16485 arg3 = static_cast< bool >(val3);
16486 }
16487 {
16488 PyThreadState* __tstate = wxPyBeginAllowThreads();
16489 (arg1)->Show(arg2,arg3);
16490 wxPyEndAllowThreads(__tstate);
16491 if (PyErr_Occurred()) SWIG_fail;
16492 }
16493 resultobj = SWIG_Py_Void();
16494 return resultobj;
16495fail:
16496 return NULL;
d55e5bfc
RD
16497}
16498
16499
50f151d7
RD
16500SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16501 PyObject *resultobj = 0;
16502 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16503 unsigned int arg2 ;
16504 bool result;
16505 void *argp1 = 0 ;
16506 int res1 = 0 ;
16507 unsigned int val2 ;
16508 int ecode2 = 0 ;
16509 PyObject * obj0 = 0 ;
16510 PyObject * obj1 = 0 ;
16511 char * kwnames[] = {
16512 (char *) "self",(char *) "n", NULL
16513 };
16514
16515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16517 if (!SWIG_IsOK(res1)) {
16518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16519 }
16520 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16521 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16522 if (!SWIG_IsOK(ecode2)) {
16523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16524 }
16525 arg2 = static_cast< unsigned int >(val2);
16526 {
16527 PyThreadState* __tstate = wxPyBeginAllowThreads();
16528 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16529 wxPyEndAllowThreads(__tstate);
16530 if (PyErr_Occurred()) SWIG_fail;
16531 }
16532 {
16533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16534 }
16535 return resultobj;
16536fail:
16537 return NULL;
16538}
16539
16540
16541SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16542 PyObject *resultobj = 0;
16543 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16544 unsigned int arg2 ;
16545 bool result;
16546 void *argp1 = 0 ;
16547 int res1 = 0 ;
16548 unsigned int val2 ;
16549 int ecode2 = 0 ;
16550 PyObject * obj0 = 0 ;
16551 PyObject * obj1 = 0 ;
16552 char * kwnames[] = {
16553 (char *) "self",(char *) "n", NULL
16554 };
16555
16556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16558 if (!SWIG_IsOK(res1)) {
16559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16560 }
16561 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16562 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16563 if (!SWIG_IsOK(ecode2)) {
16564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16565 }
16566 arg2 = static_cast< unsigned int >(val2);
16567 {
16568 PyThreadState* __tstate = wxPyBeginAllowThreads();
16569 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16570 wxPyEndAllowThreads(__tstate);
16571 if (PyErr_Occurred()) SWIG_fail;
16572 }
16573 {
16574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16575 }
16576 return resultobj;
16577fail:
16578 return NULL;
16579}
16580
16581
1bd55598
RD
16582SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16583 PyObject *resultobj = 0;
16584 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16585 unsigned int result;
1bd55598
RD
16586 void *argp1 = 0 ;
16587 int res1 = 0 ;
16588 PyObject *swig_obj[1] ;
16589
16590 if (!args) SWIG_fail;
16591 swig_obj[0] = args;
16592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16593 if (!SWIG_IsOK(res1)) {
16594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16595 }
16596 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16597 {
16598 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16599 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
1bd55598
RD
16600 wxPyEndAllowThreads(__tstate);
16601 if (PyErr_Occurred()) SWIG_fail;
16602 }
50f151d7 16603 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16604 return resultobj;
16605fail:
16606 return NULL;
d55e5bfc
RD
16607}
16608
16609
1bd55598
RD
16610SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16611 PyObject *resultobj = 0;
16612 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16613 unsigned int result;
1bd55598
RD
16614 void *argp1 = 0 ;
16615 int res1 = 0 ;
16616 PyObject *swig_obj[1] ;
16617
16618 if (!args) SWIG_fail;
16619 swig_obj[0] = args;
16620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16621 if (!SWIG_IsOK(res1)) {
16622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16623 }
16624 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16625 {
16626 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16627 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
1bd55598
RD
16628 wxPyEndAllowThreads(__tstate);
16629 if (PyErr_Occurred()) SWIG_fail;
16630 }
50f151d7 16631 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16632 return resultobj;
16633fail:
16634 return NULL;
16635}
16636
16637
16638SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16639 PyObject *resultobj = 0;
16640 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16641 int arg2 ;
16642 wxDirection arg3 ;
16643 long arg4 ;
16644 int result;
16645 void *argp1 = 0 ;
16646 int res1 = 0 ;
16647 int val2 ;
16648 int ecode2 = 0 ;
16649 int val3 ;
16650 int ecode3 = 0 ;
16651 long val4 ;
16652 int ecode4 = 0 ;
16653 PyObject * obj0 = 0 ;
16654 PyObject * obj1 = 0 ;
16655 PyObject * obj2 = 0 ;
16656 PyObject * obj3 = 0 ;
16657 char * kwnames[] = {
16658 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16659 };
16660
16661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16663 if (!SWIG_IsOK(res1)) {
16664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16665 }
16666 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16667 ecode2 = SWIG_AsVal_int(obj1, &val2);
16668 if (!SWIG_IsOK(ecode2)) {
16669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16670 }
16671 arg2 = static_cast< int >(val2);
16672 ecode3 = SWIG_AsVal_int(obj2, &val3);
16673 if (!SWIG_IsOK(ecode3)) {
16674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16675 }
16676 arg3 = static_cast< wxDirection >(val3);
16677 ecode4 = SWIG_AsVal_long(obj3, &val4);
16678 if (!SWIG_IsOK(ecode4)) {
16679 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16680 }
16681 arg4 = static_cast< long >(val4);
16682 {
16683 PyThreadState* __tstate = wxPyBeginAllowThreads();
16684 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16685 wxPyEndAllowThreads(__tstate);
16686 if (PyErr_Occurred()) SWIG_fail;
16687 }
16688 resultobj = SWIG_From_int(static_cast< int >(result));
16689 return resultobj;
16690fail:
16691 return NULL;
16692}
16693
16694
16695SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16696 PyObject *resultobj = 0;
16697 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16698 SwigValueWrapper<wxVisualAttributes > result;
16699 int val1 ;
16700 int ecode1 = 0 ;
16701 PyObject * obj0 = 0 ;
16702 char * kwnames[] = {
16703 (char *) "variant", NULL
16704 };
16705
16706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16707 if (obj0) {
16708 ecode1 = SWIG_AsVal_int(obj0, &val1);
16709 if (!SWIG_IsOK(ecode1)) {
16710 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16711 }
16712 arg1 = static_cast< wxWindowVariant >(val1);
16713 }
16714 {
16715 if (!wxPyCheckForApp()) SWIG_fail;
16716 PyThreadState* __tstate = wxPyBeginAllowThreads();
16717 result = wxRadioBox::GetClassDefaultAttributes(arg1);
16718 wxPyEndAllowThreads(__tstate);
16719 if (PyErr_Occurred()) SWIG_fail;
16720 }
16721 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16722 return resultobj;
16723fail:
16724 return NULL;
16725}
16726
16727
16728SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16729 PyObject *obj;
16730 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16731 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
16732 return SWIG_Py_Void();
16733}
16734
16735SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16736 return SWIG_Python_InitShadowInstance(args);
16737}
16738
16739SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16740 PyObject *resultobj = 0;
16741 wxWindow *arg1 = (wxWindow *) 0 ;
16742 int arg2 = (int) -1 ;
16743 wxString const &arg3_defvalue = wxPyEmptyString ;
16744 wxString *arg3 = (wxString *) &arg3_defvalue ;
16745 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16746 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16747 wxSize const &arg5_defvalue = wxDefaultSize ;
16748 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16749 long arg6 = (long) 0 ;
16750 wxValidator const &arg7_defvalue = wxDefaultValidator ;
16751 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
16752 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
16753 wxString *arg8 = (wxString *) &arg8_defvalue ;
16754 wxRadioButton *result = 0 ;
16755 void *argp1 = 0 ;
16756 int res1 = 0 ;
16757 int val2 ;
16758 int ecode2 = 0 ;
16759 bool temp3 = false ;
16760 wxPoint temp4 ;
16761 wxSize temp5 ;
16762 long val6 ;
16763 int ecode6 = 0 ;
16764 void *argp7 = 0 ;
16765 int res7 = 0 ;
16766 bool temp8 = false ;
16767 PyObject * obj0 = 0 ;
16768 PyObject * obj1 = 0 ;
16769 PyObject * obj2 = 0 ;
16770 PyObject * obj3 = 0 ;
16771 PyObject * obj4 = 0 ;
16772 PyObject * obj5 = 0 ;
16773 PyObject * obj6 = 0 ;
16774 PyObject * obj7 = 0 ;
16775 char * kwnames[] = {
16776 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16777 };
16778
16779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16781 if (!SWIG_IsOK(res1)) {
16782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
16783 }
16784 arg1 = reinterpret_cast< wxWindow * >(argp1);
16785 if (obj1) {
16786 ecode2 = SWIG_AsVal_int(obj1, &val2);
16787 if (!SWIG_IsOK(ecode2)) {
16788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
16789 }
16790 arg2 = static_cast< int >(val2);
16791 }
16792 if (obj2) {
d55e5bfc 16793 {
1bd55598
RD
16794 arg3 = wxString_in_helper(obj2);
16795 if (arg3 == NULL) SWIG_fail;
16796 temp3 = true;
d55e5bfc 16797 }
1bd55598
RD
16798 }
16799 if (obj3) {
d55e5bfc 16800 {
1bd55598
RD
16801 arg4 = &temp4;
16802 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 16803 }
1bd55598
RD
16804 }
16805 if (obj4) {
d55e5bfc 16806 {
1bd55598
RD
16807 arg5 = &temp5;
16808 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16809 }
1bd55598
RD
16810 }
16811 if (obj5) {
16812 ecode6 = SWIG_AsVal_long(obj5, &val6);
16813 if (!SWIG_IsOK(ecode6)) {
16814 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
16815 }
16816 arg6 = static_cast< long >(val6);
16817 }
16818 if (obj6) {
16819 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
16820 if (!SWIG_IsOK(res7)) {
16821 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 16822 }
1bd55598
RD
16823 if (!argp7) {
16824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
16825 }
16826 arg7 = reinterpret_cast< wxValidator * >(argp7);
16827 }
16828 if (obj7) {
d55e5bfc 16829 {
1bd55598
RD
16830 arg8 = wxString_in_helper(obj7);
16831 if (arg8 == NULL) SWIG_fail;
16832 temp8 = true;
d55e5bfc 16833 }
1bd55598
RD
16834 }
16835 {
16836 if (!wxPyCheckForApp()) SWIG_fail;
16837 PyThreadState* __tstate = wxPyBeginAllowThreads();
16838 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
16839 wxPyEndAllowThreads(__tstate);
16840 if (PyErr_Occurred()) SWIG_fail;
16841 }
16842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
16843 {
16844 if (temp3)
16845 delete arg3;
16846 }
16847 {
16848 if (temp8)
16849 delete arg8;
16850 }
16851 return resultobj;
16852fail:
16853 {
16854 if (temp3)
16855 delete arg3;
16856 }
16857 {
16858 if (temp8)
16859 delete arg8;
16860 }
16861 return NULL;
d55e5bfc
RD
16862}
16863
16864
1bd55598
RD
16865SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16866 PyObject *resultobj = 0;
16867 wxRadioButton *result = 0 ;
16868
16869 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
16870 {
16871 if (!wxPyCheckForApp()) SWIG_fail;
16872 PyThreadState* __tstate = wxPyBeginAllowThreads();
16873 result = (wxRadioButton *)new wxRadioButton();
16874 wxPyEndAllowThreads(__tstate);
16875 if (PyErr_Occurred()) SWIG_fail;
16876 }
16877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
16878 return resultobj;
16879fail:
16880 return NULL;
16881}
16882
16883
16884SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16885 PyObject *resultobj = 0;
16886 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
16887 wxWindow *arg2 = (wxWindow *) 0 ;
16888 int arg3 = (int) -1 ;
16889 wxString const &arg4_defvalue = wxPyEmptyString ;
16890 wxString *arg4 = (wxString *) &arg4_defvalue ;
16891 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16892 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16893 wxSize const &arg6_defvalue = wxDefaultSize ;
16894 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16895 long arg7 = (long) 0 ;
16896 wxValidator const &arg8_defvalue = wxDefaultValidator ;
16897 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
16898 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
16899 wxString *arg9 = (wxString *) &arg9_defvalue ;
16900 bool result;
16901 void *argp1 = 0 ;
16902 int res1 = 0 ;
16903 void *argp2 = 0 ;
16904 int res2 = 0 ;
16905 int val3 ;
16906 int ecode3 = 0 ;
16907 bool temp4 = false ;
16908 wxPoint temp5 ;
16909 wxSize temp6 ;
16910 long val7 ;
16911 int ecode7 = 0 ;
16912 void *argp8 = 0 ;
16913 int res8 = 0 ;
16914 bool temp9 = false ;
16915 PyObject * obj0 = 0 ;
16916 PyObject * obj1 = 0 ;
16917 PyObject * obj2 = 0 ;
16918 PyObject * obj3 = 0 ;
16919 PyObject * obj4 = 0 ;
16920 PyObject * obj5 = 0 ;
16921 PyObject * obj6 = 0 ;
16922 PyObject * obj7 = 0 ;
16923 PyObject * obj8 = 0 ;
16924 char * kwnames[] = {
16925 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16926 };
16927
16928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
16929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
16930 if (!SWIG_IsOK(res1)) {
16931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
16932 }
16933 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
16934 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16935 if (!SWIG_IsOK(res2)) {
16936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16937 }
16938 arg2 = reinterpret_cast< wxWindow * >(argp2);
16939 if (obj2) {
16940 ecode3 = SWIG_AsVal_int(obj2, &val3);
16941 if (!SWIG_IsOK(ecode3)) {
16942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
16943 }
16944 arg3 = static_cast< int >(val3);
16945 }
16946 if (obj3) {
d55e5bfc 16947 {
1bd55598
RD
16948 arg4 = wxString_in_helper(obj3);
16949 if (arg4 == NULL) SWIG_fail;
16950 temp4 = true;
d55e5bfc 16951 }
1bd55598
RD
16952 }
16953 if (obj4) {
d55e5bfc 16954 {
1bd55598
RD
16955 arg5 = &temp5;
16956 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16957 }
1bd55598
RD
16958 }
16959 if (obj5) {
d55e5bfc 16960 {
1bd55598
RD
16961 arg6 = &temp6;
16962 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 16963 }
1bd55598
RD
16964 }
16965 if (obj6) {
16966 ecode7 = SWIG_AsVal_long(obj6, &val7);
16967 if (!SWIG_IsOK(ecode7)) {
16968 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
16969 }
16970 arg7 = static_cast< long >(val7);
16971 }
16972 if (obj7) {
16973 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
16974 if (!SWIG_IsOK(res8)) {
16975 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 16976 }
1bd55598
RD
16977 if (!argp8) {
16978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 16979 }
1bd55598
RD
16980 arg8 = reinterpret_cast< wxValidator * >(argp8);
16981 }
16982 if (obj8) {
d55e5bfc 16983 {
1bd55598
RD
16984 arg9 = wxString_in_helper(obj8);
16985 if (arg9 == NULL) SWIG_fail;
16986 temp9 = true;
d55e5bfc 16987 }
1bd55598
RD
16988 }
16989 {
16990 PyThreadState* __tstate = wxPyBeginAllowThreads();
16991 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
16992 wxPyEndAllowThreads(__tstate);
16993 if (PyErr_Occurred()) SWIG_fail;
16994 }
16995 {
16996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16997 }
16998 {
16999 if (temp4)
17000 delete arg4;
17001 }
17002 {
17003 if (temp9)
17004 delete arg9;
17005 }
17006 return resultobj;
17007fail:
17008 {
17009 if (temp4)
17010 delete arg4;
17011 }
17012 {
17013 if (temp9)
17014 delete arg9;
17015 }
17016 return NULL;
d55e5bfc
RD
17017}
17018
17019
1bd55598
RD
17020SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17021 PyObject *resultobj = 0;
17022 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17023 bool result;
17024 void *argp1 = 0 ;
17025 int res1 = 0 ;
17026 PyObject *swig_obj[1] ;
17027
17028 if (!args) SWIG_fail;
17029 swig_obj[0] = args;
17030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17031 if (!SWIG_IsOK(res1)) {
17032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17033 }
17034 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17035 {
17036 PyThreadState* __tstate = wxPyBeginAllowThreads();
17037 result = (bool)(arg1)->GetValue();
17038 wxPyEndAllowThreads(__tstate);
17039 if (PyErr_Occurred()) SWIG_fail;
17040 }
17041 {
17042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17043 }
17044 return resultobj;
17045fail:
17046 return NULL;
17047}
17048
17049
17050SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17051 PyObject *resultobj = 0;
17052 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17053 bool arg2 ;
17054 void *argp1 = 0 ;
17055 int res1 = 0 ;
17056 bool val2 ;
17057 int ecode2 = 0 ;
17058 PyObject * obj0 = 0 ;
17059 PyObject * obj1 = 0 ;
17060 char * kwnames[] = {
17061 (char *) "self",(char *) "value", NULL
17062 };
17063
17064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17066 if (!SWIG_IsOK(res1)) {
17067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17068 }
17069 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17070 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17071 if (!SWIG_IsOK(ecode2)) {
17072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17073 }
17074 arg2 = static_cast< bool >(val2);
17075 {
17076 PyThreadState* __tstate = wxPyBeginAllowThreads();
17077 (arg1)->SetValue(arg2);
17078 wxPyEndAllowThreads(__tstate);
17079 if (PyErr_Occurred()) SWIG_fail;
17080 }
17081 resultobj = SWIG_Py_Void();
17082 return resultobj;
17083fail:
17084 return NULL;
17085}
17086
17087
17088SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17089 PyObject *resultobj = 0;
17090 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17091 SwigValueWrapper<wxVisualAttributes > result;
17092 int val1 ;
17093 int ecode1 = 0 ;
17094 PyObject * obj0 = 0 ;
17095 char * kwnames[] = {
17096 (char *) "variant", NULL
17097 };
17098
17099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17100 if (obj0) {
17101 ecode1 = SWIG_AsVal_int(obj0, &val1);
17102 if (!SWIG_IsOK(ecode1)) {
17103 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17104 }
17105 arg1 = static_cast< wxWindowVariant >(val1);
17106 }
17107 {
17108 if (!wxPyCheckForApp()) SWIG_fail;
17109 PyThreadState* __tstate = wxPyBeginAllowThreads();
17110 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17111 wxPyEndAllowThreads(__tstate);
17112 if (PyErr_Occurred()) SWIG_fail;
17113 }
17114 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17115 return resultobj;
17116fail:
17117 return NULL;
d55e5bfc
RD
17118}
17119
17120
1bd55598
RD
17121SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17122 PyObject *obj;
17123 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17124 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17125 return SWIG_Py_Void();
d55e5bfc
RD
17126}
17127
1bd55598
RD
17128SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17129 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17130}
17131
1bd55598
RD
17132SWIGINTERN int SliderNameStr_set(PyObject *) {
17133 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17134 return 1;
d55e5bfc
RD
17135}
17136
17137
1bd55598
RD
17138SWIGINTERN PyObject *SliderNameStr_get(void) {
17139 PyObject *pyobj = 0;
17140
17141 {
17142#if wxUSE_UNICODE
17143 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17144#else
17145 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17146#endif
17147 }
17148 return pyobj;
17149}
17150
17151
17152SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17153 PyObject *resultobj = 0;
17154 wxWindow *arg1 = (wxWindow *) 0 ;
17155 int arg2 = (int) -1 ;
17156 int arg3 = (int) 0 ;
17157 int arg4 = (int) 0 ;
17158 int arg5 = (int) 100 ;
17159 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17160 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17161 wxSize const &arg7_defvalue = wxDefaultSize ;
17162 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17163 long arg8 = (long) wxSL_HORIZONTAL ;
17164 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17165 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17166 wxString const &arg10_defvalue = wxPySliderNameStr ;
17167 wxString *arg10 = (wxString *) &arg10_defvalue ;
17168 wxSlider *result = 0 ;
17169 void *argp1 = 0 ;
17170 int res1 = 0 ;
17171 int val2 ;
17172 int ecode2 = 0 ;
17173 int val3 ;
17174 int ecode3 = 0 ;
17175 int val4 ;
17176 int ecode4 = 0 ;
17177 int val5 ;
17178 int ecode5 = 0 ;
17179 wxPoint temp6 ;
17180 wxSize temp7 ;
17181 long val8 ;
17182 int ecode8 = 0 ;
17183 void *argp9 = 0 ;
17184 int res9 = 0 ;
17185 bool temp10 = false ;
17186 PyObject * obj0 = 0 ;
17187 PyObject * obj1 = 0 ;
17188 PyObject * obj2 = 0 ;
17189 PyObject * obj3 = 0 ;
17190 PyObject * obj4 = 0 ;
17191 PyObject * obj5 = 0 ;
17192 PyObject * obj6 = 0 ;
17193 PyObject * obj7 = 0 ;
17194 PyObject * obj8 = 0 ;
17195 PyObject * obj9 = 0 ;
17196 char * kwnames[] = {
17197 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17198 };
17199
17200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17202 if (!SWIG_IsOK(res1)) {
17203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17204 }
17205 arg1 = reinterpret_cast< wxWindow * >(argp1);
17206 if (obj1) {
17207 ecode2 = SWIG_AsVal_int(obj1, &val2);
17208 if (!SWIG_IsOK(ecode2)) {
17209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17210 }
17211 arg2 = static_cast< int >(val2);
17212 }
17213 if (obj2) {
17214 ecode3 = SWIG_AsVal_int(obj2, &val3);
17215 if (!SWIG_IsOK(ecode3)) {
17216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17217 }
17218 arg3 = static_cast< int >(val3);
17219 }
17220 if (obj3) {
17221 ecode4 = SWIG_AsVal_int(obj3, &val4);
17222 if (!SWIG_IsOK(ecode4)) {
17223 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17224 }
17225 arg4 = static_cast< int >(val4);
17226 }
17227 if (obj4) {
17228 ecode5 = SWIG_AsVal_int(obj4, &val5);
17229 if (!SWIG_IsOK(ecode5)) {
17230 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17231 }
17232 arg5 = static_cast< int >(val5);
17233 }
17234 if (obj5) {
36ed4f51 17235 {
1bd55598
RD
17236 arg6 = &temp6;
17237 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 17238 }
1bd55598
RD
17239 }
17240 if (obj6) {
36ed4f51 17241 {
1bd55598
RD
17242 arg7 = &temp7;
17243 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
36ed4f51 17244 }
1bd55598
RD
17245 }
17246 if (obj7) {
17247 ecode8 = SWIG_AsVal_long(obj7, &val8);
17248 if (!SWIG_IsOK(ecode8)) {
17249 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17250 }
17251 arg8 = static_cast< long >(val8);
17252 }
17253 if (obj8) {
17254 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17255 if (!SWIG_IsOK(res9)) {
17256 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
36ed4f51 17257 }
1bd55598
RD
17258 if (!argp9) {
17259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 17260 }
1bd55598
RD
17261 arg9 = reinterpret_cast< wxValidator * >(argp9);
17262 }
17263 if (obj9) {
d55e5bfc 17264 {
1bd55598
RD
17265 arg10 = wxString_in_helper(obj9);
17266 if (arg10 == NULL) SWIG_fail;
17267 temp10 = true;
d55e5bfc 17268 }
1bd55598
RD
17269 }
17270 {
17271 if (!wxPyCheckForApp()) SWIG_fail;
17272 PyThreadState* __tstate = wxPyBeginAllowThreads();
17273 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17274 wxPyEndAllowThreads(__tstate);
17275 if (PyErr_Occurred()) SWIG_fail;
17276 }
17277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17278 {
17279 if (temp10)
17280 delete arg10;
17281 }
17282 return resultobj;
17283fail:
17284 {
17285 if (temp10)
17286 delete arg10;
17287 }
17288 return NULL;
d55e5bfc
RD
17289}
17290
17291
1bd55598
RD
17292SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17293 PyObject *resultobj = 0;
17294 wxSlider *result = 0 ;
17295
17296 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17297 {
17298 if (!wxPyCheckForApp()) SWIG_fail;
17299 PyThreadState* __tstate = wxPyBeginAllowThreads();
17300 result = (wxSlider *)new wxSlider();
17301 wxPyEndAllowThreads(__tstate);
17302 if (PyErr_Occurred()) SWIG_fail;
17303 }
17304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17305 return resultobj;
17306fail:
17307 return NULL;
17308}
17309
17310
17311SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17312 PyObject *resultobj = 0;
17313 wxSlider *arg1 = (wxSlider *) 0 ;
17314 wxWindow *arg2 = (wxWindow *) 0 ;
17315 int arg3 = (int) -1 ;
17316 int arg4 = (int) 0 ;
17317 int arg5 = (int) 0 ;
17318 int arg6 = (int) 100 ;
17319 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17320 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17321 wxSize const &arg8_defvalue = wxDefaultSize ;
17322 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17323 long arg9 = (long) wxSL_HORIZONTAL ;
17324 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17325 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17326 wxString const &arg11_defvalue = wxPySliderNameStr ;
17327 wxString *arg11 = (wxString *) &arg11_defvalue ;
17328 bool result;
17329 void *argp1 = 0 ;
17330 int res1 = 0 ;
17331 void *argp2 = 0 ;
17332 int res2 = 0 ;
17333 int val3 ;
17334 int ecode3 = 0 ;
17335 int val4 ;
17336 int ecode4 = 0 ;
17337 int val5 ;
17338 int ecode5 = 0 ;
17339 int val6 ;
17340 int ecode6 = 0 ;
17341 wxPoint temp7 ;
17342 wxSize temp8 ;
17343 long val9 ;
17344 int ecode9 = 0 ;
17345 void *argp10 = 0 ;
17346 int res10 = 0 ;
17347 bool temp11 = false ;
17348 PyObject * obj0 = 0 ;
17349 PyObject * obj1 = 0 ;
17350 PyObject * obj2 = 0 ;
17351 PyObject * obj3 = 0 ;
17352 PyObject * obj4 = 0 ;
17353 PyObject * obj5 = 0 ;
17354 PyObject * obj6 = 0 ;
17355 PyObject * obj7 = 0 ;
17356 PyObject * obj8 = 0 ;
17357 PyObject * obj9 = 0 ;
17358 PyObject * obj10 = 0 ;
17359 char * kwnames[] = {
17360 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17361 };
17362
17363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17365 if (!SWIG_IsOK(res1)) {
17366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17367 }
17368 arg1 = reinterpret_cast< wxSlider * >(argp1);
17369 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17370 if (!SWIG_IsOK(res2)) {
17371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17372 }
17373 arg2 = reinterpret_cast< wxWindow * >(argp2);
17374 if (obj2) {
17375 ecode3 = SWIG_AsVal_int(obj2, &val3);
17376 if (!SWIG_IsOK(ecode3)) {
17377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17378 }
17379 arg3 = static_cast< int >(val3);
17380 }
17381 if (obj3) {
17382 ecode4 = SWIG_AsVal_int(obj3, &val4);
17383 if (!SWIG_IsOK(ecode4)) {
17384 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17385 }
17386 arg4 = static_cast< int >(val4);
17387 }
17388 if (obj4) {
17389 ecode5 = SWIG_AsVal_int(obj4, &val5);
17390 if (!SWIG_IsOK(ecode5)) {
17391 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17392 }
17393 arg5 = static_cast< int >(val5);
17394 }
17395 if (obj5) {
17396 ecode6 = SWIG_AsVal_int(obj5, &val6);
17397 if (!SWIG_IsOK(ecode6)) {
17398 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17399 }
17400 arg6 = static_cast< int >(val6);
17401 }
17402 if (obj6) {
d55e5bfc 17403 {
1bd55598
RD
17404 arg7 = &temp7;
17405 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d55e5bfc 17406 }
1bd55598
RD
17407 }
17408 if (obj7) {
d55e5bfc 17409 {
1bd55598
RD
17410 arg8 = &temp8;
17411 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d55e5bfc 17412 }
1bd55598
RD
17413 }
17414 if (obj8) {
17415 ecode9 = SWIG_AsVal_long(obj8, &val9);
17416 if (!SWIG_IsOK(ecode9)) {
17417 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17418 }
17419 arg9 = static_cast< long >(val9);
17420 }
17421 if (obj9) {
17422 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17423 if (!SWIG_IsOK(res10)) {
17424 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17425 }
1bd55598
RD
17426 if (!argp10) {
17427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17428 }
1bd55598
RD
17429 arg10 = reinterpret_cast< wxValidator * >(argp10);
17430 }
17431 if (obj10) {
d55e5bfc 17432 {
1bd55598
RD
17433 arg11 = wxString_in_helper(obj10);
17434 if (arg11 == NULL) SWIG_fail;
17435 temp11 = true;
d55e5bfc 17436 }
1bd55598
RD
17437 }
17438 {
17439 PyThreadState* __tstate = wxPyBeginAllowThreads();
17440 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
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 (temp11)
17449 delete arg11;
17450 }
17451 return resultobj;
17452fail:
17453 {
17454 if (temp11)
17455 delete arg11;
17456 }
17457 return NULL;
d55e5bfc
RD
17458}
17459
17460
1bd55598
RD
17461SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17462 PyObject *resultobj = 0;
17463 wxSlider *arg1 = (wxSlider *) 0 ;
17464 int result;
17465 void *argp1 = 0 ;
17466 int res1 = 0 ;
17467 PyObject *swig_obj[1] ;
17468
17469 if (!args) SWIG_fail;
17470 swig_obj[0] = args;
17471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17472 if (!SWIG_IsOK(res1)) {
17473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17474 }
17475 arg1 = reinterpret_cast< wxSlider * >(argp1);
17476 {
17477 PyThreadState* __tstate = wxPyBeginAllowThreads();
17478 result = (int)((wxSlider const *)arg1)->GetValue();
17479 wxPyEndAllowThreads(__tstate);
17480 if (PyErr_Occurred()) SWIG_fail;
17481 }
17482 resultobj = SWIG_From_int(static_cast< int >(result));
17483 return resultobj;
17484fail:
17485 return NULL;
17486}
17487
17488
17489SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17490 PyObject *resultobj = 0;
17491 wxSlider *arg1 = (wxSlider *) 0 ;
17492 int arg2 ;
17493 void *argp1 = 0 ;
17494 int res1 = 0 ;
17495 int val2 ;
17496 int ecode2 = 0 ;
17497 PyObject * obj0 = 0 ;
17498 PyObject * obj1 = 0 ;
17499 char * kwnames[] = {
17500 (char *) "self",(char *) "value", NULL
17501 };
17502
17503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17505 if (!SWIG_IsOK(res1)) {
17506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17507 }
17508 arg1 = reinterpret_cast< wxSlider * >(argp1);
17509 ecode2 = SWIG_AsVal_int(obj1, &val2);
17510 if (!SWIG_IsOK(ecode2)) {
17511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17512 }
17513 arg2 = static_cast< int >(val2);
17514 {
17515 PyThreadState* __tstate = wxPyBeginAllowThreads();
17516 (arg1)->SetValue(arg2);
17517 wxPyEndAllowThreads(__tstate);
17518 if (PyErr_Occurred()) SWIG_fail;
17519 }
17520 resultobj = SWIG_Py_Void();
17521 return resultobj;
17522fail:
17523 return NULL;
17524}
17525
17526
17527SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17528 PyObject *resultobj = 0;
17529 wxSlider *arg1 = (wxSlider *) 0 ;
17530 int arg2 ;
17531 int arg3 ;
17532 void *argp1 = 0 ;
17533 int res1 = 0 ;
17534 int val2 ;
17535 int ecode2 = 0 ;
17536 int val3 ;
17537 int ecode3 = 0 ;
17538 PyObject * obj0 = 0 ;
17539 PyObject * obj1 = 0 ;
17540 PyObject * obj2 = 0 ;
17541 char * kwnames[] = {
17542 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17543 };
17544
17545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17547 if (!SWIG_IsOK(res1)) {
17548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17549 }
17550 arg1 = reinterpret_cast< wxSlider * >(argp1);
17551 ecode2 = SWIG_AsVal_int(obj1, &val2);
17552 if (!SWIG_IsOK(ecode2)) {
17553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17554 }
17555 arg2 = static_cast< int >(val2);
17556 ecode3 = SWIG_AsVal_int(obj2, &val3);
17557 if (!SWIG_IsOK(ecode3)) {
17558 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17559 }
17560 arg3 = static_cast< int >(val3);
17561 {
17562 PyThreadState* __tstate = wxPyBeginAllowThreads();
17563 (arg1)->SetRange(arg2,arg3);
17564 wxPyEndAllowThreads(__tstate);
17565 if (PyErr_Occurred()) SWIG_fail;
17566 }
17567 resultobj = SWIG_Py_Void();
17568 return resultobj;
17569fail:
17570 return NULL;
d55e5bfc
RD
17571}
17572
17573
1bd55598
RD
17574SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17575 PyObject *resultobj = 0;
17576 wxSlider *arg1 = (wxSlider *) 0 ;
17577 int result;
17578 void *argp1 = 0 ;
17579 int res1 = 0 ;
17580 PyObject *swig_obj[1] ;
17581
17582 if (!args) SWIG_fail;
17583 swig_obj[0] = args;
17584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17585 if (!SWIG_IsOK(res1)) {
17586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17587 }
17588 arg1 = reinterpret_cast< wxSlider * >(argp1);
17589 {
17590 PyThreadState* __tstate = wxPyBeginAllowThreads();
17591 result = (int)((wxSlider const *)arg1)->GetMin();
17592 wxPyEndAllowThreads(__tstate);
17593 if (PyErr_Occurred()) SWIG_fail;
17594 }
17595 resultobj = SWIG_From_int(static_cast< int >(result));
17596 return resultobj;
17597fail:
17598 return NULL;
f20a2e1f
RD
17599}
17600
17601
1bd55598
RD
17602SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17603 PyObject *resultobj = 0;
17604 wxSlider *arg1 = (wxSlider *) 0 ;
17605 int result;
17606 void *argp1 = 0 ;
17607 int res1 = 0 ;
17608 PyObject *swig_obj[1] ;
17609
17610 if (!args) SWIG_fail;
17611 swig_obj[0] = args;
17612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17613 if (!SWIG_IsOK(res1)) {
17614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17615 }
17616 arg1 = reinterpret_cast< wxSlider * >(argp1);
17617 {
17618 PyThreadState* __tstate = wxPyBeginAllowThreads();
17619 result = (int)((wxSlider const *)arg1)->GetMax();
17620 wxPyEndAllowThreads(__tstate);
17621 if (PyErr_Occurred()) SWIG_fail;
17622 }
17623 resultobj = SWIG_From_int(static_cast< int >(result));
17624 return resultobj;
17625fail:
17626 return NULL;
17627}
17628
17629
17630SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17631 PyObject *resultobj = 0;
17632 wxSlider *arg1 = (wxSlider *) 0 ;
17633 int arg2 ;
17634 void *argp1 = 0 ;
17635 int res1 = 0 ;
17636 int val2 ;
17637 int ecode2 = 0 ;
17638 PyObject * obj0 = 0 ;
17639 PyObject * obj1 = 0 ;
17640 char * kwnames[] = {
17641 (char *) "self",(char *) "minValue", NULL
17642 };
17643
17644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17646 if (!SWIG_IsOK(res1)) {
17647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17648 }
17649 arg1 = reinterpret_cast< wxSlider * >(argp1);
17650 ecode2 = SWIG_AsVal_int(obj1, &val2);
17651 if (!SWIG_IsOK(ecode2)) {
17652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17653 }
17654 arg2 = static_cast< int >(val2);
17655 {
17656 PyThreadState* __tstate = wxPyBeginAllowThreads();
17657 (arg1)->SetMin(arg2);
17658 wxPyEndAllowThreads(__tstate);
17659 if (PyErr_Occurred()) SWIG_fail;
17660 }
17661 resultobj = SWIG_Py_Void();
17662 return resultobj;
17663fail:
17664 return NULL;
17665}
17666
17667
17668SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17669 PyObject *resultobj = 0;
17670 wxSlider *arg1 = (wxSlider *) 0 ;
17671 int arg2 ;
17672 void *argp1 = 0 ;
17673 int res1 = 0 ;
17674 int val2 ;
17675 int ecode2 = 0 ;
17676 PyObject * obj0 = 0 ;
17677 PyObject * obj1 = 0 ;
17678 char * kwnames[] = {
17679 (char *) "self",(char *) "maxValue", NULL
17680 };
17681
17682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17684 if (!SWIG_IsOK(res1)) {
17685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17686 }
17687 arg1 = reinterpret_cast< wxSlider * >(argp1);
17688 ecode2 = SWIG_AsVal_int(obj1, &val2);
17689 if (!SWIG_IsOK(ecode2)) {
17690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17691 }
17692 arg2 = static_cast< int >(val2);
17693 {
17694 PyThreadState* __tstate = wxPyBeginAllowThreads();
17695 (arg1)->SetMax(arg2);
17696 wxPyEndAllowThreads(__tstate);
17697 if (PyErr_Occurred()) SWIG_fail;
17698 }
17699 resultobj = SWIG_Py_Void();
17700 return resultobj;
17701fail:
17702 return NULL;
17703}
17704
17705
17706SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17707 PyObject *resultobj = 0;
17708 wxSlider *arg1 = (wxSlider *) 0 ;
17709 int arg2 ;
17710 void *argp1 = 0 ;
17711 int res1 = 0 ;
17712 int val2 ;
17713 int ecode2 = 0 ;
17714 PyObject * obj0 = 0 ;
17715 PyObject * obj1 = 0 ;
17716 char * kwnames[] = {
17717 (char *) "self",(char *) "lineSize", NULL
17718 };
17719
17720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
17721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17722 if (!SWIG_IsOK(res1)) {
17723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17724 }
17725 arg1 = reinterpret_cast< wxSlider * >(argp1);
17726 ecode2 = SWIG_AsVal_int(obj1, &val2);
17727 if (!SWIG_IsOK(ecode2)) {
17728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
17729 }
17730 arg2 = static_cast< int >(val2);
17731 {
17732 PyThreadState* __tstate = wxPyBeginAllowThreads();
17733 (arg1)->SetLineSize(arg2);
17734 wxPyEndAllowThreads(__tstate);
17735 if (PyErr_Occurred()) SWIG_fail;
17736 }
17737 resultobj = SWIG_Py_Void();
17738 return resultobj;
17739fail:
17740 return NULL;
17741}
17742
17743
17744SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17745 PyObject *resultobj = 0;
17746 wxSlider *arg1 = (wxSlider *) 0 ;
17747 int arg2 ;
17748 void *argp1 = 0 ;
17749 int res1 = 0 ;
17750 int val2 ;
17751 int ecode2 = 0 ;
17752 PyObject * obj0 = 0 ;
17753 PyObject * obj1 = 0 ;
17754 char * kwnames[] = {
17755 (char *) "self",(char *) "pageSize", NULL
17756 };
17757
17758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
17759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17760 if (!SWIG_IsOK(res1)) {
17761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17762 }
17763 arg1 = reinterpret_cast< wxSlider * >(argp1);
17764 ecode2 = SWIG_AsVal_int(obj1, &val2);
17765 if (!SWIG_IsOK(ecode2)) {
17766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
17767 }
17768 arg2 = static_cast< int >(val2);
17769 {
17770 PyThreadState* __tstate = wxPyBeginAllowThreads();
17771 (arg1)->SetPageSize(arg2);
17772 wxPyEndAllowThreads(__tstate);
17773 if (PyErr_Occurred()) SWIG_fail;
17774 }
17775 resultobj = SWIG_Py_Void();
17776 return resultobj;
17777fail:
17778 return NULL;
d55e5bfc
RD
17779}
17780
17781
1bd55598
RD
17782SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17783 PyObject *resultobj = 0;
17784 wxSlider *arg1 = (wxSlider *) 0 ;
17785 int result;
17786 void *argp1 = 0 ;
17787 int res1 = 0 ;
17788 PyObject *swig_obj[1] ;
17789
17790 if (!args) SWIG_fail;
17791 swig_obj[0] = args;
17792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17793 if (!SWIG_IsOK(res1)) {
17794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17795 }
17796 arg1 = reinterpret_cast< wxSlider * >(argp1);
17797 {
17798 PyThreadState* __tstate = wxPyBeginAllowThreads();
17799 result = (int)((wxSlider const *)arg1)->GetLineSize();
17800 wxPyEndAllowThreads(__tstate);
17801 if (PyErr_Occurred()) SWIG_fail;
17802 }
17803 resultobj = SWIG_From_int(static_cast< int >(result));
17804 return resultobj;
17805fail:
17806 return NULL;
d55e5bfc
RD
17807}
17808
17809
1bd55598
RD
17810SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17811 PyObject *resultobj = 0;
17812 wxSlider *arg1 = (wxSlider *) 0 ;
17813 int result;
17814 void *argp1 = 0 ;
17815 int res1 = 0 ;
17816 PyObject *swig_obj[1] ;
17817
17818 if (!args) SWIG_fail;
17819 swig_obj[0] = args;
17820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17821 if (!SWIG_IsOK(res1)) {
17822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17823 }
17824 arg1 = reinterpret_cast< wxSlider * >(argp1);
17825 {
17826 PyThreadState* __tstate = wxPyBeginAllowThreads();
17827 result = (int)((wxSlider const *)arg1)->GetPageSize();
17828 wxPyEndAllowThreads(__tstate);
17829 if (PyErr_Occurred()) SWIG_fail;
17830 }
17831 resultobj = SWIG_From_int(static_cast< int >(result));
17832 return resultobj;
17833fail:
17834 return NULL;
17835}
17836
17837
17838SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17839 PyObject *resultobj = 0;
17840 wxSlider *arg1 = (wxSlider *) 0 ;
17841 int arg2 ;
17842 void *argp1 = 0 ;
17843 int res1 = 0 ;
17844 int val2 ;
17845 int ecode2 = 0 ;
17846 PyObject * obj0 = 0 ;
17847 PyObject * obj1 = 0 ;
17848 char * kwnames[] = {
17849 (char *) "self",(char *) "lenPixels", NULL
17850 };
17851
17852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
17853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17854 if (!SWIG_IsOK(res1)) {
17855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
17856 }
17857 arg1 = reinterpret_cast< wxSlider * >(argp1);
17858 ecode2 = SWIG_AsVal_int(obj1, &val2);
17859 if (!SWIG_IsOK(ecode2)) {
17860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
17861 }
17862 arg2 = static_cast< int >(val2);
17863 {
17864 PyThreadState* __tstate = wxPyBeginAllowThreads();
17865 (arg1)->SetThumbLength(arg2);
17866 wxPyEndAllowThreads(__tstate);
17867 if (PyErr_Occurred()) SWIG_fail;
17868 }
17869 resultobj = SWIG_Py_Void();
17870 return resultobj;
17871fail:
17872 return NULL;
d55e5bfc
RD
17873}
17874
17875
1bd55598
RD
17876SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17877 PyObject *resultobj = 0;
17878 wxSlider *arg1 = (wxSlider *) 0 ;
17879 int result;
17880 void *argp1 = 0 ;
17881 int res1 = 0 ;
17882 PyObject *swig_obj[1] ;
17883
17884 if (!args) SWIG_fail;
17885 swig_obj[0] = args;
17886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17887 if (!SWIG_IsOK(res1)) {
17888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
17889 }
17890 arg1 = reinterpret_cast< wxSlider * >(argp1);
17891 {
17892 PyThreadState* __tstate = wxPyBeginAllowThreads();
17893 result = (int)((wxSlider const *)arg1)->GetThumbLength();
17894 wxPyEndAllowThreads(__tstate);
17895 if (PyErr_Occurred()) SWIG_fail;
17896 }
17897 resultobj = SWIG_From_int(static_cast< int >(result));
17898 return resultobj;
17899fail:
17900 return NULL;
17901}
17902
17903
17904SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17905 PyObject *resultobj = 0;
17906 wxSlider *arg1 = (wxSlider *) 0 ;
17907 int arg2 ;
17908 int arg3 = (int) 1 ;
17909 void *argp1 = 0 ;
17910 int res1 = 0 ;
17911 int val2 ;
17912 int ecode2 = 0 ;
17913 int val3 ;
17914 int ecode3 = 0 ;
17915 PyObject * obj0 = 0 ;
17916 PyObject * obj1 = 0 ;
17917 PyObject * obj2 = 0 ;
17918 char * kwnames[] = {
17919 (char *) "self",(char *) "n",(char *) "pos", NULL
17920 };
17921
17922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17924 if (!SWIG_IsOK(res1)) {
17925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
17926 }
17927 arg1 = reinterpret_cast< wxSlider * >(argp1);
17928 ecode2 = SWIG_AsVal_int(obj1, &val2);
17929 if (!SWIG_IsOK(ecode2)) {
17930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
17931 }
17932 arg2 = static_cast< int >(val2);
17933 if (obj2) {
17934 ecode3 = SWIG_AsVal_int(obj2, &val3);
17935 if (!SWIG_IsOK(ecode3)) {
17936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
17937 }
17938 arg3 = static_cast< int >(val3);
17939 }
17940 {
17941 PyThreadState* __tstate = wxPyBeginAllowThreads();
17942 (arg1)->SetTickFreq(arg2,arg3);
17943 wxPyEndAllowThreads(__tstate);
17944 if (PyErr_Occurred()) SWIG_fail;
17945 }
17946 resultobj = SWIG_Py_Void();
17947 return resultobj;
17948fail:
17949 return NULL;
d55e5bfc
RD
17950}
17951
17952
1bd55598
RD
17953SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17954 PyObject *resultobj = 0;
17955 wxSlider *arg1 = (wxSlider *) 0 ;
17956 int result;
17957 void *argp1 = 0 ;
17958 int res1 = 0 ;
17959 PyObject *swig_obj[1] ;
17960
17961 if (!args) SWIG_fail;
17962 swig_obj[0] = args;
17963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17964 if (!SWIG_IsOK(res1)) {
17965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
17966 }
17967 arg1 = reinterpret_cast< wxSlider * >(argp1);
17968 {
17969 PyThreadState* __tstate = wxPyBeginAllowThreads();
17970 result = (int)((wxSlider const *)arg1)->GetTickFreq();
17971 wxPyEndAllowThreads(__tstate);
17972 if (PyErr_Occurred()) SWIG_fail;
17973 }
17974 resultobj = SWIG_From_int(static_cast< int >(result));
17975 return resultobj;
17976fail:
17977 return NULL;
d55e5bfc
RD
17978}
17979
17980
1bd55598
RD
17981SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17982 PyObject *resultobj = 0;
17983 wxSlider *arg1 = (wxSlider *) 0 ;
17984 void *argp1 = 0 ;
17985 int res1 = 0 ;
17986 PyObject *swig_obj[1] ;
17987
17988 if (!args) SWIG_fail;
17989 swig_obj[0] = args;
17990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17991 if (!SWIG_IsOK(res1)) {
17992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
17993 }
17994 arg1 = reinterpret_cast< wxSlider * >(argp1);
17995 {
17996 PyThreadState* __tstate = wxPyBeginAllowThreads();
17997 (arg1)->ClearTicks();
17998 wxPyEndAllowThreads(__tstate);
17999 if (PyErr_Occurred()) SWIG_fail;
18000 }
18001 resultobj = SWIG_Py_Void();
18002 return resultobj;
18003fail:
18004 return NULL;
18005}
18006
18007
18008SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18009 PyObject *resultobj = 0;
18010 wxSlider *arg1 = (wxSlider *) 0 ;
18011 int arg2 ;
18012 void *argp1 = 0 ;
18013 int res1 = 0 ;
18014 int val2 ;
18015 int ecode2 = 0 ;
18016 PyObject * obj0 = 0 ;
18017 PyObject * obj1 = 0 ;
18018 char * kwnames[] = {
18019 (char *) "self",(char *) "tickPos", NULL
18020 };
18021
18022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18024 if (!SWIG_IsOK(res1)) {
18025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18026 }
18027 arg1 = reinterpret_cast< wxSlider * >(argp1);
18028 ecode2 = SWIG_AsVal_int(obj1, &val2);
18029 if (!SWIG_IsOK(ecode2)) {
18030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18031 }
18032 arg2 = static_cast< int >(val2);
18033 {
18034 PyThreadState* __tstate = wxPyBeginAllowThreads();
18035 (arg1)->SetTick(arg2);
18036 wxPyEndAllowThreads(__tstate);
18037 if (PyErr_Occurred()) SWIG_fail;
18038 }
18039 resultobj = SWIG_Py_Void();
18040 return resultobj;
18041fail:
18042 return NULL;
d55e5bfc
RD
18043}
18044
18045
1bd55598
RD
18046SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18047 PyObject *resultobj = 0;
18048 wxSlider *arg1 = (wxSlider *) 0 ;
18049 void *argp1 = 0 ;
18050 int res1 = 0 ;
18051 PyObject *swig_obj[1] ;
18052
18053 if (!args) SWIG_fail;
18054 swig_obj[0] = args;
18055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18056 if (!SWIG_IsOK(res1)) {
18057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18058 }
18059 arg1 = reinterpret_cast< wxSlider * >(argp1);
18060 {
18061 PyThreadState* __tstate = wxPyBeginAllowThreads();
18062 (arg1)->ClearSel();
18063 wxPyEndAllowThreads(__tstate);
18064 if (PyErr_Occurred()) SWIG_fail;
18065 }
18066 resultobj = SWIG_Py_Void();
18067 return resultobj;
18068fail:
18069 return NULL;
d55e5bfc
RD
18070}
18071
18072
1bd55598
RD
18073SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18074 PyObject *resultobj = 0;
18075 wxSlider *arg1 = (wxSlider *) 0 ;
18076 int result;
18077 void *argp1 = 0 ;
18078 int res1 = 0 ;
18079 PyObject *swig_obj[1] ;
18080
18081 if (!args) SWIG_fail;
18082 swig_obj[0] = args;
18083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18084 if (!SWIG_IsOK(res1)) {
18085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18086 }
18087 arg1 = reinterpret_cast< wxSlider * >(argp1);
18088 {
18089 PyThreadState* __tstate = wxPyBeginAllowThreads();
18090 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18091 wxPyEndAllowThreads(__tstate);
18092 if (PyErr_Occurred()) SWIG_fail;
18093 }
18094 resultobj = SWIG_From_int(static_cast< int >(result));
18095 return resultobj;
18096fail:
18097 return NULL;
d55e5bfc
RD
18098}
18099
18100
1bd55598
RD
18101SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18102 PyObject *resultobj = 0;
18103 wxSlider *arg1 = (wxSlider *) 0 ;
18104 int result;
18105 void *argp1 = 0 ;
18106 int res1 = 0 ;
18107 PyObject *swig_obj[1] ;
18108
18109 if (!args) SWIG_fail;
18110 swig_obj[0] = args;
18111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18112 if (!SWIG_IsOK(res1)) {
18113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18114 }
18115 arg1 = reinterpret_cast< wxSlider * >(argp1);
18116 {
18117 PyThreadState* __tstate = wxPyBeginAllowThreads();
18118 result = (int)((wxSlider const *)arg1)->GetSelStart();
18119 wxPyEndAllowThreads(__tstate);
18120 if (PyErr_Occurred()) SWIG_fail;
18121 }
18122 resultobj = SWIG_From_int(static_cast< int >(result));
18123 return resultobj;
18124fail:
18125 return NULL;
18126}
18127
18128
18129SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18130 PyObject *resultobj = 0;
18131 wxSlider *arg1 = (wxSlider *) 0 ;
18132 int arg2 ;
18133 int arg3 ;
18134 void *argp1 = 0 ;
18135 int res1 = 0 ;
18136 int val2 ;
18137 int ecode2 = 0 ;
18138 int val3 ;
18139 int ecode3 = 0 ;
18140 PyObject * obj0 = 0 ;
18141 PyObject * obj1 = 0 ;
18142 PyObject * obj2 = 0 ;
18143 char * kwnames[] = {
18144 (char *) "self",(char *) "min",(char *) "max", NULL
18145 };
18146
18147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18149 if (!SWIG_IsOK(res1)) {
18150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18151 }
18152 arg1 = reinterpret_cast< wxSlider * >(argp1);
18153 ecode2 = SWIG_AsVal_int(obj1, &val2);
18154 if (!SWIG_IsOK(ecode2)) {
18155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18156 }
18157 arg2 = static_cast< int >(val2);
18158 ecode3 = SWIG_AsVal_int(obj2, &val3);
18159 if (!SWIG_IsOK(ecode3)) {
18160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18161 }
18162 arg3 = static_cast< int >(val3);
18163 {
18164 PyThreadState* __tstate = wxPyBeginAllowThreads();
18165 (arg1)->SetSelection(arg2,arg3);
18166 wxPyEndAllowThreads(__tstate);
18167 if (PyErr_Occurred()) SWIG_fail;
18168 }
18169 resultobj = SWIG_Py_Void();
18170 return resultobj;
18171fail:
18172 return NULL;
18173}
18174
18175
18176SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18177 PyObject *resultobj = 0;
18178 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18179 SwigValueWrapper<wxVisualAttributes > result;
18180 int val1 ;
18181 int ecode1 = 0 ;
18182 PyObject * obj0 = 0 ;
18183 char * kwnames[] = {
18184 (char *) "variant", NULL
18185 };
18186
18187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18188 if (obj0) {
18189 ecode1 = SWIG_AsVal_int(obj0, &val1);
18190 if (!SWIG_IsOK(ecode1)) {
18191 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18192 }
18193 arg1 = static_cast< wxWindowVariant >(val1);
18194 }
18195 {
18196 if (!wxPyCheckForApp()) SWIG_fail;
18197 PyThreadState* __tstate = wxPyBeginAllowThreads();
18198 result = wxSlider::GetClassDefaultAttributes(arg1);
18199 wxPyEndAllowThreads(__tstate);
18200 if (PyErr_Occurred()) SWIG_fail;
18201 }
18202 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18203 return resultobj;
18204fail:
18205 return NULL;
d55e5bfc
RD
18206}
18207
18208
1bd55598
RD
18209SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18210 PyObject *obj;
18211 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18212 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18213 return SWIG_Py_Void();
d55e5bfc
RD
18214}
18215
1bd55598
RD
18216SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18217 return SWIG_Python_InitShadowInstance(args);
18218}
d55e5bfc 18219
1bd55598
RD
18220SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18221 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18222 return 1;
d55e5bfc
RD
18223}
18224
18225
1bd55598
RD
18226SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18227 PyObject *pyobj = 0;
18228
18229 {
18230#if wxUSE_UNICODE
18231 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18232#else
18233 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18234#endif
18235 }
18236 return pyobj;
18237}
18238
18239
18240SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18241 PyObject *resultobj = 0;
18242 wxWindow *arg1 = (wxWindow *) 0 ;
18243 int arg2 = (int) -1 ;
18244 wxString const &arg3_defvalue = wxPyEmptyString ;
18245 wxString *arg3 = (wxString *) &arg3_defvalue ;
18246 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18247 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18248 wxSize const &arg5_defvalue = wxDefaultSize ;
18249 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18250 long arg6 = (long) 0 ;
18251 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18252 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18253 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18254 wxString *arg8 = (wxString *) &arg8_defvalue ;
18255 wxToggleButton *result = 0 ;
18256 void *argp1 = 0 ;
18257 int res1 = 0 ;
18258 int val2 ;
18259 int ecode2 = 0 ;
18260 bool temp3 = false ;
18261 wxPoint temp4 ;
18262 wxSize temp5 ;
18263 long val6 ;
18264 int ecode6 = 0 ;
18265 void *argp7 = 0 ;
18266 int res7 = 0 ;
18267 bool temp8 = false ;
18268 PyObject * obj0 = 0 ;
18269 PyObject * obj1 = 0 ;
18270 PyObject * obj2 = 0 ;
18271 PyObject * obj3 = 0 ;
18272 PyObject * obj4 = 0 ;
18273 PyObject * obj5 = 0 ;
18274 PyObject * obj6 = 0 ;
18275 PyObject * obj7 = 0 ;
18276 char * kwnames[] = {
18277 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18278 };
18279
18280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18282 if (!SWIG_IsOK(res1)) {
18283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18284 }
18285 arg1 = reinterpret_cast< wxWindow * >(argp1);
18286 if (obj1) {
18287 ecode2 = SWIG_AsVal_int(obj1, &val2);
18288 if (!SWIG_IsOK(ecode2)) {
18289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18290 }
18291 arg2 = static_cast< int >(val2);
18292 }
18293 if (obj2) {
d55e5bfc 18294 {
1bd55598
RD
18295 arg3 = wxString_in_helper(obj2);
18296 if (arg3 == NULL) SWIG_fail;
18297 temp3 = true;
d55e5bfc 18298 }
1bd55598
RD
18299 }
18300 if (obj3) {
36ed4f51 18301 {
1bd55598
RD
18302 arg4 = &temp4;
18303 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 18304 }
1bd55598
RD
18305 }
18306 if (obj4) {
d55e5bfc 18307 {
1bd55598
RD
18308 arg5 = &temp5;
18309 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 18310 }
1bd55598
RD
18311 }
18312 if (obj5) {
18313 ecode6 = SWIG_AsVal_long(obj5, &val6);
18314 if (!SWIG_IsOK(ecode6)) {
18315 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18316 }
18317 arg6 = static_cast< long >(val6);
18318 }
18319 if (obj6) {
18320 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18321 if (!SWIG_IsOK(res7)) {
18322 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18323 }
1bd55598
RD
18324 if (!argp7) {
18325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 18326 }
1bd55598
RD
18327 arg7 = reinterpret_cast< wxValidator * >(argp7);
18328 }
18329 if (obj7) {
d55e5bfc 18330 {
1bd55598
RD
18331 arg8 = wxString_in_helper(obj7);
18332 if (arg8 == NULL) SWIG_fail;
18333 temp8 = true;
d55e5bfc 18334 }
1bd55598
RD
18335 }
18336 {
18337 if (!wxPyCheckForApp()) SWIG_fail;
18338 PyThreadState* __tstate = wxPyBeginAllowThreads();
18339 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18340 wxPyEndAllowThreads(__tstate);
18341 if (PyErr_Occurred()) SWIG_fail;
18342 }
18343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18344 {
18345 if (temp3)
18346 delete arg3;
18347 }
18348 {
18349 if (temp8)
18350 delete arg8;
18351 }
18352 return resultobj;
18353fail:
18354 {
18355 if (temp3)
18356 delete arg3;
18357 }
18358 {
18359 if (temp8)
18360 delete arg8;
18361 }
18362 return NULL;
d55e5bfc
RD
18363}
18364
18365
1bd55598
RD
18366SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18367 PyObject *resultobj = 0;
18368 wxToggleButton *result = 0 ;
18369
18370 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18371 {
18372 if (!wxPyCheckForApp()) SWIG_fail;
18373 PyThreadState* __tstate = wxPyBeginAllowThreads();
18374 result = (wxToggleButton *)new wxToggleButton();
18375 wxPyEndAllowThreads(__tstate);
18376 if (PyErr_Occurred()) SWIG_fail;
18377 }
18378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18379 return resultobj;
18380fail:
18381 return NULL;
18382}
18383
18384
18385SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18386 PyObject *resultobj = 0;
18387 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18388 wxWindow *arg2 = (wxWindow *) 0 ;
18389 int arg3 = (int) -1 ;
18390 wxString const &arg4_defvalue = wxPyEmptyString ;
18391 wxString *arg4 = (wxString *) &arg4_defvalue ;
18392 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18393 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18394 wxSize const &arg6_defvalue = wxDefaultSize ;
18395 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18396 long arg7 = (long) 0 ;
18397 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18398 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18399 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18400 wxString *arg9 = (wxString *) &arg9_defvalue ;
18401 bool result;
18402 void *argp1 = 0 ;
18403 int res1 = 0 ;
18404 void *argp2 = 0 ;
18405 int res2 = 0 ;
18406 int val3 ;
18407 int ecode3 = 0 ;
18408 bool temp4 = false ;
18409 wxPoint temp5 ;
18410 wxSize temp6 ;
18411 long val7 ;
18412 int ecode7 = 0 ;
18413 void *argp8 = 0 ;
18414 int res8 = 0 ;
18415 bool temp9 = false ;
18416 PyObject * obj0 = 0 ;
18417 PyObject * obj1 = 0 ;
18418 PyObject * obj2 = 0 ;
18419 PyObject * obj3 = 0 ;
18420 PyObject * obj4 = 0 ;
18421 PyObject * obj5 = 0 ;
18422 PyObject * obj6 = 0 ;
18423 PyObject * obj7 = 0 ;
18424 PyObject * obj8 = 0 ;
18425 char * kwnames[] = {
18426 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18427 };
18428
18429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18431 if (!SWIG_IsOK(res1)) {
18432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18433 }
18434 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18435 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18436 if (!SWIG_IsOK(res2)) {
18437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18438 }
18439 arg2 = reinterpret_cast< wxWindow * >(argp2);
18440 if (obj2) {
18441 ecode3 = SWIG_AsVal_int(obj2, &val3);
18442 if (!SWIG_IsOK(ecode3)) {
18443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18444 }
18445 arg3 = static_cast< int >(val3);
18446 }
18447 if (obj3) {
36ed4f51 18448 {
1bd55598
RD
18449 arg4 = wxString_in_helper(obj3);
18450 if (arg4 == NULL) SWIG_fail;
18451 temp4 = true;
36ed4f51 18452 }
1bd55598
RD
18453 }
18454 if (obj4) {
36ed4f51 18455 {
1bd55598
RD
18456 arg5 = &temp5;
18457 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 18458 }
1bd55598
RD
18459 }
18460 if (obj5) {
36ed4f51 18461 {
1bd55598
RD
18462 arg6 = &temp6;
18463 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 18464 }
1bd55598
RD
18465 }
18466 if (obj6) {
18467 ecode7 = SWIG_AsVal_long(obj6, &val7);
18468 if (!SWIG_IsOK(ecode7)) {
18469 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18470 }
18471 arg7 = static_cast< long >(val7);
18472 }
18473 if (obj7) {
18474 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18475 if (!SWIG_IsOK(res8)) {
18476 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 18477 }
1bd55598
RD
18478 if (!argp8) {
18479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 18480 }
1bd55598
RD
18481 arg8 = reinterpret_cast< wxValidator * >(argp8);
18482 }
18483 if (obj8) {
d55e5bfc 18484 {
1bd55598
RD
18485 arg9 = wxString_in_helper(obj8);
18486 if (arg9 == NULL) SWIG_fail;
18487 temp9 = true;
d55e5bfc 18488 }
1bd55598
RD
18489 }
18490 {
18491 PyThreadState* __tstate = wxPyBeginAllowThreads();
18492 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18493 wxPyEndAllowThreads(__tstate);
18494 if (PyErr_Occurred()) SWIG_fail;
18495 }
18496 {
18497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18498 }
18499 {
18500 if (temp4)
18501 delete arg4;
18502 }
18503 {
18504 if (temp9)
18505 delete arg9;
18506 }
18507 return resultobj;
18508fail:
18509 {
18510 if (temp4)
18511 delete arg4;
18512 }
18513 {
18514 if (temp9)
18515 delete arg9;
18516 }
18517 return NULL;
18518}
18519
18520
18521SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18522 PyObject *resultobj = 0;
18523 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18524 bool arg2 ;
18525 void *argp1 = 0 ;
18526 int res1 = 0 ;
18527 bool val2 ;
18528 int ecode2 = 0 ;
18529 PyObject * obj0 = 0 ;
18530 PyObject * obj1 = 0 ;
18531 char * kwnames[] = {
18532 (char *) "self",(char *) "value", NULL
18533 };
18534
18535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18537 if (!SWIG_IsOK(res1)) {
18538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18539 }
18540 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18541 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18542 if (!SWIG_IsOK(ecode2)) {
18543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18544 }
18545 arg2 = static_cast< bool >(val2);
18546 {
18547 PyThreadState* __tstate = wxPyBeginAllowThreads();
18548 (arg1)->SetValue(arg2);
18549 wxPyEndAllowThreads(__tstate);
18550 if (PyErr_Occurred()) SWIG_fail;
18551 }
18552 resultobj = SWIG_Py_Void();
18553 return resultobj;
18554fail:
18555 return NULL;
d55e5bfc
RD
18556}
18557
18558
1bd55598
RD
18559SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18560 PyObject *resultobj = 0;
18561 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18562 bool result;
18563 void *argp1 = 0 ;
18564 int res1 = 0 ;
18565 PyObject *swig_obj[1] ;
18566
18567 if (!args) SWIG_fail;
18568 swig_obj[0] = args;
18569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18570 if (!SWIG_IsOK(res1)) {
18571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18572 }
18573 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18574 {
18575 PyThreadState* __tstate = wxPyBeginAllowThreads();
18576 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18577 wxPyEndAllowThreads(__tstate);
18578 if (PyErr_Occurred()) SWIG_fail;
18579 }
18580 {
18581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18582 }
18583 return resultobj;
18584fail:
18585 return NULL;
f20a2e1f
RD
18586}
18587
18588
1bd55598
RD
18589SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18590 PyObject *resultobj = 0;
18591 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18592 SwigValueWrapper<wxVisualAttributes > result;
18593 int val1 ;
18594 int ecode1 = 0 ;
18595 PyObject * obj0 = 0 ;
18596 char * kwnames[] = {
18597 (char *) "variant", NULL
18598 };
18599
18600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18601 if (obj0) {
18602 ecode1 = SWIG_AsVal_int(obj0, &val1);
18603 if (!SWIG_IsOK(ecode1)) {
18604 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18605 }
18606 arg1 = static_cast< wxWindowVariant >(val1);
18607 }
18608 {
18609 if (!wxPyCheckForApp()) SWIG_fail;
18610 PyThreadState* __tstate = wxPyBeginAllowThreads();
18611 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18612 wxPyEndAllowThreads(__tstate);
18613 if (PyErr_Occurred()) SWIG_fail;
18614 }
18615 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18616 return resultobj;
18617fail:
18618 return NULL;
d55e5bfc
RD
18619}
18620
18621
1bd55598
RD
18622SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18623 PyObject *obj;
18624 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18625 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18626 return SWIG_Py_Void();
d55e5bfc
RD
18627}
18628
1bd55598
RD
18629SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18630 return SWIG_Python_InitShadowInstance(args);
18631}
d55e5bfc 18632
1bd55598
RD
18633SWIGINTERN int NotebookNameStr_set(PyObject *) {
18634 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18635 return 1;
d55e5bfc
RD
18636}
18637
18638
1bd55598
RD
18639SWIGINTERN PyObject *NotebookNameStr_get(void) {
18640 PyObject *pyobj = 0;
18641
18642 {
d55e5bfc 18643#if wxUSE_UNICODE
1bd55598 18644 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 18645#else
1bd55598 18646 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 18647#endif
1bd55598
RD
18648 }
18649 return pyobj;
d55e5bfc
RD
18650}
18651
18652
1bd55598
RD
18653SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18654 PyObject *resultobj = 0;
18655 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18656 size_t result;
18657 void *argp1 = 0 ;
18658 int res1 = 0 ;
18659 PyObject *swig_obj[1] ;
18660
18661 if (!args) SWIG_fail;
18662 swig_obj[0] = args;
18663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18664 if (!SWIG_IsOK(res1)) {
18665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18666 }
18667 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18668 {
18669 PyThreadState* __tstate = wxPyBeginAllowThreads();
18670 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18671 wxPyEndAllowThreads(__tstate);
18672 if (PyErr_Occurred()) SWIG_fail;
18673 }
18674 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18675 return resultobj;
18676fail:
18677 return NULL;
18678}
18679
18680
18681SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18682 PyObject *resultobj = 0;
18683 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18684 size_t arg2 ;
18685 wxWindow *result = 0 ;
18686 void *argp1 = 0 ;
18687 int res1 = 0 ;
18688 size_t val2 ;
18689 int ecode2 = 0 ;
18690 PyObject * obj0 = 0 ;
18691 PyObject * obj1 = 0 ;
18692 char * kwnames[] = {
18693 (char *) "self",(char *) "n", NULL
18694 };
18695
18696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18698 if (!SWIG_IsOK(res1)) {
18699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18700 }
18701 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18702 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18703 if (!SWIG_IsOK(ecode2)) {
18704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
18705 }
18706 arg2 = static_cast< size_t >(val2);
18707 {
18708 PyThreadState* __tstate = wxPyBeginAllowThreads();
18709 result = (wxWindow *)(arg1)->GetPage(arg2);
18710 wxPyEndAllowThreads(__tstate);
18711 if (PyErr_Occurred()) SWIG_fail;
18712 }
18713 {
18714 resultobj = wxPyMake_wxObject(result, 0);
18715 }
18716 return resultobj;
18717fail:
18718 return NULL;
d55e5bfc
RD
18719}
18720
18721
1bd55598
RD
18722SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18723 PyObject *resultobj = 0;
18724 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18725 wxWindow *result = 0 ;
18726 void *argp1 = 0 ;
18727 int res1 = 0 ;
18728 PyObject *swig_obj[1] ;
18729
18730 if (!args) SWIG_fail;
18731 swig_obj[0] = args;
18732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18733 if (!SWIG_IsOK(res1)) {
18734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18735 }
18736 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18737 {
18738 PyThreadState* __tstate = wxPyBeginAllowThreads();
18739 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
18740 wxPyEndAllowThreads(__tstate);
18741 if (PyErr_Occurred()) SWIG_fail;
18742 }
18743 {
18744 resultobj = wxPyMake_wxObject(result, 0);
18745 }
18746 return resultobj;
18747fail:
18748 return NULL;
d55e5bfc
RD
18749}
18750
18751
1bd55598
RD
18752SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18753 PyObject *resultobj = 0;
18754 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18755 int result;
18756 void *argp1 = 0 ;
18757 int res1 = 0 ;
18758 PyObject *swig_obj[1] ;
18759
18760 if (!args) SWIG_fail;
18761 swig_obj[0] = args;
18762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18763 if (!SWIG_IsOK(res1)) {
18764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18765 }
18766 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18767 {
18768 PyThreadState* __tstate = wxPyBeginAllowThreads();
18769 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
18770 wxPyEndAllowThreads(__tstate);
18771 if (PyErr_Occurred()) SWIG_fail;
18772 }
18773 resultobj = SWIG_From_int(static_cast< int >(result));
18774 return resultobj;
18775fail:
18776 return NULL;
18777}
18778
18779
18780SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18781 PyObject *resultobj = 0;
18782 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18783 size_t arg2 ;
18784 wxString *arg3 = 0 ;
18785 bool result;
18786 void *argp1 = 0 ;
18787 int res1 = 0 ;
18788 size_t val2 ;
18789 int ecode2 = 0 ;
18790 bool temp3 = false ;
18791 PyObject * obj0 = 0 ;
18792 PyObject * obj1 = 0 ;
18793 PyObject * obj2 = 0 ;
18794 char * kwnames[] = {
18795 (char *) "self",(char *) "n",(char *) "strText", NULL
18796 };
18797
18798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18800 if (!SWIG_IsOK(res1)) {
18801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18802 }
18803 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18804 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18805 if (!SWIG_IsOK(ecode2)) {
18806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
18807 }
18808 arg2 = static_cast< size_t >(val2);
18809 {
18810 arg3 = wxString_in_helper(obj2);
18811 if (arg3 == NULL) SWIG_fail;
18812 temp3 = true;
18813 }
18814 {
18815 PyThreadState* __tstate = wxPyBeginAllowThreads();
18816 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
18817 wxPyEndAllowThreads(__tstate);
18818 if (PyErr_Occurred()) SWIG_fail;
18819 }
18820 {
18821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18822 }
18823 {
18824 if (temp3)
18825 delete arg3;
18826 }
18827 return resultobj;
18828fail:
18829 {
18830 if (temp3)
18831 delete arg3;
18832 }
18833 return NULL;
18834}
18835
18836
18837SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18838 PyObject *resultobj = 0;
18839 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18840 size_t arg2 ;
18841 wxString result;
18842 void *argp1 = 0 ;
18843 int res1 = 0 ;
18844 size_t val2 ;
18845 int ecode2 = 0 ;
18846 PyObject * obj0 = 0 ;
18847 PyObject * obj1 = 0 ;
18848 char * kwnames[] = {
18849 (char *) "self",(char *) "n", NULL
18850 };
18851
18852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
18853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18854 if (!SWIG_IsOK(res1)) {
18855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18856 }
18857 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18858 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18859 if (!SWIG_IsOK(ecode2)) {
18860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
18861 }
18862 arg2 = static_cast< size_t >(val2);
18863 {
18864 PyThreadState* __tstate = wxPyBeginAllowThreads();
18865 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
18866 wxPyEndAllowThreads(__tstate);
18867 if (PyErr_Occurred()) SWIG_fail;
18868 }
18869 {
18870#if wxUSE_UNICODE
18871 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18872#else
18873 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18874#endif
18875 }
18876 return resultobj;
18877fail:
18878 return NULL;
18879}
18880
18881
18882SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18883 PyObject *resultobj = 0;
18884 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18885 wxImageList *arg2 = (wxImageList *) 0 ;
18886 void *argp1 = 0 ;
18887 int res1 = 0 ;
18888 void *argp2 = 0 ;
18889 int res2 = 0 ;
18890 PyObject * obj0 = 0 ;
18891 PyObject * obj1 = 0 ;
18892 char * kwnames[] = {
18893 (char *) "self",(char *) "imageList", NULL
18894 };
18895
18896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
18897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18898 if (!SWIG_IsOK(res1)) {
18899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18900 }
18901 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18902 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
18903 if (!SWIG_IsOK(res2)) {
18904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
18905 }
18906 arg2 = reinterpret_cast< wxImageList * >(argp2);
18907 {
18908 PyThreadState* __tstate = wxPyBeginAllowThreads();
18909 (arg1)->SetImageList(arg2);
18910 wxPyEndAllowThreads(__tstate);
18911 if (PyErr_Occurred()) SWIG_fail;
18912 }
18913 resultobj = SWIG_Py_Void();
18914 return resultobj;
18915fail:
18916 return NULL;
18917}
18918
18919
18920SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18921 PyObject *resultobj = 0;
18922 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18923 wxImageList *arg2 = (wxImageList *) 0 ;
18924 void *argp1 = 0 ;
18925 int res1 = 0 ;
18926 int res2 = 0 ;
18927 PyObject * obj0 = 0 ;
18928 PyObject * obj1 = 0 ;
18929 char * kwnames[] = {
18930 (char *) "self",(char *) "imageList", NULL
18931 };
18932
18933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
18934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18935 if (!SWIG_IsOK(res1)) {
18936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18937 }
18938 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18939 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
18940 if (!SWIG_IsOK(res2)) {
18941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
18942 }
18943 {
18944 PyThreadState* __tstate = wxPyBeginAllowThreads();
18945 (arg1)->AssignImageList(arg2);
18946 wxPyEndAllowThreads(__tstate);
18947 if (PyErr_Occurred()) SWIG_fail;
18948 }
18949 resultobj = SWIG_Py_Void();
18950 return resultobj;
18951fail:
18952 return NULL;
d55e5bfc
RD
18953}
18954
18955
1bd55598
RD
18956SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18957 PyObject *resultobj = 0;
18958 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18959 wxImageList *result = 0 ;
18960 void *argp1 = 0 ;
18961 int res1 = 0 ;
18962 PyObject *swig_obj[1] ;
18963
18964 if (!args) SWIG_fail;
18965 swig_obj[0] = args;
18966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18967 if (!SWIG_IsOK(res1)) {
18968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18969 }
18970 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18971 {
18972 PyThreadState* __tstate = wxPyBeginAllowThreads();
18973 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
18974 wxPyEndAllowThreads(__tstate);
18975 if (PyErr_Occurred()) SWIG_fail;
18976 }
18977 {
18978 resultobj = wxPyMake_wxObject(result, (bool)0);
18979 }
18980 return resultobj;
18981fail:
18982 return NULL;
18983}
18984
18985
18986SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18987 PyObject *resultobj = 0;
18988 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18989 size_t arg2 ;
18990 int result;
18991 void *argp1 = 0 ;
18992 int res1 = 0 ;
18993 size_t val2 ;
18994 int ecode2 = 0 ;
18995 PyObject * obj0 = 0 ;
18996 PyObject * obj1 = 0 ;
18997 char * kwnames[] = {
18998 (char *) "self",(char *) "n", NULL
18999 };
19000
19001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19003 if (!SWIG_IsOK(res1)) {
19004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19005 }
19006 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19007 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19008 if (!SWIG_IsOK(ecode2)) {
19009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19010 }
19011 arg2 = static_cast< size_t >(val2);
19012 {
19013 PyThreadState* __tstate = wxPyBeginAllowThreads();
19014 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19015 wxPyEndAllowThreads(__tstate);
19016 if (PyErr_Occurred()) SWIG_fail;
19017 }
19018 resultobj = SWIG_From_int(static_cast< int >(result));
19019 return resultobj;
19020fail:
19021 return NULL;
19022}
19023
19024
19025SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19026 PyObject *resultobj = 0;
19027 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19028 size_t arg2 ;
19029 int arg3 ;
19030 bool result;
19031 void *argp1 = 0 ;
19032 int res1 = 0 ;
19033 size_t val2 ;
19034 int ecode2 = 0 ;
19035 int val3 ;
19036 int ecode3 = 0 ;
19037 PyObject * obj0 = 0 ;
19038 PyObject * obj1 = 0 ;
19039 PyObject * obj2 = 0 ;
19040 char * kwnames[] = {
19041 (char *) "self",(char *) "n",(char *) "imageId", NULL
19042 };
19043
19044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19046 if (!SWIG_IsOK(res1)) {
19047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19048 }
19049 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19050 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19051 if (!SWIG_IsOK(ecode2)) {
19052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19053 }
19054 arg2 = static_cast< size_t >(val2);
19055 ecode3 = SWIG_AsVal_int(obj2, &val3);
19056 if (!SWIG_IsOK(ecode3)) {
19057 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19058 }
19059 arg3 = static_cast< int >(val3);
19060 {
19061 PyThreadState* __tstate = wxPyBeginAllowThreads();
19062 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19063 wxPyEndAllowThreads(__tstate);
19064 if (PyErr_Occurred()) SWIG_fail;
19065 }
19066 {
19067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19068 }
19069 return resultobj;
19070fail:
19071 return NULL;
19072}
19073
19074
19075SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19076 PyObject *resultobj = 0;
19077 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19078 wxSize *arg2 = 0 ;
19079 void *argp1 = 0 ;
19080 int res1 = 0 ;
19081 wxSize temp2 ;
19082 PyObject * obj0 = 0 ;
19083 PyObject * obj1 = 0 ;
19084 char * kwnames[] = {
19085 (char *) "self",(char *) "size", NULL
19086 };
19087
19088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19090 if (!SWIG_IsOK(res1)) {
19091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19092 }
19093 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19094 {
19095 arg2 = &temp2;
19096 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19097 }
19098 {
19099 PyThreadState* __tstate = wxPyBeginAllowThreads();
19100 (arg1)->SetPageSize((wxSize const &)*arg2);
19101 wxPyEndAllowThreads(__tstate);
19102 if (PyErr_Occurred()) SWIG_fail;
19103 }
19104 resultobj = SWIG_Py_Void();
19105 return resultobj;
19106fail:
19107 return NULL;
19108}
19109
19110
19111SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19112 PyObject *resultobj = 0;
19113 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19114 wxSize *arg2 = 0 ;
19115 wxSize result;
19116 void *argp1 = 0 ;
19117 int res1 = 0 ;
19118 wxSize temp2 ;
19119 PyObject * obj0 = 0 ;
19120 PyObject * obj1 = 0 ;
19121 char * kwnames[] = {
19122 (char *) "self",(char *) "sizePage", NULL
19123 };
19124
19125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19127 if (!SWIG_IsOK(res1)) {
19128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19129 }
19130 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19131 {
19132 arg2 = &temp2;
19133 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19134 }
19135 {
19136 PyThreadState* __tstate = wxPyBeginAllowThreads();
19137 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19138 wxPyEndAllowThreads(__tstate);
19139 if (PyErr_Occurred()) SWIG_fail;
19140 }
19141 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19142 return resultobj;
19143fail:
19144 return NULL;
d55e5bfc
RD
19145}
19146
19147
1bd55598
RD
19148SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19149 PyObject *resultobj = 0;
19150 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19151 unsigned int result;
1bd55598
RD
19152 void *argp1 = 0 ;
19153 int res1 = 0 ;
19154 PyObject *swig_obj[1] ;
19155
19156 if (!args) SWIG_fail;
19157 swig_obj[0] = args;
19158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19159 if (!SWIG_IsOK(res1)) {
19160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19161 }
19162 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19163 {
19164 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19165 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
1bd55598
RD
19166 wxPyEndAllowThreads(__tstate);
19167 if (PyErr_Occurred()) SWIG_fail;
19168 }
e9d6f3a4 19169 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
19170 return resultobj;
19171fail:
19172 return NULL;
19173}
19174
19175
19176SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19177 PyObject *resultobj = 0;
19178 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19179 unsigned int arg2 ;
1bd55598
RD
19180 void *argp1 = 0 ;
19181 int res1 = 0 ;
e9d6f3a4 19182 unsigned int val2 ;
1bd55598
RD
19183 int ecode2 = 0 ;
19184 PyObject * obj0 = 0 ;
19185 PyObject * obj1 = 0 ;
19186 char * kwnames[] = {
19187 (char *) "self",(char *) "internalBorder", NULL
19188 };
19189
19190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19192 if (!SWIG_IsOK(res1)) {
19193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19194 }
19195 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19196 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 19197 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 19199 }
e9d6f3a4 19200 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
19201 {
19202 PyThreadState* __tstate = wxPyBeginAllowThreads();
19203 (arg1)->SetInternalBorder(arg2);
19204 wxPyEndAllowThreads(__tstate);
19205 if (PyErr_Occurred()) SWIG_fail;
19206 }
19207 resultobj = SWIG_Py_Void();
19208 return resultobj;
19209fail:
19210 return NULL;
d55e5bfc
RD
19211}
19212
19213
1bd55598
RD
19214SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19215 PyObject *resultobj = 0;
19216 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19217 bool result;
19218 void *argp1 = 0 ;
19219 int res1 = 0 ;
19220 PyObject *swig_obj[1] ;
19221
19222 if (!args) SWIG_fail;
19223 swig_obj[0] = args;
19224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19225 if (!SWIG_IsOK(res1)) {
19226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19227 }
19228 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19229 {
19230 PyThreadState* __tstate = wxPyBeginAllowThreads();
19231 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19232 wxPyEndAllowThreads(__tstate);
19233 if (PyErr_Occurred()) SWIG_fail;
19234 }
19235 {
19236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19237 }
19238 return resultobj;
19239fail:
19240 return NULL;
19241}
19242
19243
e9d6f3a4
RD
19244SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19245 PyObject *resultobj = 0;
19246 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19247 int arg2 ;
19248 void *argp1 = 0 ;
19249 int res1 = 0 ;
19250 int val2 ;
19251 int ecode2 = 0 ;
19252 PyObject * obj0 = 0 ;
19253 PyObject * obj1 = 0 ;
19254 char * kwnames[] = {
19255 (char *) "self",(char *) "margin", NULL
19256 };
19257
19258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19260 if (!SWIG_IsOK(res1)) {
19261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19262 }
19263 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19264 ecode2 = SWIG_AsVal_int(obj1, &val2);
19265 if (!SWIG_IsOK(ecode2)) {
19266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19267 }
19268 arg2 = static_cast< int >(val2);
19269 {
19270 PyThreadState* __tstate = wxPyBeginAllowThreads();
19271 (arg1)->SetControlMargin(arg2);
19272 wxPyEndAllowThreads(__tstate);
19273 if (PyErr_Occurred()) SWIG_fail;
19274 }
19275 resultobj = SWIG_Py_Void();
19276 return resultobj;
19277fail:
19278 return NULL;
19279}
19280
19281
19282SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19283 PyObject *resultobj = 0;
19284 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19285 int result;
19286 void *argp1 = 0 ;
19287 int res1 = 0 ;
19288 PyObject *swig_obj[1] ;
19289
19290 if (!args) SWIG_fail;
19291 swig_obj[0] = args;
19292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19293 if (!SWIG_IsOK(res1)) {
19294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19295 }
19296 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19297 {
19298 PyThreadState* __tstate = wxPyBeginAllowThreads();
19299 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19300 wxPyEndAllowThreads(__tstate);
19301 if (PyErr_Occurred()) SWIG_fail;
19302 }
19303 resultobj = SWIG_From_int(static_cast< int >(result));
19304 return resultobj;
19305fail:
19306 return NULL;
19307}
19308
19309
1bd55598
RD
19310SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19311 PyObject *resultobj = 0;
19312 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19313 bool arg2 ;
19314 void *argp1 = 0 ;
19315 int res1 = 0 ;
19316 bool val2 ;
19317 int ecode2 = 0 ;
19318 PyObject * obj0 = 0 ;
19319 PyObject * obj1 = 0 ;
19320 char * kwnames[] = {
19321 (char *) "self",(char *) "fit", NULL
19322 };
19323
19324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19326 if (!SWIG_IsOK(res1)) {
19327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19328 }
19329 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19330 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19331 if (!SWIG_IsOK(ecode2)) {
19332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19333 }
19334 arg2 = static_cast< bool >(val2);
19335 {
19336 PyThreadState* __tstate = wxPyBeginAllowThreads();
19337 (arg1)->SetFitToCurrentPage(arg2);
19338 wxPyEndAllowThreads(__tstate);
19339 if (PyErr_Occurred()) SWIG_fail;
19340 }
19341 resultobj = SWIG_Py_Void();
19342 return resultobj;
19343fail:
19344 return NULL;
d55e5bfc
RD
19345}
19346
19347
1bd55598
RD
19348SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19349 PyObject *resultobj = 0;
19350 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19351 bool result;
19352 void *argp1 = 0 ;
19353 int res1 = 0 ;
19354 PyObject *swig_obj[1] ;
19355
19356 if (!args) SWIG_fail;
19357 swig_obj[0] = args;
19358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19359 if (!SWIG_IsOK(res1)) {
19360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19361 }
19362 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19363 {
19364 PyThreadState* __tstate = wxPyBeginAllowThreads();
19365 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19366 wxPyEndAllowThreads(__tstate);
19367 if (PyErr_Occurred()) SWIG_fail;
19368 }
19369 {
19370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19371 }
19372 return resultobj;
19373fail:
19374 return NULL;
19375}
19376
19377
e9d6f3a4
RD
19378SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19379 PyObject *resultobj = 0;
19380 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19381 wxSizer *result = 0 ;
19382 void *argp1 = 0 ;
19383 int res1 = 0 ;
19384 PyObject *swig_obj[1] ;
19385
19386 if (!args) SWIG_fail;
19387 swig_obj[0] = args;
19388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19389 if (!SWIG_IsOK(res1)) {
19390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19391 }
19392 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19393 {
19394 PyThreadState* __tstate = wxPyBeginAllowThreads();
19395 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19396 wxPyEndAllowThreads(__tstate);
19397 if (PyErr_Occurred()) SWIG_fail;
19398 }
19399 {
19400 resultobj = wxPyMake_wxObject(result, (bool)0);
19401 }
19402 return resultobj;
19403fail:
19404 return NULL;
19405}
19406
19407
1bd55598
RD
19408SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19409 PyObject *resultobj = 0;
19410 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19411 size_t arg2 ;
19412 bool result;
19413 void *argp1 = 0 ;
19414 int res1 = 0 ;
19415 size_t val2 ;
19416 int ecode2 = 0 ;
19417 PyObject * obj0 = 0 ;
19418 PyObject * obj1 = 0 ;
19419 char * kwnames[] = {
19420 (char *) "self",(char *) "n", NULL
19421 };
19422
19423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19425 if (!SWIG_IsOK(res1)) {
19426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19427 }
19428 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19429 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19430 if (!SWIG_IsOK(ecode2)) {
19431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19432 }
19433 arg2 = static_cast< size_t >(val2);
19434 {
19435 PyThreadState* __tstate = wxPyBeginAllowThreads();
19436 result = (bool)(arg1)->DeletePage(arg2);
19437 wxPyEndAllowThreads(__tstate);
19438 if (PyErr_Occurred()) SWIG_fail;
19439 }
19440 {
19441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19442 }
19443 return resultobj;
19444fail:
19445 return NULL;
19446}
19447
19448
19449SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19450 PyObject *resultobj = 0;
19451 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19452 size_t arg2 ;
19453 bool result;
19454 void *argp1 = 0 ;
19455 int res1 = 0 ;
19456 size_t val2 ;
19457 int ecode2 = 0 ;
19458 PyObject * obj0 = 0 ;
19459 PyObject * obj1 = 0 ;
19460 char * kwnames[] = {
19461 (char *) "self",(char *) "n", NULL
19462 };
19463
19464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19466 if (!SWIG_IsOK(res1)) {
19467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19468 }
19469 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19470 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19471 if (!SWIG_IsOK(ecode2)) {
19472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19473 }
19474 arg2 = static_cast< size_t >(val2);
19475 {
19476 PyThreadState* __tstate = wxPyBeginAllowThreads();
19477 result = (bool)(arg1)->RemovePage(arg2);
19478 wxPyEndAllowThreads(__tstate);
19479 if (PyErr_Occurred()) SWIG_fail;
19480 }
19481 {
19482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19483 }
19484 return resultobj;
19485fail:
19486 return NULL;
f20a2e1f
RD
19487}
19488
19489
1bd55598
RD
19490SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19491 PyObject *resultobj = 0;
19492 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19493 bool result;
19494 void *argp1 = 0 ;
19495 int res1 = 0 ;
19496 PyObject *swig_obj[1] ;
19497
19498 if (!args) SWIG_fail;
19499 swig_obj[0] = args;
19500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19501 if (!SWIG_IsOK(res1)) {
19502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19503 }
19504 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19505 {
19506 PyThreadState* __tstate = wxPyBeginAllowThreads();
19507 result = (bool)(arg1)->DeleteAllPages();
19508 wxPyEndAllowThreads(__tstate);
19509 if (PyErr_Occurred()) SWIG_fail;
19510 }
19511 {
19512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19513 }
19514 return resultobj;
19515fail:
19516 return NULL;
19517}
19518
19519
19520SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19521 PyObject *resultobj = 0;
19522 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19523 wxWindow *arg2 = (wxWindow *) 0 ;
19524 wxString *arg3 = 0 ;
19525 bool arg4 = (bool) false ;
19526 int arg5 = (int) -1 ;
19527 bool result;
19528 void *argp1 = 0 ;
19529 int res1 = 0 ;
19530 void *argp2 = 0 ;
19531 int res2 = 0 ;
19532 bool temp3 = false ;
19533 bool val4 ;
19534 int ecode4 = 0 ;
19535 int val5 ;
19536 int ecode5 = 0 ;
19537 PyObject * obj0 = 0 ;
19538 PyObject * obj1 = 0 ;
19539 PyObject * obj2 = 0 ;
19540 PyObject * obj3 = 0 ;
19541 PyObject * obj4 = 0 ;
19542 char * kwnames[] = {
19543 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19544 };
19545
19546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19548 if (!SWIG_IsOK(res1)) {
19549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19550 }
19551 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19552 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19553 if (!SWIG_IsOK(res2)) {
19554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19555 }
19556 arg2 = reinterpret_cast< wxWindow * >(argp2);
19557 {
19558 arg3 = wxString_in_helper(obj2);
19559 if (arg3 == NULL) SWIG_fail;
19560 temp3 = true;
19561 }
19562 if (obj3) {
19563 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19564 if (!SWIG_IsOK(ecode4)) {
19565 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19566 }
19567 arg4 = static_cast< bool >(val4);
19568 }
19569 if (obj4) {
19570 ecode5 = SWIG_AsVal_int(obj4, &val5);
19571 if (!SWIG_IsOK(ecode5)) {
19572 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19573 }
19574 arg5 = static_cast< int >(val5);
19575 }
19576 {
19577 PyThreadState* __tstate = wxPyBeginAllowThreads();
19578 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19579 wxPyEndAllowThreads(__tstate);
19580 if (PyErr_Occurred()) SWIG_fail;
19581 }
19582 {
19583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19584 }
19585 {
19586 if (temp3)
19587 delete arg3;
19588 }
19589 return resultobj;
19590fail:
19591 {
19592 if (temp3)
19593 delete arg3;
19594 }
19595 return NULL;
19596}
19597
19598
19599SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19600 PyObject *resultobj = 0;
19601 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19602 size_t arg2 ;
19603 wxWindow *arg3 = (wxWindow *) 0 ;
19604 wxString *arg4 = 0 ;
19605 bool arg5 = (bool) false ;
19606 int arg6 = (int) -1 ;
19607 bool result;
19608 void *argp1 = 0 ;
19609 int res1 = 0 ;
19610 size_t val2 ;
19611 int ecode2 = 0 ;
19612 void *argp3 = 0 ;
19613 int res3 = 0 ;
19614 bool temp4 = false ;
19615 bool val5 ;
19616 int ecode5 = 0 ;
19617 int val6 ;
19618 int ecode6 = 0 ;
19619 PyObject * obj0 = 0 ;
19620 PyObject * obj1 = 0 ;
19621 PyObject * obj2 = 0 ;
19622 PyObject * obj3 = 0 ;
19623 PyObject * obj4 = 0 ;
19624 PyObject * obj5 = 0 ;
19625 char * kwnames[] = {
19626 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19627 };
19628
19629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19631 if (!SWIG_IsOK(res1)) {
19632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19633 }
19634 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19635 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19636 if (!SWIG_IsOK(ecode2)) {
19637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19638 }
19639 arg2 = static_cast< size_t >(val2);
19640 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19641 if (!SWIG_IsOK(res3)) {
19642 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19643 }
19644 arg3 = reinterpret_cast< wxWindow * >(argp3);
19645 {
19646 arg4 = wxString_in_helper(obj3);
19647 if (arg4 == NULL) SWIG_fail;
19648 temp4 = true;
19649 }
19650 if (obj4) {
19651 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19652 if (!SWIG_IsOK(ecode5)) {
19653 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19654 }
19655 arg5 = static_cast< bool >(val5);
19656 }
19657 if (obj5) {
19658 ecode6 = SWIG_AsVal_int(obj5, &val6);
19659 if (!SWIG_IsOK(ecode6)) {
19660 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19661 }
19662 arg6 = static_cast< int >(val6);
19663 }
19664 {
19665 PyThreadState* __tstate = wxPyBeginAllowThreads();
19666 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19667 wxPyEndAllowThreads(__tstate);
19668 if (PyErr_Occurred()) SWIG_fail;
19669 }
19670 {
19671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19672 }
19673 {
19674 if (temp4)
19675 delete arg4;
19676 }
19677 return resultobj;
19678fail:
19679 {
19680 if (temp4)
19681 delete arg4;
19682 }
19683 return NULL;
19684}
19685
19686
19687SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19688 PyObject *resultobj = 0;
19689 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19690 size_t arg2 ;
19691 int result;
19692 void *argp1 = 0 ;
19693 int res1 = 0 ;
19694 size_t val2 ;
19695 int ecode2 = 0 ;
19696 PyObject * obj0 = 0 ;
19697 PyObject * obj1 = 0 ;
19698 char * kwnames[] = {
19699 (char *) "self",(char *) "n", NULL
19700 };
19701
19702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19704 if (!SWIG_IsOK(res1)) {
19705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19706 }
19707 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19708 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19709 if (!SWIG_IsOK(ecode2)) {
19710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
19711 }
19712 arg2 = static_cast< size_t >(val2);
19713 {
19714 PyThreadState* __tstate = wxPyBeginAllowThreads();
19715 result = (int)(arg1)->SetSelection(arg2);
19716 wxPyEndAllowThreads(__tstate);
19717 if (PyErr_Occurred()) SWIG_fail;
19718 }
19719 resultobj = SWIG_From_int(static_cast< int >(result));
19720 return resultobj;
19721fail:
19722 return NULL;
19723}
19724
19725
19726SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19727 PyObject *resultobj = 0;
19728 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19729 bool arg2 = (bool) true ;
19730 void *argp1 = 0 ;
19731 int res1 = 0 ;
19732 bool val2 ;
19733 int ecode2 = 0 ;
19734 PyObject * obj0 = 0 ;
19735 PyObject * obj1 = 0 ;
19736 char * kwnames[] = {
19737 (char *) "self",(char *) "forward", NULL
19738 };
19739
19740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19742 if (!SWIG_IsOK(res1)) {
19743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19744 }
19745 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19746 if (obj1) {
19747 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19748 if (!SWIG_IsOK(ecode2)) {
19749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
19750 }
19751 arg2 = static_cast< bool >(val2);
19752 }
19753 {
19754 PyThreadState* __tstate = wxPyBeginAllowThreads();
19755 (arg1)->AdvanceSelection(arg2);
19756 wxPyEndAllowThreads(__tstate);
19757 if (PyErr_Occurred()) SWIG_fail;
19758 }
19759 resultobj = SWIG_Py_Void();
19760 return resultobj;
19761fail:
19762 return NULL;
19763}
19764
19765
19766SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19767 PyObject *resultobj = 0;
19768 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19769 SwigValueWrapper<wxVisualAttributes > result;
19770 int val1 ;
19771 int ecode1 = 0 ;
19772 PyObject * obj0 = 0 ;
19773 char * kwnames[] = {
19774 (char *) "variant", NULL
19775 };
19776
19777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19778 if (obj0) {
19779 ecode1 = SWIG_AsVal_int(obj0, &val1);
19780 if (!SWIG_IsOK(ecode1)) {
19781 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19782 }
19783 arg1 = static_cast< wxWindowVariant >(val1);
19784 }
19785 {
19786 if (!wxPyCheckForApp()) SWIG_fail;
19787 PyThreadState* __tstate = wxPyBeginAllowThreads();
19788 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
19789 wxPyEndAllowThreads(__tstate);
19790 if (PyErr_Occurred()) SWIG_fail;
19791 }
19792 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19793 return resultobj;
19794fail:
19795 return NULL;
19796}
19797
19798
19799SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19800 PyObject *obj;
19801 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19802 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
19803 return SWIG_Py_Void();
19804}
19805
19806SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19807 PyObject *resultobj = 0;
19808 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19809 int arg2 = (int) 0 ;
19810 int arg3 = (int) -1 ;
19811 int arg4 = (int) -1 ;
19812 wxBookCtrlBaseEvent *result = 0 ;
19813 int val1 ;
19814 int ecode1 = 0 ;
19815 int val2 ;
19816 int ecode2 = 0 ;
19817 int val3 ;
19818 int ecode3 = 0 ;
19819 int val4 ;
19820 int ecode4 = 0 ;
19821 PyObject * obj0 = 0 ;
19822 PyObject * obj1 = 0 ;
19823 PyObject * obj2 = 0 ;
19824 PyObject * obj3 = 0 ;
19825 char * kwnames[] = {
19826 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
19827 };
19828
19829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19830 if (obj0) {
19831 ecode1 = SWIG_AsVal_int(obj0, &val1);
19832 if (!SWIG_IsOK(ecode1)) {
19833 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
19834 }
19835 arg1 = static_cast< wxEventType >(val1);
19836 }
19837 if (obj1) {
19838 ecode2 = SWIG_AsVal_int(obj1, &val2);
19839 if (!SWIG_IsOK(ecode2)) {
19840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
19841 }
19842 arg2 = static_cast< int >(val2);
19843 }
19844 if (obj2) {
19845 ecode3 = SWIG_AsVal_int(obj2, &val3);
19846 if (!SWIG_IsOK(ecode3)) {
19847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
19848 }
19849 arg3 = static_cast< int >(val3);
19850 }
19851 if (obj3) {
19852 ecode4 = SWIG_AsVal_int(obj3, &val4);
19853 if (!SWIG_IsOK(ecode4)) {
19854 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
19855 }
19856 arg4 = static_cast< int >(val4);
19857 }
19858 {
19859 PyThreadState* __tstate = wxPyBeginAllowThreads();
19860 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
19861 wxPyEndAllowThreads(__tstate);
19862 if (PyErr_Occurred()) SWIG_fail;
19863 }
19864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
19865 return resultobj;
19866fail:
19867 return NULL;
d55e5bfc
RD
19868}
19869
19870
1bd55598
RD
19871SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19872 PyObject *resultobj = 0;
19873 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19874 int result;
19875 void *argp1 = 0 ;
19876 int res1 = 0 ;
19877 PyObject *swig_obj[1] ;
19878
19879 if (!args) SWIG_fail;
19880 swig_obj[0] = args;
19881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19882 if (!SWIG_IsOK(res1)) {
19883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
19884 }
19885 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19886 {
19887 PyThreadState* __tstate = wxPyBeginAllowThreads();
19888 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
19889 wxPyEndAllowThreads(__tstate);
19890 if (PyErr_Occurred()) SWIG_fail;
19891 }
19892 resultobj = SWIG_From_int(static_cast< int >(result));
19893 return resultobj;
19894fail:
19895 return NULL;
19896}
19897
19898
19899SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19900 PyObject *resultobj = 0;
19901 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19902 int arg2 ;
19903 void *argp1 = 0 ;
19904 int res1 = 0 ;
19905 int val2 ;
19906 int ecode2 = 0 ;
19907 PyObject * obj0 = 0 ;
19908 PyObject * obj1 = 0 ;
19909 char * kwnames[] = {
19910 (char *) "self",(char *) "nSel", NULL
19911 };
19912
19913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19915 if (!SWIG_IsOK(res1)) {
19916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
19917 }
19918 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19919 ecode2 = SWIG_AsVal_int(obj1, &val2);
19920 if (!SWIG_IsOK(ecode2)) {
19921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
19922 }
19923 arg2 = static_cast< int >(val2);
19924 {
19925 PyThreadState* __tstate = wxPyBeginAllowThreads();
19926 (arg1)->SetSelection(arg2);
19927 wxPyEndAllowThreads(__tstate);
19928 if (PyErr_Occurred()) SWIG_fail;
19929 }
19930 resultobj = SWIG_Py_Void();
19931 return resultobj;
19932fail:
19933 return NULL;
d55e5bfc
RD
19934}
19935
19936
1bd55598
RD
19937SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19938 PyObject *resultobj = 0;
19939 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19940 int result;
19941 void *argp1 = 0 ;
19942 int res1 = 0 ;
19943 PyObject *swig_obj[1] ;
19944
19945 if (!args) SWIG_fail;
19946 swig_obj[0] = args;
19947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19948 if (!SWIG_IsOK(res1)) {
19949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
19950 }
19951 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19952 {
19953 PyThreadState* __tstate = wxPyBeginAllowThreads();
19954 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
19955 wxPyEndAllowThreads(__tstate);
19956 if (PyErr_Occurred()) SWIG_fail;
19957 }
19958 resultobj = SWIG_From_int(static_cast< int >(result));
19959 return resultobj;
19960fail:
19961 return NULL;
19962}
19963
19964
19965SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19966 PyObject *resultobj = 0;
19967 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19968 int arg2 ;
19969 void *argp1 = 0 ;
19970 int res1 = 0 ;
19971 int val2 ;
19972 int ecode2 = 0 ;
19973 PyObject * obj0 = 0 ;
19974 PyObject * obj1 = 0 ;
19975 char * kwnames[] = {
19976 (char *) "self",(char *) "nOldSel", NULL
19977 };
19978
19979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19981 if (!SWIG_IsOK(res1)) {
19982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
19983 }
19984 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19985 ecode2 = SWIG_AsVal_int(obj1, &val2);
19986 if (!SWIG_IsOK(ecode2)) {
19987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
19988 }
19989 arg2 = static_cast< int >(val2);
19990 {
19991 PyThreadState* __tstate = wxPyBeginAllowThreads();
19992 (arg1)->SetOldSelection(arg2);
19993 wxPyEndAllowThreads(__tstate);
19994 if (PyErr_Occurred()) SWIG_fail;
19995 }
19996 resultobj = SWIG_Py_Void();
19997 return resultobj;
19998fail:
19999 return NULL;
20000}
20001
20002
20003SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20004 PyObject *obj;
20005 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20006 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20007 return SWIG_Py_Void();
20008}
20009
20010SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20011 return SWIG_Python_InitShadowInstance(args);
20012}
20013
20014SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20015 PyObject *resultobj = 0;
20016 wxWindow *arg1 = (wxWindow *) 0 ;
20017 int arg2 = (int) -1 ;
20018 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20019 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20020 wxSize const &arg4_defvalue = wxDefaultSize ;
20021 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20022 long arg5 = (long) 0 ;
20023 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20024 wxString *arg6 = (wxString *) &arg6_defvalue ;
20025 wxNotebook *result = 0 ;
20026 void *argp1 = 0 ;
20027 int res1 = 0 ;
20028 int val2 ;
20029 int ecode2 = 0 ;
20030 wxPoint temp3 ;
20031 wxSize temp4 ;
20032 long val5 ;
20033 int ecode5 = 0 ;
20034 bool temp6 = false ;
20035 PyObject * obj0 = 0 ;
20036 PyObject * obj1 = 0 ;
20037 PyObject * obj2 = 0 ;
20038 PyObject * obj3 = 0 ;
20039 PyObject * obj4 = 0 ;
20040 PyObject * obj5 = 0 ;
20041 char * kwnames[] = {
20042 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20043 };
20044
20045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20047 if (!SWIG_IsOK(res1)) {
20048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20049 }
20050 arg1 = reinterpret_cast< wxWindow * >(argp1);
20051 if (obj1) {
20052 ecode2 = SWIG_AsVal_int(obj1, &val2);
20053 if (!SWIG_IsOK(ecode2)) {
20054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20055 }
20056 arg2 = static_cast< int >(val2);
20057 }
20058 if (obj2) {
20059 {
20060 arg3 = &temp3;
20061 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 20062 }
1bd55598
RD
20063 }
20064 if (obj3) {
d55e5bfc 20065 {
1bd55598
RD
20066 arg4 = &temp4;
20067 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20068 }
1bd55598
RD
20069 }
20070 if (obj4) {
20071 ecode5 = SWIG_AsVal_long(obj4, &val5);
20072 if (!SWIG_IsOK(ecode5)) {
20073 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20074 }
20075 arg5 = static_cast< long >(val5);
20076 }
20077 if (obj5) {
d55e5bfc 20078 {
1bd55598
RD
20079 arg6 = wxString_in_helper(obj5);
20080 if (arg6 == NULL) SWIG_fail;
20081 temp6 = true;
d55e5bfc 20082 }
1bd55598
RD
20083 }
20084 {
20085 if (!wxPyCheckForApp()) SWIG_fail;
20086 PyThreadState* __tstate = wxPyBeginAllowThreads();
20087 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20088 wxPyEndAllowThreads(__tstate);
20089 if (PyErr_Occurred()) SWIG_fail;
20090 }
20091 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20092 {
20093 if (temp6)
20094 delete arg6;
20095 }
20096 return resultobj;
20097fail:
20098 {
20099 if (temp6)
20100 delete arg6;
20101 }
20102 return NULL;
20103}
20104
20105
20106SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20107 PyObject *resultobj = 0;
20108 wxNotebook *result = 0 ;
20109
20110 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20111 {
20112 if (!wxPyCheckForApp()) SWIG_fail;
20113 PyThreadState* __tstate = wxPyBeginAllowThreads();
20114 result = (wxNotebook *)new wxNotebook();
20115 wxPyEndAllowThreads(__tstate);
20116 if (PyErr_Occurred()) SWIG_fail;
20117 }
20118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20119 return resultobj;
20120fail:
20121 return NULL;
20122}
20123
20124
20125SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20126 PyObject *resultobj = 0;
20127 wxNotebook *arg1 = (wxNotebook *) 0 ;
20128 wxWindow *arg2 = (wxWindow *) 0 ;
20129 int arg3 = (int) -1 ;
20130 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20131 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20132 wxSize const &arg5_defvalue = wxDefaultSize ;
20133 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20134 long arg6 = (long) 0 ;
20135 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20136 wxString *arg7 = (wxString *) &arg7_defvalue ;
20137 bool result;
20138 void *argp1 = 0 ;
20139 int res1 = 0 ;
20140 void *argp2 = 0 ;
20141 int res2 = 0 ;
20142 int val3 ;
20143 int ecode3 = 0 ;
20144 wxPoint temp4 ;
20145 wxSize temp5 ;
20146 long val6 ;
20147 int ecode6 = 0 ;
20148 bool temp7 = false ;
20149 PyObject * obj0 = 0 ;
20150 PyObject * obj1 = 0 ;
20151 PyObject * obj2 = 0 ;
20152 PyObject * obj3 = 0 ;
20153 PyObject * obj4 = 0 ;
20154 PyObject * obj5 = 0 ;
20155 PyObject * obj6 = 0 ;
20156 char * kwnames[] = {
20157 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20158 };
20159
20160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20162 if (!SWIG_IsOK(res1)) {
20163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20164 }
20165 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20166 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20167 if (!SWIG_IsOK(res2)) {
20168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20169 }
20170 arg2 = reinterpret_cast< wxWindow * >(argp2);
20171 if (obj2) {
20172 ecode3 = SWIG_AsVal_int(obj2, &val3);
20173 if (!SWIG_IsOK(ecode3)) {
20174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20175 }
20176 arg3 = static_cast< int >(val3);
20177 }
20178 if (obj3) {
d55e5bfc 20179 {
1bd55598
RD
20180 arg4 = &temp4;
20181 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20182 }
1bd55598
RD
20183 }
20184 if (obj4) {
d55e5bfc 20185 {
1bd55598
RD
20186 arg5 = &temp5;
20187 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 20188 }
1bd55598
RD
20189 }
20190 if (obj5) {
20191 ecode6 = SWIG_AsVal_long(obj5, &val6);
20192 if (!SWIG_IsOK(ecode6)) {
20193 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20194 }
20195 arg6 = static_cast< long >(val6);
20196 }
20197 if (obj6) {
d55e5bfc 20198 {
1bd55598
RD
20199 arg7 = wxString_in_helper(obj6);
20200 if (arg7 == NULL) SWIG_fail;
20201 temp7 = true;
d55e5bfc 20202 }
1bd55598
RD
20203 }
20204 {
20205 PyThreadState* __tstate = wxPyBeginAllowThreads();
20206 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20207 wxPyEndAllowThreads(__tstate);
20208 if (PyErr_Occurred()) SWIG_fail;
20209 }
20210 {
20211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20212 }
20213 {
20214 if (temp7)
20215 delete arg7;
20216 }
20217 return resultobj;
20218fail:
20219 {
20220 if (temp7)
20221 delete arg7;
20222 }
20223 return NULL;
d55e5bfc
RD
20224}
20225
20226
1bd55598
RD
20227SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20228 PyObject *resultobj = 0;
20229 wxNotebook *arg1 = (wxNotebook *) 0 ;
20230 int result;
20231 void *argp1 = 0 ;
20232 int res1 = 0 ;
20233 PyObject *swig_obj[1] ;
20234
20235 if (!args) SWIG_fail;
20236 swig_obj[0] = args;
20237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20238 if (!SWIG_IsOK(res1)) {
20239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20240 }
20241 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20242 {
20243 PyThreadState* __tstate = wxPyBeginAllowThreads();
20244 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20245 wxPyEndAllowThreads(__tstate);
20246 if (PyErr_Occurred()) SWIG_fail;
20247 }
20248 resultobj = SWIG_From_int(static_cast< int >(result));
20249 return resultobj;
20250fail:
20251 return NULL;
20252}
20253
20254
20255SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20256 PyObject *resultobj = 0;
20257 wxNotebook *arg1 = (wxNotebook *) 0 ;
20258 wxSize *arg2 = 0 ;
20259 void *argp1 = 0 ;
20260 int res1 = 0 ;
20261 wxSize temp2 ;
20262 PyObject * obj0 = 0 ;
20263 PyObject * obj1 = 0 ;
20264 char * kwnames[] = {
20265 (char *) "self",(char *) "padding", NULL
20266 };
20267
20268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20270 if (!SWIG_IsOK(res1)) {
20271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20272 }
20273 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20274 {
20275 arg2 = &temp2;
20276 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20277 }
20278 {
20279 PyThreadState* __tstate = wxPyBeginAllowThreads();
20280 (arg1)->SetPadding((wxSize const &)*arg2);
20281 wxPyEndAllowThreads(__tstate);
20282 if (PyErr_Occurred()) SWIG_fail;
20283 }
20284 resultobj = SWIG_Py_Void();
20285 return resultobj;
20286fail:
20287 return NULL;
20288}
20289
20290
20291SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20292 PyObject *resultobj = 0;
20293 wxNotebook *arg1 = (wxNotebook *) 0 ;
20294 wxSize *arg2 = 0 ;
20295 void *argp1 = 0 ;
20296 int res1 = 0 ;
20297 wxSize temp2 ;
20298 PyObject * obj0 = 0 ;
20299 PyObject * obj1 = 0 ;
20300 char * kwnames[] = {
20301 (char *) "self",(char *) "sz", NULL
20302 };
20303
20304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20306 if (!SWIG_IsOK(res1)) {
20307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20308 }
20309 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20310 {
20311 arg2 = &temp2;
20312 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20313 }
20314 {
20315 PyThreadState* __tstate = wxPyBeginAllowThreads();
20316 (arg1)->SetTabSize((wxSize const &)*arg2);
20317 wxPyEndAllowThreads(__tstate);
20318 if (PyErr_Occurred()) SWIG_fail;
20319 }
20320 resultobj = SWIG_Py_Void();
20321 return resultobj;
20322fail:
20323 return NULL;
20324}
20325
20326
20327SWIGINTERN PyObject *_wrap_Notebook_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20328 PyObject *resultobj = 0;
20329 wxNotebook *arg1 = (wxNotebook *) 0 ;
20330 wxPoint *arg2 = 0 ;
20331 long *arg3 = (long *) 0 ;
20332 int result;
20333 void *argp1 = 0 ;
20334 int res1 = 0 ;
20335 wxPoint temp2 ;
20336 long temp3 ;
20337 int res3 = SWIG_TMPOBJ ;
20338 PyObject * obj0 = 0 ;
20339 PyObject * obj1 = 0 ;
20340 char * kwnames[] = {
20341 (char *) "self",(char *) "pt", NULL
20342 };
20343
20344 arg3 = &temp3;
20345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20347 if (!SWIG_IsOK(res1)) {
20348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_HitTest" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20349 }
20350 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20351 {
20352 arg2 = &temp2;
20353 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20354 }
20355 {
20356 PyThreadState* __tstate = wxPyBeginAllowThreads();
20357 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20358 wxPyEndAllowThreads(__tstate);
20359 if (PyErr_Occurred()) SWIG_fail;
20360 }
20361 resultobj = SWIG_From_int(static_cast< int >(result));
20362 if (SWIG_IsTmpObj(res3)) {
20363 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20364 } else {
20365 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20366 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20367 }
20368 return resultobj;
20369fail:
20370 return NULL;
d55e5bfc
RD
20371}
20372
20373
1bd55598
RD
20374SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20375 PyObject *resultobj = 0;
20376 wxNotebook *arg1 = (wxNotebook *) 0 ;
20377 wxColour result;
20378 void *argp1 = 0 ;
20379 int res1 = 0 ;
20380 PyObject *swig_obj[1] ;
20381
20382 if (!args) SWIG_fail;
20383 swig_obj[0] = args;
20384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20385 if (!SWIG_IsOK(res1)) {
20386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20387 }
20388 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20389 {
20390 PyThreadState* __tstate = wxPyBeginAllowThreads();
20391 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20392 wxPyEndAllowThreads(__tstate);
20393 if (PyErr_Occurred()) SWIG_fail;
20394 }
20395 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20396 return resultobj;
20397fail:
20398 return NULL;
20399}
20400
20401
20402SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20403 PyObject *resultobj = 0;
20404 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20405 SwigValueWrapper<wxVisualAttributes > result;
20406 int val1 ;
20407 int ecode1 = 0 ;
20408 PyObject * obj0 = 0 ;
20409 char * kwnames[] = {
20410 (char *) "variant", NULL
20411 };
20412
20413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20414 if (obj0) {
20415 ecode1 = SWIG_AsVal_int(obj0, &val1);
20416 if (!SWIG_IsOK(ecode1)) {
20417 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20418 }
20419 arg1 = static_cast< wxWindowVariant >(val1);
20420 }
20421 {
20422 if (!wxPyCheckForApp()) SWIG_fail;
20423 PyThreadState* __tstate = wxPyBeginAllowThreads();
20424 result = wxNotebook::GetClassDefaultAttributes(arg1);
20425 wxPyEndAllowThreads(__tstate);
20426 if (PyErr_Occurred()) SWIG_fail;
20427 }
20428 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20429 return resultobj;
20430fail:
20431 return NULL;
20432}
20433
20434
20435SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20436 PyObject *obj;
20437 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20438 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20439 return SWIG_Py_Void();
20440}
20441
20442SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20443 return SWIG_Python_InitShadowInstance(args);
20444}
20445
20446SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20447 PyObject *resultobj = 0;
20448 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20449 int arg2 = (int) 0 ;
20450 int arg3 = (int) -1 ;
20451 int arg4 = (int) -1 ;
20452 wxNotebookEvent *result = 0 ;
20453 int val1 ;
20454 int ecode1 = 0 ;
20455 int val2 ;
20456 int ecode2 = 0 ;
20457 int val3 ;
20458 int ecode3 = 0 ;
20459 int val4 ;
20460 int ecode4 = 0 ;
20461 PyObject * obj0 = 0 ;
20462 PyObject * obj1 = 0 ;
20463 PyObject * obj2 = 0 ;
20464 PyObject * obj3 = 0 ;
20465 char * kwnames[] = {
20466 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20467 };
20468
20469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20470 if (obj0) {
20471 ecode1 = SWIG_AsVal_int(obj0, &val1);
20472 if (!SWIG_IsOK(ecode1)) {
20473 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20474 }
20475 arg1 = static_cast< wxEventType >(val1);
20476 }
20477 if (obj1) {
20478 ecode2 = SWIG_AsVal_int(obj1, &val2);
20479 if (!SWIG_IsOK(ecode2)) {
20480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20481 }
20482 arg2 = static_cast< int >(val2);
20483 }
20484 if (obj2) {
20485 ecode3 = SWIG_AsVal_int(obj2, &val3);
20486 if (!SWIG_IsOK(ecode3)) {
20487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20488 }
20489 arg3 = static_cast< int >(val3);
20490 }
20491 if (obj3) {
20492 ecode4 = SWIG_AsVal_int(obj3, &val4);
20493 if (!SWIG_IsOK(ecode4)) {
20494 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20495 }
20496 arg4 = static_cast< int >(val4);
20497 }
20498 {
20499 PyThreadState* __tstate = wxPyBeginAllowThreads();
20500 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20501 wxPyEndAllowThreads(__tstate);
20502 if (PyErr_Occurred()) SWIG_fail;
20503 }
20504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20505 return resultobj;
20506fail:
20507 return NULL;
20508}
20509
20510
20511SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20512 PyObject *obj;
20513 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20514 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20515 return SWIG_Py_Void();
20516}
20517
20518SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20519 return SWIG_Python_InitShadowInstance(args);
20520}
20521
20522SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20523 PyObject *resultobj = 0;
20524 wxWindow *arg1 = (wxWindow *) 0 ;
20525 int arg2 = (int) -1 ;
20526 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20527 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20528 wxSize const &arg4_defvalue = wxDefaultSize ;
20529 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20530 long arg5 = (long) 0 ;
20531 wxString const &arg6_defvalue = wxPyEmptyString ;
20532 wxString *arg6 = (wxString *) &arg6_defvalue ;
20533 wxListbook *result = 0 ;
20534 void *argp1 = 0 ;
20535 int res1 = 0 ;
20536 int val2 ;
20537 int ecode2 = 0 ;
20538 wxPoint temp3 ;
20539 wxSize temp4 ;
20540 long val5 ;
20541 int ecode5 = 0 ;
20542 bool temp6 = false ;
20543 PyObject * obj0 = 0 ;
20544 PyObject * obj1 = 0 ;
20545 PyObject * obj2 = 0 ;
20546 PyObject * obj3 = 0 ;
20547 PyObject * obj4 = 0 ;
20548 PyObject * obj5 = 0 ;
20549 char * kwnames[] = {
20550 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20551 };
20552
20553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20555 if (!SWIG_IsOK(res1)) {
20556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20557 }
20558 arg1 = reinterpret_cast< wxWindow * >(argp1);
20559 if (obj1) {
20560 ecode2 = SWIG_AsVal_int(obj1, &val2);
20561 if (!SWIG_IsOK(ecode2)) {
20562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20563 }
20564 arg2 = static_cast< int >(val2);
20565 }
20566 if (obj2) {
d55e5bfc 20567 {
1bd55598
RD
20568 arg3 = &temp3;
20569 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 20570 }
1bd55598
RD
20571 }
20572 if (obj3) {
d55e5bfc 20573 {
1bd55598
RD
20574 arg4 = &temp4;
20575 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20576 }
1bd55598
RD
20577 }
20578 if (obj4) {
20579 ecode5 = SWIG_AsVal_long(obj4, &val5);
20580 if (!SWIG_IsOK(ecode5)) {
20581 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20582 }
20583 arg5 = static_cast< long >(val5);
20584 }
20585 if (obj5) {
d55e5bfc 20586 {
1bd55598
RD
20587 arg6 = wxString_in_helper(obj5);
20588 if (arg6 == NULL) SWIG_fail;
20589 temp6 = true;
d55e5bfc 20590 }
1bd55598
RD
20591 }
20592 {
20593 if (!wxPyCheckForApp()) SWIG_fail;
20594 PyThreadState* __tstate = wxPyBeginAllowThreads();
20595 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20596 wxPyEndAllowThreads(__tstate);
20597 if (PyErr_Occurred()) SWIG_fail;
20598 }
20599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20600 {
20601 if (temp6)
20602 delete arg6;
20603 }
20604 return resultobj;
20605fail:
20606 {
20607 if (temp6)
20608 delete arg6;
20609 }
20610 return NULL;
20611}
20612
20613
20614SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20615 PyObject *resultobj = 0;
20616 wxListbook *result = 0 ;
20617
20618 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20619 {
20620 if (!wxPyCheckForApp()) SWIG_fail;
20621 PyThreadState* __tstate = wxPyBeginAllowThreads();
20622 result = (wxListbook *)new wxListbook();
20623 wxPyEndAllowThreads(__tstate);
20624 if (PyErr_Occurred()) SWIG_fail;
20625 }
20626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20627 return resultobj;
20628fail:
20629 return NULL;
20630}
20631
20632
20633SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20634 PyObject *resultobj = 0;
20635 wxListbook *arg1 = (wxListbook *) 0 ;
20636 wxWindow *arg2 = (wxWindow *) 0 ;
20637 int arg3 = (int) -1 ;
20638 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20639 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20640 wxSize const &arg5_defvalue = wxDefaultSize ;
20641 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20642 long arg6 = (long) 0 ;
20643 wxString const &arg7_defvalue = wxPyEmptyString ;
20644 wxString *arg7 = (wxString *) &arg7_defvalue ;
20645 bool result;
20646 void *argp1 = 0 ;
20647 int res1 = 0 ;
20648 void *argp2 = 0 ;
20649 int res2 = 0 ;
20650 int val3 ;
20651 int ecode3 = 0 ;
20652 wxPoint temp4 ;
20653 wxSize temp5 ;
20654 long val6 ;
20655 int ecode6 = 0 ;
20656 bool temp7 = false ;
20657 PyObject * obj0 = 0 ;
20658 PyObject * obj1 = 0 ;
20659 PyObject * obj2 = 0 ;
20660 PyObject * obj3 = 0 ;
20661 PyObject * obj4 = 0 ;
20662 PyObject * obj5 = 0 ;
20663 PyObject * obj6 = 0 ;
20664 char * kwnames[] = {
20665 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20666 };
20667
20668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20670 if (!SWIG_IsOK(res1)) {
20671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20672 }
20673 arg1 = reinterpret_cast< wxListbook * >(argp1);
20674 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20675 if (!SWIG_IsOK(res2)) {
20676 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20677 }
20678 arg2 = reinterpret_cast< wxWindow * >(argp2);
20679 if (obj2) {
20680 ecode3 = SWIG_AsVal_int(obj2, &val3);
20681 if (!SWIG_IsOK(ecode3)) {
20682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20683 }
20684 arg3 = static_cast< int >(val3);
20685 }
20686 if (obj3) {
d55e5bfc 20687 {
1bd55598
RD
20688 arg4 = &temp4;
20689 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20690 }
1bd55598
RD
20691 }
20692 if (obj4) {
d55e5bfc 20693 {
1bd55598
RD
20694 arg5 = &temp5;
20695 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 20696 }
1bd55598
RD
20697 }
20698 if (obj5) {
20699 ecode6 = SWIG_AsVal_long(obj5, &val6);
20700 if (!SWIG_IsOK(ecode6)) {
20701 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
20702 }
20703 arg6 = static_cast< long >(val6);
20704 }
20705 if (obj6) {
d55e5bfc 20706 {
1bd55598
RD
20707 arg7 = wxString_in_helper(obj6);
20708 if (arg7 == NULL) SWIG_fail;
20709 temp7 = true;
d55e5bfc 20710 }
1bd55598
RD
20711 }
20712 {
20713 PyThreadState* __tstate = wxPyBeginAllowThreads();
20714 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20715 wxPyEndAllowThreads(__tstate);
20716 if (PyErr_Occurred()) SWIG_fail;
20717 }
20718 {
20719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20720 }
20721 {
20722 if (temp7)
20723 delete arg7;
20724 }
20725 return resultobj;
20726fail:
20727 {
20728 if (temp7)
20729 delete arg7;
20730 }
20731 return NULL;
d55e5bfc
RD
20732}
20733
20734
1bd55598
RD
20735SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20736 PyObject *resultobj = 0;
20737 wxListbook *arg1 = (wxListbook *) 0 ;
20738 wxListView *result = 0 ;
20739 void *argp1 = 0 ;
20740 int res1 = 0 ;
20741 PyObject *swig_obj[1] ;
20742
20743 if (!args) SWIG_fail;
20744 swig_obj[0] = args;
20745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20746 if (!SWIG_IsOK(res1)) {
20747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
20748 }
20749 arg1 = reinterpret_cast< wxListbook * >(argp1);
20750 {
20751 PyThreadState* __tstate = wxPyBeginAllowThreads();
20752 result = (wxListView *)(arg1)->GetListView();
20753 wxPyEndAllowThreads(__tstate);
20754 if (PyErr_Occurred()) SWIG_fail;
20755 }
20756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
20757 return resultobj;
20758fail:
20759 return NULL;
20760}
20761
20762
20763SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20764 PyObject *obj;
20765 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20766 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
20767 return SWIG_Py_Void();
20768}
20769
20770SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20771 return SWIG_Python_InitShadowInstance(args);
20772}
20773
20774SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20775 PyObject *resultobj = 0;
20776 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20777 int arg2 = (int) 0 ;
20778 int arg3 = (int) -1 ;
20779 int arg4 = (int) -1 ;
20780 wxListbookEvent *result = 0 ;
20781 int val1 ;
20782 int ecode1 = 0 ;
20783 int val2 ;
20784 int ecode2 = 0 ;
20785 int val3 ;
20786 int ecode3 = 0 ;
20787 int val4 ;
20788 int ecode4 = 0 ;
20789 PyObject * obj0 = 0 ;
20790 PyObject * obj1 = 0 ;
20791 PyObject * obj2 = 0 ;
20792 PyObject * obj3 = 0 ;
20793 char * kwnames[] = {
20794 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20795 };
20796
20797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20798 if (obj0) {
20799 ecode1 = SWIG_AsVal_int(obj0, &val1);
20800 if (!SWIG_IsOK(ecode1)) {
20801 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20802 }
20803 arg1 = static_cast< wxEventType >(val1);
20804 }
20805 if (obj1) {
20806 ecode2 = SWIG_AsVal_int(obj1, &val2);
20807 if (!SWIG_IsOK(ecode2)) {
20808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
20809 }
20810 arg2 = static_cast< int >(val2);
20811 }
20812 if (obj2) {
20813 ecode3 = SWIG_AsVal_int(obj2, &val3);
20814 if (!SWIG_IsOK(ecode3)) {
20815 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
20816 }
20817 arg3 = static_cast< int >(val3);
20818 }
20819 if (obj3) {
20820 ecode4 = SWIG_AsVal_int(obj3, &val4);
20821 if (!SWIG_IsOK(ecode4)) {
20822 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
20823 }
20824 arg4 = static_cast< int >(val4);
20825 }
20826 {
20827 PyThreadState* __tstate = wxPyBeginAllowThreads();
20828 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
20829 wxPyEndAllowThreads(__tstate);
20830 if (PyErr_Occurred()) SWIG_fail;
20831 }
20832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
20833 return resultobj;
20834fail:
20835 return NULL;
20836}
20837
20838
20839SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20840 PyObject *obj;
20841 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20842 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
20843 return SWIG_Py_Void();
20844}
20845
20846SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20847 return SWIG_Python_InitShadowInstance(args);
20848}
20849
20850SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20851 PyObject *resultobj = 0;
20852 wxWindow *arg1 = (wxWindow *) 0 ;
20853 int arg2 ;
20854 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20855 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20856 wxSize const &arg4_defvalue = wxDefaultSize ;
20857 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20858 long arg5 = (long) 0 ;
20859 wxString const &arg6_defvalue = wxPyEmptyString ;
20860 wxString *arg6 = (wxString *) &arg6_defvalue ;
20861 wxChoicebook *result = 0 ;
20862 void *argp1 = 0 ;
20863 int res1 = 0 ;
20864 int val2 ;
20865 int ecode2 = 0 ;
20866 wxPoint temp3 ;
20867 wxSize temp4 ;
20868 long val5 ;
20869 int ecode5 = 0 ;
20870 bool temp6 = false ;
20871 PyObject * obj0 = 0 ;
20872 PyObject * obj1 = 0 ;
20873 PyObject * obj2 = 0 ;
20874 PyObject * obj3 = 0 ;
20875 PyObject * obj4 = 0 ;
20876 PyObject * obj5 = 0 ;
20877 char * kwnames[] = {
20878 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20879 };
20880
20881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20883 if (!SWIG_IsOK(res1)) {
20884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20885 }
20886 arg1 = reinterpret_cast< wxWindow * >(argp1);
20887 ecode2 = SWIG_AsVal_int(obj1, &val2);
20888 if (!SWIG_IsOK(ecode2)) {
20889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
20890 }
20891 arg2 = static_cast< int >(val2);
20892 if (obj2) {
36ed4f51 20893 {
1bd55598
RD
20894 arg3 = &temp3;
20895 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 20896 }
1bd55598
RD
20897 }
20898 if (obj3) {
36ed4f51 20899 {
1bd55598
RD
20900 arg4 = &temp4;
20901 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 20902 }
1bd55598
RD
20903 }
20904 if (obj4) {
20905 ecode5 = SWIG_AsVal_long(obj4, &val5);
20906 if (!SWIG_IsOK(ecode5)) {
20907 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
20908 }
20909 arg5 = static_cast< long >(val5);
20910 }
20911 if (obj5) {
d55e5bfc 20912 {
1bd55598
RD
20913 arg6 = wxString_in_helper(obj5);
20914 if (arg6 == NULL) SWIG_fail;
20915 temp6 = true;
d55e5bfc 20916 }
1bd55598
RD
20917 }
20918 {
20919 if (!wxPyCheckForApp()) SWIG_fail;
20920 PyThreadState* __tstate = wxPyBeginAllowThreads();
20921 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20922 wxPyEndAllowThreads(__tstate);
20923 if (PyErr_Occurred()) SWIG_fail;
20924 }
20925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
20926 {
20927 if (temp6)
20928 delete arg6;
20929 }
20930 return resultobj;
20931fail:
20932 {
20933 if (temp6)
20934 delete arg6;
20935 }
20936 return NULL;
d55e5bfc
RD
20937}
20938
20939
1bd55598
RD
20940SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20941 PyObject *resultobj = 0;
20942 wxChoicebook *result = 0 ;
20943
20944 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
20945 {
20946 if (!wxPyCheckForApp()) SWIG_fail;
20947 PyThreadState* __tstate = wxPyBeginAllowThreads();
20948 result = (wxChoicebook *)new wxChoicebook();
20949 wxPyEndAllowThreads(__tstate);
20950 if (PyErr_Occurred()) SWIG_fail;
20951 }
20952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
20953 return resultobj;
20954fail:
20955 return NULL;
20956}
20957
20958
20959SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20960 PyObject *resultobj = 0;
20961 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
20962 wxWindow *arg2 = (wxWindow *) 0 ;
20963 int arg3 ;
20964 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20965 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20966 wxSize const &arg5_defvalue = wxDefaultSize ;
20967 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20968 long arg6 = (long) 0 ;
20969 wxString const &arg7_defvalue = wxPyEmptyString ;
20970 wxString *arg7 = (wxString *) &arg7_defvalue ;
20971 bool result;
20972 void *argp1 = 0 ;
20973 int res1 = 0 ;
20974 void *argp2 = 0 ;
20975 int res2 = 0 ;
20976 int val3 ;
20977 int ecode3 = 0 ;
20978 wxPoint temp4 ;
20979 wxSize temp5 ;
20980 long val6 ;
20981 int ecode6 = 0 ;
20982 bool temp7 = false ;
20983 PyObject * obj0 = 0 ;
20984 PyObject * obj1 = 0 ;
20985 PyObject * obj2 = 0 ;
20986 PyObject * obj3 = 0 ;
20987 PyObject * obj4 = 0 ;
20988 PyObject * obj5 = 0 ;
20989 PyObject * obj6 = 0 ;
20990 char * kwnames[] = {
20991 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20992 };
20993
20994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
20996 if (!SWIG_IsOK(res1)) {
20997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
20998 }
20999 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21000 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21001 if (!SWIG_IsOK(res2)) {
21002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21003 }
21004 arg2 = reinterpret_cast< wxWindow * >(argp2);
21005 ecode3 = SWIG_AsVal_int(obj2, &val3);
21006 if (!SWIG_IsOK(ecode3)) {
21007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21008 }
21009 arg3 = static_cast< int >(val3);
21010 if (obj3) {
d55e5bfc 21011 {
1bd55598
RD
21012 arg4 = &temp4;
21013 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21014 }
1bd55598
RD
21015 }
21016 if (obj4) {
d55e5bfc 21017 {
1bd55598
RD
21018 arg5 = &temp5;
21019 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21020 }
1bd55598
RD
21021 }
21022 if (obj5) {
21023 ecode6 = SWIG_AsVal_long(obj5, &val6);
21024 if (!SWIG_IsOK(ecode6)) {
21025 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21026 }
21027 arg6 = static_cast< long >(val6);
21028 }
21029 if (obj6) {
d55e5bfc 21030 {
1bd55598
RD
21031 arg7 = wxString_in_helper(obj6);
21032 if (arg7 == NULL) SWIG_fail;
21033 temp7 = true;
d55e5bfc 21034 }
1bd55598
RD
21035 }
21036 {
21037 PyThreadState* __tstate = wxPyBeginAllowThreads();
21038 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21039 wxPyEndAllowThreads(__tstate);
21040 if (PyErr_Occurred()) SWIG_fail;
21041 }
21042 {
21043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21044 }
21045 {
21046 if (temp7)
21047 delete arg7;
21048 }
21049 return resultobj;
21050fail:
21051 {
21052 if (temp7)
21053 delete arg7;
21054 }
21055 return NULL;
d55e5bfc
RD
21056}
21057
21058
1bd55598
RD
21059SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21060 PyObject *resultobj = 0;
21061 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21062 wxChoice *result = 0 ;
21063 void *argp1 = 0 ;
21064 int res1 = 0 ;
21065 PyObject *swig_obj[1] ;
21066
21067 if (!args) SWIG_fail;
21068 swig_obj[0] = args;
21069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21070 if (!SWIG_IsOK(res1)) {
21071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21072 }
21073 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21074 {
21075 PyThreadState* __tstate = wxPyBeginAllowThreads();
21076 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21077 wxPyEndAllowThreads(__tstate);
21078 if (PyErr_Occurred()) SWIG_fail;
21079 }
21080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21081 return resultobj;
21082fail:
21083 return NULL;
21084}
21085
21086
21087SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21088 PyObject *obj;
21089 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21090 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21091 return SWIG_Py_Void();
21092}
21093
21094SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21095 return SWIG_Python_InitShadowInstance(args);
21096}
21097
21098SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21099 PyObject *resultobj = 0;
21100 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21101 int arg2 = (int) 0 ;
21102 int arg3 = (int) -1 ;
21103 int arg4 = (int) -1 ;
21104 wxChoicebookEvent *result = 0 ;
21105 int val1 ;
21106 int ecode1 = 0 ;
21107 int val2 ;
21108 int ecode2 = 0 ;
21109 int val3 ;
21110 int ecode3 = 0 ;
21111 int val4 ;
21112 int ecode4 = 0 ;
21113 PyObject * obj0 = 0 ;
21114 PyObject * obj1 = 0 ;
21115 PyObject * obj2 = 0 ;
21116 PyObject * obj3 = 0 ;
21117 char * kwnames[] = {
21118 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21119 };
21120
21121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21122 if (obj0) {
21123 ecode1 = SWIG_AsVal_int(obj0, &val1);
21124 if (!SWIG_IsOK(ecode1)) {
21125 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21126 }
21127 arg1 = static_cast< wxEventType >(val1);
21128 }
21129 if (obj1) {
21130 ecode2 = SWIG_AsVal_int(obj1, &val2);
21131 if (!SWIG_IsOK(ecode2)) {
21132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21133 }
21134 arg2 = static_cast< int >(val2);
21135 }
21136 if (obj2) {
21137 ecode3 = SWIG_AsVal_int(obj2, &val3);
21138 if (!SWIG_IsOK(ecode3)) {
21139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21140 }
21141 arg3 = static_cast< int >(val3);
21142 }
21143 if (obj3) {
21144 ecode4 = SWIG_AsVal_int(obj3, &val4);
21145 if (!SWIG_IsOK(ecode4)) {
21146 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21147 }
21148 arg4 = static_cast< int >(val4);
21149 }
21150 {
21151 PyThreadState* __tstate = wxPyBeginAllowThreads();
21152 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21153 wxPyEndAllowThreads(__tstate);
21154 if (PyErr_Occurred()) SWIG_fail;
21155 }
21156 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21157 return resultobj;
21158fail:
21159 return NULL;
21160}
21161
21162
21163SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21164 PyObject *obj;
21165 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21166 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21167 return SWIG_Py_Void();
21168}
21169
21170SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21171 return SWIG_Python_InitShadowInstance(args);
21172}
21173
21174SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21175 PyObject *resultobj = 0;
21176 wxWindow *arg1 = (wxWindow *) 0 ;
21177 int arg2 ;
21178 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21179 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21180 wxSize const &arg4_defvalue = wxDefaultSize ;
21181 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21182 long arg5 = (long) wxBK_DEFAULT ;
21183 wxString const &arg6_defvalue = wxPyEmptyString ;
21184 wxString *arg6 = (wxString *) &arg6_defvalue ;
21185 wxTreebook *result = 0 ;
21186 void *argp1 = 0 ;
21187 int res1 = 0 ;
21188 int val2 ;
21189 int ecode2 = 0 ;
21190 wxPoint temp3 ;
21191 wxSize temp4 ;
21192 long val5 ;
21193 int ecode5 = 0 ;
21194 bool temp6 = false ;
21195 PyObject * obj0 = 0 ;
21196 PyObject * obj1 = 0 ;
21197 PyObject * obj2 = 0 ;
21198 PyObject * obj3 = 0 ;
21199 PyObject * obj4 = 0 ;
21200 PyObject * obj5 = 0 ;
21201 char * kwnames[] = {
21202 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21203 };
21204
21205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21207 if (!SWIG_IsOK(res1)) {
21208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21209 }
21210 arg1 = reinterpret_cast< wxWindow * >(argp1);
21211 ecode2 = SWIG_AsVal_int(obj1, &val2);
21212 if (!SWIG_IsOK(ecode2)) {
21213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21214 }
21215 arg2 = static_cast< int >(val2);
21216 if (obj2) {
36ed4f51 21217 {
1bd55598
RD
21218 arg3 = &temp3;
21219 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21220 }
1bd55598
RD
21221 }
21222 if (obj3) {
36ed4f51 21223 {
1bd55598
RD
21224 arg4 = &temp4;
21225 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21226 }
1bd55598
RD
21227 }
21228 if (obj4) {
21229 ecode5 = SWIG_AsVal_long(obj4, &val5);
21230 if (!SWIG_IsOK(ecode5)) {
21231 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21232 }
21233 arg5 = static_cast< long >(val5);
21234 }
21235 if (obj5) {
d55e5bfc 21236 {
1bd55598
RD
21237 arg6 = wxString_in_helper(obj5);
21238 if (arg6 == NULL) SWIG_fail;
21239 temp6 = true;
d55e5bfc 21240 }
1bd55598
RD
21241 }
21242 {
21243 if (!wxPyCheckForApp()) SWIG_fail;
21244 PyThreadState* __tstate = wxPyBeginAllowThreads();
21245 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21246 wxPyEndAllowThreads(__tstate);
21247 if (PyErr_Occurred()) SWIG_fail;
21248 }
21249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21250 {
21251 if (temp6)
21252 delete arg6;
21253 }
21254 return resultobj;
21255fail:
21256 {
21257 if (temp6)
21258 delete arg6;
21259 }
21260 return NULL;
d55e5bfc
RD
21261}
21262
21263
1bd55598
RD
21264SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21265 PyObject *resultobj = 0;
21266 wxTreebook *result = 0 ;
21267
21268 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21269 {
21270 if (!wxPyCheckForApp()) SWIG_fail;
21271 PyThreadState* __tstate = wxPyBeginAllowThreads();
21272 result = (wxTreebook *)new wxTreebook();
21273 wxPyEndAllowThreads(__tstate);
21274 if (PyErr_Occurred()) SWIG_fail;
21275 }
21276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21277 return resultobj;
21278fail:
21279 return NULL;
21280}
21281
21282
21283SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21284 PyObject *resultobj = 0;
21285 wxTreebook *arg1 = (wxTreebook *) 0 ;
21286 wxWindow *arg2 = (wxWindow *) 0 ;
21287 int arg3 ;
21288 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21289 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21290 wxSize const &arg5_defvalue = wxDefaultSize ;
21291 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21292 long arg6 = (long) wxBK_DEFAULT ;
21293 wxString const &arg7_defvalue = wxPyEmptyString ;
21294 wxString *arg7 = (wxString *) &arg7_defvalue ;
21295 bool result;
21296 void *argp1 = 0 ;
21297 int res1 = 0 ;
21298 void *argp2 = 0 ;
21299 int res2 = 0 ;
21300 int val3 ;
21301 int ecode3 = 0 ;
21302 wxPoint temp4 ;
21303 wxSize temp5 ;
21304 long val6 ;
21305 int ecode6 = 0 ;
21306 bool temp7 = false ;
21307 PyObject * obj0 = 0 ;
21308 PyObject * obj1 = 0 ;
21309 PyObject * obj2 = 0 ;
21310 PyObject * obj3 = 0 ;
21311 PyObject * obj4 = 0 ;
21312 PyObject * obj5 = 0 ;
21313 PyObject * obj6 = 0 ;
21314 char * kwnames[] = {
21315 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21316 };
21317
21318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21320 if (!SWIG_IsOK(res1)) {
21321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21322 }
21323 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21324 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21325 if (!SWIG_IsOK(res2)) {
21326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21327 }
21328 arg2 = reinterpret_cast< wxWindow * >(argp2);
21329 ecode3 = SWIG_AsVal_int(obj2, &val3);
21330 if (!SWIG_IsOK(ecode3)) {
21331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21332 }
21333 arg3 = static_cast< int >(val3);
21334 if (obj3) {
36ed4f51 21335 {
1bd55598
RD
21336 arg4 = &temp4;
21337 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21338 }
1bd55598
RD
21339 }
21340 if (obj4) {
d55e5bfc 21341 {
1bd55598
RD
21342 arg5 = &temp5;
21343 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21344 }
1bd55598
RD
21345 }
21346 if (obj5) {
21347 ecode6 = SWIG_AsVal_long(obj5, &val6);
21348 if (!SWIG_IsOK(ecode6)) {
21349 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21350 }
21351 arg6 = static_cast< long >(val6);
21352 }
21353 if (obj6) {
36ed4f51 21354 {
1bd55598
RD
21355 arg7 = wxString_in_helper(obj6);
21356 if (arg7 == NULL) SWIG_fail;
21357 temp7 = true;
36ed4f51 21358 }
1bd55598
RD
21359 }
21360 {
21361 PyThreadState* __tstate = wxPyBeginAllowThreads();
21362 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21363 wxPyEndAllowThreads(__tstate);
21364 if (PyErr_Occurred()) SWIG_fail;
21365 }
21366 {
21367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21368 }
21369 {
21370 if (temp7)
21371 delete arg7;
21372 }
21373 return resultobj;
21374fail:
21375 {
21376 if (temp7)
21377 delete arg7;
21378 }
21379 return NULL;
21380}
21381
21382
21383SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21384 PyObject *resultobj = 0;
21385 wxTreebook *arg1 = (wxTreebook *) 0 ;
21386 size_t arg2 ;
21387 wxWindow *arg3 = (wxWindow *) 0 ;
21388 wxString *arg4 = 0 ;
21389 bool arg5 = (bool) false ;
21390 int arg6 = (int) wxNOT_FOUND ;
21391 bool result;
21392 void *argp1 = 0 ;
21393 int res1 = 0 ;
21394 size_t val2 ;
21395 int ecode2 = 0 ;
21396 void *argp3 = 0 ;
21397 int res3 = 0 ;
21398 bool temp4 = false ;
21399 bool val5 ;
21400 int ecode5 = 0 ;
21401 int val6 ;
21402 int ecode6 = 0 ;
21403 PyObject * obj0 = 0 ;
21404 PyObject * obj1 = 0 ;
21405 PyObject * obj2 = 0 ;
21406 PyObject * obj3 = 0 ;
21407 PyObject * obj4 = 0 ;
21408 PyObject * obj5 = 0 ;
21409 char * kwnames[] = {
21410 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21411 };
21412
21413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21415 if (!SWIG_IsOK(res1)) {
21416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21417 }
21418 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21419 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21420 if (!SWIG_IsOK(ecode2)) {
21421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21422 }
21423 arg2 = static_cast< size_t >(val2);
21424 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21425 if (!SWIG_IsOK(res3)) {
21426 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21427 }
21428 arg3 = reinterpret_cast< wxWindow * >(argp3);
21429 {
21430 arg4 = wxString_in_helper(obj3);
21431 if (arg4 == NULL) SWIG_fail;
21432 temp4 = true;
21433 }
21434 if (obj4) {
21435 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21436 if (!SWIG_IsOK(ecode5)) {
21437 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21438 }
21439 arg5 = static_cast< bool >(val5);
21440 }
21441 if (obj5) {
21442 ecode6 = SWIG_AsVal_int(obj5, &val6);
21443 if (!SWIG_IsOK(ecode6)) {
21444 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21445 }
21446 arg6 = static_cast< int >(val6);
21447 }
21448 {
21449 PyThreadState* __tstate = wxPyBeginAllowThreads();
21450 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21451 wxPyEndAllowThreads(__tstate);
21452 if (PyErr_Occurred()) SWIG_fail;
21453 }
21454 {
21455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21456 }
21457 {
21458 if (temp4)
21459 delete arg4;
21460 }
21461 return resultobj;
21462fail:
21463 {
21464 if (temp4)
21465 delete arg4;
21466 }
21467 return NULL;
21468}
21469
21470
21471SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21472 PyObject *resultobj = 0;
21473 wxTreebook *arg1 = (wxTreebook *) 0 ;
21474 wxWindow *arg2 = (wxWindow *) 0 ;
21475 wxString *arg3 = 0 ;
21476 bool arg4 = (bool) false ;
21477 int arg5 = (int) wxNOT_FOUND ;
21478 bool result;
21479 void *argp1 = 0 ;
21480 int res1 = 0 ;
21481 void *argp2 = 0 ;
21482 int res2 = 0 ;
21483 bool temp3 = false ;
21484 bool val4 ;
21485 int ecode4 = 0 ;
21486 int val5 ;
21487 int ecode5 = 0 ;
21488 PyObject * obj0 = 0 ;
21489 PyObject * obj1 = 0 ;
21490 PyObject * obj2 = 0 ;
21491 PyObject * obj3 = 0 ;
21492 PyObject * obj4 = 0 ;
21493 char * kwnames[] = {
21494 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21495 };
21496
21497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21499 if (!SWIG_IsOK(res1)) {
21500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21501 }
21502 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21503 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21504 if (!SWIG_IsOK(res2)) {
21505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21506 }
21507 arg2 = reinterpret_cast< wxWindow * >(argp2);
21508 {
21509 arg3 = wxString_in_helper(obj2);
21510 if (arg3 == NULL) SWIG_fail;
21511 temp3 = true;
21512 }
21513 if (obj3) {
21514 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21515 if (!SWIG_IsOK(ecode4)) {
21516 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21517 }
21518 arg4 = static_cast< bool >(val4);
21519 }
21520 if (obj4) {
21521 ecode5 = SWIG_AsVal_int(obj4, &val5);
21522 if (!SWIG_IsOK(ecode5)) {
21523 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21524 }
21525 arg5 = static_cast< int >(val5);
21526 }
21527 {
21528 PyThreadState* __tstate = wxPyBeginAllowThreads();
21529 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21530 wxPyEndAllowThreads(__tstate);
21531 if (PyErr_Occurred()) SWIG_fail;
21532 }
21533 {
21534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21535 }
21536 {
21537 if (temp3)
21538 delete arg3;
21539 }
21540 return resultobj;
21541fail:
21542 {
21543 if (temp3)
21544 delete arg3;
21545 }
21546 return NULL;
21547}
21548
21549
21550SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21551 PyObject *resultobj = 0;
21552 wxTreebook *arg1 = (wxTreebook *) 0 ;
21553 size_t arg2 ;
21554 bool result;
21555 void *argp1 = 0 ;
21556 int res1 = 0 ;
21557 size_t val2 ;
21558 int ecode2 = 0 ;
21559 PyObject * obj0 = 0 ;
21560 PyObject * obj1 = 0 ;
21561 char * kwnames[] = {
21562 (char *) "self",(char *) "pos", NULL
21563 };
21564
21565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21567 if (!SWIG_IsOK(res1)) {
21568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21569 }
21570 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21571 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21572 if (!SWIG_IsOK(ecode2)) {
21573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21574 }
21575 arg2 = static_cast< size_t >(val2);
21576 {
21577 PyThreadState* __tstate = wxPyBeginAllowThreads();
21578 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21579 wxPyEndAllowThreads(__tstate);
21580 if (PyErr_Occurred()) SWIG_fail;
21581 }
21582 {
21583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21584 }
21585 return resultobj;
21586fail:
21587 return NULL;
21588}
21589
21590
21591SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21592 PyObject *resultobj = 0;
21593 wxTreebook *arg1 = (wxTreebook *) 0 ;
21594 size_t arg2 ;
21595 bool arg3 = (bool) true ;
21596 bool result;
21597 void *argp1 = 0 ;
21598 int res1 = 0 ;
21599 size_t val2 ;
21600 int ecode2 = 0 ;
21601 bool val3 ;
21602 int ecode3 = 0 ;
21603 PyObject * obj0 = 0 ;
21604 PyObject * obj1 = 0 ;
21605 PyObject * obj2 = 0 ;
21606 char * kwnames[] = {
21607 (char *) "self",(char *) "pos",(char *) "expand", NULL
21608 };
21609
21610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21612 if (!SWIG_IsOK(res1)) {
21613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21614 }
21615 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21616 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21617 if (!SWIG_IsOK(ecode2)) {
21618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21619 }
21620 arg2 = static_cast< size_t >(val2);
21621 if (obj2) {
21622 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21623 if (!SWIG_IsOK(ecode3)) {
21624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21625 }
21626 arg3 = static_cast< bool >(val3);
21627 }
21628 {
21629 PyThreadState* __tstate = wxPyBeginAllowThreads();
21630 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21631 wxPyEndAllowThreads(__tstate);
21632 if (PyErr_Occurred()) SWIG_fail;
21633 }
21634 {
21635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21636 }
21637 return resultobj;
21638fail:
21639 return NULL;
21640}
21641
21642
21643SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21644 PyObject *resultobj = 0;
21645 wxTreebook *arg1 = (wxTreebook *) 0 ;
21646 size_t arg2 ;
21647 bool result;
21648 void *argp1 = 0 ;
21649 int res1 = 0 ;
21650 size_t val2 ;
21651 int ecode2 = 0 ;
21652 PyObject * obj0 = 0 ;
21653 PyObject * obj1 = 0 ;
21654 char * kwnames[] = {
21655 (char *) "self",(char *) "pos", NULL
21656 };
21657
21658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21660 if (!SWIG_IsOK(res1)) {
21661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21662 }
21663 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21664 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21665 if (!SWIG_IsOK(ecode2)) {
21666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21667 }
21668 arg2 = static_cast< size_t >(val2);
21669 {
21670 PyThreadState* __tstate = wxPyBeginAllowThreads();
21671 result = (bool)(arg1)->CollapseNode(arg2);
21672 wxPyEndAllowThreads(__tstate);
21673 if (PyErr_Occurred()) SWIG_fail;
21674 }
21675 {
21676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21677 }
21678 return resultobj;
21679fail:
21680 return NULL;
21681}
21682
21683
21684SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21685 PyObject *resultobj = 0;
21686 wxTreebook *arg1 = (wxTreebook *) 0 ;
21687 size_t arg2 ;
21688 int result;
21689 void *argp1 = 0 ;
21690 int res1 = 0 ;
21691 size_t val2 ;
21692 int ecode2 = 0 ;
21693 PyObject * obj0 = 0 ;
21694 PyObject * obj1 = 0 ;
21695 char * kwnames[] = {
21696 (char *) "self",(char *) "pos", NULL
21697 };
21698
21699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
21700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21701 if (!SWIG_IsOK(res1)) {
21702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21703 }
21704 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21705 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21706 if (!SWIG_IsOK(ecode2)) {
21707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
21708 }
21709 arg2 = static_cast< size_t >(val2);
21710 {
21711 PyThreadState* __tstate = wxPyBeginAllowThreads();
21712 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
21713 wxPyEndAllowThreads(__tstate);
21714 if (PyErr_Occurred()) SWIG_fail;
21715 }
21716 resultobj = SWIG_From_int(static_cast< int >(result));
21717 return resultobj;
21718fail:
21719 return NULL;
d55e5bfc
RD
21720}
21721
21722
1bd55598
RD
21723SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21724 PyObject *resultobj = 0;
21725 wxTreebook *arg1 = (wxTreebook *) 0 ;
21726 wxTreeCtrl *result = 0 ;
21727 void *argp1 = 0 ;
21728 int res1 = 0 ;
21729 PyObject *swig_obj[1] ;
21730
21731 if (!args) SWIG_fail;
21732 swig_obj[0] = args;
21733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21734 if (!SWIG_IsOK(res1)) {
21735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21736 }
21737 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21738 {
21739 PyThreadState* __tstate = wxPyBeginAllowThreads();
21740 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
21741 wxPyEndAllowThreads(__tstate);
21742 if (PyErr_Occurred()) SWIG_fail;
21743 }
21744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
21745 return resultobj;
21746fail:
21747 return NULL;
21748}
21749
21750
21751SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21752 PyObject *obj;
21753 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21754 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
21755 return SWIG_Py_Void();
21756}
21757
21758SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21759 return SWIG_Python_InitShadowInstance(args);
21760}
21761
21762SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21763 PyObject *resultobj = 0;
21764 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21765 int arg2 = (int) 0 ;
21766 int arg3 = (int) wxNOT_FOUND ;
21767 int arg4 = (int) wxNOT_FOUND ;
21768 wxTreebookEvent *result = 0 ;
21769 int val1 ;
21770 int ecode1 = 0 ;
21771 int val2 ;
21772 int ecode2 = 0 ;
21773 int val3 ;
21774 int ecode3 = 0 ;
21775 int val4 ;
21776 int ecode4 = 0 ;
21777 PyObject * obj0 = 0 ;
21778 PyObject * obj1 = 0 ;
21779 PyObject * obj2 = 0 ;
21780 PyObject * obj3 = 0 ;
21781 char * kwnames[] = {
21782 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21783 };
21784
21785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21786 if (obj0) {
21787 ecode1 = SWIG_AsVal_int(obj0, &val1);
21788 if (!SWIG_IsOK(ecode1)) {
21789 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21790 }
21791 arg1 = static_cast< wxEventType >(val1);
21792 }
21793 if (obj1) {
21794 ecode2 = SWIG_AsVal_int(obj1, &val2);
21795 if (!SWIG_IsOK(ecode2)) {
21796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
21797 }
21798 arg2 = static_cast< int >(val2);
21799 }
21800 if (obj2) {
21801 ecode3 = SWIG_AsVal_int(obj2, &val3);
21802 if (!SWIG_IsOK(ecode3)) {
21803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
21804 }
21805 arg3 = static_cast< int >(val3);
21806 }
21807 if (obj3) {
21808 ecode4 = SWIG_AsVal_int(obj3, &val4);
21809 if (!SWIG_IsOK(ecode4)) {
21810 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
21811 }
21812 arg4 = static_cast< int >(val4);
21813 }
21814 {
21815 PyThreadState* __tstate = wxPyBeginAllowThreads();
21816 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
21817 wxPyEndAllowThreads(__tstate);
21818 if (PyErr_Occurred()) SWIG_fail;
21819 }
21820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
21821 return resultobj;
21822fail:
21823 return NULL;
21824}
21825
21826
21827SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21828 PyObject *obj;
21829 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21830 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
21831 return SWIG_Py_Void();
21832}
21833
21834SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21835 return SWIG_Python_InitShadowInstance(args);
21836}
21837
21838SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21839 PyObject *resultobj = 0;
21840 wxWindow *arg1 = (wxWindow *) 0 ;
21841 int arg2 ;
21842 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21843 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21844 wxSize const &arg4_defvalue = wxDefaultSize ;
21845 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21846 long arg5 = (long) wxBK_DEFAULT ;
21847 wxString const &arg6_defvalue = wxPyEmptyString ;
21848 wxString *arg6 = (wxString *) &arg6_defvalue ;
21849 wxToolbook *result = 0 ;
21850 void *argp1 = 0 ;
21851 int res1 = 0 ;
21852 int val2 ;
21853 int ecode2 = 0 ;
21854 wxPoint temp3 ;
21855 wxSize temp4 ;
21856 long val5 ;
21857 int ecode5 = 0 ;
21858 bool temp6 = false ;
21859 PyObject * obj0 = 0 ;
21860 PyObject * obj1 = 0 ;
21861 PyObject * obj2 = 0 ;
21862 PyObject * obj3 = 0 ;
21863 PyObject * obj4 = 0 ;
21864 PyObject * obj5 = 0 ;
21865 char * kwnames[] = {
21866 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21867 };
21868
21869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21871 if (!SWIG_IsOK(res1)) {
21872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21873 }
21874 arg1 = reinterpret_cast< wxWindow * >(argp1);
21875 ecode2 = SWIG_AsVal_int(obj1, &val2);
21876 if (!SWIG_IsOK(ecode2)) {
21877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
21878 }
21879 arg2 = static_cast< int >(val2);
21880 if (obj2) {
36ed4f51 21881 {
1bd55598
RD
21882 arg3 = &temp3;
21883 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21884 }
1bd55598
RD
21885 }
21886 if (obj3) {
36ed4f51 21887 {
1bd55598
RD
21888 arg4 = &temp4;
21889 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21890 }
1bd55598
RD
21891 }
21892 if (obj4) {
21893 ecode5 = SWIG_AsVal_long(obj4, &val5);
21894 if (!SWIG_IsOK(ecode5)) {
21895 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
21896 }
21897 arg5 = static_cast< long >(val5);
21898 }
21899 if (obj5) {
d55e5bfc 21900 {
1bd55598
RD
21901 arg6 = wxString_in_helper(obj5);
21902 if (arg6 == NULL) SWIG_fail;
21903 temp6 = true;
d55e5bfc 21904 }
1bd55598
RD
21905 }
21906 {
21907 PyThreadState* __tstate = wxPyBeginAllowThreads();
21908 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21909 wxPyEndAllowThreads(__tstate);
21910 if (PyErr_Occurred()) SWIG_fail;
21911 }
21912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
21913 {
21914 if (temp6)
21915 delete arg6;
21916 }
21917 return resultobj;
21918fail:
21919 {
21920 if (temp6)
21921 delete arg6;
21922 }
21923 return NULL;
d55e5bfc
RD
21924}
21925
21926
1bd55598
RD
21927SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21928 PyObject *resultobj = 0;
21929 wxToolbook *result = 0 ;
21930
21931 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
21932 {
21933 PyThreadState* __tstate = wxPyBeginAllowThreads();
21934 result = (wxToolbook *)new wxToolbook();
21935 wxPyEndAllowThreads(__tstate);
21936 if (PyErr_Occurred()) SWIG_fail;
21937 }
21938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
21939 return resultobj;
21940fail:
21941 return NULL;
21942}
21943
21944
21945SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21946 PyObject *resultobj = 0;
21947 wxToolbook *arg1 = (wxToolbook *) 0 ;
21948 wxWindow *arg2 = (wxWindow *) 0 ;
21949 int arg3 ;
21950 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21951 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21952 wxSize const &arg5_defvalue = wxDefaultSize ;
21953 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21954 long arg6 = (long) 0 ;
21955 wxString const &arg7_defvalue = wxEmptyString ;
21956 wxString *arg7 = (wxString *) &arg7_defvalue ;
21957 bool result;
21958 void *argp1 = 0 ;
21959 int res1 = 0 ;
21960 void *argp2 = 0 ;
21961 int res2 = 0 ;
21962 int val3 ;
21963 int ecode3 = 0 ;
21964 wxPoint temp4 ;
21965 wxSize temp5 ;
21966 long val6 ;
21967 int ecode6 = 0 ;
21968 bool temp7 = false ;
21969 PyObject * obj0 = 0 ;
21970 PyObject * obj1 = 0 ;
21971 PyObject * obj2 = 0 ;
21972 PyObject * obj3 = 0 ;
21973 PyObject * obj4 = 0 ;
21974 PyObject * obj5 = 0 ;
21975 PyObject * obj6 = 0 ;
21976 char * kwnames[] = {
21977 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21978 };
21979
21980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
21982 if (!SWIG_IsOK(res1)) {
21983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
21984 }
21985 arg1 = reinterpret_cast< wxToolbook * >(argp1);
21986 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21987 if (!SWIG_IsOK(res2)) {
21988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21989 }
21990 arg2 = reinterpret_cast< wxWindow * >(argp2);
21991 ecode3 = SWIG_AsVal_int(obj2, &val3);
21992 if (!SWIG_IsOK(ecode3)) {
21993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
21994 }
21995 arg3 = static_cast< int >(val3);
21996 if (obj3) {
21997 {
21998 arg4 = &temp4;
21999 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 22000 }
1bd55598
RD
22001 }
22002 if (obj4) {
f20a2e1f 22003 {
1bd55598
RD
22004 arg5 = &temp5;
22005 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 22006 }
1bd55598
RD
22007 }
22008 if (obj5) {
22009 ecode6 = SWIG_AsVal_long(obj5, &val6);
22010 if (!SWIG_IsOK(ecode6)) {
22011 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22012 }
22013 arg6 = static_cast< long >(val6);
22014 }
22015 if (obj6) {
f20a2e1f 22016 {
1bd55598
RD
22017 arg7 = wxString_in_helper(obj6);
22018 if (arg7 == NULL) SWIG_fail;
22019 temp7 = true;
f20a2e1f 22020 }
1bd55598
RD
22021 }
22022 {
22023 PyThreadState* __tstate = wxPyBeginAllowThreads();
22024 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22025 wxPyEndAllowThreads(__tstate);
22026 if (PyErr_Occurred()) SWIG_fail;
22027 }
22028 {
22029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22030 }
22031 {
22032 if (temp7)
22033 delete arg7;
22034 }
22035 return resultobj;
22036fail:
22037 {
22038 if (temp7)
22039 delete arg7;
22040 }
22041 return NULL;
f20a2e1f
RD
22042}
22043
22044
1bd55598
RD
22045SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22046 PyObject *resultobj = 0;
22047 wxToolbook *arg1 = (wxToolbook *) 0 ;
22048 wxToolBarBase *result = 0 ;
22049 void *argp1 = 0 ;
22050 int res1 = 0 ;
22051 PyObject *swig_obj[1] ;
22052
22053 if (!args) SWIG_fail;
22054 swig_obj[0] = args;
22055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22056 if (!SWIG_IsOK(res1)) {
22057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22058 }
22059 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22060 {
22061 PyThreadState* __tstate = wxPyBeginAllowThreads();
22062 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22063 wxPyEndAllowThreads(__tstate);
22064 if (PyErr_Occurred()) SWIG_fail;
22065 }
22066 {
22067 resultobj = wxPyMake_wxObject(result, (bool)0);
22068 }
22069 return resultobj;
22070fail:
22071 return NULL;
d55e5bfc
RD
22072}
22073
22074
1bd55598
RD
22075SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22076 PyObject *resultobj = 0;
22077 wxToolbook *arg1 = (wxToolbook *) 0 ;
22078 void *argp1 = 0 ;
22079 int res1 = 0 ;
22080 PyObject *swig_obj[1] ;
22081
22082 if (!args) SWIG_fail;
22083 swig_obj[0] = args;
22084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22085 if (!SWIG_IsOK(res1)) {
22086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22087 }
22088 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22089 {
22090 PyThreadState* __tstate = wxPyBeginAllowThreads();
22091 (arg1)->Realize();
22092 wxPyEndAllowThreads(__tstate);
22093 if (PyErr_Occurred()) SWIG_fail;
22094 }
22095 resultobj = SWIG_Py_Void();
22096 return resultobj;
22097fail:
22098 return NULL;
22099}
22100
22101
22102SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22103 PyObject *obj;
22104 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22105 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22106 return SWIG_Py_Void();
22107}
22108
22109SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22110 return SWIG_Python_InitShadowInstance(args);
22111}
22112
22113SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22114 PyObject *resultobj = 0;
22115 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22116 int arg2 = (int) 0 ;
22117 int arg3 = (int) wxNOT_FOUND ;
22118 int arg4 = (int) wxNOT_FOUND ;
22119 wxToolbookEvent *result = 0 ;
22120 int val1 ;
22121 int ecode1 = 0 ;
22122 int val2 ;
22123 int ecode2 = 0 ;
22124 int val3 ;
22125 int ecode3 = 0 ;
22126 int val4 ;
22127 int ecode4 = 0 ;
22128 PyObject * obj0 = 0 ;
22129 PyObject * obj1 = 0 ;
22130 PyObject * obj2 = 0 ;
22131 PyObject * obj3 = 0 ;
22132 char * kwnames[] = {
22133 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22134 };
22135
22136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22137 if (obj0) {
22138 ecode1 = SWIG_AsVal_int(obj0, &val1);
22139 if (!SWIG_IsOK(ecode1)) {
22140 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22141 }
22142 arg1 = static_cast< wxEventType >(val1);
22143 }
22144 if (obj1) {
22145 ecode2 = SWIG_AsVal_int(obj1, &val2);
22146 if (!SWIG_IsOK(ecode2)) {
22147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22148 }
22149 arg2 = static_cast< int >(val2);
22150 }
22151 if (obj2) {
22152 ecode3 = SWIG_AsVal_int(obj2, &val3);
22153 if (!SWIG_IsOK(ecode3)) {
22154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22155 }
22156 arg3 = static_cast< int >(val3);
22157 }
22158 if (obj3) {
22159 ecode4 = SWIG_AsVal_int(obj3, &val4);
22160 if (!SWIG_IsOK(ecode4)) {
22161 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22162 }
22163 arg4 = static_cast< int >(val4);
22164 }
22165 {
22166 PyThreadState* __tstate = wxPyBeginAllowThreads();
22167 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22168 wxPyEndAllowThreads(__tstate);
22169 if (PyErr_Occurred()) SWIG_fail;
22170 }
22171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22172 return resultobj;
22173fail:
22174 return NULL;
d55e5bfc
RD
22175}
22176
22177
1bd55598
RD
22178SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22179 PyObject *obj;
22180 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22181 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22182 return SWIG_Py_Void();
d55e5bfc
RD
22183}
22184
1bd55598
RD
22185SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22186 return SWIG_Python_InitShadowInstance(args);
22187}
d55e5bfc 22188
1bd55598
RD
22189SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22190 PyObject *resultobj = 0;
22191 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22192 int result;
22193 void *argp1 = 0 ;
22194 int res1 = 0 ;
22195 PyObject *swig_obj[1] ;
22196
22197 if (!args) SWIG_fail;
22198 swig_obj[0] = args;
22199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22200 if (!SWIG_IsOK(res1)) {
22201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22202 }
22203 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22204 {
22205 PyThreadState* __tstate = wxPyBeginAllowThreads();
22206 result = (int)(arg1)->GetId();
22207 wxPyEndAllowThreads(__tstate);
22208 if (PyErr_Occurred()) SWIG_fail;
22209 }
22210 resultobj = SWIG_From_int(static_cast< int >(result));
22211 return resultobj;
22212fail:
22213 return NULL;
d55e5bfc 22214}
1bd55598
RD
22215
22216
22217SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22218 PyObject *resultobj = 0;
22219 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22220 wxControl *result = 0 ;
22221 void *argp1 = 0 ;
22222 int res1 = 0 ;
22223 PyObject *swig_obj[1] ;
22224
22225 if (!args) SWIG_fail;
22226 swig_obj[0] = args;
22227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22228 if (!SWIG_IsOK(res1)) {
22229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22230 }
22231 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22232 {
22233 PyThreadState* __tstate = wxPyBeginAllowThreads();
22234 result = (wxControl *)(arg1)->GetControl();
22235 wxPyEndAllowThreads(__tstate);
22236 if (PyErr_Occurred()) SWIG_fail;
22237 }
22238 {
22239 resultobj = wxPyMake_wxObject(result, 0);
22240 }
22241 return resultobj;
22242fail:
22243 return NULL;
d55e5bfc
RD
22244}
22245
22246
1bd55598
RD
22247SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22248 PyObject *resultobj = 0;
22249 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22250 wxToolBarBase *result = 0 ;
22251 void *argp1 = 0 ;
22252 int res1 = 0 ;
22253 PyObject *swig_obj[1] ;
22254
22255 if (!args) SWIG_fail;
22256 swig_obj[0] = args;
22257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22258 if (!SWIG_IsOK(res1)) {
22259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22260 }
22261 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22262 {
22263 PyThreadState* __tstate = wxPyBeginAllowThreads();
22264 result = (wxToolBarBase *)(arg1)->GetToolBar();
22265 wxPyEndAllowThreads(__tstate);
22266 if (PyErr_Occurred()) SWIG_fail;
22267 }
22268 {
22269 resultobj = wxPyMake_wxObject(result, (bool)0);
22270 }
22271 return resultobj;
22272fail:
22273 return NULL;
d55e5bfc
RD
22274}
22275
22276
1bd55598
RD
22277SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22278 PyObject *resultobj = 0;
22279 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22280 int result;
22281 void *argp1 = 0 ;
22282 int res1 = 0 ;
22283 PyObject *swig_obj[1] ;
22284
22285 if (!args) SWIG_fail;
22286 swig_obj[0] = args;
22287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22288 if (!SWIG_IsOK(res1)) {
22289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22290 }
22291 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22292 {
22293 PyThreadState* __tstate = wxPyBeginAllowThreads();
22294 result = (int)(arg1)->IsButton();
22295 wxPyEndAllowThreads(__tstate);
22296 if (PyErr_Occurred()) SWIG_fail;
22297 }
22298 resultobj = SWIG_From_int(static_cast< int >(result));
22299 return resultobj;
22300fail:
22301 return NULL;
d55e5bfc
RD
22302}
22303
22304
1bd55598
RD
22305SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22306 PyObject *resultobj = 0;
22307 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22308 int result;
22309 void *argp1 = 0 ;
22310 int res1 = 0 ;
22311 PyObject *swig_obj[1] ;
22312
22313 if (!args) SWIG_fail;
22314 swig_obj[0] = args;
22315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22316 if (!SWIG_IsOK(res1)) {
22317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22318 }
22319 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22320 {
22321 PyThreadState* __tstate = wxPyBeginAllowThreads();
22322 result = (int)(arg1)->IsControl();
22323 wxPyEndAllowThreads(__tstate);
22324 if (PyErr_Occurred()) SWIG_fail;
22325 }
22326 resultobj = SWIG_From_int(static_cast< int >(result));
22327 return resultobj;
22328fail:
22329 return NULL;
d55e5bfc
RD
22330}
22331
22332
1bd55598
RD
22333SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22334 PyObject *resultobj = 0;
22335 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22336 int result;
22337 void *argp1 = 0 ;
22338 int res1 = 0 ;
22339 PyObject *swig_obj[1] ;
22340
22341 if (!args) SWIG_fail;
22342 swig_obj[0] = args;
22343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22344 if (!SWIG_IsOK(res1)) {
22345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22346 }
22347 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22348 {
22349 PyThreadState* __tstate = wxPyBeginAllowThreads();
22350 result = (int)(arg1)->IsSeparator();
22351 wxPyEndAllowThreads(__tstate);
22352 if (PyErr_Occurred()) SWIG_fail;
22353 }
22354 resultobj = SWIG_From_int(static_cast< int >(result));
22355 return resultobj;
22356fail:
22357 return NULL;
d55e5bfc
RD
22358}
22359
22360
1bd55598
RD
22361SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22362 PyObject *resultobj = 0;
22363 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22364 int result;
22365 void *argp1 = 0 ;
22366 int res1 = 0 ;
22367 PyObject *swig_obj[1] ;
22368
22369 if (!args) SWIG_fail;
22370 swig_obj[0] = args;
22371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22372 if (!SWIG_IsOK(res1)) {
22373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22374 }
22375 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22376 {
22377 PyThreadState* __tstate = wxPyBeginAllowThreads();
22378 result = (int)(arg1)->GetStyle();
22379 wxPyEndAllowThreads(__tstate);
22380 if (PyErr_Occurred()) SWIG_fail;
22381 }
22382 resultobj = SWIG_From_int(static_cast< int >(result));
22383 return resultobj;
22384fail:
22385 return NULL;
d55e5bfc
RD
22386}
22387
22388
1bd55598
RD
22389SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22390 PyObject *resultobj = 0;
22391 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22392 wxItemKind result;
22393 void *argp1 = 0 ;
22394 int res1 = 0 ;
22395 PyObject *swig_obj[1] ;
22396
22397 if (!args) SWIG_fail;
22398 swig_obj[0] = args;
22399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22400 if (!SWIG_IsOK(res1)) {
22401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22402 }
22403 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22404 {
22405 PyThreadState* __tstate = wxPyBeginAllowThreads();
22406 result = (wxItemKind)(arg1)->GetKind();
22407 wxPyEndAllowThreads(__tstate);
22408 if (PyErr_Occurred()) SWIG_fail;
22409 }
22410 resultobj = SWIG_From_int(static_cast< int >(result));
22411 return resultobj;
22412fail:
22413 return NULL;
d55e5bfc
RD
22414}
22415
22416
1bd55598
RD
22417SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22418 PyObject *resultobj = 0;
22419 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22420 bool result;
22421 void *argp1 = 0 ;
22422 int res1 = 0 ;
22423 PyObject *swig_obj[1] ;
22424
22425 if (!args) SWIG_fail;
22426 swig_obj[0] = args;
22427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22428 if (!SWIG_IsOK(res1)) {
22429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22430 }
22431 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22432 {
22433 PyThreadState* __tstate = wxPyBeginAllowThreads();
22434 result = (bool)(arg1)->IsEnabled();
22435 wxPyEndAllowThreads(__tstate);
22436 if (PyErr_Occurred()) SWIG_fail;
22437 }
22438 {
22439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22440 }
22441 return resultobj;
22442fail:
22443 return NULL;
d55e5bfc
RD
22444}
22445
22446
1bd55598
RD
22447SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22448 PyObject *resultobj = 0;
22449 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22450 bool result;
22451 void *argp1 = 0 ;
22452 int res1 = 0 ;
22453 PyObject *swig_obj[1] ;
22454
22455 if (!args) SWIG_fail;
22456 swig_obj[0] = args;
22457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22458 if (!SWIG_IsOK(res1)) {
22459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22460 }
22461 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22462 {
22463 PyThreadState* __tstate = wxPyBeginAllowThreads();
22464 result = (bool)(arg1)->IsToggled();
22465 wxPyEndAllowThreads(__tstate);
22466 if (PyErr_Occurred()) SWIG_fail;
22467 }
22468 {
22469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22470 }
22471 return resultobj;
22472fail:
22473 return NULL;
d55e5bfc
RD
22474}
22475
22476
1bd55598
RD
22477SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22478 PyObject *resultobj = 0;
22479 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22480 bool result;
22481 void *argp1 = 0 ;
22482 int res1 = 0 ;
22483 PyObject *swig_obj[1] ;
22484
22485 if (!args) SWIG_fail;
22486 swig_obj[0] = args;
22487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22488 if (!SWIG_IsOK(res1)) {
22489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22490 }
22491 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22492 {
22493 PyThreadState* __tstate = wxPyBeginAllowThreads();
22494 result = (bool)(arg1)->CanBeToggled();
22495 wxPyEndAllowThreads(__tstate);
22496 if (PyErr_Occurred()) SWIG_fail;
22497 }
22498 {
22499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22500 }
22501 return resultobj;
22502fail:
22503 return NULL;
d55e5bfc
RD
22504}
22505
22506
1bd55598
RD
22507SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22508 PyObject *resultobj = 0;
22509 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22510 wxBitmap *result = 0 ;
22511 void *argp1 = 0 ;
22512 int res1 = 0 ;
22513 PyObject *swig_obj[1] ;
22514
22515 if (!args) SWIG_fail;
22516 swig_obj[0] = args;
22517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22518 if (!SWIG_IsOK(res1)) {
22519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22520 }
22521 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22522 {
22523 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22524 {
1bd55598
RD
22525 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22526 result = (wxBitmap *) &_result_ref;
36ed4f51 22527 }
1bd55598
RD
22528 wxPyEndAllowThreads(__tstate);
22529 if (PyErr_Occurred()) SWIG_fail;
22530 }
22531 {
22532 wxBitmap* resultptr = new wxBitmap(*result);
22533 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22534 }
22535 return resultobj;
22536fail:
22537 return NULL;
d55e5bfc
RD
22538}
22539
22540
1bd55598
RD
22541SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22542 PyObject *resultobj = 0;
22543 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22544 wxBitmap *result = 0 ;
22545 void *argp1 = 0 ;
22546 int res1 = 0 ;
22547 PyObject *swig_obj[1] ;
22548
22549 if (!args) SWIG_fail;
22550 swig_obj[0] = args;
22551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22552 if (!SWIG_IsOK(res1)) {
22553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22554 }
22555 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22556 {
22557 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 22558 {
1bd55598
RD
22559 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22560 result = (wxBitmap *) &_result_ref;
d55e5bfc 22561 }
1bd55598
RD
22562 wxPyEndAllowThreads(__tstate);
22563 if (PyErr_Occurred()) SWIG_fail;
22564 }
22565 {
22566 wxBitmap* resultptr = new wxBitmap(*result);
22567 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22568 }
22569 return resultobj;
22570fail:
22571 return NULL;
d55e5bfc
RD
22572}
22573
22574
1bd55598
RD
22575SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22576 PyObject *resultobj = 0;
22577 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22578 wxBitmap result;
22579 void *argp1 = 0 ;
22580 int res1 = 0 ;
22581 PyObject *swig_obj[1] ;
22582
22583 if (!args) SWIG_fail;
22584 swig_obj[0] = args;
22585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22586 if (!SWIG_IsOK(res1)) {
22587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22588 }
22589 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22590 {
22591 PyThreadState* __tstate = wxPyBeginAllowThreads();
22592 result = (arg1)->GetBitmap();
22593 wxPyEndAllowThreads(__tstate);
22594 if (PyErr_Occurred()) SWIG_fail;
22595 }
22596 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22597 return resultobj;
22598fail:
22599 return NULL;
d55e5bfc
RD
22600}
22601
22602
1bd55598
RD
22603SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22604 PyObject *resultobj = 0;
22605 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22606 wxString result;
22607 void *argp1 = 0 ;
22608 int res1 = 0 ;
22609 PyObject *swig_obj[1] ;
22610
22611 if (!args) SWIG_fail;
22612 swig_obj[0] = args;
22613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22614 if (!SWIG_IsOK(res1)) {
22615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22616 }
22617 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22618 {
22619 PyThreadState* __tstate = wxPyBeginAllowThreads();
22620 result = (arg1)->GetLabel();
22621 wxPyEndAllowThreads(__tstate);
22622 if (PyErr_Occurred()) SWIG_fail;
22623 }
22624 {
22625#if wxUSE_UNICODE
22626 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22627#else
22628 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22629#endif
22630 }
22631 return resultobj;
22632fail:
22633 return NULL;
d55e5bfc
RD
22634}
22635
22636
1bd55598
RD
22637SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22638 PyObject *resultobj = 0;
22639 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22640 wxString result;
22641 void *argp1 = 0 ;
22642 int res1 = 0 ;
22643 PyObject *swig_obj[1] ;
22644
22645 if (!args) SWIG_fail;
22646 swig_obj[0] = args;
22647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22648 if (!SWIG_IsOK(res1)) {
22649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22650 }
22651 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22652 {
22653 PyThreadState* __tstate = wxPyBeginAllowThreads();
22654 result = (arg1)->GetShortHelp();
22655 wxPyEndAllowThreads(__tstate);
22656 if (PyErr_Occurred()) SWIG_fail;
22657 }
22658 {
22659#if wxUSE_UNICODE
22660 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22661#else
22662 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22663#endif
22664 }
22665 return resultobj;
22666fail:
22667 return NULL;
d55e5bfc
RD
22668}
22669
22670
1bd55598
RD
22671SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22672 PyObject *resultobj = 0;
22673 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22674 wxString result;
22675 void *argp1 = 0 ;
22676 int res1 = 0 ;
22677 PyObject *swig_obj[1] ;
22678
22679 if (!args) SWIG_fail;
22680 swig_obj[0] = args;
22681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22682 if (!SWIG_IsOK(res1)) {
22683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22684 }
22685 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22686 {
22687 PyThreadState* __tstate = wxPyBeginAllowThreads();
22688 result = (arg1)->GetLongHelp();
22689 wxPyEndAllowThreads(__tstate);
22690 if (PyErr_Occurred()) SWIG_fail;
22691 }
22692 {
22693#if wxUSE_UNICODE
22694 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22695#else
22696 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22697#endif
22698 }
22699 return resultobj;
22700fail:
22701 return NULL;
22702}
22703
22704
22705SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22706 PyObject *resultobj = 0;
22707 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22708 bool arg2 ;
22709 bool result;
22710 void *argp1 = 0 ;
22711 int res1 = 0 ;
22712 bool val2 ;
22713 int ecode2 = 0 ;
22714 PyObject * obj0 = 0 ;
22715 PyObject * obj1 = 0 ;
22716 char * kwnames[] = {
22717 (char *) "self",(char *) "enable", NULL
22718 };
22719
22720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
22721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22722 if (!SWIG_IsOK(res1)) {
22723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22724 }
22725 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22726 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22727 if (!SWIG_IsOK(ecode2)) {
22728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
22729 }
22730 arg2 = static_cast< bool >(val2);
22731 {
22732 PyThreadState* __tstate = wxPyBeginAllowThreads();
22733 result = (bool)(arg1)->Enable(arg2);
22734 wxPyEndAllowThreads(__tstate);
22735 if (PyErr_Occurred()) SWIG_fail;
22736 }
22737 {
22738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22739 }
22740 return resultobj;
22741fail:
22742 return NULL;
d55e5bfc
RD
22743}
22744
22745
1bd55598
RD
22746SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22747 PyObject *resultobj = 0;
22748 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22749 void *argp1 = 0 ;
22750 int res1 = 0 ;
22751 PyObject *swig_obj[1] ;
22752
22753 if (!args) SWIG_fail;
22754 swig_obj[0] = args;
22755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22756 if (!SWIG_IsOK(res1)) {
22757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22758 }
22759 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22760 {
22761 PyThreadState* __tstate = wxPyBeginAllowThreads();
22762 (arg1)->Toggle();
22763 wxPyEndAllowThreads(__tstate);
22764 if (PyErr_Occurred()) SWIG_fail;
22765 }
22766 resultobj = SWIG_Py_Void();
22767 return resultobj;
22768fail:
22769 return NULL;
22770}
22771
22772
22773SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22774 PyObject *resultobj = 0;
22775 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22776 bool arg2 ;
22777 bool result;
22778 void *argp1 = 0 ;
22779 int res1 = 0 ;
22780 bool val2 ;
22781 int ecode2 = 0 ;
22782 PyObject * obj0 = 0 ;
22783 PyObject * obj1 = 0 ;
22784 char * kwnames[] = {
22785 (char *) "self",(char *) "toggle", NULL
22786 };
22787
22788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
22789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22790 if (!SWIG_IsOK(res1)) {
22791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22792 }
22793 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22794 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22795 if (!SWIG_IsOK(ecode2)) {
22796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
22797 }
22798 arg2 = static_cast< bool >(val2);
22799 {
22800 PyThreadState* __tstate = wxPyBeginAllowThreads();
22801 result = (bool)(arg1)->SetToggle(arg2);
22802 wxPyEndAllowThreads(__tstate);
22803 if (PyErr_Occurred()) SWIG_fail;
22804 }
22805 {
22806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22807 }
22808 return resultobj;
22809fail:
22810 return NULL;
22811}
22812
22813
22814SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22815 PyObject *resultobj = 0;
22816 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22817 wxString *arg2 = 0 ;
22818 bool result;
22819 void *argp1 = 0 ;
22820 int res1 = 0 ;
22821 bool temp2 = false ;
22822 PyObject * obj0 = 0 ;
22823 PyObject * obj1 = 0 ;
22824 char * kwnames[] = {
22825 (char *) "self",(char *) "help", NULL
22826 };
22827
22828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
22829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22830 if (!SWIG_IsOK(res1)) {
22831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22832 }
22833 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22834 {
22835 arg2 = wxString_in_helper(obj1);
22836 if (arg2 == NULL) SWIG_fail;
22837 temp2 = true;
22838 }
22839 {
22840 PyThreadState* __tstate = wxPyBeginAllowThreads();
22841 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
22842 wxPyEndAllowThreads(__tstate);
22843 if (PyErr_Occurred()) SWIG_fail;
22844 }
22845 {
22846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22847 }
22848 {
22849 if (temp2)
22850 delete arg2;
22851 }
22852 return resultobj;
22853fail:
22854 {
22855 if (temp2)
22856 delete arg2;
22857 }
22858 return NULL;
22859}
22860
22861
22862SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22863 PyObject *resultobj = 0;
22864 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22865 wxString *arg2 = 0 ;
22866 bool result;
22867 void *argp1 = 0 ;
22868 int res1 = 0 ;
22869 bool temp2 = false ;
22870 PyObject * obj0 = 0 ;
22871 PyObject * obj1 = 0 ;
22872 char * kwnames[] = {
22873 (char *) "self",(char *) "help", NULL
22874 };
22875
22876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
22877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22878 if (!SWIG_IsOK(res1)) {
22879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22880 }
22881 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22882 {
22883 arg2 = wxString_in_helper(obj1);
22884 if (arg2 == NULL) SWIG_fail;
22885 temp2 = true;
22886 }
22887 {
22888 PyThreadState* __tstate = wxPyBeginAllowThreads();
22889 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
22890 wxPyEndAllowThreads(__tstate);
22891 if (PyErr_Occurred()) SWIG_fail;
22892 }
22893 {
22894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22895 }
22896 {
22897 if (temp2)
22898 delete arg2;
22899 }
22900 return resultobj;
22901fail:
22902 {
22903 if (temp2)
22904 delete arg2;
22905 }
22906 return NULL;
22907}
22908
22909
22910SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22911 PyObject *resultobj = 0;
22912 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22913 wxBitmap *arg2 = 0 ;
22914 void *argp1 = 0 ;
22915 int res1 = 0 ;
22916 void *argp2 = 0 ;
22917 int res2 = 0 ;
22918 PyObject * obj0 = 0 ;
22919 PyObject * obj1 = 0 ;
22920 char * kwnames[] = {
22921 (char *) "self",(char *) "bmp", NULL
22922 };
22923
22924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
22925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22926 if (!SWIG_IsOK(res1)) {
22927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22928 }
22929 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22930 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22931 if (!SWIG_IsOK(res2)) {
22932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22933 }
22934 if (!argp2) {
22935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22936 }
22937 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22938 {
22939 PyThreadState* __tstate = wxPyBeginAllowThreads();
22940 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
22941 wxPyEndAllowThreads(__tstate);
22942 if (PyErr_Occurred()) SWIG_fail;
22943 }
22944 resultobj = SWIG_Py_Void();
22945 return resultobj;
22946fail:
22947 return NULL;
22948}
22949
22950
22951SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22952 PyObject *resultobj = 0;
22953 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22954 wxBitmap *arg2 = 0 ;
22955 void *argp1 = 0 ;
22956 int res1 = 0 ;
22957 void *argp2 = 0 ;
22958 int res2 = 0 ;
22959 PyObject * obj0 = 0 ;
22960 PyObject * obj1 = 0 ;
22961 char * kwnames[] = {
22962 (char *) "self",(char *) "bmp", NULL
22963 };
22964
22965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
22966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22967 if (!SWIG_IsOK(res1)) {
22968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22969 }
22970 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22971 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22972 if (!SWIG_IsOK(res2)) {
22973 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22974 }
22975 if (!argp2) {
22976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22977 }
22978 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22979 {
22980 PyThreadState* __tstate = wxPyBeginAllowThreads();
22981 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
22982 wxPyEndAllowThreads(__tstate);
22983 if (PyErr_Occurred()) SWIG_fail;
22984 }
22985 resultobj = SWIG_Py_Void();
22986 return resultobj;
22987fail:
22988 return NULL;
22989}
22990
22991
22992SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22993 PyObject *resultobj = 0;
22994 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22995 wxString *arg2 = 0 ;
22996 void *argp1 = 0 ;
22997 int res1 = 0 ;
22998 bool temp2 = false ;
22999 PyObject * obj0 = 0 ;
23000 PyObject * obj1 = 0 ;
23001 char * kwnames[] = {
23002 (char *) "self",(char *) "label", NULL
23003 };
23004
23005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23007 if (!SWIG_IsOK(res1)) {
23008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23009 }
23010 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23011 {
23012 arg2 = wxString_in_helper(obj1);
23013 if (arg2 == NULL) SWIG_fail;
23014 temp2 = true;
23015 }
23016 {
23017 PyThreadState* __tstate = wxPyBeginAllowThreads();
23018 (arg1)->SetLabel((wxString const &)*arg2);
23019 wxPyEndAllowThreads(__tstate);
23020 if (PyErr_Occurred()) SWIG_fail;
23021 }
23022 resultobj = SWIG_Py_Void();
23023 {
23024 if (temp2)
23025 delete arg2;
23026 }
23027 return resultobj;
23028fail:
23029 {
23030 if (temp2)
23031 delete arg2;
23032 }
23033 return NULL;
d55e5bfc
RD
23034}
23035
23036
1bd55598
RD
23037SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23038 PyObject *resultobj = 0;
23039 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23040 void *argp1 = 0 ;
23041 int res1 = 0 ;
23042 PyObject *swig_obj[1] ;
23043
23044 if (!args) SWIG_fail;
23045 swig_obj[0] = args;
23046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23047 if (!SWIG_IsOK(res1)) {
23048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23049 }
23050 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23051 {
23052 PyThreadState* __tstate = wxPyBeginAllowThreads();
23053 (arg1)->Detach();
23054 wxPyEndAllowThreads(__tstate);
23055 if (PyErr_Occurred()) SWIG_fail;
23056 }
23057 resultobj = SWIG_Py_Void();
23058 return resultobj;
23059fail:
23060 return NULL;
23061}
23062
23063
23064SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23065 PyObject *resultobj = 0;
23066 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23067 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23068 void *argp1 = 0 ;
23069 int res1 = 0 ;
23070 void *argp2 = 0 ;
23071 int res2 = 0 ;
23072 PyObject * obj0 = 0 ;
23073 PyObject * obj1 = 0 ;
23074 char * kwnames[] = {
23075 (char *) "self",(char *) "tbar", NULL
23076 };
23077
23078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23080 if (!SWIG_IsOK(res1)) {
23081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23082 }
23083 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23084 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23085 if (!SWIG_IsOK(res2)) {
23086 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23087 }
23088 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23089 {
23090 PyThreadState* __tstate = wxPyBeginAllowThreads();
23091 (arg1)->Attach(arg2);
23092 wxPyEndAllowThreads(__tstate);
23093 if (PyErr_Occurred()) SWIG_fail;
23094 }
23095 resultobj = SWIG_Py_Void();
23096 return resultobj;
23097fail:
23098 return NULL;
d55e5bfc
RD
23099}
23100
23101
1bd55598
RD
23102SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23103 PyObject *resultobj = 0;
23104 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23105 PyObject *result = 0 ;
23106 void *argp1 = 0 ;
23107 int res1 = 0 ;
23108 PyObject *swig_obj[1] ;
23109
23110 if (!args) SWIG_fail;
23111 swig_obj[0] = args;
23112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23113 if (!SWIG_IsOK(res1)) {
23114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23115 }
23116 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23117 {
23118 PyThreadState* __tstate = wxPyBeginAllowThreads();
23119 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23120 wxPyEndAllowThreads(__tstate);
23121 if (PyErr_Occurred()) SWIG_fail;
23122 }
23123 resultobj = result;
23124 return resultobj;
23125fail:
23126 return NULL;
23127}
23128
23129
23130SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23131 PyObject *resultobj = 0;
23132 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23133 PyObject *arg2 = (PyObject *) 0 ;
23134 void *argp1 = 0 ;
23135 int res1 = 0 ;
23136 PyObject * obj0 = 0 ;
23137 PyObject * obj1 = 0 ;
23138 char * kwnames[] = {
23139 (char *) "self",(char *) "clientData", NULL
23140 };
23141
23142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23144 if (!SWIG_IsOK(res1)) {
23145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23146 }
23147 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23148 arg2 = obj1;
23149 {
23150 PyThreadState* __tstate = wxPyBeginAllowThreads();
23151 wxToolBarToolBase_SetClientData(arg1,arg2);
23152 wxPyEndAllowThreads(__tstate);
23153 if (PyErr_Occurred()) SWIG_fail;
23154 }
23155 resultobj = SWIG_Py_Void();
23156 return resultobj;
23157fail:
23158 return NULL;
23159}
23160
23161
23162SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23163 PyObject *obj;
23164 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23165 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23166 return SWIG_Py_Void();
23167}
23168
23169SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23170 PyObject *resultobj = 0;
23171 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23172 int arg2 ;
23173 wxString *arg3 = 0 ;
23174 wxBitmap *arg4 = 0 ;
23175 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23176 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23177 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23178 wxString const &arg7_defvalue = wxPyEmptyString ;
23179 wxString *arg7 = (wxString *) &arg7_defvalue ;
23180 wxString const &arg8_defvalue = wxPyEmptyString ;
23181 wxString *arg8 = (wxString *) &arg8_defvalue ;
23182 PyObject *arg9 = (PyObject *) NULL ;
23183 wxToolBarToolBase *result = 0 ;
23184 void *argp1 = 0 ;
23185 int res1 = 0 ;
23186 int val2 ;
23187 int ecode2 = 0 ;
23188 bool temp3 = false ;
23189 void *argp4 = 0 ;
23190 int res4 = 0 ;
23191 void *argp5 = 0 ;
23192 int res5 = 0 ;
23193 int val6 ;
23194 int ecode6 = 0 ;
23195 bool temp7 = false ;
23196 bool temp8 = false ;
23197 PyObject * obj0 = 0 ;
23198 PyObject * obj1 = 0 ;
23199 PyObject * obj2 = 0 ;
23200 PyObject * obj3 = 0 ;
23201 PyObject * obj4 = 0 ;
23202 PyObject * obj5 = 0 ;
23203 PyObject * obj6 = 0 ;
23204 PyObject * obj7 = 0 ;
23205 PyObject * obj8 = 0 ;
23206 char * kwnames[] = {
23207 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23208 };
23209
23210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23212 if (!SWIG_IsOK(res1)) {
23213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23214 }
23215 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23216 ecode2 = SWIG_AsVal_int(obj1, &val2);
23217 if (!SWIG_IsOK(ecode2)) {
23218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23219 }
23220 arg2 = static_cast< int >(val2);
23221 {
23222 arg3 = wxString_in_helper(obj2);
23223 if (arg3 == NULL) SWIG_fail;
23224 temp3 = true;
23225 }
23226 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23227 if (!SWIG_IsOK(res4)) {
23228 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23229 }
23230 if (!argp4) {
23231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23232 }
23233 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23234 if (obj4) {
23235 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23236 if (!SWIG_IsOK(res5)) {
23237 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
36ed4f51 23238 }
1bd55598
RD
23239 if (!argp5) {
23240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
f20a2e1f 23241 }
1bd55598
RD
23242 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23243 }
23244 if (obj5) {
23245 ecode6 = SWIG_AsVal_int(obj5, &val6);
23246 if (!SWIG_IsOK(ecode6)) {
23247 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23248 }
23249 arg6 = static_cast< wxItemKind >(val6);
23250 }
23251 if (obj6) {
f20a2e1f 23252 {
1bd55598
RD
23253 arg7 = wxString_in_helper(obj6);
23254 if (arg7 == NULL) SWIG_fail;
23255 temp7 = true;
f20a2e1f 23256 }
1bd55598
RD
23257 }
23258 if (obj7) {
f20a2e1f 23259 {
1bd55598
RD
23260 arg8 = wxString_in_helper(obj7);
23261 if (arg8 == NULL) SWIG_fail;
23262 temp8 = true;
d55e5bfc 23263 }
1bd55598
RD
23264 }
23265 if (obj8) {
23266 arg9 = obj8;
23267 }
23268 {
23269 PyThreadState* __tstate = wxPyBeginAllowThreads();
23270 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23271 wxPyEndAllowThreads(__tstate);
23272 if (PyErr_Occurred()) SWIG_fail;
23273 }
23274 {
23275 resultobj = wxPyMake_wxObject(result, (bool)0);
23276 }
23277 {
23278 if (temp3)
23279 delete arg3;
23280 }
23281 {
23282 if (temp7)
23283 delete arg7;
23284 }
23285 {
23286 if (temp8)
23287 delete arg8;
23288 }
23289 return resultobj;
23290fail:
23291 {
23292 if (temp3)
23293 delete arg3;
23294 }
23295 {
23296 if (temp7)
23297 delete arg7;
23298 }
23299 {
23300 if (temp8)
23301 delete arg8;
23302 }
23303 return NULL;
23304}
23305
23306
23307SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23308 PyObject *resultobj = 0;
23309 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23310 size_t arg2 ;
23311 int arg3 ;
23312 wxString *arg4 = 0 ;
23313 wxBitmap *arg5 = 0 ;
23314 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23315 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23316 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23317 wxString const &arg8_defvalue = wxPyEmptyString ;
23318 wxString *arg8 = (wxString *) &arg8_defvalue ;
23319 wxString const &arg9_defvalue = wxPyEmptyString ;
23320 wxString *arg9 = (wxString *) &arg9_defvalue ;
23321 PyObject *arg10 = (PyObject *) NULL ;
23322 wxToolBarToolBase *result = 0 ;
23323 void *argp1 = 0 ;
23324 int res1 = 0 ;
23325 size_t val2 ;
23326 int ecode2 = 0 ;
23327 int val3 ;
23328 int ecode3 = 0 ;
23329 bool temp4 = false ;
23330 void *argp5 = 0 ;
23331 int res5 = 0 ;
23332 void *argp6 = 0 ;
23333 int res6 = 0 ;
23334 int val7 ;
23335 int ecode7 = 0 ;
23336 bool temp8 = false ;
23337 bool temp9 = false ;
23338 PyObject * obj0 = 0 ;
23339 PyObject * obj1 = 0 ;
23340 PyObject * obj2 = 0 ;
23341 PyObject * obj3 = 0 ;
23342 PyObject * obj4 = 0 ;
23343 PyObject * obj5 = 0 ;
23344 PyObject * obj6 = 0 ;
23345 PyObject * obj7 = 0 ;
23346 PyObject * obj8 = 0 ;
23347 PyObject * obj9 = 0 ;
23348 char * kwnames[] = {
23349 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23350 };
23351
23352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23354 if (!SWIG_IsOK(res1)) {
23355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23356 }
23357 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23358 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23359 if (!SWIG_IsOK(ecode2)) {
23360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23361 }
23362 arg2 = static_cast< size_t >(val2);
23363 ecode3 = SWIG_AsVal_int(obj2, &val3);
23364 if (!SWIG_IsOK(ecode3)) {
23365 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23366 }
23367 arg3 = static_cast< int >(val3);
23368 {
23369 arg4 = wxString_in_helper(obj3);
23370 if (arg4 == NULL) SWIG_fail;
23371 temp4 = true;
23372 }
23373 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23374 if (!SWIG_IsOK(res5)) {
23375 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23376 }
23377 if (!argp5) {
23378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23379 }
23380 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23381 if (obj5) {
23382 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23383 if (!SWIG_IsOK(res6)) {
23384 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23385 }
1bd55598
RD
23386 if (!argp6) {
23387 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23388 }
1bd55598
RD
23389 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23390 }
23391 if (obj6) {
23392 ecode7 = SWIG_AsVal_int(obj6, &val7);
23393 if (!SWIG_IsOK(ecode7)) {
23394 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23395 }
23396 arg7 = static_cast< wxItemKind >(val7);
23397 }
23398 if (obj7) {
d55e5bfc 23399 {
1bd55598
RD
23400 arg8 = wxString_in_helper(obj7);
23401 if (arg8 == NULL) SWIG_fail;
23402 temp8 = true;
d55e5bfc 23403 }
1bd55598
RD
23404 }
23405 if (obj8) {
d55e5bfc 23406 {
1bd55598
RD
23407 arg9 = wxString_in_helper(obj8);
23408 if (arg9 == NULL) SWIG_fail;
23409 temp9 = true;
d55e5bfc 23410 }
1bd55598
RD
23411 }
23412 if (obj9) {
23413 arg10 = obj9;
23414 }
23415 {
23416 PyThreadState* __tstate = wxPyBeginAllowThreads();
23417 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23418 wxPyEndAllowThreads(__tstate);
23419 if (PyErr_Occurred()) SWIG_fail;
23420 }
23421 {
23422 resultobj = wxPyMake_wxObject(result, (bool)0);
23423 }
23424 {
23425 if (temp4)
23426 delete arg4;
23427 }
23428 {
23429 if (temp8)
23430 delete arg8;
23431 }
23432 {
23433 if (temp9)
23434 delete arg9;
23435 }
23436 return resultobj;
23437fail:
23438 {
23439 if (temp4)
23440 delete arg4;
23441 }
23442 {
23443 if (temp8)
23444 delete arg8;
23445 }
23446 {
23447 if (temp9)
23448 delete arg9;
23449 }
23450 return NULL;
23451}
23452
23453
23454SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23455 PyObject *resultobj = 0;
23456 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23457 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23458 wxToolBarToolBase *result = 0 ;
23459 void *argp1 = 0 ;
23460 int res1 = 0 ;
23461 void *argp2 = 0 ;
23462 int res2 = 0 ;
23463 PyObject * obj0 = 0 ;
23464 PyObject * obj1 = 0 ;
23465 char * kwnames[] = {
23466 (char *) "self",(char *) "tool", NULL
23467 };
23468
23469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23471 if (!SWIG_IsOK(res1)) {
23472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23473 }
23474 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23475 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23476 if (!SWIG_IsOK(res2)) {
23477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23478 }
23479 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23480 {
23481 PyThreadState* __tstate = wxPyBeginAllowThreads();
23482 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23483 wxPyEndAllowThreads(__tstate);
23484 if (PyErr_Occurred()) SWIG_fail;
23485 }
23486 {
23487 resultobj = wxPyMake_wxObject(result, (bool)0);
23488 }
23489 return resultobj;
23490fail:
23491 return NULL;
23492}
23493
23494
23495SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23496 PyObject *resultobj = 0;
23497 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23498 size_t arg2 ;
23499 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23500 wxToolBarToolBase *result = 0 ;
23501 void *argp1 = 0 ;
23502 int res1 = 0 ;
23503 size_t val2 ;
23504 int ecode2 = 0 ;
23505 void *argp3 = 0 ;
23506 int res3 = 0 ;
23507 PyObject * obj0 = 0 ;
23508 PyObject * obj1 = 0 ;
23509 PyObject * obj2 = 0 ;
23510 char * kwnames[] = {
23511 (char *) "self",(char *) "pos",(char *) "tool", NULL
23512 };
23513
23514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23516 if (!SWIG_IsOK(res1)) {
23517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23518 }
23519 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23520 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23521 if (!SWIG_IsOK(ecode2)) {
23522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23523 }
23524 arg2 = static_cast< size_t >(val2);
23525 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23526 if (!SWIG_IsOK(res3)) {
23527 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23528 }
23529 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23530 {
23531 PyThreadState* __tstate = wxPyBeginAllowThreads();
23532 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23533 wxPyEndAllowThreads(__tstate);
23534 if (PyErr_Occurred()) SWIG_fail;
23535 }
23536 {
23537 resultobj = wxPyMake_wxObject(result, (bool)0);
23538 }
23539 return resultobj;
23540fail:
23541 return NULL;
23542}
23543
23544
23545SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23546 PyObject *resultobj = 0;
23547 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23548 wxControl *arg2 = (wxControl *) 0 ;
23549 wxToolBarToolBase *result = 0 ;
23550 void *argp1 = 0 ;
23551 int res1 = 0 ;
23552 void *argp2 = 0 ;
23553 int res2 = 0 ;
23554 PyObject * obj0 = 0 ;
23555 PyObject * obj1 = 0 ;
23556 char * kwnames[] = {
23557 (char *) "self",(char *) "control", NULL
23558 };
23559
23560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23562 if (!SWIG_IsOK(res1)) {
23563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23564 }
23565 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23567 if (!SWIG_IsOK(res2)) {
23568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23569 }
23570 arg2 = reinterpret_cast< wxControl * >(argp2);
23571 {
23572 PyThreadState* __tstate = wxPyBeginAllowThreads();
23573 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23574 wxPyEndAllowThreads(__tstate);
23575 if (PyErr_Occurred()) SWIG_fail;
23576 }
23577 {
23578 resultobj = wxPyMake_wxObject(result, (bool)0);
23579 }
23580 return resultobj;
23581fail:
23582 return NULL;
23583}
23584
23585
23586SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23587 PyObject *resultobj = 0;
23588 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23589 size_t arg2 ;
23590 wxControl *arg3 = (wxControl *) 0 ;
23591 wxToolBarToolBase *result = 0 ;
23592 void *argp1 = 0 ;
23593 int res1 = 0 ;
23594 size_t val2 ;
23595 int ecode2 = 0 ;
23596 void *argp3 = 0 ;
23597 int res3 = 0 ;
23598 PyObject * obj0 = 0 ;
23599 PyObject * obj1 = 0 ;
23600 PyObject * obj2 = 0 ;
23601 char * kwnames[] = {
23602 (char *) "self",(char *) "pos",(char *) "control", NULL
23603 };
23604
23605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23607 if (!SWIG_IsOK(res1)) {
23608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23609 }
23610 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23611 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23612 if (!SWIG_IsOK(ecode2)) {
23613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23614 }
23615 arg2 = static_cast< size_t >(val2);
23616 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23617 if (!SWIG_IsOK(res3)) {
23618 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23619 }
23620 arg3 = reinterpret_cast< wxControl * >(argp3);
23621 {
23622 PyThreadState* __tstate = wxPyBeginAllowThreads();
23623 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23624 wxPyEndAllowThreads(__tstate);
23625 if (PyErr_Occurred()) SWIG_fail;
23626 }
23627 {
23628 resultobj = wxPyMake_wxObject(result, (bool)0);
23629 }
23630 return resultobj;
23631fail:
23632 return NULL;
23633}
23634
23635
23636SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23637 PyObject *resultobj = 0;
23638 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23639 int arg2 ;
23640 wxControl *result = 0 ;
23641 void *argp1 = 0 ;
23642 int res1 = 0 ;
23643 int val2 ;
23644 int ecode2 = 0 ;
23645 PyObject * obj0 = 0 ;
23646 PyObject * obj1 = 0 ;
23647 char * kwnames[] = {
23648 (char *) "self",(char *) "id", NULL
23649 };
23650
23651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23653 if (!SWIG_IsOK(res1)) {
23654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23655 }
23656 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23657 ecode2 = SWIG_AsVal_int(obj1, &val2);
23658 if (!SWIG_IsOK(ecode2)) {
23659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23660 }
23661 arg2 = static_cast< int >(val2);
23662 {
23663 PyThreadState* __tstate = wxPyBeginAllowThreads();
23664 result = (wxControl *)(arg1)->FindControl(arg2);
23665 wxPyEndAllowThreads(__tstate);
23666 if (PyErr_Occurred()) SWIG_fail;
23667 }
23668 {
23669 resultobj = wxPyMake_wxObject(result, 0);
23670 }
23671 return resultobj;
23672fail:
23673 return NULL;
d55e5bfc
RD
23674}
23675
23676
1bd55598
RD
23677SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23678 PyObject *resultobj = 0;
23679 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23680 wxToolBarToolBase *result = 0 ;
23681 void *argp1 = 0 ;
23682 int res1 = 0 ;
23683 PyObject *swig_obj[1] ;
23684
23685 if (!args) SWIG_fail;
23686 swig_obj[0] = args;
23687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23688 if (!SWIG_IsOK(res1)) {
23689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23690 }
23691 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23692 {
23693 PyThreadState* __tstate = wxPyBeginAllowThreads();
23694 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23695 wxPyEndAllowThreads(__tstate);
23696 if (PyErr_Occurred()) SWIG_fail;
23697 }
23698 {
23699 resultobj = wxPyMake_wxObject(result, (bool)0);
23700 }
23701 return resultobj;
23702fail:
23703 return NULL;
23704}
23705
23706
23707SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23708 PyObject *resultobj = 0;
23709 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23710 size_t arg2 ;
23711 wxToolBarToolBase *result = 0 ;
23712 void *argp1 = 0 ;
23713 int res1 = 0 ;
23714 size_t val2 ;
23715 int ecode2 = 0 ;
23716 PyObject * obj0 = 0 ;
23717 PyObject * obj1 = 0 ;
23718 char * kwnames[] = {
23719 (char *) "self",(char *) "pos", NULL
23720 };
23721
23722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
23723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23724 if (!SWIG_IsOK(res1)) {
23725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23726 }
23727 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23728 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23729 if (!SWIG_IsOK(ecode2)) {
23730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
23731 }
23732 arg2 = static_cast< size_t >(val2);
23733 {
23734 PyThreadState* __tstate = wxPyBeginAllowThreads();
23735 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
23736 wxPyEndAllowThreads(__tstate);
23737 if (PyErr_Occurred()) SWIG_fail;
23738 }
23739 {
23740 resultobj = wxPyMake_wxObject(result, (bool)0);
23741 }
23742 return resultobj;
23743fail:
23744 return NULL;
23745}
23746
23747
23748SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23749 PyObject *resultobj = 0;
23750 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23751 int arg2 ;
23752 wxToolBarToolBase *result = 0 ;
23753 void *argp1 = 0 ;
23754 int res1 = 0 ;
23755 int val2 ;
23756 int ecode2 = 0 ;
23757 PyObject * obj0 = 0 ;
23758 PyObject * obj1 = 0 ;
23759 char * kwnames[] = {
23760 (char *) "self",(char *) "id", NULL
23761 };
23762
23763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
23764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23765 if (!SWIG_IsOK(res1)) {
23766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23767 }
23768 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23769 ecode2 = SWIG_AsVal_int(obj1, &val2);
23770 if (!SWIG_IsOK(ecode2)) {
23771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
23772 }
23773 arg2 = static_cast< int >(val2);
23774 {
23775 PyThreadState* __tstate = wxPyBeginAllowThreads();
23776 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
23777 wxPyEndAllowThreads(__tstate);
23778 if (PyErr_Occurred()) SWIG_fail;
23779 }
23780 {
23781 resultobj = wxPyMake_wxObject(result, (bool)0);
23782 }
23783 return resultobj;
23784fail:
23785 return NULL;
23786}
23787
23788
23789SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23790 PyObject *resultobj = 0;
23791 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23792 size_t arg2 ;
23793 bool result;
23794 void *argp1 = 0 ;
23795 int res1 = 0 ;
23796 size_t val2 ;
23797 int ecode2 = 0 ;
23798 PyObject * obj0 = 0 ;
23799 PyObject * obj1 = 0 ;
23800 char * kwnames[] = {
23801 (char *) "self",(char *) "pos", NULL
23802 };
23803
23804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
23805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23806 if (!SWIG_IsOK(res1)) {
23807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23808 }
23809 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23810 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23811 if (!SWIG_IsOK(ecode2)) {
23812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
23813 }
23814 arg2 = static_cast< size_t >(val2);
23815 {
23816 PyThreadState* __tstate = wxPyBeginAllowThreads();
23817 result = (bool)(arg1)->DeleteToolByPos(arg2);
23818 wxPyEndAllowThreads(__tstate);
23819 if (PyErr_Occurred()) SWIG_fail;
23820 }
23821 {
23822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23823 }
23824 return resultobj;
23825fail:
23826 return NULL;
23827}
23828
23829
23830SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23831 PyObject *resultobj = 0;
23832 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23833 int arg2 ;
23834 bool result;
23835 void *argp1 = 0 ;
23836 int res1 = 0 ;
23837 int val2 ;
23838 int ecode2 = 0 ;
23839 PyObject * obj0 = 0 ;
23840 PyObject * obj1 = 0 ;
23841 char * kwnames[] = {
23842 (char *) "self",(char *) "id", NULL
23843 };
23844
23845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
23846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23847 if (!SWIG_IsOK(res1)) {
23848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23849 }
23850 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23851 ecode2 = SWIG_AsVal_int(obj1, &val2);
23852 if (!SWIG_IsOK(ecode2)) {
23853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
23854 }
23855 arg2 = static_cast< int >(val2);
23856 {
23857 PyThreadState* __tstate = wxPyBeginAllowThreads();
23858 result = (bool)(arg1)->DeleteTool(arg2);
23859 wxPyEndAllowThreads(__tstate);
23860 if (PyErr_Occurred()) SWIG_fail;
23861 }
23862 {
23863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23864 }
23865 return resultobj;
23866fail:
23867 return NULL;
d55e5bfc
RD
23868}
23869
23870
1bd55598
RD
23871SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23872 PyObject *resultobj = 0;
23873 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23874 void *argp1 = 0 ;
23875 int res1 = 0 ;
23876 PyObject *swig_obj[1] ;
23877
23878 if (!args) SWIG_fail;
23879 swig_obj[0] = args;
23880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23881 if (!SWIG_IsOK(res1)) {
23882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23883 }
23884 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23885 {
23886 PyThreadState* __tstate = wxPyBeginAllowThreads();
23887 (arg1)->ClearTools();
23888 wxPyEndAllowThreads(__tstate);
23889 if (PyErr_Occurred()) SWIG_fail;
23890 }
23891 resultobj = SWIG_Py_Void();
23892 return resultobj;
23893fail:
23894 return NULL;
d55e5bfc
RD
23895}
23896
23897
1bd55598
RD
23898SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23899 PyObject *resultobj = 0;
23900 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23901 bool result;
23902 void *argp1 = 0 ;
23903 int res1 = 0 ;
23904 PyObject *swig_obj[1] ;
23905
23906 if (!args) SWIG_fail;
23907 swig_obj[0] = args;
23908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23909 if (!SWIG_IsOK(res1)) {
23910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23911 }
23912 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23913 {
23914 PyThreadState* __tstate = wxPyBeginAllowThreads();
23915 result = (bool)(arg1)->Realize();
23916 wxPyEndAllowThreads(__tstate);
23917 if (PyErr_Occurred()) SWIG_fail;
23918 }
23919 {
23920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23921 }
23922 return resultobj;
23923fail:
23924 return NULL;
23925}
23926
23927
23928SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23929 PyObject *resultobj = 0;
23930 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23931 int arg2 ;
23932 bool arg3 ;
23933 void *argp1 = 0 ;
23934 int res1 = 0 ;
23935 int val2 ;
23936 int ecode2 = 0 ;
23937 bool val3 ;
23938 int ecode3 = 0 ;
23939 PyObject * obj0 = 0 ;
23940 PyObject * obj1 = 0 ;
23941 PyObject * obj2 = 0 ;
23942 char * kwnames[] = {
23943 (char *) "self",(char *) "id",(char *) "enable", NULL
23944 };
23945
23946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23948 if (!SWIG_IsOK(res1)) {
23949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23950 }
23951 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23952 ecode2 = SWIG_AsVal_int(obj1, &val2);
23953 if (!SWIG_IsOK(ecode2)) {
23954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
23955 }
23956 arg2 = static_cast< int >(val2);
23957 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23958 if (!SWIG_IsOK(ecode3)) {
23959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
23960 }
23961 arg3 = static_cast< bool >(val3);
23962 {
23963 PyThreadState* __tstate = wxPyBeginAllowThreads();
23964 (arg1)->EnableTool(arg2,arg3);
23965 wxPyEndAllowThreads(__tstate);
23966 if (PyErr_Occurred()) SWIG_fail;
23967 }
23968 resultobj = SWIG_Py_Void();
23969 return resultobj;
23970fail:
23971 return NULL;
23972}
23973
23974
23975SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23976 PyObject *resultobj = 0;
23977 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23978 int arg2 ;
23979 bool arg3 ;
23980 void *argp1 = 0 ;
23981 int res1 = 0 ;
23982 int val2 ;
23983 int ecode2 = 0 ;
23984 bool val3 ;
23985 int ecode3 = 0 ;
23986 PyObject * obj0 = 0 ;
23987 PyObject * obj1 = 0 ;
23988 PyObject * obj2 = 0 ;
23989 char * kwnames[] = {
23990 (char *) "self",(char *) "id",(char *) "toggle", NULL
23991 };
23992
23993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23995 if (!SWIG_IsOK(res1)) {
23996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23997 }
23998 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23999 ecode2 = SWIG_AsVal_int(obj1, &val2);
24000 if (!SWIG_IsOK(ecode2)) {
24001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24002 }
24003 arg2 = static_cast< int >(val2);
24004 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24005 if (!SWIG_IsOK(ecode3)) {
24006 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24007 }
24008 arg3 = static_cast< bool >(val3);
24009 {
24010 PyThreadState* __tstate = wxPyBeginAllowThreads();
24011 (arg1)->ToggleTool(arg2,arg3);
24012 wxPyEndAllowThreads(__tstate);
24013 if (PyErr_Occurred()) SWIG_fail;
24014 }
24015 resultobj = SWIG_Py_Void();
24016 return resultobj;
24017fail:
24018 return NULL;
24019}
24020
24021
24022SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24023 PyObject *resultobj = 0;
24024 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24025 int arg2 ;
24026 bool arg3 ;
24027 void *argp1 = 0 ;
24028 int res1 = 0 ;
24029 int val2 ;
24030 int ecode2 = 0 ;
24031 bool val3 ;
24032 int ecode3 = 0 ;
24033 PyObject * obj0 = 0 ;
24034 PyObject * obj1 = 0 ;
24035 PyObject * obj2 = 0 ;
24036 char * kwnames[] = {
24037 (char *) "self",(char *) "id",(char *) "toggle", NULL
24038 };
24039
24040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24042 if (!SWIG_IsOK(res1)) {
24043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24044 }
24045 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24046 ecode2 = SWIG_AsVal_int(obj1, &val2);
24047 if (!SWIG_IsOK(ecode2)) {
24048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24049 }
24050 arg2 = static_cast< int >(val2);
24051 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24052 if (!SWIG_IsOK(ecode3)) {
24053 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24054 }
24055 arg3 = static_cast< bool >(val3);
24056 {
24057 PyThreadState* __tstate = wxPyBeginAllowThreads();
24058 (arg1)->SetToggle(arg2,arg3);
24059 wxPyEndAllowThreads(__tstate);
24060 if (PyErr_Occurred()) SWIG_fail;
24061 }
24062 resultobj = SWIG_Py_Void();
24063 return resultobj;
24064fail:
24065 return NULL;
24066}
24067
24068
24069SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24070 PyObject *resultobj = 0;
24071 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24072 int arg2 ;
24073 PyObject *result = 0 ;
24074 void *argp1 = 0 ;
24075 int res1 = 0 ;
24076 int val2 ;
24077 int ecode2 = 0 ;
24078 PyObject * obj0 = 0 ;
24079 PyObject * obj1 = 0 ;
24080 char * kwnames[] = {
24081 (char *) "self",(char *) "id", NULL
24082 };
24083
24084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24086 if (!SWIG_IsOK(res1)) {
24087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24088 }
24089 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24090 ecode2 = SWIG_AsVal_int(obj1, &val2);
24091 if (!SWIG_IsOK(ecode2)) {
24092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24093 }
24094 arg2 = static_cast< int >(val2);
24095 {
24096 PyThreadState* __tstate = wxPyBeginAllowThreads();
24097 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24098 wxPyEndAllowThreads(__tstate);
24099 if (PyErr_Occurred()) SWIG_fail;
24100 }
24101 resultobj = result;
24102 return resultobj;
24103fail:
24104 return NULL;
24105}
24106
24107
24108SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24109 PyObject *resultobj = 0;
24110 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24111 int arg2 ;
24112 PyObject *arg3 = (PyObject *) 0 ;
24113 void *argp1 = 0 ;
24114 int res1 = 0 ;
24115 int val2 ;
24116 int ecode2 = 0 ;
24117 PyObject * obj0 = 0 ;
24118 PyObject * obj1 = 0 ;
24119 PyObject * obj2 = 0 ;
24120 char * kwnames[] = {
24121 (char *) "self",(char *) "id",(char *) "clientData", NULL
24122 };
24123
24124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24126 if (!SWIG_IsOK(res1)) {
24127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24128 }
24129 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24130 ecode2 = SWIG_AsVal_int(obj1, &val2);
24131 if (!SWIG_IsOK(ecode2)) {
24132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24133 }
24134 arg2 = static_cast< int >(val2);
24135 arg3 = obj2;
24136 {
24137 PyThreadState* __tstate = wxPyBeginAllowThreads();
24138 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24139 wxPyEndAllowThreads(__tstate);
24140 if (PyErr_Occurred()) SWIG_fail;
24141 }
24142 resultobj = SWIG_Py_Void();
24143 return resultobj;
24144fail:
24145 return NULL;
24146}
24147
24148
24149SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24150 PyObject *resultobj = 0;
24151 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24152 int arg2 ;
24153 int result;
24154 void *argp1 = 0 ;
24155 int res1 = 0 ;
24156 int val2 ;
24157 int ecode2 = 0 ;
24158 PyObject * obj0 = 0 ;
24159 PyObject * obj1 = 0 ;
24160 char * kwnames[] = {
24161 (char *) "self",(char *) "id", NULL
24162 };
24163
24164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24166 if (!SWIG_IsOK(res1)) {
24167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24168 }
24169 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24170 ecode2 = SWIG_AsVal_int(obj1, &val2);
24171 if (!SWIG_IsOK(ecode2)) {
24172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24173 }
24174 arg2 = static_cast< int >(val2);
24175 {
24176 PyThreadState* __tstate = wxPyBeginAllowThreads();
24177 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24178 wxPyEndAllowThreads(__tstate);
24179 if (PyErr_Occurred()) SWIG_fail;
24180 }
24181 resultobj = SWIG_From_int(static_cast< int >(result));
24182 return resultobj;
24183fail:
24184 return NULL;
24185}
24186
24187
24188SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24189 PyObject *resultobj = 0;
24190 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24191 int arg2 ;
24192 bool result;
24193 void *argp1 = 0 ;
24194 int res1 = 0 ;
24195 int val2 ;
24196 int ecode2 = 0 ;
24197 PyObject * obj0 = 0 ;
24198 PyObject * obj1 = 0 ;
24199 char * kwnames[] = {
24200 (char *) "self",(char *) "id", NULL
24201 };
24202
24203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24205 if (!SWIG_IsOK(res1)) {
24206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24207 }
24208 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24209 ecode2 = SWIG_AsVal_int(obj1, &val2);
24210 if (!SWIG_IsOK(ecode2)) {
24211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24212 }
24213 arg2 = static_cast< int >(val2);
24214 {
24215 PyThreadState* __tstate = wxPyBeginAllowThreads();
24216 result = (bool)(arg1)->GetToolState(arg2);
24217 wxPyEndAllowThreads(__tstate);
24218 if (PyErr_Occurred()) SWIG_fail;
24219 }
24220 {
24221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24222 }
24223 return resultobj;
24224fail:
24225 return NULL;
24226}
24227
24228
24229SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24230 PyObject *resultobj = 0;
24231 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24232 int arg2 ;
24233 bool result;
24234 void *argp1 = 0 ;
24235 int res1 = 0 ;
24236 int val2 ;
24237 int ecode2 = 0 ;
24238 PyObject * obj0 = 0 ;
24239 PyObject * obj1 = 0 ;
24240 char * kwnames[] = {
24241 (char *) "self",(char *) "id", NULL
24242 };
24243
24244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24246 if (!SWIG_IsOK(res1)) {
24247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24248 }
24249 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24250 ecode2 = SWIG_AsVal_int(obj1, &val2);
24251 if (!SWIG_IsOK(ecode2)) {
24252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24253 }
24254 arg2 = static_cast< int >(val2);
24255 {
24256 PyThreadState* __tstate = wxPyBeginAllowThreads();
24257 result = (bool)(arg1)->GetToolEnabled(arg2);
24258 wxPyEndAllowThreads(__tstate);
24259 if (PyErr_Occurred()) SWIG_fail;
24260 }
24261 {
24262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24263 }
24264 return resultobj;
24265fail:
24266 return NULL;
24267}
24268
24269
24270SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24271 PyObject *resultobj = 0;
24272 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24273 int arg2 ;
24274 wxString *arg3 = 0 ;
24275 void *argp1 = 0 ;
24276 int res1 = 0 ;
24277 int val2 ;
24278 int ecode2 = 0 ;
24279 bool temp3 = false ;
24280 PyObject * obj0 = 0 ;
24281 PyObject * obj1 = 0 ;
24282 PyObject * obj2 = 0 ;
24283 char * kwnames[] = {
24284 (char *) "self",(char *) "id",(char *) "helpString", NULL
24285 };
24286
24287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24289 if (!SWIG_IsOK(res1)) {
24290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24291 }
24292 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24293 ecode2 = SWIG_AsVal_int(obj1, &val2);
24294 if (!SWIG_IsOK(ecode2)) {
24295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24296 }
24297 arg2 = static_cast< int >(val2);
24298 {
24299 arg3 = wxString_in_helper(obj2);
24300 if (arg3 == NULL) SWIG_fail;
24301 temp3 = true;
24302 }
24303 {
24304 PyThreadState* __tstate = wxPyBeginAllowThreads();
24305 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24306 wxPyEndAllowThreads(__tstate);
24307 if (PyErr_Occurred()) SWIG_fail;
24308 }
24309 resultobj = SWIG_Py_Void();
24310 {
24311 if (temp3)
24312 delete arg3;
24313 }
24314 return resultobj;
24315fail:
24316 {
24317 if (temp3)
24318 delete arg3;
24319 }
24320 return NULL;
24321}
24322
24323
24324SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24325 PyObject *resultobj = 0;
24326 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24327 int arg2 ;
24328 wxString result;
24329 void *argp1 = 0 ;
24330 int res1 = 0 ;
24331 int val2 ;
24332 int ecode2 = 0 ;
24333 PyObject * obj0 = 0 ;
24334 PyObject * obj1 = 0 ;
24335 char * kwnames[] = {
24336 (char *) "self",(char *) "id", NULL
24337 };
24338
24339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24341 if (!SWIG_IsOK(res1)) {
24342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24343 }
24344 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24345 ecode2 = SWIG_AsVal_int(obj1, &val2);
24346 if (!SWIG_IsOK(ecode2)) {
24347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24348 }
24349 arg2 = static_cast< int >(val2);
24350 {
24351 PyThreadState* __tstate = wxPyBeginAllowThreads();
24352 result = (arg1)->GetToolShortHelp(arg2);
24353 wxPyEndAllowThreads(__tstate);
24354 if (PyErr_Occurred()) SWIG_fail;
24355 }
24356 {
24357#if wxUSE_UNICODE
24358 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24359#else
24360 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24361#endif
24362 }
24363 return resultobj;
24364fail:
24365 return NULL;
24366}
24367
24368
24369SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24370 PyObject *resultobj = 0;
24371 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24372 int arg2 ;
24373 wxString *arg3 = 0 ;
24374 void *argp1 = 0 ;
24375 int res1 = 0 ;
24376 int val2 ;
24377 int ecode2 = 0 ;
24378 bool temp3 = false ;
24379 PyObject * obj0 = 0 ;
24380 PyObject * obj1 = 0 ;
24381 PyObject * obj2 = 0 ;
24382 char * kwnames[] = {
24383 (char *) "self",(char *) "id",(char *) "helpString", NULL
24384 };
24385
24386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24388 if (!SWIG_IsOK(res1)) {
24389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24390 }
24391 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24392 ecode2 = SWIG_AsVal_int(obj1, &val2);
24393 if (!SWIG_IsOK(ecode2)) {
24394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24395 }
24396 arg2 = static_cast< int >(val2);
24397 {
24398 arg3 = wxString_in_helper(obj2);
24399 if (arg3 == NULL) SWIG_fail;
24400 temp3 = true;
24401 }
24402 {
24403 PyThreadState* __tstate = wxPyBeginAllowThreads();
24404 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24405 wxPyEndAllowThreads(__tstate);
24406 if (PyErr_Occurred()) SWIG_fail;
24407 }
24408 resultobj = SWIG_Py_Void();
24409 {
24410 if (temp3)
24411 delete arg3;
24412 }
24413 return resultobj;
24414fail:
24415 {
24416 if (temp3)
24417 delete arg3;
24418 }
24419 return NULL;
24420}
24421
24422
24423SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24424 PyObject *resultobj = 0;
24425 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24426 int arg2 ;
24427 wxString result;
24428 void *argp1 = 0 ;
24429 int res1 = 0 ;
24430 int val2 ;
24431 int ecode2 = 0 ;
24432 PyObject * obj0 = 0 ;
24433 PyObject * obj1 = 0 ;
24434 char * kwnames[] = {
24435 (char *) "self",(char *) "id", NULL
24436 };
24437
24438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24440 if (!SWIG_IsOK(res1)) {
24441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24442 }
24443 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24444 ecode2 = SWIG_AsVal_int(obj1, &val2);
24445 if (!SWIG_IsOK(ecode2)) {
24446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24447 }
24448 arg2 = static_cast< int >(val2);
24449 {
24450 PyThreadState* __tstate = wxPyBeginAllowThreads();
24451 result = (arg1)->GetToolLongHelp(arg2);
24452 wxPyEndAllowThreads(__tstate);
24453 if (PyErr_Occurred()) SWIG_fail;
24454 }
24455 {
24456#if wxUSE_UNICODE
24457 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24458#else
24459 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24460#endif
24461 }
24462 return resultobj;
24463fail:
24464 return NULL;
24465}
24466
24467
24468SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24469 PyObject *resultobj = 0;
24470 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24471 int arg2 ;
24472 int arg3 ;
24473 void *argp1 = 0 ;
24474 int res1 = 0 ;
24475 int val2 ;
24476 int ecode2 = 0 ;
24477 int val3 ;
24478 int ecode3 = 0 ;
24479 PyObject * obj0 = 0 ;
24480 PyObject * obj1 = 0 ;
24481 PyObject * obj2 = 0 ;
24482 char * kwnames[] = {
24483 (char *) "self",(char *) "x",(char *) "y", NULL
24484 };
24485
24486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24488 if (!SWIG_IsOK(res1)) {
24489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24490 }
24491 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24492 ecode2 = SWIG_AsVal_int(obj1, &val2);
24493 if (!SWIG_IsOK(ecode2)) {
24494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24495 }
24496 arg2 = static_cast< int >(val2);
24497 ecode3 = SWIG_AsVal_int(obj2, &val3);
24498 if (!SWIG_IsOK(ecode3)) {
24499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24500 }
24501 arg3 = static_cast< int >(val3);
24502 {
24503 PyThreadState* __tstate = wxPyBeginAllowThreads();
24504 (arg1)->SetMargins(arg2,arg3);
24505 wxPyEndAllowThreads(__tstate);
24506 if (PyErr_Occurred()) SWIG_fail;
24507 }
24508 resultobj = SWIG_Py_Void();
24509 return resultobj;
24510fail:
24511 return NULL;
24512}
24513
24514
24515SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24516 PyObject *resultobj = 0;
24517 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24518 wxSize *arg2 = 0 ;
24519 void *argp1 = 0 ;
24520 int res1 = 0 ;
24521 wxSize temp2 ;
24522 PyObject * obj0 = 0 ;
24523 PyObject * obj1 = 0 ;
24524 char * kwnames[] = {
24525 (char *) "self",(char *) "size", NULL
24526 };
24527
24528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24530 if (!SWIG_IsOK(res1)) {
24531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24532 }
24533 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24534 {
24535 arg2 = &temp2;
24536 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24537 }
24538 {
24539 PyThreadState* __tstate = wxPyBeginAllowThreads();
24540 (arg1)->SetMargins((wxSize const &)*arg2);
24541 wxPyEndAllowThreads(__tstate);
24542 if (PyErr_Occurred()) SWIG_fail;
24543 }
24544 resultobj = SWIG_Py_Void();
24545 return resultobj;
24546fail:
24547 return NULL;
24548}
24549
24550
24551SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24552 PyObject *resultobj = 0;
24553 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24554 int arg2 ;
24555 void *argp1 = 0 ;
24556 int res1 = 0 ;
24557 int val2 ;
24558 int ecode2 = 0 ;
24559 PyObject * obj0 = 0 ;
24560 PyObject * obj1 = 0 ;
24561 char * kwnames[] = {
24562 (char *) "self",(char *) "packing", NULL
24563 };
24564
24565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24567 if (!SWIG_IsOK(res1)) {
24568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24569 }
24570 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24571 ecode2 = SWIG_AsVal_int(obj1, &val2);
24572 if (!SWIG_IsOK(ecode2)) {
24573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24574 }
24575 arg2 = static_cast< int >(val2);
24576 {
24577 PyThreadState* __tstate = wxPyBeginAllowThreads();
24578 (arg1)->SetToolPacking(arg2);
24579 wxPyEndAllowThreads(__tstate);
24580 if (PyErr_Occurred()) SWIG_fail;
24581 }
24582 resultobj = SWIG_Py_Void();
24583 return resultobj;
24584fail:
24585 return NULL;
24586}
24587
24588
24589SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24590 PyObject *resultobj = 0;
24591 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24592 int arg2 ;
24593 void *argp1 = 0 ;
24594 int res1 = 0 ;
24595 int val2 ;
24596 int ecode2 = 0 ;
24597 PyObject * obj0 = 0 ;
24598 PyObject * obj1 = 0 ;
24599 char * kwnames[] = {
24600 (char *) "self",(char *) "separation", NULL
24601 };
24602
24603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24605 if (!SWIG_IsOK(res1)) {
24606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24607 }
24608 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24609 ecode2 = SWIG_AsVal_int(obj1, &val2);
24610 if (!SWIG_IsOK(ecode2)) {
24611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24612 }
24613 arg2 = static_cast< int >(val2);
24614 {
24615 PyThreadState* __tstate = wxPyBeginAllowThreads();
24616 (arg1)->SetToolSeparation(arg2);
24617 wxPyEndAllowThreads(__tstate);
24618 if (PyErr_Occurred()) SWIG_fail;
24619 }
24620 resultobj = SWIG_Py_Void();
24621 return resultobj;
24622fail:
24623 return NULL;
d55e5bfc
RD
24624}
24625
24626
1bd55598
RD
24627SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24628 PyObject *resultobj = 0;
24629 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24630 wxSize result;
24631 void *argp1 = 0 ;
24632 int res1 = 0 ;
24633 PyObject *swig_obj[1] ;
24634
24635 if (!args) SWIG_fail;
24636 swig_obj[0] = args;
24637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24638 if (!SWIG_IsOK(res1)) {
24639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24640 }
24641 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24642 {
24643 PyThreadState* __tstate = wxPyBeginAllowThreads();
24644 result = (arg1)->GetToolMargins();
24645 wxPyEndAllowThreads(__tstate);
24646 if (PyErr_Occurred()) SWIG_fail;
24647 }
24648 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24649 return resultobj;
24650fail:
24651 return NULL;
d55e5bfc
RD
24652}
24653
24654
1bd55598
RD
24655SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24656 PyObject *resultobj = 0;
24657 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24658 wxSize result;
24659 void *argp1 = 0 ;
24660 int res1 = 0 ;
24661 PyObject *swig_obj[1] ;
24662
24663 if (!args) SWIG_fail;
24664 swig_obj[0] = args;
24665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24666 if (!SWIG_IsOK(res1)) {
24667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24668 }
24669 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24670 {
24671 PyThreadState* __tstate = wxPyBeginAllowThreads();
24672 result = (arg1)->GetMargins();
24673 wxPyEndAllowThreads(__tstate);
24674 if (PyErr_Occurred()) SWIG_fail;
24675 }
24676 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24677 return resultobj;
24678fail:
24679 return NULL;
d55e5bfc
RD
24680}
24681
24682
1bd55598
RD
24683SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24684 PyObject *resultobj = 0;
24685 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24686 int result;
24687 void *argp1 = 0 ;
24688 int res1 = 0 ;
24689 PyObject *swig_obj[1] ;
24690
24691 if (!args) SWIG_fail;
24692 swig_obj[0] = args;
24693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24694 if (!SWIG_IsOK(res1)) {
24695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24696 }
24697 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24698 {
24699 PyThreadState* __tstate = wxPyBeginAllowThreads();
24700 result = (int)(arg1)->GetToolPacking();
24701 wxPyEndAllowThreads(__tstate);
24702 if (PyErr_Occurred()) SWIG_fail;
24703 }
24704 resultobj = SWIG_From_int(static_cast< int >(result));
24705 return resultobj;
24706fail:
24707 return NULL;
d55e5bfc
RD
24708}
24709
24710
1bd55598
RD
24711SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24712 PyObject *resultobj = 0;
24713 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24714 int result;
24715 void *argp1 = 0 ;
24716 int res1 = 0 ;
24717 PyObject *swig_obj[1] ;
24718
24719 if (!args) SWIG_fail;
24720 swig_obj[0] = args;
24721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24722 if (!SWIG_IsOK(res1)) {
24723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24724 }
24725 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24726 {
24727 PyThreadState* __tstate = wxPyBeginAllowThreads();
24728 result = (int)(arg1)->GetToolSeparation();
24729 wxPyEndAllowThreads(__tstate);
24730 if (PyErr_Occurred()) SWIG_fail;
24731 }
24732 resultobj = SWIG_From_int(static_cast< int >(result));
24733 return resultobj;
24734fail:
24735 return NULL;
24736}
24737
24738
24739SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24740 PyObject *resultobj = 0;
24741 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24742 int arg2 ;
24743 void *argp1 = 0 ;
24744 int res1 = 0 ;
24745 int val2 ;
24746 int ecode2 = 0 ;
24747 PyObject * obj0 = 0 ;
24748 PyObject * obj1 = 0 ;
24749 char * kwnames[] = {
24750 (char *) "self",(char *) "nRows", NULL
24751 };
24752
24753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
24754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24755 if (!SWIG_IsOK(res1)) {
24756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24757 }
24758 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24759 ecode2 = SWIG_AsVal_int(obj1, &val2);
24760 if (!SWIG_IsOK(ecode2)) {
24761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
24762 }
24763 arg2 = static_cast< int >(val2);
24764 {
24765 PyThreadState* __tstate = wxPyBeginAllowThreads();
24766 (arg1)->SetRows(arg2);
24767 wxPyEndAllowThreads(__tstate);
24768 if (PyErr_Occurred()) SWIG_fail;
24769 }
24770 resultobj = SWIG_Py_Void();
24771 return resultobj;
24772fail:
24773 return NULL;
24774}
24775
24776
24777SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24778 PyObject *resultobj = 0;
24779 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24780 int arg2 ;
24781 int arg3 ;
24782 void *argp1 = 0 ;
24783 int res1 = 0 ;
24784 int val2 ;
24785 int ecode2 = 0 ;
24786 int val3 ;
24787 int ecode3 = 0 ;
24788 PyObject * obj0 = 0 ;
24789 PyObject * obj1 = 0 ;
24790 PyObject * obj2 = 0 ;
24791 char * kwnames[] = {
24792 (char *) "self",(char *) "rows",(char *) "cols", NULL
24793 };
24794
24795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24797 if (!SWIG_IsOK(res1)) {
24798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24799 }
24800 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24801 ecode2 = SWIG_AsVal_int(obj1, &val2);
24802 if (!SWIG_IsOK(ecode2)) {
24803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
24804 }
24805 arg2 = static_cast< int >(val2);
24806 ecode3 = SWIG_AsVal_int(obj2, &val3);
24807 if (!SWIG_IsOK(ecode3)) {
24808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
24809 }
24810 arg3 = static_cast< int >(val3);
24811 {
24812 PyThreadState* __tstate = wxPyBeginAllowThreads();
24813 (arg1)->SetMaxRowsCols(arg2,arg3);
24814 wxPyEndAllowThreads(__tstate);
24815 if (PyErr_Occurred()) SWIG_fail;
24816 }
24817 resultobj = SWIG_Py_Void();
24818 return resultobj;
24819fail:
24820 return NULL;
d55e5bfc
RD
24821}
24822
24823
1bd55598
RD
24824SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24825 PyObject *resultobj = 0;
24826 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24827 int result;
24828 void *argp1 = 0 ;
24829 int res1 = 0 ;
24830 PyObject *swig_obj[1] ;
24831
24832 if (!args) SWIG_fail;
24833 swig_obj[0] = args;
24834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24835 if (!SWIG_IsOK(res1)) {
24836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24837 }
24838 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24839 {
24840 PyThreadState* __tstate = wxPyBeginAllowThreads();
24841 result = (int)(arg1)->GetMaxRows();
24842 wxPyEndAllowThreads(__tstate);
24843 if (PyErr_Occurred()) SWIG_fail;
24844 }
24845 resultobj = SWIG_From_int(static_cast< int >(result));
24846 return resultobj;
24847fail:
24848 return NULL;
d55e5bfc
RD
24849}
24850
24851
1bd55598
RD
24852SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24853 PyObject *resultobj = 0;
24854 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24855 int result;
24856 void *argp1 = 0 ;
24857 int res1 = 0 ;
24858 PyObject *swig_obj[1] ;
24859
24860 if (!args) SWIG_fail;
24861 swig_obj[0] = args;
24862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24863 if (!SWIG_IsOK(res1)) {
24864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24865 }
24866 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24867 {
24868 PyThreadState* __tstate = wxPyBeginAllowThreads();
24869 result = (int)(arg1)->GetMaxCols();
24870 wxPyEndAllowThreads(__tstate);
24871 if (PyErr_Occurred()) SWIG_fail;
24872 }
24873 resultobj = SWIG_From_int(static_cast< int >(result));
24874 return resultobj;
24875fail:
24876 return NULL;
24877}
24878
24879
24880SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24881 PyObject *resultobj = 0;
24882 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24883 wxSize *arg2 = 0 ;
24884 void *argp1 = 0 ;
24885 int res1 = 0 ;
24886 wxSize temp2 ;
24887 PyObject * obj0 = 0 ;
24888 PyObject * obj1 = 0 ;
24889 char * kwnames[] = {
24890 (char *) "self",(char *) "size", NULL
24891 };
24892
24893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
24894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24895 if (!SWIG_IsOK(res1)) {
24896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24897 }
24898 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24899 {
24900 arg2 = &temp2;
24901 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24902 }
24903 {
24904 PyThreadState* __tstate = wxPyBeginAllowThreads();
24905 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
24906 wxPyEndAllowThreads(__tstate);
24907 if (PyErr_Occurred()) SWIG_fail;
24908 }
24909 resultobj = SWIG_Py_Void();
24910 return resultobj;
24911fail:
24912 return NULL;
d55e5bfc
RD
24913}
24914
24915
1bd55598
RD
24916SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24917 PyObject *resultobj = 0;
24918 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24919 wxSize result;
24920 void *argp1 = 0 ;
24921 int res1 = 0 ;
24922 PyObject *swig_obj[1] ;
24923
24924 if (!args) SWIG_fail;
24925 swig_obj[0] = args;
24926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24927 if (!SWIG_IsOK(res1)) {
24928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24929 }
24930 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24931 {
24932 PyThreadState* __tstate = wxPyBeginAllowThreads();
24933 result = (arg1)->GetToolBitmapSize();
24934 wxPyEndAllowThreads(__tstate);
24935 if (PyErr_Occurred()) SWIG_fail;
24936 }
24937 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24938 return resultobj;
24939fail:
24940 return NULL;
d55e5bfc
RD
24941}
24942
24943
1bd55598
RD
24944SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24945 PyObject *resultobj = 0;
24946 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24947 wxSize result;
24948 void *argp1 = 0 ;
24949 int res1 = 0 ;
24950 PyObject *swig_obj[1] ;
24951
24952 if (!args) SWIG_fail;
24953 swig_obj[0] = args;
24954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24955 if (!SWIG_IsOK(res1)) {
24956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24957 }
24958 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24959 {
24960 PyThreadState* __tstate = wxPyBeginAllowThreads();
24961 result = (arg1)->GetToolSize();
24962 wxPyEndAllowThreads(__tstate);
24963 if (PyErr_Occurred()) SWIG_fail;
24964 }
24965 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24966 return resultobj;
24967fail:
24968 return NULL;
24969}
24970
24971
24972SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24973 PyObject *resultobj = 0;
24974 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24975 int arg2 ;
24976 int arg3 ;
24977 wxToolBarToolBase *result = 0 ;
24978 void *argp1 = 0 ;
24979 int res1 = 0 ;
24980 int val2 ;
24981 int ecode2 = 0 ;
24982 int val3 ;
24983 int ecode3 = 0 ;
24984 PyObject * obj0 = 0 ;
24985 PyObject * obj1 = 0 ;
24986 PyObject * obj2 = 0 ;
24987 char * kwnames[] = {
24988 (char *) "self",(char *) "x",(char *) "y", NULL
24989 };
24990
24991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24993 if (!SWIG_IsOK(res1)) {
24994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24995 }
24996 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24997 ecode2 = SWIG_AsVal_int(obj1, &val2);
24998 if (!SWIG_IsOK(ecode2)) {
24999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25000 }
25001 arg2 = static_cast< int >(val2);
25002 ecode3 = SWIG_AsVal_int(obj2, &val3);
25003 if (!SWIG_IsOK(ecode3)) {
25004 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25005 }
25006 arg3 = static_cast< int >(val3);
25007 {
25008 PyThreadState* __tstate = wxPyBeginAllowThreads();
25009 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25010 wxPyEndAllowThreads(__tstate);
25011 if (PyErr_Occurred()) SWIG_fail;
25012 }
25013 {
25014 resultobj = wxPyMake_wxObject(result, (bool)0);
25015 }
25016 return resultobj;
25017fail:
25018 return NULL;
25019}
25020
25021
25022SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25023 PyObject *resultobj = 0;
25024 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25025 int arg2 ;
25026 wxToolBarToolBase *result = 0 ;
25027 void *argp1 = 0 ;
25028 int res1 = 0 ;
25029 int val2 ;
25030 int ecode2 = 0 ;
25031 PyObject * obj0 = 0 ;
25032 PyObject * obj1 = 0 ;
25033 char * kwnames[] = {
25034 (char *) "self",(char *) "toolid", NULL
25035 };
25036
25037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25039 if (!SWIG_IsOK(res1)) {
25040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25041 }
25042 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25043 ecode2 = SWIG_AsVal_int(obj1, &val2);
25044 if (!SWIG_IsOK(ecode2)) {
25045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25046 }
25047 arg2 = static_cast< int >(val2);
25048 {
25049 PyThreadState* __tstate = wxPyBeginAllowThreads();
25050 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25051 wxPyEndAllowThreads(__tstate);
25052 if (PyErr_Occurred()) SWIG_fail;
25053 }
25054 {
25055 resultobj = wxPyMake_wxObject(result, (bool)0);
25056 }
25057 return resultobj;
25058fail:
25059 return NULL;
d55e5bfc
RD
25060}
25061
25062
1bd55598
RD
25063SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25064 PyObject *resultobj = 0;
25065 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25066 bool result;
25067 void *argp1 = 0 ;
25068 int res1 = 0 ;
25069 PyObject *swig_obj[1] ;
25070
25071 if (!args) SWIG_fail;
25072 swig_obj[0] = args;
25073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25074 if (!SWIG_IsOK(res1)) {
25075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25076 }
25077 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25078 {
25079 PyThreadState* __tstate = wxPyBeginAllowThreads();
25080 result = (bool)(arg1)->IsVertical();
25081 wxPyEndAllowThreads(__tstate);
25082 if (PyErr_Occurred()) SWIG_fail;
25083 }
25084 {
25085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25086 }
25087 return resultobj;
25088fail:
25089 return NULL;
d55e5bfc
RD
25090}
25091
25092
1bd55598
RD
25093SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25094 PyObject *resultobj = 0;
25095 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25096 size_t result;
25097 void *argp1 = 0 ;
25098 int res1 = 0 ;
25099 PyObject *swig_obj[1] ;
25100
25101 if (!args) SWIG_fail;
25102 swig_obj[0] = args;
25103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25104 if (!SWIG_IsOK(res1)) {
25105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25106 }
25107 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25108 {
25109 PyThreadState* __tstate = wxPyBeginAllowThreads();
25110 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25111 wxPyEndAllowThreads(__tstate);
25112 if (PyErr_Occurred()) SWIG_fail;
25113 }
25114 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25115 return resultobj;
25116fail:
25117 return NULL;
25118}
25119
25120
25121SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25122 PyObject *obj;
25123 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25124 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25125 return SWIG_Py_Void();
25126}
25127
25128SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25129 PyObject *resultobj = 0;
25130 wxWindow *arg1 = (wxWindow *) 0 ;
25131 int arg2 = (int) -1 ;
25132 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25133 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25134 wxSize const &arg4_defvalue = wxDefaultSize ;
25135 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25136 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25137 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25138 wxString *arg6 = (wxString *) &arg6_defvalue ;
25139 wxToolBar *result = 0 ;
25140 void *argp1 = 0 ;
25141 int res1 = 0 ;
25142 int val2 ;
25143 int ecode2 = 0 ;
25144 wxPoint temp3 ;
25145 wxSize temp4 ;
25146 long val5 ;
25147 int ecode5 = 0 ;
25148 bool temp6 = false ;
25149 PyObject * obj0 = 0 ;
25150 PyObject * obj1 = 0 ;
25151 PyObject * obj2 = 0 ;
25152 PyObject * obj3 = 0 ;
25153 PyObject * obj4 = 0 ;
25154 PyObject * obj5 = 0 ;
25155 char * kwnames[] = {
25156 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25157 };
25158
25159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25161 if (!SWIG_IsOK(res1)) {
25162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25163 }
25164 arg1 = reinterpret_cast< wxWindow * >(argp1);
25165 if (obj1) {
25166 ecode2 = SWIG_AsVal_int(obj1, &val2);
25167 if (!SWIG_IsOK(ecode2)) {
25168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25169 }
25170 arg2 = static_cast< int >(val2);
25171 }
25172 if (obj2) {
d55e5bfc 25173 {
1bd55598
RD
25174 arg3 = &temp3;
25175 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 25176 }
1bd55598
RD
25177 }
25178 if (obj3) {
d55e5bfc 25179 {
1bd55598
RD
25180 arg4 = &temp4;
25181 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25182 }
1bd55598
RD
25183 }
25184 if (obj4) {
25185 ecode5 = SWIG_AsVal_long(obj4, &val5);
25186 if (!SWIG_IsOK(ecode5)) {
25187 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25188 }
25189 arg5 = static_cast< long >(val5);
25190 }
25191 if (obj5) {
36ed4f51 25192 {
1bd55598
RD
25193 arg6 = wxString_in_helper(obj5);
25194 if (arg6 == NULL) SWIG_fail;
25195 temp6 = true;
36ed4f51 25196 }
1bd55598
RD
25197 }
25198 {
25199 if (!wxPyCheckForApp()) SWIG_fail;
25200 PyThreadState* __tstate = wxPyBeginAllowThreads();
25201 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25202 wxPyEndAllowThreads(__tstate);
25203 if (PyErr_Occurred()) SWIG_fail;
25204 }
25205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25206 {
25207 if (temp6)
25208 delete arg6;
25209 }
25210 return resultobj;
25211fail:
25212 {
25213 if (temp6)
25214 delete arg6;
25215 }
25216 return NULL;
d55e5bfc
RD
25217}
25218
25219
1bd55598
RD
25220SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25221 PyObject *resultobj = 0;
25222 wxToolBar *result = 0 ;
25223
25224 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25225 {
25226 if (!wxPyCheckForApp()) SWIG_fail;
25227 PyThreadState* __tstate = wxPyBeginAllowThreads();
25228 result = (wxToolBar *)new wxToolBar();
25229 wxPyEndAllowThreads(__tstate);
25230 if (PyErr_Occurred()) SWIG_fail;
25231 }
25232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25233 return resultobj;
25234fail:
25235 return NULL;
25236}
25237
25238
25239SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25240 PyObject *resultobj = 0;
25241 wxToolBar *arg1 = (wxToolBar *) 0 ;
25242 wxWindow *arg2 = (wxWindow *) 0 ;
25243 int arg3 = (int) -1 ;
25244 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25245 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25246 wxSize const &arg5_defvalue = wxDefaultSize ;
25247 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25248 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25249 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25250 wxString *arg7 = (wxString *) &arg7_defvalue ;
25251 bool result;
25252 void *argp1 = 0 ;
25253 int res1 = 0 ;
25254 void *argp2 = 0 ;
25255 int res2 = 0 ;
25256 int val3 ;
25257 int ecode3 = 0 ;
25258 wxPoint temp4 ;
25259 wxSize temp5 ;
25260 long val6 ;
25261 int ecode6 = 0 ;
25262 bool temp7 = false ;
25263 PyObject * obj0 = 0 ;
25264 PyObject * obj1 = 0 ;
25265 PyObject * obj2 = 0 ;
25266 PyObject * obj3 = 0 ;
25267 PyObject * obj4 = 0 ;
25268 PyObject * obj5 = 0 ;
25269 PyObject * obj6 = 0 ;
25270 char * kwnames[] = {
25271 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25272 };
25273
25274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25276 if (!SWIG_IsOK(res1)) {
25277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25278 }
25279 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25280 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25281 if (!SWIG_IsOK(res2)) {
25282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25283 }
25284 arg2 = reinterpret_cast< wxWindow * >(argp2);
25285 if (obj2) {
25286 ecode3 = SWIG_AsVal_int(obj2, &val3);
25287 if (!SWIG_IsOK(ecode3)) {
25288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25289 }
25290 arg3 = static_cast< int >(val3);
25291 }
25292 if (obj3) {
d55e5bfc 25293 {
1bd55598
RD
25294 arg4 = &temp4;
25295 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25296 }
1bd55598
RD
25297 }
25298 if (obj4) {
d55e5bfc 25299 {
1bd55598
RD
25300 arg5 = &temp5;
25301 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 25302 }
1bd55598
RD
25303 }
25304 if (obj5) {
25305 ecode6 = SWIG_AsVal_long(obj5, &val6);
25306 if (!SWIG_IsOK(ecode6)) {
25307 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25308 }
25309 arg6 = static_cast< long >(val6);
25310 }
25311 if (obj6) {
36ed4f51 25312 {
1bd55598
RD
25313 arg7 = wxString_in_helper(obj6);
25314 if (arg7 == NULL) SWIG_fail;
25315 temp7 = true;
36ed4f51 25316 }
1bd55598
RD
25317 }
25318 {
25319 PyThreadState* __tstate = wxPyBeginAllowThreads();
25320 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25321 wxPyEndAllowThreads(__tstate);
25322 if (PyErr_Occurred()) SWIG_fail;
25323 }
25324 {
25325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25326 }
25327 {
25328 if (temp7)
25329 delete arg7;
25330 }
25331 return resultobj;
25332fail:
25333 {
25334 if (temp7)
25335 delete arg7;
25336 }
25337 return NULL;
25338}
25339
25340
1bd55598
RD
25341SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25342 PyObject *resultobj = 0;
25343 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25344 SwigValueWrapper<wxVisualAttributes > result;
25345 int val1 ;
25346 int ecode1 = 0 ;
25347 PyObject * obj0 = 0 ;
25348 char * kwnames[] = {
25349 (char *) "variant", NULL
25350 };
25351
25352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25353 if (obj0) {
25354 ecode1 = SWIG_AsVal_int(obj0, &val1);
25355 if (!SWIG_IsOK(ecode1)) {
25356 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25357 }
25358 arg1 = static_cast< wxWindowVariant >(val1);
25359 }
25360 {
25361 if (!wxPyCheckForApp()) SWIG_fail;
25362 PyThreadState* __tstate = wxPyBeginAllowThreads();
25363 result = wxToolBar::GetClassDefaultAttributes(arg1);
25364 wxPyEndAllowThreads(__tstate);
25365 if (PyErr_Occurred()) SWIG_fail;
25366 }
25367 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25368 return resultobj;
25369fail:
25370 return NULL;
d55e5bfc
RD
25371}
25372
25373
1bd55598
RD
25374SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25375 PyObject *obj;
25376 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25377 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25378 return SWIG_Py_Void();
d55e5bfc
RD
25379}
25380
1bd55598
RD
25381SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25382 return SWIG_Python_InitShadowInstance(args);
25383}
d55e5bfc 25384
1bd55598
RD
25385SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25386 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25387 return 1;
d55e5bfc
RD
25388}
25389
25390
1bd55598
RD
25391SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25392 PyObject *pyobj = 0;
25393
25394 {
25395#if wxUSE_UNICODE
25396 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25397#else
25398 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25399#endif
25400 }
25401 return pyobj;
25402}
25403
25404
25405SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25406 PyObject *resultobj = 0;
25407 wxColour const &arg1_defvalue = wxNullColour ;
25408 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25409 wxColour const &arg2_defvalue = wxNullColour ;
25410 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25411 wxFont const &arg3_defvalue = wxNullFont ;
25412 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25413 wxListItemAttr *result = 0 ;
25414 wxColour temp1 ;
25415 wxColour temp2 ;
25416 void *argp3 = 0 ;
25417 int res3 = 0 ;
25418 PyObject * obj0 = 0 ;
25419 PyObject * obj1 = 0 ;
25420 PyObject * obj2 = 0 ;
25421 char * kwnames[] = {
25422 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25423 };
25424
25425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25426 if (obj0) {
d55e5bfc 25427 {
1bd55598
RD
25428 arg1 = &temp1;
25429 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 25430 }
1bd55598
RD
25431 }
25432 if (obj1) {
36ed4f51 25433 {
1bd55598
RD
25434 arg2 = &temp2;
25435 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
36ed4f51 25436 }
1bd55598
RD
25437 }
25438 if (obj2) {
25439 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25440 if (!SWIG_IsOK(res3)) {
25441 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 25442 }
1bd55598
RD
25443 if (!argp3) {
25444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
36ed4f51 25445 }
1bd55598
RD
25446 arg3 = reinterpret_cast< wxFont * >(argp3);
25447 }
25448 {
25449 PyThreadState* __tstate = wxPyBeginAllowThreads();
25450 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25451 wxPyEndAllowThreads(__tstate);
25452 if (PyErr_Occurred()) SWIG_fail;
25453 }
25454 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25455 return resultobj;
25456fail:
25457 return NULL;
d55e5bfc
RD
25458}
25459
25460
1bd55598
RD
25461SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25462 PyObject *resultobj = 0;
25463 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25464 void *argp1 = 0 ;
25465 int res1 = 0 ;
25466 PyObject *swig_obj[1] ;
25467
25468 if (!args) SWIG_fail;
25469 swig_obj[0] = args;
25470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25471 if (!SWIG_IsOK(res1)) {
25472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25473 }
25474 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25475 {
25476 PyThreadState* __tstate = wxPyBeginAllowThreads();
25477 delete arg1;
d55e5bfc 25478
1bd55598
RD
25479 wxPyEndAllowThreads(__tstate);
25480 if (PyErr_Occurred()) SWIG_fail;
25481 }
25482 resultobj = SWIG_Py_Void();
25483 return resultobj;
25484fail:
25485 return NULL;
25486}
25487
25488
25489SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25490 PyObject *resultobj = 0;
25491 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25492 wxColour *arg2 = 0 ;
25493 void *argp1 = 0 ;
25494 int res1 = 0 ;
25495 wxColour temp2 ;
25496 PyObject * obj0 = 0 ;
25497 PyObject * obj1 = 0 ;
25498 char * kwnames[] = {
25499 (char *) "self",(char *) "colText", NULL
25500 };
25501
25502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25504 if (!SWIG_IsOK(res1)) {
25505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25506 }
25507 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25508 {
25509 arg2 = &temp2;
25510 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25511 }
25512 {
25513 PyThreadState* __tstate = wxPyBeginAllowThreads();
25514 (arg1)->SetTextColour((wxColour const &)*arg2);
25515 wxPyEndAllowThreads(__tstate);
25516 if (PyErr_Occurred()) SWIG_fail;
25517 }
25518 resultobj = SWIG_Py_Void();
25519 return resultobj;
25520fail:
25521 return NULL;
25522}
25523
25524
25525SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25526 PyObject *resultobj = 0;
25527 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25528 wxColour *arg2 = 0 ;
25529 void *argp1 = 0 ;
25530 int res1 = 0 ;
25531 wxColour temp2 ;
25532 PyObject * obj0 = 0 ;
25533 PyObject * obj1 = 0 ;
25534 char * kwnames[] = {
25535 (char *) "self",(char *) "colBack", NULL
25536 };
25537
25538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25540 if (!SWIG_IsOK(res1)) {
25541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25542 }
25543 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25544 {
25545 arg2 = &temp2;
25546 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25547 }
25548 {
25549 PyThreadState* __tstate = wxPyBeginAllowThreads();
25550 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25551 wxPyEndAllowThreads(__tstate);
25552 if (PyErr_Occurred()) SWIG_fail;
25553 }
25554 resultobj = SWIG_Py_Void();
25555 return resultobj;
25556fail:
25557 return NULL;
25558}
25559
25560
25561SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25562 PyObject *resultobj = 0;
25563 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25564 wxFont *arg2 = 0 ;
25565 void *argp1 = 0 ;
25566 int res1 = 0 ;
25567 void *argp2 = 0 ;
25568 int res2 = 0 ;
25569 PyObject * obj0 = 0 ;
25570 PyObject * obj1 = 0 ;
25571 char * kwnames[] = {
25572 (char *) "self",(char *) "font", NULL
25573 };
25574
25575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25577 if (!SWIG_IsOK(res1)) {
25578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25579 }
25580 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25581 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25582 if (!SWIG_IsOK(res2)) {
25583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25584 }
25585 if (!argp2) {
25586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25587 }
25588 arg2 = reinterpret_cast< wxFont * >(argp2);
25589 {
25590 PyThreadState* __tstate = wxPyBeginAllowThreads();
25591 (arg1)->SetFont((wxFont const &)*arg2);
25592 wxPyEndAllowThreads(__tstate);
25593 if (PyErr_Occurred()) SWIG_fail;
25594 }
25595 resultobj = SWIG_Py_Void();
25596 return resultobj;
25597fail:
25598 return NULL;
d55e5bfc
RD
25599}
25600
25601
1bd55598
RD
25602SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25603 PyObject *resultobj = 0;
25604 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25605 bool result;
25606 void *argp1 = 0 ;
25607 int res1 = 0 ;
25608 PyObject *swig_obj[1] ;
25609
25610 if (!args) SWIG_fail;
25611 swig_obj[0] = args;
25612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25613 if (!SWIG_IsOK(res1)) {
25614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25615 }
25616 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25617 {
25618 PyThreadState* __tstate = wxPyBeginAllowThreads();
25619 result = (bool)(arg1)->HasTextColour();
25620 wxPyEndAllowThreads(__tstate);
25621 if (PyErr_Occurred()) SWIG_fail;
25622 }
25623 {
25624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25625 }
25626 return resultobj;
25627fail:
25628 return NULL;
f20a2e1f
RD
25629}
25630
25631
1bd55598
RD
25632SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25633 PyObject *resultobj = 0;
25634 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25635 bool result;
25636 void *argp1 = 0 ;
25637 int res1 = 0 ;
25638 PyObject *swig_obj[1] ;
25639
25640 if (!args) SWIG_fail;
25641 swig_obj[0] = args;
25642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25643 if (!SWIG_IsOK(res1)) {
25644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25645 }
25646 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25647 {
25648 PyThreadState* __tstate = wxPyBeginAllowThreads();
25649 result = (bool)(arg1)->HasBackgroundColour();
25650 wxPyEndAllowThreads(__tstate);
25651 if (PyErr_Occurred()) SWIG_fail;
25652 }
25653 {
25654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25655 }
25656 return resultobj;
25657fail:
25658 return NULL;
d55e5bfc 25659}
1bd55598
RD
25660
25661
25662SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25663 PyObject *resultobj = 0;
25664 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25665 bool result;
25666 void *argp1 = 0 ;
25667 int res1 = 0 ;
25668 PyObject *swig_obj[1] ;
25669
25670 if (!args) SWIG_fail;
25671 swig_obj[0] = args;
25672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25673 if (!SWIG_IsOK(res1)) {
25674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25675 }
25676 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25677 {
25678 PyThreadState* __tstate = wxPyBeginAllowThreads();
25679 result = (bool)(arg1)->HasFont();
25680 wxPyEndAllowThreads(__tstate);
25681 if (PyErr_Occurred()) SWIG_fail;
25682 }
25683 {
25684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25685 }
25686 return resultobj;
25687fail:
25688 return NULL;
d55e5bfc
RD
25689}
25690
25691
1bd55598
RD
25692SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25693 PyObject *resultobj = 0;
25694 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25695 wxColour result;
25696 void *argp1 = 0 ;
25697 int res1 = 0 ;
25698 PyObject *swig_obj[1] ;
25699
25700 if (!args) SWIG_fail;
25701 swig_obj[0] = args;
25702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25703 if (!SWIG_IsOK(res1)) {
25704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25705 }
25706 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25707 {
25708 PyThreadState* __tstate = wxPyBeginAllowThreads();
25709 result = (arg1)->GetTextColour();
25710 wxPyEndAllowThreads(__tstate);
25711 if (PyErr_Occurred()) SWIG_fail;
25712 }
25713 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25714 return resultobj;
25715fail:
25716 return NULL;
d55e5bfc
RD
25717}
25718
25719
1bd55598
RD
25720SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25721 PyObject *resultobj = 0;
25722 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25723 wxColour result;
25724 void *argp1 = 0 ;
25725 int res1 = 0 ;
25726 PyObject *swig_obj[1] ;
25727
25728 if (!args) SWIG_fail;
25729 swig_obj[0] = args;
25730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25731 if (!SWIG_IsOK(res1)) {
25732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25733 }
25734 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25735 {
25736 PyThreadState* __tstate = wxPyBeginAllowThreads();
25737 result = (arg1)->GetBackgroundColour();
25738 wxPyEndAllowThreads(__tstate);
25739 if (PyErr_Occurred()) SWIG_fail;
25740 }
25741 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25742 return resultobj;
25743fail:
25744 return NULL;
d55e5bfc
RD
25745}
25746
25747
1bd55598
RD
25748SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25749 PyObject *resultobj = 0;
25750 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25751 wxFont result;
25752 void *argp1 = 0 ;
25753 int res1 = 0 ;
25754 PyObject *swig_obj[1] ;
25755
25756 if (!args) SWIG_fail;
25757 swig_obj[0] = args;
25758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25759 if (!SWIG_IsOK(res1)) {
25760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25761 }
25762 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25763 {
25764 PyThreadState* __tstate = wxPyBeginAllowThreads();
25765 result = (arg1)->GetFont();
25766 wxPyEndAllowThreads(__tstate);
25767 if (PyErr_Occurred()) SWIG_fail;
25768 }
25769 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
25770 return resultobj;
25771fail:
25772 return NULL;
25773}
25774
25775
25776SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25777 PyObject *resultobj = 0;
25778 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25779 wxListItemAttr *arg2 = 0 ;
25780 void *argp1 = 0 ;
25781 int res1 = 0 ;
25782 void *argp2 = 0 ;
25783 int res2 = 0 ;
25784 PyObject * obj0 = 0 ;
25785 PyObject * obj1 = 0 ;
25786 char * kwnames[] = {
25787 (char *) "self",(char *) "source", NULL
25788 };
25789
25790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
25791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25792 if (!SWIG_IsOK(res1)) {
25793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25794 }
25795 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25796 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
25797 if (!SWIG_IsOK(res2)) {
25798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25799 }
25800 if (!argp2) {
25801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25802 }
25803 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
25804 {
25805 PyThreadState* __tstate = wxPyBeginAllowThreads();
25806 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
25807 wxPyEndAllowThreads(__tstate);
25808 if (PyErr_Occurred()) SWIG_fail;
25809 }
25810 resultobj = SWIG_Py_Void();
25811 return resultobj;
25812fail:
25813 return NULL;
121b9a67
RD
25814}
25815
25816
1bd55598
RD
25817SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25818 PyObject *resultobj = 0;
25819 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25820 void *argp1 = 0 ;
25821 int res1 = 0 ;
25822 PyObject *swig_obj[1] ;
25823
25824 if (!args) SWIG_fail;
25825 swig_obj[0] = args;
25826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25827 if (!SWIG_IsOK(res1)) {
25828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25829 }
25830 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25831 {
25832 PyThreadState* __tstate = wxPyBeginAllowThreads();
25833 wxListItemAttr_Destroy(arg1);
25834 wxPyEndAllowThreads(__tstate);
25835 if (PyErr_Occurred()) SWIG_fail;
25836 }
25837 resultobj = SWIG_Py_Void();
25838 return resultobj;
25839fail:
25840 return NULL;
121b9a67
RD
25841}
25842
25843
1bd55598
RD
25844SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25845 PyObject *obj;
25846 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25847 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
25848 return SWIG_Py_Void();
121b9a67
RD
25849}
25850
1bd55598
RD
25851SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25852 return SWIG_Python_InitShadowInstance(args);
25853}
121b9a67 25854
1bd55598
RD
25855SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25856 PyObject *resultobj = 0;
25857 wxListItem *result = 0 ;
25858
25859 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
25860 {
25861 PyThreadState* __tstate = wxPyBeginAllowThreads();
25862 result = (wxListItem *)new wxListItem();
25863 wxPyEndAllowThreads(__tstate);
25864 if (PyErr_Occurred()) SWIG_fail;
25865 }
25866 {
25867 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
25868 }
25869 return resultobj;
25870fail:
25871 return NULL;
121b9a67
RD
25872}
25873
25874
1bd55598
RD
25875SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25876 PyObject *resultobj = 0;
25877 wxListItem *arg1 = (wxListItem *) 0 ;
25878 void *argp1 = 0 ;
25879 int res1 = 0 ;
25880 PyObject *swig_obj[1] ;
25881
25882 if (!args) SWIG_fail;
25883 swig_obj[0] = args;
25884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
25885 if (!SWIG_IsOK(res1)) {
25886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
25887 }
25888 arg1 = reinterpret_cast< wxListItem * >(argp1);
25889 {
25890 PyThreadState* __tstate = wxPyBeginAllowThreads();
25891 delete arg1;
f20a2e1f 25892
1bd55598
RD
25893 wxPyEndAllowThreads(__tstate);
25894 if (PyErr_Occurred()) SWIG_fail;
25895 }
25896 resultobj = SWIG_Py_Void();
25897 return resultobj;
25898fail:
25899 return NULL;
f20a2e1f
RD
25900}
25901
25902
1bd55598
RD
25903SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25904 PyObject *resultobj = 0;
25905 wxListItem *arg1 = (wxListItem *) 0 ;
25906 void *argp1 = 0 ;
25907 int res1 = 0 ;
25908 PyObject *swig_obj[1] ;
25909
25910 if (!args) SWIG_fail;
25911 swig_obj[0] = args;
25912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
25913 if (!SWIG_IsOK(res1)) {
25914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
25915 }
25916 arg1 = reinterpret_cast< wxListItem * >(argp1);
25917 {
25918 PyThreadState* __tstate = wxPyBeginAllowThreads();
25919 (arg1)->Clear();
25920 wxPyEndAllowThreads(__tstate);
25921 if (PyErr_Occurred()) SWIG_fail;
25922 }
25923 resultobj = SWIG_Py_Void();
25924 return resultobj;
25925fail:
25926 return NULL;
d55e5bfc 25927}
1bd55598
RD
25928
25929
25930SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25931 PyObject *resultobj = 0;
25932 wxListItem *arg1 = (wxListItem *) 0 ;
25933 void *argp1 = 0 ;
25934 int res1 = 0 ;
25935 PyObject *swig_obj[1] ;
25936
25937 if (!args) SWIG_fail;
25938 swig_obj[0] = args;
25939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
25940 if (!SWIG_IsOK(res1)) {
25941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
25942 }
25943 arg1 = reinterpret_cast< wxListItem * >(argp1);
25944 {
25945 PyThreadState* __tstate = wxPyBeginAllowThreads();
25946 (arg1)->ClearAttributes();
25947 wxPyEndAllowThreads(__tstate);
25948 if (PyErr_Occurred()) SWIG_fail;
25949 }
25950 resultobj = SWIG_Py_Void();
25951 return resultobj;
25952fail:
25953 return NULL;
25954}
25955
25956
25957SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25958 PyObject *resultobj = 0;
25959 wxListItem *arg1 = (wxListItem *) 0 ;
25960 long arg2 ;
25961 void *argp1 = 0 ;
25962 int res1 = 0 ;
25963 long val2 ;
25964 int ecode2 = 0 ;
25965 PyObject * obj0 = 0 ;
25966 PyObject * obj1 = 0 ;
25967 char * kwnames[] = {
25968 (char *) "self",(char *) "mask", NULL
25969 };
25970
25971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
25972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
25973 if (!SWIG_IsOK(res1)) {
25974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
25975 }
25976 arg1 = reinterpret_cast< wxListItem * >(argp1);
25977 ecode2 = SWIG_AsVal_long(obj1, &val2);
25978 if (!SWIG_IsOK(ecode2)) {
25979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
25980 }
25981 arg2 = static_cast< long >(val2);
25982 {
25983 PyThreadState* __tstate = wxPyBeginAllowThreads();
25984 (arg1)->SetMask(arg2);
25985 wxPyEndAllowThreads(__tstate);
25986 if (PyErr_Occurred()) SWIG_fail;
25987 }
25988 resultobj = SWIG_Py_Void();
25989 return resultobj;
25990fail:
25991 return NULL;
25992}
25993
25994
25995SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25996 PyObject *resultobj = 0;
25997 wxListItem *arg1 = (wxListItem *) 0 ;
25998 long arg2 ;
25999 void *argp1 = 0 ;
26000 int res1 = 0 ;
26001 long val2 ;
26002 int ecode2 = 0 ;
26003 PyObject * obj0 = 0 ;
26004 PyObject * obj1 = 0 ;
26005 char * kwnames[] = {
26006 (char *) "self",(char *) "id", NULL
26007 };
26008
26009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26011 if (!SWIG_IsOK(res1)) {
26012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26013 }
26014 arg1 = reinterpret_cast< wxListItem * >(argp1);
26015 ecode2 = SWIG_AsVal_long(obj1, &val2);
26016 if (!SWIG_IsOK(ecode2)) {
26017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26018 }
26019 arg2 = static_cast< long >(val2);
26020 {
26021 PyThreadState* __tstate = wxPyBeginAllowThreads();
26022 (arg1)->SetId(arg2);
26023 wxPyEndAllowThreads(__tstate);
26024 if (PyErr_Occurred()) SWIG_fail;
26025 }
26026 resultobj = SWIG_Py_Void();
26027 return resultobj;
26028fail:
26029 return NULL;
26030}
26031
26032
26033SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26034 PyObject *resultobj = 0;
26035 wxListItem *arg1 = (wxListItem *) 0 ;
26036 int arg2 ;
26037 void *argp1 = 0 ;
26038 int res1 = 0 ;
26039 int val2 ;
26040 int ecode2 = 0 ;
26041 PyObject * obj0 = 0 ;
26042 PyObject * obj1 = 0 ;
26043 char * kwnames[] = {
26044 (char *) "self",(char *) "col", NULL
26045 };
26046
26047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26049 if (!SWIG_IsOK(res1)) {
26050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26051 }
26052 arg1 = reinterpret_cast< wxListItem * >(argp1);
26053 ecode2 = SWIG_AsVal_int(obj1, &val2);
26054 if (!SWIG_IsOK(ecode2)) {
26055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26056 }
26057 arg2 = static_cast< int >(val2);
26058 {
26059 PyThreadState* __tstate = wxPyBeginAllowThreads();
26060 (arg1)->SetColumn(arg2);
26061 wxPyEndAllowThreads(__tstate);
26062 if (PyErr_Occurred()) SWIG_fail;
26063 }
26064 resultobj = SWIG_Py_Void();
26065 return resultobj;
26066fail:
26067 return NULL;
26068}
26069
26070
26071SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26072 PyObject *resultobj = 0;
26073 wxListItem *arg1 = (wxListItem *) 0 ;
26074 long arg2 ;
26075 void *argp1 = 0 ;
26076 int res1 = 0 ;
26077 long val2 ;
26078 int ecode2 = 0 ;
26079 PyObject * obj0 = 0 ;
26080 PyObject * obj1 = 0 ;
26081 char * kwnames[] = {
26082 (char *) "self",(char *) "state", NULL
26083 };
26084
26085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26087 if (!SWIG_IsOK(res1)) {
26088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26089 }
26090 arg1 = reinterpret_cast< wxListItem * >(argp1);
26091 ecode2 = SWIG_AsVal_long(obj1, &val2);
26092 if (!SWIG_IsOK(ecode2)) {
26093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26094 }
26095 arg2 = static_cast< long >(val2);
26096 {
26097 PyThreadState* __tstate = wxPyBeginAllowThreads();
26098 (arg1)->SetState(arg2);
26099 wxPyEndAllowThreads(__tstate);
26100 if (PyErr_Occurred()) SWIG_fail;
26101 }
26102 resultobj = SWIG_Py_Void();
26103 return resultobj;
26104fail:
26105 return NULL;
26106}
26107
26108
26109SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26110 PyObject *resultobj = 0;
26111 wxListItem *arg1 = (wxListItem *) 0 ;
26112 long arg2 ;
26113 void *argp1 = 0 ;
26114 int res1 = 0 ;
26115 long val2 ;
26116 int ecode2 = 0 ;
26117 PyObject * obj0 = 0 ;
26118 PyObject * obj1 = 0 ;
26119 char * kwnames[] = {
26120 (char *) "self",(char *) "stateMask", NULL
26121 };
26122
26123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26125 if (!SWIG_IsOK(res1)) {
26126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26127 }
26128 arg1 = reinterpret_cast< wxListItem * >(argp1);
26129 ecode2 = SWIG_AsVal_long(obj1, &val2);
26130 if (!SWIG_IsOK(ecode2)) {
26131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26132 }
26133 arg2 = static_cast< long >(val2);
26134 {
26135 PyThreadState* __tstate = wxPyBeginAllowThreads();
26136 (arg1)->SetStateMask(arg2);
26137 wxPyEndAllowThreads(__tstate);
26138 if (PyErr_Occurred()) SWIG_fail;
26139 }
26140 resultobj = SWIG_Py_Void();
26141 return resultobj;
26142fail:
26143 return NULL;
26144}
26145
26146
26147SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26148 PyObject *resultobj = 0;
26149 wxListItem *arg1 = (wxListItem *) 0 ;
26150 wxString *arg2 = 0 ;
26151 void *argp1 = 0 ;
26152 int res1 = 0 ;
26153 bool temp2 = false ;
26154 PyObject * obj0 = 0 ;
26155 PyObject * obj1 = 0 ;
26156 char * kwnames[] = {
26157 (char *) "self",(char *) "text", NULL
26158 };
26159
26160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26162 if (!SWIG_IsOK(res1)) {
26163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26164 }
26165 arg1 = reinterpret_cast< wxListItem * >(argp1);
26166 {
26167 arg2 = wxString_in_helper(obj1);
26168 if (arg2 == NULL) SWIG_fail;
26169 temp2 = true;
26170 }
26171 {
26172 PyThreadState* __tstate = wxPyBeginAllowThreads();
26173 (arg1)->SetText((wxString const &)*arg2);
26174 wxPyEndAllowThreads(__tstate);
26175 if (PyErr_Occurred()) SWIG_fail;
26176 }
26177 resultobj = SWIG_Py_Void();
26178 {
26179 if (temp2)
26180 delete arg2;
26181 }
26182 return resultobj;
26183fail:
26184 {
26185 if (temp2)
26186 delete arg2;
26187 }
26188 return NULL;
26189}
26190
26191
26192SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26193 PyObject *resultobj = 0;
26194 wxListItem *arg1 = (wxListItem *) 0 ;
26195 int arg2 ;
26196 void *argp1 = 0 ;
26197 int res1 = 0 ;
26198 int val2 ;
26199 int ecode2 = 0 ;
26200 PyObject * obj0 = 0 ;
26201 PyObject * obj1 = 0 ;
26202 char * kwnames[] = {
26203 (char *) "self",(char *) "image", NULL
26204 };
26205
26206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26208 if (!SWIG_IsOK(res1)) {
26209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26210 }
26211 arg1 = reinterpret_cast< wxListItem * >(argp1);
26212 ecode2 = SWIG_AsVal_int(obj1, &val2);
26213 if (!SWIG_IsOK(ecode2)) {
26214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26215 }
26216 arg2 = static_cast< int >(val2);
26217 {
26218 PyThreadState* __tstate = wxPyBeginAllowThreads();
26219 (arg1)->SetImage(arg2);
26220 wxPyEndAllowThreads(__tstate);
26221 if (PyErr_Occurred()) SWIG_fail;
26222 }
26223 resultobj = SWIG_Py_Void();
26224 return resultobj;
26225fail:
26226 return NULL;
26227}
26228
26229
26230SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26231 PyObject *resultobj = 0;
26232 wxListItem *arg1 = (wxListItem *) 0 ;
26233 long arg2 ;
26234 void *argp1 = 0 ;
26235 int res1 = 0 ;
26236 long val2 ;
26237 int ecode2 = 0 ;
26238 PyObject * obj0 = 0 ;
26239 PyObject * obj1 = 0 ;
26240 char * kwnames[] = {
26241 (char *) "self",(char *) "data", NULL
26242 };
26243
26244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26246 if (!SWIG_IsOK(res1)) {
26247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26248 }
26249 arg1 = reinterpret_cast< wxListItem * >(argp1);
26250 ecode2 = SWIG_AsVal_long(obj1, &val2);
26251 if (!SWIG_IsOK(ecode2)) {
26252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26253 }
26254 arg2 = static_cast< long >(val2);
26255 {
26256 PyThreadState* __tstate = wxPyBeginAllowThreads();
26257 (arg1)->SetData(arg2);
26258 wxPyEndAllowThreads(__tstate);
26259 if (PyErr_Occurred()) SWIG_fail;
26260 }
26261 resultobj = SWIG_Py_Void();
26262 return resultobj;
26263fail:
26264 return NULL;
26265}
26266
26267
26268SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26269 PyObject *resultobj = 0;
26270 wxListItem *arg1 = (wxListItem *) 0 ;
26271 int arg2 ;
26272 void *argp1 = 0 ;
26273 int res1 = 0 ;
26274 int val2 ;
26275 int ecode2 = 0 ;
26276 PyObject * obj0 = 0 ;
26277 PyObject * obj1 = 0 ;
26278 char * kwnames[] = {
26279 (char *) "self",(char *) "width", NULL
26280 };
26281
26282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26284 if (!SWIG_IsOK(res1)) {
26285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26286 }
26287 arg1 = reinterpret_cast< wxListItem * >(argp1);
26288 ecode2 = SWIG_AsVal_int(obj1, &val2);
26289 if (!SWIG_IsOK(ecode2)) {
26290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26291 }
26292 arg2 = static_cast< int >(val2);
26293 {
26294 PyThreadState* __tstate = wxPyBeginAllowThreads();
26295 (arg1)->SetWidth(arg2);
26296 wxPyEndAllowThreads(__tstate);
26297 if (PyErr_Occurred()) SWIG_fail;
26298 }
26299 resultobj = SWIG_Py_Void();
26300 return resultobj;
26301fail:
26302 return NULL;
26303}
26304
26305
26306SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26307 PyObject *resultobj = 0;
26308 wxListItem *arg1 = (wxListItem *) 0 ;
26309 wxListColumnFormat arg2 ;
26310 void *argp1 = 0 ;
26311 int res1 = 0 ;
26312 int val2 ;
26313 int ecode2 = 0 ;
26314 PyObject * obj0 = 0 ;
26315 PyObject * obj1 = 0 ;
26316 char * kwnames[] = {
26317 (char *) "self",(char *) "align", NULL
26318 };
26319
26320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26322 if (!SWIG_IsOK(res1)) {
26323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26324 }
26325 arg1 = reinterpret_cast< wxListItem * >(argp1);
26326 ecode2 = SWIG_AsVal_int(obj1, &val2);
26327 if (!SWIG_IsOK(ecode2)) {
26328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26329 }
26330 arg2 = static_cast< wxListColumnFormat >(val2);
26331 {
26332 PyThreadState* __tstate = wxPyBeginAllowThreads();
26333 (arg1)->SetAlign(arg2);
26334 wxPyEndAllowThreads(__tstate);
26335 if (PyErr_Occurred()) SWIG_fail;
26336 }
26337 resultobj = SWIG_Py_Void();
26338 return resultobj;
26339fail:
26340 return NULL;
26341}
26342
26343
26344SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26345 PyObject *resultobj = 0;
26346 wxListItem *arg1 = (wxListItem *) 0 ;
26347 wxColour *arg2 = 0 ;
26348 void *argp1 = 0 ;
26349 int res1 = 0 ;
26350 wxColour temp2 ;
26351 PyObject * obj0 = 0 ;
26352 PyObject * obj1 = 0 ;
26353 char * kwnames[] = {
26354 (char *) "self",(char *) "colText", NULL
26355 };
26356
26357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26359 if (!SWIG_IsOK(res1)) {
26360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26361 }
26362 arg1 = reinterpret_cast< wxListItem * >(argp1);
26363 {
26364 arg2 = &temp2;
26365 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26366 }
26367 {
26368 PyThreadState* __tstate = wxPyBeginAllowThreads();
26369 (arg1)->SetTextColour((wxColour const &)*arg2);
26370 wxPyEndAllowThreads(__tstate);
26371 if (PyErr_Occurred()) SWIG_fail;
26372 }
26373 resultobj = SWIG_Py_Void();
26374 return resultobj;
26375fail:
26376 return NULL;
26377}
26378
26379
26380SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26381 PyObject *resultobj = 0;
26382 wxListItem *arg1 = (wxListItem *) 0 ;
26383 wxColour *arg2 = 0 ;
26384 void *argp1 = 0 ;
26385 int res1 = 0 ;
26386 wxColour temp2 ;
26387 PyObject * obj0 = 0 ;
26388 PyObject * obj1 = 0 ;
26389 char * kwnames[] = {
26390 (char *) "self",(char *) "colBack", NULL
26391 };
26392
26393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26395 if (!SWIG_IsOK(res1)) {
26396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26397 }
26398 arg1 = reinterpret_cast< wxListItem * >(argp1);
26399 {
26400 arg2 = &temp2;
26401 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26402 }
26403 {
26404 PyThreadState* __tstate = wxPyBeginAllowThreads();
26405 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26406 wxPyEndAllowThreads(__tstate);
26407 if (PyErr_Occurred()) SWIG_fail;
26408 }
26409 resultobj = SWIG_Py_Void();
26410 return resultobj;
26411fail:
26412 return NULL;
26413}
26414
26415
26416SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26417 PyObject *resultobj = 0;
26418 wxListItem *arg1 = (wxListItem *) 0 ;
26419 wxFont *arg2 = 0 ;
26420 void *argp1 = 0 ;
26421 int res1 = 0 ;
26422 void *argp2 = 0 ;
26423 int res2 = 0 ;
26424 PyObject * obj0 = 0 ;
26425 PyObject * obj1 = 0 ;
26426 char * kwnames[] = {
26427 (char *) "self",(char *) "font", NULL
26428 };
26429
26430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26432 if (!SWIG_IsOK(res1)) {
26433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26434 }
26435 arg1 = reinterpret_cast< wxListItem * >(argp1);
26436 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26437 if (!SWIG_IsOK(res2)) {
26438 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26439 }
26440 if (!argp2) {
26441 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26442 }
26443 arg2 = reinterpret_cast< wxFont * >(argp2);
26444 {
26445 PyThreadState* __tstate = wxPyBeginAllowThreads();
26446 (arg1)->SetFont((wxFont const &)*arg2);
26447 wxPyEndAllowThreads(__tstate);
26448 if (PyErr_Occurred()) SWIG_fail;
26449 }
26450 resultobj = SWIG_Py_Void();
26451 return resultobj;
26452fail:
26453 return NULL;
d55e5bfc
RD
26454}
26455
26456
1bd55598
RD
26457SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26458 PyObject *resultobj = 0;
26459 wxListItem *arg1 = (wxListItem *) 0 ;
26460 long result;
26461 void *argp1 = 0 ;
26462 int res1 = 0 ;
26463 PyObject *swig_obj[1] ;
26464
26465 if (!args) SWIG_fail;
26466 swig_obj[0] = args;
26467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26468 if (!SWIG_IsOK(res1)) {
26469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26470 }
26471 arg1 = reinterpret_cast< wxListItem * >(argp1);
26472 {
26473 PyThreadState* __tstate = wxPyBeginAllowThreads();
26474 result = (long)(arg1)->GetMask();
26475 wxPyEndAllowThreads(__tstate);
26476 if (PyErr_Occurred()) SWIG_fail;
26477 }
26478 resultobj = SWIG_From_long(static_cast< long >(result));
26479 return resultobj;
26480fail:
26481 return NULL;
d55e5bfc
RD
26482}
26483
26484
1bd55598
RD
26485SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26486 PyObject *resultobj = 0;
26487 wxListItem *arg1 = (wxListItem *) 0 ;
26488 long result;
26489 void *argp1 = 0 ;
26490 int res1 = 0 ;
26491 PyObject *swig_obj[1] ;
26492
26493 if (!args) SWIG_fail;
26494 swig_obj[0] = args;
26495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26496 if (!SWIG_IsOK(res1)) {
26497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26498 }
26499 arg1 = reinterpret_cast< wxListItem * >(argp1);
26500 {
26501 PyThreadState* __tstate = wxPyBeginAllowThreads();
26502 result = (long)(arg1)->GetId();
26503 wxPyEndAllowThreads(__tstate);
26504 if (PyErr_Occurred()) SWIG_fail;
26505 }
26506 resultobj = SWIG_From_long(static_cast< long >(result));
26507 return resultobj;
26508fail:
26509 return NULL;
d55e5bfc
RD
26510}
26511
26512
1bd55598
RD
26513SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26514 PyObject *resultobj = 0;
26515 wxListItem *arg1 = (wxListItem *) 0 ;
26516 int result;
26517 void *argp1 = 0 ;
26518 int res1 = 0 ;
26519 PyObject *swig_obj[1] ;
26520
26521 if (!args) SWIG_fail;
26522 swig_obj[0] = args;
26523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26524 if (!SWIG_IsOK(res1)) {
26525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26526 }
26527 arg1 = reinterpret_cast< wxListItem * >(argp1);
26528 {
26529 PyThreadState* __tstate = wxPyBeginAllowThreads();
26530 result = (int)(arg1)->GetColumn();
26531 wxPyEndAllowThreads(__tstate);
26532 if (PyErr_Occurred()) SWIG_fail;
26533 }
26534 resultobj = SWIG_From_int(static_cast< int >(result));
26535 return resultobj;
26536fail:
26537 return NULL;
d55e5bfc
RD
26538}
26539
26540
1bd55598
RD
26541SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26542 PyObject *resultobj = 0;
26543 wxListItem *arg1 = (wxListItem *) 0 ;
26544 long result;
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_wxListItem, 0 | 0 );
26552 if (!SWIG_IsOK(res1)) {
26553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26554 }
26555 arg1 = reinterpret_cast< wxListItem * >(argp1);
26556 {
26557 PyThreadState* __tstate = wxPyBeginAllowThreads();
26558 result = (long)(arg1)->GetState();
26559 wxPyEndAllowThreads(__tstate);
26560 if (PyErr_Occurred()) SWIG_fail;
26561 }
26562 resultobj = SWIG_From_long(static_cast< long >(result));
26563 return resultobj;
26564fail:
26565 return NULL;
8fb0e70a
RD
26566}
26567
26568
1bd55598
RD
26569SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26570 PyObject *resultobj = 0;
26571 wxListItem *arg1 = (wxListItem *) 0 ;
26572 wxString *result = 0 ;
26573 void *argp1 = 0 ;
26574 int res1 = 0 ;
26575 PyObject *swig_obj[1] ;
26576
26577 if (!args) SWIG_fail;
26578 swig_obj[0] = args;
26579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26580 if (!SWIG_IsOK(res1)) {
26581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26582 }
26583 arg1 = reinterpret_cast< wxListItem * >(argp1);
26584 {
26585 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 26586 {
1bd55598
RD
26587 wxString const &_result_ref = (arg1)->GetText();
26588 result = (wxString *) &_result_ref;
36ed4f51 26589 }
1bd55598
RD
26590 wxPyEndAllowThreads(__tstate);
26591 if (PyErr_Occurred()) SWIG_fail;
26592 }
26593 {
26594#if wxUSE_UNICODE
26595 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26596#else
26597 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26598#endif
26599 }
26600 return resultobj;
26601fail:
26602 return NULL;
d55e5bfc
RD
26603}
26604
26605
1bd55598
RD
26606SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26607 PyObject *resultobj = 0;
26608 wxListItem *arg1 = (wxListItem *) 0 ;
26609 int result;
26610 void *argp1 = 0 ;
26611 int res1 = 0 ;
26612 PyObject *swig_obj[1] ;
26613
26614 if (!args) SWIG_fail;
26615 swig_obj[0] = args;
26616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26617 if (!SWIG_IsOK(res1)) {
26618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26619 }
26620 arg1 = reinterpret_cast< wxListItem * >(argp1);
26621 {
26622 PyThreadState* __tstate = wxPyBeginAllowThreads();
26623 result = (int)(arg1)->GetImage();
26624 wxPyEndAllowThreads(__tstate);
26625 if (PyErr_Occurred()) SWIG_fail;
26626 }
26627 resultobj = SWIG_From_int(static_cast< int >(result));
26628 return resultobj;
26629fail:
26630 return NULL;
d55e5bfc
RD
26631}
26632
26633
1bd55598
RD
26634SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26635 PyObject *resultobj = 0;
26636 wxListItem *arg1 = (wxListItem *) 0 ;
26637 long result;
26638 void *argp1 = 0 ;
26639 int res1 = 0 ;
26640 PyObject *swig_obj[1] ;
26641
26642 if (!args) SWIG_fail;
26643 swig_obj[0] = args;
26644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26645 if (!SWIG_IsOK(res1)) {
26646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26647 }
26648 arg1 = reinterpret_cast< wxListItem * >(argp1);
26649 {
26650 PyThreadState* __tstate = wxPyBeginAllowThreads();
26651 result = (long)(arg1)->GetData();
26652 wxPyEndAllowThreads(__tstate);
26653 if (PyErr_Occurred()) SWIG_fail;
26654 }
26655 resultobj = SWIG_From_long(static_cast< long >(result));
26656 return resultobj;
26657fail:
26658 return NULL;
d55e5bfc
RD
26659}
26660
26661
1bd55598
RD
26662SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26663 PyObject *resultobj = 0;
26664 wxListItem *arg1 = (wxListItem *) 0 ;
26665 int result;
26666 void *argp1 = 0 ;
26667 int res1 = 0 ;
26668 PyObject *swig_obj[1] ;
26669
26670 if (!args) SWIG_fail;
26671 swig_obj[0] = args;
26672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26673 if (!SWIG_IsOK(res1)) {
26674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26675 }
26676 arg1 = reinterpret_cast< wxListItem * >(argp1);
26677 {
26678 PyThreadState* __tstate = wxPyBeginAllowThreads();
26679 result = (int)(arg1)->GetWidth();
26680 wxPyEndAllowThreads(__tstate);
26681 if (PyErr_Occurred()) SWIG_fail;
26682 }
26683 resultobj = SWIG_From_int(static_cast< int >(result));
26684 return resultobj;
26685fail:
26686 return NULL;
d55e5bfc
RD
26687}
26688
26689
1bd55598
RD
26690SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26691 PyObject *resultobj = 0;
26692 wxListItem *arg1 = (wxListItem *) 0 ;
26693 wxListColumnFormat result;
26694 void *argp1 = 0 ;
26695 int res1 = 0 ;
26696 PyObject *swig_obj[1] ;
26697
26698 if (!args) SWIG_fail;
26699 swig_obj[0] = args;
26700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26701 if (!SWIG_IsOK(res1)) {
26702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26703 }
26704 arg1 = reinterpret_cast< wxListItem * >(argp1);
26705 {
26706 PyThreadState* __tstate = wxPyBeginAllowThreads();
26707 result = (wxListColumnFormat)(arg1)->GetAlign();
26708 wxPyEndAllowThreads(__tstate);
26709 if (PyErr_Occurred()) SWIG_fail;
26710 }
26711 resultobj = SWIG_From_int(static_cast< int >(result));
26712 return resultobj;
26713fail:
26714 return NULL;
d55e5bfc
RD
26715}
26716
26717
1bd55598
RD
26718SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26719 PyObject *resultobj = 0;
26720 wxListItem *arg1 = (wxListItem *) 0 ;
26721 wxListItemAttr *result = 0 ;
26722 void *argp1 = 0 ;
26723 int res1 = 0 ;
26724 PyObject *swig_obj[1] ;
26725
26726 if (!args) SWIG_fail;
26727 swig_obj[0] = args;
26728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26729 if (!SWIG_IsOK(res1)) {
26730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26731 }
26732 arg1 = reinterpret_cast< wxListItem * >(argp1);
26733 {
26734 PyThreadState* __tstate = wxPyBeginAllowThreads();
26735 result = (wxListItemAttr *)(arg1)->GetAttributes();
26736 wxPyEndAllowThreads(__tstate);
26737 if (PyErr_Occurred()) SWIG_fail;
26738 }
26739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26740 return resultobj;
26741fail:
26742 return NULL;
d55e5bfc
RD
26743}
26744
26745
1bd55598
RD
26746SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26747 PyObject *resultobj = 0;
26748 wxListItem *arg1 = (wxListItem *) 0 ;
26749 bool result;
26750 void *argp1 = 0 ;
26751 int res1 = 0 ;
26752 PyObject *swig_obj[1] ;
26753
26754 if (!args) SWIG_fail;
26755 swig_obj[0] = args;
26756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26757 if (!SWIG_IsOK(res1)) {
26758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26759 }
26760 arg1 = reinterpret_cast< wxListItem * >(argp1);
26761 {
26762 PyThreadState* __tstate = wxPyBeginAllowThreads();
26763 result = (bool)(arg1)->HasAttributes();
26764 wxPyEndAllowThreads(__tstate);
26765 if (PyErr_Occurred()) SWIG_fail;
26766 }
26767 {
26768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26769 }
26770 return resultobj;
26771fail:
26772 return NULL;
d55e5bfc
RD
26773}
26774
26775
1bd55598
RD
26776SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26777 PyObject *resultobj = 0;
26778 wxListItem *arg1 = (wxListItem *) 0 ;
26779 wxColour result;
26780 void *argp1 = 0 ;
26781 int res1 = 0 ;
26782 PyObject *swig_obj[1] ;
26783
26784 if (!args) SWIG_fail;
26785 swig_obj[0] = args;
26786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26787 if (!SWIG_IsOK(res1)) {
26788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26789 }
26790 arg1 = reinterpret_cast< wxListItem * >(argp1);
26791 {
26792 PyThreadState* __tstate = wxPyBeginAllowThreads();
26793 result = ((wxListItem const *)arg1)->GetTextColour();
26794 wxPyEndAllowThreads(__tstate);
26795 if (PyErr_Occurred()) SWIG_fail;
26796 }
26797 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26798 return resultobj;
26799fail:
26800 return NULL;
d55e5bfc
RD
26801}
26802
26803
1bd55598
RD
26804SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26805 PyObject *resultobj = 0;
26806 wxListItem *arg1 = (wxListItem *) 0 ;
26807 wxColour result;
26808 void *argp1 = 0 ;
26809 int res1 = 0 ;
26810 PyObject *swig_obj[1] ;
26811
26812 if (!args) SWIG_fail;
26813 swig_obj[0] = args;
26814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26815 if (!SWIG_IsOK(res1)) {
26816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26817 }
26818 arg1 = reinterpret_cast< wxListItem * >(argp1);
26819 {
26820 PyThreadState* __tstate = wxPyBeginAllowThreads();
26821 result = ((wxListItem const *)arg1)->GetBackgroundColour();
26822 wxPyEndAllowThreads(__tstate);
26823 if (PyErr_Occurred()) SWIG_fail;
26824 }
26825 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26826 return resultobj;
26827fail:
26828 return NULL;
d55e5bfc
RD
26829}
26830
26831
1bd55598
RD
26832SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26833 PyObject *resultobj = 0;
26834 wxListItem *arg1 = (wxListItem *) 0 ;
26835 wxFont result;
26836 void *argp1 = 0 ;
26837 int res1 = 0 ;
26838 PyObject *swig_obj[1] ;
26839
26840 if (!args) SWIG_fail;
26841 swig_obj[0] = args;
26842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26843 if (!SWIG_IsOK(res1)) {
26844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
26845 }
26846 arg1 = reinterpret_cast< wxListItem * >(argp1);
26847 {
26848 PyThreadState* __tstate = wxPyBeginAllowThreads();
26849 result = ((wxListItem const *)arg1)->GetFont();
26850 wxPyEndAllowThreads(__tstate);
26851 if (PyErr_Occurred()) SWIG_fail;
26852 }
26853 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26854 return resultobj;
26855fail:
26856 return NULL;
26857}
26858
26859
26860SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26861 PyObject *resultobj = 0;
26862 wxListItem *arg1 = (wxListItem *) 0 ;
26863 long arg2 ;
26864 void *argp1 = 0 ;
26865 int res1 = 0 ;
26866 long val2 ;
26867 int ecode2 = 0 ;
26868 PyObject *swig_obj[2] ;
26869
26870 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
26871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26872 if (!SWIG_IsOK(res1)) {
26873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
26874 }
26875 arg1 = reinterpret_cast< wxListItem * >(argp1);
26876 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
26877 if (!SWIG_IsOK(ecode2)) {
26878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
26879 }
26880 arg2 = static_cast< long >(val2);
26881 if (arg1) (arg1)->m_mask = arg2;
26882
26883 resultobj = SWIG_Py_Void();
26884 return resultobj;
26885fail:
26886 return NULL;
d55e5bfc
RD
26887}
26888
26889
1bd55598
RD
26890SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26891 PyObject *resultobj = 0;
26892 wxListItem *arg1 = (wxListItem *) 0 ;
26893 long result;
26894 void *argp1 = 0 ;
26895 int res1 = 0 ;
26896 PyObject *swig_obj[1] ;
26897
26898 if (!args) SWIG_fail;
26899 swig_obj[0] = args;
26900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26901 if (!SWIG_IsOK(res1)) {
26902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
26903 }
26904 arg1 = reinterpret_cast< wxListItem * >(argp1);
26905 result = (long) ((arg1)->m_mask);
26906 resultobj = SWIG_From_long(static_cast< long >(result));
26907 return resultobj;
26908fail:
26909 return NULL;
26910}
26911
26912
26913SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26914 PyObject *resultobj = 0;
26915 wxListItem *arg1 = (wxListItem *) 0 ;
26916 long arg2 ;
26917 void *argp1 = 0 ;
26918 int res1 = 0 ;
26919 long val2 ;
26920 int ecode2 = 0 ;
26921 PyObject *swig_obj[2] ;
26922
26923 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
26924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26925 if (!SWIG_IsOK(res1)) {
26926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
26927 }
26928 arg1 = reinterpret_cast< wxListItem * >(argp1);
26929 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
26930 if (!SWIG_IsOK(ecode2)) {
26931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
26932 }
26933 arg2 = static_cast< long >(val2);
26934 if (arg1) (arg1)->m_itemId = arg2;
26935
26936 resultobj = SWIG_Py_Void();
26937 return resultobj;
26938fail:
26939 return NULL;
7e08d4ef
RD
26940}
26941
26942
1bd55598
RD
26943SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26944 PyObject *resultobj = 0;
26945 wxListItem *arg1 = (wxListItem *) 0 ;
26946 long result;
26947 void *argp1 = 0 ;
26948 int res1 = 0 ;
26949 PyObject *swig_obj[1] ;
26950
26951 if (!args) SWIG_fail;
26952 swig_obj[0] = args;
26953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26954 if (!SWIG_IsOK(res1)) {
26955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
26956 }
26957 arg1 = reinterpret_cast< wxListItem * >(argp1);
26958 result = (long) ((arg1)->m_itemId);
26959 resultobj = SWIG_From_long(static_cast< long >(result));
26960 return resultobj;
26961fail:
26962 return NULL;
26963}
26964
26965
26966SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26967 PyObject *resultobj = 0;
26968 wxListItem *arg1 = (wxListItem *) 0 ;
26969 int arg2 ;
26970 void *argp1 = 0 ;
26971 int res1 = 0 ;
26972 int val2 ;
26973 int ecode2 = 0 ;
26974 PyObject *swig_obj[2] ;
26975
26976 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
26977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26978 if (!SWIG_IsOK(res1)) {
26979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
26980 }
26981 arg1 = reinterpret_cast< wxListItem * >(argp1);
26982 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
26983 if (!SWIG_IsOK(ecode2)) {
26984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
26985 }
26986 arg2 = static_cast< int >(val2);
26987 if (arg1) (arg1)->m_col = arg2;
26988
26989 resultobj = SWIG_Py_Void();
26990 return resultobj;
26991fail:
26992 return NULL;
7e08d4ef
RD
26993}
26994
26995
1bd55598
RD
26996SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26997 PyObject *resultobj = 0;
26998 wxListItem *arg1 = (wxListItem *) 0 ;
26999 int result;
27000 void *argp1 = 0 ;
27001 int res1 = 0 ;
27002 PyObject *swig_obj[1] ;
27003
27004 if (!args) SWIG_fail;
27005 swig_obj[0] = args;
27006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27007 if (!SWIG_IsOK(res1)) {
27008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27009 }
27010 arg1 = reinterpret_cast< wxListItem * >(argp1);
27011 result = (int) ((arg1)->m_col);
27012 resultobj = SWIG_From_int(static_cast< int >(result));
27013 return resultobj;
27014fail:
27015 return NULL;
27016}
27017
27018
27019SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27020 PyObject *resultobj = 0;
27021 wxListItem *arg1 = (wxListItem *) 0 ;
27022 long arg2 ;
27023 void *argp1 = 0 ;
27024 int res1 = 0 ;
27025 long val2 ;
27026 int ecode2 = 0 ;
27027 PyObject *swig_obj[2] ;
27028
27029 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27031 if (!SWIG_IsOK(res1)) {
27032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27033 }
27034 arg1 = reinterpret_cast< wxListItem * >(argp1);
27035 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27036 if (!SWIG_IsOK(ecode2)) {
27037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27038 }
27039 arg2 = static_cast< long >(val2);
27040 if (arg1) (arg1)->m_state = arg2;
27041
27042 resultobj = SWIG_Py_Void();
27043 return resultobj;
27044fail:
27045 return NULL;
7e08d4ef
RD
27046}
27047
27048
1bd55598
RD
27049SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27050 PyObject *resultobj = 0;
27051 wxListItem *arg1 = (wxListItem *) 0 ;
27052 long result;
27053 void *argp1 = 0 ;
27054 int res1 = 0 ;
27055 PyObject *swig_obj[1] ;
27056
27057 if (!args) SWIG_fail;
27058 swig_obj[0] = args;
27059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27060 if (!SWIG_IsOK(res1)) {
27061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27062 }
27063 arg1 = reinterpret_cast< wxListItem * >(argp1);
27064 result = (long) ((arg1)->m_state);
27065 resultobj = SWIG_From_long(static_cast< long >(result));
27066 return resultobj;
27067fail:
27068 return NULL;
27069}
27070
27071
27072SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27073 PyObject *resultobj = 0;
27074 wxListItem *arg1 = (wxListItem *) 0 ;
27075 long arg2 ;
27076 void *argp1 = 0 ;
27077 int res1 = 0 ;
27078 long val2 ;
27079 int ecode2 = 0 ;
27080 PyObject *swig_obj[2] ;
27081
27082 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27084 if (!SWIG_IsOK(res1)) {
27085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27086 }
27087 arg1 = reinterpret_cast< wxListItem * >(argp1);
27088 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27089 if (!SWIG_IsOK(ecode2)) {
27090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27091 }
27092 arg2 = static_cast< long >(val2);
27093 if (arg1) (arg1)->m_stateMask = arg2;
27094
27095 resultobj = SWIG_Py_Void();
27096 return resultobj;
27097fail:
27098 return NULL;
7e08d4ef
RD
27099}
27100
27101
1bd55598
RD
27102SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27103 PyObject *resultobj = 0;
27104 wxListItem *arg1 = (wxListItem *) 0 ;
27105 long result;
27106 void *argp1 = 0 ;
27107 int res1 = 0 ;
27108 PyObject *swig_obj[1] ;
27109
27110 if (!args) SWIG_fail;
27111 swig_obj[0] = args;
27112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27113 if (!SWIG_IsOK(res1)) {
27114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27115 }
27116 arg1 = reinterpret_cast< wxListItem * >(argp1);
27117 result = (long) ((arg1)->m_stateMask);
27118 resultobj = SWIG_From_long(static_cast< long >(result));
27119 return resultobj;
27120fail:
27121 return NULL;
27122}
27123
27124
27125SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27126 PyObject *resultobj = 0;
27127 wxListItem *arg1 = (wxListItem *) 0 ;
27128 wxString *arg2 = (wxString *) 0 ;
27129 void *argp1 = 0 ;
27130 int res1 = 0 ;
27131 bool temp2 = false ;
27132 PyObject *swig_obj[2] ;
27133
27134 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27136 if (!SWIG_IsOK(res1)) {
27137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27138 }
27139 arg1 = reinterpret_cast< wxListItem * >(argp1);
27140 {
27141 arg2 = wxString_in_helper(swig_obj[1]);
27142 if (arg2 == NULL) SWIG_fail;
27143 temp2 = true;
27144 }
27145 if (arg1) (arg1)->m_text = *arg2;
27146
27147 resultobj = SWIG_Py_Void();
27148 {
27149 if (temp2)
27150 delete arg2;
27151 }
27152 return resultobj;
27153fail:
27154 {
27155 if (temp2)
27156 delete arg2;
27157 }
27158 return NULL;
7e08d4ef
RD
27159}
27160
27161
1bd55598
RD
27162SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27163 PyObject *resultobj = 0;
27164 wxListItem *arg1 = (wxListItem *) 0 ;
27165 wxString *result = 0 ;
27166 void *argp1 = 0 ;
27167 int res1 = 0 ;
27168 PyObject *swig_obj[1] ;
27169
27170 if (!args) SWIG_fail;
27171 swig_obj[0] = args;
27172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27173 if (!SWIG_IsOK(res1)) {
27174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27175 }
27176 arg1 = reinterpret_cast< wxListItem * >(argp1);
27177 result = (wxString *)& ((arg1)->m_text);
27178 {
27179#if wxUSE_UNICODE
27180 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27181#else
27182 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27183#endif
27184 }
27185 return resultobj;
27186fail:
27187 return NULL;
d55e5bfc
RD
27188}
27189
27190
1bd55598
RD
27191SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27192 PyObject *resultobj = 0;
27193 wxListItem *arg1 = (wxListItem *) 0 ;
27194 int arg2 ;
27195 void *argp1 = 0 ;
27196 int res1 = 0 ;
27197 int val2 ;
27198 int ecode2 = 0 ;
27199 PyObject *swig_obj[2] ;
27200
27201 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27203 if (!SWIG_IsOK(res1)) {
27204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27205 }
27206 arg1 = reinterpret_cast< wxListItem * >(argp1);
27207 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27208 if (!SWIG_IsOK(ecode2)) {
27209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27210 }
27211 arg2 = static_cast< int >(val2);
27212 if (arg1) (arg1)->m_image = arg2;
27213
27214 resultobj = SWIG_Py_Void();
27215 return resultobj;
27216fail:
27217 return NULL;
d55e5bfc
RD
27218}
27219
27220
1bd55598
RD
27221SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27222 PyObject *resultobj = 0;
27223 wxListItem *arg1 = (wxListItem *) 0 ;
27224 int result;
27225 void *argp1 = 0 ;
27226 int res1 = 0 ;
27227 PyObject *swig_obj[1] ;
27228
27229 if (!args) SWIG_fail;
27230 swig_obj[0] = args;
27231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27232 if (!SWIG_IsOK(res1)) {
27233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27234 }
27235 arg1 = reinterpret_cast< wxListItem * >(argp1);
27236 result = (int) ((arg1)->m_image);
27237 resultobj = SWIG_From_int(static_cast< int >(result));
27238 return resultobj;
27239fail:
27240 return NULL;
27241}
27242
27243
27244SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27245 PyObject *resultobj = 0;
27246 wxListItem *arg1 = (wxListItem *) 0 ;
27247 long arg2 ;
27248 void *argp1 = 0 ;
27249 int res1 = 0 ;
27250 long val2 ;
27251 int ecode2 = 0 ;
27252 PyObject *swig_obj[2] ;
27253
27254 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27256 if (!SWIG_IsOK(res1)) {
27257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27258 }
27259 arg1 = reinterpret_cast< wxListItem * >(argp1);
27260 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27261 if (!SWIG_IsOK(ecode2)) {
27262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27263 }
27264 arg2 = static_cast< long >(val2);
27265 if (arg1) (arg1)->m_data = arg2;
27266
27267 resultobj = SWIG_Py_Void();
27268 return resultobj;
27269fail:
27270 return NULL;
d55e5bfc
RD
27271}
27272
27273
1bd55598
RD
27274SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27275 PyObject *resultobj = 0;
27276 wxListItem *arg1 = (wxListItem *) 0 ;
27277 long result;
27278 void *argp1 = 0 ;
27279 int res1 = 0 ;
27280 PyObject *swig_obj[1] ;
27281
27282 if (!args) SWIG_fail;
27283 swig_obj[0] = args;
27284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27285 if (!SWIG_IsOK(res1)) {
27286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27287 }
27288 arg1 = reinterpret_cast< wxListItem * >(argp1);
27289 result = (long) ((arg1)->m_data);
27290 resultobj = SWIG_From_long(static_cast< long >(result));
27291 return resultobj;
27292fail:
27293 return NULL;
27294}
27295
27296
27297SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27298 PyObject *resultobj = 0;
27299 wxListItem *arg1 = (wxListItem *) 0 ;
27300 int arg2 ;
27301 void *argp1 = 0 ;
27302 int res1 = 0 ;
27303 int val2 ;
27304 int ecode2 = 0 ;
27305 PyObject *swig_obj[2] ;
27306
27307 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27309 if (!SWIG_IsOK(res1)) {
27310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27311 }
27312 arg1 = reinterpret_cast< wxListItem * >(argp1);
27313 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27314 if (!SWIG_IsOK(ecode2)) {
27315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27316 }
27317 arg2 = static_cast< int >(val2);
27318 if (arg1) (arg1)->m_format = arg2;
27319
27320 resultobj = SWIG_Py_Void();
27321 return resultobj;
27322fail:
27323 return NULL;
d55e5bfc
RD
27324}
27325
27326
1bd55598
RD
27327SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27328 PyObject *resultobj = 0;
27329 wxListItem *arg1 = (wxListItem *) 0 ;
27330 int result;
27331 void *argp1 = 0 ;
27332 int res1 = 0 ;
27333 PyObject *swig_obj[1] ;
27334
27335 if (!args) SWIG_fail;
27336 swig_obj[0] = args;
27337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27338 if (!SWIG_IsOK(res1)) {
27339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27340 }
27341 arg1 = reinterpret_cast< wxListItem * >(argp1);
27342 result = (int) ((arg1)->m_format);
27343 resultobj = SWIG_From_int(static_cast< int >(result));
27344 return resultobj;
27345fail:
27346 return NULL;
27347}
27348
27349
27350SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27351 PyObject *resultobj = 0;
27352 wxListItem *arg1 = (wxListItem *) 0 ;
27353 int arg2 ;
27354 void *argp1 = 0 ;
27355 int res1 = 0 ;
27356 int val2 ;
27357 int ecode2 = 0 ;
27358 PyObject *swig_obj[2] ;
27359
27360 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27362 if (!SWIG_IsOK(res1)) {
27363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27364 }
27365 arg1 = reinterpret_cast< wxListItem * >(argp1);
27366 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27367 if (!SWIG_IsOK(ecode2)) {
27368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27369 }
27370 arg2 = static_cast< int >(val2);
27371 if (arg1) (arg1)->m_width = arg2;
27372
27373 resultobj = SWIG_Py_Void();
27374 return resultobj;
27375fail:
27376 return NULL;
d55e5bfc
RD
27377}
27378
27379
1bd55598
RD
27380SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27381 PyObject *resultobj = 0;
27382 wxListItem *arg1 = (wxListItem *) 0 ;
27383 int result;
27384 void *argp1 = 0 ;
27385 int res1 = 0 ;
27386 PyObject *swig_obj[1] ;
27387
27388 if (!args) SWIG_fail;
27389 swig_obj[0] = args;
27390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27391 if (!SWIG_IsOK(res1)) {
27392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27393 }
27394 arg1 = reinterpret_cast< wxListItem * >(argp1);
27395 result = (int) ((arg1)->m_width);
27396 resultobj = SWIG_From_int(static_cast< int >(result));
27397 return resultobj;
27398fail:
27399 return NULL;
27400}
27401
27402
27403SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27404 PyObject *obj;
27405 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27406 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27407 return SWIG_Py_Void();
27408}
27409
27410SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27411 return SWIG_Python_InitShadowInstance(args);
27412}
27413
27414SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27415 PyObject *resultobj = 0;
27416 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27417 int arg2 = (int) 0 ;
27418 wxListEvent *result = 0 ;
27419 int val1 ;
27420 int ecode1 = 0 ;
27421 int val2 ;
27422 int ecode2 = 0 ;
27423 PyObject * obj0 = 0 ;
27424 PyObject * obj1 = 0 ;
27425 char * kwnames[] = {
27426 (char *) "commandType",(char *) "id", NULL
27427 };
27428
27429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27430 if (obj0) {
27431 ecode1 = SWIG_AsVal_int(obj0, &val1);
27432 if (!SWIG_IsOK(ecode1)) {
27433 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27434 }
27435 arg1 = static_cast< wxEventType >(val1);
27436 }
27437 if (obj1) {
27438 ecode2 = SWIG_AsVal_int(obj1, &val2);
27439 if (!SWIG_IsOK(ecode2)) {
27440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27441 }
27442 arg2 = static_cast< int >(val2);
27443 }
27444 {
27445 PyThreadState* __tstate = wxPyBeginAllowThreads();
27446 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27447 wxPyEndAllowThreads(__tstate);
27448 if (PyErr_Occurred()) SWIG_fail;
27449 }
27450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27451 return resultobj;
27452fail:
27453 return NULL;
27454}
27455
27456
27457SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27458 PyObject *resultobj = 0;
27459 wxListEvent *arg1 = (wxListEvent *) 0 ;
27460 int arg2 ;
27461 void *argp1 = 0 ;
27462 int res1 = 0 ;
27463 int val2 ;
27464 int ecode2 = 0 ;
27465 PyObject *swig_obj[2] ;
27466
27467 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27469 if (!SWIG_IsOK(res1)) {
27470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27471 }
27472 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27473 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27474 if (!SWIG_IsOK(ecode2)) {
27475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27476 }
27477 arg2 = static_cast< int >(val2);
27478 if (arg1) (arg1)->m_code = arg2;
27479
27480 resultobj = SWIG_Py_Void();
27481 return resultobj;
27482fail:
27483 return NULL;
d55e5bfc
RD
27484}
27485
27486
1bd55598
RD
27487SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27488 PyObject *resultobj = 0;
27489 wxListEvent *arg1 = (wxListEvent *) 0 ;
27490 int result;
27491 void *argp1 = 0 ;
27492 int res1 = 0 ;
27493 PyObject *swig_obj[1] ;
27494
27495 if (!args) SWIG_fail;
27496 swig_obj[0] = args;
27497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27498 if (!SWIG_IsOK(res1)) {
27499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27500 }
27501 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27502 result = (int) ((arg1)->m_code);
27503 resultobj = SWIG_From_int(static_cast< int >(result));
27504 return resultobj;
27505fail:
27506 return NULL;
27507}
27508
27509
27510SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27511 PyObject *resultobj = 0;
27512 wxListEvent *arg1 = (wxListEvent *) 0 ;
27513 long arg2 ;
27514 void *argp1 = 0 ;
27515 int res1 = 0 ;
27516 long val2 ;
27517 int ecode2 = 0 ;
27518 PyObject *swig_obj[2] ;
27519
27520 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27522 if (!SWIG_IsOK(res1)) {
27523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27524 }
27525 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27526 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27527 if (!SWIG_IsOK(ecode2)) {
27528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27529 }
27530 arg2 = static_cast< long >(val2);
27531 if (arg1) (arg1)->m_oldItemIndex = arg2;
27532
27533 resultobj = SWIG_Py_Void();
27534 return resultobj;
27535fail:
27536 return NULL;
d55e5bfc
RD
27537}
27538
27539
1bd55598
RD
27540SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27541 PyObject *resultobj = 0;
27542 wxListEvent *arg1 = (wxListEvent *) 0 ;
27543 long result;
27544 void *argp1 = 0 ;
27545 int res1 = 0 ;
27546 PyObject *swig_obj[1] ;
27547
27548 if (!args) SWIG_fail;
27549 swig_obj[0] = args;
27550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27551 if (!SWIG_IsOK(res1)) {
27552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27553 }
27554 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27555 result = (long) ((arg1)->m_oldItemIndex);
27556 resultobj = SWIG_From_long(static_cast< long >(result));
27557 return resultobj;
27558fail:
27559 return NULL;
27560}
27561
27562
27563SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27564 PyObject *resultobj = 0;
27565 wxListEvent *arg1 = (wxListEvent *) 0 ;
27566 long arg2 ;
27567 void *argp1 = 0 ;
27568 int res1 = 0 ;
27569 long val2 ;
27570 int ecode2 = 0 ;
27571 PyObject *swig_obj[2] ;
27572
27573 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27575 if (!SWIG_IsOK(res1)) {
27576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27577 }
27578 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27579 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27580 if (!SWIG_IsOK(ecode2)) {
27581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27582 }
27583 arg2 = static_cast< long >(val2);
27584 if (arg1) (arg1)->m_itemIndex = arg2;
27585
27586 resultobj = SWIG_Py_Void();
27587 return resultobj;
27588fail:
27589 return NULL;
f20a2e1f
RD
27590}
27591
27592
1bd55598
RD
27593SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27594 PyObject *resultobj = 0;
27595 wxListEvent *arg1 = (wxListEvent *) 0 ;
27596 long result;
27597 void *argp1 = 0 ;
27598 int res1 = 0 ;
27599 PyObject *swig_obj[1] ;
27600
27601 if (!args) SWIG_fail;
27602 swig_obj[0] = args;
27603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27604 if (!SWIG_IsOK(res1)) {
27605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27606 }
27607 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27608 result = (long) ((arg1)->m_itemIndex);
27609 resultobj = SWIG_From_long(static_cast< long >(result));
27610 return resultobj;
27611fail:
27612 return NULL;
27613}
27614
27615
27616SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27617 PyObject *resultobj = 0;
27618 wxListEvent *arg1 = (wxListEvent *) 0 ;
27619 int arg2 ;
27620 void *argp1 = 0 ;
27621 int res1 = 0 ;
27622 int val2 ;
27623 int ecode2 = 0 ;
27624 PyObject *swig_obj[2] ;
27625
27626 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27628 if (!SWIG_IsOK(res1)) {
27629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27630 }
27631 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27632 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27633 if (!SWIG_IsOK(ecode2)) {
27634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27635 }
27636 arg2 = static_cast< int >(val2);
27637 if (arg1) (arg1)->m_col = arg2;
27638
27639 resultobj = SWIG_Py_Void();
27640 return resultobj;
27641fail:
27642 return NULL;
d55e5bfc
RD
27643}
27644
27645
1bd55598
RD
27646SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27647 PyObject *resultobj = 0;
27648 wxListEvent *arg1 = (wxListEvent *) 0 ;
27649 int result;
27650 void *argp1 = 0 ;
27651 int res1 = 0 ;
27652 PyObject *swig_obj[1] ;
27653
27654 if (!args) SWIG_fail;
27655 swig_obj[0] = args;
27656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27657 if (!SWIG_IsOK(res1)) {
27658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27659 }
27660 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27661 result = (int) ((arg1)->m_col);
27662 resultobj = SWIG_From_int(static_cast< int >(result));
27663 return resultobj;
27664fail:
27665 return NULL;
27666}
27667
27668
27669SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27670 PyObject *resultobj = 0;
27671 wxListEvent *arg1 = (wxListEvent *) 0 ;
27672 wxPoint *arg2 = (wxPoint *) 0 ;
27673 void *argp1 = 0 ;
27674 int res1 = 0 ;
27675 void *argp2 = 0 ;
27676 int res2 = 0 ;
27677 PyObject *swig_obj[2] ;
27678
27679 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27681 if (!SWIG_IsOK(res1)) {
27682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27683 }
27684 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27685 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27686 if (!SWIG_IsOK(res2)) {
27687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27688 }
27689 arg2 = reinterpret_cast< wxPoint * >(argp2);
27690 if (arg1) (arg1)->m_pointDrag = *arg2;
27691
27692 resultobj = SWIG_Py_Void();
27693 return resultobj;
27694fail:
27695 return NULL;
d55e5bfc
RD
27696}
27697
27698
1bd55598
RD
27699SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27700 PyObject *resultobj = 0;
27701 wxListEvent *arg1 = (wxListEvent *) 0 ;
27702 wxPoint *result = 0 ;
27703 void *argp1 = 0 ;
27704 int res1 = 0 ;
27705 PyObject *swig_obj[1] ;
27706
27707 if (!args) SWIG_fail;
27708 swig_obj[0] = args;
27709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27710 if (!SWIG_IsOK(res1)) {
27711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27712 }
27713 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27714 result = (wxPoint *)& ((arg1)->m_pointDrag);
27715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
27716 return resultobj;
27717fail:
27718 return NULL;
27719}
27720
27721
27722SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27723 PyObject *resultobj = 0;
27724 wxListEvent *arg1 = (wxListEvent *) 0 ;
27725 wxListItem *result = 0 ;
27726 void *argp1 = 0 ;
27727 int res1 = 0 ;
27728 PyObject *swig_obj[1] ;
27729
27730 if (!args) SWIG_fail;
27731 swig_obj[0] = args;
27732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27733 if (!SWIG_IsOK(res1)) {
27734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27735 }
27736 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27737 result = (wxListItem *)& ((arg1)->m_item);
27738 {
27739 resultobj = wxPyMake_wxObject(result, (bool)0);
27740 }
27741 return resultobj;
27742fail:
27743 return NULL;
d55e5bfc
RD
27744}
27745
27746
1bd55598
RD
27747SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27748 PyObject *resultobj = 0;
27749 wxListEvent *arg1 = (wxListEvent *) 0 ;
27750 int result;
27751 void *argp1 = 0 ;
27752 int res1 = 0 ;
27753 PyObject *swig_obj[1] ;
27754
27755 if (!args) SWIG_fail;
27756 swig_obj[0] = args;
27757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27758 if (!SWIG_IsOK(res1)) {
27759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
27760 }
27761 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27762 {
27763 PyThreadState* __tstate = wxPyBeginAllowThreads();
27764 result = (int)(arg1)->GetKeyCode();
27765 wxPyEndAllowThreads(__tstate);
27766 if (PyErr_Occurred()) SWIG_fail;
27767 }
27768 resultobj = SWIG_From_int(static_cast< int >(result));
27769 return resultobj;
27770fail:
27771 return NULL;
d55e5bfc
RD
27772}
27773
27774
1bd55598
RD
27775SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27776 PyObject *resultobj = 0;
27777 wxListEvent *arg1 = (wxListEvent *) 0 ;
27778 long result;
27779 void *argp1 = 0 ;
27780 int res1 = 0 ;
27781 PyObject *swig_obj[1] ;
27782
27783 if (!args) SWIG_fail;
27784 swig_obj[0] = args;
27785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27786 if (!SWIG_IsOK(res1)) {
27787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
27788 }
27789 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27790 {
27791 PyThreadState* __tstate = wxPyBeginAllowThreads();
27792 result = (long)(arg1)->GetIndex();
27793 wxPyEndAllowThreads(__tstate);
27794 if (PyErr_Occurred()) SWIG_fail;
27795 }
27796 resultobj = SWIG_From_long(static_cast< long >(result));
27797 return resultobj;
27798fail:
27799 return NULL;
d55e5bfc
RD
27800}
27801
27802
1bd55598
RD
27803SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27804 PyObject *resultobj = 0;
27805 wxListEvent *arg1 = (wxListEvent *) 0 ;
27806 int result;
27807 void *argp1 = 0 ;
27808 int res1 = 0 ;
27809 PyObject *swig_obj[1] ;
27810
27811 if (!args) SWIG_fail;
27812 swig_obj[0] = args;
27813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27814 if (!SWIG_IsOK(res1)) {
27815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
27816 }
27817 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27818 {
27819 PyThreadState* __tstate = wxPyBeginAllowThreads();
27820 result = (int)(arg1)->GetColumn();
27821 wxPyEndAllowThreads(__tstate);
27822 if (PyErr_Occurred()) SWIG_fail;
27823 }
27824 resultobj = SWIG_From_int(static_cast< int >(result));
27825 return resultobj;
27826fail:
27827 return NULL;
d55e5bfc
RD
27828}
27829
27830
1bd55598
RD
27831SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27832 PyObject *resultobj = 0;
27833 wxListEvent *arg1 = (wxListEvent *) 0 ;
27834 wxPoint result;
27835 void *argp1 = 0 ;
27836 int res1 = 0 ;
27837 PyObject *swig_obj[1] ;
27838
27839 if (!args) SWIG_fail;
27840 swig_obj[0] = args;
27841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27842 if (!SWIG_IsOK(res1)) {
27843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
27844 }
27845 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27846 {
27847 PyThreadState* __tstate = wxPyBeginAllowThreads();
27848 result = (arg1)->GetPoint();
27849 wxPyEndAllowThreads(__tstate);
27850 if (PyErr_Occurred()) SWIG_fail;
27851 }
27852 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
27853 return resultobj;
27854fail:
27855 return NULL;
d55e5bfc
RD
27856}
27857
27858
1bd55598
RD
27859SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27860 PyObject *resultobj = 0;
27861 wxListEvent *arg1 = (wxListEvent *) 0 ;
27862 wxString *result = 0 ;
27863 void *argp1 = 0 ;
27864 int res1 = 0 ;
27865 PyObject *swig_obj[1] ;
27866
27867 if (!args) SWIG_fail;
27868 swig_obj[0] = args;
27869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27870 if (!SWIG_IsOK(res1)) {
27871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
27872 }
27873 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27874 {
27875 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 27876 {
1bd55598
RD
27877 wxString const &_result_ref = (arg1)->GetLabel();
27878 result = (wxString *) &_result_ref;
d55e5bfc 27879 }
1bd55598
RD
27880 wxPyEndAllowThreads(__tstate);
27881 if (PyErr_Occurred()) SWIG_fail;
27882 }
27883 {
27884#if wxUSE_UNICODE
27885 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27886#else
27887 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27888#endif
27889 }
27890 return resultobj;
27891fail:
27892 return NULL;
d55e5bfc
RD
27893}
27894
27895
1bd55598
RD
27896SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27897 PyObject *resultobj = 0;
27898 wxListEvent *arg1 = (wxListEvent *) 0 ;
27899 wxString *result = 0 ;
27900 void *argp1 = 0 ;
27901 int res1 = 0 ;
27902 PyObject *swig_obj[1] ;
27903
27904 if (!args) SWIG_fail;
27905 swig_obj[0] = args;
27906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27907 if (!SWIG_IsOK(res1)) {
27908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
27909 }
27910 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27911 {
27912 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 27913 {
1bd55598
RD
27914 wxString const &_result_ref = (arg1)->GetText();
27915 result = (wxString *) &_result_ref;
36ed4f51 27916 }
1bd55598
RD
27917 wxPyEndAllowThreads(__tstate);
27918 if (PyErr_Occurred()) SWIG_fail;
27919 }
27920 {
27921#if wxUSE_UNICODE
27922 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27923#else
27924 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27925#endif
27926 }
27927 return resultobj;
27928fail:
27929 return NULL;
d55e5bfc
RD
27930}
27931
27932
1bd55598
RD
27933SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27934 PyObject *resultobj = 0;
27935 wxListEvent *arg1 = (wxListEvent *) 0 ;
27936 int result;
27937 void *argp1 = 0 ;
27938 int res1 = 0 ;
27939 PyObject *swig_obj[1] ;
27940
27941 if (!args) SWIG_fail;
27942 swig_obj[0] = args;
27943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27944 if (!SWIG_IsOK(res1)) {
27945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
27946 }
27947 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27948 {
27949 PyThreadState* __tstate = wxPyBeginAllowThreads();
27950 result = (int)(arg1)->GetImage();
27951 wxPyEndAllowThreads(__tstate);
27952 if (PyErr_Occurred()) SWIG_fail;
27953 }
27954 resultobj = SWIG_From_int(static_cast< int >(result));
27955 return resultobj;
27956fail:
27957 return NULL;
d55e5bfc
RD
27958}
27959
27960
1bd55598
RD
27961SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27962 PyObject *resultobj = 0;
27963 wxListEvent *arg1 = (wxListEvent *) 0 ;
27964 long result;
27965 void *argp1 = 0 ;
27966 int res1 = 0 ;
27967 PyObject *swig_obj[1] ;
27968
27969 if (!args) SWIG_fail;
27970 swig_obj[0] = args;
27971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27972 if (!SWIG_IsOK(res1)) {
27973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
27974 }
27975 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27976 {
27977 PyThreadState* __tstate = wxPyBeginAllowThreads();
27978 result = (long)(arg1)->GetData();
27979 wxPyEndAllowThreads(__tstate);
27980 if (PyErr_Occurred()) SWIG_fail;
27981 }
27982 resultobj = SWIG_From_long(static_cast< long >(result));
27983 return resultobj;
27984fail:
27985 return NULL;
d55e5bfc
RD
27986}
27987
27988
1bd55598
RD
27989SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27990 PyObject *resultobj = 0;
27991 wxListEvent *arg1 = (wxListEvent *) 0 ;
27992 long result;
27993 void *argp1 = 0 ;
27994 int res1 = 0 ;
27995 PyObject *swig_obj[1] ;
27996
27997 if (!args) SWIG_fail;
27998 swig_obj[0] = args;
27999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28000 if (!SWIG_IsOK(res1)) {
28001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28002 }
28003 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28004 {
28005 PyThreadState* __tstate = wxPyBeginAllowThreads();
28006 result = (long)(arg1)->GetMask();
28007 wxPyEndAllowThreads(__tstate);
28008 if (PyErr_Occurred()) SWIG_fail;
28009 }
28010 resultobj = SWIG_From_long(static_cast< long >(result));
28011 return resultobj;
28012fail:
28013 return NULL;
d55e5bfc
RD
28014}
28015
28016
1bd55598
RD
28017SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28018 PyObject *resultobj = 0;
28019 wxListEvent *arg1 = (wxListEvent *) 0 ;
28020 wxListItem *result = 0 ;
28021 void *argp1 = 0 ;
28022 int res1 = 0 ;
28023 PyObject *swig_obj[1] ;
28024
28025 if (!args) SWIG_fail;
28026 swig_obj[0] = args;
28027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28028 if (!SWIG_IsOK(res1)) {
28029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28030 }
28031 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28032 {
28033 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28034 {
1bd55598
RD
28035 wxListItem const &_result_ref = (arg1)->GetItem();
28036 result = (wxListItem *) &_result_ref;
d55e5bfc 28037 }
1bd55598
RD
28038 wxPyEndAllowThreads(__tstate);
28039 if (PyErr_Occurred()) SWIG_fail;
28040 }
28041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28042 return resultobj;
28043fail:
28044 return NULL;
d55e5bfc
RD
28045}
28046
28047
1bd55598
RD
28048SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28049 PyObject *resultobj = 0;
28050 wxListEvent *arg1 = (wxListEvent *) 0 ;
28051 long result;
28052 void *argp1 = 0 ;
28053 int res1 = 0 ;
28054 PyObject *swig_obj[1] ;
28055
28056 if (!args) SWIG_fail;
28057 swig_obj[0] = args;
28058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28059 if (!SWIG_IsOK(res1)) {
28060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28061 }
28062 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28063 {
28064 PyThreadState* __tstate = wxPyBeginAllowThreads();
28065 result = (long)(arg1)->GetCacheFrom();
28066 wxPyEndAllowThreads(__tstate);
28067 if (PyErr_Occurred()) SWIG_fail;
28068 }
28069 resultobj = SWIG_From_long(static_cast< long >(result));
28070 return resultobj;
28071fail:
28072 return NULL;
d55e5bfc
RD
28073}
28074
28075
1bd55598
RD
28076SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28077 PyObject *resultobj = 0;
28078 wxListEvent *arg1 = (wxListEvent *) 0 ;
28079 long result;
28080 void *argp1 = 0 ;
28081 int res1 = 0 ;
28082 PyObject *swig_obj[1] ;
28083
28084 if (!args) SWIG_fail;
28085 swig_obj[0] = args;
28086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28087 if (!SWIG_IsOK(res1)) {
28088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28089 }
28090 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28091 {
28092 PyThreadState* __tstate = wxPyBeginAllowThreads();
28093 result = (long)(arg1)->GetCacheTo();
28094 wxPyEndAllowThreads(__tstate);
28095 if (PyErr_Occurred()) SWIG_fail;
28096 }
28097 resultobj = SWIG_From_long(static_cast< long >(result));
28098 return resultobj;
28099fail:
28100 return NULL;
7e08d4ef
RD
28101}
28102
28103
1bd55598
RD
28104SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28105 PyObject *resultobj = 0;
28106 wxListEvent *arg1 = (wxListEvent *) 0 ;
28107 bool result;
28108 void *argp1 = 0 ;
28109 int res1 = 0 ;
28110 PyObject *swig_obj[1] ;
28111
28112 if (!args) SWIG_fail;
28113 swig_obj[0] = args;
28114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28115 if (!SWIG_IsOK(res1)) {
28116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28117 }
28118 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28119 {
28120 PyThreadState* __tstate = wxPyBeginAllowThreads();
28121 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28122 wxPyEndAllowThreads(__tstate);
28123 if (PyErr_Occurred()) SWIG_fail;
28124 }
28125 {
28126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28127 }
28128 return resultobj;
28129fail:
28130 return NULL;
28131}
28132
28133
28134SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28135 PyObject *resultobj = 0;
28136 wxListEvent *arg1 = (wxListEvent *) 0 ;
28137 bool arg2 ;
28138 void *argp1 = 0 ;
28139 int res1 = 0 ;
28140 bool val2 ;
28141 int ecode2 = 0 ;
28142 PyObject * obj0 = 0 ;
28143 PyObject * obj1 = 0 ;
28144 char * kwnames[] = {
28145 (char *) "self",(char *) "editCancelled", NULL
28146 };
28147
28148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28150 if (!SWIG_IsOK(res1)) {
28151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28152 }
28153 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28154 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28155 if (!SWIG_IsOK(ecode2)) {
28156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28157 }
28158 arg2 = static_cast< bool >(val2);
28159 {
28160 PyThreadState* __tstate = wxPyBeginAllowThreads();
28161 (arg1)->SetEditCanceled(arg2);
28162 wxPyEndAllowThreads(__tstate);
28163 if (PyErr_Occurred()) SWIG_fail;
28164 }
28165 resultobj = SWIG_Py_Void();
28166 return resultobj;
28167fail:
28168 return NULL;
28169}
28170
28171
28172SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28173 PyObject *obj;
28174 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28175 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28176 return SWIG_Py_Void();
28177}
28178
28179SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28180 return SWIG_Python_InitShadowInstance(args);
28181}
28182
28183SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28184 PyObject *resultobj = 0;
28185 wxWindow *arg1 = (wxWindow *) 0 ;
28186 int arg2 = (int) -1 ;
28187 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28188 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28189 wxSize const &arg4_defvalue = wxDefaultSize ;
28190 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28191 long arg5 = (long) wxLC_ICON ;
28192 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28193 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28194 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28195 wxString *arg7 = (wxString *) &arg7_defvalue ;
28196 wxPyListCtrl *result = 0 ;
28197 void *argp1 = 0 ;
28198 int res1 = 0 ;
28199 int val2 ;
28200 int ecode2 = 0 ;
28201 wxPoint temp3 ;
28202 wxSize temp4 ;
28203 long val5 ;
28204 int ecode5 = 0 ;
28205 void *argp6 = 0 ;
28206 int res6 = 0 ;
28207 bool temp7 = false ;
28208 PyObject * obj0 = 0 ;
28209 PyObject * obj1 = 0 ;
28210 PyObject * obj2 = 0 ;
28211 PyObject * obj3 = 0 ;
28212 PyObject * obj4 = 0 ;
28213 PyObject * obj5 = 0 ;
28214 PyObject * obj6 = 0 ;
28215 char * kwnames[] = {
28216 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28217 };
28218
28219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28221 if (!SWIG_IsOK(res1)) {
28222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28223 }
28224 arg1 = reinterpret_cast< wxWindow * >(argp1);
28225 if (obj1) {
28226 ecode2 = SWIG_AsVal_int(obj1, &val2);
28227 if (!SWIG_IsOK(ecode2)) {
28228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28229 }
28230 arg2 = static_cast< int >(val2);
28231 }
28232 if (obj2) {
7e08d4ef 28233 {
1bd55598
RD
28234 arg3 = &temp3;
28235 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 28236 }
1bd55598
RD
28237 }
28238 if (obj3) {
7e08d4ef 28239 {
1bd55598
RD
28240 arg4 = &temp4;
28241 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28242 }
1bd55598
RD
28243 }
28244 if (obj4) {
28245 ecode5 = SWIG_AsVal_long(obj4, &val5);
28246 if (!SWIG_IsOK(ecode5)) {
28247 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28248 }
28249 arg5 = static_cast< long >(val5);
28250 }
28251 if (obj5) {
28252 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28253 if (!SWIG_IsOK(res6)) {
28254 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28255 }
1bd55598
RD
28256 if (!argp6) {
28257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28258 }
1bd55598
RD
28259 arg6 = reinterpret_cast< wxValidator * >(argp6);
28260 }
28261 if (obj6) {
7e08d4ef 28262 {
1bd55598
RD
28263 arg7 = wxString_in_helper(obj6);
28264 if (arg7 == NULL) SWIG_fail;
28265 temp7 = true;
7e08d4ef 28266 }
1bd55598
RD
28267 }
28268 {
28269 if (!wxPyCheckForApp()) SWIG_fail;
28270 PyThreadState* __tstate = wxPyBeginAllowThreads();
28271 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28272 wxPyEndAllowThreads(__tstate);
28273 if (PyErr_Occurred()) SWIG_fail;
28274 }
28275 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28276 {
28277 if (temp7)
28278 delete arg7;
28279 }
28280 return resultobj;
28281fail:
28282 {
28283 if (temp7)
28284 delete arg7;
28285 }
28286 return NULL;
7e08d4ef
RD
28287}
28288
28289
1bd55598
RD
28290SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28291 PyObject *resultobj = 0;
28292 wxPyListCtrl *result = 0 ;
28293
28294 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28295 {
28296 if (!wxPyCheckForApp()) SWIG_fail;
28297 PyThreadState* __tstate = wxPyBeginAllowThreads();
28298 result = (wxPyListCtrl *)new wxPyListCtrl();
28299 wxPyEndAllowThreads(__tstate);
28300 if (PyErr_Occurred()) SWIG_fail;
28301 }
28302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28303 return resultobj;
28304fail:
28305 return NULL;
28306}
28307
28308
28309SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28310 PyObject *resultobj = 0;
28311 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28312 wxWindow *arg2 = (wxWindow *) 0 ;
28313 int arg3 = (int) -1 ;
28314 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28315 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28316 wxSize const &arg5_defvalue = wxDefaultSize ;
28317 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28318 long arg6 = (long) wxLC_ICON ;
28319 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28320 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28321 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28322 wxString *arg8 = (wxString *) &arg8_defvalue ;
28323 bool result;
28324 void *argp1 = 0 ;
28325 int res1 = 0 ;
28326 void *argp2 = 0 ;
28327 int res2 = 0 ;
28328 int val3 ;
28329 int ecode3 = 0 ;
28330 wxPoint temp4 ;
28331 wxSize temp5 ;
28332 long val6 ;
28333 int ecode6 = 0 ;
28334 void *argp7 = 0 ;
28335 int res7 = 0 ;
28336 bool temp8 = false ;
28337 PyObject * obj0 = 0 ;
28338 PyObject * obj1 = 0 ;
28339 PyObject * obj2 = 0 ;
28340 PyObject * obj3 = 0 ;
28341 PyObject * obj4 = 0 ;
28342 PyObject * obj5 = 0 ;
28343 PyObject * obj6 = 0 ;
28344 PyObject * obj7 = 0 ;
28345 char * kwnames[] = {
28346 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28347 };
28348
28349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28351 if (!SWIG_IsOK(res1)) {
28352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28353 }
28354 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28355 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28356 if (!SWIG_IsOK(res2)) {
28357 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28358 }
28359 arg2 = reinterpret_cast< wxWindow * >(argp2);
28360 if (obj2) {
28361 ecode3 = SWIG_AsVal_int(obj2, &val3);
28362 if (!SWIG_IsOK(ecode3)) {
28363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28364 }
28365 arg3 = static_cast< int >(val3);
28366 }
28367 if (obj3) {
7e08d4ef 28368 {
1bd55598
RD
28369 arg4 = &temp4;
28370 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28371 }
1bd55598
RD
28372 }
28373 if (obj4) {
7e08d4ef 28374 {
1bd55598
RD
28375 arg5 = &temp5;
28376 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 28377 }
1bd55598
RD
28378 }
28379 if (obj5) {
28380 ecode6 = SWIG_AsVal_long(obj5, &val6);
28381 if (!SWIG_IsOK(ecode6)) {
28382 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28383 }
28384 arg6 = static_cast< long >(val6);
28385 }
28386 if (obj6) {
28387 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28388 if (!SWIG_IsOK(res7)) {
28389 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 28390 }
1bd55598
RD
28391 if (!argp7) {
28392 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 28393 }
1bd55598
RD
28394 arg7 = reinterpret_cast< wxValidator * >(argp7);
28395 }
28396 if (obj7) {
7e08d4ef 28397 {
1bd55598
RD
28398 arg8 = wxString_in_helper(obj7);
28399 if (arg8 == NULL) SWIG_fail;
28400 temp8 = true;
7e08d4ef 28401 }
1bd55598
RD
28402 }
28403 {
28404 PyThreadState* __tstate = wxPyBeginAllowThreads();
28405 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28406 wxPyEndAllowThreads(__tstate);
28407 if (PyErr_Occurred()) SWIG_fail;
28408 }
28409 {
28410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28411 }
28412 {
28413 if (temp8)
28414 delete arg8;
28415 }
28416 return resultobj;
28417fail:
28418 {
28419 if (temp8)
28420 delete arg8;
28421 }
28422 return NULL;
28423}
28424
28425
28426SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28427 PyObject *resultobj = 0;
28428 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28429 PyObject *arg2 = (PyObject *) 0 ;
28430 PyObject *arg3 = (PyObject *) 0 ;
28431 void *argp1 = 0 ;
28432 int res1 = 0 ;
28433 PyObject * obj0 = 0 ;
28434 PyObject * obj1 = 0 ;
28435 PyObject * obj2 = 0 ;
28436 char * kwnames[] = {
28437 (char *) "self",(char *) "self",(char *) "_class", NULL
28438 };
28439
28440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28442 if (!SWIG_IsOK(res1)) {
28443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28444 }
28445 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28446 arg2 = obj1;
28447 arg3 = obj2;
28448 {
28449 PyThreadState* __tstate = wxPyBeginAllowThreads();
28450 (arg1)->_setCallbackInfo(arg2,arg3);
28451 wxPyEndAllowThreads(__tstate);
28452 if (PyErr_Occurred()) SWIG_fail;
28453 }
28454 resultobj = SWIG_Py_Void();
28455 return resultobj;
28456fail:
28457 return NULL;
28458}
28459
28460
28461SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28462 PyObject *resultobj = 0;
28463 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28464 int arg2 ;
28465 wxListItem *result = 0 ;
28466 void *argp1 = 0 ;
28467 int res1 = 0 ;
28468 int val2 ;
28469 int ecode2 = 0 ;
28470 PyObject * obj0 = 0 ;
28471 PyObject * obj1 = 0 ;
28472 char * kwnames[] = {
28473 (char *) "self",(char *) "col", NULL
28474 };
28475
28476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28478 if (!SWIG_IsOK(res1)) {
28479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28480 }
28481 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28482 ecode2 = SWIG_AsVal_int(obj1, &val2);
28483 if (!SWIG_IsOK(ecode2)) {
28484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28485 }
28486 arg2 = static_cast< int >(val2);
28487 {
28488 PyThreadState* __tstate = wxPyBeginAllowThreads();
28489 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28490 wxPyEndAllowThreads(__tstate);
28491 if (PyErr_Occurred()) SWIG_fail;
28492 }
28493 {
28494 resultobj = wxPyMake_wxObject(result, (bool)0);
28495 }
28496 return resultobj;
28497fail:
28498 return NULL;
28499}
28500
28501
28502SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28503 PyObject *resultobj = 0;
28504 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28505 int arg2 ;
28506 wxListItem *arg3 = 0 ;
28507 bool result;
28508 void *argp1 = 0 ;
28509 int res1 = 0 ;
28510 int val2 ;
28511 int ecode2 = 0 ;
28512 void *argp3 = 0 ;
28513 int res3 = 0 ;
28514 PyObject * obj0 = 0 ;
28515 PyObject * obj1 = 0 ;
28516 PyObject * obj2 = 0 ;
28517 char * kwnames[] = {
28518 (char *) "self",(char *) "col",(char *) "item", NULL
28519 };
28520
28521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28523 if (!SWIG_IsOK(res1)) {
28524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28525 }
28526 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28527 ecode2 = SWIG_AsVal_int(obj1, &val2);
28528 if (!SWIG_IsOK(ecode2)) {
28529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28530 }
28531 arg2 = static_cast< int >(val2);
28532 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28533 if (!SWIG_IsOK(res3)) {
28534 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28535 }
28536 if (!argp3) {
28537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28538 }
28539 arg3 = reinterpret_cast< wxListItem * >(argp3);
28540 {
28541 PyThreadState* __tstate = wxPyBeginAllowThreads();
28542 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28543 wxPyEndAllowThreads(__tstate);
28544 if (PyErr_Occurred()) SWIG_fail;
28545 }
28546 {
28547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28548 }
28549 return resultobj;
28550fail:
28551 return NULL;
28552}
28553
28554
28555SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28556 PyObject *resultobj = 0;
28557 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28558 int arg2 ;
28559 int result;
28560 void *argp1 = 0 ;
28561 int res1 = 0 ;
28562 int val2 ;
28563 int ecode2 = 0 ;
28564 PyObject * obj0 = 0 ;
28565 PyObject * obj1 = 0 ;
28566 char * kwnames[] = {
28567 (char *) "self",(char *) "col", NULL
28568 };
28569
28570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28572 if (!SWIG_IsOK(res1)) {
28573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28574 }
28575 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28576 ecode2 = SWIG_AsVal_int(obj1, &val2);
28577 if (!SWIG_IsOK(ecode2)) {
28578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28579 }
28580 arg2 = static_cast< int >(val2);
28581 {
28582 PyThreadState* __tstate = wxPyBeginAllowThreads();
28583 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28584 wxPyEndAllowThreads(__tstate);
28585 if (PyErr_Occurred()) SWIG_fail;
28586 }
28587 resultobj = SWIG_From_int(static_cast< int >(result));
28588 return resultobj;
28589fail:
28590 return NULL;
28591}
28592
28593
28594SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28595 PyObject *resultobj = 0;
28596 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28597 int arg2 ;
28598 int arg3 ;
28599 bool result;
28600 void *argp1 = 0 ;
28601 int res1 = 0 ;
28602 int val2 ;
28603 int ecode2 = 0 ;
28604 int val3 ;
28605 int ecode3 = 0 ;
28606 PyObject * obj0 = 0 ;
28607 PyObject * obj1 = 0 ;
28608 PyObject * obj2 = 0 ;
28609 char * kwnames[] = {
28610 (char *) "self",(char *) "col",(char *) "width", NULL
28611 };
28612
28613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28615 if (!SWIG_IsOK(res1)) {
28616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28617 }
28618 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28619 ecode2 = SWIG_AsVal_int(obj1, &val2);
28620 if (!SWIG_IsOK(ecode2)) {
28621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28622 }
28623 arg2 = static_cast< int >(val2);
28624 ecode3 = SWIG_AsVal_int(obj2, &val3);
28625 if (!SWIG_IsOK(ecode3)) {
28626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28627 }
28628 arg3 = static_cast< int >(val3);
28629 {
28630 PyThreadState* __tstate = wxPyBeginAllowThreads();
28631 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28632 wxPyEndAllowThreads(__tstate);
28633 if (PyErr_Occurred()) SWIG_fail;
28634 }
28635 {
28636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28637 }
28638 return resultobj;
28639fail:
28640 return NULL;
7e08d4ef
RD
28641}
28642
28643
1bd55598
RD
28644SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28645 PyObject *resultobj = 0;
28646 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28647 int result;
28648 void *argp1 = 0 ;
28649 int res1 = 0 ;
28650 PyObject *swig_obj[1] ;
28651
28652 if (!args) SWIG_fail;
28653 swig_obj[0] = args;
28654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28655 if (!SWIG_IsOK(res1)) {
28656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28657 }
28658 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28659 {
28660 PyThreadState* __tstate = wxPyBeginAllowThreads();
28661 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28662 wxPyEndAllowThreads(__tstate);
28663 if (PyErr_Occurred()) SWIG_fail;
28664 }
28665 resultobj = SWIG_From_int(static_cast< int >(result));
28666 return resultobj;
28667fail:
28668 return NULL;
7e08d4ef
RD
28669}
28670
28671
1bd55598
RD
28672SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28673 PyObject *resultobj = 0;
28674 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28675 wxRect result;
28676 void *argp1 = 0 ;
28677 int res1 = 0 ;
28678 PyObject *swig_obj[1] ;
28679
28680 if (!args) SWIG_fail;
28681 swig_obj[0] = args;
28682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28683 if (!SWIG_IsOK(res1)) {
28684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28685 }
28686 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28687 {
28688 PyThreadState* __tstate = wxPyBeginAllowThreads();
28689 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28690 wxPyEndAllowThreads(__tstate);
28691 if (PyErr_Occurred()) SWIG_fail;
28692 }
28693 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28694 return resultobj;
28695fail:
28696 return NULL;
7e08d4ef
RD
28697}
28698
28699
1bd55598
RD
28700SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28701 PyObject *resultobj = 0;
28702 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28703 wxTextCtrl *result = 0 ;
28704 void *argp1 = 0 ;
28705 int res1 = 0 ;
28706 PyObject *swig_obj[1] ;
28707
28708 if (!args) SWIG_fail;
28709 swig_obj[0] = args;
28710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28711 if (!SWIG_IsOK(res1)) {
28712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28713 }
28714 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28715 {
28716 PyThreadState* __tstate = wxPyBeginAllowThreads();
28717 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
28718 wxPyEndAllowThreads(__tstate);
28719 if (PyErr_Occurred()) SWIG_fail;
28720 }
28721 {
28722 resultobj = wxPyMake_wxObject(result, 0);
28723 }
28724 return resultobj;
28725fail:
28726 return NULL;
28727}
28728
28729
28730SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28731 PyObject *resultobj = 0;
28732 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28733 long arg2 ;
28734 int arg3 = (int) 0 ;
28735 wxListItem *result = 0 ;
28736 void *argp1 = 0 ;
28737 int res1 = 0 ;
28738 long val2 ;
28739 int ecode2 = 0 ;
28740 int val3 ;
28741 int ecode3 = 0 ;
28742 PyObject * obj0 = 0 ;
28743 PyObject * obj1 = 0 ;
28744 PyObject * obj2 = 0 ;
28745 char * kwnames[] = {
28746 (char *) "self",(char *) "itemId",(char *) "col", NULL
28747 };
28748
28749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28751 if (!SWIG_IsOK(res1)) {
28752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28753 }
28754 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28755 ecode2 = SWIG_AsVal_long(obj1, &val2);
28756 if (!SWIG_IsOK(ecode2)) {
28757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
28758 }
28759 arg2 = static_cast< long >(val2);
28760 if (obj2) {
28761 ecode3 = SWIG_AsVal_int(obj2, &val3);
28762 if (!SWIG_IsOK(ecode3)) {
28763 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
28764 }
28765 arg3 = static_cast< int >(val3);
28766 }
28767 {
28768 PyThreadState* __tstate = wxPyBeginAllowThreads();
28769 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
28770 wxPyEndAllowThreads(__tstate);
28771 if (PyErr_Occurred()) SWIG_fail;
28772 }
28773 {
28774 resultobj = wxPyMake_wxObject(result, (bool)0);
28775 }
28776 return resultobj;
28777fail:
28778 return NULL;
28779}
28780
28781
28782SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28783 PyObject *resultobj = 0;
28784 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28785 wxListItem *arg2 = 0 ;
28786 bool result;
28787 void *argp1 = 0 ;
28788 int res1 = 0 ;
28789 void *argp2 = 0 ;
28790 int res2 = 0 ;
28791 PyObject * obj0 = 0 ;
28792 PyObject * obj1 = 0 ;
28793 char * kwnames[] = {
28794 (char *) "self",(char *) "info", NULL
28795 };
28796
28797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
28798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28799 if (!SWIG_IsOK(res1)) {
28800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28801 }
28802 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
28804 if (!SWIG_IsOK(res2)) {
28805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28806 }
28807 if (!argp2) {
28808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28809 }
28810 arg2 = reinterpret_cast< wxListItem * >(argp2);
28811 {
28812 PyThreadState* __tstate = wxPyBeginAllowThreads();
28813 result = (bool)(arg1)->SetItem(*arg2);
28814 wxPyEndAllowThreads(__tstate);
28815 if (PyErr_Occurred()) SWIG_fail;
28816 }
28817 {
28818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28819 }
28820 return resultobj;
28821fail:
28822 return NULL;
28823}
28824
28825
28826SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28827 PyObject *resultobj = 0;
28828 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28829 long arg2 ;
28830 int arg3 ;
28831 wxString *arg4 = 0 ;
28832 int arg5 = (int) -1 ;
28833 long result;
28834 void *argp1 = 0 ;
28835 int res1 = 0 ;
28836 long val2 ;
28837 int ecode2 = 0 ;
28838 int val3 ;
28839 int ecode3 = 0 ;
28840 bool temp4 = false ;
28841 int val5 ;
28842 int ecode5 = 0 ;
28843 PyObject * obj0 = 0 ;
28844 PyObject * obj1 = 0 ;
28845 PyObject * obj2 = 0 ;
28846 PyObject * obj3 = 0 ;
28847 PyObject * obj4 = 0 ;
28848 char * kwnames[] = {
28849 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
28850 };
28851
28852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28854 if (!SWIG_IsOK(res1)) {
28855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28856 }
28857 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28858 ecode2 = SWIG_AsVal_long(obj1, &val2);
28859 if (!SWIG_IsOK(ecode2)) {
28860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
28861 }
28862 arg2 = static_cast< long >(val2);
28863 ecode3 = SWIG_AsVal_int(obj2, &val3);
28864 if (!SWIG_IsOK(ecode3)) {
28865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
28866 }
28867 arg3 = static_cast< int >(val3);
28868 {
28869 arg4 = wxString_in_helper(obj3);
28870 if (arg4 == NULL) SWIG_fail;
28871 temp4 = true;
28872 }
28873 if (obj4) {
28874 ecode5 = SWIG_AsVal_int(obj4, &val5);
28875 if (!SWIG_IsOK(ecode5)) {
28876 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
28877 }
28878 arg5 = static_cast< int >(val5);
28879 }
28880 {
28881 PyThreadState* __tstate = wxPyBeginAllowThreads();
28882 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
28883 wxPyEndAllowThreads(__tstate);
28884 if (PyErr_Occurred()) SWIG_fail;
28885 }
28886 resultobj = SWIG_From_long(static_cast< long >(result));
28887 {
28888 if (temp4)
28889 delete arg4;
28890 }
28891 return resultobj;
28892fail:
28893 {
28894 if (temp4)
28895 delete arg4;
28896 }
28897 return NULL;
28898}
28899
28900
28901SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28902 PyObject *resultobj = 0;
28903 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28904 long arg2 ;
28905 long arg3 ;
28906 int result;
28907 void *argp1 = 0 ;
28908 int res1 = 0 ;
28909 long val2 ;
28910 int ecode2 = 0 ;
28911 long val3 ;
28912 int ecode3 = 0 ;
28913 PyObject * obj0 = 0 ;
28914 PyObject * obj1 = 0 ;
28915 PyObject * obj2 = 0 ;
28916 char * kwnames[] = {
28917 (char *) "self",(char *) "item",(char *) "stateMask", NULL
28918 };
28919
28920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28922 if (!SWIG_IsOK(res1)) {
28923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28924 }
28925 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28926 ecode2 = SWIG_AsVal_long(obj1, &val2);
28927 if (!SWIG_IsOK(ecode2)) {
28928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
28929 }
28930 arg2 = static_cast< long >(val2);
28931 ecode3 = SWIG_AsVal_long(obj2, &val3);
28932 if (!SWIG_IsOK(ecode3)) {
28933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
28934 }
28935 arg3 = static_cast< long >(val3);
28936 {
28937 PyThreadState* __tstate = wxPyBeginAllowThreads();
28938 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
28939 wxPyEndAllowThreads(__tstate);
28940 if (PyErr_Occurred()) SWIG_fail;
28941 }
28942 resultobj = SWIG_From_int(static_cast< int >(result));
28943 return resultobj;
28944fail:
28945 return NULL;
28946}
28947
28948
28949SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28950 PyObject *resultobj = 0;
28951 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28952 long arg2 ;
28953 long arg3 ;
28954 long arg4 ;
28955 bool result;
28956 void *argp1 = 0 ;
28957 int res1 = 0 ;
28958 long val2 ;
28959 int ecode2 = 0 ;
28960 long val3 ;
28961 int ecode3 = 0 ;
28962 long val4 ;
28963 int ecode4 = 0 ;
28964 PyObject * obj0 = 0 ;
28965 PyObject * obj1 = 0 ;
28966 PyObject * obj2 = 0 ;
28967 PyObject * obj3 = 0 ;
28968 char * kwnames[] = {
28969 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
28970 };
28971
28972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28974 if (!SWIG_IsOK(res1)) {
28975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28976 }
28977 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28978 ecode2 = SWIG_AsVal_long(obj1, &val2);
28979 if (!SWIG_IsOK(ecode2)) {
28980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
28981 }
28982 arg2 = static_cast< long >(val2);
28983 ecode3 = SWIG_AsVal_long(obj2, &val3);
28984 if (!SWIG_IsOK(ecode3)) {
28985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
28986 }
28987 arg3 = static_cast< long >(val3);
28988 ecode4 = SWIG_AsVal_long(obj3, &val4);
28989 if (!SWIG_IsOK(ecode4)) {
28990 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
28991 }
28992 arg4 = static_cast< long >(val4);
28993 {
28994 PyThreadState* __tstate = wxPyBeginAllowThreads();
28995 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
28996 wxPyEndAllowThreads(__tstate);
28997 if (PyErr_Occurred()) SWIG_fail;
28998 }
28999 {
29000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29001 }
29002 return resultobj;
29003fail:
29004 return NULL;
29005}
29006
29007
29008SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29009 PyObject *resultobj = 0;
29010 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29011 long arg2 ;
29012 int arg3 ;
29013 int arg4 = (int) -1 ;
29014 bool result;
29015 void *argp1 = 0 ;
29016 int res1 = 0 ;
29017 long val2 ;
29018 int ecode2 = 0 ;
29019 int val3 ;
29020 int ecode3 = 0 ;
29021 int val4 ;
29022 int ecode4 = 0 ;
29023 PyObject * obj0 = 0 ;
29024 PyObject * obj1 = 0 ;
29025 PyObject * obj2 = 0 ;
29026 PyObject * obj3 = 0 ;
29027 char * kwnames[] = {
29028 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29029 };
29030
29031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29033 if (!SWIG_IsOK(res1)) {
29034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29035 }
29036 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29037 ecode2 = SWIG_AsVal_long(obj1, &val2);
29038 if (!SWIG_IsOK(ecode2)) {
29039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29040 }
29041 arg2 = static_cast< long >(val2);
29042 ecode3 = SWIG_AsVal_int(obj2, &val3);
29043 if (!SWIG_IsOK(ecode3)) {
29044 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29045 }
29046 arg3 = static_cast< int >(val3);
29047 if (obj3) {
29048 ecode4 = SWIG_AsVal_int(obj3, &val4);
29049 if (!SWIG_IsOK(ecode4)) {
29050 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29051 }
29052 arg4 = static_cast< int >(val4);
29053 }
29054 {
29055 PyThreadState* __tstate = wxPyBeginAllowThreads();
29056 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29057 wxPyEndAllowThreads(__tstate);
29058 if (PyErr_Occurred()) SWIG_fail;
29059 }
29060 {
29061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29062 }
29063 return resultobj;
29064fail:
29065 return NULL;
29066}
29067
29068
29069SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29070 PyObject *resultobj = 0;
29071 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29072 long arg2 ;
29073 long arg3 ;
29074 int arg4 ;
29075 bool result;
29076 void *argp1 = 0 ;
29077 int res1 = 0 ;
29078 long val2 ;
29079 int ecode2 = 0 ;
29080 long val3 ;
29081 int ecode3 = 0 ;
29082 int val4 ;
29083 int ecode4 = 0 ;
29084 PyObject * obj0 = 0 ;
29085 PyObject * obj1 = 0 ;
29086 PyObject * obj2 = 0 ;
29087 PyObject * obj3 = 0 ;
29088 char * kwnames[] = {
29089 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29090 };
29091
29092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29094 if (!SWIG_IsOK(res1)) {
29095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29096 }
29097 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29098 ecode2 = SWIG_AsVal_long(obj1, &val2);
29099 if (!SWIG_IsOK(ecode2)) {
29100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29101 }
29102 arg2 = static_cast< long >(val2);
29103 ecode3 = SWIG_AsVal_long(obj2, &val3);
29104 if (!SWIG_IsOK(ecode3)) {
29105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29106 }
29107 arg3 = static_cast< long >(val3);
29108 ecode4 = SWIG_AsVal_int(obj3, &val4);
29109 if (!SWIG_IsOK(ecode4)) {
29110 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29111 }
29112 arg4 = static_cast< int >(val4);
29113 {
29114 PyThreadState* __tstate = wxPyBeginAllowThreads();
29115 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29116 wxPyEndAllowThreads(__tstate);
29117 if (PyErr_Occurred()) SWIG_fail;
29118 }
29119 {
29120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29121 }
29122 return resultobj;
29123fail:
29124 return NULL;
29125}
29126
29127
29128SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29129 PyObject *resultobj = 0;
29130 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29131 long arg2 ;
29132 wxString result;
29133 void *argp1 = 0 ;
29134 int res1 = 0 ;
29135 long val2 ;
29136 int ecode2 = 0 ;
29137 PyObject * obj0 = 0 ;
29138 PyObject * obj1 = 0 ;
29139 char * kwnames[] = {
29140 (char *) "self",(char *) "item", NULL
29141 };
29142
29143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29145 if (!SWIG_IsOK(res1)) {
29146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29147 }
29148 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29149 ecode2 = SWIG_AsVal_long(obj1, &val2);
29150 if (!SWIG_IsOK(ecode2)) {
29151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29152 }
29153 arg2 = static_cast< long >(val2);
29154 {
29155 PyThreadState* __tstate = wxPyBeginAllowThreads();
29156 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29157 wxPyEndAllowThreads(__tstate);
29158 if (PyErr_Occurred()) SWIG_fail;
29159 }
29160 {
29161#if wxUSE_UNICODE
29162 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29163#else
29164 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29165#endif
29166 }
29167 return resultobj;
29168fail:
29169 return NULL;
29170}
29171
29172
29173SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29174 PyObject *resultobj = 0;
29175 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29176 long arg2 ;
29177 wxString *arg3 = 0 ;
29178 void *argp1 = 0 ;
29179 int res1 = 0 ;
29180 long val2 ;
29181 int ecode2 = 0 ;
29182 bool temp3 = false ;
29183 PyObject * obj0 = 0 ;
29184 PyObject * obj1 = 0 ;
29185 PyObject * obj2 = 0 ;
29186 char * kwnames[] = {
29187 (char *) "self",(char *) "item",(char *) "str", NULL
29188 };
29189
29190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29192 if (!SWIG_IsOK(res1)) {
29193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29194 }
29195 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29196 ecode2 = SWIG_AsVal_long(obj1, &val2);
29197 if (!SWIG_IsOK(ecode2)) {
29198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29199 }
29200 arg2 = static_cast< long >(val2);
29201 {
29202 arg3 = wxString_in_helper(obj2);
29203 if (arg3 == NULL) SWIG_fail;
29204 temp3 = true;
29205 }
29206 {
29207 PyThreadState* __tstate = wxPyBeginAllowThreads();
29208 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29209 wxPyEndAllowThreads(__tstate);
29210 if (PyErr_Occurred()) SWIG_fail;
29211 }
29212 resultobj = SWIG_Py_Void();
29213 {
29214 if (temp3)
29215 delete arg3;
29216 }
29217 return resultobj;
29218fail:
29219 {
29220 if (temp3)
29221 delete arg3;
29222 }
29223 return NULL;
29224}
29225
29226
29227SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29228 PyObject *resultobj = 0;
29229 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29230 long arg2 ;
29231 long result;
29232 void *argp1 = 0 ;
29233 int res1 = 0 ;
29234 long val2 ;
29235 int ecode2 = 0 ;
29236 PyObject * obj0 = 0 ;
29237 PyObject * obj1 = 0 ;
29238 char * kwnames[] = {
29239 (char *) "self",(char *) "item", NULL
29240 };
29241
29242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29244 if (!SWIG_IsOK(res1)) {
29245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29246 }
29247 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29248 ecode2 = SWIG_AsVal_long(obj1, &val2);
29249 if (!SWIG_IsOK(ecode2)) {
29250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29251 }
29252 arg2 = static_cast< long >(val2);
29253 {
29254 PyThreadState* __tstate = wxPyBeginAllowThreads();
29255 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29256 wxPyEndAllowThreads(__tstate);
29257 if (PyErr_Occurred()) SWIG_fail;
29258 }
29259 resultobj = SWIG_From_long(static_cast< long >(result));
29260 return resultobj;
29261fail:
29262 return NULL;
29263}
29264
29265
29266SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29267 PyObject *resultobj = 0;
29268 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29269 long arg2 ;
29270 long arg3 ;
29271 bool result;
29272 void *argp1 = 0 ;
29273 int res1 = 0 ;
29274 long val2 ;
29275 int ecode2 = 0 ;
29276 long val3 ;
29277 int ecode3 = 0 ;
29278 PyObject * obj0 = 0 ;
29279 PyObject * obj1 = 0 ;
29280 PyObject * obj2 = 0 ;
29281 char * kwnames[] = {
29282 (char *) "self",(char *) "item",(char *) "data", NULL
29283 };
29284
29285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29287 if (!SWIG_IsOK(res1)) {
29288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29289 }
29290 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29291 ecode2 = SWIG_AsVal_long(obj1, &val2);
29292 if (!SWIG_IsOK(ecode2)) {
29293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29294 }
29295 arg2 = static_cast< long >(val2);
29296 ecode3 = SWIG_AsVal_long(obj2, &val3);
29297 if (!SWIG_IsOK(ecode3)) {
29298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29299 }
29300 arg3 = static_cast< long >(val3);
29301 {
29302 PyThreadState* __tstate = wxPyBeginAllowThreads();
29303 result = (bool)(arg1)->SetItemData(arg2,arg3);
29304 wxPyEndAllowThreads(__tstate);
29305 if (PyErr_Occurred()) SWIG_fail;
29306 }
29307 {
29308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29309 }
29310 return resultobj;
29311fail:
29312 return NULL;
29313}
29314
29315
29316SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29317 PyObject *resultobj = 0;
29318 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29319 long arg2 ;
29320 wxPoint result;
29321 void *argp1 = 0 ;
29322 int res1 = 0 ;
29323 long val2 ;
29324 int ecode2 = 0 ;
29325 PyObject * obj0 = 0 ;
29326 PyObject * obj1 = 0 ;
29327 char * kwnames[] = {
29328 (char *) "self",(char *) "item", NULL
29329 };
29330
29331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29333 if (!SWIG_IsOK(res1)) {
29334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29335 }
29336 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29337 ecode2 = SWIG_AsVal_long(obj1, &val2);
29338 if (!SWIG_IsOK(ecode2)) {
29339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29340 }
29341 arg2 = static_cast< long >(val2);
29342 {
29343 PyThreadState* __tstate = wxPyBeginAllowThreads();
29344 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29345 wxPyEndAllowThreads(__tstate);
29346 if (PyErr_Occurred()) SWIG_fail;
29347 }
29348 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29349 return resultobj;
29350fail:
29351 return NULL;
29352}
29353
29354
29355SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29356 PyObject *resultobj = 0;
29357 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29358 long arg2 ;
29359 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29360 wxRect result;
29361 void *argp1 = 0 ;
29362 int res1 = 0 ;
29363 long val2 ;
29364 int ecode2 = 0 ;
29365 int val3 ;
29366 int ecode3 = 0 ;
29367 PyObject * obj0 = 0 ;
29368 PyObject * obj1 = 0 ;
29369 PyObject * obj2 = 0 ;
29370 char * kwnames[] = {
29371 (char *) "self",(char *) "item",(char *) "code", NULL
29372 };
29373
29374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29376 if (!SWIG_IsOK(res1)) {
29377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29378 }
29379 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29380 ecode2 = SWIG_AsVal_long(obj1, &val2);
29381 if (!SWIG_IsOK(ecode2)) {
29382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29383 }
29384 arg2 = static_cast< long >(val2);
29385 if (obj2) {
29386 ecode3 = SWIG_AsVal_int(obj2, &val3);
29387 if (!SWIG_IsOK(ecode3)) {
29388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29389 }
29390 arg3 = static_cast< int >(val3);
29391 }
29392 {
29393 PyThreadState* __tstate = wxPyBeginAllowThreads();
29394 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29395 wxPyEndAllowThreads(__tstate);
29396 if (PyErr_Occurred()) SWIG_fail;
29397 }
29398 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29399 return resultobj;
29400fail:
29401 return NULL;
29402}
29403
29404
29405SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29406 PyObject *resultobj = 0;
29407 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29408 long arg2 ;
29409 wxPoint *arg3 = 0 ;
29410 bool result;
29411 void *argp1 = 0 ;
29412 int res1 = 0 ;
29413 long val2 ;
29414 int ecode2 = 0 ;
29415 wxPoint temp3 ;
29416 PyObject * obj0 = 0 ;
29417 PyObject * obj1 = 0 ;
29418 PyObject * obj2 = 0 ;
29419 char * kwnames[] = {
29420 (char *) "self",(char *) "item",(char *) "pos", NULL
29421 };
29422
29423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29425 if (!SWIG_IsOK(res1)) {
29426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29427 }
29428 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29429 ecode2 = SWIG_AsVal_long(obj1, &val2);
29430 if (!SWIG_IsOK(ecode2)) {
29431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29432 }
29433 arg2 = static_cast< long >(val2);
29434 {
29435 arg3 = &temp3;
29436 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29437 }
29438 {
29439 PyThreadState* __tstate = wxPyBeginAllowThreads();
29440 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29441 wxPyEndAllowThreads(__tstate);
29442 if (PyErr_Occurred()) SWIG_fail;
29443 }
29444 {
29445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29446 }
29447 return resultobj;
29448fail:
29449 return NULL;
7e08d4ef
RD
29450}
29451
29452
1bd55598
RD
29453SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29454 PyObject *resultobj = 0;
29455 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29456 int result;
29457 void *argp1 = 0 ;
29458 int res1 = 0 ;
29459 PyObject *swig_obj[1] ;
29460
29461 if (!args) SWIG_fail;
29462 swig_obj[0] = args;
29463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29464 if (!SWIG_IsOK(res1)) {
29465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29466 }
29467 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29468 {
29469 PyThreadState* __tstate = wxPyBeginAllowThreads();
29470 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29471 wxPyEndAllowThreads(__tstate);
29472 if (PyErr_Occurred()) SWIG_fail;
29473 }
29474 resultobj = SWIG_From_int(static_cast< int >(result));
29475 return resultobj;
29476fail:
29477 return NULL;
7e08d4ef
RD
29478}
29479
29480
1bd55598
RD
29481SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29482 PyObject *resultobj = 0;
29483 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29484 int result;
29485 void *argp1 = 0 ;
29486 int res1 = 0 ;
29487 PyObject *swig_obj[1] ;
29488
29489 if (!args) SWIG_fail;
29490 swig_obj[0] = args;
29491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29492 if (!SWIG_IsOK(res1)) {
29493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29494 }
29495 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29496 {
29497 PyThreadState* __tstate = wxPyBeginAllowThreads();
29498 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29499 wxPyEndAllowThreads(__tstate);
29500 if (PyErr_Occurred()) SWIG_fail;
29501 }
29502 resultobj = SWIG_From_int(static_cast< int >(result));
29503 return resultobj;
29504fail:
29505 return NULL;
7e08d4ef
RD
29506}
29507
29508
1bd55598
RD
29509SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29510 PyObject *resultobj = 0;
29511 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29512 wxSize result;
29513 void *argp1 = 0 ;
29514 int res1 = 0 ;
29515 PyObject *swig_obj[1] ;
29516
29517 if (!args) SWIG_fail;
29518 swig_obj[0] = args;
29519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29520 if (!SWIG_IsOK(res1)) {
29521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29522 }
29523 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29524 {
29525 PyThreadState* __tstate = wxPyBeginAllowThreads();
29526 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29527 wxPyEndAllowThreads(__tstate);
29528 if (PyErr_Occurred()) SWIG_fail;
29529 }
29530 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29531 return resultobj;
29532fail:
29533 return NULL;
29534}
29535
29536
29537SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29538 PyObject *resultobj = 0;
29539 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29540 int arg2 ;
29541 bool arg3 = (bool) false ;
29542 void *argp1 = 0 ;
29543 int res1 = 0 ;
29544 int val2 ;
29545 int ecode2 = 0 ;
29546 bool val3 ;
29547 int ecode3 = 0 ;
29548 PyObject * obj0 = 0 ;
29549 PyObject * obj1 = 0 ;
29550 PyObject * obj2 = 0 ;
29551 char * kwnames[] = {
29552 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29553 };
29554
29555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29557 if (!SWIG_IsOK(res1)) {
29558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29559 }
29560 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29561 ecode2 = SWIG_AsVal_int(obj1, &val2);
29562 if (!SWIG_IsOK(ecode2)) {
29563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29564 }
29565 arg2 = static_cast< int >(val2);
29566 if (obj2) {
29567 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29568 if (!SWIG_IsOK(ecode3)) {
29569 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29570 }
29571 arg3 = static_cast< bool >(val3);
29572 }
29573 {
29574 PyThreadState* __tstate = wxPyBeginAllowThreads();
29575 (arg1)->SetItemSpacing(arg2,arg3);
29576 wxPyEndAllowThreads(__tstate);
29577 if (PyErr_Occurred()) SWIG_fail;
29578 }
29579 resultobj = SWIG_Py_Void();
29580 return resultobj;
29581fail:
29582 return NULL;
7e08d4ef
RD
29583}
29584
29585
1bd55598
RD
29586SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29587 PyObject *resultobj = 0;
29588 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29589 int result;
29590 void *argp1 = 0 ;
29591 int res1 = 0 ;
29592 PyObject *swig_obj[1] ;
29593
29594 if (!args) SWIG_fail;
29595 swig_obj[0] = args;
29596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29597 if (!SWIG_IsOK(res1)) {
29598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29599 }
29600 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29601 {
29602 PyThreadState* __tstate = wxPyBeginAllowThreads();
29603 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29604 wxPyEndAllowThreads(__tstate);
29605 if (PyErr_Occurred()) SWIG_fail;
29606 }
29607 resultobj = SWIG_From_int(static_cast< int >(result));
29608 return resultobj;
29609fail:
29610 return NULL;
7e08d4ef
RD
29611}
29612
29613
1bd55598
RD
29614SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29615 PyObject *resultobj = 0;
29616 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29617 wxColour result;
29618 void *argp1 = 0 ;
29619 int res1 = 0 ;
29620 PyObject *swig_obj[1] ;
29621
29622 if (!args) SWIG_fail;
29623 swig_obj[0] = args;
29624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29625 if (!SWIG_IsOK(res1)) {
29626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29627 }
29628 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29629 {
29630 PyThreadState* __tstate = wxPyBeginAllowThreads();
29631 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29632 wxPyEndAllowThreads(__tstate);
29633 if (PyErr_Occurred()) SWIG_fail;
29634 }
29635 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29636 return resultobj;
29637fail:
29638 return NULL;
29639}
29640
29641
29642SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29643 PyObject *resultobj = 0;
29644 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29645 wxColour *arg2 = 0 ;
29646 void *argp1 = 0 ;
29647 int res1 = 0 ;
29648 wxColour temp2 ;
29649 PyObject * obj0 = 0 ;
29650 PyObject * obj1 = 0 ;
29651 char * kwnames[] = {
29652 (char *) "self",(char *) "col", NULL
29653 };
29654
29655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29657 if (!SWIG_IsOK(res1)) {
29658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29659 }
29660 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29661 {
29662 arg2 = &temp2;
29663 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29664 }
29665 {
29666 PyThreadState* __tstate = wxPyBeginAllowThreads();
29667 (arg1)->SetTextColour((wxColour const &)*arg2);
29668 wxPyEndAllowThreads(__tstate);
29669 if (PyErr_Occurred()) SWIG_fail;
29670 }
29671 resultobj = SWIG_Py_Void();
29672 return resultobj;
29673fail:
29674 return NULL;
7e08d4ef
RD
29675}
29676
29677
1bd55598
RD
29678SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29679 PyObject *resultobj = 0;
29680 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29681 long result;
29682 void *argp1 = 0 ;
29683 int res1 = 0 ;
29684 PyObject *swig_obj[1] ;
29685
29686 if (!args) SWIG_fail;
29687 swig_obj[0] = args;
29688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29689 if (!SWIG_IsOK(res1)) {
29690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29691 }
29692 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29693 {
29694 PyThreadState* __tstate = wxPyBeginAllowThreads();
29695 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29696 wxPyEndAllowThreads(__tstate);
29697 if (PyErr_Occurred()) SWIG_fail;
29698 }
29699 resultobj = SWIG_From_long(static_cast< long >(result));
29700 return resultobj;
29701fail:
29702 return NULL;
29703}
29704
29705
29706SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29707 PyObject *resultobj = 0;
29708 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29709 long arg2 ;
29710 bool arg3 = (bool) true ;
29711 void *argp1 = 0 ;
29712 int res1 = 0 ;
29713 long val2 ;
29714 int ecode2 = 0 ;
29715 bool val3 ;
29716 int ecode3 = 0 ;
29717 PyObject * obj0 = 0 ;
29718 PyObject * obj1 = 0 ;
29719 PyObject * obj2 = 0 ;
29720 char * kwnames[] = {
29721 (char *) "self",(char *) "style",(char *) "add", NULL
29722 };
29723
29724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29726 if (!SWIG_IsOK(res1)) {
29727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29728 }
29729 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29730 ecode2 = SWIG_AsVal_long(obj1, &val2);
29731 if (!SWIG_IsOK(ecode2)) {
29732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
29733 }
29734 arg2 = static_cast< long >(val2);
29735 if (obj2) {
29736 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29737 if (!SWIG_IsOK(ecode3)) {
29738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
29739 }
29740 arg3 = static_cast< bool >(val3);
29741 }
29742 {
29743 PyThreadState* __tstate = wxPyBeginAllowThreads();
29744 (arg1)->SetSingleStyle(arg2,arg3);
29745 wxPyEndAllowThreads(__tstate);
29746 if (PyErr_Occurred()) SWIG_fail;
29747 }
29748 resultobj = SWIG_Py_Void();
29749 return resultobj;
29750fail:
29751 return NULL;
29752}
29753
29754
29755SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29756 PyObject *resultobj = 0;
29757 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29758 long arg2 ;
29759 int arg3 = (int) wxLIST_NEXT_ALL ;
29760 int arg4 = (int) wxLIST_STATE_DONTCARE ;
29761 long result;
29762 void *argp1 = 0 ;
29763 int res1 = 0 ;
29764 long val2 ;
29765 int ecode2 = 0 ;
29766 int val3 ;
29767 int ecode3 = 0 ;
29768 int val4 ;
29769 int ecode4 = 0 ;
29770 PyObject * obj0 = 0 ;
29771 PyObject * obj1 = 0 ;
29772 PyObject * obj2 = 0 ;
29773 PyObject * obj3 = 0 ;
29774 char * kwnames[] = {
29775 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
29776 };
29777
29778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29780 if (!SWIG_IsOK(res1)) {
29781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29782 }
29783 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29784 ecode2 = SWIG_AsVal_long(obj1, &val2);
29785 if (!SWIG_IsOK(ecode2)) {
29786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
29787 }
29788 arg2 = static_cast< long >(val2);
29789 if (obj2) {
29790 ecode3 = SWIG_AsVal_int(obj2, &val3);
29791 if (!SWIG_IsOK(ecode3)) {
29792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
29793 }
29794 arg3 = static_cast< int >(val3);
29795 }
29796 if (obj3) {
29797 ecode4 = SWIG_AsVal_int(obj3, &val4);
29798 if (!SWIG_IsOK(ecode4)) {
29799 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
29800 }
29801 arg4 = static_cast< int >(val4);
29802 }
29803 {
29804 PyThreadState* __tstate = wxPyBeginAllowThreads();
29805 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
29806 wxPyEndAllowThreads(__tstate);
29807 if (PyErr_Occurred()) SWIG_fail;
29808 }
29809 resultobj = SWIG_From_long(static_cast< long >(result));
29810 return resultobj;
29811fail:
29812 return NULL;
29813}
29814
29815
29816SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29817 PyObject *resultobj = 0;
29818 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29819 int arg2 ;
29820 wxImageList *result = 0 ;
29821 void *argp1 = 0 ;
29822 int res1 = 0 ;
29823 int val2 ;
29824 int ecode2 = 0 ;
29825 PyObject * obj0 = 0 ;
29826 PyObject * obj1 = 0 ;
29827 char * kwnames[] = {
29828 (char *) "self",(char *) "which", NULL
29829 };
29830
29831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
29832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29833 if (!SWIG_IsOK(res1)) {
29834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29835 }
29836 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29837 ecode2 = SWIG_AsVal_int(obj1, &val2);
29838 if (!SWIG_IsOK(ecode2)) {
29839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
29840 }
29841 arg2 = static_cast< int >(val2);
29842 {
29843 PyThreadState* __tstate = wxPyBeginAllowThreads();
29844 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
29845 wxPyEndAllowThreads(__tstate);
29846 if (PyErr_Occurred()) SWIG_fail;
29847 }
29848 {
29849 resultobj = wxPyMake_wxObject(result, (bool)0);
29850 }
29851 return resultobj;
29852fail:
29853 return NULL;
29854}
29855
29856
29857SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29858 PyObject *resultobj = 0;
29859 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29860 wxImageList *arg2 = (wxImageList *) 0 ;
29861 int arg3 ;
29862 void *argp1 = 0 ;
29863 int res1 = 0 ;
29864 void *argp2 = 0 ;
29865 int res2 = 0 ;
29866 int val3 ;
29867 int ecode3 = 0 ;
29868 PyObject * obj0 = 0 ;
29869 PyObject * obj1 = 0 ;
29870 PyObject * obj2 = 0 ;
29871 char * kwnames[] = {
29872 (char *) "self",(char *) "imageList",(char *) "which", NULL
29873 };
29874
29875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29877 if (!SWIG_IsOK(res1)) {
29878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29879 }
29880 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29881 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
29882 if (!SWIG_IsOK(res2)) {
29883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
29884 }
29885 arg2 = reinterpret_cast< wxImageList * >(argp2);
29886 ecode3 = SWIG_AsVal_int(obj2, &val3);
29887 if (!SWIG_IsOK(ecode3)) {
29888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
29889 }
29890 arg3 = static_cast< int >(val3);
29891 {
29892 PyThreadState* __tstate = wxPyBeginAllowThreads();
29893 (arg1)->SetImageList(arg2,arg3);
29894 wxPyEndAllowThreads(__tstate);
29895 if (PyErr_Occurred()) SWIG_fail;
29896 }
29897 resultobj = SWIG_Py_Void();
29898 return resultobj;
29899fail:
29900 return NULL;
29901}
29902
29903
29904SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29905 PyObject *resultobj = 0;
29906 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29907 wxImageList *arg2 = (wxImageList *) 0 ;
29908 int arg3 ;
29909 void *argp1 = 0 ;
29910 int res1 = 0 ;
29911 int res2 = 0 ;
29912 int val3 ;
29913 int ecode3 = 0 ;
29914 PyObject * obj0 = 0 ;
29915 PyObject * obj1 = 0 ;
29916 PyObject * obj2 = 0 ;
29917 char * kwnames[] = {
29918 (char *) "self",(char *) "imageList",(char *) "which", NULL
29919 };
29920
29921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29923 if (!SWIG_IsOK(res1)) {
29924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29925 }
29926 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29927 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
29928 if (!SWIG_IsOK(res2)) {
29929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
29930 }
29931 ecode3 = SWIG_AsVal_int(obj2, &val3);
29932 if (!SWIG_IsOK(ecode3)) {
29933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
29934 }
29935 arg3 = static_cast< int >(val3);
29936 {
29937 PyThreadState* __tstate = wxPyBeginAllowThreads();
29938 (arg1)->AssignImageList(arg2,arg3);
29939 wxPyEndAllowThreads(__tstate);
29940 if (PyErr_Occurred()) SWIG_fail;
29941 }
29942 resultobj = SWIG_Py_Void();
29943 return resultobj;
29944fail:
29945 return NULL;
7e08d4ef
RD
29946}
29947
29948
1bd55598
RD
29949SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29950 PyObject *resultobj = 0;
29951 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29952 bool result;
29953 void *argp1 = 0 ;
29954 int res1 = 0 ;
29955 PyObject *swig_obj[1] ;
29956
29957 if (!args) SWIG_fail;
29958 swig_obj[0] = args;
29959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29960 if (!SWIG_IsOK(res1)) {
29961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29962 }
29963 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29964 {
29965 PyThreadState* __tstate = wxPyBeginAllowThreads();
29966 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
29967 wxPyEndAllowThreads(__tstate);
29968 if (PyErr_Occurred()) SWIG_fail;
29969 }
29970 {
29971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29972 }
29973 return resultobj;
29974fail:
29975 return NULL;
44bf767a
RD
29976}
29977
29978
1bd55598
RD
29979SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29980 PyObject *resultobj = 0;
29981 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29982 bool result;
29983 void *argp1 = 0 ;
29984 int res1 = 0 ;
29985 PyObject *swig_obj[1] ;
29986
29987 if (!args) SWIG_fail;
29988 swig_obj[0] = args;
29989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29990 if (!SWIG_IsOK(res1)) {
29991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29992 }
29993 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29994 {
29995 PyThreadState* __tstate = wxPyBeginAllowThreads();
29996 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
29997 wxPyEndAllowThreads(__tstate);
29998 if (PyErr_Occurred()) SWIG_fail;
29999 }
30000 {
30001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30002 }
30003 return resultobj;
30004fail:
30005 return NULL;
30006}
30007
30008
30009SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30010 PyObject *resultobj = 0;
30011 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30012 long arg2 ;
30013 void *argp1 = 0 ;
30014 int res1 = 0 ;
30015 long val2 ;
30016 int ecode2 = 0 ;
30017 PyObject * obj0 = 0 ;
30018 PyObject * obj1 = 0 ;
30019 char * kwnames[] = {
30020 (char *) "self",(char *) "item", NULL
30021 };
30022
30023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30025 if (!SWIG_IsOK(res1)) {
30026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30027 }
30028 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30029 ecode2 = SWIG_AsVal_long(obj1, &val2);
30030 if (!SWIG_IsOK(ecode2)) {
30031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30032 }
30033 arg2 = static_cast< long >(val2);
30034 {
30035 PyThreadState* __tstate = wxPyBeginAllowThreads();
30036 (arg1)->RefreshItem(arg2);
30037 wxPyEndAllowThreads(__tstate);
30038 if (PyErr_Occurred()) SWIG_fail;
30039 }
30040 resultobj = SWIG_Py_Void();
30041 return resultobj;
30042fail:
30043 return NULL;
30044}
30045
30046
30047SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30048 PyObject *resultobj = 0;
30049 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30050 long arg2 ;
30051 long arg3 ;
30052 void *argp1 = 0 ;
30053 int res1 = 0 ;
30054 long val2 ;
30055 int ecode2 = 0 ;
30056 long val3 ;
30057 int ecode3 = 0 ;
30058 PyObject * obj0 = 0 ;
30059 PyObject * obj1 = 0 ;
30060 PyObject * obj2 = 0 ;
30061 char * kwnames[] = {
30062 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30063 };
30064
30065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30067 if (!SWIG_IsOK(res1)) {
30068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30069 }
30070 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30071 ecode2 = SWIG_AsVal_long(obj1, &val2);
30072 if (!SWIG_IsOK(ecode2)) {
30073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30074 }
30075 arg2 = static_cast< long >(val2);
30076 ecode3 = SWIG_AsVal_long(obj2, &val3);
30077 if (!SWIG_IsOK(ecode3)) {
30078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30079 }
30080 arg3 = static_cast< long >(val3);
30081 {
30082 PyThreadState* __tstate = wxPyBeginAllowThreads();
30083 (arg1)->RefreshItems(arg2,arg3);
30084 wxPyEndAllowThreads(__tstate);
30085 if (PyErr_Occurred()) SWIG_fail;
30086 }
30087 resultobj = SWIG_Py_Void();
30088 return resultobj;
30089fail:
30090 return NULL;
30091}
30092
30093
30094SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30095 PyObject *resultobj = 0;
30096 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30097 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30098 bool result;
30099 void *argp1 = 0 ;
30100 int res1 = 0 ;
30101 int val2 ;
30102 int ecode2 = 0 ;
30103 PyObject * obj0 = 0 ;
30104 PyObject * obj1 = 0 ;
30105 char * kwnames[] = {
30106 (char *) "self",(char *) "flag", NULL
30107 };
30108
30109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30111 if (!SWIG_IsOK(res1)) {
30112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30113 }
30114 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30115 if (obj1) {
30116 ecode2 = SWIG_AsVal_int(obj1, &val2);
30117 if (!SWIG_IsOK(ecode2)) {
30118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30119 }
30120 arg2 = static_cast< int >(val2);
30121 }
30122 {
30123 PyThreadState* __tstate = wxPyBeginAllowThreads();
30124 result = (bool)(arg1)->Arrange(arg2);
30125 wxPyEndAllowThreads(__tstate);
30126 if (PyErr_Occurred()) SWIG_fail;
30127 }
30128 {
30129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30130 }
30131 return resultobj;
30132fail:
30133 return NULL;
30134}
30135
30136
30137SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30138 PyObject *resultobj = 0;
30139 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30140 long arg2 ;
30141 bool result;
30142 void *argp1 = 0 ;
30143 int res1 = 0 ;
30144 long val2 ;
30145 int ecode2 = 0 ;
30146 PyObject * obj0 = 0 ;
30147 PyObject * obj1 = 0 ;
30148 char * kwnames[] = {
30149 (char *) "self",(char *) "item", NULL
30150 };
30151
30152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30154 if (!SWIG_IsOK(res1)) {
30155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30156 }
30157 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30158 ecode2 = SWIG_AsVal_long(obj1, &val2);
30159 if (!SWIG_IsOK(ecode2)) {
30160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30161 }
30162 arg2 = static_cast< long >(val2);
30163 {
30164 PyThreadState* __tstate = wxPyBeginAllowThreads();
30165 result = (bool)(arg1)->DeleteItem(arg2);
30166 wxPyEndAllowThreads(__tstate);
30167 if (PyErr_Occurred()) SWIG_fail;
30168 }
30169 {
30170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30171 }
30172 return resultobj;
30173fail:
30174 return NULL;
d55e5bfc
RD
30175}
30176
30177
1bd55598
RD
30178SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30179 PyObject *resultobj = 0;
30180 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30181 bool result;
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_wxPyListCtrl, 0 | 0 );
30189 if (!SWIG_IsOK(res1)) {
30190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30191 }
30192 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30193 {
30194 PyThreadState* __tstate = wxPyBeginAllowThreads();
30195 result = (bool)(arg1)->DeleteAllItems();
30196 wxPyEndAllowThreads(__tstate);
30197 if (PyErr_Occurred()) SWIG_fail;
30198 }
30199 {
30200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30201 }
30202 return resultobj;
30203fail:
30204 return NULL;
30205}
30206
30207
30208SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30209 PyObject *resultobj = 0;
30210 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30211 int arg2 ;
30212 bool result;
30213 void *argp1 = 0 ;
30214 int res1 = 0 ;
30215 int val2 ;
30216 int ecode2 = 0 ;
30217 PyObject * obj0 = 0 ;
30218 PyObject * obj1 = 0 ;
30219 char * kwnames[] = {
30220 (char *) "self",(char *) "col", NULL
30221 };
30222
30223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30225 if (!SWIG_IsOK(res1)) {
30226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30227 }
30228 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30229 ecode2 = SWIG_AsVal_int(obj1, &val2);
30230 if (!SWIG_IsOK(ecode2)) {
30231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30232 }
30233 arg2 = static_cast< int >(val2);
30234 {
30235 PyThreadState* __tstate = wxPyBeginAllowThreads();
30236 result = (bool)(arg1)->DeleteColumn(arg2);
30237 wxPyEndAllowThreads(__tstate);
30238 if (PyErr_Occurred()) SWIG_fail;
30239 }
30240 {
30241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30242 }
30243 return resultobj;
30244fail:
30245 return NULL;
b411df4a
RD
30246}
30247
30248
1bd55598
RD
30249SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30250 PyObject *resultobj = 0;
30251 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30252 bool result;
30253 void *argp1 = 0 ;
30254 int res1 = 0 ;
30255 PyObject *swig_obj[1] ;
30256
30257 if (!args) SWIG_fail;
30258 swig_obj[0] = args;
30259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30260 if (!SWIG_IsOK(res1)) {
30261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30262 }
30263 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30264 {
30265 PyThreadState* __tstate = wxPyBeginAllowThreads();
30266 result = (bool)(arg1)->DeleteAllColumns();
30267 wxPyEndAllowThreads(__tstate);
30268 if (PyErr_Occurred()) SWIG_fail;
30269 }
30270 {
30271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30272 }
30273 return resultobj;
30274fail:
30275 return NULL;
b411df4a
RD
30276}
30277
30278
1bd55598
RD
30279SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30280 PyObject *resultobj = 0;
30281 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30282 void *argp1 = 0 ;
30283 int res1 = 0 ;
30284 PyObject *swig_obj[1] ;
30285
30286 if (!args) SWIG_fail;
30287 swig_obj[0] = args;
30288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30289 if (!SWIG_IsOK(res1)) {
30290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30291 }
30292 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30293 {
30294 PyThreadState* __tstate = wxPyBeginAllowThreads();
30295 (arg1)->ClearAll();
30296 wxPyEndAllowThreads(__tstate);
30297 if (PyErr_Occurred()) SWIG_fail;
30298 }
30299 resultobj = SWIG_Py_Void();
30300 return resultobj;
30301fail:
30302 return NULL;
30303}
30304
30305
30306SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30307 PyObject *resultobj = 0;
30308 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30309 long arg2 ;
30310 void *argp1 = 0 ;
30311 int res1 = 0 ;
30312 long val2 ;
30313 int ecode2 = 0 ;
30314 PyObject * obj0 = 0 ;
30315 PyObject * obj1 = 0 ;
30316 char * kwnames[] = {
30317 (char *) "self",(char *) "item", NULL
30318 };
30319
30320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30322 if (!SWIG_IsOK(res1)) {
30323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30324 }
30325 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30326 ecode2 = SWIG_AsVal_long(obj1, &val2);
30327 if (!SWIG_IsOK(ecode2)) {
30328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30329 }
30330 arg2 = static_cast< long >(val2);
30331 {
30332 PyThreadState* __tstate = wxPyBeginAllowThreads();
30333 (arg1)->EditLabel(arg2);
30334 wxPyEndAllowThreads(__tstate);
30335 if (PyErr_Occurred()) SWIG_fail;
30336 }
30337 resultobj = SWIG_Py_Void();
30338 return resultobj;
30339fail:
30340 return NULL;
30341}
30342
30343
30344SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30345 PyObject *resultobj = 0;
30346 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30347 long arg2 ;
30348 bool result;
30349 void *argp1 = 0 ;
30350 int res1 = 0 ;
30351 long val2 ;
30352 int ecode2 = 0 ;
30353 PyObject * obj0 = 0 ;
30354 PyObject * obj1 = 0 ;
30355 char * kwnames[] = {
30356 (char *) "self",(char *) "item", NULL
30357 };
30358
30359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30361 if (!SWIG_IsOK(res1)) {
30362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30363 }
30364 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30365 ecode2 = SWIG_AsVal_long(obj1, &val2);
30366 if (!SWIG_IsOK(ecode2)) {
30367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30368 }
30369 arg2 = static_cast< long >(val2);
30370 {
30371 PyThreadState* __tstate = wxPyBeginAllowThreads();
30372 result = (bool)(arg1)->EnsureVisible(arg2);
30373 wxPyEndAllowThreads(__tstate);
30374 if (PyErr_Occurred()) SWIG_fail;
30375 }
30376 {
30377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30378 }
30379 return resultobj;
30380fail:
30381 return NULL;
30382}
30383
30384
30385SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30386 PyObject *resultobj = 0;
30387 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30388 long arg2 ;
30389 wxString *arg3 = 0 ;
30390 bool arg4 = (bool) false ;
30391 long result;
30392 void *argp1 = 0 ;
30393 int res1 = 0 ;
30394 long val2 ;
30395 int ecode2 = 0 ;
30396 bool temp3 = false ;
30397 bool val4 ;
30398 int ecode4 = 0 ;
30399 PyObject * obj0 = 0 ;
30400 PyObject * obj1 = 0 ;
30401 PyObject * obj2 = 0 ;
30402 PyObject * obj3 = 0 ;
30403 char * kwnames[] = {
30404 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30405 };
30406
30407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30409 if (!SWIG_IsOK(res1)) {
30410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30411 }
30412 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30413 ecode2 = SWIG_AsVal_long(obj1, &val2);
30414 if (!SWIG_IsOK(ecode2)) {
30415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30416 }
30417 arg2 = static_cast< long >(val2);
30418 {
30419 arg3 = wxString_in_helper(obj2);
30420 if (arg3 == NULL) SWIG_fail;
30421 temp3 = true;
30422 }
30423 if (obj3) {
30424 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30425 if (!SWIG_IsOK(ecode4)) {
30426 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30427 }
30428 arg4 = static_cast< bool >(val4);
30429 }
30430 {
30431 PyThreadState* __tstate = wxPyBeginAllowThreads();
30432 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30433 wxPyEndAllowThreads(__tstate);
30434 if (PyErr_Occurred()) SWIG_fail;
30435 }
30436 resultobj = SWIG_From_long(static_cast< long >(result));
30437 {
30438 if (temp3)
30439 delete arg3;
30440 }
30441 return resultobj;
30442fail:
30443 {
30444 if (temp3)
30445 delete arg3;
30446 }
30447 return NULL;
30448}
30449
30450
30451SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30452 PyObject *resultobj = 0;
30453 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30454 long arg2 ;
30455 long arg3 ;
30456 long result;
30457 void *argp1 = 0 ;
30458 int res1 = 0 ;
30459 long val2 ;
30460 int ecode2 = 0 ;
30461 long val3 ;
30462 int ecode3 = 0 ;
30463 PyObject * obj0 = 0 ;
30464 PyObject * obj1 = 0 ;
30465 PyObject * obj2 = 0 ;
30466 char * kwnames[] = {
30467 (char *) "self",(char *) "start",(char *) "data", NULL
30468 };
30469
30470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30472 if (!SWIG_IsOK(res1)) {
30473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30474 }
30475 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30476 ecode2 = SWIG_AsVal_long(obj1, &val2);
30477 if (!SWIG_IsOK(ecode2)) {
30478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30479 }
30480 arg2 = static_cast< long >(val2);
30481 ecode3 = SWIG_AsVal_long(obj2, &val3);
30482 if (!SWIG_IsOK(ecode3)) {
30483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30484 }
30485 arg3 = static_cast< long >(val3);
30486 {
30487 PyThreadState* __tstate = wxPyBeginAllowThreads();
30488 result = (long)(arg1)->FindItem(arg2,arg3);
30489 wxPyEndAllowThreads(__tstate);
30490 if (PyErr_Occurred()) SWIG_fail;
30491 }
30492 resultobj = SWIG_From_long(static_cast< long >(result));
30493 return resultobj;
30494fail:
30495 return NULL;
30496}
30497
30498
30499SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30500 PyObject *resultobj = 0;
30501 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30502 long arg2 ;
30503 wxPoint *arg3 = 0 ;
30504 int arg4 ;
30505 long result;
30506 void *argp1 = 0 ;
30507 int res1 = 0 ;
30508 long val2 ;
30509 int ecode2 = 0 ;
30510 wxPoint temp3 ;
30511 int val4 ;
30512 int ecode4 = 0 ;
30513 PyObject * obj0 = 0 ;
30514 PyObject * obj1 = 0 ;
30515 PyObject * obj2 = 0 ;
30516 PyObject * obj3 = 0 ;
30517 char * kwnames[] = {
30518 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30519 };
30520
30521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30523 if (!SWIG_IsOK(res1)) {
30524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30525 }
30526 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30527 ecode2 = SWIG_AsVal_long(obj1, &val2);
30528 if (!SWIG_IsOK(ecode2)) {
30529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30530 }
30531 arg2 = static_cast< long >(val2);
30532 {
30533 arg3 = &temp3;
30534 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30535 }
30536 ecode4 = SWIG_AsVal_int(obj3, &val4);
30537 if (!SWIG_IsOK(ecode4)) {
30538 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30539 }
30540 arg4 = static_cast< int >(val4);
30541 {
30542 PyThreadState* __tstate = wxPyBeginAllowThreads();
30543 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30544 wxPyEndAllowThreads(__tstate);
30545 if (PyErr_Occurred()) SWIG_fail;
30546 }
30547 resultobj = SWIG_From_long(static_cast< long >(result));
30548 return resultobj;
30549fail:
30550 return NULL;
30551}
30552
30553
30554SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30555 PyObject *resultobj = 0;
30556 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30557 wxPoint *arg2 = 0 ;
30558 int *arg3 = 0 ;
30559 long result;
30560 void *argp1 = 0 ;
30561 int res1 = 0 ;
30562 wxPoint temp2 ;
30563 int temp3 ;
30564 int res3 = SWIG_TMPOBJ ;
30565 PyObject * obj0 = 0 ;
30566 PyObject * obj1 = 0 ;
30567 char * kwnames[] = {
30568 (char *) "self",(char *) "point", NULL
30569 };
30570
30571 arg3 = &temp3;
30572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30574 if (!SWIG_IsOK(res1)) {
30575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30576 }
30577 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30578 {
30579 arg2 = &temp2;
30580 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30581 }
30582 {
30583 PyThreadState* __tstate = wxPyBeginAllowThreads();
30584 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30585 wxPyEndAllowThreads(__tstate);
30586 if (PyErr_Occurred()) SWIG_fail;
30587 }
30588 resultobj = SWIG_From_long(static_cast< long >(result));
30589 if (SWIG_IsTmpObj(res3)) {
30590 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30591 } else {
30592 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30593 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30594 }
30595 return resultobj;
30596fail:
30597 return NULL;
30598}
30599
30600
30601SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30602 PyObject *resultobj = 0;
30603 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30604 wxListItem *arg2 = 0 ;
30605 long result;
30606 void *argp1 = 0 ;
30607 int res1 = 0 ;
30608 void *argp2 = 0 ;
30609 int res2 = 0 ;
30610 PyObject * obj0 = 0 ;
30611 PyObject * obj1 = 0 ;
30612 char * kwnames[] = {
30613 (char *) "self",(char *) "info", NULL
30614 };
30615
30616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30618 if (!SWIG_IsOK(res1)) {
30619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30620 }
30621 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30622 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30623 if (!SWIG_IsOK(res2)) {
30624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30625 }
30626 if (!argp2) {
30627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30628 }
30629 arg2 = reinterpret_cast< wxListItem * >(argp2);
30630 {
30631 PyThreadState* __tstate = wxPyBeginAllowThreads();
30632 result = (long)(arg1)->InsertItem(*arg2);
30633 wxPyEndAllowThreads(__tstate);
30634 if (PyErr_Occurred()) SWIG_fail;
30635 }
30636 resultobj = SWIG_From_long(static_cast< long >(result));
30637 return resultobj;
30638fail:
30639 return NULL;
30640}
30641
30642
30643SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30644 PyObject *resultobj = 0;
30645 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30646 long arg2 ;
30647 wxString *arg3 = 0 ;
30648 int arg4 = (int) -1 ;
30649 long result;
30650 void *argp1 = 0 ;
30651 int res1 = 0 ;
30652 long val2 ;
30653 int ecode2 = 0 ;
30654 bool temp3 = false ;
30655 int val4 ;
30656 int ecode4 = 0 ;
30657 PyObject * obj0 = 0 ;
30658 PyObject * obj1 = 0 ;
30659 PyObject * obj2 = 0 ;
30660 PyObject * obj3 = 0 ;
30661 char * kwnames[] = {
30662 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30663 };
30664
30665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30667 if (!SWIG_IsOK(res1)) {
30668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30669 }
30670 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30671 ecode2 = SWIG_AsVal_long(obj1, &val2);
30672 if (!SWIG_IsOK(ecode2)) {
30673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
30674 }
30675 arg2 = static_cast< long >(val2);
30676 {
30677 arg3 = wxString_in_helper(obj2);
30678 if (arg3 == NULL) SWIG_fail;
30679 temp3 = true;
30680 }
30681 if (obj3) {
30682 ecode4 = SWIG_AsVal_int(obj3, &val4);
30683 if (!SWIG_IsOK(ecode4)) {
30684 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
30685 }
30686 arg4 = static_cast< int >(val4);
30687 }
30688 {
30689 PyThreadState* __tstate = wxPyBeginAllowThreads();
30690 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30691 wxPyEndAllowThreads(__tstate);
30692 if (PyErr_Occurred()) SWIG_fail;
30693 }
30694 resultobj = SWIG_From_long(static_cast< long >(result));
30695 {
30696 if (temp3)
30697 delete arg3;
30698 }
30699 return resultobj;
30700fail:
30701 {
30702 if (temp3)
30703 delete arg3;
30704 }
30705 return NULL;
30706}
30707
30708
30709SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30710 PyObject *resultobj = 0;
30711 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30712 long arg2 ;
30713 int arg3 ;
30714 long result;
30715 void *argp1 = 0 ;
30716 int res1 = 0 ;
30717 long val2 ;
30718 int ecode2 = 0 ;
30719 int val3 ;
30720 int ecode3 = 0 ;
30721 PyObject * obj0 = 0 ;
30722 PyObject * obj1 = 0 ;
30723 PyObject * obj2 = 0 ;
30724 char * kwnames[] = {
30725 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
30726 };
30727
30728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30730 if (!SWIG_IsOK(res1)) {
30731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30732 }
30733 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30734 ecode2 = SWIG_AsVal_long(obj1, &val2);
30735 if (!SWIG_IsOK(ecode2)) {
30736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
30737 }
30738 arg2 = static_cast< long >(val2);
30739 ecode3 = SWIG_AsVal_int(obj2, &val3);
30740 if (!SWIG_IsOK(ecode3)) {
30741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
30742 }
30743 arg3 = static_cast< int >(val3);
30744 {
30745 PyThreadState* __tstate = wxPyBeginAllowThreads();
30746 result = (long)(arg1)->InsertItem(arg2,arg3);
30747 wxPyEndAllowThreads(__tstate);
30748 if (PyErr_Occurred()) SWIG_fail;
30749 }
30750 resultobj = SWIG_From_long(static_cast< long >(result));
30751 return resultobj;
30752fail:
30753 return NULL;
30754}
30755
30756
30757SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30758 PyObject *resultobj = 0;
30759 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30760 long arg2 ;
30761 wxString *arg3 = 0 ;
30762 int arg4 ;
30763 long result;
30764 void *argp1 = 0 ;
30765 int res1 = 0 ;
30766 long val2 ;
30767 int ecode2 = 0 ;
30768 bool temp3 = false ;
30769 int val4 ;
30770 int ecode4 = 0 ;
30771 PyObject * obj0 = 0 ;
30772 PyObject * obj1 = 0 ;
30773 PyObject * obj2 = 0 ;
30774 PyObject * obj3 = 0 ;
30775 char * kwnames[] = {
30776 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30777 };
30778
30779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30781 if (!SWIG_IsOK(res1)) {
30782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30783 }
30784 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30785 ecode2 = SWIG_AsVal_long(obj1, &val2);
30786 if (!SWIG_IsOK(ecode2)) {
30787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
30788 }
30789 arg2 = static_cast< long >(val2);
30790 {
30791 arg3 = wxString_in_helper(obj2);
30792 if (arg3 == NULL) SWIG_fail;
30793 temp3 = true;
30794 }
30795 ecode4 = SWIG_AsVal_int(obj3, &val4);
30796 if (!SWIG_IsOK(ecode4)) {
30797 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
30798 }
30799 arg4 = static_cast< int >(val4);
30800 {
30801 PyThreadState* __tstate = wxPyBeginAllowThreads();
30802 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30803 wxPyEndAllowThreads(__tstate);
30804 if (PyErr_Occurred()) SWIG_fail;
30805 }
30806 resultobj = SWIG_From_long(static_cast< long >(result));
30807 {
30808 if (temp3)
30809 delete arg3;
30810 }
30811 return resultobj;
30812fail:
30813 {
30814 if (temp3)
30815 delete arg3;
30816 }
30817 return NULL;
30818}
30819
30820
30821SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30822 PyObject *resultobj = 0;
30823 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30824 long arg2 ;
30825 wxListItem *arg3 = 0 ;
30826 long result;
30827 void *argp1 = 0 ;
30828 int res1 = 0 ;
30829 long val2 ;
30830 int ecode2 = 0 ;
30831 void *argp3 = 0 ;
30832 int res3 = 0 ;
30833 PyObject * obj0 = 0 ;
30834 PyObject * obj1 = 0 ;
30835 PyObject * obj2 = 0 ;
30836 char * kwnames[] = {
30837 (char *) "self",(char *) "col",(char *) "info", NULL
30838 };
30839
30840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30842 if (!SWIG_IsOK(res1)) {
30843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30844 }
30845 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30846 ecode2 = SWIG_AsVal_long(obj1, &val2);
30847 if (!SWIG_IsOK(ecode2)) {
30848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
30849 }
30850 arg2 = static_cast< long >(val2);
30851 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
30852 if (!SWIG_IsOK(res3)) {
30853 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
30854 }
30855 if (!argp3) {
30856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
30857 }
30858 arg3 = reinterpret_cast< wxListItem * >(argp3);
30859 {
30860 PyThreadState* __tstate = wxPyBeginAllowThreads();
30861 result = (long)(arg1)->InsertColumn(arg2,*arg3);
30862 wxPyEndAllowThreads(__tstate);
30863 if (PyErr_Occurred()) SWIG_fail;
30864 }
30865 resultobj = SWIG_From_long(static_cast< long >(result));
30866 return resultobj;
30867fail:
30868 return NULL;
30869}
30870
30871
30872SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30873 PyObject *resultobj = 0;
30874 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30875 long arg2 ;
30876 wxString *arg3 = 0 ;
30877 int arg4 = (int) wxLIST_FORMAT_LEFT ;
30878 int arg5 = (int) -1 ;
30879 long result;
30880 void *argp1 = 0 ;
30881 int res1 = 0 ;
30882 long val2 ;
30883 int ecode2 = 0 ;
30884 bool temp3 = false ;
30885 int val4 ;
30886 int ecode4 = 0 ;
30887 int val5 ;
30888 int ecode5 = 0 ;
30889 PyObject * obj0 = 0 ;
30890 PyObject * obj1 = 0 ;
30891 PyObject * obj2 = 0 ;
30892 PyObject * obj3 = 0 ;
30893 PyObject * obj4 = 0 ;
30894 char * kwnames[] = {
30895 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
30896 };
30897
30898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30900 if (!SWIG_IsOK(res1)) {
30901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30902 }
30903 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30904 ecode2 = SWIG_AsVal_long(obj1, &val2);
30905 if (!SWIG_IsOK(ecode2)) {
30906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
30907 }
30908 arg2 = static_cast< long >(val2);
30909 {
30910 arg3 = wxString_in_helper(obj2);
30911 if (arg3 == NULL) SWIG_fail;
30912 temp3 = true;
30913 }
30914 if (obj3) {
30915 ecode4 = SWIG_AsVal_int(obj3, &val4);
30916 if (!SWIG_IsOK(ecode4)) {
30917 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
30918 }
30919 arg4 = static_cast< int >(val4);
30920 }
30921 if (obj4) {
30922 ecode5 = SWIG_AsVal_int(obj4, &val5);
30923 if (!SWIG_IsOK(ecode5)) {
30924 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
30925 }
30926 arg5 = static_cast< int >(val5);
30927 }
30928 {
30929 PyThreadState* __tstate = wxPyBeginAllowThreads();
30930 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
30931 wxPyEndAllowThreads(__tstate);
30932 if (PyErr_Occurred()) SWIG_fail;
30933 }
30934 resultobj = SWIG_From_long(static_cast< long >(result));
30935 {
30936 if (temp3)
30937 delete arg3;
30938 }
30939 return resultobj;
30940fail:
30941 {
30942 if (temp3)
30943 delete arg3;
30944 }
30945 return NULL;
30946}
30947
30948
30949SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30950 PyObject *resultobj = 0;
30951 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30952 long arg2 ;
30953 void *argp1 = 0 ;
30954 int res1 = 0 ;
30955 long val2 ;
30956 int ecode2 = 0 ;
30957 PyObject * obj0 = 0 ;
30958 PyObject * obj1 = 0 ;
30959 char * kwnames[] = {
30960 (char *) "self",(char *) "count", NULL
30961 };
30962
30963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
30964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30965 if (!SWIG_IsOK(res1)) {
30966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30967 }
30968 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30969 ecode2 = SWIG_AsVal_long(obj1, &val2);
30970 if (!SWIG_IsOK(ecode2)) {
30971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
30972 }
30973 arg2 = static_cast< long >(val2);
30974 {
30975 PyThreadState* __tstate = wxPyBeginAllowThreads();
30976 (arg1)->SetItemCount(arg2);
30977 wxPyEndAllowThreads(__tstate);
30978 if (PyErr_Occurred()) SWIG_fail;
30979 }
30980 resultobj = SWIG_Py_Void();
30981 return resultobj;
30982fail:
30983 return NULL;
30984}
30985
30986
30987SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30988 PyObject *resultobj = 0;
30989 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30990 int arg2 ;
30991 int arg3 ;
30992 bool result;
30993 void *argp1 = 0 ;
30994 int res1 = 0 ;
30995 int val2 ;
30996 int ecode2 = 0 ;
30997 int val3 ;
30998 int ecode3 = 0 ;
30999 PyObject * obj0 = 0 ;
31000 PyObject * obj1 = 0 ;
31001 PyObject * obj2 = 0 ;
31002 char * kwnames[] = {
31003 (char *) "self",(char *) "dx",(char *) "dy", NULL
31004 };
31005
31006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31008 if (!SWIG_IsOK(res1)) {
31009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31010 }
31011 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31012 ecode2 = SWIG_AsVal_int(obj1, &val2);
31013 if (!SWIG_IsOK(ecode2)) {
31014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31015 }
31016 arg2 = static_cast< int >(val2);
31017 ecode3 = SWIG_AsVal_int(obj2, &val3);
31018 if (!SWIG_IsOK(ecode3)) {
31019 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31020 }
31021 arg3 = static_cast< int >(val3);
31022 {
31023 PyThreadState* __tstate = wxPyBeginAllowThreads();
31024 result = (bool)(arg1)->ScrollList(arg2,arg3);
31025 wxPyEndAllowThreads(__tstate);
31026 if (PyErr_Occurred()) SWIG_fail;
31027 }
31028 {
31029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31030 }
31031 return resultobj;
31032fail:
31033 return NULL;
31034}
31035
31036
31037SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31038 PyObject *resultobj = 0;
31039 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31040 long arg2 ;
31041 wxColour *arg3 = 0 ;
31042 void *argp1 = 0 ;
31043 int res1 = 0 ;
31044 long val2 ;
31045 int ecode2 = 0 ;
31046 wxColour temp3 ;
31047 PyObject * obj0 = 0 ;
31048 PyObject * obj1 = 0 ;
31049 PyObject * obj2 = 0 ;
31050 char * kwnames[] = {
31051 (char *) "self",(char *) "item",(char *) "col", NULL
31052 };
31053
31054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31056 if (!SWIG_IsOK(res1)) {
31057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31058 }
31059 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31060 ecode2 = SWIG_AsVal_long(obj1, &val2);
31061 if (!SWIG_IsOK(ecode2)) {
31062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31063 }
31064 arg2 = static_cast< long >(val2);
31065 {
31066 arg3 = &temp3;
31067 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31068 }
31069 {
31070 PyThreadState* __tstate = wxPyBeginAllowThreads();
31071 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31072 wxPyEndAllowThreads(__tstate);
31073 if (PyErr_Occurred()) SWIG_fail;
31074 }
31075 resultobj = SWIG_Py_Void();
31076 return resultobj;
31077fail:
31078 return NULL;
31079}
31080
31081
31082SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31083 PyObject *resultobj = 0;
31084 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31085 long arg2 ;
31086 wxColour result;
31087 void *argp1 = 0 ;
31088 int res1 = 0 ;
31089 long val2 ;
31090 int ecode2 = 0 ;
31091 PyObject * obj0 = 0 ;
31092 PyObject * obj1 = 0 ;
31093 char * kwnames[] = {
31094 (char *) "self",(char *) "item", NULL
31095 };
31096
31097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31099 if (!SWIG_IsOK(res1)) {
31100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31101 }
31102 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31103 ecode2 = SWIG_AsVal_long(obj1, &val2);
31104 if (!SWIG_IsOK(ecode2)) {
31105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31106 }
31107 arg2 = static_cast< long >(val2);
31108 {
31109 PyThreadState* __tstate = wxPyBeginAllowThreads();
31110 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31111 wxPyEndAllowThreads(__tstate);
31112 if (PyErr_Occurred()) SWIG_fail;
31113 }
31114 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31115 return resultobj;
31116fail:
31117 return NULL;
31118}
31119
31120
31121SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31122 PyObject *resultobj = 0;
31123 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31124 long arg2 ;
31125 wxColour *arg3 = 0 ;
31126 void *argp1 = 0 ;
31127 int res1 = 0 ;
31128 long val2 ;
31129 int ecode2 = 0 ;
31130 wxColour temp3 ;
31131 PyObject * obj0 = 0 ;
31132 PyObject * obj1 = 0 ;
31133 PyObject * obj2 = 0 ;
31134 char * kwnames[] = {
31135 (char *) "self",(char *) "item",(char *) "col", NULL
31136 };
31137
31138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31140 if (!SWIG_IsOK(res1)) {
31141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31142 }
31143 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31144 ecode2 = SWIG_AsVal_long(obj1, &val2);
31145 if (!SWIG_IsOK(ecode2)) {
31146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31147 }
31148 arg2 = static_cast< long >(val2);
31149 {
31150 arg3 = &temp3;
31151 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31152 }
31153 {
31154 PyThreadState* __tstate = wxPyBeginAllowThreads();
31155 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31156 wxPyEndAllowThreads(__tstate);
31157 if (PyErr_Occurred()) SWIG_fail;
31158 }
31159 resultobj = SWIG_Py_Void();
31160 return resultobj;
31161fail:
31162 return NULL;
31163}
31164
31165
31166SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31167 PyObject *resultobj = 0;
31168 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31169 long arg2 ;
31170 wxColour result;
31171 void *argp1 = 0 ;
31172 int res1 = 0 ;
31173 long val2 ;
31174 int ecode2 = 0 ;
31175 PyObject * obj0 = 0 ;
31176 PyObject * obj1 = 0 ;
31177 char * kwnames[] = {
31178 (char *) "self",(char *) "item", NULL
31179 };
31180
31181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31183 if (!SWIG_IsOK(res1)) {
31184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31185 }
31186 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31187 ecode2 = SWIG_AsVal_long(obj1, &val2);
31188 if (!SWIG_IsOK(ecode2)) {
31189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31190 }
31191 arg2 = static_cast< long >(val2);
31192 {
31193 PyThreadState* __tstate = wxPyBeginAllowThreads();
31194 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31195 wxPyEndAllowThreads(__tstate);
31196 if (PyErr_Occurred()) SWIG_fail;
31197 }
31198 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31199 return resultobj;
31200fail:
31201 return NULL;
31202}
31203
31204
31205SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31206 PyObject *resultobj = 0;
31207 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31208 long arg2 ;
31209 wxFont *arg3 = 0 ;
31210 void *argp1 = 0 ;
31211 int res1 = 0 ;
31212 long val2 ;
31213 int ecode2 = 0 ;
31214 void *argp3 = 0 ;
31215 int res3 = 0 ;
31216 PyObject * obj0 = 0 ;
31217 PyObject * obj1 = 0 ;
31218 PyObject * obj2 = 0 ;
31219 char * kwnames[] = {
31220 (char *) "self",(char *) "item",(char *) "f", NULL
31221 };
31222
31223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31225 if (!SWIG_IsOK(res1)) {
31226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31227 }
31228 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31229 ecode2 = SWIG_AsVal_long(obj1, &val2);
31230 if (!SWIG_IsOK(ecode2)) {
31231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31232 }
31233 arg2 = static_cast< long >(val2);
31234 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31235 if (!SWIG_IsOK(res3)) {
31236 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31237 }
31238 if (!argp3) {
31239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31240 }
31241 arg3 = reinterpret_cast< wxFont * >(argp3);
31242 {
31243 PyThreadState* __tstate = wxPyBeginAllowThreads();
31244 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31245 wxPyEndAllowThreads(__tstate);
31246 if (PyErr_Occurred()) SWIG_fail;
31247 }
31248 resultobj = SWIG_Py_Void();
31249 return resultobj;
31250fail:
31251 return NULL;
31252}
31253
31254
31255SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31256 PyObject *resultobj = 0;
31257 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31258 long arg2 ;
31259 wxFont result;
31260 void *argp1 = 0 ;
31261 int res1 = 0 ;
31262 long val2 ;
31263 int ecode2 = 0 ;
31264 PyObject * obj0 = 0 ;
31265 PyObject * obj1 = 0 ;
31266 char * kwnames[] = {
31267 (char *) "self",(char *) "item", NULL
31268 };
31269
31270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31272 if (!SWIG_IsOK(res1)) {
31273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31274 }
31275 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31276 ecode2 = SWIG_AsVal_long(obj1, &val2);
31277 if (!SWIG_IsOK(ecode2)) {
31278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31279 }
31280 arg2 = static_cast< long >(val2);
31281 {
31282 PyThreadState* __tstate = wxPyBeginAllowThreads();
31283 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31284 wxPyEndAllowThreads(__tstate);
31285 if (PyErr_Occurred()) SWIG_fail;
31286 }
31287 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31288 return resultobj;
31289fail:
31290 return NULL;
31291}
31292
31293
31294SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31295 PyObject *resultobj = 0;
31296 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31297 PyObject *arg2 = (PyObject *) 0 ;
31298 bool result;
31299 void *argp1 = 0 ;
31300 int res1 = 0 ;
31301 PyObject * obj0 = 0 ;
31302 PyObject * obj1 = 0 ;
31303 char * kwnames[] = {
31304 (char *) "self",(char *) "func", NULL
31305 };
31306
31307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31309 if (!SWIG_IsOK(res1)) {
31310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31311 }
31312 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31313 arg2 = obj1;
31314 {
31315 PyThreadState* __tstate = wxPyBeginAllowThreads();
31316 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31317 wxPyEndAllowThreads(__tstate);
31318 if (PyErr_Occurred()) SWIG_fail;
31319 }
31320 {
31321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31322 }
31323 return resultobj;
31324fail:
31325 return NULL;
b411df4a
RD
31326}
31327
31328
1bd55598
RD
31329SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31330 PyObject *resultobj = 0;
31331 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31332 wxWindow *result = 0 ;
31333 void *argp1 = 0 ;
31334 int res1 = 0 ;
31335 PyObject *swig_obj[1] ;
31336
31337 if (!args) SWIG_fail;
31338 swig_obj[0] = args;
31339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31340 if (!SWIG_IsOK(res1)) {
31341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31342 }
31343 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31344 {
31345 PyThreadState* __tstate = wxPyBeginAllowThreads();
31346 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31347 wxPyEndAllowThreads(__tstate);
31348 if (PyErr_Occurred()) SWIG_fail;
31349 }
31350 {
31351 resultobj = wxPyMake_wxObject(result, 0);
31352 }
31353 return resultobj;
31354fail:
31355 return NULL;
7993762b
RD
31356}
31357
31358
1bd55598
RD
31359SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31360 PyObject *resultobj = 0;
31361 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31362 SwigValueWrapper<wxVisualAttributes > result;
31363 int val1 ;
31364 int ecode1 = 0 ;
31365 PyObject * obj0 = 0 ;
31366 char * kwnames[] = {
31367 (char *) "variant", NULL
31368 };
31369
31370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31371 if (obj0) {
31372 ecode1 = SWIG_AsVal_int(obj0, &val1);
31373 if (!SWIG_IsOK(ecode1)) {
31374 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31375 }
31376 arg1 = static_cast< wxWindowVariant >(val1);
31377 }
31378 {
31379 if (!wxPyCheckForApp()) SWIG_fail;
31380 PyThreadState* __tstate = wxPyBeginAllowThreads();
31381 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31382 wxPyEndAllowThreads(__tstate);
31383 if (PyErr_Occurred()) SWIG_fail;
31384 }
31385 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31386 return resultobj;
31387fail:
31388 return NULL;
31389}
31390
31391
31392SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31393 PyObject *obj;
31394 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31395 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31396 return SWIG_Py_Void();
31397}
31398
31399SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31400 return SWIG_Python_InitShadowInstance(args);
31401}
31402
31403SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31404 PyObject *resultobj = 0;
31405 wxWindow *arg1 = (wxWindow *) 0 ;
31406 int arg2 = (int) -1 ;
31407 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31408 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31409 wxSize const &arg4_defvalue = wxDefaultSize ;
31410 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31411 long arg5 = (long) wxLC_REPORT ;
31412 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31413 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31414 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31415 wxString *arg7 = (wxString *) &arg7_defvalue ;
31416 wxListView *result = 0 ;
31417 void *argp1 = 0 ;
31418 int res1 = 0 ;
31419 int val2 ;
31420 int ecode2 = 0 ;
31421 wxPoint temp3 ;
31422 wxSize temp4 ;
31423 long val5 ;
31424 int ecode5 = 0 ;
31425 void *argp6 = 0 ;
31426 int res6 = 0 ;
31427 bool temp7 = false ;
31428 PyObject * obj0 = 0 ;
31429 PyObject * obj1 = 0 ;
31430 PyObject * obj2 = 0 ;
31431 PyObject * obj3 = 0 ;
31432 PyObject * obj4 = 0 ;
31433 PyObject * obj5 = 0 ;
31434 PyObject * obj6 = 0 ;
31435 char * kwnames[] = {
31436 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31437 };
31438
31439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31441 if (!SWIG_IsOK(res1)) {
31442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31443 }
31444 arg1 = reinterpret_cast< wxWindow * >(argp1);
31445 if (obj1) {
31446 ecode2 = SWIG_AsVal_int(obj1, &val2);
31447 if (!SWIG_IsOK(ecode2)) {
31448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31449 }
31450 arg2 = static_cast< int >(val2);
31451 }
31452 if (obj2) {
b411df4a 31453 {
1bd55598
RD
31454 arg3 = &temp3;
31455 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
b411df4a 31456 }
1bd55598
RD
31457 }
31458 if (obj3) {
31459 {
31460 arg4 = &temp4;
31461 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
b411df4a 31462 }
1bd55598
RD
31463 }
31464 if (obj4) {
31465 ecode5 = SWIG_AsVal_long(obj4, &val5);
31466 if (!SWIG_IsOK(ecode5)) {
31467 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31468 }
31469 arg5 = static_cast< long >(val5);
31470 }
31471 if (obj5) {
31472 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31473 if (!SWIG_IsOK(res6)) {
31474 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 31475 }
1bd55598
RD
31476 if (!argp6) {
31477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 31478 }
1bd55598
RD
31479 arg6 = reinterpret_cast< wxValidator * >(argp6);
31480 }
31481 if (obj6) {
b411df4a 31482 {
1bd55598
RD
31483 arg7 = wxString_in_helper(obj6);
31484 if (arg7 == NULL) SWIG_fail;
31485 temp7 = true;
b411df4a 31486 }
1bd55598
RD
31487 }
31488 {
31489 if (!wxPyCheckForApp()) SWIG_fail;
31490 PyThreadState* __tstate = wxPyBeginAllowThreads();
31491 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31492 wxPyEndAllowThreads(__tstate);
31493 if (PyErr_Occurred()) SWIG_fail;
31494 }
31495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31496 {
31497 if (temp7)
31498 delete arg7;
31499 }
31500 return resultobj;
31501fail:
31502 {
31503 if (temp7)
31504 delete arg7;
31505 }
31506 return NULL;
b411df4a
RD
31507}
31508
31509
1bd55598
RD
31510SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31511 PyObject *resultobj = 0;
31512 wxListView *result = 0 ;
31513
31514 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31515 {
31516 if (!wxPyCheckForApp()) SWIG_fail;
31517 PyThreadState* __tstate = wxPyBeginAllowThreads();
31518 result = (wxListView *)new wxListView();
31519 wxPyEndAllowThreads(__tstate);
31520 if (PyErr_Occurred()) SWIG_fail;
31521 }
31522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31523 return resultobj;
31524fail:
31525 return NULL;
31526}
31527
31528
31529SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31530 PyObject *resultobj = 0;
31531 wxListView *arg1 = (wxListView *) 0 ;
31532 wxWindow *arg2 = (wxWindow *) 0 ;
31533 int arg3 = (int) -1 ;
31534 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31535 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31536 wxSize const &arg5_defvalue = wxDefaultSize ;
31537 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31538 long arg6 = (long) wxLC_REPORT ;
31539 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31540 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31541 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31542 wxString *arg8 = (wxString *) &arg8_defvalue ;
31543 bool result;
31544 void *argp1 = 0 ;
31545 int res1 = 0 ;
31546 void *argp2 = 0 ;
31547 int res2 = 0 ;
31548 int val3 ;
31549 int ecode3 = 0 ;
31550 wxPoint temp4 ;
31551 wxSize temp5 ;
31552 long val6 ;
31553 int ecode6 = 0 ;
31554 void *argp7 = 0 ;
31555 int res7 = 0 ;
31556 bool temp8 = false ;
31557 PyObject * obj0 = 0 ;
31558 PyObject * obj1 = 0 ;
31559 PyObject * obj2 = 0 ;
31560 PyObject * obj3 = 0 ;
31561 PyObject * obj4 = 0 ;
31562 PyObject * obj5 = 0 ;
31563 PyObject * obj6 = 0 ;
31564 PyObject * obj7 = 0 ;
31565 char * kwnames[] = {
31566 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31567 };
31568
31569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31571 if (!SWIG_IsOK(res1)) {
31572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31573 }
31574 arg1 = reinterpret_cast< wxListView * >(argp1);
31575 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31576 if (!SWIG_IsOK(res2)) {
31577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31578 }
31579 arg2 = reinterpret_cast< wxWindow * >(argp2);
31580 if (obj2) {
31581 ecode3 = SWIG_AsVal_int(obj2, &val3);
31582 if (!SWIG_IsOK(ecode3)) {
31583 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31584 }
31585 arg3 = static_cast< int >(val3);
31586 }
31587 if (obj3) {
d55e5bfc 31588 {
1bd55598
RD
31589 arg4 = &temp4;
31590 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 31591 }
1bd55598
RD
31592 }
31593 if (obj4) {
36ed4f51 31594 {
1bd55598
RD
31595 arg5 = &temp5;
31596 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 31597 }
1bd55598
RD
31598 }
31599 if (obj5) {
31600 ecode6 = SWIG_AsVal_long(obj5, &val6);
31601 if (!SWIG_IsOK(ecode6)) {
31602 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31603 }
31604 arg6 = static_cast< long >(val6);
31605 }
31606 if (obj6) {
31607 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31608 if (!SWIG_IsOK(res7)) {
31609 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 31610 }
1bd55598
RD
31611 if (!argp7) {
31612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31613 }
31614 arg7 = reinterpret_cast< wxValidator * >(argp7);
31615 }
31616 if (obj7) {
d55e5bfc 31617 {
1bd55598
RD
31618 arg8 = wxString_in_helper(obj7);
31619 if (arg8 == NULL) SWIG_fail;
31620 temp8 = true;
d55e5bfc 31621 }
1bd55598
RD
31622 }
31623 {
31624 PyThreadState* __tstate = wxPyBeginAllowThreads();
31625 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31626 wxPyEndAllowThreads(__tstate);
31627 if (PyErr_Occurred()) SWIG_fail;
31628 }
31629 {
31630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31631 }
31632 {
31633 if (temp8)
31634 delete arg8;
31635 }
31636 return resultobj;
31637fail:
31638 {
31639 if (temp8)
31640 delete arg8;
31641 }
31642 return NULL;
31643}
31644
31645
31646SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31647 PyObject *resultobj = 0;
31648 wxListView *arg1 = (wxListView *) 0 ;
31649 long arg2 ;
31650 bool arg3 = (bool) true ;
31651 void *argp1 = 0 ;
31652 int res1 = 0 ;
31653 long val2 ;
31654 int ecode2 = 0 ;
31655 bool val3 ;
31656 int ecode3 = 0 ;
31657 PyObject * obj0 = 0 ;
31658 PyObject * obj1 = 0 ;
31659 PyObject * obj2 = 0 ;
31660 char * kwnames[] = {
31661 (char *) "self",(char *) "n",(char *) "on", NULL
31662 };
31663
31664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31666 if (!SWIG_IsOK(res1)) {
31667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
31668 }
31669 arg1 = reinterpret_cast< wxListView * >(argp1);
31670 ecode2 = SWIG_AsVal_long(obj1, &val2);
31671 if (!SWIG_IsOK(ecode2)) {
31672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
31673 }
31674 arg2 = static_cast< long >(val2);
31675 if (obj2) {
31676 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31677 if (!SWIG_IsOK(ecode3)) {
31678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
31679 }
31680 arg3 = static_cast< bool >(val3);
31681 }
31682 {
31683 PyThreadState* __tstate = wxPyBeginAllowThreads();
31684 (arg1)->Select(arg2,arg3);
31685 wxPyEndAllowThreads(__tstate);
31686 if (PyErr_Occurred()) SWIG_fail;
31687 }
31688 resultobj = SWIG_Py_Void();
31689 return resultobj;
31690fail:
31691 return NULL;
31692}
31693
31694
31695SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31696 PyObject *resultobj = 0;
31697 wxListView *arg1 = (wxListView *) 0 ;
31698 long arg2 ;
31699 void *argp1 = 0 ;
31700 int res1 = 0 ;
31701 long val2 ;
31702 int ecode2 = 0 ;
31703 PyObject * obj0 = 0 ;
31704 PyObject * obj1 = 0 ;
31705 char * kwnames[] = {
31706 (char *) "self",(char *) "index", NULL
31707 };
31708
31709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
31710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31711 if (!SWIG_IsOK(res1)) {
31712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
31713 }
31714 arg1 = reinterpret_cast< wxListView * >(argp1);
31715 ecode2 = SWIG_AsVal_long(obj1, &val2);
31716 if (!SWIG_IsOK(ecode2)) {
31717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
31718 }
31719 arg2 = static_cast< long >(val2);
31720 {
31721 PyThreadState* __tstate = wxPyBeginAllowThreads();
31722 (arg1)->Focus(arg2);
31723 wxPyEndAllowThreads(__tstate);
31724 if (PyErr_Occurred()) SWIG_fail;
31725 }
31726 resultobj = SWIG_Py_Void();
31727 return resultobj;
31728fail:
31729 return NULL;
d55e5bfc
RD
31730}
31731
31732
1bd55598
RD
31733SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31734 PyObject *resultobj = 0;
31735 wxListView *arg1 = (wxListView *) 0 ;
31736 long result;
31737 void *argp1 = 0 ;
31738 int res1 = 0 ;
31739 PyObject *swig_obj[1] ;
31740
31741 if (!args) SWIG_fail;
31742 swig_obj[0] = args;
31743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31744 if (!SWIG_IsOK(res1)) {
31745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
31746 }
31747 arg1 = reinterpret_cast< wxListView * >(argp1);
31748 {
31749 PyThreadState* __tstate = wxPyBeginAllowThreads();
31750 result = (long)((wxListView const *)arg1)->GetFocusedItem();
31751 wxPyEndAllowThreads(__tstate);
31752 if (PyErr_Occurred()) SWIG_fail;
31753 }
31754 resultobj = SWIG_From_long(static_cast< long >(result));
31755 return resultobj;
31756fail:
31757 return NULL;
31758}
31759
31760
31761SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31762 PyObject *resultobj = 0;
31763 wxListView *arg1 = (wxListView *) 0 ;
31764 long arg2 ;
31765 long result;
31766 void *argp1 = 0 ;
31767 int res1 = 0 ;
31768 long val2 ;
31769 int ecode2 = 0 ;
31770 PyObject * obj0 = 0 ;
31771 PyObject * obj1 = 0 ;
31772 char * kwnames[] = {
31773 (char *) "self",(char *) "item", NULL
31774 };
31775
31776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31778 if (!SWIG_IsOK(res1)) {
31779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31780 }
31781 arg1 = reinterpret_cast< wxListView * >(argp1);
31782 ecode2 = SWIG_AsVal_long(obj1, &val2);
31783 if (!SWIG_IsOK(ecode2)) {
31784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
31785 }
31786 arg2 = static_cast< long >(val2);
31787 {
31788 PyThreadState* __tstate = wxPyBeginAllowThreads();
31789 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
31790 wxPyEndAllowThreads(__tstate);
31791 if (PyErr_Occurred()) SWIG_fail;
31792 }
31793 resultobj = SWIG_From_long(static_cast< long >(result));
31794 return resultobj;
31795fail:
31796 return NULL;
d55e5bfc
RD
31797}
31798
31799
1bd55598
RD
31800SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31801 PyObject *resultobj = 0;
31802 wxListView *arg1 = (wxListView *) 0 ;
31803 long result;
31804 void *argp1 = 0 ;
31805 int res1 = 0 ;
31806 PyObject *swig_obj[1] ;
31807
31808 if (!args) SWIG_fail;
31809 swig_obj[0] = args;
31810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31811 if (!SWIG_IsOK(res1)) {
31812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31813 }
31814 arg1 = reinterpret_cast< wxListView * >(argp1);
31815 {
31816 PyThreadState* __tstate = wxPyBeginAllowThreads();
31817 result = (long)((wxListView const *)arg1)->GetFirstSelected();
31818 wxPyEndAllowThreads(__tstate);
31819 if (PyErr_Occurred()) SWIG_fail;
31820 }
31821 resultobj = SWIG_From_long(static_cast< long >(result));
31822 return resultobj;
31823fail:
31824 return NULL;
31825}
31826
31827
31828SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31829 PyObject *resultobj = 0;
31830 wxListView *arg1 = (wxListView *) 0 ;
31831 long arg2 ;
31832 bool result;
31833 void *argp1 = 0 ;
31834 int res1 = 0 ;
31835 long val2 ;
31836 int ecode2 = 0 ;
31837 PyObject * obj0 = 0 ;
31838 PyObject * obj1 = 0 ;
31839 char * kwnames[] = {
31840 (char *) "self",(char *) "index", NULL
31841 };
31842
31843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31845 if (!SWIG_IsOK(res1)) {
31846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
31847 }
31848 arg1 = reinterpret_cast< wxListView * >(argp1);
31849 ecode2 = SWIG_AsVal_long(obj1, &val2);
31850 if (!SWIG_IsOK(ecode2)) {
31851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
31852 }
31853 arg2 = static_cast< long >(val2);
31854 {
31855 PyThreadState* __tstate = wxPyBeginAllowThreads();
31856 result = (bool)(arg1)->IsSelected(arg2);
31857 wxPyEndAllowThreads(__tstate);
31858 if (PyErr_Occurred()) SWIG_fail;
31859 }
31860 {
31861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31862 }
31863 return resultobj;
31864fail:
31865 return NULL;
31866}
31867
31868
31869SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31870 PyObject *resultobj = 0;
31871 wxListView *arg1 = (wxListView *) 0 ;
31872 int arg2 ;
31873 int arg3 ;
31874 void *argp1 = 0 ;
31875 int res1 = 0 ;
31876 int val2 ;
31877 int ecode2 = 0 ;
31878 int val3 ;
31879 int ecode3 = 0 ;
31880 PyObject * obj0 = 0 ;
31881 PyObject * obj1 = 0 ;
31882 PyObject * obj2 = 0 ;
31883 char * kwnames[] = {
31884 (char *) "self",(char *) "col",(char *) "image", NULL
31885 };
31886
31887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31889 if (!SWIG_IsOK(res1)) {
31890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
31891 }
31892 arg1 = reinterpret_cast< wxListView * >(argp1);
31893 ecode2 = SWIG_AsVal_int(obj1, &val2);
31894 if (!SWIG_IsOK(ecode2)) {
31895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
31896 }
31897 arg2 = static_cast< int >(val2);
31898 ecode3 = SWIG_AsVal_int(obj2, &val3);
31899 if (!SWIG_IsOK(ecode3)) {
31900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
31901 }
31902 arg3 = static_cast< int >(val3);
31903 {
31904 PyThreadState* __tstate = wxPyBeginAllowThreads();
31905 (arg1)->SetColumnImage(arg2,arg3);
31906 wxPyEndAllowThreads(__tstate);
31907 if (PyErr_Occurred()) SWIG_fail;
31908 }
31909 resultobj = SWIG_Py_Void();
31910 return resultobj;
31911fail:
31912 return NULL;
31913}
31914
31915
31916SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31917 PyObject *resultobj = 0;
31918 wxListView *arg1 = (wxListView *) 0 ;
31919 int arg2 ;
31920 void *argp1 = 0 ;
31921 int res1 = 0 ;
31922 int val2 ;
31923 int ecode2 = 0 ;
31924 PyObject * obj0 = 0 ;
31925 PyObject * obj1 = 0 ;
31926 char * kwnames[] = {
31927 (char *) "self",(char *) "col", NULL
31928 };
31929
31930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
31931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31932 if (!SWIG_IsOK(res1)) {
31933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
31934 }
31935 arg1 = reinterpret_cast< wxListView * >(argp1);
31936 ecode2 = SWIG_AsVal_int(obj1, &val2);
31937 if (!SWIG_IsOK(ecode2)) {
31938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
31939 }
31940 arg2 = static_cast< int >(val2);
31941 {
31942 PyThreadState* __tstate = wxPyBeginAllowThreads();
31943 (arg1)->ClearColumnImage(arg2);
31944 wxPyEndAllowThreads(__tstate);
31945 if (PyErr_Occurred()) SWIG_fail;
31946 }
31947 resultobj = SWIG_Py_Void();
31948 return resultobj;
31949fail:
31950 return NULL;
d55e5bfc
RD
31951}
31952
31953
1bd55598
RD
31954SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31955 PyObject *obj;
31956 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31957 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
31958 return SWIG_Py_Void();
d55e5bfc
RD
31959}
31960
1bd55598
RD
31961SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31962 return SWIG_Python_InitShadowInstance(args);
31963}
d55e5bfc 31964
1bd55598
RD
31965SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
31966 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
31967 return 1;
d55e5bfc
RD
31968}
31969
31970
1bd55598
RD
31971SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
31972 PyObject *pyobj = 0;
31973
31974 {
31975#if wxUSE_UNICODE
31976 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
31977#else
31978 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
31979#endif
31980 }
31981 return pyobj;
d55e5bfc
RD
31982}
31983
31984
1bd55598
RD
31985SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31986 PyObject *resultobj = 0;
31987 wxTreeItemId *result = 0 ;
31988
31989 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
31990 {
31991 PyThreadState* __tstate = wxPyBeginAllowThreads();
31992 result = (wxTreeItemId *)new wxTreeItemId();
31993 wxPyEndAllowThreads(__tstate);
31994 if (PyErr_Occurred()) SWIG_fail;
31995 }
31996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
31997 return resultobj;
31998fail:
31999 return NULL;
d55e5bfc
RD
32000}
32001
32002
1bd55598
RD
32003SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32004 PyObject *resultobj = 0;
32005 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32006 void *argp1 = 0 ;
32007 int res1 = 0 ;
32008 PyObject *swig_obj[1] ;
32009
32010 if (!args) SWIG_fail;
32011 swig_obj[0] = args;
32012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32013 if (!SWIG_IsOK(res1)) {
32014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32015 }
32016 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32017 {
32018 PyThreadState* __tstate = wxPyBeginAllowThreads();
32019 delete arg1;
d55e5bfc 32020
1bd55598
RD
32021 wxPyEndAllowThreads(__tstate);
32022 if (PyErr_Occurred()) SWIG_fail;
32023 }
32024 resultobj = SWIG_Py_Void();
32025 return resultobj;
32026fail:
32027 return NULL;
d55e5bfc
RD
32028}
32029
32030
1bd55598
RD
32031SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32032 PyObject *resultobj = 0;
32033 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32034 bool result;
32035 void *argp1 = 0 ;
32036 int res1 = 0 ;
32037 PyObject *swig_obj[1] ;
32038
32039 if (!args) SWIG_fail;
32040 swig_obj[0] = args;
32041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32042 if (!SWIG_IsOK(res1)) {
32043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32044 }
32045 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32046 {
32047 PyThreadState* __tstate = wxPyBeginAllowThreads();
32048 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32049 wxPyEndAllowThreads(__tstate);
32050 if (PyErr_Occurred()) SWIG_fail;
32051 }
32052 {
32053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32054 }
32055 return resultobj;
32056fail:
32057 return NULL;
32058}
32059
32060
32061SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32062 PyObject *resultobj = 0;
32063 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32064 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32065 bool result;
32066 void *argp1 = 0 ;
32067 int res1 = 0 ;
32068 void *argp2 = 0 ;
32069 int res2 = 0 ;
32070 PyObject * obj0 = 0 ;
32071 PyObject * obj1 = 0 ;
32072 char * kwnames[] = {
32073 (char *) "self",(char *) "other", NULL
32074 };
32075
32076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32078 if (!SWIG_IsOK(res1)) {
32079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32080 }
32081 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32082 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32083 if (!SWIG_IsOK(res2)) {
32084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32085 }
32086 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32087 {
32088 PyThreadState* __tstate = wxPyBeginAllowThreads();
32089 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32090 wxPyEndAllowThreads(__tstate);
32091 if (PyErr_Occurred()) SWIG_fail;
32092 }
32093 {
32094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32095 }
32096 return resultobj;
32097fail:
32098 return NULL;
32099}
32100
32101
32102SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32103 PyObject *resultobj = 0;
32104 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32105 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32106 bool result;
32107 void *argp1 = 0 ;
32108 int res1 = 0 ;
32109 void *argp2 = 0 ;
32110 int res2 = 0 ;
32111 PyObject * obj0 = 0 ;
32112 PyObject * obj1 = 0 ;
32113 char * kwnames[] = {
32114 (char *) "self",(char *) "other", NULL
32115 };
32116
32117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32119 if (!SWIG_IsOK(res1)) {
32120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32121 }
32122 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32123 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32124 if (!SWIG_IsOK(res2)) {
32125 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32126 }
32127 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32128 {
32129 PyThreadState* __tstate = wxPyBeginAllowThreads();
32130 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32131 wxPyEndAllowThreads(__tstate);
32132 if (PyErr_Occurred()) SWIG_fail;
32133 }
32134 {
32135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32136 }
32137 return resultobj;
32138fail:
32139 return NULL;
d55e5bfc
RD
32140}
32141
32142
1bd55598
RD
32143SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32144 PyObject *resultobj = 0;
32145 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32146 void *arg2 = (void *) 0 ;
32147 void *argp1 = 0 ;
32148 int res1 = 0 ;
32149 int res2 ;
32150 PyObject *swig_obj[2] ;
32151
32152 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32154 if (!SWIG_IsOK(res1)) {
32155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32156 }
32157 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32158 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32159 if (!SWIG_IsOK(res2)) {
32160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32161 }
32162 if (arg1) (arg1)->m_pItem = arg2;
32163
32164 resultobj = SWIG_Py_Void();
32165 return resultobj;
32166fail:
32167 return NULL;
d55e5bfc
RD
32168}
32169
32170
1bd55598
RD
32171SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32172 PyObject *resultobj = 0;
32173 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32174 void *result = 0 ;
32175 void *argp1 = 0 ;
32176 int res1 = 0 ;
32177 PyObject *swig_obj[1] ;
32178
32179 if (!args) SWIG_fail;
32180 swig_obj[0] = args;
32181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32182 if (!SWIG_IsOK(res1)) {
32183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32184 }
32185 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32186 result = (void *) ((arg1)->m_pItem);
32187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32188 return resultobj;
32189fail:
32190 return NULL;
d55e5bfc
RD
32191}
32192
32193
1bd55598
RD
32194SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32195 PyObject *obj;
32196 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32197 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32198 return SWIG_Py_Void();
d55e5bfc
RD
32199}
32200
1bd55598
RD
32201SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32202 return SWIG_Python_InitShadowInstance(args);
32203}
d55e5bfc 32204
1bd55598
RD
32205SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32206 PyObject *resultobj = 0;
32207 PyObject *arg1 = (PyObject *) NULL ;
32208 wxPyTreeItemData *result = 0 ;
32209 PyObject * obj0 = 0 ;
32210 char * kwnames[] = {
32211 (char *) "obj", NULL
32212 };
32213
32214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32215 if (obj0) {
32216 arg1 = obj0;
32217 }
32218 {
32219 PyThreadState* __tstate = wxPyBeginAllowThreads();
32220 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32221 wxPyEndAllowThreads(__tstate);
32222 if (PyErr_Occurred()) SWIG_fail;
32223 }
32224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32225 return resultobj;
32226fail:
32227 return NULL;
d55e5bfc
RD
32228}
32229
32230
1bd55598
RD
32231SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32232 PyObject *resultobj = 0;
32233 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32234 void *argp1 = 0 ;
32235 int res1 = 0 ;
32236 PyObject *swig_obj[1] ;
32237
32238 if (!args) SWIG_fail;
32239 swig_obj[0] = args;
32240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32241 if (!SWIG_IsOK(res1)) {
32242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32243 }
32244 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32245 {
32246 PyThreadState* __tstate = wxPyBeginAllowThreads();
32247 delete arg1;
d55e5bfc 32248
1bd55598
RD
32249 wxPyEndAllowThreads(__tstate);
32250 if (PyErr_Occurred()) SWIG_fail;
32251 }
32252 resultobj = SWIG_Py_Void();
32253 return resultobj;
32254fail:
32255 return NULL;
d55e5bfc
RD
32256}
32257
32258
1bd55598
RD
32259SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32260 PyObject *resultobj = 0;
32261 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32262 PyObject *result = 0 ;
32263 void *argp1 = 0 ;
32264 int res1 = 0 ;
32265 PyObject *swig_obj[1] ;
32266
32267 if (!args) SWIG_fail;
32268 swig_obj[0] = args;
32269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32270 if (!SWIG_IsOK(res1)) {
32271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32272 }
32273 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32274 {
32275 PyThreadState* __tstate = wxPyBeginAllowThreads();
32276 result = (PyObject *)(arg1)->GetData();
32277 wxPyEndAllowThreads(__tstate);
32278 if (PyErr_Occurred()) SWIG_fail;
32279 }
32280 resultobj = result;
32281 return resultobj;
32282fail:
32283 return NULL;
32284}
32285
32286
32287SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32288 PyObject *resultobj = 0;
32289 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32290 PyObject *arg2 = (PyObject *) 0 ;
32291 void *argp1 = 0 ;
32292 int res1 = 0 ;
32293 PyObject * obj0 = 0 ;
32294 PyObject * obj1 = 0 ;
32295 char * kwnames[] = {
32296 (char *) "self",(char *) "obj", NULL
32297 };
32298
32299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32301 if (!SWIG_IsOK(res1)) {
32302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32303 }
32304 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32305 arg2 = obj1;
32306 {
32307 PyThreadState* __tstate = wxPyBeginAllowThreads();
32308 (arg1)->SetData(arg2);
32309 wxPyEndAllowThreads(__tstate);
32310 if (PyErr_Occurred()) SWIG_fail;
32311 }
32312 resultobj = SWIG_Py_Void();
32313 return resultobj;
32314fail:
32315 return NULL;
d55e5bfc
RD
32316}
32317
32318
1bd55598
RD
32319SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32320 PyObject *resultobj = 0;
32321 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32322 wxTreeItemId *result = 0 ;
32323 void *argp1 = 0 ;
32324 int res1 = 0 ;
32325 PyObject *swig_obj[1] ;
32326
32327 if (!args) SWIG_fail;
32328 swig_obj[0] = args;
32329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32330 if (!SWIG_IsOK(res1)) {
32331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32332 }
32333 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32334 {
32335 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 32336 {
1bd55598
RD
32337 wxTreeItemId const &_result_ref = (arg1)->GetId();
32338 result = (wxTreeItemId *) &_result_ref;
d55e5bfc 32339 }
1bd55598
RD
32340 wxPyEndAllowThreads(__tstate);
32341 if (PyErr_Occurred()) SWIG_fail;
32342 }
32343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32344 return resultobj;
32345fail:
32346 return NULL;
32347}
32348
32349
32350SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32351 PyObject *resultobj = 0;
32352 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32353 wxTreeItemId *arg2 = 0 ;
32354 void *argp1 = 0 ;
32355 int res1 = 0 ;
32356 void *argp2 = 0 ;
32357 int res2 = 0 ;
32358 PyObject * obj0 = 0 ;
32359 PyObject * obj1 = 0 ;
32360 char * kwnames[] = {
32361 (char *) "self",(char *) "id", NULL
32362 };
32363
32364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32366 if (!SWIG_IsOK(res1)) {
32367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32368 }
32369 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32370 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32371 if (!SWIG_IsOK(res2)) {
32372 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32373 }
32374 if (!argp2) {
32375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32376 }
32377 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32378 {
32379 PyThreadState* __tstate = wxPyBeginAllowThreads();
32380 (arg1)->SetId((wxTreeItemId const &)*arg2);
32381 wxPyEndAllowThreads(__tstate);
32382 if (PyErr_Occurred()) SWIG_fail;
32383 }
32384 resultobj = SWIG_Py_Void();
32385 return resultobj;
32386fail:
32387 return NULL;
d55e5bfc
RD
32388}
32389
32390
1bd55598
RD
32391SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32392 PyObject *resultobj = 0;
32393 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32394 void *argp1 = 0 ;
32395 int res1 = 0 ;
32396 PyObject *swig_obj[1] ;
32397
32398 if (!args) SWIG_fail;
32399 swig_obj[0] = args;
32400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32401 if (!SWIG_IsOK(res1)) {
32402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32403 }
32404 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32405 {
32406 PyThreadState* __tstate = wxPyBeginAllowThreads();
32407 wxPyTreeItemData_Destroy(arg1);
32408 wxPyEndAllowThreads(__tstate);
32409 if (PyErr_Occurred()) SWIG_fail;
32410 }
32411 resultobj = SWIG_Py_Void();
32412 return resultobj;
32413fail:
32414 return NULL;
d55e5bfc
RD
32415}
32416
32417
1bd55598
RD
32418SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32419 PyObject *obj;
32420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32421 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32422 return SWIG_Py_Void();
d55e5bfc
RD
32423}
32424
1bd55598
RD
32425SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32426 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
32427}
32428
1bd55598
RD
32429SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32430 PyObject *resultobj = 0;
32431 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32432 int arg2 = (int) 0 ;
32433 wxTreeEvent *result = 0 ;
32434 int val1 ;
32435 int ecode1 = 0 ;
32436 int val2 ;
32437 int ecode2 = 0 ;
32438 PyObject * obj0 = 0 ;
32439 PyObject * obj1 = 0 ;
32440 char * kwnames[] = {
32441 (char *) "commandType",(char *) "id", NULL
32442 };
32443
32444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32445 if (obj0) {
32446 ecode1 = SWIG_AsVal_int(obj0, &val1);
32447 if (!SWIG_IsOK(ecode1)) {
32448 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32449 }
32450 arg1 = static_cast< wxEventType >(val1);
32451 }
32452 if (obj1) {
32453 ecode2 = SWIG_AsVal_int(obj1, &val2);
32454 if (!SWIG_IsOK(ecode2)) {
32455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32456 }
32457 arg2 = static_cast< int >(val2);
32458 }
32459 {
32460 PyThreadState* __tstate = wxPyBeginAllowThreads();
32461 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32462 wxPyEndAllowThreads(__tstate);
32463 if (PyErr_Occurred()) SWIG_fail;
32464 }
32465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32466 return resultobj;
32467fail:
32468 return NULL;
d55e5bfc
RD
32469}
32470
32471
1bd55598
RD
32472SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32473 PyObject *resultobj = 0;
32474 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32475 wxTreeItemId result;
32476 void *argp1 = 0 ;
32477 int res1 = 0 ;
32478 PyObject *swig_obj[1] ;
32479
32480 if (!args) SWIG_fail;
32481 swig_obj[0] = args;
32482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32483 if (!SWIG_IsOK(res1)) {
32484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32485 }
32486 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32487 {
32488 PyThreadState* __tstate = wxPyBeginAllowThreads();
32489 result = ((wxTreeEvent const *)arg1)->GetItem();
32490 wxPyEndAllowThreads(__tstate);
32491 if (PyErr_Occurred()) SWIG_fail;
32492 }
32493 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32494 return resultobj;
32495fail:
32496 return NULL;
32497}
32498
32499
32500SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32501 PyObject *resultobj = 0;
32502 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32503 wxTreeItemId *arg2 = 0 ;
32504 void *argp1 = 0 ;
32505 int res1 = 0 ;
32506 void *argp2 = 0 ;
32507 int res2 = 0 ;
32508 PyObject * obj0 = 0 ;
32509 PyObject * obj1 = 0 ;
32510 char * kwnames[] = {
32511 (char *) "self",(char *) "item", NULL
32512 };
32513
32514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32516 if (!SWIG_IsOK(res1)) {
32517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32518 }
32519 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32520 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32521 if (!SWIG_IsOK(res2)) {
32522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32523 }
32524 if (!argp2) {
32525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32526 }
32527 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32528 {
32529 PyThreadState* __tstate = wxPyBeginAllowThreads();
32530 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32531 wxPyEndAllowThreads(__tstate);
32532 if (PyErr_Occurred()) SWIG_fail;
32533 }
32534 resultobj = SWIG_Py_Void();
32535 return resultobj;
32536fail:
32537 return NULL;
d55e5bfc
RD
32538}
32539
32540
1bd55598
RD
32541SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32542 PyObject *resultobj = 0;
32543 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32544 wxTreeItemId result;
32545 void *argp1 = 0 ;
32546 int res1 = 0 ;
32547 PyObject *swig_obj[1] ;
32548
32549 if (!args) SWIG_fail;
32550 swig_obj[0] = args;
32551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32552 if (!SWIG_IsOK(res1)) {
32553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32554 }
32555 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32556 {
32557 PyThreadState* __tstate = wxPyBeginAllowThreads();
32558 result = ((wxTreeEvent const *)arg1)->GetOldItem();
32559 wxPyEndAllowThreads(__tstate);
32560 if (PyErr_Occurred()) SWIG_fail;
32561 }
32562 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32563 return resultobj;
32564fail:
32565 return NULL;
32566}
32567
32568
32569SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32570 PyObject *resultobj = 0;
32571 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32572 wxTreeItemId *arg2 = 0 ;
32573 void *argp1 = 0 ;
32574 int res1 = 0 ;
32575 void *argp2 = 0 ;
32576 int res2 = 0 ;
32577 PyObject * obj0 = 0 ;
32578 PyObject * obj1 = 0 ;
32579 char * kwnames[] = {
32580 (char *) "self",(char *) "item", NULL
32581 };
32582
32583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
32584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32585 if (!SWIG_IsOK(res1)) {
32586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32587 }
32588 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32589 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32590 if (!SWIG_IsOK(res2)) {
32591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32592 }
32593 if (!argp2) {
32594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32595 }
32596 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32597 {
32598 PyThreadState* __tstate = wxPyBeginAllowThreads();
32599 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
32600 wxPyEndAllowThreads(__tstate);
32601 if (PyErr_Occurred()) SWIG_fail;
32602 }
32603 resultobj = SWIG_Py_Void();
32604 return resultobj;
32605fail:
32606 return NULL;
d55e5bfc
RD
32607}
32608
32609
1bd55598
RD
32610SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32611 PyObject *resultobj = 0;
32612 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32613 wxPoint result;
32614 void *argp1 = 0 ;
32615 int res1 = 0 ;
32616 PyObject *swig_obj[1] ;
32617
32618 if (!args) SWIG_fail;
32619 swig_obj[0] = args;
32620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32621 if (!SWIG_IsOK(res1)) {
32622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32623 }
32624 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32625 {
32626 PyThreadState* __tstate = wxPyBeginAllowThreads();
32627 result = ((wxTreeEvent const *)arg1)->GetPoint();
32628 wxPyEndAllowThreads(__tstate);
32629 if (PyErr_Occurred()) SWIG_fail;
32630 }
32631 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
32632 return resultobj;
32633fail:
32634 return NULL;
32635}
32636
32637
32638SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32639 PyObject *resultobj = 0;
32640 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32641 wxPoint *arg2 = 0 ;
32642 void *argp1 = 0 ;
32643 int res1 = 0 ;
32644 wxPoint temp2 ;
32645 PyObject * obj0 = 0 ;
32646 PyObject * obj1 = 0 ;
32647 char * kwnames[] = {
32648 (char *) "self",(char *) "pt", NULL
32649 };
32650
32651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32653 if (!SWIG_IsOK(res1)) {
32654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32655 }
32656 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32657 {
32658 arg2 = &temp2;
32659 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32660 }
32661 {
32662 PyThreadState* __tstate = wxPyBeginAllowThreads();
32663 (arg1)->SetPoint((wxPoint const &)*arg2);
32664 wxPyEndAllowThreads(__tstate);
32665 if (PyErr_Occurred()) SWIG_fail;
32666 }
32667 resultobj = SWIG_Py_Void();
32668 return resultobj;
32669fail:
32670 return NULL;
d55e5bfc
RD
32671}
32672
32673
1bd55598
RD
32674SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32675 PyObject *resultobj = 0;
32676 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32677 wxKeyEvent *result = 0 ;
32678 void *argp1 = 0 ;
32679 int res1 = 0 ;
32680 PyObject *swig_obj[1] ;
32681
32682 if (!args) SWIG_fail;
32683 swig_obj[0] = args;
32684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32685 if (!SWIG_IsOK(res1)) {
32686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32687 }
32688 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32689 {
32690 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 32691 {
1bd55598
RD
32692 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
32693 result = (wxKeyEvent *) &_result_ref;
d55e5bfc 32694 }
1bd55598
RD
32695 wxPyEndAllowThreads(__tstate);
32696 if (PyErr_Occurred()) SWIG_fail;
32697 }
32698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
32699 return resultobj;
32700fail:
32701 return NULL;
d55e5bfc
RD
32702}
32703
32704
1bd55598
RD
32705SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32706 PyObject *resultobj = 0;
32707 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32708 int result;
32709 void *argp1 = 0 ;
32710 int res1 = 0 ;
32711 PyObject *swig_obj[1] ;
32712
32713 if (!args) SWIG_fail;
32714 swig_obj[0] = args;
32715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32716 if (!SWIG_IsOK(res1)) {
32717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32718 }
32719 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32720 {
32721 PyThreadState* __tstate = wxPyBeginAllowThreads();
32722 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
32723 wxPyEndAllowThreads(__tstate);
32724 if (PyErr_Occurred()) SWIG_fail;
32725 }
32726 resultobj = SWIG_From_int(static_cast< int >(result));
32727 return resultobj;
32728fail:
32729 return NULL;
32730}
32731
32732
32733SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32734 PyObject *resultobj = 0;
32735 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32736 wxKeyEvent *arg2 = 0 ;
32737 void *argp1 = 0 ;
32738 int res1 = 0 ;
32739 void *argp2 = 0 ;
32740 int res2 = 0 ;
32741 PyObject * obj0 = 0 ;
32742 PyObject * obj1 = 0 ;
32743 char * kwnames[] = {
32744 (char *) "self",(char *) "evt", NULL
32745 };
32746
32747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32749 if (!SWIG_IsOK(res1)) {
32750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32751 }
32752 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32753 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
32754 if (!SWIG_IsOK(res2)) {
32755 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32756 }
32757 if (!argp2) {
32758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32759 }
32760 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
32761 {
32762 PyThreadState* __tstate = wxPyBeginAllowThreads();
32763 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
32764 wxPyEndAllowThreads(__tstate);
32765 if (PyErr_Occurred()) SWIG_fail;
32766 }
32767 resultobj = SWIG_Py_Void();
32768 return resultobj;
32769fail:
32770 return NULL;
d55e5bfc
RD
32771}
32772
32773
1bd55598
RD
32774SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32775 PyObject *resultobj = 0;
32776 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32777 wxString *result = 0 ;
32778 void *argp1 = 0 ;
32779 int res1 = 0 ;
32780 PyObject *swig_obj[1] ;
32781
32782 if (!args) SWIG_fail;
32783 swig_obj[0] = args;
32784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32785 if (!SWIG_IsOK(res1)) {
32786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32787 }
32788 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32789 {
32790 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 32791 {
1bd55598
RD
32792 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
32793 result = (wxString *) &_result_ref;
d55e5bfc 32794 }
1bd55598
RD
32795 wxPyEndAllowThreads(__tstate);
32796 if (PyErr_Occurred()) SWIG_fail;
32797 }
32798 {
32799#if wxUSE_UNICODE
32800 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32801#else
32802 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32803#endif
32804 }
32805 return resultobj;
32806fail:
32807 return NULL;
32808}
32809
32810
32811SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32812 PyObject *resultobj = 0;
32813 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32814 wxString *arg2 = 0 ;
32815 void *argp1 = 0 ;
32816 int res1 = 0 ;
32817 bool temp2 = false ;
32818 PyObject * obj0 = 0 ;
32819 PyObject * obj1 = 0 ;
32820 char * kwnames[] = {
32821 (char *) "self",(char *) "label", NULL
32822 };
32823
32824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
32825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32826 if (!SWIG_IsOK(res1)) {
32827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32828 }
32829 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32830 {
32831 arg2 = wxString_in_helper(obj1);
32832 if (arg2 == NULL) SWIG_fail;
32833 temp2 = true;
32834 }
32835 {
32836 PyThreadState* __tstate = wxPyBeginAllowThreads();
32837 (arg1)->SetLabel((wxString const &)*arg2);
32838 wxPyEndAllowThreads(__tstate);
32839 if (PyErr_Occurred()) SWIG_fail;
32840 }
32841 resultobj = SWIG_Py_Void();
32842 {
32843 if (temp2)
32844 delete arg2;
32845 }
32846 return resultobj;
32847fail:
32848 {
32849 if (temp2)
32850 delete arg2;
32851 }
32852 return NULL;
d55e5bfc
RD
32853}
32854
32855
1bd55598
RD
32856SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32857 PyObject *resultobj = 0;
32858 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32859 bool result;
32860 void *argp1 = 0 ;
32861 int res1 = 0 ;
32862 PyObject *swig_obj[1] ;
32863
32864 if (!args) SWIG_fail;
32865 swig_obj[0] = args;
32866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32867 if (!SWIG_IsOK(res1)) {
32868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32869 }
32870 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32871 {
32872 PyThreadState* __tstate = wxPyBeginAllowThreads();
32873 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
32874 wxPyEndAllowThreads(__tstate);
32875 if (PyErr_Occurred()) SWIG_fail;
32876 }
32877 {
32878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32879 }
32880 return resultobj;
32881fail:
32882 return NULL;
32883}
32884
32885
32886SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32887 PyObject *resultobj = 0;
32888 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32889 bool arg2 ;
32890 void *argp1 = 0 ;
32891 int res1 = 0 ;
32892 bool val2 ;
32893 int ecode2 = 0 ;
32894 PyObject * obj0 = 0 ;
32895 PyObject * obj1 = 0 ;
32896 char * kwnames[] = {
32897 (char *) "self",(char *) "editCancelled", NULL
32898 };
32899
32900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
32901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32902 if (!SWIG_IsOK(res1)) {
32903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32904 }
32905 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32906 ecode2 = SWIG_AsVal_bool(obj1, &val2);
32907 if (!SWIG_IsOK(ecode2)) {
32908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
32909 }
32910 arg2 = static_cast< bool >(val2);
32911 {
32912 PyThreadState* __tstate = wxPyBeginAllowThreads();
32913 (arg1)->SetEditCanceled(arg2);
32914 wxPyEndAllowThreads(__tstate);
32915 if (PyErr_Occurred()) SWIG_fail;
32916 }
32917 resultobj = SWIG_Py_Void();
32918 return resultobj;
32919fail:
32920 return NULL;
32921}
32922
32923
32924SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32925 PyObject *resultobj = 0;
32926 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32927 wxString *arg2 = 0 ;
32928 void *argp1 = 0 ;
32929 int res1 = 0 ;
32930 bool temp2 = false ;
32931 PyObject * obj0 = 0 ;
32932 PyObject * obj1 = 0 ;
32933 char * kwnames[] = {
32934 (char *) "self",(char *) "toolTip", NULL
32935 };
32936
32937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
32938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32939 if (!SWIG_IsOK(res1)) {
32940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32941 }
32942 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32943 {
32944 arg2 = wxString_in_helper(obj1);
32945 if (arg2 == NULL) SWIG_fail;
32946 temp2 = true;
32947 }
32948 {
32949 PyThreadState* __tstate = wxPyBeginAllowThreads();
32950 (arg1)->SetToolTip((wxString const &)*arg2);
32951 wxPyEndAllowThreads(__tstate);
32952 if (PyErr_Occurred()) SWIG_fail;
32953 }
32954 resultobj = SWIG_Py_Void();
32955 {
32956 if (temp2)
32957 delete arg2;
32958 }
32959 return resultobj;
32960fail:
32961 {
32962 if (temp2)
32963 delete arg2;
32964 }
32965 return NULL;
d55e5bfc
RD
32966}
32967
32968
1bd55598
RD
32969SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32970 PyObject *resultobj = 0;
32971 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32972 wxString result;
32973 void *argp1 = 0 ;
32974 int res1 = 0 ;
32975 PyObject *swig_obj[1] ;
32976
32977 if (!args) SWIG_fail;
32978 swig_obj[0] = args;
32979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32980 if (!SWIG_IsOK(res1)) {
32981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32982 }
32983 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32984 {
32985 PyThreadState* __tstate = wxPyBeginAllowThreads();
32986 result = (arg1)->GetToolTip();
32987 wxPyEndAllowThreads(__tstate);
32988 if (PyErr_Occurred()) SWIG_fail;
32989 }
32990 {
32991#if wxUSE_UNICODE
32992 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32993#else
32994 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32995#endif
32996 }
32997 return resultobj;
32998fail:
32999 return NULL;
33000}
33001
33002
33003SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33004 PyObject *obj;
33005 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33006 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33007 return SWIG_Py_Void();
33008}
33009
33010SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33011 return SWIG_Python_InitShadowInstance(args);
33012}
33013
33014SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33015 PyObject *resultobj = 0;
33016 wxWindow *arg1 = (wxWindow *) 0 ;
33017 int arg2 = (int) -1 ;
33018 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33019 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33020 wxSize const &arg4_defvalue = wxDefaultSize ;
33021 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33022 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33023 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33024 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33025 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33026 wxString *arg7 = (wxString *) &arg7_defvalue ;
33027 wxPyTreeCtrl *result = 0 ;
33028 void *argp1 = 0 ;
33029 int res1 = 0 ;
33030 int val2 ;
33031 int ecode2 = 0 ;
33032 wxPoint temp3 ;
33033 wxSize temp4 ;
33034 long val5 ;
33035 int ecode5 = 0 ;
33036 void *argp6 = 0 ;
33037 int res6 = 0 ;
33038 bool temp7 = false ;
33039 PyObject * obj0 = 0 ;
33040 PyObject * obj1 = 0 ;
33041 PyObject * obj2 = 0 ;
33042 PyObject * obj3 = 0 ;
33043 PyObject * obj4 = 0 ;
33044 PyObject * obj5 = 0 ;
33045 PyObject * obj6 = 0 ;
33046 char * kwnames[] = {
33047 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33048 };
33049
33050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33052 if (!SWIG_IsOK(res1)) {
33053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33054 }
33055 arg1 = reinterpret_cast< wxWindow * >(argp1);
33056 if (obj1) {
33057 ecode2 = SWIG_AsVal_int(obj1, &val2);
33058 if (!SWIG_IsOK(ecode2)) {
33059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33060 }
33061 arg2 = static_cast< int >(val2);
33062 }
33063 if (obj2) {
d55e5bfc 33064 {
1bd55598
RD
33065 arg3 = &temp3;
33066 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 33067 }
1bd55598
RD
33068 }
33069 if (obj3) {
36ed4f51 33070 {
1bd55598
RD
33071 arg4 = &temp4;
33072 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33073 }
1bd55598
RD
33074 }
33075 if (obj4) {
33076 ecode5 = SWIG_AsVal_long(obj4, &val5);
33077 if (!SWIG_IsOK(ecode5)) {
33078 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33079 }
33080 arg5 = static_cast< long >(val5);
33081 }
33082 if (obj5) {
33083 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33084 if (!SWIG_IsOK(res6)) {
33085 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33086 }
1bd55598
RD
33087 if (!argp6) {
33088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33089 }
1bd55598
RD
33090 arg6 = reinterpret_cast< wxValidator * >(argp6);
33091 }
33092 if (obj6) {
d55e5bfc 33093 {
1bd55598
RD
33094 arg7 = wxString_in_helper(obj6);
33095 if (arg7 == NULL) SWIG_fail;
33096 temp7 = true;
d55e5bfc 33097 }
1bd55598
RD
33098 }
33099 {
33100 if (!wxPyCheckForApp()) SWIG_fail;
33101 PyThreadState* __tstate = wxPyBeginAllowThreads();
33102 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33103 wxPyEndAllowThreads(__tstate);
33104 if (PyErr_Occurred()) SWIG_fail;
33105 }
33106 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33107 {
33108 if (temp7)
33109 delete arg7;
33110 }
33111 return resultobj;
33112fail:
33113 {
33114 if (temp7)
33115 delete arg7;
33116 }
33117 return NULL;
33118}
33119
33120
33121SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33122 PyObject *resultobj = 0;
33123 wxPyTreeCtrl *result = 0 ;
33124
33125 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33126 {
33127 if (!wxPyCheckForApp()) SWIG_fail;
33128 PyThreadState* __tstate = wxPyBeginAllowThreads();
33129 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33130 wxPyEndAllowThreads(__tstate);
33131 if (PyErr_Occurred()) SWIG_fail;
33132 }
33133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33134 return resultobj;
33135fail:
33136 return NULL;
33137}
33138
33139
33140SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33141 PyObject *resultobj = 0;
33142 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33143 wxWindow *arg2 = (wxWindow *) 0 ;
33144 int arg3 = (int) -1 ;
33145 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33146 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33147 wxSize const &arg5_defvalue = wxDefaultSize ;
33148 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33149 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33150 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33151 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33152 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33153 wxString *arg8 = (wxString *) &arg8_defvalue ;
33154 bool result;
33155 void *argp1 = 0 ;
33156 int res1 = 0 ;
33157 void *argp2 = 0 ;
33158 int res2 = 0 ;
33159 int val3 ;
33160 int ecode3 = 0 ;
33161 wxPoint temp4 ;
33162 wxSize temp5 ;
33163 long val6 ;
33164 int ecode6 = 0 ;
33165 void *argp7 = 0 ;
33166 int res7 = 0 ;
33167 bool temp8 = false ;
33168 PyObject * obj0 = 0 ;
33169 PyObject * obj1 = 0 ;
33170 PyObject * obj2 = 0 ;
33171 PyObject * obj3 = 0 ;
33172 PyObject * obj4 = 0 ;
33173 PyObject * obj5 = 0 ;
33174 PyObject * obj6 = 0 ;
33175 PyObject * obj7 = 0 ;
33176 char * kwnames[] = {
33177 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33178 };
33179
33180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33182 if (!SWIG_IsOK(res1)) {
33183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33184 }
33185 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33186 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33187 if (!SWIG_IsOK(res2)) {
33188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33189 }
33190 arg2 = reinterpret_cast< wxWindow * >(argp2);
33191 if (obj2) {
33192 ecode3 = SWIG_AsVal_int(obj2, &val3);
33193 if (!SWIG_IsOK(ecode3)) {
33194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33195 }
33196 arg3 = static_cast< int >(val3);
33197 }
33198 if (obj3) {
d55e5bfc 33199 {
1bd55598
RD
33200 arg4 = &temp4;
33201 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33202 }
1bd55598
RD
33203 }
33204 if (obj4) {
d55e5bfc 33205 {
1bd55598
RD
33206 arg5 = &temp5;
33207 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 33208 }
1bd55598
RD
33209 }
33210 if (obj5) {
33211 ecode6 = SWIG_AsVal_long(obj5, &val6);
33212 if (!SWIG_IsOK(ecode6)) {
33213 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33214 }
33215 arg6 = static_cast< long >(val6);
33216 }
33217 if (obj6) {
33218 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33219 if (!SWIG_IsOK(res7)) {
33220 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33221 }
1bd55598
RD
33222 if (!argp7) {
33223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33224 }
1bd55598
RD
33225 arg7 = reinterpret_cast< wxValidator * >(argp7);
33226 }
33227 if (obj7) {
d55e5bfc 33228 {
1bd55598
RD
33229 arg8 = wxString_in_helper(obj7);
33230 if (arg8 == NULL) SWIG_fail;
33231 temp8 = true;
d55e5bfc 33232 }
1bd55598
RD
33233 }
33234 {
33235 PyThreadState* __tstate = wxPyBeginAllowThreads();
33236 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33237 wxPyEndAllowThreads(__tstate);
33238 if (PyErr_Occurred()) SWIG_fail;
33239 }
33240 {
33241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33242 }
33243 {
33244 if (temp8)
33245 delete arg8;
33246 }
33247 return resultobj;
33248fail:
33249 {
33250 if (temp8)
33251 delete arg8;
33252 }
33253 return NULL;
33254}
33255
33256
33257SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33258 PyObject *resultobj = 0;
33259 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33260 PyObject *arg2 = (PyObject *) 0 ;
33261 PyObject *arg3 = (PyObject *) 0 ;
33262 void *argp1 = 0 ;
33263 int res1 = 0 ;
33264 PyObject * obj0 = 0 ;
33265 PyObject * obj1 = 0 ;
33266 PyObject * obj2 = 0 ;
33267 char * kwnames[] = {
33268 (char *) "self",(char *) "self",(char *) "_class", NULL
33269 };
33270
33271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33273 if (!SWIG_IsOK(res1)) {
33274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33275 }
33276 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33277 arg2 = obj1;
33278 arg3 = obj2;
33279 {
33280 PyThreadState* __tstate = wxPyBeginAllowThreads();
33281 (arg1)->_setCallbackInfo(arg2,arg3);
33282 wxPyEndAllowThreads(__tstate);
33283 if (PyErr_Occurred()) SWIG_fail;
33284 }
33285 resultobj = SWIG_Py_Void();
33286 return resultobj;
33287fail:
33288 return NULL;
d55e5bfc
RD
33289}
33290
33291
1bd55598
RD
33292SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33293 PyObject *resultobj = 0;
33294 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 33295 unsigned int result;
1bd55598
RD
33296 void *argp1 = 0 ;
33297 int res1 = 0 ;
33298 PyObject *swig_obj[1] ;
33299
33300 if (!args) SWIG_fail;
33301 swig_obj[0] = args;
33302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33303 if (!SWIG_IsOK(res1)) {
33304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33305 }
33306 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33307 {
33308 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 33309 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
1bd55598
RD
33310 wxPyEndAllowThreads(__tstate);
33311 if (PyErr_Occurred()) SWIG_fail;
33312 }
e9d6f3a4 33313 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
33314 return resultobj;
33315fail:
33316 return NULL;
d55e5bfc
RD
33317}
33318
33319
1bd55598
RD
33320SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33321 PyObject *resultobj = 0;
33322 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33323 unsigned int result;
33324 void *argp1 = 0 ;
33325 int res1 = 0 ;
33326 PyObject *swig_obj[1] ;
33327
33328 if (!args) SWIG_fail;
33329 swig_obj[0] = args;
33330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33331 if (!SWIG_IsOK(res1)) {
33332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33333 }
33334 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33335 {
33336 PyThreadState* __tstate = wxPyBeginAllowThreads();
33337 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33338 wxPyEndAllowThreads(__tstate);
33339 if (PyErr_Occurred()) SWIG_fail;
33340 }
33341 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33342 return resultobj;
33343fail:
33344 return NULL;
33345}
33346
33347
33348SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33349 PyObject *resultobj = 0;
33350 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33351 unsigned int arg2 ;
33352 void *argp1 = 0 ;
33353 int res1 = 0 ;
33354 unsigned int val2 ;
33355 int ecode2 = 0 ;
33356 PyObject * obj0 = 0 ;
33357 PyObject * obj1 = 0 ;
33358 char * kwnames[] = {
33359 (char *) "self",(char *) "indent", NULL
33360 };
33361
33362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33364 if (!SWIG_IsOK(res1)) {
33365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33366 }
33367 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33368 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33369 if (!SWIG_IsOK(ecode2)) {
33370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33371 }
33372 arg2 = static_cast< unsigned int >(val2);
33373 {
33374 PyThreadState* __tstate = wxPyBeginAllowThreads();
33375 (arg1)->SetIndent(arg2);
33376 wxPyEndAllowThreads(__tstate);
33377 if (PyErr_Occurred()) SWIG_fail;
33378 }
33379 resultobj = SWIG_Py_Void();
33380 return resultobj;
33381fail:
33382 return NULL;
d55e5bfc
RD
33383}
33384
33385
1bd55598
RD
33386SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33387 PyObject *resultobj = 0;
33388 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33389 unsigned int result;
33390 void *argp1 = 0 ;
33391 int res1 = 0 ;
33392 PyObject *swig_obj[1] ;
33393
33394 if (!args) SWIG_fail;
33395 swig_obj[0] = args;
33396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33397 if (!SWIG_IsOK(res1)) {
33398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33399 }
33400 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33401 {
33402 PyThreadState* __tstate = wxPyBeginAllowThreads();
33403 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33404 wxPyEndAllowThreads(__tstate);
33405 if (PyErr_Occurred()) SWIG_fail;
33406 }
33407 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33408 return resultobj;
33409fail:
33410 return NULL;
33411}
33412
33413
33414SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33415 PyObject *resultobj = 0;
33416 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33417 unsigned int arg2 ;
33418 void *argp1 = 0 ;
33419 int res1 = 0 ;
33420 unsigned int val2 ;
33421 int ecode2 = 0 ;
33422 PyObject * obj0 = 0 ;
33423 PyObject * obj1 = 0 ;
33424 char * kwnames[] = {
33425 (char *) "self",(char *) "spacing", NULL
33426 };
33427
33428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33430 if (!SWIG_IsOK(res1)) {
33431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33432 }
33433 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33434 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33435 if (!SWIG_IsOK(ecode2)) {
33436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33437 }
33438 arg2 = static_cast< unsigned int >(val2);
33439 {
33440 PyThreadState* __tstate = wxPyBeginAllowThreads();
33441 (arg1)->SetSpacing(arg2);
33442 wxPyEndAllowThreads(__tstate);
33443 if (PyErr_Occurred()) SWIG_fail;
33444 }
33445 resultobj = SWIG_Py_Void();
33446 return resultobj;
33447fail:
33448 return NULL;
d55e5bfc
RD
33449}
33450
33451
1bd55598
RD
33452SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33453 PyObject *resultobj = 0;
33454 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33455 wxImageList *result = 0 ;
33456 void *argp1 = 0 ;
33457 int res1 = 0 ;
33458 PyObject *swig_obj[1] ;
33459
33460 if (!args) SWIG_fail;
33461 swig_obj[0] = args;
33462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33463 if (!SWIG_IsOK(res1)) {
33464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33465 }
33466 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33467 {
33468 PyThreadState* __tstate = wxPyBeginAllowThreads();
33469 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33470 wxPyEndAllowThreads(__tstate);
33471 if (PyErr_Occurred()) SWIG_fail;
33472 }
33473 {
33474 resultobj = wxPyMake_wxObject(result, (bool)0);
33475 }
33476 return resultobj;
33477fail:
33478 return NULL;
d55e5bfc
RD
33479}
33480
33481
1bd55598
RD
33482SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33483 PyObject *resultobj = 0;
33484 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33485 wxImageList *result = 0 ;
33486 void *argp1 = 0 ;
33487 int res1 = 0 ;
33488 PyObject *swig_obj[1] ;
33489
33490 if (!args) SWIG_fail;
33491 swig_obj[0] = args;
33492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33493 if (!SWIG_IsOK(res1)) {
33494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33495 }
33496 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33497 {
33498 PyThreadState* __tstate = wxPyBeginAllowThreads();
33499 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33500 wxPyEndAllowThreads(__tstate);
33501 if (PyErr_Occurred()) SWIG_fail;
33502 }
33503 {
33504 resultobj = wxPyMake_wxObject(result, (bool)0);
33505 }
33506 return resultobj;
33507fail:
33508 return NULL;
33509}
33510
33511
33512SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33513 PyObject *resultobj = 0;
33514 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33515 wxImageList *arg2 = (wxImageList *) 0 ;
33516 void *argp1 = 0 ;
33517 int res1 = 0 ;
33518 void *argp2 = 0 ;
33519 int res2 = 0 ;
33520 PyObject * obj0 = 0 ;
33521 PyObject * obj1 = 0 ;
33522 char * kwnames[] = {
33523 (char *) "self",(char *) "imageList", NULL
33524 };
33525
33526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33528 if (!SWIG_IsOK(res1)) {
33529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33530 }
33531 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33532 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33533 if (!SWIG_IsOK(res2)) {
33534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33535 }
33536 arg2 = reinterpret_cast< wxImageList * >(argp2);
33537 {
33538 PyThreadState* __tstate = wxPyBeginAllowThreads();
33539 (arg1)->SetImageList(arg2);
33540 wxPyEndAllowThreads(__tstate);
33541 if (PyErr_Occurred()) SWIG_fail;
33542 }
33543 resultobj = SWIG_Py_Void();
33544 return resultobj;
33545fail:
33546 return NULL;
33547}
33548
33549
33550SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33551 PyObject *resultobj = 0;
33552 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33553 wxImageList *arg2 = (wxImageList *) 0 ;
33554 void *argp1 = 0 ;
33555 int res1 = 0 ;
33556 void *argp2 = 0 ;
33557 int res2 = 0 ;
33558 PyObject * obj0 = 0 ;
33559 PyObject * obj1 = 0 ;
33560 char * kwnames[] = {
33561 (char *) "self",(char *) "imageList", NULL
33562 };
33563
33564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33566 if (!SWIG_IsOK(res1)) {
33567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33568 }
33569 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33570 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33571 if (!SWIG_IsOK(res2)) {
33572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33573 }
33574 arg2 = reinterpret_cast< wxImageList * >(argp2);
33575 {
33576 PyThreadState* __tstate = wxPyBeginAllowThreads();
33577 (arg1)->SetStateImageList(arg2);
33578 wxPyEndAllowThreads(__tstate);
33579 if (PyErr_Occurred()) SWIG_fail;
33580 }
33581 resultobj = SWIG_Py_Void();
33582 return resultobj;
33583fail:
33584 return NULL;
33585}
33586
33587
33588SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33589 PyObject *resultobj = 0;
33590 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33591 wxImageList *arg2 = (wxImageList *) 0 ;
33592 void *argp1 = 0 ;
33593 int res1 = 0 ;
33594 int res2 = 0 ;
33595 PyObject * obj0 = 0 ;
33596 PyObject * obj1 = 0 ;
33597 char * kwnames[] = {
33598 (char *) "self",(char *) "imageList", NULL
33599 };
33600
33601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33603 if (!SWIG_IsOK(res1)) {
33604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33605 }
33606 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33607 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33608 if (!SWIG_IsOK(res2)) {
33609 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33610 }
33611 {
33612 PyThreadState* __tstate = wxPyBeginAllowThreads();
33613 (arg1)->AssignImageList(arg2);
33614 wxPyEndAllowThreads(__tstate);
33615 if (PyErr_Occurred()) SWIG_fail;
33616 }
33617 resultobj = SWIG_Py_Void();
33618 return resultobj;
33619fail:
33620 return NULL;
33621}
33622
33623
33624SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33625 PyObject *resultobj = 0;
33626 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33627 wxImageList *arg2 = (wxImageList *) 0 ;
33628 void *argp1 = 0 ;
33629 int res1 = 0 ;
33630 int res2 = 0 ;
33631 PyObject * obj0 = 0 ;
33632 PyObject * obj1 = 0 ;
33633 char * kwnames[] = {
33634 (char *) "self",(char *) "imageList", NULL
33635 };
33636
33637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33639 if (!SWIG_IsOK(res1)) {
33640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33641 }
33642 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33643 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33644 if (!SWIG_IsOK(res2)) {
33645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33646 }
33647 {
33648 PyThreadState* __tstate = wxPyBeginAllowThreads();
33649 (arg1)->AssignStateImageList(arg2);
33650 wxPyEndAllowThreads(__tstate);
33651 if (PyErr_Occurred()) SWIG_fail;
33652 }
33653 resultobj = SWIG_Py_Void();
33654 return resultobj;
33655fail:
33656 return NULL;
33657}
33658
33659
33660SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33661 PyObject *resultobj = 0;
33662 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33663 wxTreeItemId *arg2 = 0 ;
33664 wxString result;
33665 void *argp1 = 0 ;
33666 int res1 = 0 ;
33667 void *argp2 = 0 ;
33668 int res2 = 0 ;
33669 PyObject * obj0 = 0 ;
33670 PyObject * obj1 = 0 ;
33671 char * kwnames[] = {
33672 (char *) "self",(char *) "item", NULL
33673 };
33674
33675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
33676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33677 if (!SWIG_IsOK(res1)) {
33678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33679 }
33680 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33681 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33682 if (!SWIG_IsOK(res2)) {
33683 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33684 }
33685 if (!argp2) {
33686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33687 }
33688 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33689 {
33690 PyThreadState* __tstate = wxPyBeginAllowThreads();
33691 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
33692 wxPyEndAllowThreads(__tstate);
33693 if (PyErr_Occurred()) SWIG_fail;
33694 }
33695 {
33696#if wxUSE_UNICODE
33697 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33698#else
33699 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33700#endif
33701 }
33702 return resultobj;
33703fail:
33704 return NULL;
33705}
33706
33707
33708SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33709 PyObject *resultobj = 0;
33710 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33711 wxTreeItemId *arg2 = 0 ;
33712 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33713 int result;
33714 void *argp1 = 0 ;
33715 int res1 = 0 ;
33716 void *argp2 = 0 ;
33717 int res2 = 0 ;
33718 int val3 ;
33719 int ecode3 = 0 ;
33720 PyObject * obj0 = 0 ;
33721 PyObject * obj1 = 0 ;
33722 PyObject * obj2 = 0 ;
33723 char * kwnames[] = {
33724 (char *) "self",(char *) "item",(char *) "which", NULL
33725 };
33726
33727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33729 if (!SWIG_IsOK(res1)) {
33730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33731 }
33732 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33733 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33734 if (!SWIG_IsOK(res2)) {
33735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33736 }
33737 if (!argp2) {
33738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33739 }
33740 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33741 if (obj2) {
33742 ecode3 = SWIG_AsVal_int(obj2, &val3);
33743 if (!SWIG_IsOK(ecode3)) {
33744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
33745 }
33746 arg3 = static_cast< wxTreeItemIcon >(val3);
33747 }
33748 {
33749 PyThreadState* __tstate = wxPyBeginAllowThreads();
33750 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
33751 wxPyEndAllowThreads(__tstate);
33752 if (PyErr_Occurred()) SWIG_fail;
33753 }
33754 resultobj = SWIG_From_int(static_cast< int >(result));
33755 return resultobj;
33756fail:
33757 return NULL;
33758}
33759
33760
33761SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33762 PyObject *resultobj = 0;
33763 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33764 wxTreeItemId *arg2 = 0 ;
33765 wxPyTreeItemData *result = 0 ;
33766 void *argp1 = 0 ;
33767 int res1 = 0 ;
33768 void *argp2 = 0 ;
33769 int res2 = 0 ;
33770 PyObject * obj0 = 0 ;
33771 PyObject * obj1 = 0 ;
33772 char * kwnames[] = {
33773 (char *) "self",(char *) "item", NULL
33774 };
33775
33776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
33777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33778 if (!SWIG_IsOK(res1)) {
33779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33780 }
33781 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33783 if (!SWIG_IsOK(res2)) {
33784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33785 }
33786 if (!argp2) {
33787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33788 }
33789 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33790 {
33791 PyThreadState* __tstate = wxPyBeginAllowThreads();
33792 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
33793 wxPyEndAllowThreads(__tstate);
33794 if (PyErr_Occurred()) SWIG_fail;
33795 }
33796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33797 return resultobj;
33798fail:
33799 return NULL;
33800}
33801
33802
33803SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33804 PyObject *resultobj = 0;
33805 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33806 wxTreeItemId *arg2 = 0 ;
33807 PyObject *result = 0 ;
33808 void *argp1 = 0 ;
33809 int res1 = 0 ;
33810 void *argp2 = 0 ;
33811 int res2 = 0 ;
33812 PyObject * obj0 = 0 ;
33813 PyObject * obj1 = 0 ;
33814 char * kwnames[] = {
33815 (char *) "self",(char *) "item", NULL
33816 };
33817
33818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
33819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33820 if (!SWIG_IsOK(res1)) {
33821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33822 }
33823 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33824 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33825 if (!SWIG_IsOK(res2)) {
33826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33827 }
33828 if (!argp2) {
33829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33830 }
33831 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33832 {
33833 PyThreadState* __tstate = wxPyBeginAllowThreads();
33834 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
33835 wxPyEndAllowThreads(__tstate);
33836 if (PyErr_Occurred()) SWIG_fail;
33837 }
33838 resultobj = result;
33839 return resultobj;
33840fail:
33841 return NULL;
33842}
33843
33844
33845SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33846 PyObject *resultobj = 0;
33847 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33848 wxTreeItemId *arg2 = 0 ;
33849 wxColour result;
33850 void *argp1 = 0 ;
33851 int res1 = 0 ;
33852 void *argp2 = 0 ;
33853 int res2 = 0 ;
33854 PyObject * obj0 = 0 ;
33855 PyObject * obj1 = 0 ;
33856 char * kwnames[] = {
33857 (char *) "self",(char *) "item", NULL
33858 };
33859
33860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
33861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33862 if (!SWIG_IsOK(res1)) {
33863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33864 }
33865 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33866 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33867 if (!SWIG_IsOK(res2)) {
33868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33869 }
33870 if (!argp2) {
33871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33872 }
33873 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33874 {
33875 PyThreadState* __tstate = wxPyBeginAllowThreads();
33876 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
33877 wxPyEndAllowThreads(__tstate);
33878 if (PyErr_Occurred()) SWIG_fail;
33879 }
33880 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33881 return resultobj;
33882fail:
33883 return NULL;
33884}
33885
33886
33887SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33888 PyObject *resultobj = 0;
33889 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33890 wxTreeItemId *arg2 = 0 ;
33891 wxColour result;
33892 void *argp1 = 0 ;
33893 int res1 = 0 ;
33894 void *argp2 = 0 ;
33895 int res2 = 0 ;
33896 PyObject * obj0 = 0 ;
33897 PyObject * obj1 = 0 ;
33898 char * kwnames[] = {
33899 (char *) "self",(char *) "item", NULL
33900 };
33901
33902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
33903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33904 if (!SWIG_IsOK(res1)) {
33905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33906 }
33907 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33908 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33909 if (!SWIG_IsOK(res2)) {
33910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33911 }
33912 if (!argp2) {
33913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33914 }
33915 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33916 {
33917 PyThreadState* __tstate = wxPyBeginAllowThreads();
33918 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
33919 wxPyEndAllowThreads(__tstate);
33920 if (PyErr_Occurred()) SWIG_fail;
33921 }
33922 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33923 return resultobj;
33924fail:
33925 return NULL;
33926}
33927
33928
33929SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33930 PyObject *resultobj = 0;
33931 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33932 wxTreeItemId *arg2 = 0 ;
33933 wxFont result;
33934 void *argp1 = 0 ;
33935 int res1 = 0 ;
33936 void *argp2 = 0 ;
33937 int res2 = 0 ;
33938 PyObject * obj0 = 0 ;
33939 PyObject * obj1 = 0 ;
33940 char * kwnames[] = {
33941 (char *) "self",(char *) "item", NULL
33942 };
33943
33944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
33945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33946 if (!SWIG_IsOK(res1)) {
33947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33948 }
33949 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33950 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33951 if (!SWIG_IsOK(res2)) {
33952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33953 }
33954 if (!argp2) {
33955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33956 }
33957 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33958 {
33959 PyThreadState* __tstate = wxPyBeginAllowThreads();
33960 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
33961 wxPyEndAllowThreads(__tstate);
33962 if (PyErr_Occurred()) SWIG_fail;
33963 }
33964 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
33965 return resultobj;
33966fail:
33967 return NULL;
33968}
33969
33970
33971SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33972 PyObject *resultobj = 0;
33973 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33974 wxTreeItemId *arg2 = 0 ;
33975 wxString *arg3 = 0 ;
33976 void *argp1 = 0 ;
33977 int res1 = 0 ;
33978 void *argp2 = 0 ;
33979 int res2 = 0 ;
33980 bool temp3 = false ;
33981 PyObject * obj0 = 0 ;
33982 PyObject * obj1 = 0 ;
33983 PyObject * obj2 = 0 ;
33984 char * kwnames[] = {
33985 (char *) "self",(char *) "item",(char *) "text", NULL
33986 };
33987
33988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33990 if (!SWIG_IsOK(res1)) {
33991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33992 }
33993 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33994 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33995 if (!SWIG_IsOK(res2)) {
33996 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33997 }
33998 if (!argp2) {
33999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34000 }
34001 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34002 {
34003 arg3 = wxString_in_helper(obj2);
34004 if (arg3 == NULL) SWIG_fail;
34005 temp3 = true;
34006 }
34007 {
34008 PyThreadState* __tstate = wxPyBeginAllowThreads();
34009 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34010 wxPyEndAllowThreads(__tstate);
34011 if (PyErr_Occurred()) SWIG_fail;
34012 }
34013 resultobj = SWIG_Py_Void();
34014 {
34015 if (temp3)
34016 delete arg3;
34017 }
34018 return resultobj;
34019fail:
34020 {
34021 if (temp3)
34022 delete arg3;
34023 }
34024 return NULL;
34025}
34026
34027
34028SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34029 PyObject *resultobj = 0;
34030 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34031 wxTreeItemId *arg2 = 0 ;
34032 int arg3 ;
34033 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34034 void *argp1 = 0 ;
34035 int res1 = 0 ;
34036 void *argp2 = 0 ;
34037 int res2 = 0 ;
34038 int val3 ;
34039 int ecode3 = 0 ;
34040 int val4 ;
34041 int ecode4 = 0 ;
34042 PyObject * obj0 = 0 ;
34043 PyObject * obj1 = 0 ;
34044 PyObject * obj2 = 0 ;
34045 PyObject * obj3 = 0 ;
34046 char * kwnames[] = {
34047 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34048 };
34049
34050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34052 if (!SWIG_IsOK(res1)) {
34053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34054 }
34055 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34056 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34057 if (!SWIG_IsOK(res2)) {
34058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34059 }
34060 if (!argp2) {
34061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34062 }
34063 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34064 ecode3 = SWIG_AsVal_int(obj2, &val3);
34065 if (!SWIG_IsOK(ecode3)) {
34066 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34067 }
34068 arg3 = static_cast< int >(val3);
34069 if (obj3) {
34070 ecode4 = SWIG_AsVal_int(obj3, &val4);
34071 if (!SWIG_IsOK(ecode4)) {
34072 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34073 }
34074 arg4 = static_cast< wxTreeItemIcon >(val4);
34075 }
34076 {
34077 PyThreadState* __tstate = wxPyBeginAllowThreads();
34078 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34079 wxPyEndAllowThreads(__tstate);
34080 if (PyErr_Occurred()) SWIG_fail;
34081 }
34082 resultobj = SWIG_Py_Void();
34083 return resultobj;
34084fail:
34085 return NULL;
34086}
34087
34088
34089SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34090 PyObject *resultobj = 0;
34091 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34092 wxTreeItemId *arg2 = 0 ;
34093 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34094 void *argp1 = 0 ;
34095 int res1 = 0 ;
34096 void *argp2 = 0 ;
34097 int res2 = 0 ;
34098 int res3 = 0 ;
34099 PyObject * obj0 = 0 ;
34100 PyObject * obj1 = 0 ;
34101 PyObject * obj2 = 0 ;
34102 char * kwnames[] = {
34103 (char *) "self",(char *) "item",(char *) "data", NULL
34104 };
34105
34106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34108 if (!SWIG_IsOK(res1)) {
34109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34110 }
34111 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34112 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34113 if (!SWIG_IsOK(res2)) {
34114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34115 }
34116 if (!argp2) {
34117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34118 }
34119 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34120 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34121 if (!SWIG_IsOK(res3)) {
34122 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34123 }
34124 {
34125 PyThreadState* __tstate = wxPyBeginAllowThreads();
34126 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34127 wxPyEndAllowThreads(__tstate);
34128 if (PyErr_Occurred()) SWIG_fail;
34129 }
34130 resultobj = SWIG_Py_Void();
34131 return resultobj;
34132fail:
34133 return NULL;
34134}
34135
34136
34137SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34138 PyObject *resultobj = 0;
34139 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34140 wxTreeItemId *arg2 = 0 ;
34141 PyObject *arg3 = (PyObject *) 0 ;
34142 void *argp1 = 0 ;
34143 int res1 = 0 ;
34144 void *argp2 = 0 ;
34145 int res2 = 0 ;
34146 PyObject * obj0 = 0 ;
34147 PyObject * obj1 = 0 ;
34148 PyObject * obj2 = 0 ;
34149 char * kwnames[] = {
34150 (char *) "self",(char *) "item",(char *) "obj", NULL
34151 };
34152
34153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34155 if (!SWIG_IsOK(res1)) {
34156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34157 }
34158 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34159 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34160 if (!SWIG_IsOK(res2)) {
34161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34162 }
34163 if (!argp2) {
34164 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34165 }
34166 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34167 arg3 = obj2;
34168 {
34169 PyThreadState* __tstate = wxPyBeginAllowThreads();
34170 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34171 wxPyEndAllowThreads(__tstate);
34172 if (PyErr_Occurred()) SWIG_fail;
34173 }
34174 resultobj = SWIG_Py_Void();
34175 return resultobj;
34176fail:
34177 return NULL;
34178}
34179
34180
34181SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34182 PyObject *resultobj = 0;
34183 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34184 wxTreeItemId *arg2 = 0 ;
34185 bool arg3 = (bool) true ;
34186 void *argp1 = 0 ;
34187 int res1 = 0 ;
34188 void *argp2 = 0 ;
34189 int res2 = 0 ;
34190 bool val3 ;
34191 int ecode3 = 0 ;
34192 PyObject * obj0 = 0 ;
34193 PyObject * obj1 = 0 ;
34194 PyObject * obj2 = 0 ;
34195 char * kwnames[] = {
34196 (char *) "self",(char *) "item",(char *) "has", NULL
34197 };
34198
34199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34201 if (!SWIG_IsOK(res1)) {
34202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34203 }
34204 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34205 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34206 if (!SWIG_IsOK(res2)) {
34207 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34208 }
34209 if (!argp2) {
34210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34211 }
34212 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34213 if (obj2) {
34214 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34215 if (!SWIG_IsOK(ecode3)) {
34216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34217 }
34218 arg3 = static_cast< bool >(val3);
34219 }
34220 {
34221 PyThreadState* __tstate = wxPyBeginAllowThreads();
34222 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34223 wxPyEndAllowThreads(__tstate);
34224 if (PyErr_Occurred()) SWIG_fail;
34225 }
34226 resultobj = SWIG_Py_Void();
34227 return resultobj;
34228fail:
34229 return NULL;
34230}
34231
34232
34233SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34234 PyObject *resultobj = 0;
34235 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34236 wxTreeItemId *arg2 = 0 ;
34237 bool arg3 = (bool) true ;
34238 void *argp1 = 0 ;
34239 int res1 = 0 ;
34240 void *argp2 = 0 ;
34241 int res2 = 0 ;
34242 bool val3 ;
34243 int ecode3 = 0 ;
34244 PyObject * obj0 = 0 ;
34245 PyObject * obj1 = 0 ;
34246 PyObject * obj2 = 0 ;
34247 char * kwnames[] = {
34248 (char *) "self",(char *) "item",(char *) "bold", NULL
34249 };
34250
34251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34253 if (!SWIG_IsOK(res1)) {
34254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34255 }
34256 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34258 if (!SWIG_IsOK(res2)) {
34259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34260 }
34261 if (!argp2) {
34262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34263 }
34264 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34265 if (obj2) {
34266 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34267 if (!SWIG_IsOK(ecode3)) {
34268 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34269 }
34270 arg3 = static_cast< bool >(val3);
34271 }
34272 {
34273 PyThreadState* __tstate = wxPyBeginAllowThreads();
34274 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34275 wxPyEndAllowThreads(__tstate);
34276 if (PyErr_Occurred()) SWIG_fail;
34277 }
34278 resultobj = SWIG_Py_Void();
34279 return resultobj;
34280fail:
34281 return NULL;
34282}
34283
34284
34285SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34286 PyObject *resultobj = 0;
34287 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34288 wxTreeItemId *arg2 = 0 ;
34289 bool arg3 = (bool) true ;
34290 void *argp1 = 0 ;
34291 int res1 = 0 ;
34292 void *argp2 = 0 ;
34293 int res2 = 0 ;
34294 bool val3 ;
34295 int ecode3 = 0 ;
34296 PyObject * obj0 = 0 ;
34297 PyObject * obj1 = 0 ;
34298 PyObject * obj2 = 0 ;
34299 char * kwnames[] = {
34300 (char *) "self",(char *) "item",(char *) "highlight", NULL
34301 };
34302
34303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34305 if (!SWIG_IsOK(res1)) {
34306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34307 }
34308 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34309 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34310 if (!SWIG_IsOK(res2)) {
34311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34312 }
34313 if (!argp2) {
34314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34315 }
34316 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34317 if (obj2) {
34318 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34319 if (!SWIG_IsOK(ecode3)) {
34320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34321 }
34322 arg3 = static_cast< bool >(val3);
34323 }
34324 {
34325 PyThreadState* __tstate = wxPyBeginAllowThreads();
34326 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34327 wxPyEndAllowThreads(__tstate);
34328 if (PyErr_Occurred()) SWIG_fail;
34329 }
34330 resultobj = SWIG_Py_Void();
34331 return resultobj;
34332fail:
34333 return NULL;
34334}
34335
34336
34337SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34338 PyObject *resultobj = 0;
34339 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34340 wxTreeItemId *arg2 = 0 ;
34341 wxColour *arg3 = 0 ;
34342 void *argp1 = 0 ;
34343 int res1 = 0 ;
34344 void *argp2 = 0 ;
34345 int res2 = 0 ;
34346 wxColour temp3 ;
34347 PyObject * obj0 = 0 ;
34348 PyObject * obj1 = 0 ;
34349 PyObject * obj2 = 0 ;
34350 char * kwnames[] = {
34351 (char *) "self",(char *) "item",(char *) "col", NULL
34352 };
34353
34354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34356 if (!SWIG_IsOK(res1)) {
34357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34358 }
34359 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34360 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34361 if (!SWIG_IsOK(res2)) {
34362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34363 }
34364 if (!argp2) {
34365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34366 }
34367 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34368 {
34369 arg3 = &temp3;
34370 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34371 }
34372 {
34373 PyThreadState* __tstate = wxPyBeginAllowThreads();
34374 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34375 wxPyEndAllowThreads(__tstate);
34376 if (PyErr_Occurred()) SWIG_fail;
34377 }
34378 resultobj = SWIG_Py_Void();
34379 return resultobj;
34380fail:
34381 return NULL;
34382}
34383
34384
34385SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34386 PyObject *resultobj = 0;
34387 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34388 wxTreeItemId *arg2 = 0 ;
34389 wxColour *arg3 = 0 ;
34390 void *argp1 = 0 ;
34391 int res1 = 0 ;
34392 void *argp2 = 0 ;
34393 int res2 = 0 ;
34394 wxColour temp3 ;
34395 PyObject * obj0 = 0 ;
34396 PyObject * obj1 = 0 ;
34397 PyObject * obj2 = 0 ;
34398 char * kwnames[] = {
34399 (char *) "self",(char *) "item",(char *) "col", NULL
34400 };
34401
34402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34404 if (!SWIG_IsOK(res1)) {
34405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34406 }
34407 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34408 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34409 if (!SWIG_IsOK(res2)) {
34410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34411 }
34412 if (!argp2) {
34413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34414 }
34415 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34416 {
34417 arg3 = &temp3;
34418 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34419 }
34420 {
34421 PyThreadState* __tstate = wxPyBeginAllowThreads();
34422 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34423 wxPyEndAllowThreads(__tstate);
34424 if (PyErr_Occurred()) SWIG_fail;
34425 }
34426 resultobj = SWIG_Py_Void();
34427 return resultobj;
34428fail:
34429 return NULL;
34430}
34431
34432
34433SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34434 PyObject *resultobj = 0;
34435 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34436 wxTreeItemId *arg2 = 0 ;
34437 wxFont *arg3 = 0 ;
34438 void *argp1 = 0 ;
34439 int res1 = 0 ;
34440 void *argp2 = 0 ;
34441 int res2 = 0 ;
34442 void *argp3 = 0 ;
34443 int res3 = 0 ;
34444 PyObject * obj0 = 0 ;
34445 PyObject * obj1 = 0 ;
34446 PyObject * obj2 = 0 ;
34447 char * kwnames[] = {
34448 (char *) "self",(char *) "item",(char *) "font", NULL
34449 };
34450
34451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34453 if (!SWIG_IsOK(res1)) {
34454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34455 }
34456 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34457 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34458 if (!SWIG_IsOK(res2)) {
34459 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34460 }
34461 if (!argp2) {
34462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34463 }
34464 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34465 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34466 if (!SWIG_IsOK(res3)) {
34467 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34468 }
34469 if (!argp3) {
34470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34471 }
34472 arg3 = reinterpret_cast< wxFont * >(argp3);
34473 {
34474 PyThreadState* __tstate = wxPyBeginAllowThreads();
34475 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34476 wxPyEndAllowThreads(__tstate);
34477 if (PyErr_Occurred()) SWIG_fail;
34478 }
34479 resultobj = SWIG_Py_Void();
34480 return resultobj;
34481fail:
34482 return NULL;
34483}
34484
34485
34486SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34487 PyObject *resultobj = 0;
34488 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34489 wxTreeItemId *arg2 = 0 ;
34490 bool result;
34491 void *argp1 = 0 ;
34492 int res1 = 0 ;
34493 void *argp2 = 0 ;
34494 int res2 = 0 ;
34495 PyObject * obj0 = 0 ;
34496 PyObject * obj1 = 0 ;
34497 char * kwnames[] = {
34498 (char *) "self",(char *) "item", NULL
34499 };
34500
34501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34503 if (!SWIG_IsOK(res1)) {
34504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34505 }
34506 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34507 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34508 if (!SWIG_IsOK(res2)) {
34509 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34510 }
34511 if (!argp2) {
34512 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34513 }
34514 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34515 {
34516 PyThreadState* __tstate = wxPyBeginAllowThreads();
34517 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34518 wxPyEndAllowThreads(__tstate);
34519 if (PyErr_Occurred()) SWIG_fail;
34520 }
34521 {
34522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34523 }
34524 return resultobj;
34525fail:
34526 return NULL;
34527}
34528
34529
34530SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34531 PyObject *resultobj = 0;
34532 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34533 wxTreeItemId *arg2 = 0 ;
34534 bool result;
34535 void *argp1 = 0 ;
34536 int res1 = 0 ;
34537 void *argp2 = 0 ;
34538 int res2 = 0 ;
34539 PyObject * obj0 = 0 ;
34540 PyObject * obj1 = 0 ;
34541 char * kwnames[] = {
34542 (char *) "self",(char *) "item", NULL
34543 };
34544
34545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
34546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34547 if (!SWIG_IsOK(res1)) {
34548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34549 }
34550 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34551 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34552 if (!SWIG_IsOK(res2)) {
34553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34554 }
34555 if (!argp2) {
34556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34557 }
34558 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34559 {
34560 PyThreadState* __tstate = wxPyBeginAllowThreads();
34561 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
34562 wxPyEndAllowThreads(__tstate);
34563 if (PyErr_Occurred()) SWIG_fail;
34564 }
34565 {
34566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34567 }
34568 return resultobj;
34569fail:
34570 return NULL;
34571}
34572
34573
34574SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34575 PyObject *resultobj = 0;
34576 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34577 wxTreeItemId *arg2 = 0 ;
34578 bool result;
34579 void *argp1 = 0 ;
34580 int res1 = 0 ;
34581 void *argp2 = 0 ;
34582 int res2 = 0 ;
34583 PyObject * obj0 = 0 ;
34584 PyObject * obj1 = 0 ;
34585 char * kwnames[] = {
34586 (char *) "self",(char *) "item", NULL
34587 };
34588
34589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
34590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34591 if (!SWIG_IsOK(res1)) {
34592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34593 }
34594 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34595 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34596 if (!SWIG_IsOK(res2)) {
34597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34598 }
34599 if (!argp2) {
34600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34601 }
34602 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34603 {
34604 PyThreadState* __tstate = wxPyBeginAllowThreads();
34605 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
34606 wxPyEndAllowThreads(__tstate);
34607 if (PyErr_Occurred()) SWIG_fail;
34608 }
34609 {
34610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34611 }
34612 return resultobj;
34613fail:
34614 return NULL;
34615}
34616
34617
34618SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34619 PyObject *resultobj = 0;
34620 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34621 wxTreeItemId *arg2 = 0 ;
34622 bool result;
34623 void *argp1 = 0 ;
34624 int res1 = 0 ;
34625 void *argp2 = 0 ;
34626 int res2 = 0 ;
34627 PyObject * obj0 = 0 ;
34628 PyObject * obj1 = 0 ;
34629 char * kwnames[] = {
34630 (char *) "self",(char *) "item", NULL
34631 };
34632
34633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
34634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34635 if (!SWIG_IsOK(res1)) {
34636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34637 }
34638 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34639 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34640 if (!SWIG_IsOK(res2)) {
34641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34642 }
34643 if (!argp2) {
34644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34645 }
34646 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34647 {
34648 PyThreadState* __tstate = wxPyBeginAllowThreads();
34649 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
34650 wxPyEndAllowThreads(__tstate);
34651 if (PyErr_Occurred()) SWIG_fail;
34652 }
34653 {
34654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34655 }
34656 return resultobj;
34657fail:
34658 return NULL;
34659}
34660
34661
34662SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34663 PyObject *resultobj = 0;
34664 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34665 wxTreeItemId *arg2 = 0 ;
34666 bool result;
34667 void *argp1 = 0 ;
34668 int res1 = 0 ;
34669 void *argp2 = 0 ;
34670 int res2 = 0 ;
34671 PyObject * obj0 = 0 ;
34672 PyObject * obj1 = 0 ;
34673 char * kwnames[] = {
34674 (char *) "self",(char *) "item", NULL
34675 };
34676
34677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
34678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34679 if (!SWIG_IsOK(res1)) {
34680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34681 }
34682 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34683 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34684 if (!SWIG_IsOK(res2)) {
34685 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34686 }
34687 if (!argp2) {
34688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34689 }
34690 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34691 {
34692 PyThreadState* __tstate = wxPyBeginAllowThreads();
34693 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
34694 wxPyEndAllowThreads(__tstate);
34695 if (PyErr_Occurred()) SWIG_fail;
34696 }
34697 {
34698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34699 }
34700 return resultobj;
34701fail:
34702 return NULL;
34703}
34704
34705
34706SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34707 PyObject *resultobj = 0;
34708 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34709 wxTreeItemId *arg2 = 0 ;
34710 bool arg3 = (bool) true ;
34711 size_t result;
34712 void *argp1 = 0 ;
34713 int res1 = 0 ;
34714 void *argp2 = 0 ;
34715 int res2 = 0 ;
34716 bool val3 ;
34717 int ecode3 = 0 ;
34718 PyObject * obj0 = 0 ;
34719 PyObject * obj1 = 0 ;
34720 PyObject * obj2 = 0 ;
34721 char * kwnames[] = {
34722 (char *) "self",(char *) "item",(char *) "recursively", NULL
34723 };
34724
34725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34727 if (!SWIG_IsOK(res1)) {
34728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34729 }
34730 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34731 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34732 if (!SWIG_IsOK(res2)) {
34733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34734 }
34735 if (!argp2) {
34736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34737 }
34738 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34739 if (obj2) {
34740 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34741 if (!SWIG_IsOK(ecode3)) {
34742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
34743 }
34744 arg3 = static_cast< bool >(val3);
34745 }
34746 {
34747 PyThreadState* __tstate = wxPyBeginAllowThreads();
34748 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
34749 wxPyEndAllowThreads(__tstate);
34750 if (PyErr_Occurred()) SWIG_fail;
34751 }
34752 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34753 return resultobj;
34754fail:
34755 return NULL;
d55e5bfc
RD
34756}
34757
34758
1bd55598
RD
34759SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34760 PyObject *resultobj = 0;
34761 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34762 wxTreeItemId result;
34763 void *argp1 = 0 ;
34764 int res1 = 0 ;
34765 PyObject *swig_obj[1] ;
34766
34767 if (!args) SWIG_fail;
34768 swig_obj[0] = args;
34769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34770 if (!SWIG_IsOK(res1)) {
34771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34772 }
34773 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34774 {
34775 PyThreadState* __tstate = wxPyBeginAllowThreads();
34776 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
34777 wxPyEndAllowThreads(__tstate);
34778 if (PyErr_Occurred()) SWIG_fail;
34779 }
34780 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34781 return resultobj;
34782fail:
34783 return NULL;
d55e5bfc
RD
34784}
34785
34786
1bd55598
RD
34787SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34788 PyObject *resultobj = 0;
34789 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34790 wxTreeItemId result;
34791 void *argp1 = 0 ;
34792 int res1 = 0 ;
34793 PyObject *swig_obj[1] ;
34794
34795 if (!args) SWIG_fail;
34796 swig_obj[0] = args;
34797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34798 if (!SWIG_IsOK(res1)) {
34799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34800 }
34801 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34802 {
34803 PyThreadState* __tstate = wxPyBeginAllowThreads();
34804 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
34805 wxPyEndAllowThreads(__tstate);
34806 if (PyErr_Occurred()) SWIG_fail;
34807 }
34808 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34809 return resultobj;
34810fail:
34811 return NULL;
d55e5bfc
RD
34812}
34813
34814
1bd55598
RD
34815SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34816 PyObject *resultobj = 0;
34817 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34818 PyObject *result = 0 ;
34819 void *argp1 = 0 ;
34820 int res1 = 0 ;
34821 PyObject *swig_obj[1] ;
34822
34823 if (!args) SWIG_fail;
34824 swig_obj[0] = args;
34825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34826 if (!SWIG_IsOK(res1)) {
34827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34828 }
34829 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34830 {
34831 PyThreadState* __tstate = wxPyBeginAllowThreads();
34832 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
34833 wxPyEndAllowThreads(__tstate);
34834 if (PyErr_Occurred()) SWIG_fail;
34835 }
34836 resultobj = result;
34837 return resultobj;
34838fail:
34839 return NULL;
34840}
34841
34842
34843SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34844 PyObject *resultobj = 0;
34845 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34846 wxTreeItemId *arg2 = 0 ;
34847 wxTreeItemId result;
34848 void *argp1 = 0 ;
34849 int res1 = 0 ;
34850 void *argp2 = 0 ;
34851 int res2 = 0 ;
34852 PyObject * obj0 = 0 ;
34853 PyObject * obj1 = 0 ;
34854 char * kwnames[] = {
34855 (char *) "self",(char *) "item", NULL
34856 };
34857
34858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
34859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34860 if (!SWIG_IsOK(res1)) {
34861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34862 }
34863 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34864 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34865 if (!SWIG_IsOK(res2)) {
34866 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34867 }
34868 if (!argp2) {
34869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34870 }
34871 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34872 {
34873 PyThreadState* __tstate = wxPyBeginAllowThreads();
34874 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
34875 wxPyEndAllowThreads(__tstate);
34876 if (PyErr_Occurred()) SWIG_fail;
34877 }
34878 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34879 return resultobj;
34880fail:
34881 return NULL;
34882}
34883
34884
34885SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34886 PyObject *resultobj = 0;
34887 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34888 wxTreeItemId *arg2 = 0 ;
34889 PyObject *result = 0 ;
34890 void *argp1 = 0 ;
34891 int res1 = 0 ;
34892 void *argp2 = 0 ;
34893 int res2 = 0 ;
34894 PyObject * obj0 = 0 ;
34895 PyObject * obj1 = 0 ;
34896 char * kwnames[] = {
34897 (char *) "self",(char *) "item", NULL
34898 };
34899
34900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
34901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34902 if (!SWIG_IsOK(res1)) {
34903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34904 }
34905 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34906 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34907 if (!SWIG_IsOK(res2)) {
34908 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34909 }
34910 if (!argp2) {
34911 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34912 }
34913 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34914 {
34915 PyThreadState* __tstate = wxPyBeginAllowThreads();
34916 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
34917 wxPyEndAllowThreads(__tstate);
34918 if (PyErr_Occurred()) SWIG_fail;
34919 }
34920 resultobj = result;
34921 return resultobj;
34922fail:
34923 return NULL;
34924}
34925
34926
34927SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34928 PyObject *resultobj = 0;
34929 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34930 wxTreeItemId *arg2 = 0 ;
34931 void *arg3 = (void *) 0 ;
34932 PyObject *result = 0 ;
34933 void *argp1 = 0 ;
34934 int res1 = 0 ;
34935 void *argp2 = 0 ;
34936 int res2 = 0 ;
34937 int res3 ;
34938 PyObject * obj0 = 0 ;
34939 PyObject * obj1 = 0 ;
34940 PyObject * obj2 = 0 ;
34941 char * kwnames[] = {
34942 (char *) "self",(char *) "item",(char *) "cookie", NULL
34943 };
34944
34945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34947 if (!SWIG_IsOK(res1)) {
34948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34949 }
34950 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34951 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34952 if (!SWIG_IsOK(res2)) {
34953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34954 }
34955 if (!argp2) {
34956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34957 }
34958 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34959 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
34960 if (!SWIG_IsOK(res3)) {
34961 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
34962 }
34963 {
34964 PyThreadState* __tstate = wxPyBeginAllowThreads();
34965 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
34966 wxPyEndAllowThreads(__tstate);
34967 if (PyErr_Occurred()) SWIG_fail;
34968 }
34969 resultobj = result;
34970 return resultobj;
34971fail:
34972 return NULL;
34973}
34974
34975
34976SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34977 PyObject *resultobj = 0;
34978 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34979 wxTreeItemId *arg2 = 0 ;
34980 wxTreeItemId result;
34981 void *argp1 = 0 ;
34982 int res1 = 0 ;
34983 void *argp2 = 0 ;
34984 int res2 = 0 ;
34985 PyObject * obj0 = 0 ;
34986 PyObject * obj1 = 0 ;
34987 char * kwnames[] = {
34988 (char *) "self",(char *) "item", NULL
34989 };
34990
34991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
34992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34993 if (!SWIG_IsOK(res1)) {
34994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34995 }
34996 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34997 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34998 if (!SWIG_IsOK(res2)) {
34999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35000 }
35001 if (!argp2) {
35002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35003 }
35004 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35005 {
35006 PyThreadState* __tstate = wxPyBeginAllowThreads();
35007 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35008 wxPyEndAllowThreads(__tstate);
35009 if (PyErr_Occurred()) SWIG_fail;
35010 }
35011 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35012 return resultobj;
35013fail:
35014 return NULL;
35015}
35016
35017
35018SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35019 PyObject *resultobj = 0;
35020 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35021 wxTreeItemId *arg2 = 0 ;
35022 wxTreeItemId result;
35023 void *argp1 = 0 ;
35024 int res1 = 0 ;
35025 void *argp2 = 0 ;
35026 int res2 = 0 ;
35027 PyObject * obj0 = 0 ;
35028 PyObject * obj1 = 0 ;
35029 char * kwnames[] = {
35030 (char *) "self",(char *) "item", NULL
35031 };
35032
35033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35035 if (!SWIG_IsOK(res1)) {
35036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35037 }
35038 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35039 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35040 if (!SWIG_IsOK(res2)) {
35041 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35042 }
35043 if (!argp2) {
35044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35045 }
35046 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35047 {
35048 PyThreadState* __tstate = wxPyBeginAllowThreads();
35049 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35050 wxPyEndAllowThreads(__tstate);
35051 if (PyErr_Occurred()) SWIG_fail;
35052 }
35053 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35054 return resultobj;
35055fail:
35056 return NULL;
35057}
35058
35059
35060SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35061 PyObject *resultobj = 0;
35062 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35063 wxTreeItemId *arg2 = 0 ;
35064 wxTreeItemId result;
35065 void *argp1 = 0 ;
35066 int res1 = 0 ;
35067 void *argp2 = 0 ;
35068 int res2 = 0 ;
35069 PyObject * obj0 = 0 ;
35070 PyObject * obj1 = 0 ;
35071 char * kwnames[] = {
35072 (char *) "self",(char *) "item", NULL
35073 };
35074
35075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35077 if (!SWIG_IsOK(res1)) {
35078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35079 }
35080 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35081 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35082 if (!SWIG_IsOK(res2)) {
35083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35084 }
35085 if (!argp2) {
35086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35087 }
35088 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35089 {
35090 PyThreadState* __tstate = wxPyBeginAllowThreads();
35091 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35092 wxPyEndAllowThreads(__tstate);
35093 if (PyErr_Occurred()) SWIG_fail;
35094 }
35095 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35096 return resultobj;
35097fail:
35098 return NULL;
d55e5bfc
RD
35099}
35100
35101
1bd55598
RD
35102SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35103 PyObject *resultobj = 0;
35104 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35105 wxTreeItemId result;
35106 void *argp1 = 0 ;
35107 int res1 = 0 ;
35108 PyObject *swig_obj[1] ;
35109
35110 if (!args) SWIG_fail;
35111 swig_obj[0] = args;
35112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35113 if (!SWIG_IsOK(res1)) {
35114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35115 }
35116 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35117 {
35118 PyThreadState* __tstate = wxPyBeginAllowThreads();
35119 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35120 wxPyEndAllowThreads(__tstate);
35121 if (PyErr_Occurred()) SWIG_fail;
35122 }
35123 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35124 return resultobj;
35125fail:
35126 return NULL;
35127}
35128
35129
35130SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35131 PyObject *resultobj = 0;
35132 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35133 wxTreeItemId *arg2 = 0 ;
35134 wxTreeItemId result;
35135 void *argp1 = 0 ;
35136 int res1 = 0 ;
35137 void *argp2 = 0 ;
35138 int res2 = 0 ;
35139 PyObject * obj0 = 0 ;
35140 PyObject * obj1 = 0 ;
35141 char * kwnames[] = {
35142 (char *) "self",(char *) "item", NULL
35143 };
35144
35145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35147 if (!SWIG_IsOK(res1)) {
35148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35149 }
35150 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35151 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35152 if (!SWIG_IsOK(res2)) {
35153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35154 }
35155 if (!argp2) {
35156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35157 }
35158 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35159 {
35160 PyThreadState* __tstate = wxPyBeginAllowThreads();
35161 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35162 wxPyEndAllowThreads(__tstate);
35163 if (PyErr_Occurred()) SWIG_fail;
35164 }
35165 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35166 return resultobj;
35167fail:
35168 return NULL;
35169}
35170
35171
35172SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35173 PyObject *resultobj = 0;
35174 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35175 wxTreeItemId *arg2 = 0 ;
35176 wxTreeItemId result;
35177 void *argp1 = 0 ;
35178 int res1 = 0 ;
35179 void *argp2 = 0 ;
35180 int res2 = 0 ;
35181 PyObject * obj0 = 0 ;
35182 PyObject * obj1 = 0 ;
35183 char * kwnames[] = {
35184 (char *) "self",(char *) "item", NULL
35185 };
35186
35187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35189 if (!SWIG_IsOK(res1)) {
35190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35191 }
35192 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35193 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35194 if (!SWIG_IsOK(res2)) {
35195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35196 }
35197 if (!argp2) {
35198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35199 }
35200 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35201 {
35202 PyThreadState* __tstate = wxPyBeginAllowThreads();
35203 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35204 wxPyEndAllowThreads(__tstate);
35205 if (PyErr_Occurred()) SWIG_fail;
35206 }
35207 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35208 return resultobj;
35209fail:
35210 return NULL;
35211}
35212
35213
35214SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35215 PyObject *resultobj = 0;
35216 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35217 wxString *arg2 = 0 ;
35218 int arg3 = (int) -1 ;
35219 int arg4 = (int) -1 ;
35220 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35221 wxTreeItemId result;
35222 void *argp1 = 0 ;
35223 int res1 = 0 ;
35224 bool temp2 = false ;
35225 int val3 ;
35226 int ecode3 = 0 ;
35227 int val4 ;
35228 int ecode4 = 0 ;
35229 int res5 = 0 ;
35230 PyObject * obj0 = 0 ;
35231 PyObject * obj1 = 0 ;
35232 PyObject * obj2 = 0 ;
35233 PyObject * obj3 = 0 ;
35234 PyObject * obj4 = 0 ;
35235 char * kwnames[] = {
35236 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35237 };
35238
35239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35241 if (!SWIG_IsOK(res1)) {
35242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35243 }
35244 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35245 {
35246 arg2 = wxString_in_helper(obj1);
35247 if (arg2 == NULL) SWIG_fail;
35248 temp2 = true;
35249 }
35250 if (obj2) {
35251 ecode3 = SWIG_AsVal_int(obj2, &val3);
35252 if (!SWIG_IsOK(ecode3)) {
35253 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35254 }
35255 arg3 = static_cast< int >(val3);
35256 }
35257 if (obj3) {
35258 ecode4 = SWIG_AsVal_int(obj3, &val4);
35259 if (!SWIG_IsOK(ecode4)) {
35260 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35261 }
35262 arg4 = static_cast< int >(val4);
35263 }
35264 if (obj4) {
35265 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35266 if (!SWIG_IsOK(res5)) {
35267 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36ed4f51 35268 }
1bd55598
RD
35269 }
35270 {
35271 PyThreadState* __tstate = wxPyBeginAllowThreads();
35272 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35273 wxPyEndAllowThreads(__tstate);
35274 if (PyErr_Occurred()) SWIG_fail;
35275 }
35276 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35277 {
35278 if (temp2)
35279 delete arg2;
35280 }
35281 return resultobj;
35282fail:
35283 {
35284 if (temp2)
35285 delete arg2;
35286 }
35287 return NULL;
35288}
35289
35290
35291SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35292 PyObject *resultobj = 0;
35293 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35294 wxTreeItemId *arg2 = 0 ;
35295 wxString *arg3 = 0 ;
35296 int arg4 = (int) -1 ;
35297 int arg5 = (int) -1 ;
35298 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35299 wxTreeItemId result;
35300 void *argp1 = 0 ;
35301 int res1 = 0 ;
35302 void *argp2 = 0 ;
35303 int res2 = 0 ;
35304 bool temp3 = false ;
35305 int val4 ;
35306 int ecode4 = 0 ;
35307 int val5 ;
35308 int ecode5 = 0 ;
35309 int res6 = 0 ;
35310 PyObject * obj0 = 0 ;
35311 PyObject * obj1 = 0 ;
35312 PyObject * obj2 = 0 ;
35313 PyObject * obj3 = 0 ;
35314 PyObject * obj4 = 0 ;
35315 PyObject * obj5 = 0 ;
35316 char * kwnames[] = {
35317 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35318 };
35319
35320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35322 if (!SWIG_IsOK(res1)) {
35323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35324 }
35325 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35326 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35327 if (!SWIG_IsOK(res2)) {
35328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35329 }
35330 if (!argp2) {
35331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35332 }
35333 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35334 {
35335 arg3 = wxString_in_helper(obj2);
35336 if (arg3 == NULL) SWIG_fail;
35337 temp3 = true;
35338 }
35339 if (obj3) {
35340 ecode4 = SWIG_AsVal_int(obj3, &val4);
35341 if (!SWIG_IsOK(ecode4)) {
35342 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35343 }
35344 arg4 = static_cast< int >(val4);
35345 }
35346 if (obj4) {
35347 ecode5 = SWIG_AsVal_int(obj4, &val5);
35348 if (!SWIG_IsOK(ecode5)) {
35349 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35350 }
35351 arg5 = static_cast< int >(val5);
35352 }
35353 if (obj5) {
35354 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35355 if (!SWIG_IsOK(res6)) {
35356 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 35357 }
1bd55598
RD
35358 }
35359 {
35360 PyThreadState* __tstate = wxPyBeginAllowThreads();
35361 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35362 wxPyEndAllowThreads(__tstate);
35363 if (PyErr_Occurred()) SWIG_fail;
35364 }
35365 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35366 {
35367 if (temp3)
35368 delete arg3;
35369 }
35370 return resultobj;
35371fail:
35372 {
35373 if (temp3)
35374 delete arg3;
35375 }
35376 return NULL;
35377}
35378
35379
35380SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35381 PyObject *resultobj = 0;
35382 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35383 wxTreeItemId *arg2 = 0 ;
35384 wxTreeItemId *arg3 = 0 ;
35385 wxString *arg4 = 0 ;
35386 int arg5 = (int) -1 ;
35387 int arg6 = (int) -1 ;
35388 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35389 wxTreeItemId result;
35390 void *argp1 = 0 ;
35391 int res1 = 0 ;
35392 void *argp2 = 0 ;
35393 int res2 = 0 ;
35394 void *argp3 = 0 ;
35395 int res3 = 0 ;
35396 bool temp4 = false ;
35397 int val5 ;
35398 int ecode5 = 0 ;
35399 int val6 ;
35400 int ecode6 = 0 ;
35401 int res7 = 0 ;
35402 PyObject * obj0 = 0 ;
35403 PyObject * obj1 = 0 ;
35404 PyObject * obj2 = 0 ;
35405 PyObject * obj3 = 0 ;
35406 PyObject * obj4 = 0 ;
35407 PyObject * obj5 = 0 ;
35408 PyObject * obj6 = 0 ;
35409 char * kwnames[] = {
35410 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35411 };
35412
35413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35415 if (!SWIG_IsOK(res1)) {
35416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35417 }
35418 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35419 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35420 if (!SWIG_IsOK(res2)) {
35421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35422 }
35423 if (!argp2) {
35424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35425 }
35426 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35427 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35428 if (!SWIG_IsOK(res3)) {
35429 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35430 }
35431 if (!argp3) {
35432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35433 }
35434 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35435 {
35436 arg4 = wxString_in_helper(obj3);
35437 if (arg4 == NULL) SWIG_fail;
35438 temp4 = true;
35439 }
35440 if (obj4) {
35441 ecode5 = SWIG_AsVal_int(obj4, &val5);
35442 if (!SWIG_IsOK(ecode5)) {
35443 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35444 }
35445 arg5 = static_cast< int >(val5);
35446 }
35447 if (obj5) {
35448 ecode6 = SWIG_AsVal_int(obj5, &val6);
35449 if (!SWIG_IsOK(ecode6)) {
35450 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35451 }
35452 arg6 = static_cast< int >(val6);
35453 }
35454 if (obj6) {
35455 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35456 if (!SWIG_IsOK(res7)) {
35457 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 35458 }
1bd55598
RD
35459 }
35460 {
35461 PyThreadState* __tstate = wxPyBeginAllowThreads();
35462 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35463 wxPyEndAllowThreads(__tstate);
35464 if (PyErr_Occurred()) SWIG_fail;
35465 }
35466 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35467 {
35468 if (temp4)
35469 delete arg4;
35470 }
35471 return resultobj;
35472fail:
35473 {
35474 if (temp4)
35475 delete arg4;
35476 }
35477 return NULL;
35478}
35479
35480
35481SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35482 PyObject *resultobj = 0;
35483 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35484 wxTreeItemId *arg2 = 0 ;
35485 size_t arg3 ;
35486 wxString *arg4 = 0 ;
35487 int arg5 = (int) -1 ;
35488 int arg6 = (int) -1 ;
35489 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35490 wxTreeItemId result;
35491 void *argp1 = 0 ;
35492 int res1 = 0 ;
35493 void *argp2 = 0 ;
35494 int res2 = 0 ;
35495 size_t val3 ;
35496 int ecode3 = 0 ;
35497 bool temp4 = false ;
35498 int val5 ;
35499 int ecode5 = 0 ;
35500 int val6 ;
35501 int ecode6 = 0 ;
35502 int res7 = 0 ;
35503 PyObject * obj0 = 0 ;
35504 PyObject * obj1 = 0 ;
35505 PyObject * obj2 = 0 ;
35506 PyObject * obj3 = 0 ;
35507 PyObject * obj4 = 0 ;
35508 PyObject * obj5 = 0 ;
35509 PyObject * obj6 = 0 ;
35510 char * kwnames[] = {
35511 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35512 };
35513
35514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35516 if (!SWIG_IsOK(res1)) {
35517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35518 }
35519 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35520 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35521 if (!SWIG_IsOK(res2)) {
35522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35523 }
35524 if (!argp2) {
35525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35526 }
35527 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35528 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35529 if (!SWIG_IsOK(ecode3)) {
35530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35531 }
35532 arg3 = static_cast< size_t >(val3);
35533 {
35534 arg4 = wxString_in_helper(obj3);
35535 if (arg4 == NULL) SWIG_fail;
35536 temp4 = true;
35537 }
35538 if (obj4) {
35539 ecode5 = SWIG_AsVal_int(obj4, &val5);
35540 if (!SWIG_IsOK(ecode5)) {
35541 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
35542 }
35543 arg5 = static_cast< int >(val5);
35544 }
35545 if (obj5) {
35546 ecode6 = SWIG_AsVal_int(obj5, &val6);
35547 if (!SWIG_IsOK(ecode6)) {
35548 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
35549 }
35550 arg6 = static_cast< int >(val6);
35551 }
35552 if (obj6) {
35553 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35554 if (!SWIG_IsOK(res7)) {
35555 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 35556 }
1bd55598
RD
35557 }
35558 {
35559 PyThreadState* __tstate = wxPyBeginAllowThreads();
35560 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35561 wxPyEndAllowThreads(__tstate);
35562 if (PyErr_Occurred()) SWIG_fail;
35563 }
35564 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35565 {
35566 if (temp4)
35567 delete arg4;
35568 }
35569 return resultobj;
35570fail:
35571 {
35572 if (temp4)
35573 delete arg4;
35574 }
35575 return NULL;
35576}
35577
35578
35579SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35580 PyObject *resultobj = 0;
35581 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35582 wxTreeItemId *arg2 = 0 ;
35583 wxString *arg3 = 0 ;
35584 int arg4 = (int) -1 ;
35585 int arg5 = (int) -1 ;
35586 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35587 wxTreeItemId result;
35588 void *argp1 = 0 ;
35589 int res1 = 0 ;
35590 void *argp2 = 0 ;
35591 int res2 = 0 ;
35592 bool temp3 = false ;
35593 int val4 ;
35594 int ecode4 = 0 ;
35595 int val5 ;
35596 int ecode5 = 0 ;
35597 int res6 = 0 ;
35598 PyObject * obj0 = 0 ;
35599 PyObject * obj1 = 0 ;
35600 PyObject * obj2 = 0 ;
35601 PyObject * obj3 = 0 ;
35602 PyObject * obj4 = 0 ;
35603 PyObject * obj5 = 0 ;
35604 char * kwnames[] = {
35605 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35606 };
35607
35608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35610 if (!SWIG_IsOK(res1)) {
35611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35612 }
35613 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35614 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35615 if (!SWIG_IsOK(res2)) {
35616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35617 }
35618 if (!argp2) {
35619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35620 }
35621 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35622 {
35623 arg3 = wxString_in_helper(obj2);
35624 if (arg3 == NULL) SWIG_fail;
35625 temp3 = true;
35626 }
35627 if (obj3) {
35628 ecode4 = SWIG_AsVal_int(obj3, &val4);
35629 if (!SWIG_IsOK(ecode4)) {
35630 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
35631 }
35632 arg4 = static_cast< int >(val4);
35633 }
35634 if (obj4) {
35635 ecode5 = SWIG_AsVal_int(obj4, &val5);
35636 if (!SWIG_IsOK(ecode5)) {
35637 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
35638 }
35639 arg5 = static_cast< int >(val5);
35640 }
35641 if (obj5) {
35642 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35643 if (!SWIG_IsOK(res6)) {
35644 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 35645 }
1bd55598
RD
35646 }
35647 {
35648 PyThreadState* __tstate = wxPyBeginAllowThreads();
35649 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35650 wxPyEndAllowThreads(__tstate);
35651 if (PyErr_Occurred()) SWIG_fail;
35652 }
35653 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35654 {
35655 if (temp3)
35656 delete arg3;
35657 }
35658 return resultobj;
35659fail:
35660 {
35661 if (temp3)
35662 delete arg3;
35663 }
35664 return NULL;
35665}
35666
35667
35668SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35669 PyObject *resultobj = 0;
35670 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35671 wxTreeItemId *arg2 = 0 ;
35672 void *argp1 = 0 ;
35673 int res1 = 0 ;
35674 void *argp2 = 0 ;
35675 int res2 = 0 ;
35676 PyObject * obj0 = 0 ;
35677 PyObject * obj1 = 0 ;
35678 char * kwnames[] = {
35679 (char *) "self",(char *) "item", NULL
35680 };
35681
35682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
35683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35684 if (!SWIG_IsOK(res1)) {
35685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35686 }
35687 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35688 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35689 if (!SWIG_IsOK(res2)) {
35690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35691 }
35692 if (!argp2) {
35693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35694 }
35695 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35696 {
35697 PyThreadState* __tstate = wxPyBeginAllowThreads();
35698 (arg1)->Delete((wxTreeItemId const &)*arg2);
35699 wxPyEndAllowThreads(__tstate);
35700 if (PyErr_Occurred()) SWIG_fail;
35701 }
35702 resultobj = SWIG_Py_Void();
35703 return resultobj;
35704fail:
35705 return NULL;
35706}
35707
35708
35709SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35710 PyObject *resultobj = 0;
35711 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35712 wxTreeItemId *arg2 = 0 ;
35713 void *argp1 = 0 ;
35714 int res1 = 0 ;
35715 void *argp2 = 0 ;
35716 int res2 = 0 ;
35717 PyObject * obj0 = 0 ;
35718 PyObject * obj1 = 0 ;
35719 char * kwnames[] = {
35720 (char *) "self",(char *) "item", NULL
35721 };
35722
35723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35725 if (!SWIG_IsOK(res1)) {
35726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35727 }
35728 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35729 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35730 if (!SWIG_IsOK(res2)) {
35731 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35732 }
35733 if (!argp2) {
35734 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35735 }
35736 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35737 {
35738 PyThreadState* __tstate = wxPyBeginAllowThreads();
35739 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
35740 wxPyEndAllowThreads(__tstate);
35741 if (PyErr_Occurred()) SWIG_fail;
35742 }
35743 resultobj = SWIG_Py_Void();
35744 return resultobj;
35745fail:
35746 return NULL;
d55e5bfc
RD
35747}
35748
35749
1bd55598
RD
35750SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35751 PyObject *resultobj = 0;
35752 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35753 void *argp1 = 0 ;
35754 int res1 = 0 ;
35755 PyObject *swig_obj[1] ;
35756
35757 if (!args) SWIG_fail;
35758 swig_obj[0] = args;
35759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35760 if (!SWIG_IsOK(res1)) {
35761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35762 }
35763 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35764 {
35765 PyThreadState* __tstate = wxPyBeginAllowThreads();
35766 (arg1)->DeleteAllItems();
35767 wxPyEndAllowThreads(__tstate);
35768 if (PyErr_Occurred()) SWIG_fail;
35769 }
35770 resultobj = SWIG_Py_Void();
35771 return resultobj;
35772fail:
35773 return NULL;
35774}
35775
35776
35777SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35778 PyObject *resultobj = 0;
35779 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35780 wxTreeItemId *arg2 = 0 ;
35781 void *argp1 = 0 ;
35782 int res1 = 0 ;
35783 void *argp2 = 0 ;
35784 int res2 = 0 ;
35785 PyObject * obj0 = 0 ;
35786 PyObject * obj1 = 0 ;
35787 char * kwnames[] = {
35788 (char *) "self",(char *) "item", NULL
35789 };
35790
35791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
35792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35793 if (!SWIG_IsOK(res1)) {
35794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35795 }
35796 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35797 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35798 if (!SWIG_IsOK(res2)) {
35799 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35800 }
35801 if (!argp2) {
35802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35803 }
35804 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35805 {
35806 PyThreadState* __tstate = wxPyBeginAllowThreads();
35807 (arg1)->Expand((wxTreeItemId const &)*arg2);
35808 wxPyEndAllowThreads(__tstate);
35809 if (PyErr_Occurred()) SWIG_fail;
35810 }
35811 resultobj = SWIG_Py_Void();
35812 return resultobj;
35813fail:
35814 return NULL;
35815}
35816
35817
35818SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35819 PyObject *resultobj = 0;
35820 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35821 wxTreeItemId *arg2 = 0 ;
35822 void *argp1 = 0 ;
35823 int res1 = 0 ;
35824 void *argp2 = 0 ;
35825 int res2 = 0 ;
35826 PyObject * obj0 = 0 ;
35827 PyObject * obj1 = 0 ;
35828 char * kwnames[] = {
35829 (char *) "self",(char *) "item", NULL
35830 };
35831
35832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
35833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35834 if (!SWIG_IsOK(res1)) {
35835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35836 }
35837 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35838 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35839 if (!SWIG_IsOK(res2)) {
35840 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35841 }
35842 if (!argp2) {
35843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35844 }
35845 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35846 {
35847 PyThreadState* __tstate = wxPyBeginAllowThreads();
35848 (arg1)->Collapse((wxTreeItemId const &)*arg2);
35849 wxPyEndAllowThreads(__tstate);
35850 if (PyErr_Occurred()) SWIG_fail;
35851 }
35852 resultobj = SWIG_Py_Void();
35853 return resultobj;
35854fail:
35855 return NULL;
35856}
35857
35858
35859SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35860 PyObject *resultobj = 0;
35861 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35862 wxTreeItemId *arg2 = 0 ;
35863 void *argp1 = 0 ;
35864 int res1 = 0 ;
35865 void *argp2 = 0 ;
35866 int res2 = 0 ;
35867 PyObject * obj0 = 0 ;
35868 PyObject * obj1 = 0 ;
35869 char * kwnames[] = {
35870 (char *) "self",(char *) "item", NULL
35871 };
35872
35873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
35874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35875 if (!SWIG_IsOK(res1)) {
35876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35877 }
35878 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35880 if (!SWIG_IsOK(res2)) {
35881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35882 }
35883 if (!argp2) {
35884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35885 }
35886 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35887 {
35888 PyThreadState* __tstate = wxPyBeginAllowThreads();
35889 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
35890 wxPyEndAllowThreads(__tstate);
35891 if (PyErr_Occurred()) SWIG_fail;
35892 }
35893 resultobj = SWIG_Py_Void();
35894 return resultobj;
35895fail:
35896 return NULL;
35897}
35898
35899
35900SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35901 PyObject *resultobj = 0;
35902 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35903 wxTreeItemId *arg2 = 0 ;
35904 void *argp1 = 0 ;
35905 int res1 = 0 ;
35906 void *argp2 = 0 ;
35907 int res2 = 0 ;
35908 PyObject * obj0 = 0 ;
35909 PyObject * obj1 = 0 ;
35910 char * kwnames[] = {
35911 (char *) "self",(char *) "item", NULL
35912 };
35913
35914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
35915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35916 if (!SWIG_IsOK(res1)) {
35917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35918 }
35919 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35920 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35921 if (!SWIG_IsOK(res2)) {
35922 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35923 }
35924 if (!argp2) {
35925 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35926 }
35927 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35928 {
35929 PyThreadState* __tstate = wxPyBeginAllowThreads();
35930 (arg1)->Toggle((wxTreeItemId const &)*arg2);
35931 wxPyEndAllowThreads(__tstate);
35932 if (PyErr_Occurred()) SWIG_fail;
35933 }
35934 resultobj = SWIG_Py_Void();
35935 return resultobj;
35936fail:
35937 return NULL;
d55e5bfc
RD
35938}
35939
35940
1bd55598
RD
35941SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35942 PyObject *resultobj = 0;
35943 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35944 void *argp1 = 0 ;
35945 int res1 = 0 ;
35946 PyObject *swig_obj[1] ;
35947
35948 if (!args) SWIG_fail;
35949 swig_obj[0] = args;
35950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35951 if (!SWIG_IsOK(res1)) {
35952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35953 }
35954 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35955 {
35956 PyThreadState* __tstate = wxPyBeginAllowThreads();
35957 (arg1)->Unselect();
35958 wxPyEndAllowThreads(__tstate);
35959 if (PyErr_Occurred()) SWIG_fail;
35960 }
35961 resultobj = SWIG_Py_Void();
35962 return resultobj;
35963fail:
35964 return NULL;
35965}
35966
35967
35968SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35969 PyObject *resultobj = 0;
35970 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35971 wxTreeItemId *arg2 = 0 ;
35972 void *argp1 = 0 ;
35973 int res1 = 0 ;
35974 void *argp2 = 0 ;
35975 int res2 = 0 ;
35976 PyObject * obj0 = 0 ;
35977 PyObject * obj1 = 0 ;
35978 char * kwnames[] = {
35979 (char *) "self",(char *) "item", NULL
35980 };
35981
35982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
35983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35984 if (!SWIG_IsOK(res1)) {
35985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35986 }
35987 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35988 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35989 if (!SWIG_IsOK(res2)) {
35990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35991 }
35992 if (!argp2) {
35993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35994 }
35995 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35996 {
35997 PyThreadState* __tstate = wxPyBeginAllowThreads();
35998 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
35999 wxPyEndAllowThreads(__tstate);
36000 if (PyErr_Occurred()) SWIG_fail;
36001 }
36002 resultobj = SWIG_Py_Void();
36003 return resultobj;
36004fail:
36005 return NULL;
d55e5bfc
RD
36006}
36007
36008
1bd55598
RD
36009SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36010 PyObject *resultobj = 0;
36011 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36012 void *argp1 = 0 ;
36013 int res1 = 0 ;
36014 PyObject *swig_obj[1] ;
36015
36016 if (!args) SWIG_fail;
36017 swig_obj[0] = args;
36018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36019 if (!SWIG_IsOK(res1)) {
36020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36021 }
36022 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36023 {
36024 PyThreadState* __tstate = wxPyBeginAllowThreads();
36025 (arg1)->UnselectAll();
36026 wxPyEndAllowThreads(__tstate);
36027 if (PyErr_Occurred()) SWIG_fail;
36028 }
36029 resultobj = SWIG_Py_Void();
36030 return resultobj;
36031fail:
36032 return NULL;
36033}
36034
36035
36036SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36037 PyObject *resultobj = 0;
36038 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36039 wxTreeItemId *arg2 = 0 ;
36040 bool arg3 = (bool) true ;
36041 void *argp1 = 0 ;
36042 int res1 = 0 ;
36043 void *argp2 = 0 ;
36044 int res2 = 0 ;
36045 bool val3 ;
36046 int ecode3 = 0 ;
36047 PyObject * obj0 = 0 ;
36048 PyObject * obj1 = 0 ;
36049 PyObject * obj2 = 0 ;
36050 char * kwnames[] = {
36051 (char *) "self",(char *) "item",(char *) "select", NULL
36052 };
36053
36054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36056 if (!SWIG_IsOK(res1)) {
36057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36058 }
36059 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36060 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36061 if (!SWIG_IsOK(res2)) {
36062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36063 }
36064 if (!argp2) {
36065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36066 }
36067 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36068 if (obj2) {
36069 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36070 if (!SWIG_IsOK(ecode3)) {
36071 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36072 }
36073 arg3 = static_cast< bool >(val3);
36074 }
36075 {
36076 PyThreadState* __tstate = wxPyBeginAllowThreads();
36077 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36078 wxPyEndAllowThreads(__tstate);
36079 if (PyErr_Occurred()) SWIG_fail;
36080 }
36081 resultobj = SWIG_Py_Void();
36082 return resultobj;
36083fail:
36084 return NULL;
36085}
36086
36087
36088SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36089 PyObject *resultobj = 0;
36090 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36091 wxTreeItemId *arg2 = 0 ;
36092 void *argp1 = 0 ;
36093 int res1 = 0 ;
36094 void *argp2 = 0 ;
36095 int res2 = 0 ;
36096 PyObject * obj0 = 0 ;
36097 PyObject * obj1 = 0 ;
36098 char * kwnames[] = {
36099 (char *) "self",(char *) "item", NULL
36100 };
36101
36102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36104 if (!SWIG_IsOK(res1)) {
36105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36106 }
36107 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36108 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36109 if (!SWIG_IsOK(res2)) {
36110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36111 }
36112 if (!argp2) {
36113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36114 }
36115 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36116 {
36117 PyThreadState* __tstate = wxPyBeginAllowThreads();
36118 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36119 wxPyEndAllowThreads(__tstate);
36120 if (PyErr_Occurred()) SWIG_fail;
36121 }
36122 resultobj = SWIG_Py_Void();
36123 return resultobj;
36124fail:
36125 return NULL;
36126}
36127
36128
36129SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36130 PyObject *resultobj = 0;
36131 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36132 wxTreeItemId *arg2 = 0 ;
36133 void *argp1 = 0 ;
36134 int res1 = 0 ;
36135 void *argp2 = 0 ;
36136 int res2 = 0 ;
36137 PyObject * obj0 = 0 ;
36138 PyObject * obj1 = 0 ;
36139 char * kwnames[] = {
36140 (char *) "self",(char *) "item", NULL
36141 };
36142
36143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36145 if (!SWIG_IsOK(res1)) {
36146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36147 }
36148 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36149 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36150 if (!SWIG_IsOK(res2)) {
36151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36152 }
36153 if (!argp2) {
36154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36155 }
36156 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36157 {
36158 PyThreadState* __tstate = wxPyBeginAllowThreads();
36159 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36160 wxPyEndAllowThreads(__tstate);
36161 if (PyErr_Occurred()) SWIG_fail;
36162 }
36163 resultobj = SWIG_Py_Void();
36164 return resultobj;
36165fail:
36166 return NULL;
36167}
36168
36169
36170SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36171 PyObject *resultobj = 0;
36172 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36173 wxTreeItemId *arg2 = 0 ;
36174 void *argp1 = 0 ;
36175 int res1 = 0 ;
36176 void *argp2 = 0 ;
36177 int res2 = 0 ;
36178 PyObject * obj0 = 0 ;
36179 PyObject * obj1 = 0 ;
36180 char * kwnames[] = {
36181 (char *) "self",(char *) "item", NULL
36182 };
36183
36184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36186 if (!SWIG_IsOK(res1)) {
36187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36188 }
36189 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36190 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36191 if (!SWIG_IsOK(res2)) {
36192 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36193 }
36194 if (!argp2) {
36195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36196 }
36197 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36198 {
36199 PyThreadState* __tstate = wxPyBeginAllowThreads();
36200 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36201 wxPyEndAllowThreads(__tstate);
36202 if (PyErr_Occurred()) SWIG_fail;
36203 }
36204 resultobj = SWIG_Py_Void();
36205 return resultobj;
36206fail:
36207 return NULL;
36208}
36209
36210
36211SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36212 PyObject *resultobj = 0;
36213 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36214 wxTreeItemId *arg2 = 0 ;
36215 void *argp1 = 0 ;
36216 int res1 = 0 ;
36217 void *argp2 = 0 ;
36218 int res2 = 0 ;
36219 PyObject * obj0 = 0 ;
36220 PyObject * obj1 = 0 ;
36221 char * kwnames[] = {
36222 (char *) "self",(char *) "item", NULL
36223 };
36224
36225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36227 if (!SWIG_IsOK(res1)) {
36228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36229 }
36230 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36231 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36232 if (!SWIG_IsOK(res2)) {
36233 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36234 }
36235 if (!argp2) {
36236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36237 }
36238 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36239 {
36240 PyThreadState* __tstate = wxPyBeginAllowThreads();
36241 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36242 wxPyEndAllowThreads(__tstate);
36243 if (PyErr_Occurred()) SWIG_fail;
36244 }
36245 resultobj = SWIG_Py_Void();
36246 return resultobj;
36247fail:
36248 return NULL;
d55e5bfc
RD
36249}
36250
36251
1bd55598
RD
36252SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36253 PyObject *resultobj = 0;
36254 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36255 wxTextCtrl *result = 0 ;
36256 void *argp1 = 0 ;
36257 int res1 = 0 ;
36258 PyObject *swig_obj[1] ;
36259
36260 if (!args) SWIG_fail;
36261 swig_obj[0] = args;
36262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36263 if (!SWIG_IsOK(res1)) {
36264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36265 }
36266 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36267 {
36268 PyThreadState* __tstate = wxPyBeginAllowThreads();
36269 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36270 wxPyEndAllowThreads(__tstate);
36271 if (PyErr_Occurred()) SWIG_fail;
36272 }
36273 {
36274 resultobj = wxPyMake_wxObject(result, 0);
36275 }
36276 return resultobj;
36277fail:
36278 return NULL;
36279}
36280
36281
36282SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36283 PyObject *resultobj = 0;
36284 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36285 wxTreeItemId *arg2 = 0 ;
36286 void *argp1 = 0 ;
36287 int res1 = 0 ;
36288 void *argp2 = 0 ;
36289 int res2 = 0 ;
36290 PyObject * obj0 = 0 ;
36291 PyObject * obj1 = 0 ;
36292 char * kwnames[] = {
36293 (char *) "self",(char *) "item", NULL
36294 };
36295
36296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36298 if (!SWIG_IsOK(res1)) {
36299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36300 }
36301 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36302 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36303 if (!SWIG_IsOK(res2)) {
36304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36305 }
36306 if (!argp2) {
36307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36308 }
36309 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36310 {
36311 PyThreadState* __tstate = wxPyBeginAllowThreads();
36312 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36313 wxPyEndAllowThreads(__tstate);
36314 if (PyErr_Occurred()) SWIG_fail;
36315 }
36316 resultobj = SWIG_Py_Void();
36317 return resultobj;
36318fail:
36319 return NULL;
36320}
36321
36322
36323SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36324 PyObject *resultobj = 0;
36325 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36326 wxPoint *arg2 = 0 ;
36327 int *arg3 = 0 ;
36328 wxTreeItemId result;
36329 void *argp1 = 0 ;
36330 int res1 = 0 ;
36331 wxPoint temp2 ;
36332 int temp3 ;
36333 int res3 = SWIG_TMPOBJ ;
36334 PyObject * obj0 = 0 ;
36335 PyObject * obj1 = 0 ;
36336 char * kwnames[] = {
36337 (char *) "self",(char *) "point", NULL
36338 };
36339
36340 arg3 = &temp3;
36341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36343 if (!SWIG_IsOK(res1)) {
36344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36345 }
36346 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36347 {
36348 arg2 = &temp2;
36349 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36350 }
36351 {
36352 PyThreadState* __tstate = wxPyBeginAllowThreads();
36353 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36354 wxPyEndAllowThreads(__tstate);
36355 if (PyErr_Occurred()) SWIG_fail;
36356 }
36357 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36358 if (SWIG_IsTmpObj(res3)) {
36359 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36360 } else {
36361 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36362 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36363 }
36364 return resultobj;
36365fail:
36366 return NULL;
36367}
36368
36369
36370SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36371 PyObject *resultobj = 0;
36372 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36373 wxTreeItemId *arg2 = 0 ;
36374 bool arg3 = (bool) false ;
36375 PyObject *result = 0 ;
36376 void *argp1 = 0 ;
36377 int res1 = 0 ;
36378 void *argp2 = 0 ;
36379 int res2 = 0 ;
36380 bool val3 ;
36381 int ecode3 = 0 ;
36382 PyObject * obj0 = 0 ;
36383 PyObject * obj1 = 0 ;
36384 PyObject * obj2 = 0 ;
36385 char * kwnames[] = {
36386 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36387 };
36388
36389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36391 if (!SWIG_IsOK(res1)) {
36392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36393 }
36394 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36395 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36396 if (!SWIG_IsOK(res2)) {
36397 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36398 }
36399 if (!argp2) {
36400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36401 }
36402 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36403 if (obj2) {
36404 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36405 if (!SWIG_IsOK(ecode3)) {
36406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36407 }
36408 arg3 = static_cast< bool >(val3);
36409 }
36410 {
36411 PyThreadState* __tstate = wxPyBeginAllowThreads();
36412 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36413 wxPyEndAllowThreads(__tstate);
36414 if (PyErr_Occurred()) SWIG_fail;
36415 }
36416 resultobj = result;
36417 return resultobj;
36418fail:
36419 return NULL;
36420}
36421
36422
36423SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36424 PyObject *resultobj = 0;
36425 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36426 SwigValueWrapper<wxVisualAttributes > result;
36427 int val1 ;
36428 int ecode1 = 0 ;
36429 PyObject * obj0 = 0 ;
36430 char * kwnames[] = {
36431 (char *) "variant", NULL
36432 };
36433
36434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36435 if (obj0) {
36436 ecode1 = SWIG_AsVal_int(obj0, &val1);
36437 if (!SWIG_IsOK(ecode1)) {
36438 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36439 }
36440 arg1 = static_cast< wxWindowVariant >(val1);
36441 }
36442 {
36443 if (!wxPyCheckForApp()) SWIG_fail;
36444 PyThreadState* __tstate = wxPyBeginAllowThreads();
36445 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36446 wxPyEndAllowThreads(__tstate);
36447 if (PyErr_Occurred()) SWIG_fail;
36448 }
36449 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36450 return resultobj;
36451fail:
36452 return NULL;
d55e5bfc
RD
36453}
36454
36455
1bd55598
RD
36456SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36457 PyObject *obj;
36458 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36459 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
36460 return SWIG_Py_Void();
d55e5bfc
RD
36461}
36462
1bd55598
RD
36463SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36464 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
36465}
36466
1bd55598
RD
36467SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
36468 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
36469 return 1;
d55e5bfc
RD
36470}
36471
36472
1bd55598
RD
36473SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
36474 PyObject *pyobj = 0;
36475
36476 {
36477#if wxUSE_UNICODE
36478 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36479#else
36480 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36481#endif
36482 }
36483 return pyobj;
36484}
36485
36486
36487SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36488 PyObject *resultobj = 0;
36489 wxWindow *arg1 = (wxWindow *) 0 ;
36490 int arg2 = (int) (int)-1 ;
36491 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
36492 wxString *arg3 = (wxString *) &arg3_defvalue ;
36493 wxPoint const &arg4_defvalue = wxDefaultPosition ;
36494 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
36495 wxSize const &arg5_defvalue = wxDefaultSize ;
36496 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
36497 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36498 wxString const &arg7_defvalue = wxPyEmptyString ;
36499 wxString *arg7 = (wxString *) &arg7_defvalue ;
36500 int arg8 = (int) 0 ;
36501 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
36502 wxString *arg9 = (wxString *) &arg9_defvalue ;
36503 wxGenericDirCtrl *result = 0 ;
36504 void *argp1 = 0 ;
36505 int res1 = 0 ;
36506 int val2 ;
36507 int ecode2 = 0 ;
36508 bool temp3 = false ;
36509 wxPoint temp4 ;
36510 wxSize temp5 ;
36511 long val6 ;
36512 int ecode6 = 0 ;
36513 bool temp7 = false ;
36514 int val8 ;
36515 int ecode8 = 0 ;
36516 bool temp9 = false ;
36517 PyObject * obj0 = 0 ;
36518 PyObject * obj1 = 0 ;
36519 PyObject * obj2 = 0 ;
36520 PyObject * obj3 = 0 ;
36521 PyObject * obj4 = 0 ;
36522 PyObject * obj5 = 0 ;
36523 PyObject * obj6 = 0 ;
36524 PyObject * obj7 = 0 ;
36525 PyObject * obj8 = 0 ;
36526 char * kwnames[] = {
36527 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36528 };
36529
36530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
36531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36532 if (!SWIG_IsOK(res1)) {
36533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
36534 }
36535 arg1 = reinterpret_cast< wxWindow * >(argp1);
36536 if (obj1) {
36537 ecode2 = SWIG_AsVal_int(obj1, &val2);
36538 if (!SWIG_IsOK(ecode2)) {
36539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
36540 }
36541 arg2 = static_cast< int >(val2);
36542 }
36543 if (obj2) {
36ed4f51 36544 {
1bd55598
RD
36545 arg3 = wxString_in_helper(obj2);
36546 if (arg3 == NULL) SWIG_fail;
36547 temp3 = true;
36ed4f51 36548 }
1bd55598
RD
36549 }
36550 if (obj3) {
d55e5bfc 36551 {
1bd55598
RD
36552 arg4 = &temp4;
36553 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 36554 }
1bd55598
RD
36555 }
36556 if (obj4) {
36ed4f51 36557 {
1bd55598
RD
36558 arg5 = &temp5;
36559 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 36560 }
1bd55598
RD
36561 }
36562 if (obj5) {
36563 ecode6 = SWIG_AsVal_long(obj5, &val6);
36564 if (!SWIG_IsOK(ecode6)) {
36565 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
36566 }
36567 arg6 = static_cast< long >(val6);
36568 }
36569 if (obj6) {
36ed4f51 36570 {
1bd55598
RD
36571 arg7 = wxString_in_helper(obj6);
36572 if (arg7 == NULL) SWIG_fail;
36573 temp7 = true;
36ed4f51 36574 }
1bd55598
RD
36575 }
36576 if (obj7) {
36577 ecode8 = SWIG_AsVal_int(obj7, &val8);
36578 if (!SWIG_IsOK(ecode8)) {
36579 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
36580 }
36581 arg8 = static_cast< int >(val8);
36582 }
36583 if (obj8) {
d55e5bfc 36584 {
1bd55598
RD
36585 arg9 = wxString_in_helper(obj8);
36586 if (arg9 == NULL) SWIG_fail;
36587 temp9 = true;
d55e5bfc 36588 }
1bd55598
RD
36589 }
36590 {
36591 if (!wxPyCheckForApp()) SWIG_fail;
36592 PyThreadState* __tstate = wxPyBeginAllowThreads();
36593 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
36594 wxPyEndAllowThreads(__tstate);
36595 if (PyErr_Occurred()) SWIG_fail;
36596 }
36597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
36598 {
36599 if (temp3)
36600 delete arg3;
36601 }
36602 {
36603 if (temp7)
36604 delete arg7;
36605 }
36606 {
36607 if (temp9)
36608 delete arg9;
36609 }
36610 return resultobj;
36611fail:
36612 {
36613 if (temp3)
36614 delete arg3;
36615 }
36616 {
36617 if (temp7)
36618 delete arg7;
36619 }
36620 {
36621 if (temp9)
36622 delete arg9;
36623 }
36624 return NULL;
d55e5bfc
RD
36625}
36626
36627
1bd55598
RD
36628SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36629 PyObject *resultobj = 0;
36630 wxGenericDirCtrl *result = 0 ;
36631
36632 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
36633 {
36634 if (!wxPyCheckForApp()) SWIG_fail;
36635 PyThreadState* __tstate = wxPyBeginAllowThreads();
36636 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
36637 wxPyEndAllowThreads(__tstate);
36638 if (PyErr_Occurred()) SWIG_fail;
36639 }
36640 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
36641 return resultobj;
36642fail:
36643 return NULL;
36644}
36645
36646
36647SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36648 PyObject *resultobj = 0;
36649 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36650 wxWindow *arg2 = (wxWindow *) 0 ;
36651 int arg3 = (int) (int)-1 ;
36652 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
36653 wxString *arg4 = (wxString *) &arg4_defvalue ;
36654 wxPoint const &arg5_defvalue = wxDefaultPosition ;
36655 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
36656 wxSize const &arg6_defvalue = wxDefaultSize ;
36657 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
36658 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36659 wxString const &arg8_defvalue = wxPyEmptyString ;
36660 wxString *arg8 = (wxString *) &arg8_defvalue ;
36661 int arg9 = (int) 0 ;
36662 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
36663 wxString *arg10 = (wxString *) &arg10_defvalue ;
36664 bool result;
36665 void *argp1 = 0 ;
36666 int res1 = 0 ;
36667 void *argp2 = 0 ;
36668 int res2 = 0 ;
36669 int val3 ;
36670 int ecode3 = 0 ;
36671 bool temp4 = false ;
36672 wxPoint temp5 ;
36673 wxSize temp6 ;
36674 long val7 ;
36675 int ecode7 = 0 ;
36676 bool temp8 = false ;
36677 int val9 ;
36678 int ecode9 = 0 ;
36679 bool temp10 = false ;
36680 PyObject * obj0 = 0 ;
36681 PyObject * obj1 = 0 ;
36682 PyObject * obj2 = 0 ;
36683 PyObject * obj3 = 0 ;
36684 PyObject * obj4 = 0 ;
36685 PyObject * obj5 = 0 ;
36686 PyObject * obj6 = 0 ;
36687 PyObject * obj7 = 0 ;
36688 PyObject * obj8 = 0 ;
36689 PyObject * obj9 = 0 ;
36690 char * kwnames[] = {
36691 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36692 };
36693
36694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
36695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36696 if (!SWIG_IsOK(res1)) {
36697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36698 }
36699 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36700 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36701 if (!SWIG_IsOK(res2)) {
36702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
36703 }
36704 arg2 = reinterpret_cast< wxWindow * >(argp2);
36705 if (obj2) {
36706 ecode3 = SWIG_AsVal_int(obj2, &val3);
36707 if (!SWIG_IsOK(ecode3)) {
36708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
36709 }
36710 arg3 = static_cast< int >(val3);
36711 }
36712 if (obj3) {
36ed4f51 36713 {
1bd55598
RD
36714 arg4 = wxString_in_helper(obj3);
36715 if (arg4 == NULL) SWIG_fail;
36716 temp4 = true;
36ed4f51 36717 }
1bd55598
RD
36718 }
36719 if (obj4) {
36ed4f51 36720 {
1bd55598
RD
36721 arg5 = &temp5;
36722 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 36723 }
1bd55598
RD
36724 }
36725 if (obj5) {
d55e5bfc 36726 {
1bd55598
RD
36727 arg6 = &temp6;
36728 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 36729 }
1bd55598
RD
36730 }
36731 if (obj6) {
36732 ecode7 = SWIG_AsVal_long(obj6, &val7);
36733 if (!SWIG_IsOK(ecode7)) {
36734 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
36735 }
36736 arg7 = static_cast< long >(val7);
36737 }
36738 if (obj7) {
d55e5bfc 36739 {
1bd55598
RD
36740 arg8 = wxString_in_helper(obj7);
36741 if (arg8 == NULL) SWIG_fail;
36742 temp8 = true;
d55e5bfc 36743 }
1bd55598
RD
36744 }
36745 if (obj8) {
36746 ecode9 = SWIG_AsVal_int(obj8, &val9);
36747 if (!SWIG_IsOK(ecode9)) {
36748 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
36749 }
36750 arg9 = static_cast< int >(val9);
36751 }
36752 if (obj9) {
36ed4f51 36753 {
1bd55598
RD
36754 arg10 = wxString_in_helper(obj9);
36755 if (arg10 == NULL) SWIG_fail;
36756 temp10 = true;
36ed4f51 36757 }
1bd55598
RD
36758 }
36759 {
36760 PyThreadState* __tstate = wxPyBeginAllowThreads();
36761 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
36762 wxPyEndAllowThreads(__tstate);
36763 if (PyErr_Occurred()) SWIG_fail;
36764 }
36765 {
36766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36767 }
36768 {
36769 if (temp4)
36770 delete arg4;
36771 }
36772 {
36773 if (temp8)
36774 delete arg8;
36775 }
36776 {
36777 if (temp10)
36778 delete arg10;
36779 }
36780 return resultobj;
36781fail:
36782 {
36783 if (temp4)
36784 delete arg4;
36785 }
36786 {
36787 if (temp8)
36788 delete arg8;
36789 }
36790 {
36791 if (temp10)
36792 delete arg10;
36793 }
36794 return NULL;
36795}
36796
36797
36798SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36799 PyObject *resultobj = 0;
36800 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36801 wxString *arg2 = 0 ;
36802 bool result;
36803 void *argp1 = 0 ;
36804 int res1 = 0 ;
36805 bool temp2 = false ;
36806 PyObject * obj0 = 0 ;
36807 PyObject * obj1 = 0 ;
36808 char * kwnames[] = {
36809 (char *) "self",(char *) "path", NULL
36810 };
36811
36812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
36813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36814 if (!SWIG_IsOK(res1)) {
36815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36816 }
36817 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36818 {
36819 arg2 = wxString_in_helper(obj1);
36820 if (arg2 == NULL) SWIG_fail;
36821 temp2 = true;
36822 }
36823 {
36824 PyThreadState* __tstate = wxPyBeginAllowThreads();
36825 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
36826 wxPyEndAllowThreads(__tstate);
36827 if (PyErr_Occurred()) SWIG_fail;
36828 }
36829 {
36830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36831 }
36832 {
36833 if (temp2)
36834 delete arg2;
36835 }
36836 return resultobj;
36837fail:
36838 {
36839 if (temp2)
36840 delete arg2;
36841 }
36842 return NULL;
d55e5bfc
RD
36843}
36844
36845
1bd55598
RD
36846SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36847 PyObject *resultobj = 0;
36848 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36849 wxString result;
36850 void *argp1 = 0 ;
36851 int res1 = 0 ;
36852 PyObject *swig_obj[1] ;
36853
36854 if (!args) SWIG_fail;
36855 swig_obj[0] = args;
36856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36857 if (!SWIG_IsOK(res1)) {
36858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
36859 }
36860 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36861 {
36862 PyThreadState* __tstate = wxPyBeginAllowThreads();
36863 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
36864 wxPyEndAllowThreads(__tstate);
36865 if (PyErr_Occurred()) SWIG_fail;
36866 }
36867 {
36868#if wxUSE_UNICODE
36869 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36870#else
36871 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36872#endif
36873 }
36874 return resultobj;
36875fail:
36876 return NULL;
36877}
36878
36879
36880SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36881 PyObject *resultobj = 0;
36882 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36883 wxString *arg2 = 0 ;
36884 void *argp1 = 0 ;
36885 int res1 = 0 ;
36886 bool temp2 = false ;
36887 PyObject * obj0 = 0 ;
36888 PyObject * obj1 = 0 ;
36889 char * kwnames[] = {
36890 (char *) "self",(char *) "path", NULL
36891 };
36892
36893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
36894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36895 if (!SWIG_IsOK(res1)) {
36896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36897 }
36898 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36899 {
36900 arg2 = wxString_in_helper(obj1);
36901 if (arg2 == NULL) SWIG_fail;
36902 temp2 = true;
36903 }
36904 {
36905 PyThreadState* __tstate = wxPyBeginAllowThreads();
36906 (arg1)->SetDefaultPath((wxString const &)*arg2);
36907 wxPyEndAllowThreads(__tstate);
36908 if (PyErr_Occurred()) SWIG_fail;
36909 }
36910 resultobj = SWIG_Py_Void();
36911 {
36912 if (temp2)
36913 delete arg2;
36914 }
36915 return resultobj;
36916fail:
36917 {
36918 if (temp2)
36919 delete arg2;
36920 }
36921 return NULL;
d55e5bfc
RD
36922}
36923
36924
1bd55598
RD
36925SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36926 PyObject *resultobj = 0;
36927 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36928 wxString result;
36929 void *argp1 = 0 ;
36930 int res1 = 0 ;
36931 PyObject *swig_obj[1] ;
36932
36933 if (!args) SWIG_fail;
36934 swig_obj[0] = args;
36935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36936 if (!SWIG_IsOK(res1)) {
36937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
36938 }
36939 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36940 {
36941 PyThreadState* __tstate = wxPyBeginAllowThreads();
36942 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
36943 wxPyEndAllowThreads(__tstate);
36944 if (PyErr_Occurred()) SWIG_fail;
36945 }
36946 {
36947#if wxUSE_UNICODE
36948 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36949#else
36950 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36951#endif
36952 }
36953 return resultobj;
36954fail:
36955 return NULL;
d55e5bfc
RD
36956}
36957
36958
1bd55598
RD
36959SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36960 PyObject *resultobj = 0;
36961 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36962 wxString result;
36963 void *argp1 = 0 ;
36964 int res1 = 0 ;
36965 PyObject *swig_obj[1] ;
36966
36967 if (!args) SWIG_fail;
36968 swig_obj[0] = args;
36969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36970 if (!SWIG_IsOK(res1)) {
36971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
36972 }
36973 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36974 {
36975 PyThreadState* __tstate = wxPyBeginAllowThreads();
36976 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
36977 wxPyEndAllowThreads(__tstate);
36978 if (PyErr_Occurred()) SWIG_fail;
36979 }
36980 {
36981#if wxUSE_UNICODE
36982 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36983#else
36984 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36985#endif
36986 }
36987 return resultobj;
36988fail:
36989 return NULL;
36990}
36991
36992
36993SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36994 PyObject *resultobj = 0;
36995 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36996 wxString *arg2 = 0 ;
36997 void *argp1 = 0 ;
36998 int res1 = 0 ;
36999 bool temp2 = false ;
37000 PyObject * obj0 = 0 ;
37001 PyObject * obj1 = 0 ;
37002 char * kwnames[] = {
37003 (char *) "self",(char *) "path", NULL
37004 };
37005
37006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37008 if (!SWIG_IsOK(res1)) {
37009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37010 }
37011 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37012 {
37013 arg2 = wxString_in_helper(obj1);
37014 if (arg2 == NULL) SWIG_fail;
37015 temp2 = true;
37016 }
37017 {
37018 PyThreadState* __tstate = wxPyBeginAllowThreads();
37019 (arg1)->SetPath((wxString const &)*arg2);
37020 wxPyEndAllowThreads(__tstate);
37021 if (PyErr_Occurred()) SWIG_fail;
37022 }
37023 resultobj = SWIG_Py_Void();
37024 {
37025 if (temp2)
37026 delete arg2;
37027 }
37028 return resultobj;
37029fail:
37030 {
37031 if (temp2)
37032 delete arg2;
37033 }
37034 return NULL;
37035}
37036
37037
37038SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37039 PyObject *resultobj = 0;
37040 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37041 bool arg2 ;
37042 void *argp1 = 0 ;
37043 int res1 = 0 ;
37044 bool val2 ;
37045 int ecode2 = 0 ;
37046 PyObject * obj0 = 0 ;
37047 PyObject * obj1 = 0 ;
37048 char * kwnames[] = {
37049 (char *) "self",(char *) "show", NULL
37050 };
37051
37052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37054 if (!SWIG_IsOK(res1)) {
37055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37056 }
37057 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37058 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37059 if (!SWIG_IsOK(ecode2)) {
37060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37061 }
37062 arg2 = static_cast< bool >(val2);
37063 {
37064 PyThreadState* __tstate = wxPyBeginAllowThreads();
37065 (arg1)->ShowHidden(arg2);
37066 wxPyEndAllowThreads(__tstate);
37067 if (PyErr_Occurred()) SWIG_fail;
37068 }
37069 resultobj = SWIG_Py_Void();
37070 return resultobj;
37071fail:
37072 return NULL;
d55e5bfc
RD
37073}
37074
37075
1bd55598
RD
37076SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37077 PyObject *resultobj = 0;
37078 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37079 bool result;
37080 void *argp1 = 0 ;
37081 int res1 = 0 ;
37082 PyObject *swig_obj[1] ;
37083
37084 if (!args) SWIG_fail;
37085 swig_obj[0] = args;
37086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37087 if (!SWIG_IsOK(res1)) {
37088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37089 }
37090 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37091 {
37092 PyThreadState* __tstate = wxPyBeginAllowThreads();
37093 result = (bool)(arg1)->GetShowHidden();
37094 wxPyEndAllowThreads(__tstate);
37095 if (PyErr_Occurred()) SWIG_fail;
37096 }
37097 {
37098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37099 }
37100 return resultobj;
37101fail:
37102 return NULL;
d55e5bfc
RD
37103}
37104
37105
1bd55598
RD
37106SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37107 PyObject *resultobj = 0;
37108 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37109 wxString result;
37110 void *argp1 = 0 ;
37111 int res1 = 0 ;
37112 PyObject *swig_obj[1] ;
37113
37114 if (!args) SWIG_fail;
37115 swig_obj[0] = args;
37116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37117 if (!SWIG_IsOK(res1)) {
37118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37119 }
37120 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37121 {
37122 PyThreadState* __tstate = wxPyBeginAllowThreads();
37123 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37124 wxPyEndAllowThreads(__tstate);
37125 if (PyErr_Occurred()) SWIG_fail;
37126 }
37127 {
37128#if wxUSE_UNICODE
37129 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37130#else
37131 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37132#endif
37133 }
37134 return resultobj;
37135fail:
37136 return NULL;
37137}
37138
37139
37140SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37141 PyObject *resultobj = 0;
37142 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37143 wxString *arg2 = 0 ;
37144 void *argp1 = 0 ;
37145 int res1 = 0 ;
37146 bool temp2 = false ;
37147 PyObject * obj0 = 0 ;
37148 PyObject * obj1 = 0 ;
37149 char * kwnames[] = {
37150 (char *) "self",(char *) "filter", NULL
37151 };
37152
37153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37155 if (!SWIG_IsOK(res1)) {
37156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37157 }
37158 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37159 {
37160 arg2 = wxString_in_helper(obj1);
37161 if (arg2 == NULL) SWIG_fail;
37162 temp2 = true;
37163 }
37164 {
37165 PyThreadState* __tstate = wxPyBeginAllowThreads();
37166 (arg1)->SetFilter((wxString const &)*arg2);
37167 wxPyEndAllowThreads(__tstate);
37168 if (PyErr_Occurred()) SWIG_fail;
37169 }
37170 resultobj = SWIG_Py_Void();
37171 {
37172 if (temp2)
37173 delete arg2;
37174 }
37175 return resultobj;
37176fail:
37177 {
37178 if (temp2)
37179 delete arg2;
37180 }
37181 return NULL;
d55e5bfc
RD
37182}
37183
37184
1bd55598
RD
37185SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37186 PyObject *resultobj = 0;
37187 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37188 int result;
37189 void *argp1 = 0 ;
37190 int res1 = 0 ;
37191 PyObject *swig_obj[1] ;
37192
37193 if (!args) SWIG_fail;
37194 swig_obj[0] = args;
37195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37196 if (!SWIG_IsOK(res1)) {
37197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37198 }
37199 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37200 {
37201 PyThreadState* __tstate = wxPyBeginAllowThreads();
37202 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37203 wxPyEndAllowThreads(__tstate);
37204 if (PyErr_Occurred()) SWIG_fail;
37205 }
37206 resultobj = SWIG_From_int(static_cast< int >(result));
37207 return resultobj;
37208fail:
37209 return NULL;
37210}
37211
37212
37213SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37214 PyObject *resultobj = 0;
37215 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37216 int arg2 ;
37217 void *argp1 = 0 ;
37218 int res1 = 0 ;
37219 int val2 ;
37220 int ecode2 = 0 ;
37221 PyObject * obj0 = 0 ;
37222 PyObject * obj1 = 0 ;
37223 char * kwnames[] = {
37224 (char *) "self",(char *) "n", NULL
37225 };
37226
37227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37229 if (!SWIG_IsOK(res1)) {
37230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37231 }
37232 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37233 ecode2 = SWIG_AsVal_int(obj1, &val2);
37234 if (!SWIG_IsOK(ecode2)) {
37235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37236 }
37237 arg2 = static_cast< int >(val2);
37238 {
37239 PyThreadState* __tstate = wxPyBeginAllowThreads();
37240 (arg1)->SetFilterIndex(arg2);
37241 wxPyEndAllowThreads(__tstate);
37242 if (PyErr_Occurred()) SWIG_fail;
37243 }
37244 resultobj = SWIG_Py_Void();
37245 return resultobj;
37246fail:
37247 return NULL;
d55e5bfc
RD
37248}
37249
37250
1bd55598
RD
37251SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37252 PyObject *resultobj = 0;
37253 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37254 wxTreeItemId result;
37255 void *argp1 = 0 ;
37256 int res1 = 0 ;
37257 PyObject *swig_obj[1] ;
37258
37259 if (!args) SWIG_fail;
37260 swig_obj[0] = args;
37261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37262 if (!SWIG_IsOK(res1)) {
37263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37264 }
37265 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37266 {
37267 PyThreadState* __tstate = wxPyBeginAllowThreads();
37268 result = (arg1)->GetRootId();
37269 wxPyEndAllowThreads(__tstate);
37270 if (PyErr_Occurred()) SWIG_fail;
37271 }
37272 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37273 return resultobj;
37274fail:
37275 return NULL;
d55e5bfc
RD
37276}
37277
37278
1bd55598
RD
37279SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37280 PyObject *resultobj = 0;
37281 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37282 wxPyTreeCtrl *result = 0 ;
37283 void *argp1 = 0 ;
37284 int res1 = 0 ;
37285 PyObject *swig_obj[1] ;
37286
37287 if (!args) SWIG_fail;
37288 swig_obj[0] = args;
37289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37290 if (!SWIG_IsOK(res1)) {
37291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37292 }
37293 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37294 {
37295 PyThreadState* __tstate = wxPyBeginAllowThreads();
37296 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37297 wxPyEndAllowThreads(__tstate);
37298 if (PyErr_Occurred()) SWIG_fail;
37299 }
37300 {
37301 resultobj = wxPyMake_wxObject(result, 0);
37302 }
37303 return resultobj;
37304fail:
37305 return NULL;
d55e5bfc
RD
37306}
37307
37308
1bd55598
RD
37309SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37310 PyObject *resultobj = 0;
37311 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37312 wxDirFilterListCtrl *result = 0 ;
37313 void *argp1 = 0 ;
37314 int res1 = 0 ;
37315 PyObject *swig_obj[1] ;
37316
37317 if (!args) SWIG_fail;
37318 swig_obj[0] = args;
37319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37320 if (!SWIG_IsOK(res1)) {
37321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37322 }
37323 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37324 {
37325 PyThreadState* __tstate = wxPyBeginAllowThreads();
37326 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37327 wxPyEndAllowThreads(__tstate);
37328 if (PyErr_Occurred()) SWIG_fail;
37329 }
37330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37331 return resultobj;
37332fail:
37333 return NULL;
37334}
37335
37336
37337SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37338 PyObject *resultobj = 0;
37339 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37340 wxTreeItemId arg2 ;
37341 wxString *arg3 = 0 ;
37342 bool *arg4 = 0 ;
37343 wxTreeItemId result;
37344 void *argp1 = 0 ;
37345 int res1 = 0 ;
37346 void *argp2 ;
37347 int res2 = 0 ;
37348 bool temp3 = false ;
37349 bool temp4 ;
37350 int res4 = SWIG_TMPOBJ ;
37351 PyObject * obj0 = 0 ;
37352 PyObject * obj1 = 0 ;
37353 PyObject * obj2 = 0 ;
37354 char * kwnames[] = {
37355 (char *) "self",(char *) "parentId",(char *) "path", NULL
37356 };
37357
37358 arg4 = &temp4;
37359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37361 if (!SWIG_IsOK(res1)) {
37362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37363 }
37364 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37365 {
37366 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37367 if (!SWIG_IsOK(res2)) {
37368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37369 }
37370 if (!argp2) {
37371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37372 } else {
37373 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
37374 arg2 = *temp;
37375 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 37376 }
1bd55598
RD
37377 }
37378 {
37379 arg3 = wxString_in_helper(obj2);
37380 if (arg3 == NULL) SWIG_fail;
37381 temp3 = true;
37382 }
37383 {
37384 PyThreadState* __tstate = wxPyBeginAllowThreads();
37385 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
37386 wxPyEndAllowThreads(__tstate);
37387 if (PyErr_Occurred()) SWIG_fail;
37388 }
37389 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37390 if (SWIG_IsTmpObj(res4)) {
37391 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
37392 } else {
37393 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37394 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
37395 }
37396 {
37397 if (temp3)
37398 delete arg3;
37399 }
37400 return resultobj;
37401fail:
37402 {
37403 if (temp3)
37404 delete arg3;
37405 }
37406 return NULL;
d55e5bfc
RD
37407}
37408
37409
1bd55598
RD
37410SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37411 PyObject *resultobj = 0;
37412 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37413 void *argp1 = 0 ;
37414 int res1 = 0 ;
37415 PyObject *swig_obj[1] ;
37416
37417 if (!args) SWIG_fail;
37418 swig_obj[0] = args;
37419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37420 if (!SWIG_IsOK(res1)) {
37421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37422 }
37423 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37424 {
37425 PyThreadState* __tstate = wxPyBeginAllowThreads();
37426 (arg1)->DoResize();
37427 wxPyEndAllowThreads(__tstate);
37428 if (PyErr_Occurred()) SWIG_fail;
37429 }
37430 resultobj = SWIG_Py_Void();
37431 return resultobj;
37432fail:
37433 return NULL;
37434}
37435
37436
37437SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37438 PyObject *resultobj = 0;
37439 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37440 void *argp1 = 0 ;
37441 int res1 = 0 ;
37442 PyObject *swig_obj[1] ;
37443
37444 if (!args) SWIG_fail;
37445 swig_obj[0] = args;
37446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37447 if (!SWIG_IsOK(res1)) {
37448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37449 }
37450 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37451 {
37452 PyThreadState* __tstate = wxPyBeginAllowThreads();
37453 (arg1)->ReCreateTree();
37454 wxPyEndAllowThreads(__tstate);
37455 if (PyErr_Occurred()) SWIG_fail;
37456 }
37457 resultobj = SWIG_Py_Void();
37458 return resultobj;
37459fail:
37460 return NULL;
37461}
37462
37463
37464SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37465 PyObject *obj;
37466 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37467 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
37468 return SWIG_Py_Void();
37469}
37470
37471SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37472 return SWIG_Python_InitShadowInstance(args);
37473}
37474
37475SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37476 PyObject *resultobj = 0;
37477 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37478 int arg2 = (int) (int)-1 ;
37479 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37480 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37481 wxSize const &arg4_defvalue = wxDefaultSize ;
37482 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37483 long arg5 = (long) 0 ;
37484 wxDirFilterListCtrl *result = 0 ;
37485 void *argp1 = 0 ;
37486 int res1 = 0 ;
37487 int val2 ;
37488 int ecode2 = 0 ;
37489 wxPoint temp3 ;
37490 wxSize temp4 ;
37491 long val5 ;
37492 int ecode5 = 0 ;
37493 PyObject * obj0 = 0 ;
37494 PyObject * obj1 = 0 ;
37495 PyObject * obj2 = 0 ;
37496 PyObject * obj3 = 0 ;
37497 PyObject * obj4 = 0 ;
37498 char * kwnames[] = {
37499 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37500 };
37501
37502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37504 if (!SWIG_IsOK(res1)) {
37505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37506 }
37507 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37508 if (obj1) {
37509 ecode2 = SWIG_AsVal_int(obj1, &val2);
37510 if (!SWIG_IsOK(ecode2)) {
37511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
37512 }
37513 arg2 = static_cast< int >(val2);
37514 }
37515 if (obj2) {
d55e5bfc 37516 {
1bd55598
RD
37517 arg3 = &temp3;
37518 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 37519 }
1bd55598
RD
37520 }
37521 if (obj3) {
d55e5bfc 37522 {
1bd55598
RD
37523 arg4 = &temp4;
37524 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 37525 }
1bd55598
RD
37526 }
37527 if (obj4) {
37528 ecode5 = SWIG_AsVal_long(obj4, &val5);
37529 if (!SWIG_IsOK(ecode5)) {
37530 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
37531 }
37532 arg5 = static_cast< long >(val5);
37533 }
37534 {
37535 if (!wxPyCheckForApp()) SWIG_fail;
37536 PyThreadState* __tstate = wxPyBeginAllowThreads();
37537 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
37538 wxPyEndAllowThreads(__tstate);
37539 if (PyErr_Occurred()) SWIG_fail;
37540 }
37541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
37542 return resultobj;
37543fail:
37544 return NULL;
d55e5bfc
RD
37545}
37546
37547
1bd55598
RD
37548SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37549 PyObject *resultobj = 0;
37550 wxDirFilterListCtrl *result = 0 ;
37551
37552 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
37553 {
37554 if (!wxPyCheckForApp()) SWIG_fail;
37555 PyThreadState* __tstate = wxPyBeginAllowThreads();
37556 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
37557 wxPyEndAllowThreads(__tstate);
37558 if (PyErr_Occurred()) SWIG_fail;
37559 }
37560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
37561 return resultobj;
37562fail:
37563 return NULL;
37564}
37565
37566
37567SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37568 PyObject *resultobj = 0;
37569 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37570 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
37571 int arg3 = (int) (int)-1 ;
37572 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37573 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37574 wxSize const &arg5_defvalue = wxDefaultSize ;
37575 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37576 long arg6 = (long) 0 ;
37577 bool result;
37578 void *argp1 = 0 ;
37579 int res1 = 0 ;
37580 void *argp2 = 0 ;
37581 int res2 = 0 ;
37582 int val3 ;
37583 int ecode3 = 0 ;
37584 wxPoint temp4 ;
37585 wxSize temp5 ;
37586 long val6 ;
37587 int ecode6 = 0 ;
37588 PyObject * obj0 = 0 ;
37589 PyObject * obj1 = 0 ;
37590 PyObject * obj2 = 0 ;
37591 PyObject * obj3 = 0 ;
37592 PyObject * obj4 = 0 ;
37593 PyObject * obj5 = 0 ;
37594 char * kwnames[] = {
37595 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37596 };
37597
37598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37600 if (!SWIG_IsOK(res1)) {
37601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37602 }
37603 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37604 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37605 if (!SWIG_IsOK(res2)) {
37606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
37607 }
37608 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
37609 if (obj2) {
37610 ecode3 = SWIG_AsVal_int(obj2, &val3);
37611 if (!SWIG_IsOK(ecode3)) {
37612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37613 }
37614 arg3 = static_cast< int >(val3);
37615 }
37616 if (obj3) {
36ed4f51 37617 {
1bd55598
RD
37618 arg4 = &temp4;
37619 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 37620 }
1bd55598
RD
37621 }
37622 if (obj4) {
36ed4f51 37623 {
1bd55598
RD
37624 arg5 = &temp5;
37625 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37626 }
1bd55598
RD
37627 }
37628 if (obj5) {
37629 ecode6 = SWIG_AsVal_long(obj5, &val6);
37630 if (!SWIG_IsOK(ecode6)) {
37631 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
37632 }
37633 arg6 = static_cast< long >(val6);
37634 }
37635 {
37636 PyThreadState* __tstate = wxPyBeginAllowThreads();
37637 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
37638 wxPyEndAllowThreads(__tstate);
37639 if (PyErr_Occurred()) SWIG_fail;
37640 }
37641 {
37642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37643 }
37644 return resultobj;
37645fail:
37646 return NULL;
37647}
37648
37649
37650SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37651 PyObject *resultobj = 0;
37652 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37653 wxString *arg2 = 0 ;
37654 int arg3 ;
37655 void *argp1 = 0 ;
37656 int res1 = 0 ;
37657 bool temp2 = false ;
37658 int val3 ;
37659 int ecode3 = 0 ;
37660 PyObject * obj0 = 0 ;
37661 PyObject * obj1 = 0 ;
37662 PyObject * obj2 = 0 ;
37663 char * kwnames[] = {
37664 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
37665 };
37666
37667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37669 if (!SWIG_IsOK(res1)) {
37670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37671 }
37672 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37673 {
37674 arg2 = wxString_in_helper(obj1);
37675 if (arg2 == NULL) SWIG_fail;
37676 temp2 = true;
37677 }
37678 ecode3 = SWIG_AsVal_int(obj2, &val3);
37679 if (!SWIG_IsOK(ecode3)) {
37680 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
37681 }
37682 arg3 = static_cast< int >(val3);
37683 {
37684 PyThreadState* __tstate = wxPyBeginAllowThreads();
37685 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
37686 wxPyEndAllowThreads(__tstate);
37687 if (PyErr_Occurred()) SWIG_fail;
37688 }
37689 resultobj = SWIG_Py_Void();
37690 {
37691 if (temp2)
37692 delete arg2;
37693 }
37694 return resultobj;
37695fail:
37696 {
37697 if (temp2)
37698 delete arg2;
37699 }
37700 return NULL;
37701}
37702
37703
37704SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37705 PyObject *obj;
37706 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37707 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
37708 return SWIG_Py_Void();
37709}
37710
37711SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37712 return SWIG_Python_InitShadowInstance(args);
37713}
37714
37715SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37716 PyObject *resultobj = 0;
37717 wxWindow *arg1 = (wxWindow *) 0 ;
37718 int arg2 = (int) (int)-1 ;
37719 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37720 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37721 wxSize const &arg4_defvalue = wxDefaultSize ;
37722 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37723 long arg5 = (long) 0 ;
37724 wxValidator const &arg6_defvalue = wxDefaultValidator ;
37725 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
37726 wxString const &arg7_defvalue = wxPyControlNameStr ;
37727 wxString *arg7 = (wxString *) &arg7_defvalue ;
37728 wxPyControl *result = 0 ;
37729 void *argp1 = 0 ;
37730 int res1 = 0 ;
37731 int val2 ;
37732 int ecode2 = 0 ;
37733 wxPoint temp3 ;
37734 wxSize temp4 ;
37735 long val5 ;
37736 int ecode5 = 0 ;
37737 void *argp6 = 0 ;
37738 int res6 = 0 ;
37739 bool temp7 = false ;
37740 PyObject * obj0 = 0 ;
37741 PyObject * obj1 = 0 ;
37742 PyObject * obj2 = 0 ;
37743 PyObject * obj3 = 0 ;
37744 PyObject * obj4 = 0 ;
37745 PyObject * obj5 = 0 ;
37746 PyObject * obj6 = 0 ;
37747 char * kwnames[] = {
37748 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
37749 };
37750
37751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37753 if (!SWIG_IsOK(res1)) {
37754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
37755 }
37756 arg1 = reinterpret_cast< wxWindow * >(argp1);
37757 if (obj1) {
37758 ecode2 = SWIG_AsVal_int(obj1, &val2);
37759 if (!SWIG_IsOK(ecode2)) {
37760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
37761 }
37762 arg2 = static_cast< int >(val2);
37763 }
37764 if (obj2) {
d55e5bfc 37765 {
1bd55598
RD
37766 arg3 = &temp3;
37767 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 37768 }
1bd55598
RD
37769 }
37770 if (obj3) {
d55e5bfc 37771 {
1bd55598
RD
37772 arg4 = &temp4;
37773 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 37774 }
1bd55598
RD
37775 }
37776 if (obj4) {
37777 ecode5 = SWIG_AsVal_long(obj4, &val5);
37778 if (!SWIG_IsOK(ecode5)) {
37779 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
37780 }
37781 arg5 = static_cast< long >(val5);
37782 }
37783 if (obj5) {
37784 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
37785 if (!SWIG_IsOK(res6)) {
37786 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 37787 }
1bd55598
RD
37788 if (!argp6) {
37789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 37790 }
1bd55598
RD
37791 arg6 = reinterpret_cast< wxValidator * >(argp6);
37792 }
37793 if (obj6) {
f20a2e1f 37794 {
1bd55598
RD
37795 arg7 = wxString_in_helper(obj6);
37796 if (arg7 == NULL) SWIG_fail;
37797 temp7 = true;
f20a2e1f 37798 }
1bd55598
RD
37799 }
37800 {
37801 if (!wxPyCheckForApp()) SWIG_fail;
37802 PyThreadState* __tstate = wxPyBeginAllowThreads();
37803 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
37804 wxPyEndAllowThreads(__tstate);
37805 if (PyErr_Occurred()) SWIG_fail;
37806 }
37807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
37808 {
37809 if (temp7)
37810 delete arg7;
37811 }
37812 return resultobj;
37813fail:
37814 {
37815 if (temp7)
37816 delete arg7;
37817 }
37818 return NULL;
d55e5bfc
RD
37819}
37820
37821
1bd55598
RD
37822SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37823 PyObject *resultobj = 0;
37824 wxPyControl *result = 0 ;
37825
37826 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
37827 {
37828 if (!wxPyCheckForApp()) SWIG_fail;
37829 PyThreadState* __tstate = wxPyBeginAllowThreads();
37830 result = (wxPyControl *)new wxPyControl();
37831 wxPyEndAllowThreads(__tstate);
37832 if (PyErr_Occurred()) SWIG_fail;
37833 }
37834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
37835 return resultobj;
37836fail:
37837 return NULL;
37838}
37839
37840
37841SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37842 PyObject *resultobj = 0;
37843 wxPyControl *arg1 = (wxPyControl *) 0 ;
37844 PyObject *arg2 = (PyObject *) 0 ;
37845 PyObject *arg3 = (PyObject *) 0 ;
37846 void *argp1 = 0 ;
37847 int res1 = 0 ;
37848 PyObject * obj0 = 0 ;
37849 PyObject * obj1 = 0 ;
37850 PyObject * obj2 = 0 ;
37851 char * kwnames[] = {
37852 (char *) "self",(char *) "self",(char *) "_class", NULL
37853 };
37854
37855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
37857 if (!SWIG_IsOK(res1)) {
37858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
37859 }
37860 arg1 = reinterpret_cast< wxPyControl * >(argp1);
37861 arg2 = obj1;
37862 arg3 = obj2;
37863 {
37864 PyThreadState* __tstate = wxPyBeginAllowThreads();
37865 (arg1)->_setCallbackInfo(arg2,arg3);
37866 wxPyEndAllowThreads(__tstate);
37867 if (PyErr_Occurred()) SWIG_fail;
37868 }
37869 resultobj = SWIG_Py_Void();
37870 return resultobj;
37871fail:
37872 return NULL;
37873}
37874
37875
37876SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37877 PyObject *resultobj = 0;
37878 wxPyControl *arg1 = (wxPyControl *) 0 ;
37879 wxSize *arg2 = 0 ;
37880 void *argp1 = 0 ;
37881 int res1 = 0 ;
37882 wxSize temp2 ;
37883 PyObject * obj0 = 0 ;
37884 PyObject * obj1 = 0 ;
37885 char * kwnames[] = {
37886 (char *) "self",(char *) "size", NULL
37887 };
37888
37889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
37891 if (!SWIG_IsOK(res1)) {
37892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
37893 }
37894 arg1 = reinterpret_cast< wxPyControl * >(argp1);
37895 {
37896 arg2 = &temp2;
37897 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
37898 }
37899 {
37900 PyThreadState* __tstate = wxPyBeginAllowThreads();
37901 (arg1)->SetBestSize((wxSize const &)*arg2);
37902 wxPyEndAllowThreads(__tstate);
37903 if (PyErr_Occurred()) SWIG_fail;
37904 }
37905 resultobj = SWIG_Py_Void();
37906 return resultobj;
37907fail:
37908 return NULL;
37909}
37910
37911
37912SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37913 PyObject *resultobj = 0;
37914 wxPyControl *arg1 = (wxPyControl *) 0 ;
37915 wxDC *arg2 = (wxDC *) 0 ;
37916 bool result;
37917 void *argp1 = 0 ;
37918 int res1 = 0 ;
37919 void *argp2 = 0 ;
37920 int res2 = 0 ;
37921 PyObject * obj0 = 0 ;
37922 PyObject * obj1 = 0 ;
37923 char * kwnames[] = {
37924 (char *) "self",(char *) "dc", NULL
37925 };
37926
37927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
37928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
37929 if (!SWIG_IsOK(res1)) {
37930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
37931 }
37932 arg1 = reinterpret_cast< wxPyControl * >(argp1);
37933 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
37934 if (!SWIG_IsOK(res2)) {
37935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
37936 }
37937 arg2 = reinterpret_cast< wxDC * >(argp2);
37938 {
37939 PyThreadState* __tstate = wxPyBeginAllowThreads();
37940 result = (bool)(arg1)->DoEraseBackground(arg2);
37941 wxPyEndAllowThreads(__tstate);
37942 if (PyErr_Occurred()) SWIG_fail;
37943 }
37944 {
37945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37946 }
37947 return resultobj;
37948fail:
37949 return NULL;
37950}
37951
37952
37953SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37954 PyObject *resultobj = 0;
37955 wxPyControl *arg1 = (wxPyControl *) 0 ;
37956 int arg2 ;
37957 int arg3 ;
37958 int arg4 ;
37959 int arg5 ;
37960 void *argp1 = 0 ;
37961 int res1 = 0 ;
37962 int val2 ;
37963 int ecode2 = 0 ;
37964 int val3 ;
37965 int ecode3 = 0 ;
37966 int val4 ;
37967 int ecode4 = 0 ;
37968 int val5 ;
37969 int ecode5 = 0 ;
37970 PyObject * obj0 = 0 ;
37971 PyObject * obj1 = 0 ;
37972 PyObject * obj2 = 0 ;
37973 PyObject * obj3 = 0 ;
37974 PyObject * obj4 = 0 ;
37975 char * kwnames[] = {
37976 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37977 };
37978
37979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
37981 if (!SWIG_IsOK(res1)) {
37982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
37983 }
37984 arg1 = reinterpret_cast< wxPyControl * >(argp1);
37985 ecode2 = SWIG_AsVal_int(obj1, &val2);
37986 if (!SWIG_IsOK(ecode2)) {
37987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
37988 }
37989 arg2 = static_cast< int >(val2);
37990 ecode3 = SWIG_AsVal_int(obj2, &val3);
37991 if (!SWIG_IsOK(ecode3)) {
37992 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
37993 }
37994 arg3 = static_cast< int >(val3);
37995 ecode4 = SWIG_AsVal_int(obj3, &val4);
37996 if (!SWIG_IsOK(ecode4)) {
37997 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
37998 }
37999 arg4 = static_cast< int >(val4);
38000 ecode5 = SWIG_AsVal_int(obj4, &val5);
38001 if (!SWIG_IsOK(ecode5)) {
38002 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38003 }
38004 arg5 = static_cast< int >(val5);
38005 {
38006 PyThreadState* __tstate = wxPyBeginAllowThreads();
38007 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38008 wxPyEndAllowThreads(__tstate);
38009 if (PyErr_Occurred()) SWIG_fail;
38010 }
38011 resultobj = SWIG_Py_Void();
38012 return resultobj;
38013fail:
38014 return NULL;
38015}
38016
38017
38018SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38019 PyObject *resultobj = 0;
38020 wxPyControl *arg1 = (wxPyControl *) 0 ;
38021 int arg2 ;
38022 int arg3 ;
38023 int arg4 ;
38024 int arg5 ;
38025 int arg6 = (int) wxSIZE_AUTO ;
38026 void *argp1 = 0 ;
38027 int res1 = 0 ;
38028 int val2 ;
38029 int ecode2 = 0 ;
38030 int val3 ;
38031 int ecode3 = 0 ;
38032 int val4 ;
38033 int ecode4 = 0 ;
38034 int val5 ;
38035 int ecode5 = 0 ;
38036 int val6 ;
38037 int ecode6 = 0 ;
38038 PyObject * obj0 = 0 ;
38039 PyObject * obj1 = 0 ;
38040 PyObject * obj2 = 0 ;
38041 PyObject * obj3 = 0 ;
38042 PyObject * obj4 = 0 ;
38043 PyObject * obj5 = 0 ;
38044 char * kwnames[] = {
38045 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38046 };
38047
38048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38050 if (!SWIG_IsOK(res1)) {
38051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38052 }
38053 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38054 ecode2 = SWIG_AsVal_int(obj1, &val2);
38055 if (!SWIG_IsOK(ecode2)) {
38056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38057 }
38058 arg2 = static_cast< int >(val2);
38059 ecode3 = SWIG_AsVal_int(obj2, &val3);
38060 if (!SWIG_IsOK(ecode3)) {
38061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38062 }
38063 arg3 = static_cast< int >(val3);
38064 ecode4 = SWIG_AsVal_int(obj3, &val4);
38065 if (!SWIG_IsOK(ecode4)) {
38066 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38067 }
38068 arg4 = static_cast< int >(val4);
38069 ecode5 = SWIG_AsVal_int(obj4, &val5);
38070 if (!SWIG_IsOK(ecode5)) {
38071 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38072 }
38073 arg5 = static_cast< int >(val5);
38074 if (obj5) {
38075 ecode6 = SWIG_AsVal_int(obj5, &val6);
38076 if (!SWIG_IsOK(ecode6)) {
38077 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38078 }
38079 arg6 = static_cast< int >(val6);
38080 }
38081 {
38082 PyThreadState* __tstate = wxPyBeginAllowThreads();
38083 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38084 wxPyEndAllowThreads(__tstate);
38085 if (PyErr_Occurred()) SWIG_fail;
38086 }
38087 resultobj = SWIG_Py_Void();
38088 return resultobj;
38089fail:
38090 return NULL;
38091}
38092
38093
38094SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38095 PyObject *resultobj = 0;
38096 wxPyControl *arg1 = (wxPyControl *) 0 ;
38097 int arg2 ;
38098 int arg3 ;
38099 void *argp1 = 0 ;
38100 int res1 = 0 ;
38101 int val2 ;
38102 int ecode2 = 0 ;
38103 int val3 ;
38104 int ecode3 = 0 ;
38105 PyObject * obj0 = 0 ;
38106 PyObject * obj1 = 0 ;
38107 PyObject * obj2 = 0 ;
38108 char * kwnames[] = {
38109 (char *) "self",(char *) "width",(char *) "height", NULL
38110 };
38111
38112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38114 if (!SWIG_IsOK(res1)) {
38115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38116 }
38117 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38118 ecode2 = SWIG_AsVal_int(obj1, &val2);
38119 if (!SWIG_IsOK(ecode2)) {
38120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38121 }
38122 arg2 = static_cast< int >(val2);
38123 ecode3 = SWIG_AsVal_int(obj2, &val3);
38124 if (!SWIG_IsOK(ecode3)) {
38125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38126 }
38127 arg3 = static_cast< int >(val3);
38128 {
38129 PyThreadState* __tstate = wxPyBeginAllowThreads();
38130 (arg1)->DoSetClientSize(arg2,arg3);
38131 wxPyEndAllowThreads(__tstate);
38132 if (PyErr_Occurred()) SWIG_fail;
38133 }
38134 resultobj = SWIG_Py_Void();
38135 return resultobj;
38136fail:
38137 return NULL;
38138}
38139
38140
38141SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38142 PyObject *resultobj = 0;
38143 wxPyControl *arg1 = (wxPyControl *) 0 ;
38144 int arg2 ;
38145 int arg3 ;
38146 void *argp1 = 0 ;
38147 int res1 = 0 ;
38148 int val2 ;
38149 int ecode2 = 0 ;
38150 int val3 ;
38151 int ecode3 = 0 ;
38152 PyObject * obj0 = 0 ;
38153 PyObject * obj1 = 0 ;
38154 PyObject * obj2 = 0 ;
38155 char * kwnames[] = {
38156 (char *) "self",(char *) "x",(char *) "y", NULL
38157 };
38158
38159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38161 if (!SWIG_IsOK(res1)) {
38162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38163 }
38164 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38165 ecode2 = SWIG_AsVal_int(obj1, &val2);
38166 if (!SWIG_IsOK(ecode2)) {
38167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38168 }
38169 arg2 = static_cast< int >(val2);
38170 ecode3 = SWIG_AsVal_int(obj2, &val3);
38171 if (!SWIG_IsOK(ecode3)) {
38172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38173 }
38174 arg3 = static_cast< int >(val3);
38175 {
38176 PyThreadState* __tstate = wxPyBeginAllowThreads();
38177 (arg1)->DoSetVirtualSize(arg2,arg3);
38178 wxPyEndAllowThreads(__tstate);
38179 if (PyErr_Occurred()) SWIG_fail;
38180 }
38181 resultobj = SWIG_Py_Void();
38182 return resultobj;
38183fail:
38184 return NULL;
38185}
38186
38187
38188SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38189 PyObject *resultobj = 0;
38190 wxPyControl *arg1 = (wxPyControl *) 0 ;
38191 int *arg2 = (int *) 0 ;
38192 int *arg3 = (int *) 0 ;
38193 void *argp1 = 0 ;
38194 int res1 = 0 ;
38195 int temp2 ;
38196 int res2 = SWIG_TMPOBJ ;
38197 int temp3 ;
38198 int res3 = SWIG_TMPOBJ ;
38199 PyObject *swig_obj[1] ;
38200
38201 arg2 = &temp2;
38202 arg3 = &temp3;
38203 if (!args) SWIG_fail;
38204 swig_obj[0] = args;
38205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38206 if (!SWIG_IsOK(res1)) {
38207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38208 }
38209 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38210 {
38211 PyThreadState* __tstate = wxPyBeginAllowThreads();
38212 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38213 wxPyEndAllowThreads(__tstate);
38214 if (PyErr_Occurred()) SWIG_fail;
38215 }
38216 resultobj = SWIG_Py_Void();
38217 if (SWIG_IsTmpObj(res2)) {
38218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38219 } else {
38220 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38222 }
38223 if (SWIG_IsTmpObj(res3)) {
38224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38225 } else {
38226 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38227 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38228 }
38229 return resultobj;
38230fail:
38231 return NULL;
38232}
38233
38234
38235SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38236 PyObject *resultobj = 0;
38237 wxPyControl *arg1 = (wxPyControl *) 0 ;
38238 int *arg2 = (int *) 0 ;
38239 int *arg3 = (int *) 0 ;
38240 void *argp1 = 0 ;
38241 int res1 = 0 ;
38242 int temp2 ;
38243 int res2 = SWIG_TMPOBJ ;
38244 int temp3 ;
38245 int res3 = SWIG_TMPOBJ ;
38246 PyObject *swig_obj[1] ;
38247
38248 arg2 = &temp2;
38249 arg3 = &temp3;
38250 if (!args) SWIG_fail;
38251 swig_obj[0] = args;
38252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38253 if (!SWIG_IsOK(res1)) {
38254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38255 }
38256 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38257 {
38258 PyThreadState* __tstate = wxPyBeginAllowThreads();
38259 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38260 wxPyEndAllowThreads(__tstate);
38261 if (PyErr_Occurred()) SWIG_fail;
38262 }
38263 resultobj = SWIG_Py_Void();
38264 if (SWIG_IsTmpObj(res2)) {
38265 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38266 } else {
38267 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38268 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38269 }
38270 if (SWIG_IsTmpObj(res3)) {
38271 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38272 } else {
38273 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38274 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38275 }
38276 return resultobj;
38277fail:
38278 return NULL;
38279}
38280
38281
38282SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38283 PyObject *resultobj = 0;
38284 wxPyControl *arg1 = (wxPyControl *) 0 ;
38285 int *arg2 = (int *) 0 ;
38286 int *arg3 = (int *) 0 ;
38287 void *argp1 = 0 ;
38288 int res1 = 0 ;
38289 int temp2 ;
38290 int res2 = SWIG_TMPOBJ ;
38291 int temp3 ;
38292 int res3 = SWIG_TMPOBJ ;
38293 PyObject *swig_obj[1] ;
38294
38295 arg2 = &temp2;
38296 arg3 = &temp3;
38297 if (!args) SWIG_fail;
38298 swig_obj[0] = args;
38299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38300 if (!SWIG_IsOK(res1)) {
38301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38302 }
38303 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38304 {
38305 PyThreadState* __tstate = wxPyBeginAllowThreads();
38306 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38307 wxPyEndAllowThreads(__tstate);
38308 if (PyErr_Occurred()) SWIG_fail;
38309 }
38310 resultobj = SWIG_Py_Void();
38311 if (SWIG_IsTmpObj(res2)) {
38312 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38313 } else {
38314 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38315 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38316 }
38317 if (SWIG_IsTmpObj(res3)) {
38318 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38319 } else {
38320 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38321 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38322 }
38323 return resultobj;
38324fail:
38325 return NULL;
d55e5bfc
RD
38326}
38327
38328
1bd55598
RD
38329SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38330 PyObject *resultobj = 0;
38331 wxPyControl *arg1 = (wxPyControl *) 0 ;
38332 wxSize result;
38333 void *argp1 = 0 ;
38334 int res1 = 0 ;
38335 PyObject *swig_obj[1] ;
38336
38337 if (!args) SWIG_fail;
38338 swig_obj[0] = args;
38339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38340 if (!SWIG_IsOK(res1)) {
38341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38342 }
38343 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38344 {
38345 PyThreadState* __tstate = wxPyBeginAllowThreads();
38346 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38347 wxPyEndAllowThreads(__tstate);
38348 if (PyErr_Occurred()) SWIG_fail;
38349 }
38350 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38351 return resultobj;
38352fail:
38353 return NULL;
7e08d4ef
RD
38354}
38355
38356
1bd55598
RD
38357SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38358 PyObject *resultobj = 0;
38359 wxPyControl *arg1 = (wxPyControl *) 0 ;
38360 wxSize result;
38361 void *argp1 = 0 ;
38362 int res1 = 0 ;
38363 PyObject *swig_obj[1] ;
38364
38365 if (!args) SWIG_fail;
38366 swig_obj[0] = args;
38367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38368 if (!SWIG_IsOK(res1)) {
38369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38370 }
38371 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38372 {
38373 PyThreadState* __tstate = wxPyBeginAllowThreads();
38374 result = ((wxPyControl const *)arg1)->DoGetBestSize();
38375 wxPyEndAllowThreads(__tstate);
38376 if (PyErr_Occurred()) SWIG_fail;
38377 }
38378 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38379 return resultobj;
38380fail:
38381 return NULL;
d55e5bfc
RD
38382}
38383
38384
1bd55598
RD
38385SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38386 PyObject *resultobj = 0;
38387 wxPyControl *arg1 = (wxPyControl *) 0 ;
38388 SwigValueWrapper<wxVisualAttributes > result;
38389 void *argp1 = 0 ;
38390 int res1 = 0 ;
38391 PyObject *swig_obj[1] ;
38392
38393 if (!args) SWIG_fail;
38394 swig_obj[0] = args;
38395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38396 if (!SWIG_IsOK(res1)) {
38397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
38398 }
38399 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38400 {
38401 PyThreadState* __tstate = wxPyBeginAllowThreads();
38402 result = (arg1)->GetDefaultAttributes();
38403 wxPyEndAllowThreads(__tstate);
38404 if (PyErr_Occurred()) SWIG_fail;
38405 }
38406 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38407 return resultobj;
38408fail:
38409 return NULL;
d55e5bfc
RD
38410}
38411
38412
1bd55598
RD
38413SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38414 PyObject *resultobj = 0;
38415 wxPyControl *arg1 = (wxPyControl *) 0 ;
38416 void *argp1 = 0 ;
38417 int res1 = 0 ;
38418 PyObject *swig_obj[1] ;
38419
38420 if (!args) SWIG_fail;
38421 swig_obj[0] = args;
38422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38423 if (!SWIG_IsOK(res1)) {
38424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
38425 }
38426 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38427 {
38428 PyThreadState* __tstate = wxPyBeginAllowThreads();
38429 (arg1)->OnInternalIdle();
38430 wxPyEndAllowThreads(__tstate);
38431 if (PyErr_Occurred()) SWIG_fail;
38432 }
38433 resultobj = SWIG_Py_Void();
38434 return resultobj;
38435fail:
38436 return NULL;
38437}
38438
38439
38440SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38441 PyObject *obj;
38442 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38443 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
38444 return SWIG_Py_Void();
38445}
38446
38447SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38448 return SWIG_Python_InitShadowInstance(args);
38449}
38450
38451SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38452 PyObject *resultobj = 0;
38453 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
38454 int arg2 = (int) 0 ;
38455 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38456 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38457 wxHelpEvent *result = 0 ;
38458 int val1 ;
38459 int ecode1 = 0 ;
38460 int val2 ;
38461 int ecode2 = 0 ;
38462 wxPoint temp3 ;
38463 PyObject * obj0 = 0 ;
38464 PyObject * obj1 = 0 ;
38465 PyObject * obj2 = 0 ;
38466 char * kwnames[] = {
38467 (char *) "type",(char *) "winid",(char *) "pt", NULL
38468 };
38469
38470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38471 if (obj0) {
38472 ecode1 = SWIG_AsVal_int(obj0, &val1);
38473 if (!SWIG_IsOK(ecode1)) {
38474 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
38475 }
38476 arg1 = static_cast< wxEventType >(val1);
38477 }
38478 if (obj1) {
38479 ecode2 = SWIG_AsVal_int(obj1, &val2);
38480 if (!SWIG_IsOK(ecode2)) {
38481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
38482 }
38483 arg2 = static_cast< int >(val2);
38484 }
38485 if (obj2) {
d55e5bfc 38486 {
1bd55598
RD
38487 arg3 = &temp3;
38488 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38489 }
1bd55598
RD
38490 }
38491 {
38492 PyThreadState* __tstate = wxPyBeginAllowThreads();
38493 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
38494 wxPyEndAllowThreads(__tstate);
38495 if (PyErr_Occurred()) SWIG_fail;
38496 }
38497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
38498 return resultobj;
38499fail:
38500 return NULL;
d55e5bfc
RD
38501}
38502
38503
1bd55598
RD
38504SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38505 PyObject *resultobj = 0;
38506 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38507 wxPoint result;
38508 void *argp1 = 0 ;
38509 int res1 = 0 ;
38510 PyObject *swig_obj[1] ;
38511
38512 if (!args) SWIG_fail;
38513 swig_obj[0] = args;
38514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38515 if (!SWIG_IsOK(res1)) {
38516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38517 }
38518 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38519 {
38520 PyThreadState* __tstate = wxPyBeginAllowThreads();
38521 result = ((wxHelpEvent const *)arg1)->GetPosition();
38522 wxPyEndAllowThreads(__tstate);
38523 if (PyErr_Occurred()) SWIG_fail;
38524 }
38525 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
38526 return resultobj;
38527fail:
38528 return NULL;
38529}
38530
38531
38532SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38533 PyObject *resultobj = 0;
38534 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38535 wxPoint *arg2 = 0 ;
38536 void *argp1 = 0 ;
38537 int res1 = 0 ;
38538 wxPoint temp2 ;
38539 PyObject * obj0 = 0 ;
38540 PyObject * obj1 = 0 ;
38541 char * kwnames[] = {
38542 (char *) "self",(char *) "pos", NULL
38543 };
38544
38545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
38546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38547 if (!SWIG_IsOK(res1)) {
38548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38549 }
38550 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38551 {
38552 arg2 = &temp2;
38553 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38554 }
38555 {
38556 PyThreadState* __tstate = wxPyBeginAllowThreads();
38557 (arg1)->SetPosition((wxPoint const &)*arg2);
38558 wxPyEndAllowThreads(__tstate);
38559 if (PyErr_Occurred()) SWIG_fail;
38560 }
38561 resultobj = SWIG_Py_Void();
38562 return resultobj;
38563fail:
38564 return NULL;
d55e5bfc
RD
38565}
38566
38567
1bd55598
RD
38568SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38569 PyObject *resultobj = 0;
38570 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38571 wxString *result = 0 ;
38572 void *argp1 = 0 ;
38573 int res1 = 0 ;
38574 PyObject *swig_obj[1] ;
38575
38576 if (!args) SWIG_fail;
38577 swig_obj[0] = args;
38578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38579 if (!SWIG_IsOK(res1)) {
38580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38581 }
38582 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38583 {
38584 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 38585 {
1bd55598
RD
38586 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
38587 result = (wxString *) &_result_ref;
d55e5bfc 38588 }
1bd55598
RD
38589 wxPyEndAllowThreads(__tstate);
38590 if (PyErr_Occurred()) SWIG_fail;
38591 }
38592 {
38593#if wxUSE_UNICODE
38594 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38595#else
38596 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38597#endif
38598 }
38599 return resultobj;
38600fail:
38601 return NULL;
38602}
38603
38604
38605SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38606 PyObject *resultobj = 0;
38607 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38608 wxString *arg2 = 0 ;
38609 void *argp1 = 0 ;
38610 int res1 = 0 ;
38611 bool temp2 = false ;
38612 PyObject * obj0 = 0 ;
38613 PyObject * obj1 = 0 ;
38614 char * kwnames[] = {
38615 (char *) "self",(char *) "link", NULL
38616 };
38617
38618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
38619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38620 if (!SWIG_IsOK(res1)) {
38621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38622 }
38623 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38624 {
38625 arg2 = wxString_in_helper(obj1);
38626 if (arg2 == NULL) SWIG_fail;
38627 temp2 = true;
38628 }
38629 {
38630 PyThreadState* __tstate = wxPyBeginAllowThreads();
38631 (arg1)->SetLink((wxString const &)*arg2);
38632 wxPyEndAllowThreads(__tstate);
38633 if (PyErr_Occurred()) SWIG_fail;
38634 }
38635 resultobj = SWIG_Py_Void();
38636 {
38637 if (temp2)
38638 delete arg2;
38639 }
38640 return resultobj;
38641fail:
38642 {
38643 if (temp2)
38644 delete arg2;
38645 }
38646 return NULL;
d55e5bfc
RD
38647}
38648
38649
1bd55598
RD
38650SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38651 PyObject *resultobj = 0;
38652 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38653 wxString *result = 0 ;
38654 void *argp1 = 0 ;
38655 int res1 = 0 ;
38656 PyObject *swig_obj[1] ;
38657
38658 if (!args) SWIG_fail;
38659 swig_obj[0] = args;
38660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38661 if (!SWIG_IsOK(res1)) {
38662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38663 }
38664 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38665 {
38666 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 38667 {
1bd55598
RD
38668 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
38669 result = (wxString *) &_result_ref;
d55e5bfc 38670 }
1bd55598
RD
38671 wxPyEndAllowThreads(__tstate);
38672 if (PyErr_Occurred()) SWIG_fail;
38673 }
38674 {
38675#if wxUSE_UNICODE
38676 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38677#else
38678 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38679#endif
38680 }
38681 return resultobj;
38682fail:
38683 return NULL;
38684}
38685
38686
38687SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38688 PyObject *resultobj = 0;
38689 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38690 wxString *arg2 = 0 ;
38691 void *argp1 = 0 ;
38692 int res1 = 0 ;
38693 bool temp2 = false ;
38694 PyObject * obj0 = 0 ;
38695 PyObject * obj1 = 0 ;
38696 char * kwnames[] = {
38697 (char *) "self",(char *) "target", NULL
38698 };
38699
38700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
38701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38702 if (!SWIG_IsOK(res1)) {
38703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38704 }
38705 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38706 {
38707 arg2 = wxString_in_helper(obj1);
38708 if (arg2 == NULL) SWIG_fail;
38709 temp2 = true;
38710 }
38711 {
38712 PyThreadState* __tstate = wxPyBeginAllowThreads();
38713 (arg1)->SetTarget((wxString const &)*arg2);
38714 wxPyEndAllowThreads(__tstate);
38715 if (PyErr_Occurred()) SWIG_fail;
38716 }
38717 resultobj = SWIG_Py_Void();
38718 {
38719 if (temp2)
38720 delete arg2;
38721 }
38722 return resultobj;
38723fail:
38724 {
38725 if (temp2)
38726 delete arg2;
38727 }
38728 return NULL;
d55e5bfc
RD
38729}
38730
38731
1bd55598
RD
38732SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38733 PyObject *obj;
38734 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38735 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
38736 return SWIG_Py_Void();
38737}
38738
38739SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38740 return SWIG_Python_InitShadowInstance(args);
38741}
38742
38743SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38744 PyObject *resultobj = 0;
38745 wxWindow *arg1 = (wxWindow *) NULL ;
38746 bool arg2 = (bool) true ;
38747 wxContextHelp *result = 0 ;
38748 void *argp1 = 0 ;
38749 int res1 = 0 ;
38750 bool val2 ;
38751 int ecode2 = 0 ;
38752 PyObject * obj0 = 0 ;
38753 PyObject * obj1 = 0 ;
38754 char * kwnames[] = {
38755 (char *) "window",(char *) "doNow", NULL
38756 };
38757
38758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
38759 if (obj0) {
38760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38761 if (!SWIG_IsOK(res1)) {
38762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 38763 }
1bd55598
RD
38764 arg1 = reinterpret_cast< wxWindow * >(argp1);
38765 }
38766 if (obj1) {
38767 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38768 if (!SWIG_IsOK(ecode2)) {
38769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
38770 }
38771 arg2 = static_cast< bool >(val2);
38772 }
38773 {
38774 if (!wxPyCheckForApp()) SWIG_fail;
38775 PyThreadState* __tstate = wxPyBeginAllowThreads();
38776 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
38777 wxPyEndAllowThreads(__tstate);
38778 if (PyErr_Occurred()) SWIG_fail;
38779 }
38780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
38781 return resultobj;
38782fail:
38783 return NULL;
d55e5bfc
RD
38784}
38785
38786
1bd55598
RD
38787SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38788 PyObject *resultobj = 0;
38789 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
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_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
38797 if (!SWIG_IsOK(res1)) {
38798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
38799 }
38800 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
38801 {
38802 PyThreadState* __tstate = wxPyBeginAllowThreads();
38803 delete arg1;
d55e5bfc 38804
1bd55598
RD
38805 wxPyEndAllowThreads(__tstate);
38806 if (PyErr_Occurred()) SWIG_fail;
38807 }
38808 resultobj = SWIG_Py_Void();
38809 return resultobj;
38810fail:
38811 return NULL;
38812}
38813
38814
38815SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38816 PyObject *resultobj = 0;
38817 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
38818 wxWindow *arg2 = (wxWindow *) NULL ;
38819 bool result;
38820 void *argp1 = 0 ;
38821 int res1 = 0 ;
38822 void *argp2 = 0 ;
38823 int res2 = 0 ;
38824 PyObject * obj0 = 0 ;
38825 PyObject * obj1 = 0 ;
38826 char * kwnames[] = {
38827 (char *) "self",(char *) "window", NULL
38828 };
38829
38830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
38831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
38832 if (!SWIG_IsOK(res1)) {
38833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
38834 }
38835 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
38836 if (obj1) {
38837 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
38838 if (!SWIG_IsOK(res2)) {
38839 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
d55e5bfc 38840 }
1bd55598
RD
38841 arg2 = reinterpret_cast< wxWindow * >(argp2);
38842 }
38843 {
38844 PyThreadState* __tstate = wxPyBeginAllowThreads();
38845 result = (bool)(arg1)->BeginContextHelp(arg2);
38846 wxPyEndAllowThreads(__tstate);
38847 if (PyErr_Occurred()) SWIG_fail;
38848 }
38849 {
38850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38851 }
38852 return resultobj;
38853fail:
38854 return NULL;
d55e5bfc
RD
38855}
38856
38857
1bd55598
RD
38858SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38859 PyObject *resultobj = 0;
38860 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
38861 bool result;
38862 void *argp1 = 0 ;
38863 int res1 = 0 ;
38864 PyObject *swig_obj[1] ;
38865
38866 if (!args) SWIG_fail;
38867 swig_obj[0] = args;
38868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
38869 if (!SWIG_IsOK(res1)) {
38870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
38871 }
38872 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
38873 {
38874 PyThreadState* __tstate = wxPyBeginAllowThreads();
38875 result = (bool)(arg1)->EndContextHelp();
38876 wxPyEndAllowThreads(__tstate);
38877 if (PyErr_Occurred()) SWIG_fail;
38878 }
38879 {
38880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38881 }
38882 return resultobj;
38883fail:
38884 return NULL;
38885}
38886
38887
38888SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38889 PyObject *obj;
38890 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38891 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
38892 return SWIG_Py_Void();
38893}
38894
38895SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38896 return SWIG_Python_InitShadowInstance(args);
38897}
38898
38899SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38900 PyObject *resultobj = 0;
38901 wxWindow *arg1 = (wxWindow *) 0 ;
38902 int arg2 = (int) wxID_CONTEXT_HELP ;
38903 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38904 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38905 wxSize const &arg4_defvalue = wxDefaultSize ;
38906 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38907 long arg5 = (long) wxBU_AUTODRAW ;
38908 wxContextHelpButton *result = 0 ;
38909 void *argp1 = 0 ;
38910 int res1 = 0 ;
38911 int val2 ;
38912 int ecode2 = 0 ;
38913 wxPoint temp3 ;
38914 wxSize temp4 ;
38915 long val5 ;
38916 int ecode5 = 0 ;
38917 PyObject * obj0 = 0 ;
38918 PyObject * obj1 = 0 ;
38919 PyObject * obj2 = 0 ;
38920 PyObject * obj3 = 0 ;
38921 PyObject * obj4 = 0 ;
38922 char * kwnames[] = {
38923 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38924 };
38925
38926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38928 if (!SWIG_IsOK(res1)) {
38929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
38930 }
38931 arg1 = reinterpret_cast< wxWindow * >(argp1);
38932 if (obj1) {
38933 ecode2 = SWIG_AsVal_int(obj1, &val2);
38934 if (!SWIG_IsOK(ecode2)) {
38935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
38936 }
38937 arg2 = static_cast< int >(val2);
38938 }
38939 if (obj2) {
d55e5bfc 38940 {
1bd55598
RD
38941 arg3 = &temp3;
38942 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38943 }
1bd55598
RD
38944 }
38945 if (obj3) {
d55e5bfc 38946 {
1bd55598
RD
38947 arg4 = &temp4;
38948 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38949 }
1bd55598
RD
38950 }
38951 if (obj4) {
38952 ecode5 = SWIG_AsVal_long(obj4, &val5);
38953 if (!SWIG_IsOK(ecode5)) {
38954 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
38955 }
38956 arg5 = static_cast< long >(val5);
38957 }
38958 {
38959 if (!wxPyCheckForApp()) SWIG_fail;
38960 PyThreadState* __tstate = wxPyBeginAllowThreads();
38961 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38962 wxPyEndAllowThreads(__tstate);
38963 if (PyErr_Occurred()) SWIG_fail;
38964 }
38965 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
38966 return resultobj;
38967fail:
38968 return NULL;
d55e5bfc
RD
38969}
38970
38971
1bd55598
RD
38972SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38973 PyObject *obj;
38974 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38975 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
38976 return SWIG_Py_Void();
d55e5bfc
RD
38977}
38978
1bd55598
RD
38979SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38980 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
38981}
38982
f52cbe90
RD
38983SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38984 PyObject *resultobj = 0;
38985 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
38986 void *argp1 = 0 ;
38987 int res1 = 0 ;
38988 PyObject *swig_obj[1] ;
38989
38990 if (!args) SWIG_fail;
38991 swig_obj[0] = args;
38992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
38993 if (!SWIG_IsOK(res1)) {
38994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
38995 }
38996 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
38997 {
38998 PyThreadState* __tstate = wxPyBeginAllowThreads();
38999 delete arg1;
39000
39001 wxPyEndAllowThreads(__tstate);
39002 if (PyErr_Occurred()) SWIG_fail;
39003 }
39004 resultobj = SWIG_Py_Void();
39005 return resultobj;
39006fail:
39007 return NULL;
39008}
39009
39010
1bd55598
RD
39011SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39012 PyObject *resultobj = 0;
39013 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39014 wxHelpProvider *result = 0 ;
39015 int res1 = 0 ;
39016 PyObject * obj0 = 0 ;
39017 char * kwnames[] = {
39018 (char *) "helpProvider", NULL
39019 };
39020
39021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39022 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39023 if (!SWIG_IsOK(res1)) {
39024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39025 }
39026 {
39027 PyThreadState* __tstate = wxPyBeginAllowThreads();
39028 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39029 wxPyEndAllowThreads(__tstate);
39030 if (PyErr_Occurred()) SWIG_fail;
39031 }
39032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39033 return resultobj;
39034fail:
39035 return NULL;
d55e5bfc
RD
39036}
39037
39038
1bd55598
RD
39039SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39040 PyObject *resultobj = 0;
39041 wxHelpProvider *result = 0 ;
39042
39043 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39044 {
39045 PyThreadState* __tstate = wxPyBeginAllowThreads();
39046 result = (wxHelpProvider *)wxHelpProvider::Get();
39047 wxPyEndAllowThreads(__tstate);
39048 if (PyErr_Occurred()) SWIG_fail;
39049 }
39050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39051 return resultobj;
39052fail:
39053 return NULL;
39054}
39055
39056
39057SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39058 PyObject *resultobj = 0;
39059 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39060 wxWindow *arg2 = (wxWindow *) 0 ;
39061 wxString result;
39062 void *argp1 = 0 ;
39063 int res1 = 0 ;
39064 void *argp2 = 0 ;
39065 int res2 = 0 ;
39066 PyObject * obj0 = 0 ;
39067 PyObject * obj1 = 0 ;
39068 char * kwnames[] = {
39069 (char *) "self",(char *) "window", NULL
39070 };
39071
39072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39074 if (!SWIG_IsOK(res1)) {
39075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39076 }
39077 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39078 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39079 if (!SWIG_IsOK(res2)) {
39080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39081 }
39082 arg2 = reinterpret_cast< wxWindow * >(argp2);
39083 {
39084 PyThreadState* __tstate = wxPyBeginAllowThreads();
39085 result = (arg1)->GetHelp((wxWindow const *)arg2);
39086 wxPyEndAllowThreads(__tstate);
39087 if (PyErr_Occurred()) SWIG_fail;
39088 }
39089 {
39090#if wxUSE_UNICODE
39091 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39092#else
39093 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39094#endif
39095 }
39096 return resultobj;
39097fail:
39098 return NULL;
39099}
39100
39101
39102SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39103 PyObject *resultobj = 0;
39104 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39105 wxWindow *arg2 = (wxWindow *) 0 ;
39106 bool result;
39107 void *argp1 = 0 ;
39108 int res1 = 0 ;
39109 void *argp2 = 0 ;
39110 int res2 = 0 ;
39111 PyObject * obj0 = 0 ;
39112 PyObject * obj1 = 0 ;
39113 char * kwnames[] = {
39114 (char *) "self",(char *) "window", NULL
39115 };
39116
39117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39119 if (!SWIG_IsOK(res1)) {
39120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39121 }
39122 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39123 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39124 if (!SWIG_IsOK(res2)) {
39125 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39126 }
39127 arg2 = reinterpret_cast< wxWindow * >(argp2);
39128 {
39129 PyThreadState* __tstate = wxPyBeginAllowThreads();
39130 result = (bool)(arg1)->ShowHelp(arg2);
39131 wxPyEndAllowThreads(__tstate);
39132 if (PyErr_Occurred()) SWIG_fail;
39133 }
39134 {
39135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39136 }
39137 return resultobj;
39138fail:
39139 return NULL;
39140}
39141
39142
39143SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39144 PyObject *resultobj = 0;
39145 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39146 wxWindow *arg2 = (wxWindow *) 0 ;
39147 wxString *arg3 = 0 ;
39148 void *argp1 = 0 ;
39149 int res1 = 0 ;
39150 void *argp2 = 0 ;
39151 int res2 = 0 ;
39152 bool temp3 = false ;
39153 PyObject * obj0 = 0 ;
39154 PyObject * obj1 = 0 ;
39155 PyObject * obj2 = 0 ;
39156 char * kwnames[] = {
39157 (char *) "self",(char *) "window",(char *) "text", NULL
39158 };
39159
39160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39162 if (!SWIG_IsOK(res1)) {
39163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39164 }
39165 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39166 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39167 if (!SWIG_IsOK(res2)) {
39168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39169 }
39170 arg2 = reinterpret_cast< wxWindow * >(argp2);
39171 {
39172 arg3 = wxString_in_helper(obj2);
39173 if (arg3 == NULL) SWIG_fail;
39174 temp3 = true;
39175 }
39176 {
39177 PyThreadState* __tstate = wxPyBeginAllowThreads();
39178 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39179 wxPyEndAllowThreads(__tstate);
39180 if (PyErr_Occurred()) SWIG_fail;
39181 }
39182 resultobj = SWIG_Py_Void();
39183 {
39184 if (temp3)
39185 delete arg3;
39186 }
39187 return resultobj;
39188fail:
39189 {
39190 if (temp3)
39191 delete arg3;
39192 }
39193 return NULL;
39194}
39195
39196
39197SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39198 PyObject *resultobj = 0;
39199 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39200 int arg2 ;
39201 wxString *arg3 = 0 ;
39202 void *argp1 = 0 ;
39203 int res1 = 0 ;
39204 int val2 ;
39205 int ecode2 = 0 ;
39206 bool temp3 = false ;
39207 PyObject * obj0 = 0 ;
39208 PyObject * obj1 = 0 ;
39209 PyObject * obj2 = 0 ;
39210 char * kwnames[] = {
39211 (char *) "self",(char *) "id",(char *) "text", NULL
39212 };
39213
39214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39216 if (!SWIG_IsOK(res1)) {
39217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39218 }
39219 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39220 ecode2 = SWIG_AsVal_int(obj1, &val2);
39221 if (!SWIG_IsOK(ecode2)) {
39222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
39223 }
39224 arg2 = static_cast< int >(val2);
39225 {
39226 arg3 = wxString_in_helper(obj2);
39227 if (arg3 == NULL) SWIG_fail;
39228 temp3 = true;
39229 }
39230 {
39231 PyThreadState* __tstate = wxPyBeginAllowThreads();
39232 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39233 wxPyEndAllowThreads(__tstate);
39234 if (PyErr_Occurred()) SWIG_fail;
39235 }
39236 resultobj = SWIG_Py_Void();
39237 {
39238 if (temp3)
39239 delete arg3;
39240 }
39241 return resultobj;
39242fail:
39243 {
39244 if (temp3)
39245 delete arg3;
39246 }
39247 return NULL;
39248}
39249
39250
39251SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39252 PyObject *resultobj = 0;
39253 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39254 wxWindow *arg2 = (wxWindow *) 0 ;
39255 void *argp1 = 0 ;
39256 int res1 = 0 ;
39257 void *argp2 = 0 ;
39258 int res2 = 0 ;
39259 PyObject * obj0 = 0 ;
39260 PyObject * obj1 = 0 ;
39261 char * kwnames[] = {
39262 (char *) "self",(char *) "window", NULL
39263 };
39264
39265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39267 if (!SWIG_IsOK(res1)) {
39268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39269 }
39270 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39271 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39272 if (!SWIG_IsOK(res2)) {
39273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39274 }
39275 arg2 = reinterpret_cast< wxWindow * >(argp2);
39276 {
39277 PyThreadState* __tstate = wxPyBeginAllowThreads();
39278 (arg1)->RemoveHelp(arg2);
39279 wxPyEndAllowThreads(__tstate);
39280 if (PyErr_Occurred()) SWIG_fail;
39281 }
39282 resultobj = SWIG_Py_Void();
39283 return resultobj;
39284fail:
39285 return NULL;
d55e5bfc
RD
39286}
39287
39288
1bd55598
RD
39289SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39290 PyObject *resultobj = 0;
39291 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39292 void *argp1 = 0 ;
39293 int res1 = 0 ;
39294 PyObject *swig_obj[1] ;
39295
39296 if (!args) SWIG_fail;
39297 swig_obj[0] = args;
39298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39299 if (!SWIG_IsOK(res1)) {
39300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39301 }
39302 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39303 {
39304 PyThreadState* __tstate = wxPyBeginAllowThreads();
39305 wxHelpProvider_Destroy(arg1);
39306 wxPyEndAllowThreads(__tstate);
39307 if (PyErr_Occurred()) SWIG_fail;
39308 }
39309 resultobj = SWIG_Py_Void();
39310 return resultobj;
39311fail:
39312 return NULL;
d55e5bfc
RD
39313}
39314
39315
1bd55598
RD
39316SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39317 PyObject *obj;
39318 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39319 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
39320 return SWIG_Py_Void();
d55e5bfc
RD
39321}
39322
1bd55598
RD
39323SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39324 PyObject *resultobj = 0;
39325 wxSimpleHelpProvider *result = 0 ;
39326
39327 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
39328 {
39329 PyThreadState* __tstate = wxPyBeginAllowThreads();
39330 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
39331 wxPyEndAllowThreads(__tstate);
39332 if (PyErr_Occurred()) SWIG_fail;
39333 }
39334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
39335 return resultobj;
39336fail:
39337 return NULL;
39338}
39339
39340
39341SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39342 PyObject *obj;
39343 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39344 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
39345 return SWIG_Py_Void();
39346}
39347
39348SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39349 return SWIG_Python_InitShadowInstance(args);
39350}
39351
39352SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39353 PyObject *resultobj = 0;
39354 wxBitmap *arg1 = 0 ;
39355 wxCursor const &arg2_defvalue = wxNullCursor ;
39356 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39357 wxGenericDragImage *result = 0 ;
39358 void *argp1 = 0 ;
39359 int res1 = 0 ;
39360 void *argp2 = 0 ;
39361 int res2 = 0 ;
39362 PyObject * obj0 = 0 ;
39363 PyObject * obj1 = 0 ;
39364 char * kwnames[] = {
39365 (char *) "image",(char *) "cursor", NULL
39366 };
39367
39368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
39369 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
39370 if (!SWIG_IsOK(res1)) {
39371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39372 }
39373 if (!argp1) {
39374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39375 }
39376 arg1 = reinterpret_cast< wxBitmap * >(argp1);
39377 if (obj1) {
39378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39379 if (!SWIG_IsOK(res2)) {
39380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 39381 }
1bd55598
RD
39382 if (!argp2) {
39383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 39384 }
1bd55598
RD
39385 arg2 = reinterpret_cast< wxCursor * >(argp2);
39386 }
39387 {
39388 if (!wxPyCheckForApp()) SWIG_fail;
39389 PyThreadState* __tstate = wxPyBeginAllowThreads();
39390 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
39391 wxPyEndAllowThreads(__tstate);
39392 if (PyErr_Occurred()) SWIG_fail;
39393 }
39394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
39395 return resultobj;
39396fail:
39397 return NULL;
39398}
39399
39400
39401SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39402 PyObject *resultobj = 0;
39403 wxIcon *arg1 = 0 ;
39404 wxCursor const &arg2_defvalue = wxNullCursor ;
39405 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39406 wxGenericDragImage *result = 0 ;
39407 void *argp1 = 0 ;
39408 int res1 = 0 ;
39409 void *argp2 = 0 ;
39410 int res2 = 0 ;
39411 PyObject * obj0 = 0 ;
39412 PyObject * obj1 = 0 ;
39413 char * kwnames[] = {
39414 (char *) "image",(char *) "cursor", NULL
39415 };
39416
39417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
39418 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
39419 if (!SWIG_IsOK(res1)) {
39420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39421 }
39422 if (!argp1) {
39423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39424 }
39425 arg1 = reinterpret_cast< wxIcon * >(argp1);
39426 if (obj1) {
39427 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39428 if (!SWIG_IsOK(res2)) {
39429 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 39430 }
1bd55598
RD
39431 if (!argp2) {
39432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 39433 }
1bd55598
RD
39434 arg2 = reinterpret_cast< wxCursor * >(argp2);
39435 }
39436 {
39437 if (!wxPyCheckForApp()) SWIG_fail;
39438 PyThreadState* __tstate = wxPyBeginAllowThreads();
39439 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
39440 wxPyEndAllowThreads(__tstate);
39441 if (PyErr_Occurred()) SWIG_fail;
39442 }
39443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39444 return resultobj;
39445fail:
39446 return NULL;
39447}
39448
39449
39450SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39451 PyObject *resultobj = 0;
39452 wxString *arg1 = 0 ;
39453 wxCursor const &arg2_defvalue = wxNullCursor ;
39454 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39455 wxGenericDragImage *result = 0 ;
39456 bool temp1 = false ;
39457 void *argp2 = 0 ;
39458 int res2 = 0 ;
39459 PyObject * obj0 = 0 ;
39460 PyObject * obj1 = 0 ;
39461 char * kwnames[] = {
39462 (char *) "str",(char *) "cursor", NULL
39463 };
39464
39465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
39466 {
39467 arg1 = wxString_in_helper(obj0);
39468 if (arg1 == NULL) SWIG_fail;
39469 temp1 = true;
39470 }
39471 if (obj1) {
39472 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39473 if (!SWIG_IsOK(res2)) {
39474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 39475 }
1bd55598
RD
39476 if (!argp2) {
39477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 39478 }
1bd55598
RD
39479 arg2 = reinterpret_cast< wxCursor * >(argp2);
39480 }
39481 {
39482 if (!wxPyCheckForApp()) SWIG_fail;
39483 PyThreadState* __tstate = wxPyBeginAllowThreads();
39484 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
39485 wxPyEndAllowThreads(__tstate);
39486 if (PyErr_Occurred()) SWIG_fail;
39487 }
39488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39489 {
39490 if (temp1)
39491 delete arg1;
39492 }
39493 return resultobj;
39494fail:
39495 {
39496 if (temp1)
39497 delete arg1;
39498 }
39499 return NULL;
39500}
39501
39502
39503SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39504 PyObject *resultobj = 0;
39505 wxPyTreeCtrl *arg1 = 0 ;
39506 wxTreeItemId *arg2 = 0 ;
39507 wxGenericDragImage *result = 0 ;
39508 void *argp1 = 0 ;
39509 int res1 = 0 ;
39510 void *argp2 = 0 ;
39511 int res2 = 0 ;
39512 PyObject * obj0 = 0 ;
39513 PyObject * obj1 = 0 ;
39514 char * kwnames[] = {
39515 (char *) "treeCtrl",(char *) "id", NULL
39516 };
39517
39518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
39519 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
39520 if (!SWIG_IsOK(res1)) {
39521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39522 }
39523 if (!argp1) {
39524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39525 }
39526 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
39527 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
39528 if (!SWIG_IsOK(res2)) {
39529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39530 }
39531 if (!argp2) {
39532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39533 }
39534 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
39535 {
39536 if (!wxPyCheckForApp()) SWIG_fail;
39537 PyThreadState* __tstate = wxPyBeginAllowThreads();
39538 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
39539 wxPyEndAllowThreads(__tstate);
39540 if (PyErr_Occurred()) SWIG_fail;
39541 }
39542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39543 return resultobj;
39544fail:
39545 return NULL;
39546}
39547
39548
39549SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39550 PyObject *resultobj = 0;
39551 wxPyListCtrl *arg1 = 0 ;
39552 long arg2 ;
39553 wxGenericDragImage *result = 0 ;
39554 void *argp1 = 0 ;
39555 int res1 = 0 ;
39556 long val2 ;
39557 int ecode2 = 0 ;
39558 PyObject * obj0 = 0 ;
39559 PyObject * obj1 = 0 ;
39560 char * kwnames[] = {
39561 (char *) "listCtrl",(char *) "id", NULL
39562 };
39563
39564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
39565 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
39566 if (!SWIG_IsOK(res1)) {
39567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39568 }
39569 if (!argp1) {
39570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39571 }
39572 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
39573 ecode2 = SWIG_AsVal_long(obj1, &val2);
39574 if (!SWIG_IsOK(ecode2)) {
39575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
39576 }
39577 arg2 = static_cast< long >(val2);
39578 {
39579 if (!wxPyCheckForApp()) SWIG_fail;
39580 PyThreadState* __tstate = wxPyBeginAllowThreads();
39581 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
39582 wxPyEndAllowThreads(__tstate);
39583 if (PyErr_Occurred()) SWIG_fail;
39584 }
39585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39586 return resultobj;
39587fail:
39588 return NULL;
d55e5bfc
RD
39589}
39590
39591
1bd55598
RD
39592SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39593 PyObject *resultobj = 0;
39594 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39595 void *argp1 = 0 ;
39596 int res1 = 0 ;
39597 PyObject *swig_obj[1] ;
39598
39599 if (!args) SWIG_fail;
39600 swig_obj[0] = args;
39601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
39602 if (!SWIG_IsOK(res1)) {
39603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39604 }
39605 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39606 {
39607 PyThreadState* __tstate = wxPyBeginAllowThreads();
39608 delete arg1;
d55e5bfc 39609
1bd55598
RD
39610 wxPyEndAllowThreads(__tstate);
39611 if (PyErr_Occurred()) SWIG_fail;
39612 }
39613 resultobj = SWIG_Py_Void();
39614 return resultobj;
39615fail:
39616 return NULL;
39617}
39618
39619
39620SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39621 PyObject *resultobj = 0;
39622 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39623 wxBitmap *arg2 = (wxBitmap *) 0 ;
39624 void *argp1 = 0 ;
39625 int res1 = 0 ;
39626 void *argp2 = 0 ;
39627 int res2 = 0 ;
39628 PyObject * obj0 = 0 ;
39629 PyObject * obj1 = 0 ;
39630 char * kwnames[] = {
39631 (char *) "self",(char *) "bitmap", NULL
39632 };
39633
39634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
39635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39636 if (!SWIG_IsOK(res1)) {
39637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39638 }
39639 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39640 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
39641 if (!SWIG_IsOK(res2)) {
39642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
39643 }
39644 arg2 = reinterpret_cast< wxBitmap * >(argp2);
39645 {
39646 PyThreadState* __tstate = wxPyBeginAllowThreads();
39647 (arg1)->SetBackingBitmap(arg2);
39648 wxPyEndAllowThreads(__tstate);
39649 if (PyErr_Occurred()) SWIG_fail;
39650 }
39651 resultobj = SWIG_Py_Void();
39652 return resultobj;
39653fail:
39654 return NULL;
39655}
39656
39657
39658SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39659 PyObject *resultobj = 0;
39660 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39661 wxPoint *arg2 = 0 ;
39662 wxWindow *arg3 = (wxWindow *) 0 ;
39663 bool arg4 = (bool) false ;
39664 wxRect *arg5 = (wxRect *) NULL ;
39665 bool result;
39666 void *argp1 = 0 ;
39667 int res1 = 0 ;
39668 wxPoint temp2 ;
39669 void *argp3 = 0 ;
39670 int res3 = 0 ;
39671 bool val4 ;
39672 int ecode4 = 0 ;
39673 void *argp5 = 0 ;
39674 int res5 = 0 ;
39675 PyObject * obj0 = 0 ;
39676 PyObject * obj1 = 0 ;
39677 PyObject * obj2 = 0 ;
39678 PyObject * obj3 = 0 ;
39679 PyObject * obj4 = 0 ;
39680 char * kwnames[] = {
39681 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
39682 };
39683
39684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39686 if (!SWIG_IsOK(res1)) {
39687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39688 }
39689 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39690 {
39691 arg2 = &temp2;
39692 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39693 }
39694 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
39695 if (!SWIG_IsOK(res3)) {
39696 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
39697 }
39698 arg3 = reinterpret_cast< wxWindow * >(argp3);
39699 if (obj3) {
39700 ecode4 = SWIG_AsVal_bool(obj3, &val4);
39701 if (!SWIG_IsOK(ecode4)) {
39702 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
39703 }
39704 arg4 = static_cast< bool >(val4);
39705 }
39706 if (obj4) {
39707 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
39708 if (!SWIG_IsOK(res5)) {
39709 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d55e5bfc 39710 }
1bd55598
RD
39711 arg5 = reinterpret_cast< wxRect * >(argp5);
39712 }
39713 {
39714 PyThreadState* __tstate = wxPyBeginAllowThreads();
39715 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
39716 wxPyEndAllowThreads(__tstate);
39717 if (PyErr_Occurred()) SWIG_fail;
39718 }
39719 {
39720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39721 }
39722 return resultobj;
39723fail:
39724 return NULL;
39725}
39726
39727
39728SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39729 PyObject *resultobj = 0;
39730 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39731 wxPoint *arg2 = 0 ;
39732 wxWindow *arg3 = (wxWindow *) 0 ;
39733 wxWindow *arg4 = (wxWindow *) 0 ;
39734 bool result;
39735 void *argp1 = 0 ;
39736 int res1 = 0 ;
39737 wxPoint temp2 ;
39738 void *argp3 = 0 ;
39739 int res3 = 0 ;
39740 void *argp4 = 0 ;
39741 int res4 = 0 ;
39742 PyObject * obj0 = 0 ;
39743 PyObject * obj1 = 0 ;
39744 PyObject * obj2 = 0 ;
39745 PyObject * obj3 = 0 ;
39746 char * kwnames[] = {
39747 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
39748 };
39749
39750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39752 if (!SWIG_IsOK(res1)) {
39753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39754 }
39755 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39756 {
39757 arg2 = &temp2;
39758 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39759 }
39760 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
39761 if (!SWIG_IsOK(res3)) {
39762 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
39763 }
39764 arg3 = reinterpret_cast< wxWindow * >(argp3);
39765 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
39766 if (!SWIG_IsOK(res4)) {
39767 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
39768 }
39769 arg4 = reinterpret_cast< wxWindow * >(argp4);
39770 {
39771 PyThreadState* __tstate = wxPyBeginAllowThreads();
39772 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
39773 wxPyEndAllowThreads(__tstate);
39774 if (PyErr_Occurred()) SWIG_fail;
39775 }
39776 {
39777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39778 }
39779 return resultobj;
39780fail:
39781 return NULL;
d55e5bfc
RD
39782}
39783
39784
1bd55598
RD
39785SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39786 PyObject *resultobj = 0;
39787 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39788 bool result;
39789 void *argp1 = 0 ;
39790 int res1 = 0 ;
39791 PyObject *swig_obj[1] ;
39792
39793 if (!args) SWIG_fail;
39794 swig_obj[0] = args;
39795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39796 if (!SWIG_IsOK(res1)) {
39797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39798 }
39799 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39800 {
39801 PyThreadState* __tstate = wxPyBeginAllowThreads();
39802 result = (bool)(arg1)->EndDrag();
39803 wxPyEndAllowThreads(__tstate);
39804 if (PyErr_Occurred()) SWIG_fail;
39805 }
39806 {
39807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39808 }
39809 return resultobj;
39810fail:
39811 return NULL;
39812}
39813
39814
39815SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39816 PyObject *resultobj = 0;
39817 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39818 wxPoint *arg2 = 0 ;
39819 bool result;
39820 void *argp1 = 0 ;
39821 int res1 = 0 ;
39822 wxPoint temp2 ;
39823 PyObject * obj0 = 0 ;
39824 PyObject * obj1 = 0 ;
39825 char * kwnames[] = {
39826 (char *) "self",(char *) "pt", NULL
39827 };
39828
39829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
39830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39831 if (!SWIG_IsOK(res1)) {
39832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39833 }
39834 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39835 {
39836 arg2 = &temp2;
39837 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39838 }
39839 {
39840 PyThreadState* __tstate = wxPyBeginAllowThreads();
39841 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
39842 wxPyEndAllowThreads(__tstate);
39843 if (PyErr_Occurred()) SWIG_fail;
39844 }
39845 {
39846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39847 }
39848 return resultobj;
39849fail:
39850 return NULL;
d55e5bfc
RD
39851}
39852
39853
1bd55598
RD
39854SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39855 PyObject *resultobj = 0;
39856 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39857 bool result;
39858 void *argp1 = 0 ;
39859 int res1 = 0 ;
39860 PyObject *swig_obj[1] ;
39861
39862 if (!args) SWIG_fail;
39863 swig_obj[0] = args;
39864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39865 if (!SWIG_IsOK(res1)) {
39866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39867 }
39868 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39869 {
39870 PyThreadState* __tstate = wxPyBeginAllowThreads();
39871 result = (bool)(arg1)->Show();
39872 wxPyEndAllowThreads(__tstate);
39873 if (PyErr_Occurred()) SWIG_fail;
39874 }
39875 {
39876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39877 }
39878 return resultobj;
39879fail:
39880 return NULL;
d55e5bfc
RD
39881}
39882
39883
1bd55598
RD
39884SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39885 PyObject *resultobj = 0;
39886 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39887 bool result;
39888 void *argp1 = 0 ;
39889 int res1 = 0 ;
39890 PyObject *swig_obj[1] ;
39891
39892 if (!args) SWIG_fail;
39893 swig_obj[0] = args;
39894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39895 if (!SWIG_IsOK(res1)) {
39896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39897 }
39898 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39899 {
39900 PyThreadState* __tstate = wxPyBeginAllowThreads();
39901 result = (bool)(arg1)->Hide();
39902 wxPyEndAllowThreads(__tstate);
39903 if (PyErr_Occurred()) SWIG_fail;
39904 }
39905 {
39906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39907 }
39908 return resultobj;
39909fail:
39910 return NULL;
39911}
39912
39913
39914SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39915 PyObject *resultobj = 0;
39916 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39917 wxPoint *arg2 = 0 ;
39918 wxRect result;
39919 void *argp1 = 0 ;
39920 int res1 = 0 ;
39921 wxPoint temp2 ;
39922 PyObject * obj0 = 0 ;
39923 PyObject * obj1 = 0 ;
39924 char * kwnames[] = {
39925 (char *) "self",(char *) "pos", NULL
39926 };
39927
39928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
39929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39930 if (!SWIG_IsOK(res1)) {
39931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
39932 }
39933 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39934 {
39935 arg2 = &temp2;
39936 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39937 }
39938 {
39939 PyThreadState* __tstate = wxPyBeginAllowThreads();
39940 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
39941 wxPyEndAllowThreads(__tstate);
39942 if (PyErr_Occurred()) SWIG_fail;
39943 }
39944 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
39945 return resultobj;
39946fail:
39947 return NULL;
39948}
39949
39950
39951SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39952 PyObject *resultobj = 0;
39953 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39954 wxDC *arg2 = 0 ;
39955 wxPoint *arg3 = 0 ;
39956 bool result;
39957 void *argp1 = 0 ;
39958 int res1 = 0 ;
39959 void *argp2 = 0 ;
39960 int res2 = 0 ;
39961 wxPoint temp3 ;
39962 PyObject * obj0 = 0 ;
39963 PyObject * obj1 = 0 ;
39964 PyObject * obj2 = 0 ;
39965 char * kwnames[] = {
39966 (char *) "self",(char *) "dc",(char *) "pos", NULL
39967 };
39968
39969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39971 if (!SWIG_IsOK(res1)) {
39972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
39973 }
39974 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39975 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
39976 if (!SWIG_IsOK(res2)) {
39977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
39978 }
39979 if (!argp2) {
39980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
39981 }
39982 arg2 = reinterpret_cast< wxDC * >(argp2);
39983 {
39984 arg3 = &temp3;
39985 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39986 }
39987 {
39988 PyThreadState* __tstate = wxPyBeginAllowThreads();
39989 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
39990 wxPyEndAllowThreads(__tstate);
39991 if (PyErr_Occurred()) SWIG_fail;
39992 }
39993 {
39994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39995 }
39996 return resultobj;
39997fail:
39998 return NULL;
39999}
40000
40001
40002SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40003 PyObject *resultobj = 0;
40004 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40005 wxDC *arg2 = 0 ;
40006 wxMemoryDC *arg3 = 0 ;
40007 wxRect *arg4 = 0 ;
40008 wxRect *arg5 = 0 ;
40009 bool result;
40010 void *argp1 = 0 ;
40011 int res1 = 0 ;
40012 void *argp2 = 0 ;
40013 int res2 = 0 ;
40014 void *argp3 = 0 ;
40015 int res3 = 0 ;
40016 wxRect temp4 ;
40017 wxRect temp5 ;
40018 PyObject * obj0 = 0 ;
40019 PyObject * obj1 = 0 ;
40020 PyObject * obj2 = 0 ;
40021 PyObject * obj3 = 0 ;
40022 PyObject * obj4 = 0 ;
40023 char * kwnames[] = {
40024 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40025 };
40026
40027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40029 if (!SWIG_IsOK(res1)) {
40030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40031 }
40032 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40033 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40034 if (!SWIG_IsOK(res2)) {
40035 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40036 }
40037 if (!argp2) {
40038 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40039 }
40040 arg2 = reinterpret_cast< wxDC * >(argp2);
40041 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40042 if (!SWIG_IsOK(res3)) {
40043 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40044 }
40045 if (!argp3) {
40046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40047 }
40048 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40049 {
40050 arg4 = &temp4;
40051 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40052 }
40053 {
40054 arg5 = &temp5;
40055 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40056 }
40057 {
40058 PyThreadState* __tstate = wxPyBeginAllowThreads();
40059 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40060 wxPyEndAllowThreads(__tstate);
40061 if (PyErr_Occurred()) SWIG_fail;
40062 }
40063 {
40064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40065 }
40066 return resultobj;
40067fail:
40068 return NULL;
40069}
40070
40071
40072SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40073 PyObject *resultobj = 0;
40074 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40075 wxPoint *arg2 = 0 ;
40076 wxPoint *arg3 = 0 ;
40077 bool arg4 ;
40078 bool arg5 ;
40079 bool result;
40080 void *argp1 = 0 ;
40081 int res1 = 0 ;
40082 wxPoint temp2 ;
40083 wxPoint temp3 ;
40084 bool val4 ;
40085 int ecode4 = 0 ;
40086 bool val5 ;
40087 int ecode5 = 0 ;
40088 PyObject * obj0 = 0 ;
40089 PyObject * obj1 = 0 ;
40090 PyObject * obj2 = 0 ;
40091 PyObject * obj3 = 0 ;
40092 PyObject * obj4 = 0 ;
40093 char * kwnames[] = {
40094 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40095 };
40096
40097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40099 if (!SWIG_IsOK(res1)) {
40100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40101 }
40102 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40103 {
40104 arg2 = &temp2;
40105 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40106 }
40107 {
40108 arg3 = &temp3;
40109 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40110 }
40111 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40112 if (!SWIG_IsOK(ecode4)) {
40113 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40114 }
40115 arg4 = static_cast< bool >(val4);
40116 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40117 if (!SWIG_IsOK(ecode5)) {
40118 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40119 }
40120 arg5 = static_cast< bool >(val5);
40121 {
40122 PyThreadState* __tstate = wxPyBeginAllowThreads();
40123 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40124 wxPyEndAllowThreads(__tstate);
40125 if (PyErr_Occurred()) SWIG_fail;
40126 }
40127 {
40128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40129 }
40130 return resultobj;
40131fail:
40132 return NULL;
d55e5bfc
RD
40133}
40134
40135
1bd55598
RD
40136SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40137 PyObject *obj;
40138 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40139 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40140 return SWIG_Py_Void();
d55e5bfc
RD
40141}
40142
1bd55598
RD
40143SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40144 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
40145}
40146
1bd55598
RD
40147SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40148 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40149 return 1;
d55e5bfc
RD
40150}
40151
40152
1bd55598
RD
40153SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40154 PyObject *pyobj = 0;
40155
40156 {
40157#if wxUSE_UNICODE
40158 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40159#else
40160 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40161#endif
40162 }
40163 return pyobj;
40164}
40165
40166
40167SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40168 PyObject *resultobj = 0;
40169 wxWindow *arg1 = (wxWindow *) 0 ;
40170 int arg2 = (int) -1 ;
40171 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40172 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40173 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40174 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40175 wxSize const &arg5_defvalue = wxDefaultSize ;
40176 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40177 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40178 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40179 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40180 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40181 wxString *arg8 = (wxString *) &arg8_defvalue ;
40182 wxDatePickerCtrl *result = 0 ;
40183 void *argp1 = 0 ;
40184 int res1 = 0 ;
40185 int val2 ;
40186 int ecode2 = 0 ;
40187 void *argp3 = 0 ;
40188 int res3 = 0 ;
40189 wxPoint temp4 ;
40190 wxSize temp5 ;
40191 long val6 ;
40192 int ecode6 = 0 ;
40193 void *argp7 = 0 ;
40194 int res7 = 0 ;
40195 bool temp8 = false ;
40196 PyObject * obj0 = 0 ;
40197 PyObject * obj1 = 0 ;
40198 PyObject * obj2 = 0 ;
40199 PyObject * obj3 = 0 ;
40200 PyObject * obj4 = 0 ;
40201 PyObject * obj5 = 0 ;
40202 PyObject * obj6 = 0 ;
40203 PyObject * obj7 = 0 ;
40204 char * kwnames[] = {
40205 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40206 };
40207
40208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40210 if (!SWIG_IsOK(res1)) {
40211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40212 }
40213 arg1 = reinterpret_cast< wxWindow * >(argp1);
40214 if (obj1) {
40215 ecode2 = SWIG_AsVal_int(obj1, &val2);
40216 if (!SWIG_IsOK(ecode2)) {
40217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40218 }
40219 arg2 = static_cast< int >(val2);
40220 }
40221 if (obj2) {
40222 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40223 if (!SWIG_IsOK(res3)) {
40224 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 40225 }
1bd55598
RD
40226 if (!argp3) {
40227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 40228 }
1bd55598
RD
40229 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40230 }
40231 if (obj3) {
36ed4f51 40232 {
1bd55598
RD
40233 arg4 = &temp4;
40234 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 40235 }
1bd55598
RD
40236 }
40237 if (obj4) {
d55e5bfc 40238 {
1bd55598
RD
40239 arg5 = &temp5;
40240 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 40241 }
1bd55598
RD
40242 }
40243 if (obj5) {
40244 ecode6 = SWIG_AsVal_long(obj5, &val6);
40245 if (!SWIG_IsOK(ecode6)) {
40246 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
40247 }
40248 arg6 = static_cast< long >(val6);
40249 }
40250 if (obj6) {
40251 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
40252 if (!SWIG_IsOK(res7)) {
40253 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 40254 }
1bd55598
RD
40255 if (!argp7) {
40256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 40257 }
1bd55598
RD
40258 arg7 = reinterpret_cast< wxValidator * >(argp7);
40259 }
40260 if (obj7) {
36ed4f51 40261 {
1bd55598
RD
40262 arg8 = wxString_in_helper(obj7);
40263 if (arg8 == NULL) SWIG_fail;
40264 temp8 = true;
36ed4f51 40265 }
1bd55598
RD
40266 }
40267 {
40268 if (!wxPyCheckForApp()) SWIG_fail;
40269 PyThreadState* __tstate = wxPyBeginAllowThreads();
40270 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
40271 wxPyEndAllowThreads(__tstate);
40272 if (PyErr_Occurred()) SWIG_fail;
40273 }
40274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
40275 {
40276 if (temp8)
40277 delete arg8;
40278 }
40279 return resultobj;
40280fail:
40281 {
40282 if (temp8)
40283 delete arg8;
40284 }
40285 return NULL;
d55e5bfc
RD
40286}
40287
40288
1bd55598
RD
40289SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40290 PyObject *resultobj = 0;
40291 wxDatePickerCtrl *result = 0 ;
40292
40293 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
40294 {
40295 if (!wxPyCheckForApp()) SWIG_fail;
40296 PyThreadState* __tstate = wxPyBeginAllowThreads();
40297 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
40298 wxPyEndAllowThreads(__tstate);
40299 if (PyErr_Occurred()) SWIG_fail;
40300 }
40301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
40302 return resultobj;
40303fail:
40304 return NULL;
40305}
40306
40307
40308SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40309 PyObject *resultobj = 0;
40310 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40311 wxWindow *arg2 = (wxWindow *) 0 ;
40312 int arg3 = (int) -1 ;
40313 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
40314 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
40315 wxPoint const &arg5_defvalue = wxDefaultPosition ;
40316 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
40317 wxSize const &arg6_defvalue = wxDefaultSize ;
40318 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
40319 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40320 wxValidator const &arg8_defvalue = wxDefaultValidator ;
40321 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
40322 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
40323 wxString *arg9 = (wxString *) &arg9_defvalue ;
40324 bool result;
40325 void *argp1 = 0 ;
40326 int res1 = 0 ;
40327 void *argp2 = 0 ;
40328 int res2 = 0 ;
40329 int val3 ;
40330 int ecode3 = 0 ;
40331 void *argp4 = 0 ;
40332 int res4 = 0 ;
40333 wxPoint temp5 ;
40334 wxSize temp6 ;
40335 long val7 ;
40336 int ecode7 = 0 ;
40337 void *argp8 = 0 ;
40338 int res8 = 0 ;
40339 bool temp9 = false ;
40340 PyObject * obj0 = 0 ;
40341 PyObject * obj1 = 0 ;
40342 PyObject * obj2 = 0 ;
40343 PyObject * obj3 = 0 ;
40344 PyObject * obj4 = 0 ;
40345 PyObject * obj5 = 0 ;
40346 PyObject * obj6 = 0 ;
40347 PyObject * obj7 = 0 ;
40348 PyObject * obj8 = 0 ;
40349 char * kwnames[] = {
40350 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40351 };
40352
40353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
40354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40355 if (!SWIG_IsOK(res1)) {
40356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40357 }
40358 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40359 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40360 if (!SWIG_IsOK(res2)) {
40361 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
40362 }
40363 arg2 = reinterpret_cast< wxWindow * >(argp2);
40364 if (obj2) {
40365 ecode3 = SWIG_AsVal_int(obj2, &val3);
40366 if (!SWIG_IsOK(ecode3)) {
40367 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
40368 }
40369 arg3 = static_cast< int >(val3);
40370 }
40371 if (obj3) {
40372 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
40373 if (!SWIG_IsOK(res4)) {
40374 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
36ed4f51 40375 }
1bd55598
RD
40376 if (!argp4) {
40377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
d55e5bfc 40378 }
1bd55598
RD
40379 arg4 = reinterpret_cast< wxDateTime * >(argp4);
40380 }
40381 if (obj4) {
d55e5bfc 40382 {
1bd55598
RD
40383 arg5 = &temp5;
40384 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 40385 }
1bd55598
RD
40386 }
40387 if (obj5) {
d55e5bfc 40388 {
1bd55598
RD
40389 arg6 = &temp6;
40390 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 40391 }
1bd55598
RD
40392 }
40393 if (obj6) {
40394 ecode7 = SWIG_AsVal_long(obj6, &val7);
40395 if (!SWIG_IsOK(ecode7)) {
40396 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
40397 }
40398 arg7 = static_cast< long >(val7);
40399 }
40400 if (obj7) {
40401 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
40402 if (!SWIG_IsOK(res8)) {
40403 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 40404 }
1bd55598
RD
40405 if (!argp8) {
40406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 40407 }
1bd55598
RD
40408 arg8 = reinterpret_cast< wxValidator * >(argp8);
40409 }
40410 if (obj8) {
36ed4f51 40411 {
1bd55598
RD
40412 arg9 = wxString_in_helper(obj8);
40413 if (arg9 == NULL) SWIG_fail;
40414 temp9 = true;
36ed4f51 40415 }
1bd55598
RD
40416 }
40417 {
40418 PyThreadState* __tstate = wxPyBeginAllowThreads();
40419 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
40420 wxPyEndAllowThreads(__tstate);
40421 if (PyErr_Occurred()) SWIG_fail;
40422 }
40423 {
40424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40425 }
40426 {
40427 if (temp9)
40428 delete arg9;
40429 }
40430 return resultobj;
40431fail:
40432 {
40433 if (temp9)
40434 delete arg9;
40435 }
40436 return NULL;
40437}
40438
40439
40440SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40441 PyObject *resultobj = 0;
40442 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40443 wxDateTime *arg2 = 0 ;
40444 void *argp1 = 0 ;
40445 int res1 = 0 ;
40446 void *argp2 = 0 ;
40447 int res2 = 0 ;
40448 PyObject * obj0 = 0 ;
40449 PyObject * obj1 = 0 ;
40450 char * kwnames[] = {
40451 (char *) "self",(char *) "dt", NULL
40452 };
40453
40454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
40455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40456 if (!SWIG_IsOK(res1)) {
40457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40458 }
40459 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40461 if (!SWIG_IsOK(res2)) {
40462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40463 }
40464 if (!argp2) {
40465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40466 }
40467 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40468 {
40469 PyThreadState* __tstate = wxPyBeginAllowThreads();
40470 (arg1)->SetValue((wxDateTime const &)*arg2);
40471 wxPyEndAllowThreads(__tstate);
40472 if (PyErr_Occurred()) SWIG_fail;
40473 }
40474 resultobj = SWIG_Py_Void();
40475 return resultobj;
40476fail:
40477 return NULL;
d55e5bfc
RD
40478}
40479
40480
1bd55598
RD
40481SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40482 PyObject *resultobj = 0;
40483 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40484 wxDateTime result;
40485 void *argp1 = 0 ;
40486 int res1 = 0 ;
40487 PyObject *swig_obj[1] ;
40488
40489 if (!args) SWIG_fail;
40490 swig_obj[0] = args;
40491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40492 if (!SWIG_IsOK(res1)) {
40493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
40494 }
40495 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40496 {
40497 PyThreadState* __tstate = wxPyBeginAllowThreads();
40498 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
40499 wxPyEndAllowThreads(__tstate);
40500 if (PyErr_Occurred()) SWIG_fail;
40501 }
40502 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40503 return resultobj;
40504fail:
40505 return NULL;
40506}
40507
40508
40509SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40510 PyObject *resultobj = 0;
40511 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40512 wxDateTime *arg2 = 0 ;
40513 wxDateTime *arg3 = 0 ;
40514 void *argp1 = 0 ;
40515 int res1 = 0 ;
40516 void *argp2 = 0 ;
40517 int res2 = 0 ;
40518 void *argp3 = 0 ;
40519 int res3 = 0 ;
40520 PyObject * obj0 = 0 ;
40521 PyObject * obj1 = 0 ;
40522 PyObject * obj2 = 0 ;
40523 char * kwnames[] = {
40524 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
40525 };
40526
40527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40529 if (!SWIG_IsOK(res1)) {
40530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40531 }
40532 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40533 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40534 if (!SWIG_IsOK(res2)) {
40535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40536 }
40537 if (!argp2) {
40538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40539 }
40540 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40541 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40542 if (!SWIG_IsOK(res3)) {
40543 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40544 }
40545 if (!argp3) {
40546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40547 }
40548 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40549 {
40550 PyThreadState* __tstate = wxPyBeginAllowThreads();
40551 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
40552 wxPyEndAllowThreads(__tstate);
40553 if (PyErr_Occurred()) SWIG_fail;
40554 }
40555 resultobj = SWIG_Py_Void();
40556 return resultobj;
40557fail:
40558 return NULL;
d55e5bfc
RD
40559}
40560
40561
1bd55598
RD
40562SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40563 PyObject *resultobj = 0;
40564 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40565 wxDateTime result;
40566 void *argp1 = 0 ;
40567 int res1 = 0 ;
40568 PyObject *swig_obj[1] ;
40569
40570 if (!args) SWIG_fail;
40571 swig_obj[0] = args;
40572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40573 if (!SWIG_IsOK(res1)) {
40574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40575 }
40576 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40577 {
40578 PyThreadState* __tstate = wxPyBeginAllowThreads();
40579 result = wxDatePickerCtrl_GetLowerLimit(arg1);
40580 wxPyEndAllowThreads(__tstate);
40581 if (PyErr_Occurred()) SWIG_fail;
40582 }
40583 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40584 return resultobj;
40585fail:
40586 return NULL;
d55e5bfc
RD
40587}
40588
40589
1bd55598
RD
40590SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40591 PyObject *resultobj = 0;
40592 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40593 wxDateTime result;
40594 void *argp1 = 0 ;
40595 int res1 = 0 ;
40596 PyObject *swig_obj[1] ;
40597
40598 if (!args) SWIG_fail;
40599 swig_obj[0] = args;
40600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40601 if (!SWIG_IsOK(res1)) {
40602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40603 }
40604 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40605 {
40606 PyThreadState* __tstate = wxPyBeginAllowThreads();
40607 result = wxDatePickerCtrl_GetUpperLimit(arg1);
40608 wxPyEndAllowThreads(__tstate);
40609 if (PyErr_Occurred()) SWIG_fail;
40610 }
40611 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40612 return resultobj;
40613fail:
40614 return NULL;
d55e5bfc
RD
40615}
40616
40617
1bd55598
RD
40618SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40619 PyObject *obj;
40620 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40621 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
40622 return SWIG_Py_Void();
d55e5bfc
RD
40623}
40624
1bd55598
RD
40625SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40626 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
40627}
40628
1bd55598
RD
40629static PyMethodDef SwigMethods[] = {
40630 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
40631 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
40632 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40633 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
40634 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
40635 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40636 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
40637 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
40638 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
40639 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
40640 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40641 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
40642 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
40643 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
40644 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
40645 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
40646 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
40647 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
40648 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
40649 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40650 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
40651 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
40652 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
40653 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
40654 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
40655 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
40656 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40657 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
40658 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40659 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
40660 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
40661 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40662 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
40663 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
40664 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
40665 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
40666 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40667 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
40668 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
40669 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
40670 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
40671 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40672 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
40673 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40674 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
40675 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
40676 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
40677 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
40678 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40679 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
40680 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40681 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
40682 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
40683 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
40684 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40685 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
40686 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
40687 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40688 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
40689 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
40690 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
50f151d7 40691 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
40692 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
40693 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
40694 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40695 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
40696 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
40697 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
40698 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
40699 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
40700 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
40701 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
40702 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
40703 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
40704 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40705 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
40706 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
40707 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
40708 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
40709 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40710 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40711 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
40712 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40713 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
40714 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
40715 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
40716 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
40717 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
40718 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
40719 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40720 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
40721 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
40722 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
40723 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
40724 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40725 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40726 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
40727 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
40728 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
40729 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
40730 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40731 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
40732 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
40733 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40734 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
40735 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
40736 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
40737 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
40738 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40739 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
40740 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40741 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
40742 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
40743 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40744 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
40745 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40746 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
40747 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40748 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40749 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40750 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
40751 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
40752 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
40753 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
40754 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40755 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
40756 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
40757 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40758 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
40759 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40760 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
40761 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
40762 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
40763 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40764 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
40765 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
40766 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
40767 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
40768 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
40769 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
40770 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
40771 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40772 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40773 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
40774 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40775 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
40776 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
40777 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
40778 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
40779 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40780 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
40781 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
40782 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
40783 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
40784 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
40785 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
40786 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
40787 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
40788 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40789 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40790 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
40791 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
40792 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
40793 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
40794 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
40795 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
40796 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
40797 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
40798 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
40799 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
40800 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
40801 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
40802 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
40803 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
40804 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
40805 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
40806 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
40807 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
40808 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
40809 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
40810 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
40811 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
40812 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
40813 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
40814 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
40815 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
40816 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
40817 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
40818 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40819 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
40820 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40821 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40822 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
40823 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
40824 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
40825 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
40826 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
40827 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
40828 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
40829 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
40830 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
40831 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
40832 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40833 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40834 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
40835 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
40836 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
40837 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
40838 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
40839 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
40840 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
40841 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
40842 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
40843 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
40844 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
40845 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
40846 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
40847 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
40848 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
40849 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
40850 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
40851 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
40852 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
40853 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
40854 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
40855 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
40856 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
40857 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
40858 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
40859 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
40860 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
40861 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40862 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
40863 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
40864 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
40865 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40866 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
40867 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
40868 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
40869 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
40870 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40871 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
40872 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
40873 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
40874 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
40875 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
40876 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
40877 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
40878 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
40879 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
40880 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
40881 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40882 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
40883 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
40884 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
40885 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
40886 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
40887 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
40888 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40889 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
40890 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
40891 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
40892 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
40893 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40894 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
40895 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
40896 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
40897 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40898 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
40899 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
40900 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40901 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
40902 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40903 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
40904 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
40905 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
40906 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
40907 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40908 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
40909 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40910 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
40911 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40912 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
40913 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
40914 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40915 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40916 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
40917 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
40918 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
40919 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
40920 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
40921 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
40922 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
40923 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
40924 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
40925 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40926 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40927 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
40928 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
40929 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40930 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
40931 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
40932 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
40933 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
40934 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
40935 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
50f151d7
RD
40936 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
40937 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
40938 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
40939 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
40940 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
40941 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40942 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
40943 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
40944 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
40945 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
40946 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40947 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
40948 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40949 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40950 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
40951 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
40952 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
40953 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
40954 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40955 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
40956 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40957 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40958 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
40959 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
40960 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
40961 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
40962 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
40963 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
40964 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
40965 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
40966 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
40967 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
40968 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
40969 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
40970 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
40971 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
40972 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
40973 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
40974 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
40975 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40976 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40977 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
40978 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
40979 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
40980 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
40981 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40982 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40983 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
40984 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40985 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
40986 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
40987 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
40988 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
40989 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
40990 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
40991 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
40992 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
40993 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
40994 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
40995 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
40996 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
40997 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
40998 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
40999 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
41000 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
41001 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
41002 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
e9d6f3a4
RD
41003 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
41004 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
1bd55598
RD
41005 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
41006 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 41007 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
1bd55598
RD
41008 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
41009 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
41010 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
41011 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
41012 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
41013 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41014 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41015 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41016 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
41017 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41018 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
41019 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41020 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
41021 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41022 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
41023 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
41024 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
41025 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
41026 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41027 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
41028 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
41029 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
41030 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41031 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
41032 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41033 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
41034 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
41035 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41036 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
41037 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
41038 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
41039 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
41040 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41041 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
41042 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
41043 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
41044 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41045 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
41046 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
41047 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
41048 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
41049 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41050 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
41051 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
41052 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
41053 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41054 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
41055 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
41056 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
41057 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
41058 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41059 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41060 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41061 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41062 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
41063 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
41064 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
41065 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
41066 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
41067 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
41068 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41069 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
41070 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
41071 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
41072 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
41073 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41074 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
41075 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
41076 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
41077 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
41078 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41079 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
41080 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
41081 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
41082 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
41083 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
41084 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
41085 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
41086 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
41087 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
41088 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
41089 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
41090 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
41091 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
41092 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
41093 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
41094 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
41095 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
41096 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
41097 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
41098 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
41099 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
41100 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41101 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41102 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41103 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41104 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41105 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41106 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
41107 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
41108 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
41109 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41110 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
41111 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
41112 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
41113 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41114 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41115 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
41116 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
41117 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
41118 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
41119 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
41120 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
41121 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
41122 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
41123 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
41124 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
41125 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
41126 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
41127 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41128 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41129 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41130 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
41131 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
41132 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41133 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41134 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41135 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41136 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41137 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
41138 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
41139 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
41140 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
41141 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
41142 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
41143 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
41144 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
41145 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
41146 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
41147 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
41148 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
41149 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
41150 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
41151 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
41152 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41153 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
41154 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
41155 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
41156 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
41157 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
41158 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
41159 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
41160 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41161 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
41162 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
41163 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41164 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
41165 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41166 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41167 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41168 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
41169 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
41170 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
41171 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
41172 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
41173 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
41174 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
41175 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
41176 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
41177 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
41178 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
41179 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
41180 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
41181 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
41182 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
41183 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41184 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41185 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
41186 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
41187 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
41188 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
41189 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41190 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41191 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
41192 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41193 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41194 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41195 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
41196 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
41197 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
41198 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
41199 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
41200 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
41201 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
41202 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
41203 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
41204 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
41205 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
41206 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
41207 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
41208 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
41209 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
41210 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
41211 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
41212 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
41213 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
41214 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
41215 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
41216 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
41217 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
41218 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
41219 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
41220 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
41221 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
41222 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
41223 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
41224 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
41225 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
41226 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
41227 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
41228 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
41229 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
41230 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
41231 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41232 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
41233 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
41234 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
41235 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
41236 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
41237 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
41238 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
41239 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
41240 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
41241 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
41242 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
41243 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
41244 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
41245 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
41246 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
41247 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
41248 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
41249 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
41250 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
41251 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
41252 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
41253 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
41254 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
41255 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
41256 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41257 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
41258 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
41259 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41260 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
41261 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41262 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41263 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41264 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41265 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41266 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41267 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
41268 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
41269 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
41270 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41271 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41272 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41273 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41274 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41275 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41276 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41277 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41278 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41279 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41280 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41281 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41282 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
41283 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41284 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
41285 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
41286 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
41287 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41288 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
41289 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
41290 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41291 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
41292 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41293 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41294 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41295 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41296 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41297 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
41298 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
41299 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
41300 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
41301 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
41302 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
41303 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
41304 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41305 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
41306 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
41307 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41308 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41309 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
41310 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41311 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
41312 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41313 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41314 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41315 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
41316 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41317 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
41318 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41319 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
41320 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
41321 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41322 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41323 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41324 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41325 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41326 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41327 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
41328 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
41329 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41330 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
41331 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
41332 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
41333 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
41334 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41335 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41336 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
41337 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
41338 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41339 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
41340 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41341 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41342 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41343 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
41344 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
41345 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
41346 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
41347 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
41348 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
41349 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
41350 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
41351 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
41352 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
41353 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
41354 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41355 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
41356 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
41357 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41358 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
41359 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41360 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
41361 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
41362 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
41363 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41364 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
41365 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41366 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
41367 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
41368 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
41369 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41370 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
41371 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
41372 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41373 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
41374 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41375 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
41376 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41377 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41378 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
41379 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
41380 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
41381 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41382 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
41383 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41384 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41385 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
41386 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
41387 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41388 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
41389 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41390 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
41391 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
41392 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41393 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41394 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41395 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41396 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41397 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41398 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41399 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41400 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41401 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41402 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41403 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41404 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41405 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41406 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41407 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41408 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
41409 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
41410 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41411 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41412 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41413 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41414 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41415 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41416 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41417 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
41418 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
41419 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
41420 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
41421 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
41422 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
41423 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
41424 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
41425 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
41426 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41427 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41428 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
41429 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41430 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41431 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
41432 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
41433 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41434 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
41435 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
41436 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
41437 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41438 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
41439 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
41440 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
41441 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
41442 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
41443 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
41444 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41445 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
41446 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41447 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41448 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41449 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
41450 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41451 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
41452 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41453 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41454 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
41455 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41456 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
41457 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
41458 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41459 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
41460 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41461 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
41462 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
41463 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
41464 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
41465 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
41466 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
41467 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
41468 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
41469 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
41470 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
41471 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
41472 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
41473 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
41474 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
41475 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
41476 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
41477 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
41478 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
41479 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
41480 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
41481 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41482 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
41483 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41484 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
41485 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
41486 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
41487 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
41488 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
41489 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41490 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
41491 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
41492 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41493 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
41494 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
41495 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
41496 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
41497 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
41498 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
41499 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
41500 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
41501 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
41502 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
41503 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
41504 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
41505 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41506 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
41507 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41508 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
41509 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
41510 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
41511 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
41512 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
41513 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
41514 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41515 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
41516 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41517 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
41518 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
41519 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
41520 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
41521 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
41522 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 41523 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
1bd55598
RD
41524 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
41525 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
41526 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41527 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41528 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41529 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
41530 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41531 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
41532 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
41533 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
41534 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
41535 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
41536 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
41537 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
41538 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
41539 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
41540 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
41541 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
41542 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41543 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
41544 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
41545 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
41546 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
41547 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
41548 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
41549 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
41550 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41551 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41552 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41553 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
41554 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
41555 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41556 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
41557 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41558 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41559 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
41560 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41561 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
41562 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
41563 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
41564 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
41565 { NULL, NULL, 0, NULL }
41566};
41567
41568
41569/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
41570
41571static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
41572 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
41573}
41574static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
41575 return (void *)((wxEvent *) ((wxMenuEvent *) x));
41576}
41577static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
41578 return (void *)((wxEvent *) ((wxCloseEvent *) x));
41579}
41580static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
41581 return (void *)((wxEvent *) ((wxMouseEvent *) x));
41582}
41583static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
41584 return (void *)((wxEvent *) ((wxEraseEvent *) x));
41585}
41586static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
41587 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
41588}
41589static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
41590 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
41591}
41592static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
41593 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
41594}
41595static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
41596 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
41597}
41598static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
41599 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
41600}
41601static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
41602 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
41603}
41604static void *_p_wxPyEventTo_p_wxEvent(void *x) {
41605 return (void *)((wxEvent *) ((wxPyEvent *) x));
41606}
41607static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
41608 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
41609}
41610static void *_p_wxListEventTo_p_wxEvent(void *x) {
41611 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
41612}
41613static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
41614 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
41615}
41616static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
41617 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
41618}
41619static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
41620 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
41621}
41622static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
41623 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
41624}
41625static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
41626 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
41627}
41628static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
41629 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
41630}
41631static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
41632 return (void *)((wxEvent *) ((wxIdleEvent *) x));
41633}
41634static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
41635 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
41636}
41637static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
41638 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
41639}
41640static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
41641 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
41642}
41643static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
41644 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
41645}
41646static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
41647 return (void *)((wxEvent *) ((wxActivateEvent *) x));
41648}
41649static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
41650 return (void *)((wxEvent *) ((wxSizeEvent *) x));
41651}
41652static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
41653 return (void *)((wxEvent *) ((wxMoveEvent *) x));
41654}
41655static void *_p_wxDateEventTo_p_wxEvent(void *x) {
41656 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
41657}
41658static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
41659 return (void *)((wxEvent *) ((wxPaintEvent *) x));
41660}
41661static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
41662 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
41663}
41664static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
41665 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
41666}
41667static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
41668 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
41669}
41670static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
41671 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
41672}
41673static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
41674 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41675}
41676static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
41677 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
41678}
41679static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
41680 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
41681}
41682static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
41683 return (void *)((wxEvent *) ((wxFocusEvent *) x));
41684}
41685static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
41686 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
41687}
41688static void *_p_wxShowEventTo_p_wxEvent(void *x) {
41689 return (void *)((wxEvent *) ((wxShowEvent *) x));
41690}
41691static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
41692 return (void *)((wxEvent *) ((wxCommandEvent *) x));
41693}
41694static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
41695 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
41696}
41697static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
41698 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41699}
41700static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
41701 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
41702}
41703static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
41704 return (void *)((wxEvent *) ((wxKeyEvent *) x));
41705}
41706static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
41707 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
41708}
41709static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
41710 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
41711}
41712static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
41713 return (void *)((wxItemContainer *) ((wxComboBox *) x));
41714}
41715static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
41716 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41717}
41718static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
41719 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
41720}
41721static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
41722 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
41723}
41724static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
41725 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
41726}
41727static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
41728 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
41729}
41730static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
41731 return (void *)((wxPyListCtrl *) ((wxListView *) x));
41732}
41733static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
41734 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
41735}
41736static void *_p_wxToolBarTo_p_wxControl(void *x) {
41737 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
41738}
41739static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
41740 return (void *)((wxControl *) ((wxToggleButton *) x));
41741}
41742static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
41743 return (void *)((wxControl *) ((wxRadioButton *) x));
41744}
41745static void *_p_wxToolbookTo_p_wxControl(void *x) {
41746 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
41747}
41748static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
41749 return (void *)((wxControl *) ((wxToolBarBase *) x));
41750}
41751static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
41752 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41753}
41754static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
41755 return (void *)((wxControl *) ((wxPyListCtrl *) x));
41756}
41757static void *_p_wxComboBoxTo_p_wxControl(void *x) {
41758 return (void *)((wxControl *) ((wxComboBox *) x));
41759}
41760static void *_p_wxPyControlTo_p_wxControl(void *x) {
41761 return (void *)((wxControl *) ((wxPyControl *) x));
41762}
41763static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
41764 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
41765}
41766static void *_p_wxScrollBarTo_p_wxControl(void *x) {
41767 return (void *)((wxControl *) ((wxScrollBar *) x));
41768}
41769static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
41770 return (void *)((wxControl *) ((wxControlWithItems *) x));
41771}
41772static void *_p_wxGaugeTo_p_wxControl(void *x) {
41773 return (void *)((wxControl *) ((wxGauge *) x));
41774}
41775static void *_p_wxStaticLineTo_p_wxControl(void *x) {
41776 return (void *)((wxControl *) ((wxStaticLine *) x));
41777}
41778static void *_p_wxChoicebookTo_p_wxControl(void *x) {
41779 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
41780}
41781static void *_p_wxListbookTo_p_wxControl(void *x) {
41782 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
41783}
41784static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
41785 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
41786}
41787static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
41788 return (void *)((wxControl *) ((wxCheckBox *) x));
41789}
41790static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
41791 return (void *)((wxControl *) ((wxRadioBox *) x));
41792}
41793static void *_p_wxChoiceTo_p_wxControl(void *x) {
41794 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
41795}
41796static void *_p_wxListBoxTo_p_wxControl(void *x) {
41797 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
41798}
41799static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
41800 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
41801}
41802static void *_p_wxListViewTo_p_wxControl(void *x) {
41803 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
41804}
41805static void *_p_wxNotebookTo_p_wxControl(void *x) {
41806 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
41807}
41808static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
41809 return (void *)((wxControl *) ((wxStaticBitmap *) x));
41810}
41811static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
41812 return (void *)((wxControl *) ((wxSpinCtrl *) x));
41813}
41814static void *_p_wxStaticTextTo_p_wxControl(void *x) {
41815 return (void *)((wxControl *) ((wxStaticText *) x));
41816}
41817static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
41818 return (void *)((wxControl *) ((wxStaticBox *) x));
41819}
41820static void *_p_wxSliderTo_p_wxControl(void *x) {
41821 return (void *)((wxControl *) ((wxSlider *) x));
41822}
41823static void *_p_wxTreebookTo_p_wxControl(void *x) {
41824 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
41825}
41826static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
41827 return (void *)((wxControl *) ((wxSpinButton *) x));
41828}
41829static void *_p_wxButtonTo_p_wxControl(void *x) {
41830 return (void *)((wxControl *) ((wxButton *) x));
41831}
41832static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
41833 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
41834}
41835static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
41836 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
41837}
41838static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
41839 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
41840}
41841static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
41842 return (void *)((wxControl *) ((wxTextCtrl *) x));
41843}
41844static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
41845 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
41846}
41847static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
41848 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
41849}
41850static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
41851 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
41852}
41853static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
41854 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
41855}
41856static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
41857 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
41858}
41859static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
41860 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
41861}
41862static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
41863 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
41864}
41865static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
41866 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
41867}
41868static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
41869 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
41870}
41871static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
41872 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
41873}
41874static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
41875 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
41876}
41877static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
41878 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
41879}
41880static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
41881 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
41882}
41883static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
41884 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
41885}
41886static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
41887 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
41888}
41889static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
41890 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
41891}
41892static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
41893 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
41894}
41895static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
41896 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
41897}
41898static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
41899 return (void *)((wxEvtHandler *) ((wxValidator *) x));
41900}
41901static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
41902 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
41903}
41904static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
41905 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
41906}
41907static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
41908 return (void *)((wxEvtHandler *) ((wxMenu *) x));
41909}
41910static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
41911 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
41912}
41913static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
41914 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
41915}
41916static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
41917 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
41918}
41919static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
41920 return (void *)((wxEvtHandler *) ((wxWindow *) x));
41921}
41922static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
41923 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
41924}
41925static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
41926 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
41927}
41928static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
41929 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
41930}
41931static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
41932 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
41933}
41934static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
41935 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41936}
41937static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
41938 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
41939}
41940static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
41941 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
41942}
41943static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
41944 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
41945}
41946static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
41947 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
41948}
41949static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
41950 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
41951}
41952static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
41953 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
41954}
41955static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
41956 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
41957}
41958static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
41959 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
41960}
41961static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
41962 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
41963}
41964static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
41965 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
41966}
41967static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
41968 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
41969}
41970static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
41971 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
41972}
41973static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
41974 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
41975}
41976static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
41977 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
41978}
41979static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
41980 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
41981}
41982static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
41983 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
41984}
41985static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
41986 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
41987}
41988static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
41989 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
41990}
41991static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
41992 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
41993}
41994static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
41995 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
41996}
41997static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
41998 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
41999}
42000static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
42001 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
42002}
42003static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
42004 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42005}
42006static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
42007 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
42008}
42009static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
42010 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
42011}
42012static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
42013 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42014}
42015static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
42016 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42017}
42018static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
42019 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42020}
42021static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
42022 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42023}
42024static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
42025 return (void *)((wxListBox *) ((wxCheckListBox *) x));
42026}
42027static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
42028 return (void *)((wxButton *) ((wxBitmapButton *) x));
42029}
42030static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
42031 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
42032}
42033static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
42034 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
42035}
42036static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
42037 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
42038}
42039static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
42040 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
42041}
42042static void *_p_wxToolbookTo_p_wxObject(void *x) {
42043 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42044}
42045static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
42046 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
42047}
42048static void *_p_wxSizerItemTo_p_wxObject(void *x) {
42049 return (void *)((wxObject *) ((wxSizerItem *) x));
42050}
42051static void *_p_wxScrollEventTo_p_wxObject(void *x) {
42052 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
42053}
42054static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
42055 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
42056}
42057static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
42058 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
42059}
42060static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
42061 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
42062}
42063static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
42064 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
42065}
42066static void *_p_wxSizerTo_p_wxObject(void *x) {
42067 return (void *)((wxObject *) ((wxSizer *) x));
42068}
42069static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
42070 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42071}
42072static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
42073 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
42074}
42075static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
42076 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42077}
42078static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
42079 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
42080}
42081static void *_p_wxEventTo_p_wxObject(void *x) {
42082 return (void *)((wxObject *) ((wxEvent *) x));
42083}
42084static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
42085 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
42086}
42087static void *_p_wxGridSizerTo_p_wxObject(void *x) {
42088 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
42089}
42090static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
42091 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
42092}
42093static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
42094 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42095}
42096static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
42097 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42098}
42099static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
42100 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42101}
42102static void *_p_wxPaintEventTo_p_wxObject(void *x) {
42103 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
42104}
42105static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
42106 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
42107}
42108static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
42109 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
42110}
42111static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
42112 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
42113}
42114static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
42115 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42116}
42117static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
42118 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
42119}
42120static void *_p_wxStaticLineTo_p_wxObject(void *x) {
42121 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
42122}
42123static void *_p_wxControlTo_p_wxObject(void *x) {
42124 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
42125}
42126static void *_p_wxPyControlTo_p_wxObject(void *x) {
42127 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
42128}
42129static void *_p_wxGaugeTo_p_wxObject(void *x) {
42130 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
42131}
42132static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
42133 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
42134}
42135static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
42136 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
42137}
42138static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
42139 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42140}
42141static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
42142 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
42143}
42144static void *_p_wxChoiceTo_p_wxObject(void *x) {
42145 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42146}
42147static void *_p_wxFSFileTo_p_wxObject(void *x) {
42148 return (void *)((wxObject *) ((wxFSFile *) x));
42149}
42150static void *_p_wxPySizerTo_p_wxObject(void *x) {
42151 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
42152}
42153static void *_p_wxTreebookTo_p_wxObject(void *x) {
42154 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42155}
42156static void *_p_wxListViewTo_p_wxObject(void *x) {
42157 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42158}
42159static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
42160 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42161}
42162static void *_p_wxNotebookTo_p_wxObject(void *x) {
42163 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42164}
42165static void *_p_wxPyEventTo_p_wxObject(void *x) {
42166 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
42167}
42168static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
42169 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
42170}
42171static void *_p_wxChoicebookTo_p_wxObject(void *x) {
42172 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42173}
42174static void *_p_wxListbookTo_p_wxObject(void *x) {
42175 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42176}
42177static void *_p_wxShowEventTo_p_wxObject(void *x) {
42178 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
42179}
42180static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
42181 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42182}
42183static void *_p_wxSliderTo_p_wxObject(void *x) {
42184 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
42185}
42186static void *_p_wxMenuItemTo_p_wxObject(void *x) {
42187 return (void *)((wxObject *) ((wxMenuItem *) x));
42188}
42189static void *_p_wxDateEventTo_p_wxObject(void *x) {
42190 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
42191}
42192static void *_p_wxIdleEventTo_p_wxObject(void *x) {
42193 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
42194}
42195static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
42196 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
42197}
42198static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
42199 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
42200}
42201static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
42202 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
42203}
42204static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
42205 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
42206}
42207static void *_p_wxSizeEventTo_p_wxObject(void *x) {
42208 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
42209}
42210static void *_p_wxMoveEventTo_p_wxObject(void *x) {
42211 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
42212}
42213static void *_p_wxActivateEventTo_p_wxObject(void *x) {
42214 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
42215}
42216static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
42217 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
42218}
42219static void *_p_wxContextHelpTo_p_wxObject(void *x) {
42220 return (void *)((wxObject *) ((wxContextHelp *) x));
42221}
42222static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
42223 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42224}
42225static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
42226 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
42227}
42228static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
42229 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
42230}
42231static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
42232 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
42233}
42234static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
42235 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
42236}
42237static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
42238 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
42239}
42240static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
42241 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42242}
42243static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
42244 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42245}
42246static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
42247 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
42248}
42249static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
42250 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
42251}
42252static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
42253 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
42254}
42255static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
42256 return (void *)((wxObject *) ((wxImageHandler *) x));
42257}
42258static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
42259 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
42260}
42261static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
42262 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
42263}
42264static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
42265 return (void *)((wxObject *) ((wxEvtHandler *) x));
42266}
42267static void *_p_wxListEventTo_p_wxObject(void *x) {
42268 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42269}
42270static void *_p_wxListBoxTo_p_wxObject(void *x) {
42271 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42272}
42273static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
42274 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42275}
42276static void *_p_wxButtonTo_p_wxObject(void *x) {
42277 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
42278}
42279static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
42280 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42281}
42282static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
42283 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
42284}
42285static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
42286 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42287}
42288static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
42289 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
42290}
42291static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
42292 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
42293}
42294static void *_p_wxScrollBarTo_p_wxObject(void *x) {
42295 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
42296}
42297static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
42298 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
42299}
42300static void *_p_wxComboBoxTo_p_wxObject(void *x) {
42301 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
42302}
42303static void *_p_wxHelpEventTo_p_wxObject(void *x) {
42304 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
42305}
42306static void *_p_wxListItemTo_p_wxObject(void *x) {
42307 return (void *)((wxObject *) ((wxListItem *) x));
42308}
42309static void *_p_wxImageTo_p_wxObject(void *x) {
42310 return (void *)((wxObject *) ((wxImage *) x));
42311}
42312static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
42313 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
42314}
42315static void *_p_wxSpinEventTo_p_wxObject(void *x) {
42316 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42317}
42318static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
42319 return (void *)((wxObject *) ((wxGenericDragImage *) x));
42320}
42321static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
42322 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42323}
42324static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
42325 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42326}
42327static void *_p_wxListbookEventTo_p_wxObject(void *x) {
42328 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42329}
42330static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
42331 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42332}
42333static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
42334 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42335}
42336static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
42337 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42338}
42339static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
42340 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42341}
42342static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
42343 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
42344}
42345static void *_p_wxKeyEventTo_p_wxObject(void *x) {
42346 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
42347}
42348static void *_p_wxWindowTo_p_wxObject(void *x) {
42349 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
42350}
42351static void *_p_wxMenuTo_p_wxObject(void *x) {
42352 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
42353}
42354static void *_p_wxMenuBarTo_p_wxObject(void *x) {
42355 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
42356}
42357static void *_p_wxFileSystemTo_p_wxObject(void *x) {
42358 return (void *)((wxObject *) ((wxFileSystem *) x));
42359}
42360static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
42361 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
42362}
42363static void *_p_wxMenuEventTo_p_wxObject(void *x) {
42364 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
42365}
42366static void *_p_wxPyAppTo_p_wxObject(void *x) {
42367 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
42368}
42369static void *_p_wxCloseEventTo_p_wxObject(void *x) {
42370 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
42371}
42372static void *_p_wxMouseEventTo_p_wxObject(void *x) {
42373 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
42374}
42375static void *_p_wxEraseEventTo_p_wxObject(void *x) {
42376 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
42377}
42378static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
42379 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42380}
42381static void *_p_wxTreeEventTo_p_wxObject(void *x) {
42382 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42383}
42384static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
42385 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
42386}
42387static void *_p_wxCommandEventTo_p_wxObject(void *x) {
42388 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
42389}
42390static void *_p_wxStaticTextTo_p_wxObject(void *x) {
42391 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
42392}
42393static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
42394 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
42395}
42396static void *_p_wxFocusEventTo_p_wxObject(void *x) {
42397 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
42398}
42399static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
42400 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
42401}
42402static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
42403 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42404}
42405static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
42406 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42407}
42408static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
42409 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
42410}
42411static void *_p_wxToolBarTo_p_wxObject(void *x) {
42412 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42413}
42414static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
42415 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
42416}
42417static void *_p_wxValidatorTo_p_wxObject(void *x) {
42418 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
42419}
42420static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
42421 return (void *)((wxWindow *) ((wxMenuBar *) x));
42422}
42423static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
42424 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
42425}
42426static void *_p_wxToolBarTo_p_wxWindow(void *x) {
42427 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42428}
42429static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
42430 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
42431}
42432static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
42433 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
42434}
42435static void *_p_wxToolbookTo_p_wxWindow(void *x) {
42436 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42437}
42438static void *_p_wxControlTo_p_wxWindow(void *x) {
42439 return (void *)((wxWindow *) ((wxControl *) x));
42440}
42441static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
42442 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
42443}
42444static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
42445 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
42446}
42447static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
42448 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
42449}
42450static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
42451 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42452}
42453static void *_p_wxPyControlTo_p_wxWindow(void *x) {
42454 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
42455}
42456static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
42457 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
42458}
42459static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
42460 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
42461}
42462static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
42463 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
42464}
42465static void *_p_wxGaugeTo_p_wxWindow(void *x) {
42466 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
42467}
42468static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
42469 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
42470}
42471static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
42472 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42473}
42474static void *_p_wxListbookTo_p_wxWindow(void *x) {
42475 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42476}
42477static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
42478 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
42479}
42480static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
42481 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
42482}
42483static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
42484 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
42485}
42486static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
42487 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42488}
42489static void *_p_wxChoiceTo_p_wxWindow(void *x) {
42490 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42491}
42492static void *_p_wxListBoxTo_p_wxWindow(void *x) {
42493 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42494}
42495static void *_p_wxListViewTo_p_wxWindow(void *x) {
42496 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42497}
42498static void *_p_wxNotebookTo_p_wxWindow(void *x) {
42499 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42500}
42501static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
42502 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
42503}
42504static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
42505 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
42506}
42507static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
42508 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
42509}
42510static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
42511 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
42512}
42513static void *_p_wxSliderTo_p_wxWindow(void *x) {
42514 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
42515}
42516static void *_p_wxTreebookTo_p_wxWindow(void *x) {
42517 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42518}
42519static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
42520 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
42521}
42522static void *_p_wxButtonTo_p_wxWindow(void *x) {
42523 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
42524}
42525static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
42526 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
42527}
42528static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
42529 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42530}
42531static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
42532 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
42533}
42534static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
42535 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
42536}
42537static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42538 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42539}
42540static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42541 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42542}
42543static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42544 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42545}
42546static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42547 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42548}
42549static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42550 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42551}
42552static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
42553 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42554}
42555static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
42556 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
42557}
42558static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
42559 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
42560}
42561static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
42562 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
42563}
42564static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
42565 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
42566}
42567static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
42568 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
42569}
42570static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
42571 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42572}
42573static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
42574 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42575}
42576static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
42577 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42578}
42579static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
42580 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42581}
42582static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
42583 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42584}
42585static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
42586 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
42587}
42588static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
42589 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
42590}
42591static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
42592 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
42593}
42594static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
42595 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42596}
42597static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
42598 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
42599}
42600static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
42601 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
42602}
42603static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
42604 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
42605}
42606static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
42607 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
42608}
42609static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
42610 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
42611}
42612static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
42613 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
42614}
42615static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
42616 return (void *)((wxControlWithItems *) ((wxChoice *) x));
42617}
42618static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
42619 return (void *)((wxControlWithItems *) ((wxListBox *) x));
42620}
42621static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
42622 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
42623}
42624static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
42625 return (void *)((wxValidator *) ((wxPyValidator *) x));
42626}
42627static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
42628static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
42629static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
42630static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
42631static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
42632static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
42633static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
42634static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
42635static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
42636static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
42637static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
42638static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
42639static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
42640static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
42641static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
42642static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
42643static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
42644static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
42645static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
42646static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
42647static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
42648static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
42649static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
42650static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
42651static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
42652static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
42653static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
42654static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
42655static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
42656static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
42657static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
42658static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
42659static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
42660static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
42661static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
42662static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
42663static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
42664static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
42665static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
42666static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
42667static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
42668static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
42669static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
42670static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
42671static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
42672static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
42673static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
42674static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
42675static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
42676static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
42677static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
42678static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
42679static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
42680static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
42681static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
42682static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
42683static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
42684static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
42685static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
42686static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
42687static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
42688static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
42689static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
42690static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
42691static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
42692static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
42693static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
42694static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
42695static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
42696static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
42697static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
42698static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
42699static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
42700static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
42701static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
42702static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
42703static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
42704static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
42705static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
42706static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
42707static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
42708static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
42709static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
42710static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
42711static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
42712static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
42713static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
42714static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
42715static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
42716static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
42717static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
42718static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
42719static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
42720static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
42721static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
42722static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
42723static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
42724static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
42725static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
42726static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
42727static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
42728static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
42729static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
42730static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
42731static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
42732static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
42733static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
42734static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
42735static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
42736static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
42737static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
42738static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
42739static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
42740static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
42741static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
42742static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
42743static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
42744static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
42745static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
42746static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
42747static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
42748static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
42749static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
42750static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
42751static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
42752static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
42753static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
42754static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
42755static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
42756static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
42757static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
42758static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
42759static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
42760static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
42761static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
42762static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
42763static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
42764static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
42765static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
42766static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
42767static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
42768static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
42769static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
42770static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
42771static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
42772static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
42773static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
42774static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
42775static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
42776static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
42777static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
42778static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
42779static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
42780static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
42781static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
42782static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
42783static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
42784static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
42785static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
42786static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
42787static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
42788static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
42789static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
42790
42791static swig_type_info *swig_type_initial[] = {
42792 &_swigt__p_bool,
42793 &_swigt__p_char,
42794 &_swigt__p_form_ops_t,
42795 &_swigt__p_int,
42796 &_swigt__p_long,
42797 &_swigt__p_unsigned_char,
42798 &_swigt__p_unsigned_int,
42799 &_swigt__p_unsigned_long,
42800 &_swigt__p_void,
42801 &_swigt__p_wxANIHandler,
42802 &_swigt__p_wxAcceleratorTable,
42803 &_swigt__p_wxActivateEvent,
42804 &_swigt__p_wxArrayInt,
42805 &_swigt__p_wxArrayString,
42806 &_swigt__p_wxBMPHandler,
42807 &_swigt__p_wxBitmap,
42808 &_swigt__p_wxBitmapButton,
42809 &_swigt__p_wxBookCtrlBase,
42810 &_swigt__p_wxBookCtrlBaseEvent,
42811 &_swigt__p_wxBoxSizer,
42812 &_swigt__p_wxButton,
42813 &_swigt__p_wxCURHandler,
42814 &_swigt__p_wxCheckBox,
42815 &_swigt__p_wxCheckListBox,
42816 &_swigt__p_wxChildFocusEvent,
42817 &_swigt__p_wxChoice,
42818 &_swigt__p_wxChoicebook,
42819 &_swigt__p_wxChoicebookEvent,
42820 &_swigt__p_wxCloseEvent,
42821 &_swigt__p_wxColour,
42822 &_swigt__p_wxComboBox,
42823 &_swigt__p_wxCommandEvent,
42824 &_swigt__p_wxContextHelp,
42825 &_swigt__p_wxContextHelpButton,
42826 &_swigt__p_wxContextMenuEvent,
42827 &_swigt__p_wxControl,
42828 &_swigt__p_wxControlWithItems,
42829 &_swigt__p_wxCursor,
42830 &_swigt__p_wxDC,
42831 &_swigt__p_wxDateEvent,
42832 &_swigt__p_wxDatePickerCtrl,
42833 &_swigt__p_wxDateTime,
42834 &_swigt__p_wxDirFilterListCtrl,
42835 &_swigt__p_wxDisplayChangedEvent,
42836 &_swigt__p_wxDropFilesEvent,
42837 &_swigt__p_wxDuplexMode,
42838 &_swigt__p_wxEraseEvent,
42839 &_swigt__p_wxEvent,
42840 &_swigt__p_wxEvtHandler,
42841 &_swigt__p_wxFSFile,
42842 &_swigt__p_wxFileSystem,
42843 &_swigt__p_wxFlexGridSizer,
42844 &_swigt__p_wxFocusEvent,
42845 &_swigt__p_wxFont,
42846 &_swigt__p_wxGBSizerItem,
42847 &_swigt__p_wxGIFHandler,
42848 &_swigt__p_wxGauge,
42849 &_swigt__p_wxGenericDirCtrl,
42850 &_swigt__p_wxGenericDragImage,
42851 &_swigt__p_wxGridBagSizer,
42852 &_swigt__p_wxGridSizer,
42853 &_swigt__p_wxHelpEvent,
42854 &_swigt__p_wxHelpProvider,
42855 &_swigt__p_wxICOHandler,
42856 &_swigt__p_wxIcon,
42857 &_swigt__p_wxIconizeEvent,
42858 &_swigt__p_wxIdleEvent,
42859 &_swigt__p_wxImage,
42860 &_swigt__p_wxImageHandler,
42861 &_swigt__p_wxImageList,
42862 &_swigt__p_wxIndividualLayoutConstraint,
42863 &_swigt__p_wxInitDialogEvent,
42864 &_swigt__p_wxItemContainer,
42865 &_swigt__p_wxJPEGHandler,
42866 &_swigt__p_wxKeyEvent,
42867 &_swigt__p_wxLayoutConstraints,
42868 &_swigt__p_wxListBox,
42869 &_swigt__p_wxListEvent,
42870 &_swigt__p_wxListItem,
42871 &_swigt__p_wxListItemAttr,
42872 &_swigt__p_wxListView,
42873 &_swigt__p_wxListbook,
42874 &_swigt__p_wxListbookEvent,
42875 &_swigt__p_wxMaximizeEvent,
42876 &_swigt__p_wxMemoryDC,
42877 &_swigt__p_wxMenu,
42878 &_swigt__p_wxMenuBar,
42879 &_swigt__p_wxMenuEvent,
42880 &_swigt__p_wxMenuItem,
42881 &_swigt__p_wxMouseCaptureChangedEvent,
42882 &_swigt__p_wxMouseEvent,
42883 &_swigt__p_wxMoveEvent,
42884 &_swigt__p_wxNavigationKeyEvent,
42885 &_swigt__p_wxNcPaintEvent,
42886 &_swigt__p_wxNotebook,
42887 &_swigt__p_wxNotebookEvent,
42888 &_swigt__p_wxNotifyEvent,
42889 &_swigt__p_wxObject,
42890 &_swigt__p_wxPCXHandler,
42891 &_swigt__p_wxPNGHandler,
42892 &_swigt__p_wxPNMHandler,
42893 &_swigt__p_wxPaintEvent,
42894 &_swigt__p_wxPaletteChangedEvent,
42895 &_swigt__p_wxPaperSize,
42896 &_swigt__p_wxPoint,
42897 &_swigt__p_wxPyApp,
42898 &_swigt__p_wxPyCommandEvent,
42899 &_swigt__p_wxPyControl,
42900 &_swigt__p_wxPyEvent,
42901 &_swigt__p_wxPyImageHandler,
42902 &_swigt__p_wxPyListCtrl,
42903 &_swigt__p_wxPySizer,
42904 &_swigt__p_wxPyTreeCtrl,
42905 &_swigt__p_wxPyTreeItemData,
42906 &_swigt__p_wxPyValidator,
42907 &_swigt__p_wxQueryNewPaletteEvent,
42908 &_swigt__p_wxRadioBox,
42909 &_swigt__p_wxRadioButton,
42910 &_swigt__p_wxRect,
42911 &_swigt__p_wxScrollBar,
42912 &_swigt__p_wxScrollEvent,
42913 &_swigt__p_wxScrollWinEvent,
42914 &_swigt__p_wxSetCursorEvent,
42915 &_swigt__p_wxShowEvent,
42916 &_swigt__p_wxSimpleHelpProvider,
42917 &_swigt__p_wxSize,
42918 &_swigt__p_wxSizeEvent,
42919 &_swigt__p_wxSizer,
42920 &_swigt__p_wxSizerItem,
42921 &_swigt__p_wxSlider,
42922 &_swigt__p_wxSpinButton,
42923 &_swigt__p_wxSpinCtrl,
42924 &_swigt__p_wxSpinEvent,
42925 &_swigt__p_wxStaticBitmap,
42926 &_swigt__p_wxStaticBox,
42927 &_swigt__p_wxStaticBoxSizer,
42928 &_swigt__p_wxStaticLine,
42929 &_swigt__p_wxStaticText,
42930 &_swigt__p_wxStdDialogButtonSizer,
42931 &_swigt__p_wxString,
42932 &_swigt__p_wxSysColourChangedEvent,
42933 &_swigt__p_wxTIFFHandler,
42934 &_swigt__p_wxTextAttr,
42935 &_swigt__p_wxTextCtrl,
42936 &_swigt__p_wxTextUrlEvent,
42937 &_swigt__p_wxToggleButton,
42938 &_swigt__p_wxToolBar,
42939 &_swigt__p_wxToolBarBase,
42940 &_swigt__p_wxToolBarToolBase,
42941 &_swigt__p_wxToolbook,
42942 &_swigt__p_wxToolbookEvent,
42943 &_swigt__p_wxTreeCtrl,
42944 &_swigt__p_wxTreeEvent,
42945 &_swigt__p_wxTreeItemId,
42946 &_swigt__p_wxTreebook,
42947 &_swigt__p_wxTreebookEvent,
42948 &_swigt__p_wxUpdateUIEvent,
42949 &_swigt__p_wxValidator,
42950 &_swigt__p_wxVisualAttributes,
42951 &_swigt__p_wxWindow,
42952 &_swigt__p_wxWindowCreateEvent,
42953 &_swigt__p_wxWindowDestroyEvent,
42954 &_swigt__p_wxXPMHandler,
42955};
42956
42957static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
42958static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
42959static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
42960static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
42961static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
42962static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
42963static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
42964static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
42965static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
42966static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
42967static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
42968static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
42969static swig_cast_info _swigc__p_wxBitmapButton[] = { {&_swigt__p_wxBitmapButton, 0, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxBitmapButton, 0, 0},{0, 0, 0, 0}};
42970static swig_cast_info _swigc__p_wxBookCtrlBase[] = { {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxBookCtrlBase, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxBookCtrlBase, 0, 0}, {&_swigt__p_wxBookCtrlBase, 0, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxBookCtrlBase, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxBookCtrlBase, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxBookCtrlBase, 0, 0},{0, 0, 0, 0}};
42971static swig_cast_info _swigc__p_wxBookCtrlBaseEvent[] = { {&_swigt__p_wxBookCtrlBaseEvent, 0, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxBookCtrlBaseEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxBookCtrlBaseEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxBookCtrlBaseEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxBookCtrlBaseEvent, 0, 0},{0, 0, 0, 0}};
42972static swig_cast_info _swigc__p_wxButton[] = { {&_swigt__p_wxButton, 0, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxButton, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxButton, 0, 0},{0, 0, 0, 0}};
42973static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
42974static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
42975static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
42976static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
42977static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
42978static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
42979static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
42980static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
42981static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
42982static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
42983static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
42984static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
42985static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
42986static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
42987static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
42988static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
42989static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
42990static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
42991static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
42992static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
42993static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
42994static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
42995static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
42996static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
42997static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
42998static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
42999static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43000static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
43001static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
43002static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
43003static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
43004static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
43005static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
43006static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
43007static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43008static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43009static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
43010static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43011static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
43012static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43013static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43014static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43015static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43016static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43017static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43018static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
43019static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43020static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
43021static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43022static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
43023static 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_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_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_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_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_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_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_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
43024static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
43025static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
43026static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
43027static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
43028static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
43029static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
43030static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
43031static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
43032static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
43033static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
43034static swig_cast_info _swigc__p_wxHelpProvider[] = { {&_swigt__p_wxHelpProvider, 0, 0, 0}, {&_swigt__p_wxSimpleHelpProvider, _p_wxSimpleHelpProviderTo_p_wxHelpProvider, 0, 0},{0, 0, 0, 0}};
43035static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
43036static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
43037static swig_cast_info _swigc__p_wxItemContainer[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxItemContainer, 0, 0, 0},{0, 0, 0, 0}};
43038static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43039static swig_cast_info _swigc__p_wxListBox[] = { {&_swigt__p_wxListBox, 0, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxListBox, 0, 0},{0, 0, 0, 0}};
43040static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
43041static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
43042static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
43043static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
43044static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
43045static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43046static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
43047static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
43048static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
43049static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43050static swig_cast_info _swigc__p_wxNotifyEvent[] = { {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
43051static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
43052static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43053static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43054static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
43055static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43056static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43057static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
43058static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
43059static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43060static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43061static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
43062static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
43063static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
43064static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43065static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43066static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
43067static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
43068static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
43069static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
43070static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
43071static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
43072static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
43073static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
43074static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
43075static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
43076static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
43077static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
43078static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
43079static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
43080static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
43081static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_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_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_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_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_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_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_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_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_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
43082static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
43083static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
43084static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
43085static swig_cast_info _swigc__p_wxPyListCtrl[] = { {&_swigt__p_wxPyListCtrl, 0, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxPyListCtrl, 0, 0},{0, 0, 0, 0}};
43086static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43087static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
43088static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
43089static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
43090static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
43091static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
43092static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
43093static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
43094static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
43095static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
43096static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
43097static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
43098static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
43099static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
43100static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
43101static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
43102static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
43103static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
43104static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
43105static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
43106static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
43107static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
43108static swig_cast_info _swigc__p_wxToolBarBase[] = { {&_swigt__p_wxToolBarBase, 0, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxToolBarBase, 0, 0},{0, 0, 0, 0}};
43109static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
43110static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
43111static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43112static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43113static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
43114static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
43115static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
43116static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43117static 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}};
43118static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
43119static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
43120
43121static swig_cast_info *swig_cast_initial[] = {
43122 _swigc__p_bool,
43123 _swigc__p_char,
43124 _swigc__p_form_ops_t,
43125 _swigc__p_int,
43126 _swigc__p_long,
43127 _swigc__p_unsigned_char,
43128 _swigc__p_unsigned_int,
43129 _swigc__p_unsigned_long,
43130 _swigc__p_void,
43131 _swigc__p_wxANIHandler,
43132 _swigc__p_wxAcceleratorTable,
43133 _swigc__p_wxActivateEvent,
43134 _swigc__p_wxArrayInt,
43135 _swigc__p_wxArrayString,
43136 _swigc__p_wxBMPHandler,
43137 _swigc__p_wxBitmap,
43138 _swigc__p_wxBitmapButton,
43139 _swigc__p_wxBookCtrlBase,
43140 _swigc__p_wxBookCtrlBaseEvent,
43141 _swigc__p_wxBoxSizer,
43142 _swigc__p_wxButton,
43143 _swigc__p_wxCURHandler,
43144 _swigc__p_wxCheckBox,
43145 _swigc__p_wxCheckListBox,
43146 _swigc__p_wxChildFocusEvent,
43147 _swigc__p_wxChoice,
43148 _swigc__p_wxChoicebook,
43149 _swigc__p_wxChoicebookEvent,
43150 _swigc__p_wxCloseEvent,
43151 _swigc__p_wxColour,
43152 _swigc__p_wxComboBox,
43153 _swigc__p_wxCommandEvent,
43154 _swigc__p_wxContextHelp,
43155 _swigc__p_wxContextHelpButton,
43156 _swigc__p_wxContextMenuEvent,
43157 _swigc__p_wxControl,
43158 _swigc__p_wxControlWithItems,
43159 _swigc__p_wxCursor,
43160 _swigc__p_wxDC,
43161 _swigc__p_wxDateEvent,
43162 _swigc__p_wxDatePickerCtrl,
43163 _swigc__p_wxDateTime,
43164 _swigc__p_wxDirFilterListCtrl,
43165 _swigc__p_wxDisplayChangedEvent,
43166 _swigc__p_wxDropFilesEvent,
43167 _swigc__p_wxDuplexMode,
43168 _swigc__p_wxEraseEvent,
43169 _swigc__p_wxEvent,
43170 _swigc__p_wxEvtHandler,
43171 _swigc__p_wxFSFile,
43172 _swigc__p_wxFileSystem,
43173 _swigc__p_wxFlexGridSizer,
43174 _swigc__p_wxFocusEvent,
43175 _swigc__p_wxFont,
43176 _swigc__p_wxGBSizerItem,
43177 _swigc__p_wxGIFHandler,
43178 _swigc__p_wxGauge,
43179 _swigc__p_wxGenericDirCtrl,
43180 _swigc__p_wxGenericDragImage,
43181 _swigc__p_wxGridBagSizer,
43182 _swigc__p_wxGridSizer,
43183 _swigc__p_wxHelpEvent,
43184 _swigc__p_wxHelpProvider,
43185 _swigc__p_wxICOHandler,
43186 _swigc__p_wxIcon,
43187 _swigc__p_wxIconizeEvent,
43188 _swigc__p_wxIdleEvent,
43189 _swigc__p_wxImage,
43190 _swigc__p_wxImageHandler,
43191 _swigc__p_wxImageList,
43192 _swigc__p_wxIndividualLayoutConstraint,
43193 _swigc__p_wxInitDialogEvent,
43194 _swigc__p_wxItemContainer,
43195 _swigc__p_wxJPEGHandler,
43196 _swigc__p_wxKeyEvent,
43197 _swigc__p_wxLayoutConstraints,
43198 _swigc__p_wxListBox,
43199 _swigc__p_wxListEvent,
43200 _swigc__p_wxListItem,
43201 _swigc__p_wxListItemAttr,
43202 _swigc__p_wxListView,
43203 _swigc__p_wxListbook,
43204 _swigc__p_wxListbookEvent,
43205 _swigc__p_wxMaximizeEvent,
43206 _swigc__p_wxMemoryDC,
43207 _swigc__p_wxMenu,
43208 _swigc__p_wxMenuBar,
43209 _swigc__p_wxMenuEvent,
43210 _swigc__p_wxMenuItem,
43211 _swigc__p_wxMouseCaptureChangedEvent,
43212 _swigc__p_wxMouseEvent,
43213 _swigc__p_wxMoveEvent,
43214 _swigc__p_wxNavigationKeyEvent,
43215 _swigc__p_wxNcPaintEvent,
43216 _swigc__p_wxNotebook,
43217 _swigc__p_wxNotebookEvent,
43218 _swigc__p_wxNotifyEvent,
43219 _swigc__p_wxObject,
43220 _swigc__p_wxPCXHandler,
43221 _swigc__p_wxPNGHandler,
43222 _swigc__p_wxPNMHandler,
43223 _swigc__p_wxPaintEvent,
43224 _swigc__p_wxPaletteChangedEvent,
43225 _swigc__p_wxPaperSize,
43226 _swigc__p_wxPoint,
43227 _swigc__p_wxPyApp,
43228 _swigc__p_wxPyCommandEvent,
43229 _swigc__p_wxPyControl,
43230 _swigc__p_wxPyEvent,
43231 _swigc__p_wxPyImageHandler,
43232 _swigc__p_wxPyListCtrl,
43233 _swigc__p_wxPySizer,
43234 _swigc__p_wxPyTreeCtrl,
43235 _swigc__p_wxPyTreeItemData,
43236 _swigc__p_wxPyValidator,
43237 _swigc__p_wxQueryNewPaletteEvent,
43238 _swigc__p_wxRadioBox,
43239 _swigc__p_wxRadioButton,
43240 _swigc__p_wxRect,
43241 _swigc__p_wxScrollBar,
43242 _swigc__p_wxScrollEvent,
43243 _swigc__p_wxScrollWinEvent,
43244 _swigc__p_wxSetCursorEvent,
43245 _swigc__p_wxShowEvent,
43246 _swigc__p_wxSimpleHelpProvider,
43247 _swigc__p_wxSize,
43248 _swigc__p_wxSizeEvent,
43249 _swigc__p_wxSizer,
43250 _swigc__p_wxSizerItem,
43251 _swigc__p_wxSlider,
43252 _swigc__p_wxSpinButton,
43253 _swigc__p_wxSpinCtrl,
43254 _swigc__p_wxSpinEvent,
43255 _swigc__p_wxStaticBitmap,
43256 _swigc__p_wxStaticBox,
43257 _swigc__p_wxStaticBoxSizer,
43258 _swigc__p_wxStaticLine,
43259 _swigc__p_wxStaticText,
43260 _swigc__p_wxStdDialogButtonSizer,
43261 _swigc__p_wxString,
43262 _swigc__p_wxSysColourChangedEvent,
43263 _swigc__p_wxTIFFHandler,
43264 _swigc__p_wxTextAttr,
43265 _swigc__p_wxTextCtrl,
43266 _swigc__p_wxTextUrlEvent,
43267 _swigc__p_wxToggleButton,
43268 _swigc__p_wxToolBar,
43269 _swigc__p_wxToolBarBase,
43270 _swigc__p_wxToolBarToolBase,
43271 _swigc__p_wxToolbook,
43272 _swigc__p_wxToolbookEvent,
43273 _swigc__p_wxTreeCtrl,
43274 _swigc__p_wxTreeEvent,
43275 _swigc__p_wxTreeItemId,
43276 _swigc__p_wxTreebook,
43277 _swigc__p_wxTreebookEvent,
43278 _swigc__p_wxUpdateUIEvent,
43279 _swigc__p_wxValidator,
43280 _swigc__p_wxVisualAttributes,
43281 _swigc__p_wxWindow,
43282 _swigc__p_wxWindowCreateEvent,
43283 _swigc__p_wxWindowDestroyEvent,
43284 _swigc__p_wxXPMHandler,
43285};
43286
43287
43288/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
43289
43290static swig_const_info swig_const_table[] = {
43291{0, 0, 0, 0.0, 0, 0}};
43292
43293#ifdef __cplusplus
43294}
43295#endif
43296/* -----------------------------------------------------------------------------
43297 * Type initialization:
43298 * This problem is tough by the requirement that no dynamic
43299 * memory is used. Also, since swig_type_info structures store pointers to
43300 * swig_cast_info structures and swig_cast_info structures store pointers back
43301 * to swig_type_info structures, we need some lookup code at initialization.
43302 * The idea is that swig generates all the structures that are needed.
43303 * The runtime then collects these partially filled structures.
43304 * The SWIG_InitializeModule function takes these initial arrays out of
43305 * swig_module, and does all the lookup, filling in the swig_module.types
43306 * array with the correct data and linking the correct swig_cast_info
43307 * structures together.
43308 *
43309 * The generated swig_type_info structures are assigned staticly to an initial
43310 * array. We just loop though that array, and handle each type individually.
43311 * First we lookup if this type has been already loaded, and if so, use the
43312 * loaded structure instead of the generated one. Then we have to fill in the
43313 * cast linked list. The cast data is initially stored in something like a
43314 * two-dimensional array. Each row corresponds to a type (there are the same
43315 * number of rows as there are in the swig_type_initial array). Each entry in
43316 * a column is one of the swig_cast_info structures for that type.
43317 * The cast_initial array is actually an array of arrays, because each row has
43318 * a variable number of columns. So to actually build the cast linked list,
43319 * we find the array of casts associated with the type, and loop through it
43320 * adding the casts to the list. The one last trick we need to do is making
43321 * sure the type pointer in the swig_cast_info struct is correct.
43322 *
43323 * First off, we lookup the cast->type name to see if it is already loaded.
43324 * There are three cases to handle:
43325 * 1) If the cast->type has already been loaded AND the type we are adding
43326 * casting info to has not been loaded (it is in this module), THEN we
43327 * replace the cast->type pointer with the type pointer that has already
43328 * been loaded.
43329 * 2) If BOTH types (the one we are adding casting info to, and the
43330 * cast->type) are loaded, THEN the cast info has already been loaded by
43331 * the previous module so we just ignore it.
43332 * 3) Finally, if cast->type has not already been loaded, then we add that
43333 * swig_cast_info to the linked list (because the cast->type) pointer will
43334 * be correct.
43335 * ----------------------------------------------------------------------------- */
43336
43337#ifdef __cplusplus
43338extern "C" {
43339#if 0
43340} /* c-mode */
43341#endif
43342#endif
43343
43344#if 0
43345#define SWIGRUNTIME_DEBUG
43346#endif
43347
43348SWIGRUNTIME void
43349SWIG_InitializeModule(void *clientdata) {
43350 size_t i;
43351 swig_module_info *module_head;
43352 static int init_run = 0;
43353
43354 clientdata = clientdata;
43355
43356 if (init_run) return;
43357 init_run = 1;
43358
43359 /* Initialize the swig_module */
43360 swig_module.type_initial = swig_type_initial;
43361 swig_module.cast_initial = swig_cast_initial;
43362
43363 /* Try and load any already created modules */
43364 module_head = SWIG_GetModule(clientdata);
43365 if (module_head) {
43366 swig_module.next = module_head->next;
43367 module_head->next = &swig_module;
43368 } else {
43369 /* This is the first module loaded */
43370 swig_module.next = &swig_module;
43371 SWIG_SetModule(clientdata, &swig_module);
43372 }
43373
43374 /* Now work on filling in swig_module.types */
43375#ifdef SWIGRUNTIME_DEBUG
43376 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
43377#endif
43378 for (i = 0; i < swig_module.size; ++i) {
43379 swig_type_info *type = 0;
43380 swig_type_info *ret;
43381 swig_cast_info *cast;
d55e5bfc 43382
1bd55598
RD
43383#ifdef SWIGRUNTIME_DEBUG
43384 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43385#endif
d55e5bfc 43386
1bd55598
RD
43387 /* if there is another module already loaded */
43388 if (swig_module.next != &swig_module) {
43389 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36ed4f51 43390 }
1bd55598
RD
43391 if (type) {
43392 /* Overwrite clientdata field */
43393#ifdef SWIGRUNTIME_DEBUG
43394 printf("SWIG_InitializeModule: found type %s\n", type->name);
43395#endif
43396 if (swig_module.type_initial[i]->clientdata) {
43397 type->clientdata = swig_module.type_initial[i]->clientdata;
43398#ifdef SWIGRUNTIME_DEBUG
43399 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
43400#endif
43401 }
43402 } else {
43403 type = swig_module.type_initial[i];
36ed4f51 43404 }
d55e5bfc 43405
1bd55598
RD
43406 /* Insert casting types */
43407 cast = swig_module.cast_initial[i];
43408 while (cast->type) {
43409 /* Don't need to add information already in the list */
43410 ret = 0;
43411#ifdef SWIGRUNTIME_DEBUG
43412 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
43413#endif
43414 if (swig_module.next != &swig_module) {
43415 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
43416#ifdef SWIGRUNTIME_DEBUG
43417 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
43418#endif
43419 }
43420 if (ret) {
43421 if (type == swig_module.type_initial[i]) {
43422#ifdef SWIGRUNTIME_DEBUG
43423 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
43424#endif
43425 cast->type = ret;
43426 ret = 0;
43427 } else {
43428 /* Check for casting already in the list */
43429 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
43430#ifdef SWIGRUNTIME_DEBUG
43431 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
43432#endif
43433 if (!ocast) ret = 0;
43434 }
43435 }
43436
43437 if (!ret) {
43438#ifdef SWIGRUNTIME_DEBUG
43439 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
43440#endif
43441 if (type->cast) {
43442 type->cast->prev = cast;
43443 cast->next = type->cast;
43444 }
43445 type->cast = cast;
43446 }
43447 cast++;
36ed4f51 43448 }
1bd55598
RD
43449 /* Set entry in modules->types array equal to the type */
43450 swig_module.types[i] = type;
43451 }
43452 swig_module.types[i] = 0;
43453
43454#ifdef SWIGRUNTIME_DEBUG
43455 printf("**** SWIG_InitializeModule: Cast List ******\n");
43456 for (i = 0; i < swig_module.size; ++i) {
43457 int j = 0;
43458 swig_cast_info *cast = swig_module.cast_initial[i];
43459 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43460 while (cast->type) {
43461 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
43462 cast++;
43463 ++j;
43464 }
43465 printf("---- Total casts: %d\n",j);
43466 }
43467 printf("**** SWIG_InitializeModule: Cast List ******\n");
43468#endif
43469}
43470
43471/* This function will propagate the clientdata field of type to
43472* any new swig_type_info structures that have been added into the list
43473* of equivalent types. It is like calling
43474* SWIG_TypeClientData(type, clientdata) a second time.
43475*/
43476SWIGRUNTIME void
43477SWIG_PropagateClientData(void) {
43478 size_t i;
43479 swig_cast_info *equiv;
43480 static int init_run = 0;
43481
43482 if (init_run) return;
43483 init_run = 1;
43484
43485 for (i = 0; i < swig_module.size; i++) {
43486 if (swig_module.types[i]->clientdata) {
43487 equiv = swig_module.types[i]->cast;
43488 while (equiv) {
43489 if (!equiv->converter) {
43490 if (equiv->type && !equiv->type->clientdata)
43491 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
43492 }
43493 equiv = equiv->next;
43494 }
36ed4f51 43495 }
1bd55598
RD
43496 }
43497}
43498
43499#ifdef __cplusplus
43500#if 0
43501{
43502 /* c-mode */
43503#endif
43504}
43505#endif
43506
43507
43508
43509#ifdef __cplusplus
43510extern "C" {
43511#endif
43512
43513 /* Python-specific SWIG API */
43514#define SWIG_newvarlink() SWIG_Python_newvarlink()
43515#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
43516#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
43517
43518 /* -----------------------------------------------------------------------------
43519 * global variable support code.
43520 * ----------------------------------------------------------------------------- */
43521
43522 typedef struct swig_globalvar {
43523 char *name; /* Name of global variable */
43524 PyObject *(*get_attr)(void); /* Return the current value */
43525 int (*set_attr)(PyObject *); /* Set the value */
43526 struct swig_globalvar *next;
43527 } swig_globalvar;
43528
43529 typedef struct swig_varlinkobject {
43530 PyObject_HEAD
43531 swig_globalvar *vars;
43532 } swig_varlinkobject;
43533
43534 SWIGINTERN PyObject *
43535 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
43536 return PyString_FromString("<Swig global variables>");
43537 }
43538
43539 SWIGINTERN PyObject *
43540 swig_varlink_str(swig_varlinkobject *v) {
43541 PyObject *str = PyString_FromString("(");
43542 swig_globalvar *var;
43543 for (var = v->vars; var; var=var->next) {
43544 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
43545 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
43546 }
43547 PyString_ConcatAndDel(&str,PyString_FromString(")"));
43548 return str;
43549 }
43550
43551 SWIGINTERN int
43552 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
43553 PyObject *str = swig_varlink_str(v);
43554 fprintf(fp,"Swig global variables ");
43555 fprintf(fp,"%s\n", PyString_AsString(str));
43556 Py_DECREF(str);
43557 return 0;
43558 }
43559
43560 SWIGINTERN void
43561 swig_varlink_dealloc(swig_varlinkobject *v) {
43562 swig_globalvar *var = v->vars;
43563 while (var) {
43564 swig_globalvar *n = var->next;
43565 free(var->name);
43566 free(var);
43567 var = n;
36ed4f51 43568 }
1bd55598
RD
43569 }
43570
43571 SWIGINTERN PyObject *
43572 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
43573 PyObject *res = NULL;
43574 swig_globalvar *var = v->vars;
43575 while (var) {
43576 if (strcmp(var->name,n) == 0) {
43577 res = (*var->get_attr)();
43578 break;
43579 }
43580 var = var->next;
36ed4f51 43581 }
1bd55598
RD
43582 if (res == NULL && !PyErr_Occurred()) {
43583 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36ed4f51 43584 }
1bd55598
RD
43585 return res;
43586 }
43587
43588 SWIGINTERN int
43589 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
43590 int res = 1;
43591 swig_globalvar *var = v->vars;
43592 while (var) {
43593 if (strcmp(var->name,n) == 0) {
43594 res = (*var->set_attr)(p);
43595 break;
43596 }
43597 var = var->next;
36ed4f51 43598 }
1bd55598
RD
43599 if (res == 1 && !PyErr_Occurred()) {
43600 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 43601 }
1bd55598
RD
43602 return res;
43603 }
43604
43605 SWIGINTERN PyTypeObject*
43606 swig_varlink_type(void) {
43607 static char varlink__doc__[] = "Swig var link object";
43608 static PyTypeObject varlink_type;
43609 static int type_init = 0;
43610 if (!type_init) {
43611 const PyTypeObject tmp
43612 = {
43613 PyObject_HEAD_INIT(NULL)
43614 0, /* Number of items in variable part (ob_size) */
43615 (char *)"swigvarlink", /* Type name (tp_name) */
43616 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
43617 0, /* Itemsize (tp_itemsize) */
43618 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
43619 (printfunc) swig_varlink_print, /* Print (tp_print) */
43620 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
43621 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
43622 0, /* tp_compare */
43623 (reprfunc) swig_varlink_repr, /* tp_repr */
43624 0, /* tp_as_number */
43625 0, /* tp_as_sequence */
43626 0, /* tp_as_mapping */
43627 0, /* tp_hash */
43628 0, /* tp_call */
43629 (reprfunc)swig_varlink_str, /* tp_str */
43630 0, /* tp_getattro */
43631 0, /* tp_setattro */
43632 0, /* tp_as_buffer */
43633 0, /* tp_flags */
43634 varlink__doc__, /* tp_doc */
43635 0, /* tp_traverse */
43636 0, /* tp_clear */
43637 0, /* tp_richcompare */
43638 0, /* tp_weaklistoffset */
43639#if PY_VERSION_HEX >= 0x02020000
43640 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
43641#endif
43642#if PY_VERSION_HEX >= 0x02030000
43643 0, /* tp_del */
43644#endif
43645#ifdef COUNT_ALLOCS
43646 0,0,0,0 /* tp_alloc -> tp_next */
43647#endif
43648 };
43649 varlink_type = tmp;
43650 varlink_type.ob_type = &PyType_Type;
43651 type_init = 1;
53aa7709 43652 }
1bd55598
RD
43653 return &varlink_type;
43654 }
43655
43656 /* Create a variable linking object for use later */
43657 SWIGINTERN PyObject *
43658 SWIG_Python_newvarlink(void) {
43659 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
43660 if (result) {
43661 result->vars = 0;
43662 }
43663 return ((PyObject*) result);
43664 }
43665
43666 SWIGINTERN void
43667 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
43668 swig_varlinkobject *v = (swig_varlinkobject *) p;
43669 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
43670 if (gv) {
43671 size_t size = strlen(name)+1;
43672 gv->name = (char *)malloc(size);
43673 if (gv->name) {
43674 strncpy(gv->name,name,size);
43675 gv->get_attr = get_attr;
43676 gv->set_attr = set_attr;
43677 gv->next = v->vars;
43678 }
53aa7709 43679 }
1bd55598
RD
43680 v->vars = gv;
43681 }
43682
43683 SWIGINTERN PyObject *
43684 SWIG_globals() {
43685 static PyObject *_SWIG_globals = 0;
43686 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
43687 return _SWIG_globals;
43688 }
43689
43690 /* -----------------------------------------------------------------------------
43691 * constants/methods manipulation
43692 * ----------------------------------------------------------------------------- */
43693
43694 /* Install Constants */
43695 SWIGINTERN void
43696 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
43697 PyObject *obj = 0;
43698 size_t i;
43699 for (i = 0; constants[i].type; ++i) {
43700 switch(constants[i].type) {
43701 case SWIG_PY_POINTER:
43702 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
43703 break;
43704 case SWIG_PY_BINARY:
43705 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
43706 break;
43707 default:
43708 obj = 0;
43709 break;
43710 }
43711 if (obj) {
43712 PyDict_SetItemString(d, constants[i].name, obj);
43713 Py_DECREF(obj);
43714 }
53aa7709 43715 }
1bd55598
RD
43716 }
43717
43718 /* -----------------------------------------------------------------------------*/
43719 /* Fix SwigMethods to carry the callback ptrs when needed */
43720 /* -----------------------------------------------------------------------------*/
43721
43722 SWIGINTERN void
43723 SWIG_Python_FixMethods(PyMethodDef *methods,
43724 swig_const_info *const_table,
43725 swig_type_info **types,
43726 swig_type_info **types_initial) {
43727 size_t i;
43728 for (i = 0; methods[i].ml_name; ++i) {
43729 char *c = methods[i].ml_doc;
43730 if (c && (c = strstr(c, "swig_ptr: "))) {
43731 int j;
43732 swig_const_info *ci = 0;
43733 char *name = c + 10;
43734 for (j = 0; const_table[j].type; ++j) {
43735 if (strncmp(const_table[j].name, name,
43736 strlen(const_table[j].name)) == 0) {
43737 ci = &(const_table[j]);
43738 break;
43739 }
43740 }
43741 if (ci) {
43742 size_t shift = (ci->ptype) - types;
43743 swig_type_info *ty = types_initial[shift];
43744 size_t ldoc = (c - methods[i].ml_doc);
43745 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
43746 char *ndoc = (char*)malloc(ldoc + lptr + 10);
43747 if (ndoc) {
43748 char *buff = ndoc;
43749 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
43750 if (ptr) {
43751 strncpy(buff, methods[i].ml_doc, ldoc);
43752 buff += ldoc;
43753 strncpy(buff, "swig_ptr: ", 10);
43754 buff += 10;
43755 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
43756 methods[i].ml_doc = ndoc;
43757 }
43758 }
43759 }
43760 }
53aa7709 43761 }
1bd55598
RD
43762 }
43763
43764#ifdef __cplusplus
43765}
43766#endif
43767
43768/* -----------------------------------------------------------------------------*
43769 * Partial Init method
43770 * -----------------------------------------------------------------------------*/
43771
43772#ifdef __cplusplus
43773extern "C"
43774#endif
43775SWIGEXPORT void SWIG_init(void) {
43776 PyObject *m, *d;
43777
43778 /* Fix SwigMethods to carry the callback ptrs when needed */
43779 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
43780
43781 m = Py_InitModule((char *) SWIG_name, SwigMethods);
43782 d = PyModule_GetDict(m);
43783
43784 SWIG_InitializeModule(0);
43785 SWIG_InstallConstants(d,swig_const_table);
43786
43787
43788 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
43789 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
43790 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
43791 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
43792 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
43793 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
43794 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
43795 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
43796 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
43797 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
43798 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
43799 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
43800 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
43801 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
43802 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
43803 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
43804 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
43805 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
43806 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
43807 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
43808 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
43809 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
1bd55598
RD
43810 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
43811 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
43812 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
43813 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
43814 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
43815 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
43816 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
43817 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
43818 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
43819 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
43820 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
43821 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
43822 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
43823 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
43824 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
43825 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
43826 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
43827 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
43828 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
43829 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
43830 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
43831 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
43832 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
1bd55598
RD
43833 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
43834 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
43835 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
43836 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
43837 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
43838 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
43839 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
43840 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
43841 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
43842 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
43843 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
43844 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
43845 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
43846 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
43847 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
43848 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
43849 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
43850 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
43851 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
43852 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
43853 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
43854 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
43855 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
43856 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
43857 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
43858 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
43859 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
43860 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
43861 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
43862 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
43863 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
43864 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
43865 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
43866 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
43867 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
43868 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
43869 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
43870 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
43871 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
43872 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
43873 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
43874 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
43875 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
43876 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
43877 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
43878 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
43879 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
43880 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
43881 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
43882 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
43883 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
43884 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
43885 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
43886 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
43887 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
43888 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
43889 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
43890 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
43891 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
43892 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
43893 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
43894 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
43895 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 43896 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
1bd55598
RD
43897 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
43898 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
43899 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
43900 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
43901 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
43902 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
43903 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
43904 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
43905 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
43906 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
43907 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
43908 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
43909 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
43910 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
43911 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
43912 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
43913 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
43914 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
43915 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
43916 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
43917 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
43918 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
43919 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
43920 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
43921 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
43922 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
43923 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
43924 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
43925 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
43926 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
43927 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
43928 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
43929 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
43930 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
43931 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
43932 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
43933 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
43934 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
43935 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
43936 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
43937 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
43938 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
43939 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
43940 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
43941 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
43942 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
43943 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
43944 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
43945 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
43946 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
43947 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
43948 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
43949 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
43950 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
43951 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
43952 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
43953 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
43954 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
43955 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
43956 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
43957 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
43958 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
43959 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
43960 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
43961 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
43962 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
43963 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
43964 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
43965 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
43966 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
43967 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
43968 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
43969 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
43970 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
43971 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
43972 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
43973 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
43974 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
43975 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
43976 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
43977 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
43978 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
43979 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
43980 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
43981 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
43982 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
43983 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
43984 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
43985 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
43986 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
43987 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
43988 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
43989 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
43990 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
43991 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
43992 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
43993 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
43994 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
43995 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
43996 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
43997 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
43998 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
43999 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
44000 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
44001 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
44002 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
44003 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
44004 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
44005 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
44006 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
44007 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
44008 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
44009 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
44010 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
44011 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
44012 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
44013 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
44014 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
44015 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
44016 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
44017 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
44018 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
44019 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
44020 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
44021 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
44022 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
44023 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
44024 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
44025 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
44026 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
44027 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
44028 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
44029 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
44030 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
44031 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
44032 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
44033 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
44034 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
44035
44036 // Map renamed classes back to their common name for OOR
44037 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
44038
44039 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
44040 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
44041 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
44042 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
44043 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
44044 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
44045 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
44046 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
44047 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
44048 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
44049 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
44050 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
44051 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
44052 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
44053 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
1bd55598
RD
44054 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
44055 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
44056 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
44057 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
44058 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
44059 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
44060 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
44061 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
44062 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
44063 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
44064 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
44065 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
44066 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
44067 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
44068 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
44069 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
44070 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
44071 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
44072 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
44073 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
44074 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
44075 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
44076 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
44077 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
44078 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
44079 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
44080 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
44081 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
44082 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
44083 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
44084 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
44085 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
44086 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
44087 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
44088 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
44089 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
44090 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
44091 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
44092 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
44093 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
44094
44095 // Map renamed classes back to their common name for OOR
44096 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
44097 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
44098
44099 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
44100 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
44101 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
44102 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
44103 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
44104 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
44105 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
44106 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
44107 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
44108 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
44109
44110 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
44111
44112 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
44113 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
44114 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
44115 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
44116 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
44117 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
d55e5bfc
RD
44118}
44119